@docx-editor.dev/core 2.9.2 → 2.11.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 (140) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +14 -5
  3. package/dist/automation.d.ts +14 -5
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +78 -13
  7. package/dist/binding.d.ts +78 -13
  8. package/dist/binding.js +1 -1
  9. package/dist/chunk-34BNQUD4.js +10 -0
  10. package/dist/chunk-5AVHO75P.cjs +19 -0
  11. package/dist/chunk-6HMSC7UV.js +2 -0
  12. package/dist/chunk-6JIJOZDW.js +1 -0
  13. package/dist/chunk-76Y3Y45J.cjs +2 -0
  14. package/dist/chunk-BP7ANXGA.js +1 -0
  15. package/dist/chunk-BTQKU64Q.cjs +1 -0
  16. package/dist/chunk-CRZR6K5Z.js +19 -0
  17. package/dist/chunk-D5EHDHYV.js +1 -0
  18. package/dist/chunk-EJATEGJZ.cjs +1 -0
  19. package/dist/{chunk-PSZH2VXP.js → chunk-GOEBQ26R.js} +1 -1
  20. package/dist/chunk-GRDFEH5Q.cjs +2 -0
  21. package/dist/chunk-GWV65NQW.cjs +10 -0
  22. package/dist/chunk-GXLZCXEH.js +2 -0
  23. package/dist/chunk-JUQOPVSK.cjs +2 -0
  24. package/dist/chunk-LAETEBHD.js +1 -0
  25. package/dist/chunk-M6Z3KFXM.cjs +5 -0
  26. package/dist/{chunk-YMYCPY5Y.cjs → chunk-OHJQ7GPZ.cjs} +1 -1
  27. package/dist/chunk-UQFOYZJO.cjs +18 -0
  28. package/dist/chunk-WPQMPHNR.cjs +1 -0
  29. package/dist/chunk-WXQ245MQ.js +18 -0
  30. package/dist/chunk-WZHIFNSU.js +5 -0
  31. package/dist/chunk-X7A5XART.js +2 -0
  32. package/dist/chunk-ZKWRCLT2.cjs +1 -0
  33. package/dist/collaboration/replication.cjs +1 -0
  34. package/dist/collaboration/replication.d.cts +216 -0
  35. package/dist/collaboration/replication.d.ts +216 -0
  36. package/dist/collaboration/replication.js +1 -0
  37. package/dist/collaboration.cjs +1 -0
  38. package/dist/collaboration.d.cts +176 -0
  39. package/dist/collaboration.d.ts +176 -0
  40. package/dist/collaboration.js +1 -0
  41. package/dist/contracts/document.d.cts +6 -1
  42. package/dist/contracts/document.d.ts +6 -1
  43. package/dist/contracts/editor.cjs +1 -1
  44. package/dist/contracts/editor.d.cts +8 -9
  45. package/dist/contracts/editor.d.ts +8 -9
  46. package/dist/contracts/editor.js +1 -1
  47. package/dist/contracts/interaction.d.cts +8 -9
  48. package/dist/contracts/interaction.d.ts +8 -9
  49. package/dist/contracts/modules.cjs +1 -1
  50. package/dist/contracts/modules.d.cts +20 -8
  51. package/dist/contracts/modules.d.ts +20 -8
  52. package/dist/contracts/modules.js +1 -1
  53. package/dist/custom-node-writes-CwkYRw3V.d.cts +310 -0
  54. package/dist/custom-node-writes-JfTn-Sy6.d.ts +310 -0
  55. package/dist/document-properties-D6Ahr8D6.d.cts +28 -0
  56. package/dist/document-properties-D6Ahr8D6.d.ts +28 -0
  57. package/dist/{editor-Cvd7Geoc.d.ts → editor-BogcVHXk.d.ts} +176 -59
  58. package/dist/{editor-cAEf1uXW.d.cts → editor-C8edZgy5.d.cts} +176 -59
  59. package/dist/editor.cjs +1 -1
  60. package/dist/editor.css +1 -7698
  61. package/dist/editor.d.cts +26 -25
  62. package/dist/editor.d.ts +26 -25
  63. package/dist/editor.js +1 -1
  64. package/dist/failure-BnGjoXf0.d.cts +64 -0
  65. package/dist/failure-BnGjoXf0.d.ts +64 -0
  66. package/dist/{index-DRqY5JVF.d.ts → index-BNv-ZLQP.d.ts} +327 -86
  67. package/dist/{index-wb-iOxfh.d.cts → index-Dn0lOp9Z.d.cts} +327 -86
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.d.cts +20 -19
  70. package/dist/index.d.ts +20 -19
  71. package/dist/index.js +1 -1
  72. package/dist/layout.cjs +1 -1
  73. package/dist/layout.d.cts +92 -55
  74. package/dist/layout.d.ts +92 -55
  75. package/dist/layout.js +1 -1
  76. package/dist/{note-properties-jvnw_DGG.d.ts → note-properties-BmoSdyKS.d.ts} +1 -1
  77. package/dist/{note-properties-CQlxjic_.d.cts → note-properties-BvGfHk5e.d.cts} +1 -1
  78. package/dist/{omml-equation-Dd3mBep-.d.ts → omml-equation-Ciq5rgb7.d.ts} +1 -1
  79. package/dist/{omml-equation-BD-LsmWE.d.cts → omml-equation-CqQOt_dD.d.cts} +1 -1
  80. package/dist/output.cjs +1 -1
  81. package/dist/output.d.cts +6 -8
  82. package/dist/output.d.ts +6 -8
  83. package/dist/output.js +1 -1
  84. package/dist/{protocol-UuZOcOp7.d.cts → protocol-BB-WP3zk.d.cts} +2 -2
  85. package/dist/{protocol-C7ahrdUx.d.ts → protocol-Ckl7hWsv.d.ts} +2 -2
  86. package/dist/{review-items-bdGxFWNA.d.ts → review-items-BdeLNRi2.d.cts} +1 -2
  87. package/dist/{review-items-B8tffIXj.d.cts → review-items-CkYyXhXM.d.ts} +1 -2
  88. package/dist/{review-reads-Bxz03tHG.d.cts → review-reads-BOLSBm5w.d.cts} +2 -2
  89. package/dist/{review-reads-CHODU0LI.d.ts → review-reads-Crf0Xn42.d.ts} +2 -2
  90. package/dist/{revision-projection-CILpvv4M.d.ts → revision-projection-Ae2CWa8E.d.ts} +1 -1
  91. package/dist/{revision-projection-Cc4wz30g.d.cts → revision-projection-C2S8PSQm.d.cts} +1 -1
  92. package/dist/{semantic-cell-selection-BPzx6DdT.d.cts → semantic-cell-selection-C0OFD4D9.d.cts} +4 -4
  93. package/dist/{semantic-cell-selection-CsHcr-yk.d.ts → semantic-cell-selection-DdmoxC-y.d.ts} +4 -4
  94. package/dist/{semantic-interaction-D-RZ9Ust.d.ts → semantic-interaction-COyhZ9WH.d.ts} +21 -2
  95. package/dist/{semantic-interaction-BfWDD_0V.d.cts → semantic-interaction-Cs2jErnt.d.cts} +21 -2
  96. package/dist/{semantic-paint-WhVtSDJK.d.ts → semantic-paint-UHaj3sBY.d.cts} +2 -2
  97. package/dist/{semantic-paint-Bd7EqzXV.d.cts → semantic-paint-vA-oLSdV.d.ts} +2 -2
  98. package/dist/{semantic-records-DadVT_E1.d.cts → semantic-records-5AOQJmLX.d.cts} +20 -5
  99. package/dist/{semantic-records-DCt-ZwKU.d.ts → semantic-records-9xhwbJ23.d.ts} +20 -5
  100. package/dist/{shaped-measurer-CninrHr_.d.cts → shaped-measurer-NeF2mPSu.d.cts} +1 -1
  101. package/dist/{shaped-measurer-B9f4A7QA.d.ts → shaped-measurer-vzsY88oK.d.ts} +1 -1
  102. package/dist/store.cjs +1 -1
  103. package/dist/store.d.cts +193 -19
  104. package/dist/store.d.ts +193 -19
  105. package/dist/store.js +1 -1
  106. package/dist/tree-op-types-BPyXNxyL.d.cts +3053 -0
  107. package/dist/tree-op-types-DnzAOnc9.d.ts +3053 -0
  108. package/dist/{custom-node-writes-D6SGwebL.d.ts → tree-package-fragment-BjZ3RWAS.d.cts} +128 -312
  109. package/dist/{custom-node-writes-Dy3b20PS.d.cts → tree-package-fragment-CDER0G3B.d.ts} +128 -312
  110. package/dist/{tree-session-ZuBFOhIh.d.ts → tree-session-contract-BF2FVBOM.d.cts} +52 -106
  111. package/dist/{tree-session-Df02ajqc.d.cts → tree-session-contract-DhdsFT_z.d.ts} +52 -106
  112. package/dist/{tree-store-B_sJBMIS.d.cts → tree-store-CNZ3O83s.d.ts} +130 -25
  113. package/dist/{tree-store-DgETo6Mf.d.ts → tree-store-DfZi7FqY.d.cts} +130 -25
  114. package/package.json +14 -3
  115. package/dist/chunk-6JWP2H7K.js +0 -2
  116. package/dist/chunk-6KNLLEUW.cjs +0 -18
  117. package/dist/chunk-7ADTI533.cjs +0 -10
  118. package/dist/chunk-7ETDCPF6.cjs +0 -2
  119. package/dist/chunk-7I3BSGGS.js +0 -1
  120. package/dist/chunk-7UU5YFCD.cjs +0 -2
  121. package/dist/chunk-7VQ7YLW3.cjs +0 -1
  122. package/dist/chunk-CKDAK3MV.js +0 -10
  123. package/dist/chunk-DIMEYVNS.js +0 -2
  124. package/dist/chunk-GQQOL4PV.js +0 -1
  125. package/dist/chunk-H2656QDI.cjs +0 -1
  126. package/dist/chunk-KQGENNL5.cjs +0 -15
  127. package/dist/chunk-LIXPSV4T.js +0 -18
  128. package/dist/chunk-O4UULRAQ.cjs +0 -5
  129. package/dist/chunk-SIIFNE6U.js +0 -15
  130. package/dist/chunk-VXYECPKA.js +0 -5
  131. package/dist/hf-references-Dvk6De4Q.d.cts +0 -70
  132. package/dist/hf-references-z5Y4N1ab.d.ts +0 -70
  133. package/dist/image-resources-BgA9EQxY.d.ts +0 -203
  134. package/dist/image-resources-BiA-IXgo.d.cts +0 -203
  135. package/dist/note-nodes-BNCANoGN.d.ts +0 -108
  136. package/dist/note-nodes-DL-Au22P.d.cts +0 -108
  137. package/dist/ooxml-package-CdEy9ufK.d.cts +0 -1222
  138. package/dist/ooxml-package-CdEy9ufK.d.ts +0 -1222
  139. package/dist/tree-op-types-CnRb7AYo.d.ts +0 -1589
  140. package/dist/tree-op-types-D1vNJ7XC.d.cts +0 -1589
