oasis-editor 0.0.367 → 0.0.368
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.
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EditorDocxSourcePackage, EditorOpcRelationship, EditorOpaqueRunData } from '../../core/model.js';
|
|
2
|
+
import { OpaqueTransferPart } from './opaqueTransferManifest.js';
|
|
3
|
+
export interface OpaqueTransferInsertionPlan {
|
|
4
|
+
destinationOwner: string;
|
|
5
|
+
destinationRun: EditorOpaqueRunData;
|
|
6
|
+
addedRelationships: EditorOpcRelationship[];
|
|
7
|
+
addedParts: OpaqueTransferPart[];
|
|
8
|
+
contentTypeOverrides: Record<string, string>;
|
|
9
|
+
pathMapping: Array<{
|
|
10
|
+
from: string;
|
|
11
|
+
to: string;
|
|
12
|
+
}>;
|
|
13
|
+
relationshipMapping: Array<{
|
|
14
|
+
from: string;
|
|
15
|
+
to: string;
|
|
16
|
+
}>;
|
|
17
|
+
drawingId: number;
|
|
18
|
+
}
|
|
19
|
+
/** Pure plan for one chart inserted into an EXISTING Transitional main story.
|
|
20
|
+
* Does not mutate either package, write ZIPs, authorize export or accept paste.
|
|
21
|
+
* Recheck every reservation against the actual rebuilt output before applying. */
|
|
22
|
+
export declare function planOpaqueTransferInsertion(value: unknown, destination: EditorDocxSourcePackage): OpaqueTransferInsertionPlan;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EditorDocxOpaqueObject, EditorDocxSourcePackage, EditorOpcRelationship } from '../../core/model.js';
|
|
2
|
+
export declare const OPAQUE_TRANSFER_FORMAT = "oasis.opc-chart-transfer.v1";
|
|
3
|
+
export interface OpaqueTransferPart {
|
|
4
|
+
path: string;
|
|
5
|
+
contentType: string;
|
|
6
|
+
kind: "xml" | "binary";
|
|
7
|
+
encoding: "utf8" | "base64";
|
|
8
|
+
data: string;
|
|
9
|
+
relationships: EditorOpcRelationship[];
|
|
10
|
+
}
|
|
11
|
+
export interface OpaqueTransferManifest {
|
|
12
|
+
format: typeof OPAQUE_TRANSFER_FORMAT;
|
|
13
|
+
ownerPath: string;
|
|
14
|
+
fragmentXml: string;
|
|
15
|
+
signature: string;
|
|
16
|
+
relationships: EditorOpcRelationship[];
|
|
17
|
+
parts: OpaqueTransferPart[];
|
|
18
|
+
}
|
|
19
|
+
/** Validate the detached transport at every receiving boundary. This proves
|
|
20
|
+
* structural closure, not authenticity or safety of the embedded workbook.
|
|
21
|
+
* No document, ZIP, browser clipboard, network or execution side effect. */
|
|
22
|
+
export declare function validateOpaqueTransferManifest(value: unknown): OpaqueTransferManifest;
|
|
23
|
+
/** Snapshot exactly one original, unchanged inline chart and its transitive
|
|
24
|
+
* dependency closure. Source inventory is always recomputed; callers must
|
|
25
|
+
* still prove the selected model run matches this object before copying. */
|
|
26
|
+
export declare function captureOpaqueTransferManifest(source: EditorDocxSourcePackage, identity: Pick<EditorDocxOpaqueObject, "ownerPath" | "ordinal" | "signature">): OpaqueTransferManifest;
|