@docx-editor.dev/core 2.3.0 → 2.4.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 (98) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +2 -2
  3. package/dist/automation.d.ts +2 -2
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +7 -7
  7. package/dist/binding.d.ts +7 -7
  8. package/dist/binding.js +1 -1
  9. package/dist/chunk-33F6TRXO.js +2 -0
  10. package/dist/chunk-DQ5HGUWG.cjs +12 -0
  11. package/dist/chunk-EQO762XH.cjs +10 -0
  12. package/dist/chunk-F6WNPYOM.js +2 -0
  13. package/dist/chunk-FL4GWK76.js +12 -0
  14. package/dist/chunk-GOEBQ26R.js +1 -0
  15. package/dist/{chunk-Y2PX72HO.cjs → chunk-GWG5IVVX.cjs} +5 -5
  16. package/dist/chunk-IZIL6BAW.cjs +12 -0
  17. package/dist/chunk-LIJPSHRA.js +5 -0
  18. package/dist/{chunk-4CHEPYZV.cjs → chunk-MHDO6HLI.cjs} +1 -1
  19. package/dist/chunk-OHJQ7GPZ.cjs +1 -0
  20. package/dist/chunk-SG7OH2EK.js +12 -0
  21. package/dist/chunk-TCX3PVWR.js +10 -0
  22. package/dist/chunk-YMIMLEX4.cjs +1 -0
  23. package/dist/chunk-YTYKNA6X.cjs +2 -0
  24. package/dist/chunk-ZACHY6OS.js +1 -0
  25. package/dist/contracts/editor.cjs +1 -1
  26. package/dist/contracts/editor.d.cts +6 -6
  27. package/dist/contracts/editor.d.ts +6 -6
  28. package/dist/contracts/editor.js +1 -1
  29. package/dist/contracts/interaction.d.cts +6 -6
  30. package/dist/contracts/interaction.d.ts +6 -6
  31. package/dist/contracts/modules.d.cts +3 -3
  32. package/dist/contracts/modules.d.ts +3 -3
  33. package/dist/{custom-node-writes-ttKuYd0M.d.ts → custom-node-writes-BkMgMXxs.d.ts} +3 -3
  34. package/dist/{custom-node-writes-YqISlSRl.d.cts → custom-node-writes-C5YRoPcc.d.cts} +3 -3
  35. package/dist/{editor-C8oaTHr3.d.ts → editor-D1qHfzOt.d.ts} +12 -4
  36. package/dist/{editor-25RmHnxu.d.cts → editor-DYvC9CZs.d.cts} +12 -4
  37. package/dist/editor.cjs +1 -1
  38. package/dist/editor.css +2 -0
  39. package/dist/editor.d.cts +19 -19
  40. package/dist/editor.d.ts +19 -19
  41. package/dist/editor.js +1 -1
  42. package/dist/{image-resources-C_YnqPhn.d.ts → image-resources-BG9DLyW7.d.ts} +1 -1
  43. package/dist/{image-resources-DwpNnTg3.d.cts → image-resources-DXvPZvXD.d.cts} +1 -1
  44. package/dist/{index-C7hgxxtG.d.cts → index-Bb-QAg_f.d.cts} +11 -11
  45. package/dist/{index-DHX6HKd_.d.ts → index-DpY3WZuP.d.ts} +11 -11
  46. package/dist/index.cjs +1 -1
  47. package/dist/index.d.cts +13 -13
  48. package/dist/index.d.ts +13 -13
  49. package/dist/index.js +1 -1
  50. package/dist/layout.cjs +1 -1
  51. package/dist/layout.d.cts +25 -15
  52. package/dist/layout.d.ts +25 -15
  53. package/dist/layout.js +1 -1
  54. package/dist/output.cjs +1 -1
  55. package/dist/output.d.cts +4 -4
  56. package/dist/output.d.ts +4 -4
  57. package/dist/output.js +1 -1
  58. package/dist/{protocol-DAs0YOP3.d.cts → protocol-CD7slqvl.d.cts} +24 -4
  59. package/dist/{protocol-r6hje8Kf.d.ts → protocol-DsbfgBwA.d.ts} +24 -4
  60. package/dist/{review-reads-cgvJLJc2.d.ts → review-reads-CQmU9Lcl.d.ts} +1 -1
  61. package/dist/{review-reads-JBOmRH--.d.cts → review-reads-CxgN62yp.d.cts} +1 -1
  62. package/dist/{review-support-rsyGP5-9.d.cts → review-support-BJ-YjGmD.d.cts} +1 -1
  63. package/dist/{review-support-B9ykYpoZ.d.ts → review-support-DgXTIYBW.d.ts} +1 -1
  64. package/dist/{semantic-cell-selection-CI3loBKq.d.cts → semantic-cell-selection--ezfezTe.d.cts} +2 -2
  65. package/dist/{semantic-cell-selection-Cx8P64j2.d.ts → semantic-cell-selection-DZtyMXkH.d.ts} +2 -2
  66. package/dist/{semantic-interaction-unGpRNCk.d.ts → semantic-interaction-2yxdv7q0.d.cts} +5 -37
  67. package/dist/{semantic-interaction-B4HrJFQ2.d.cts → semantic-interaction-DrgbgKg6.d.ts} +5 -37
  68. package/dist/{semantic-paint-DdGGra4m.d.cts → semantic-paint-BYjE0Xbl.d.cts} +2 -2
  69. package/dist/{semantic-paint-BBNaqr1s.d.ts → semantic-paint-BedBxkyY.d.ts} +2 -2
  70. package/dist/{semantic-records-BC4bIKKL.d.ts → semantic-records-CR5hTqMK.d.ts} +2 -2
  71. package/dist/{semantic-records-DC6V1U3T.d.cts → semantic-records-DSD8WENa.d.cts} +2 -2
  72. package/dist/{shaped-measurer-ChSWkuAT.d.ts → shaped-measurer-BL8g4AcW.d.ts} +1 -1
  73. package/dist/{shaped-measurer-SIqZp-Ty.d.cts → shaped-measurer-CBOTJTV_.d.cts} +1 -1
  74. package/dist/store.cjs +1 -1
  75. package/dist/store.d.cts +30 -31
  76. package/dist/store.d.ts +30 -31
  77. package/dist/store.js +1 -1
  78. package/dist/{tree-op-types-DWLCllG7.d.ts → tree-op-types-8a6xyRCN.d.ts} +6 -1
  79. package/dist/{tree-op-types-UOXlRUqQ.d.cts → tree-op-types-EZXbR8bW.d.cts} +6 -1
  80. package/dist/{tree-session-ZpXtFxlP.d.cts → tree-session-DrMm8Cj2.d.cts} +5 -5
  81. package/dist/{tree-session-COduYhKr.d.ts → tree-session-SucW0znF.d.ts} +5 -5
  82. package/dist/{tree-store-BscFPB7x.d.ts → tree-store-BoM6eXaL.d.ts} +1 -1
  83. package/dist/{tree-store-B1lEkdXc.d.cts → tree-store-UYrGKF_Q.d.cts} +1 -1
  84. package/package.json +2 -2
  85. package/dist/chunk-2AOXVZU7.js +0 -1
  86. package/dist/chunk-7JUQEZU4.js +0 -12
  87. package/dist/chunk-BEV535XW.cjs +0 -10
  88. package/dist/chunk-EBIEBTAG.js +0 -5
  89. package/dist/chunk-GRGRIDHF.js +0 -1
  90. package/dist/chunk-IHAFYLLQ.cjs +0 -12
  91. package/dist/chunk-K6FOU3RO.cjs +0 -12
  92. package/dist/chunk-MIUELYVA.cjs +0 -1
  93. package/dist/chunk-OUKRZ43D.js +0 -2
  94. package/dist/chunk-P2NVDXSG.cjs +0 -1
  95. package/dist/chunk-PYRPB22X.cjs +0 -2
  96. package/dist/chunk-R6BMB6RM.js +0 -10
  97. package/dist/chunk-XNMXQWNA.js +0 -12
  98. package/dist/chunk-YNO4ITHS.js +0 -2
