@docx-editor.dev/core 2.19.1 → 2.21.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 (116) hide show
  1. package/README.md +11 -32
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.d.ts +11 -9
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.ts +9 -10
  7. package/dist/binding.js +1 -1
  8. package/dist/chunk-44LQJIKH.cjs +20 -0
  9. package/dist/chunk-4EHMMSFR.cjs +1 -0
  10. package/dist/chunk-AFG7Q622.cjs +2 -0
  11. package/dist/chunk-AJCCS53D.js +1 -0
  12. package/dist/chunk-AYMSP25Q.js +4 -0
  13. package/dist/{chunk-GWW5FOLJ.cjs → chunk-B4KZSKF7.cjs} +5 -5
  14. package/dist/chunk-BDAY2ETZ.js +1 -0
  15. package/dist/chunk-BNZF6DYC.cjs +18 -0
  16. package/dist/chunk-BQXF2PFF.js +2 -0
  17. package/dist/chunk-GIHKVXEO.js +2 -0
  18. package/dist/chunk-ITNK6C5M.cjs +3 -0
  19. package/dist/chunk-MP3K4LC5.js +1 -0
  20. package/dist/chunk-MXOO7KRI.cjs +11 -0
  21. package/dist/chunk-NG6IQ4SI.js +11 -0
  22. package/dist/{chunk-NIVIC7PA.cjs → chunk-PYXMAUNR.cjs} +1 -1
  23. package/dist/chunk-Q2B6HX3R.js +1 -0
  24. package/dist/chunk-Q5JPPUNR.js +5 -0
  25. package/dist/chunk-S35UK656.cjs +2 -0
  26. package/dist/chunk-S6J4O5XP.js +1 -0
  27. package/dist/chunk-TE43S3LX.cjs +1 -0
  28. package/dist/chunk-TKQH7BNE.cjs +1 -0
  29. package/dist/chunk-UKVVUHZL.cjs +1 -0
  30. package/dist/chunk-VH2DLEZK.js +20 -0
  31. package/dist/{chunk-BUNY5MRX.js → chunk-VUNFWXHF.js} +1 -1
  32. package/dist/{chunk-JWHXOJEU.cjs → chunk-WQFNWLNY.cjs} +3 -3
  33. package/dist/chunk-WZX4UGRQ.js +3 -0
  34. package/dist/{chunk-2QU7QTM7.js → chunk-X5QNSISI.js} +1 -1
  35. package/dist/chunk-XS4FOHH6.js +18 -0
  36. package/dist/{chunk-7VO6BLKV.cjs → chunk-XZY4Q6PJ.cjs} +1 -1
  37. package/dist/{chunk-76F73CY6.cjs → chunk-Z2ETEZRU.cjs} +1 -1
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +13 -4
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.d.ts +4 -3
  42. package/dist/contracts/document.d.ts +3 -2
  43. package/dist/contracts/editor.cjs +1 -1
  44. package/dist/contracts/editor.d.ts +9 -10
  45. package/dist/contracts/editor.js +1 -1
  46. package/dist/contracts/interaction.d.ts +2 -2
  47. package/dist/contracts/modules.cjs +1 -1
  48. package/dist/contracts/modules.d.ts +9 -9
  49. package/dist/contracts/modules.js +1 -1
  50. package/dist/contracts/types.d.ts +2 -562
  51. package/dist/{custom-node-writes-BqIv94ei.d.ts → custom-node-writes-05qS32px.d.ts} +2 -2
  52. package/dist/{document-protection-BL5zp8cU.d.ts → document-protection-Cr59VKLO.d.ts} +1 -1
  53. package/dist/{editor-WXbTSXx1.d.ts → editor-BsLSz_7y.d.ts} +43 -39
  54. package/dist/editor-scope-OHPwVQ5l.d.ts +84 -0
  55. package/dist/editor.cjs +1 -1
  56. package/dist/editor.css +1 -1
  57. package/dist/editor.d.ts +130 -29
  58. package/dist/editor.js +1 -1
  59. package/dist/export.cjs +2 -2
  60. package/dist/export.d.ts +13 -14
  61. package/dist/export.js +1 -1
  62. package/dist/{font-resolver-BSrKnTeR.d.ts → font-resolver-CzwdBJDE.d.ts} +1 -1
  63. package/dist/{headless-document-view-C4ttQJ5H.d.ts → headless-document-view-B7nAiR7P.d.ts} +2 -2
  64. package/dist/image-resources-C4ilLzog.d.ts +210 -0
  65. package/dist/{index-C3As-Xxp.d.ts → index-zkvqBQ9o.d.ts} +117 -27
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.d.ts +18 -19
  68. package/dist/index.js +1 -1
  69. package/dist/{layout-shaping-Dqu3JW3p.d.ts → layout-shaping-BJKVTI6i.d.ts} +1 -1
  70. package/dist/layout.cjs +1 -1
  71. package/dist/layout.d.ts +72 -20
  72. package/dist/layout.js +1 -1
  73. package/dist/{note-properties-RjYgbmXe.d.ts → note-properties-MNztEj5s.d.ts} +2 -2
  74. package/dist/{omml-equation-hcP9AUFX.d.ts → omml-equation-CbnW9yXd.d.ts} +1 -1
  75. package/dist/output.cjs +1 -1
  76. package/dist/output.d.ts +8 -7
  77. package/dist/output.js +1 -1
  78. package/dist/{protocol-OdRd17KZ.d.ts → protocol-Co_r0SZQ.d.ts} +14 -4
  79. package/dist/{review-paragraph-order--jLHXIcd.d.ts → review-paragraph-order-EFaU7TqH.d.ts} +2 -3
  80. package/dist/{revision-projection-BIHO_qvw.d.ts → revision-projection-DEIvpxiq.d.ts} +16 -2
  81. package/dist/{semantic-cell-selection-lCYAVCCF.d.ts → semantic-cell-selection-DXmfnDCw.d.ts} +9 -4
  82. package/dist/{semantic-interaction-0vQXcMZk.d.ts → semantic-interaction-BLu3M6Nn.d.ts} +1 -1
  83. package/dist/{semantic-paint-BSan4pBk.d.ts → semantic-paint-CPsihA6k.d.ts} +18 -2
  84. package/dist/{semantic-records-ZcYuB4-H.d.ts → semantic-records-CqD0b5Ex.d.ts} +147 -6
  85. package/dist/store.cjs +1 -1
  86. package/dist/store.d.ts +462 -428
  87. package/dist/store.js +1 -1
  88. package/dist/{tree-package-fragment-1pdDnhZ_.d.ts → tree-package-fragment-CwJDixNs.d.ts} +44 -3
  89. package/dist/{tree-session-contract-Cgn6fQ-M.d.ts → tree-session-contract-D9RRWE0C.d.ts} +8 -8
  90. package/dist/{tree-op-types-DbdM7fJV.d.ts → types-barrel-DLB11iSY.d.ts} +1455 -660
  91. package/package.json +2 -2
  92. package/dist/chunk-3JKOZBQ3.cjs +0 -1
  93. package/dist/chunk-3SU7UWCR.js +0 -1
  94. package/dist/chunk-5BI4SIHO.cjs +0 -1
  95. package/dist/chunk-6ESSCMXL.js +0 -2
  96. package/dist/chunk-6W4DIR4X.cjs +0 -2
  97. package/dist/chunk-AKQRKR2H.js +0 -1
  98. package/dist/chunk-BJQDNKEX.js +0 -5
  99. package/dist/chunk-D5EHDHYV.js +0 -1
  100. package/dist/chunk-FBWBSHC4.cjs +0 -11
  101. package/dist/chunk-GOEBQ26R.js +0 -1
  102. package/dist/chunk-IA7WTZHI.js +0 -11
  103. package/dist/chunk-IXGUCLER.js +0 -20
  104. package/dist/chunk-NDPLQG4Y.cjs +0 -18
  105. package/dist/chunk-NLGUL6QL.js +0 -3
  106. package/dist/chunk-OHJQ7GPZ.cjs +0 -1
  107. package/dist/chunk-OWUSDS3L.cjs +0 -20
  108. package/dist/chunk-RDKPMNN6.cjs +0 -2
  109. package/dist/chunk-TSDGKNV7.js +0 -2
  110. package/dist/chunk-TUCDPXBD.js +0 -18
  111. package/dist/chunk-UOE4WKL7.js +0 -1
  112. package/dist/chunk-VSCPFHTD.cjs +0 -3
  113. package/dist/chunk-ZKWRCLT2.cjs +0 -1
  114. package/dist/chunk-ZUGTEKLM.js +0 -4
  115. package/dist/editor-scope-DZJT4ukT.d.ts +0 -53
  116. package/dist/review-items-CJz-kAW8.d.ts +0 -370
