chore: bump version (#3606)

This commit is contained in:
Alex Yang
2023-08-07 23:01:47 -04:00
committed by GitHub
parent b147624f1c
commit d101db2a39
23 changed files with 224 additions and 207 deletions

View File

@@ -160,12 +160,6 @@ export const createConfiguration: (
'packages',
'phasor'
),
'@blocksuite/store/workspace/migration/migrate-block': resolve(
blocksuiteBaseDir,
'packages',
'store',
'src/workspace/migration/migrate-block'
),
'@blocksuite/store/providers/broadcast-channel': resolve(
blocksuiteBaseDir,
'packages',

View File

@@ -18,13 +18,13 @@
"@affine/jotai": "workspace:*",
"@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230806233219-17ca6eee-nightly",
"@blocksuite/blocks": "0.0.0-20230806233219-17ca6eee-nightly",
"@blocksuite/editor": "0.0.0-20230806233219-17ca6eee-nightly",
"@blocksuite/global": "0.0.0-20230806233219-17ca6eee-nightly",
"@blocksuite/block-std": "0.0.0-20230807164933-9f6fb698-nightly",
"@blocksuite/blocks": "0.0.0-20230807164933-9f6fb698-nightly",
"@blocksuite/editor": "0.0.0-20230807164933-9f6fb698-nightly",
"@blocksuite/global": "0.0.0-20230807164933-9f6fb698-nightly",
"@blocksuite/icons": "^2.1.29",
"@blocksuite/lit": "0.0.0-20230806233219-17ca6eee-nightly",
"@blocksuite/store": "0.0.0-20230806233219-17ca6eee-nightly",
"@blocksuite/lit": "0.0.0-20230807164933-9f6fb698-nightly",
"@blocksuite/store": "0.0.0-20230807164933-9f6fb698-nightly",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^7.0.2",
"@emotion/cache": "^11.11.0",

View File

@@ -16,6 +16,7 @@
"{projectRoot}/.webpack/**/*",
"{projectRoot}/**/*",
"{projectRoot}/public/**/*",
"{workspaceRoot}/packages/env/src/**/*",
"{workspaceRoot}/packages/component/src/**/*",
"{workspaceRoot}/packages/debug/src/**/*",
"{workspaceRoot}/packages/graphql/src/**/*",

View File

@@ -5,7 +5,7 @@ import type {
LayoutNode,
PluginContext,
} from '@affine/sdk/entry';
import { FormatQuickBar } from '@blocksuite/blocks';
import { AffineFormatBarWidget } from '@blocksuite/blocks';
import { assertExists } from '@blocksuite/global/utils';
import {
addCleanup,
@@ -514,16 +514,23 @@ export const evaluatePluginEntry = (pluginName: string) => {
});
});
} else if (part === 'formatBar') {
FormatQuickBar.customElements.push((page, getBlockRange) => {
const register = (widget: AffineFormatBarWidget) => {
const div = document.createElement('div');
const root = widget.root;
const cleanup = (callback as CallbackMap['formatBar'])(
div,
page,
getBlockRange
widget.page,
() => {
return root.selectionManager.value;
}
);
addCleanup(pluginName, cleanup);
addCleanup(pluginName, () => {
// todo: unregister
cleanup();
});
return div;
});
};
AffineFormatBarWidget.customElements.push(register);
} else {
throw new Error(`Unknown part: ${part}`);
}

View File

@@ -14,6 +14,7 @@ import {
rootWorkspacesMetadataAtom,
workspaceAdaptersAtom,
} from '@affine/workspace/atom';
import { globalBlockSuiteSchema } from '@affine/workspace/manager';
import {
migrateLocalBlobStorage,
upgradeV1ToV2,
@@ -62,7 +63,10 @@ async function tryMigration() {
return;
}
const newWorkspace = upgradeV1ToV2(workspace);
await migrateDatabaseBlockTo3(newWorkspace.blockSuiteWorkspace.doc);
await migrateDatabaseBlockTo3(
newWorkspace.blockSuiteWorkspace.doc,
globalBlockSuiteSchema
);
const newId = await adapter.CRUD.create(
newWorkspace.blockSuiteWorkspace
@@ -104,7 +108,8 @@ async function tryMigration() {
provider.sync();
await provider.whenReady;
await migrateDatabaseBlockTo3(
workspace.blockSuiteWorkspace.doc
workspace.blockSuiteWorkspace.doc,
globalBlockSuiteSchema
);
}
const index = newMetadata.findIndex(