package/dist/store.d.cts CHANGED
@@ -1,18 +1,18 @@
1
- import { e as ResourceLimits } from './image-resources-DwpNnTg3.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-DwpNnTg3.cjs';
1
+ import { e as ResourceLimits } from './image-resources-DXvPZvXD.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-DXvPZvXD.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-YqISlSRl.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-C5YRoPcc.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, m as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-UOXlRUqQ.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, i 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, l 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-UOXlRUqQ.cjs';
10
+ import { T as TreeDocOp, a as TreeOpRejection, q as TreeOpResult, O as OoxmlProperty, m as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-EZXbR8bW.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, i 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, l 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-EZXbR8bW.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-JBOmRH--.cjs';
14
- import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-B1lEkdXc.cjs';
15
- export { S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-B1lEkdXc.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-CxgN62yp.cjs';
14
+ import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-UYrGKF_Q.cjs';
15
+ export { S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-UYrGKF_Q.cjs';
16
16
 
17
17
  /**
18
18
  * Every kind of thing the registry gives a stable identity to.
@@ -1468,11 +1468,9 @@ declare function relationshipTargetIn(pkg: OoxmlPackage, ownerPart: string, rela
1468
1468
  } | null;
1469
1469
 
1470
1470
  /**
1471
- * Which story a comment deletion may strip markers from.
1471
+ * Which story a comment deletion or resolution may read markers from.
1472
1472
  *
1473
- * `w:id` is not unique across stories: a header and the body can both hold comment 1, and a
1474
- * notes part holds many notes. The handle names one story; deletion must not follow the bare id
1475
- * into a neighbour.
1473
+ * `w:id` is not unique across stories: a header and the body can both hold comment 1.
1476
1474
  */
1477
1475
  interface CommentDeletionOwner {
1478
1476
  /** Canonical name of the part holding the story's markers. */
@@ -1483,6 +1481,7 @@ interface CommentDeletionOwner {
1483
1481
  */
1484
1482
  readonly noteId?: number;
1485
1483
  }
1484
+
1486
1485
  /**
1487
1486
  * Delete a comment thread: that story's markers, and metadata no other story still names.
1488
1487
  *
@@ -1863,6 +1862,19 @@ declare function inlineControlEndingAt(paragraph: OoxmlParagraphNode, offset: nu
1863
1862
  /** The forward-delete mirror: the control whose content STARTS exactly at `offset`. */
1864
1863
  declare function inlineControlStartingAt(paragraph: OoxmlParagraphNode, offset: number): InlineControlSpan | null;
1865
1864
 
1865
+ interface RevisionSite {
1866
+ readonly node: OoxmlElement;
1867
+ readonly parent: OoxmlElement | null;
1868
+ /** True when this site cannot be resolved and the whole op must refuse. */
1869
+ readonly refused: boolean;
1870
+ /** True for `w:pPr/w:rPr/w:ins|w:del` — the paragraph MARK, not content. */
1871
+ readonly paragraphMark: boolean;
1872
+ /** True for `w:rPrChange` / `w:pPrChange`. */
1873
+ readonly propertyChange: boolean;
1874
+ }
1875
+ /** Every revision-bearing element in the part. */
1876
+ declare function collectRevisionSites(part: OoxmlPart): RevisionSite[];
1877
+
1866
1878
  /** Structural validation, run before any tree work so a rejection changes nothing. */
1867
1879
  declare function validateTreeOp(part: OoxmlPart, op: TreeDocOp): TreeOpRejection | null;
1868
1880
 
@@ -1944,6 +1956,7 @@ type SetCommentResolvedResult = {
1944
1956
  readonly ok: false;
1945
1957
  readonly reason: TreeOpRejection | 'unknown-comment';
1946
1958
  };
1959
+
1947
1960
  /**
1948
1961
  * Mark a comment thread resolved, or reopen it.
1949
1962
  *
@@ -1951,6 +1964,11 @@ type SetCommentResolvedResult = {
1951
1964
  * the comment they answer. Resolving only the parent would leave a file whose reply still reads as
1952
1965
  * open under a closed remark — a state Word does not produce and no reader would draw sensibly.
1953
1966
  *
1967
+ * The thread is the bounded, relationship-scoped index {@link indexCommentThread}: nested
1968
+ * `@w15:paraIdParent` and `@w16cid:parentId` descendants, plus coincident-anchor replies the
1969
+ * review reader already treats as a thread. Truncation, duplicate records, or conflicting
1970
+ * metadata refuse before any package write.
1971
+ *
1954
1972
  * `@w15:done` lives in `commentsExtended.xml`, which many documents do not have: a file with no
1955
1973
  * reply has no thread state to record. So the part is created when it is missing, exactly as
1956
1974
  * {@link addComment} creates it, and every comment being resolved gets an entry — a comment with
@@ -2066,25 +2084,6 @@ declare function runPropertyEdits(part: OoxmlPart, paragraphId: string, start: n
2066
2084
  */
2067
2085
  declare function runsCovering(part: OoxmlPart, paragraphId: string, start: number, end: number): readonly OoxmlNode[];
2068
2086
 
2069
- interface RevisionSite {
2070
- readonly node: OoxmlElement;
2071
- readonly parent: OoxmlElement | null;
2072
- /** True when this site cannot be resolved and the whole op must refuse. */
2073
- readonly refused: boolean;
2074
- /** True for `w:pPr/w:rPr/w:ins|w:del` — the paragraph MARK, not content. */
2075
- readonly paragraphMark: boolean;
2076
- /** True for `w:rPrChange` / `w:pPrChange`. */
2077
- readonly propertyChange: boolean;
2078
- }
2079
- /**
2080
- * Every revision-bearing element in the part, with the classification that decides whether it
2081
- * can be resolved.
2082
- *
2083
- * One walk, so accept-all does not pay a traversal per revision — and paragraphs the last
2084
- * commit did not touch are answered from {@link paragraphSitesCache} rather than re-walked.
2085
- */
2086
- declare function collectRevisionSites(part: OoxmlPart): RevisionSite[];
2087
-
2088
2087
  /** The `w:p` a node sits inside, and the model offset it starts at within that paragraph. */
2089
2088
  interface SiteLocation {
2090
2089
  readonly paragraphId: string;
package/dist/store.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { e as ResourceLimits } from './image-resources-C_YnqPhn.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-C_YnqPhn.js';
1
+ import { e as ResourceLimits } from './image-resources-BG9DLyW7.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-BG9DLyW7.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-ttKuYd0M.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-BkMgMXxs.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, m as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-DWLCllG7.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, i 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, l 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-DWLCllG7.js';
10
+ import { T as TreeDocOp, a as TreeOpRejection, q as TreeOpResult, O as OoxmlProperty, m as DrawingTreeDocOp, I as ImpactClass, b as ImageWrapTarget } from './tree-op-types-8a6xyRCN.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, i 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, l 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-8a6xyRCN.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-cgvJLJc2.js';
14
- import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-BscFPB7x.js';
15
- export { S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-BscFPB7x.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-CQmU9Lcl.js';
14
+ import { T as TreeModelChange, b as TreeDocumentStore } from './tree-store-BoM6eXaL.js';
15
+ export { S as SelectionMark, f as TreeDocumentStoreOptions, a as TreeStoryRef, d as TreeTransactOptions, g as TreeTransactResult, c as TreeTransactionContext } from './tree-store-BoM6eXaL.js';
16
16
 
17
17
  /**
18
18
  * Every kind of thing the registry gives a stable identity to.
@@ -1468,11 +1468,9 @@ declare function relationshipTargetIn(pkg: OoxmlPackage, ownerPart: string, rela
1468
1468
  } | null;
1469
1469
 
1470
1470
  /**
1471
- * Which story a comment deletion may strip markers from.
1471
+ * Which story a comment deletion or resolution may read markers from.
1472
1472
  *
1473
- * `w:id` is not unique across stories: a header and the body can both hold comment 1, and a
1474
- * notes part holds many notes. The handle names one story; deletion must not follow the bare id
1475
- * into a neighbour.
1473
+ * `w:id` is not unique across stories: a header and the body can both hold comment 1.
1476
1474
  */
1477
1475
  interface CommentDeletionOwner {
1478
1476
  /** Canonical name of the part holding the story's markers. */
@@ -1483,6 +1481,7 @@ interface CommentDeletionOwner {
1483
1481
  */
1484
1482
  readonly noteId?: number;
1485
1483
  }
1484
+
1486
1485
  /**
1487
1486
  * Delete a comment thread: that story's markers, and metadata no other story still names.
1488
1487
  *
@@ -1863,6 +1862,19 @@ declare function inlineControlEndingAt(paragraph: OoxmlParagraphNode, offset: nu
1863
1862
  /** The forward-delete mirror: the control whose content STARTS exactly at `offset`. */
1864
1863
  declare function inlineControlStartingAt(paragraph: OoxmlParagraphNode, offset: number): InlineControlSpan | null;
1865
1864
 
1865
+ interface RevisionSite {
1866
+ readonly node: OoxmlElement;
1867
+ readonly parent: OoxmlElement | null;
1868
+ /** True when this site cannot be resolved and the whole op must refuse. */
1869
+ readonly refused: boolean;
1870
+ /** True for `w:pPr/w:rPr/w:ins|w:del` — the paragraph MARK, not content. */
1871
+ readonly paragraphMark: boolean;
1872
+ /** True for `w:rPrChange` / `w:pPrChange`. */
1873
+ readonly propertyChange: boolean;
1874
+ }
1875
+ /** Every revision-bearing element in the part. */
1876
+ declare function collectRevisionSites(part: OoxmlPart): RevisionSite[];
1877
+
1866
1878
  /** Structural validation, run before any tree work so a rejection changes nothing. */
1867
1879
  declare function validateTreeOp(part: OoxmlPart, op: TreeDocOp): TreeOpRejection | null;
1868
1880
 
@@ -1944,6 +1956,7 @@ type SetCommentResolvedResult = {
1944
1956
  readonly ok: false;
1945
1957
  readonly reason: TreeOpRejection | 'unknown-comment';
1946
1958
  };
1959
+
1947
1960
  /**
1948
1961
  * Mark a comment thread resolved, or reopen it.
1949
1962
  *
@@ -1951,6 +1964,11 @@ type SetCommentResolvedResult = {
1951
1964
  * the comment they answer. Resolving only the parent would leave a file whose reply still reads as
1952
1965
  * open under a closed remark — a state Word does not produce and no reader would draw sensibly.
1953
1966
  *
1967
+ * The thread is the bounded, relationship-scoped index {@link indexCommentThread}: nested
1968
+ * `@w15:paraIdParent` and `@w16cid:parentId` descendants, plus coincident-anchor replies the
1969
+ * review reader already treats as a thread. Truncation, duplicate records, or conflicting
1970
+ * metadata refuse before any package write.
1971
+ *
1954
1972
  * `@w15:done` lives in `commentsExtended.xml`, which many documents do not have: a file with no
1955
1973
  * reply has no thread state to record. So the part is created when it is missing, exactly as
1956
1974
  * {@link addComment} creates it, and every comment being resolved gets an entry — a comment with
@@ -2066,25 +2084,6 @@ declare function runPropertyEdits(part: OoxmlPart, paragraphId: string, start: n
2066
2084
  */
2067
2085
  declare function runsCovering(part: OoxmlPart, paragraphId: string, start: number, end: number): readonly OoxmlNode[];
2068
2086
 
2069
- interface RevisionSite {
2070
- readonly node: OoxmlElement;
2071
- readonly parent: OoxmlElement | null;
2072
- /** True when this site cannot be resolved and the whole op must refuse. */
2073
- readonly refused: boolean;
2074
- /** True for `w:pPr/w:rPr/w:ins|w:del` — the paragraph MARK, not content. */
2075
- readonly paragraphMark: boolean;
2076
- /** True for `w:rPrChange` / `w:pPrChange`. */
2077
- readonly propertyChange: boolean;
2078
- }
2079
- /**
2080
- * Every revision-bearing element in the part, with the classification that decides whether it
2081
- * can be resolved.
2082
- *
2083
- * One walk, so accept-all does not pay a traversal per revision — and paragraphs the last
2084
- * commit did not touch are answered from {@link paragraphSitesCache} rather than re-walked.
2085
- */
2086
- declare function collectRevisionSites(part: OoxmlPart): RevisionSite[];
2087
-
2088
2087
  /** The `w:p` a node sits inside, and the model offset it starts at within that paragraph. */
2089
2088
  interface SiteLocation {
2090
2089
  readonly paragraphId: string;
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,R as withExportedCustomNodes}from'./chunk-YNO4ITHS.js';export{gf as ACCEPTED_PARAGRAPH_PROPERTIES,ff as ACCEPTED_RUN_PROPERTIES,y as ALL_FROZEN_IDS,Vf as AUTHORABLE_PARAGRAPH_PROPERTIES,Wf as AUTHORABLE_RUN_PROPERTIES,G as BoundedCounter,t as CANONICAL_MUTATION_ORIGINS,ce as CONTENT_CONTROL_ID_MAX,ue as CONTENT_CONTROL_PROPERTY_ORDER,$e as CUSTOM_NODE_XPATH_PREFIX,Me as CUSTOM_XML_PROPS_REL,Ne as CUSTOM_XML_PROPS_TYPE,Le as CUSTOM_XML_REL,P as DANGEROUS_KEYS,Oe as DATASTORE_NAMESPACE_URI,xd as DEFAULT_ENDNOTE_PROPERTIES,wd as DEFAULT_FOOTNOTE_PROPERTIES,D as DEFAULT_IMAGE_RESOURCE_LIMITS,A as DEFAULT_LIMITS,Df as DEFAULT_MAX_EDITABLE_STORY_PARTS,vb as DEFAULT_OOXML_PACKAGE_LIMITS,La as DEFAULT_ZIP_LIMITS,x as DEPENDENCY_KEY_IDS,Q as DangerousKeyError,_b as FIELD_ATOM_CHAR,z as HARD_CEILINGS,Pa as HYPERLINK_RELATIONSHIP_TYPE,L as IMAGE_RELATIONSHIP_TYPE,C as IMAGE_RESOURCE_HARD_CEILINGS,Wa as IMAGE_WRAP_TARGETS,Z as INERT_EXECUTABLE_KINDS,F as LimitExceededError,be as MAX_CONTENT_CONTROLS_PER_PART,ae as MAX_CONTENT_CONTROL_NESTING,Pf as MAX_CUSTOM_NODE_LABEL_LENGTH,Of as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,sd as MAX_NOTES_PER_PART,Rd as MAX_NOTE_REFERENCE_PARTS,Qd as MAX_NOTE_REFERENCE_SCAN,xe as MAX_STORY_SDT_NESTING,gb as MAX_SVG_SNIFF_BYTES,u as NON_CANONICAL_ORIGINS,Vc as NOTE_ATOM_CHAR,Zc as NOTE_CONTINUATION_SEPARATOR_ID,Xc as NOTE_ID_MAX,Wc as NOTE_ID_MIN,Yc as NOTE_SEPARATOR_ID,Oa as OFFICE_RELATIONSHIP_NAMESPACE_URI,za as OOXML_NODE_IDENTITY_RULES,s as ORIGIN_IDS,Vb as PAGE_BREAK_CHAR,ja as PrefixAllocator,v as RESULT_IDS,w as RUNTIME_PORT_IDS,sg as SEARCH_MATCH_LIMIT,rg as SEARCH_QUERY_MAX,nf as TABLE_BORDER_STYLES,yc as TOC_LEVEL_INDENT_TWIPS,rc as TOC_MAX_BOOKMARKS_PER_REFRESH,qc as TOC_MAX_ENTRIES,sc as TOC_MAX_FIELD_NESTING,pc as TOC_MAX_INSTRUCTION_CHARS,tc as TOC_MAX_PAGE_PASSES,hf as TREE_DOC_OP_KINDS,Cf as TreeDocumentStore,Ef as TreePackageStore,Ce as W15_NAMESPACE_URI,la as WML_NAMESPACE_URI,na as XMLNS_NAMESPACE_URI,ma as XML_NAMESPACE_URI,Jf as addComment,we as allocateContentControlId,rb as allocateDrawingPropertyId,td as allocateNoteId,Ka as applyEdits,Uc as applyHeaderFooterLifecycleOp,_d as applyNoteLifecycleOp,yf as applyTreeOp,n as asciiFold,ia as assertValidQName,nc as atomicFieldSpansOf,rd as atomicNoteSpansOf,Qc as authorableHyperlinkTarget,Dd as authoredDocumentEndnoteProperties,Cd as authoredDocumentFootnoteProperties,Ad as authoredEndnotePropertiesFromSectPr,zd as authoredFootnotePropertiesFromSectPr,Zf as authoredProperties,ze as bodyStoryRoot,Ec as bookmarkPairNodes,df as boundCustomXmlNodeIdOf,bf as boundCustomXmlNodeIds,cf as boundCustomXmlNodeIdsInPackage,xc as buildBookmarkIndex,J as buildContentTypeIndex,M as buildRelationshipSet,Bc as buildTocContentControl,Ac as buildTocEntryParagraph,wa as canonicalOoxmlFingerprint,$d as cascadeDeletedNoteReferences,Ke as cascadeEmptiedComments,ea as childElements,Nb as collectFlowBlocks,Ba as collectNodeIds,Ud as collectNoteReferences,Vd as collectPackageNoteReferences,lg as collectReviewItems,ef as collectRevisionSites,Rb as collectSectionPropertyNodes,Be as collectStoryParagraphs,De as commentAnchorsOfStory,hg as commentBodyText,ig as commentInitials,kg as commentItemsOf,Mf as commentPartNameOf,Nf as commentsExtendedPartNameOf,Ee as commentsOfPart,Y as containsCssFetch,ge as contentControlContentChildren,ke as contentControlContentNodeOf,Lb as contentControlContentOf,je as contentControlEndPropertiesNodeOf,ne as contentControlLevelOf,ie as contentControlPropertiesNodeOf,me as contentControlPropertiesOf,qe as contentControlTextOf,oe as contentControlsIn,zb as contentTypesPartBytes,qb as createImageResourceCache,Ca as createNodeIdAllocator,Sd as createNoteReferenceScanBudget,od as customMarkFollows,af as customNodeBinding,Tf as customNodePayloadsByControl,Uf as customNodePayloadsOf,Qe as customXmlDataParts,Ze as customXmlLabelXPath,Ue as customXmlNodes,_e as customXmlPrefixMappings,Pe as datastoreItemIdFor,og as deepParagraphOrderOfPart,He as deleteCommentThread,Hc as deriveOoxmlIndexes,vc as detectBodyTocs,p as detectDuplicateNames,Wd as diagnoseNoteReferences,$f as directParagraphMarkProperties,_f as directParagraphProperties,uf as drawingOpImpact,Rc as ensureHyperlinkRelationship,X as escapeCssString,V as escapeXml,I as extensionKey,jc as fieldAtomText,ic as fieldOnOffAttribute,pe as findContentControl,Re as findCustomXmlDataPart,wc as findDetectedToc,da as findElement,Ea as findNode,vd as findNoteById,wg as findOccurrences,qg as firstReviewRange,he as flattenContentControls,$b as fldCharType,hc as fldSimpleInstr,Kc as fnv1a32,tg as foldCase,$c as formatNoteScopeId,cg as formatOwnedRunIds,Zb as hardBreakAttributes,Wb as hardBreakKind,Yb as hardBreakText,Ge as hasAnyComment,hb as hasBoundedSvgRoot,Lf as hasCommentPart,lc as hasLegacyFormFieldData,Da as hasNode,Ra as hyperlinkAnchorOf,Sa as hyperlinkRelationshipIdOf,Ta as hyperlinkTargetOf,pb as imageResourceLookupFor,Fc as indexStyles,Od as inlineControlEndingAt,Pd as inlineControlStartingAt,Ha as insertChildren,Qf as insertCustomNodeWrite,gc as instrTextValue,Xf as isAuthorableRunProperty,Jb as isContentControl,Kb as isContentControlContent,ee as isContentControlContentNode,de as isContentControlNode,fe as isContentControlWrapper,qa as isContentRevisionKind,hd as isContinuationSeparatorNode,R as isDangerousKey,xf as isDrawingTreeDocOp,cd as isEndnotesNode,$ as isEvaluableField,kc as isFieldChrome,dc as isFldChar,ac as isFldCharNode,fc as isFldSimple,cc as isFldSimpleNode,bd as isFootnotesNode,Tc as isHeaderFooterLifecycleOp,Qa as isHyperlinkNode,_ as isInertExecutable,ec as isInstrText,bc as isInstrTextNode,Gd as isLegalEndnotePosition,oc as isLegalFldCharType,Hd as isLegalFootnotePosition,Id as isLegalNumRestart,ld as isNormalNote,qd as isNoteAtomNode,Zd as isNoteLifecycleOp,dd as isNoteNode,fd as isNoteRefNode,ed as isNoteReferenceNode,Xb as isPageBreakNode,ra as isRangeMarkerKind,vg as isSearchableQuery,gd as isSeparatorNode,H as isValidMime,ga as isValidNCName,Ic as isValidParaId,ha as isValidQName,ug as isWholeWord,mg as linkRevisionReplies,ob as liveDrawingReferenceCount,fg as locateSites,se as lockForbidsEdit,te as lockForbidsRemoval,ag as mergedProperties,Lc as mintParaId,Oc as mintedParagraphIdentityAttributes,Yd as normalNoteIds,Pc as normalizeParagraphIdentity,l as normalizePartName,pd as noteAtomText,jd as noteIdOf,id as noteKindOf,nd as noteRefKindOf,md as noteReferenceKindOf,kd as noteTypeOf,ud as notesOf,Xd as notesPartHasId,S as nullRecord,xa as ooxmlTreesEqual,ve as orderedContentControlProperties,Jc as paraIdOf,Nd as paragraphOffsetIndex,ng as paragraphOrderOfPart,zf as paragraphTextOf,Fa as parentNodeOf,yd as parseAuthoredNoteProperties,le as parseContentControlId,_c as parseNoteId,ad as parseNoteScopeId,uc as parseTocInstruction,o as partNameKey,Dc as planTocEntries,ab as projectDrawing,Yf as propertyContainer,Ve as readCustomXmlNode,sa as readOnOffChild,wb as readOoxmlPackage,Aa as readOoxmlPart,ca as readXml,Ma as readZip,Sc as relationshipTargetIn,Ab as relationshipsOf,Cb as relsPartNameFor,Rf as removeCustomNodeWrite,Ja as removeNode,Ga as replaceChildren,Ia as replaceNode,re as resolveContentControlLock,K as resolveContentType,Bb as resolveContentTypeOf,Fd as resolveEndnoteProperties,Ed as resolveFootnoteProperties,Ub as resolveHeaderFooterParts,Tb as resolveHeaderFooterPartsBySection,Sb as resolveHeaderFooterResolutionBySection,O as resolveImageRelationship,E as resolveImageResourceLimits,q as resolveInternalTarget,B as resolveLimits,Td as resolveNotesPart,N as resolveRelationship,gg as reviewItemKey,pg as reviewItemRanges,jg as revisionItemsOf,bg as runAddressRanges,dg as runPropertyEdits,eg as runsCovering,U as sanitizeHref,aa as scrubExport,Md as segmentsOf,ta as serializeOoxmlPart,Kf as setCommentResolved,Bd as settingsPartOf,ib as sniffImageMime,Ae as storyParagraphs,ye as storyRootsOf,Gc as stylesPartOf,Sf as sweepCustomNodePayloads,fa as textContent,Fe as threadStateOfPart,T as toSafeRecord,Cc as tocEntryText,zc as tocLeftIndentTwips,Mc as usedParaIds,vf as validateDrawingOp,r as validateExternalTarget,kb as validateGifHeader,lb as validateJpegHeader,ya as validateOoxmlPart,Hb as validatePackageInvariants,jb as validatePngHeader,nb as validateRasterHeader,Bf as validateTreeOp,Nc as w14RootPrefix,Pb as walkAllStoryParagraphs,Qb as walkParagraphInline,Ob as walkStoryBlocks,sb as withBinaryPart,Db as withContentTypeOverride,Se as withCustomXmlDataPart,We as withCustomXmlNode,tb as withEmbeddedImage,Gb as withNewPart,yb as withPart,Fb as withRelationship,Te as withoutCustomXmlDataPart,Xe as withoutCustomXmlNode,Ye as withoutOrphanCustomXmlNodes,ub as withoutUnreferencedImagePart,wf as wrapTargetToAnchorSpec,xb as writeOoxmlPackage,Na as writeZip}from'./chunk-R6BMB6RM.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,R as withExportedCustomNodes}from'./chunk-33F6TRXO.js';export{hf as ACCEPTED_PARAGRAPH_PROPERTIES,gf as ACCEPTED_RUN_PROPERTIES,y as ALL_FROZEN_IDS,Wf as AUTHORABLE_PARAGRAPH_PROPERTIES,Xf as AUTHORABLE_RUN_PROPERTIES,G as BoundedCounter,t as CANONICAL_MUTATION_ORIGINS,de as CONTENT_CONTROL_ID_MAX,ve as CONTENT_CONTROL_PROPERTY_ORDER,af as CUSTOM_NODE_XPATH_PREFIX,Ne as CUSTOM_XML_PROPS_REL,Oe as CUSTOM_XML_PROPS_TYPE,Me as CUSTOM_XML_REL,P as DANGEROUS_KEYS,Pe as DATASTORE_NAMESPACE_URI,yd as DEFAULT_ENDNOTE_PROPERTIES,xd as DEFAULT_FOOTNOTE_PROPERTIES,D as DEFAULT_IMAGE_RESOURCE_LIMITS,A as DEFAULT_LIMITS,Ef as DEFAULT_MAX_EDITABLE_STORY_PARTS,wb as DEFAULT_OOXML_PACKAGE_LIMITS,La as DEFAULT_ZIP_LIMITS,x as DEPENDENCY_KEY_IDS,Q as DangerousKeyError,$b as FIELD_ATOM_CHAR,z as HARD_CEILINGS,Pa as HYPERLINK_RELATIONSHIP_TYPE,L as IMAGE_RELATIONSHIP_TYPE,C as IMAGE_RESOURCE_HARD_CEILINGS,Wa as IMAGE_WRAP_TARGETS,Z as INERT_EXECUTABLE_KINDS,F as LimitExceededError,ce as MAX_CONTENT_CONTROLS_PER_PART,be as MAX_CONTENT_CONTROL_NESTING,Qf as MAX_CUSTOM_NODE_LABEL_LENGTH,Pf as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,td as MAX_NOTES_PER_PART,Sd as MAX_NOTE_REFERENCE_PARTS,Rd as MAX_NOTE_REFERENCE_SCAN,ye as MAX_STORY_SDT_NESTING,hb as MAX_SVG_SNIFF_BYTES,u as NON_CANONICAL_ORIGINS,Wc as NOTE_ATOM_CHAR,_c as NOTE_CONTINUATION_SEPARATOR_ID,Yc as NOTE_ID_MAX,Xc as NOTE_ID_MIN,Zc as NOTE_SEPARATOR_ID,Oa as OFFICE_RELATIONSHIP_NAMESPACE_URI,za as OOXML_NODE_IDENTITY_RULES,s as ORIGIN_IDS,Wb as PAGE_BREAK_CHAR,ja as PrefixAllocator,v as RESULT_IDS,w as RUNTIME_PORT_IDS,tg as SEARCH_MATCH_LIMIT,sg as SEARCH_QUERY_MAX,of as TABLE_BORDER_STYLES,zc as TOC_LEVEL_INDENT_TWIPS,sc as TOC_MAX_BOOKMARKS_PER_REFRESH,rc as TOC_MAX_ENTRIES,tc as TOC_MAX_FIELD_NESTING,qc as TOC_MAX_INSTRUCTION_CHARS,uc as TOC_MAX_PAGE_PASSES,if as TREE_DOC_OP_KINDS,Df as TreeDocumentStore,Ff as TreePackageStore,De as W15_NAMESPACE_URI,la as WML_NAMESPACE_URI,na as XMLNS_NAMESPACE_URI,ma as XML_NAMESPACE_URI,Kf as addComment,xe as allocateContentControlId,sb as allocateDrawingPropertyId,ud as allocateNoteId,Ka as applyEdits,Vc as applyHeaderFooterLifecycleOp,$d as applyNoteLifecycleOp,zf as applyTreeOp,n as asciiFold,ia as assertValidQName,oc as atomicFieldSpansOf,sd as atomicNoteSpansOf,Rc as authorableHyperlinkTarget,Ed as authoredDocumentEndnoteProperties,Dd as authoredDocumentFootnoteProperties,Bd as authoredEndnotePropertiesFromSectPr,Ad as authoredFootnotePropertiesFromSectPr,_f as authoredProperties,Ae as bodyStoryRoot,Fc as bookmarkPairNodes,ef as boundCustomXmlNodeIdOf,cf as boundCustomXmlNodeIds,df as boundCustomXmlNodeIdsInPackage,yc as buildBookmarkIndex,J as buildContentTypeIndex,M as buildRelationshipSet,Cc as buildTocContentControl,Bc as buildTocEntryParagraph,wa as canonicalOoxmlFingerprint,ae as cascadeDeletedNoteReferences,Le as cascadeEmptiedComments,ea as childElements,Ob as collectFlowBlocks,Ba as collectNodeIds,Vd as collectNoteReferences,Wd as collectPackageNoteReferences,mg as collectReviewItems,ff as collectRevisionSites,Sb as collectSectionPropertyNodes,Ce as collectStoryParagraphs,Ee as commentAnchorsOfStory,ig as commentBodyText,jg as commentInitials,lg as commentItemsOf,Nf as commentPartNameOf,Of as commentsExtendedPartNameOf,Fe as commentsOfPart,Y as containsCssFetch,he as contentControlContentChildren,le as contentControlContentNodeOf,Mb as contentControlContentOf,ke as contentControlEndPropertiesNodeOf,oe as contentControlLevelOf,je as contentControlPropertiesNodeOf,ne as contentControlPropertiesOf,re as contentControlTextOf,pe as contentControlsIn,Ab as contentTypesPartBytes,rb as createImageResourceCache,Ca as createNodeIdAllocator,Td as createNoteReferenceScanBudget,pd as customMarkFollows,bf as customNodeBinding,Uf as customNodePayloadsByControl,Vf as customNodePayloadsOf,Re as customXmlDataParts,_e as customXmlLabelXPath,Ve as customXmlNodes,$e as customXmlPrefixMappings,Qe as datastoreItemIdFor,pg as deepParagraphOrderOfPart,Ie as deleteCommentThread,Ic as deriveOoxmlIndexes,wc as detectBodyTocs,p as detectDuplicateNames,Xd as diagnoseNoteReferences,ag as directParagraphMarkProperties,$f as directParagraphProperties,vf as drawingOpImpact,Sc as ensureHyperlinkRelationship,X as escapeCssString,V as escapeXml,I as extensionKey,kc as fieldAtomText,jc as fieldOnOffAttribute,qe as findContentControl,Se as findCustomXmlDataPart,xc as findDetectedToc,da as findElement,Ea as findNode,wd as findNoteById,xg as findOccurrences,rg as firstReviewRange,ie as flattenContentControls,ac as fldCharType,ic as fldSimpleInstr,Lc as fnv1a32,ug as foldCase,ad as formatNoteScopeId,dg as formatOwnedRunIds,_b as hardBreakAttributes,Xb as hardBreakKind,Zb as hardBreakText,He as hasAnyComment,ib as hasBoundedSvgRoot,Mf as hasCommentPart,mc as hasLegacyFormFieldData,Da as hasNode,Ra as hyperlinkAnchorOf,Sa as hyperlinkRelationshipIdOf,Ta as hyperlinkTargetOf,qb as imageResourceLookupFor,Gc as indexStyles,Pd as inlineControlEndingAt,Qd as inlineControlStartingAt,Ha as insertChildren,Rf as insertCustomNodeWrite,hc as instrTextValue,Yf as isAuthorableRunProperty,Kb as isContentControl,Lb as isContentControlContent,fe as isContentControlContentNode,ee as isContentControlNode,ge as isContentControlWrapper,qa as isContentRevisionKind,id as isContinuationSeparatorNode,R as isDangerousKey,yf as isDrawingTreeDocOp,dd as isEndnotesNode,$ as isEvaluableField,lc as isFieldChrome,ec as isFldChar,bc as isFldCharNode,gc as isFldSimple,dc as isFldSimpleNode,cd as isFootnotesNode,Uc as isHeaderFooterLifecycleOp,Qa as isHyperlinkNode,_ as isInertExecutable,fc as isInstrText,cc as isInstrTextNode,Hd as isLegalEndnotePosition,pc as isLegalFldCharType,Id as isLegalFootnotePosition,Jd as isLegalNumRestart,md as isNormalNote,rd as isNoteAtomNode,_d as isNoteLifecycleOp,ed as isNoteNode,gd as isNoteRefNode,fd as isNoteReferenceNode,Yb as isPageBreakNode,ra as isRangeMarkerKind,wg as isSearchableQuery,hd as isSeparatorNode,H as isValidMime,ga as isValidNCName,Jc as isValidParaId,ha as isValidQName,vg as isWholeWord,ng as linkRevisionReplies,pb as liveDrawingReferenceCount,gg as locateSites,te as lockForbidsEdit,ue as lockForbidsRemoval,bg as mergedProperties,Mc as mintParaId,Pc as mintedParagraphIdentityAttributes,Zd as normalNoteIds,Qc as normalizeParagraphIdentity,l as normalizePartName,qd as noteAtomText,kd as noteIdOf,jd as noteKindOf,od as noteRefKindOf,nd as noteReferenceKindOf,ld as noteTypeOf,vd as notesOf,Yd as notesPartHasId,S as nullRecord,xa as ooxmlTreesEqual,we as orderedContentControlProperties,Kc as paraIdOf,Od as paragraphOffsetIndex,og as paragraphOrderOfPart,Af as paragraphTextOf,Fa as parentNodeOf,zd as parseAuthoredNoteProperties,me as parseContentControlId,$c as parseNoteId,bd as parseNoteScopeId,vc as parseTocInstruction,o as partNameKey,Ec as planTocEntries,bb as projectDrawing,Zf as propertyContainer,We as readCustomXmlNode,sa as readOnOffChild,xb as readOoxmlPackage,Aa as readOoxmlPart,ca as readXml,Ma as readZip,Tc as relationshipTargetIn,Bb as relationshipsOf,Db as relsPartNameFor,Sf as removeCustomNodeWrite,Ja as removeNode,Ga as replaceChildren,Ia as replaceNode,se as resolveContentControlLock,K as resolveContentType,Cb as resolveContentTypeOf,Gd as resolveEndnoteProperties,Fd as resolveFootnoteProperties,Vb as resolveHeaderFooterParts,Ub as resolveHeaderFooterPartsBySection,Tb as resolveHeaderFooterResolutionBySection,O as resolveImageRelationship,E as resolveImageResourceLimits,q as resolveInternalTarget,B as resolveLimits,Ud as resolveNotesPart,N as resolveRelationship,hg as reviewItemKey,qg as reviewItemRanges,kg as revisionItemsOf,cg as runAddressRanges,eg as runPropertyEdits,fg as runsCovering,U as sanitizeHref,aa as scrubExport,Nd as segmentsOf,ta as serializeOoxmlPart,Lf as setCommentResolved,Cd as settingsPartOf,jb as sniffImageMime,Be as storyParagraphs,ze as storyRootsOf,Hc as stylesPartOf,Tf as sweepCustomNodePayloads,fa as textContent,Ge as threadStateOfPart,T as toSafeRecord,Dc as tocEntryText,Ac as tocLeftIndentTwips,Nc as usedParaIds,wf as validateDrawingOp,r as validateExternalTarget,lb as validateGifHeader,mb as validateJpegHeader,ya as validateOoxmlPart,Ib as validatePackageInvariants,kb as validatePngHeader,ob as validateRasterHeader,Cf as validateTreeOp,Oc as w14RootPrefix,Qb as walkAllStoryParagraphs,Rb as walkParagraphInline,Pb as walkStoryBlocks,tb as withBinaryPart,Eb as withContentTypeOverride,Te as withCustomXmlDataPart,Xe as withCustomXmlNode,ub as withEmbeddedImage,Hb as withNewPart,zb as withPart,Gb as withRelationship,Ue as withoutCustomXmlDataPart,Ye as withoutCustomXmlNode,Ze as withoutOrphanCustomXmlNodes,vb as withoutUnreferencedImagePart,xf as wrapTargetToAnchorSpec,yb as writeOoxmlPackage,Na as writeZip}from'./chunk-TCX3PVWR.js';
@@ -775,14 +775,19 @@ type TreeDocOp = {
775
775
  readonly localName?: string;
776
776
  } | {
777
777
  /**
778
- * Accept every revision in the part, in ONE transaction and one history entry.
778
+ * Accept every revision in the part, or in one exact note root, in ONE transaction and one
779
+ * history entry.
779
780
  *
780
781
  * Deliberately not a loop over `acceptRevision`: a reviewer who accepts a document's
781
782
  * changes made one decision, and one undo should restore all of them.
782
783
  */
783
784
  readonly op: 'acceptAllRevisions';
785
+ /** Internal shared-notes scope. When present, this must be the canonical id of a note root. */
786
+ readonly scopeRootId?: string;
784
787
  } | {
785
788
  readonly op: 'rejectAllRevisions';
789
+ /** Internal shared-notes scope. When present, this must be the canonical id of a note root. */
790
+ readonly scopeRootId?: string;
786
791
  } | {
787
792
  readonly op: 'insertTab';
788
793
  readonly paragraphId: string;
@@ -775,14 +775,19 @@ type TreeDocOp = {
775
775
  readonly localName?: string;
776
776
  } | {
777
777
  /**
778
- * Accept every revision in the part, in ONE transaction and one history entry.
778
+ * Accept every revision in the part, or in one exact note root, in ONE transaction and one
779
+ * history entry.
779
780
  *
780
781
  * Deliberately not a loop over `acceptRevision`: a reviewer who accepts a document's
781
782
  * changes made one decision, and one undo should restore all of them.
782
783
  */
783
784
  readonly op: 'acceptAllRevisions';
785
+ /** Internal shared-notes scope. When present, this must be the canonical id of a note root. */
786
+ readonly scopeRootId?: string;
784
787
  } | {
785
788
  readonly op: 'rejectAllRevisions';
789
+ /** Internal shared-notes scope. When present, this must be the canonical id of a note root. */
790
+ readonly scopeRootId?: string;
786
791
  } | {
787
792
  readonly op: 'insertTab';
788
793
  readonly paragraphId: string;
@@ -1,13 +1,13 @@
1
- import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-DwpNnTg3.cjs';
2
- import { S as StoryScope, a as StoryTargetRejection, D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, b as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind, c as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput } from './custom-node-writes-YqISlSRl.cjs';
1
+ import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-DXvPZvXD.cjs';
2
+ import { S as StoryScope, a as StoryTargetRejection, D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, b as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind, c as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput } from './custom-node-writes-C5YRoPcc.cjs';
3
3
  import { Node } from 'prosemirror-model';
4
- import { a as ReviewItem } from './review-support-rsyGP5-9.cjs';
4
+ import { a as ReviewItem } from './review-support-BJ-YjGmD.cjs';
5
5
  import { ReviewModuleContribution } from './contracts/modules.cjs';
6
6
  import { e as OoxmlPart, O as OoxmlNode, a as OoxmlElement } from './ooxml-tree-BU0e3DVi.cjs';
7
7
  import { O as OoxmlPackage, b as OoxmlPackageRejection } from './ooxml-package-CR5us6ad.cjs';
8
8
  import { a as HeaderFooterParts, b as HeaderFooterSectionResolution } from './hf-references-CgEOSw3i.cjs';
9
- import { T as TreeDocOp } from './tree-op-types-UOXlRUqQ.cjs';
10
- import { S as SelectionMark, T as TreeModelChange } from './tree-store-B1lEkdXc.cjs';
9
+ import { T as TreeDocOp } from './tree-op-types-EZXbR8bW.cjs';
10
+ import { S as SelectionMark, T as TreeModelChange } from './tree-store-UYrGKF_Q.cjs';
11
11
 
12
12
  /**
13
13
  * The scheme slots the picker shows, in Word's column order.
@@ -1,13 +1,13 @@
1
- import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-C_YnqPhn.js';
2
- import { S as StoryScope, a as StoryTargetRejection, D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, b as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind, c as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput } from './custom-node-writes-ttKuYd0M.js';
1
+ import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-BG9DLyW7.js';
2
+ import { S as StoryScope, a as StoryTargetRejection, D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, b as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind, c as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput } from './custom-node-writes-BkMgMXxs.js';
3
3
  import { Node } from 'prosemirror-model';
4
- import { a as ReviewItem } from './review-support-B9ykYpoZ.js';
4
+ import { a as ReviewItem } from './review-support-DgXTIYBW.js';
5
5
  import { ReviewModuleContribution } from './contracts/modules.js';
6
6
  import { e as OoxmlPart, O as OoxmlNode, a as OoxmlElement } from './ooxml-tree-BU0e3DVi.js';
7
7
  import { O as OoxmlPackage, b as OoxmlPackageRejection } from './ooxml-package-D_CtywTW.js';
8
8
  import { a as HeaderFooterParts, b as HeaderFooterSectionResolution } from './hf-references-BdjsQNE_.js';
9
- import { T as TreeDocOp } from './tree-op-types-DWLCllG7.js';
10
- import { S as SelectionMark, T as TreeModelChange } from './tree-store-BscFPB7x.js';
9
+ import { T as TreeDocOp } from './tree-op-types-8a6xyRCN.js';
10
+ import { S as SelectionMark, T as TreeModelChange } from './tree-store-BoM6eXaL.js';
11
11
 
12
12
  /**
13
13
  * The scheme slots the picker shows, in Word's column order.
@@ -1,6 +1,6 @@
1
1
  import { e as OoxmlPart } from './ooxml-tree-BU0e3DVi.js';
2
2
  import { O as OoxmlPackage } from './ooxml-package-D_CtywTW.js';
3
- import { I as ImpactClass, T as TreeDocOp, a as TreeOpRejection } from './tree-op-types-DWLCllG7.js';
3
+ import { I as ImpactClass, T as TreeDocOp, a as TreeOpRejection } from './tree-op-types-8a6xyRCN.js';
4
4
 
5
5
  /** A selection the caller wants restored when an entry is undone or redone. */
6
6
  /** A selection captured with a transaction, so undo restores where the caret was. */
@@ -1,6 +1,6 @@
1
1
  import { e as OoxmlPart } from './ooxml-tree-BU0e3DVi.cjs';
2
2
  import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
3
- import { I as ImpactClass, T as TreeDocOp, a as TreeOpRejection } from './tree-op-types-UOXlRUqQ.cjs';
3
+ import { I as ImpactClass, T as TreeDocOp, a as TreeOpRejection } from './tree-op-types-EZXbR8bW.cjs';
4
4
 
5
5
  /** A selection the caller wants restored when an entry is undone or redone. */
6
6
  /** A selection captured with a transaction, so undo restores where the caret was. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docx-editor.dev/core",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Framework-agnostic core for docx-editor.dev: OOXML parse/serialize, the canonical document tree, layout and paint, and the Editor contract the adapters render.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -85,7 +85,7 @@
85
85
  "directory": "packages/core"
86
86
  },
87
87
  "dependencies": {
88
- "@docx-editor.dev/i18n": "^2.3.0",
88
+ "@docx-editor.dev/i18n": "^2.4.0",
89
89
  "bidi-js": "1.0.3",
90
90
  "emf-converter": "2.0.2",
91
91
  "fast-xml-parser": "^5.10.1",