@stll/docx-core 0.36.0 → 0.36.1
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/docx_kernel_bg.wasm +0 -0
- package/dist/ops/documentOps.d.ts +17 -1
- package/dist/ops/documentOps.js +64 -9
- package/package.json +2 -2
package/dist/docx_kernel_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1136,6 +1136,14 @@ declare const findStoryBody: (document: Document, story: OpStory) => DocumentBod
|
|
|
1136
1136
|
declare const storyBody: (document: Document, story: OpStory) => DocumentBody;
|
|
1137
1137
|
declare const documentStories: (document: Document) => OpStory[];
|
|
1138
1138
|
//#endregion
|
|
1139
|
+
//#region src/ops/blocks.d.ts
|
|
1140
|
+
/**
|
|
1141
|
+
* A body holding other blocks, its section view derived from them. A view
|
|
1142
|
+
* that does not line up with the blocks (a different section count) is left
|
|
1143
|
+
* for {@link sectionsInStep} to report.
|
|
1144
|
+
*/
|
|
1145
|
+
declare const withBodyContent: (body: DocumentBody, content: BlockContent[]) => DocumentBody;
|
|
1146
|
+
//#endregion
|
|
1139
1147
|
//#region src/ops/wire.d.ts
|
|
1140
1148
|
/** Capture own undefined fields before an operation enters its JSON journal. */
|
|
1141
1149
|
declare const captureDocumentOp: (op: DocumentOp) => DocumentOp;
|
|
@@ -1333,6 +1341,14 @@ type PackageResourcesOpOptions = {
|
|
|
1333
1341
|
/** Describe the package resource difference as one operation carrying only changed entries. */
|
|
1334
1342
|
declare const packageResourcesOpOf: ({ before, after }: PackageResourcesOpOptions) => SetPackageResourcesOp;
|
|
1335
1343
|
//#endregion
|
|
1344
|
+
//#region src/ops/paragraphPropertySnapshot.d.ts
|
|
1345
|
+
type RegisterParagraphPropertySnapshotOptions = {
|
|
1346
|
+
paragraph: Paragraph;
|
|
1347
|
+
snapshot: ParagraphFormatting | undefined;
|
|
1348
|
+
};
|
|
1349
|
+
/** Bind effective formatting to the authored properties a review must record. */
|
|
1350
|
+
declare const registerParagraphPropertySnapshot: ({ paragraph, snapshot }: RegisterParagraphPropertySnapshotOptions) => void;
|
|
1351
|
+
//#endregion
|
|
1336
1352
|
//#region src/ops/apply.d.ts
|
|
1337
1353
|
/** A document an operation produced, the operations that undo it, and what it changed. */
|
|
1338
1354
|
type AppliedDocumentOp = {
|
|
@@ -1623,4 +1639,4 @@ declare const commentDocumentIssue: (document: Document, allowedOrphans?: Readon
|
|
|
1623
1639
|
/** Allocate from the package's annotation domains without a hidden mutable counter. */
|
|
1624
1640
|
declare const freshCommentId: (document: Document) => Result<number, DocumentOpRefusal>;
|
|
1625
1641
|
//#endregion
|
|
1626
|
-
export { type AddNoteOp, type AppliedDocumentOp, BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, type BatchRejectionReason, type BlockInsertionPoint, type CommentAnchor, type CommentState, type CreateCommentOp, type CreateHeaderFooterOp, type CreateNumberingInstanceOp, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, type DeleteBlocksOp, type DeleteColumnOp, type DeleteCommentOp, type DeleteNumberingInstanceOp, type DeleteRangeOp, type DeleteRowOp, type DeleteTableOp, type DocumentBatch, type DocumentOp, type DocumentOpEnvelope, DocumentOpRefusal, type DocumentOpRefusalReason, type DocumentOpType, DocumentOpsContractError, EMPTY_PROPERTY_SETS, type EditorIntent, type EditorIntentMode, type EmptyPropertySet, type FormattingPatch, type HeaderFooterStory, INHERIT_RUN_PROPS, type InlineSlice, type InsertBlocksOp, type InsertColumnOp, type InsertContentOp, type InsertRowOp, type InsertTableOp, type InsertTextOp, type InsertedRunProps, type JoinBlocksOp, type JoinInlineOp, MAX_BATCH_WIRE_BYTES, type MergeCellsOp, type NewIds, type NoteStory, type NumberingPartState, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, type OpStory, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, type PackageResourceEntry, type PackageResourceEntryChange, type PackageResourceMapChange, type PackageResourceMedia, type PackageResourcePart, type PackageResources, type ParagraphPropsPatch, type ParagraphReviewFields, type PlanTrackedDeletionOptions, type PlanTrackedReplaceOptions, REVISION_DECISIONS, type RemoveHeaderFooterOp, type RemoveNoteOp, type ReplaceBlocksOp, type ReplaceInlineOp, type ResolveRevisionOp, type RestoreCommentStateOp, type RestoreStoryPartsOp, type RevisionDecision, type RevisionStamp, type RunPropsPatch, SPLIT_HALVES, type SectionEndpoint, type SectionMapState, type SectionPropertiesState, type SectionViewEntry, type SectionViewState, type SequencedBatch, type SetCellPropsOp, type SetCommentResolutionOp, type SetContainerBlocksOp, type SetPackageResourcesOp, type SetParagraphPropsOp, type SetParagraphReviewOp, type SetRowPropsOp, type SetRunPropsOp, type SetSectionEndpointOp, type SetSectionPropsOp, type SetTableGridOp, type SetTableOp, type SetTablePropsOp, type SetTableRowsOp, type SplitBlockOp, type SplitCellOp, type SplitHalf, type SplitInlineOp, type SplitParagraphFields, type TableEditOp, type TableIntentOperation, type TextPosition, type TouchedBlocks, type UpdateCommentContentOp, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, zeroWidthLeavesAt };
|
|
1642
|
+
export { type AddNoteOp, type AppliedDocumentOp, BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, type BatchRejectionReason, type BlockInsertionPoint, type CommentAnchor, type CommentState, type CreateCommentOp, type CreateHeaderFooterOp, type CreateNumberingInstanceOp, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, type DeleteBlocksOp, type DeleteColumnOp, type DeleteCommentOp, type DeleteNumberingInstanceOp, type DeleteRangeOp, type DeleteRowOp, type DeleteTableOp, type DocumentBatch, type DocumentOp, type DocumentOpEnvelope, DocumentOpRefusal, type DocumentOpRefusalReason, type DocumentOpType, DocumentOpsContractError, EMPTY_PROPERTY_SETS, type EditorIntent, type EditorIntentMode, type EmptyPropertySet, type FormattingPatch, type HeaderFooterStory, INHERIT_RUN_PROPS, type InlineSlice, type InsertBlocksOp, type InsertColumnOp, type InsertContentOp, type InsertRowOp, type InsertTableOp, type InsertTextOp, type InsertedRunProps, type JoinBlocksOp, type JoinInlineOp, MAX_BATCH_WIRE_BYTES, type MergeCellsOp, type NewIds, type NoteStory, type NumberingPartState, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, type OpStory, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, type PackageResourceEntry, type PackageResourceEntryChange, type PackageResourceMapChange, type PackageResourceMedia, type PackageResourcePart, type PackageResources, type ParagraphPropsPatch, type ParagraphReviewFields, type PlanTrackedDeletionOptions, type PlanTrackedReplaceOptions, REVISION_DECISIONS, type RemoveHeaderFooterOp, type RemoveNoteOp, type ReplaceBlocksOp, type ReplaceInlineOp, type ResolveRevisionOp, type RestoreCommentStateOp, type RestoreStoryPartsOp, type RevisionDecision, type RevisionStamp, type RunPropsPatch, SPLIT_HALVES, type SectionEndpoint, type SectionMapState, type SectionPropertiesState, type SectionViewEntry, type SectionViewState, type SequencedBatch, type SetCellPropsOp, type SetCommentResolutionOp, type SetContainerBlocksOp, type SetPackageResourcesOp, type SetParagraphPropsOp, type SetParagraphReviewOp, type SetRowPropsOp, type SetRunPropsOp, type SetSectionEndpointOp, type SetSectionPropsOp, type SetTableGridOp, type SetTableOp, type SetTablePropsOp, type SetTableRowsOp, type SplitBlockOp, type SplitCellOp, type SplitHalf, type SplitInlineOp, type SplitParagraphFields, type TableEditOp, type TableIntentOperation, type TextPosition, type TouchedBlocks, type UpdateCommentContentOp, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, registerParagraphPropertySnapshot, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, withBodyContent, zeroWidthLeavesAt };
|
package/dist/ops/documentOps.js
CHANGED
|
@@ -138,10 +138,36 @@ const DOCUMENT_OP_REFUSAL_REASONS = Object.freeze({
|
|
|
138
138
|
/** An operation the document cannot take as stated. */
|
|
139
139
|
var DocumentOpRefusal = class extends TaggedError("DocumentOpRefusal") {};
|
|
140
140
|
//#endregion
|
|
141
|
+
//#region src/ops/paragraphPropertySnapshot.ts
|
|
142
|
+
const snapshots = /* @__PURE__ */ new WeakMap();
|
|
143
|
+
/** Bind effective formatting to the authored properties a review must record. */
|
|
144
|
+
const registerParagraphPropertySnapshot = ({ paragraph, snapshot }) => {
|
|
145
|
+
const current = snapshots.get(paragraph);
|
|
146
|
+
if (current !== void 0 && structurallyEqual(current.effective, paragraph.formatting) && structurallyEqual(current.snapshot, snapshot)) return;
|
|
147
|
+
snapshots.set(paragraph, {
|
|
148
|
+
effective: paragraph.formatting,
|
|
149
|
+
snapshot
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
/** Retain paragraph-owned snapshot bindings through sanctioned model copies. */
|
|
153
|
+
const transferParagraphPropertySnapshot = ({ source, target }) => {
|
|
154
|
+
const registered = snapshots.get(source);
|
|
155
|
+
if (registered !== void 0) snapshots.set(target, registered);
|
|
156
|
+
};
|
|
157
|
+
/** Unprojected model formatting already states its authored properties. */
|
|
158
|
+
const getParagraphPropertySnapshot = (paragraph) => {
|
|
159
|
+
const registered = snapshots.get(paragraph);
|
|
160
|
+
return registered !== void 0 && structurallyEqual(paragraph.formatting, registered.effective) ? registered.snapshot : paragraph.formatting;
|
|
161
|
+
};
|
|
162
|
+
//#endregion
|
|
141
163
|
//#region src/ops/modelClone.ts
|
|
142
164
|
const copyPrivateBindings = ({ source, target, seen }) => {
|
|
143
165
|
if (typeof source !== "object" || source === null || typeof target !== "object" || target === null || seen.has(source)) return;
|
|
144
166
|
seen.add(source);
|
|
167
|
+
transferParagraphPropertySnapshot({
|
|
168
|
+
source,
|
|
169
|
+
target
|
|
170
|
+
});
|
|
145
171
|
for (const key of Object.getOwnPropertySymbols(source)) {
|
|
146
172
|
const descriptor = Object.getOwnPropertyDescriptor(source, key);
|
|
147
173
|
if (descriptor?.enumerable && "value" in descriptor) Object.defineProperty(target, key, descriptor);
|
|
@@ -3354,20 +3380,20 @@ const withMarkFormatting = (properties, marks) => {
|
|
|
3354
3380
|
...markFormatting
|
|
3355
3381
|
};
|
|
3356
3382
|
};
|
|
3357
|
-
/** A tracked paragraph property change from
|
|
3358
|
-
const paragraphPropertyChange = (info,
|
|
3383
|
+
/** A tracked paragraph property change from the paragraph's authored properties. */
|
|
3384
|
+
const paragraphPropertyChange = (info, paragraph) => {
|
|
3359
3385
|
const change = {
|
|
3360
3386
|
type: "paragraphPropertyChange",
|
|
3361
3387
|
info
|
|
3362
3388
|
};
|
|
3363
|
-
const recorded = paragraphPropertiesOf(
|
|
3389
|
+
const recorded = paragraphPropertiesOf(getParagraphPropertySnapshot(paragraph));
|
|
3364
3390
|
if (recorded !== void 0) change.previousFormatting = recorded;
|
|
3365
3391
|
return change;
|
|
3366
3392
|
};
|
|
3367
3393
|
/** Fold paragraph formatting into one review, retaining its id and original baseline. */
|
|
3368
3394
|
const foldedParagraphPropertyChange = ({ paragraph, formatting, stamp }) => {
|
|
3369
3395
|
const existing = paragraph.propertyChanges?.at(0);
|
|
3370
|
-
if (existing === void 0) return paragraphPropertyChange(stampInfo(stamp), paragraph
|
|
3396
|
+
if (existing === void 0) return paragraphPropertyChange(stampInfo(stamp), paragraph);
|
|
3371
3397
|
const info = {
|
|
3372
3398
|
...existing.info,
|
|
3373
3399
|
...stampInfo(stamp),
|
|
@@ -4176,7 +4202,7 @@ const deleteBlocks = ({ document, op, applyOps }) => {
|
|
|
4176
4202
|
delete review.formatting;
|
|
4177
4203
|
if (survivor.formatting !== void 0) review.formatting = survivor.formatting;
|
|
4178
4204
|
review.propertyChanges = [foldedParagraphPropertyChange({
|
|
4179
|
-
paragraph
|
|
4205
|
+
paragraph,
|
|
4180
4206
|
formatting: survivor.formatting,
|
|
4181
4207
|
stamp: op.revision
|
|
4182
4208
|
})];
|
|
@@ -9483,8 +9509,12 @@ const setParagraphProps = (document, op) => {
|
|
|
9483
9509
|
if (revision !== void 0 && namesMarkFormatting(op.patch)) return refuse$2(op, DOCUMENT_OP_REFUSAL_REASONS.UNTRACKABLE, "A paragraph property change does not record the paragraph mark's run properties.");
|
|
9484
9510
|
const formatting = patchedSet(paragraph.formatting, op.patch, op.whenEmpty);
|
|
9485
9511
|
if (structurallyEqual(formatting, paragraph.formatting)) return unchanged(document);
|
|
9512
|
+
const next = withParagraphFormatting(paragraph, formatting);
|
|
9513
|
+
registerParagraphPropertySnapshot({
|
|
9514
|
+
paragraph: next,
|
|
9515
|
+
snapshot: patchedSet(getParagraphPropertySnapshot(paragraph), op.patch, op.whenEmpty)
|
|
9516
|
+
});
|
|
9486
9517
|
if (revision !== void 0) {
|
|
9487
|
-
const next = withParagraphFormatting(paragraph, formatting);
|
|
9488
9518
|
next.propertyChanges = [foldedParagraphPropertyChange({
|
|
9489
9519
|
paragraph,
|
|
9490
9520
|
formatting,
|
|
@@ -9504,7 +9534,7 @@ const setParagraphProps = (document, op) => {
|
|
|
9504
9534
|
op,
|
|
9505
9535
|
story: op.story,
|
|
9506
9536
|
at: located.value,
|
|
9507
|
-
paragraph:
|
|
9537
|
+
paragraph: next,
|
|
9508
9538
|
newIds: void 0
|
|
9509
9539
|
}, (result) => Result.ok([{
|
|
9510
9540
|
type: DOCUMENT_OP_TYPES.SET_PARAGRAPH_PROPS,
|
|
@@ -9569,7 +9599,7 @@ const trackSplit = ({ op, stamp, paragraph, first, made, madeSecond, resolutionJ
|
|
|
9569
9599
|
paragraph,
|
|
9570
9600
|
formatting: made.formatting,
|
|
9571
9601
|
stamp
|
|
9572
|
-
}) : paragraphPropertyChange(stampInfo(stamp), paragraph
|
|
9602
|
+
}) : paragraphPropertyChange(stampInfo(stamp), paragraph)];
|
|
9573
9603
|
};
|
|
9574
9604
|
const splitBlock = (document, op) => {
|
|
9575
9605
|
if (!isParaId(op.newBlockId)) return refuse$2(op, DOCUMENT_OP_REFUSAL_REASONS.INVALID_BLOCK_ID, `${op.newBlockId} is not a paragraph id.`);
|
|
@@ -10169,6 +10199,27 @@ const recordedRevisions = (before, edit, stamp) => {
|
|
|
10169
10199
|
})).flat());
|
|
10170
10200
|
return revisions;
|
|
10171
10201
|
};
|
|
10202
|
+
/** Content edits retain authored snapshots across immutable paragraph replacements. */
|
|
10203
|
+
const preserveParagraphPropertySnapshots = ({ before, edit }) => {
|
|
10204
|
+
if (edit.touched.modified.length === 0) return;
|
|
10205
|
+
const modified = new Set(edit.touched.modified.map(idKey));
|
|
10206
|
+
for (const story of documentStories(edit.document)) {
|
|
10207
|
+
const previous = findStoryBody(before, story);
|
|
10208
|
+
const next = storyBody(edit.document, story);
|
|
10209
|
+
if (previous === void 0 || previous === next) continue;
|
|
10210
|
+
const originals = new Map(storyParagraphs(previous).flatMap(({ paragraph }) => paragraph.paraId !== void 0 && modified.has(idKey(paragraph.paraId)) ? [[idKey(paragraph.paraId), paragraph]] : []));
|
|
10211
|
+
if (originals.size === 0) continue;
|
|
10212
|
+
for (const { paragraph } of storyParagraphs(next)) {
|
|
10213
|
+
if (paragraph.paraId === void 0) continue;
|
|
10214
|
+
const original = originals.get(idKey(paragraph.paraId));
|
|
10215
|
+
if (original === void 0 || original === paragraph || !structurallyEqual(original.formatting, paragraph.formatting)) continue;
|
|
10216
|
+
transferParagraphPropertySnapshot({
|
|
10217
|
+
source: original,
|
|
10218
|
+
target: paragraph
|
|
10219
|
+
});
|
|
10220
|
+
}
|
|
10221
|
+
}
|
|
10222
|
+
};
|
|
10172
10223
|
/** Apply one operation to a document that meets the seed contract. */
|
|
10173
10224
|
const applyDocumentOp = (document, input) => {
|
|
10174
10225
|
const restored = restoreDocumentOp(input);
|
|
@@ -10225,6 +10276,10 @@ const applyDocumentOp = (document, input) => {
|
|
|
10225
10276
|
}
|
|
10226
10277
|
if (hasMultipleParagraphPropertyChanges(edit.document)) return Result.err(refusal$1(op, DOCUMENT_OP_REFUSAL_REASONS.STRUCTURE_MISMATCH, "A paragraph cannot carry more than one property change."));
|
|
10227
10278
|
meetsContract(edit.document);
|
|
10279
|
+
preserveParagraphPropertySnapshots({
|
|
10280
|
+
before: document,
|
|
10281
|
+
edit
|
|
10282
|
+
});
|
|
10228
10283
|
return Result.ok({
|
|
10229
10284
|
...edit,
|
|
10230
10285
|
inverse: edit.inverse.map(captureDocumentOp),
|
|
@@ -14275,4 +14330,4 @@ const createClient = (document) => {
|
|
|
14275
14330
|
};
|
|
14276
14331
|
};
|
|
14277
14332
|
//#endregion
|
|
14278
|
-
export { BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, DocumentOpRefusal, DocumentOpsContractError, EMPTY_PROPERTY_SETS, INHERIT_RUN_PROPS, MAX_BATCH_WIRE_BYTES, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, REVISION_DECISIONS, SPLIT_HALVES, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, zeroWidthLeavesAt };
|
|
14333
|
+
export { BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, DocumentOpRefusal, DocumentOpsContractError, EMPTY_PROPERTY_SETS, INHERIT_RUN_PROPS, MAX_BATCH_WIRE_BYTES, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, REVISION_DECISIONS, SPLIT_HALVES, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, registerParagraphPropertySnapshot, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, withBodyContent, zeroWidthLeavesAt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/docx-core",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.1",
|
|
4
4
|
"description": "Typed OOXML/DOCX model, validation, serialization, legal-source compilation, and browser-native package projection.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"document-model",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"marked": "^18.0.5"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"bun-types": "1.4.
|
|
83
|
+
"bun-types": "1.4.3",
|
|
84
84
|
"tsdown": "0.22.9"
|
|
85
85
|
},
|
|
86
86
|
"main": "./dist/index.js",
|