@docx-editor.dev/core 2.27.0 → 2.29.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 (124) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +76 -16
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +31 -12
  6. package/dist/binding.js +1 -1
  7. package/dist/{index-CkQVRJtJ.d.ts → chrome-print-CAs51cpq.d.ts} +248 -115
  8. package/dist/chunk-236O4YQW.js +2 -0
  9. package/dist/chunk-4HENIAFG.js +1 -0
  10. package/dist/chunk-6JPL6ZAS.cjs +5 -0
  11. package/dist/chunk-6ZQP4HQ7.js +3 -0
  12. package/dist/{chunk-2GK7YQB2.cjs → chunk-7WQ7AAHW.cjs} +1 -1
  13. package/dist/chunk-BCXH4BXB.js +5 -0
  14. package/dist/chunk-BY2ACZZ6.cjs +1 -0
  15. package/dist/chunk-CAJEXXVG.cjs +4 -0
  16. package/dist/chunk-CPWLFPWC.js +30 -0
  17. package/dist/chunk-D7ZMDMPX.cjs +3 -0
  18. package/dist/chunk-DOHF6FA7.cjs +30 -0
  19. package/dist/chunk-DVX32P2P.js +27 -0
  20. package/dist/chunk-E4LOMDNL.js +1 -0
  21. package/dist/chunk-EKLM7NWB.cjs +7 -0
  22. package/dist/chunk-G3K63G7P.cjs +27 -0
  23. package/dist/chunk-G4HOFIKJ.js +1 -0
  24. package/dist/chunk-JLVBDYVQ.cjs +2 -0
  25. package/dist/chunk-LQX36Z5P.js +7 -0
  26. package/dist/chunk-LSZ6KPKK.js +1 -0
  27. package/dist/chunk-MM5QBMTE.cjs +1 -0
  28. package/dist/chunk-OMCG63ZF.js +1 -0
  29. package/dist/chunk-OSFOJTHU.cjs +18 -0
  30. package/dist/chunk-RCLZXP3B.js +2 -0
  31. package/dist/chunk-T6K2QYNZ.cjs +2 -0
  32. package/dist/chunk-TRGAVV2Y.js +4 -0
  33. package/dist/chunk-U4JZVSOE.js +2 -0
  34. package/dist/chunk-UHHYFIDT.cjs +1 -0
  35. package/dist/chunk-V3N4SOAK.cjs +1 -0
  36. package/dist/chunk-W35WTWAO.cjs +1 -0
  37. package/dist/chunk-YQ5G6LC7.js +18 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +42 -6
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.cjs +1 -1
  42. package/dist/collaboration.d.ts +99 -7
  43. package/dist/collaboration.js +1 -1
  44. package/dist/contracts/document.d.ts +18 -3
  45. package/dist/contracts/editor.d.ts +19 -10
  46. package/dist/contracts/interaction.d.ts +31 -2
  47. package/dist/contracts/modules.cjs +1 -1
  48. package/dist/contracts/modules.d.ts +56 -8
  49. package/dist/contracts/modules.js +1 -1
  50. package/dist/contracts/types.d.ts +11 -2
  51. package/dist/{custom-node-writes-Vzpq9I8_.d.ts → custom-node-writes-Bn6uciLb.d.ts} +2 -2
  52. package/dist/diagnostic-context-B8M79cfK.d.ts +30 -0
  53. package/dist/diagnostic-hints-BeVjfNOv.d.ts +113 -0
  54. package/dist/{document-protection-9zpIHWTE.d.ts → document-protection-CUb55pl_.d.ts} +2 -2
  55. package/dist/{editor-B3OBYNrF.d.ts → editor-CZQZmTIU.d.ts} +770 -141
  56. package/dist/{editor-scope-OHPwVQ5l.d.ts → editor-scope-7o9xweiJ.d.ts} +1 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +5 -5
  59. package/dist/editor.d.ts +439 -33
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +23 -14
  63. package/dist/export.js +2 -2
  64. package/dist/failure-NS2lsya4.d.ts +115 -0
  65. package/dist/{font-resolver-DN0xNOf_.d.ts → font-resolver-lSBLirLR.d.ts} +3 -3
  66. package/dist/{headless-document-view-ICYqNkQ1.d.ts → headless-document-view-pp3q7wIh.d.ts} +2 -2
  67. package/dist/{image-resources-BDFxcu7W.d.ts → image-resources-tXLQShoC.d.ts} +10 -10
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.d.ts +92 -20
  70. package/dist/index.js +1 -1
  71. package/dist/{layout-shaping-BvZD_VKP.d.ts → layout-shaping-BD-dF_rn.d.ts} +1 -1
  72. package/dist/layout.cjs +1 -1
  73. package/dist/layout.d.ts +168 -79
  74. package/dist/layout.js +1 -1
  75. package/dist/{note-properties-CkAk7g-n.d.ts → note-properties-qQUjO1GQ.d.ts} +3 -3
  76. package/dist/{omml-equation-DuczgG5o.d.ts → omml-equation-BUbU0utM.d.ts} +1 -1
  77. package/dist/output.cjs +1 -1
  78. package/dist/output.d.ts +18 -9
  79. package/dist/output.js +1 -1
  80. package/dist/{protocol-aKYr8r3u.d.ts → protocol-DYzzz2ej.d.ts} +44 -4
  81. package/dist/{review-paragraph-order-Ddj5d6rp.d.ts → review-paragraph-order-CN_0l2Cb.d.ts} +5 -2
  82. package/dist/{semantic-cell-selection-DoqYCz_F.d.ts → semantic-cell-selection-eYag3P47.d.ts} +8 -213
  83. package/dist/{semantic-interaction-G0bjmmmk.d.ts → semantic-interaction-kR_QB845.d.ts} +25 -34
  84. package/dist/{semantic-paint-CsMzF8-O.d.ts → semantic-paint-ZayFF3tD.d.ts} +17 -5
  85. package/dist/{semantic-record-queries-1du6lQqS.d.ts → semantic-record-queries-Bsgth6lv.d.ts} +1 -1
  86. package/dist/{semantic-records-B9OolWGN.d.ts → semantic-records-DQmumPgL.d.ts} +1367 -884
  87. package/dist/store.cjs +1 -1
  88. package/dist/store.d.ts +1611 -1586
  89. package/dist/store.js +1 -1
  90. package/dist/{tree-package-fragment-DYZIk1rY.d.ts → tree-package-store-CovjNARF.d.ts} +157 -137
  91. package/dist/{tree-session-contract-DQVJOOkv.d.ts → tree-session-contract-CZVAGl51.d.ts} +8 -6
  92. package/dist/{types-barrel-BFKR8Pzp.d.ts → types-barrel-DuC5QBNC.d.ts} +352 -231
  93. package/package.json +3 -3
  94. package/dist/chunk-4KZ6L5YF.cjs +0 -15
  95. package/dist/chunk-55AT3MOU.cjs +0 -25
  96. package/dist/chunk-6ZQMII6V.js +0 -1
  97. package/dist/chunk-7IGCWG4H.js +0 -2
  98. package/dist/chunk-7MYITTAH.js +0 -5
  99. package/dist/chunk-AVKVRU7Z.cjs +0 -5
  100. package/dist/chunk-CWRBFNK5.cjs +0 -5
  101. package/dist/chunk-DGPA3TST.cjs +0 -27
  102. package/dist/chunk-DNXVNQEO.js +0 -1
  103. package/dist/chunk-FQN4KSFL.cjs +0 -7
  104. package/dist/chunk-GVUOWHTO.cjs +0 -1
  105. package/dist/chunk-GWQJ5774.js +0 -5
  106. package/dist/chunk-HAQ72KD7.js +0 -1
  107. package/dist/chunk-HO5XFO32.cjs +0 -3
  108. package/dist/chunk-IGR23DV2.js +0 -1
  109. package/dist/chunk-JSIX2EOH.js +0 -3
  110. package/dist/chunk-K246T47S.cjs +0 -1
  111. package/dist/chunk-KAXOGCGA.js +0 -1
  112. package/dist/chunk-LZLTN5A3.cjs +0 -1
  113. package/dist/chunk-NBCVVZOM.cjs +0 -1
  114. package/dist/chunk-O5INAWZQ.js +0 -1
  115. package/dist/chunk-OHAXVTWG.cjs +0 -1
  116. package/dist/chunk-S74GRBNE.js +0 -7
  117. package/dist/chunk-UBLUVNZR.js +0 -27
  118. package/dist/chunk-UMRSBLO7.js +0 -15
  119. package/dist/chunk-VIPMGGUT.js +0 -25
  120. package/dist/chunk-WG4KMSX2.cjs +0 -2
  121. package/dist/chunk-WRLKVNNR.cjs +0 -1
  122. package/dist/chunk-ZU7IVN6G.js +0 -2
  123. package/dist/failure-BIPVQbRm.d.ts +0 -65
  124. package/dist/revision-projection-CSNFudZY.d.ts +0 -242
