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
@@ -15,7 +15,7 @@ export const copySelectedModelsCommand: Command<'draftedModels' | 'onCopy'> = (
models
.then(models => {
const slice = Slice.fromModels(ctx.std.doc, models);
const slice = Slice.fromModels(ctx.std.store, models);
return ctx.std.clipboard.copy(slice);
})
@@ -14,7 +14,7 @@ export const deleteSelectedModelsCommand: Command<'selectedModels'> = (
}
models.forEach(model => {
ctx.std.doc.deleteBlock(model);
ctx.std.store.deleteBlock(model);
});
return next();
@@ -9,17 +9,17 @@ export const duplicateSelectedModelsCommand: Command<
const model = selectedModels[selectedModels.length - 1];
const parentModel = std.doc.getParent(model.id);
const parentModel = std.store.getParent(model.id);
if (!parentModel) return;
const index = parentModel.children.findIndex(x => x.id === model.id);
draftedModels
.then(models => {
const slice = Slice.fromModels(std.doc, models);
const slice = Slice.fromModels(std.store, models);
return std.clipboard.duplicateSlice(
slice,
std.doc,
std.store,
parentModel.id,
index + 1
);