feat(editor): improve api for store, and add docs (#10941)

This commit is contained in:
Saul-Mirone
2025-03-17 16:30:59 +00:00
parent b0aa2c90fd
commit 3de7d85eea
47 changed files with 1212 additions and 210 deletions

View File

@@ -14,7 +14,9 @@ let model: SurfaceBlockModel;
beforeEach(async () => {
const cleanup = await setupEditor('edgeless');
const models = doc.getBlockByFlavour('affine:surface') as SurfaceBlockModel[];
const models = doc.getModelsByFlavour(
'affine:surface'
) as SurfaceBlockModel[];
model = models[0];