package/dist/store.js CHANGED
@@ -1 +1 @@
1
- export{o as Budget,n as BudgetError,F as COMPARATORS,q as CancellationController,p as CancellationError,W as DEFAULT_MAX_EDITABLE_STORY_PARTS,t as DeterministicClock,A as DeterministicMemoryMeter,f as ID_KINDS,y as LIMIT_KEYS,x as LIMIT_SPECS,ka as MAX_CUSTOM_NODE_LABEL_LENGTH,ja as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,T as MAX_FRAGMENT_DECODED_BYTES,s as PortRegistry,r as PortResolutionError,l as RegistryError,Sa as SEARCH_MATCH_LIMIT,Ra as SEARCH_QUERY_MAX,u as SequentialIdentity,V as TreeDocumentStore,X as TreePackageStore,ba as addComment,ga as addPackageComment,U as applyFragmentPaste,B as assertLimitInvariants,h as assertValidId,v as beginOperation,C as canonicalize,Oa as collectReviewItems,Ha as commentBodyText,Ja as commentInitials,Na as commentItemsOf,ea as commentPartNameOf,fa as commentsExtendedPartNameOf,G as compareArtifacts,j as compareSemVer,oa as customNodePayloadsByControl,pa as customNodePayloadsOf,ia as deletePackageComments,w as endOperation,R as extractFragmentPackage,Wa as findOccurrences,H as fingerprint,va as firstReviewRange,Ta as foldCase,da as hasCommentPart,K as hashAuthored,bb as headlessViewOfStore,la as insertCustomNodeWrite,qa as insertPackageCustomNode,Va as isSearchableQuery,g as isValidId,Ua as isWholeWord,Qa as linkRevisionReplies,Ka as locateSites,z as makeLimitCounter,Xa as materializeGlossaryPlaceholders,S as mergeFragmentIntoPackage,aa as nextCommentId,ab as openHeadlessDocument,i as parseSemVer,Ya as planRevisionBatch,ma as removeCustomNodeWrite,ra as removePackageCustomNode,J as replayFixture,m as resolve,ta as reviewItemKey,ua as reviewItemRanges,Ma as revisionItemsOf,k as satisfies,ca as setCommentResolved,ha as setPackageCommentResolved,D as stableHash,na as sweepCustomNodePayloads,I as validateFixture}from'./chunk-GWQJ5774.js';export{fh as ACCEPTED_PARAGRAPH_PROPERTIES,eh as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,gh as AUTHORABLE_PARAGRAPH_PROPERTIES,hh as AUTHORABLE_RUN_PROPERTIES,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,Ab as CONTENT_CONTROL_ID_MAX,Sb as CONTENT_CONTROL_PROPERTY_ORDER,ni as CUSTOM_NODE_XPATH_PREFIX,Zh as CUSTOM_XML_PROPS_REL,_h as CUSTOM_XML_PROPS_TYPE,Yh as CUSTOM_XML_REL,G as DANGEROUS_KEYS,$h as DATASTORE_NAMESPACE_URI,wg as DEFAULT_ENDNOTE_PROPERTIES,vg as DEFAULT_FOOTNOTE_PROPERTIES,bh as DEFAULT_FORMATTING_DISPLAY_MODE,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,Ce as DEFAULT_OMML_LIMITS,me as DEFAULT_OOXML_PACKAGE_LIMITS,Th as DEFAULT_VIEW_SETTINGS,Bd as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,Ve as FIELD_ATOM_CHAR,i as HARD_CEILINGS,id as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,pd as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,zb as MAX_CONTENT_CONTROLS_PER_PART,yb as MAX_CONTENT_CONTROL_NESTING,sc as MAX_NOTES_PER_PART,Jg as MAX_NOTE_REFERENCE_PARTS,Ig as MAX_NOTE_REFERENCE_SCAN,xc as MAX_STORY_SDT_NESTING,Od as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Vb as NOTE_ATOM_CHAR,Zb as NOTE_CONTINUATION_SEPARATOR_ID,Xb as NOTE_ID_MAX,Wb as NOTE_ID_MIN,Yb as NOTE_SEPARATOR_ID,rg as NO_DOCUMENT_PROTECTION,Rh as NO_TRACKING_SETTINGS,Be as OFFICE_MATH_NAMESPACE_URI,hd as OFFICE_RELATIONSHIP_NAMESPACE_URI,za as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,cb as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,Lj as TABLE_BORDER_STYLES,Yf as TOC_LEVEL_INDENT_TWIPS,sf as TOC_MAX_BOOKMARKS_PER_REFRESH,rf as TOC_MAX_ENTRIES,tf as TOC_MAX_FIELD_NESTING,qf as TOC_MAX_INSTRUCTION_CHARS,uf as TOC_MAX_PAGE_PASSES,dh as TREE_DOC_OP_KINDS,Vc as TWIPS_PER_POINT,Hh as W15_NAMESPACE_URI,fa as WML_NAMESPACE_URI,ha as XMLNS_NAMESPACE_URI,ga as XML_NAMESPACE_URI,Ub as allocateContentControlId,ae as allocateDrawingPropertyId,tc as allocateNoteId,Ra as applyEdits,ug as applyHeaderFooterLifecycleOp,Ch as applyNoteLifecycleOp,dk as applyTreeOp,t as asciiFold,ba as assertValidQName,of as atomicFieldSpansOf,rc as atomicNoteSpansOf,ng as authorableHyperlinkTarget,Cg as authoredDocumentEndnoteProperties,Bg as authoredDocumentFootnoteProperties,zg as authoredEndnotePropertiesFromSectPr,yg as authoredFootnotePropertiesFromSectPr,kh as authoredProperties,Bc as bodyStoryRoot,cg as bookmarkPairNodes,ri as boundCustomXmlNodeIdOf,pi as boundCustomXmlNodeIds,qi as boundCustomXmlNodeIdsInPackage,Xf as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,$f as buildTocContentControl,_f as buildTocEntryParagraph,lg as buildingBlockGalleryOf,mg as buildingBlocksForControl,kg as buildingBlocksOf,ua as canonicalOoxmlFingerprint,Dh as cascadeDeletedNoteReferences,Qh as cascadeEmptiedComments,Z as childElements,Jc as collectFlowBlocks,Ha as collectNodeIds,Mg as collectNoteReferences,Og as collectPackageNoteReferences,ej as collectRevisionSites,Oe as collectSectionPropertyNodes,Dc as collectStoryParagraphs,Ih as commentAnchorsOfStory,Kh as commentsOfPart,R as containsCssFetch,Eb as contentControlContentChildren,Ib as contentControlContentNodeOf,Hc as contentControlContentOf,Hb as contentControlEndPropertiesNodeOf,Lb as contentControlLevelOf,Gb as contentControlPropertiesNodeOf,Kb as contentControlPropertiesOf,Ob as contentControlTextOf,Mb as contentControlsIn,qe as contentTypesPartBytes,Zd as createImageResourceCache,Ia as createNodeIdAllocator,Kg as createNoteReferenceScanBudget,oc as customMarkFollows,oi as customNodeBinding,ci as customXmlDataParts,li as customXmlLabelXPath,gi as customXmlNodes,mi as customXmlPrefixMappings,ai as datastoreItemIdFor,uj as deepParagraphOrderOfPart,Nh as deleteCommentThread,Te as deobfuscateFont,Pc as deriveOoxmlIndexes,xf as detectBodyTocs,v as detectDuplicateNames,Pg as diagnoseNoteReferences,gg as diffSemanticDigests,eg as digestPart,mh as directParagraphMarkProperties,lh as directParagraphProperties,Le as displayMathAlignment,Tj as drawingOpImpact,og as ensureHyperlinkRelationship,hg as ensureListDefinition,ig as ensureNumberingLevel,Fe as equationExpressionToLinearMath,Je as equationsOfAtom,Q as escapeCssString,M as escapeXml,z as extensionKey,ff as fieldAtomText,ef as fieldOnOffAttribute,Nb as findContentControl,di as findCustomXmlDataPart,yf as findDetectedToc,Y as findElement,Ka as findNode,wc as findNoteById,Fb as flattenContentControls,We as fldCharType,df as fldSimpleInstr,jb as fnv1a32,$b as formatNoteScopeId,qh as formatOwnedRunIds,zh as formattableRanges,yj as formsProtectionEnabled,jg as glossaryPartOf,gb as hardBreakAttributes,db as hardBreakKind,fb as hardBreakText,Mh as hasAnyComment,Pd as hasBoundedSvgRoot,hf as hasLegacyFormFieldData,Ja as hasNode,kd as hyperlinkAnchorOf,ld as hyperlinkRelationshipIdOf,md as hyperlinkTargetOf,Xd as imageResourceLookupFor,Nc as indexStyles,Vf as inlineControlEndingAt,Wf as inlineControlStartingAt,Oa as insertChildren,cf as instrTextValue,ih as isAuthorableRunProperty,Fc as isContentControl,Gc as isContentControlContent,Cb as isContentControlContentNode,Bb as isContentControlNode,Db as isContentControlWrapper,na as isContentRevisionKind,hc as isContinuationSeparatorNode,I as isDangerousKey,Yj as isDrawingTreeDocOp,cc as isEndnotesNode,U as isEvaluableField,gf as isFieldChrome,_e as isFldChar,Xe as isFldCharNode,bf as isFldSimple,Ze as isFldSimpleNode,bc as isFootnotesNode,tg as isHeaderFooterLifecycleOp,jd as isHyperlinkNode,T as isInertExecutable,$e as isInstrText,Ye as isInstrTextNode,Fg as isLegalEndnotePosition,pf as isLegalFldCharType,Gg as isLegalFootnotePosition,Hg as isLegalNumRestart,lc as isNormalNote,qc as isNoteAtomNode,Bh as isNoteLifecycleOp,dc as isNoteNode,fc as isNoteRefNode,ec as isNoteReferenceNode,He as isOmmlDisplay,Ie as isOmmlEquationAtom,eb as isPageBreakNode,ra as isRangeMarkerKind,gc as isSeparatorNode,Ac as isStoryPart,y as isValidMime,$ as isValidNCName,hb as isValidParaId,aa as isValidQName,Ci as legacyCheckboxFieldsOf,Ge as linearMathToOmml,Wd as liveDrawingReferenceCount,Qb as lockForbidsEdit,Rb as lockForbidsRemoval,oh as mergedFontProperty,rh as mergedMultiSettingProperty,sh as mergedParagraphMarkProperties,nh as mergedProperties,kb as mintParaId,ob as mintedParagraphIdentityAttributes,Rg as normalNoteIds,qb as normalizeParagraphIdentity,r as normalizePartName,pc as noteAtomText,jc as noteIdOf,ic as noteKindOf,nc as noteRefKindOf,mc as noteReferenceKindOf,kc as noteTypeOf,uc as notesOf,Qg as notesPartHasId,J as nullRecord,mk as observeHistoryGroup,va as ooxmlTreesEqual,Tb as orderedContentControlProperties,ib as paraIdOf,Rf as paragraphOffsetIndex,tj as paragraphOrderOfPart,ek as paragraphTextOf,La as parentNodeOf,xg as parseAuthoredNoteProperties,Jb as parseContentControlId,Ee as parseLinearMath,_b as parseNoteId,ac as parseNoteScopeId,vf as parseTocInstruction,u as partNameKey,bg as planTocEntries,Xc as points,Zc as pointsToTwips,yd as projectDrawing,Me as projectOmmlAtom,Ke as projectOmmlDisplay,De as projectOmmlEquation,jh as propertyContainer,hi as readCustomXmlNode,sg as readDocumentProtection,Ue as readEmbeddedFonts,sa as readOnOffChild,ne as readOoxmlPackage,Aa as readOoxmlPart,Sh as readTrackingSettings,_c as readTwipsMeasure,Uh as readViewSettings,X as readXml,Cd as readZip,pg as relationshipTargetIn,re as relationshipsOf,te as relsPartNameFor,Qa as removeNode,Na as replaceChildren,Pa as replaceNode,nk as reportHistoryGroup,Pb as resolveContentControlLock,B as resolveContentType,se as resolveContentTypeOf,Eg as resolveEndnoteProperties,Dg as resolveFootnoteProperties,Se as resolveHeaderFooterParts,Re as resolveHeaderFooterPartsBySection,Qe as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,Lg as resolveNotesPart,E as resolveRelationship,dg as resolveTocRowHeadings,ph as runAddressRanges,xh as runPropertyEdits,Ah as runsCovering,L as sanitizeHref,V as scrubExport,zj as sectionProtectsForms,Pf as segmentsOf,fg as semanticDigest,ta as serializeOoxmlPart,Ag as settingsPartOf,Qd as sniffImageMime,Cc as storyParagraphs,zc as storyRootsOf,Oc as stylesPartOf,_ as textContent,Ai as textFormFieldsOf,Xh as textboxStoriesInPart,Lh as threadStateOfPart,K as toSafeRecord,ag as tocEntryText,Zf as tocLeftIndentTwips,Wc as twips,Yc as twipsToPoints,lb as usedParaIds,Uj as validateDrawingOp,x as validateExternalTarget,Sd as validateGifHeader,Td as validateJpegHeader,xa as validateOoxmlPart,Ae as validatePackageInvariants,Rd as validatePngHeader,Vd as validateRasterHeader,kk as validateTreeOp,mb as w14RootPrefix,Lc as walkAllStoryParagraphs,Mc as walkParagraphInline,Kc as walkStoryBlocks,de as withBinaryPart,ue as withContentTypeOverride,ei as withCustomXmlDataPart,ii as withCustomXmlNode,ee as withEmbeddedImage,si as withExportedCustomNodes,ze as withNewPart,pe as withPart,ye as withRelationship,fi as withoutCustomXmlDataPart,ji as withoutCustomXmlNode,ki as withoutOrphanCustomXmlNodes,je as withoutUnreferencedImagePart,Xj as wrapTargetToAnchorSpec,oe as writeOoxmlPackage,Dd as writeZip}from'./chunk-UMRSBLO7.js';
1
+ export{j as Budget,i as BudgetError,A as COMPARATORS,l as CancellationController,k as CancellationError,S as DEFAULT_MAX_EDITABLE_STORY_PARTS,o as DeterministicClock,v as DeterministicMemoryMeter,a as ID_KINDS,t as LIMIT_KEYS,s as LIMIT_SPECS,ga as MAX_CUSTOM_NODE_LABEL_LENGTH,fa as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,P as MAX_FRAGMENT_DECODED_BYTES,n as PortRegistry,m as PortResolutionError,g as RegistryError,pa as SEARCH_MATCH_LIMIT,oa as SEARCH_QUERY_MAX,p as SequentialIdentity,R as TreeDocumentStore,T as TreePackageStore,Z as addComment,ca as addPackageComment,Q as applyFragmentPaste,w as assertLimitInvariants,c as assertValidId,q as beginOperation,x as canonicalize,aa as commentPartNameOf,ba as commentsExtendedPartNameOf,B as compareArtifacts,e as compareSemVer,ka as customNodePayloadsByControl,la as customNodePayloadsOf,ea as deletePackageComments,r as endOperation,N as extractFragmentPackage,ta as findOccurrences,C as fingerprint,qa as foldCase,$ as hasCommentPart,F as hashAuthored,Ca as headlessViewOfStore,ha as insertCustomNodeWrite,ma as insertPackageCustomNode,sa as isSearchableQuery,b as isValidId,ra as isWholeWord,u as makeLimitCounter,ua as materializeGlossaryPlaceholders,O as mergeFragmentIntoPackage,Y as nextCommentId,Ba as openHeadlessDocument,d as parseSemVer,va as planRevisionBatch,ia as removeCustomNodeWrite,na as removePackageCustomNode,E as replayFixture,h as resolve,f as satisfies,_ as setCommentResolved,da as setPackageCommentResolved,y as stableHash,ja as sweepCustomNodePayloads,D as validateFixture}from'./chunk-U4JZVSOE.js';export{xh as ACCEPTED_PARAGRAPH_PROPERTIES,wh as ACCEPTED_RUN_PROPERTIES,m as ALL_FROZEN_IDS,yh as AUTHORABLE_PARAGRAPH_PROPERTIES,zh as AUTHORABLE_RUN_PROPERTIES,u as BoundedCounter,h as CANONICAL_MUTATION_ORIGINS,Pb as CONTENT_CONTROL_ID_MAX,fc as CONTENT_CONTROL_PROPERTY_ORDER,Ei as CUSTOM_NODE_XPATH_PREFIX,oi as CUSTOM_XML_PROPS_REL,pi as CUSTOM_XML_PROPS_TYPE,ni as CUSTOM_XML_REL,L as DANGEROUS_KEYS,qi as DATASTORE_NAMESPACE_URI,Pg as DEFAULT_ENDNOTE_PROPERTIES,Og as DEFAULT_FOOTNOTE_PROPERTIES,th as DEFAULT_FORMATTING_DISPLAY_MODE,r as DEFAULT_IMAGE_RESOURCE_LIMITS,o as DEFAULT_LIMITS,Se as DEFAULT_OMML_LIMITS,Be as DEFAULT_OOXML_PACKAGE_LIMITS,ii as DEFAULT_VIEW_SETTINGS,Qd as DEFAULT_ZIP_LIMITS,l as DEPENDENCY_KEY_IDS,M as DangerousKeyError,nf as FIELD_ATOM_CHAR,n as HARD_CEILINGS,xd as HYPERLINK_RELATIONSHIP_TYPE,H as IMAGE_RELATIONSHIP_TYPE,q as IMAGE_RESOURCE_HARD_CEILINGS,Ed as IMAGE_WRAP_TARGETS,X as INERT_EXECUTABLE_KINDS,t as LimitExceededError,Ob as MAX_CONTENT_CONTROLS_PER_PART,Nb as MAX_CONTENT_CONTROL_NESTING,Hc as MAX_NOTES_PER_PART,ah as MAX_NOTE_REFERENCE_PARTS,$g as MAX_NOTE_REFERENCE_SCAN,Mc as MAX_STORY_SDT_NESTING,be as MAX_SVG_SNIFF_BYTES,i as NON_CANONICAL_ORIGINS,ic as NOTE_ATOM_CHAR,mc as NOTE_CONTINUATION_SEPARATOR_ID,kc as NOTE_ID_MAX,jc as NOTE_ID_MIN,lc as NOTE_SEPARATOR_ID,Kg as NO_DOCUMENT_PROTECTION,gi as NO_TRACKING_SETTINGS,Re as OFFICE_MATH_NAMESPACE_URI,wd as OFFICE_RELATIONSHIP_NAMESPACE_URI,Ha as OOXML_NODE_IDENTITY_RULES,g as ORIGIN_IDS,mb as PAGE_BREAK_CHAR,ha as PrefixAllocator,j as RESULT_IDS,k as RUNTIME_PORT_IDS,Dk as TABLE_BORDER_STYLES,pg as TOC_LEVEL_INDENT_TWIPS,Mf as TOC_MAX_BOOKMARKS_PER_REFRESH,Lf as TOC_MAX_ENTRIES,Nf as TOC_MAX_FIELD_NESTING,Kf as TOC_MAX_INSTRUCTION_CHARS,Of as TOC_MAX_PAGE_PASSES,vh as TREE_DOC_OP_KINDS,id as TWIPS_PER_POINT,Yh as W15_NAMESPACE_URI,la as WML_NAMESPACE_URI,na as XMLNS_NAMESPACE_URI,ma as XML_NAMESPACE_URI,hc as allocateContentControlId,pe as allocateDrawingPropertyId,Ic as allocateNoteId,$a as applyEdits,Ng as applyHeaderFooterLifecycleOp,Uh as applyNoteLifecycleOp,fl as applyTreeOp,y as asciiFold,ga as assertValidQName,If as atomicFieldSpansOf,Gc as atomicNoteSpansOf,Gg as authorableHyperlinkTarget,Vg as authoredDocumentEndnoteProperties,Ug as authoredDocumentFootnoteProperties,Sg as authoredEndnotePropertiesFromSectPr,Rg as authoredFootnotePropertiesFromSectPr,Ch as authoredProperties,Qc as bodyStoryRoot,vg as bookmarkPairNodes,Ii as boundCustomXmlNodeIdOf,Gi as boundCustomXmlNodeIds,Hi as boundCustomXmlNodeIdsInPackage,og as buildBookmarkIndex,F as buildContentTypeIndex,I as buildRelationshipSet,sg as buildTocContentControl,rg as buildTocEntryParagraph,Eg as buildingBlockGalleryOf,Fg as buildingBlocksForControl,Dg as buildingBlocksOf,Ca as canonicalOoxmlFingerprint,Vh as cascadeDeletedNoteReferences,fi as cascadeEmptiedComments,ca as childElements,Yc as collectFlowBlocks,Qa as collectNodeIds,dh as collectNoteReferences,fh as collectPackageNoteReferences,hk as collectReviewItems,_j as collectRevisionSites,cf as collectSectionPropertyNodes,Sc as collectStoryParagraphs,Zh as commentAnchorsOfStory,Mj as commentBodyText,Oj as commentInitials,gk as commentItemsOf,$h as commentsOfPart,W as containsCssFetch,Tb as contentControlContentChildren,Xb as contentControlContentNodeOf,Wc as contentControlContentOf,Wb as contentControlEndPropertiesNodeOf,_b as contentControlLevelOf,Vb as contentControlPropertiesNodeOf,Zb as contentControlPropertiesOf,bc as contentControlTextOf,$b as contentControlsIn,Ge as contentTypesPartBytes,me as createImageResourceCache,Ra as createNodeIdAllocator,bh as createNoteReferenceScanBudget,Dc as customMarkFollows,Fi as customNodeBinding,ti as customXmlDataParts,Ci as customXmlLabelXPath,xi as customXmlNodes,Di as customXmlPrefixMappings,ri as datastoreItemIdFor,lj as deepParagraphOrderOfPart,ci as deleteCommentThread,hf as deobfuscateFont,cd as deriveOoxmlIndexes,Rf as detectBodyTocs,A as detectDuplicateNames,gh as diagnoseNoteReferences,zg as diffSemanticDigests,xg as digestPart,Eh as directParagraphMarkProperties,Dh as directParagraphProperties,$e as displayMathAlignment,Rk as drawingOpImpact,Hg as ensureHyperlinkRelationship,Ag as ensureListDefinition,Bg as ensureNumberingLevel,Ve as equationExpressionToLinearMath,Ze as equationsOfAtom,V as escapeCssString,R as escapeXml,E as extensionKey,zf as fieldAtomText,yf as fieldOnOffAttribute,ac as findContentControl,ui as findCustomXmlDataPart,Sf as findDetectedToc,ba as findElement,Ta as findNode,Lc as findNoteById,zj as firstReviewRange,Ub as flattenContentControls,of as fldCharType,xf as fldSimpleInstr,xb as fnv1a32,oc as formatNoteScopeId,Ih as formatOwnedRunIds,Rh as formattableRanges,pj as formsProtectionEnabled,Cg as glossaryPartOf,qb as hardBreakAttributes,nb as hardBreakKind,pb as hardBreakText,bi as hasAnyComment,ce as hasBoundedSvgRoot,Bf as hasLegacyFormFieldData,Sa as hasNode,zd as hyperlinkAnchorOf,Ad as hyperlinkRelationshipIdOf,Bd as hyperlinkTargetOf,ke as imageResourceLookupFor,ad as indexStyles,mg as inlineControlEndingAt,ng as inlineControlStartingAt,Ya as insertChildren,wf as instrTextValue,Ah as isAuthorableRunProperty,Uc as isContentControl,Vc as isContentControlContent,Rb as isContentControlContentNode,Qb as isContentControlNode,Sb as isContentControlWrapper,va as isContentRevisionKind,wc as isContinuationSeparatorNode,N as isDangerousKey,Wk as isDrawingTreeDocOp,rc as isEndnotesNode,Z as isEvaluableField,Af as isFieldChrome,sf as isFldChar,pf as isFldCharNode,vf as isFldSimple,rf as isFldSimpleNode,qc as isFootnotesNode,Mg as isHeaderFooterLifecycleOp,yd as isHyperlinkNode,Y as isInertExecutable,tf as isInstrText,qf as isInstrTextNode,Yg as isLegalEndnotePosition,Jf as isLegalFldCharType,Zg as isLegalFootnotePosition,_g as isLegalNumRestart,Ac as isNormalNote,Fc as isNoteAtomNode,Th as isNoteLifecycleOp,sc as isNoteNode,uc as isNoteRefNode,tc as isNoteReferenceNode,Xe as isOmmlDisplay,Ye as isOmmlEquationAtom,ob as isPageBreakNode,za as isRangeMarkerKind,vc as isSeparatorNode,Pc as isStoryPart,D as isValidMime,ea as isValidNCName,vb as isValidParaId,fa as isValidQName,jj as legacyCheckboxFieldsOf,We as linearMathToOmml,jk as linkRevisionReplies,je as liveDrawingReferenceCount,dk as locateSites,dc as lockForbidsEdit,ec as lockForbidsRemoval,Gh as mergedFontProperty,Jh as mergedMultiSettingProperty,Kh as mergedParagraphMarkProperties,Fh as mergedProperties,yb as mintParaId,Cb as mintedParagraphIdentityAttributes,ih as normalNoteIds,Eb as normalizeParagraphIdentity,w as normalizePartName,Ec as noteAtomText,yc as noteIdOf,xc as noteKindOf,Cc as noteRefKindOf,Bc as noteReferenceKindOf,zc as noteTypeOf,Jc as notesOf,hh as notesPartHasId,O as nullRecord,hl as observeHistoryGroup,Da as ooxmlTreesEqual,gc as orderedContentControlProperties,wb as paraIdOf,jg as paragraphOffsetIndex,kj as paragraphOrderOfPart,Vi as paragraphTextOf,Ua as parentNodeOf,Qg as parseAuthoredNoteProperties,Yb as parseContentControlId,Ue as parseLinearMath,nc as parseNoteId,pc as parseNoteScopeId,Pf as parseTocInstruction,z as partNameKey,lk as planRevisionAuthorChange,ug as planTocEntries,kd as points,md as pointsToTwips,Nd as projectDrawing,af as projectOmmlAtom,_e as projectOmmlDisplay,Te as projectOmmlEquation,Bh as propertyContainer,yi as readCustomXmlNode,Lg as readDocumentProtection,if as readEmbeddedFonts,Aa as readOnOffChild,Ce as readOoxmlPackage,Ia as readOoxmlPart,hi as readTrackingSettings,nd as readTwipsMeasure,ji as readViewSettings,aa as readXml,Rd as readZip,Ig as relationshipTargetIn,He as relationshipsOf,Je as relsPartNameFor,_a as removeNode,Xa as replaceChildren,Za as replaceNode,il as reportHistoryGroup,cc as resolveContentControlLock,G as resolveContentType,Ie as resolveContentTypeOf,Xg as resolveEndnoteProperties,Wg as resolveFootnoteProperties,gf as resolveHeaderFooterParts,ff as resolveHeaderFooterPartsBySection,ef as resolveHeaderFooterResolutionBySection,K as resolveImageRelationship,s as resolveImageResourceLimits,B as resolveInternalTarget,p as resolveLimits,ch as resolveNotesPart,J as resolveRelationship,wg as resolveTocRowHeadings,xj as reviewItemKey,yj as reviewItemRanges,fk as revisionItemsOf,Hh as runAddressRanges,Ph as runPropertyEdits,Sh as runsCovering,Q as sanitizeHref,_ as scrubExport,qj as sectionProtectsForms,hg as segmentsOf,yg as semanticDigest,Ba as serializeOoxmlPart,Tg as settingsPartOf,de as sniffImageMime,Rc as storyParagraphs,Oc as storyRootsOf,bd as stylesPartOf,da as textContent,hj as textFormFieldsOf,mi as textboxStoriesInPart,ai as threadStateOfPart,P as toSafeRecord,tg as tocEntryText,qg as tocLeftIndentTwips,jd as twips,ld as twipsToPoints,zb as usedParaIds,Sk as validateDrawingOp,C as validateExternalTarget,fe as validateGifHeader,ge as validateJpegHeader,Fa as validateOoxmlPart,Qe as validatePackageInvariants,ee as validatePngHeader,ie as validateRasterHeader,Xk as validateTreeOp,Ab as w14RootPrefix,_c as walkAllStoryParagraphs,$c as walkParagraphInline,Zc as walkStoryBlocks,se as withBinaryPart,Ke as withContentTypeOverride,vi as withCustomXmlDataPart,zi as withCustomXmlNode,te as withEmbeddedImage,Ji as withExportedCustomNodes,Pe as withNewPart,Fe as withPart,Oe as withRelationship,wi as withoutCustomXmlDataPart,Ai as withoutCustomXmlNode,Bi as withoutOrphanCustomXmlNodes,ye as withoutUnreferencedImagePart,Vk as wrapTargetToAnchorSpec,Ee as writeOoxmlPackage,Sd as writeZip}from'./chunk-YQ5G6LC7.js';
@@ -1,5 +1,16 @@
1
- import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-BDFxcu7W.js';
2
- import { Q as OoxmlPackage, O as OoxmlPart, N as OoxmlNode, Z 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, a7 as RevisionAttributionInput, aB as DrawingTreeDocOp, aC as ImpactClass, W as TreeDocOp, a5 as TreeOpRejection } from './types-barrel-BFKR8Pzp.js';
1
+ import { S as SupportedImageMime, c as ImageDecodePort } from './image-resources-tXLQShoC.js';
2
+ import { Q as OoxmlPackage, ax as RevisionAttributionInput, ay as DrawingTreeDocOp, O as OoxmlPart, N as OoxmlNode, ak as OoxmlElement, az as OoxmlParagraphNode, aA as OoxmlNoteNode, aB as OoxmlContinuationSeparatorNode, aC as OoxmlEndnotesNode, aD as OoxmlFootnotesNode, aE as OoxmlNoteRefNode, aF as OoxmlNoteReferenceNode, aG as OoxmlSeparatorNode, aH as ImpactClass, ag as TreeDocOp, av as TreeOpRejection } from './types-barrel-DuC5QBNC.js';
3
+
4
+ /**
5
+ * How saved field results are addressed.
6
+ *
7
+ * - `atomic`: every closed field is one offset unit.
8
+ * - `editable`: the results of CREATEDATE, DATE, FILENAME, FILLIN, HYPERLINK, MERGEFIELD,
9
+ * PRINTDATE, QUOTE, SAVEDATE, SEQ, and TIME fields are text when their results are unnested.
10
+ * Simple fields inside complex field results are not supported in this mode. Other nested
11
+ * results, other field types, and legacy FORMTEXT inputs keep their existing addressing.
12
+ */
13
+ type FieldResultsMode = 'atomic' | 'editable';
3
14
 