package/dist/store.js CHANGED
@@ -1 +1 @@
1
- export{ma as AUTHORABLE_PARAGRAPH_PROPERTIES,na as AUTHORABLE_RUN_PROPERTIES,m as Budget,l as BudgetError,C as COMPARATORS,o as CancellationController,n as CancellationError,ja as DEFAULT_FORMATTING_DISPLAY_MODE,N as DEFAULT_MAX_EDITABLE_STORY_PARTS,r as DeterministicClock,y as DeterministicMemoryMeter,d as ID_KINDS,w as LIMIT_KEYS,v as LIMIT_SPECS,ba as MAX_CUSTOM_NODE_LABEL_LENGTH,aa as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,K as MAX_FRAGMENT_DECODED_BYTES,q as PortRegistry,p as PortResolutionError,j as RegistryError,Ua as SEARCH_MATCH_LIMIT,Ta as SEARCH_QUERY_MAX,s as SequentialIdentity,M as TreeDocumentStore,O as TreePackageStore,U as addComment,Z as addPackageComment,L as applyFragmentPaste,z as assertLimitInvariants,f as assertValidId,qa as authoredProperties,t as beginOperation,A as canonicalize,Qa as collectReviewItems,Ca as commentBodyText,Da as commentInitials,Pa as commentItemsOf,X as commentPartNameOf,Y as commentsExtendedPartNameOf,D as compareArtifacts,h as compareSemVer,fa as customNodePayloadsByControl,ga as customNodePayloadsOf,$ as deletePackageComments,sa as directParagraphMarkProperties,ra as directParagraphProperties,u as endOperation,I as extractFragmentPackage,Ya as findOccurrences,E as fingerprint,Ha as firstReviewRange,Va as foldCase,wa as formatOwnedRunIds,Aa as formattableRanges,W as hasCommentPart,H as hashAuthored,_a as headlessViewOfStore,ca as insertCustomNodeWrite,ha as insertPackageCustomNode,oa as isAuthorableRunProperty,Xa as isSearchableQuery,e as isValidId,Wa as isWholeWord,Sa as linkRevisionReplies,Ma as locateSites,x as makeLimitCounter,J as mergeFragmentIntoPackage,ua as mergedFontProperty,xa as mergedMultiSettingProperty,ya as mergedParagraphMarkProperties,ta as mergedProperties,T as nextCommentId,Za as openHeadlessDocument,g as parseSemVer,pa as propertyContainer,da as removeCustomNodeWrite,ia as removePackageCustomNode,G as replayFixture,k as resolve,Fa as reviewItemKey,Ga as reviewItemRanges,Oa as revisionItemsOf,va as runAddressRanges,za as runPropertyEdits,Ba as runsCovering,i as satisfies,V as setCommentResolved,_ as setPackageCommentResolved,B as stableHash,ea as sweepCustomNodePayloads,F as validateFixture}from'./chunk-NLGUL6QL.js';export{cg as ACCEPTED_PARAGRAPH_PROPERTIES,bg as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,yc as CONTENT_CONTROL_ID_MAX,Qc as CONTENT_CONTROL_PROPERTY_ORDER,Vg as CUSTOM_NODE_XPATH_PREFIX,Fg as CUSTOM_XML_PROPS_REL,Gg as CUSTOM_XML_PROPS_TYPE,Eg as CUSTOM_XML_REL,G as DANGEROUS_KEYS,Hg as DATASTORE_NAMESPACE_URI,zf as DEFAULT_ENDNOTE_PROPERTIES,yf as DEFAULT_FOOTNOTE_PROPERTIES,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,rc as DEFAULT_OMML_LIMITS,cc as DEFAULT_OOXML_PACKAGE_LIMITS,zg as DEFAULT_VIEW_SETTINGS,Pa as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,Yd as FIELD_ATOM_CHAR,i as HARD_CEILINGS,Xa as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,cb as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,xc as MAX_CONTENT_CONTROLS_PER_PART,wc as MAX_CONTENT_CONTROL_NESTING,qd as MAX_NOTES_PER_PART,Mf as MAX_NOTE_REFERENCE_PARTS,Lf as MAX_NOTE_REFERENCE_SCAN,vd as MAX_STORY_SDT_NESTING,rb as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Tc as NOTE_ATOM_CHAR,Xc as NOTE_CONTINUATION_SEPARATOR_ID,Vc as NOTE_ID_MAX,Uc as NOTE_ID_MIN,Wc as NOTE_SEPARATOR_ID,uf as NO_DOCUMENT_PROTECTION,xg as NO_TRACKING_SETTINGS,qc as OFFICE_MATH_NAMESPACE_URI,Wa as OFFICE_RELATIONSHIP_NAMESPACE_URI,wa as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,Td as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,Rh as TABLE_BORDER_STYLES,af as TOC_LEVEL_INDENT_TWIPS,ve as TOC_MAX_BOOKMARKS_PER_REFRESH,ue as TOC_MAX_ENTRIES,we as TOC_MAX_FIELD_NESTING,te as TOC_MAX_INSTRUCTION_CHARS,xe as TOC_MAX_PAGE_PASSES,ag as TREE_DOC_OP_KINDS,Xe as TWIPS_PER_POINT,ng as W15_NAMESPACE_URI,da as WML_NAMESPACE_URI,fa as XMLNS_NAMESPACE_URI,ea as XML_NAMESPACE_URI,Sc as allocateContentControlId,Sb as allocateDrawingPropertyId,rd as allocateNoteId,Na as applyEdits,xf as applyHeaderFooterLifecycleOp,eg as applyNoteLifecycleOp,gi as applyTreeOp,t as asciiFold,ba as assertValidQName,re as atomicFieldSpansOf,pd as atomicNoteSpansOf,qf as authorableHyperlinkTarget,Ff as authoredDocumentEndnoteProperties,Ef as authoredDocumentFootnoteProperties,Cf as authoredEndnotePropertiesFromSectPr,Bf as authoredFootnotePropertiesFromSectPr,zd as bodyStoryRoot,gf as bookmarkPairNodes,Zg as boundCustomXmlNodeIdOf,Xg as boundCustomXmlNodeIds,Yg as boundCustomXmlNodeIdsInPackage,We as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,df as buildTocContentControl,cf as buildTocEntryParagraph,ra as canonicalOoxmlFingerprint,fg as cascadeDeletedNoteReferences,wg as cascadeEmptiedComments,Z as childElements,Hd as collectFlowBlocks,Da as collectNodeIds,Pf as collectNoteReferences,Rf as collectPackageNoteReferences,uh as collectRevisionSites,Md as collectSectionPropertyNodes,Bd as collectStoryParagraphs,og as commentAnchorsOfStory,qg as commentsOfPart,R as containsCssFetch,Cc as contentControlContentChildren,Gc as contentControlContentNodeOf,Fd as contentControlContentOf,Fc as contentControlEndPropertiesNodeOf,Jc as contentControlLevelOf,Ec as contentControlPropertiesNodeOf,Ic as contentControlPropertiesOf,Mc as contentControlTextOf,Kc as contentControlsIn,gc as contentTypesPartBytes,Cb as createImageResourceCache,Ea as createNodeIdAllocator,Nf as createNoteReferenceScanBudget,md as customMarkFollows,Wg as customNodeBinding,Kg as customXmlDataParts,Tg as customXmlLabelXPath,Og as customXmlNodes,Ug as customXmlPrefixMappings,Ig as datastoreItemIdFor,Fh as deepParagraphOrderOfPart,tg as deleteCommentThread,Rd as deobfuscateFont,kf as deriveOoxmlIndexes,ze as detectBodyTocs,v as detectDuplicateNames,Sf as diagnoseNoteReferences,nf as diffSemanticDigests,lf as digestPart,Yh as drawingOpImpact,rf as ensureHyperlinkRelationship,of as ensureListDefinition,pf as ensureNumberingLevel,uc as equationExpressionToLinearMath,Q as escapeCssString,M as escapeXml,z as extensionKey,ie as fieldAtomText,he as fieldOnOffAttribute,Lc as findContentControl,Lg as findCustomXmlDataPart,Ae as findDetectedToc,Y as findElement,Ga as findNode,ud as findNoteById,Dc as flattenContentControls,Zd as fldCharType,ge as fldSimpleInstr,Fb as fnv1a32,Zc as formatNoteScopeId,Jh as formsProtectionEnabled,Xd as hardBreakAttributes,Ud as hardBreakKind,Wd as hardBreakText,sg as hasAnyComment,sb as hasBoundedSvgRoot,ke as hasLegacyFormFieldData,Fa as hasNode,Za as hyperlinkAnchorOf,_a as hyperlinkRelationshipIdOf,$a as hyperlinkTargetOf,Ab as imageResourceLookupFor,if as indexStyles,Ue as inlineControlEndingAt,Ve as inlineControlStartingAt,Ka as insertChildren,fe as instrTextValue,Dd as isContentControl,Ed as isContentControlContent,Ac as isContentControlContentNode,zc as isContentControlNode,Bc as isContentControlWrapper,ka as isContentRevisionKind,fd as isContinuationSeparatorNode,I as isDangerousKey,bi as isDrawingTreeDocOp,ad as isEndnotesNode,U as isEvaluableField,je as isFieldChrome,be as isFldChar,_d as isFldCharNode,ee as isFldSimple,ae as isFldSimpleNode,$c as isFootnotesNode,wf as isHeaderFooterLifecycleOp,Ya as isHyperlinkNode,T as isInertExecutable,ce as isInstrText,$d as isInstrTextNode,If as isLegalEndnotePosition,se as isLegalFldCharType,Jf as isLegalFootnotePosition,Kf as isLegalNumRestart,jd as isNormalNote,od as isNoteAtomNode,dg as isNoteLifecycleOp,bd as isNoteNode,dd as isNoteRefNode,cd as isNoteReferenceNode,Vd as isPageBreakNode,oa as isRangeMarkerKind,ed as isSeparatorNode,yd as isStoryPart,y as isValidMime,$ as isValidNCName,Db as isValidParaId,aa as isValidQName,vc as linearMathToOmml,zb as liveDrawingReferenceCount,Oc as lockForbidsEdit,Pc as lockForbidsRemoval,Gb as mintParaId,Jb as mintedParagraphIdentityAttributes,Uf as normalNoteIds,Kb as normalizeParagraphIdentity,r as normalizePartName,nd as noteAtomText,hd as noteIdOf,gd as noteKindOf,ld as noteRefKindOf,kd as noteReferenceKindOf,id as noteTypeOf,sd as notesOf,Tf as notesPartHasId,J as nullRecord,sa as ooxmlTreesEqual,Rc as orderedContentControlProperties,Eb as paraIdOf,Qe as paragraphOffsetIndex,Eh as paragraphOrderOfPart,hi as paragraphTextOf,Ha as parentNodeOf,Af as parseAuthoredNoteProperties,Hc as parseContentControlId,tc as parseLinearMath,Yc as parseNoteId,_c as parseNoteScopeId,ye as parseTocInstruction,u as partNameKey,ff as planTocEntries,Ze as points,$e as pointsToTwips,lb as projectDrawing,sc as projectOmmlEquation,Pg as readCustomXmlNode,vf as readDocumentProtection,Sd as readEmbeddedFonts,pa as readOnOffChild,dc as readOoxmlPackage,xa as readOoxmlPart,yg as readTrackingSettings,Ag as readViewSettings,X as readXml,Qa as readZip,sf as relationshipTargetIn,hc as relationshipsOf,jc as relsPartNameFor,Ma as removeNode,Ja as replaceChildren,La as replaceNode,Nc as resolveContentControlLock,B as resolveContentType,ic as resolveContentTypeOf,Hf as resolveEndnoteProperties,Gf as resolveFootnoteProperties,Qd as resolveHeaderFooterParts,Pd as resolveHeaderFooterPartsBySection,Od as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,Of as resolveNotesPart,E as resolveRelationship,hf as resolveTocRowHeadings,L as sanitizeHref,V as scrubExport,Kh as sectionProtectsForms,Oe as segmentsOf,mf as semanticDigest,qa as serializeOoxmlPart,Df as settingsPartOf,tb as sniffImageMime,Ad as storyParagraphs,xd as storyRootsOf,jf as stylesPartOf,_ as textContent,fh as textFormFieldsOf,Dg as textboxStoriesInPart,rg as threadStateOfPart,K as toSafeRecord,ef as tocEntryText,bf as tocLeftIndentTwips,Ye as twips,_e as twipsToPoints,Hb as usedParaIds,Zh as validateDrawingOp,x as validateExternalTarget,vb as validateGifHeader,wb as validateJpegHeader,ua as validateOoxmlPart,pc as validatePackageInvariants,ub as validatePngHeader,yb as validateRasterHeader,ni as validateTreeOp,Ib as w14RootPrefix,Jd as walkAllStoryParagraphs,Kd as walkParagraphInline,Id as walkStoryBlocks,Vb as withBinaryPart,kc as withContentTypeOverride,Mg as withCustomXmlDataPart,Qg as withCustomXmlNode,Wb as withEmbeddedImage,_g as withExportedCustomNodes,oc as withNewPart,fc as withPart,nc as withRelationship,Ng as withoutCustomXmlDataPart,Rg as withoutCustomXmlNode,Sg as withoutOrphanCustomXmlNodes,$b as withoutUnreferencedImagePart,ai as wrapTargetToAnchorSpec,ec as writeOoxmlPackage,Ra as writeZip}from'./chunk-IA7WTZHI.js';
1
+ export{ma as AUTHORABLE_PARAGRAPH_PROPERTIES,na as AUTHORABLE_RUN_PROPERTIES,m as Budget,l as BudgetError,C as COMPARATORS,o as CancellationController,n as CancellationError,ja as DEFAULT_FORMATTING_DISPLAY_MODE,N as DEFAULT_MAX_EDITABLE_STORY_PARTS,r as DeterministicClock,y as DeterministicMemoryMeter,d as ID_KINDS,w as LIMIT_KEYS,v as LIMIT_SPECS,ba as MAX_CUSTOM_NODE_LABEL_LENGTH,aa as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,K as MAX_FRAGMENT_DECODED_BYTES,q as PortRegistry,p as PortResolutionError,j as RegistryError,Ua as SEARCH_MATCH_LIMIT,Ta as SEARCH_QUERY_MAX,s as SequentialIdentity,M as TreeDocumentStore,O as TreePackageStore,U as addComment,Z as addPackageComment,L as applyFragmentPaste,z as assertLimitInvariants,f as assertValidId,qa as authoredProperties,t as beginOperation,A as canonicalize,Qa as collectReviewItems,Ca as commentBodyText,Da as commentInitials,Pa as commentItemsOf,X as commentPartNameOf,Y as commentsExtendedPartNameOf,D as compareArtifacts,h as compareSemVer,fa as customNodePayloadsByControl,ga as customNodePayloadsOf,$ as deletePackageComments,sa as directParagraphMarkProperties,ra as directParagraphProperties,u as endOperation,I as extractFragmentPackage,Ya as findOccurrences,E as fingerprint,Ha as firstReviewRange,Va as foldCase,wa as formatOwnedRunIds,Aa as formattableRanges,W as hasCommentPart,H as hashAuthored,ab as headlessViewOfStore,ca as insertCustomNodeWrite,ha as insertPackageCustomNode,oa as isAuthorableRunProperty,Xa as isSearchableQuery,e as isValidId,Wa as isWholeWord,Sa as linkRevisionReplies,Ma as locateSites,x as makeLimitCounter,Za as materializeGlossaryPlaceholders,J as mergeFragmentIntoPackage,ua as mergedFontProperty,xa as mergedMultiSettingProperty,ya as mergedParagraphMarkProperties,ta as mergedProperties,T as nextCommentId,$a as openHeadlessDocument,g as parseSemVer,_a as planRevisionBatch,pa as propertyContainer,da as removeCustomNodeWrite,ia as removePackageCustomNode,G as replayFixture,k as resolve,Fa as reviewItemKey,Ga as reviewItemRanges,Oa as revisionItemsOf,va as runAddressRanges,za as runPropertyEdits,Ba as runsCovering,i as satisfies,V as setCommentResolved,_ as setPackageCommentResolved,B as stableHash,ea as sweepCustomNodePayloads,F as validateFixture}from'./chunk-WZX4UGRQ.js';export{lg as ACCEPTED_PARAGRAPH_PROPERTIES,kg as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,zc as CONTENT_CONTROL_ID_MAX,Rc as CONTENT_CONTROL_PROPERTY_ORDER,ch as CUSTOM_NODE_XPATH_PREFIX,Og as CUSTOM_XML_PROPS_REL,Pg as CUSTOM_XML_PROPS_TYPE,Ng as CUSTOM_XML_REL,G as DANGEROUS_KEYS,Qg as DATASTORE_NAMESPACE_URI,Hf as DEFAULT_ENDNOTE_PROPERTIES,Gf as DEFAULT_FOOTNOTE_PROPERTIES,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,sc as DEFAULT_OMML_LIMITS,dc as DEFAULT_OOXML_PACKAGE_LIMITS,Ig as DEFAULT_VIEW_SETTINGS,Pa as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,Zd as FIELD_ATOM_CHAR,i as HARD_CEILINGS,Ya as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,db as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,yc as MAX_CONTENT_CONTROLS_PER_PART,xc as MAX_CONTENT_CONTROL_NESTING,rd as MAX_NOTES_PER_PART,Uf as MAX_NOTE_REFERENCE_PARTS,Tf as MAX_NOTE_REFERENCE_SCAN,wd as MAX_STORY_SDT_NESTING,sb as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Uc as NOTE_ATOM_CHAR,Yc as NOTE_CONTINUATION_SEPARATOR_ID,Wc as NOTE_ID_MAX,Vc as NOTE_ID_MIN,Xc as NOTE_SEPARATOR_ID,Cf as NO_DOCUMENT_PROTECTION,Gg as NO_TRACKING_SETTINGS,rc as OFFICE_MATH_NAMESPACE_URI,Xa as OFFICE_RELATIONSHIP_NAMESPACE_URI,wa as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,Ud as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,ji as TABLE_BORDER_STYLES,ef as TOC_LEVEL_INDENT_TWIPS,we as TOC_MAX_BOOKMARKS_PER_REFRESH,ve as TOC_MAX_ENTRIES,xe as TOC_MAX_FIELD_NESTING,ue as TOC_MAX_INSTRUCTION_CHARS,ye as TOC_MAX_PAGE_PASSES,jg as TREE_DOC_OP_KINDS,$e as TWIPS_PER_POINT,wg as W15_NAMESPACE_URI,da as WML_NAMESPACE_URI,fa as XMLNS_NAMESPACE_URI,ea as XML_NAMESPACE_URI,Tc as allocateContentControlId,Tb as allocateDrawingPropertyId,sd as allocateNoteId,Oa as applyEdits,Ff as applyHeaderFooterLifecycleOp,ng as applyNoteLifecycleOp,Ci as applyTreeOp,t as asciiFold,ba as assertValidQName,se as atomicFieldSpansOf,qd as atomicNoteSpansOf,yf as authorableHyperlinkTarget,Nf as authoredDocumentEndnoteProperties,Mf as authoredDocumentFootnoteProperties,Kf as authoredEndnotePropertiesFromSectPr,Jf as authoredFootnotePropertiesFromSectPr,Ad as bodyStoryRoot,kf as bookmarkPairNodes,gh as boundCustomXmlNodeIdOf,eh as boundCustomXmlNodeIds,fh as boundCustomXmlNodeIdsInPackage,_e as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,hf as buildTocContentControl,gf as buildTocEntryParagraph,wf as buildingBlockGalleryOf,xf as buildingBlocksForControl,vf as buildingBlocksOf,ra as canonicalOoxmlFingerprint,og as cascadeDeletedNoteReferences,Fg as cascadeEmptiedComments,Z as childElements,Id as collectFlowBlocks,Ea as collectNodeIds,Xf as collectNoteReferences,Zf as collectPackageNoteReferences,Ih as collectRevisionSites,Nd as collectSectionPropertyNodes,Cd as collectStoryParagraphs,xg as commentAnchorsOfStory,zg as commentsOfPart,R as containsCssFetch,Dc as contentControlContentChildren,Hc as contentControlContentNodeOf,Gd as contentControlContentOf,Gc as contentControlEndPropertiesNodeOf,Kc as contentControlLevelOf,Fc as contentControlPropertiesNodeOf,Jc as contentControlPropertiesOf,Nc as contentControlTextOf,Lc as contentControlsIn,hc as contentTypesPartBytes,Db as createImageResourceCache,Fa as createNodeIdAllocator,Vf as createNoteReferenceScanBudget,nd as customMarkFollows,dh as customNodeBinding,Tg as customXmlDataParts,ah as customXmlLabelXPath,Xg as customXmlNodes,bh as customXmlPrefixMappings,Rg as datastoreItemIdFor,Vh as deepParagraphOrderOfPart,Cg as deleteCommentThread,Sd as deobfuscateFont,of as deriveOoxmlIndexes,Be as detectBodyTocs,v as detectDuplicateNames,_f as diagnoseNoteReferences,rf as diffSemanticDigests,pf as digestPart,qi as drawingOpImpact,zf as ensureHyperlinkRelationship,sf as ensureListDefinition,tf as ensureNumberingLevel,vc as equationExpressionToLinearMath,Q as escapeCssString,M as escapeXml,z as extensionKey,je as fieldAtomText,ie as fieldOnOffAttribute,Mc as findContentControl,Ug as findCustomXmlDataPart,Ce as findDetectedToc,Y as findElement,Ha as findNode,vd as findNoteById,Ec as flattenContentControls,_d as fldCharType,he as fldSimpleInstr,Gb as fnv1a32,_c as formatNoteScopeId,Zh as formsProtectionEnabled,uf as glossaryPartOf,Yd as hardBreakAttributes,Vd as hardBreakKind,Xd as hardBreakText,Bg as hasAnyComment,tb as hasBoundedSvgRoot,le as hasLegacyFormFieldData,Ga as hasNode,_a as hyperlinkAnchorOf,$a as hyperlinkRelationshipIdOf,ab as hyperlinkTargetOf,Bb as imageResourceLookupFor,mf as indexStyles,Ye as inlineControlEndingAt,Ze as inlineControlStartingAt,La as insertChildren,ge as instrTextValue,Ed as isContentControl,Fd as isContentControlContent,Bc as isContentControlContentNode,Ac as isContentControlNode,Cc as isContentControlWrapper,ka as isContentRevisionKind,gd as isContinuationSeparatorNode,I as isDangerousKey,vi as isDrawingTreeDocOp,bd as isEndnotesNode,U as isEvaluableField,ke as isFieldChrome,ce as isFldChar,$d as isFldCharNode,fe as isFldSimple,be as isFldSimpleNode,ad as isFootnotesNode,Ef as isHeaderFooterLifecycleOp,Za as isHyperlinkNode,T as isInertExecutable,de as isInstrText,ae as isInstrTextNode,Qf as isLegalEndnotePosition,te as isLegalFldCharType,Rf as isLegalFootnotePosition,Sf as isLegalNumRestart,kd as isNormalNote,pd as isNoteAtomNode,mg as isNoteLifecycleOp,cd as isNoteNode,ed as isNoteRefNode,dd as isNoteReferenceNode,Wd as isPageBreakNode,oa as isRangeMarkerKind,fd as isSeparatorNode,zd as isStoryPart,y as isValidMime,$ as isValidNCName,Eb as isValidParaId,aa as isValidQName,rh as legacyCheckboxFieldsOf,wc as linearMathToOmml,Ab as liveDrawingReferenceCount,Pc as lockForbidsEdit,Qc as lockForbidsRemoval,Hb as mintParaId,Kb as mintedParagraphIdentityAttributes,ag as normalNoteIds,Lb as normalizeParagraphIdentity,r as normalizePartName,od as noteAtomText,id as noteIdOf,hd as noteKindOf,md as noteRefKindOf,ld as noteReferenceKindOf,jd as noteTypeOf,td as notesOf,$f as notesPartHasId,J as nullRecord,Li as observeHistoryGroup,sa as ooxmlTreesEqual,Sc as orderedContentControlProperties,Fb as paraIdOf,Ue as paragraphOffsetIndex,Uh as paragraphOrderOfPart,Di as paragraphTextOf,Ia as parentNodeOf,If as parseAuthoredNoteProperties,Ic as parseContentControlId,uc as parseLinearMath,Zc as parseNoteId,$c as parseNoteScopeId,ze as parseTocInstruction,u as partNameKey,jf as planTocEntries,bf as points,df as pointsToTwips,mb as projectDrawing,tc as projectOmmlEquation,Yg as readCustomXmlNode,Df as readDocumentProtection,Td as readEmbeddedFonts,pa as readOnOffChild,ec as readOoxmlPackage,xa as readOoxmlPart,Hg as readTrackingSettings,Jg as readViewSettings,X as readXml,Qa as readZip,Af as relationshipTargetIn,ic as relationshipsOf,kc as relsPartNameFor,Na as removeNode,Ka as replaceChildren,Ma as replaceNode,Mi as reportHistoryGroup,Oc as resolveContentControlLock,B as resolveContentType,jc as resolveContentTypeOf,Pf as resolveEndnoteProperties,Of as resolveFootnoteProperties,Rd as resolveHeaderFooterParts,Qd as resolveHeaderFooterPartsBySection,Pd as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,Wf as resolveNotesPart,E as resolveRelationship,lf as resolveTocRowHeadings,L as sanitizeHref,V as scrubExport,_h as sectionProtectsForms,Se as segmentsOf,qf as semanticDigest,qa as serializeOoxmlPart,Lf as settingsPartOf,ub as sniffImageMime,Bd as storyParagraphs,yd as storyRootsOf,nf as stylesPartOf,_ as textContent,ph as textFormFieldsOf,Mg as textboxStoriesInPart,Ag as threadStateOfPart,K as toSafeRecord,if as tocEntryText,ff as tocLeftIndentTwips,af as twips,cf as twipsToPoints,Ib as usedParaIds,ri as validateDrawingOp,x as validateExternalTarget,wb as validateGifHeader,xb as validateJpegHeader,ua as validateOoxmlPart,qc as validatePackageInvariants,vb as validatePngHeader,zb as validateRasterHeader,Ji as validateTreeOp,Jb as w14RootPrefix,Kd as walkAllStoryParagraphs,Ld as walkParagraphInline,Jd as walkStoryBlocks,Wb as withBinaryPart,lc as withContentTypeOverride,Vg as withCustomXmlDataPart,Zg as withCustomXmlNode,Xb as withEmbeddedImage,hh as withExportedCustomNodes,pc as withNewPart,gc as withPart,oc as withRelationship,Wg as withoutCustomXmlDataPart,_g as withoutCustomXmlNode,$g as withoutOrphanCustomXmlNodes,ac as withoutUnreferencedImagePart,ui as wrapTargetToAnchorSpec,fc as writeOoxmlPackage,Ra as writeZip}from'./chunk-NG6IQ4SI.js';
@@ -1,4 +1,5 @@
1
- import { b as OoxmlPackage, p as SupportedImageMime, O as OoxmlPart, a as OoxmlNode, e as OoxmlElement, w as OoxmlParagraphNode, x as OoxmlNoteNode, y as OoxmlContinuationSeparatorNode, z as OoxmlEndnotesNode, B as OoxmlFootnotesNode, C as OoxmlNoteRefNode, E as OoxmlNoteReferenceNode, F as OoxmlSeparatorNode, u as RevisionAttributionInput, t as ImageDecodePort, G as DrawingTreeDocOp, H as ImpactClass, T as TreeDocOp, l as TreeOpRejection } from './tree-op-types-DbdM7fJV.js';
1
+ import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-C4ilLzog.js';
2
+ import { j as OoxmlPackage, O as OoxmlPart, i as OoxmlNode, a1 as OoxmlElement, at as OoxmlParagraphNode, au as OoxmlNoteNode, av as OoxmlContinuationSeparatorNode, aw as OoxmlEndnotesNode, ax as OoxmlFootnotesNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, aA as OoxmlSeparatorNode, as as RevisionAttributionInput, aB as DrawingTreeDocOp, aC as ImpactClass, W as TreeDocOp, a5 as TreeOpRejection } from './types-barrel-DLB11iSY.js';
2
3
 