package/dist/store.d.cts CHANGED
@@ -1,18 +1,16 @@
1
- import { e as ResourceLimits } from './image-resources-BiA-IXgo.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-BiA-IXgo.cjs';
3
- import { O as OoxmlPart, a as OoxmlNode, u as OoxmlInvariantResult, c as OoxmlPackage, R as RelationshipRecord, b as OoxmlElement, v as OoxmlInvariantIssue, w as OoxmlHardBreakNode, d as OoxmlParagraphNode, x as OoxmlFldCharNode, y as OoxmlFldSimpleNode, z as OoxmlInstrTextNode, A as OoxmlAttribute } from './ooxml-package-CdEy9ufK.cjs';
4
- export { C as ContentTypeError, B as ContentTypeIndex, D as ContentTypeRecords, E as DEFAULT_OOXML_PACKAGE_LIMITS, F as DEFAULT_ZIP_LIMITS, G as DefaultRecord, I as IMAGE_RELATIONSHIP_TYPE, H as ImageRelationshipResolution, J as IndexResult, N as NameRejection, K as NameResult, L as OOXML_NODE_IDENTITY_RULES, M as OoxmlBodyNode, P as OoxmlBookmarkEndNode, Q as OoxmlBookmarkStartNode, S as OoxmlContentControlCalendarNode, T as OoxmlContentControlCheckboxNode, U as OoxmlContentControlCheckedNode, V as OoxmlContentControlCheckedStateNode, W as OoxmlContentControlComboBoxNode, q as OoxmlContentControlContentNode, X as OoxmlContentControlDataBindingNode, Y as OoxmlContentControlDateFormatNode, Z as OoxmlContentControlDateNode, _ as OoxmlContentControlDropDownListNode, s as OoxmlContentControlEndPropertiesNode, $ as OoxmlContentControlLidNode, a0 as OoxmlContentControlListItemNode, p as OoxmlContentControlNode, t as OoxmlContentControlPropertiesNode, a1 as OoxmlContentControlStoreMappedDataAsNode, a2 as OoxmlContentControlTextNode, a3 as OoxmlContentControlUncheckedStateNode, f as OoxmlContinuationSeparatorNode, a4 as OoxmlDocumentNode, g as OoxmlEndnotesNode, a5 as OoxmlExternalTarget, h as OoxmlFootnotesNode, m as OoxmlGenericElementNode, a6 as OoxmlGenericExtensionAttribute, a7 as OoxmlHyperlinkNode, a8 as OoxmlInvariantIssueCode, a9 as OoxmlKnownNodeAttribute, aa as OoxmlNamespaceBinding, l as OoxmlNodeId, ab as OoxmlNodeIdentityRules, e as OoxmlNoteNode, i as OoxmlNoteRefNode, j as OoxmlNoteReferenceNode, n as OoxmlPackageLimits, o as OoxmlPackageRejection, ac as OoxmlPackageResult, ad as OoxmlParagraphPropertiesNode, ae as OoxmlPartMetadata, af as OoxmlReadRejection, ag as OoxmlReadResult, ah as OoxmlRunNode, ai as OoxmlRunPropertiesNode, k as OoxmlSeparatorNode, aj as OoxmlTabNode, ak as OoxmlTextElementNode, al as OoxmlTextNode, am as OoxmlWmlValAttribute, an as OoxmlXmlSpaceAttribute, ao as OverrideRecord, ap as RelationshipError, aq as RelationshipSetResult, ar as ResolveResult, as as ResolvedRelationship, at as TargetMode, au as WML_NAMESPACE_URI, av as XMLNS_NAMESPACE_URI, aw as XML_NAMESPACE_URI, ax as XmlLimits, ay as XmlNode, az as XmlRejection, aA as XmlResult, aB as ZipLimits, aC as ZipReadResult, aD as ZipRejection, aE as asciiFold, aF as buildContentTypeIndex, aG as buildRelationshipSet, aH as childElements, aI as detectDuplicateNames, aJ as extensionKey, aK as findElement, aL as isContentRevisionKind, aM as isRangeMarkerKind, aN as isValidMime, aO as normalizePartName, aP as partNameKey, aQ as readOnOffChild, aR as readOoxmlPackage, aS as readOoxmlPart, aT as readXml, aU as readZip, aV as resolveContentType, aW as resolveImageRelationship, aX as resolveInternalTarget, aY as resolveRelationship, aZ as textContent, a_ as validateExternalTarget, a$ as withPart, b0 as writeOoxmlPackage, b1 as writeZip } from './ooxml-package-CdEy9ufK.cjs';
5
- 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-Dy3b20PS.cjs';
6
- export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, O as OmmlEquationProjection, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-BD-LsmWE.cjs';
7
- 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-Dvk6De4Q.cjs';
8
- export { L as LinkableReviewItem, c as collectFlowBlocks, f as collectReviewItems, a as commentBodyText, b as commentInitials, g as commentItemsOf, h as contentControlContentOf, j as deepParagraphOrderOfPart, i as isContentControl, e as isContentControlContent, l as linkRevisionReplies, p as paragraphOrderOfPart, r as revisionItemsOf, w as walkAllStoryParagraphs, k as walkParagraphInline, m as walkStoryBlocks } from './review-reads-Bxz03tHG.cjs';
9
- import { T as TreeDocOp, a as TreeOpRejection, r as TreeOpResult, O as OoxmlProperty, i as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-D1vNJ7XC.cjs';
10
- export { A as ACCEPTED_PARAGRAPH_PROPERTIES, s as ACCEPTED_RUN_PROPERTIES, t as CONTENT_CONTROL_ID_MAX, u as CONTENT_CONTROL_PROPERTY_ORDER, v as ContentControlCheckbox, w as ContentControlCheckboxState, q as ContentControlDataBinding, x as ContentControlDateFormat, y as ContentControlEntry, C as ContentControlKind, o as ContentControlLevel, z as ContentControlListItem, p as ContentControlLock, B as ContentControlProperties, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, H as HYPERLINK_RELATIONSHIP_TYPE, E as HyperlinkKind, F as HyperlinkTarget, k as IMAGE_WRAP_TARGETS, M as MAX_CONTENT_CONTROLS_PER_PART, G as MAX_CONTENT_CONTROL_NESTING, J as OFFICE_RELATIONSHIP_NAMESPACE_URI, K as RelationshipTargetResolver, R as RevisionAddress, S as SourceCrop, L as TABLE_BORDER_STYLES, N as TREE_DOC_OP_KINDS, P as TabStopWrite, n as TableBorderStyle, Q as TreeDocOpKind, U as TreeOpEffect, W as allocateContentControlId, X as contentControlContentChildren, Y as contentControlContentNodeOf, Z as contentControlEndPropertiesNodeOf, _ as contentControlLevelOf, $ as contentControlPropertiesNodeOf, a0 as contentControlPropertiesOf, a1 as contentControlTextOf, a2 as contentControlsIn, a3 as findContentControl, a4 as flattenContentControls, a5 as hyperlinkAnchorOf, a6 as hyperlinkRelationshipIdOf, a7 as hyperlinkTargetOf, a8 as isContentControlContentNode, a9 as isContentControlNode, aa as isContentControlWrapper, ab as isHyperlinkNode, ac as lockForbidsEdit, ad as lockForbidsRemoval, ae as orderedContentControlProperties, af as parseContentControlId, ag as projectDrawing, ah as resolveContentControlLock } from './tree-op-types-D1vNJ7XC.cjs';
11
- 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-DL-Au22P.cjs';
12
- export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, b as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, a as ResolvedEndnoteProperties, R as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-CQlxjic_.cjs';
13
- import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-B_sJBMIS.cjs';
14
- 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-B_sJBMIS.cjs';
15
- export { i as CommentAnchor, j as CommentPosition, C as CommentRecord, h as CommentThreadState, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, W as W15_NAMESPACE_URI, q as commentAnchorsOfStory, s as commentsOfPart, l as firstReviewRange, t as hasAnyComment, r as reviewItemKey, n as reviewItemRanges, u as threadStateOfPart } from './review-items-B8tffIXj.cjs';
1
+ import { a3 as ResourceLimits, O as OoxmlPart, a as OoxmlNode, a4 as OoxmlInvariantResult, b as OoxmlPackage, a5 as RelationshipRecord, g as OoxmlElement, a6 as OoxmlInvariantIssue, a7 as OoxmlHardBreakNode, j as OoxmlParagraphNode, a8 as OoxmlFldCharNode, a9 as OoxmlFldSimpleNode, aa as OoxmlInstrTextNode, ab as OoxmlAttribute, T as TreeDocOp, r as TreeOpRejection, ac as TreeOpResult, s as OoxmlProperty, F as DrawingTreeDocOp, I as ImpactClass, u as ImageWrapTarget } from './tree-op-types-BPyXNxyL.cjs';
2
+ export { ad as ACCEPTED_PARAGRAPH_PROPERTIES, ae as ACCEPTED_RUN_PROPERTIES, af as CONTENT_CONTROL_ID_MAX, ag as CONTENT_CONTROL_PROPERTY_ORDER, ah as ContentControlCheckbox, ai as ContentControlCheckboxState, a2 as ContentControlDataBinding, aj as ContentControlDateFormat, ak as ContentControlEntry, $ as ContentControlKind, a0 as ContentControlLevel, al as ContentControlListItem, a1 as ContentControlLock, am as ContentControlProperties, an as ContentTypeError, ao as ContentTypeIndex, ap as ContentTypeRecords, aq as CreateImageResourceCacheOptions, H as DEFAULT_IMAGE_RESOURCE_LIMITS, ar as DEFAULT_LIMITS, as as DEFAULT_OOXML_PACKAGE_LIMITS, at as DEFAULT_ZIP_LIMITS, au as DefaultRecord, D as DrawingKind, w as DrawingLocks, v as DrawingPositionInput, av as HARD_CEILINGS, aw as HYPERLINK_RELATIONSHIP_TYPE, ax as HyperlinkKind, ay as HyperlinkTarget, az as IMAGE_RELATIONSHIP_TYPE, aA as IMAGE_RESOURCE_HARD_CEILINGS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, aB as ImageRelationshipResolution, K as ImageResourceLimits, aC as ImageResourceLookup, x as ImageResourceState, aD as IndexResult, aE as MAX_CONTENT_CONTROLS_PER_PART, aF as MAX_CONTENT_CONTROL_NESTING, aG as MAX_SVG_SNIFF_BYTES, aH as NameRejection, aI as NameResult, aJ as OFFICE_RELATIONSHIP_NAMESPACE_URI, aK as OOXML_NODE_IDENTITY_RULES, aL as OoxmlBodyNode, aM as OoxmlBookmarkEndNode, aN as OoxmlBookmarkStartNode, aO as OoxmlContentControlCalendarNode, aP as OoxmlContentControlCheckboxNode, aQ as OoxmlContentControlCheckedNode, aR as OoxmlContentControlCheckedStateNode, aS as OoxmlContentControlComboBoxNode, i as OoxmlContentControlContentNode, aT as OoxmlContentControlDataBindingNode, aU as OoxmlContentControlDateFormatNode, aV as OoxmlContentControlDateNode, aW as OoxmlContentControlDropDownListNode, aX as OoxmlContentControlEndPropertiesNode, aY as OoxmlContentControlLidNode, aZ as OoxmlContentControlListItemNode, h as OoxmlContentControlNode, a_ as OoxmlContentControlPropertiesNode, a$ as OoxmlContentControlStoreMappedDataAsNode, b0 as OoxmlContentControlTextNode, b1 as OoxmlContentControlUncheckedStateNode, l as OoxmlContinuationSeparatorNode, b2 as OoxmlDocumentNode, m as OoxmlEndnotesNode, b3 as OoxmlExternalTarget, n as OoxmlFootnotesNode, d as OoxmlGenericElementNode, b4 as OoxmlGenericExtensionAttribute, b5 as OoxmlHyperlinkNode, b6 as OoxmlInvariantIssueCode, b7 as OoxmlKnownNodeAttribute, b8 as OoxmlNamespaceBinding, c as OoxmlNodeId, b9 as OoxmlNodeIdentityRules, k as OoxmlNoteNode, o as OoxmlNoteRefNode, p as OoxmlNoteReferenceNode, e as OoxmlPackageLimits, f as OoxmlPackageRejection, ba as OoxmlPackageResult, bb as OoxmlParagraphPropertiesNode, bc as OoxmlPartMetadata, bd as OoxmlReadRejection, be as OoxmlReadResult, bf as OoxmlRunNode, bg as OoxmlRunPropertiesNode, q as OoxmlSeparatorNode, bh as OoxmlTabNode, bi as OoxmlTextElementNode, bj as OoxmlTextNode, bk as OoxmlWmlValAttribute, bl as OoxmlXmlSpaceAttribute, bm as OverrideRecord, P as PreservedImageMime, bn as RelationshipError, bo as RelationshipSetResult, bp as RelationshipTargetResolver, bq as ResolveResult, br as ResolvedRelationship, R as RevisionAddress, S as SourceCrop, y as SupportedImageMime, bs as TABLE_BORDER_STYLES, bt as TREE_DOC_OP_KINDS, bu as TabStopWrite, _ as TableBorderStyle, bv as TargetMode, bw as TreeDocOpKind, bx as TreeOpEffect, by as ValidatedRasterHeader, bz as WML_NAMESPACE_URI, bA as XMLNS_NAMESPACE_URI, bB as XML_NAMESPACE_URI, bC as XmlLimits, bD as XmlNode, bE as XmlRejection, bF as XmlResult, bG as ZipLimits, bH as ZipReadResult, bI as ZipRejection, bJ as allocateContentControlId, bK as asciiFold, bL as buildContentTypeIndex, bM as buildRelationshipSet, bN as childElements, bO as contentControlContentChildren, bP as contentControlContentNodeOf, bQ as contentControlEndPropertiesNodeOf, bR as contentControlLevelOf, bS as contentControlPropertiesNodeOf, bT as contentControlPropertiesOf, bU as contentControlTextOf, bV as contentControlsIn, bW as createImageResourceCache, bX as detectDuplicateNames, bY as extensionKey, bZ as findContentControl, b_ as findElement, b$ as flattenContentControls, c0 as hasBoundedSvgRoot, c1 as hyperlinkAnchorOf, c2 as hyperlinkRelationshipIdOf, c3 as hyperlinkTargetOf, c4 as imageResourceLookupFor, c5 as isContentControlContentNode, c6 as isContentControlNode, c7 as isContentControlWrapper, c8 as isContentRevisionKind, c9 as isHyperlinkNode, ca as isRangeMarkerKind, cb as isValidMime, cc as liveDrawingReferenceCount, cd as lockForbidsEdit, ce as lockForbidsRemoval, cf as normalizePartName, cg as orderedContentControlProperties, ch as parseContentControlId, ci as partNameKey, cj as projectDrawing, ck as readOnOffChild, cl as readOoxmlPackage, cm as readOoxmlPart, cn as readXml, co as readZip, cp as resolveContentControlLock, cq as resolveContentType, cr as resolveImageRelationship, L as resolveImageResourceLimits, cs as resolveInternalTarget, ct as resolveLimits, cu as resolveRelationship, N as sniffImageMime, cv as textContent, cw as validateExternalTarget, cx as validateGifHeader, cy as validateJpegHeader, cz as validatePngHeader, Q as validateRasterHeader, cA as withPart, cB as writeOoxmlPackage, cC as writeZip } from './tree-op-types-BPyXNxyL.cjs';
3
+ import { T as TreePackageStore, S as StoryScope } from './tree-package-fragment-BjZ3RWAS.cjs';
4
+ export { C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, f as DrawingPropertyIdResult, F as FragmentPasteInput, e as FragmentPasteResult, g as HeaderFooterKind, h as HeaderFooterLifecycleImpact, i as HeaderFooterLifecycleOp, j as HeaderFooterLifecycleRejection, k as HeaderFooterLifecycleResult, b as HeaderFooterParts, c as HeaderFooterSectionResolution, l as HeaderFooterSlotMeta, H as HeaderFooterVariant, M as MAX_FRAGMENT_DECODED_BYTES, m as MAX_NOTE_REFERENCE_PARTS, n as MAX_NOTE_REFERENCE_SCAN, N as NoteDiagnostic, o as NoteDiagnosticCode, p as NoteLifecycleImpact, q as NoteLifecycleOp, r as NoteLifecycleOptions, s as NoteLifecycleRejection, t as NoteLifecycleResult, u as NoteReferenceHit, v as NoteReferenceScanBudget, P as PackageTransactResult, w as RemotePackageAttribution, x as StoryResolveResult, a as StoryTargetRejection, y as TreePackageStoreOptions, z as allocateDrawingPropertyId, B as applyFragmentPaste, E as applyHeaderFooterLifecycleOp, G as applyNoteLifecycleOp, J as cascadeDeletedNoteReferences, K as collectNoteReferences, L as collectPackageNoteReferences, O as collectSectionPropertyNodes, Q as createNoteReferenceScanBudget, U as diagnoseNoteReferences, V as isHeaderFooterLifecycleOp, W as isNoteLifecycleOp, X as normalNoteIds, Y as notesPartHasId, Z as resolveHeaderFooterParts, _ as resolveHeaderFooterPartsBySection, $ as resolveHeaderFooterResolutionBySection, a0 as resolveNotesPart, a1 as withBinaryPart, a2 as withEmbeddedImage, a3 as withoutUnreferencedImagePart } from './tree-package-fragment-BjZ3RWAS.cjs';
5
+ export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, O as OmmlEquationProjection, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-CqQOt_dD.cjs';
6
+ import { I as InsertCustomNodeWrite, C as CustomNodeWriteResult } from './custom-node-writes-CwkYRw3V.cjs';
7
+ export { b as BookmarkAnchor, B as BookmarkIndex, c as CustomNodePayloadRead, d as CustomNodePayloadWrite, a as CustomNodeSweepOutcome, e as CustomNodeSweepResult, f as CustomNodeWriteRejection, D as DocumentTrackingSettings, E as EmbeddedFont, F as FontStyleKey, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, g as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, N as NO_TRACKING_SETTINGS, R as ReadEmbeddedFontsOptions, h as buildBookmarkIndex, i as customNodePayloadsByControl, j as customNodePayloadsOf, k as deobfuscateFont, l as ensureListDefinition, m as ensureNumberingLevel, n as insertCustomNodeWrite, r as readEmbeddedFonts, o as readTrackingSettings, p as removeCustomNodeWrite, s as sweepCustomNodePayloads } from './custom-node-writes-CwkYRw3V.cjs';
8
+ export { L as LinkableReviewItem, c as collectFlowBlocks, f as collectReviewItems, a as commentBodyText, b as commentInitials, g as commentItemsOf, h as contentControlContentOf, j as deepParagraphOrderOfPart, i as isContentControl, e as isContentControlContent, l as linkRevisionReplies, p as paragraphOrderOfPart, r as revisionItemsOf, w as walkAllStoryParagraphs, k as walkParagraphInline, m as walkStoryBlocks } from './review-reads-BOLSBm5w.cjs';
9
+ import { T as TreeModelChange, a as TreeDocumentStore } from './tree-store-DfZi7FqY.cjs';
10
+ export { A as AtomicNoteSpan, M as MAX_NOTES_PER_PART, f as NOTE_ATOM_CHAR, g as NOTE_CONTINUATION_SEPARATOR_ID, h as NOTE_ID_MAX, i as NOTE_ID_MIN, j as NOTE_SEPARATOR_ID, N as NoteKind, k as NoteType, S as SelectionMark, l as TreeDocumentStoreOptions, c as TreeStoryRef, b as TreeTransactOptions, m as TreeTransactResult, d as TreeTransactionContext, o as allocateNoteId, p as atomicNoteSpansOf, q as customMarkFollows, r as findNoteById, s as formatNoteScopeId, t as isContinuationSeparatorNode, u as isEndnotesNode, v as isFootnotesNode, w as isNormalNote, x as isNoteAtomNode, y as isNoteNode, z as isNoteRefNode, B as isNoteReferenceNode, C as isSeparatorNode, D as noteAtomText, E as noteIdOf, F as noteKindOf, G as noteRefKindOf, H as noteReferenceKindOf, n as noteTypeOf, I as notesOf, J as parseNoteId, K as parseNoteScopeId } from './tree-store-DfZi7FqY.cjs';
11
+ export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, b as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, a as ResolvedEndnoteProperties, R as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-BvGfHk5e.cjs';
12
+ export { D as DocumentProperties } from './document-properties-D6Ahr8D6.cjs';
13
+ export { i as CommentAnchor, j as CommentPosition, C as CommentRecord, h as CommentThreadState, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, W as W15_NAMESPACE_URI, q as commentAnchorsOfStory, s as commentsOfPart, l as firstReviewRange, t as hasAnyComment, r as reviewItemKey, n as reviewItemRanges, u as threadStateOfPart } from './review-items-BdeLNRi2.cjs';
16
14
  import './contracts/types.cjs';
17
15
 
18
16
  /**
@@ -999,6 +997,20 @@ type OoxmlEditResult = {
999
997
  */
1000
998
  interface EditOptions {
1001
999
  readonly deferValidation?: boolean;
1000
+ /**
1001
+ * A shared minter for `@w:id` on a NEW revision, for the ops of one transaction.
1002
+ *
1003
+ * `nextRevisionId` walks the whole part to find the highest id in use, and a formatting
1004
+ * write emits one op per run — so a Select All + Bold in suggesting mode paid a
1005
+ * document-wide walk thousands of times over. The transaction hands its ops one minter
1006
+ * instead, and it is DROPPED the moment an op that can import foreign revision ids runs
1007
+ * (a paste carries its own), because a stale minter would hand out an id the document had
1008
+ * just started using — and two revisions sharing an address are one card in the pane.
1009
+ *
1010
+ * Absent means "mint your own": every applier falls back to its own walk, which is what a
1011
+ * caller outside a transaction gets.
1012
+ */
1013
+ readonly revisionIds?: () => string;
1002
1014
  }
1003
1015
  /** Every node id currently present in the part. */
1004
1016
  declare function collectNodeIds(part: OoxmlPart): Set<string>;
@@ -1292,8 +1304,13 @@ declare function buildTocContentControl(mint: () => string, entries: readonly To
1292
1304
  declare function tocEntryText(text: string): string;
1293
1305
  /**
1294
1306
  * Plan TOC entries from the outline and existing bookmarks.
1307
+ *
1308
+ * `actorId` is explicit because this planner runs BEFORE the store transaction, so the
1309
+ * ambient transaction actor is not bound. Callers that already have the collaboration
1310
+ * identity pass it here. `resolveAllocationActor` still honours a
1311
+ * `runWithTransactionActor` wrap when the caller prefers that seam.
1295
1312
  */
1296
- declare function planTocEntries(part: OoxmlPart, outline: readonly TocOutlineHeading[], instruction: TocInstruction, pageNumberByParagraphId: ReadonlyMap<string, string>, excludeParagraphIds: ReadonlySet<string>): {
1313
+ declare function planTocEntries(part: OoxmlPart, outline: readonly TocOutlineHeading[], instruction: TocInstruction, pageNumberByParagraphId: ReadonlyMap<string, string>, excludeParagraphIds: ReadonlySet<string>, actorId?: string): {
1297
1314
  readonly entries: readonly TocEntryPlan[];
1298
1315
  readonly bookmarksToCreate: readonly {
1299
1316
  paragraphId: string;
@@ -1988,6 +2005,71 @@ declare function applyTreeOp(part: OoxmlPart, op: TreeDocOp, options?: EditOptio
1988
2005
  /** Paragraph text as the ops address it, for tests and callers computing offsets. */
1989
2006
  declare function paragraphTextOf(part: OoxmlPart, paragraphId: string): string | null;
1990
2007
 
2008
+ /**
2009
+ * WHERE a copy reaches, computed by the editing surface against the published layout with
2010
+ * the same full-coverage predicate `planRangeDeletion` uses. Pure data: paragraph ids in
2011
+ * document order, edge offsets in the store's segment offset space, and the coverage sets.
2012
+ */
2013
+ interface FragmentCoverage {
2014
+ /** Story part the range lives in (`/word/document.xml` for the body). */
2015
+ readonly partName: string;
2016
+ /** Every paragraph the range touches, in document order, edges included. */
2017
+ readonly paragraphIds: readonly string[];
2018
+ /** Offset into the first paragraph where the range starts. */
2019
+ readonly startOffset: number;
2020
+ /** Offset into the last paragraph where the range ends. */
2021
+ readonly endOffset: number;
2022
+ /** Paragraphs the range covers mark-to-mark (the deletion planner's `covered`). */
2023
+ readonly coveredParagraphIds: readonly string[];
2024
+ /** Outermost tables and block SDTs whose every paragraph is covered. */
2025
+ readonly fullyCoveredBlockIds: readonly string[];
2026
+ /** True when the range reaches the last paragraph's far edge (its mark travels). */
2027
+ readonly lastMarkCovered: boolean;
2028
+ }
2029
+ type FragmentExtractRejection = 'unknown-part' | 'empty-range' | 'trim-refused' | 'resource-limit';
2030
+ type FragmentExtractResult = {
2031
+ readonly ok: true;
2032
+ /** The fragment package zip, readable by `readOoxmlPackage`. */
2033
+ readonly bytes: Uint8Array;
2034
+ /** Travels beside the zip (HTML attribute): whether the last paragraph mark is covered. */
2035
+ readonly lastMarkCovered: boolean;
2036
+ readonly blockCount: number;
2037
+ /** Total bytes of media carried, for the copy-side degrade tiers. */
2038
+ readonly mediaBytes: number;
2039
+ } | {
2040
+ readonly ok: false;
2041
+ readonly reason: FragmentExtractRejection;
2042
+ };
2043
+ /**
2044
+ * Extract the covered range into a fragment package zip.
2045
+ *
2046
+ * Pure over its inputs: the package and the coverage description. The blocks travel with
2047
+ * their dependency closure (styles, numbering, media, hyperlink rels, referenced note
2048
+ * bodies) and without headers/footers, `w:sectPr`, comments, settings, docDefaults (beyond
2049
+ * the materialized copy in the fragment styles part), or theme.
2050
+ */
2051
+ declare function extractFragmentPackage(pkg: OoxmlPackage, coverage: FragmentCoverage, options?: {
2052
+ /** Copy-side degrade tier 1: leave media behind; their drawings degrade away. */
2053
+ readonly omitMedia?: boolean;
2054
+ }): FragmentExtractResult;
2055
+
2056
+ type FragmentMergeRejection = 'no-fragment-document' | 'no-target-part' | 'merge-refused';
2057
+ type FragmentMergeResult = {
2058
+ readonly ok: true;
2059
+ readonly pkg: OoxmlPackage;
2060
+ /** The fragment blocks, rewritten to target identifiers, ready for `insertFragment`. */
2061
+ readonly blocks: readonly OoxmlNode[];
2062
+ } | {
2063
+ readonly ok: false;
2064
+ readonly reason: FragmentMergeRejection;
2065
+ };
2066
+ /**
2067
+ * Merge a fragment package's resources into `target` and rewrite the fragment blocks to
2068
+ * the target's identifiers. Pure: returns a new package; the caller commits it through
2069
+ * `ctx.applyPackage` beside the `insertFragment` op.
2070
+ */
2071
+ declare function mergeFragmentIntoPackage(target: OoxmlPackage, fragment: OoxmlPackage, ownerPartName: string): FragmentMergeResult;
2072
+
1991
2073
  /** Where a comment is anchored, in the model offset space of one story. */
1992
2074
  interface CommentAnchorRequest {
1993
2075
  readonly paragraphId: string;
@@ -2012,6 +2094,13 @@ interface AddCommentRequest {
2012
2094
  readonly text: string;
2013
2095
  /** The comment this replies to. Its thread link is written to `commentsExtended.xml`. */
2014
2096
  readonly replyToCommentId?: string;
2097
+ /**
2098
+ * Collaboration actor that mints `@w:id`. Absent keeps Word's dense solo sequence.
2099
+ *
2100
+ * Concurrent peers that both take "highest + 1" mint the same comment id, and the CRDT
2101
+ * then cross-links their anchors. The actor is the store transaction's `actorId`.
2102
+ */
2103
+ readonly actorId?: string;
2015
2104
  }
2016
2105
  /** The new comment's id and the story change, or the reason the write was refused. */
2017
2106
  type AddCommentResult = {
@@ -2087,6 +2176,73 @@ declare function commentPartNameOf(pkg: OoxmlPackage, storyPartName: string): st
2087
2176
  */
2088
2177
  declare function commentsExtendedPartNameOf(pkg: OoxmlPackage, storyPartName: string): string;
2089
2178
 
2179
+ /**
2180
+ * Add a comment on one story and publish the new package shell.
2181
+ *
2182
+ * The story store still performs the write. The package coordinator records the undo unit
2183
+ * and, when observed, the primitive journal.
2184
+ */
2185
+ declare function addPackageComment(packageStore: TreePackageStore, request: AddCommentRequest, scope?: StoryScope): AddCommentResult;
2186
+ /**
2187
+ * Resolve or reopen a comment thread and publish the new package shell.
2188
+ *
2189
+ * `@w15:done` lives in `commentsExtended.xml`, which a document with no reply does not have.
2190
+ * Capture must be armed for that create-part, or a peer keeps an open thread.
2191
+ */
2192
+ declare function setPackageCommentResolved(packageStore: TreePackageStore, commentId: string, resolved: boolean): SetCommentResolvedResult;
2193
+ /** One comment object in a delete batch: a root, or a reply naming its parent. */
2194
+ interface PackageCommentDelete {
2195
+ readonly commentId: string;
2196
+ readonly parentCommentId?: string;
2197
+ }
2198
+ /**
2199
+ * Delete comment threads or replies and install the rewritten package.
2200
+ *
2201
+ * Installed, not shell-replaced: `replacePackageShell` re-overlays every opened story
2202
+ * store, and a header the reader had entered would restore its markers after the body
2203
+ * had already dropped them.
2204
+ */
2205
+ declare function deletePackageComments(packageStore: TreePackageStore, comments: readonly PackageCommentDelete[], scope?: StoryScope, noteId?: number): boolean;
2206
+
2207
+ /**
2208
+ * Insert a custom node on one story and publish the new package shell.
2209
+ *
2210
+ * The store hangs off the main document part even when the control lands in a header:
2211
+ * Word enumerates data stores from that part and nowhere else.
2212
+ */
2213
+ declare function insertPackageCustomNode(packageStore: TreePackageStore, write: InsertCustomNodeWrite, scope?: StoryScope): CustomNodeWriteResult;
2214
+ /** Remove a custom node and the payload it bound, then publish the new package shell. */
2215
+ declare function removePackageCustomNode(packageStore: TreePackageStore, controlNodeId: string, scope?: StoryScope): CustomNodeWriteResult;
2216
+
2217
+ /**
2218
+ * Highest `w:comment/@w:id` in the part, so the next is seeded from the document.
2219
+ *
2220
+ * No actor keeps Word's dense "one past highest" sequence. An attached collaboration
2221
+ * actor takes the next unused id in its stripe, so two peers cannot mint the same
2222
+ * `@w:id` and then cross-link their anchors after sync.
2223
+ */
2224
+ declare function nextCommentId(part: OoxmlPart | undefined, actorId?: string): string;
2225
+
2226
+ /**
2227
+ * Which revision halves the reader is looking at.
2228
+ *
2229
+ * Structurally identical to layout's `RevisionDisplayMode`, and pinned equal to it by
2230
+ * `packages/core/src/layout/__tests__/revision-display-mode-parity.test.ts`. Redeclared
2231
+ * rather than imported because the `store` lane may import no other lane (see
2232
+ * `packages/core/src/__tests__/core-lane-graph.ts`), and the formatting walks live here so
2233
+ * that the automation lane — which has no layout at all — reaches them.
2234
+ */
2235
+ type FormattingDisplayMode = 'all-markup' | 'proposed' | 'original';
2236
+ /**
2237
+ * What the formatting lanes assume when nobody names a view.
2238
+ *
2239
+ * The RESOLVED result — Word's "No Markup" — because a caller with no view is a caller with
2240
+ * no reader: a headless automation host answers for the text that survives. It is not what a
2241
+ * mounted surface uses; that one names its own mode, and with the review module registered
2242
+ * the layout default is `all-markup`.
2243
+ */
2244
+ declare const DEFAULT_FORMATTING_DISPLAY_MODE: FormattingDisplayMode;
2245
+
2090
2246
  /** The D8 paragraph op vocabulary. */
2091
2247
  declare const AUTHORABLE_PARAGRAPH_PROPERTIES: ReadonlySet<string>;
2092
2248
  /** The D8 run op vocabulary, for `w:rPr` on a run and on the paragraph mark alike. */
@@ -2204,14 +2360,32 @@ declare function mergedParagraphMarkProperties(part: OoxmlPart, paragraphId: str
2204
2360
  * offset rather than by id because these edits apply in sequence and the applier splits runs at
2205
2361
  * the range edges; offsets are unmoved by a property write, ids are not.
2206
2362
  */
2207
- declare function runPropertyEdits(part: OoxmlPart, paragraphId: string, start: number, end: number, incoming: OoxmlProperty | readonly OoxmlProperty[]): readonly RunPropertyEdit[];
2363
+ declare function runPropertyEdits(part: OoxmlPart, paragraphId: string, start: number, end: number, incoming: OoxmlProperty | readonly OoxmlProperty[], displayMode?: FormattingDisplayMode): readonly RunPropertyEdit[];
2364
+ /**
2365
+ * The slices of `[start, end)` a formatting write may reach, coalesced, in document order.
2366
+ *
2367
+ * For the one write that does NOT split per run: the eraser states `properties: []` over a
2368
+ * whole range, and a single op there is right — clearing is the one change that legitimately
2369
+ * homogenises what it covers, since there is no bag to carry forward. But the applier derives
2370
+ * its run set from `segmentsOf`, which knows nothing about display modes, so one op over the
2371
+ * whole range reached hidden revision halves at the same offsets: erasing a visible selection
2372
+ * cleared a tracked deletion's `w:rPr` and — in suggesting mode — raised a review card for a
2373
+ * change nobody could see made.
2374
+ *
2375
+ * Slicing solves it without a per-run op: a hidden half is a GAP in the offset space between
2376
+ * two visible runs, so the ranges either side of it never coalesce across it.
2377
+ */
2378
+ declare function formattableRanges(part: OoxmlPart, paragraphId: string, start: number, end: number, displayMode?: FormattingDisplayMode): readonly {
2379
+ readonly start: number;
2380
+ readonly end: number;
2381
+ }[];
2208
2382
  /**
2209
2383
  * Every run that contributes at least one character of `[start, end)`, in document order.
2210
2384
  *
2211
2385
  * A COLLAPSED range answers the run it sits inside, which is what a caret reads. Callers that
2212
2386
  * want the empty answer for a collapsed range check the offsets themselves.
2213
2387
  */
2214
- declare function runsCovering(part: OoxmlPart, paragraphId: string, start: number, end: number): readonly OoxmlNode[];
2388
+ declare function runsCovering(part: OoxmlPart, paragraphId: string, start: number, end: number, displayMode?: FormattingDisplayMode): readonly OoxmlNode[];
2215
2389
 
2216
2390
  /** The `w:p` a node sits inside, and the model offset it starts at within that paragraph. */
2217
2391
  interface SiteLocation {
@@ -2307,4 +2481,4 @@ declare function wrapTargetToAnchorSpec(target: ImageWrapTarget): {
2307
2481
  /** Whether an op is one of the drawing ops. Narrows the type. */
2308
2482
  declare function isDrawingTreeDocOp(op: TreeDocOp): op is DrawingTreeDocOp;
2309
2483
 
2310
- 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, type Points, 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, TWIPS_PER_POINT, type TextMatchOptions, type TextOccurrence, type TextOccurrences, type TocEntryPlan, type TocInstruction, type TocOutlineHeading, type TransportPort, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, type Twips, 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, points, pointsToTwips, 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, twips, twipsToPoints, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
2484
+ 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, CustomNodeWriteResult, type CustomXmlDataPart, type CustomXmlDataPartResult, type CustomXmlNode, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_FORMATTING_DISPLAY_MODE, 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 FormattingDisplayMode, type FragmentCoverage, type FragmentExtractRejection, type FragmentExtractResult, type FragmentMergeRejection, type FragmentMergeResult, type HardBreakKind, type HrefProjection, ID_KINDS, INERT_EXECUTABLE_KINDS, type IdKind, type IdentityPort, type ImagePort, ImageWrapTarget, ImpactClass, type InertExecutableKind, type InlineControlSpan, InsertCustomNodeWrite, 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 PackageCommentDelete, type PackageInvariantCode, type PackageInvariantIssue, type PackageInvariantResult, type ParagraphDigest, type ParagraphIndexEntry, type ParagraphOffsetIndex, type PersistencePort, type Points, 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, StoryScope, 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, TWIPS_PER_POINT, type TextMatchOptions, type TextOccurrence, type TextOccurrences, type TocEntryPlan, type TocInstruction, type TocOutlineHeading, type TransportPort, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, TreePackageStore, type Twips, type ValidationResult, addComment, addPackageComment, 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, deletePackageComments, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, drawingOpImpact, endOperation, ensureHyperlinkRelationship, escapeCssString, escapeXml, extractFragmentPackage, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, formattableRanges, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, insertPackageCustomNode, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, locateSites, makeLimitCounter, mergeFragmentIntoPackage, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, nextCommentId, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, points, pointsToTwips, propertyContainer, readCustomXmlNode, readViewSettings, relationshipTargetIn, relationshipsOf, relsPartNameFor, removeNode, removePackageCustomNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, setPackageCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, toSafeRecord, tocEntryText, tocLeftIndentTwips, twips, twipsToPoints, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };