From fcc3e9e0693c45d8af21d8eafa09cdaccc9e0580 Mon Sep 17 00:00:00 2001 From: EYHN Date: Wed, 20 Dec 2023 09:25:06 +0000 Subject: [PATCH 1/4] feat(core): add syncing progress (#5356) ![CleanShot 2023-12-20 at 16.54.30@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/318a2d3c-14ea-48db-907a-881886d605e7.png) --- .../component/src/ui/loading/loading.tsx | 28 ++++++-- .../component/src/ui/loading/styles.css.ts | 1 + .../workspace-card/index.tsx | 71 +++++++++++++------ 3 files changed, 73 insertions(+), 27 deletions(-) diff --git a/packages/frontend/component/src/ui/loading/loading.tsx b/packages/frontend/component/src/ui/loading/loading.tsx index 49e72705c2..34195e5ec1 100644 --- a/packages/frontend/component/src/ui/loading/loading.tsx +++ b/packages/frontend/component/src/ui/loading/loading.tsx @@ -5,9 +5,14 @@ import { loading, speedVar } from './styles.css'; export interface LoadingProps { size?: number; speed?: number; + progress?: number; } -export const Loading = ({ size, speed = 1.2 }: LoadingProps) => { +export const Loading = ({ + size, + speed = 1.2, + progress = 0.2, +}: LoadingProps) => { return ( { }), }} > - - ); diff --git a/packages/frontend/component/src/ui/loading/styles.css.ts b/packages/frontend/component/src/ui/loading/styles.css.ts index 465f98986e..94f92627c4 100644 --- a/packages/frontend/component/src/ui/loading/styles.css.ts +++ b/packages/frontend/component/src/ui/loading/styles.css.ts @@ -13,5 +13,6 @@ export const loading = style({ }, textRendering: 'optimizeLegibility', WebkitFontSmoothing: 'antialiased', + transform: 'rotate(-90deg)', animation: `${rotate} ${speedVar} infinite linear`, }); diff --git a/packages/frontend/core/src/components/pure/workspace-slider-bar/workspace-card/index.tsx b/packages/frontend/core/src/components/pure/workspace-slider-bar/workspace-card/index.tsx index ceff61e906..1fef59aa3c 100644 --- a/packages/frontend/core/src/components/pure/workspace-slider-bar/workspace-card/index.tsx +++ b/packages/frontend/core/src/components/pure/workspace-slider-bar/workspace-card/index.tsx @@ -15,7 +15,7 @@ import { import { useWorkspaceBlobObjectUrl } from '@toeverything/hooks/use-workspace-blob'; import { useWorkspaceInfo } from '@toeverything/hooks/use-workspace-info'; import { useAtomValue } from 'jotai'; -import { debounce } from 'lodash-es'; +import { debounce, mean } from 'lodash-es'; import { forwardRef, type HTMLAttributes, @@ -45,10 +45,10 @@ const CloudWorkspaceStatus = () => { ); }; -const SyncingWorkspaceStatus = () => { +const SyncingWorkspaceStatus = ({ progress }: { progress?: number }) => { return ( <> - + Syncing... ); @@ -85,7 +85,7 @@ const OfflineStatus = () => { ); }; -const WorkspaceStatus = () => { +const useSyncEngineSyncProgress = () => { const isOnline = useSystemOnline(); const [syncEngineStatus, setSyncEngineStatus] = @@ -106,6 +106,24 @@ const WorkspaceStatus = () => { }; }, [currentWorkspace]); + const progress = useMemo(() => { + if (!syncEngineStatus?.remotes || syncEngineStatus?.remotes.length === 0) { + return null; + } + return mean( + syncEngineStatus.remotes.map(peer => { + if (!peer) { + return 0; + } + const totalTask = + peer.totalDocs + peer.pendingPullUpdates + peer.pendingPushUpdates; + const doneTask = peer.loadedDocs; + + return doneTask / totalTask; + }) + ); + }, [syncEngineStatus?.remotes]); + const content = useMemo(() => { // TODO: add i18n if (currentWorkspace.flavour === WorkspaceFlavour.LOCAL) { @@ -118,38 +136,51 @@ const WorkspaceStatus = () => { return 'Disconnected, please check your network connection'; } if (!syncEngineStatus || syncEngineStatus.step === SyncEngineStep.Syncing) { - return 'Syncing with AFFiNE Cloud'; + return ( + `Syncing with AFFiNE Cloud` + + (progress ? ` (${Math.floor(progress * 100)}%)` : '') + ); } if (syncEngineStatus.retrying) { return 'Sync disconnected due to unexpected issues, reconnecting.'; } return 'Synced with AFFiNE Cloud'; - }, [currentWorkspace.flavour, isOnline, syncEngineStatus]); + }, [currentWorkspace.flavour, isOnline, progress, syncEngineStatus]); const CloudWorkspaceSyncStatus = useCallback(() => { if (!syncEngineStatus || syncEngineStatus.step === SyncEngineStep.Syncing) { - return SyncingWorkspaceStatus(); + return SyncingWorkspaceStatus({ + progress: progress ? Math.max(progress, 0.2) : undefined, + }); } else if (syncEngineStatus.retrying) { return UnSyncWorkspaceStatus(); } else { return CloudWorkspaceStatus(); } - }, [syncEngineStatus]); + }, [progress, syncEngineStatus]); + + return { + message: content, + icon: + currentWorkspace.flavour === WorkspaceFlavour.AFFINE_CLOUD ? ( + !isOnline ? ( + + ) : ( + + ) + ) : ( + + ), + }; +}; + +const WorkspaceStatus = () => { + const { message, icon } = useSyncEngineSyncProgress(); return (
- - - {currentWorkspace.flavour === WorkspaceFlavour.AFFINE_CLOUD ? ( - !isOnline ? ( - - ) : ( - - ) - ) : ( - - )} - + + {icon}
); From bfbdde212fd8817611a252d2a00370f9de2bbd89 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Thu, 21 Dec 2023 03:11:44 +0000 Subject: [PATCH 2/4] fix(storybook): disable onboarding for storybook (#5351) --- tests/storybook/.storybook/preview.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/storybook/.storybook/preview.tsx b/tests/storybook/.storybook/preview.tsx index 480b31c23e..b72c97f4b1 100644 --- a/tests/storybook/.storybook/preview.tsx +++ b/tests/storybook/.storybook/preview.tsx @@ -107,6 +107,13 @@ const ThemeChange = () => { }; localStorage.clear(); + +// do not show onboarding for storybook +window.localStorage.setItem( + 'app_config', + '{"onBoarding":false, "dismissWorkspaceGuideModal":true}' +); + const store = createStore(); _setCurrentStore(store); setup(); From 4dc41fcd099dd923247c4673e215d0c665a7b246 Mon Sep 17 00:00:00 2001 From: Chen <99816898+donteatfriedrice@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:22:39 +0800 Subject: [PATCH 3/4] feat: bump blocksuite (#5357) --- packages/common/env/package.json | 4 +- packages/common/infra/package.json | 10 +- packages/common/sdk/package.json | 10 +- packages/common/y-indexeddb/package.json | 4 +- packages/common/y-provider/package.json | 2 +- packages/frontend/component/package.json | 10 +- packages/frontend/core/package.json | 14 +- packages/frontend/electron/package.json | 8 +- packages/frontend/hooks/package.json | 12 +- tests/affine-legacy/0.6.1-beta.1/package.json | 8 +- .../0.7.0-canary.18/package.json | 8 +- .../affine-legacy/0.8.0-canary.7/package.json | 8 +- tests/affine-legacy/0.8.4/package.json | 8 +- tests/affine-migration/package.json | 8 +- tests/storybook/package.json | 14 +- yarn.lock | 222 +++++++++--------- 16 files changed, 175 insertions(+), 175 deletions(-) diff --git a/packages/common/env/package.json b/packages/common/env/package.json index b20bc69bf1..cfaf310f04 100644 --- a/packages/common/env/package.json +++ b/packages/common/env/package.json @@ -3,8 +3,8 @@ "private": true, "type": "module", "devDependencies": { - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "react": "18.2.0", "react-dom": "18.2.0", "vitest": "1.0.4", diff --git a/packages/common/infra/package.json b/packages/common/infra/package.json index 7efeb0e237..b41563702e 100644 --- a/packages/common/infra/package.json +++ b/packages/common/infra/package.json @@ -62,9 +62,9 @@ "@affine/debug": "workspace:*", "@affine/env": "workspace:*", "@affine/sdk": "workspace:*", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "jotai": "^2.5.1", "jotai-effect": "^0.2.3", "tinykeys": "^2.1.0", @@ -73,8 +73,8 @@ "devDependencies": { "@affine-test/fixtures": "workspace:*", "@affine/templates": "workspace:*", - "@blocksuite/lit": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/lit": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", "@testing-library/react": "^14.0.0", "async-call-rpc": "^6.3.1", "electron": "link:../../frontend/electron/node_modules/electron", diff --git a/packages/common/sdk/package.json b/packages/common/sdk/package.json index 4daeef9900..12e588a564 100644 --- a/packages/common/sdk/package.json +++ b/packages/common/sdk/package.json @@ -22,11 +22,11 @@ "dist" ], "dependencies": { - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "jotai": "^2.5.1", "zod": "^3.22.4" }, diff --git a/packages/common/y-indexeddb/package.json b/packages/common/y-indexeddb/package.json index 562c84069a..b5c3a449ac 100644 --- a/packages/common/y-indexeddb/package.json +++ b/packages/common/y-indexeddb/package.json @@ -37,8 +37,8 @@ "y-provider": "workspace:*" }, "devDependencies": { - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "fake-indexeddb": "^5.0.0", "vite": "^5.0.6", "vite-plugin-dts": "3.6.0", diff --git a/packages/common/y-provider/package.json b/packages/common/y-provider/package.json index ee18dfa3c3..aeb7c2cfb0 100644 --- a/packages/common/y-provider/package.json +++ b/packages/common/y-provider/package.json @@ -24,7 +24,7 @@ "build": "vite build" }, "devDependencies": { - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "vite": "^5.0.6", "vite-plugin-dts": "3.6.0", "vitest": "1.0.4", diff --git a/packages/frontend/component/package.json b/packages/frontend/component/package.json index d36d062523..d369954931 100644 --- a/packages/frontend/component/package.json +++ b/packages/frontend/component/package.json @@ -72,12 +72,12 @@ "uuid": "^9.0.1" }, "devDependencies": { - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", "@blocksuite/icons": "2.1.36", - "@blocksuite/lit": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/lit": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@storybook/addon-actions": "^7.5.3", "@storybook/addon-essentials": "^7.5.3", "@storybook/addon-interactions": "^7.5.3", diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.json index b68a4beb44..3a0c6bbdbb 100644 --- a/packages/frontend/core/package.json +++ b/packages/frontend/core/package.json @@ -25,14 +25,14 @@ "@affine/i18n": "workspace:*", "@affine/templates": "workspace:*", "@affine/workspace": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", "@blocksuite/icons": "2.1.36", - "@blocksuite/inline": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/lit": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/inline": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/lit": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@dnd-kit/core": "^6.0.8", "@dnd-kit/sortable": "^8.0.0", "@emotion/cache": "^11.11.0", diff --git a/packages/frontend/electron/package.json b/packages/frontend/electron/package.json index 9e97398bc7..72bdf8aaf4 100644 --- a/packages/frontend/electron/package.json +++ b/packages/frontend/electron/package.json @@ -32,10 +32,10 @@ "@affine/sdk": "workspace:*", "@affine/templates": "workspace:*", "@affine/vue-hello-world-plugin": "workspace:*", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/lit": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/lit": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@electron-forge/cli": "^7.2.0", "@electron-forge/core": "^7.2.0", "@electron-forge/core-utils": "^7.2.0", diff --git a/packages/frontend/hooks/package.json b/packages/frontend/hooks/package.json index 8269c77e3f..28b4a5d8fd 100644 --- a/packages/frontend/hooks/package.json +++ b/packages/frontend/hooks/package.json @@ -20,12 +20,12 @@ "@affine/debug": "workspace:*", "@affine/env": "workspace:*", "@affine/workspace": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/lit": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/lit": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@testing-library/react": "^14.0.0", "@toeverything/infra": "workspace:*", "@types/image-blob-reduce": "^4.1.3", diff --git a/tests/affine-legacy/0.6.1-beta.1/package.json b/tests/affine-legacy/0.6.1-beta.1/package.json index cf4a827f32..29dffa3971 100644 --- a/tests/affine-legacy/0.6.1-beta.1/package.json +++ b/tests/affine-legacy/0.6.1-beta.1/package.json @@ -9,10 +9,10 @@ "devDependencies": { "@affine-test/fixtures": "workspace:*", "@affine-test/kit": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@playwright/test": "^1.39.0", "express": "^4.18.2", "http-proxy-middleware": "^3.0.0-beta.1", diff --git a/tests/affine-legacy/0.7.0-canary.18/package.json b/tests/affine-legacy/0.7.0-canary.18/package.json index 14321a7202..b1c814bcb7 100644 --- a/tests/affine-legacy/0.7.0-canary.18/package.json +++ b/tests/affine-legacy/0.7.0-canary.18/package.json @@ -9,10 +9,10 @@ "devDependencies": { "@affine-test/fixtures": "workspace:*", "@affine-test/kit": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@playwright/test": "^1.39.0", "express": "^4.18.2", "http-proxy-middleware": "^3.0.0-beta.1", diff --git a/tests/affine-legacy/0.8.0-canary.7/package.json b/tests/affine-legacy/0.8.0-canary.7/package.json index af9ddcce0b..aff316c01b 100644 --- a/tests/affine-legacy/0.8.0-canary.7/package.json +++ b/tests/affine-legacy/0.8.0-canary.7/package.json @@ -9,10 +9,10 @@ "devDependencies": { "@affine-test/fixtures": "workspace:*", "@affine-test/kit": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@playwright/test": "^1.39.0", "express": "^4.18.2", "http-proxy-middleware": "^3.0.0-beta.1", diff --git a/tests/affine-legacy/0.8.4/package.json b/tests/affine-legacy/0.8.4/package.json index adb516fd96..1bfb26742a 100644 --- a/tests/affine-legacy/0.8.4/package.json +++ b/tests/affine-legacy/0.8.4/package.json @@ -9,10 +9,10 @@ "devDependencies": { "@affine-test/fixtures": "workspace:*", "@affine-test/kit": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@playwright/test": "^1.39.0", "express": "^4.18.2", "http-proxy-middleware": "^3.0.0-beta.1", diff --git a/tests/affine-migration/package.json b/tests/affine-migration/package.json index 828262c772..a01cf08d6d 100644 --- a/tests/affine-migration/package.json +++ b/tests/affine-migration/package.json @@ -7,10 +7,10 @@ "devDependencies": { "@affine-test/fixtures": "workspace:*", "@affine-test/kit": "workspace:*", - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@playwright/test": "^1.39.0" }, "version": "0.11.0" diff --git a/tests/storybook/package.json b/tests/storybook/package.json index 9e113b2f46..8cdd2a6f28 100644 --- a/tests/storybook/package.json +++ b/tests/storybook/package.json @@ -31,14 +31,14 @@ "wait-on": "^7.2.0" }, "devDependencies": { - "@blocksuite/block-std": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/blocks": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/global": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/block-std": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/blocks": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/global": "0.11.0-nightly-202312210105-edfa58e", "@blocksuite/icons": "2.1.36", - "@blocksuite/inline": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/lit": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/presets": "0.11.0-nightly-202312200102-8254dc9", - "@blocksuite/store": "0.11.0-nightly-202312200102-8254dc9", + "@blocksuite/inline": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/lit": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/presets": "0.11.0-nightly-202312210105-edfa58e", + "@blocksuite/store": "0.11.0-nightly-202312210105-edfa58e", "@dnd-kit/sortable": "^8.0.0", "@tomfreudenberg/next-auth-mock": "^0.5.6", "chromatic": "^9.1.0", diff --git a/yarn.lock b/yarn.lock index 4092cab219..04743c1578 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25,10 +25,10 @@ __metadata: dependencies: "@affine-test/fixtures": "workspace:*" "@affine-test/kit": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@playwright/test": "npm:^1.39.0" express: "npm:^4.18.2" http-proxy-middleware: "npm:^3.0.0-beta.1" @@ -42,10 +42,10 @@ __metadata: dependencies: "@affine-test/fixtures": "workspace:*" "@affine-test/kit": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@playwright/test": "npm:^1.39.0" express: "npm:^4.18.2" http-proxy-middleware: "npm:^3.0.0-beta.1" @@ -59,10 +59,10 @@ __metadata: dependencies: "@affine-test/fixtures": "workspace:*" "@affine-test/kit": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@playwright/test": "npm:^1.39.0" express: "npm:^4.18.2" http-proxy-middleware: "npm:^3.0.0-beta.1" @@ -76,10 +76,10 @@ __metadata: dependencies: "@affine-test/fixtures": "workspace:*" "@affine-test/kit": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@playwright/test": "npm:^1.39.0" express: "npm:^4.18.2" http-proxy-middleware: "npm:^3.0.0-beta.1" @@ -138,10 +138,10 @@ __metadata: dependencies: "@affine-test/fixtures": "workspace:*" "@affine-test/kit": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@playwright/test": "npm:^1.39.0" languageName: unknown linkType: soft @@ -222,12 +222,12 @@ __metadata: "@affine/graphql": "workspace:*" "@affine/i18n": "workspace:*" "@affine/workspace": "workspace:*" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" "@blocksuite/icons": "npm:2.1.36" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@dnd-kit/core": "npm:^6.0.8" "@dnd-kit/modifiers": "npm:^7.0.0" "@dnd-kit/sortable": "npm:^8.0.0" @@ -351,14 +351,14 @@ __metadata: "@affine/templates": "workspace:*" "@affine/workspace": "workspace:*" "@aws-sdk/client-s3": "npm:3.433.0" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" "@blocksuite/icons": "npm:2.1.36" - "@blocksuite/inline": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/inline": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@dnd-kit/core": "npm:^6.0.8" "@dnd-kit/sortable": "npm:^8.0.0" "@emotion/cache": "npm:^11.11.0" @@ -468,10 +468,10 @@ __metadata: "@affine/sdk": "workspace:*" "@affine/templates": "workspace:*" "@affine/vue-hello-world-plugin": "workspace:*" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@electron-forge/cli": "npm:^7.2.0" "@electron-forge/core": "npm:^7.2.0" "@electron-forge/core-utils": "npm:^7.2.0" @@ -520,8 +520,8 @@ __metadata: version: 0.0.0-use.local resolution: "@affine/env@workspace:packages/common/env" dependencies: - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" lit: "npm:^3.0.2" react: "npm:18.2.0" react-dom: "npm:18.2.0" @@ -711,11 +711,11 @@ __metadata: version: 0.0.0-use.local resolution: "@affine/sdk@workspace:packages/common/sdk" dependencies: - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" jotai: "npm:^2.5.1" vite: "npm:^5.0.6" vite-plugin-dts: "npm:3.6.0" @@ -840,14 +840,14 @@ __metadata: dependencies: "@affine/component": "workspace:*" "@affine/i18n": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" "@blocksuite/icons": "npm:2.1.36" - "@blocksuite/inline": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/inline": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@dnd-kit/sortable": "npm:^8.0.0" "@storybook/addon-actions": "npm:^7.5.3" "@storybook/addon-essentials": "npm:^7.5.3" @@ -4077,29 +4077,29 @@ __metadata: languageName: node linkType: hard -"@blocksuite/block-std@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/block-std@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/block-std@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/block-std@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" lz-string: "npm:^1.5.0" w3c-keyname: "npm:^2.2.8" zod: "npm:^3.22.4" peerDependencies: - "@blocksuite/store": 0.11.0-nightly-202312200102-8254dc9 - checksum: 223f704ad15e5473be1c2c617964e665dd05c278a3100e79618d5e194c7670fff20daf9652372fa8d6f9145b7f535862674d13bd443cad87dbe8f30da414c850 + "@blocksuite/store": 0.11.0-nightly-202312210105-edfa58e + checksum: eb20c1b8a497562676c3d91b9470add50fdb01e4ec68243dc2349fa7cb943cd77f013b2d38db8d61de03caba8ca04de21ce84bb7d56cb6991d9e8b7901a05d41 languageName: node linkType: hard -"@blocksuite/blocks@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/blocks@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/blocks@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/blocks@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/inline": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/inline": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@floating-ui/dom": "npm:^1.5.3" "@toeverything/theme": "npm:^0.7.27" "@types/hast": "npm:^3.0.3" @@ -4133,16 +4133,16 @@ __metadata: unified: "npm:^11.0.4" webfontloader: "npm:^1.6.28" zod: "npm:^3.22.4" - checksum: dcefc3b3309fc743b78a248acd4dc3cbe60a666ea747c4fadc370a60597ed35156d42310e5232c6ec806c7c4cffad6e130917e4051c14fd14b7a7ca9866775a0 + checksum: fc4fecfb2dd3bfdf0e91fd91bda40d7ba9c02533f6e5f2de17b32265288d0b44dbb64402c6f6a1b8adb469046df14d89beb15d1ba24e0724b9145495c2f0174d languageName: node linkType: hard -"@blocksuite/global@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/global@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/global@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/global@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: zod: "npm:^3.22.4" - checksum: a871324674b5b7b50753e66a95baefa2c4054f79a5dddcbea4572a780551ba75be93b44d0efde6c83662463acf9fdd860f20f7340dd0c5f3dd3abc8ef36d6e45 + checksum: f1943b1e456197d7e90775cdeda8bab01361f81c665cdcf025efe39c7d1e3f8e370873c80d5fcb02427410b4457a92deb3334d9e7401a47b276bd46714fbcf1a languageName: node linkType: hard @@ -4156,55 +4156,55 @@ __metadata: languageName: node linkType: hard -"@blocksuite/inline@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/inline@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/inline@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/inline@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" zod: "npm:^3.22.4" peerDependencies: lit: ^3.0.2 yjs: ^13 - checksum: 9cc1e7b7b965928362294962b97f5517259a01a8bed29fa8a51c837d35a9b6330cc1d0fcb372815e68945b12950e9230d452941065eed5cb1e332a60651e2844 + checksum: 066a2141351acbcb0d8a73244057e6d6d900681572cd9cc65226b7e4fba8ad5e4b0ff25aa9a9eade04c2a003d7d9794ce21fd55fade6eac7356c9e4b3fd8be4d languageName: node linkType: hard -"@blocksuite/lit@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/lit@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/lit@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/lit@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/inline": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/inline": "npm:0.11.0-nightly-202312210105-edfa58e" lit: "npm:^3.1.0" peerDependencies: - "@blocksuite/block-std": 0.11.0-nightly-202312200102-8254dc9 - "@blocksuite/store": 0.11.0-nightly-202312200102-8254dc9 - checksum: e9cfbdebd24c20f69b6b9c9295a3da32a3b56f1b7ed535f72246cb17d9644794f097c134a409c1b21c055aed1468331ec99f4f85ebd373d0ab4a947210a9cc9c + "@blocksuite/block-std": 0.11.0-nightly-202312210105-edfa58e + "@blocksuite/store": 0.11.0-nightly-202312210105-edfa58e + checksum: a736fbd9b8bcbb9e0341943c4a033a526ee6270049db4ba1eef3bfe937283f786b397cc6e086123b1b9d8f6b3f4d94d442722864a2f0ca3f1c6bcdfe9ad08db9 languageName: node linkType: hard -"@blocksuite/presets@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/presets@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/presets@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/presets@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@toeverything/theme": "npm:^0.7.27" lit: "npm:^3.1.0" openai: "npm:^4.20.1" - checksum: 19f45cdaaa68551be4682d76cf696726d18faa9892b20e79d616a83c6f1a259732446c70e5b221a7dcf70cd1a1f71ab63a1b2f546f460c767174cd3d4776df4d + checksum: 471e5f4748dc695cff7bdba939e3cc9f8d9e302442d7b366b03c8a207280c2c2532c3abdd767f041a47a644e23faa7a2860c8a0b28b4530e0b194f076562acbe languageName: node linkType: hard -"@blocksuite/store@npm:0.11.0-nightly-202312200102-8254dc9": - version: 0.11.0-nightly-202312200102-8254dc9 - resolution: "@blocksuite/store@npm:0.11.0-nightly-202312200102-8254dc9" +"@blocksuite/store@npm:0.11.0-nightly-202312210105-edfa58e": + version: 0.11.0-nightly-202312210105-edfa58e + resolution: "@blocksuite/store@npm:0.11.0-nightly-202312210105-edfa58e" dependencies: - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/inline": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/inline": "npm:0.11.0-nightly-202312210105-edfa58e" "@types/flexsearch": "npm:^0.7.3" flexsearch: "npm:0.7.21" idb-keyval: "npm:^6.2.1" @@ -4217,7 +4217,7 @@ __metadata: peerDependencies: async-call-rpc: ^6 yjs: ^13 - checksum: 0d64da33b8dd916638c10661fc1ed80812cb6dd5ff57c4866f34599164e94f2aa53a1a26a4d8fc5b2ad69984d846bc3c63e1024d2d90990b24d5512516ce6db5 + checksum: afd08bbb37060102de1cf5d0ce6f14a7197cd7b9f8e8cd306246de61e11122dabe01713e570ee7d4f38c8deed5090a0077bb628ed3421552d7c583da58ca5670 languageName: node linkType: hard @@ -13726,12 +13726,12 @@ __metadata: "@affine/debug": "workspace:*" "@affine/env": "workspace:*" "@affine/workspace": "workspace:*" - "@blocksuite/block-std": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/block-std": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@testing-library/react": "npm:^14.0.0" "@toeverything/infra": "workspace:*" "@types/image-blob-reduce": "npm:^4.1.3" @@ -13782,11 +13782,11 @@ __metadata: "@affine/env": "workspace:*" "@affine/sdk": "workspace:*" "@affine/templates": "workspace:*" - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/global": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/lit": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/presets": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/global": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/lit": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/presets": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" "@testing-library/react": "npm:^14.0.0" async-call-rpc: "npm:^6.3.1" electron: "link:../../frontend/electron/node_modules/electron" @@ -13835,8 +13835,8 @@ __metadata: version: 0.0.0-use.local resolution: "@toeverything/y-indexeddb@workspace:packages/common/y-indexeddb" dependencies: - "@blocksuite/blocks": "npm:0.11.0-nightly-202312200102-8254dc9" - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/blocks": "npm:0.11.0-nightly-202312210105-edfa58e" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" fake-indexeddb: "npm:^5.0.0" idb: "npm:^8.0.0" nanoid: "npm:^5.0.3" @@ -36954,7 +36954,7 @@ __metadata: version: 0.0.0-use.local resolution: "y-provider@workspace:packages/common/y-provider" dependencies: - "@blocksuite/store": "npm:0.11.0-nightly-202312200102-8254dc9" + "@blocksuite/store": "npm:0.11.0-nightly-202312210105-edfa58e" vite: "npm:^5.0.6" vite-plugin-dts: "npm:3.6.0" vitest: "npm:1.0.4" From 34c1d2a67408b4d4673dd411ec676f9f309ec71f Mon Sep 17 00:00:00 2001 From: Cats Juice Date: Thu, 21 Dec 2023 04:27:49 +0000 Subject: [PATCH 4/4] feat(core): responsive for onboarding (#5361) fix(core): use light-theme for onboarding back button feat(core): responsive for onboarding --- .../onboarding/steps/edgeless-switch.css.ts | 3 +++ .../affine/onboarding/steps/edgeless-switch.tsx | 10 +++++++++- .../src/components/affine/onboarding/style.css.ts | 15 ++++++++++++--- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.css.ts b/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.css.ts index 477eb61904..39e9d102f6 100644 --- a/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.css.ts +++ b/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.css.ts @@ -14,6 +14,9 @@ export const edgelessSwitchWindow = style({ fontFamily: 'var(--affine-font-family)', color: onboardingVars.paper.textColor, + maxWidth: 'calc(100vw - 48px)', + maxHeight: 'calc(100vh - 48px)', + selectors: { '&[data-mode="edgeless"]': { width: onboardingVars.edgeless.w, diff --git a/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.tsx b/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.tsx index 4b3e3597a3..bee79e655f 100644 --- a/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.tsx +++ b/packages/frontend/core/src/components/affine/onboarding/steps/edgeless-switch.tsx @@ -224,7 +224,15 @@ export const EdgelessSwitch = ({
- *`, { + display: 'inline-block', + height: 'fit-content', +}); +globalStyle(`${tipsWrapper}[data-visible="true"] > *`, { + pointerEvents: 'auto', +});