From 86988bd6e8c7e7c0fe859633477f2cada2a37b70 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Wed, 3 May 2023 18:57:59 -0500 Subject: [PATCH] fix: dock to blocksuite latest API (#2219) --- apps/web/package.json | 12 +- apps/web/src/atoms/__tests__/atom.spec.ts | 2 +- .../components/__debug__/client/Editor.tsx | 2 +- apps/web/src/hooks/__tests__/index.spec.tsx | 10 +- apps/web/src/hooks/use-workspaces.ts | 2 +- apps/web/src/layouts/workspace-layout.tsx | 4 +- apps/web/src/pages/_debug/broadcast.dev.tsx | 2 +- apps/web/src/plugins/local/index.tsx | 4 +- packages/component/package.json | 8 +- packages/env/package.json | 4 +- .../src/use-block-suite-workspace-helper.ts | 2 +- packages/i18n/package.json | 2 +- packages/jotai/package.json | 8 +- packages/y-indexeddb/package.json | 4 +- yarn.lock | 217 +++++++++--------- 15 files changed, 146 insertions(+), 137 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 2974503910..b6e40a93a7 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -19,11 +19,11 @@ "@affine/jotai": "workspace:*", "@affine/templates": "workspace:*", "@affine/workspace": "workspace:*", - "@blocksuite/blocks": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/editor": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/global": "0.0.0-20230501021333-90d9a4af-nightly", + "@blocksuite/blocks": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/editor": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/global": "0.0.0-20230502232311-bfe52748-nightly", "@blocksuite/icons": "^2.1.15", - "@blocksuite/store": "0.0.0-20230501021333-90d9a4af-nightly", + "@blocksuite/store": "0.0.0-20230502232311-bfe52748-nightly", "@dnd-kit/core": "^6.0.8", "@dnd-kit/sortable": "^7.0.2", "@emotion/cache": "^11.10.8", @@ -66,14 +66,14 @@ "dotenv": "^16.0.3", "eslint": "^8.39.0", "eslint-config-next": "^13.3.5-canary.3", - "next": "^13.3.5-canary.3", + "next": "^13.3.5-canary.7", "next-debug-local": "^0.1.5", "next-router-mock": "^0.9.3", "raw-loader": "^4.0.2", "redux": "^4.2.1", "swc-plugin-coverage-instrument": "^0.0.18", "typescript": "^5.0.4", - "webpack": "^5.81.0" + "webpack": "^5.82.0" }, "stableVersion": "0.0.0" } diff --git a/apps/web/src/atoms/__tests__/atom.spec.ts b/apps/web/src/atoms/__tests__/atom.spec.ts index c7f24f1112..f4d6d31d4a 100644 --- a/apps/web/src/atoms/__tests__/atom.spec.ts +++ b/apps/web/src/atoms/__tests__/atom.spec.ts @@ -31,7 +31,7 @@ describe('currentWorkspace atom', () => { 'test', WorkspaceFlavour.LOCAL ); - const page = workspace.createPage('page0'); + const page = workspace.createPage({ id: 'page0' }); initPage(page); const frameId = page.getBlockByFlavour('affine:frame').at(0) ?.id as string; diff --git a/apps/web/src/components/__debug__/client/Editor.tsx b/apps/web/src/components/__debug__/client/Editor.tsx index e8aad876d6..37e390d0e9 100644 --- a/apps/web/src/components/__debug__/client/Editor.tsx +++ b/apps/web/src/components/__debug__/client/Editor.tsx @@ -16,7 +16,7 @@ const blockSuiteWorkspace = createEmptyBlockSuiteWorkspace( } ); -const page = blockSuiteWorkspace.createPage('page0'); +const page = blockSuiteWorkspace.createPage({ id: 'page0' }); const Editor: React.FC<{ onInit: (page: Page, editor: Readonly) => void; diff --git a/apps/web/src/hooks/__tests__/index.spec.tsx b/apps/web/src/hooks/__tests__/index.spec.tsx index 4405f1e7c7..0c8e4f7538 100644 --- a/apps/web/src/hooks/__tests__/index.spec.tsx +++ b/apps/web/src/hooks/__tests__/index.spec.tsx @@ -92,9 +92,13 @@ beforeEach(async () => { const frameId = page.addBlock('affine:frame', {}, pageBlockId); page.addBlock('affine:paragraph', {}, frameId); }; - initPage(blockSuiteWorkspace.createPage('page0')); - initPage(blockSuiteWorkspace.createPage('page1')); - initPage(blockSuiteWorkspace.createPage('page2')); + initPage( + blockSuiteWorkspace.createPage({ + id: 'page0', + }) + ); + initPage(blockSuiteWorkspace.createPage({ id: 'page1' })); + initPage(blockSuiteWorkspace.createPage({ id: 'page2' })); }); describe('usePageMetas', async () => { diff --git a/apps/web/src/hooks/use-workspaces.ts b/apps/web/src/hooks/use-workspaces.ts index 2e2d312fdc..3313dcb075 100644 --- a/apps/web/src/hooks/use-workspaces.ts +++ b/apps/web/src/hooks/use-workspaces.ts @@ -32,7 +32,7 @@ export function useAppHelper() { ws => ws.id === workspaceId ) as LocalWorkspace; if (workspace && 'blockSuiteWorkspace' in workspace) { - workspace.blockSuiteWorkspace.createPage(pageId); + workspace.blockSuiteWorkspace.createPage({ id: pageId }); } else { throw new Error('cannot create page. blockSuiteWorkspace not found'); } diff --git a/apps/web/src/layouts/workspace-layout.tsx b/apps/web/src/layouts/workspace-layout.tsx index 0ac26545d8..19447f4ffc 100644 --- a/apps/web/src/layouts/workspace-layout.tsx +++ b/apps/web/src/layouts/workspace-layout.tsx @@ -267,7 +267,9 @@ export const WorkspaceLayoutInner: FC = ({ children }) => { if (currentWorkspace.blockSuiteWorkspace.isEmpty) { // this is a new workspace, so we should redirect to the new page const pageId = nanoid(); - const page = currentWorkspace.blockSuiteWorkspace.createPage(pageId); + const page = currentWorkspace.blockSuiteWorkspace.createPage({ + id: pageId, + }); assertEquals(page.id, pageId); currentWorkspace.blockSuiteWorkspace.setPageMeta(page.id, { init: true, diff --git a/apps/web/src/pages/_debug/broadcast.dev.tsx b/apps/web/src/pages/_debug/broadcast.dev.tsx index 4edb3f81ad..6c57f2027b 100644 --- a/apps/web/src/pages/_debug/broadcast.dev.tsx +++ b/apps/web/src/pages/_debug/broadcast.dev.tsx @@ -52,7 +52,7 @@ const BroadcastPage: React.FC = () => { data-testid="create-page" onClick={() => { logger.info('create page'); - blockSuiteWorkspace.createPage(nanoid()); + blockSuiteWorkspace.createPage({ id: nanoid() }); }} > Create Page diff --git a/apps/web/src/plugins/local/index.tsx b/apps/web/src/plugins/local/index.tsx index f41e2d5187..48928c664f 100644 --- a/apps/web/src/plugins/local/index.tsx +++ b/apps/web/src/plugins/local/index.tsx @@ -32,7 +32,9 @@ export const LocalPlugin: WorkspacePlugin = { WorkspaceFlavour.LOCAL ); blockSuiteWorkspace.meta.setName(DEFAULT_WORKSPACE_NAME); - const page = blockSuiteWorkspace.createPage(DEFAULT_HELLO_WORLD_PAGE_ID); + const page = blockSuiteWorkspace.createPage({ + id: DEFAULT_HELLO_WORLD_PAGE_ID, + }); blockSuiteWorkspace.setPageMeta(page.id, { init: true, }); diff --git a/packages/component/package.json b/packages/component/package.json index 5cb37e88b1..57d65b1dce 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -48,11 +48,11 @@ "react-is": "^18.2.0" }, "devDependencies": { - "@blocksuite/blocks": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/editor": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/global": "0.0.0-20230501021333-90d9a4af-nightly", + "@blocksuite/blocks": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/editor": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/global": "0.0.0-20230502232311-bfe52748-nightly", "@blocksuite/icons": "^2.1.15", - "@blocksuite/store": "0.0.0-20230501021333-90d9a4af-nightly", + "@blocksuite/store": "0.0.0-20230502232311-bfe52748-nightly", "@storybook/addon-actions": "^7.0.7", "@storybook/addon-coverage": "^0.0.8", "@storybook/addon-essentials": "^7.0.7", diff --git a/packages/env/package.json b/packages/env/package.json index e8bca63c33..6fc7d97d85 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -4,8 +4,8 @@ "main": "./src/index.ts", "module": "./src/index.ts", "devDependencies": { - "@blocksuite/global": "0.0.0-20230501021333-90d9a4af-nightly", - "next": "^13.3.5-canary.3", + "@blocksuite/global": "0.0.0-20230502232311-bfe52748-nightly", + "next": "^13.3.5-canary.7", "react": "^18.2.0", "react-dom": "^18.2.0", "zod": "^3.21.4" diff --git a/packages/hooks/src/use-block-suite-workspace-helper.ts b/packages/hooks/src/use-block-suite-workspace-helper.ts index 096dbee579..8866df05e2 100644 --- a/packages/hooks/src/use-block-suite-workspace-helper.ts +++ b/packages/hooks/src/use-block-suite-workspace-helper.ts @@ -12,7 +12,7 @@ export function useBlockSuiteWorkspaceHelper(blockSuiteWorkspace: Workspace) { () => ({ createPage: (pageId: string): Page => { assertExists(blockSuiteWorkspace); - return blockSuiteWorkspace.createPage(pageId); + return blockSuiteWorkspace.createPage({ id: pageId }); }, markMilestone: async (name: string) => { assertExists(blockSuiteWorkspace); diff --git a/packages/i18n/package.json b/packages/i18n/package.json index d2a9bbfc3e..6c6dce4158 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@types/node": "^18.16.3", "@types/prettier": "^2.7.2", - "next": "^13.3.5-canary.3", + "next": "^13.3.5-canary.7", "prettier": "^2.8.8", "react-dom": "^18.2.0", "ts-node": "^10.9.1", diff --git a/packages/jotai/package.json b/packages/jotai/package.json index 213bce4c30..31f7aa914a 100644 --- a/packages/jotai/package.json +++ b/packages/jotai/package.json @@ -7,10 +7,10 @@ "jotai": "^2.0.4" }, "devDependencies": { - "@blocksuite/blocks": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/editor": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/global": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/store": "0.0.0-20230501021333-90d9a4af-nightly", + "@blocksuite/blocks": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/editor": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/global": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/store": "0.0.0-20230502232311-bfe52748-nightly", "lottie-web": "^5.11.0" }, "peerDependencies": { diff --git a/packages/y-indexeddb/package.json b/packages/y-indexeddb/package.json index d5f2a012dd..5279e43832 100644 --- a/packages/y-indexeddb/package.json +++ b/packages/y-indexeddb/package.json @@ -28,8 +28,8 @@ "idb": "^7.1.1" }, "devDependencies": { - "@blocksuite/blocks": "0.0.0-20230501021333-90d9a4af-nightly", - "@blocksuite/store": "0.0.0-20230501021333-90d9a4af-nightly", + "@blocksuite/blocks": "0.0.0-20230502232311-bfe52748-nightly", + "@blocksuite/store": "0.0.0-20230502232311-bfe52748-nightly", "vite": "^4.3.4", "vite-plugin-dts": "^2.3.0", "y-indexeddb": "^9.0.10" diff --git a/yarn.lock b/yarn.lock index 45cf5b98fb..3de02e423b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -50,11 +50,11 @@ __metadata: "@affine/i18n": "workspace:*" "@affine/jotai": "workspace:*" "@affine/workspace": "workspace:^" - "@blocksuite/blocks": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/editor": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/blocks": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/editor": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly "@blocksuite/icons": ^2.1.15 - "@blocksuite/store": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/store": 0.0.0-20230502232311-bfe52748-nightly "@dnd-kit/core": ^6.0.8 "@dnd-kit/sortable": ^7.0.2 "@emotion/cache": ^11.10.8 @@ -163,9 +163,9 @@ __metadata: version: 0.0.0-use.local resolution: "@affine/env@workspace:packages/env" dependencies: - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly lit: ^2.7.3 - next: ^13.3.5-canary.3 + next: ^13.3.5-canary.7 react: ^18.2.0 react-dom: ^18.2.0 zod: ^3.21.4 @@ -197,7 +197,7 @@ __metadata: "@types/node": ^18.16.3 "@types/prettier": ^2.7.2 i18next: ^22.4.15 - next: ^13.3.5-canary.3 + next: ^13.3.5-canary.7 prettier: ^2.8.8 react: ^18.2.0 react-dom: ^18.2.0 @@ -212,10 +212,10 @@ __metadata: resolution: "@affine/jotai@workspace:packages/jotai" dependencies: "@affine/env": "workspace:*" - "@blocksuite/blocks": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/editor": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/store": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/blocks": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/editor": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/store": 0.0.0-20230502232311-bfe52748-nightly jotai: ^2.0.4 lottie-web: ^5.11.0 peerDependencies: @@ -294,11 +294,11 @@ __metadata: "@affine/jotai": "workspace:*" "@affine/templates": "workspace:*" "@affine/workspace": "workspace:*" - "@blocksuite/blocks": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/editor": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/blocks": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/editor": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly "@blocksuite/icons": ^2.1.15 - "@blocksuite/store": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/store": 0.0.0-20230502232311-bfe52748-nightly "@dnd-kit/core": ^6.0.8 "@dnd-kit/sortable": ^7.0.2 "@emotion/cache": ^11.10.8 @@ -331,7 +331,7 @@ __metadata: jotai-devtools: ^0.5.2 lit: ^2.7.3 lottie-web: ^5.11.0 - next: ^13.3.5-canary.3 + next: ^13.3.5-canary.7 next-debug-local: ^0.1.5 next-router-mock: ^0.9.3 next-themes: ^0.2.1 @@ -343,7 +343,7 @@ __metadata: swc-plugin-coverage-instrument: ^0.0.18 swr: ^2.1.5 typescript: ^5.0.4 - webpack: ^5.81.0 + webpack: ^5.82.0 y-protocols: ^1.0.5 yjs: ^13.6.0 zod: ^3.21.4 @@ -2124,14 +2124,14 @@ __metadata: languageName: node linkType: hard -"@blocksuite/blocks@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/blocks@npm:0.0.0-20230501021333-90d9a4af-nightly" +"@blocksuite/blocks@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/blocks@npm:0.0.0-20230502232311-bfe52748-nightly" dependencies: - "@blocksuite/connector": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/phasor": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/virgo": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/connector": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/phasor": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/virgo": 0.0.0-20230502232311-bfe52748-nightly "@popperjs/core": ^2.11.6 hotkeys-js: ^3.10.1 lit: ^2.7.2 @@ -2140,36 +2140,37 @@ __metadata: turndown: ^7.1.1 zod: ^3.21.4 peerDependencies: - "@blocksuite/store": 0.0.0-20230501021333-90d9a4af-nightly - checksum: 5be4d7f23c01d6610eaf50c7d4331f0faf55efc2bee008516fe000ccc2ee0bcc964192b8aae710df6df968dbdd31d086af5e117b2ed4b30056b7d4edd17b7ab3 + "@blocksuite/store": 0.0.0-20230502232311-bfe52748-nightly + yjs: ^13 + checksum: 4e7e53b8170c0249ec416992c6a41d078eeb07d85b4bbbc000f5f0fae43b8f79c212c66cb437ee75623aeec6c5c0372700c7b9477377e6341c406bd84ac4eb5b languageName: node linkType: hard -"@blocksuite/connector@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/connector@npm:0.0.0-20230501021333-90d9a4af-nightly" - checksum: e5b9d85c761c3d9dad806b14dd636c02e79a9dff9189400e340e5801f10d37c0b7a1782abe940f0fcbc337d362db07ed9d630ecbdc45b94b5d552780f422cc52 +"@blocksuite/connector@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/connector@npm:0.0.0-20230502232311-bfe52748-nightly" + checksum: b1d3653fd20cd06063ef3ad61320669d1c825e2288992d7bba6809fe4cd0c13320f30c01b14fc4f4ab7e6339d919d3c9d4e18560f2a1b3d2947ab43db01e8d27 languageName: node linkType: hard -"@blocksuite/editor@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/editor@npm:0.0.0-20230501021333-90d9a4af-nightly" +"@blocksuite/editor@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/editor@npm:0.0.0-20230502232311-bfe52748-nightly" dependencies: - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly lit: ^2.7.2 marked: ^4.2.12 turndown: ^7.1.1 peerDependencies: - "@blocksuite/blocks": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/store": 0.0.0-20230501021333-90d9a4af-nightly - checksum: 6ff81919d834372c1c8ebe4e044b4128b3f0627f7788aee758cae29cfd47da9783930abc689fbd9b205285c55ae91571e6dfc578d20b9acd4287c9b90079cebf + "@blocksuite/blocks": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/store": 0.0.0-20230502232311-bfe52748-nightly + checksum: d8f73e904ba96a02e32293bbb81379a0fdb34128aa252e85914dab7ffa30dae00753eefdea2f2de2a46930850038c3b7124c0a2ab0f307c8c10885bc3094a5de languageName: node linkType: hard -"@blocksuite/global@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/global@npm:0.0.0-20230501021333-90d9a4af-nightly" +"@blocksuite/global@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/global@npm:0.0.0-20230502232311-bfe52748-nightly" dependencies: ansi-colors: ^4.1.3 zod: ^3.21.4 @@ -2178,7 +2179,7 @@ __metadata: peerDependenciesMeta: lit: optional: true - checksum: 698fc2c6052de7bfae1c901b9c01d037b00adf295b138d19a3b0f63416db3bc723ae1f4e1aec5f54b4e5fb27af6a0b6e78aa146e253d6e2907894a39cb947234 + checksum: 4d39150cfd721cfa8f52ae8034032a52f6b1ee5f6aa19a1845faffc44ae1e58a2e39d0c302379f773ed100cdcb00e7bd352da920d9c768c8cdce8271aa9c7340 languageName: node linkType: hard @@ -2192,25 +2193,25 @@ __metadata: languageName: node linkType: hard -"@blocksuite/phasor@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/phasor@npm:0.0.0-20230501021333-90d9a4af-nightly" +"@blocksuite/phasor@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/phasor@npm:0.0.0-20230502232311-bfe52748-nightly" dependencies: - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly fractional-indexing: ^3.2.0 peerDependencies: nanoid: ^4 yjs: ^13 - checksum: b33feef84dd0a1c7868934c57b6a04a8e6583268c13071c6e459439e1c6677a1ddc55e537f841bb11166b8fe698755baf5ce8f8e84cb92895c458e4fa1ab55b6 + checksum: fc4a1a20120374e0bbbccca10b5a8cf5db309b9e3116df0b9222f6a76739ce1e07e4c799584264b2034eff67ddbceede158c6b2294d211d580cb2f1ccc433627 languageName: node linkType: hard -"@blocksuite/store@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/store@npm:0.0.0-20230501021333-90d9a4af-nightly" +"@blocksuite/store@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/store@npm:0.0.0-20230502232311-bfe52748-nightly" dependencies: - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/virgo": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/virgo": 0.0.0-20230502232311-bfe52748-nightly "@types/flexsearch": ^0.7.3 buffer: ^6.0.3 flexsearch: 0.7.21 @@ -2225,20 +2226,20 @@ __metadata: zod: ^3.21.4 peerDependencies: yjs: ^13 - checksum: 40e8de8ec21dbc23797086d59ad1ccd102faa6e7cca7e4399dd49b6bdfe1be0e8bb5f3815192e72e110d9791cd4475e3a9a6e3720f016d57b38a7b0bee3f20c1 + checksum: b7a1d728154c2593d376161738675d6fcd47b967a24622193cb4bbd1439c3a05201af96112ce7f7453e364a38dfdb97196a426b9975a60dcbee403e156b3b0bd languageName: node linkType: hard -"@blocksuite/virgo@npm:0.0.0-20230501021333-90d9a4af-nightly": - version: 0.0.0-20230501021333-90d9a4af-nightly - resolution: "@blocksuite/virgo@npm:0.0.0-20230501021333-90d9a4af-nightly" +"@blocksuite/virgo@npm:0.0.0-20230502232311-bfe52748-nightly": + version: 0.0.0-20230502232311-bfe52748-nightly + resolution: "@blocksuite/virgo@npm:0.0.0-20230502232311-bfe52748-nightly" dependencies: - "@blocksuite/global": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/global": 0.0.0-20230502232311-bfe52748-nightly zod: ^3.21.4 peerDependencies: lit: ^2.7 yjs: ^13 - checksum: d8d278ddde8c6dce4cfa68f1153b75694bbfad4eb2010377258acf0791f6a9f6664d4238edffd582c6267ed694af3853ad278663d0686c72b5fb7991371e6951 + checksum: eb22a2b5fd9e9f0fd9015d96364b09bf8af569ce36832b871b175b9ca579e6a6b862dc6bca815a86c863de35467f7622c193f431ee7e434732008e8f040381dc languageName: node linkType: hard @@ -5628,10 +5629,10 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/env@npm:13.3.5-canary.4" - checksum: 1ca0a8ff1bd6658ba536e2e56bfdb7007b5532504e606af561fd87392ed9e79e8b1d827325e30cd2592d99463883fcda79144086637352111efdb8c9d01ba149 +"@next/env@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/env@npm:13.3.5-canary.7" + checksum: 54e1f6c5a13803d703311cbdb66d47a3f8bdc06caefd2ae432878c3cd183b406689cfc2867a77c3c3c73fad7b784906222036ea3ff577f37c3099665b8b32656 languageName: node linkType: hard @@ -5644,65 +5645,65 @@ __metadata: languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-darwin-arm64@npm:13.3.5-canary.4" +"@next/swc-darwin-arm64@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-darwin-arm64@npm:13.3.5-canary.7" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-darwin-x64@npm:13.3.5-canary.4" +"@next/swc-darwin-x64@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-darwin-x64@npm:13.3.5-canary.7" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-linux-arm64-gnu@npm:13.3.5-canary.4" +"@next/swc-linux-arm64-gnu@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-linux-arm64-gnu@npm:13.3.5-canary.7" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-linux-arm64-musl@npm:13.3.5-canary.4" +"@next/swc-linux-arm64-musl@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-linux-arm64-musl@npm:13.3.5-canary.7" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-linux-x64-gnu@npm:13.3.5-canary.4" +"@next/swc-linux-x64-gnu@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-linux-x64-gnu@npm:13.3.5-canary.7" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-linux-x64-musl@npm:13.3.5-canary.4" +"@next/swc-linux-x64-musl@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-linux-x64-musl@npm:13.3.5-canary.7" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-win32-arm64-msvc@npm:13.3.5-canary.4" +"@next/swc-win32-arm64-msvc@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-win32-arm64-msvc@npm:13.3.5-canary.7" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-ia32-msvc@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-win32-ia32-msvc@npm:13.3.5-canary.4" +"@next/swc-win32-ia32-msvc@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-win32-ia32-msvc@npm:13.3.5-canary.7" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:13.3.5-canary.4": - version: 13.3.5-canary.4 - resolution: "@next/swc-win32-x64-msvc@npm:13.3.5-canary.4" +"@next/swc-win32-x64-msvc@npm:13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "@next/swc-win32-x64-msvc@npm:13.3.5-canary.7" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -7997,8 +7998,8 @@ __metadata: version: 0.0.0-use.local resolution: "@toeverything/y-indexeddb@workspace:packages/y-indexeddb" dependencies: - "@blocksuite/blocks": 0.0.0-20230501021333-90d9a4af-nightly - "@blocksuite/store": 0.0.0-20230501021333-90d9a4af-nightly + "@blocksuite/blocks": 0.0.0-20230502232311-bfe52748-nightly + "@blocksuite/store": 0.0.0-20230502232311-bfe52748-nightly idb: ^7.1.1 vite: ^4.3.4 vite-plugin-dts: ^2.3.0 @@ -19172,20 +19173,20 @@ __metadata: languageName: node linkType: hard -"next@npm:^13.3.5-canary.3": - version: 13.3.5-canary.4 - resolution: "next@npm:13.3.5-canary.4" +"next@npm:^13.3.5-canary.7": + version: 13.3.5-canary.7 + resolution: "next@npm:13.3.5-canary.7" dependencies: - "@next/env": 13.3.5-canary.4 - "@next/swc-darwin-arm64": 13.3.5-canary.4 - "@next/swc-darwin-x64": 13.3.5-canary.4 - "@next/swc-linux-arm64-gnu": 13.3.5-canary.4 - "@next/swc-linux-arm64-musl": 13.3.5-canary.4 - "@next/swc-linux-x64-gnu": 13.3.5-canary.4 - "@next/swc-linux-x64-musl": 13.3.5-canary.4 - "@next/swc-win32-arm64-msvc": 13.3.5-canary.4 - "@next/swc-win32-ia32-msvc": 13.3.5-canary.4 - "@next/swc-win32-x64-msvc": 13.3.5-canary.4 + "@next/env": 13.3.5-canary.7 + "@next/swc-darwin-arm64": 13.3.5-canary.7 + "@next/swc-darwin-x64": 13.3.5-canary.7 + "@next/swc-linux-arm64-gnu": 13.3.5-canary.7 + "@next/swc-linux-arm64-musl": 13.3.5-canary.7 + "@next/swc-linux-x64-gnu": 13.3.5-canary.7 + "@next/swc-linux-x64-musl": 13.3.5-canary.7 + "@next/swc-win32-arm64-msvc": 13.3.5-canary.7 + "@next/swc-win32-ia32-msvc": 13.3.5-canary.7 + "@next/swc-win32-x64-msvc": 13.3.5-canary.7 "@swc/helpers": 0.5.1 busboy: 1.6.0 caniuse-lite: ^1.0.30001406 @@ -19228,7 +19229,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: 3a57a2e17e8d2572c8aabaa77ff236694c8dee87bfb5b8c2c6b52c38d49ab4d71d3f936bf22ba111b8ae9d0832f06e62cc4f73a6cb42f1cb469c7bc222cd0ef9 + checksum: 8b3a3ec8d67e0946e6399924eefabfedb91b5280a2accb2deb2a886c08bfd2ce107894cdd9f12c76f6f371bf995cc5ab65ce78bc613a98e9ebf62ac1ed99d082 languageName: node linkType: hard @@ -24898,9 +24899,9 @@ __metadata: languageName: node linkType: hard -"webpack@npm:^5.81.0": - version: 5.81.0 - resolution: "webpack@npm:5.81.0" +"webpack@npm:^5.82.0": + version: 5.82.0 + resolution: "webpack@npm:5.82.0" dependencies: "@types/eslint-scope": ^3.7.3 "@types/estree": ^1.0.0 @@ -24931,7 +24932,7 @@ __metadata: optional: true bin: webpack: bin/webpack.js - checksum: 1a6eecaffac3226d80f4e8f330b32e0ff117d9dafd8700166d230afbc171d68ea1ff55a9939fa789307f7b9d11881889ccb8e6cd79d4ccbaeef916788ce73fdb + checksum: 499e7f5f24fccaa76f64f2a01f91f371073416f568ef6171dc73187a89078f0c33410d4c9f40d411f0827bab8455f8476eabd803ef4d2920d9a2e5f17efa2703 languageName: node linkType: hard