mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(core): move workspace implementation to affine (#9504)
This commit is contained in:
@@ -70,10 +70,6 @@ const FLAGS_PRESET = {
|
||||
readonly: {},
|
||||
} satisfies BlockSuiteFlags;
|
||||
|
||||
export interface StackItem {
|
||||
meta: Map<'cursor-location' | 'selection-state', unknown>;
|
||||
}
|
||||
|
||||
export class DocCollection implements Workspace {
|
||||
protected readonly _schema: Schema;
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@ export { DocCollection } from './collection.js';
|
||||
export type * from './doc/block-collection.js';
|
||||
export * from './doc/index.js';
|
||||
export * from './id.js';
|
||||
export type * from './meta.js';
|
||||
export * from './meta.js';
|
||||
export * from './workspace.js';
|
||||
|
||||
@@ -84,3 +84,7 @@ export interface Workspace {
|
||||
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
export interface StackItem {
|
||||
meta: Map<'cursor-location' | 'selection-state', unknown>;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
},
|
||||
{
|
||||
"path": "./store"
|
||||
},
|
||||
{
|
||||
"path": "./sync"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user