@stll/folio-core 0.62.0 → 0.63.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 (1308) hide show
  1. package/README.md +17 -6
  2. package/dist/ai-edits/apply.d.ts +40 -10
  3. package/dist/ai-edits/apply.js +563 -219
  4. package/dist/ai-edits/batch-claims.d.ts +13 -4
  5. package/dist/ai-edits/batch-claims.js +6 -6
  6. package/dist/ai-edits/block-identity.d.ts +3 -4
  7. package/dist/ai-edits/block-identity.js +15 -1
  8. package/dist/ai-edits/blockRange.d.ts +7 -7
  9. package/dist/ai-edits/blockRange.js +2 -1
  10. package/dist/ai-edits/character-boundaries.d.ts +5 -6
  11. package/dist/ai-edits/clean-text.d.ts +8 -8
  12. package/dist/ai-edits/comment-lifecycle.d.ts +15 -6
  13. package/dist/ai-edits/comment-lifecycle.js +74 -23
  14. package/dist/ai-edits/headless.d.ts +39 -37
  15. package/dist/ai-edits/headless.js +147 -47
  16. package/dist/ai-edits/index.d.ts +2 -1
  17. package/dist/ai-edits/index.js +2 -1
  18. package/dist/ai-edits/inline-emphasis.d.ts +5 -6
  19. package/dist/ai-edits/minimal-replacement.d.ts +12 -13
  20. package/dist/ai-edits/newListNumbering.d.ts +16 -3
  21. package/dist/ai-edits/newListNumbering.js +97 -34
  22. package/dist/ai-edits/note-references.d.ts +14 -14
  23. package/dist/ai-edits/note-story-inventory.d.ts +2 -2
  24. package/dist/ai-edits/pending-suggestions.d.ts +8 -8
  25. package/dist/ai-edits/pending-suggestions.js +5 -1
  26. package/dist/ai-edits/read.d.ts +10 -11
  27. package/dist/ai-edits/read.js +6 -0
  28. package/dist/ai-edits/referenceClassification.d.ts +2 -2
  29. package/dist/ai-edits/removed-blocks.d.ts +20 -0
  30. package/dist/ai-edits/removed-blocks.js +69 -0
  31. package/dist/ai-edits/result-validation.d.ts +4 -5
  32. package/dist/ai-edits/result-validation.js +4 -3
  33. package/dist/ai-edits/revisionStretches.d.ts +3 -3
  34. package/dist/ai-edits/revisionStretches.js +17 -0
  35. package/dist/ai-edits/scoped-reading.d.ts +3 -4
  36. package/dist/ai-edits/snapshot.d.ts +24 -23
  37. package/dist/ai-edits/snapshot.js +44 -30
  38. package/dist/ai-edits/table-cell-mutations.d.ts +6 -6
  39. package/dist/ai-edits/table-cell-mutations.js +7 -4
  40. package/dist/ai-edits/table-geometry.d.ts +6 -6
  41. package/dist/ai-edits/table-mutation-plan.d.ts +5 -5
  42. package/dist/ai-edits/table-mutation-plan.js +1 -4
  43. package/dist/ai-edits/table-row-column-mutations.d.ts +16 -16
  44. package/dist/ai-edits/table-targets.d.ts +8 -9
  45. package/dist/ai-edits/table-template.d.ts +6 -6
  46. package/dist/ai-edits/types.d.ts +48 -44
  47. package/dist/ai-edits/word-diff.d.ts +12 -13
  48. package/dist/ai-edits/word-diff.js +23 -21
  49. package/dist/ai-suggestions/apply.d.ts +3 -3
  50. package/dist/ai-suggestions/apply.js +0 -12
  51. package/dist/ai-suggestions/conflict.d.ts +4 -5
  52. package/dist/ai-suggestions/conflict.js +3 -1
  53. package/dist/ai-suggestions/text-positions.d.ts +3 -4
  54. package/dist/ai-suggestions/types.d.ts +13 -14
  55. package/dist/compare/column-alignment.d.ts +4 -5
  56. package/dist/compare/compare.d.ts +12 -12
  57. package/dist/compare/compare.js +2 -1
  58. package/dist/compare/content-alignment.d.ts +16 -16
  59. package/dist/compare/content-alignment.js +29 -25
  60. package/dist/compare/content-types.d.ts +23 -24
  61. package/dist/compare/content.d.ts +23 -23
  62. package/dist/compare/formatting.d.ts +2 -2
  63. package/dist/compare/import-style-closure.d.ts +2 -2
  64. package/dist/compare/inline-atom-resources.d.ts +2 -3
  65. package/dist/compare/inline-atoms.d.ts +6 -7
  66. package/dist/compare/inline-provenance.d.ts +6 -7
  67. package/dist/compare/inline-provenance.js +22 -20
  68. package/dist/compare/inserted-resource-snapshot.d.ts +3 -3
  69. package/dist/compare/plan.d.ts +5 -6
  70. package/dist/compare/plan.js +5 -6
  71. package/dist/compare/reproducible-package.d.ts +2 -3
  72. package/dist/compare/reproducible-package.js +1 -1
  73. package/dist/compare/scenario.d.ts +9 -9
  74. package/dist/compare/section-boundary-properties.d.ts +6 -6
  75. package/dist/compare/section-boundary-properties.js +4 -4
  76. package/dist/compare/style-resources.d.ts +5 -6
  77. package/dist/compare/types.d.ts +21 -21
  78. package/dist/compare/verification.d.ts +11 -11
  79. package/dist/content-controls/checkboxDisplay.d.ts +2 -2
  80. package/dist/content-controls/checkboxDisplay.js +2 -1
  81. package/dist/content-controls/errors.d.ts +4 -4
  82. package/dist/content-controls/findContentControls.d.ts +7 -8
  83. package/dist/content-controls/mutateContentControls.d.ts +17 -6
  84. package/dist/content-controls/mutateContentControls.js +3 -2
  85. package/dist/controller/activeEditorStory.d.ts +4 -5
  86. package/dist/controller/canonicalClipboard.d.ts +3 -3
  87. package/dist/controller/canonicalClipboard.js +3 -1
  88. package/dist/controller/canonicalClipboardResources.d.ts +3 -3
  89. package/dist/controller/canonicalClipboardResources.js +3 -2
  90. package/dist/controller/canonicalComments.d.ts +5 -5
  91. package/dist/controller/canonicalComposition.d.ts +2 -2
  92. package/dist/controller/canonicalComposition.js +11 -14
  93. package/dist/controller/canonicalInlineProjection.d.ts +8 -7
  94. package/dist/controller/canonicalInlineProjection.js +68 -37
  95. package/dist/controller/canonicalInput.d.ts +3 -3
  96. package/dist/controller/canonicalInput.js +1 -3
  97. package/dist/controller/canonicalInputTimer.d.ts +5 -6
  98. package/dist/controller/canonicalListRendering.d.ts +2 -3
  99. package/dist/controller/canonicalOperations.d.ts +6 -6
  100. package/dist/controller/canonicalPublicOperations.d.ts +13 -13
  101. package/dist/controller/canonicalPublicOperations.js +12 -14
  102. package/dist/controller/canonicalReview.d.ts +2 -2
  103. package/dist/controller/canonicalSelection.d.ts +2 -2
  104. package/dist/controller/canonicalSelection.js +15 -0
  105. package/dist/controller/canonicalSession.d.ts +22 -14
  106. package/dist/controller/canonicalSession.js +229 -42
  107. package/dist/controller/canonicalStoryEditor.d.ts +2 -2
  108. package/dist/controller/canonicalStructure.d.ts +3 -3
  109. package/dist/controller/canonicalStructure.js +144 -21
  110. package/dist/controller/canonicalTocSelection.d.ts +2 -2
  111. package/dist/controller/collaborationModules.d.ts +2 -3
  112. package/dist/controller/committedLayoutDiff.d.ts +4 -5
  113. package/dist/controller/contentControlWidgetController.d.ts +7 -8
  114. package/dist/controller/folioEditor.d.ts +6 -6
  115. package/dist/controller/folioEditorEvents.d.ts +7 -8
  116. package/dist/controller/fontReadiness.d.ts +12 -12
  117. package/dist/controller/fontReadiness.js +123 -31
  118. package/dist/controller/headerFooterEditorManager.d.ts +9 -10
  119. package/dist/controller/headerFooterEditorManager.js +3 -10
  120. package/dist/controller/hiddenEditorApi.d.ts +5 -5
  121. package/dist/controller/hiddenEditorManager.d.ts +13 -13
  122. package/dist/controller/hiddenEditorManager.js +2 -0
  123. package/dist/controller/hyphenationReadiness.d.ts +4 -5
  124. package/dist/controller/hyphenationReadiness.js +0 -1
  125. package/dist/controller/latestRequestGate.d.ts +3 -4
  126. package/dist/controller/layoutPipeline.d.ts +7 -8
  127. package/dist/controller/layoutPipeline.js +16 -5
  128. package/dist/controller/layoutRunOptions.d.ts +4 -5
  129. package/dist/controller/layoutScheduler.d.ts +8 -9
  130. package/dist/controller/layoutSession.d.ts +7 -7
  131. package/dist/controller/noteEditorManager.d.ts +7 -7
  132. package/dist/controller/noteEditorManager.js +0 -1
  133. package/dist/controller/readOnlySelection.d.ts +12 -0
  134. package/dist/controller/readOnlySelection.js +62 -0
  135. package/dist/display-list/build/buildContext.d.ts +8 -6
  136. package/dist/display-list/build/buildDisplayList.d.ts +6 -6
  137. package/dist/display-list/build/buildDisplayList.js +20 -2
  138. package/dist/display-list/build/colors.d.ts +6 -7
  139. package/dist/display-list/build/commentAnnotations.d.ts +3 -4
  140. package/dist/display-list/build/floatingImages.d.ts +5 -6
  141. package/dist/display-list/build/fontTable.d.ts +4 -5
  142. package/dist/display-list/build/fontTable.js +2 -1
  143. package/dist/display-list/build/furniture.d.ts +7 -6
  144. package/dist/display-list/build/furniture.js +1 -0
  145. package/dist/display-list/build/glyphs.d.ts +7 -7
  146. package/dist/display-list/build/glyphs.js +17 -26
  147. package/dist/display-list/build/headerFooterPrimitives.d.ts +4 -5
  148. package/dist/display-list/build/headerFooterPrimitives.js +5 -1
  149. package/dist/display-list/build/imagePrimitives.d.ts +5 -5
  150. package/dist/display-list/build/imagePrimitives.js +0 -10
  151. package/dist/display-list/build/pageBorderPrimitives.d.ts +4 -5
  152. package/dist/display-list/build/pageBorderPrimitives.js +8 -11
  153. package/dist/display-list/build/pageFurniture.d.ts +6 -7
  154. package/dist/display-list/build/pageFurniture.js +5 -1
  155. package/dist/display-list/build/paragraphPrimitives.d.ts +5 -4
  156. package/dist/display-list/build/paragraphPrimitives.js +138 -108
  157. package/dist/display-list/build/previewPrimitives.d.ts +2 -3
  158. package/dist/display-list/build/previewPrimitives.js +38 -9
  159. package/dist/display-list/build/regions.d.ts +5 -5
  160. package/dist/display-list/build/storyPrimitives.d.ts +4 -4
  161. package/dist/display-list/build/strokes.d.ts +10 -10
  162. package/dist/display-list/build/tablePrimitives.d.ts +5 -5
  163. package/dist/display-list/build/tablePrimitives.js +15 -2
  164. package/dist/display-list/build/textBoxPrimitives.d.ts +3 -4
  165. package/dist/display-list/build/textBoxPrimitives.js +4 -0
  166. package/dist/display-list/build/textDecorations.d.ts +10 -11
  167. package/dist/display-list/build/unsupported.d.ts +4 -5
  168. package/dist/display-list/build/watermarkPrimitives.d.ts +5 -4
  169. package/dist/display-list/build/watermarkPrimitives.js +5 -17
  170. package/dist/display-list/dom/renderDisplayListToDom.d.ts +8 -8
  171. package/dist/display-list/dom/renderDisplayListToDom.js +52 -10
  172. package/dist/display-list/editor/displayListPagePainter.d.ts +4 -5
  173. package/dist/display-list/editor/pageRenderer.d.ts +5 -6
  174. package/dist/display-list/editor/pageRenderer.js +1 -0
  175. package/dist/display-list/html/renderDisplayListToHtml.d.ts +5 -6
  176. package/dist/display-list/pageResourceOwnership.d.ts +4 -0
  177. package/dist/display-list/pageResourceOwnership.js +32 -0
  178. package/dist/display-list/primitives.d.ts +13 -13
  179. package/dist/display-list/primitives.js +2 -0
  180. package/dist/display-list/selectDisplayPages.d.ts +2 -3
  181. package/dist/display-list/types.d.ts +54 -33
  182. package/dist/document-operations.d.ts +56 -44
  183. package/dist/document-operations.js +37 -2
  184. package/dist/document-stories.d.ts +3 -4
  185. package/dist/docx/altChunk.d.ts +5 -6
  186. package/dist/docx/appVersionNormalization.d.ts +4 -4
  187. package/dist/docx/archiveInflation.d.ts +16 -16
  188. package/dist/docx/archiveInflation.js +1 -1
  189. package/dist/docx/attributeRemainder.d.ts +8 -8
  190. package/dist/docx/attributeRemainder.js +34 -0
  191. package/dist/docx/blockContentParser.d.ts +15 -7
  192. package/dist/docx/blockContentParser.js +5 -6
  193. package/dist/docx/blockCustomXmlShell.d.ts +2 -3
  194. package/dist/docx/blockPlainText.d.ts +3 -4
  195. package/dist/docx/blockPlainText.js +5 -1
  196. package/dist/docx/bookmarkIdNormalization.d.ts +2 -3
  197. package/dist/docx/bookmarkIds.d.ts +5 -6
  198. package/dist/docx/bookmarkParser.d.ts +20 -21
  199. package/dist/docx/bookmarkParser.js +3 -2
  200. package/dist/docx/borderParser.d.ts +2 -3
  201. package/dist/docx/builtInStyles.d.ts +11 -11
  202. package/dist/docx/bulletMarkers.d.ts +8 -3
  203. package/dist/docx/bulletMarkers.js +3 -43
  204. package/dist/docx/canonicalModel.d.ts +2 -0
  205. package/dist/docx/canonicalModel.js +1 -0
  206. package/dist/docx/canonicalResourceSave.d.ts +3 -3
  207. package/dist/docx/canonicalSave.d.ts +3 -3
  208. package/dist/docx/canonicalSessionInput.d.ts +3 -3
  209. package/dist/docx/canonicalStoryRepack.d.ts +2 -2
  210. package/dist/docx/chartPreview.d.ts +6 -0
  211. package/dist/docx/chartPreview.js +302 -0
  212. package/dist/docx/commentAnchorIndex.d.ts +6 -5
  213. package/dist/docx/commentAnchorIndex.js +236 -1
  214. package/dist/docx/commentIdNormalization.d.ts +4 -5
  215. package/dist/docx/commentParser.d.ts +4 -5
  216. package/dist/docx/commentParser.js +2 -1
  217. package/dist/docx/commentRangeIntegrity.d.ts +6 -5
  218. package/dist/docx/commentRangeIntegrity.js +17 -1
  219. package/dist/docx/commentRangeJoin.d.ts +2 -3
  220. package/dist/docx/commentReferenceCompletion.d.ts +2 -3
  221. package/dist/docx/commentReferenceNormalization.d.ts +4 -4
  222. package/dist/docx/commentReplyMarkers.d.ts +3 -4
  223. package/dist/docx/commentTextParagraph.d.ts +2 -3
  224. package/dist/docx/commentThreadKey.d.ts +2 -3
  225. package/dist/docx/compatibility.d.ts +12 -13
  226. package/dist/docx/conformance.d.ts +2 -3
  227. package/dist/docx/conformance.js +1 -1
  228. package/dist/docx/containerChildren.d.ts +18 -18
  229. package/dist/docx/containerChildren.gen.d.ts +5 -6
  230. package/dist/docx/contentTypeRegistry.d.ts +2 -2
  231. package/dist/docx/corePropertiesParser.d.ts +2 -2
  232. package/dist/docx/danglingRelationshipReferences.d.ts +3 -3
  233. package/dist/docx/defaultParagraphStyle.d.ts +6 -6
  234. package/dist/docx/diagramPreview.d.ts +5 -4
  235. package/dist/docx/diagramPreview.js +8 -3
  236. package/dist/docx/documentClone.js +1 -2
  237. package/dist/docx/documentGrid.d.ts +2 -2
  238. package/dist/docx/documentParser.d.ts +11 -11
  239. package/dist/docx/documentSectionFacts.d.ts +5 -6
  240. package/dist/docx/drawingAnchor.d.ts +14 -14
  241. package/dist/docx/drawingGroupChildren.d.ts +8 -8
  242. package/dist/docx/drawingIdNormalization.d.ts +3 -4
  243. package/dist/docx/drawingRelationships.d.ts +2 -2
  244. package/dist/docx/drawingUtils.d.ts +16 -17
  245. package/dist/docx/drawingUtils.js +4 -2
  246. package/dist/docx/encryption/agileDecryption.d.ts +2 -3
  247. package/dist/docx/encryption/compoundFile.d.ts +5 -6
  248. package/dist/docx/encryption/containerFormat.d.ts +4 -5
  249. package/dist/docx/encryption/cryptoBytes.d.ts +8 -9
  250. package/dist/docx/encryption/encryptionInfo.d.ts +5 -6
  251. package/dist/docx/encryption/errors.d.ts +5 -5
  252. package/dist/docx/encryption/openEncryptedDocx.d.ts +5 -6
  253. package/dist/docx/ensureParaIds.d.ts +6 -6
  254. package/dist/docx/ensureParaIds.js +1 -1
  255. package/dist/docx/fieldParser.d.ts +32 -33
  256. package/dist/docx/fieldParser.js +8 -6
  257. package/dist/docx/fieldState.d.ts +5 -6
  258. package/dist/docx/foldedListNumberFields.d.ts +15 -16
  259. package/dist/docx/fontTableParser.d.ts +2 -3
  260. package/dist/docx/footnoteParser.d.ts +11 -11
  261. package/dist/docx/footnoteParser.js +19 -0
  262. package/dist/docx/graphicFrameLocks.d.ts +5 -6
  263. package/dist/docx/groupDrawingParser.d.ts +4 -5
  264. package/dist/docx/groupDrawingParser.js +10 -5
  265. package/dist/docx/headerFooterParser.d.ts +14 -14
  266. package/dist/docx/headerFooterRefParser.d.ts +6 -7
  267. package/dist/docx/headerFooterReferenceNormalization.d.ts +5 -5
  268. package/dist/docx/headerFooterVerbatim.d.ts +14 -14
  269. package/dist/docx/hyperlinkParser.d.ts +20 -21
  270. package/dist/docx/hyperlinkParser.js +54 -11
  271. package/dist/docx/imageParser.d.ts +18 -18
  272. package/dist/docx/imageParser.js +6 -3
  273. package/dist/docx/imageRawXml.d.ts +9 -10
  274. package/dist/docx/importedIdCollisions.d.ts +3 -4
  275. package/dist/docx/inlineContentRemovals.d.ts +2 -3
  276. package/dist/docx/inlineWrapperContent.d.ts +38 -33
  277. package/dist/docx/inlineWrapperContent.js +29 -23
  278. package/dist/docx/inlineWrapperParser.d.ts +4 -5
  279. package/dist/docx/inlineWrapperParser.js +14 -0
  280. package/dist/docx/linkedSdtPreservation.d.ts +3 -3
  281. package/dist/docx/listMarkerComputation.d.ts +4 -5
  282. package/dist/docx/listModelNormalization.d.ts +2 -2
  283. package/dist/docx/listModelNormalization.js +15 -11
  284. package/dist/docx/listNumberingInstances.d.ts +8 -8
  285. package/dist/docx/listRendering.d.ts +5 -6
  286. package/dist/docx/listTemplate.d.ts +5 -5
  287. package/dist/docx/markupRangeMarker.d.ts +21 -4
  288. package/dist/docx/markupRangeMarker.js +35 -1
  289. package/dist/docx/mathToMathml.d.ts +8 -3
  290. package/dist/docx/mathToMathml.js +72 -4
  291. package/dist/docx/metadataPrivacy.d.ts +14 -14
  292. package/dist/docx/metadataPrivacy.js +3 -3
  293. package/dist/docx/metafileRaster.d.ts +4 -5
  294. package/dist/docx/metafileSvg.d.ts +2 -3
  295. package/dist/docx/metafileSvg.js +28 -39
  296. package/dist/docx/metafileSvgShared.d.ts +27 -0
  297. package/dist/docx/metafileSvgShared.js +28 -0
  298. package/dist/docx/modelValidation.d.ts +5 -6
  299. package/dist/docx/modelValidation.js +144 -1
  300. package/dist/docx/newImage.d.ts +2 -3
  301. package/dist/docx/nonVisualDrawingProps.d.ts +3 -3
  302. package/dist/docx/normalizeBaseDirection.d.ts +2 -3
  303. package/dist/docx/normalizeBaseDirection.js +6 -2
  304. package/dist/docx/noteIds.d.ts +2 -3
  305. package/dist/docx/notePropertiesParser.d.ts +3 -4
  306. package/dist/docx/noteReferenceMark.d.ts +6 -6
  307. package/dist/docx/noteReferenceStyles.d.ts +7 -8
  308. package/dist/docx/noteReferenceStyles.js +0 -13
  309. package/dist/docx/numberingIds.d.ts +3 -3
  310. package/dist/docx/numberingParser.d.ts +15 -16
  311. package/dist/docx/numberingParser.js +6 -30
  312. package/dist/docx/numberingReference.d.ts +2 -2
  313. package/dist/docx/numberingReferenceNormalization.d.ts +5 -5
  314. package/dist/docx/numberingReferenceNormalization.js +6 -9
  315. package/dist/docx/numericIdAllocator.d.ts +2 -2
  316. package/dist/docx/numericIdNormalization.d.ts +3 -3
  317. package/dist/docx/numericIdNormalization.js +0 -1
  318. package/dist/docx/ooxmlCounterFormatter.d.ts +3 -4
  319. package/dist/docx/opaqueCarrier.d.ts +5 -6
  320. package/dist/docx/packageParts.d.ts +8 -9
  321. package/dist/docx/paraIdAttribute.d.ts +11 -12
  322. package/dist/docx/paraIdRangeNormalization.d.ts +3 -4
  323. package/dist/docx/paragraphMarkPropertyPresence.d.ts +4 -5
  324. package/dist/docx/paragraphParser.d.ts +9 -9
  325. package/dist/docx/paragraphParser.js +45 -23
  326. package/dist/docx/paragraphProperties.d.ts +2 -3
  327. package/dist/docx/paragraphProperties.js +15 -2
  328. package/dist/docx/paragraphPropertySource.d.ts +56 -56
  329. package/dist/docx/paragraphPropertySource.js +37 -1
  330. package/dist/docx/paragraphTextBoxEnrichment.d.ts +2 -3
  331. package/dist/docx/paragraphTextBoxEnrichment.js +21 -6
  332. package/dist/docx/paragraphTraversal.d.ts +19 -10
  333. package/dist/docx/paragraphTraversal.js +110 -75
  334. package/dist/docx/parseContext.d.ts +5 -6
  335. package/dist/docx/parseWarningMessage.d.ts +3 -4
  336. package/dist/docx/parser.d.ts +11 -11
  337. package/dist/docx/parser.js +43 -15
  338. package/dist/docx/parserEnums.d.ts +37 -38
  339. package/dist/docx/preservedRunContent.d.ts +5 -6
  340. package/dist/docx/preservedRunContent.js +16 -0
  341. package/dist/docx/previewBudget.d.ts +6 -6
  342. package/dist/docx/previewBudget.js +1 -1
  343. package/dist/docx/propertyElementAttributes.d.ts +10 -11
  344. package/dist/docx/rasterMime.d.ts +4 -4
  345. package/dist/docx/relsParser.d.ts +20 -21
  346. package/dist/docx/removeHeaderFooterParts.d.ts +2 -2
  347. package/dist/docx/renderedPageBreakNormalization.d.ts +2 -2
  348. package/dist/docx/replyToComment.d.ts +4 -5
  349. package/dist/docx/replyToComment.js +2 -1
  350. package/dist/docx/reviewHistoryNamespace.d.ts +2 -3
  351. package/dist/docx/reviewResolutionProvenance.d.ts +15 -12
  352. package/dist/docx/reviewResolutionProvenance.js +15 -4
  353. package/dist/docx/revisionIdNormalization.d.ts +4 -4
  354. package/dist/docx/rezip.d.ts +40 -40
  355. package/dist/docx/rezip.js +113 -123
  356. package/dist/docx/runConsolidator.d.ts +7 -7
  357. package/dist/docx/runConsolidator.js +13 -0
  358. package/dist/docx/runParser.d.ts +12 -13
  359. package/dist/docx/runParser.js +31 -10
  360. package/dist/docx/runPayload.d.ts +2 -3
  361. package/dist/docx/runPropertyPresence.d.ts +7 -8
  362. package/dist/docx/saveDiagnostics.d.ts +3 -4
  363. package/dist/docx/sdtProperties.d.ts +6 -7
  364. package/dist/docx/sdtPropertiesPatch.d.ts +2 -3
  365. package/dist/docx/sectionParser.d.ts +15 -16
  366. package/dist/docx/sectionReferenceHistory.d.ts +6 -6
  367. package/dist/docx/selectedXmlIdentityScan.d.ts +2 -3
  368. package/dist/docx/selectiveSave.d.ts +3 -4
  369. package/dist/docx/selectiveSave.js +6 -3
  370. package/dist/docx/selectiveSaveFlags.d.ts +5 -6
  371. package/dist/docx/selectiveSaveFlags.js +1 -1
  372. package/dist/docx/selectiveSaveTripwire.d.ts +3 -4
  373. package/dist/docx/selectiveXmlPatch.d.ts +28 -28
  374. package/dist/docx/serializer/blockCustomXmlSerializer.d.ts +2 -3
  375. package/dist/docx/serializer/blockSdtSerializer.d.ts +2 -3
  376. package/dist/docx/serializer/blockSdtSerializer.js +2 -1
  377. package/dist/docx/serializer/borderSerializer.d.ts +2 -2
  378. package/dist/docx/serializer/borderSerializer.js +8 -0
  379. package/dist/docx/serializer/commentSerializer.d.ts +7 -8
  380. package/dist/docx/serializer/documentSerializer.d.ts +13 -14
  381. package/dist/docx/serializer/documentSerializer.js +17 -1
  382. package/dist/docx/serializer/fontTableSerializer.d.ts +2 -3
  383. package/dist/docx/serializer/groupTextBoxWriteBack.d.ts +2 -2
  384. package/dist/docx/serializer/groupTextBoxWriteBack.js +1 -4
  385. package/dist/docx/serializer/headerFooterSerializer.d.ts +2 -2
  386. package/dist/docx/serializer/headerFooterSerializer.js +5 -1
  387. package/dist/docx/serializer/markupRangeAttributes.d.ts +11 -6
  388. package/dist/docx/serializer/markupRangeAttributes.js +33 -6
  389. package/dist/docx/serializer/noteSerializer.d.ts +5 -6
  390. package/dist/docx/serializer/noteSerializer.js +26 -1
  391. package/dist/docx/serializer/numberingSerializer.d.ts +2 -3
  392. package/dist/docx/serializer/numberingSerializer.js +14 -0
  393. package/dist/docx/serializer/paragraphSerializer.d.ts +8 -9
  394. package/dist/docx/serializer/paragraphSerializer.js +27 -17
  395. package/dist/docx/serializer/partNamespaces.d.ts +9 -9
  396. package/dist/docx/serializer/runSerializer.d.ts +11 -12
  397. package/dist/docx/serializer/runSerializer.js +7 -2
  398. package/dist/docx/serializer/sdtPropertiesSerializer.d.ts +5 -6
  399. package/dist/docx/serializer/sectionPropertiesSerializer.d.ts +2 -3
  400. package/dist/docx/serializer/settingsSerializer.d.ts +2 -3
  401. package/dist/docx/serializer/settingsSerializer.js +9 -6
  402. package/dist/docx/serializer/stylesSerializer.d.ts +3 -4
  403. package/dist/docx/serializer/stylesSerializer.js +4 -1
  404. package/dist/docx/serializer/tableSerializer.d.ts +18 -18
  405. package/dist/docx/serializer/tableSerializer.js +22 -2
  406. package/dist/docx/serializer/textFormattingSerializer.d.ts +3 -3
  407. package/dist/docx/serializer/themeSerializer.d.ts +2 -3
  408. package/dist/docx/serializer/trackedChangeAttributes.d.ts +4 -4
  409. package/dist/docx/serializer/xmlUtils.d.ts +3 -4
  410. package/dist/docx/server/applyDocxXmlPatchProposal.d.ts +9 -9
  411. package/dist/docx/server/applyDocxXmlPatchProposal.js +1 -1
  412. package/dist/docx/server/boundedArchive.d.ts +11 -11
  413. package/dist/docx/server/boundedArchive.js +3 -3
  414. package/dist/docx/server/build.d.ts +14 -14
  415. package/dist/docx/server/build.js +9 -6
  416. package/dist/docx/server/createBilingualDocument.d.ts +13 -13
  417. package/dist/docx/server/createBilingualDocument.js +56 -21
  418. package/dist/docx/server/createBilingualDocx.d.ts +5 -6
  419. package/dist/docx/server/createBilingualDocx.js +7 -3
  420. package/dist/docx/server/docxToMarkdown.d.ts +2 -3
  421. package/dist/docx/server/docxToMarkdown.js +2 -1
  422. package/dist/docx/server/evaluateDocxXmlPatchProposal.d.ts +17 -17
  423. package/dist/docx/server/evaluateDocxXmlPatchProposal.js +2 -2
  424. package/dist/docx/server/extractDocxText.d.ts +10 -11
  425. package/dist/docx/server/extractDocxText.js +3 -2
  426. package/dist/docx/server/inspectDocxPackage.d.ts +14 -14
  427. package/dist/docx/server/inspectDocxPackage.js +3 -3
  428. package/dist/docx/server/materializeYjsDocx.d.ts +8 -8
  429. package/dist/docx/server/materializeYjsDocx.js +1 -1
  430. package/dist/docx/server/migrateYjsAttrSchema.d.ts +6 -6
  431. package/dist/docx/server/migrateYjsAttrSchema.js +3 -3
  432. package/dist/docx/server/validateDocxConformance.d.ts +14 -15
  433. package/dist/docx/settingsHeaderFooterUpdate.d.ts +2 -3
  434. package/dist/docx/settingsParser.d.ts +2 -2
  435. package/dist/docx/settingsParser.js +12 -0
  436. package/dist/docx/shadingParser.d.ts +2 -3
  437. package/dist/docx/shapeAlternateContent.d.ts +8 -7
  438. package/dist/docx/shapeAlternateContent.js +84 -9
  439. package/dist/docx/shapeParser.d.ts +4 -5
  440. package/dist/docx/shapeParser.js +2 -1
  441. package/dist/docx/storyBlockReplay.d.ts +5 -5
  442. package/dist/docx/storyBlockReplay.js +10 -2
  443. package/dist/docx/storyPlainText.d.ts +9 -10
  444. package/dist/docx/streamingXmlParser.d.ts +8 -8
  445. package/dist/docx/strictNames.d.ts +4 -5
  446. package/dist/docx/strictNames.gen.d.ts +6 -7
  447. package/dist/docx/strictValueEncodings.gen.d.ts +5 -6
  448. package/dist/docx/structuralXmlPatch.d.ts +2 -2
  449. package/dist/docx/styleParser.d.ts +11 -12
  450. package/dist/docx/styleParser.js +1 -3
  451. package/dist/docx/styleReferenceResolution.d.ts +3 -4
  452. package/dist/docx/tableLook.d.ts +7 -7
  453. package/dist/docx/tableParser.d.ts +47 -39
  454. package/dist/docx/tableParser.js +2 -4
  455. package/dist/docx/tableRowPropertyPresence.d.ts +5 -6
  456. package/dist/docx/textBoxParser.d.ts +25 -26
  457. package/dist/docx/textBoxParser.js +18 -19
  458. package/dist/docx/themeColorAttribute.d.ts +3 -4
  459. package/dist/docx/themeParser.d.ts +9 -10
  460. package/dist/docx/trackedChangeInfo.d.ts +5 -6
  461. package/dist/docx/trackedMoveRangeNormalization.d.ts +3 -3
  462. package/dist/docx/trackedMoveRangeNormalization.js +52 -21
  463. package/dist/docx/transitionalSpelling.d.ts +7 -8
  464. package/dist/docx/universalMeasure.d.ts +5 -6
  465. package/dist/docx/unzip.d.ts +15 -16
  466. package/dist/docx/unzip.js +2 -2
  467. package/dist/docx/verbatimCapture.d.ts +6 -6
  468. package/dist/docx/verbatimCapture.js +3 -2
  469. package/dist/docx/verticalMergeProjection.d.ts +4 -5
  470. package/dist/docx/verticalMergeProjection.js +1 -1
  471. package/dist/docx/vmlImageParser.d.ts +4 -5
  472. package/dist/docx/vmlPreview.d.ts +9 -10
  473. package/dist/docx/vmlPreview.js +0 -3
  474. package/dist/docx/watermarkParser.d.ts +4 -5
  475. package/dist/docx/wmfSvg.d.ts +10 -0
  476. package/dist/docx/wmfSvg.js +451 -0
  477. package/dist/docx/wordprocessingPrefixes.d.ts +12 -13
  478. package/dist/docx/wrapPolygon.d.ts +5 -6
  479. package/dist/docx/wrapTypes.js +1 -2
  480. package/dist/docx/xmlEncoding.d.ts +2 -3
  481. package/dist/docx/xmlNamespaceContext.d.ts +5 -6
  482. package/dist/docx/xmlParser.d.ts +49 -50
  483. package/dist/docx/xmlParser.js +12 -12
  484. package/dist/docx/xmlResourceLimits.d.ts +10 -10
  485. package/dist/docx/xmlResourceLimits.js +1 -1
  486. package/dist/docx/xmlSafety.d.ts +3 -4
  487. package/dist/export-pdf.d.ts +11 -11
  488. package/dist/export-pdf.js +2 -1
  489. package/dist/fields/bookmarkPages.d.ts +2 -3
  490. package/dist/fields/bookmarkText.d.ts +2 -2
  491. package/dist/fields/bookmarkText.js +3 -2
  492. package/dist/fields/evaluateField.d.ts +3 -3
  493. package/dist/fields/fieldContext.d.ts +2 -3
  494. package/dist/fields/resolveFieldValues.d.ts +7 -8
  495. package/dist/fields/sectionPageCounts.d.ts +2 -3
  496. package/dist/fields/seqValues.d.ts +2 -3
  497. package/dist/fonts/FontFaceLifecycle.d.ts +12 -0
  498. package/dist/fonts/FontFaceLifecycle.js +56 -0
  499. package/dist/fonts/documentFontFacts.d.ts +17 -0
  500. package/dist/fonts/documentFontFacts.js +41 -0
  501. package/dist/fonts/embeddedFontFingerprint.d.ts +2 -3
  502. package/dist/fonts/embeddedFontFingerprint.js +3 -2
  503. package/dist/fonts/embeddedFonts.d.ts +7 -8
  504. package/dist/fonts/fontAlternates.d.ts +4 -5
  505. package/dist/fonts/fontAlternates.js +2 -1
  506. package/dist/fonts/fontDeobfuscation.d.ts +3 -4
  507. package/dist/fonts/fontDeobfuscation.js +7 -3
  508. package/dist/fonts/fontsourceFaces.d.ts +7 -8
  509. package/dist/fonts/fontsourceFaces.js +16 -0
  510. package/dist/fonts/headlessMeasure.d.ts +10 -10
  511. package/dist/fonts/sfnt/parse.d.ts +5 -5
  512. package/dist/fonts/sfnt/parse.js +2 -1
  513. package/dist/fonts/sfnt/subset.d.ts +4 -4
  514. package/dist/fonts/sfnt/tables.d.ts +14 -14
  515. package/dist/fonts/sfnt/woff.d.ts +4 -4
  516. package/dist/headless-layout.d.ts +7 -7
  517. package/dist/headless-layout.js +7 -0
  518. package/dist/i18n/messages/ar.gen.d.ts +2 -2
  519. package/dist/i18n/messages/catalogs.gen.d.ts +2 -3
  520. package/dist/i18n/messages/cs.gen.d.ts +2 -2
  521. package/dist/i18n/messages/de.gen.d.ts +2 -2
  522. package/dist/i18n/messages/en.gen.d.ts +2 -2
  523. package/dist/i18n/messages/es.gen.d.ts +2 -2
  524. package/dist/i18n/messages/et.gen.d.ts +2 -2
  525. package/dist/i18n/messages/fr.gen.d.ts +2 -2
  526. package/dist/i18n/messages/he.gen.d.ts +2 -2
  527. package/dist/i18n/messages/hi.gen.d.ts +2 -2
  528. package/dist/i18n/messages/hu.gen.d.ts +2 -2
  529. package/dist/i18n/messages/locales.d.ts +3 -4
  530. package/dist/i18n/messages/lt.gen.d.ts +2 -2
  531. package/dist/i18n/messages/lv.gen.d.ts +2 -2
  532. package/dist/i18n/messages/pl.gen.d.ts +2 -2
  533. package/dist/i18n/messages/pt-BR.gen.d.ts +2 -2
  534. package/dist/i18n/messages/sk.gen.d.ts +2 -2
  535. package/dist/i18n/messages/tr.gen.d.ts +2 -2
  536. package/dist/i18n/messages/zh-CN.gen.d.ts +2 -2
  537. package/dist/i18n/messages.d.ts +4 -4
  538. package/dist/internal/acceptedBlockProjection.d.ts +2 -3
  539. package/dist/internal/acceptedBlockProjection.js +5 -1
  540. package/dist/internal/compare/inline-presentation.d.ts +4 -4
  541. package/dist/internal/headlessRevisionResolutionGuard.d.ts +2 -3
  542. package/dist/internal/indexedPositionMap.d.ts +2 -3
  543. package/dist/internal/noteMarkerAttrs.d.ts +3 -4
  544. package/dist/internal/pageBreakRunDescendantIndex.d.ts +3 -4
  545. package/dist/internal/pageBreakRunPartition.d.ts +4 -4
  546. package/dist/internal/pageBreakRunSourceDescendantIndex.d.ts +4 -5
  547. package/dist/internal/pageBreakRunSourceDescendantIndex.js +5 -1
  548. package/dist/internal/paragraphFormattingSerialization.d.ts +6 -6
  549. package/dist/internal/paragraphFormattingSerialization.js +3 -1
  550. package/dist/internal/prosemirrorAttrBoundary.d.ts +9 -10
  551. package/dist/internal/prosemirrorAttrBoundary.js +2 -1
  552. package/dist/internal/revisionResolutionEdits.d.ts +2 -2
  553. package/dist/internal/revisionResolutionInline.d.ts +4 -3
  554. package/dist/internal/revisionResolutionInline.js +69 -48
  555. package/dist/internal/revisionResolutionStep.d.ts +3 -3
  556. package/dist/internal/revisionResolutionTracking.d.ts +2 -2
  557. package/dist/internal/revisionResolutionTracking.js +3 -3
  558. package/dist/internal/sectionEndpointResolution.d.ts +5 -5
  559. package/dist/internal/sectionReferenceResolution.d.ts +6 -7
  560. package/dist/internal/wholeStoryRevisionResolution.d.ts +6 -4
  561. package/dist/internal/wholeStoryRevisionResolution.js +168 -52
  562. package/dist/layout-bridge/cellSelectionHighlight.d.ts +2 -3
  563. package/dist/layout-bridge/convert/endnoteLayout.d.ts +8 -8
  564. package/dist/layout-bridge/convert/endnoteLayout.js +2 -1
  565. package/dist/layout-bridge/convert/fixedTableColumnWidths.d.ts +2 -3
  566. package/dist/layout-bridge/convert/flowBlockPostprocessing.d.ts +5 -6
  567. package/dist/layout-bridge/convert/flowBorders.d.ts +3 -4
  568. package/dist/layout-bridge/convert/flowConversionShared.d.ts +9 -7
  569. package/dist/layout-bridge/convert/footnoteLayout.d.ts +14 -14
  570. package/dist/layout-bridge/convert/footnoteLayout.js +10 -0
  571. package/dist/layout-bridge/convert/headerFooterLayout.d.ts +13 -12
  572. package/dist/layout-bridge/convert/headerFooterLayout.js +10 -4
  573. package/dist/layout-bridge/convert/imageConversion.d.ts +6 -7
  574. package/dist/layout-bridge/convert/listMarkers.d.ts +9 -9
  575. package/dist/layout-bridge/convert/markupViewFlow.d.ts +3 -3
  576. package/dist/layout-bridge/convert/noteReferences.d.ts +2 -3
  577. package/dist/layout-bridge/convert/pageBreakSplitting.d.ts +4 -4
  578. package/dist/layout-bridge/convert/pageBreakSplitting.js +4 -0
  579. package/dist/layout-bridge/convert/paragraphAttrs.d.ts +2 -2
  580. package/dist/layout-bridge/convert/paragraphAttrs.js +18 -11
  581. package/dist/layout-bridge/convert/paragraphConversion.d.ts +4 -5
  582. package/dist/layout-bridge/convert/paragraphConversion.js +9 -2
  583. package/dist/layout-bridge/convert/paragraphFrames.d.ts +2 -2
  584. package/dist/layout-bridge/convert/paragraphFrames.js +1 -1
  585. package/dist/layout-bridge/convert/paragraphMarkFormatting.d.ts +3 -4
  586. package/dist/layout-bridge/convert/paragraphRuns.d.ts +3 -4
  587. package/dist/layout-bridge/convert/paragraphRuns.js +35 -14
  588. package/dist/layout-bridge/convert/runFormattingMerge.d.ts +5 -5
  589. package/dist/layout-bridge/convert/runFormattingMerge.js +1 -0
  590. package/dist/layout-bridge/convert/runMarkFormatting.d.ts +2 -3
  591. package/dist/layout-bridge/convert/runMarkFormatting.js +12 -4
  592. package/dist/layout-bridge/convert/sectionBoundaries.d.ts +6 -6
  593. package/dist/layout-bridge/convert/tableConversion.d.ts +3 -4
  594. package/dist/layout-bridge/convert/tableConversion.js +1 -1
  595. package/dist/layout-bridge/convert/templatePreviewFlow.d.ts +6 -7
  596. package/dist/layout-bridge/convert/textBoxFill.d.ts +3 -4
  597. package/dist/layout-bridge/convert/textFormattingConversion.d.ts +8 -7
  598. package/dist/layout-bridge/convert/textFormattingConversion.js +10 -1
  599. package/dist/layout-bridge/convert/toFlowBlocks.d.ts +3 -3
  600. package/dist/layout-bridge/convert/toFlowBlocks.js +19 -11
  601. package/dist/layout-bridge/convert/wrapEditorViewAsSurface.d.ts +3 -4
  602. package/dist/layout-bridge/dom/clickToPositionDom.d.ts +12 -13
  603. package/dist/layout-bridge/dom/clickToPositionDom.js +30 -4
  604. package/dist/layout-bridge/dom/findBodyPmSpans.d.ts +5 -6
  605. package/dist/layout-bridge/dom/findHfPmSpans.d.ts +10 -11
  606. package/dist/layout-bridge/dom/imeCaretAnchor.d.ts +3 -3
  607. package/dist/layout-bridge/dom/noteStoryDom.d.ts +2 -3
  608. package/dist/layout-bridge/dom/textStreamDom.d.ts +16 -9
  609. package/dist/layout-bridge/dom/textStreamDom.js +18 -3
  610. package/dist/layout-bridge/engine/clickToPosition.d.ts +8 -9
  611. package/dist/layout-bridge/engine/clickToPosition.js +77 -94
  612. package/dist/layout-bridge/engine/hitTest.d.ts +18 -19
  613. package/dist/layout-bridge/engine/hitTest.js +2 -1
  614. package/dist/layout-bridge/engine/linePmRange.d.ts +7 -0
  615. package/dist/layout-bridge/engine/linePmRange.js +34 -0
  616. package/dist/layout-bridge/engine/selectionRects.d.ts +7 -8
  617. package/dist/layout-bridge/engine/selectionRects.js +53 -77
  618. package/dist/layout-bridge/headerFooterLayout.d.ts +4 -5
  619. package/dist/layout-bridge/measuring/measureBlocksPipeline.d.ts +2 -3
  620. package/dist/layout-bridge/sectionColumns.d.ts +2 -3
  621. package/dist/layout-bridge/tableInsertHover.d.ts +6 -7
  622. package/dist/layout-engine/anchorLayoutInCellCompatibility.d.ts +2 -3
  623. package/dist/layout-engine/footnoteColumnReflow.d.ts +2 -2
  624. package/dist/layout-engine/headerFooterRefs.d.ts +2 -3
  625. package/dist/layout-engine/imageLayout.d.ts +2 -3
  626. package/dist/layout-engine/index.d.ts +3 -3
  627. package/dist/layout-engine/index.js +9 -6
  628. package/dist/layout-engine/justificationCompatibility.d.ts +2 -3
  629. package/dist/layout-engine/keep-together.d.ts +7 -8
  630. package/dist/layout-engine/keep-together.js +1 -1
  631. package/dist/layout-engine/layoutFlowShared.d.ts +3 -4
  632. package/dist/layout-engine/layoutInstrumentation.d.ts +18 -19
  633. package/dist/layout-engine/lineFlow.d.ts +4 -5
  634. package/dist/layout-engine/measure/advanceComposition.d.ts +8 -8
  635. package/dist/layout-engine/measure/advanceComposition.js +24 -5
  636. package/dist/layout-engine/measure/automaticTextSpacing.d.ts +36 -0
  637. package/dist/layout-engine/measure/automaticTextSpacing.js +178 -0
  638. package/dist/layout-engine/measure/cache.d.ts +22 -22
  639. package/dist/layout-engine/measure/cache.js +50 -14
  640. package/dist/layout-engine/measure/clampFloatingWrapMargins.d.ts +2 -3
  641. package/dist/layout-engine/measure/complexScriptFormatting.d.ts +5 -5
  642. package/dist/layout-engine/measure/crossRunWords.d.ts +8 -8
  643. package/dist/layout-engine/measure/crossRunWords.js +9 -4
  644. package/dist/layout-engine/measure/effectiveLineBreakPolicy.d.ts +3 -3
  645. package/dist/layout-engine/measure/effectiveLineBreakPolicy.js +3 -1
  646. package/dist/layout-engine/measure/featureFlags.d.ts +4 -5
  647. package/dist/layout-engine/measure/floatingLineClearance.d.ts +3 -4
  648. package/dist/layout-engine/measure/floatingTablePosition.d.ts +3 -3
  649. package/dist/layout-engine/measure/floatingZones.d.ts +11 -10
  650. package/dist/layout-engine/measure/font-metrics.worker.d.ts +3 -4
  651. package/dist/layout-engine/measure/hyperlinkInstance.d.ts +3 -4
  652. package/dist/layout-engine/measure/hyphenationDictionaries.d.ts +15 -15
  653. package/dist/layout-engine/measure/hyphenationDictionaries.js +4 -4
  654. package/dist/layout-engine/measure/hyphenationPreload.d.ts +2 -3
  655. package/dist/layout-engine/measure/inlineObjectMetrics.d.ts +3 -4
  656. package/dist/layout-engine/measure/justification.d.ts +7 -7
  657. package/dist/layout-engine/measure/lineBreakProvider.d.ts +16 -11
  658. package/dist/layout-engine/measure/lineBreakProvider.js +29 -4
  659. package/dist/layout-engine/measure/lineBreaks.d.ts +7 -8
  660. package/dist/layout-engine/measure/lineBreaks.js +5 -2
  661. package/dist/layout-engine/measure/lineFitting.d.ts +11 -11
  662. package/dist/layout-engine/measure/lineFitting.js +17 -6
  663. package/dist/layout-engine/measure/lineTypography.d.ts +7 -8
  664. package/dist/layout-engine/measure/lineTypography.js +1 -0
  665. package/dist/layout-engine/measure/listMarkerWidth.d.ts +9 -6
  666. package/dist/layout-engine/measure/listMarkerWidth.js +7 -3
  667. package/dist/layout-engine/measure/measureBlocks.d.ts +7 -7
  668. package/dist/layout-engine/measure/measureBlocks.js +13 -7
  669. package/dist/layout-engine/measure/measureContainer.d.ts +5 -6
  670. package/dist/layout-engine/measure/measureContainer.js +27 -6
  671. package/dist/layout-engine/measure/measureHelpers.d.ts +21 -18
  672. package/dist/layout-engine/measure/measureHelpers.js +12 -3
  673. package/dist/layout-engine/measure/measureParagraph.d.ts +5 -5
  674. package/dist/layout-engine/measure/measureParagraph.js +57 -11
  675. package/dist/layout-engine/measure/measureProvider.d.ts +15 -9
  676. package/dist/layout-engine/measure/measureProvider.js +66 -4
  677. package/dist/layout-engine/measure/measureTypes.d.ts +17 -14
  678. package/dist/layout-engine/measure/measureWorker.d.ts +8 -8
  679. package/dist/layout-engine/measure/measureWorkerProtocol.d.ts +6 -7
  680. package/dist/layout-engine/measure/paragraphMeasureShared.d.ts +19 -20
  681. package/dist/layout-engine/measure/paragraphTabs.d.ts +6 -7
  682. package/dist/layout-engine/measure/paragraphTabs.js +16 -17
  683. package/dist/layout-engine/measure/smallCapsCasing.d.ts +6 -7
  684. package/dist/layout-engine/measure/tabCalculator.d.ts +15 -16
  685. package/dist/layout-engine/measure/tableCellFloating.d.ts +6 -6
  686. package/dist/layout-engine/measure/tableCellFlow.d.ts +7 -7
  687. package/dist/layout-engine/measure/tableCellGrid.d.ts +14 -14
  688. package/dist/layout-engine/measure/tableFragmentBorderGeometry.d.ts +2 -2
  689. package/dist/layout-engine/measure/tableInlinePlacement.d.ts +3 -3
  690. package/dist/layout-engine/measure/textBoxParagraphLayout.d.ts +4 -4
  691. package/dist/layout-engine/measure/textMeasurementPolicy.d.ts +8 -8
  692. package/dist/layout-engine/noColumnBalanceCompatibility.d.ts +7 -0
  693. package/dist/layout-engine/noColumnBalanceCompatibility.js +5 -0
  694. package/dist/layout-engine/noteAreaFlow.d.ts +4 -5
  695. package/dist/layout-engine/paginator.d.ts +18 -11
  696. package/dist/layout-engine/paginator.js +51 -11
  697. package/dist/layout-engine/paragraphFragmentRange.d.ts +2 -3
  698. package/dist/layout-engine/paragraphFrame.d.ts +2 -21
  699. package/dist/layout-engine/paragraphFrame.js +1 -17
  700. package/dist/layout-engine/paragraphLayout.d.ts +2 -2
  701. package/dist/layout-engine/paragraphLayout.js +28 -9
  702. package/dist/layout-engine/paragraphSequence.d.ts +3 -4
  703. package/dist/layout-engine/paragraphSpacing.d.ts +10 -10
  704. package/dist/layout-engine/pmPageIndex.d.ts +3 -4
  705. package/dist/layout-engine/renderedBreakReconciliation.d.ts +7 -7
  706. package/dist/layout-engine/section-breaks.d.ts +15 -15
  707. package/dist/layout-engine/sectionLayout.d.ts +7 -7
  708. package/dist/layout-engine/sectionLayout.js +1 -4
  709. package/dist/layout-engine/sectionVerticalAlignment.d.ts +2 -3
  710. package/dist/layout-engine/tableIndentCompatibility.d.ts +2 -3
  711. package/dist/layout-engine/tableLayout.d.ts +4 -5
  712. package/dist/layout-engine/tableLayout.js +17 -9
  713. package/dist/layout-engine/tableRowBreak.d.ts +6 -6
  714. package/dist/layout-engine/tableRowBreak.js +10 -5
  715. package/dist/layout-engine/textBoxFlow.d.ts +6 -6
  716. package/dist/layout-engine/textBoxGroup.d.ts +3 -4
  717. package/dist/layout-engine/textBoxLayout.d.ts +2 -2
  718. package/dist/layout-engine/types.d.ts +108 -88
  719. package/dist/layout-painter/anchoredImagePosition.d.ts +4 -5
  720. package/dist/layout-painter/borderStroke.d.ts +4 -4
  721. package/dist/layout-painter/cursiveJoiners.d.ts +7 -7
  722. package/dist/layout-painter/documentColors.d.ts +6 -7
  723. package/dist/layout-painter/imageLayout.d.ts +13 -14
  724. package/dist/layout-painter/index.d.ts +8 -7
  725. package/dist/layout-painter/index.js +7 -2
  726. package/dist/layout-painter/registry/modules/image.d.ts +2 -3
  727. package/dist/layout-painter/registry/modules/paragraph.d.ts +2 -3
  728. package/dist/layout-painter/registry/modules/table.d.ts +2 -3
  729. package/dist/layout-painter/registry/modules/textBox.d.ts +2 -3
  730. package/dist/layout-painter/registry/modules.d.ts +2 -3
  731. package/dist/layout-painter/registry/registry.d.ts +4 -5
  732. package/dist/layout-painter/registry/types.d.ts +8 -9
  733. package/dist/layout-painter/renderFragment.d.ts +4 -5
  734. package/dist/layout-painter/renderImage.d.ts +12 -13
  735. package/dist/layout-painter/renderPage.d.ts +27 -25
  736. package/dist/layout-painter/renderPage.js +116 -31
  737. package/dist/layout-painter/renderParagraph.d.ts +19 -15
  738. package/dist/layout-painter/renderParagraph.js +186 -46
  739. package/dist/layout-painter/renderTable.d.ts +7 -8
  740. package/dist/layout-painter/renderTable.js +27 -15
  741. package/dist/layout-painter/renderTextBox.d.ts +5 -6
  742. package/dist/layout-painter/renderTextBox.js +9 -1
  743. package/dist/layout-painter/renderUtils.d.ts +11 -14
  744. package/dist/layout-painter/renderUtils.js +1 -19
  745. package/dist/layout-painter/renderWatermark.d.ts +5 -4
  746. package/dist/layout-painter/sdtBoundary.d.ts +4 -5
  747. package/dist/layout-painter/tableRowPaintGeometry.d.ts +2 -2
  748. package/dist/managers/AutoSaveManager.d.ts +11 -12
  749. package/dist/managers/AutoSaveManager.js +17 -3
  750. package/dist/managers/ClipboardManager.d.ts +7 -8
  751. package/dist/managers/ContextMenuManager.d.ts +3 -4
  752. package/dist/managers/DocumentLoaderManager.d.ts +5 -6
  753. package/dist/managers/EditorModeManager.d.ts +12 -12
  754. package/dist/managers/ErrorManager.d.ts +2 -3
  755. package/dist/managers/FindReplaceManager.d.ts +6 -6
  756. package/dist/managers/HistoryManager.d.ts +9 -10
  757. package/dist/managers/Subscribable.d.ts +2 -3
  758. package/dist/managers/TableSelectionManager.d.ts +9 -10
  759. package/dist/managers/TableSelectionManager.js +3 -13
  760. package/dist/managers/autoSaveCodec.d.ts +8 -9
  761. package/dist/managers/editorShortcuts.d.ts +14 -15
  762. package/dist/managers/reviewDisplayMode.d.ts +4 -5
  763. package/dist/managers/types.d.ts +7 -8
  764. package/dist/markdown/annotations.d.ts +6 -7
  765. package/dist/markdown/escape.d.ts +6 -7
  766. package/dist/markdown/fromMarkdown.d.ts +2 -3
  767. package/dist/markdown/images.d.ts +2 -3
  768. package/dist/markdown/index.d.ts +3 -3
  769. package/dist/markdown/index.js +28 -2
  770. package/dist/markdown/internals.d.ts +4 -5
  771. package/dist/markdown/internals.js +3 -2
  772. package/dist/markdown/renderBlock.d.ts +2 -3
  773. package/dist/markdown/renderBlock.js +5 -1
  774. package/dist/markdown/renderParagraph.d.ts +4 -5
  775. package/dist/markdown/renderParagraph.js +42 -17
  776. package/dist/markdown/renderRuns.d.ts +3 -3
  777. package/dist/markdown/renderRuns.js +15 -10
  778. package/dist/markdown/renderTable.d.ts +2 -3
  779. package/dist/markdown/renderTable.js +21 -8
  780. package/dist/markdown/trailers.d.ts +2 -3
  781. package/dist/markdown/types.d.ts +7 -8
  782. package/dist/model.d.ts +1 -1
  783. package/dist/paged-layout/LayoutSelectionGate.d.ts +2 -2
  784. package/dist/paged-layout/blockGeometry.d.ts +5 -6
  785. package/dist/paged-layout/editorScrollRoot.d.ts +5 -5
  786. package/dist/paged-layout/fitWidthZoom.d.ts +36 -0
  787. package/dist/paged-layout/fitWidthZoom.js +31 -0
  788. package/dist/paged-layout/hiddenEditorScroll.d.ts +2 -3
  789. package/dist/paged-layout/incrementalMeasure.d.ts +6 -7
  790. package/dist/paged-layout/pageText.d.ts +2 -2
  791. package/dist/paged-layout/paragraphFlash.d.ts +7 -7
  792. package/dist/paged-layout/paragraphFlashTypes.d.ts +3 -4
  793. package/dist/paged-layout/rangeProjection.d.ts +11 -12
  794. package/dist/paged-layout/readOnlyEditAttempt.d.ts +2 -2
  795. package/dist/paged-layout/scrollNavigation.d.ts +5 -6
  796. package/dist/paged-layout/scrollPageInfo.d.ts +5 -6
  797. package/dist/paged-layout/scrollToPmPosition.d.ts +4 -5
  798. package/dist/paged-layout/sectionBlockWidths.d.ts +3 -3
  799. package/dist/paged-layout/sectionBlockWidths.js +0 -3
  800. package/dist/paged-layout/sectionGeometry.d.ts +10 -11
  801. package/dist/paged-layout/selectionViewportRect.d.ts +5 -6
  802. package/dist/paged-layout/tableColumnResize.d.ts +2 -3
  803. package/dist/paged-layout/tableInsertButtonGeometry.d.ts +2 -3
  804. package/dist/paged-layout/transactionDirtyRange.d.ts +2 -3
  805. package/dist/paged-layout/zoomScrollAnchor.d.ts +5 -5
  806. package/dist/panel-layout.d.ts +11 -12
  807. package/dist/pdf/contentStream.d.ts +11 -12
  808. package/dist/pdf/fonts.d.ts +11 -11
  809. package/dist/pdf/fonts.js +0 -19
  810. package/dist/pdf/images.d.ts +5 -5
  811. package/dist/pdf/images.js +4 -1
  812. package/dist/pdf/objects.d.ts +23 -24
  813. package/dist/pdf/pageSpace.d.ts +9 -10
  814. package/dist/pdf/paint.d.ts +6 -6
  815. package/dist/pdf/paint.js +28 -1
  816. package/dist/pdf/writePdf.d.ts +6 -6
  817. package/dist/prosemirror/addTrackedDeletionMark.d.ts +2 -2
  818. package/dist/prosemirror/alternateContentAttrs.d.ts +5 -4
  819. package/dist/prosemirror/alternateContentAttrs.js +13 -3
  820. package/dist/prosemirror/anchoredTextBoxes.d.ts +10 -11
  821. package/dist/prosemirror/attrs/index.d.ts +86 -86
  822. package/dist/prosemirror/attrs/index.js +127 -99
  823. package/dist/prosemirror/authoredTransformAttrs.d.ts +3 -3
  824. package/dist/prosemirror/autospacingBase.d.ts +5 -5
  825. package/dist/prosemirror/bookmarkBoundaryAttrs.d.ts +7 -7
  826. package/dist/prosemirror/bookmarkBoundaryAttrs.js +31 -2
  827. package/dist/prosemirror/bookmarkBoundaryIntegrity.d.ts +3 -4
  828. package/dist/prosemirror/canonicalCommands.d.ts +30 -13
  829. package/dist/prosemirror/canonicalCommands.js +5 -4
  830. package/dist/prosemirror/canonicalSelectionRange.d.ts +14 -4
  831. package/dist/prosemirror/canonicalSelectionRange.js +20 -1
  832. package/dist/prosemirror/cellDragSelection.d.ts +6 -7
  833. package/dist/prosemirror/cellDragSelection.js +9 -0
  834. package/dist/prosemirror/clearRunColor.d.ts +2 -3
  835. package/dist/prosemirror/clearRunColor.js +8 -5
  836. package/dist/prosemirror/clipboardIntent.d.ts +3 -4
  837. package/dist/prosemirror/commands/clearParagraphIndent.d.ts +2 -3
  838. package/dist/prosemirror/commands/comments.d.ts +28 -28
  839. package/dist/prosemirror/commands/comments.js +220 -83
  840. package/dist/prosemirror/commands/contentControls.d.ts +9 -9
  841. package/dist/prosemirror/commands/contentControls.js +2 -1
  842. package/dist/prosemirror/commands/contentControlsBlockFill.d.ts +2 -3
  843. package/dist/prosemirror/commands/contentControlsBlockFill.js +2 -1
  844. package/dist/prosemirror/commands/formatPainter.d.ts +5 -5
  845. package/dist/prosemirror/commands/formatPainter.js +14 -11
  846. package/dist/prosemirror/commands/formatting.d.ts +20 -20
  847. package/dist/prosemirror/commands/hyperlink.d.ts +5 -6
  848. package/dist/prosemirror/commands/hyperlink.js +7 -6
  849. package/dist/prosemirror/commands/image.d.ts +14 -14
  850. package/dist/prosemirror/commands/pageBreak.d.ts +2 -3
  851. package/dist/prosemirror/commands/pageBreak.js +2 -1
  852. package/dist/prosemirror/commands/paragraph.d.ts +35 -35
  853. package/dist/prosemirror/commands/paragraphBookmarkJoin.d.ts +5 -5
  854. package/dist/prosemirror/commands/paragraphBookmarkJoin.js +4 -7
  855. package/dist/prosemirror/commands/pastePlainText.d.ts +4 -5
  856. package/dist/prosemirror/commands/propertyChangeScope.d.ts +13 -13
  857. package/dist/prosemirror/commands/propertyChangeScope.js +2 -0
  858. package/dist/prosemirror/commands/resolveAllTableChanges.d.ts +3 -3
  859. package/dist/prosemirror/commands/resolveNodePropertyChangeAttrs.d.ts +3 -3
  860. package/dist/prosemirror/commands/resolveParagraphProperties.d.ts +3 -3
  861. package/dist/prosemirror/commands/resolveParagraphProperties.js +1 -1
  862. package/dist/prosemirror/commands/sectionBreak.d.ts +9 -8
  863. package/dist/prosemirror/commands/sectionBreak.js +14 -1
  864. package/dist/prosemirror/commands/table.d.ts +34 -34
  865. package/dist/prosemirror/commands/tableCellMergeResolution.d.ts +8 -8
  866. package/dist/prosemirror/commands/tableCellMergeResolution.js +3 -2
  867. package/dist/prosemirror/commands/tableMergeFoldDecisions.d.ts +4 -4
  868. package/dist/prosemirror/commentBoundaryOwnership.d.ts +15 -0
  869. package/dist/prosemirror/commentBoundaryOwnership.js +4 -0
  870. package/dist/prosemirror/commentIdAllocator.d.ts +8 -8
  871. package/dist/prosemirror/commentIdAllocator.js +2 -0
  872. package/dist/prosemirror/commentOps.d.ts +6 -7
  873. package/dist/prosemirror/commentOps.js +3 -19
  874. package/dist/prosemirror/commentRangeBoundaryAttrs.d.ts +16 -0
  875. package/dist/prosemirror/commentRangeBoundaryAttrs.js +51 -0
  876. package/dist/prosemirror/commentRangeInlineAtoms.d.ts +5 -5
  877. package/dist/prosemirror/commentRangeInlineAtoms.js +1 -0
  878. package/dist/prosemirror/commentReferenceAttrs.d.ts +3 -4
  879. package/dist/prosemirror/commentReferenceAttrs.js +4 -1
  880. package/dist/prosemirror/commentReferenceIntegrity.d.ts +15 -6
  881. package/dist/prosemirror/commentReferenceIntegrity.js +93 -1
  882. package/dist/prosemirror/containerFinalParagraph.d.ts +4 -4
  883. package/dist/prosemirror/contentControlRevisions.d.ts +7 -7
  884. package/dist/prosemirror/conversion/effectiveTableCellFormatting.d.ts +4 -4
  885. package/dist/prosemirror/conversion/fromProseDoc.d.ts +10 -10
  886. package/dist/prosemirror/conversion/fromProseDoc.js +473 -176
  887. package/dist/prosemirror/conversion/hyphenTextCarriers.d.ts +2 -3
  888. package/dist/prosemirror/conversion/markInterner.d.ts +2 -3
  889. package/dist/prosemirror/conversion/preservedSinkCarriers.d.ts +5 -5
  890. package/dist/prosemirror/conversion/runShadingMark.d.ts +3 -4
  891. package/dist/prosemirror/conversion/sdtAttrs.d.ts +6 -7
  892. package/dist/prosemirror/conversion/toProseDoc.d.ts +15 -9
  893. package/dist/prosemirror/conversion/toProseDoc.js +318 -202
  894. package/dist/prosemirror/copyOriginDom.d.ts +8 -0
  895. package/dist/prosemirror/copyOriginDom.js +21 -0
  896. package/dist/prosemirror/copyOriginResolution.d.ts +15 -0
  897. package/dist/prosemirror/copyOriginResolution.js +202 -0
  898. package/dist/prosemirror/documentSchema.d.ts +2 -3
  899. package/dist/prosemirror/emptyFieldResultRuns.d.ts +3 -3
  900. package/dist/prosemirror/emptyRangeAnchor.d.ts +6 -6
  901. package/dist/prosemirror/executeEditorCommand.d.ts +4 -5
  902. package/dist/prosemirror/extensions/ExtensionManager.d.ts +2 -3
  903. package/dist/prosemirror/extensions/StarterKit.d.ts +3 -4
  904. package/dist/prosemirror/extensions/StarterKit.js +5 -1
  905. package/dist/prosemirror/extensions/core/DocExtension.d.ts +2 -3
  906. package/dist/prosemirror/extensions/core/DocExtension.js +1 -1
  907. package/dist/prosemirror/extensions/core/HistoryExtension.d.ts +3 -3
  908. package/dist/prosemirror/extensions/core/HistoryExtension.js +5 -4
  909. package/dist/prosemirror/extensions/core/ParagraphExtension.d.ts +8 -9
  910. package/dist/prosemirror/extensions/core/ParagraphExtension.js +17 -9
  911. package/dist/prosemirror/extensions/core/TextExtension.d.ts +2 -3
  912. package/dist/prosemirror/extensions/create.d.ts +4 -5
  913. package/dist/prosemirror/extensions/features/AutoBidiDetectionExtension.d.ts +4 -5
  914. package/dist/prosemirror/extensions/features/BaseKeymapExtension.d.ts +3 -4
  915. package/dist/prosemirror/extensions/features/BidiShortcutExtension.d.ts +2 -3
  916. package/dist/prosemirror/extensions/features/ContentControlWidgetsExtension.d.ts +2 -3
  917. package/dist/prosemirror/extensions/features/DropCursorExtension.d.ts +2 -3
  918. package/dist/prosemirror/extensions/features/EmptyParagraphFormatExtension.d.ts +3 -4
  919. package/dist/prosemirror/extensions/features/GapCursorExtension.d.ts +2 -3
  920. package/dist/prosemirror/extensions/features/ImageDragExtension.d.ts +2 -3
  921. package/dist/prosemirror/extensions/features/ImagePasteExtension.d.ts +2 -3
  922. package/dist/prosemirror/extensions/features/ImagePasteExtension.js +2 -1
  923. package/dist/prosemirror/extensions/features/JoinedRunStyleExtension.d.ts +3 -4
  924. package/dist/prosemirror/extensions/features/ListExtension.d.ts +6 -7
  925. package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.d.ts +8 -8
  926. package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.js +17 -7
  927. package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.d.ts +18 -18
  928. package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.js +2 -1
  929. package/dist/prosemirror/extensions/features/PasteCleanupExtension.d.ts +2 -2
  930. package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.d.ts +6 -3
  931. package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.js +5 -2
  932. package/dist/prosemirror/extensions/features/SelectionTrackerExtension.d.ts +2 -2
  933. package/dist/prosemirror/extensions/features/SelectionTrackerExtension.js +2 -8
  934. package/dist/prosemirror/extensions/features/bidiShortcutController.d.ts +5 -6
  935. package/dist/prosemirror/extensions/features/clipboardTrackedRevisions.d.ts +4 -0
  936. package/dist/prosemirror/extensions/features/clipboardTrackedRevisions.js +72 -0
  937. package/dist/prosemirror/extensions/features/pasteCleanup.d.ts +4 -4
  938. package/dist/prosemirror/extensions/features/pasteCleanup.js +3 -2
  939. package/dist/prosemirror/extensions/features/pastedHeadingStyles.d.ts +2 -3
  940. package/dist/prosemirror/extensions/features/pastedHtmlLists.d.ts +3 -4
  941. package/dist/prosemirror/extensions/markRegistry.d.ts +4 -5
  942. package/dist/prosemirror/extensions/marks/AllCapsExtension.d.ts +2 -3
  943. package/dist/prosemirror/extensions/marks/BoldExtension.d.ts +2 -3
  944. package/dist/prosemirror/extensions/marks/CharacterSpacingExtension.d.ts +2 -3
  945. package/dist/prosemirror/extensions/marks/CharacterStyleExtension.d.ts +2 -3
  946. package/dist/prosemirror/extensions/marks/CommentExtension.d.ts +2 -3
  947. package/dist/prosemirror/extensions/marks/FontFamilyExtension.d.ts +2 -3
  948. package/dist/prosemirror/extensions/marks/FontFamilyExtension.js +12 -4
  949. package/dist/prosemirror/extensions/marks/FontSizeExtension.d.ts +2 -3
  950. package/dist/prosemirror/extensions/marks/FootnoteRefExtension.d.ts +2 -3
  951. package/dist/prosemirror/extensions/marks/FootnoteRefExtension.js +42 -4
  952. package/dist/prosemirror/extensions/marks/HiddenTextExtension.d.ts +2 -3
  953. package/dist/prosemirror/extensions/marks/HighlightExtension.d.ts +4 -4
  954. package/dist/prosemirror/extensions/marks/HighlightExtension.js +6 -4
  955. package/dist/prosemirror/extensions/marks/HyperlinkExtension.d.ts +5 -6
  956. package/dist/prosemirror/extensions/marks/HyperlinkExtension.js +9 -3
  957. package/dist/prosemirror/extensions/marks/InlineWrapperExtension.d.ts +3 -4
  958. package/dist/prosemirror/extensions/marks/ItalicExtension.d.ts +2 -3
  959. package/dist/prosemirror/extensions/marks/LanguageExtension.d.ts +2 -3
  960. package/dist/prosemirror/extensions/marks/RtlExtension.d.ts +2 -3
  961. package/dist/prosemirror/extensions/marks/RunFormattingOverrideExtension.d.ts +5 -5
  962. package/dist/prosemirror/extensions/marks/RunIdentityExtension.d.ts +3 -3
  963. package/dist/prosemirror/extensions/marks/RunShadingExtension.d.ts +2 -3
  964. package/dist/prosemirror/extensions/marks/SmallCapsExtension.d.ts +2 -3
  965. package/dist/prosemirror/extensions/marks/StrikeExtension.d.ts +2 -3
  966. package/dist/prosemirror/extensions/marks/StrikeExtension.js +9 -3
  967. package/dist/prosemirror/extensions/marks/SubscriptExtension.d.ts +2 -3
  968. package/dist/prosemirror/extensions/marks/SubscriptExtension.js +3 -2
  969. package/dist/prosemirror/extensions/marks/SuperscriptExtension.d.ts +2 -3
  970. package/dist/prosemirror/extensions/marks/SuperscriptExtension.js +3 -2
  971. package/dist/prosemirror/extensions/marks/TextColorExtension.d.ts +2 -3
  972. package/dist/prosemirror/extensions/marks/TextColorExtension.js +7 -6
  973. package/dist/prosemirror/extensions/marks/TextEffectExtension.d.ts +2 -3
  974. package/dist/prosemirror/extensions/marks/TextEffectsExtensions.d.ts +6 -7
  975. package/dist/prosemirror/extensions/marks/TextEffectsExtensions.js +1 -4
  976. package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.d.ts +4 -5
  977. package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.js +18 -2
  978. package/dist/prosemirror/extensions/marks/UnderlineExtension.d.ts +2 -3
  979. package/dist/prosemirror/extensions/marks/UnderlineExtension.js +10 -3
  980. package/dist/prosemirror/extensions/marks/markUtils.d.ts +82 -25
  981. package/dist/prosemirror/extensions/marks/markUtils.js +138 -74
  982. package/dist/prosemirror/extensions/marks/noteReferenceDeletion.d.ts +3 -3
  983. package/dist/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.d.ts +6 -3
  984. package/dist/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.js +4 -4
  985. package/dist/prosemirror/extensions/nodes/BlockCustomXmlExtension.d.ts +2 -3
  986. package/dist/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.d.ts +24 -0
  987. package/dist/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.js +59 -0
  988. package/dist/prosemirror/extensions/nodes/BlockSdtExtension.d.ts +2 -3
  989. package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.d.ts +3 -3
  990. package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.js +1 -1
  991. package/dist/prosemirror/extensions/nodes/CommentRangeBoundaryExtension.d.ts +10 -0
  992. package/dist/prosemirror/extensions/nodes/CommentRangeBoundaryExtension.js +43 -0
  993. package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.d.ts +3 -5
  994. package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.js +5 -73
  995. package/dist/prosemirror/extensions/nodes/FieldExtension.d.ts +4 -4
  996. package/dist/prosemirror/extensions/nodes/FieldExtension.js +12 -2
  997. package/dist/prosemirror/extensions/nodes/HardBreakExtension.d.ts +2 -3
  998. package/dist/prosemirror/extensions/nodes/HorizontalRuleExtension.d.ts +2 -3
  999. package/dist/prosemirror/extensions/nodes/ImageExtension.d.ts +2 -3
  1000. package/dist/prosemirror/extensions/nodes/MathExtension.d.ts +2 -3
  1001. package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.d.ts +4 -4
  1002. package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.js +8 -4
  1003. package/dist/prosemirror/extensions/nodes/NoteMarkerExtension.d.ts +3 -4
  1004. package/dist/prosemirror/extensions/nodes/PageBreakExtension.d.ts +2 -3
  1005. package/dist/prosemirror/extensions/nodes/PageBreakRunExtension.d.ts +2 -3
  1006. package/dist/prosemirror/extensions/nodes/PreservedBlockExtension.d.ts +3 -4
  1007. package/dist/prosemirror/extensions/nodes/PreservedXmlExtension.d.ts +3 -4
  1008. package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.d.ts +4 -4
  1009. package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.js +20 -4
  1010. package/dist/prosemirror/extensions/nodes/RenderedPageBreakExtension.d.ts +3 -4
  1011. package/dist/prosemirror/extensions/nodes/SdtExtension.d.ts +3 -4
  1012. package/dist/prosemirror/extensions/nodes/ShapeExtension.d.ts +11 -11
  1013. package/dist/prosemirror/extensions/nodes/ShapeExtension.js +5 -6
  1014. package/dist/prosemirror/extensions/nodes/SymbolExtension.d.ts +2 -3
  1015. package/dist/prosemirror/extensions/nodes/SymbolExtension.js +3 -3
  1016. package/dist/prosemirror/extensions/nodes/TabExtension.d.ts +2 -3
  1017. package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +10 -10
  1018. package/dist/prosemirror/extensions/nodes/TableExtension.js +11 -13
  1019. package/dist/prosemirror/extensions/nodes/TextBoxAnchorExtension.d.ts +3 -3
  1020. package/dist/prosemirror/extensions/nodes/TextBoxExtension.d.ts +4 -5
  1021. package/dist/prosemirror/extensions/nodes/bookmarkBoundaryDom.d.ts +7 -5
  1022. package/dist/prosemirror/extensions/nodes/bookmarkBoundaryDom.js +9 -3
  1023. package/dist/prosemirror/extensions/types.d.ts +27 -27
  1024. package/dist/prosemirror/fieldRepresentation.d.ts +6 -5
  1025. package/dist/prosemirror/fieldRepresentation.js +13 -3
  1026. package/dist/prosemirror/findReplaceSelection.d.ts +9 -9
  1027. package/dist/prosemirror/hyperlinkRemoval.d.ts +4 -4
  1028. package/dist/prosemirror/hyperlinkRemoval.js +12 -0
  1029. package/dist/prosemirror/imageCommit.d.ts +5 -23
  1030. package/dist/prosemirror/imageCommit.js +1 -29
  1031. package/dist/prosemirror/imagePictureNames.d.ts +4 -5
  1032. package/dist/prosemirror/indexedNodeLookup.d.ts +4 -4
  1033. package/dist/prosemirror/inlineDisplayText.d.ts +4 -5
  1034. package/dist/prosemirror/inlineWrapperStack.d.ts +8 -9
  1035. package/dist/prosemirror/insertOperations.d.ts +4 -4
  1036. package/dist/prosemirror/keptRangeBoundaries.d.ts +76 -0
  1037. package/dist/prosemirror/keptRangeBoundaries.js +381 -0
  1038. package/dist/prosemirror/listAutoformatMarkers.d.ts +3 -4
  1039. package/dist/prosemirror/listInstanceReferences.d.ts +3 -4
  1040. package/dist/prosemirror/listInstanceReferences.js +1 -1
  1041. package/dist/prosemirror/listLabels.d.ts +15 -5
  1042. package/dist/prosemirror/listLabels.js +101 -16
  1043. package/dist/prosemirror/listMarker.d.ts +13 -13
  1044. package/dist/prosemirror/listMarker.js +7 -2
  1045. package/dist/prosemirror/listNumbering.d.ts +11 -11
  1046. package/dist/prosemirror/listNumbering.js +0 -16
  1047. package/dist/prosemirror/listRendering.d.ts +5 -5
  1048. package/dist/prosemirror/listRendering.js +4 -0
  1049. package/dist/prosemirror/listRenderingAttrs.d.ts +12 -11
  1050. package/dist/prosemirror/listRenderingAttrs.js +9 -5
  1051. package/dist/prosemirror/listState.d.ts +9 -10
  1052. package/dist/prosemirror/markupViewNotes.d.ts +2 -3
  1053. package/dist/prosemirror/markupViewProjection.d.ts +9 -8
  1054. package/dist/prosemirror/moveRangeBoundaryAttrs.d.ts +7 -6
  1055. package/dist/prosemirror/moveRangeBoundaryAttrs.js +27 -4
  1056. package/dist/prosemirror/noteReferenceOccurrenceId.d.ts +2 -3
  1057. package/dist/prosemirror/noteReferenceOccurrences.d.ts +9 -9
  1058. package/dist/prosemirror/noteReferenceReview.d.ts +13 -13
  1059. package/dist/prosemirror/noteReferenceReview.js +4 -10
  1060. package/dist/prosemirror/numberedRefFields.d.ts +5 -5
  1061. package/dist/prosemirror/numberingAttr.d.ts +11 -11
  1062. package/dist/prosemirror/outlineLevelAttr.d.ts +3 -4
  1063. package/dist/prosemirror/pageBreakRunProjection.d.ts +5 -5
  1064. package/dist/prosemirror/paraText.d.ts +4 -5
  1065. package/dist/prosemirror/paragraphAlignment.d.ts +2 -3
  1066. package/dist/prosemirror/paragraphDirection.d.ts +8 -9
  1067. package/dist/prosemirror/paragraphFormattingProvenance.d.ts +14 -7
  1068. package/dist/prosemirror/paragraphFormattingProvenance.js +8 -0
  1069. package/dist/prosemirror/paragraphIndentation.d.ts +7 -7
  1070. package/dist/prosemirror/paragraphList.d.ts +39 -0
  1071. package/dist/prosemirror/paragraphList.js +81 -0
  1072. package/dist/prosemirror/paragraphMarkJoin.d.ts +12 -2
  1073. package/dist/prosemirror/paragraphMarkJoin.js +34 -3
  1074. package/dist/prosemirror/paragraphPropertyCarry.d.ts +7 -7
  1075. package/dist/prosemirror/paragraphSpacing.d.ts +9 -9
  1076. package/dist/prosemirror/paragraphSpacing.js +16 -10
  1077. package/dist/prosemirror/pluginKeyOwner.d.ts +3 -4
  1078. package/dist/prosemirror/plugins/aiCitationDecorations.d.ts +6 -6
  1079. package/dist/prosemirror/plugins/aiCitationDecorations.js +0 -12
  1080. package/dist/prosemirror/plugins/aiSuggestionDecorations.d.ts +6 -6
  1081. package/dist/prosemirror/plugins/aiSuggestionDecorations.js +0 -14
  1082. package/dist/prosemirror/plugins/anonymizationDecorations.d.ts +9 -9
  1083. package/dist/prosemirror/plugins/anonymizationDecorations.js +0 -18
  1084. package/dist/prosemirror/plugins/autocompleteSuggestion.d.ts +19 -19
  1085. package/dist/prosemirror/plugins/autocompleteSuggestion.js +3 -25
  1086. package/dist/prosemirror/plugins/contentControlWidgets.d.ts +10 -10
  1087. package/dist/prosemirror/plugins/contentControlWidgets.js +13 -7
  1088. package/dist/prosemirror/plugins/createDocScanPlugin.d.ts +6 -6
  1089. package/dist/prosemirror/plugins/documentNumbering.d.ts +11 -9
  1090. package/dist/prosemirror/plugins/documentNumbering.js +42 -42
  1091. package/dist/prosemirror/plugins/documentStyleState.d.ts +5 -6
  1092. package/dist/prosemirror/plugins/documentStyles.d.ts +4 -4
  1093. package/dist/prosemirror/plugins/documentStyles.js +2 -1
  1094. package/dist/prosemirror/plugins/lockedControlKeyHandling.d.ts +4 -0
  1095. package/dist/prosemirror/plugins/lockedControlKeyHandling.js +16 -0
  1096. package/dist/prosemirror/plugins/paragraphStyleResolution.d.ts +3 -3
  1097. package/dist/prosemirror/plugins/paragraphStyleResolution.js +23 -1
  1098. package/dist/prosemirror/plugins/pmTextScan.d.ts +5 -6
  1099. package/dist/prosemirror/plugins/revisionIds.d.ts +11 -11
  1100. package/dist/prosemirror/plugins/revisionIds.js +11 -0
  1101. package/dist/prosemirror/plugins/selectionTracker.d.ts +7 -8
  1102. package/dist/prosemirror/plugins/suggestionMode.d.ts +16 -16
  1103. package/dist/prosemirror/plugins/suggestionMode.js +11 -3
  1104. package/dist/prosemirror/plugins/templateDirectives.d.ts +8 -8
  1105. package/dist/prosemirror/plugins/templateDirectives.js +0 -17
  1106. package/dist/prosemirror/plugins/templatePreviewValues.d.ts +12 -12
  1107. package/dist/prosemirror/plugins/templatePreviewValues.js +0 -23
  1108. package/dist/prosemirror/plugins/templateSlashMenu.d.ts +10 -11
  1109. package/dist/prosemirror/plugins/templateSlashMenu.js +3 -21
  1110. package/dist/prosemirror/plugins/transactionInvariants.d.ts +7 -8
  1111. package/dist/prosemirror/positionSweep.d.ts +4 -5
  1112. package/dist/prosemirror/positionSweep.js +1 -1
  1113. package/dist/prosemirror/preservedXmlReview.d.ts +2 -3
  1114. package/dist/prosemirror/queries.d.ts +5 -6
  1115. package/dist/prosemirror/rangeAnchorAttrs.d.ts +4 -5
  1116. package/dist/prosemirror/rangeAnchorAttrs.js +4 -1
  1117. package/dist/prosemirror/rebaseParagraphRunFormatting.d.ts +3 -3
  1118. package/dist/prosemirror/rebaseParagraphRunFormatting.js +6 -5
  1119. package/dist/prosemirror/rebaseParagraphRuns.d.ts +4 -4
  1120. package/dist/prosemirror/rebaseParagraphRuns.js +15 -11
  1121. package/dist/prosemirror/rejoinRunCarriers.d.ts +3 -3
  1122. package/dist/prosemirror/replacedAnnotations.d.ts +31 -17
  1123. package/dist/prosemirror/replacedAnnotations.js +80 -11
  1124. package/dist/prosemirror/revisionCarriers.d.ts +13 -13
  1125. package/dist/prosemirror/runContentProjection.d.ts +6 -0
  1126. package/dist/prosemirror/runContentProjection.js +24 -0
  1127. package/dist/prosemirror/runFormattingFromMarks.d.ts +5 -6
  1128. package/dist/prosemirror/runFormattingFromMarks.js +19 -17
  1129. package/dist/prosemirror/runFormattingInlineCarriers.d.ts +16 -15
  1130. package/dist/prosemirror/runFormattingInlineCarriers.js +1 -0
  1131. package/dist/prosemirror/runFormattingMarkNames.d.ts +2 -3
  1132. package/dist/prosemirror/runFormattingProvenance.d.ts +5 -6
  1133. package/dist/prosemirror/runFormattingReconciliation.d.ts +4 -4
  1134. package/dist/prosemirror/runFormattingReconciliation.js +6 -4
  1135. package/dist/prosemirror/runIdentity.d.ts +6 -7
  1136. package/dist/prosemirror/runIdentityAcrossRevisions.d.ts +16 -5
  1137. package/dist/prosemirror/runIdentityAcrossRevisions.js +92 -32
  1138. package/dist/prosemirror/runPropertyChangeResolution.d.ts +3 -3
  1139. package/dist/prosemirror/runPropertyChangeResolution.js +11 -10
  1140. package/dist/prosemirror/runStyleFormatting.d.ts +16 -16
  1141. package/dist/prosemirror/runStyleFormatting.js +4 -2
  1142. package/dist/prosemirror/schema/index.d.ts +6 -6
  1143. package/dist/prosemirror/schema/marks.d.ts +36 -39
  1144. package/dist/prosemirror/schema/nodes.d.ts +42 -35
  1145. package/dist/prosemirror/sectionCarrier.d.ts +7 -8
  1146. package/dist/prosemirror/sectionMarkEdits.d.ts +3 -4
  1147. package/dist/prosemirror/sectionMarkEdits.js +21 -1
  1148. package/dist/prosemirror/selectionMarks.d.ts +2 -2
  1149. package/dist/prosemirror/selectionState.d.ts +5 -6
  1150. package/dist/prosemirror/selectionState.js +1 -4
  1151. package/dist/prosemirror/shapeGeometryAdjustments.d.ts +2 -3
  1152. package/dist/prosemirror/storyListNumbering.d.ts +2 -2
  1153. package/dist/prosemirror/storyListNumbering.js +2 -1
  1154. package/dist/prosemirror/styles/index.js +1 -2
  1155. package/dist/prosemirror/styles/paragraphStyleCascade.d.ts +9 -9
  1156. package/dist/prosemirror/styles/paragraphStyleCascade.js +17 -2
  1157. package/dist/prosemirror/styles/resolvedStyleAttrs.d.ts +8 -8
  1158. package/dist/prosemirror/styles/styleResolver.d.ts +6 -7
  1159. package/dist/prosemirror/styles/styleResolver.js +17 -0
  1160. package/dist/prosemirror/styles/styleToggleCascade.d.ts +4 -4
  1161. package/dist/prosemirror/styles/tableStyleRegions.d.ts +5 -6
  1162. package/dist/prosemirror/tableCellMergeRevision.d.ts +3 -4
  1163. package/dist/prosemirror/tableCellPaste.d.ts +11 -12
  1164. package/dist/prosemirror/tableCellRevisionVisibility.d.ts +2 -3
  1165. package/dist/prosemirror/tableGridMutation.d.ts +12 -12
  1166. package/dist/prosemirror/tableResize.d.ts +18 -18
  1167. package/dist/prosemirror/tableResize.js +64 -53
  1168. package/dist/prosemirror/tableRunIn.d.ts +10 -5
  1169. package/dist/prosemirror/tableRunIn.js +44 -9
  1170. package/dist/prosemirror/textBoxAnchorAttrs.d.ts +3 -4
  1171. package/dist/prosemirror/textBoxAnchorAttrs.js +4 -1
  1172. package/dist/prosemirror/textBoxHostCollapse.d.ts +8 -0
  1173. package/dist/prosemirror/textBoxHostCollapse.js +79 -0
  1174. package/dist/prosemirror/textBoxHostParagraph.d.ts +2 -3
  1175. package/dist/prosemirror/textInput.d.ts +12 -6
  1176. package/dist/prosemirror/textInput.js +26 -2
  1177. package/dist/prosemirror/trackedRevisionPath.d.ts +6 -6
  1178. package/dist/prosemirror/trackedRevisionPath.js +7 -4
  1179. package/dist/prosemirror/trackedRunInlineAtoms.d.ts +8 -8
  1180. package/dist/prosemirror/trackedRunInlineAtoms.js +3 -2
  1181. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +4 -5
  1182. package/dist/prosemirror/utils/findParagraphByParaId.d.ts +3 -4
  1183. package/dist/prosemirror/utils/tabCalculator.js +1 -2
  1184. package/dist/prosemirror/utils/visualLineNavigation.d.ts +7 -7
  1185. package/dist/prosemirror/utils/visualLineNavigation.js +2 -14
  1186. package/dist/prosemirror/validation.d.ts +7 -8
  1187. package/dist/prosemirror/validation.js +25 -10
  1188. package/dist/prosemirror/yjsDocumentMetadata.d.ts +15 -15
  1189. package/dist/prosemirror/yjsDocumentMetadata.js +15 -12
  1190. package/dist/prosemirror/zeroWidthAnchors.d.ts +7 -6
  1191. package/dist/prosemirror/zeroWidthAnchors.js +53 -16
  1192. package/dist/redline.d.ts +8 -8
  1193. package/dist/redline.js +2 -1
  1194. package/dist/redlineOperationLimit.d.ts +3 -3
  1195. package/dist/render-dom/BodySelectionOverlay.d.ts +4 -5
  1196. package/dist/render-dom/HeaderFooterSelectionOverlay.d.ts +6 -7
  1197. package/dist/render-dom/RemoteSelectionOverlay.d.ts +5 -6
  1198. package/dist/render-dom/RenderedDomContext.d.ts +6 -7
  1199. package/dist/render-dom/commentAnchorAttributes.d.ts +6 -6
  1200. package/dist/render-dom/resolveSidebarItemPositions.d.ts +5 -6
  1201. package/dist/reviewHistoryLimits.d.ts +3 -0
  1202. package/dist/reviewHistoryLimits.js +4 -0
  1203. package/dist/server.d.ts +2 -1
  1204. package/dist/server.js +2 -1
  1205. package/dist/shaping/placeRun.d.ts +7 -8
  1206. package/dist/shaping/shaper.d.ts +16 -16
  1207. package/dist/style-engine/index.js +1 -2
  1208. package/dist/style-engine/styleEngine.d.ts +5 -6
  1209. package/dist/style-sets/extract.d.ts +8 -9
  1210. package/dist/style-sets/stellaStyle.d.ts +4 -5
  1211. package/dist/style-sets/styleSetNormalization.d.ts +6 -7
  1212. package/dist/style-sets/types.d.ts +5 -6
  1213. package/dist/symbols.d.ts +8 -9
  1214. package/dist/types/block-id.d.ts +11 -12
  1215. package/dist/types/canonicalCapabilities.d.ts +11 -19
  1216. package/dist/types/canonicalCapabilities.js +5 -12
  1217. package/dist/types/canonicalComments.d.ts +3 -4
  1218. package/dist/types/canonicalSave.d.ts +2 -3
  1219. package/dist/types/canonicalSections.d.ts +2 -3
  1220. package/dist/types/documentEnumValues.d.ts +48 -49
  1221. package/dist/types/docxSerialization.d.ts +4 -5
  1222. package/dist/types/editor-story.d.ts +2 -3
  1223. package/dist/types/remote-selection.d.ts +2 -3
  1224. package/dist/types/wrap.d.ts +5 -6
  1225. package/dist/utils/authorColors.d.ts +4 -5
  1226. package/dist/utils/base64.d.ts +2 -2
  1227. package/dist/utils/baseDirection.d.ts +4 -5
  1228. package/dist/utils/borderCss.d.ts +9 -10
  1229. package/dist/utils/boundedContentIdentity.d.ts +13 -0
  1230. package/dist/utils/boundedContentIdentity.js +42 -0
  1231. package/dist/utils/canonicalJson.d.ts +2 -3
  1232. package/dist/utils/clipboard.d.ts +22 -22
  1233. package/dist/utils/clipboard.js +9 -6
  1234. package/dist/utils/colorResolver.d.ts +22 -23
  1235. package/dist/utils/colorResolver.js +0 -20
  1236. package/dist/utils/createDocument.d.ts +4 -4
  1237. package/dist/utils/cursiveJoining.d.ts +7 -8
  1238. package/dist/utils/documentLoaderBehavior.d.ts +3 -4
  1239. package/dist/utils/documentPointerDown.d.ts +5 -0
  1240. package/dist/utils/documentPointerDown.js +28 -0
  1241. package/dist/utils/docxInput.d.ts +3 -4
  1242. package/dist/utils/domGuards.d.ts +7 -8
  1243. package/dist/utils/findMatchView.d.ts +4 -4
  1244. package/dist/utils/findReplace.d.ts +16 -16
  1245. package/dist/utils/findSearchKey.d.ts +5 -5
  1246. package/dist/utils/findVerticalScrollParent.d.ts +3 -4
  1247. package/dist/utils/fontFamilyMerge.d.ts +2 -2
  1248. package/dist/utils/fontLoader.d.ts +12 -13
  1249. package/dist/utils/fontResolver.d.ts +16 -14
  1250. package/dist/utils/fontResolver.js +33 -5
  1251. package/dist/utils/fontWeights.d.ts +2 -3
  1252. package/dist/utils/formatToStyle.d.ts +14 -14
  1253. package/dist/utils/formatToStyle.js +17 -15
  1254. package/dist/utils/headerFooter.d.ts +11 -12
  1255. package/dist/utils/headerFooter.js +10 -0
  1256. package/dist/utils/headingCollector.d.ts +3 -4
  1257. package/dist/utils/hexId.d.ts +6 -7
  1258. package/dist/utils/hexId.js +1 -1
  1259. package/dist/utils/horizontalScale.d.ts +5 -6
  1260. package/dist/utils/htmlComments.d.ts +2 -3
  1261. package/dist/utils/imageLuminance.d.ts +4 -5
  1262. package/dist/utils/imageResize.d.ts +18 -0
  1263. package/dist/utils/imageResize.js +37 -0
  1264. package/dist/utils/imageValidation.d.ts +3 -4
  1265. package/dist/utils/imageValidation.js +1 -1
  1266. package/dist/utils/joiningTypes.gen.d.ts +5 -6
  1267. package/dist/utils/mergeDocumentContent.d.ts +2 -3
  1268. package/dist/utils/mergeDocumentContent.js +7 -0
  1269. package/dist/utils/noteReferenceLabels.d.ts +7 -8
  1270. package/dist/utils/ooxmlSymbol.d.ts +5 -3
  1271. package/dist/utils/ooxmlSymbol.js +51 -1
  1272. package/dist/utils/outlineDepth.d.ts +4 -5
  1273. package/dist/utils/paragraphBaseDirection.d.ts +2 -3
  1274. package/dist/utils/paragraphBaseDirection.js +2 -1
  1275. package/dist/utils/paragraphFormattingMerge.d.ts +4 -5
  1276. package/dist/utils/paragraphFormattingMerge.js +2 -0
  1277. package/dist/utils/paragraphFrame.d.ts +20 -0
  1278. package/dist/utils/paragraphFrame.js +13 -0
  1279. package/dist/utils/paragraphInlineLayout.d.ts +101 -4
  1280. package/dist/utils/paragraphInlineLayout.js +164 -1
  1281. package/dist/utils/replaceText.d.ts +2 -2
  1282. package/dist/utils/replaceText.js +4 -0
  1283. package/dist/utils/rotationBoundingBox.d.ts +7 -8
  1284. package/dist/utils/sanitizeImageSrc.d.ts +3 -4
  1285. package/dist/utils/scriptSegments.d.ts +34 -16
  1286. package/dist/utils/scriptSegments.js +26 -6
  1287. package/dist/utils/sliceText.js +1 -2
  1288. package/dist/utils/stripXmlDeclarations.d.ts +2 -3
  1289. package/dist/utils/tableOfContentsStyle.d.ts +2 -2
  1290. package/dist/utils/tableOperations.d.ts +16 -17
  1291. package/dist/utils/tableOperations.js +44 -41
  1292. package/dist/utils/tablePlacement.d.ts +3 -4
  1293. package/dist/utils/textAdvanceGapsDom.d.ts +8 -0
  1294. package/dist/utils/textAdvanceGapsDom.js +49 -0
  1295. package/dist/utils/textDirectionFlow.d.ts +3 -4
  1296. package/dist/utils/textEncoding.js +1 -2
  1297. package/dist/utils/textFormattingMerge.d.ts +4 -5
  1298. package/dist/utils/tiffConverter.d.ts +5 -6
  1299. package/dist/utils/trailingText.d.ts +4 -5
  1300. package/dist/utils/units.d.ts +19 -20
  1301. package/dist/utils/urlSecurity.d.ts +6 -6
  1302. package/dist/utils/urlSecurity.js +2 -1
  1303. package/dist/utils/zoom.d.ts +4 -5
  1304. package/dist/version-comparison.d.ts +28 -28
  1305. package/dist/version-comparison.js +8 -7
  1306. package/dist/watermark/index.d.ts +5 -5
  1307. package/dist/watermark/index.js +9 -0
  1308. package/package.json +16 -16
