@stll/docx-core 0.37.0 → 0.39.0
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-wNmygRXS.d.ts → document-BkGU2ctn.d.ts} +158 -68
- package/dist/{document-C02Ulybe.js → document-oU-dz9zs.js} +141 -1
- package/dist/docx_kernel_bg.wasm +0 -0
- package/dist/index.d.ts +28 -28
- package/dist/index.js +87 -43
- package/dist/model/document.d.ts +2 -2
- package/dist/model/document.js +1 -2
- package/dist/ops/documentOps.d.ts +372 -97
- package/dist/ops/documentOps.js +7236 -5171
- package/dist/projection.d.ts +12 -12
- package/dist/projection.js +4 -2
- package/dist/schema/sequenceChildren.d.ts +7 -7
- package/dist/schema/sequenceChildren.js +1 -2
- package/dist/{sequenceChildren-B8ODeI3J.js → sequenceChildren-ByDxvF4j.js} +21 -3
- package/dist/zip/writeZipPart.d.ts +2 -2
- package/dist/zip/writeZipPart.js +8 -3
- package/package.json +19 -13
package/dist/projection.d.ts
CHANGED
|
@@ -46,17 +46,17 @@ type DocxProjectionContainer = "body" | "tableCell";
|
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/projection.d.ts
|
|
48
48
|
declare const DocxProjectionInitializationError_base: import("better-result").TaggedErrorClass<"DocxProjectionInitializationError">;
|
|
49
|
-
declare class DocxProjectionInitializationError extends DocxProjectionInitializationError_base<{
|
|
49
|
+
export declare class DocxProjectionInitializationError extends DocxProjectionInitializationError_base<{
|
|
50
50
|
message: string;
|
|
51
51
|
cause: unknown;
|
|
52
52
|
}> {}
|
|
53
53
|
declare const DocxProjectionError_base: import("better-result").TaggedErrorClass<"DocxProjectionError">;
|
|
54
|
-
declare class DocxProjectionError extends DocxProjectionError_base<{
|
|
54
|
+
export declare class DocxProjectionError extends DocxProjectionError_base<{
|
|
55
55
|
message: string;
|
|
56
56
|
cause: unknown;
|
|
57
57
|
}> {}
|
|
58
|
-
type DocxProjectionWasmSource = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
59
|
-
type InitializeDocxProjectionOptions = {
|
|
58
|
+
export type DocxProjectionWasmSource = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
59
|
+
export type InitializeDocxProjectionOptions = {
|
|
60
60
|
/**
|
|
61
61
|
* Optional explicit WebAssembly source for runtimes that do not load assets
|
|
62
62
|
* by URL. Browsers normally omit this and use the package-relative asset.
|
|
@@ -64,24 +64,24 @@ type InitializeDocxProjectionOptions = {
|
|
|
64
64
|
wasm?: DocxProjectionWasmSource;
|
|
65
65
|
};
|
|
66
66
|
/** Controls text materialization for fused document and review-fact projection. */
|
|
67
|
-
type ProjectCompressedDocxWithReviewFactsOptions = {
|
|
67
|
+
export type ProjectCompressedDocxWithReviewFactsOptions = {
|
|
68
68
|
/** Selects host-coordinate controls or normalized readable text. */
|
|
69
69
|
textMaterialization?: "word-host" | "readable-plain-text";
|
|
70
70
|
};
|
|
71
71
|
/** Loads and caches the single-threaded WebAssembly runtime. */
|
|
72
|
-
declare const initializeDocxProjection: ({ wasm }?: InitializeDocxProjectionOptions) => Promise<void>;
|
|
72
|
+
export declare const initializeDocxProjection: ({ wasm }?: InitializeDocxProjectionOptions) => Promise<void>;
|
|
73
73
|
/** Returns the wire schema version owned by the initialized Rust runtime. */
|
|
74
|
-
declare const docxProjectionSchemaVersion: () => Promise<number>;
|
|
75
|
-
declare const projectCompressedDocx: (bytes: Uint8Array) => Promise<DocxProjectionWire>;
|
|
74
|
+
export declare const docxProjectionSchemaVersion: () => Promise<number>;
|
|
75
|
+
export declare const projectCompressedDocx: (bytes: Uint8Array) => Promise<DocxProjectionWire>;
|
|
76
76
|
/** Projects raw main-document XML or a Flat OPC package through Rust. */
|
|
77
|
-
declare const projectMainDocumentXml: (bytes: Uint8Array) => Promise<DocxProjectionWire>;
|
|
77
|
+
export declare const projectMainDocumentXml: (bytes: Uint8Array) => Promise<DocxProjectionWire>;
|
|
78
78
|
/** Projects one Flat OPC paragraph; document structural facts remain unknown. */
|
|
79
|
-
declare const projectParagraphFragment: (bytes: Uint8Array) => Promise<DocxParagraphFragmentWire>;
|
|
79
|
+
export declare const projectParagraphFragment: (bytes: Uint8Array) => Promise<DocxParagraphFragmentWire>;
|
|
80
80
|
/**
|
|
81
81
|
* Projects the document snapshot and attributed review facts through one
|
|
82
82
|
* bounded package scan. Optional review-part failures remain explicit unknown
|
|
83
83
|
* fact families rather than invalidating the document snapshot.
|
|
84
84
|
*/
|
|
85
|
-
declare const projectCompressedDocxWithReviewFacts: (bytes: Uint8Array, { textMaterialization }?: ProjectCompressedDocxWithReviewFactsOptions) => Promise<DocxPackageProjectionWire>;
|
|
85
|
+
export declare const projectCompressedDocxWithReviewFacts: (bytes: Uint8Array, { textMaterialization }?: ProjectCompressedDocxWithReviewFactsOptions) => Promise<DocxPackageProjectionWire>;
|
|
86
86
|
//#endregion
|
|
87
|
-
export {
|
|
87
|
+
export type { DocxAttributedComment, DocxAttributedRevision, DocxPackageProjectionWire, DocxParagraphFragmentWire, DocxProjectionAlignment, DocxProjectionAlignmentSource, DocxProjectionAlignmentValue, DocxProjectionBookmarkFact, DocxProjectionContainer, DocxProjectionFactSet, DocxProjectionFormattingCompleteness, DocxProjectionFormattingFamily, DocxProjectionFormattingFamilyStatus, DocxProjectionFormattingSpan, DocxProjectionFormattingUnknownReason, DocxProjectionIndentationFact, DocxProjectionNumberingFact, DocxProjectionOutlineLevelFact, DocxProjectionParagraph, DocxProjectionReferenceFact, DocxProjectionRevisionStatus, DocxProjectionRevisionUnsupportedReason, DocxProjectionStructuralFacts, DocxProjectionStructuralSpan, DocxProjectionStructure, DocxProjectionUnknownReason, DocxProjectionWire, DocxReviewFactSet, DocxReviewFactsWire, DocxReviewUnknownReason, DocxRevisionKind };
|
package/dist/projection.js
CHANGED
|
@@ -279,8 +279,10 @@ async function __wbg_load(module, imports) {
|
|
|
279
279
|
}
|
|
280
280
|
async function __wbg_init(module_or_path) {
|
|
281
281
|
if (wasm !== void 0) return wasm;
|
|
282
|
-
if (module_or_path !== void 0)
|
|
283
|
-
|
|
282
|
+
if (module_or_path !== void 0) {
|
|
283
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) ({module_or_path} = module_or_path);
|
|
284
|
+
else console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
285
|
+
}
|
|
284
286
|
if (module_or_path === void 0) module_or_path = new URL("./docx_kernel_bg.wasm", import.meta.url);
|
|
285
287
|
const imports = __wbg_get_imports();
|
|
286
288
|
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) module_or_path = fetch(module_or_path);
|
|
@@ -17,7 +17,7 @@ import { r as PreservedMarkup } from "../preservedMarkup-G8XjWhs2.js";
|
|
|
17
17
|
*
|
|
18
18
|
* bun run generate:container-children
|
|
19
19
|
*/
|
|
20
|
-
declare const SEQUENCE_CHILDREN: {
|
|
20
|
+
export declare const SEQUENCE_CHILDREN: {
|
|
21
21
|
readonly "w:numbering": readonly ["numPicBullet", "abstractNum", "num", "numIdMacAtCleanup"];
|
|
22
22
|
readonly "w:abstractNum": readonly ["nsid", "multiLevelType", "tmpl", "name", "styleLink", "numStyleLink", "lvl"];
|
|
23
23
|
readonly "w:lvl": readonly ["start", "numFmt", "lvlRestart", "pStyle", "isLgl", "suff", "lvlText", "lvlPicBulletId", "legacy", "lvlJc", "pPr", "rPr"];
|
|
@@ -32,7 +32,7 @@ declare const SEQUENCE_CHILDREN: {
|
|
|
32
32
|
readonly "content-control-properties": readonly ["rPr", "alias", "tag", "id", "lock", "placeholder", "temporary", "showingPlcHdr", "dataBinding", "label", "tabIndex", "equation", "comboBox", "date", "docPartObj", "docPartList", "dropDownList", "picture", "richText", "text", "citation", "group", "bibliography"];
|
|
33
33
|
readonly "section-properties": readonly ["headerReference", "footerReference", "footnotePr", "endnotePr", "type", "pgSz", "pgMar", "paperSrc", "pgBorders", "lnNumType", "pgNumType", "cols", "formProt", "vAlign", "noEndnote", "titlePg", "textDirection", "bidi", "rtlGutter", "docGrid", "printerSettings", "sectPrChange"];
|
|
34
34
|
};
|
|
35
|
-
declare const SETTINGS_CHILDREN: readonly ["writeProtection", "view", "zoom", "removePersonalInformation", "removeDateAndTime", "doNotDisplayPageBoundaries", "displayBackgroundShape", "printPostScriptOverText", "printFractionalCharacterWidth", "printFormsData", "embedTrueTypeFonts", "embedSystemFonts", "saveSubsetFonts", "saveFormsData", "mirrorMargins", "alignBordersAndEdges", "bordersDoNotSurroundHeader", "bordersDoNotSurroundFooter", "gutterAtTop", "hideSpellingErrors", "hideGrammaticalErrors", "activeWritingStyle", "proofState", "formsDesign", "attachedTemplate", "linkStyles", "stylePaneFormatFilter", "stylePaneSortMethod", "documentType", "mailMerge", "revisionView", "trackRevisions", "doNotTrackMoves", "doNotTrackFormatting", "documentProtection", "autoFormatOverride", "styleLockTheme", "styleLockQFSet", "defaultTabStop", "autoHyphenation", "consecutiveHyphenLimit", "hyphenationZone", "doNotHyphenateCaps", "showEnvelope", "summaryLength", "clickAndTypeStyle", "defaultTableStyle", "evenAndOddHeaders", "bookFoldRevPrinting", "bookFoldPrinting", "bookFoldPrintingSheets", "drawingGridHorizontalSpacing", "drawingGridVerticalSpacing", "displayHorizontalDrawingGridEvery", "displayVerticalDrawingGridEvery", "doNotUseMarginsForDrawingGridOrigin", "drawingGridHorizontalOrigin", "drawingGridVerticalOrigin", "doNotShadeFormData", "noPunctuationKerning", "characterSpacingControl", "printTwoOnOne", "strictFirstAndLastChars", "noLineBreaksAfter", "noLineBreaksBefore", "savePreviewPicture", "doNotValidateAgainstSchema", "saveInvalidXml", "ignoreMixedContent", "alwaysShowPlaceholderText", "doNotDemarcateInvalidXml", "saveXmlDataOnly", "useXSLTWhenSaving", "saveThroughXslt", "showXMLTags", "alwaysMergeEmptyNamespace", "updateFields", "hdrShapeDefaults", "footnotePr", "endnotePr", "compat", "docVars", "rsids", "attachedSchema", "themeFontLang", "clrSchemeMapping", "doNotIncludeSubdocsInStats", "doNotAutoCompressPictures", "forceUpgrade", "captions", "readModeInkLockDown", "smartTagType", "shapeDefaults", "doNotEmbedSmartTags", "decimalSymbol", "listSeparator"];
|
|
35
|
+
export declare const SETTINGS_CHILDREN: readonly ["writeProtection", "view", "zoom", "removePersonalInformation", "removeDateAndTime", "doNotDisplayPageBoundaries", "displayBackgroundShape", "printPostScriptOverText", "printFractionalCharacterWidth", "printFormsData", "embedTrueTypeFonts", "embedSystemFonts", "saveSubsetFonts", "saveFormsData", "mirrorMargins", "alignBordersAndEdges", "bordersDoNotSurroundHeader", "bordersDoNotSurroundFooter", "gutterAtTop", "hideSpellingErrors", "hideGrammaticalErrors", "activeWritingStyle", "proofState", "formsDesign", "attachedTemplate", "linkStyles", "stylePaneFormatFilter", "stylePaneSortMethod", "documentType", "mailMerge", "revisionView", "trackRevisions", "doNotTrackMoves", "doNotTrackFormatting", "documentProtection", "autoFormatOverride", "styleLockTheme", "styleLockQFSet", "defaultTabStop", "autoHyphenation", "consecutiveHyphenLimit", "hyphenationZone", "doNotHyphenateCaps", "showEnvelope", "summaryLength", "clickAndTypeStyle", "defaultTableStyle", "evenAndOddHeaders", "bookFoldRevPrinting", "bookFoldPrinting", "bookFoldPrintingSheets", "drawingGridHorizontalSpacing", "drawingGridVerticalSpacing", "displayHorizontalDrawingGridEvery", "displayVerticalDrawingGridEvery", "doNotUseMarginsForDrawingGridOrigin", "drawingGridHorizontalOrigin", "drawingGridVerticalOrigin", "doNotShadeFormData", "noPunctuationKerning", "characterSpacingControl", "printTwoOnOne", "strictFirstAndLastChars", "noLineBreaksAfter", "noLineBreaksBefore", "savePreviewPicture", "doNotValidateAgainstSchema", "saveInvalidXml", "ignoreMixedContent", "alwaysShowPlaceholderText", "doNotDemarcateInvalidXml", "saveXmlDataOnly", "useXSLTWhenSaving", "saveThroughXslt", "showXMLTags", "alwaysMergeEmptyNamespace", "updateFields", "hdrShapeDefaults", "footnotePr", "endnotePr", "compat", "docVars", "rsids", "attachedSchema", "themeFontLang", "clrSchemeMapping", "doNotIncludeSubdocsInStats", "doNotAutoCompressPictures", "forceUpgrade", "captions", "readModeInkLockDown", "smartTagType", "shapeDefaults", "doNotEmbedSmartTags", "decimalSymbol", "listSeparator"];
|
|
36
36
|
/** A container whose declared children have an order. */
|
|
37
37
|
type SequenceContainer = keyof typeof SEQUENCE_CHILDREN;
|
|
38
38
|
/** Every child the schema declares for `Container`, in declaration order. */
|
|
@@ -57,11 +57,11 @@ type SerializeSequenceChildrenOptions<Container extends SequenceContainer> = {
|
|
|
57
57
|
preserved?: PreservedMarkup | undefined;
|
|
58
58
|
};
|
|
59
59
|
/** Whether a captured child is exactly one bounded, well-formed XML element. */
|
|
60
|
-
declare const isSafePreservedChildXml: (xml: string) => boolean;
|
|
60
|
+
export declare const isSafePreservedChildXml: (xml: string) => boolean;
|
|
61
61
|
/** Whether a capture collection stays within its aggregate resource budget. */
|
|
62
|
-
declare const isWithinPreservedMarkupBudget: (children: Iterable<unknown>) => boolean;
|
|
62
|
+
export declare const isWithinPreservedMarkupBudget: (children: Iterable<unknown>) => boolean;
|
|
63
63
|
/** Reject unsafe captured children before a caller performs any transformation. */
|
|
64
|
-
declare const assertSafePreservedMarkup: (preserved: PreservedMarkup | undefined) => void;
|
|
64
|
+
export declare const assertSafePreservedMarkup: (preserved: PreservedMarkup | undefined) => void;
|
|
65
65
|
/**
|
|
66
66
|
* A property set's children, modelled and captured, in schema order.
|
|
67
67
|
*
|
|
@@ -69,6 +69,6 @@ declare const assertSafePreservedMarkup: (preserved: PreservedMarkup | undefined
|
|
|
69
69
|
* slot — an undeclared name takes the place of the last declared child before
|
|
70
70
|
* it. The sort is stable and the modelled child leads.
|
|
71
71
|
*/
|
|
72
|
-
declare const serializeSequenceChildren: <Container extends SequenceContainer>({ container, modelled, preserved }: SerializeSequenceChildrenOptions<Container>) => string[];
|
|
72
|
+
export declare const serializeSequenceChildren: <Container extends SequenceContainer>({ container, modelled, preserved }: SerializeSequenceChildrenOptions<Container>) => string[];
|
|
73
73
|
//#endregion
|
|
74
|
-
export {
|
|
74
|
+
export type { SequenceChild, SequenceContainer };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { SEQUENCE_CHILDREN, SETTINGS_CHILDREN, assertSafePreservedMarkup, isSafePreservedChildXml, isWithinPreservedMarkupBudget, serializeSequenceChildren };
|
|
1
|
+
export { a as SEQUENCE_CHILDREN, o as SETTINGS_CHILDREN, t as assertSafePreservedMarkup, n as isSafePreservedChildXml, r as isWithinPreservedMarkupBudget, i as serializeSequenceChildren } from "../sequenceChildren-ByDxvF4j.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TaggedError } from "better-result";
|
|
2
|
-
import { OOXML_NS } from "@stll/docx-utils";
|
|
3
2
|
import { XMLParser, XMLValidator } from "fast-xml-parser";
|
|
3
|
+
import { OOXML_NS } from "@stll/docx-utils";
|
|
4
4
|
//#region src/schema/sequenceChildren.gen.ts
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED FILE — do not edit.
|
|
@@ -354,9 +354,27 @@ const SETTINGS_CHILDREN = [
|
|
|
354
354
|
];
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/schema/sequenceChildren.ts
|
|
357
|
-
|
|
357
|
+
/**
|
|
358
|
+
* The one writer of a property set's children, in the order the schema
|
|
359
|
+
* declares them.
|
|
360
|
+
*
|
|
361
|
+
* `w:rPr`, `w:tblPr` and `w:sectPr` each declare their children in one order,
|
|
362
|
+
* and folio writes them in it. How binding that order is differs by container:
|
|
363
|
+
* `CT_TblPrBase` is an `xsd:sequence` of distinct names and a validating
|
|
364
|
+
* consumer refuses a `w:tblPr` written in any other order, while `EG_RPrBase`
|
|
365
|
+
* is an `xsd:choice` referenced `maxOccurs="unbounded"`, so a `w:rPr` in any
|
|
366
|
+
* order is valid. Writing the canonical order anyway is what keeps two
|
|
367
|
+
* serializers of the same element from disagreeing, and it is what Word
|
|
368
|
+
* writes.
|
|
369
|
+
*
|
|
370
|
+
* The order is read from the generated list rather than restated as the order
|
|
371
|
+
* of a list of `if` statements — the restatement is what drifted, twice: once
|
|
372
|
+
* inside folio-core, and once as a second `w:rPr` writer in this package that
|
|
373
|
+
* put `w:sz` and `w:highlight` before `w:rFonts`.
|
|
374
|
+
*/
|
|
375
|
+
const MAX_PRESERVED_CHILD_XML_CHARACTERS = 1048576;
|
|
358
376
|
const MAX_PRESERVED_CHILD_COUNT = 4096;
|
|
359
|
-
const MAX_PRESERVED_MARKUP_CHARACTERS =
|
|
377
|
+
const MAX_PRESERVED_MARKUP_CHARACTERS = 4194304;
|
|
360
378
|
const PRESERVED_CHILD_WRAPPER = "folio-preserved-child-root";
|
|
361
379
|
const preservedChildParser = new XMLParser({
|
|
362
380
|
preserveOrder: true,
|
|
@@ -7,6 +7,6 @@ type WriteZipPartOptions = {
|
|
|
7
7
|
options?: Omit<JSZip.JSZipFileOptions, "createFolders">;
|
|
8
8
|
};
|
|
9
9
|
/** Write exactly one entry, without synthesizing parent directory entries. */
|
|
10
|
-
declare const writeZipPart: ({ zip, path, data, options }: WriteZipPartOptions) => void;
|
|
10
|
+
export declare const writeZipPart: ({ zip, path, data, options }: WriteZipPartOptions) => void;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export {};
|
package/dist/zip/writeZipPart.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { writeZipEntry } from "@stll/utf8-boundaries";
|
|
1
2
|
//#region src/zip/writeZipPart.ts
|
|
2
3
|
const FIXED_ZIP_DATE_MS = Date.UTC(2e3, 0, 1);
|
|
4
|
+
const UNIX_DIRECTORY_FLAG = 16384;
|
|
5
|
+
const DOS_DIRECTORY_FLAG = 16;
|
|
3
6
|
/** Write exactly one entry, without synthesizing parent directory entries. */
|
|
4
|
-
const writeZipPart = ({ zip, path, data, options }) => {
|
|
5
|
-
|
|
7
|
+
const writeZipPart = ({ zip, path, data, options = {} }) => {
|
|
8
|
+
const unixPermissions = typeof options.unixPermissions === "string" ? Number.parseInt(options.unixPermissions, 8) : options.unixPermissions ?? 0;
|
|
9
|
+
if (options.dir === true || (unixPermissions & UNIX_DIRECTORY_FLAG) !== 0 || ((options.dosPermissions ?? 0) & DOS_DIRECTORY_FLAG) !== 0) data = /* @__PURE__ */ new Uint8Array();
|
|
10
|
+
writeZipEntry(zip, path, data, {
|
|
6
11
|
...options,
|
|
7
|
-
date: options
|
|
12
|
+
date: options.date ?? new Date(FIXED_ZIP_DATE_MS),
|
|
8
13
|
createFolders: false
|
|
9
14
|
});
|
|
10
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/docx-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Typed OOXML/DOCX model, validation, serialization, legal-source compilation, and browser-native package projection.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"document-model",
|
|
@@ -34,27 +34,33 @@
|
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
36
36
|
"types": "./dist/index.d.ts",
|
|
37
|
-
"import": "./dist/index.js"
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"default": "./dist/index.js"
|
|
38
39
|
},
|
|
39
40
|
"./model": {
|
|
40
41
|
"types": "./dist/model/document.d.ts",
|
|
41
|
-
"import": "./dist/model/document.js"
|
|
42
|
+
"import": "./dist/model/document.js",
|
|
43
|
+
"default": "./dist/model/document.js"
|
|
42
44
|
},
|
|
43
45
|
"./ops": {
|
|
44
46
|
"types": "./dist/ops/documentOps.d.ts",
|
|
45
|
-
"import": "./dist/ops/documentOps.js"
|
|
47
|
+
"import": "./dist/ops/documentOps.js",
|
|
48
|
+
"default": "./dist/ops/documentOps.js"
|
|
46
49
|
},
|
|
47
50
|
"./projection": {
|
|
48
51
|
"types": "./dist/projection.d.ts",
|
|
49
|
-
"import": "./dist/projection.js"
|
|
52
|
+
"import": "./dist/projection.js",
|
|
53
|
+
"default": "./dist/projection.js"
|
|
50
54
|
},
|
|
51
55
|
"./schema": {
|
|
52
56
|
"types": "./dist/schema/sequenceChildren.d.ts",
|
|
53
|
-
"import": "./dist/schema/sequenceChildren.js"
|
|
57
|
+
"import": "./dist/schema/sequenceChildren.js",
|
|
58
|
+
"default": "./dist/schema/sequenceChildren.js"
|
|
54
59
|
},
|
|
55
60
|
"./zip": {
|
|
56
61
|
"types": "./dist/zip/writeZipPart.d.ts",
|
|
57
|
-
"import": "./dist/zip/writeZipPart.js"
|
|
62
|
+
"import": "./dist/zip/writeZipPart.js",
|
|
63
|
+
"default": "./dist/zip/writeZipPart.js"
|
|
58
64
|
}
|
|
59
65
|
},
|
|
60
66
|
"publishConfig": {
|
|
@@ -68,20 +74,20 @@
|
|
|
68
74
|
"typecheck": "bun check --no-pretty --all --project=tsconfig.build.json",
|
|
69
75
|
"wasm:check": "bun ../../scripts/build-docx-kernel-wasm.ts --check",
|
|
70
76
|
"wasm:generate": "bun ../../scripts/build-docx-kernel-wasm.ts --write",
|
|
71
|
-
"format": "oxfmt .",
|
|
72
77
|
"prepack": "bun run build"
|
|
73
78
|
},
|
|
74
79
|
"dependencies": {
|
|
75
80
|
"@nodable/entities": "^3.0.0",
|
|
76
|
-
"@stll/docx-utils": "^0.
|
|
81
|
+
"@stll/docx-utils": "^0.2.0",
|
|
82
|
+
"@stll/utf8-boundaries": "0.1.1",
|
|
77
83
|
"better-result": "3.0.1",
|
|
78
|
-
"fast-xml-parser": "^5.
|
|
84
|
+
"fast-xml-parser": "^5.11.2",
|
|
79
85
|
"jszip": "3.10.2",
|
|
80
|
-
"marked": "^18.
|
|
86
|
+
"marked": "^18.1.1"
|
|
81
87
|
},
|
|
82
88
|
"devDependencies": {
|
|
83
|
-
"bun-types": "1.4.
|
|
84
|
-
"tsdown": "0.
|
|
89
|
+
"bun-types": "1.4.4",
|
|
90
|
+
"tsdown": "0.23.1"
|
|
85
91
|
},
|
|
86
92
|
"main": "./dist/index.js",
|
|
87
93
|
"types": "./dist/index.d.ts"
|