oasis-editor 0.0.358 → 0.0.360
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OasisEditorApp-BhgvWjjG.js +1 -0
- package/dist/core/commands/opaqueDeletion.d.ts +7 -0
- package/dist/core/model/types/document.d.ts +10 -0
- package/dist/defaultToolbar-cgDcUMbs.js +1 -0
- package/dist/export/docx/exportEditorDocumentToDocxPreservingSource.d.ts +2 -0
- package/dist/export/docx/opc/opaqueDependencyPruning.d.ts +22 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ooxml/word/opaqueObjects.d.ts +4 -3
- package/dist/{sourcePackage-CGJ-Pcxk.js → sourcePackage-BUPuWuMl.js} +1 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-DEIlGx5V.js +0 -1
- package/dist/defaultToolbar--yqZGana.js +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EditorState } from '../model.js';
|
|
2
|
+
/** Returns undefined for ordinary text edits, or the resulting state when
|
|
3
|
+
* a keyboard deletion touches exactly one opaque replacement character.
|
|
4
|
+
* Ambiguous provenance, non-main stories and tracked deletion are no-ops
|
|
5
|
+
* until their relationship and revision semantics can be proven.
|
|
6
|
+
*/
|
|
7
|
+
export declare function tryDeleteOpaqueObject(state: EditorState, direction: "backward" | "forward"): EditorState | undefined;
|
|
@@ -223,6 +223,16 @@ export interface EditorDocument {
|
|
|
223
223
|
* paths. It is the preservation source for unsupported package parts.
|
|
224
224
|
*/
|
|
225
225
|
sourcePackage?: EditorDocxSourcePackage;
|
|
226
|
+
/**
|
|
227
|
+
* Explicit deletion intents for uniquely identified opaque main-story
|
|
228
|
+
* objects. Immutable state metadata travels with undo/redo snapshots;
|
|
229
|
+
* never mutate the shared original OPC package to record an edit.
|
|
230
|
+
*/
|
|
231
|
+
opaqueDeletionIntents?: ReadonlyArray<{
|
|
232
|
+
ownerPath: string;
|
|
233
|
+
ordinal: number;
|
|
234
|
+
signature: string;
|
|
235
|
+
}>;
|
|
226
236
|
/**
|
|
227
237
|
* Out-of-band asset registry. Image runs reference entries here using
|
|
228
238
|
* `src = "asset:<id>"`. The map itself is treated as append-only and is
|