3
4
  /** A freshly allocated drawing property id, or the reason one could not be minted. */
4
5
  type DrawingPropertyIdResult = {
@@ -560,6 +561,25 @@ interface ApplyImagePropertiesInput {
560
561
  readonly hyperlink: string | null;
561
562
  }
562
563
 
564
+ /**
565
+ * The identity of one continuous user gesture, for history grouping.
566
+ *
567
+ * A live color picker, a font-size stepper or a spacing slider applies every intermediate
568
+ * value so the document updates under the pointer, and each of those writes is a
569
+ * transaction in its own right — it must render, and a collaborator must receive it. What
570
+ * they are NOT is separate undo steps. The caller mints one token when the gesture starts
571
+ * (`Symbol('color-drag')`) and passes it with every write until the gesture ends.
572
+ *
573
+ * A symbol rather than a string, so two unrelated callers cannot collide by naming their
574
+ * gesture the same way, and so a token cannot outlive its gesture by accident through
575
+ * serialization.
576
+ */
577
+ type HistoryGroup = symbol;
578
+ type HistoryCaptureKind = 'started' | 'extended' | 'split';
579
+ type HistoryCaptureReason = 'package-unit' | 'composition';
580
+ declare function observeHistoryGroup<T>(group: HistoryGroup, report: (kind: HistoryCaptureKind, reason?: HistoryCaptureReason) => void, run: () => T): T;
581
+ declare function reportHistoryGroup(group: HistoryGroup | undefined, kind: HistoryCaptureKind, reason?: HistoryCaptureReason): void;
582
+
563
583
  /** A selection the caller wants restored when an entry is undone or redone. */
564
584
  /** A selection captured with a transaction, so undo restores where the caret was. */
565
585
  interface SelectionMark {
@@ -693,6 +713,12 @@ interface TransactOptions {
693
713
  readonly minimumImpact?: ImpactClass;
694
714
  /** Story identity stamped onto the published ModelChange (package-aware targeting). */
695
715
  readonly story?: TreeStoryRef;
716
+ /**
717
+ * The gesture this transaction belongs to: consecutive transactions carrying the SAME
718
+ * token extend one history entry (package from before the first, selection after the
719
+ * latest). Another token, none, undo or redo closes the group. See {@link HistoryGroup}.
720
+ */
721
+ readonly historyGroup?: HistoryGroup;
696
722
  }
697
723
  interface HistoryEntry {
698
724
  /**
@@ -707,6 +733,12 @@ interface HistoryEntry {
707
733
  readonly revision: number;
708
734
  readonly selectionBefore: SelectionMark | null;
709
735
  readonly selectionAfter: SelectionMark | null;
736
+ /**
737
+ * The gesture this entry is still collecting, while it is the newest entry and nothing
738
+ * has closed it. Only ever set on the top of the undo stack: {@link closeHistoryGroup}
739
+ * strips it, and undo and redo never copy it onto the entries they push.
740
+ */
741
+ readonly group?: HistoryGroup;
710
742
  }
711
743
  /** How a store is constructed: its limits, its history depth, and its identity source. */
712
744
  interface TreeDocumentStoreOptions {
@@ -846,6 +878,13 @@ declare class TreeDocumentStore {
846
878
  * in place. An IME cancel is not an undo request; the caller decides what to revert.
847
879
  */
848
880
  cancelComposition(): void;
881
+ /**
882
+ * Close the open history group, if any: the next transaction records its own entry.
883
+ * The store does this itself for another token, none, undo and redo; the package
884
+ * coordinator does it for history moving ABOVE the store (a package unit, another
885
+ * story's pointer), which the store cannot see.
886
+ */
887
+ closeHistoryGroup(): void;
849
888
  undo(): TreeModelChange | null;
850
889
  redo(): TreeModelChange | null;
851
890
  /** The selection to restore for the entry `undo()` would reverse next. */
@@ -1039,7 +1078,9 @@ declare class TreePackageStore {
1039
1078
  * Promote a story transaction that wrote package bytes to one package undo pointer.
1040
1079
  * Used by image intents and note-reference cascade.
1041
1080
  */
1042
- promoteStoryTransactionToPackageUnit(beforePackage: OoxmlPackage, store: TreeDocumentStore, checkpoint: TreeDocumentCheckpoint, beforeDepth: number): TreeModelChange;
1081
+ promoteStoryTransactionToPackageUnit(beforePackage: OoxmlPackage, store: TreeDocumentStore, checkpoint: TreeDocumentCheckpoint,
1082
+ /** Unused: the restore is unconditional now. Kept so the public signature stands. */
1083
+ _beforeDepth?: number): TreeModelChange;
1043
1084
  /**
1044
1085
  * Publish a story transaction the coordinator did not run.
1045
1086
  *
@@ -1131,4 +1172,4 @@ type FragmentPasteResult = (Extract<PackageTransactResult, {
1131
1172
  */
1132
1173
  declare function applyFragmentPaste(store: TreePackageStore, scope: StoryScope, input: FragmentPasteInput): FragmentPasteResult;
1133
1174
 
1134
- export { type TransactResult as $, type ApplyImagePropertiesInput as A, type NoteDiagnostic as B, type CascadeDeletedNoteReferencesOptions as C, DEFAULT_MAX_EDITABLE_STORY_PARTS as D, type NoteDiagnosticCode as E, type FragmentPasteInput as F, type NoteLifecycleImpact as G, type HeaderFooterVariant as H, type InsertImageInput as I, type NoteLifecycleOp as J, type NoteLifecycleOptions as K, type NoteLifecycleRejection as L, MAX_FRAGMENT_DECODED_BYTES as M, type NoteKind as N, type NoteLifecycleResult as O, type NoteReferenceHit as P, type NoteReferenceScanBudget as Q, type ReplaceImageOptions as R, type StoryScope as S, TreePackageStore as T, type NoteType as U, type PackageTransactResult as V, type RemotePackageAttribution as W, type StoryResolveResult as X, type TreeDocumentStoreOptions as Y, type TreePackageStoreOptions as Z, type TreeStoryRef as _, type StoryTargetRejection as a, type TransactionContext as a0, allocateDrawingPropertyId as a1, allocateNoteId as a2, applyFragmentPaste as a3, applyHeaderFooterLifecycleOp as a4, applyNoteLifecycleOp as a5, atomicNoteSpansOf as a6, cascadeDeletedNoteReferences as a7, collectNoteReferences as a8, collectPackageNoteReferences as a9, parseNoteScopeId as aA, resolveHeaderFooterParts as aB, resolveHeaderFooterPartsBySection as aC, resolveHeaderFooterResolutionBySection as aD, resolveNotesPart as aE, withBinaryPart as aF, withEmbeddedImage as aG, withoutUnreferencedImagePart as aH, collectSectionPropertyNodes as aa, createNoteReferenceScanBudget as ab, customMarkFollows as ac, diagnoseNoteReferences as ad, findNoteById as ae, formatNoteScopeId as af, isContinuationSeparatorNode as ag, isEndnotesNode as ah, isFootnotesNode as ai, isHeaderFooterLifecycleOp as aj, isNormalNote as ak, isNoteAtomNode as al, isNoteLifecycleOp as am, isNoteNode as an, isNoteRefNode as ao, isNoteReferenceNode as ap, isSeparatorNode as aq, normalNoteIds as ar, noteAtomText as as, noteIdOf as at, noteKindOf as au, noteRefKindOf as av, noteReferenceKindOf as aw, notesOf as ax, notesPartHasId as ay, parseNoteId as az, type TreeModelChange as b, type HeaderFooterParts as c, type HeaderFooterSectionResolution as d, TreeDocumentStore as e, type SelectionMark as f, type TransactOptions as g, type ImageIntentResult as h, type FragmentPasteResult as i, type AtomicNoteSpan as j, type DrawingPropertyIdResult as k, type HeaderFooterKind as l, type HeaderFooterLifecycleImpact as m, noteTypeOf as n, type HeaderFooterLifecycleOp as o, type HeaderFooterLifecycleRejection as p, type HeaderFooterLifecycleResult as q, type HeaderFooterSlotMeta as r, MAX_NOTES_PER_PART as s, MAX_NOTE_REFERENCE_PARTS as t, MAX_NOTE_REFERENCE_SCAN as u, NOTE_ATOM_CHAR as v, NOTE_CONTINUATION_SEPARATOR_ID as w, NOTE_ID_MAX as x, NOTE_ID_MIN as y, NOTE_SEPARATOR_ID as z };
1175
+ export { type TreePackageStoreOptions as $, type ApplyImagePropertiesInput as A, NOTE_ID_MIN as B, type CascadeDeletedNoteReferencesOptions as C, DEFAULT_MAX_EDITABLE_STORY_PARTS as D, NOTE_SEPARATOR_ID as E, type FragmentPasteInput as F, type NoteDiagnostic as G, type HeaderFooterVariant as H, type InsertImageInput as I, type NoteDiagnosticCode as J, type NoteLifecycleImpact as K, type NoteLifecycleOp as L, MAX_FRAGMENT_DECODED_BYTES as M, type NoteKind as N, type NoteLifecycleOptions as O, type NoteLifecycleRejection as P, type NoteLifecycleResult as Q, type ReplaceImageOptions as R, type StoryScope as S, TreePackageStore as T, type NoteReferenceHit as U, type NoteReferenceScanBudget as V, type NoteType as W, type PackageTransactResult as X, type RemotePackageAttribution as Y, type StoryResolveResult as Z, type TreeDocumentStoreOptions as _, type StoryTargetRejection as a, type TreeStoryRef as a0, type TransactResult as a1, type TransactionContext as a2, allocateDrawingPropertyId as a3, allocateNoteId as a4, applyFragmentPaste as a5, applyHeaderFooterLifecycleOp as a6, applyNoteLifecycleOp as a7, atomicNoteSpansOf as a8, cascadeDeletedNoteReferences as a9, notesOf as aA, notesPartHasId as aB, observeHistoryGroup as aC, parseNoteId as aD, parseNoteScopeId as aE, resolveHeaderFooterParts as aF, resolveHeaderFooterPartsBySection as aG, resolveHeaderFooterResolutionBySection as aH, resolveNotesPart as aI, withBinaryPart as aJ, withEmbeddedImage as aK, withoutUnreferencedImagePart as aL, collectNoteReferences as aa, collectPackageNoteReferences as ab, collectSectionPropertyNodes as ac, createNoteReferenceScanBudget as ad, customMarkFollows as ae, diagnoseNoteReferences as af, findNoteById as ag, formatNoteScopeId as ah, isContinuationSeparatorNode as ai, isEndnotesNode as aj, isFootnotesNode as ak, isHeaderFooterLifecycleOp as al, isNormalNote as am, isNoteAtomNode as an, isNoteLifecycleOp as ao, isNoteNode as ap, isNoteRefNode as aq, isNoteReferenceNode as ar, isSeparatorNode as as, normalNoteIds as at, noteAtomText as au, noteIdOf as av, noteKindOf as aw, noteRefKindOf as ax, noteReferenceKindOf as ay, noteTypeOf as az, type HistoryGroup as b, type TreeModelChange as c, type HeaderFooterParts as d, type HeaderFooterSectionResolution as e, TreeDocumentStore as f, type SelectionMark as g, type TransactOptions as h, type ImageIntentResult as i, type FragmentPasteResult as j, type AtomicNoteSpan as k, type DrawingPropertyIdResult as l, type HeaderFooterKind as m, type HeaderFooterLifecycleImpact as n, type HeaderFooterLifecycleOp as o, type HeaderFooterLifecycleRejection as p, type HeaderFooterLifecycleResult as q, reportHistoryGroup as r, type HeaderFooterSlotMeta as s, type HistoryCaptureKind as t, MAX_NOTES_PER_PART as u, MAX_NOTE_REFERENCE_PARTS as v, MAX_NOTE_REFERENCE_SCAN as w, NOTE_ATOM_CHAR as x, NOTE_CONTINUATION_SEPARATOR_ID as y, NOTE_ID_MAX as z };
@@ -1,11 +1,11 @@
1
- import { S as StoryScope, f as SelectionMark, g as TransactOptions, a as StoryTargetRejection, b as TreeModelChange, c as HeaderFooterParts, d as HeaderFooterSectionResolution, I as InsertImageInput, h as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, i as FragmentPasteResult } from './tree-package-fragment-1pdDnhZ_.js';
2
- import { T as TreeDocOp, O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage, e as OoxmlElement, p as SupportedImageMime, t as ImageDecodePort, u as RevisionAttributionInput } from './tree-op-types-DbdM7fJV.js';
3
- import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-BqIv94ei.js';
4
- import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-C4ttQJ5H.js';
5
- import { a as ReviewItem } from './review-items-CJz-kAW8.js';
1
+ import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection, c as TreeModelChange, d as HeaderFooterParts, e as HeaderFooterSectionResolution, I as InsertImageInput, i as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, j as FragmentPasteResult } from './tree-package-fragment-CwJDixNs.js';
2
+ import { W as TreeDocOp, O as OoxmlPart, i as OoxmlNode, j as OoxmlPackage, a1 as OoxmlElement, a as ReviewItem, as as RevisionAttributionInput } from './types-barrel-DLB11iSY.js';
3
+ import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-C4ilLzog.js';
4
+ import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-05qS32px.js';
5
+ import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-B7nAiR7P.js';
6
6
  import { Node } from 'prosemirror-model';
7
7
  import { CollaborationDocumentPort } from './collaboration/replication.js';
8
- import { V as ViewScope } from './editor-scope-DZJT4ukT.js';
8
+ import { V as ViewScope } from './editor-scope-OHPwVQ5l.js';
9
9
 
10
10
  /**
11
11
  * Why an edited projection could not be mapped back into tree ops.
@@ -254,8 +254,8 @@ interface TreeApplyResult {
254
254
  /** Present when the edit was refused, so a host can report WHY rather than a silent no-op. */
255
255
  readonly reason?: TreeBindingRejection | StoryTargetRejection | string;
256
256
  }
257
- /** Optional collaboration attribution for a direct tree-op transaction. */
258
- type TreeApplyOptions = Pick<TransactOptions, 'origin' | 'actorId' | 'operationId' | 'recordsHistory'> & {
257
+ /** Optional collaboration attribution and history grouping for a direct tree-op transaction. */
258
+ type TreeApplyOptions = Pick<TransactOptions, 'origin' | 'actorId' | 'operationId' | 'recordsHistory' | 'historyGroup'> & {
259
259
  /** Package resources committed in the same transaction as the tree operations. */
260
260
  readonly packageEdits?: readonly ((pkg: OoxmlPackage) => OoxmlPackage)[];
261
261
  };