oasis-editor 0.0.358 → 0.0.359

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.
@@ -1,5 +1,6 @@
1
1
  import { EditorOpaqueRunData } from '../../core/model/types/nodes.js';
2
2
  import { Element as XmlElement } from '@xmldom/xmldom';
3
+ import { EditorDocument } from '../../core/model/types/document.js';
3
4
  import { EditorDocxDiagnostic, EditorDocxOpaqueObject, EditorDocxSourcePackage } from '../../core/model/types/docxSourcePackage.js';
4
5
  export declare function resolveOpaqueClosure(source: EditorDocxSourcePackage, ownerPath: string, ids: string[]): {
5
6
  edges: {
@@ -20,10 +21,10 @@ export declare function inspectDocxOpaqueObjects(source: EditorDocxSourcePackage
20
21
  diagnostics: EditorDocxDiagnostic[];
21
22
  };
22
23
  /** Conservative loss detector. Exact XML structure and the complete internal
23
- * closure must survive in the same owning story. No relocation or intentional
24
- * opaque deletion is supported by this first opt-in strict mode.
24
+ * closure must survive in the same owning story. Only narrowly authorized main-story deletion is allowed;
25
+ * relocation and copies still fail closed.
25
26
  */
26
- export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage): EditorDocxDiagnostic[];
27
+ export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage, intents?: NonNullable<EditorDocument["opaqueDeletionIntents"]>): EditorDocxDiagnostic[];
27
28
  export declare class OpaqueObjectPreservationError extends Error {
28
29
  readonly diagnostics: EditorDocxDiagnostic[];
29
30
  constructor(diagnostics: EditorDocxDiagnostic[]);