@stll/docx-core 0.39.0 → 0.39.2
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/{document-BkGU2ctn.d.ts → document-BWDHON3T.d.ts} +1 -47
- package/dist/{document-oU-dz9zs.js → document-NtScxyHH.js} +18 -36
- package/dist/docx_kernel_bg.wasm +0 -0
- package/dist/{href-2XSCK-T8.js → href-ogmJmncc.js} +2 -4
- package/dist/index.d.ts +4 -68
- package/dist/index.js +23 -37
- package/dist/model/document.d.ts +2 -2
- package/dist/model/document.js +1 -1
- package/dist/ops/documentOps.d.ts +9 -79
- package/dist/ops/documentOps.js +63 -112
- package/dist/{preservedMarkup-G8XjWhs2.d.ts → preservedMarkup-9L4lbGnE.d.ts} +0 -2
- package/dist/projection.d.ts +5 -8
- package/dist/projection.js +6 -6
- package/dist/schema/sequenceChildren.d.ts +1 -5
- package/dist/schema/sequenceChildren.js +1 -1
- package/dist/{sequenceChildren-ByDxvF4j.js → sequenceChildren-CrMcryEF.js} +4 -5
- package/dist/zip/writeZipPart.d.ts +0 -2
- package/dist/zip/writeZipPart.js +1 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TaggedError } from "better-result";
|
|
2
2
|
import { XMLParser, XMLValidator } from "fast-xml-parser";
|
|
3
3
|
import { OOXML_NS } from "@stll/docx-utils";
|
|
4
|
-
|
|
4
|
+
// src/schema/sequenceChildren.gen.ts
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED FILE — do not edit.
|
|
7
7
|
*
|
|
@@ -352,8 +352,7 @@ const SETTINGS_CHILDREN = [
|
|
|
352
352
|
"decimalSymbol",
|
|
353
353
|
"listSeparator"
|
|
354
354
|
];
|
|
355
|
-
|
|
356
|
-
//#region src/schema/sequenceChildren.ts
|
|
355
|
+
// src/schema/sequenceChildren.ts
|
|
357
356
|
/**
|
|
358
357
|
* The one writer of a property set's children, in the order the schema
|
|
359
358
|
* declares them.
|
|
@@ -388,7 +387,8 @@ const preservedChildParser = new XMLParser({
|
|
|
388
387
|
processEntities: false,
|
|
389
388
|
htmlEntities: false
|
|
390
389
|
});
|
|
391
|
-
|
|
390
|
+
const InvalidPreservedChildXmlErrorBase = TaggedError("InvalidPreservedChildXmlError");
|
|
391
|
+
var InvalidPreservedChildXmlError = class extends InvalidPreservedChildXmlErrorBase {};
|
|
392
392
|
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
393
393
|
const XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace";
|
|
394
394
|
const XMLNS_NAMESPACE_URI = "http://www.w3.org/2000/xmlns/";
|
|
@@ -575,5 +575,4 @@ const serializeSequenceChildren = ({ container, modelled, preserved }) => {
|
|
|
575
575
|
});
|
|
576
576
|
return placed.sort((left, right) => left.at - right.at || left.rank - right.rank).map(({ xml }) => xml);
|
|
577
577
|
};
|
|
578
|
-
//#endregion
|
|
579
578
|
export { SEQUENCE_CHILDREN as a, serializeSequenceChildren as i, isSafePreservedChildXml as n, SETTINGS_CHILDREN as o, isWithinPreservedMarkupBudget as r, assertSafePreservedMarkup as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import JSZip from "jszip";
|
|
2
|
-
//#region src/zip/writeZipPart.d.ts
|
|
3
2
|
type WriteZipPartOptions = {
|
|
4
3
|
zip: JSZip;
|
|
5
4
|
path: string;
|
|
@@ -8,5 +7,4 @@ type WriteZipPartOptions = {
|
|
|
8
7
|
};
|
|
9
8
|
/** Write exactly one entry, without synthesizing parent directory entries. */
|
|
10
9
|
export declare const writeZipPart: ({ zip, path, data, options }: WriteZipPartOptions) => void;
|
|
11
|
-
//#endregion
|
|
12
10
|
export {};
|
package/dist/zip/writeZipPart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writeZipEntry } from "@stll/utf8-boundaries";
|
|
2
|
-
|
|
2
|
+
// src/zip/writeZipPart.ts
|
|
3
3
|
const FIXED_ZIP_DATE_MS = Date.UTC(2e3, 0, 1);
|
|
4
4
|
const UNIX_DIRECTORY_FLAG = 16384;
|
|
5
5
|
const DOS_DIRECTORY_FLAG = 16;
|
|
@@ -13,5 +13,4 @@ const writeZipPart = ({ zip, path, data, options = {} }) => {
|
|
|
13
13
|
createFolders: false
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { writeZipPart };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/docx-core",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.2",
|
|
4
4
|
"description": "Typed OOXML/DOCX model, validation, serialization, legal-source compilation, and browser-native package projection.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"document-model",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@nodable/entities": "^3.0.0",
|
|
81
81
|
"@stll/docx-utils": "^0.2.0",
|
|
82
|
-
"@stll/utf8-boundaries": "0.1.
|
|
82
|
+
"@stll/utf8-boundaries": "0.1.2",
|
|
83
83
|
"better-result": "3.0.1",
|
|
84
84
|
"fast-xml-parser": "^5.11.2",
|
|
85
85
|
"jszip": "3.10.2",
|