@@ -6,41 +6,40 @@ import * as v from "valibot";
6
6
  * valibot output type; callers receive a properly-typed value with
7
7
  * no `as` at the call site.
8
8
  */
9
- declare const narrowEnum: <T extends string>(value: string | null | undefined, schema: v.PicklistSchema<readonly T[], undefined>) => T | undefined;
10
- declare const UnderlineStyleSchema: v.PicklistSchema<readonly ["none", "single", "words", "double", "thick", "dotted", "dottedHeavy", "dash", "dashedHeavy", "dashLong", "dashLongHeavy", "dotDash", "dashDotHeavy", "dotDotDash", "dashDotDotHeavy", "wave", "wavyHeavy", "wavyDouble"], undefined>;
11
- declare const HighlightColorSchema: v.PicklistSchema<readonly ["black", "blue", "cyan", "darkBlue", "darkCyan", "darkGray", "darkGreen", "darkMagenta", "darkRed", "darkYellow", "green", "lightGray", "magenta", "none", "red", "white", "yellow"], undefined>;
12
- declare const TextEffectSchema: v.PicklistSchema<readonly ["none", "blinkBackground", "lights", "antsBlack", "antsRed", "shimmer", "sparkle"], undefined>;
13
- declare const EmphasisMarkSchema: v.PicklistSchema<readonly ["none", "dot", "comma", "circle", "underDot"], undefined>;
14
- declare const FontThemeSchema: v.PicklistSchema<readonly ["majorAscii", "majorHAnsi", "majorEastAsia", "majorBidi", "minorAscii", "minorHAnsi", "minorEastAsia", "minorBidi"], undefined>;
15
- declare const FontHintSchema: v.PicklistSchema<readonly ["default", "eastAsia", "cs"], undefined>;
16
- declare const ParagraphAlignmentSchema: v.PicklistSchema<readonly ["start", "center", "end", "both", "mediumKashida", "distribute", "numTab", "highKashida", "lowKashida", "thaiDistribute", "left", "right"], undefined>;
17
- declare const LineSpacingRuleSchema: v.PicklistSchema<readonly ["auto", "exact", "atLeast"], undefined>;
18
- declare const TabStopAlignmentSchema: v.PicklistSchema<readonly ["clear", "start", "center", "end", "decimal", "bar", "num", "left", "right"], undefined>;
19
- declare const TabLeaderSchema: v.PicklistSchema<readonly ["none", "dot", "hyphen", "underscore", "heavy", "middleDot"], undefined>;
20
- declare const PositionalTabRelativeToSchema: v.PicklistSchema<readonly ["margin", "indent"], undefined>;
21
- declare const PositionalTabAlignmentSchema: v.PicklistSchema<readonly ["left", "center", "right"], undefined>;
22
- declare const PositionalTabLeaderSchema: v.PicklistSchema<readonly ["none", "dot", "hyphen", "underscore", "middleDot"], undefined>;
23
- declare const FrameXAlignSchema: v.PicklistSchema<readonly ["left", "center", "right", "inside", "outside"], undefined>;
24
- declare const FrameYAlignSchema: v.PicklistSchema<readonly ["top", "center", "bottom", "inside", "outside", "inline"], undefined>;
25
- declare const FrameWrapSchema: v.PicklistSchema<readonly ["around", "auto", "none", "notBeside", "through", "tight"], undefined>;
26
- declare const SdtLockSchema: v.PicklistSchema<readonly ["sdtLocked", "contentLocked", "sdtContentLocked", "unlocked"], undefined>;
27
- declare const FieldTypeSchema: v.PicklistSchema<readonly ["PAGE", "NUMPAGES", "NUMWORDS", "NUMCHARS", "DATE", "TIME", "CREATEDATE", "SAVEDATE", "PRINTDATE", "AUTHOR", "TITLE", "SUBJECT", "KEYWORDS", "COMMENTS", "FILENAME", "FILESIZE", "TEMPLATE", "DOCPROPERTY", "DOCVARIABLE", "REF", "PAGEREF", "NOTEREF", "HYPERLINK", "TOC", "TOA", "INDEX", "SEQ", "STYLEREF", "AUTONUM", "AUTONUMLGL", "AUTONUMOUT", "LISTNUM", "IF", "MERGEFIELD", "NEXT", "NEXTIF", "ASK", "SET", "QUOTE", "INCLUDETEXT", "INCLUDEPICTURE", "SYMBOL", "ADVANCE", "EDITTIME", "REVNUM", "SECTION", "SECTIONPAGES", "USERADDRESS", "USERNAME", "USERINITIALS", "UNKNOWN"], undefined>;
28
- declare const StyleTypeSchema: v.PicklistSchema<readonly ["paragraph", "character", "numbering", "table"], undefined>;
29
- declare const ConditionalStyleTypeSchema: v.PicklistSchema<readonly ["band1Horz", "band1Vert", "band2Horz", "band2Vert", "firstCol", "firstRow", "lastCol", "lastRow", "neCell", "nwCell", "seCell", "swCell", "wholeTable"], undefined>;
30
- declare const TableAlignmentSchema: v.PicklistSchema<readonly ["center", "end", "left", "right", "start"], undefined>;
31
- declare const TableWidthTypeSchema: v.PicklistSchema<readonly ["auto", "dxa", "nil", "pct"], undefined>;
32
- declare const TableRowHeightRuleSchema: v.PicklistSchema<readonly ["auto", "atLeast", "exact"], undefined>;
33
- declare const TextDirectionSchema: v.PicklistSchema<readonly ["tb", "rl", "lr", "tbV", "rlV", "lrV", "btLr", "lrTb", "lrTbV", "tbLrV", "tbRl", "tbRlV"], undefined>;
34
- declare const ShadingPatternSchema: v.PicklistSchema<readonly ["clear", "solid", "horzStripe", "vertStripe", "reverseDiagStripe", "diagStripe", "horzCross", "diagCross", "thinHorzStripe", "thinVertStripe", "thinReverseDiagStripe", "thinDiagStripe", "thinHorzCross", "thinDiagCross", "pct5", "pct10", "pct12", "pct15", "pct20", "pct25", "pct30", "pct35", "pct37", "pct40", "pct45", "pct50", "pct55", "pct60", "pct62", "pct65", "pct70", "pct75", "pct80", "pct85", "pct87", "pct90", "pct95", "nil"], undefined>;
35
- declare const FloatingTableXSpecSchema: v.PicklistSchema<readonly ["left", "center", "right", "inside", "outside"], undefined>;
36
- declare const FloatingTableYSpecSchema: v.PicklistSchema<readonly ["top", "center", "bottom", "inside", "outside", "inline"], undefined>;
37
- declare const ImageHorizontalRelativeToSchema: v.PicklistSchema<readonly ["character", "column", "insideMargin", "leftMargin", "margin", "outsideMargin", "page", "rightMargin"], undefined>;
38
- declare const ImageHorizontalAlignmentSchema: v.PicklistSchema<readonly ["left", "right", "center", "inside", "outside"], undefined>;
39
- declare const ImageVerticalRelativeToSchema: v.PicklistSchema<readonly ["insideMargin", "line", "margin", "outsideMargin", "page", "paragraph", "topMargin", "bottomMargin"], undefined>;
40
- declare const ImageVerticalAlignmentSchema: v.PicklistSchema<readonly ["top", "bottom", "center", "inside", "outside"], undefined>;
41
- declare const ImageWrapTextSchema: v.PicklistSchema<readonly ["bothSides", "left", "right", "largest"], undefined>;
42
- declare const ShapeTypeSchema: v.PicklistSchema<readonly ["rect", "roundRect", "ellipse", "triangle", "rtTriangle", "parallelogram", "trapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "line", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "rightArrow", "leftArrow", "upArrow", "downArrow", "leftRightArrow", "upDownArrow", "quadArrow", "leftRightUpArrow", "bentArrow", "uturnArrow", "leftUpArrow", "bentUpArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "stripedRightArrow", "notchedRightArrow", "homePlate", "chevron", "rightArrowCallout", "downArrowCallout", "leftArrowCallout", "upArrowCallout", "leftRightArrowCallout", "quadArrowCallout", "circularArrow", "flowChartProcess", "flowChartAlternateProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartOffpageConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOnlineStorage", "flowChartDelay", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "borderCallout1", "borderCallout2", "borderCallout3", "accentCallout1", "accentCallout2", "accentCallout3", "callout1", "callout2", "callout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonBackPrevious", "actionButtonForwardNext", "actionButtonBeginning", "actionButtonEnd", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "irregularSeal1", "irregularSeal2", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "bracketPair", "bracePair", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "can", "cube", "bevel", "donut", "noSmoking", "blockArc", "foldedCorner", "smileyFace", "heart", "lightningBolt", "sun", "moon", "cloud", "snip1Rect", "snip2SameRect", "snip2DiagRect", "snipRoundRect", "round1Rect", "round2SameRect", "round2DiagRect", "plaque", "teardrop", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "gear6", "gear9", "funnel", "pieWedge", "pie", "leftCircularArrow", "leftRightCircularArrow", "swooshArrow", "textBox"], undefined>;
43
- declare const NumberFormatSchema: v.PicklistSchema<readonly ["decimal", "upperRoman", "lowerRoman", "upperLetter", "lowerLetter", "ordinal", "cardinalText", "ordinalText", "hex", "chicago", "ideographDigital", "japaneseCounting", "aiueo", "iroha", "decimalFullWidth", "decimalHalfWidth", "japaneseLegal", "japaneseDigitalTenThousand", "decimalEnclosedCircle", "decimalFullWidth2", "aiueoFullWidth", "irohaFullWidth", "decimalZero", "bullet", "ganada", "chosung", "decimalEnclosedFullstop", "decimalEnclosedParen", "decimalEnclosedCircleChinese", "ideographEnclosedCircle", "ideographTraditional", "ideographZodiac", "ideographZodiacTraditional", "taiwaneseCounting", "ideographLegalTraditional", "taiwaneseCountingThousand", "taiwaneseDigital", "chineseCounting", "chineseLegalSimplified", "chineseCountingThousand", "koreanDigital", "koreanCounting", "koreanLegal", "koreanDigital2", "vietnameseCounting", "russianLower", "russianUpper", "none", "numberInDash", "hebrew1", "hebrew2", "arabicAlpha", "arabicAbjad", "hindiVowels", "hindiConsonants", "hindiNumbers", "hindiCounting", "thaiLetters", "thaiNumbers", "thaiCounting", "bahtText", "dollarText", "custom"], undefined>;
44
- declare const LevelSuffixSchema: v.PicklistSchema<readonly ["tab", "space", "nothing"], undefined>;
45
- //#endregion
46
- export { ConditionalStyleTypeSchema, EmphasisMarkSchema, FieldTypeSchema, FloatingTableXSpecSchema, FloatingTableYSpecSchema, FontHintSchema, FontThemeSchema, FrameWrapSchema, FrameXAlignSchema, FrameYAlignSchema, HighlightColorSchema, ImageHorizontalAlignmentSchema, ImageHorizontalRelativeToSchema, ImageVerticalAlignmentSchema, ImageVerticalRelativeToSchema, ImageWrapTextSchema, LevelSuffixSchema, LineSpacingRuleSchema, NumberFormatSchema, ParagraphAlignmentSchema, PositionalTabAlignmentSchema, PositionalTabLeaderSchema, PositionalTabRelativeToSchema, SdtLockSchema, ShadingPatternSchema, ShapeTypeSchema, StyleTypeSchema, TabLeaderSchema, TabStopAlignmentSchema, TableAlignmentSchema, TableRowHeightRuleSchema, TableWidthTypeSchema, TextDirectionSchema, TextEffectSchema, UnderlineStyleSchema, narrowEnum };
9
+ export declare const narrowEnum: <T extends string>(value: string | null | undefined, schema: v.PicklistSchema<readonly T[], undefined>) => T | undefined;
10
+ export declare const UnderlineStyleSchema: v.PicklistSchema<readonly ["none", "single", "words", "double", "thick", "dotted", "dottedHeavy", "dash", "dashedHeavy", "dashLong", "dashLongHeavy", "dotDash", "dashDotHeavy", "dotDotDash", "dashDotDotHeavy", "wave", "wavyHeavy", "wavyDouble"], undefined>;
11
+ export declare const HighlightColorSchema: v.PicklistSchema<readonly ["black", "blue", "cyan", "darkBlue", "darkCyan", "darkGray", "darkGreen", "darkMagenta", "darkRed", "darkYellow", "green", "lightGray", "magenta", "none", "red", "white", "yellow"], undefined>;
12
+ export declare const TextEffectSchema: v.PicklistSchema<readonly ["none", "blinkBackground", "lights", "antsBlack", "antsRed", "shimmer", "sparkle"], undefined>;
13
+ export declare const EmphasisMarkSchema: v.PicklistSchema<readonly ["none", "dot", "comma", "circle", "underDot"], undefined>;
14
+ export declare const FontThemeSchema: v.PicklistSchema<readonly ["majorAscii", "majorHAnsi", "majorEastAsia", "majorBidi", "minorAscii", "minorHAnsi", "minorEastAsia", "minorBidi"], undefined>;
15
+ export declare const FontHintSchema: v.PicklistSchema<readonly ["default", "eastAsia", "cs"], undefined>;
16
+ export declare const ParagraphAlignmentSchema: v.PicklistSchema<readonly ["start", "center", "end", "both", "mediumKashida", "distribute", "numTab", "highKashida", "lowKashida", "thaiDistribute", "left", "right"], undefined>;
17
+ export declare const LineSpacingRuleSchema: v.PicklistSchema<readonly ["auto", "exact", "atLeast"], undefined>;
18
+ export declare const TabStopAlignmentSchema: v.PicklistSchema<readonly ["clear", "start", "center", "end", "decimal", "bar", "num", "left", "right"], undefined>;
19
+ export declare const TabLeaderSchema: v.PicklistSchema<readonly ["none", "dot", "hyphen", "underscore", "heavy", "middleDot"], undefined>;
20
+ export declare const PositionalTabRelativeToSchema: v.PicklistSchema<readonly ["margin", "indent"], undefined>;
21
+ export declare const PositionalTabAlignmentSchema: v.PicklistSchema<readonly ["left", "center", "right"], undefined>;
22
+ export declare const PositionalTabLeaderSchema: v.PicklistSchema<readonly ["none", "dot", "hyphen", "underscore", "middleDot"], undefined>;
23
+ export declare const FrameXAlignSchema: v.PicklistSchema<readonly ["left", "center", "right", "inside", "outside"], undefined>;
24
+ export declare const FrameYAlignSchema: v.PicklistSchema<readonly ["top", "center", "bottom", "inside", "outside", "inline"], undefined>;
25
+ export declare const FrameWrapSchema: v.PicklistSchema<readonly ["around", "auto", "none", "notBeside", "through", "tight"], undefined>;
26
+ export declare const SdtLockSchema: v.PicklistSchema<readonly ["sdtLocked", "contentLocked", "sdtContentLocked", "unlocked"], undefined>;
27
+ export declare const FieldTypeSchema: v.PicklistSchema<readonly ["PAGE", "NUMPAGES", "NUMWORDS", "NUMCHARS", "DATE", "TIME", "CREATEDATE", "SAVEDATE", "PRINTDATE", "AUTHOR", "TITLE", "SUBJECT", "KEYWORDS", "COMMENTS", "FILENAME", "FILESIZE", "TEMPLATE", "DOCPROPERTY", "DOCVARIABLE", "REF", "PAGEREF", "NOTEREF", "HYPERLINK", "TOC", "TOA", "INDEX", "SEQ", "STYLEREF", "AUTONUM", "AUTONUMLGL", "AUTONUMOUT", "LISTNUM", "IF", "MERGEFIELD", "NEXT", "NEXTIF", "ASK", "SET", "QUOTE", "INCLUDETEXT", "INCLUDEPICTURE", "SYMBOL", "ADVANCE", "EDITTIME", "REVNUM", "SECTION", "SECTIONPAGES", "USERADDRESS", "USERNAME", "USERINITIALS", "UNKNOWN"], undefined>;
28
+ export declare const StyleTypeSchema: v.PicklistSchema<readonly ["paragraph", "character", "numbering", "table"], undefined>;
29
+ export declare const ConditionalStyleTypeSchema: v.PicklistSchema<readonly ["band1Horz", "band1Vert", "band2Horz", "band2Vert", "firstCol", "firstRow", "lastCol", "lastRow", "neCell", "nwCell", "seCell", "swCell", "wholeTable"], undefined>;
30
+ export declare const TableAlignmentSchema: v.PicklistSchema<readonly ["center", "end", "left", "right", "start"], undefined>;
31
+ export declare const TableWidthTypeSchema: v.PicklistSchema<readonly ["auto", "dxa", "nil", "pct"], undefined>;
32
+ export declare const TableRowHeightRuleSchema: v.PicklistSchema<readonly ["auto", "atLeast", "exact"], undefined>;
33
+ export declare const TextDirectionSchema: v.PicklistSchema<readonly ["tb", "rl", "lr", "tbV", "rlV", "lrV", "btLr", "lrTb", "lrTbV", "tbLrV", "tbRl", "tbRlV"], undefined>;
34
+ export declare const ShadingPatternSchema: v.PicklistSchema<readonly ["clear", "solid", "horzStripe", "vertStripe", "reverseDiagStripe", "diagStripe", "horzCross", "diagCross", "thinHorzStripe", "thinVertStripe", "thinReverseDiagStripe", "thinDiagStripe", "thinHorzCross", "thinDiagCross", "pct5", "pct10", "pct12", "pct15", "pct20", "pct25", "pct30", "pct35", "pct37", "pct40", "pct45", "pct50", "pct55", "pct60", "pct62", "pct65", "pct70", "pct75", "pct80", "pct85", "pct87", "pct90", "pct95", "nil"], undefined>;
35
+ export declare const FloatingTableXSpecSchema: v.PicklistSchema<readonly ["left", "center", "right", "inside", "outside"], undefined>;
36
+ export declare const FloatingTableYSpecSchema: v.PicklistSchema<readonly ["top", "center", "bottom", "inside", "outside", "inline"], undefined>;
37
+ export declare const ImageHorizontalRelativeToSchema: v.PicklistSchema<readonly ["character", "column", "insideMargin", "leftMargin", "margin", "outsideMargin", "page", "rightMargin"], undefined>;
38
+ export declare const ImageHorizontalAlignmentSchema: v.PicklistSchema<readonly ["left", "right", "center", "inside", "outside"], undefined>;
39
+ export declare const ImageVerticalRelativeToSchema: v.PicklistSchema<readonly ["insideMargin", "line", "margin", "outsideMargin", "page", "paragraph", "topMargin", "bottomMargin"], undefined>;
40
+ export declare const ImageVerticalAlignmentSchema: v.PicklistSchema<readonly ["top", "bottom", "center", "inside", "outside"], undefined>;
41
+ export declare const ImageWrapTextSchema: v.PicklistSchema<readonly ["bothSides", "left", "right", "largest"], undefined>;
42
+ export declare const ShapeTypeSchema: v.PicklistSchema<readonly ["rect", "roundRect", "ellipse", "triangle", "rtTriangle", "parallelogram", "trapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "line", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "rightArrow", "leftArrow", "upArrow", "downArrow", "leftRightArrow", "upDownArrow", "quadArrow", "leftRightUpArrow", "bentArrow", "uturnArrow", "leftUpArrow", "bentUpArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "stripedRightArrow", "notchedRightArrow", "homePlate", "chevron", "rightArrowCallout", "downArrowCallout", "leftArrowCallout", "upArrowCallout", "leftRightArrowCallout", "quadArrowCallout", "circularArrow", "flowChartProcess", "flowChartAlternateProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartOffpageConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOnlineStorage", "flowChartDelay", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "borderCallout1", "borderCallout2", "borderCallout3", "accentCallout1", "accentCallout2", "accentCallout3", "callout1", "callout2", "callout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonBackPrevious", "actionButtonForwardNext", "actionButtonBeginning", "actionButtonEnd", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "irregularSeal1", "irregularSeal2", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "bracketPair", "bracePair", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "can", "cube", "bevel", "donut", "noSmoking", "blockArc", "foldedCorner", "smileyFace", "heart", "lightningBolt", "sun", "moon", "cloud", "snip1Rect", "snip2SameRect", "snip2DiagRect", "snipRoundRect", "round1Rect", "round2SameRect", "round2DiagRect", "plaque", "teardrop", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "gear6", "gear9", "funnel", "pieWedge", "pie", "leftCircularArrow", "leftRightCircularArrow", "swooshArrow", "textBox"], undefined>;
43
+ export declare const NumberFormatSchema: v.PicklistSchema<readonly ["decimal", "upperRoman", "lowerRoman", "upperLetter", "lowerLetter", "ordinal", "cardinalText", "ordinalText", "hex", "chicago", "ideographDigital", "japaneseCounting", "aiueo", "iroha", "decimalFullWidth", "decimalHalfWidth", "japaneseLegal", "japaneseDigitalTenThousand", "decimalEnclosedCircle", "decimalFullWidth2", "aiueoFullWidth", "irohaFullWidth", "decimalZero", "bullet", "ganada", "chosung", "decimalEnclosedFullstop", "decimalEnclosedParen", "decimalEnclosedCircleChinese", "ideographEnclosedCircle", "ideographTraditional", "ideographZodiac", "ideographZodiacTraditional", "taiwaneseCounting", "ideographLegalTraditional", "taiwaneseCountingThousand", "taiwaneseDigital", "chineseCounting", "chineseLegalSimplified", "chineseCountingThousand", "koreanDigital", "koreanCounting", "koreanLegal", "koreanDigital2", "vietnameseCounting", "russianLower", "russianUpper", "none", "numberInDash", "hebrew1", "hebrew2", "arabicAlpha", "arabicAbjad", "hindiVowels", "hindiConsonants", "hindiNumbers", "hindiCounting", "thaiLetters", "thaiNumbers", "thaiCounting", "bahtText", "dollarText", "custom"], undefined>;
44
+ export declare const LevelSuffixSchema: v.PicklistSchema<readonly ["tab", "space", "nothing"], undefined>;
45
+ //#endregion
@@ -6,7 +6,7 @@ import { XmlElement } from "./xmlParser.js";
6
6
  * nothing. Unknown markup contributes nothing on purpose: guessing at the text
