Skip to content

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.

feat: bump blocksuite (#6541)

donteatfriedrice7b35722288df
diff --git a/packages/common/env/package.json b/packages/common/env/package.json
index d01e894ecf..2bf4d49933 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.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/global": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"react": "18.2.0",
"react-dom": "18.2.0",
"vitest": "1.4.0"
diff --git a/packages/common/infra/package.json b/packages/common/infra/package.json
index aa060254d1..f98d3f7728 100644
--- a/packages/common/infra/package.json
+++ b/packages/common/infra/package.json
@@ -11,9 +11,9 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
- "@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/blocks": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/global": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"@datastructures-js/binary-search-tree": "^5.3.2",
"foxact": "^0.2.33",
"jotai": "^2.8.0",
@@ -28,8 +28,8 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
- "@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/block-std": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/presets": "0.14.0-canary-202404120943-1a1cf39",
"@testing-library/react": "^14.2.1",
"async-call-rpc": "^6.4.0",
"react": "^18.2.0",
diff --git a/packages/common/y-indexeddb/package.json b/packages/common/y-indexeddb/package.json
index 9b2bd90346..39172ff03f 100644
--- a/packages/common/y-indexeddb/package.json
+++ b/packages/common/y-indexeddb/package.json
@@ -32,14 +32,14 @@
}
},
"dependencies": {
- "@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/global": "0.14.0-canary-202404120943-1a1cf39",
"idb": "^8.0.0",
"nanoid": "^5.0.7",
"y-provider": "workspace:*"
},
"devDependencies": {
- "@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/blocks": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"fake-indexeddb": "^5.0.2",
"vite": "^5.2.8",
"vite-plugin-dts": "3.8.1",
diff --git a/packages/common/y-provider/package.json b/packages/common/y-provider/package.json
index aef4ee329b..ecd062c744 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.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"vite": "^5.1.4",
"vite-plugin-dts": "3.7.3",
"vitest": "1.4.0",
diff --git a/packages/frontend/component/package.json b/packages/frontend/component/package.json
index 43c97af78f..4e109b6bdc 100644
--- a/packages/frontend/component/package.json
+++ b/packages/frontend/component/package.json
@@ -75,12 +75,12 @@
"zod": "^3.22.4"
},
"devDependencies": {
- "@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/block-std": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/blocks": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/global": "0.14.0-canary-202404120943-1a1cf39",
"@blocksuite/icons": "2.1.46",
- "@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/presets": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.json
index b91b5c4c7f..d60b9f3fb5 100644
--- a/packages/frontend/core/package.json
+++ b/packages/frontend/core/package.json
@@ -19,13 +19,13 @@
"@affine/i18n": "workspace:*",
"@affine/templates": "workspace:*",
"@affine/workspace-impl": "workspace:*",
- "@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/block-std": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/blocks": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/global": "0.14.0-canary-202404120943-1a1cf39",
"@blocksuite/icons": "2.1.46",
- "@blocksuite/inline": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/inline": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/presets": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
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.ts
index 53fa26ff66..656daf5ce8 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
@@ -155,7 +155,7 @@ export const useSnapshotPage = (
page = historyShellWorkspace.createDoc({
id: pageId,
});
- page.awarenessStore.setReadonly(page, true);
+ page.awarenessStore.setReadonly(page.blockCollection, true);
const spaceDoc = page.spaceDoc;
page.load(() => {
applyUpdate(spaceDoc, new Uint8Array(snapshot));
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts
index 9cf20b68f1..7b02a9085b 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts
@@ -186,7 +186,6 @@ export function setupAIProvider() {
return textToText({
...options,
promptName: 'Make it real',
- // @ts-expect-error todo: fix this after blocksuite bump
params: options.params,
content:
options.content ||
diff --git a/packages/frontend/core/src/components/image-preview/index.tsx b/packages/frontend/core/src/components/image-preview/index.tsx
index 85053f5efe..cb027f5440 100644
--- a/packages/frontend/core/src/components/image-preview/index.tsx
+++ b/packages/frontend/core/src/components/image-preview/index.tsx
@@ -100,7 +100,7 @@ const ImagePreviewModalImpl = (
const block = page.getBlockById(blockId);
assertExists(block);
const nextBlock = page
- .getNextSiblings(block)
+ .getNexts(block)
.find(
(block): block is ImageBlockModel => block.flavour === 'affine:image'
);
@@ -120,7 +120,7 @@ const ImagePreviewModalImpl = (
const block = page.getBlockById(blockId);
assertExists(block);
const prevBlock = page
- .getPreviousSiblings(block)
+ .getPrevs(block)
.findLast(
(block): block is ImageBlockModel => block.flavour === 'affine:image'
);
@@ -142,14 +142,14 @@ const ImagePreviewModalImpl = (
assertExists(block);
if (
page
- .getPreviousSiblings(block)
+ .getPrevs(block)
.some(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
)
) {
const prevBlock = page
- .getPreviousSiblings(block)
+ .getPrevs(block)
.findLast(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
@@ -159,14 +159,14 @@ const ImagePreviewModalImpl = (
}
} else if (
page
- .getNextSiblings(block)
+ .getNexts(block)
.some(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
)
) {
const nextBlock = page
- .getNextSiblings(block)
+ .getNexts(block)
.find(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
@@ -516,7 +516,7 @@ export const ImagePreviewModal = (
if (event.key === 'ArrowLeft') {
const prevBlock = page
- .getPreviousSiblings(block)
+ .getPrevs(block)
.findLast(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
@@ -526,7 +526,7 @@ export const ImagePreviewModal = (
}
} else if (event.key === 'ArrowRight') {
const nextBlock = page
- .getNextSiblings(block)
+ .getNexts(block)
.find(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
diff --git a/packages/frontend/core/src/hooks/use-block-suite-page-meta.ts b/packages/frontend/core/src/hooks/use-block-suite-page-meta.ts
index 6a4ac6fca8..b0007f14e6 100644
--- a/packages/frontend/core/src/hooks/use-block-suite-page-meta.ts
+++ b/packages/frontend/core/src/hooks/use-block-suite-page-meta.ts
@@ -42,7 +42,7 @@ export function useDocMetaHelper(docCollection: DocCollection) {
setDocReadonly: (docId: string, readonly: boolean) => {
const page = docCollection.getDoc(docId);
assertExists(page);
- page.awarenessStore.setReadonly(page, readonly);
+ page.awarenessStore.setReadonly(page.blockCollection, readonly);
},
setDocMeta: (docId: string, docMeta: Partial<DocMeta>) => {
docCollection.meta.setDocMeta(docId, docMeta);
diff --git a/packages/frontend/core/src/hooks/use-journal.ts b/packages/frontend/core/src/hooks/use-journal.ts
index b63ce1a5a8..33759a50c0 100644
--- a/packages/frontend/core/src/hooks/use-journal.ts
+++ b/packages/frontend/core/src/hooks/use-journal.ts
@@ -63,14 +63,16 @@ export const useJournalHelper = (docCollection: DocCollection) => {
const getJournalsByDate = useCallback(
(maybeDate: MaybeDate) => {
const day = dayjs(maybeDate);
- return Array.from(docCollection.docs.values()).filter(page => {
- const pageId = page.id;
- if (!isPageJournal(pageId)) return false;
- if (page.meta?.trash) return false;
- const journalDate = adapter.getJournalPageDateString(page.id);
- if (!journalDate) return false;
- return day.isSame(journalDate, 'day');
- });
+ return Array.from(docCollection.docs.values())
+ .map(blockCollection => blockCollection.getDoc())
+ .filter(page => {
+ const pageId = page.id;
+ if (!isPageJournal(pageId)) return false;
+ if (page.meta?.trash) return false;
+ const journalDate = adapter.getJournalPageDateString(page.id);
+ if (!journalDate) return false;
+ return day.isSame(journalDate, 'day');
+ });
},
[adapter, isPageJournal, docCollection.docs]
);
diff --git a/packages/frontend/core/src/pages/share/share-detail-page.tsx b/packages/frontend/core/src/pages/share/share-detail-page.tsx
index 0ade3d9942..11347a9400 100644
--- a/packages/frontend/core/src/pages/share/share-detail-page.tsx
+++ b/packages/frontend/core/src/pages/share/share-detail-page.tsx
@@ -167,7 +167,7 @@ export const Component = () => {
const { page } = workspace.services.get(PageManager).open(pageId);
workspace.docCollection.awarenessStore.setReadonly(
- page.blockSuiteDoc,
+ page.blockSuiteDoc.blockCollection,
true
);
diff --git a/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx b/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx
index d4fbd18d5b..80d3965e32 100644
--- a/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx
+++ b/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx
@@ -332,7 +332,7 @@ export const DetailPage = ({ pageId }: { pageId: string }): ReactElement => {
useEffect(() => {
if (page && pageRecord?.meta?.trash) {
currentWorkspace.docCollection.awarenessStore.setReadonly(
- page.blockSuiteDoc,
+ page.blockSuiteDoc.blockCollection,
true
);
}
diff --git a/packages/frontend/core/src/pages/workspace/index.tsx b/packages/frontend/core/src/pages/workspace/index.tsx
index 9afdbaad6c..4414ac5e22 100644
--- a/packages/frontend/core/src/pages/workspace/index.tsx
+++ b/packages/frontend/core/src/pages/workspace/index.tsx
@@ -65,7 +65,9 @@ export const Component = (): ReactElement => {
window.exportWorkspaceSnapshot = async () => {
const zip = await ZipTransformer.exportDocs(
workspace.docCollection,
- Array.from(workspace.docCollection.docs.values())
+ Array.from(workspace.docCollection.docs.values()).map(collection =>
+ collection.getDoc()
+ )
);
const url = URL.createObjectURL(zip);
// download url
diff --git a/packages/frontend/electron/package.json b/packages/frontend/electron/package.json
index a54629d44b..4e821b4b6b 100644
--- a/packages/frontend/electron/package.json
+++ b/packages/frontend/electron/package.json
@@ -28,10 +28,10 @@
"@affine/env": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/native": "workspace:*",
- "@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/block-std": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/blocks": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/presets": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"@electron-forge/cli": "^7.3.0",
"@electron-forge/core": "^7.3.0",
"@electron-forge/core-utils": "^7.3.0",
diff --git a/tests/storybook/package.json b/tests/storybook/package.json
index 1497381374..32878d84eb 100644
--- a/tests/storybook/package.json
+++ b/tests/storybook/package.json
@@ -23,13 +23,13 @@
"storybook-addon-react-router-v6": "^2.0.15"
},
"devDependencies": {
- "@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/block-std": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/blocks": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/global": "0.14.0-canary-202404120943-1a1cf39",
"@blocksuite/icons": "2.1.46",
- "@blocksuite/inline": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
- "@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/inline": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/presets": "0.14.0-canary-202404120943-1a1cf39",
+ "@blocksuite/store": "0.14.0-canary-202404120943-1a1cf39",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
diff --git a/tests/storybook/src/stories/image-preview-modal.stories.tsx b/tests/storybook/src/stories/image-preview-modal.stories.tsx
index c642fdfb33..a2326a58cd 100644
--- a/tests/storybook/src/stories/image-preview-modal.stories.tsx
+++ b/tests/storybook/src/stories/image-preview-modal.stories.tsx
@@ -25,7 +25,7 @@ export const Default: StoryFn = () => {
const [page, setPage] = useState<Doc | null>(null);
useEffect(() => {
- const bsPage = workspace.docCollection.createDoc('page0');
+ const bsPage = workspace.docCollection.createDoc({ id: 'page0' });
initEmptyPage(bsPage);
const { page, release } = pageManager.open(bsPage.meta!.id);
diff --git a/tests/storybook/src/stories/share-menu.stories.tsx b/tests/storybook/src/stories/share-menu.stories.tsx
index e6aab24c1e..c58429f17f 100644
--- a/tests/storybook/src/stories/share-menu.stories.tsx
+++ b/tests/storybook/src/stories/share-menu.stories.tsx
@@ -27,7 +27,7 @@ export const Basic: StoryFn = () => {
const [page, setPage] = useState<Doc | null>(null);
useEffect(() => {
- const page = workspace.docCollection.createDoc(nanoid());
+ const page = workspace.docCollection.createDoc({ id: nanoid() });
initEmptyPage(page);
setPage(page);
@@ -69,7 +69,7 @@ export const AffineBasic: StoryFn = () => {
const [page, setPage] = useState<Doc | null>(null);
useEffect(() => {
- const page = workspace.docCollection.createDoc(nanoid());
+ const page = workspace.docCollection.createDoc({ id: nanoid() });
initEmptyPage(page);
setPage(page);
diff --git a/tools/cli/package.json b/tools/cli/package.json
index 213847eeaa..7119c6f776 100644
--- a/tools/cli/package.json
+++ b/tools/cli/package.json
@@ -6,7 +6,7 @@
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
"@aws-sdk/client-s3": "3.537.0",
- "@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
+ "@blocksuite/presets": "0.14.0-canary-202404120943-1a1cf39",
"@clack/core": "^0.3.4",
"@clack/prompts": "^0.7.0",
"@magic-works/i18n-codegen": "^0.5.0",
diff --git a/yarn.lock b/yarn.lock
index 763cd1db05..2a27a131a9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -173,7 +173,7 @@ __metadata:
"@affine/env": "workspace:*"
"@affine/templates": "workspace:*"
"@aws-sdk/client-s3": "npm:3.537.0"
- "@blocksuite/presets": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/presets": "npm:0.14.0-canary-202404120943-1a1cf39"
"@clack/core": "npm:^0.3.4"
"@clack/prompts": "npm:^0.7.0"
"@magic-works/i18n-codegen": "npm:^0.5.0"
@@ -226,12 +226,12 @@ __metadata:
"@affine/electron-api": "workspace:*"
"@affine/graphql": "workspace:*"
"@affine/i18n": "workspace:*"
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
"@blocksuite/icons": "npm:2.1.46"
- "@blocksuite/presets": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/presets": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@dnd-kit/core": "npm:^6.1.0"
"@dnd-kit/modifiers": "npm:^7.0.0"
"@dnd-kit/sortable": "npm:^8.0.0"
@@ -328,13 +328,13 @@ __metadata:
"@affine/i18n": "workspace:*"
"@affine/templates": "workspace:*"
"@affine/workspace-impl": "workspace:*"
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
"@blocksuite/icons": "npm:2.1.46"
- "@blocksuite/inline": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/presets": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/inline": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/presets": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@dnd-kit/core": "npm:^6.1.0"
"@dnd-kit/modifiers": "npm:^7.0.0"
"@dnd-kit/sortable": "npm:^8.0.0"
@@ -453,10 +453,10 @@ __metadata:
"@affine/env": "workspace:*"
"@affine/i18n": "workspace:*"
"@affine/native": "workspace:*"
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/presets": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/presets": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@electron-forge/cli": "npm:^7.3.0"
"@electron-forge/core": "npm:^7.3.0"
"@electron-forge/core-utils": "npm:^7.3.0"
@@ -514,8 +514,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@affine/env@workspace:packages/common/env"
dependencies:
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
lit: "npm:^3.1.2"
react: "npm:18.2.0"
react-dom: "npm:18.2.0"
@@ -770,13 +770,13 @@ __metadata:
"@affine/component": "workspace:*"
"@affine/i18n": "workspace:*"
"@affine/workspace-impl": "workspace:*"
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
"@blocksuite/icons": "npm:2.1.46"
- "@blocksuite/inline": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/presets": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/inline": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/presets": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@dnd-kit/sortable": "npm:^8.0.0"
"@storybook/addon-actions": "npm:^7.6.17"
"@storybook/addon-essentials": "npm:^7.6.17"
@@ -3840,30 +3840,30 @@ __metadata:
languageName: node
linkType: hard
-"@blocksuite/block-std@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/block-std@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/block-std@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/block-std@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
lit: "npm:^3.1.2"
lz-string: "npm:^1.5.0"
w3c-keyname: "npm:^2.2.8"
zod: "npm:^3.22.4"
peerDependencies:
- "@blocksuite/inline": 0.14.0-canary-202404111515-fb8a834
- "@blocksuite/store": 0.14.0-canary-202404111515-fb8a834
- checksum: 10/1a2880e752ca8644934c2c3f23b878b93f2605283acf6d61012f81e2bfba9c857abdb6df32294228d128fa01292f381b5c3afce7f058332340743a86137f545e
+ "@blocksuite/inline": 0.14.0-canary-202404120943-1a1cf39
+ "@blocksuite/store": 0.14.0-canary-202404120943-1a1cf39
+ checksum: 10/f5a89939027fcd02f1c305fa22c01b422288f58bcfda5a9b6f5ceceaefa3bf34c02fab18c404c80525271ca9b095e0e1b211ac28ea294c7f7f73761cb3698bf3
languageName: node
linkType: hard
-"@blocksuite/blocks@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/blocks@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/blocks@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/blocks@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/inline": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/inline": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@dotlottie/player-component": "npm:^2.7.12"
"@fal-ai/serverless-client": "npm:^0.9.0"
"@floating-ui/dom": "npm:^1.6.3"
@@ -3903,16 +3903,16 @@ __metadata:
unified: "npm:^11.0.4"
webfontloader: "npm:^1.6.28"
zod: "npm:^3.22.4"
- checksum: 10/8adaed558518dc5d6bbc56340362e111e297686a8bd6b442175cf7c0dd9afb4ac169de56bd8699e9b649e7d27bea9e462623990462baa5a9d029395407a097cf
+ checksum: 10/1b705c550770d335ce314c48aeb80ef066917f8e0277dfc74d9d14b410e82dedb83260ddae5ba12225bda0dde548862a4bd90754d302eccb30b4251f7d8f4c7d
languageName: node
linkType: hard
-"@blocksuite/global@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/global@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/global@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/global@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
zod: "npm:^3.22.4"
- checksum: 10/7acd756bba8225d51cc512717b19de7f1f369ae46590b4b198dbb5e336f0292f778f156363da3d9bfcda3c8c2b979627fc8a39a40475ba07700b35948ac720c3
+ checksum: 10/052b6351858ed4f3bb57b5606ff47eae324ad084ba19f36076266e2ef1ba1bf242833de7b9cc5b30b7186e4069a7006384d0b2567770d48e07bd3a640dd231e5
languageName: node
linkType: hard
@@ -3926,29 +3926,29 @@ __metadata:
languageName: node
linkType: hard
-"@blocksuite/inline@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/inline@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/inline@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/inline@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
zod: "npm:^3.22.4"
peerDependencies:
lit: ^3.1.1
yjs: ^13
- checksum: 10/6e68fe983575394d229e4409e100d28072b23cde3b6e6d9809db7caa0955368e02d949ecb5481fc9d694080d4cfce2f9ec11fea899bc1d058af32ec68fdb54a6
+ checksum: 10/d771604b90c4ce0d470c33a1a09130a15b57ed1e18876a1fd7e471108438d30596f18c18e7d9abae168e1e4cc0a882f47338c720469f25d35479c017aacb2bc5
languageName: node
linkType: hard
-"@blocksuite/presets@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/presets@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/presets@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/presets@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
"@apollo/client": "npm:^3.9.9"
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/inline": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/inline": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@dotlottie/player-component": "npm:^2.7.12"
"@fal-ai/serverless-client": "npm:^0.9.0"
"@floating-ui/dom": "npm:^1.6.3"
@@ -3956,17 +3956,17 @@ __metadata:
graphql: "npm:^16.8.1"
lit: "npm:^3.1.2"
openai: "npm:^4.29.2"
- checksum: 10/9cbca5c61eda9043abc70c6626955356a1b3afd8814df59945ba37fa2ac26b020dbbeb6854b7de2350d5e01a080fff9fa6ea58d215af00aa5f8d1279f4e6e311
+ checksum: 10/95f7f22371afa2f1b6ade9de3ea8eba69678bf7a7ad75819676530ea22ad1004062921060fa6fbd0eb81d77d61cbc81a459ed465588e08778b95a22d73750332
languageName: node
linkType: hard
-"@blocksuite/store@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/store@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/store@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/store@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/inline": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/sync": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/inline": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/sync": "npm:0.14.0-canary-202404120943-1a1cf39"
"@types/flexsearch": "npm:^0.7.6"
flexsearch: "npm:0.7.43"
idb-keyval: "npm:^6.2.1"
@@ -3978,20 +3978,20 @@ __metadata:
zod: "npm:^3.22.4"
peerDependencies:
yjs: ^13
- checksum: 10/1b56394247453fedd203d2635b3912c0fe022ce181c4e35fd0813c79e07647ed72a29259c1cec414403523c5b51c794888f459bc8aff2acbf349ab1c56060abe
+ checksum: 10/a31dd43493d12aa77d1710540bb7934c95809a81162ab43abd58d1c86baad170a0de9dcf70ac016d2c94ad1f28e5b25f7c16fd21a6c8e7b1f37ede23214067d5
languageName: node
linkType: hard
-"@blocksuite/sync@npm:0.14.0-canary-202404111515-fb8a834":
- version: 0.14.0-canary-202404111515-fb8a834
- resolution: "@blocksuite/sync@npm:0.14.0-canary-202404111515-fb8a834"
+"@blocksuite/sync@npm:0.14.0-canary-202404120943-1a1cf39":
+ version: 0.14.0-canary-202404120943-1a1cf39
+ resolution: "@blocksuite/sync@npm:0.14.0-canary-202404120943-1a1cf39"
dependencies:
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
idb: "npm:^8.0.0"
y-protocols: "npm:^1.0.6"
peerDependencies:
yjs: ^13
- checksum: 10/83e66950c452dd3d1887320f6c35d16ce1bf7060430e1ff1481d096039ac37635848a94b6e1be9afa35398bba135a8bc419326bd5818a2ebd2cea0047a471815
+ checksum: 10/ee8b41abdbe99fdcf5fd4194a3e39a2acd974e02f1a2cc241809bd6437ae65fc8d5264016d95fb32d3350e1795dc43b789e79d1b4dee1e9943ade5a646a10d75
languageName: node
linkType: hard
@@ -14348,11 +14348,11 @@ __metadata:
"@affine/debug": "workspace:*"
"@affine/env": "workspace:*"
"@affine/templates": "workspace:*"
- "@blocksuite/block-std": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/presets": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/block-std": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/presets": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
"@datastructures-js/binary-search-tree": "npm:^5.3.2"
"@testing-library/react": "npm:^14.2.1"
async-call-rpc: "npm:^6.4.0"
@@ -14403,9 +14403,9 @@ __metadata:
version: 0.0.0-use.local
resolution: "@toeverything/y-indexeddb@workspace:packages/common/y-indexeddb"
dependencies:
- "@blocksuite/blocks": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/global": "npm:0.14.0-canary-202404111515-fb8a834"
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/blocks": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/global": "npm:0.14.0-canary-202404120943-1a1cf39"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
fake-indexeddb: "npm:^5.0.2"
idb: "npm:^8.0.0"
nanoid: "npm:^5.0.7"
@@ -37691,7 +37691,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "y-provider@workspace:packages/common/y-provider"
dependencies:
- "@blocksuite/store": "npm:0.14.0-canary-202404111515-fb8a834"
+ "@blocksuite/store": "npm:0.14.0-canary-202404120943-1a1cf39"
vite: "npm:^5.1.4"
vite-plugin-dts: "npm:3.7.3"
vitest: "npm:1.4.0"