refactor(core): move workspace implementation to affine (#9504)

This commit is contained in:
Saul-Mirone
2025-01-03 08:13:57 +00:00
parent 897c7d4284
commit cfd64f1fa5
18 changed files with 284 additions and 48 deletions

View File

@@ -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;

View File

@@ -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';

View File

@@ -84,3 +84,7 @@ export interface Workspace {
dispose(): void;
}
export interface StackItem {
meta: Map<'cursor-location' | 'selection-state', unknown>;
}

View File

@@ -13,6 +13,9 @@
},
{
"path": "./store"
},
{
"path": "./sync"
}
]
}