7
7
  * of an element folio has never seen would put invented words in a document.
8
8
  */
9
- declare const preservedRunChildText: (element: XmlElement) => string;
9
+ export declare const preservedRunChildText: (element: XmlElement) => string;
10
10
  /**
11
11
  * Capture one unmodelled run child.
12
12
  *
@@ -16,7 +16,7 @@ declare const preservedRunChildText: (element: XmlElement) => string;
16
16
  * prefix still arrives bound. Copying the whole root scope onto the fragment
17
17
  * instead would rewrite every capture with declarations it does not use.
18
18
  */
19
- declare const preserveRunChild: (element: XmlElement) => document_d_exports.PreservedXmlContent;
19
+ export declare const preserveRunChild: (element: XmlElement) => document_d_exports.PreservedXmlContent;
20
20
  /**
21
21
  * One capture from the shared dispatcher's sink, as a member of the
22
22
  * container's own inline union.
@@ -25,8 +25,7 @@ declare const preserveRunChild: (element: XmlElement) => document_d_exports.Pres
25
25
  * so nothing is known about it beyond its bytes: `text` is empty because a
26
26
  * name folio has never seen shows nothing folio can read.
27
27
  */
28
- declare const preservedInlineCapture: (xml: string) => document_d_exports.PreservedInline;
28
+ export declare const preservedInlineCapture: (xml: string) => document_d_exports.PreservedInline;
29
29
  /** Capture one unmodelled inline child of a paragraph or an inline wrapper. */
