oasis-editor 0.0.357 → 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,3 +1,6 @@
1
+ import { EditorOpaqueRunData } from '../../core/model/types/nodes.js';
2
+ import { Element as XmlElement } from '@xmldom/xmldom';
3
+ import { EditorDocument } from '../../core/model/types/document.js';
1
4
  import { EditorDocxDiagnostic, EditorDocxOpaqueObject, EditorDocxSourcePackage } from '../../core/model/types/docxSourcePackage.js';
2
5
  export declare function resolveOpaqueClosure(source: EditorDocxSourcePackage, ownerPath: string, ids: string[]): {
3
6
  edges: {
@@ -11,15 +14,17 @@ export declare function resolveOpaqueClosure(source: EditorDocxSourcePackage, ow
11
14
  partPaths: string[];
12
15
  issues: EditorDocxDiagnostic[];
13
16
  };
17
+ /** One object replacement character. Keep all original MC branches. */
18
+ export declare function projectOpaqueRunElement(el: XmlElement): EditorOpaqueRunData | undefined;
14
19
  export declare function inspectDocxOpaqueObjects(source: EditorDocxSourcePackage): {
15
20
  objects: EditorDocxOpaqueObject[];
16
21
  diagnostics: EditorDocxDiagnostic[];
17
22
  };
18
23
  /** Conservative loss detector. Exact XML structure and the complete internal
19
- * closure must survive in the same owning story. No relocation or intentional
20
- * 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.
21
26
  */
22
- export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage): EditorDocxDiagnostic[];
27
+ export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage, intents?: NonNullable<EditorDocument["opaqueDeletionIntents"]>): EditorDocxDiagnostic[];
23
28
  export declare class OpaqueObjectPreservationError extends Error {
24
29
  readonly diagnostics: EditorDocxDiagnostic[];
25
30
  constructor(diagnostics: EditorDocxDiagnostic[]);