mirror of
https://github.com/outline/outline.git
synced 2026-01-06 11:09:55 -06:00
* feat: POC * fix: cleanup * fix: cleanup * fix: can use existing `UiStore` in favor of `LightboxStore` * fix: style dialog overlay and content * fix: style and position action buttons * fix: keyboard nav * fix: display caption * fix: cleanup * fix: force `Lightbox` to unmount if `DocumentScene` re-renders * fix: cleanup * fix: images going out of bounds–trying `object-fit` for first pass * fix: making `Figure` a flexbox and setting its size to img dimensions, gets rid of the `object-fit` "letterboxing" effect * feat: image transition * fix: match animation to that of `ImageZoom` * fix: `fade-in` overlay * fix: match overlay background to main background * fix: fade out nav if idle for 3s * fix: width & height transition in firefox * fix: move nav buttons sideways * fix: button sizes * fix: don't let nav buttons become invisible due to image in backdrop * feat: download btn * feat: handle swipe left, right & down on mobile, also double tap to open lightbox * fix: off-by-one * fix: for img to be visible, if not animating * fix: cleanup * just a showcase commit, it's broken and will be reverted * Revert "just a showcase commit, it's broken and will be reverted" This reverts commit 63d7cbda9895f92a530cfb3a8402eaacb2414947. * feat: `animateOnClose` * fix: prevent body from shifting horizontally * Revert "fix: prevent body from shifting horizontally" This reverts commit fcc2d0d1daaab458325ece880d13903b42560dfd. * fix: lint * fix: make lightbox resilient to doc changes * fix: `VisuallyHidden` `Dialog.Title` * fix: fade in action and nav buttons too * fix: `fadeOut` overlay, action & nav buttons upon close * fix: `dom.querySelector` is not a function * fix: let `objectFit` compute the img dimensions * fix: flashing caption * fix: hide nav keys based on whether it's a first or last img * fix: tooltip for action buttons * Fixes: 1. `Space` with the image selected should trigger the lightbox 2. There should be a "Zoom in" cursor on the image when selected so you know you can click to zoom * fix: fade out on close if there's img loading err * fix: pull animation duration into a const * fix: upscaled editor image animating unreliably * fix: lint * fixes: 1. Model as state machine 2. Replace `transition` with `animation` * fix: cleanup * fix: DRY * fix: cleanup * fix: img loading indicator * fix: swipe * fix: types * fix: Incorrect transitions when image nodes are duplicated * Tweaks, translations, aria * fix: Incorrect transition if image is added while lightbox is open * fix: review * Remove ImageZoom, react-medium-image-zoom * Tweak styling * fix: Quick fix for multiple open editors * refactor: Move active lightbox state into editor * Apply graphite suggestions --------- Co-authored-by: Tom Moor <tom@getoutline.com>
62 lines
2.0 KiB
JSON
62 lines
2.0 KiB
JSON
{
|
|
"workerIdleMemoryLimit": "0.75",
|
|
"maxWorkers": "50%",
|
|
"projects": [
|
|
{
|
|
"displayName": "server",
|
|
"roots": ["<rootDir>/server", "<rootDir>/plugins"],
|
|
"moduleNameMapper": {
|
|
"^@server/(.*)$": "<rootDir>/server/$1",
|
|
"^@shared/(.*)$": "<rootDir>/shared/$1"
|
|
},
|
|
"setupFiles": ["<rootDir>/__mocks__/console.js"],
|
|
"setupFilesAfterEnv": ["<rootDir>/server/test/setup.ts"],
|
|
"globalTeardown": "<rootDir>/server/test/globalTeardown.js",
|
|
"testEnvironment": "node"
|
|
},
|
|
{
|
|
"displayName": "app",
|
|
"roots": ["<rootDir>/app"],
|
|
"moduleNameMapper": {
|
|
"^~/(.*)$": "<rootDir>/app/$1",
|
|
"^@shared/(.*)$": "<rootDir>/shared/$1",
|
|
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js",
|
|
"^uuid$": "<rootDir>/node_modules/uuid/dist/index.js"
|
|
},
|
|
"modulePaths": ["<rootDir>/app"],
|
|
"setupFiles": ["<rootDir>/__mocks__/window.js"],
|
|
"setupFilesAfterEnv": ["<rootDir>/app/test/setup.ts"],
|
|
"testEnvironment": "jsdom",
|
|
"testEnvironmentOptions": {
|
|
"url": "http://localhost"
|
|
}
|
|
},
|
|
{
|
|
"displayName": "shared-node",
|
|
"roots": ["<rootDir>/shared"],
|
|
"moduleNameMapper": {
|
|
"^@server/(.*)$": "<rootDir>/server/$1",
|
|
"^@shared/(.*)$": "<rootDir>/shared/$1"
|
|
},
|
|
"setupFiles": ["<rootDir>/__mocks__/console.js"],
|
|
"setupFilesAfterEnv": ["<rootDir>/shared/test/setup.ts"],
|
|
"testEnvironment": "node"
|
|
},
|
|
{
|
|
"displayName": "shared-jsdom",
|
|
"roots": ["<rootDir>/shared"],
|
|
"moduleNameMapper": {
|
|
"^~/(.*)$": "<rootDir>/app/$1",
|
|
"^@shared/(.*)$": "<rootDir>/shared/$1",
|
|
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js",
|
|
"^uuid$": "<rootDir>/node_modules/uuid/dist/index.js"
|
|
},
|
|
"setupFiles": ["<rootDir>/__mocks__/window.js"],
|
|
"testEnvironment": "jsdom",
|
|
"testEnvironmentOptions": {
|
|
"url": "http://localhost"
|
|
}
|
|
}
|
|
]
|
|
}
|