There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat: bump blocksuite (#5845)
Ayush Agrawal6fad2413504d
diff --git a/packages/common/env/package.json b/packages/common/env/package.jsonindex 5539e8ddfe..eb0f5a317e 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.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/global": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","react": "18.2.0","react-dom": "18.2.0","vitest": "1.2.2"diff --git a/packages/common/env/src/global.ts b/packages/common/env/src/global.tsindex 0f05b45d84..69981013a1 100644--- a/packages/common/env/src/global.ts+++ b/packages/common/env/src/global.ts@@ -7,6 +7,7 @@ import { isDesktop, isServer } from './constant.js';import { UaHelper } from './ua-helper.js';export const blockSuiteFeatureFlags = z.object({+ enable_synced_doc_block: z.boolean(),enable_expand_database_block: z.boolean(),enable_bultin_ledits: z.boolean(),});diff --git a/packages/common/infra/package.json b/packages/common/infra/package.jsonindex 25c0d6c5af..7e95ee3af5 100644--- a/packages/common/infra/package.json+++ b/packages/common/infra/package.json@@ -17,9 +17,9 @@"@affine/debug": "workspace:*","@affine/env": "workspace:*","@affine/templates": "workspace:*",- "@blocksuite/blocks": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/global": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/blocks": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/global": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","foxact": "^0.2.20","jotai": "^2.5.1","jotai-effect": "^0.5.0",@@ -33,8 +33,8 @@"devDependencies": {"@affine-test/fixtures": "workspace:*","@affine/templates": "workspace:*",- "@blocksuite/lit": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/presets": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/lit": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/presets": "0.12.0-canary-202402200831-bc2769f","@testing-library/react": "^14.0.0","async-call-rpc": "^6.3.1","react": "^18.2.0",diff --git a/packages/common/infra/src/blocksuite/initialization/index.ts b/packages/common/infra/src/blocksuite/initialization/index.tsindex 04423b2389..e5b1ffa7b6 100644--- a/packages/common/infra/src/blocksuite/initialization/index.ts+++ b/packages/common/infra/src/blocksuite/initialization/index.ts@@ -13,8 +13,8 @@ import { Map as YMap } from 'yjs';import { getLatestVersions } from '../migration/blocksuite';import { replaceIdMiddleware } from './middleware';-export async function initEmptyPage(page: Page, title?: string) {- await page.load(() => {+export function initEmptyPage(page: Page, title?: string) {+ page.load(() => {const pageBlockId = page.addBlock('affine:page', {title: new page.Text(title ?? ''),});diff --git a/packages/common/infra/src/workspace/__tests__/workspace.spec.ts b/packages/common/infra/src/workspace/__tests__/workspace.spec.tsindex 8d15d1196c..aedb3a01b0 100644--- a/packages/common/infra/src/workspace/__tests__/workspace.spec.ts+++ b/packages/common/infra/src/workspace/__tests__/workspace.spec.ts@@ -25,7 +25,7 @@ describe('Workspace System', () => {const page = workspace.blockSuiteWorkspace.createPage({id: 'page0',});- await page.load();+ page.load();page.addBlock('affine:page', {title: new page.Text('test-page'),});diff --git a/packages/common/infra/src/workspace/engine/sync/__tests__/engine.spec.ts b/packages/common/infra/src/workspace/engine/sync/__tests__/engine.spec.tsindex f29fac9122..773b5f91d3 100644--- a/packages/common/infra/src/workspace/engine/sync/__tests__/engine.spec.ts+++ b/packages/common/infra/src/workspace/engine/sync/__tests__/engine.spec.ts@@ -45,7 +45,7 @@ describe('SyncEngine', () => {const page = workspace.createPage({id: 'page0',});- await page.load();+ page.load();const pageBlockId = page.addBlock('affine:page', {title: new page.Text(''),});diff --git a/packages/common/infra/src/workspace/engine/sync/__tests__/peer.spec.ts b/packages/common/infra/src/workspace/engine/sync/__tests__/peer.spec.tsindex b9c53e444f..da2c406404 100644--- a/packages/common/infra/src/workspace/engine/sync/__tests__/peer.spec.ts+++ b/packages/common/infra/src/workspace/engine/sync/__tests__/peer.spec.ts@@ -38,7 +38,7 @@ describe('SyncPeer', () => {const page = workspace.createPage({id: 'page0',});- await page.load();+ page.load();const pageBlockId = page.addBlock('affine:page', {title: new page.Text(''),});@@ -89,7 +89,7 @@ describe('SyncPeer', () => {id: 'page0',});expect(syncPeer.status.step).toBe(SyncPeerStep.LoadingSubDoc);- await page.load();+ page.load();await syncPeer.waitForSynced();page.addBlock('affine:page', {title: new page.Text(''),diff --git a/packages/common/infra/src/workspace/manager.ts b/packages/common/infra/src/workspace/manager.tsindex e1ba7f7167..c4c8fd756d 100644--- a/packages/common/infra/src/workspace/manager.ts+++ b/packages/common/infra/src/workspace/manager.ts@@ -1,4 +1,5 @@import { DebugLogger } from '@affine/debug';+import { setupEditorFlags } from '@affine/env/global';import { WorkspaceFlavour } from '@affine/env/workspace';import { assertEquals } from '@blocksuite/global/utils';import type { Workspace as BlockSuiteWorkspace } from '@blocksuite/store';@@ -192,6 +193,8 @@ export class WorkspaceManager {// apply compatibility fixfixWorkspaceVersion(workspace.blockSuiteWorkspace.doc);+ setupEditorFlags(workspace.blockSuiteWorkspace);+return workspace;}}diff --git a/packages/common/y-indexeddb/package.json b/packages/common/y-indexeddb/package.jsonindex a116a57cd9..0c47f2b4b1 100644--- a/packages/common/y-indexeddb/package.json+++ b/packages/common/y-indexeddb/package.json@@ -32,14 +32,14 @@}},"dependencies": {- "@blocksuite/global": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/global": "0.12.0-canary-202402200831-bc2769f","idb": "^8.0.0","nanoid": "^5.0.3","y-provider": "workspace:*"},"devDependencies": {- "@blocksuite/blocks": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/blocks": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","fake-indexeddb": "^5.0.0","vite": "^5.0.6","vite-plugin-dts": "3.7.2",diff --git a/packages/common/y-indexeddb/src/__tests__/index.spec.ts b/packages/common/y-indexeddb/src/__tests__/index.spec.tsindex 2d597dd0cd..4ca121bd9f 100644--- a/packages/common/y-indexeddb/src/__tests__/index.spec.ts+++ b/packages/common/y-indexeddb/src/__tests__/index.spec.ts@@ -100,7 +100,7 @@ describe('indexeddb provider', () => {],});const page = workspace.createPage({ id: 'page0' });- await page.waitForLoaded();+ page.waitForLoaded();const pageBlockId = page.addBlock('affine:page', { title: '' });const frameId = page.addBlock('affine:note', {}, pageBlockId);page.addBlock('affine:paragraph', {}, frameId);@@ -129,7 +129,7 @@ describe('indexeddb provider', () => {| WorkspacePersist| undefined;assertExists(data);- await testWorkspace.getPage('page0')?.waitForLoaded();+ testWorkspace.getPage('page0')?.waitForLoaded();data.updates.forEach(({ update }) => {Workspace.Y.applyUpdate(subPage, update);});@@ -148,7 +148,7 @@ describe('indexeddb provider', () => {expect(provider.connected).toBe(false);{const page = workspace.createPage({ id: 'page0' });- await page.waitForLoaded();+ page.waitForLoaded();const pageBlockId = page.addBlock('affine:page', { title: '' });const frameId = page.addBlock('affine:note', {}, pageBlockId);page.addBlock('affine:paragraph', {}, frameId);@@ -203,7 +203,7 @@ describe('indexeddb provider', () => {provider.connect();{const page = workspace.createPage({ id: 'page0' });- await page.waitForLoaded();+ page.waitForLoaded();const pageBlockId = page.addBlock('affine:page', { title: '' });const frameId = page.addBlock('affine:note', {}, pageBlockId);for (let i = 0; i < 99; i++) {@@ -369,14 +369,14 @@ describe('subDoc', () => {const page0 = workspace.createPage({id: 'page0',});- await page0.waitForLoaded();+ page0.waitForLoaded();const { paragraphBlockId: paragraphBlockIdPage1 } = initEmptyPage(page0);const provider = createIndexedDBProvider(workspace.doc, rootDBName);provider.connect();const page1 = workspace.createPage({id: 'page1',});- await page1.waitForLoaded();+ page1.waitForLoaded();const { paragraphBlockId: paragraphBlockIdPage2 } = initEmptyPage(page1);await setTimeout(200);provider.disconnect();@@ -390,14 +390,14 @@ describe('subDoc', () => {provider.connect();await setTimeout(200);const page0 = newWorkspace.getPage('page0') as Page;- await page0.waitForLoaded();+ page0.waitForLoaded();await setTimeout(200);{const block = page0.getBlockById(paragraphBlockIdPage1);assertExists(block);}const page1 = newWorkspace.getPage('page1') as Page;- await page1.waitForLoaded();+ page1.waitForLoaded();await setTimeout(200);{const block = page1.getBlockById(paragraphBlockIdPage2);@@ -410,7 +410,7 @@ describe('subDoc', () => {describe('utils', () => {test('download binary', async () => {const page = workspace.createPage({ id: 'page0' });- await page.waitForLoaded();+ page.waitForLoaded();initEmptyPage(page);const provider = createIndexedDBProvider(workspace.doc, rootDBName);provider.connect();diff --git a/packages/common/y-provider/package.json b/packages/common/y-provider/package.jsonindex ee443f39ff..912a12e0e0 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.12.0-canary-202402091051-49c1eff",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","vite": "^5.0.6","vite-plugin-dts": "3.7.2","vitest": "1.2.2",diff --git a/packages/frontend/component/package.json b/packages/frontend/component/package.jsonindex 43456f3e80..93cd9369e2 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.12.0-canary-202402091051-49c1eff",- "@blocksuite/global": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/blocks": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/global": "0.12.0-canary-202402200831-bc2769f","@blocksuite/icons": "2.1.44",- "@blocksuite/lit": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/presets": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/lit": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/presets": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","@storybook/addon-actions": "^7.5.3","@storybook/addon-essentials": "^7.5.3","@storybook/addon-interactions": "^7.5.3",diff --git a/packages/frontend/core/.webpack/runtime-config.ts b/packages/frontend/core/.webpack/runtime-config.tsindex 6c4910ac6f..6841ae540c 100644--- a/packages/frontend/core/.webpack/runtime-config.ts+++ b/packages/frontend/core/.webpack/runtime-config.ts@@ -5,7 +5,14 @@ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);const packageJson = require('../package.json');-const editorFlags: BlockSuiteFeatureFlags = {+const editorFlagsStable: BlockSuiteFeatureFlags = {+ enable_synced_doc_block: false,+ enable_expand_database_block: false,+ enable_bultin_ledits: false,+};++const editorFlagsCanary: BlockSuiteFeatureFlags = {+ enable_synced_doc_block: true,enable_expand_database_block: false,enable_bultin_ledits: false,};@@ -32,7 +39,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {enablePayment: true,enablePageHistory: true,serverUrlPrefix: 'https://app.affine.pro',- editorFlags,+ editorFlags: editorFlagsStable,appVersion: packageJson.version,editorVersion: packageJson.dependencies['@blocksuite/presets'],appBuildType: 'stable',@@ -73,7 +80,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {enablePayment: true,enablePageHistory: true,serverUrlPrefix: 'https://affine.fail',- editorFlags,+ editorFlags: editorFlagsCanary,appVersion: packageJson.version,editorVersion: packageJson.dependencies['@blocksuite/presets'],appBuildType: 'canary',diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.jsonindex 66837f8e9c..8640f1ebb7 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-impl": "workspace:*",- "@blocksuite/block-std": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/blocks": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/global": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/block-std": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/blocks": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/global": "0.12.0-canary-202402200831-bc2769f","@blocksuite/icons": "2.1.44",- "@blocksuite/inline": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/lit": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/presets": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/inline": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/lit": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/presets": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","@dnd-kit/core": "^6.0.8","@dnd-kit/sortable": "^8.0.0","@emotion/cache": "^11.11.0",diff --git a/packages/frontend/core/src/bootstrap/first-app-data.ts b/packages/frontend/core/src/bootstrap/first-app-data.tsindex 251f44feec..156a8c4b54 100644--- a/packages/frontend/core/src/bootstrap/first-app-data.ts+++ b/packages/frontend/core/src/bootstrap/first-app-data.ts@@ -33,7 +33,7 @@ export async function createFirstAppData(workspaceManager: WorkspaceManager) {workspace.setPageMeta(page.id, {jumpOnce: true,});- await initEmptyPage(page);+ initEmptyPage(page);}logger.debug('create first workspace');}diff --git a/packages/frontend/core/src/components/affine/create-workspace-modal/index.tsx b/packages/frontend/core/src/components/affine/create-workspace-modal/index.tsxindex 0e7d7f9747..3f1cd8ada5 100644--- a/packages/frontend/core/src/components/affine/create-workspace-modal/index.tsx+++ b/packages/frontend/core/src/components/affine/create-workspace-modal/index.tsx@@ -164,7 +164,7 @@ export const CreateWorkspaceModal = ({workspace.setPageMeta(page.id, {jumpOnce: true,});- await initEmptyPage(page);+ initEmptyPage(page);}logger.debug('create first workspace');}diff --git a/packages/frontend/core/src/components/affine/page-history-modal/data.ts b/packages/frontend/core/src/components/affine/page-history-modal/data.tsindex 41a097dcd7..fbb3ca10b0 100644--- a/packages/frontend/core/src/components/affine/page-history-modal/data.ts+++ b/packages/frontend/core/src/components/affine/page-history-modal/data.ts@@ -161,12 +161,10 @@ export const useSnapshotPage = (});page.awarenessStore.setReadonly(page, true);const spaceDoc = page.spaceDoc;- page- .load(() => {- applyUpdate(spaceDoc, new Uint8Array(snapshot));- historyShellWorkspace.schema.upgradePage(0, {}, spaceDoc);- })- .catch(console.error); // must load before applyUpdate+ page.load(() => {+ applyUpdate(spaceDoc, new Uint8Array(snapshot));+ historyShellWorkspace.schema.upgradePage(0, {}, spaceDoc);+ }); // must load before applyUpdate}return page ?? undefined;}, [pageDocId, snapshot, ts, workspace]);diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor.tsxindex 532073dc09..9f5d3efd6e 100644--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor.tsx+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor.tsx@@ -39,7 +39,7 @@ export type EditorProps = {function usePageRoot(page: Page) {if (!page.ready) {- use(page.load());+ page.load();}if (!page.root) {diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-page-list/utils.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-page-list/utils.tsxindex 02ff39ab84..a288ba9a70 100644--- a/packages/frontend/core/src/components/blocksuite/block-suite-page-list/utils.tsx+++ b/packages/frontend/core/src/components/blocksuite/block-suite-page-list/utils.tsx@@ -27,9 +27,7 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => {const createPageAndOpen = useCallback((mode?: 'page' | 'edgeless') => {const page = createPage();- initEmptyPage(page).catch(error => {- toast(`Failed to initialize Page: ${error.message}`);- });+ initEmptyPage(page);setPageMode(page.id, mode || 'page');openPage(blockSuiteWorkspace.id, page.id);return page;@@ -66,10 +64,10 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => {const createLinkedPageAndOpen = useAsyncCallback(async (pageId: string) => {const page = createPageAndOpen();- await page.load();+ page.load();const parentPage = blockSuiteWorkspace.getPage(pageId);if (parentPage) {- await parentPage.load();+ parentPage.load();const text = parentPage.Text.fromDelta([{insert: ' ',diff --git a/packages/frontend/core/src/components/page-list/__tests__/use-block-suite-page-preview.spec.ts b/packages/frontend/core/src/components/page-list/__tests__/use-block-suite-page-preview.spec.tsindex 92b9ed5102..e36be557e9 100644--- a/packages/frontend/core/src/components/page-list/__tests__/use-block-suite-page-preview.spec.ts+++ b/packages/frontend/core/src/components/page-list/__tests__/use-block-suite-page-preview.spec.ts@@ -22,7 +22,7 @@ beforeEach(async () => {vi.useFakeTimers({ toFake: ['requestIdleCallback'] });blockSuiteWorkspace = new BlockSuiteWorkspace({ id: 'test', schema });const initPage = async (page: Page) => {- await page.waitForLoaded();+ page.waitForLoaded();expect(page).not.toBeNull();assertExists(page);const pageBlockId = page.addBlock('affine:page', {diff --git a/packages/frontend/core/src/components/page-list/use-block-suite-workspace-page.ts b/packages/frontend/core/src/components/page-list/use-block-suite-workspace-page.tsindex 0039201bfc..d375a566c5 100644--- a/packages/frontend/core/src/components/page-list/use-block-suite-workspace-page.ts+++ b/packages/frontend/core/src/components/page-list/use-block-suite-workspace-page.ts@@ -1,10 +1,7 @@-import { DebugLogger } from '@affine/debug';import { DisposableGroup } from '@blocksuite/global/utils';import type { Page, Workspace } from '@blocksuite/store';import { useEffect, useState } from 'react';-const logger = new DebugLogger('use-block-suite-workspace-page');-export function useBlockSuiteWorkspacePage(blockSuiteWorkspace: Workspace,pageId: string | null@@ -36,9 +33,7 @@ export function useBlockSuiteWorkspacePage(useEffect(() => {if (page && !page.loaded) {- page.load().catch(err => {- logger.error('Failed to load page', err);- });+ page.load();}}, [page]);diff --git a/packages/frontend/core/src/components/pure/cmdk/data-hooks.tsx b/packages/frontend/core/src/components/pure/cmdk/data-hooks.tsxindex 745850aa56..f1d4faa7e1 100644--- a/packages/frontend/core/src/components/pure/cmdk/data-hooks.tsx+++ b/packages/frontend/core/src/components/pure/cmdk/data-hooks.tsx@@ -247,7 +247,7 @@ export const usePageCommands = () => {category: 'affine:creation',run: async () => {const page = pageHelper.createPage();- await page.load();+ page.load();pageMetaHelper.setPageTitle(page.id, query);},icon: <PageIcon />,@@ -262,7 +262,7 @@ export const usePageCommands = () => {category: 'affine:creation',run: async () => {const page = pageHelper.createEdgeless();- await page.load();+ page.load();pageMetaHelper.setPageTitle(page.id, query);},icon: <EdgelessIcon />,diff --git a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/add-favourite-button.tsx b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/add-favourite-button.tsxindex 2bebff6464..feb1311775 100644--- a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/add-favourite-button.tsx+++ b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/add-favourite-button.tsx@@ -25,7 +25,7 @@ export const AddFavouriteButton = ({createLinkedPage(pageId);} else {const page = createPage();- await page.load();+ page.load();setPageMeta(page.id, { favorite: true });}},diff --git a/packages/frontend/core/src/components/root-app-sidebar/index.tsx b/packages/frontend/core/src/components/root-app-sidebar/index.tsxindex d28a0867b3..90cb6331fb 100644--- a/packages/frontend/core/src/components/root-app-sidebar/index.tsx+++ b/packages/frontend/core/src/components/root-app-sidebar/index.tsx@@ -115,7 +115,7 @@ export const RootAppSidebar = ({const onClickNewPage = useAsyncCallback(async () => {const page = createPage();- await page.waitForLoaded();+ page.waitForLoaded();openPage(page.id);}, [createPage, openPage]);diff --git a/packages/frontend/core/src/hooks/__tests__/use-block-suite-workspace-helper.spec.ts b/packages/frontend/core/src/hooks/__tests__/use-block-suite-workspace-helper.spec.tsindex 1592bf85e2..b9a315a06b 100644--- a/packages/frontend/core/src/hooks/__tests__/use-block-suite-workspace-helper.spec.ts+++ b/packages/frontend/core/src/hooks/__tests__/use-block-suite-workspace-helper.spec.ts@@ -22,9 +22,9 @@ beforeEach(async () => {id: 'test',schema,});- await initEmptyPage(blockSuiteWorkspace.createPage({ id: 'page0' }));- await initEmptyPage(blockSuiteWorkspace.createPage({ id: 'page1' }));- await initEmptyPage(blockSuiteWorkspace.createPage({ id: 'page2' }));+ initEmptyPage(blockSuiteWorkspace.createPage({ id: 'page0' }));+ initEmptyPage(blockSuiteWorkspace.createPage({ id: 'page1' }));+ initEmptyPage(blockSuiteWorkspace.createPage({ id: 'page2' }));});describe('useBlockSuiteWorkspaceHelper', () => {diff --git a/packages/frontend/core/src/hooks/affine/use-block-suite-meta-helper.ts b/packages/frontend/core/src/hooks/affine/use-block-suite-meta-helper.tsindex b96c69282e..aa6ac4b3cc 100644--- a/packages/frontend/core/src/hooks/affine/use-block-suite-meta-helper.ts+++ b/packages/frontend/core/src/hooks/affine/use-block-suite-meta-helper.ts@@ -154,7 +154,7 @@ export function useBlockSuiteMetaHelper(const newPage = createPage();const currentPage = blockSuiteWorkspace.getPage(pageId);- await newPage.waitForLoaded();+ newPage.waitForLoaded();if (!currentPageMeta || !currentPage) {return;}diff --git a/packages/frontend/core/src/hooks/use-block-suite-workspace-page.ts b/packages/frontend/core/src/hooks/use-block-suite-workspace-page.tsindex 1e6c069788..3d889ef762 100644--- a/packages/frontend/core/src/hooks/use-block-suite-workspace-page.ts+++ b/packages/frontend/core/src/hooks/use-block-suite-workspace-page.ts@@ -1,10 +1,7 @@-import { DebugLogger } from '@affine/debug';import { DisposableGroup } from '@blocksuite/global/utils';import type { Page, Workspace } from '@blocksuite/store';import { useEffect, useState } from 'react';-const logger = new DebugLogger('use-block-suite-workspace-page');-export function useBlockSuiteWorkspacePage(blockSuiteWorkspace: Workspace,pageId: string | null@@ -36,9 +33,7 @@ export function useBlockSuiteWorkspacePage(useEffect(() => {if (page && !page.loaded) {- page.load().catch(err => {- logger.error('Failed to load page', err);- });+ page.load();}}, [page]);diff --git a/packages/frontend/core/src/hooks/use-journal.ts b/packages/frontend/core/src/hooks/use-journal.tsindex 0ce612980b..e10af088be 100644--- a/packages/frontend/core/src/hooks/use-journal.ts+++ b/packages/frontend/core/src/hooks/use-journal.ts@@ -37,9 +37,7 @@ export const useJournalHelper = (workspace: BlockSuiteWorkspace) => {page.workspace.setPageMeta(page.id, {createDate: dayjs(maybeDate).toDate().getTime(),});- initEmptyPage(page, title).catch(err =>- console.error('Failed to load journal page', err)- );+ initEmptyPage(page, title);adapter.setJournalPageDateString(page.id, title);return page;},diff --git a/packages/frontend/core/src/testing.ts b/packages/frontend/core/src/testing.tsindex cf017d555c..fd963cc908 100644--- a/packages/frontend/core/src/testing.ts+++ b/packages/frontend/core/src/testing.ts@@ -24,7 +24,7 @@ export async function configureTestingEnvironment() {const { workspace } = workspaceManager.open(await workspaceManager.createWorkspace(WorkspaceFlavour.LOCAL, async ws => {const initPage = async (page: BlockSuitePage) => {- await page.load();+ page.load();const pageBlockId = page.addBlock('affine:page', {title: new page.Text(''),});diff --git a/packages/frontend/electron/package.json b/packages/frontend/electron/package.jsonindex fc69ec1772..cf1224c72c 100644--- a/packages/frontend/electron/package.json+++ b/packages/frontend/electron/package.json@@ -25,10 +25,10 @@"@affine-test/kit": "workspace:*","@affine/env": "workspace:*","@affine/native": "workspace:*",- "@blocksuite/blocks": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/lit": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/presets": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/blocks": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/lit": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/presets": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","@electron-forge/cli": "^7.2.0","@electron-forge/core": "^7.2.0","@electron-forge/core-utils": "^7.2.0",diff --git a/packages/frontend/workspace-impl/src/local/__tests__/engine.spec.ts b/packages/frontend/workspace-impl/src/local/__tests__/engine.spec.tsindex 2ecda17ad1..5b4d732f48 100644--- a/packages/frontend/workspace-impl/src/local/__tests__/engine.spec.ts+++ b/packages/frontend/workspace-impl/src/local/__tests__/engine.spec.ts@@ -40,7 +40,7 @@ describe('SyncEngine', () => {const page = workspace.createPage({id: 'page0',});- await page.load();+ page.load();const pageBlockId = page.addBlock('affine:page', {title: new page.Text(''),});diff --git a/packages/frontend/workspace-impl/src/local/__tests__/peer.spec.ts b/packages/frontend/workspace-impl/src/local/__tests__/peer.spec.tsindex e4b62de856..69598a8a33 100644--- a/packages/frontend/workspace-impl/src/local/__tests__/peer.spec.ts+++ b/packages/frontend/workspace-impl/src/local/__tests__/peer.spec.ts@@ -34,7 +34,7 @@ describe('SyncPeer', () => {const page = workspace.createPage({id: 'page0',});- await page.load();+ page.load();const pageBlockId = page.addBlock('affine:page', {title: new page.Text(''),});@@ -83,7 +83,7 @@ describe('SyncPeer', () => {id: 'page0',});expect(syncPeer.status.step).toBe(SyncPeerStep.LoadingSubDoc);- await page.load();+ page.load();await syncPeer.waitForSynced();page.addBlock('affine:page', {title: new page.Text(''),diff --git a/tests/storybook/package.json b/tests/storybook/package.jsonindex 31e81d18e1..d042a50e48 100644--- a/tests/storybook/package.json+++ b/tests/storybook/package.json@@ -22,14 +22,14 @@"storybook-addon-react-router-v6": "^2.0.10"},"devDependencies": {- "@blocksuite/block-std": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/blocks": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/global": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/block-std": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/blocks": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/global": "0.12.0-canary-202402200831-bc2769f","@blocksuite/icons": "2.1.44",- "@blocksuite/inline": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/lit": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/presets": "0.12.0-canary-202402091051-49c1eff",- "@blocksuite/store": "0.12.0-canary-202402091051-49c1eff",+ "@blocksuite/inline": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/lit": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/presets": "0.12.0-canary-202402200831-bc2769f",+ "@blocksuite/store": "0.12.0-canary-202402200831-bc2769f","@storybook/addon-actions": "^7.5.3","@storybook/addon-essentials": "^7.5.3","@storybook/addon-interactions": "^7.5.3",diff --git a/tests/storybook/src/stories/blocksuite-editor.stories.tsx b/tests/storybook/src/stories/blocksuite-editor.stories.tsxindex 219a14e44d..1b67384a18 100644--- a/tests/storybook/src/stories/blocksuite-editor.stories.tsx+++ b/tests/storybook/src/stories/blocksuite-editor.stories.tsx@@ -14,7 +14,7 @@ async function createAndInitPage(preview: string) {const page = workspace.createPage();- await initEmptyPage(page, title);+ initEmptyPage(page, title);page.getBlockByFlavour('affine:paragraph').at(0)?.text?.insert(preview, 0);return page;}diff --git a/tests/storybook/src/stories/page-list.stories.tsx b/tests/storybook/src/stories/page-list.stories.tsxindex f232bcad0b..f7da05cdd5 100644--- a/tests/storybook/src/stories/page-list.stories.tsx+++ b/tests/storybook/src/stories/page-list.stories.tsx@@ -231,7 +231,7 @@ async function createAndInitPage(preview: string) {const page = workspace.createPage();- await initEmptyPage(page, title);+ initEmptyPage(page, title);page.getBlockByFlavour('affine:paragraph').at(0)?.text?.insert(preview, 0);return page;}diff --git a/yarn.lock b/yarn.lockindex 866ab72c7b..2f5e5a2c6b 100644--- a/yarn.lock+++ b/yarn.lock@@ -202,12 +202,12 @@ __metadata:"@affine/electron-api": "workspace:*""@affine/graphql": "workspace:*""@affine/i18n": "workspace:*"- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f""@blocksuite/icons": "npm:2.1.44"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/presets": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/presets": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@dnd-kit/core": "npm:^6.0.8""@dnd-kit/modifiers": "npm:^7.0.0""@dnd-kit/sortable": "npm:^8.0.0"@@ -304,14 +304,14 @@ __metadata:"@affine/templates": "workspace:*""@affine/workspace-impl": "workspace:*""@aws-sdk/client-s3": "npm:3.504.0"- "@blocksuite/block-std": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/block-std": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f""@blocksuite/icons": "npm:2.1.44"- "@blocksuite/inline": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/presets": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/inline": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/presets": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@dnd-kit/core": "npm:^6.0.8""@dnd-kit/sortable": "npm:^8.0.0""@emotion/cache": "npm:^11.11.0"@@ -438,10 +438,10 @@ __metadata:"@affine-test/kit": "workspace:*""@affine/env": "workspace:*""@affine/native": "workspace:*"- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/presets": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/presets": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@electron-forge/cli": "npm:^7.2.0""@electron-forge/core": "npm:^7.2.0""@electron-forge/core-utils": "npm:^7.2.0"@@ -489,8 +489,8 @@ __metadata:version: 0.0.0-use.localresolution: "@affine/env@workspace:packages/common/env"dependencies:- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f"lit: "npm:^3.0.2"react: "npm:18.2.0"react-dom: "npm:18.2.0"@@ -738,14 +738,14 @@ __metadata:"@affine/component": "workspace:*""@affine/i18n": "workspace:*""@affine/workspace-impl": "workspace:*"- "@blocksuite/block-std": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/block-std": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f""@blocksuite/icons": "npm:2.1.44"- "@blocksuite/inline": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/presets": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/inline": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/presets": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@dnd-kit/sortable": "npm:^8.0.0""@storybook/addon-actions": "npm:^7.5.3""@storybook/addon-essentials": "npm:^7.5.3"@@ -3413,29 +3413,29 @@ __metadata:languageName: nodelinkType: hard-"@blocksuite/block-std@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/block-std@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/block-std@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/block-std@npm:0.12.0-canary-202402200831-bc2769f"dependencies:- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"lz-string: "npm:^1.5.0"w3c-keyname: "npm:^2.2.8"zod: "npm:^3.22.4"peerDependencies:- "@blocksuite/store": 0.12.0-canary-202402091051-49c1eff- checksum: 10/d0918252b2721a69ee68fe8141904944d5d1370589379f5548de6380b346151c494e5656b243f2bee14fa04fdebffb9ed6b6cd9f5041a22397a3cd8320ebfe70+ "@blocksuite/store": 0.12.0-canary-202402200831-bc2769f+ checksum: 10/2d86dd8cfcfc4c0d661efa1211406333ba83a0bd636ab8e4f36cd68a720736409559baecf1c3c1c5d23362a4705fbd65baa629c805c34682b47cfe309df8e085languageName: nodelinkType: hard-"@blocksuite/blocks@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/blocks@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/blocks@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/blocks@npm:0.12.0-canary-202402200831-bc2769f"dependencies:- "@blocksuite/block-std": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/inline": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/block-std": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/inline": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@floating-ui/dom": "npm:^1.5.4""@toeverything/theme": "npm:^0.7.27""@types/hast": "npm:^3.0.3"@@ -3469,16 +3469,16 @@ __metadata:unified: "npm:^11.0.4"webfontloader: "npm:^1.6.28"zod: "npm:^3.22.4"- checksum: 10/31f00bb34cad484775676229fa611f2746c79cfb7a2a70d3e64fc8f75ea22d0066f31525e44cdf7f6e17ecfb2c02353e79b05084e231812f9fa8a51a7800a5ad+ checksum: 10/002c829a4c8735bfa72cc3574711ba4cf7945eda9abbde96273ed07e48ebb7edec118a9855ce86f99c80822f0d52c87b151539824915df98574b62a7bc6c2f1flanguageName: nodelinkType: hard-"@blocksuite/global@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/global@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/global@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/global@npm:0.12.0-canary-202402200831-bc2769f"dependencies:zod: "npm:^3.22.4"- checksum: 10/82b3b2dac28290b4a2e58f81a3af2881d8b3ce821c6ed09c2106500ea579871cec9823a58c7a5c8470942e0c2f630c21e99e6ed7edd932e0495376f83946787b+ checksum: 10/25feca841b607987f499427a2ff2b05fda278b2c61c4004a23744f8cd387f854a2c7e8971a44b05990e3dcd22ba86e55fd17cbed77c958f382b9d760f4cde622languageName: nodelinkType: hard@@ -3492,58 +3492,59 @@ __metadata:languageName: nodelinkType: hard-"@blocksuite/inline@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/inline@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/inline@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/inline@npm:0.12.0-canary-202402200831-bc2769f"dependencies:- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"zod: "npm:^3.22.4"peerDependencies:lit: ^3.1.1yjs: ^13- checksum: 10/834eda448b5005b859a0125cc6ae164ed1db809916ac9d43b80faf080b093c350294891b23bd58279a717228d0a2325500393340fef7386bc6db379b1ebec459+ checksum: 10/b388c01aba167a3fb2659d2152ad13e70f7abdef2e96008fd3b138a2929866de1fa3c9174c8874e6bff4f94a3b74cf5307bf900314428776bf4dd61dca7a971blanguageName: nodelinkType: hard-"@blocksuite/lit@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/lit@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/lit@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/lit@npm:0.12.0-canary-202402200831-bc2769f"dependencies:- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/inline": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/inline": "npm:0.12.0-canary-202402200831-bc2769f"lit: "npm:^3.1.1"peerDependencies:- "@blocksuite/block-std": 0.12.0-canary-202402091051-49c1eff- "@blocksuite/store": 0.12.0-canary-202402091051-49c1eff- checksum: 10/7fea79dc1690cdfe8fe2a8c4070684acbda9da3424e3aae2245464ddaad3a0a8598206116bea988e8aad558652d426154a461a6668296c7b377182b4d967196c+ "@blocksuite/block-std": 0.12.0-canary-202402200831-bc2769f+ "@blocksuite/store": 0.12.0-canary-202402200831-bc2769f+ checksum: 10/462d67065196868a2da1583632b57d095f8cc9497cf6ab15dcabe8f750978dbdd54085a9052f703352786fd28e141dcab77656a0dd5335faafd793c9a57edbcclanguageName: nodelinkType: hard-"@blocksuite/presets@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/presets@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/presets@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/presets@npm:0.12.0-canary-202402200831-bc2769f"dependencies:- "@blocksuite/block-std": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/inline": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/block-std": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/inline": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@fal-ai/serverless-client": "npm:^0.8.2""@floating-ui/dom": "npm:^1.5.4""@toeverything/theme": "npm:^0.7.27"lit: "npm:^3.1.1"openai: "npm:^4.25.0"- checksum: 10/4cc670bfbe5ed73b4f2c6c77e1cfa93bbe1170a6ae7cc885d893eb7ade50e2fc4e652cc5a1b2f4f6e12ddc36812b96fbdda38e102be6b352da74b7f95ef45696+ checksum: 10/9cae2b16072b3737417adb3f207581307f26bdc01fe2f03b853267cefd43c51abb114eccf4a3278672143e9926f87daffd19ebc114830a0e6b2adedab224e191languageName: nodelinkType: hard-"@blocksuite/store@npm:0.12.0-canary-202402091051-49c1eff":- version: 0.12.0-canary-202402091051-49c1eff- resolution: "@blocksuite/store@npm:0.12.0-canary-202402091051-49c1eff"+"@blocksuite/store@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/store@npm:0.12.0-canary-202402200831-bc2769f"dependencies:- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/inline": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/inline": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/sync": "npm:0.12.0-canary-202402200831-bc2769f""@types/flexsearch": "npm:^0.7.6"flexsearch: "npm:0.7.43"idb-keyval: "npm:^6.2.1"@@ -3554,9 +3555,21 @@ __metadata:y-protocols: "npm:^1.0.6"zod: "npm:^3.22.4"peerDependencies:- async-call-rpc: ^6yjs: ^13- checksum: 10/c358a21dd5d6b9a89649894dd04fe667c1ef08102b5e00b999688491a20ed9e9f648dd8b349d1f617772a18c4219b5d75b5674a7825def0236248336f0dbf8eb+ checksum: 10/54dcba2b22e8bb0b13f13468132368e88aa14267393328953f58fdfd7e89efed22bdaf09efdf4d612bb8ae5fa48c4b8343312d1bacc1e0290d69d46f21833582+ languageName: node+ linkType: hard++"@blocksuite/sync@npm:0.12.0-canary-202402200831-bc2769f":+ version: 0.12.0-canary-202402200831-bc2769f+ resolution: "@blocksuite/sync@npm:0.12.0-canary-202402200831-bc2769f"+ dependencies:+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ idb: "npm:^8.0.0"+ y-protocols: "npm:^1.0.6"+ peerDependencies:+ yjs: ^13+ checksum: 10/6e3cfa8ec1da2d86aeceefa720dc53ff8ae40c3593d60f011818ff9ab1150173c2c54c0d615a83a3d31aee1f2f7c9cae8d08365d55003a038f84e0c032d8c001languageName: nodelinkType: hard@@ -13078,11 +13091,11 @@ __metadata:"@affine/debug": "workspace:*""@affine/env": "workspace:*""@affine/templates": "workspace:*"- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/lit": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/presets": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/lit": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/presets": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f""@testing-library/react": "npm:^14.0.0"async-call-rpc: "npm:^6.3.1"foxact: "npm:^0.2.20"@@ -13132,9 +13145,9 @@ __metadata:version: 0.0.0-use.localresolution: "@toeverything/y-indexeddb@workspace:packages/common/y-indexeddb"dependencies:- "@blocksuite/blocks": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/global": "npm:0.12.0-canary-202402091051-49c1eff"- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/blocks": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/global": "npm:0.12.0-canary-202402200831-bc2769f"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f"fake-indexeddb: "npm:^5.0.0"idb: "npm:^8.0.0"nanoid: "npm:^5.0.3"@@ -35702,7 +35715,7 @@ __metadata:version: 0.0.0-use.localresolution: "y-provider@workspace:packages/common/y-provider"dependencies:- "@blocksuite/store": "npm:0.12.0-canary-202402091051-49c1eff"+ "@blocksuite/store": "npm:0.12.0-canary-202402200831-bc2769f"vite: "npm:^5.0.6"vite-plugin-dts: "npm:3.7.2"vitest: "npm:1.2.2"