mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
refactor(editor): rename doc to blocks (#9510)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||
import { Container } from '@blocksuite/global/di';
|
||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||
import { type Doc, Job, type JobMiddleware } from '@blocksuite/store';
|
||||
import { type Blocks, Job, type JobMiddleware } from '@blocksuite/store';
|
||||
|
||||
import { Clipboard } from '../clipboard/index.js';
|
||||
import { CommandManager } from '../command/index.js';
|
||||
@@ -31,7 +31,7 @@ import { EditorHost } from '../view/element/index.js';
|
||||
import { ViewStore } from '../view/view-store.js';
|
||||
|
||||
export interface BlockStdOptions {
|
||||
doc: Doc;
|
||||
doc: Blocks;
|
||||
extensions: ExtensionType[];
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ export class BlockStdScope {
|
||||
|
||||
readonly container: Container;
|
||||
|
||||
readonly doc: Doc;
|
||||
readonly doc: Blocks;
|
||||
|
||||
readonly provider: ServiceProvider;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user