4
15
  /** A freshly allocated drawing property id, or the reason one could not be minted. */
5
16
  type DrawingPropertyIdResult = {
@@ -63,6 +74,52 @@ interface ExternalImageFetchPort {
63
74
  }>>;
64
75
  }
65
76
 
77
+ interface InsertImageInput {
78
+ readonly paragraphId: string;
79
+ readonly offset: number;
80
+ readonly bytes: Uint8Array;
81
+ readonly mime: SupportedImageMime;
82
+ readonly widthPoints: number;
83
+ readonly heightPoints: number;
84
+ readonly decodePort: ImageDecodePort;
85
+ readonly expectedPackageRevision: number;
86
+ readonly commitGuard?: () => boolean;
87
+ readonly title?: string;
88
+ readonly description?: string;
89
+ readonly hyperlink?: string;
90
+ /** Present in suggesting mode: the inserted drawing's run goes into a `w:ins`. */
91
+ readonly revision?: RevisionAttributionInput;
92
+ /**
93
+ * Collaboration actor for the ids this insert mints — `wp:docPr/@id`, the image
94
+ * relationship, and a hyperlink relationship when one is asked for.
95
+ *
96
+ * EXPLICIT, and not the ambient `runWithTransactionActor` binding, because this entry is
97
+ * async: the mint runs after `await validateEmbeddedImageForCommit` and the ambient actor
98
+ * is synchronous-only. A wrap around the call would compile, read as correct, and be gone
99
+ * by the time the id is taken. Omitted (solo) keeps Word's dense `highest + 1` sequence.
100
+ */
101
+ readonly actorId?: string;
102
+ }
103
+ interface ReplaceImageOptions {
104
+ readonly expectedPackageRevision: number;
105
+ readonly commitGuard?: () => boolean;
106
+ /** Collaboration actor for the replacement's minted ids. See {@link InsertImageInput.actorId}. */
107
+ readonly actorId?: string;
108
+ }
109
+ type ImageIntentResult = (Extract<PackageTransactResult, {
110
+ ok: true;
111
+ }> & {
112
+ readonly drawingNodeId?: string;
113
+ readonly mediaPartName?: string;
114
+ }) | Extract<PackageTransactResult, {
115
+ ok: false;
116
+ }>;
117
+ interface ApplyImagePropertiesInput {
118
+ readonly drawingNodeId: string;
119
+ readonly ops: readonly DrawingTreeDocOp[];
120
+ readonly hyperlink: string | null;
121
+ }
122
+
66
123
  /** `w:headerReference w:type` vocabulary (ECMA-376 §17.10.5): default, first page, even pages. */
