mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
chore: bump version (#3606)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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/**/*",
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/component": "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/lit": "0.0.0-20230806233219-17ca6eee-nightly",
|
||||
"@blocksuite/store": "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/lit": "0.0.0-20230807164933-9f6fb698-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230807164933-9f6fb698-nightly",
|
||||
"express": "^4.18.2",
|
||||
"jotai": "^2.2.2",
|
||||
"react": "18.3.0-canary-1fdacbefd-20230630",
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
"@affine/env": "workspace:*",
|
||||
"@affine/native": "workspace:*",
|
||||
"@affine/sdk": "workspace:*",
|
||||
"@blocksuite/blocks": "0.0.0-20230806233219-17ca6eee-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230806233219-17ca6eee-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230806233219-17ca6eee-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230806233219-17ca6eee-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230807164933-9f6fb698-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230807164933-9f6fb698-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230807164933-9f6fb698-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230807164933-9f6fb698-nightly",
|
||||
"@electron-forge/cli": "^6.2.1",
|
||||
"@electron-forge/core": "^6.2.1",
|
||||
"@electron-forge/core-utils": "^6.2.1",
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
"wait-on": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@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",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user