refactor(editor): rename doc to blocks (#9510)

This commit is contained in:
Saul-Mirone
2025-01-03 12:49:33 +00:00
parent 2074bda8ff
commit 4457cb7266
99 changed files with 271 additions and 256 deletions
@@ -1,9 +1,9 @@
import type { BlockModel, Doc, Text } from '@blocksuite/store';
import type { BlockModel, Blocks, Text } from '@blocksuite/store';
export function transformModel(
model: BlockModel,
flavour: BlockSuite.Flavour,
props?: Parameters<Doc['addBlock']>[1]
props?: Parameters<Blocks['addBlock']>[1]
) {
const doc = model.doc;
const parent = doc.getParent(model);