@docx-editor.dev/core 2.6.1 → 2.8.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.
Files changed (96) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.js +1 -1
  3. package/dist/binding.cjs +1 -1
  4. package/dist/binding.d.cts +8 -7
  5. package/dist/binding.d.ts +8 -7
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2WIXJ7CW.js +10 -0
  8. package/dist/chunk-42PRWWVE.js +2 -0
  9. package/dist/chunk-5XKD3VFP.js +18 -0
  10. package/dist/{chunk-SFMAIFEN.cjs → chunk-HCSWWXS2.cjs} +2 -2
  11. package/dist/chunk-HTJLSGBH.cjs +18 -0
  12. package/dist/chunk-JEHWQPXS.cjs +1 -0
  13. package/dist/chunk-KCJLRAKT.js +5 -0
  14. package/dist/chunk-KTL3UMPK.js +2 -0
  15. package/dist/chunk-M6ZIVJUA.cjs +2 -0
  16. package/dist/chunk-NU57YOQE.js +15 -0
  17. package/dist/chunk-RUS2YBWU.cjs +10 -0
  18. package/dist/chunk-TJEWP7MX.cjs +15 -0
  19. package/dist/chunk-UGUPVZDY.cjs +5 -0
  20. package/dist/chunk-XJRMFS6O.js +1 -0
  21. package/dist/chunk-XN634HAC.js +2 -0
  22. package/dist/chunk-XRDTD4X3.cjs +2 -0
  23. package/dist/contracts/document.d.cts +25 -3
  24. package/dist/contracts/document.d.ts +25 -3
  25. package/dist/contracts/editor.d.cts +7 -7
  26. package/dist/contracts/editor.d.ts +7 -7
  27. package/dist/contracts/interaction.d.cts +6 -6
  28. package/dist/contracts/interaction.d.ts +6 -6
  29. package/dist/contracts/modules.d.cts +4 -3
  30. package/dist/contracts/modules.d.ts +4 -3
  31. package/dist/contracts/types.d.cts +110 -2
  32. package/dist/contracts/types.d.ts +110 -2
  33. package/dist/{custom-node-writes-tJw8U9MO.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -10
  34. package/dist/{custom-node-writes-D9G3GKQ7.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -10
  35. package/dist/{editor-BZEJL3vv.d.cts → editor-CWlj33GH.d.cts} +80 -69
  36. package/dist/{editor-D2zOJztO.d.ts → editor-D52SD4jG.d.ts} +80 -69
  37. package/dist/editor.cjs +1 -1
  38. package/dist/editor.d.cts +63 -31
  39. package/dist/editor.d.ts +63 -31
  40. package/dist/editor.js +1 -1
  41. package/dist/{image-resources-BaHz4QAd.d.cts → image-resources-BveffuKp.d.cts} +1 -1
  42. package/dist/{image-resources-Cl5_cNi9.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
  43. package/dist/{index-_xF7n_z0.d.cts → index-39yzaZO_.d.cts} +1573 -1429
  44. package/dist/{index-D8L8WrNF.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.cts +14 -14
  47. package/dist/index.d.ts +14 -14
  48. package/dist/index.js +1 -1
  49. package/dist/layout.cjs +1 -1
  50. package/dist/layout.d.cts +220 -23
  51. package/dist/layout.d.ts +220 -23
  52. package/dist/layout.js +1 -1
  53. package/dist/output.cjs +1 -1
  54. package/dist/output.d.cts +6 -5
  55. package/dist/output.d.ts +6 -5
  56. package/dist/output.js +1 -1
  57. package/dist/{review-reads-HDvoQXK2.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
  58. package/dist/{review-reads-Dr0CpW6u.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
  59. package/dist/{review-support-D4ZBdUXa.d.ts → review-support--I4ChuzF.d.ts} +1 -1
  60. package/dist/{review-support-T-riLz4Y.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
  61. package/dist/{semantic-cell-selection-BTQFpN0S.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
  62. package/dist/{semantic-cell-selection-B5vfPz4Q.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
  63. package/dist/{semantic-interaction-CDNEU_Tx.d.cts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
  64. package/dist/{semantic-interaction-lvpzZRpA.d.ts → semantic-interaction-DVUqu_47.d.cts} +14 -2
  65. package/dist/{semantic-paint-BBPL3u5w.d.ts → semantic-paint-BKiiDJol.d.ts} +8 -2
  66. package/dist/{semantic-paint-IjbL-4CT.d.cts → semantic-paint-COQY0Lnq.d.cts} +8 -2
  67. package/dist/{semantic-records-CdQvpUj1.d.ts → semantic-records-DHcMZM2-.d.ts} +35 -36
  68. package/dist/{semantic-records-DEOs3_tE.d.cts → semantic-records-rAKWaD-1.d.cts} +35 -36
  69. package/dist/{shaped-measurer-C2SJAjV0.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
  70. package/dist/{shaped-measurer-l4o5ITJ0.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
  71. package/dist/store.cjs +1 -1
  72. package/dist/store.d.cts +55 -9
  73. package/dist/store.d.ts +55 -9
  74. package/dist/store.js +1 -1
  75. package/dist/{tree-op-types-CUCwPWjT.d.cts → tree-op-types-A-SLSKzK.d.cts} +62 -9
  76. package/dist/{tree-op-types-D0fTNBVW.d.ts → tree-op-types-BbzrA-kg.d.ts} +62 -9
  77. package/dist/{tree-session-b7bggR-S.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
  78. package/dist/{tree-session-CH1oA75f.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
  79. package/dist/{tree-store-CIKASRHk.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
  80. package/dist/{tree-store-BqgeCa1Q.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
  81. package/package.json +2 -2
  82. package/dist/chunk-4GQXAXTZ.js +0 -5
  83. package/dist/chunk-DGUHCJPF.cjs +0 -18
  84. package/dist/chunk-DY3QVCWC.cjs +0 -10
  85. package/dist/chunk-E7BXJ4BF.js +0 -1
  86. package/dist/chunk-F7Z6PWAZ.cjs +0 -2
  87. package/dist/chunk-IJ4V3LGV.cjs +0 -2
  88. package/dist/chunk-JEMP5YI5.cjs +0 -15
  89. package/dist/chunk-JZXK4DKV.cjs +0 -1
  90. package/dist/chunk-NIGGABAA.js +0 -15
  91. package/dist/chunk-OPKOTVQQ.js +0 -18
  92. package/dist/chunk-R75OLPL6.js +0 -10
  93. package/dist/chunk-SKWYEZCO.cjs +0 -5
  94. package/dist/chunk-SMRD66T5.js +0 -2
  95. package/dist/chunk-UVIUNAQ6.js +0 -2
  96. package/dist/chunk-WAVN7MAT.js +0 -2
package/dist/store.d.cts CHANGED
@@ -1,18 +1,19 @@
1
- import { e as ResourceLimits } from './image-resources-BaHz4QAd.cjs';
2
- export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, b as ImageDecodePort, c as ImageResourceLimits, h as ImageResourceLookup, I as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, S as SupportedImageMime, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-BaHz4QAd.cjs';
1
+ import { e as ResourceLimits } from './image-resources-BveffuKp.cjs';
2
+ export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, b as ImageDecodePort, c as ImageResourceLimits, h as ImageResourceLookup, I as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, S as SupportedImageMime, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-BveffuKp.cjs';
3
3
  import { O as OoxmlPackage, R as RelationshipRecord } from './ooxml-package-CR5us6ad.cjs';
4
4
  export { C as ContentTypeError, c as ContentTypeIndex, d as ContentTypeRecords, D as DEFAULT_OOXML_PACKAGE_LIMITS, e as DEFAULT_ZIP_LIMITS, f as DefaultRecord, I as IMAGE_RELATIONSHIP_TYPE, g as ImageRelationshipResolution, h as IndexResult, N as NameRejection, i as NameResult, j as OoxmlExternalTarget, a as OoxmlPackageLimits, b as OoxmlPackageRejection, k as OoxmlPackageResult, l as OverrideRecord, m as RelationshipError, n as RelationshipSetResult, o as ResolveResult, p as ResolvedRelationship, T as TargetMode, Z as ZipLimits, q as ZipReadResult, r as ZipRejection, s as asciiFold, t as buildContentTypeIndex, u as buildRelationshipSet, v as detectDuplicateNames, w as extensionKey, x as isValidMime, y as normalizePartName, z as partNameKey, A as readOoxmlPackage, B as readZip, E as resolveContentType, F as resolveImageRelationship, G as resolveInternalTarget, H as resolveRelationship, J as validateExternalTarget, K as withPart, L as writeOoxmlPackage, M as writeZip } from './ooxml-package-CR5us6ad.cjs';
5
5
  import { e as OoxmlPart, O as OoxmlNode, r as OoxmlInvariantResult, a as OoxmlElement, s as OoxmlInvariantIssue, t as OoxmlHardBreakNode, f as OoxmlParagraphNode, u as OoxmlFldCharNode, v as OoxmlFldSimpleNode, w as OoxmlInstrTextNode, x as OoxmlAttribute } from './ooxml-tree-BU0e3DVi.cjs';
6
6
  export { y as OOXML_NODE_IDENTITY_RULES, z as OoxmlBodyNode, A as OoxmlBookmarkEndNode, B as OoxmlBookmarkStartNode, C as OoxmlContentControlCalendarNode, D as OoxmlContentControlCheckboxNode, E as OoxmlContentControlCheckedNode, F as OoxmlContentControlCheckedStateNode, G as OoxmlContentControlComboBoxNode, d as OoxmlContentControlContentNode, H as OoxmlContentControlDataBindingNode, I as OoxmlContentControlDateFormatNode, J as OoxmlContentControlDateNode, K as OoxmlContentControlDropDownListNode, p as OoxmlContentControlEndPropertiesNode, L as OoxmlContentControlLidNode, M as OoxmlContentControlListItemNode, b as OoxmlContentControlNode, q as OoxmlContentControlPropertiesNode, N as OoxmlContentControlStoreMappedDataAsNode, P as OoxmlContentControlTextNode, Q as OoxmlContentControlUncheckedStateNode, h as OoxmlContinuationSeparatorNode, R as OoxmlDocumentNode, i as OoxmlEndnotesNode, j as OoxmlFootnotesNode, c as OoxmlGenericElementNode, S as OoxmlGenericExtensionAttribute, T as OoxmlHyperlinkNode, U as OoxmlInvariantIssueCode, V as OoxmlKnownNodeAttribute, W as OoxmlNamespaceBinding, Y as OoxmlNodeId, Z as OoxmlNodeIdentityRules, g as OoxmlNoteNode, k as OoxmlNoteRefNode, l as OoxmlNoteReferenceNode, _ as OoxmlParagraphPropertiesNode, $ as OoxmlPartMetadata, n as OoxmlReadRejection, a0 as OoxmlReadResult, a1 as OoxmlRunNode, a2 as OoxmlRunPropertiesNode, m as OoxmlSeparatorNode, a3 as OoxmlTabNode, a4 as OoxmlTextElementNode, a5 as OoxmlTextNode, a6 as OoxmlWmlValAttribute, a7 as OoxmlXmlSpaceAttribute, a8 as WML_NAMESPACE_URI, a9 as XMLNS_NAMESPACE_URI, aa as XML_NAMESPACE_URI, X as XmlLimits, ab as XmlNode, ac as XmlRejection, ad as XmlResult, ae as childElements, af as findElement, ag as isContentRevisionKind, ah as isRangeMarkerKind, ai as readOnOffChild, aj as readOoxmlPart, ak as readXml, al as textContent } from './ooxml-tree-BU0e3DVi.cjs';
7
- export { e as BookmarkAnchor, B as BookmarkIndex, f as CascadeDeletedNoteReferencesOptions, g as CustomNodePayloadRead, h as CustomNodePayloadWrite, b as CustomNodeSweepOutcome, i as CustomNodeSweepResult, j as CustomNodeWriteRejection, C as CustomNodeWriteResult, k as DEFAULT_MAX_EDITABLE_STORY_PARTS, D as DocumentTrackingSettings, l as DrawingPropertyIdResult, E as EmbeddedFont, F as FontStyleKey, H as HeaderFooterLifecycleImpact, m as HeaderFooterLifecycleOp, n as HeaderFooterLifecycleRejection, o as HeaderFooterLifecycleResult, I as InsertCustomNodeWrite, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, p as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, q as MAX_NOTE_REFERENCE_PARTS, r as MAX_NOTE_REFERENCE_SCAN, N as NO_TRACKING_SETTINGS, s as NoteDiagnostic, t as NoteDiagnosticCode, u as NoteLifecycleImpact, v as NoteLifecycleOp, w as NoteLifecycleOptions, x as NoteLifecycleRejection, y as NoteLifecycleResult, z as NoteReferenceHit, G as NoteReferenceScanBudget, P as PackageTransactResult, J as ReadEmbeddedFontsOptions, K as StoryResolveResult, S as StoryScope, a as StoryTargetRejection, T as TreePackageStore, O as TreePackageStoreOptions, Q as allocateDrawingPropertyId, U as applyHeaderFooterLifecycleOp, V as applyNoteLifecycleOp, W as buildBookmarkIndex, X as cascadeDeletedNoteReferences, Y as collectNoteReferences, Z as collectPackageNoteReferences, _ as createNoteReferenceScanBudget, $ as customNodePayloadsByControl, a0 as customNodePayloadsOf, a1 as deobfuscateFont, a2 as diagnoseNoteReferences, a3 as ensureListDefinition, a4 as ensureNumberingLevel, a5 as insertCustomNodeWrite, a6 as isHeaderFooterLifecycleOp, a7 as isNoteLifecycleOp, a8 as normalNoteIds, a9 as notesPartHasId, aa as readEmbeddedFonts, ab as readTrackingSettings, ac as removeCustomNodeWrite, ad as resolveNotesPart, ae as sweepCustomNodePayloads, af as withBinaryPart, ag as withEmbeddedImage, ah as withoutUnreferencedImagePart } from './custom-node-writes-D9G3GKQ7.cjs';
7
+ export { e as BookmarkAnchor, B as BookmarkIndex, f as CascadeDeletedNoteReferencesOptions, g as CustomNodePayloadRead, h as CustomNodePayloadWrite, b as CustomNodeSweepOutcome, i as CustomNodeSweepResult, j as CustomNodeWriteRejection, C as CustomNodeWriteResult, k as DEFAULT_MAX_EDITABLE_STORY_PARTS, D as DocumentTrackingSettings, l as DrawingPropertyIdResult, E as EmbeddedFont, F as FontStyleKey, H as HeaderFooterLifecycleImpact, m as HeaderFooterLifecycleOp, n as HeaderFooterLifecycleRejection, o as HeaderFooterLifecycleResult, I as InsertCustomNodeWrite, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, p as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, q as MAX_NOTE_REFERENCE_PARTS, r as MAX_NOTE_REFERENCE_SCAN, N as NO_TRACKING_SETTINGS, s as NoteDiagnostic, t as NoteDiagnosticCode, u as NoteLifecycleImpact, v as NoteLifecycleOp, w as NoteLifecycleOptions, x as NoteLifecycleRejection, y as NoteLifecycleResult, z as NoteReferenceHit, G as NoteReferenceScanBudget, P as PackageTransactResult, J as ReadEmbeddedFontsOptions, K as StoryResolveResult, S as StoryScope, a as StoryTargetRejection, T as TreePackageStore, O as TreePackageStoreOptions, Q as allocateDrawingPropertyId, U as applyHeaderFooterLifecycleOp, V as applyNoteLifecycleOp, W as buildBookmarkIndex, X as cascadeDeletedNoteReferences, Y as collectNoteReferences, Z as collectPackageNoteReferences, _ as createNoteReferenceScanBudget, $ as customNodePayloadsByControl, a0 as customNodePayloadsOf, a1 as deobfuscateFont, a2 as diagnoseNoteReferences, a3 as ensureListDefinition, a4 as ensureNumberingLevel, a5 as insertCustomNodeWrite, a6 as isHeaderFooterLifecycleOp, a7 as isNoteLifecycleOp, a8 as normalNoteIds, a9 as notesPartHasId, aa as readEmbeddedFonts, ab as readTrackingSettings, ac as removeCustomNodeWrite, ad as resolveNotesPart, ae as sweepCustomNodePayloads, af as withBinaryPart, ag as withEmbeddedImage, ah as withoutUnreferencedImagePart } from './custom-node-writes-Bu8JIqfA.cjs';
8
8
  export { c as HeaderFooterKind, a as HeaderFooterParts, b as HeaderFooterSectionResolution, d as HeaderFooterSlotMeta, H as HeaderFooterVariant, e as collectSectionPropertyNodes, r as resolveHeaderFooterParts, f as resolveHeaderFooterPartsBySection, g as resolveHeaderFooterResolutionBySection } from './hf-references-CgEOSw3i.cjs';
9
9
  export { c as collectFlowBlocks, d as contentControlContentOf, i as isContentControl, b as isContentControlContent, w as walkAllStoryParagraphs, e as walkParagraphInline, f as walkStoryBlocks } from './content-control-walk-CbTqHq6O.cjs';
10
- import { T as TreeDocOp, a as TreeOpRejection, q as TreeOpResult, O as OoxmlProperty, h as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-CUCwPWjT.cjs';
11
- export { A as ACCEPTED_PARAGRAPH_PROPERTIES, r as ACCEPTED_RUN_PROPERTIES, s as CONTENT_CONTROL_ID_MAX, t as CONTENT_CONTROL_PROPERTY_ORDER, u as ContentControlCheckbox, v as ContentControlCheckboxState, p as ContentControlDataBinding, w as ContentControlDateFormat, x as ContentControlEntry, C as ContentControlKind, n as ContentControlLevel, y as ContentControlListItem, o as ContentControlLock, z as ContentControlProperties, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, H as HYPERLINK_RELATIONSHIP_TYPE, B as HyperlinkKind, E as HyperlinkTarget, j as IMAGE_WRAP_TARGETS, M as MAX_CONTENT_CONTROLS_PER_PART, F as MAX_CONTENT_CONTROL_NESTING, G as OFFICE_RELATIONSHIP_NAMESPACE_URI, J as RelationshipTargetResolver, R as RevisionAddress, S as SourceCrop, K as TABLE_BORDER_STYLES, L as TREE_DOC_OP_KINDS, m as TableBorderStyle, N as TreeDocOpKind, P as TreeOpEffect, Q as allocateContentControlId, U as contentControlContentChildren, W as contentControlContentNodeOf, X as contentControlEndPropertiesNodeOf, Y as contentControlLevelOf, Z as contentControlPropertiesNodeOf, _ as contentControlPropertiesOf, $ as contentControlTextOf, a0 as contentControlsIn, a1 as findContentControl, a2 as flattenContentControls, a3 as hyperlinkAnchorOf, a4 as hyperlinkRelationshipIdOf, a5 as hyperlinkTargetOf, a6 as isContentControlContentNode, a7 as isContentControlNode, a8 as isContentControlWrapper, a9 as isHyperlinkNode, aa as lockForbidsEdit, ab as lockForbidsRemoval, ac as orderedContentControlProperties, ad as parseContentControlId, ae as projectDrawing, af as resolveContentControlLock } from './tree-op-types-CUCwPWjT.cjs';
10
+ import { T as TreeDocOp, a as TreeOpRejection, q as TreeOpResult, O as OoxmlProperty, h as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-A-SLSKzK.cjs';
11
+ export { A as ACCEPTED_PARAGRAPH_PROPERTIES, r as ACCEPTED_RUN_PROPERTIES, s as CONTENT_CONTROL_ID_MAX, t as CONTENT_CONTROL_PROPERTY_ORDER, u as ContentControlCheckbox, v as ContentControlCheckboxState, p as ContentControlDataBinding, w as ContentControlDateFormat, x as ContentControlEntry, C as ContentControlKind, n as ContentControlLevel, y as ContentControlListItem, o as ContentControlLock, z as ContentControlProperties, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, H as HYPERLINK_RELATIONSHIP_TYPE, B as HyperlinkKind, E as HyperlinkTarget, m as IMAGE_WRAP_TARGETS, M as MAX_CONTENT_CONTROLS_PER_PART, F as MAX_CONTENT_CONTROL_NESTING, G as OFFICE_RELATIONSHIP_NAMESPACE_URI, J as RelationshipTargetResolver, R as RevisionAddress, S as SourceCrop, K as TABLE_BORDER_STYLES, L as TREE_DOC_OP_KINDS, N as TabStopWrite, k as TableBorderStyle, P as TreeDocOpKind, Q as TreeOpEffect, U as allocateContentControlId, W as contentControlContentChildren, X as contentControlContentNodeOf, Y as contentControlEndPropertiesNodeOf, Z as contentControlLevelOf, _ as contentControlPropertiesNodeOf, $ as contentControlPropertiesOf, a0 as contentControlTextOf, a1 as contentControlsIn, a2 as findContentControl, a3 as flattenContentControls, a4 as hyperlinkAnchorOf, a5 as hyperlinkRelationshipIdOf, a6 as hyperlinkTargetOf, a7 as isContentControlContentNode, a8 as isContentControlNode, a9 as isContentControlWrapper, aa as isHyperlinkNode, ab as lockForbidsEdit, ac as lockForbidsRemoval, ad as orderedContentControlProperties, ae as parseContentControlId, af as projectDrawing, ag as resolveContentControlLock } from './tree-op-types-A-SLSKzK.cjs';
12
12
  export { A as AtomicNoteSpan, M as MAX_NOTES_PER_PART, a as NOTE_ATOM_CHAR, b as NOTE_CONTINUATION_SEPARATOR_ID, c as NOTE_ID_MAX, d as NOTE_ID_MIN, e as NOTE_SEPARATOR_ID, N as NoteKind, f as NoteType, g as allocateNoteId, h as atomicNoteSpansOf, i as customMarkFollows, j as findNoteById, k as formatNoteScopeId, l as isContinuationSeparatorNode, m as isEndnotesNode, o as isFootnotesNode, p as isNormalNote, q as isNoteAtomNode, r as isNoteNode, s as isNoteRefNode, t as isNoteReferenceNode, u as isSeparatorNode, v as noteAtomText, w as noteIdOf, x as noteKindOf, y as noteRefKindOf, z as noteReferenceKindOf, n as noteTypeOf, B as notesOf, C as parseNoteId, D as parseNoteScopeId } from './note-nodes-C6DLxlvj.cjs';
13
- export { A as AuthoredNoteProperties, C as CommentAnchor, b as CommentPosition, c as CommentRecord, d as CommentThreadState, D as DEFAULT_ENDNOTE_PROPERTIES, e as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, L as LinkableReviewItem, N as NoteNumRestart, a as ResolvedEndnoteProperties, R as ResolvedFootnoteProperties, f as ReviewCommentItem, g as ReviewItem, h as ReviewModelInput, i as ReviewPosition, j as ReviewRange, k as ReviewRevisionItem, l as ReviewRevisionKind, W as W15_NAMESPACE_URI, m as authoredDocumentEndnoteProperties, n as authoredDocumentFootnoteProperties, o as authoredEndnotePropertiesFromSectPr, q as authoredFootnotePropertiesFromSectPr, r as collectReviewItems, s as commentAnchorsOfStory, t as commentBodyText, u as commentInitials, v as commentItemsOf, w as commentsOfPart, x as deepParagraphOrderOfPart, y as firstReviewRange, z as hasAnyComment, B as isLegalEndnotePosition, G as isLegalFootnotePosition, H as isLegalNumRestart, I as linkRevisionReplies, p as paragraphOrderOfPart, J as parseAuthoredNoteProperties, K as resolveEndnoteProperties, M as resolveFootnoteProperties, O as reviewItemKey, P as reviewItemRanges, Q as revisionItemsOf, S as settingsPartOf, T as threadStateOfPart } from './review-reads-Dr0CpW6u.cjs';
14
- import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-BqgeCa1Q.cjs';
15
- export { D as DocumentProperties, S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-BqgeCa1Q.cjs';
13
+ export { A as AuthoredNoteProperties, C as CommentAnchor, b as CommentPosition, c as CommentRecord, d as CommentThreadState, D as DEFAULT_ENDNOTE_PROPERTIES, e as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, L as LinkableReviewItem, N as NoteNumRestart, a as ResolvedEndnoteProperties, R as ResolvedFootnoteProperties, f as ReviewCommentItem, g as ReviewItem, h as ReviewModelInput, i as ReviewPosition, j as ReviewRange, k as ReviewRevisionItem, l as ReviewRevisionKind, W as W15_NAMESPACE_URI, m as authoredDocumentEndnoteProperties, n as authoredDocumentFootnoteProperties, o as authoredEndnotePropertiesFromSectPr, q as authoredFootnotePropertiesFromSectPr, r as collectReviewItems, s as commentAnchorsOfStory, t as commentBodyText, u as commentInitials, v as commentItemsOf, w as commentsOfPart, x as deepParagraphOrderOfPart, y as firstReviewRange, z as hasAnyComment, B as isLegalEndnotePosition, G as isLegalFootnotePosition, H as isLegalNumRestart, I as linkRevisionReplies, p as paragraphOrderOfPart, J as parseAuthoredNoteProperties, K as resolveEndnoteProperties, M as resolveFootnoteProperties, O as reviewItemKey, P as reviewItemRanges, Q as revisionItemsOf, S as settingsPartOf, T as threadStateOfPart } from './review-reads-Bn7aZU4u.cjs';
14
+ import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-Dob9Us6Y.cjs';
15
+ export { D as DocumentProperties, S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-Dob9Us6Y.cjs';
16
+ import './contracts/types.cjs';
16
17
 
17
18
  /**
18
19
  * Every kind of thing the registry gives a stable identity to.
@@ -1554,6 +1555,17 @@ interface OoxmlStoryRoot {
1554
1555
  * contains another story root.
1555
1556
  */
1556
1557
  declare function storyRootsOf(part: OoxmlPart): readonly OoxmlStoryRoot[];
1558
+ /**
1559
+ * Whether a part is SHAPED to hold stories — a body, a header, a footer, or a notes part.
1560
+ *
1561
+ * A shape test, deliberately not `storyRootsOf(part).length > 0`. That counts EDITABLE stories,
1562
+ * and a notes part holding nothing but `w:separator` and `w:continuationSeparator` has none —
1563
+ * which is the footnotes part Word writes into every document that ever held a footnote. A
1564
+ * caller asking "should I walk this part at all" that used the editable count skipped it
1565
+ * entirely, and the two callers that ask are a payload sweep and an export strip: both DELETE
1566
+ * what they conclude nothing names.
1567
+ */
1568
+ declare function isStoryPart(part: OoxmlPart): boolean;
1557
1569
  /** The main body story of a part, or null when the part holds none. */
1558
1570
  declare function bodyStoryRoot(part: OoxmlPart): OoxmlNode | null;
1559
1571
  /**
@@ -2065,6 +2077,18 @@ declare function directParagraphMarkProperties(part: OoxmlPart, paragraphId: str
2065
2077
  * same fold written at every call site.
2066
2078
  */
2067
2079
  declare function mergedProperties(existing: readonly OoxmlProperty[], incoming: OoxmlProperty | readonly OoxmlProperty[]): OoxmlProperty[];
2080
+ /**
2081
+ * A `w:rFonts` write merged over what the run already authors, slot by slot.
2082
+ *
2083
+ * `w:rFonts` is the one run property carrying SEVERAL independent settings, so replacing it
2084
+ * wholesale to change the Latin font deleted the run's East Asian and complex-script faces
2085
+ * and its `w:hint`. That loss is invisible here — this engine resolves the Latin slot — and
2086
+ * shows up on save: CJK text in that run reopens in Word in a different font.
2087
+ *
2088
+ * `w:hint` rides along untouched. It says which slot ambiguous characters resolve through,
2089
+ * which is a property of the text, not of the font just picked.
2090
+ */
2091
+ declare function mergedFontProperty(authored: readonly OoxmlProperty[], incoming: OoxmlProperty): OoxmlProperty;
2068
2092
  /** Per-run UTF-16 ranges from `segmentsOf` (fields/notes collapse to one unit on begin). */
2069
2093
  declare function runAddressRanges(paragraph: Extract<OoxmlNode, {
2070
2094
  kind: 'paragraph';
@@ -2087,6 +2111,28 @@ interface RunPropertyEdit {
2087
2111
  */
2088
2112
  readonly targetRunIds?: readonly string[];
2089
2113
  }
2114
+ /**
2115
+ * One incoming write merged over what the node authors, for the properties that carry
2116
+ * SEVERAL independent settings in one element.
2117
+ *
2118
+ * Almost every run property is one setting and replaces cleanly. Two are not: `w:rFonts`
2119
+ * carries a font per script (see {@link mergedFontProperty}), and `w:u` carries the
2120
+ * underline style AND its colour, so toggling the style off and on again dropped an
2121
+ * authored `w:color` and repainted a red underline black.
2122
+ *
2123
+ * Exported because the editor lane keeps its own content-control-aware run walk beside this
2124
+ * one, and the two must reach the same answer.
2125
+ */
2126
+ declare function mergedMultiSettingProperty(authored: readonly OoxmlProperty[], incoming: OoxmlProperty): OoxmlProperty;
2127
+ /**
2128
+ * A paragraph MARK's own properties with one write merged in, per attribute where it counts.
2129
+ *
2130
+ * The mark carries a `w:rPr` like any run, so a font change has to keep its other font slots
2131
+ * for the same reason a run does — without this the marker of a CJK list item lost its East
2132
+ * Asian face while the text beside it kept one. Lives here because BOTH lanes write the mark:
2133
+ * the editor's toolbar and the automation object model.
2134
+ */
2135
+ declare function mergedParagraphMarkProperties(part: OoxmlPart, paragraphId: string, incoming: OoxmlProperty | readonly OoxmlProperty[]): OoxmlProperty[];
2090
2136
  /**
2091
2137
  * A range run-property change, split into ONE edit per run it covers, each merged over that
2092
2138
  * run's own `w:rPr`.
@@ -2201,4 +2247,4 @@ declare function wrapTargetToAnchorSpec(target: ImageWrapTarget): {
2201
2247
  /** Whether an op is one of the drawing ops. Narrows the type. */
2202
2248
  declare function isDrawingTreeDocOp(op: TreeDocOp): op is DrawingTreeDocOp;
2203
2249
 
2204
- export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, type AddCommentRequest, type AddCommentResult, type AnchorSnapshot, type AtomicFieldSpan, type AuditPort, type AuthorizationPort, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, type CancellationPhase, type CancellationPort, type CancellationToken, type CapabilityId, type ClockPort, type CommentAnchorRequest, type CommentDeletionOwner, type ComparatorDescriptor, type ComparatorMode, type ComparatorName, type ComparisonResult, type ConformanceFixture, type ContentItem, type Contribution, type CustomNodeBinding, type CustomNodeExportPolicy, type CustomNodeExportRequest, type CustomNodeExportResult, type CustomXmlDataPart, type CustomXmlDataPartResult, type CustomXmlNode, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, type DetectedToc, DeterministicClock, DeterministicMemoryMeter, type DigestDifference, type DocumentViewSettings, DrawingTreeDocOp, type EditOptions, type EncodedEnvelope, type EnforcementPhase, type EnsuredHyperlinkRelationship, type ExternalResourceConsentPort, FIELD_ATOM_CHAR, type FeatureBundle, type FixtureExpectation, type FixtureOutcome, type FixtureSource, type FixtureStep, type FldCharType, type FontPort, type HardBreakKind, type HrefProjection, ID_KINDS, INERT_EXECUTABLE_KINDS, type IdKind, type IdentityPort, type ImagePort, ImageWrapTarget, ImpactClass, type InertExecutableKind, type InlineControlSpan, type Json, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, type LimitSpec, type LimitUnit, MAX_STORY_SDT_NESTING, type ModelChangeSummary, NON_CANONICAL_ORIGINS, ORIGIN_IDS, type OffsetSpan, OoxmlAttribute, type OoxmlEditResult, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlHardBreakNode, type OoxmlIndexes, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, type OoxmlStoryKind, type OoxmlStoryRoot, type OperationContext, type OperationInit, PAGE_BREAK_CHAR, type PackageInvariantCode, type PackageInvariantIssue, type PackageInvariantResult, type ParagraphDigest, type ParagraphIndexEntry, type ParagraphOffsetIndex, type PersistencePort, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, type RegistryErrorCode, RelationshipRecord, type ReplacementPolicy, type ReplayOutcome, type ReplayReport, type ReplayStore, type Reservation, type ResolveOptions, type ResolvedRegistry, type ResourceAccountingPort, ResourceLimits, type RunPropertyEdit, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, type SchedulingPort, type ScrubResult, type Segment, type SemVer, type SemanticDigest, SequentialIdentity, type SetCommentResolvedResult, type ShapingPort, type StoryDigest, type StoryIndexEntry, type StyleIndexEntry, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, type TextMatchOptions, type TextOccurrence, type TextOccurrences, type TocEntryPlan, type TocInstruction, type TocOutlineHeading, type TransportPort, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, type ValidationResult, addComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authorableHyperlinkTarget, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectRevisionSites, collectStoryParagraphs, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, drawingOpImpact, endOperation, ensureHyperlinkRelationship, escapeCssString, escapeXml, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isPageBreakNode, isSearchableQuery, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, locateSites, makeLimitCounter, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, propertyContainer, readCustomXmlNode, readViewSettings, relationshipTargetIn, relationshipsOf, relsPartNameFor, removeNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, toSafeRecord, tocEntryText, tocLeftIndentTwips, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
2250
+ export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, type AddCommentRequest, type AddCommentResult, type AnchorSnapshot, type AtomicFieldSpan, type AuditPort, type AuthorizationPort, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, type CancellationPhase, type CancellationPort, type CancellationToken, type CapabilityId, type ClockPort, type CommentAnchorRequest, type CommentDeletionOwner, type ComparatorDescriptor, type ComparatorMode, type ComparatorName, type ComparisonResult, type ConformanceFixture, type ContentItem, type Contribution, type CustomNodeBinding, type CustomNodeExportPolicy, type CustomNodeExportRequest, type CustomNodeExportResult, type CustomXmlDataPart, type CustomXmlDataPartResult, type CustomXmlNode, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, type DetectedToc, DeterministicClock, DeterministicMemoryMeter, type DigestDifference, type DocumentViewSettings, DrawingTreeDocOp, type EditOptions, type EncodedEnvelope, type EnforcementPhase, type EnsuredHyperlinkRelationship, type ExternalResourceConsentPort, FIELD_ATOM_CHAR, type FeatureBundle, type FixtureExpectation, type FixtureOutcome, type FixtureSource, type FixtureStep, type FldCharType, type FontPort, type HardBreakKind, type HrefProjection, ID_KINDS, INERT_EXECUTABLE_KINDS, type IdKind, type IdentityPort, type ImagePort, ImageWrapTarget, ImpactClass, type InertExecutableKind, type InlineControlSpan, type Json, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, type LimitSpec, type LimitUnit, MAX_STORY_SDT_NESTING, type ModelChangeSummary, NON_CANONICAL_ORIGINS, ORIGIN_IDS, type OffsetSpan, OoxmlAttribute, type OoxmlEditResult, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlHardBreakNode, type OoxmlIndexes, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, type OoxmlStoryKind, type OoxmlStoryRoot, type OperationContext, type OperationInit, PAGE_BREAK_CHAR, type PackageInvariantCode, type PackageInvariantIssue, type PackageInvariantResult, type ParagraphDigest, type ParagraphIndexEntry, type ParagraphOffsetIndex, type PersistencePort, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, type RegistryErrorCode, RelationshipRecord, type ReplacementPolicy, type ReplayOutcome, type ReplayReport, type ReplayStore, type Reservation, type ResolveOptions, type ResolvedRegistry, type ResourceAccountingPort, ResourceLimits, type RunPropertyEdit, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, type SchedulingPort, type ScrubResult, type Segment, type SemVer, type SemanticDigest, SequentialIdentity, type SetCommentResolvedResult, type ShapingPort, type StoryDigest, type StoryIndexEntry, type StyleIndexEntry, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, type TextMatchOptions, type TextOccurrence, type TextOccurrences, type TocEntryPlan, type TocInstruction, type TocOutlineHeading, type TransportPort, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, type ValidationResult, addComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authorableHyperlinkTarget, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectRevisionSites, collectStoryParagraphs, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, drawingOpImpact, endOperation, ensureHyperlinkRelationship, escapeCssString, escapeXml, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, locateSites, makeLimitCounter, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, propertyContainer, readCustomXmlNode, readViewSettings, relationshipTargetIn, relationshipsOf, relsPartNameFor, removeNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, toSafeRecord, tocEntryText, tocLeftIndentTwips, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
package/dist/store.d.ts CHANGED
@@ -1,18 +1,19 @@
1
- import { e as ResourceLimits } from './image-resources-Cl5_cNi9.js';
2
- export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, b as ImageDecodePort, c as ImageResourceLimits, h as ImageResourceLookup, I as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, S as SupportedImageMime, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-Cl5_cNi9.js';
1
+ import { e as ResourceLimits } from './image-resources-D63k8w5f.js';
2
+ export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, b as ImageDecodePort, c as ImageResourceLimits, h as ImageResourceLookup, I as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, S as SupportedImageMime, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-D63k8w5f.js';
3
3
  import { O as OoxmlPackage, R as RelationshipRecord } from './ooxml-package-D_CtywTW.js';
4
4
  export { C as ContentTypeError, c as ContentTypeIndex, d as ContentTypeRecords, D as DEFAULT_OOXML_PACKAGE_LIMITS, e as DEFAULT_ZIP_LIMITS, f as DefaultRecord, I as IMAGE_RELATIONSHIP_TYPE, g as ImageRelationshipResolution, h as IndexResult, N as NameRejection, i as NameResult, j as OoxmlExternalTarget, a as OoxmlPackageLimits, b as OoxmlPackageRejection, k as OoxmlPackageResult, l as OverrideRecord, m as RelationshipError, n as RelationshipSetResult, o as ResolveResult, p as ResolvedRelationship, T as TargetMode, Z as ZipLimits, q as ZipReadResult, r as ZipRejection, s as asciiFold, t as buildContentTypeIndex, u as buildRelationshipSet, v as detectDuplicateNames, w as extensionKey, x as isValidMime, y as normalizePartName, z as partNameKey, A as readOoxmlPackage, B as readZip, E as resolveContentType, F as resolveImageRelationship, G as resolveInternalTarget, H as resolveRelationship, J as validateExternalTarget, K as withPart, L as writeOoxmlPackage, M as writeZip } from './ooxml-package-D_CtywTW.js';
5
5
  import { e as OoxmlPart, O as OoxmlNode, r as OoxmlInvariantResult, a as OoxmlElement, s as OoxmlInvariantIssue, t as OoxmlHardBreakNode, f as OoxmlParagraphNode, u as OoxmlFldCharNode, v as OoxmlFldSimpleNode, w as OoxmlInstrTextNode, x as OoxmlAttribute } from './ooxml-tree-BU0e3DVi.js';
6
6
  export { y as OOXML_NODE_IDENTITY_RULES, z as OoxmlBodyNode, A as OoxmlBookmarkEndNode, B as OoxmlBookmarkStartNode, C as OoxmlContentControlCalendarNode, D as OoxmlContentControlCheckboxNode, E as OoxmlContentControlCheckedNode, F as OoxmlContentControlCheckedStateNode, G as OoxmlContentControlComboBoxNode, d as OoxmlContentControlContentNode, H as OoxmlContentControlDataBindingNode, I as OoxmlContentControlDateFormatNode, J as OoxmlContentControlDateNode, K as OoxmlContentControlDropDownListNode, p as OoxmlContentControlEndPropertiesNode, L as OoxmlContentControlLidNode, M as OoxmlContentControlListItemNode, b as OoxmlContentControlNode, q as OoxmlContentControlPropertiesNode, N as OoxmlContentControlStoreMappedDataAsNode, P as OoxmlContentControlTextNode, Q as OoxmlContentControlUncheckedStateNode, h as OoxmlContinuationSeparatorNode, R as OoxmlDocumentNode, i as OoxmlEndnotesNode, j as OoxmlFootnotesNode, c as OoxmlGenericElementNode, S as OoxmlGenericExtensionAttribute, T as OoxmlHyperlinkNode, U as OoxmlInvariantIssueCode, V as OoxmlKnownNodeAttribute, W as OoxmlNamespaceBinding, Y as OoxmlNodeId, Z as OoxmlNodeIdentityRules, g as OoxmlNoteNode, k as OoxmlNoteRefNode, l as OoxmlNoteReferenceNode, _ as OoxmlParagraphPropertiesNode, $ as OoxmlPartMetadata, n as OoxmlReadRejection, a0 as OoxmlReadResult, a1 as OoxmlRunNode, a2 as OoxmlRunPropertiesNode, m as OoxmlSeparatorNode, a3 as OoxmlTabNode, a4 as OoxmlTextElementNode, a5 as OoxmlTextNode, a6 as OoxmlWmlValAttribute, a7 as OoxmlXmlSpaceAttribute, a8 as WML_NAMESPACE_URI, a9 as XMLNS_NAMESPACE_URI, aa as XML_NAMESPACE_URI, X as XmlLimits, ab as XmlNode, ac as XmlRejection, ad as XmlResult, ae as childElements, af as findElement, ag as isContentRevisionKind, ah as isRangeMarkerKind, ai as readOnOffChild, aj as readOoxmlPart, ak as readXml, al as textContent } from './ooxml-tree-BU0e3DVi.js';
7
- export { e as BookmarkAnchor, B as BookmarkIndex, f as CascadeDeletedNoteReferencesOptions, g as CustomNodePayloadRead, h as CustomNodePayloadWrite, b as CustomNodeSweepOutcome, i as CustomNodeSweepResult, j as CustomNodeWriteRejection, C as CustomNodeWriteResult, k as DEFAULT_MAX_EDITABLE_STORY_PARTS, D as DocumentTrackingSettings, l as DrawingPropertyIdResult, E as EmbeddedFont, F as FontStyleKey, H as HeaderFooterLifecycleImpact, m as HeaderFooterLifecycleOp, n as HeaderFooterLifecycleRejection, o as HeaderFooterLifecycleResult, I as InsertCustomNodeWrite, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, p as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, q as MAX_NOTE_REFERENCE_PARTS, r as MAX_NOTE_REFERENCE_SCAN, N as NO_TRACKING_SETTINGS, s as NoteDiagnostic, t as NoteDiagnosticCode, u as NoteLifecycleImpact, v as NoteLifecycleOp, w as NoteLifecycleOptions, x as NoteLifecycleRejection, y as NoteLifecycleResult, z as NoteReferenceHit, G as NoteReferenceScanBudget, P as PackageTransactResult, J as ReadEmbeddedFontsOptions, K as StoryResolveResult, S as StoryScope, a as StoryTargetRejection, T as TreePackageStore, O as TreePackageStoreOptions, Q as allocateDrawingPropertyId, U as applyHeaderFooterLifecycleOp, V as applyNoteLifecycleOp, W as buildBookmarkIndex, X as cascadeDeletedNoteReferences, Y as collectNoteReferences, Z as collectPackageNoteReferences, _ as createNoteReferenceScanBudget, $ as customNodePayloadsByControl, a0 as customNodePayloadsOf, a1 as deobfuscateFont, a2 as diagnoseNoteReferences, a3 as ensureListDefinition, a4 as ensureNumberingLevel, a5 as insertCustomNodeWrite, a6 as isHeaderFooterLifecycleOp, a7 as isNoteLifecycleOp, a8 as normalNoteIds, a9 as notesPartHasId, aa as readEmbeddedFonts, ab as readTrackingSettings, ac as removeCustomNodeWrite, ad as resolveNotesPart, ae as sweepCustomNodePayloads, af as withBinaryPart, ag as withEmbeddedImage, ah as withoutUnreferencedImagePart } from './custom-node-writes-tJw8U9MO.js';
7
+ export { e as BookmarkAnchor, B as BookmarkIndex, f as CascadeDeletedNoteReferencesOptions, g as CustomNodePayloadRead, h as CustomNodePayloadWrite, b as CustomNodeSweepOutcome, i as CustomNodeSweepResult, j as CustomNodeWriteRejection, C as CustomNodeWriteResult, k as DEFAULT_MAX_EDITABLE_STORY_PARTS, D as DocumentTrackingSettings, l as DrawingPropertyIdResult, E as EmbeddedFont, F as FontStyleKey, H as HeaderFooterLifecycleImpact, m as HeaderFooterLifecycleOp, n as HeaderFooterLifecycleRejection, o as HeaderFooterLifecycleResult, I as InsertCustomNodeWrite, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, p as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, q as MAX_NOTE_REFERENCE_PARTS, r as MAX_NOTE_REFERENCE_SCAN, N as NO_TRACKING_SETTINGS, s as NoteDiagnostic, t as NoteDiagnosticCode, u as NoteLifecycleImpact, v as NoteLifecycleOp, w as NoteLifecycleOptions, x as NoteLifecycleRejection, y as NoteLifecycleResult, z as NoteReferenceHit, G as NoteReferenceScanBudget, P as PackageTransactResult, J as ReadEmbeddedFontsOptions, K as StoryResolveResult, S as StoryScope, a as StoryTargetRejection, T as TreePackageStore, O as TreePackageStoreOptions, Q as allocateDrawingPropertyId, U as applyHeaderFooterLifecycleOp, V as applyNoteLifecycleOp, W as buildBookmarkIndex, X as cascadeDeletedNoteReferences, Y as collectNoteReferences, Z as collectPackageNoteReferences, _ as createNoteReferenceScanBudget, $ as customNodePayloadsByControl, a0 as customNodePayloadsOf, a1 as deobfuscateFont, a2 as diagnoseNoteReferences, a3 as ensureListDefinition, a4 as ensureNumberingLevel, a5 as insertCustomNodeWrite, a6 as isHeaderFooterLifecycleOp, a7 as isNoteLifecycleOp, a8 as normalNoteIds, a9 as notesPartHasId, aa as readEmbeddedFonts, ab as readTrackingSettings, ac as removeCustomNodeWrite, ad as resolveNotesPart, ae as sweepCustomNodePayloads, af as withBinaryPart, ag as withEmbeddedImage, ah as withoutUnreferencedImagePart } from './custom-node-writes-BdVl-LAC.js';
8
8
  export { c as HeaderFooterKind, a as HeaderFooterParts, b as HeaderFooterSectionResolution, d as HeaderFooterSlotMeta, H as HeaderFooterVariant, e as collectSectionPropertyNodes, r as resolveHeaderFooterParts, f as resolveHeaderFooterPartsBySection, g as resolveHeaderFooterResolutionBySection } from './hf-references-BdjsQNE_.js';
9
9
  export { c as collectFlowBlocks, d as contentControlContentOf, i as isContentControl, b as isContentControlContent, w as walkAllStoryParagraphs, e as walkParagraphInline, f as walkStoryBlocks } from './content-control-walk-D06GijR0.js';
10
- import { T as TreeDocOp, a as TreeOpRejection, q as TreeOpResult, O as OoxmlProperty, h as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-D0fTNBVW.js';
11
- export { A as ACCEPTED_PARAGRAPH_PROPERTIES, r as ACCEPTED_RUN_PROPERTIES, s as CONTENT_CONTROL_ID_MAX, t as CONTENT_CONTROL_PROPERTY_ORDER, u as ContentControlCheckbox, v as ContentControlCheckboxState, p as ContentControlDataBinding, w as ContentControlDateFormat, x as ContentControlEntry, C as ContentControlKind, n as ContentControlLevel, y as ContentControlListItem, o as ContentControlLock, z as ContentControlProperties, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, H as HYPERLINK_RELATIONSHIP_TYPE, B as HyperlinkKind, E as HyperlinkTarget, j as IMAGE_WRAP_TARGETS, M as MAX_CONTENT_CONTROLS_PER_PART, F as MAX_CONTENT_CONTROL_NESTING, G as OFFICE_RELATIONSHIP_NAMESPACE_URI, J as RelationshipTargetResolver, R as RevisionAddress, S as SourceCrop, K as TABLE_BORDER_STYLES, L as TREE_DOC_OP_KINDS, m as TableBorderStyle, N as TreeDocOpKind, P as TreeOpEffect, Q as allocateContentControlId, U as contentControlContentChildren, W as contentControlContentNodeOf, X as contentControlEndPropertiesNodeOf, Y as contentControlLevelOf, Z as contentControlPropertiesNodeOf, _ as contentControlPropertiesOf, $ as contentControlTextOf, a0 as contentControlsIn, a1 as findContentControl, a2 as flattenContentControls, a3 as hyperlinkAnchorOf, a4 as hyperlinkRelationshipIdOf, a5 as hyperlinkTargetOf, a6 as isContentControlContentNode, a7 as isContentControlNode, a8 as isContentControlWrapper, a9 as isHyperlinkNode, aa as lockForbidsEdit, ab as lockForbidsRemoval, ac as orderedContentControlProperties, ad as parseContentControlId, ae as projectDrawing, af as resolveContentControlLock } from './tree-op-types-D0fTNBVW.js';
10
+ import { T as TreeDocOp, a as TreeOpRejection, q as TreeOpResult, O as OoxmlProperty, h as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-BbzrA-kg.js';
11
+ export { A as ACCEPTED_PARAGRAPH_PROPERTIES, r as ACCEPTED_RUN_PROPERTIES, s as CONTENT_CONTROL_ID_MAX, t as CONTENT_CONTROL_PROPERTY_ORDER, u as ContentControlCheckbox, v as ContentControlCheckboxState, p as ContentControlDataBinding, w as ContentControlDateFormat, x as ContentControlEntry, C as ContentControlKind, n as ContentControlLevel, y as ContentControlListItem, o as ContentControlLock, z as ContentControlProperties, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, H as HYPERLINK_RELATIONSHIP_TYPE, B as HyperlinkKind, E as HyperlinkTarget, m as IMAGE_WRAP_TARGETS, M as MAX_CONTENT_CONTROLS_PER_PART, F as MAX_CONTENT_CONTROL_NESTING, G as OFFICE_RELATIONSHIP_NAMESPACE_URI, J as RelationshipTargetResolver, R as RevisionAddress, S as SourceCrop, K as TABLE_BORDER_STYLES, L as TREE_DOC_OP_KINDS, N as TabStopWrite, k as TableBorderStyle, P as TreeDocOpKind, Q as TreeOpEffect, U as allocateContentControlId, W as contentControlContentChildren, X as contentControlContentNodeOf, Y as contentControlEndPropertiesNodeOf, Z as contentControlLevelOf, _ as contentControlPropertiesNodeOf, $ as contentControlPropertiesOf, a0 as contentControlTextOf, a1 as contentControlsIn, a2 as findContentControl, a3 as flattenContentControls, a4 as hyperlinkAnchorOf, a5 as hyperlinkRelationshipIdOf, a6 as hyperlinkTargetOf, a7 as isContentControlContentNode, a8 as isContentControlNode, a9 as isContentControlWrapper, aa as isHyperlinkNode, ab as lockForbidsEdit, ac as lockForbidsRemoval, ad as orderedContentControlProperties, ae as parseContentControlId, af as projectDrawing, ag as resolveContentControlLock } from './tree-op-types-BbzrA-kg.js';
12
12
  export { A as AtomicNoteSpan, M as MAX_NOTES_PER_PART, a as NOTE_ATOM_CHAR, b as NOTE_CONTINUATION_SEPARATOR_ID, c as NOTE_ID_MAX, d as NOTE_ID_MIN, e as NOTE_SEPARATOR_ID, N as NoteKind, f as NoteType, g as allocateNoteId, h as atomicNoteSpansOf, i as customMarkFollows, j as findNoteById, k as formatNoteScopeId, l as isContinuationSeparatorNode, m as isEndnotesNode, o as isFootnotesNode, p as isNormalNote, q as isNoteAtomNode, r as isNoteNode, s as isNoteRefNode, t as isNoteReferenceNode, u as isSeparatorNode, v as noteAtomText, w as noteIdOf, x as noteKindOf, y as noteRefKindOf, z as noteReferenceKindOf, n as noteTypeOf, B as notesOf, C as parseNoteId, D as parseNoteScopeId } from './note-nodes-BPSTVDMr.js';
13
- export { A as AuthoredNoteProperties, C as CommentAnchor, b as CommentPosition, c as CommentRecord, d as CommentThreadState, D as DEFAULT_ENDNOTE_PROPERTIES, e as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, L as LinkableReviewItem, N as NoteNumRestart, a as ResolvedEndnoteProperties, R as ResolvedFootnoteProperties, f as ReviewCommentItem, g as ReviewItem, h as ReviewModelInput, i as ReviewPosition, j as ReviewRange, k as ReviewRevisionItem, l as ReviewRevisionKind, W as W15_NAMESPACE_URI, m as authoredDocumentEndnoteProperties, n as authoredDocumentFootnoteProperties, o as authoredEndnotePropertiesFromSectPr, q as authoredFootnotePropertiesFromSectPr, r as collectReviewItems, s as commentAnchorsOfStory, t as commentBodyText, u as commentInitials, v as commentItemsOf, w as commentsOfPart, x as deepParagraphOrderOfPart, y as firstReviewRange, z as hasAnyComment, B as isLegalEndnotePosition, G as isLegalFootnotePosition, H as isLegalNumRestart, I as linkRevisionReplies, p as paragraphOrderOfPart, J as parseAuthoredNoteProperties, K as resolveEndnoteProperties, M as resolveFootnoteProperties, O as reviewItemKey, P as reviewItemRanges, Q as revisionItemsOf, S as settingsPartOf, T as threadStateOfPart } from './review-reads-HDvoQXK2.js';
14
- import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-CIKASRHk.js';
15
- export { D as DocumentProperties, S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-CIKASRHk.js';
13
+ export { A as AuthoredNoteProperties, C as CommentAnchor, b as CommentPosition, c as CommentRecord, d as CommentThreadState, D as DEFAULT_ENDNOTE_PROPERTIES, e as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, L as LinkableReviewItem, N as NoteNumRestart, a as ResolvedEndnoteProperties, R as ResolvedFootnoteProperties, f as ReviewCommentItem, g as ReviewItem, h as ReviewModelInput, i as ReviewPosition, j as ReviewRange, k as ReviewRevisionItem, l as ReviewRevisionKind, W as W15_NAMESPACE_URI, m as authoredDocumentEndnoteProperties, n as authoredDocumentFootnoteProperties, o as authoredEndnotePropertiesFromSectPr, q as authoredFootnotePropertiesFromSectPr, r as collectReviewItems, s as commentAnchorsOfStory, t as commentBodyText, u as commentInitials, v as commentItemsOf, w as commentsOfPart, x as deepParagraphOrderOfPart, y as firstReviewRange, z as hasAnyComment, B as isLegalEndnotePosition, G as isLegalFootnotePosition, H as isLegalNumRestart, I as linkRevisionReplies, p as paragraphOrderOfPart, J as parseAuthoredNoteProperties, K as resolveEndnoteProperties, M as resolveFootnoteProperties, O as reviewItemKey, P as reviewItemRanges, Q as revisionItemsOf, S as settingsPartOf, T as threadStateOfPart } from './review-reads-B_pXe43J.js';
14
+ import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-CKswbQl3.js';
15
+ export { D as DocumentProperties, S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-CKswbQl3.js';
16
+ import './contracts/types.js';
16
17
 
17
18
  /**
18
19
  * Every kind of thing the registry gives a stable identity to.
@@ -1554,6 +1555,17 @@ interface OoxmlStoryRoot {
1554
1555
  * contains another story root.
1555
1556
  */
1556
1557
  declare function storyRootsOf(part: OoxmlPart): readonly OoxmlStoryRoot[];
1558
+ /**
1559
+ * Whether a part is SHAPED to hold stories — a body, a header, a footer, or a notes part.
1560
+ *
1561
+ * A shape test, deliberately not `storyRootsOf(part).length > 0`. That counts EDITABLE stories,
1562
+ * and a notes part holding nothing but `w:separator` and `w:continuationSeparator` has none —
1563
+ * which is the footnotes part Word writes into every document that ever held a footnote. A
1564
+ * caller asking "should I walk this part at all" that used the editable count skipped it
1565
+ * entirely, and the two callers that ask are a payload sweep and an export strip: both DELETE
1566
+ * what they conclude nothing names.
1567
+ */
1568
+ declare function isStoryPart(part: OoxmlPart): boolean;
1557
1569
  /** The main body story of a part, or null when the part holds none. */
1558
1570
  declare function bodyStoryRoot(part: OoxmlPart): OoxmlNode | null;
1559
1571
  /**
@@ -2065,6 +2077,18 @@ declare function directParagraphMarkProperties(part: OoxmlPart, paragraphId: str
2065
2077
  * same fold written at every call site.
2066
2078
  */
2067
2079
  declare function mergedProperties(existing: readonly OoxmlProperty[], incoming: OoxmlProperty | readonly OoxmlProperty[]): OoxmlProperty[];
2080
+ /**
2081
+ * A `w:rFonts` write merged over what the run already authors, slot by slot.
2082
+ *
2083
+ * `w:rFonts` is the one run property carrying SEVERAL independent settings, so replacing it
2084
+ * wholesale to change the Latin font deleted the run's East Asian and complex-script faces
2085
+ * and its `w:hint`. That loss is invisible here — this engine resolves the Latin slot — and
2086
+ * shows up on save: CJK text in that run reopens in Word in a different font.
2087
+ *
2088
+ * `w:hint` rides along untouched. It says which slot ambiguous characters resolve through,
2089
+ * which is a property of the text, not of the font just picked.
2090
+ */
2091
+ declare function mergedFontProperty(authored: readonly OoxmlProperty[], incoming: OoxmlProperty): OoxmlProperty;
2068
2092
  /** Per-run UTF-16 ranges from `segmentsOf` (fields/notes collapse to one unit on begin). */
2069
2093
  declare function runAddressRanges(paragraph: Extract<OoxmlNode, {
2070
2094
  kind: 'paragraph';
@@ -2087,6 +2111,28 @@ interface RunPropertyEdit {
2087
2111
  */
2088
2112
  readonly targetRunIds?: readonly string[];
2089
2113
  }
2114
+ /**
2115
+ * One incoming write merged over what the node authors, for the properties that carry
2116
+ * SEVERAL independent settings in one element.
2117
+ *
2118
+ * Almost every run property is one setting and replaces cleanly. Two are not: `w:rFonts`
2119
+ * carries a font per script (see {@link mergedFontProperty}), and `w:u` carries the
2120
+ * underline style AND its colour, so toggling the style off and on again dropped an
2121
+ * authored `w:color` and repainted a red underline black.
2122
+ *
2123
+ * Exported because the editor lane keeps its own content-control-aware run walk beside this
2124
+ * one, and the two must reach the same answer.
2125
+ */
2126
+ declare function mergedMultiSettingProperty(authored: readonly OoxmlProperty[], incoming: OoxmlProperty): OoxmlProperty;
2127
+ /**
2128
+ * A paragraph MARK's own properties with one write merged in, per attribute where it counts.
2129
+ *
2130
+ * The mark carries a `w:rPr` like any run, so a font change has to keep its other font slots
2131
+ * for the same reason a run does — without this the marker of a CJK list item lost its East
2132
+ * Asian face while the text beside it kept one. Lives here because BOTH lanes write the mark:
2133
+ * the editor's toolbar and the automation object model.
2134
+ */
2135
+ declare function mergedParagraphMarkProperties(part: OoxmlPart, paragraphId: string, incoming: OoxmlProperty | readonly OoxmlProperty[]): OoxmlProperty[];
2090
2136
  /**
2091
2137
  * A range run-property change, split into ONE edit per run it covers, each merged over that
2092
2138
  * run's own `w:rPr`.
@@ -2201,4 +2247,4 @@ declare function wrapTargetToAnchorSpec(target: ImageWrapTarget): {
2201
2247
  /** Whether an op is one of the drawing ops. Narrows the type. */
2202
2248
  declare function isDrawingTreeDocOp(op: TreeDocOp): op is DrawingTreeDocOp;
2203
2249
 
2204
- export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, type AddCommentRequest, type AddCommentResult, type AnchorSnapshot, type AtomicFieldSpan, type AuditPort, type AuthorizationPort, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, type CancellationPhase, type CancellationPort, type CancellationToken, type CapabilityId, type ClockPort, type CommentAnchorRequest, type CommentDeletionOwner, type ComparatorDescriptor, type ComparatorMode, type ComparatorName, type ComparisonResult, type ConformanceFixture, type ContentItem, type Contribution, type CustomNodeBinding, type CustomNodeExportPolicy, type CustomNodeExportRequest, type CustomNodeExportResult, type CustomXmlDataPart, type CustomXmlDataPartResult, type CustomXmlNode, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, type DetectedToc, DeterministicClock, DeterministicMemoryMeter, type DigestDifference, type DocumentViewSettings, DrawingTreeDocOp, type EditOptions, type EncodedEnvelope, type EnforcementPhase, type EnsuredHyperlinkRelationship, type ExternalResourceConsentPort, FIELD_ATOM_CHAR, type FeatureBundle, type FixtureExpectation, type FixtureOutcome, type FixtureSource, type FixtureStep, type FldCharType, type FontPort, type HardBreakKind, type HrefProjection, ID_KINDS, INERT_EXECUTABLE_KINDS, type IdKind, type IdentityPort, type ImagePort, ImageWrapTarget, ImpactClass, type InertExecutableKind, type InlineControlSpan, type Json, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, type LimitSpec, type LimitUnit, MAX_STORY_SDT_NESTING, type ModelChangeSummary, NON_CANONICAL_ORIGINS, ORIGIN_IDS, type OffsetSpan, OoxmlAttribute, type OoxmlEditResult, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlHardBreakNode, type OoxmlIndexes, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, type OoxmlStoryKind, type OoxmlStoryRoot, type OperationContext, type OperationInit, PAGE_BREAK_CHAR, type PackageInvariantCode, type PackageInvariantIssue, type PackageInvariantResult, type ParagraphDigest, type ParagraphIndexEntry, type ParagraphOffsetIndex, type PersistencePort, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, type RegistryErrorCode, RelationshipRecord, type ReplacementPolicy, type ReplayOutcome, type ReplayReport, type ReplayStore, type Reservation, type ResolveOptions, type ResolvedRegistry, type ResourceAccountingPort, ResourceLimits, type RunPropertyEdit, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, type SchedulingPort, type ScrubResult, type Segment, type SemVer, type SemanticDigest, SequentialIdentity, type SetCommentResolvedResult, type ShapingPort, type StoryDigest, type StoryIndexEntry, type StyleIndexEntry, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, type TextMatchOptions, type TextOccurrence, type TextOccurrences, type TocEntryPlan, type TocInstruction, type TocOutlineHeading, type TransportPort, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, type ValidationResult, addComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authorableHyperlinkTarget, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectRevisionSites, collectStoryParagraphs, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, drawingOpImpact, endOperation, ensureHyperlinkRelationship, escapeCssString, escapeXml, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isPageBreakNode, isSearchableQuery, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, locateSites, makeLimitCounter, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, propertyContainer, readCustomXmlNode, readViewSettings, relationshipTargetIn, relationshipsOf, relsPartNameFor, removeNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, toSafeRecord, tocEntryText, tocLeftIndentTwips, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
2250
+ export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, type AddCommentRequest, type AddCommentResult, type AnchorSnapshot, type AtomicFieldSpan, type AuditPort, type AuthorizationPort, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, type CancellationPhase, type CancellationPort, type CancellationToken, type CapabilityId, type ClockPort, type CommentAnchorRequest, type CommentDeletionOwner, type ComparatorDescriptor, type ComparatorMode, type ComparatorName, type ComparisonResult, type ConformanceFixture, type ContentItem, type Contribution, type CustomNodeBinding, type CustomNodeExportPolicy, type CustomNodeExportRequest, type CustomNodeExportResult, type CustomXmlDataPart, type CustomXmlDataPartResult, type CustomXmlNode, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, type DetectedToc, DeterministicClock, DeterministicMemoryMeter, type DigestDifference, type DocumentViewSettings, DrawingTreeDocOp, type EditOptions, type EncodedEnvelope, type EnforcementPhase, type EnsuredHyperlinkRelationship, type ExternalResourceConsentPort, FIELD_ATOM_CHAR, type FeatureBundle, type FixtureExpectation, type FixtureOutcome, type FixtureSource, type FixtureStep, type FldCharType, type FontPort, type HardBreakKind, type HrefProjection, ID_KINDS, INERT_EXECUTABLE_KINDS, type IdKind, type IdentityPort, type ImagePort, ImageWrapTarget, ImpactClass, type InertExecutableKind, type InlineControlSpan, type Json, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, type LimitSpec, type LimitUnit, MAX_STORY_SDT_NESTING, type ModelChangeSummary, NON_CANONICAL_ORIGINS, ORIGIN_IDS, type OffsetSpan, OoxmlAttribute, type OoxmlEditResult, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlHardBreakNode, type OoxmlIndexes, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, type OoxmlStoryKind, type OoxmlStoryRoot, type OperationContext, type OperationInit, PAGE_BREAK_CHAR, type PackageInvariantCode, type PackageInvariantIssue, type PackageInvariantResult, type ParagraphDigest, type ParagraphIndexEntry, type ParagraphOffsetIndex, type PersistencePort, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, type RegistryErrorCode, RelationshipRecord, type ReplacementPolicy, type ReplayOutcome, type ReplayReport, type ReplayStore, type Reservation, type ResolveOptions, type ResolvedRegistry, type ResourceAccountingPort, ResourceLimits, type RunPropertyEdit, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, type SchedulingPort, type ScrubResult, type Segment, type SemVer, type SemanticDigest, SequentialIdentity, type SetCommentResolvedResult, type ShapingPort, type StoryDigest, type StoryIndexEntry, type StyleIndexEntry, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, type TextMatchOptions, type TextOccurrence, type TextOccurrences, type TocEntryPlan, type TocInstruction, type TocOutlineHeading, type TransportPort, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, type ValidationResult, addComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authorableHyperlinkTarget, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectRevisionSites, collectStoryParagraphs, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, drawingOpImpact, endOperation, ensureHyperlinkRelationship, escapeCssString, escapeXml, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, locateSites, makeLimitCounter, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, propertyContainer, readCustomXmlNode, readViewSettings, relationshipTargetIn, relationshipsOf, relsPartNameFor, removeNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, toSafeRecord, tocEntryText, tocLeftIndentTwips, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
package/dist/store.js CHANGED
@@ -1 +1 @@
1
- export{j as Budget,i as BudgetError,z as COMPARATORS,l as CancellationController,k as CancellationError,P as DEFAULT_VIEW_SETTINGS,o as DeterministicClock,v as DeterministicMemoryMeter,a as ID_KINDS,t as LIMIT_KEYS,s as LIMIT_SPECS,N as NO_TRACKING_SETTINGS,n as PortRegistry,m as PortResolutionError,g as RegistryError,p as SequentialIdentity,w as assertLimitInvariants,c as assertValidId,q as beginOperation,x as canonicalize,A as compareArtifacts,e as compareSemVer,F as deobfuscateFont,K as diffSemanticDigests,I as digestPart,r as endOperation,L as ensureListDefinition,M as ensureNumberingLevel,B as fingerprint,E as hashAuthored,b as isValidId,u as makeLimitCounter,d as parseSemVer,G as readEmbeddedFonts,O as readTrackingSettings,Q as readViewSettings,D as replayFixture,h as resolve,H as resolveTocRowHeadings,f as satisfies,J as semanticDigest,y as stableHash,C as validateFixture,T as withExportedCustomNodes}from'./chunk-SMRD66T5.js';export{mf as ACCEPTED_PARAGRAPH_PROPERTIES,lf as ACCEPTED_RUN_PROPERTIES,z as ALL_FROZEN_IDS,$f as AUTHORABLE_PARAGRAPH_PROPERTIES,ag as AUTHORABLE_RUN_PROPERTIES,H as BoundedCounter,u as CANONICAL_MUTATION_ORIGINS,he as CONTENT_CONTROL_ID_MAX,ze as CONTENT_CONTROL_PROPERTY_ORDER,ff as CUSTOM_NODE_XPATH_PREFIX,Se as CUSTOM_XML_PROPS_REL,Te as CUSTOM_XML_PROPS_TYPE,Re as CUSTOM_XML_REL,Q as DANGEROUS_KEYS,Ue as DATASTORE_NAMESPACE_URI,Cd as DEFAULT_ENDNOTE_PROPERTIES,Bd as DEFAULT_FOOTNOTE_PROPERTIES,E as DEFAULT_IMAGE_RESOURCE_LIMITS,B as DEFAULT_LIMITS,Jf as DEFAULT_MAX_EDITABLE_STORY_PARTS,xb as DEFAULT_OOXML_PACKAGE_LIMITS,Ma as DEFAULT_ZIP_LIMITS,y as DEPENDENCY_KEY_IDS,R as DangerousKeyError,ac as FIELD_ATOM_CHAR,A as HARD_CEILINGS,Qa as HYPERLINK_RELATIONSHIP_TYPE,M as IMAGE_RELATIONSHIP_TYPE,D as IMAGE_RESOURCE_HARD_CEILINGS,Xa as IMAGE_WRAP_TARGETS,_ as INERT_EXECUTABLE_KINDS,G as LimitExceededError,ge as MAX_CONTENT_CONTROLS_PER_PART,fe as MAX_CONTENT_CONTROL_NESTING,Vf as MAX_CUSTOM_NODE_LABEL_LENGTH,Uf as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,xd as MAX_NOTES_PER_PART,Wd as MAX_NOTE_REFERENCE_PARTS,Vd as MAX_NOTE_REFERENCE_SCAN,Ce as MAX_STORY_SDT_NESTING,ib as MAX_SVG_SNIFF_BYTES,v as NON_CANONICAL_ORIGINS,_c as NOTE_ATOM_CHAR,cd as NOTE_CONTINUATION_SEPARATOR_ID,ad as NOTE_ID_MAX,$c as NOTE_ID_MIN,bd as NOTE_SEPARATOR_ID,Pa as OFFICE_RELATIONSHIP_NAMESPACE_URI,Aa as OOXML_NODE_IDENTITY_RULES,t as ORIGIN_IDS,Xb as PAGE_BREAK_CHAR,ka as PrefixAllocator,w as RESULT_IDS,x as RUNTIME_PORT_IDS,yg as SEARCH_MATCH_LIMIT,xg as SEARCH_QUERY_MAX,tf as TABLE_BORDER_STYLES,Dc as TOC_LEVEL_INDENT_TWIPS,wc as TOC_MAX_BOOKMARKS_PER_REFRESH,vc as TOC_MAX_ENTRIES,xc as TOC_MAX_FIELD_NESTING,uc as TOC_MAX_INSTRUCTION_CHARS,yc as TOC_MAX_PAGE_PASSES,nf as TREE_DOC_OP_KINDS,If as TreeDocumentStore,Kf as TreePackageStore,Ie as W15_NAMESPACE_URI,ma as WML_NAMESPACE_URI,oa as XMLNS_NAMESPACE_URI,na as XML_NAMESPACE_URI,Pf as addComment,Be as allocateContentControlId,tb as allocateDrawingPropertyId,yd as allocateNoteId,La as applyEdits,Zc as applyHeaderFooterLifecycleOp,de as applyNoteLifecycleOp,Ef as applyTreeOp,o as asciiFold,ja as assertValidQName,sc as atomicFieldSpansOf,wd as atomicNoteSpansOf,Vc as authorableHyperlinkTarget,Id as authoredDocumentEndnoteProperties,Hd as authoredDocumentFootnoteProperties,Fd as authoredEndnotePropertiesFromSectPr,Ed as authoredFootnotePropertiesFromSectPr,dg as authoredProperties,Ee as bodyStoryRoot,Jc as bookmarkPairNodes,jf as boundCustomXmlNodeIdOf,hf as boundCustomXmlNodeIds,if as boundCustomXmlNodeIdsInPackage,Cc as buildBookmarkIndex,K as buildContentTypeIndex,N as buildRelationshipSet,Gc as buildTocContentControl,Fc as buildTocEntryParagraph,xa as canonicalOoxmlFingerprint,ee as cascadeDeletedNoteReferences,Qe as cascadeEmptiedComments,fa as childElements,Pb as collectFlowBlocks,Ca as collectNodeIds,Zd as collectNoteReferences,_d as collectPackageNoteReferences,rg as collectReviewItems,kf as collectRevisionSites,Tb as collectSectionPropertyNodes,Ge as collectStoryParagraphs,Je as commentAnchorsOfStory,ng as commentBodyText,og as commentInitials,qg as commentItemsOf,Sf as commentPartNameOf,Tf as commentsExtendedPartNameOf,Ke as commentsOfPart,Z as containsCssFetch,le as contentControlContentChildren,pe as contentControlContentNodeOf,Nb as contentControlContentOf,oe as contentControlEndPropertiesNodeOf,se as contentControlLevelOf,ne as contentControlPropertiesNodeOf,re as contentControlPropertiesOf,ve as contentControlTextOf,te as contentControlsIn,Bb as contentTypesPartBytes,sb as createImageResourceCache,Da as createNodeIdAllocator,Xd as createNoteReferenceScanBudget,td as customMarkFollows,gf as customNodeBinding,Zf as customNodePayloadsByControl,_f as customNodePayloadsOf,We as customXmlDataParts,df as customXmlLabelXPath,_e as customXmlNodes,ef as customXmlPrefixMappings,Ve as datastoreItemIdFor,ug as deepParagraphOrderOfPart,Ne as deleteCommentThread,Mc as deriveOoxmlIndexes,Ac as detectBodyTocs,q as detectDuplicateNames,$d as diagnoseNoteReferences,fg as directParagraphMarkProperties,eg as directParagraphProperties,Af as drawingOpImpact,Wc as ensureHyperlinkRelationship,Y as escapeCssString,W as escapeXml,J as extensionKey,mc as fieldAtomText,lc as fieldOnOffAttribute,ue as findContentControl,Xe as findCustomXmlDataPart,Bc as findDetectedToc,ea as findElement,Fa as findNode,Ad as findNoteById,Cg as findOccurrences,wg as firstReviewRange,me as flattenContentControls,bc as fldCharType,kc as fldSimpleInstr,Pc as fnv1a32,zg as foldCase,ed as formatNoteScopeId,ig as formatOwnedRunIds,$b as hardBreakAttributes,Yb as hardBreakKind,_b as hardBreakText,Me as hasAnyComment,jb as hasBoundedSvgRoot,Rf as hasCommentPart,oc as hasLegacyFormFieldData,Ea as hasNode,Sa as hyperlinkAnchorOf,Ta as hyperlinkRelationshipIdOf,Ua as hyperlinkTargetOf,rb as imageResourceLookupFor,Kc as indexStyles,Td as inlineControlEndingAt,Ud as inlineControlStartingAt,Ia as insertChildren,Wf as insertCustomNodeWrite,jc as instrTextValue,bg as isAuthorableRunProperty,Lb as isContentControl,Mb as isContentControlContent,je as isContentControlContentNode,ie as isContentControlNode,ke as isContentControlWrapper,ra as isContentRevisionKind,md as isContinuationSeparatorNode,S as isDangerousKey,Df as isDrawingTreeDocOp,hd as isEndnotesNode,aa as isEvaluableField,nc as isFieldChrome,fc as isFldChar,cc as isFldCharNode,ic as isFldSimple,ec as isFldSimpleNode,gd as isFootnotesNode,Yc as isHeaderFooterLifecycleOp,Ra as isHyperlinkNode,$ as isInertExecutable,gc as isInstrText,dc as isInstrTextNode,Ld as isLegalEndnotePosition,tc as isLegalFldCharType,Md as isLegalFootnotePosition,Nd as isLegalNumRestart,qd as isNormalNote,vd as isNoteAtomNode,ce as isNoteLifecycleOp,id as isNoteNode,kd as isNoteRefNode,jd as isNoteReferenceNode,Zb as isPageBreakNode,sa as isRangeMarkerKind,Bg as isSearchableQuery,ld as isSeparatorNode,I as isValidMime,ha as isValidNCName,Nc as isValidParaId,ia as isValidQName,Ag as isWholeWord,sg as linkRevisionReplies,qb as liveDrawingReferenceCount,lg as locateSites,xe as lockForbidsEdit,ye as lockForbidsRemoval,gg as mergedProperties,Qc as mintParaId,Tc as mintedParagraphIdentityAttributes,be as normalNoteIds,Uc as normalizeParagraphIdentity,m as normalizePartName,ud as noteAtomText,od as noteIdOf,nd as noteKindOf,sd as noteRefKindOf,rd as noteReferenceKindOf,pd as noteTypeOf,zd as notesOf,ae as notesPartHasId,T as nullRecord,ya as ooxmlTreesEqual,Ae as orderedContentControlProperties,Oc as paraIdOf,Sd as paragraphOffsetIndex,tg as paragraphOrderOfPart,Ff as paragraphTextOf,Ga as parentNodeOf,Dd as parseAuthoredNoteProperties,qe as parseContentControlId,dd as parseNoteId,fd as parseNoteScopeId,zc as parseTocInstruction,p as partNameKey,Ic as planTocEntries,cb as projectDrawing,cg as propertyContainer,$e as readCustomXmlNode,ta as readOnOffChild,yb as readOoxmlPackage,Ba as readOoxmlPart,da as readXml,Na as readZip,Xc as relationshipTargetIn,Cb as relationshipsOf,Eb as relsPartNameFor,Xf as removeCustomNodeWrite,Ka as removeNode,Ha as replaceChildren,Ja as replaceNode,we as resolveContentControlLock,L as resolveContentType,Db as resolveContentTypeOf,Kd as resolveEndnoteProperties,Jd as resolveFootnoteProperties,Wb as resolveHeaderFooterParts,Vb as resolveHeaderFooterPartsBySection,Ub as resolveHeaderFooterResolutionBySection,P as resolveImageRelationship,F as resolveImageResourceLimits,r as resolveInternalTarget,C as resolveLimits,Yd as resolveNotesPart,O as resolveRelationship,mg as reviewItemKey,vg as reviewItemRanges,pg as revisionItemsOf,hg as runAddressRanges,jg as runPropertyEdits,kg as runsCovering,V as sanitizeHref,ba as scrubExport,Rd as segmentsOf,ua as serializeOoxmlPart,Qf as setCommentResolved,Gd as settingsPartOf,kb as sniffImageMime,Fe as storyParagraphs,De as storyRootsOf,Lc as stylesPartOf,Yf as sweepCustomNodePayloads,ga as textContent,Le as threadStateOfPart,U as toSafeRecord,Hc as tocEntryText,Ec as tocLeftIndentTwips,Rc as usedParaIds,Bf as validateDrawingOp,s as validateExternalTarget,mb as validateGifHeader,nb as validateJpegHeader,za as validateOoxmlPart,Jb as validatePackageInvariants,lb as validatePngHeader,pb as validateRasterHeader,Hf as validateTreeOp,Sc as w14RootPrefix,Rb as walkAllStoryParagraphs,Sb as walkParagraphInline,Qb as walkStoryBlocks,ub as withBinaryPart,Fb as withContentTypeOverride,Ye as withCustomXmlDataPart,af as withCustomXmlNode,vb as withEmbeddedImage,Ib as withNewPart,Ab as withPart,Hb as withRelationship,Ze as withoutCustomXmlDataPart,bf as withoutCustomXmlNode,cf as withoutOrphanCustomXmlNodes,wb as withoutUnreferencedImagePart,Cf as wrapTargetToAnchorSpec,zb as writeOoxmlPackage,Oa as writeZip}from'./chunk-R75OLPL6.js';
1
+ export{j as Budget,i as BudgetError,z as COMPARATORS,l as CancellationController,k as CancellationError,P as DEFAULT_VIEW_SETTINGS,o as DeterministicClock,v as DeterministicMemoryMeter,a as ID_KINDS,t as LIMIT_KEYS,s as LIMIT_SPECS,N as NO_TRACKING_SETTINGS,n as PortRegistry,m as PortResolutionError,g as RegistryError,p as SequentialIdentity,w as assertLimitInvariants,c as assertValidId,q as beginOperation,x as canonicalize,A as compareArtifacts,e as compareSemVer,F as deobfuscateFont,K as diffSemanticDigests,I as digestPart,r as endOperation,L as ensureListDefinition,M as ensureNumberingLevel,B as fingerprint,E as hashAuthored,b as isValidId,u as makeLimitCounter,d as parseSemVer,G as readEmbeddedFonts,O as readTrackingSettings,Q as readViewSettings,D as replayFixture,h as resolve,H as resolveTocRowHeadings,f as satisfies,J as semanticDigest,y as stableHash,C as validateFixture,T as withExportedCustomNodes}from'./chunk-XN634HAC.js';export{Ff as ACCEPTED_PARAGRAPH_PROPERTIES,Ef as ACCEPTED_RUN_PROPERTIES,z as ALL_FROZEN_IDS,bg as AUTHORABLE_PARAGRAPH_PROPERTIES,cg as AUTHORABLE_RUN_PROPERTIES,H as BoundedCounter,u as CANONICAL_MUTATION_ORIGINS,he as CONTENT_CONTROL_ID_MAX,ze as CONTENT_CONTROL_PROPERTY_ORDER,gf as CUSTOM_NODE_XPATH_PREFIX,Te as CUSTOM_XML_PROPS_REL,Ue as CUSTOM_XML_PROPS_TYPE,Se as CUSTOM_XML_REL,Q as DANGEROUS_KEYS,Ve as DATASTORE_NAMESPACE_URI,Cd as DEFAULT_ENDNOTE_PROPERTIES,Bd as DEFAULT_FOOTNOTE_PROPERTIES,E as DEFAULT_IMAGE_RESOURCE_LIMITS,B as DEFAULT_LIMITS,Lf as DEFAULT_MAX_EDITABLE_STORY_PARTS,xb as DEFAULT_OOXML_PACKAGE_LIMITS,Ma as DEFAULT_ZIP_LIMITS,y as DEPENDENCY_KEY_IDS,R as DangerousKeyError,ac as FIELD_ATOM_CHAR,A as HARD_CEILINGS,Qa as HYPERLINK_RELATIONSHIP_TYPE,M as IMAGE_RELATIONSHIP_TYPE,D as IMAGE_RESOURCE_HARD_CEILINGS,Xa as IMAGE_WRAP_TARGETS,_ as INERT_EXECUTABLE_KINDS,G as LimitExceededError,ge as MAX_CONTENT_CONTROLS_PER_PART,fe as MAX_CONTENT_CONTROL_NESTING,Xf as MAX_CUSTOM_NODE_LABEL_LENGTH,Wf as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,xd as MAX_NOTES_PER_PART,Wd as MAX_NOTE_REFERENCE_PARTS,Vd as MAX_NOTE_REFERENCE_SCAN,Ce as MAX_STORY_SDT_NESTING,ib as MAX_SVG_SNIFF_BYTES,v as NON_CANONICAL_ORIGINS,_c as NOTE_ATOM_CHAR,cd as NOTE_CONTINUATION_SEPARATOR_ID,ad as NOTE_ID_MAX,$c as NOTE_ID_MIN,bd as NOTE_SEPARATOR_ID,Pa as OFFICE_RELATIONSHIP_NAMESPACE_URI,Aa as OOXML_NODE_IDENTITY_RULES,t as ORIGIN_IDS,Xb as PAGE_BREAK_CHAR,ka as PrefixAllocator,w as RESULT_IDS,x as RUNTIME_PORT_IDS,Dg as SEARCH_MATCH_LIMIT,Cg as SEARCH_QUERY_MAX,sf as TABLE_BORDER_STYLES,Dc as TOC_LEVEL_INDENT_TWIPS,wc as TOC_MAX_BOOKMARKS_PER_REFRESH,vc as TOC_MAX_ENTRIES,xc as TOC_MAX_FIELD_NESTING,uc as TOC_MAX_INSTRUCTION_CHARS,yc as TOC_MAX_PAGE_PASSES,Gf as TREE_DOC_OP_KINDS,Kf as TreeDocumentStore,Mf as TreePackageStore,Je as W15_NAMESPACE_URI,ma as WML_NAMESPACE_URI,oa as XMLNS_NAMESPACE_URI,na as XML_NAMESPACE_URI,Rf as addComment,Be as allocateContentControlId,tb as allocateDrawingPropertyId,yd as allocateNoteId,La as applyEdits,Zc as applyHeaderFooterLifecycleOp,de as applyNoteLifecycleOp,If as applyTreeOp,o as asciiFold,ja as assertValidQName,sc as atomicFieldSpansOf,wd as atomicNoteSpansOf,Vc as authorableHyperlinkTarget,Id as authoredDocumentEndnoteProperties,Hd as authoredDocumentFootnoteProperties,Fd as authoredEndnotePropertiesFromSectPr,Ed as authoredFootnotePropertiesFromSectPr,fg as authoredProperties,Fe as bodyStoryRoot,Jc as bookmarkPairNodes,kf as boundCustomXmlNodeIdOf,if as boundCustomXmlNodeIds,jf as boundCustomXmlNodeIdsInPackage,Cc as buildBookmarkIndex,K as buildContentTypeIndex,N as buildRelationshipSet,Gc as buildTocContentControl,Fc as buildTocEntryParagraph,xa as canonicalOoxmlFingerprint,ee as cascadeDeletedNoteReferences,Re as cascadeEmptiedComments,fa as childElements,Pb as collectFlowBlocks,Ca as collectNodeIds,Zd as collectNoteReferences,_d as collectPackageNoteReferences,wg as collectReviewItems,lf as collectRevisionSites,Tb as collectSectionPropertyNodes,He as collectStoryParagraphs,Ke as commentAnchorsOfStory,sg as commentBodyText,tg as commentInitials,vg as commentItemsOf,Uf as commentPartNameOf,Vf as commentsExtendedPartNameOf,Le as commentsOfPart,Z as containsCssFetch,le as contentControlContentChildren,pe as contentControlContentNodeOf,Nb as contentControlContentOf,oe as contentControlEndPropertiesNodeOf,se as contentControlLevelOf,ne as contentControlPropertiesNodeOf,re as contentControlPropertiesOf,ve as contentControlTextOf,te as contentControlsIn,Bb as contentTypesPartBytes,sb as createImageResourceCache,Da as createNodeIdAllocator,Xd as createNoteReferenceScanBudget,td as customMarkFollows,hf as customNodeBinding,$f as customNodePayloadsByControl,ag as customNodePayloadsOf,Xe as customXmlDataParts,ef as customXmlLabelXPath,$e as customXmlNodes,ff as customXmlPrefixMappings,We as datastoreItemIdFor,zg as deepParagraphOrderOfPart,Oe as deleteCommentThread,Mc as deriveOoxmlIndexes,Ac as detectBodyTocs,q as detectDuplicateNames,$d as diagnoseNoteReferences,hg as directParagraphMarkProperties,gg as directParagraphProperties,Af as drawingOpImpact,Wc as ensureHyperlinkRelationship,Y as escapeCssString,W as escapeXml,J as extensionKey,mc as fieldAtomText,lc as fieldOnOffAttribute,ue as findContentControl,Ye as findCustomXmlDataPart,Bc as findDetectedToc,ea as findElement,Fa as findNode,Ad as findNoteById,Hg as findOccurrences,Bg as firstReviewRange,me as flattenContentControls,bc as fldCharType,kc as fldSimpleInstr,Pc as fnv1a32,Eg as foldCase,ed as formatNoteScopeId,lg as formatOwnedRunIds,$b as hardBreakAttributes,Yb as hardBreakKind,_b as hardBreakText,Ne as hasAnyComment,jb as hasBoundedSvgRoot,Tf as hasCommentPart,oc as hasLegacyFormFieldData,Ea as hasNode,Sa as hyperlinkAnchorOf,Ta as hyperlinkRelationshipIdOf,Ua as hyperlinkTargetOf,rb as imageResourceLookupFor,Kc as indexStyles,Td as inlineControlEndingAt,Ud as inlineControlStartingAt,Ia as insertChildren,Yf as insertCustomNodeWrite,jc as instrTextValue,dg as isAuthorableRunProperty,Lb as isContentControl,Mb as isContentControlContent,je as isContentControlContentNode,ie as isContentControlNode,ke as isContentControlWrapper,ra as isContentRevisionKind,md as isContinuationSeparatorNode,S as isDangerousKey,Df as isDrawingTreeDocOp,hd as isEndnotesNode,aa as isEvaluableField,nc as isFieldChrome,fc as isFldChar,cc as isFldCharNode,ic as isFldSimple,ec as isFldSimpleNode,gd as isFootnotesNode,Yc as isHeaderFooterLifecycleOp,Ra as isHyperlinkNode,$ as isInertExecutable,gc as isInstrText,dc as isInstrTextNode,Ld as isLegalEndnotePosition,tc as isLegalFldCharType,Md as isLegalFootnotePosition,Nd as isLegalNumRestart,qd as isNormalNote,vd as isNoteAtomNode,ce as isNoteLifecycleOp,id as isNoteNode,kd as isNoteRefNode,jd as isNoteReferenceNode,Zb as isPageBreakNode,sa as isRangeMarkerKind,Gg as isSearchableQuery,ld as isSeparatorNode,Ee as isStoryPart,I as isValidMime,ha as isValidNCName,Nc as isValidParaId,ia as isValidQName,Fg as isWholeWord,xg as linkRevisionReplies,qb as liveDrawingReferenceCount,qg as locateSites,xe as lockForbidsEdit,ye as lockForbidsRemoval,jg as mergedFontProperty,mg as mergedMultiSettingProperty,ng as mergedParagraphMarkProperties,ig as mergedProperties,Qc as mintParaId,Tc as mintedParagraphIdentityAttributes,be as normalNoteIds,Uc as normalizeParagraphIdentity,m as normalizePartName,ud as noteAtomText,od as noteIdOf,nd as noteKindOf,sd as noteRefKindOf,rd as noteReferenceKindOf,pd as noteTypeOf,zd as notesOf,ae as notesPartHasId,T as nullRecord,ya as ooxmlTreesEqual,Ae as orderedContentControlProperties,Oc as paraIdOf,Sd as paragraphOffsetIndex,yg as paragraphOrderOfPart,Jf as paragraphTextOf,Ga as parentNodeOf,Dd as parseAuthoredNoteProperties,qe as parseContentControlId,dd as parseNoteId,fd as parseNoteScopeId,zc as parseTocInstruction,p as partNameKey,Ic as planTocEntries,cb as projectDrawing,eg as propertyContainer,af as readCustomXmlNode,ta as readOnOffChild,yb as readOoxmlPackage,Ba as readOoxmlPart,da as readXml,Na as readZip,Xc as relationshipTargetIn,Cb as relationshipsOf,Eb as relsPartNameFor,Zf as removeCustomNodeWrite,Ka as removeNode,Ha as replaceChildren,Ja as replaceNode,we as resolveContentControlLock,L as resolveContentType,Db as resolveContentTypeOf,Kd as resolveEndnoteProperties,Jd as resolveFootnoteProperties,Wb as resolveHeaderFooterParts,Vb as resolveHeaderFooterPartsBySection,Ub as resolveHeaderFooterResolutionBySection,P as resolveImageRelationship,F as resolveImageResourceLimits,r as resolveInternalTarget,C as resolveLimits,Yd as resolveNotesPart,O as resolveRelationship,rg as reviewItemKey,Ag as reviewItemRanges,ug as revisionItemsOf,kg as runAddressRanges,og as runPropertyEdits,pg as runsCovering,V as sanitizeHref,ba as scrubExport,Rd as segmentsOf,ua as serializeOoxmlPart,Sf as setCommentResolved,Gd as settingsPartOf,kb as sniffImageMime,Ge as storyParagraphs,De as storyRootsOf,Lc as stylesPartOf,_f as sweepCustomNodePayloads,ga as textContent,Me as threadStateOfPart,U as toSafeRecord,Hc as tocEntryText,Ec as tocLeftIndentTwips,Rc as usedParaIds,Bf as validateDrawingOp,s as validateExternalTarget,mb as validateGifHeader,nb as validateJpegHeader,za as validateOoxmlPart,Jb as validatePackageInvariants,lb as validatePngHeader,pb as validateRasterHeader,Hf as validateTreeOp,Sc as w14RootPrefix,Rb as walkAllStoryParagraphs,Sb as walkParagraphInline,Qb as walkStoryBlocks,ub as withBinaryPart,Fb as withContentTypeOverride,Ze as withCustomXmlDataPart,bf as withCustomXmlNode,vb as withEmbeddedImage,Ib as withNewPart,Ab as withPart,Hb as withRelationship,_e as withoutCustomXmlDataPart,cf as withoutCustomXmlNode,df as withoutOrphanCustomXmlNodes,wb as withoutUnreferencedImagePart,Cf as wrapTargetToAnchorSpec,zb as writeOoxmlPackage,Oa as writeZip}from'./chunk-2WIXJ7CW.js';
@@ -1,3 +1,4 @@
1
+ import { ParagraphTabStop } from './contracts/types.cjs';
1
2
  import { O as OoxmlNode, a as OoxmlElement, o as OoxmlDrawingNode, b as OoxmlContentControlNode, d as OoxmlContentControlContentNode, p as OoxmlContentControlEndPropertiesNode, q as OoxmlContentControlPropertiesNode, e as OoxmlPart } from './ooxml-tree-BU0e3DVi.cjs';
2
3
 
3
4
  /** The relationship namespace `r:id` lives in. */
@@ -562,7 +563,14 @@ type ContentControlValueInput = {
562
563
  };
563
564
  /** The control types an insertion may author. Picture and repeating section are deferred. */
564
565
  declare const INSERTABLE_CONTENT_CONTROL_TYPES: readonly ["richText", "plainText", "dropDownList", "comboBox", "date"];
565
- type InsertableContentControlType = (typeof INSERTABLE_CONTENT_CONTROL_TYPES)[number];
566
+ /**
567
+ * The OOXML spellings the store writes.
568
+ *
569
+ * NOT the contract's `InsertableContentControlType`, which is the same set of kinds in the
570
+ * READ vocabulary (`dropdown`) plus this lane's spelling of it (`dropDownList`). The editor
571
+ * maps between the two; the names differ so a reader can tell which vocabulary a value is in.
572
+ */
573
+ type InsertableContentControlKind = (typeof INSERTABLE_CONTENT_CONTROL_TYPES)[number];
566
574
 
567
575
  /** Allowlisted OOXML table border line styles — store/layout authority. */
568
576
  declare const TABLE_BORDER_STYLES: readonly ["single", "dashed", "dotted", "double", "triple", "thick"];
@@ -618,16 +626,21 @@ interface TableBorderSpecInput {
618
626
  */
619
627
  declare const ACCEPTED_RUN_PROPERTIES: readonly ["rFonts", "sz", "szCs", "color", "b", "bCs", "i", "iCs", "u", "strike", "dstrike", "highlight", "vertAlign", "position", "caps", "smallCaps", "spacing", "w", "kern"];
620
628
  /** The accepted PARAGRAPH property boundary (design D8). */
621
- declare const ACCEPTED_PARAGRAPH_PROPERTIES: readonly ["pStyle", "jc", "spacing", "ind", "tabs", "numPr", "keepNext", "keepLines", "widowControl", "pageBreakBefore", "shd"];
629
+ declare const ACCEPTED_PARAGRAPH_PROPERTIES: readonly ["pStyle", "jc", "spacing", "ind", "tabs", "numPr", "keepNext", "keepLines", "widowControl", "pageBreakBefore", "contextualSpacing", "shd"];
630
+ /**
631
+ * One tab stop an op can author: where it sits, how it aligns, and what fills the gap.
632
+ *
633
+ * An alias, not a second declaration. The contract lane already names this shape, and two
634
+ * public names for one shape is a trap — a caller building a stop for a read and for an op
635
+ * would otherwise have to name it two things.
636
+ */
637
+ type TabStopWrite = ParagraphTabStop;
622
638
  /**
623
639
  * One authored property: an element name plus its `w:`-namespace attributes.
624
640
  *
625
641
  * Modeled as name+attributes rather than a typed record per property because that is what
626
642
  * the tree holds, so an op maps to nodes without a lossy intermediate vocabulary. Attribute
627
643
  * VALUES are validated as XML text; their meaning is the resolver's business.
628
- */
629
- /**
630
- * One property an op writes, as a name plus attributes.
631
644
  *
632
645
  * Deliberately structural rather than a typed union: the accepted property lists bound WHICH
633
646
  * properties may be written, so the shape itself does not need to enumerate them.
@@ -845,6 +858,29 @@ type TreeDocOp = {
845
858
  readonly paragraphId: string;
846
859
  readonly numId: string | null;
847
860
  readonly level?: number;
861
+ } | {
862
+ /**
863
+ * Replace a paragraph's custom tab stops, or clear them with an empty list.
864
+ *
865
+ * Its OWN op rather than a `w:tabs` entry in `setParagraphProperties`, because
866
+ * `OoxmlProperty` is flat and `w:tabs` carries its meaning in `w:tab` children — the
867
+ * same reason `setListNumbering` exists for `w:numPr`.
868
+ */
869
+ readonly op: 'setParagraphTabStops';
870
+ readonly paragraphId: string;
871
+ readonly stops: readonly TabStopWrite[];
872
+ /**
873
+ * Every stop position IN FORCE when the editor read the paragraph, including the
874
+ * ones a style supplied.
875
+ *
876
+ * Tab stops are read through the cascade and written at the paragraph level, so a
877
+ * replace alone cannot remove an inherited stop — the user clears a row, the style
878
+ * puts it straight back, and the command reports success. A position that was in
879
+ * force and is not in `stops` is suppressed with `w:val="clear"`, which is what the
880
+ * value exists for (§17.3.1.37). Omit when the caller has no cascade to speak of;
881
+ * the write is then a plain paragraph-level replace.
882
+ */
883
+ readonly inForcePositionsTwips?: readonly number[];
848
884
  } | {
849
885
  readonly op: 'splitParagraph';
850
886
  readonly paragraphId: string;
@@ -866,6 +902,14 @@ type TreeDocOp = {
866
902
  * offset produces an empty paragraph between the two boundaries — a blank line.
867
903
  */
868
904
  readonly offsets: readonly number[];
905
+ /**
906
+ * Propose the breaks rather than making them, exactly as the single split does.
907
+ *
908
+ * Every boundary is a paragraph mark this author is adding, so each paragraph that
909
+ * PRECEDES one carries `w:rPr/w:ins`. Without it a multi-line paste in suggesting mode
910
+ * tracked its text and not its breaks, and Reject left the extra paragraphs standing.
911
+ */
912
+ readonly revision?: RevisionAttributionInput;
869
913
  } | {
870
914
  readonly op: 'joinParagraphs';
871
915
  readonly firstId: string;
@@ -1253,7 +1297,7 @@ type TreeDocOp = {
1253
1297
  readonly paragraphId: string;
1254
1298
  readonly start: number;
1255
1299
  readonly end: number;
1256
- readonly type: InsertableContentControlType;
1300
+ readonly type: InsertableContentControlKind;
1257
1301
  readonly tag?: string;
1258
1302
  readonly alias?: string;
1259
1303
  readonly lock?: ContentControlLock;
@@ -1362,7 +1406,7 @@ type DrawingTreeDocOp = Extract<TreeDocOp, {
1362
1406
  /** Just the `op` discriminants, for dispatch tables and validation. */
1363
1407
  type TreeDocOpKind = TreeDocOp['op'];
1364
1408
  /** Every {@link TreeDocOpKind}, for validation and exhaustiveness checks. */
1365
- declare const TREE_DOC_OP_KINDS: readonly ["insertText", "deleteText", "setParagraphMarkRevision", "proposeParagraphMerge", "insertCommentMarker", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "insertTab", "insertHardBreak", "insertPageBreak", "insertPageField", "setListLevel", "setListNumbering", "setParagraphMarkProperties", "splitParagraph", "splitParagraphMany", "joinParagraphs", "setRunProperties", "setParagraphProperties", "setSectionProperties", "setSectionMark", "insertHyperlink", "setHyperlinkTarget", "removeHyperlink", "setContentControlValue", "removeContentControl", "insertInlineContentControl", "addRepeatingSectionItem", "removeRepeatingSectionItem", "deleteBlock", "insertTable", "insertTableRow", "deleteTableRow", "insertTableColumn", "deleteTableColumn", "setTableColumnWidths", "setTableRightEdgeWidth", "setTableRowHeight", "setTableCellBorders", "setTableCellFill", "setTableCellVerticalAlignment", "createHeaderFooter", "deleteHeaderFooter", "linkToPrevious", "unlinkFromPrevious", "setSectionFurnitureOptions", "insertNote", "deleteNote", "convertNote", "convertAllNotes", "setNoteProperties", "setContentControlProperties", "insertContentControl", "insertDrawing", "replaceDrawingResource", "deleteDrawing", "resizeDrawing", "cropDrawing", "positionDrawing", "setDrawingWrap", "setDrawingMetadata", "setDrawingLocks", "transformDrawing", "insertToc", "replaceTocResult", "rewriteTocPageNumbers"];
1409
+ declare const TREE_DOC_OP_KINDS: readonly ["insertText", "deleteText", "setParagraphMarkRevision", "proposeParagraphMerge", "insertCommentMarker", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "insertTab", "insertHardBreak", "insertPageBreak", "insertPageField", "setListLevel", "setListNumbering", "setParagraphTabStops", "setParagraphMarkProperties", "splitParagraph", "splitParagraphMany", "joinParagraphs", "setRunProperties", "setParagraphProperties", "setSectionProperties", "setSectionMark", "insertHyperlink", "setHyperlinkTarget", "removeHyperlink", "setContentControlValue", "removeContentControl", "insertInlineContentControl", "addRepeatingSectionItem", "removeRepeatingSectionItem", "deleteBlock", "insertTable", "insertTableRow", "deleteTableRow", "insertTableColumn", "deleteTableColumn", "setTableColumnWidths", "setTableRightEdgeWidth", "setTableRowHeight", "setTableCellBorders", "setTableCellFill", "setTableCellVerticalAlignment", "createHeaderFooter", "deleteHeaderFooter", "linkToPrevious", "unlinkFromPrevious", "setSectionFurnitureOptions", "insertNote", "deleteNote", "convertNote", "convertAllNotes", "setNoteProperties", "setContentControlProperties", "insertContentControl", "insertDrawing", "replaceDrawingResource", "deleteDrawing", "resizeDrawing", "cropDrawing", "positionDrawing", "setDrawingWrap", "setDrawingMetadata", "setDrawingLocks", "transformDrawing", "insertToc", "replaceTocResult", "rewriteTocPageNumbers"];
1366
1410
  /**
1367
1411
  * How far a committed op can reach, so layout can scope its work (task 5.2).
1368
1412
  *
@@ -1413,7 +1457,16 @@ interface TreeOpEffect {
1413
1457
  * `not-adjacent-siblings` is the notable one: a join across table cells is refused rather than
1414
1458
  * silently merging content out of the cell that owned it.
1415
1459
  */
1416
- type TreeOpRejection = 'unknown-op' | 'unknown-paragraph' | 'not-a-paragraph' | 'offset-out-of-range' | 'invalid-range' | 'not-a-list-paragraph' | 'splits-surrogate-pair' | 'invalid-text' | 'unsupported-property' | 'invalid-property-value' | 'not-adjacent-siblings' | 'unknown-block' | 'not-a-block' | 'block-required' | 'carries-section-mark'
1460
+ type TreeOpRejection = 'unknown-op' | 'unknown-paragraph' | 'not-a-paragraph' | 'offset-out-of-range' | 'invalid-range' | 'not-a-list-paragraph' | 'splits-surrogate-pair' | 'invalid-text' | 'unsupported-property' | 'invalid-property-value' | 'not-adjacent-siblings'
1461
+ /**
1462
+ * The addressed position is strictly inside content nothing can divide: a hyperlink, an
1463
+ * inline content control, a revision wrapper, or an atomic field.
1464
+ *
1465
+ * Distinct from `invalid-range`, which is an offset the paragraph does not have. This one is
1466
+ * a real offset that is not a PLACE — refused rather than resolved to the nearest one, so a
1467
+ * caller learns the node would not have landed where they asked.
1468
+ */
1469
+ | 'indivisible-content' | 'unknown-block' | 'not-a-block' | 'block-required' | 'carries-section-mark'
1417
1470
  /** The transaction named a part the package does not hold. */
1418
1471
  | 'unknown-part'
1419
1472
  /**
@@ -1488,4 +1541,4 @@ type TreeOpResult = {
1488
1541
  readonly detail?: string;
1489
1542
  };
1490
1543
 
1491
- export { contentControlTextOf as $, ACCEPTED_PARAGRAPH_PROPERTIES as A, type HyperlinkKind as B, type ContentControlKind as C, type DrawingProjection as D, type HyperlinkTarget as E, MAX_CONTENT_CONTROL_NESTING as F, OFFICE_RELATIONSHIP_NAMESPACE_URI as G, HYPERLINK_RELATIONSHIP_TYPE as H, type ImpactClass as I, type RelationshipTargetResolver as J, TABLE_BORDER_STYLES as K, TREE_DOC_OP_KINDS as L, MAX_CONTENT_CONTROLS_PER_PART as M, type TreeDocOpKind as N, type OoxmlProperty as O, type TreeOpEffect as P, allocateContentControlId as Q, type RevisionAddress as R, type SourceCrop as S, type TreeDocOp as T, contentControlContentChildren as U, type VectorShapeProjection as V, contentControlContentNodeOf as W, contentControlEndPropertiesNodeOf as X, contentControlLevelOf as Y, contentControlPropertiesNodeOf as Z, contentControlPropertiesOf as _, type TreeOpRejection as a, contentControlsIn as a0, findContentControl as a1, flattenContentControls as a2, hyperlinkAnchorOf as a3, hyperlinkRelationshipIdOf as a4, hyperlinkTargetOf as a5, isContentControlContentNode as a6, isContentControlNode as a7, isContentControlWrapper as a8, isHyperlinkNode as a9, lockForbidsEdit as aa, lockForbidsRemoval as ab, orderedContentControlProperties as ac, parseContentControlId as ad, projectDrawing as ae, resolveContentControlLock as af, type ImageWrapTarget as b, type DrawingKind as c, type DrawingPositionInput as d, type DrawingLocks as e, type DrawingHorizontalReferenceFrame as f, type DrawingVerticalReferenceFrame as g, type DrawingTreeDocOp as h, type TreeDocColorValue as i, IMAGE_WRAP_TARGETS as j, type DrawingAccessibility as k, type DrawingTransform as l, type TableBorderStyle as m, type ContentControlLevel as n, type ContentControlLock as o, type ContentControlDataBinding as p, type TreeOpResult as q, ACCEPTED_RUN_PROPERTIES as r, CONTENT_CONTROL_ID_MAX as s, CONTENT_CONTROL_PROPERTY_ORDER as t, type ContentControlCheckbox as u, type ContentControlCheckboxState as v, type ContentControlDateFormat as w, type ContentControlEntry as x, type ContentControlListItem as y, type ContentControlProperties as z };
1544
+ export { contentControlPropertiesOf as $, ACCEPTED_PARAGRAPH_PROPERTIES as A, type HyperlinkKind as B, type ContentControlKind as C, type DrawingProjection as D, type HyperlinkTarget as E, MAX_CONTENT_CONTROL_NESTING as F, OFFICE_RELATIONSHIP_NAMESPACE_URI as G, HYPERLINK_RELATIONSHIP_TYPE as H, type ImpactClass as I, type RelationshipTargetResolver as J, TABLE_BORDER_STYLES as K, TREE_DOC_OP_KINDS as L, MAX_CONTENT_CONTROLS_PER_PART as M, type TabStopWrite as N, type OoxmlProperty as O, type TreeDocOpKind as P, type TreeOpEffect as Q, type RevisionAddress as R, type SourceCrop as S, type TreeDocOp as T, allocateContentControlId as U, type VectorShapeProjection as V, contentControlContentChildren as W, contentControlContentNodeOf as X, contentControlEndPropertiesNodeOf as Y, contentControlLevelOf as Z, contentControlPropertiesNodeOf as _, type TreeOpRejection as a, contentControlTextOf as a0, contentControlsIn as a1, findContentControl as a2, flattenContentControls as a3, hyperlinkAnchorOf as a4, hyperlinkRelationshipIdOf as a5, hyperlinkTargetOf as a6, isContentControlContentNode as a7, isContentControlNode as a8, isContentControlWrapper as a9, isHyperlinkNode as aa, lockForbidsEdit as ab, lockForbidsRemoval as ac, orderedContentControlProperties as ad, parseContentControlId as ae, projectDrawing as af, resolveContentControlLock as ag, type ImageWrapTarget as b, type DrawingKind as c, type DrawingPositionInput as d, type DrawingLocks as e, type DrawingHorizontalReferenceFrame as f, type DrawingVerticalReferenceFrame as g, type DrawingTreeDocOp as h, type DrawingAccessibility as i, type DrawingTransform as j, type TableBorderStyle as k, type TreeDocColorValue as l, IMAGE_WRAP_TARGETS as m, type ContentControlLevel as n, type ContentControlLock as o, type ContentControlDataBinding as p, type TreeOpResult as q, ACCEPTED_RUN_PROPERTIES as r, CONTENT_CONTROL_ID_MAX as s, CONTENT_CONTROL_PROPERTY_ORDER as t, type ContentControlCheckbox as u, type ContentControlCheckboxState as v, type ContentControlDateFormat as w, type ContentControlEntry as x, type ContentControlListItem as y, type ContentControlProperties as z };