30
- declare const preserveInlineChild: (element: XmlElement) => document_d_exports.PreservedInline;
31
- //#endregion
32
- export { preserveInlineChild, preserveRunChild, preservedInlineCapture, preservedRunChildText };
30
+ export declare const preserveInlineChild: (element: XmlElement) => document_d_exports.PreservedInline;
31
+ //#endregion
@@ -3,6 +3,22 @@ import { captureVerbatimXml } from "./verbatimCapture.js";
3
3
  import { findChildrenByLocalName, getChildElements, getLocalName, getTextContent } from "./xmlParser.js";
4
4
  //#region src/docx/preservedRunContent.ts
5
5
  /**
6
+ * The run-level arm of the verbatim sink.
7
+ *
8
+ * `parseRunContents` recognises the run children folio models and used to let
9
+ * the rest fall off the end of its switch. That is not merely a loss: the keep
10
+ * rule in `paragraphParser` asks the *source* element whether a run carried a
11
+ * payload while `serializeRun` writes the *model*, so an unmodelled child makes
12
+ * the two disagree for exactly one save — save 1 emits a run with nothing in
13
+ * it, the next parse drops that run, and save 2 differs from save 1. Holding
14
+ * the markup turns the whole class into a fixed point at once.
15
+ *
16
+ * A preserved child is opaque everywhere except text: `w:ruby` puts its
17
+ * `w:rubyBase` on the line as the word a reader reads, so the sink carries the
18
+ * visible text alongside the markup and text extraction, markdown and layout
19
+ * keep working.
20
+ */
21
+ /**
6
22
  * Where a preserved run child hides text a reader sees, by local name: the
7
23
  * child elements whose `w:t` descendants are on the line rather than above,
8
24
  * beside, or nowhere.
@@ -50,7 +50,7 @@ type SourceBackedKindName = { [Name in PreviewKindName]: (typeof PREVIEW_KINDS)[
50
50
  * Only a source-backed kind has an allowance: there is no number that would
51
51
  * change what the budget does to a descriptor.
52
52
  */
