oasis-editor 0.0.361 → 0.0.362

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.
@@ -24,7 +24,10 @@ export declare function inspectDocxOpaqueObjects(source: EditorDocxSourcePackage
24
24
  * closure must survive in the same owning story. Only narrowly authorized main-story deletion is allowed;
25
25
  * relocation and copies still fail closed.
26
26
  */
27
- export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage, intents?: NonNullable<EditorDocument["opaqueDeletionIntents"]>): EditorDocxDiagnostic[];
27
+ export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage, intents?: NonNullable<EditorDocument["opaqueDeletionIntents"]>, relocation?: {
28
+ original: Pick<EditorDocxOpaqueObject, "ownerPath" | "ordinal" | "signature">;
29
+ expected: EditorDocxOpaqueObject;
30
+ }): EditorDocxDiagnostic[];
28
31
  export declare class OpaqueObjectPreservationError extends Error {
29
32
  readonly diagnostics: EditorDocxDiagnostic[];
30
33
  constructor(diagnostics: EditorDocxDiagnostic[]);
@@ -0,0 +1,24 @@
1
+ import { EditorDocxOpaqueObject, EditorDocxSourcePackage, EditorOpcRelationship, EditorOpaqueRunData } from '../../core/model.js';
2
+ export interface OpaqueStoryRelocationPlan {
3
+ sourceOwner: string;
4
+ destinationOwner: string;
5
+ sourceOrdinal: number;
6
+ sourceSignature: string;
7
+ destinationRun: EditorOpaqueRunData;
8
+ addedRelationships: EditorOpcRelationship[];
9
+ idMapping: Array<{
10
+ from: string;
11
+ to: string;
12
+ }>;
13
+ sharedPartPaths: string[];
14
+ }
15
+ /**
16
+ * Plan ONLY. Existing same-package main/header/footer owners, unique original
17
+ * object, unambiguous internal explicit relationships. Does not edit the
18
+ * source, delete old edges, authorize export or create another object.
19
+ * The caller must commit movement and a dedicated audit atomically.
20
+ */
21
+ export declare function planOpaqueStoryRelocation(source: EditorDocxSourcePackage, identity: Pick<EditorDocxOpaqueObject, "ownerPath" | "ordinal" | "signature">, destinationOwner: string): OpaqueStoryRelocationPlan;
22
+ /** Resolve only explicit, unshared default stories of a single-section package.
23
+ * The caller must also ensure the editable model still has one section. */
24
+ export declare function resolveOpaqueDefaultStoryOwner(source: EditorDocxSourcePackage, zone: "main" | "header" | "footer"): string;