oasis-editor 0.0.397 → 0.0.398
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-Bzk0rSbq.js +1 -0
- package/dist/assets/{importDocxWorker-C6vLHeaU.js → importDocxWorker-gjomIN7s.js} +2434 -2214
- package/dist/core/document/fieldEvaluation.d.ts +24 -1
- package/dist/core/document/nestedConditionalFields.d.ts +8 -0
- package/dist/core/model/types/document.d.ts +5 -0
- package/dist/defaultToolbar-Bc3d9BXm.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ooxml/opc/documentProperties.d.ts +15 -0
- package/dist/sourcePackage-D_eKi6F8.js +1 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-BTHv-Yyc.js +0 -1
- package/dist/defaultToolbar-Bl3U_cmM.js +0 -1
- package/dist/sourcePackage-DB0wV9SH.js +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as JSZip } from 'jszip';
|
|
2
|
+
import { EditorDocument } from '../../core/model.js';
|
|
3
|
+
/** Only directly-authenticated OPC metadata parts qualify as DOCPROPERTY data. */
|
|
4
|
+
export interface DocumentPropertyValues {
|
|
5
|
+
core?: Record<string, string>;
|
|
6
|
+
custom?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare function parseCoreDocumentProperties(xml: string): Record<string, string> | undefined;
|
|
9
|
+
export declare function parseCustomDocumentProperties(xml: string): Record<string, string> | undefined;
|
|
10
|
+
export declare function readPackageDocumentProperties(zip: JSZip): Promise<DocumentPropertyValues | undefined>;
|
|
11
|
+
/** Reject shadowed or ambiguous keys across built-in and custom spaces. */
|
|
12
|
+
export declare function resolveDocumentProperty(snapshot: DocumentPropertyValues | undefined, name: string): string | undefined;
|
|
13
|
+
/** Canonical writer only: never patches an imported OPC source in place.
|
|
14
|
+
* Existing unknown or ambiguous property parts are preserved untouched. */
|
|
15
|
+
export declare function applyCanonicalDocumentProperties(buffer: ArrayBuffer, document: EditorDocument): Promise<ArrayBuffer>;
|