53
- type PreviewBudgetOverrides = Partial<Record<SourceBackedKindName, number>>;
53
+ export type PreviewBudgetOverrides = Partial<Record<SourceBackedKindName, number>>;
54
54
  /**
55
55
  * Everything a preview image states except what the ledger stamps on it: its
56
56
  * geometry, wrap, position and names. A preview has no relationship behind
@@ -58,7 +58,7 @@ type PreviewBudgetOverrides = Partial<Record<SourceBackedKindName, number>>;
58
58
  */
59
59
  type PreviewFrame = Omit<document_d_exports.Image, "type" | "rId" | "src" | "mimeType" | "filename">;
60
60
  /** The one way a producer builds a preview image. */
61
- type PreviewLedger = {
61
+ export type PreviewLedger = {
62
62
  /**
63
63
  * Build a `kind` preview that draws `svg` over `frame`, registered against
64
64
  * the package's allowance for that kind.
@@ -71,7 +71,7 @@ type PreviewLedger = {
71
71
  readonly release: (discarded: unknown) => void;
72
72
  };
73
73
  /** One parse's ledger, and the budget that charges it. */
74
- type PackagePreviewBudget = {
74
+ export type PackagePreviewBudget = {
75
75
  readonly ledger: PreviewLedger;
76
76
  /**
77
77
  * Charge every registered preview against its kind's allowance and drop the
@@ -97,11 +97,11 @@ type PackagePreviewBudget = {
97
97
  * retaining more than the cap; the budget's tests pin that a package's ledger
98
98
  * holds exactly the previews its model carries.
99
99
  */
100
- declare const createPackagePreviewBudget: () => PackagePreviewBudget;
100
+ export declare const createPackagePreviewBudget: () => PackagePreviewBudget;
101
101
  /**
102
102
  * A ledger for a read that builds no package: one part parsed on its own,
103
103
  * whose previews no package budget charges.
104
104
  */
105
- declare const standalonePreviewLedger: () => PreviewLedger;
105
+ export declare const standalonePreviewLedger: () => PreviewLedger;
106
106
  //#endregion
107
- export { PackagePreviewBudget, PreviewBudgetOverrides, PreviewLedger, createPackagePreviewBudget, standalonePreviewLedger };
107
+ export {};
@@ -5,7 +5,7 @@ const SVG_PREVIEW_DATA_URL_PREFIX = "data:image/svg+xml;charset=utf-8,";
5
5
  * Eight times what a producer may spend on one drawing, which is a package
6
6
  * holding a handful of the largest previews folio will build.
7
7
  */
8
- const SVG_PREVIEW_PACKAGE_CHARACTERS = 8 * (1024 * 1024);
8
+ const SVG_PREVIEW_PACKAGE_CHARACTERS = 8388608;
9
9
  const PREVIEW_KINDS = {
10
10
  /** A VML shape folio renders rather than projects (`v:shape`, `v:rect`, ...). */
11
11
  vmlShape: {
@@ -40,12 +40,12 @@
40
40
  * so a field that has no attribute to name has to say so with an empty list
41
41
  * rather than by being absent.
42
42
  */
43
- type ModelledAttributes<Field extends string> = Readonly<Record<Field, string | readonly string[]>>;
43
+ export type ModelledAttributes<Field extends string> = Readonly<Record<Field, string | readonly string[]>>;
44
44
  /**
45
45
  * `w:ind`. `hangingIndent` is the sign of `indentFirstLine` rather than a
46
46
  * value of its own, so both name the attribute pair that carries it.
47
47
  */
48
- declare const INDENTATION_ATTRIBUTES: {
48
+ export declare const INDENTATION_ATTRIBUTES: {
49
49
  readonly indentLeft: readonly ["left", "start"];
50
50
  readonly indentRight: readonly ["right", "end"];
51
51
  readonly indentFirstLine: readonly ["firstLine", "hanging"];
@@ -55,7 +55,7 @@ declare const INDENTATION_ATTRIBUTES: {
55
55
  * `w:spacing`. `spacingExplicit` records which of the two sides the paragraph
56
56
  * stated itself; it is derived from them and reads no attribute of its own.
57
57
  */
58
- declare const SPACING_ATTRIBUTES: {
58
+ export declare const SPACING_ATTRIBUTES: {
59
59
  readonly spaceBefore: "before";
60
60
  readonly spaceAfter: "after";
61
61
  readonly lineSpacing: "line";
@@ -64,7 +64,7 @@ declare const SPACING_ATTRIBUTES: {
64
64
  readonly afterAutospacing: "afterAutospacing";
65
65
  readonly spacingExplicit: readonly [];
66
66
  };
67
- declare const FRAME_ATTRIBUTES: {
67
+ export declare const FRAME_ATTRIBUTES: {
68
68
  readonly dropCap: "dropCap";
69
69
  readonly lines: "lines";
70
70
  readonly width: "w";
@@ -79,7 +79,7 @@ declare const FRAME_ATTRIBUTES: {
79
79
  readonly yAlign: "yAlign";
80
80
  readonly wrap: "wrap";
81
81
  };
82
- declare const TAB_STOP_ATTRIBUTES: {
82
+ export declare const TAB_STOP_ATTRIBUTES: {
83
83
  readonly position: "pos";
84
84
  readonly alignment: "val";
85
85
  readonly leader: "leader";
@@ -89,7 +89,7 @@ declare const TAB_STOP_ATTRIBUTES: {
89
89
  * namespace; the remainder decides on the local name, so naming them here
90
90
  * keeps a `r:topLeft` out of it.
91
91
  */
92
- declare const BORDER_ATTRIBUTES: {
92
+ export declare const BORDER_ATTRIBUTES: {
93
93
  readonly style: "val";
94
94
  readonly color: readonly ["color", "themeColor", "themeTint", "themeShade"];
95
95
  readonly size: "sz";
@@ -103,7 +103,7 @@ declare const BORDER_ATTRIBUTES: {
103
103
  readonly bottomRightArtRelationshipId: "bottomRight";
104
104
  };
105
105
  /** `CT_Shd`: direct, theme, modifier, and pattern attributes all have model fields. */
106
- declare const SHADING_ATTRIBUTES: {
106
+ export declare const SHADING_ATTRIBUTES: {
107
107
  readonly color: readonly ["color", "themeColor", "themeTint", "themeShade"];
108
108
  readonly fill: readonly ["fill", "themeFill", "themeFillTint", "themeFillShade"];
109
109
  readonly pattern: "val";
@@ -117,7 +117,7 @@ declare const SHADING_ATTRIBUTES: {
117
117
  * is has to come from the model rather than from a list in the census. The
118
118
  * first entry is the one it picks.
119
119
  */
120
- declare const PROPERTY_ELEMENT_ATTRIBUTES: {
120
+ export declare const PROPERTY_ELEMENT_ATTRIBUTES: {
121
121
  readonly CT_Ind: {
122
122
  readonly indentLeft: readonly ["left", "start"];
123
123
  readonly indentRight: readonly ["right", "end"];
@@ -173,6 +173,5 @@ declare const PROPERTY_ELEMENT_ATTRIBUTES: {
173
173
  };
174
174
  };
175
175
  /** Every attribute local name a table names, flattened, in field order. */
176
- declare const modelledAttributeNames: (modelled: ModelledAttributes<string>) => readonly string[];
177
- //#endregion
178
- export { BORDER_ATTRIBUTES, FRAME_ATTRIBUTES, INDENTATION_ATTRIBUTES, ModelledAttributes, PROPERTY_ELEMENT_ATTRIBUTES, SHADING_ATTRIBUTES, SPACING_ATTRIBUTES, TAB_STOP_ATTRIBUTES, modelledAttributeNames };
176
+ export declare const modelledAttributeNames: (modelled: ModelledAttributes<string>) => readonly string[];
177
+ //#endregion
@@ -57,8 +57,8 @@ declare const RASTER_SIGNATURES: readonly [{
57
57
  readonly bytes: readonly [77, 77, 0, 43];
58
58
  }];
59
59
  }];
60
- type RasterMimeType = (typeof RASTER_SIGNATURES)[number]["mimeType"];
61
- declare const RASTER_MIME_TYPES: ReadonlySet<string>;
62
- declare const detectRasterMimeType: (data: ArrayBuffer) => RasterMimeType | undefined;
60
+ export type RasterMimeType = (typeof RASTER_SIGNATURES)[number]["mimeType"];
61
+ export declare const RASTER_MIME_TYPES: ReadonlySet<string>;
62
+ export declare const detectRasterMimeType: (data: ArrayBuffer) => RasterMimeType | undefined;
63
63
  //#endregion
64
- export { RASTER_MIME_TYPES, RasterMimeType, detectRasterMimeType };
64
+ export {};
@@ -4,7 +4,7 @@ import "../types/index.js";
4
4
  /**
5
5
  * Relationship type constants for common types
6
6
  */
7
- declare const RELATIONSHIP_TYPES: {
7
+ export declare const RELATIONSHIP_TYPES: {
8
8
  readonly image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
9
9
  readonly hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
10
10
  readonly header: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
@@ -34,42 +34,42 @@ declare const RELATIONSHIP_TYPES: {
34
34
  * @param relsXml - XML content of a .rels file
35
35
  * @returns Map of relationship ID to Relationship object
36
36
  */
37
- declare function parseRelationships(relsXml: string): document_d_exports.RelationshipMap;
37
+ export declare function parseRelationships(relsXml: string): document_d_exports.RelationshipMap;
38
38
  /**
39
39
  * Get the short type name from a full relationship type URI
40
40
  *
41
41
  * @param typeUri - Full relationship type URI
42
42
  * @returns Short type name (e.g., "image", "hyperlink") or "unknown"
43
43
  */
44
- declare function getRelationshipTypeName(typeUri: string): string;
44
+ export declare function getRelationshipTypeName(typeUri: string): string;
45
45
  /**
46
46
  * Check if a relationship type is an external link (hyperlink)
47
47
  *
48
48
  * @param rel - Relationship to check
49
49
  * @returns true if this is an external hyperlink
50
50
  */
51
- declare function isExternalHyperlink(rel: document_d_exports.Relationship): boolean;
51
+ export declare function isExternalHyperlink(rel: document_d_exports.Relationship): boolean;
52
52
  /**
53
53
  * Check if a relationship type is an image
54
54
  *
55
55
  * @param rel - Relationship to check
56
56
  * @returns true if this is an image relationship
57
57
  */
58
- declare function isImageRelationship(rel: document_d_exports.Relationship): boolean;
58
+ export declare function isImageRelationship(rel: document_d_exports.Relationship): boolean;
59
59
  /**
60
60
  * Check if a relationship type is a header
61
61
  *
62
62
  * @param rel - Relationship to check
63
63
  * @returns true if this is a header relationship
64
64
  */
65
- declare function isHeaderRelationship(rel: document_d_exports.Relationship): boolean;
65
+ export declare function isHeaderRelationship(rel: document_d_exports.Relationship): boolean;
66
66
  /**
67
67
  * Check if a relationship type is a footer
68
68
  *
69
69
  * @param rel - Relationship to check
70
70
  * @returns true if this is a footer relationship
71
71
  */
72
- declare function isFooterRelationship(rel: document_d_exports.Relationship): boolean;
72
+ export declare function isFooterRelationship(rel: document_d_exports.Relationship): boolean;
73
73
  /**
74
74
  * Filter relationships by type
75
75
  *
@@ -77,35 +77,35 @@ declare function isFooterRelationship(rel: document_d_exports.Relationship): boo
77
77
  * @param type - Relationship type URI to filter by
78
78
  * @returns Array of matching relationships
79
79
  */
80
- declare function filterByType(map: document_d_exports.RelationshipMap, type: document_d_exports.RelationshipType): document_d_exports.Relationship[];
80
+ export declare function filterByType(map: document_d_exports.RelationshipMap, type: document_d_exports.RelationshipType): document_d_exports.Relationship[];
81
81
  /**
82
82
  * Get all images from a relationship map
83
83
  *
84
84
  * @param map - RelationshipMap to search
85
85
  * @returns Array of image relationships
86
86
  */
87
- declare function getImages(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
87
+ export declare function getImages(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
88
88
  /**
89
89
  * Get all hyperlinks from a relationship map
90
90
  *
91
91
  * @param map - RelationshipMap to search
92
92
  * @returns Array of hyperlink relationships
93
93
  */
94
- declare function getHyperlinks(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
94
+ export declare function getHyperlinks(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
95
95
  /**
96
96
  * Get all headers from a relationship map
97
97
  *
98
98
  * @param map - RelationshipMap to search
99
99
  * @returns Array of header relationships
100
100
  */
101
- declare function getHeaders(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
101
+ export declare function getHeaders(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
102
102
  /**
103
103
  * Get all footers from a relationship map
104
104
  *
105
105
  * @param map - RelationshipMap to search
106
106
  * @returns Array of footer relationships
107
107
  */
108
- declare function getFooters(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
108
+ export declare function getFooters(map: document_d_exports.RelationshipMap): document_d_exports.Relationship[];
109
109
  /**
110
110
  * What a relationship id names.
111
111
  *
@@ -114,7 +114,7 @@ declare function getFooters(map: document_d_exports.RelationshipMap): document_d
114
114
  * target the package no longer holds, and an id that resolves are different
115
115
  * facts, and only the last one may be read as a part.
116
116
  */
117
- type RelationshipResolution = {
117
+ export type RelationshipResolution = {
118
118
  status: "resolved";
119
119
  relationship: document_d_exports.Relationship;
120
120
  } | {
@@ -130,7 +130,7 @@ type RelationshipResolution = {
130
130
  * An empty attribute is absence, not an id: `ST_RelationshipId` is an NCName,
131
131
  * so `""` can never name a relationship, and no map can hold it as a key.
132
132
  */
133
- declare function resolveRelationshipId(map: document_d_exports.RelationshipMap | null | undefined, rId: string | undefined): RelationshipResolution;
133
+ export declare function resolveRelationshipId(map: document_d_exports.RelationshipMap | null | undefined, rId: string | undefined): RelationshipResolution;
134
134
  /**
135
135
  * Resolve a relationship id and require it to name a relationship of one type.
136
136
  *
@@ -138,7 +138,7 @@ declare function resolveRelationshipId(map: document_d_exports.RelationshipMap |
138
138
  * exists, but not as the thing the reference asked for, and reading it anyway
139
139
  * is how a missing image comes back as `styles.xml`.
140
140
  */
141
- declare function resolveRelationshipIdOfType(map: document_d_exports.RelationshipMap | null | undefined, rId: string | undefined, type: document_d_exports.RelationshipType): RelationshipResolution;
141
+ export declare function resolveRelationshipIdOfType(map: document_d_exports.RelationshipMap | null | undefined, rId: string | undefined, type: document_d_exports.RelationshipType): RelationshipResolution;
142
142
  /**
143
143
  * Resolve a relative target path to an absolute path within the DOCX
144
144
  *
@@ -149,7 +149,7 @@ declare function resolveRelationshipIdOfType(map: document_d_exports.Relationshi
149
149
  * @param target - Relative target from the relationship
150
150
  * @returns Absolute path within the DOCX
151
151
  */
152
- declare function resolveRelativePath(basePath: string, target: string): string;
152
+ export declare function resolveRelativePath(basePath: string, target: string): string;
153
153
  /**
154
154
  * Parse document.xml.rels specifically
155
155
  *
@@ -158,7 +158,7 @@ declare function resolveRelativePath(basePath: string, target: string): string;
158
158
  * @param relsXml - XML content of word/_rels/document.xml.rels
159
159
  * @returns RelationshipMap
160
160
  */
161
- declare function parseDocumentRelationships(relsXml: string): document_d_exports.RelationshipMap;
161
+ export declare function parseDocumentRelationships(relsXml: string): document_d_exports.RelationshipMap;
162
162
  /**
163
163
  * Parse package-level .rels
164
164
  *
@@ -167,12 +167,11 @@ declare function parseDocumentRelationships(relsXml: string): document_d_exports
167
167
  * @param relsXml - XML content of _rels/.rels
168
168
  * @returns RelationshipMap
169
169
  */
170
- declare function parsePackageRelationships(relsXml: string): document_d_exports.RelationshipMap;
170
+ export declare function parsePackageRelationships(relsXml: string): document_d_exports.RelationshipMap;
171
171
  /**
172
172
  * Debug: Print all relationships in a map
173
173
  *
174
174
  * @param map - RelationshipMap to print
175
175
  */
176
- declare function formatRelationships(map: document_d_exports.RelationshipMap): string;
177
- //#endregion
178
- export { RELATIONSHIP_TYPES, RelationshipResolution, filterByType, formatRelationships, getFooters, getHeaders, getHyperlinks, getImages, getRelationshipTypeName, isExternalHyperlink, isFooterRelationship, isHeaderRelationship, isImageRelationship, parseDocumentRelationships, parsePackageRelationships, parseRelationships, resolveRelationshipId, resolveRelationshipIdOfType, resolveRelativePath };
176
+ export declare function formatRelationships(map: document_d_exports.RelationshipMap): string;
177
+ //#endregion
@@ -9,6 +9,6 @@ type RemoveResolvedHeaderFooterPartsOptions = {
9
9
  compressionLevel: number;
10
10
  };
11
11
  /** Remove only parts whose last selection was explicitly resolved out of the document. */
12
- declare const removeResolvedHeaderFooterParts: ({ document, zip, removedReferences, compressionLevel }: RemoveResolvedHeaderFooterPartsOptions) => Promise<void>;
12
+ export declare const removeResolvedHeaderFooterParts: ({ document, zip, removedReferences, compressionLevel }: RemoveResolvedHeaderFooterPartsOptions) => Promise<void>;
13
13
  //#endregion
14
- export { removeResolvedHeaderFooterParts };
14
+ export {};
@@ -7,6 +7,6 @@ type NormalizeRenderedPageBreakHintsInput = {
7
7
  footnotes?: readonly document_d_exports.Footnote[];
8
8
  endnotes?: readonly document_d_exports.Endnote[];
9
9
  };
10
- declare const normalizeRenderedPageBreakHints: ({ documentBody, headers, footers, footnotes, endnotes }: NormalizeRenderedPageBreakHintsInput) => void;
10
+ export declare const normalizeRenderedPageBreakHints: ({ documentBody, headers, footers, footnotes, endnotes }: NormalizeRenderedPageBreakHintsInput) => void;
11
11
  //#endregion
12
- export { normalizeRenderedPageBreakHints };
12
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { document_d_exports } from "../types/document.js";
2
2
  //#region src/docx/replyToComment.d.ts
3
- type CreateCommentReplyInput = {
3
+ export type CreateCommentReplyInput = {
4
4
  author: string;
5
5
  text: string;
6
6
  initials?: string;
@@ -17,13 +17,12 @@ type CreateCommentReplyInput = {
17
17
  * cannot anchor a thread. A reply to a reply re-parents onto the same thread as
18
18
  * the target (Word threads are flat: every reply links to the root).
19
19
  */
20
- declare const createReply: (comments: readonly document_d_exports.Comment[], parentCommentId: number, input: CreateCommentReplyInput) => document_d_exports.Comment | null;
20
+ export declare const createReply: (comments: readonly document_d_exports.Comment[], parentCommentId: number, input: CreateCommentReplyInput) => document_d_exports.Comment | null;
21
21
  /**
22
22
  * Append a reply to `parentCommentId` in `doc`'s comment list, mutating the
23
23
  * document model in place, and return the created reply. Returns `null` when the
24
24
  * parent comment does not exist or cannot anchor a thread (see
25
25
  * {@link createReply}).
26
26
  */
27
- declare const replyToComment: (doc: document_d_exports.Document, parentCommentId: number, input: CreateCommentReplyInput) => document_d_exports.Comment | null;
28
- //#endregion
29
- export { CreateCommentReplyInput, createReply, replyToComment };
27
+ export declare const replyToComment: (doc: document_d_exports.Document, parentCommentId: number, input: CreateCommentReplyInput) => document_d_exports.Comment | null;
28
+ //#endregion
@@ -1,6 +1,7 @@
1
1
  import { allocateCommentId, seedCommentIdAbove } from "../prosemirror/commentIdAllocator.js";
2
2
  import { generateHexId } from "../utils/hexId.js";
3
3
  import { commentTextParagraph } from "./commentTextParagraph.js";
4
+ import { setDocumentBodyComments } from "@stll/docx-core/model";
4
5
  //#region src/docx/replyToComment.ts
5
6
  /**
6
7
  * Create a threaded reply to an existing comment.
@@ -63,7 +64,7 @@ const replyToComment = (doc, parentCommentId, input) => {
63
64
  const comments = doc.package.document.comments ?? [];
64
65
  const reply = createReply(comments, parentCommentId, input);
65
66
  if (!reply) return null;
66
- doc.package.document.comments = [...comments, reply];
67
+ setDocumentBodyComments(doc.package.document, [...comments, reply]);
67
68
  return reply;
68
69
  };
69
70
  //#endregion
@@ -1,4 +1,3 @@
1
1
  //#region src/docx/reviewHistoryNamespace.d.ts
2
- declare const FOLIO_REVIEW_HISTORY_NAMESPACE = "urn:stella:folio:review-history:1";
3
- //#endregion
4
- export { FOLIO_REVIEW_HISTORY_NAMESPACE };
2
+ export declare const FOLIO_REVIEW_HISTORY_NAMESPACE = "urn:stella:folio:review-history:1";
3
+ //#endregion
@@ -1,25 +1,28 @@
1
1
  import { document_d_exports } from "../types/document.js";
2
2
  import { XmlElement } from "./xmlParser.js";
3
+ import { CopyOriginAncestorList } from "@stll/docx-core/ops";
3
4
  //#region src/docx/reviewResolutionProvenance.d.ts
4
5
  type ResolutionJoins = NonNullable<document_d_exports.Insertion["resolutionJoins"]>;
5
6
  type BoundaryJoins = NonNullable<document_d_exports.RunPropertyChange["boundaryJoins"]>;
6
- declare const isResolutionJoins: (value: unknown) => value is ResolutionJoins;
7
- declare const isParagraphMarkResolutionJoin: (value: unknown) => value is NonNullable<document_d_exports.ParagraphMarkChange["resolutionJoin"]>;
8
- declare const isBoundaryJoins: (value: unknown) => value is BoundaryJoins;
7
+ export declare const isResolutionJoins: (value: unknown) => value is ResolutionJoins;
8
+ export declare const isParagraphMarkResolutionJoin: (value: unknown) => value is NonNullable<document_d_exports.ParagraphMarkChange["resolutionJoin"]>;
9
+ export declare const isBoundaryJoins: (value: unknown) => value is BoundaryJoins;
9
10
  declare const ReviewResolutionProvenanceError_base: import("better-result").TaggedErrorClass<"ReviewResolutionProvenanceError">;
10
- declare class ReviewResolutionProvenanceError extends ReviewResolutionProvenanceError_base<{
11
+ export declare class ReviewResolutionProvenanceError extends ReviewResolutionProvenanceError_base<{
11
12
  message: string;
12
13
  attribute: string;
13
14
  reason: "invalid" | "unsupportedVersion" | "unrepresentable";
14
15
  }> {}
15
- declare const parseResolutionJoins: (node: XmlElement) => ResolutionJoins | undefined;
16
- declare const parseBoundaryJoins: (node: XmlElement) => BoundaryJoins | undefined;
17
- declare const serializeResolutionJoins: (value: document_d_exports.Insertion["resolutionJoins"]) => string;
18
- declare const serializeBoundaryJoins: (value: document_d_exports.RunPropertyChange["boundaryJoins"]) => string;
16
+ export declare const parseResolutionJoins: (node: XmlElement) => ResolutionJoins | undefined;
17
+ export declare const parseBoundaryJoins: (node: XmlElement) => BoundaryJoins | undefined;
18
+ export declare const parseCopyOriginAncestors: (node: XmlElement) => CopyOriginAncestorList | undefined;
19
+ export declare const serializeResolutionJoins: (value: document_d_exports.Insertion["resolutionJoins"]) => string;
20
+ export declare const serializeBoundaryJoins: (value: document_d_exports.RunPropertyChange["boundaryJoins"]) => string;
21
+ export declare const serializeCopyOriginAncestors: (value: CopyOriginAncestorList | undefined) => string | undefined;
19
22
  /** Null carries an owned undefined depth; a missing attribute carries no field. */
20
- declare const parseParagraphMarkResolutionJoin: (node: XmlElement) => Pick<document_d_exports.ParagraphMarkChange, "resolutionJoin">;
21
- declare const serializeParagraphMarkResolutionJoin: (mark: document_d_exports.ParagraphMarkChange) => string;
23
+ export declare const parseParagraphMarkResolutionJoin: (node: XmlElement) => Pick<document_d_exports.ParagraphMarkChange, "resolutionJoin">;
24
+ export declare const serializeParagraphMarkResolutionJoin: (mark: document_d_exports.ParagraphMarkChange) => string;
22
25
  /** Captured paragraph properties compose the same envelope into a parsed XML element. */
23
- declare const paragraphMarkResolutionJoinAttributes: (mark: document_d_exports.ParagraphMarkChange) => Record<string, string>;
26
+ export declare const paragraphMarkResolutionJoinAttributes: (mark: document_d_exports.ParagraphMarkChange) => Record<string, string>;
24
27
  //#endregion
25
- export { ReviewResolutionProvenanceError, isBoundaryJoins, isParagraphMarkResolutionJoin, isResolutionJoins, paragraphMarkResolutionJoinAttributes, parseBoundaryJoins, parseParagraphMarkResolutionJoin, parseResolutionJoins, serializeBoundaryJoins, serializeParagraphMarkResolutionJoin, serializeResolutionJoins };
28
+ export {};