mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
fix: dock to blocksuite latest API (#2219)
This commit is contained in:
@@ -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",
|
||||
|
||||
Vendored
+2
-2
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user