refactor(editor): rename model.doc to store (#12172)

This commit is contained in:
Saul-Mirone
2025-05-07 09:17:01 +00:00
parent eb62d0e853
commit 95b9e4b3d0
95 changed files with 264 additions and 246 deletions

View File

@@ -312,7 +312,7 @@ export class FramePanelBody extends SignalWatcher(
const after = frames[insertIndex]?.props.presentationIndex || null;
selectedFrames.forEach(frame => {
const newIndex = generateKeyBetweenV2(before, after);
frame.doc.updateBlock(frame, {
frame.store.updateBlock(frame, {
presentationIndex: newIndex,
});
before = newIndex;

View File

@@ -112,7 +112,7 @@ export class FramePreview extends WithDisposable(ShadowlessElement) {
};
get _originalDoc() {
return this.frame.doc;
return this.frame.store;
}
private _initPreviewDoc() {