67
124
  type HeaderFooterVariant = 'default' | 'first' | 'even';
68
125
  /** Header vs footer region kind for chrome and lifecycle ops. */
@@ -515,52 +572,6 @@ interface CascadeDeletedNoteReferencesOptions {
515
572
  */
516
573
  declare function cascadeDeletedNoteReferences(before: OoxmlPackage, after: OoxmlPackage, options?: CascadeDeletedNoteReferencesOptions): OoxmlPackage | null;
517
574
 
518
- interface InsertImageInput {
519
- readonly paragraphId: string;
520
- readonly offset: number;
521
- readonly bytes: Uint8Array;
522
- readonly mime: SupportedImageMime;
523
- readonly widthPoints: number;
524
- readonly heightPoints: number;
525
- readonly decodePort: ImageDecodePort;
526
- readonly expectedPackageRevision: number;
527
- readonly commitGuard?: () => boolean;
528
- readonly title?: string;
529
- readonly description?: string;
530
- readonly hyperlink?: string;
531
- /** Present in suggesting mode: the inserted drawing's run goes into a `w:ins`. */
532
- readonly revision?: RevisionAttributionInput;
533
- /**
534
- * Collaboration actor for the ids this insert mints — `wp:docPr/@id`, the image
535
- * relationship, and a hyperlink relationship when one is asked for.
536
- *
537
- * EXPLICIT, and not the ambient `runWithTransactionActor` binding, because this entry is
538
- * async: the mint runs after `await validateEmbeddedImageForCommit` and the ambient actor
539
- * is synchronous-only. A wrap around the call would compile, read as correct, and be gone
540
- * by the time the id is taken. Omitted (solo) keeps Word's dense `highest + 1` sequence.
541
- */
542
- readonly actorId?: string;
543
- }
544
- interface ReplaceImageOptions {
545
- readonly expectedPackageRevision: number;
546
- readonly commitGuard?: () => boolean;
547
- /** Collaboration actor for the replacement's minted ids. See {@link InsertImageInput.actorId}. */
548
- readonly actorId?: string;
549
- }
550
- type ImageIntentResult = (Extract<PackageTransactResult, {
551
- ok: true;
552
- }> & {
553
- readonly drawingNodeId?: string;
554
- readonly mediaPartName?: string;
555
- }) | Extract<PackageTransactResult, {
556
- ok: false;
557
- }>;
558
- interface ApplyImagePropertiesInput {
559
- readonly drawingNodeId: string;
560
- readonly ops: readonly DrawingTreeDocOp[];
561
- readonly hyperlink: string | null;
562
- }
563
-
564
575
  /**
565
576
  * The identity of one continuous user gesture, for history grouping.
566
577
  *
@@ -580,6 +591,63 @@ type HistoryCaptureReason = 'package-unit' | 'composition';
580
591
  declare function observeHistoryGroup<T>(group: HistoryGroup, report: (kind: HistoryCaptureKind, reason?: HistoryCaptureReason) => void, run: () => T): T;
581
592
  declare function reportHistoryGroup(group: HistoryGroup | undefined, kind: HistoryCaptureKind, reason?: HistoryCaptureReason): void;
582
593
 
594
+ /** How one transaction behaves: its story scope, its attribution, and its selection marks. */
595
+ interface TransactOptions {
596
+ readonly origin?: string;
597
+ /** Stable actor attribution for collaboration and audit correlation. */
598
+ readonly actorId?: string;
599
+ /** Stable constituent identity for collaboration duplicate correlation. */
600
+ readonly operationId?: string;
601
+ /**
602
+ * Whether this transaction enters the legacy snapshot undo stack.
603
+ *
604
+ * Collaboration commits set this to false because their actor-local undo authority is the
605
+ * CRDT undo manager. Omitted preserves the ordinary non-collaborative history behavior.
606
+ */
607
+ readonly recordsHistory?: boolean;
608
+ /**
609
+ * A COMMAND is one user intent that may need several ops (a toolbar click applying a
610
+ * property across a multi-run selection). It is still exactly one history entry, which is
611
+ * the same rule a plain transaction follows — the option exists to say so explicitly at
612
+ * the call site rather than leaving it implied.
613
+ */
614
+ readonly scope?: 'transaction' | 'command';
615
+ /**
616
+ * Floor on the published impact. Header/footer story edits use `global` so every page
617
+ * sharing the part invalidates rather than keeping stale furniture.
618
+ */
619
+ readonly minimumImpact?: ImpactClass;
620
+ /** Story identity stamped onto the published ModelChange (package-aware targeting). */
621
+ readonly story?: TreeStoryRef;
622
+ /**
623
+ * The gesture this transaction belongs to: consecutive transactions carrying the SAME
624
+ * token extend one history entry (package from before the first, selection after the
625
+ * latest). Another token, none, undo or redo closes the group. See {@link HistoryGroup}.
626
+ */
627
+ readonly historyGroup?: HistoryGroup;
628
+ /**
629
+ * How the transaction's ops address saved field results. `atomic` (the default) keeps
630
+ * every field one offset unit; `editable` addresses saved results as text. See
631
+ * `field-result-mode.ts`.
632
+ */
633
+ readonly fieldResults?: FieldResultsMode;
634
+ }
635
+ /** How a store is constructed: its limits, its history depth, and its identity source. */
636
+ interface TreeDocumentStoreOptions {
637
+ /** Bound on retained history entries. Oldest entries drop first. */
638
+ readonly historyLimit?: number;
639
+ /**
640
+ * The document's `settings.xml`, for a store built from a PART rather than a package.
641
+ *
642
+ * Forms protection lives one part up from the op, and a store built from a part gets a
643
+ * synthetic one-part package that cannot see it — so `w:documentProtection w:edit="forms"`
644
+ * was enforced in the body and nowhere else, and a header, a footer or a note accepted every
645
+ * write a protected document is supposed to refuse. Read through a getter, not captured: a
646
+ * document can gain or lose protection while its stories stay open.
647
+ */
648
+ readonly settingsPart?: () => OoxmlPart | null | undefined;
649
+ }
650
+
583
651
  /** A selection the caller wants restored when an entry is undone or redone. */
584
652
  /** A selection captured with a transaction, so undo restores where the caret was. */
585
653
  interface SelectionMark {
@@ -685,41 +753,6 @@ interface TransactionContext {
685
753
  /** The selection to restore when this entry is redone. */
686
754
  selectionAfter(selection: SelectionMark | null): void;
687
755
  }
688
- /** How one transaction behaves: its story scope, its attribution, and its selection marks. */
689
- interface TransactOptions {
690
- readonly origin?: string;
691
- /** Stable actor attribution for collaboration and audit correlation. */
692
- readonly actorId?: string;
693
- /** Stable constituent identity for collaboration duplicate correlation. */
694
- readonly operationId?: string;
695
- /**
696
- * Whether this transaction enters the legacy snapshot undo stack.
697
- *
698
- * Collaboration commits set this to false because their actor-local undo authority is the
699
- * CRDT undo manager. Omitted preserves the ordinary non-collaborative history behavior.
700
- */
701
- readonly recordsHistory?: boolean;
702
- /**
703
- * A COMMAND is one user intent that may need several ops (a toolbar click applying a
704
- * property across a multi-run selection). It is still exactly one history entry, which is
705
- * the same rule a plain transaction follows — the option exists to say so explicitly at
706
- * the call site rather than leaving it implied.
707
- */
708
- readonly scope?: 'transaction' | 'command';
709
- /**
710
- * Floor on the published impact. Header/footer story edits use `global` so every page
711
- * sharing the part invalidates rather than keeping stale furniture.
712
- */
713
- readonly minimumImpact?: ImpactClass;
714
- /** Story identity stamped onto the published ModelChange (package-aware targeting). */
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;
722
- }
723
756
  interface HistoryEntry {
724
757
  /**
725
758
  * The whole package as it was, not just the story part.
@@ -740,21 +773,6 @@ interface HistoryEntry {
740
773
  */
741
774
  readonly group?: HistoryGroup;
742
775
  }
743
- /** How a store is constructed: its limits, its history depth, and its identity source. */
744
- interface TreeDocumentStoreOptions {
745
- /** Bound on retained history entries. Oldest entries drop first. */
746
- readonly historyLimit?: number;
747
- /**
748
- * The document's `settings.xml`, for a store built from a PART rather than a package.
749
- *
750
- * Forms protection lives one part up from the op, and a store built from a part gets a
751
- * synthetic one-part package that cannot see it — so `w:documentProtection w:edit="forms"`
752
- * was enforced in the body and nowhere else, and a header, a footer or a note accepted every
753
- * write a protected document is supposed to refuse. Read through a getter, not captured: a
754
- * document can gain or lose protection while its stories stay open.
755
- */
756
- readonly settingsPart?: () => OoxmlPart | null | undefined;
757
- }
758
776
  /**
759
777
  * Opaque document+history checkpoint for package-coordinator rollback.
760
778
  * Used when a story mutation may promote to a package undo unit (note-ref cascade).
@@ -895,6 +913,40 @@ declare class TreeDocumentStore {
895
913
  private publish;
896
914
  }
897
915
 
916
+ /** Decoded fragment payloads above this cap are refused before any package work. */
917
+ declare const MAX_FRAGMENT_DECODED_BYTES: number;
918
+ interface FragmentPasteInput {
919
+ readonly paragraphId: string;
920
+ readonly offset: number;
921
+ /** The fragment package zip (from the clipboard codec or the HTML projection). */
922
+ readonly fragmentBytes: Uint8Array;
923
+ readonly lastMarkCovered: boolean;
924
+ /** Ops that clear the current selection first (the surface's deleteSelectionPlan). */
925
+ readonly priorOps?: readonly TreeDocOp[];
926
+ /**
927
+ * Collaboration actor for the ids this paste mints.
928
+ *
929
+ * A paste freshens three package-wide namespaces — bookmark `@w:id`, revision `@w:id` and
930
+ * `wp:docPr/@id` — and the merge reads the actor off the open transaction. Without one, two
931
+ * replicas pasting the same fragment from one snapshot mint the same numbers, and only the
932
+ * merged document shows it. Omitted (solo) keeps Word's dense sequences.
933
+ */
934
+ readonly actorId?: string;
935
+ }
936
+ type FragmentPasteResult = (Extract<PackageTransactResult, {
937
+ ok: true;
938
+ }> & {
939
+ readonly blockCount: number;
940
+ }) | Extract<PackageTransactResult, {
941
+ ok: false;
942
+ }>;
943
+ /**
944
+ * Read the fragment through the bounded file-open trust boundary, merge its resources,
945
+ * and land its blocks — all inside one transaction. Any refusal leaves the document
946
+ * exactly as it was; the caller (the paste router) degrades to the next flavour.
947
+ */
948
+ declare function applyFragmentPaste(store: TreePackageStore, scope: StoryScope, input: FragmentPasteInput): FragmentPasteResult;
949
+
898
950
  /** Attribution stamped on one remote canonical publication. */
899
951
  interface RemotePackageAttribution {
900
952
  readonly origin: string;
@@ -1043,10 +1095,12 @@ declare class TreePackageStore {
1043
1095
  endComposition(): void;
1044
1096
  cancelComposition(): void;
1045
1097
  /**
1046
- * Commit one furniture or note lifecycle op as a single ModelChange / undo unit that
1047
- * restores the entire package atomically (parts, rels, content-types, settings).
1098
+ * Commit one furniture or note lifecycle op as one ModelChange / undo unit that restores the
1099
+ * whole package atomically. `actorId` scopes the ids it mints, as `transact` does.
1048
1100
  */
1049
- applyLifecycleOp(op: HeaderFooterLifecycleOp | NoteLifecycleOp | TreeDocOp): PackageTransactResult;
1101
+ applyLifecycleOp(op: HeaderFooterLifecycleOp | NoteLifecycleOp | TreeDocOp, options?: {
1102
+ readonly actorId?: string;
1103
+ }): PackageTransactResult;
1050
1104
  private commitLifecycleOp;
1051
1105
  undo(): TreeModelChange | null;
1052
1106
  redo(): TreeModelChange | null;
@@ -1143,39 +1197,5 @@ declare class TreePackageStore {
1143
1197
  private publishSynthetic;
1144
1198
  }
1145
1199
 
1146
- /** Decoded fragment payloads above this cap are refused before any package work. */
1147
- declare const MAX_FRAGMENT_DECODED_BYTES: number;
1148
- interface FragmentPasteInput {
1149
- readonly paragraphId: string;
1150
- readonly offset: number;
1151
- /** The fragment package zip (from the clipboard codec or the HTML projection). */
1152
- readonly fragmentBytes: Uint8Array;
1153
- readonly lastMarkCovered: boolean;
1154
- /** Ops that clear the current selection first (the surface's deleteSelectionPlan). */
1155
- readonly priorOps?: readonly TreeDocOp[];
1156
- /**
1157
- * Collaboration actor for the ids this paste mints.
1158
- *
1159
- * A paste freshens three package-wide namespaces — bookmark `@w:id`, revision `@w:id` and
1160
- * `wp:docPr/@id` — and the merge reads the actor off the open transaction. Without one, two
1161
- * replicas pasting the same fragment from one snapshot mint the same numbers, and only the
1162
- * merged document shows it. Omitted (solo) keeps Word's dense sequences.
1163
- */
1164
- readonly actorId?: string;
1165
- }
1166
- type FragmentPasteResult = (Extract<PackageTransactResult, {
1167
- ok: true;
1168
- }> & {
1169
- readonly blockCount: number;
1170
- }) | Extract<PackageTransactResult, {
1171
- ok: false;
1172
- }>;
1173
- /**
1174
- * Read the fragment through the bounded file-open trust boundary, merge its resources,
1175
- * and land its blocks — all inside one transaction. Any refusal leaves the document
1176
- * exactly as it was; the caller (the paste router) degrades to the next flavour.
1177
- */
1178
- declare function applyFragmentPaste(store: TreePackageStore, scope: StoryScope, input: FragmentPasteInput): FragmentPasteResult;
1179
-
1180
- export { NOTE_ID_MIN as B, DEFAULT_MAX_EDITABLE_STORY_PARTS as D, NOTE_SEPARATOR_ID as E, MAX_FRAGMENT_DECODED_BYTES as M, TreePackageStore as T, 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, TreeDocumentStore as f, reportHistoryGroup as r, 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 };
1181
- export type { TreePackageStoreOptions as $, ApplyImagePropertiesInput as A, CascadeDeletedNoteReferencesOptions as C, FragmentPasteInput as F, NoteDiagnostic as G, HeaderFooterParts as H, InsertImageInput as I, NoteDiagnosticCode as J, NoteLifecycleImpact as K, NoteLifecycleOp as L, NoteKind as N, NoteLifecycleOptions as O, NoteLifecycleRejection as P, NoteLifecycleResult as Q, ReplaceImageOptions as R, StoryScope as S, NoteReferenceHit as U, NoteReferenceScanBudget as V, NoteType as W, PackageTransactResult as X, RemotePackageAttribution as Y, StoryResolveResult as Z, TreeDocumentStoreOptions as _, StoryTargetRejection as a, TreeStoryRef as a0, TransactResult as a1, TransactionContext as a2, HeaderFooterSectionResolution as b, HeaderFooterVariant as c, HistoryGroup as d, TreeModelChange as e, SelectionMark as g, TransactOptions as h, ImageIntentResult as i, FragmentPasteResult as j, AtomicNoteSpan as k, DrawingPropertyIdResult as l, HeaderFooterKind as m, HeaderFooterLifecycleImpact as n, HeaderFooterLifecycleOp as o, HeaderFooterLifecycleRejection as p, HeaderFooterLifecycleResult as q, HeaderFooterSlotMeta as s, HistoryCaptureKind as t };
1200
+ export { NOTE_ID_MAX as B, DEFAULT_MAX_EDITABLE_STORY_PARTS as D, NOTE_ID_MIN as E, NOTE_SEPARATOR_ID as G, MAX_FRAGMENT_DECODED_BYTES as M, TreePackageStore as T, allocateDrawingPropertyId as a4, allocateNoteId as a5, applyFragmentPaste as a6, applyHeaderFooterLifecycleOp as a7, applyNoteLifecycleOp as a8, atomicNoteSpansOf as a9, noteTypeOf as aA, notesOf as aB, notesPartHasId as aC, observeHistoryGroup as aD, parseNoteId as aE, parseNoteScopeId as aF, resolveHeaderFooterParts as aG, resolveHeaderFooterPartsBySection as aH, resolveHeaderFooterResolutionBySection as aI, resolveNotesPart as aJ, withBinaryPart as aK, withEmbeddedImage as aL, withoutUnreferencedImagePart as aM, cascadeDeletedNoteReferences as aa, collectNoteReferences as ab, collectPackageNoteReferences as ac, collectSectionPropertyNodes as ad, createNoteReferenceScanBudget as ae, customMarkFollows as af, diagnoseNoteReferences as ag, findNoteById as ah, formatNoteScopeId as ai, isContinuationSeparatorNode as aj, isEndnotesNode as ak, isFootnotesNode as al, isHeaderFooterLifecycleOp as am, isNormalNote as an, isNoteAtomNode as ao, isNoteLifecycleOp as ap, isNoteNode as aq, isNoteRefNode as ar, isNoteReferenceNode as as, isSeparatorNode as at, normalNoteIds as au, noteAtomText as av, noteIdOf as aw, noteKindOf as ax, noteRefKindOf as ay, noteReferenceKindOf as az, TreeDocumentStore as f, reportHistoryGroup as r, MAX_NOTES_PER_PART as v, MAX_NOTE_REFERENCE_PARTS as w, MAX_NOTE_REFERENCE_SCAN as x, NOTE_ATOM_CHAR as y, NOTE_CONTINUATION_SEPARATOR_ID as z };
1201
+ export type { TreeDocumentStoreOptions as $, ApplyImagePropertiesInput as A, CascadeDeletedNoteReferencesOptions as C, FieldResultsMode as F, HeaderFooterParts as H, InsertImageInput as I, NoteDiagnostic as J, NoteDiagnosticCode as K, NoteLifecycleImpact as L, NoteKind as N, NoteLifecycleOp as O, NoteLifecycleOptions as P, NoteLifecycleRejection as Q, ReplaceImageOptions as R, StoryScope as S, NoteLifecycleResult as U, NoteReferenceHit as V, NoteReferenceScanBudget as W, NoteType as X, PackageTransactResult as Y, RemotePackageAttribution as Z, StoryResolveResult as _, StoryTargetRejection as a, TreePackageStoreOptions as a0, TreeStoryRef as a1, TransactResult as a2, TransactionContext as a3, HeaderFooterSectionResolution as b, HeaderFooterVariant as c, HistoryGroup as d, TreeModelChange as e, SelectionMark as g, TransactOptions as h, ImageIntentResult as i, FragmentPasteInput as j, FragmentPasteResult as k, AtomicNoteSpan as l, DrawingPropertyIdResult as m, HeaderFooterKind as n, HeaderFooterLifecycleImpact as o, HeaderFooterLifecycleOp as p, HeaderFooterLifecycleRejection as q, HeaderFooterLifecycleResult as s, HeaderFooterSlotMeta as t, HistoryCaptureKind as u };
@@ -1,11 +1,11 @@
1
- import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection, e as TreeModelChange, H as HeaderFooterParts, b as HeaderFooterSectionResolution, I as InsertImageInput, i as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, j as FragmentPasteResult } from './tree-package-fragment-DYZIk1rY.js';
2
- import { W as TreeDocOp, O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage, Z as OoxmlElement, a as ReviewItem, a7 as RevisionAttributionInput } from './types-barrel-BFKR8Pzp.js';
3
- import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-BDFxcu7W.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-Vzpq9I8_.js';
5
- import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-ICYqNkQ1.js';
1
+ import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection, e as TreeModelChange, H as HeaderFooterParts, b as HeaderFooterSectionResolution, I as InsertImageInput, i as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, j as FragmentPasteInput, k as FragmentPasteResult } from './tree-package-store-CovjNARF.js';
2
+ import { ag as TreeDocOp, O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage, ak as OoxmlElement, a as ReviewItem, ax as RevisionAttributionInput } from './types-barrel-DuC5QBNC.js';
3
+ import { S as SupportedImageMime, c as ImageDecodePort } from './image-resources-tXLQShoC.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-Bn6uciLb.js';
5
+ import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-pp3q7wIh.js';
6
6
  import { Node } from 'prosemirror-model';
7
7
  import { CollaborationDocumentPort } from './collaboration/replication.js';
8
- import { V as ViewScope } from './editor-scope-OHPwVQ5l.js';
8
+ import { V as ViewScope } from './editor-scope-7o9xweiJ.js';
9
9
 
10
10
  /**
11
11
  * Why an edited projection could not be mapped back into tree ops.
@@ -88,6 +88,8 @@ interface ThemeSchemeFaces {
88
88
  /** Language-specific theme faces, keyed by ISO 15924 script. */
89
89
  readonly majorSupplemental?: Readonly<Record<string, string>>;
90
90
  readonly minorSupplemental?: Readonly<Record<string, string>>;
91
+ /** Lower-cased font table names that declare a Chinese character set. */
92
+ readonly chineseFontTableFaces?: readonly string[];
91
93
  }
92
94
  /** The theme's font slots, fully resolved, for resolving `w:rFonts` theme attributes. */
93
95
  interface DocumentThemeFonts extends ThemeSchemeFaces {