chore(editor): rename std.doc to std.store (#9596)

This commit is contained in:
Saul-Mirone
2025-01-09 04:16:28 +00:00
parent 58ce86533e
commit d21ef47ae8
89 changed files with 359 additions and 348 deletions
@@ -350,7 +350,7 @@ export class UIEventDispatcher extends LifeCycleWatcher {
);
const flavourHandlers = blockIds
.map(blockId => this.std.doc.getBlock(blockId)?.flavour)
.map(blockId => this.std.store.getBlock(blockId)?.flavour)
.filter((flavour): flavour is string => {
if (!flavour) return false;
if (flavourSeen[flavour]) return false;
@@ -364,7 +364,7 @@ export class UIEventDispatcher extends LifeCycleWatcher {
events.push(...idHandlers, ...flavourHandlers);
blockIds = blockIds
.map(blockId => {
const parent = this.std.doc.getParent(blockId);
const parent = this.std.store.getParent(blockId);
return parent?.id;
})
.filter((id): id is string => !!id);