mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 11:02:11 +08:00
feat: bump blocksuite and fix bug in migration (#4653)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
@@ -24,13 +24,13 @@
|
||||
"@affine/i18n": "workspace:*",
|
||||
"@affine/templates": "workspace:*",
|
||||
"@affine/workspace": "workspace:*",
|
||||
"@blocksuite/block-std": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/block-std": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/global": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/icons": "2.1.34",
|
||||
"@blocksuite/lit": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/store": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@dnd-kit/core": "^6.0.8",
|
||||
"@dnd-kit/sortable": "^7.0.2",
|
||||
"@emotion/cache": "^11.11.0",
|
||||
|
||||
@@ -199,13 +199,15 @@ export const usePageCommands = () => {
|
||||
});
|
||||
} else {
|
||||
// queried pages that has matched contents
|
||||
const pageIds = Array.from(
|
||||
const searchResults = Array.from(
|
||||
workspace.blockSuiteWorkspace.search({ query }).values()
|
||||
).map(id => {
|
||||
if (id.startsWith('space:')) {
|
||||
return id.slice(6);
|
||||
) as unknown as { space: string; content: string }[];
|
||||
|
||||
const pageIds = searchResults.map(id => {
|
||||
if (id.space.startsWith('space:')) {
|
||||
return id.space.slice(6);
|
||||
} else {
|
||||
return id;
|
||||
return id.space;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ const DetailPageImpl = (): ReactElement => {
|
||||
) !== '$blocksuite:internal:native$'
|
||||
) {
|
||||
globalBlockSuiteSchema.upgradePage(
|
||||
0,
|
||||
{
|
||||
'affine:surface': 3,
|
||||
},
|
||||
|
||||
@@ -35,10 +35,10 @@
|
||||
"@affine/sdk": "workspace:*",
|
||||
"@affine/templates": "workspace:*",
|
||||
"@affine/vue-hello-world-plugin": "workspace:*",
|
||||
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/store": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@electron-forge/cli": "^6.4.2",
|
||||
"@electron-forge/core": "^6.4.2",
|
||||
"@electron-forge/core-utils": "^6.4.2",
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
"wait-on": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/block-std": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/block-std": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/global": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/icons": "2.1.34",
|
||||
"@blocksuite/lit": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@blocksuite/store": "0.0.0-20231018100009-361737d3-nightly",
|
||||
"@dnd-kit/sortable": "^7.0.2",
|
||||
"@tomfreudenberg/next-auth-mock": "^0.5.6",
|
||||
"chromatic": "^7.4.0",
|
||||
|
||||
Reference in New Issue
Block a user