@arbidocs/blocks 0.5.135 → 0.5.137

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 (283) hide show
  1. package/dist/{ConnectedCallDock-ZNS5BS2R.cjs → ConnectedCallDock-L27WYW4Y.cjs} +21 -21
  2. package/dist/{ConnectedCallDock-ZNS5BS2R.cjs.map → ConnectedCallDock-L27WYW4Y.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-ACNVSFH7.cjs → ConnectedCallRoom-ZXSS6CVG.cjs} +14 -14
  4. package/dist/{ConnectedCallRoom-ACNVSFH7.cjs.map → ConnectedCallRoom-ZXSS6CVG.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs → ConnectedNativeDocxComparison-X2O5OIYZ.cjs} +16 -16
  6. package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs.map → ConnectedNativeDocxComparison-X2O5OIYZ.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-3JXN6SRT.cjs → ConnectedPresentation-XVCFF25X.cjs} +16 -16
  8. package/dist/{ConnectedPresentation-3JXN6SRT.cjs.map → ConnectedPresentation-XVCFF25X.cjs.map} +1 -1
  9. package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-GM5D7IUG.cjs} +3 -3
  10. package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-GM5D7IUG.cjs.map} +1 -1
  11. package/dist/{ConnectedSlidesTab-IECS2MJI.cjs → ConnectedSlidesTab-UG2NUFPS.cjs} +14 -14
  12. package/dist/{ConnectedSlidesTab-IECS2MJI.cjs.map → ConnectedSlidesTab-UG2NUFPS.cjs.map} +1 -1
  13. package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs → ConnectedStreamedWordArtifact-BI6WFIAW.cjs} +16 -16
  14. package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs.map → ConnectedStreamedWordArtifact-BI6WFIAW.cjs.map} +1 -1
  15. package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-SOWXEXMC.cjs} +15 -15
  16. package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-SOWXEXMC.cjs.map} +1 -1
  17. package/dist/{FilesViewerDialog-IFF2JR2A.cjs → FilesViewerDialog-A5OAV2YP.cjs} +45 -45
  18. package/dist/{FilesViewerDialog-IFF2JR2A.cjs.map → FilesViewerDialog-A5OAV2YP.cjs.map} +1 -1
  19. package/dist/{WorkspaceTableView-HMQ6PXUC.cjs → WorkspaceTableView-B5FAVVVA.cjs} +8 -8
  20. package/dist/{WorkspaceTableView-HMQ6PXUC.cjs.map → WorkspaceTableView-B5FAVVVA.cjs.map} +1 -1
  21. package/dist/agents/index.cjs +297 -297
  22. package/dist/{ai-QEXZ4SYR.cjs → ai-XVDR2XYV.cjs} +25 -25
  23. package/dist/ai-XVDR2XYV.cjs.map +1 -0
  24. package/dist/calls/index.cjs +121 -121
  25. package/dist/chat/index.cjs +1 -1
  26. package/dist/{chunk-LG36LSVZ.cjs → chunk-2WHI2PAJ.cjs} +4 -4
  27. package/dist/{chunk-LG36LSVZ.cjs.map → chunk-2WHI2PAJ.cjs.map} +1 -1
  28. package/dist/{chunk-TOYKBRAU.cjs → chunk-6JI4AXAY.cjs} +12 -12
  29. package/dist/{chunk-TOYKBRAU.cjs.map → chunk-6JI4AXAY.cjs.map} +1 -1
  30. package/dist/{chunk-VCDD763Y.cjs → chunk-7HU2NQVO.cjs} +3 -3
  31. package/dist/{chunk-VCDD763Y.cjs.map → chunk-7HU2NQVO.cjs.map} +1 -1
  32. package/dist/{chunk-BN33PC5F.cjs → chunk-7QZ7F3YL.cjs} +76 -76
  33. package/dist/{chunk-BN33PC5F.cjs.map → chunk-7QZ7F3YL.cjs.map} +1 -1
  34. package/dist/{chunk-X46QYO4S.cjs → chunk-ALR6NCVR.cjs} +4 -4
  35. package/dist/{chunk-X46QYO4S.cjs.map → chunk-ALR6NCVR.cjs.map} +1 -1
  36. package/dist/{chunk-TXBXIUTX.cjs → chunk-CYA7MDHZ.cjs} +6 -6
  37. package/dist/{chunk-TXBXIUTX.cjs.map → chunk-CYA7MDHZ.cjs.map} +1 -1
  38. package/dist/{chunk-UWTCK5IN.cjs → chunk-DNWJUTK6.cjs} +6 -6
  39. package/dist/{chunk-UWTCK5IN.cjs.map → chunk-DNWJUTK6.cjs.map} +1 -1
  40. package/dist/{chunk-QFXOTJ6G.cjs → chunk-DT4ORVVI.cjs} +3 -3
  41. package/dist/{chunk-QFXOTJ6G.cjs.map → chunk-DT4ORVVI.cjs.map} +1 -1
  42. package/dist/{chunk-MEYQLQWS.cjs → chunk-EHFSR633.cjs} +13 -13
  43. package/dist/{chunk-MEYQLQWS.cjs.map → chunk-EHFSR633.cjs.map} +1 -1
  44. package/dist/{chunk-IFJBE7M5.cjs → chunk-EY23TOPI.cjs} +11 -11
  45. package/dist/{chunk-IFJBE7M5.cjs.map → chunk-EY23TOPI.cjs.map} +1 -1
  46. package/dist/{chunk-TENWM7BH.cjs → chunk-G7E5IJST.cjs} +5 -5
  47. package/dist/{chunk-TENWM7BH.cjs.map → chunk-G7E5IJST.cjs.map} +1 -1
  48. package/dist/{chunk-5GHGIDZP.cjs → chunk-GRRD7SEY.cjs} +15 -15
  49. package/dist/{chunk-5GHGIDZP.cjs.map → chunk-GRRD7SEY.cjs.map} +1 -1
  50. package/dist/{chunk-ZN2JXV65.cjs → chunk-HQ7M75LU.cjs} +64 -64
  51. package/dist/{chunk-ZN2JXV65.cjs.map → chunk-HQ7M75LU.cjs.map} +1 -1
  52. package/dist/{chunk-MMKMQZ2B.cjs → chunk-HVVD4YSE.cjs} +50 -50
  53. package/dist/{chunk-MMKMQZ2B.cjs.map → chunk-HVVD4YSE.cjs.map} +1 -1
  54. package/dist/{chunk-RSQGDXAF.cjs → chunk-K3WSXEEI.cjs} +3 -3
  55. package/dist/{chunk-RSQGDXAF.cjs.map → chunk-K3WSXEEI.cjs.map} +1 -1
  56. package/dist/{chunk-LLD4PNBW.cjs → chunk-K424CT35.cjs} +4 -4
  57. package/dist/{chunk-LLD4PNBW.cjs.map → chunk-K424CT35.cjs.map} +1 -1
  58. package/dist/{chunk-OOW7H2YD.cjs → chunk-KZWPBL2P.cjs} +6 -6
  59. package/dist/{chunk-OOW7H2YD.cjs.map → chunk-KZWPBL2P.cjs.map} +1 -1
  60. package/dist/{chunk-LFMOQALU.cjs → chunk-LWWPIYFD.cjs} +48 -48
  61. package/dist/{chunk-LFMOQALU.cjs.map → chunk-LWWPIYFD.cjs.map} +1 -1
  62. package/dist/{chunk-VPKKPHJY.cjs → chunk-M5EQGQRC.cjs} +4 -4
  63. package/dist/{chunk-VPKKPHJY.cjs.map → chunk-M5EQGQRC.cjs.map} +1 -1
  64. package/dist/{chunk-ECSOXKJQ.cjs → chunk-N5UI363Q.cjs} +3 -3
  65. package/dist/{chunk-ECSOXKJQ.cjs.map → chunk-N5UI363Q.cjs.map} +1 -1
  66. package/dist/{chunk-FYFL3CET.cjs → chunk-NB6XGPEB.cjs} +4 -4
  67. package/dist/{chunk-FYFL3CET.cjs.map → chunk-NB6XGPEB.cjs.map} +1 -1
  68. package/dist/{chunk-C5APAFUY.cjs → chunk-PA7YEXL3.cjs} +4 -4
  69. package/dist/{chunk-C5APAFUY.cjs.map → chunk-PA7YEXL3.cjs.map} +1 -1
  70. package/dist/{chunk-R5NTEW4L.cjs → chunk-PTLILY4Q.cjs} +27 -27
  71. package/dist/{chunk-R5NTEW4L.cjs.map → chunk-PTLILY4Q.cjs.map} +1 -1
  72. package/dist/{chunk-EYXU32D7.cjs → chunk-Q77OKXYM.cjs} +6 -6
  73. package/dist/{chunk-EYXU32D7.cjs.map → chunk-Q77OKXYM.cjs.map} +1 -1
  74. package/dist/{chunk-U6XMZG6G.cjs → chunk-RDBUQCAS.cjs} +3 -3
  75. package/dist/{chunk-U6XMZG6G.cjs.map → chunk-RDBUQCAS.cjs.map} +1 -1
  76. package/dist/{chunk-FABKMTAI.cjs → chunk-REP5GA2Z.cjs} +10 -10
  77. package/dist/{chunk-FABKMTAI.cjs.map → chunk-REP5GA2Z.cjs.map} +1 -1
  78. package/dist/{chunk-ZTHYJP4G.cjs → chunk-RFPZKHZ6.cjs} +7 -7
  79. package/dist/{chunk-ZTHYJP4G.cjs.map → chunk-RFPZKHZ6.cjs.map} +1 -1
  80. package/dist/{chunk-IEAZX7L6.cjs → chunk-RIONTVEH.cjs} +7 -7
  81. package/dist/{chunk-IEAZX7L6.cjs.map → chunk-RIONTVEH.cjs.map} +1 -1
  82. package/dist/{chunk-6CGMSJLB.cjs → chunk-RJE6KXJQ.cjs} +3 -3
  83. package/dist/{chunk-6CGMSJLB.cjs.map → chunk-RJE6KXJQ.cjs.map} +1 -1
  84. package/dist/{chunk-VIUEPJ3Y.cjs → chunk-RUKEMF6Q.cjs} +35 -35
  85. package/dist/{chunk-VIUEPJ3Y.cjs.map → chunk-RUKEMF6Q.cjs.map} +1 -1
  86. package/dist/{chunk-JJZOL5MG.cjs → chunk-RYVZDFVO.cjs} +3 -3
  87. package/dist/{chunk-JJZOL5MG.cjs.map → chunk-RYVZDFVO.cjs.map} +1 -1
  88. package/dist/{chunk-MMMGOZYH.cjs → chunk-SUPCMKLP.cjs} +4 -4
  89. package/dist/{chunk-MMMGOZYH.cjs.map → chunk-SUPCMKLP.cjs.map} +1 -1
  90. package/dist/{chunk-VF26CUE3.cjs → chunk-TCVDV5RF.cjs} +3 -3
  91. package/dist/{chunk-VF26CUE3.cjs.map → chunk-TCVDV5RF.cjs.map} +1 -1
  92. package/dist/{chunk-SK6LFIU2.cjs → chunk-TIBTTITZ.cjs} +3 -3
  93. package/dist/{chunk-SK6LFIU2.cjs.map → chunk-TIBTTITZ.cjs.map} +1 -1
  94. package/dist/{chunk-JYZ6UE5X.cjs → chunk-ZHGIAVAC.cjs} +28 -28
  95. package/dist/{chunk-JYZ6UE5X.cjs.map → chunk-ZHGIAVAC.cjs.map} +1 -1
  96. package/dist/connect/docx.cjs +19 -19
  97. package/dist/connect/index.cjs +991 -991
  98. package/dist/connect/viewer.cjs +33 -33
  99. package/dist/dashboards/index.cjs +1 -1
  100. package/dist/embed/index.cjs +39 -39
  101. package/dist/files/index.cjs +224 -224
  102. package/dist/index.cjs +1590 -1590
  103. package/dist/settings/index.cjs +146 -146
  104. package/dist/shell/index.cjs +87 -87
  105. package/dist/studio/index.cjs +28 -28
  106. package/dist/vite/index.cjs +11 -1
  107. package/dist/vite/index.cjs.map +1 -1
  108. package/dist/vite/index.d.ts +13 -0
  109. package/dist/vite/index.js +11 -1
  110. package/dist/vite/index.js.map +1 -1
  111. package/dist/workflow-canvas/index.cjs +53 -53
  112. package/node_modules/@arbidocs/coedit/dist/commands.cjs +18 -1
  113. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
  114. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +2 -2
  115. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +2 -2
  116. package/node_modules/@arbidocs/coedit/dist/commands.js +18 -1
  117. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
  118. package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.cts → port-DXBNxZYw.d.cts} +2 -0
  119. package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.ts → port-DXBNxZYw.d.ts} +2 -0
  120. package/node_modules/@arbidocs/coedit/dist/server.cjs +16 -0
  121. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  122. package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
  123. package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
  124. package/node_modules/@arbidocs/coedit/dist/server.js +16 -0
  125. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  126. package/node_modules/@arbidocs/coedit/package.json +2 -2
  127. package/node_modules/@docx-editor.dev/core/README.md +25 -1
  128. package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +1 -0
  129. package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -1
  130. package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +21 -63
  131. package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -1
  132. package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -1
  133. package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +49 -40
  134. package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -1
  135. package/node_modules/@docx-editor.dev/core/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-CrPI9ZQc.d.ts} +714 -290
  136. package/node_modules/@docx-editor.dev/core/dist/chunk-23MKR33J.js +4 -0
  137. package/node_modules/@docx-editor.dev/core/dist/chunk-2CWQY27B.cjs +1 -0
  138. package/node_modules/@docx-editor.dev/core/dist/chunk-2DEY5NUC.cjs +32 -0
  139. package/node_modules/@docx-editor.dev/core/dist/chunk-2DR4TH6B.js +1 -0
  140. package/node_modules/@docx-editor.dev/core/dist/chunk-2F2UEAE2.js +2 -0
  141. package/node_modules/@docx-editor.dev/core/dist/chunk-2GPGAFOJ.cjs +5 -0
  142. package/node_modules/@docx-editor.dev/core/dist/chunk-ALD626VU.cjs +2 -0
  143. package/node_modules/@docx-editor.dev/core/dist/chunk-AU33YWEJ.js +236 -0
  144. package/node_modules/@docx-editor.dev/core/dist/chunk-AXU63LYW.cjs +1 -0
  145. package/node_modules/@docx-editor.dev/core/dist/chunk-CM5VZRBV.js +32 -0
  146. package/node_modules/@docx-editor.dev/core/dist/chunk-D7FAFFTN.js +1 -0
  147. package/node_modules/@docx-editor.dev/core/dist/chunk-DYUVJNDD.cjs +1 -0
  148. package/node_modules/@docx-editor.dev/core/dist/chunk-ESYUKD5D.js +2 -0
  149. package/node_modules/@docx-editor.dev/core/dist/chunk-F7TGQMVR.js +5 -0
  150. package/node_modules/@docx-editor.dev/core/dist/chunk-FLW7KIQX.js +30 -0
  151. package/node_modules/@docx-editor.dev/core/dist/chunk-JG4A6W6I.js +7 -0
  152. package/node_modules/@docx-editor.dev/core/dist/chunk-JNGLSBPH.js +2 -0
  153. package/node_modules/@docx-editor.dev/core/dist/chunk-KE6ZWRIY.cjs +236 -0
  154. package/node_modules/@docx-editor.dev/core/dist/chunk-L3YXJDPX.js +1 -0
  155. package/node_modules/@docx-editor.dev/core/dist/chunk-LI42N7OW.cjs +4 -0
  156. package/node_modules/@docx-editor.dev/core/dist/chunk-PLKDS4JT.js +1 -0
  157. package/node_modules/@docx-editor.dev/core/dist/chunk-PXMTQ73F.cjs +2 -0
  158. package/node_modules/@docx-editor.dev/core/dist/chunk-R4R3AAE4.js +1 -0
  159. package/node_modules/@docx-editor.dev/core/dist/chunk-RFUNFTGV.cjs +1 -0
  160. package/node_modules/@docx-editor.dev/core/dist/chunk-SVM6PGMS.js +3 -0
  161. package/node_modules/@docx-editor.dev/core/dist/chunk-SZURLHR3.cjs +3 -0
  162. package/node_modules/@docx-editor.dev/core/dist/chunk-UYCGCVZ2.cjs +1 -0
  163. package/node_modules/@docx-editor.dev/core/dist/chunk-WN7ICTA5.js +1 -0
  164. package/node_modules/@docx-editor.dev/core/dist/chunk-X34QRAUU.cjs +1 -0
  165. package/node_modules/@docx-editor.dev/core/dist/chunk-XNBYG4XJ.cjs +30 -0
  166. package/node_modules/@docx-editor.dev/core/dist/chunk-ZDFJW5XS.cjs +2 -0
  167. package/node_modules/@docx-editor.dev/core/dist/chunk-ZWO4JHNN.cjs +7 -0
  168. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -1
  169. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +29 -5
  170. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -1
  171. package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -1
  172. package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +5 -6
  173. package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -1
  174. package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +3 -3
  175. package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +13 -10
  176. package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +2 -2
  177. package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +15 -13
  178. package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +135 -2
  179. package/node_modules/@docx-editor.dev/core/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
  180. package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
  181. package/node_modules/@docx-editor.dev/core/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +14 -7
  182. package/node_modules/@docx-editor.dev/core/dist/{document-protection-CUb55pl_.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
  183. package/node_modules/@docx-editor.dev/core/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
  184. package/node_modules/@docx-editor.dev/core/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
  185. package/node_modules/@docx-editor.dev/core/dist/{editor-CZQZmTIU.d.ts → editor-B7OOAAie.d.ts} +536 -283
  186. package/node_modules/@docx-editor.dev/core/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
  187. package/node_modules/@docx-editor.dev/core/dist/editor-scope-CA6egMaK.d.ts +141 -0
  188. package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -1
  189. package/node_modules/@docx-editor.dev/core/dist/editor.css +6 -4
  190. package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +834 -34
  191. package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -1
  192. package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -2
  193. package/node_modules/@docx-editor.dev/core/dist/export.d.ts +52 -21
  194. package/node_modules/@docx-editor.dev/core/dist/export.js +2 -2
  195. package/node_modules/@docx-editor.dev/core/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
  196. package/node_modules/@docx-editor.dev/core/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
  197. package/node_modules/@docx-editor.dev/core/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
  198. package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -1
  199. package/node_modules/@docx-editor.dev/core/dist/index.d.ts +44 -27
  200. package/node_modules/@docx-editor.dev/core/dist/index.js +1 -1
  201. package/node_modules/@docx-editor.dev/core/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-Ci_BTnSU.d.ts} +3 -2
  202. package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -1
  203. package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +276 -126
  204. package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -1
  205. package/node_modules/@docx-editor.dev/core/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
  206. package/node_modules/@docx-editor.dev/core/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
  207. package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -1
  208. package/node_modules/@docx-editor.dev/core/dist/output.d.ts +24 -10
  209. package/node_modules/@docx-editor.dev/core/dist/output.js +1 -1
  210. package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts} +167 -5
  211. package/node_modules/@docx-editor.dev/core/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
  212. package/node_modules/@docx-editor.dev/core/dist/revision-projection-OVusTS77.d.ts +258 -0
  213. package/node_modules/@docx-editor.dev/core/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
  214. package/node_modules/@docx-editor.dev/core/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
  215. package/node_modules/@docx-editor.dev/core/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
  216. package/node_modules/@docx-editor.dev/core/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
  217. package/node_modules/@docx-editor.dev/core/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-DoK0lNjS.d.ts} +697 -608
  218. package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -1
  219. package/node_modules/@docx-editor.dev/core/dist/store.d.ts +527 -123
  220. package/node_modules/@docx-editor.dev/core/dist/store.js +1 -1
  221. package/node_modules/@docx-editor.dev/core/dist/{types-barrel-DuC5QBNC.d.ts → tree-op-types-Df4oY2u4.d.ts} +1723 -765
  222. package/node_modules/@docx-editor.dev/core/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DXhX1PE-.d.ts} +617 -428
  223. package/node_modules/@docx-editor.dev/core/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CF2625mv.d.ts} +28 -13
  224. package/node_modules/@docx-editor.dev/core/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
  225. package/node_modules/@docx-editor.dev/core/docs/accept-reject-without-scrolling.md +95 -0
  226. package/node_modules/@docx-editor.dev/core/docs/comment-on-found-text.md +72 -0
  227. package/node_modules/@docx-editor.dev/core/docs/custom-review-cards.md +178 -0
  228. package/node_modules/@docx-editor.dev/core/docs/highlight-ranges.md +48 -0
  229. package/node_modules/@docx-editor.dev/core/docs/index.md +36 -0
  230. package/node_modules/@docx-editor.dev/core/docs/propose-rewrite.md +247 -0
  231. package/node_modules/@docx-editor.dev/core/docs/tracked-replacement.md +68 -0
  232. package/node_modules/@docx-editor.dev/core/licenses/ECMA-376.md +29 -0
  233. package/node_modules/@docx-editor.dev/core/package.json +3 -2
  234. package/node_modules/@docx-editor.dev/react/README.md +71 -0
  235. package/node_modules/@docx-editor.dev/react/dist/index.d.mts +936 -86
  236. package/node_modules/@docx-editor.dev/react/dist/index.d.ts +936 -86
  237. package/node_modules/@docx-editor.dev/react/dist/index.js +3 -3
  238. package/node_modules/@docx-editor.dev/react/dist/index.mjs +3 -3
  239. package/node_modules/@docx-editor.dev/react/docs/accept-reject-without-scrolling.md +72 -0
  240. package/node_modules/@docx-editor.dev/react/docs/comment-on-found-text.md +47 -0
  241. package/node_modules/@docx-editor.dev/react/docs/custom-review-cards.md +105 -0
  242. package/node_modules/@docx-editor.dev/react/docs/highlight-ranges.md +25 -0
  243. package/node_modules/@docx-editor.dev/react/docs/index.md +36 -0
  244. package/node_modules/@docx-editor.dev/react/docs/propose-rewrite.md +247 -0
  245. package/node_modules/@docx-editor.dev/react/docs/tracked-replacement.md +45 -0
  246. package/node_modules/@docx-editor.dev/react/package.json +4 -3
  247. package/package.json +8 -8
  248. package/dist/ai-QEXZ4SYR.cjs.map +0 -1
  249. package/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
  250. package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
  251. package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
  252. package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
  253. package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
  254. package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
  255. package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
  256. package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
  257. package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
  258. package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
  259. package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
  260. package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
  261. package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
  262. package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
  263. package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
  264. package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
  265. package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
  266. package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
  267. package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
  268. package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
  269. package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
  270. package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
  271. package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
  272. package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
  273. package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
  274. package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
  275. package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
  276. package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
  277. package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
  278. package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
  279. package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
  280. package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
  281. package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
  282. package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
  283. package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
@@ -1,139 +1,14 @@
1
- import { q as ResolvedRevisionMarkup, a as ReviewDisplayMode } from './semantic-records-DQmumPgL.js';
2
- import { t as DocAnchor, g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem, aI as SourceCrop, Y as DrawingKind, a1 as ImageWrapTarget, _ as DrawingPositionInput, Z as DrawingLocks, r as ColorValue, x as ExecErrorCode, a5 as ParagraphFormatCommand, af as Watermark, E as ExecResult, n as ContentControlFilter, o as DocRange, k as RunFormatting, p as Revision, a7 as Rect, ab as SelectionPin, ae as Unsubscribe } from './types-barrel-DuC5QBNC.js';
3
- import { H as HistoryDiagnostic, V as ViewScope, b as HistoryGroup, a as EditorExecOptions, E as EditorScope } from './editor-scope-7o9xweiJ.js';
1
+ import { d as ResolvedRevisionMarkup, a as ReviewDisplayMode } from './revision-projection-OVusTS77.js';
2
+ import { ResolvedReviewPane } from './contracts/types.js';
3
+ import { V as ViewScope, b as HistoryDiagnostic, c as HistoryGroup, a as EditorExecOptions, E as EditorScope, d as HistoryGroupOptions } from './editor-scope-CA6egMaK.js';
4
+ import { E as EditorFontErrorCode, a as FontFaceRequest } from './editor-fonts-D_-vjuJi.js';
5
+ import { T as RevisionBatchSkipDetail, t as DocAnchor, g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem, aT as SourceCrop, a8 as DrawingKind, ag as ImageWrapTarget, aa as DrawingPositionInput, a9 as DrawingLocks, af as ImageResourceState, r as ColorValue, x as ExecErrorCode, ah as ParagraphFormatCommand, an as SupportedImageMime, ar as Watermark, E as ExecResult, at as WatermarkState, n as ContentControlFilter, o as DocRange, k as RunFormatting, p as Revision, ak as Rect, am as SelectionPin, ao as Unsubscribe } from './tree-op-types-Df4oY2u4.js';
6
+ import { C as CollaborationDiagnosticCode, b as CustomNodeDiagnosticCode, c as DiagnosticErrorName, F as FailureStage, B as ByteSizeBucket, a as CountBucket, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, R as ReviewDiagnosticCode, k as ReviewOperation, j as ReviewChangeKind, i as FormattingChangeKind, h as FontDiagnosticCode, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode } from './diagnostic-hints-BtCaCqQC.js';
4
7
  import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.js';
5
8
  import { InteractionOutcome } from './contracts/interaction.js';
6
- import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-kR_QB845.js';
7
- import { I as ImageResourceState, S as SupportedImageMime } from './image-resources-tXLQShoC.js';
8
- import { a as DocumentProtectionState } from './document-protection-CUb55pl_.js';
9
- import { C as CollaborationStatus } from './failure-NS2lsya4.js';
10
- import { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, D as DiagnosticErrorName, F as FailureStage, B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode, a as DocumentPartKind, E as EditDiagnosticCode, i as ReviewDiagnosticCode, j as ReviewOperation, R as ReviewChangeKind, h as FormattingChangeKind, g as FontDiagnosticCode, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode } from './diagnostic-hints-BeVjfNOv.js';
11
-
12
- /**
13
- * When the review pane opens by itself.
14
- *
15
- * - `'auto'`: the pane opens when a document with review items loads, and when a tracked
16
- * change is made while it is closed, in both cases when the pane has items to list. With
17
- * `revisionsIn: 'balloons'` the pane lists no tracked change and no reply to one, so
18
- * tracked changes and their replies alone do not open it.
19
- * - `'manual'`: the pane stays closed until the host or the user opens it. Use it when the
20
- * host shows review items its own way, such as in balloons or margin markers.
21
- *
22
- * @public
23
- */
24
- type ReviewPaneOpening = 'auto' | 'manual';
25
- /**
26
- * What the open review pane does when its full card column does not fit beside the page at
27
- * the page's zoom.
28
- *
29
- * - `'float'`: the pane shrinks to a strip of markers, and the open card floats over the
30
- * page.
31
- * - `'shrinkPage'`: under a fit zoom mode, the page may shrink down to the mode's
32
- * `minZoom` (or 10%) so that the full column fits. The pane changes to the marker strip
33
- * only when the column does not fit at that floor either. A fixed zoom behaves as
34
- * `'float'`.
35
- * - `'scroll'`: the page keeps the size it has beside the closed pane's marker strip, and
36
- * the full column stands beside it. The document and the column scroll together: the
37
- * viewport scrolls sideways to reach the cards.
38
- *
39
- * The setting applies to the review pane only. The navigation pane stays docked at its side
40
- * in every mode: it never scrolls with the document, and it takes its room beside the page
41
- * exactly as it does with no review pane.
42
- *
43
- * @public
44
- */
45
- type ReviewPaneOverflow = 'float' | 'shrinkPage' | 'scroll';
46
- /**
47
- * Where tracked changes open.
48
- *
49
- * - `'pane'`: the review pane lists tracked changes as cards beside the comments.
50
- * - `'balloons'`: the pane lists comments only, except comments that reply to a tracked
51
- * change: the change's balloon shows those. A tracked change opens in a balloon at its
52
- * text when the reader clicks it, or when Next Change, Previous Change, or
53
- * `setActiveReviewItem(key, { announce: true })` reaches it.
54
- *
55
- * @public
56
- */
57
- type RevisionDisplay = 'pane' | 'balloons';
58
- /**
59
- * How a collapsed comment marker looks.
60
- *
61
- * - `'initials'`: a badge with the thread author's initials in the author's color, a reply
62
- * count, and a check mark when the thread is resolved.
63
- * - `'icon'`: the comment icon.
64
- *
65
- * @public
66
- */
67
- type CommentMarkerStyle = 'initials' | 'icon';
68
- /**
69
- * Review pane settings to change. Every field is optional, and an omitted field keeps its
70
- * current value.
71
- *
72
- * @public
73
- */
74
- interface ReviewPaneOptions {
75
- /** Default `'auto'`. */
76
- readonly opening?: ReviewPaneOpening;
77
- /** Default `'float'`. */
78
- readonly overflow?: ReviewPaneOverflow;
79
- /** Default `'pane'`. */
80
- readonly revisionsIn?: RevisionDisplay;
81
- /** Default `'icon'`. */
82
- readonly commentMarkers?: CommentMarkerStyle;
83
- }
84
- /**
85
- * The review pane settings in force, with every field resolved.
86
- *
87
- * @public
88
- */
89
- interface ResolvedReviewPane {
90
- /** When the pane opens by itself. */
91
- readonly opening: ReviewPaneOpening;
92
- /** What the open pane does when its card column does not fit beside the page. */
93
- readonly overflow: ReviewPaneOverflow;
94
- /** Where tracked changes open. */
95
- readonly revisionsIn: RevisionDisplay;
96
- /** How a collapsed comment marker looks. */
97
- readonly commentMarkers: CommentMarkerStyle;
98
- }
99
- /** The settings an editor starts with when nothing sets them. @public */
100
- declare const DEFAULT_REVIEW_PANE: ResolvedReviewPane;
101
- /**
102
- * Merge `options` over `base`. Throws a `TypeError` for an unknown field or value, so a
103
- * misspelled setting fails loudly instead of being ignored. Returns `base` itself when
104
- * nothing changes, so the snapshot keeps its reference.
105
- *
106
- * @public
107
- */
108
- declare function resolveReviewPane(options: ReviewPaneOptions | undefined, base?: ResolvedReviewPane): ResolvedReviewPane;
109
- /**
110
- * The fields of a review item that decide whether the review pane lists it. A
111
- * `ReviewItem` and a review item placement both have them.
112
- *
113
- * @public
114
- */
115
- interface ReviewPaneItemFields {
116
- /** The item kind, as `ReviewItem.kind` gives it. */
117
- readonly kind: 'revision' | 'comment' | 'custom';
118
- /** For a comment, the tracked change it replies to. */
119
- readonly parentRevisionId?: string;
120
- }
121
- /**
122
- * Whether the review pane lists a card for `item` under `revisionsIn`.
123
- *
124
- * With `'balloons'`, a balloon at the text shows every tracked change and every comment
125
- * that replies to a tracked change, so the pane lists neither. Give the item as an
126
- * unfiltered `getReviewItems()` read returns it: a query that excludes revision kinds
127
- * removes `parentRevisionId` from replies to the changes it drops.
128
- *
129
- * The engine applies this rule to every review item when it decides whether the pane opens
130
- * by itself or closes after a settings change. A review pane must apply the same rule before
131
- * its own filters, such as a hidden kind or a host filter. Those filters can hide every card,
132
- * and then the pane that the engine opens is empty.
133
- *
134
- * @public
135
- */
136
- declare function reviewPaneListsItem(revisionsIn: RevisionDisplay, item: ReviewPaneItemFields): boolean;
9
+ import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-BbA4dgEo.js';
10
+ import { a as DocumentProtectionState } from './document-protection-BvbpSXbQ.js';
11
+ import { a as CollaborationStatus } from './failure-6KGFrDO9.js';
137
12
 
138
13
  /**
139
14
  * What a fit mode fits the page to.
@@ -167,6 +42,52 @@ type ZoomMode = {
167
42
  readonly maxZoom?: number;
168
43
  };
169
44
 
45
+ /**
46
+ * One occurrence of a search query in the document.
47
+ *
48
+ * Carries TWO addresses on purpose. `blockId` + `start` is the engine's own: stable
49
+ * across edits and independent of ordering. `paragraphIndex` + `runIndex` + `runOffset`
50
+ * is the positional one a find/replace UI needs to show and navigate results, and it is
51
+ * derived from the same walk rather than left to the caller to reconstruct — a caller
52
+ * guessing at run boundaries would send the selection to the wrong place.
53
+ *
54
+ * A match can span runs when formatting changes mid-word; the run address is where it
55
+ * STARTS. `scope` identifies a non-body story so navigation opens the correct surface.
56
+ * A frame scope selects its anchoring drawing and never places a caret inside its story.
57
+ * A match inside a field result reports the field atom's model range. Its `length` is one,
58
+ * while `text` carries the visible match and can be longer. Select with `start` and `length`.
59
+ * Never derive the selected length from `text.length`.
60
+ */
61
+ interface TextMatch {
62
+ readonly blockId: string;
63
+ /** Character offset within the paragraph's concatenated run text. */
64
+ readonly start: number;
65
+ readonly length: number;
66
+ /**
67
+ * Paragraph ordinal within this match's story. Table and nested-table paragraphs count.
68
+ * Non-paragraph blocks add no ordinal.
69
+ */
70
+ readonly paragraphIndex: number;
71
+ /** Index of the run the match starts in, and the offset within that run. */
72
+ readonly runIndex: number;
73
+ readonly runOffset: number;
74
+ /** Story containing the match. Absence means the body. */
75
+ readonly scope?: ViewScope;
76
+ /** The matched text as it appears in the document. */
77
+ readonly text: string;
78
+ /**
79
+ * Paragraph text immediately before and after the match, bounded at the derivation
80
+ * boundary. A results list shows the match in its sentence — "…as described in this
81
+ * **Exhi**bit A" — and nothing else in the contract can reach paragraph text, so a
82
+ * caller would otherwise have to re-read the document to render one row.
83
+ *
84
+ * Optional and additive: an implementation that has not derived them omits them, and a
85
+ * consumer treats absent as empty.
86
+ */
87
+ readonly contextBefore?: string;
88
+ readonly contextAfter?: string;
89
+ }
90
+
170
91
  /**
171
92
  * Anonymous diagnostics: why something failed, as stable codes and bucketed numbers.
172
93
  *
@@ -246,6 +167,76 @@ type DocumentOpenDiagnostic = DiagnosticBase & {
246
167
  /** The role of the part that failed, such as `'header'`. Never its name. */
247
168
  readonly part?: DocumentPartKind;
248
169
  }));
170
+ /**
171
+ * A `save()` call returned the document, or failed. Reported for each call, by the editor that
172
+ * saved. A save the host does afterwards, such as an upload, is the host's to measure.
173
+ *
174
+ * @public
175
+ */
176
+ type DocumentSaveDiagnostic = DiagnosticBase & {
177
+ readonly kind: 'document.save';
178
+ } & ({
179
+ readonly outcome: 'saved';
180
+ /** Size of the saved bytes. */
181
+ readonly sizeBucket: ByteSizeBucket;
182
+ /** Milliseconds from the `save()` call to the bytes, pending edits included. */
183
+ readonly durationMs: number;
184
+ } | (DiagnosticFailureDetail & {
185
+ readonly outcome: 'rejected';
186
+ readonly code: DocumentSaveDiagnosticCode;
187
+ /** Milliseconds from the `save()` call to the failure. */
188
+ readonly durationMs: number;
189
+ }));
190
+ /**
191
+ * What an editor did over a window of use or over its whole session. Counts and milliseconds
192
+ * only: no key, position, command argument or text.
193
+ *
194
+ * @public
195
+ */
196
+ interface SessionActivity {
197
+ /**
198
+ * For `active`, milliseconds from the window's first activity to the summary. For `end`,
199
+ * milliseconds from the editor's creation to its end, idle time included.
200
+ */
201
+ readonly durationMs: number;
202
+ /**
203
+ * Milliseconds of use: the time between key presses, pointer presses and edits that are at
204
+ * most 30 seconds apart. A longer pause counts as idle.
205
+ */
206
+ readonly activeMs: number;
207
+ /**
208
+ * Edits from typing, the clipboard, drag and drop, keyboard undo, and other input that changed
209
+ * the document. Each committed change counts once: typing commits about one change per
210
+ * character, and characters typed faster than the editor paints commit together.
211
+ */
212
+ readonly inputEdits: number;
213
+ /** Editor commands, from `exec(...)` or the toolbar, that changed the document. */
214
+ readonly commandEdits: number;
215
+ /** Editing API batches that changed the document. */
216
+ readonly automationEdits: number;
217
+ }
218
+ /**
219
+ * The lifecycle and activity of one editor instance, without any content.
220
+ *
221
+ * - `start`: the editor was created.
222
+ * - `active`: a summary of one window of use. Sent after a minute of activity, when the page is
223
+ * hidden, and before `end`, if anything happened since the last summary. An idle editor sends
224
+ * none, so `active` is not a heartbeat.
225
+ * - `end`: the editor was destroyed, or the page closed. Carries totals for the whole session.
226
+ *
227
+ * Edits count changes this editor committed. Refused edits are in `edit.rejected`, and edits
228
+ * that collaborators made are not counted. Sum `active` summaries or read `end` totals, not
229
+ * both: the totals include every summary.
230
+ *
231
+ * @public
232
+ */
233
+ type SessionDiagnostic = DiagnosticBase & {
234
+ readonly kind: 'session';
235
+ } & ({
236
+ readonly phase: 'start';
237
+ } | (SessionActivity & {
238
+ readonly phase: 'active' | 'end';
239
+ }));
249
240
  /** Where a refused edit came from. @public */
250
241
  type EditRejectionOrigin = 'command' | 'input' | 'automation';
251
242
  /** An edit, a command or a tracked change was refused. @public */
@@ -282,8 +273,11 @@ interface ReviewSkippedDiagnostic extends DiagnosticBase {
282
273
  /** The role of the part the changes are in, such as `'footnotes'`. Never its name. */
283
274
  readonly part?: DocumentPartKind;
284
275
  /**
285
- * For `review.revision-unsupported`, the engine condition that refused the change, such as
286
- * `unaddressed` (no `w:id` or author) or `unrecorded-properties`. See `diagnosticCauses()`.
276
+ * The structure behind the skip. For `review.revision-unsupported`, the engine condition that
277
+ * refused the change, such as `unaddressed` (no `w:id` or author). For
278
+ * `review.incomplete-group`, the change the decision would also decide, such as
279
+ * `paired-change` (the other half of a move or merge) or `removed-content`. For
280
+ * `review.retained-structure`, `nested-table`. See `diagnosticCauses()`.
287
281
  */
288
282
  readonly cause?: string;
289
283
  }
@@ -364,7 +358,11 @@ interface PerformanceDiagnostic extends DiagnosticBase {
364
358
  * presses were timed and more than one in 20 took over 200 ms.
365
359
  */
366
360
  readonly code?: PerformanceDiagnosticCode;
367
- /** Milliseconds from the window's first timing to the summary. */
361
+ /**
362
+ * Milliseconds from the window's first timing to the summary, one minute or less. Idle time
363
+ * inside the window counts, so this is not active editing time. Use the `count` of
364
+ * `interaction` to measure activity.
365
+ */
368
366
  readonly windowMs: number;
369
367
  /** Pages in the document at the last paint. */
370
368
  readonly pagesBucket?: CountBucket;
@@ -398,7 +396,7 @@ interface PerformanceDiagnostic extends DiagnosticBase {
398
396
  *
399
397
  * @public
400
398
  */
401
- type EditorDiagnostic = DocumentOpenDiagnostic | EditRejectedDiagnostic | ReviewSkippedDiagnostic | FontFailedDiagnostic | HistoryDiagnosticEvent | CustomNodeDiagnosticEvent | CollaborationStatusDiagnostic | CollaborationParticipantsDiagnostic | PerformanceDiagnostic;
399
+ type EditorDiagnostic = DocumentOpenDiagnostic | EditRejectedDiagnostic | ReviewSkippedDiagnostic | FontFailedDiagnostic | HistoryDiagnosticEvent | CustomNodeDiagnosticEvent | CollaborationStatusDiagnostic | CollaborationParticipantsDiagnostic | PerformanceDiagnostic | DocumentSaveDiagnostic | SessionDiagnostic;
402
400
  /** The `kind` of every {@link EditorDiagnostic}. @public */
403
401
  type EditorDiagnosticKind = EditorDiagnostic['kind'];
404
402
 
@@ -414,7 +412,11 @@ interface EditorEvents {
414
412
  revisionMarkupChange: (settings: ResolvedRevisionMarkup) => void;
415
413
  /** A document mutation committed, with the ids it touched. */
416
414
  change: (change: DocumentChange) => void;
417
- /** The selection or its derived formatting moved. */
415
+ /**
416
+ * Observable editor state moved without a document change: the selection or its derived
417
+ * formatting, the armed typing format, the open header or footer, the collaboration
418
+ * session's status, or the page count when pages finish laying out in the background.
419
+ */
418
420
  selectionChange: (snapshot: EditorSnapshot) => void;
419
421
  error: (error: EditorError) => void;
420
422
  historyDiagnostic: (diagnostic: HistoryDiagnostic) => void;
@@ -453,7 +455,56 @@ interface EditorEvents {
453
455
  * ```
454
456
  */
455
457
  reviewItemReveal: (event: ReviewItemRevealEvent) => void;
458
+ /**
459
+ * An accept-all or reject-all decision committed: from the toolbar, the menu, or
460
+ * `exec({ type: 'resolveAllReviewChanges' })`. `skipped` names the changes it left pending,
461
+ * so a host can say why they stay. A remote decision in a collaboration session never fires
462
+ * it: it is a local event.
463
+ *
464
+ * @example
465
+ * ```ts
466
+ * editor.on('reviewChangesResolved', ({ skipped }) => {
467
+ * if (skipped.length) showNotice(`${skipped.length} changes stay pending`);
468
+ * });
469
+ * ```
470
+ */
471
+ reviewChangesResolved: (event: ReviewChangesResolvedEvent) => void;
472
+ /**
473
+ * The editor's pages are now in another document: it was attached for the first time, moved
474
+ * into another element or window, detached (`document` is `null`), or found its element
475
+ * moved to another window by the host. Custom chrome that listens on the editor's document
476
+ * or measures its window re-binds here.
477
+ *
478
+ * @example
479
+ * ```ts
480
+ * editor.on('hostChange', ({ document }) => {
481
+ * stopShortcuts?.();
482
+ * stopShortcuts = document ? listenForShortcuts(document) : undefined;
483
+ * });
484
+ * ```
485
+ */
486
+ hostChange: (event: EditorHostChange) => void;
487
+ }
488
+ /**
489
+ * The payload of the `hostChange` event.
490
+ *
491
+ * @public
492
+ */
493
+ interface EditorHostChange {
494
+ /** The document the pages are mounted in now, or `null` while the editor is detached. */
495
+ readonly document: EditorHostDocument | null;
456
496
  }
497
+ /**
498
+ * The DOM `Document`, wherever DOM types are loaded (every browser host).
499
+ *
500
+ * Read from `globalThis` rather than named, so this contract also compiles in the engine's
501
+ * DOM-free lanes and on servers, where it falls back to `object`.
502
+ *
503
+ * @public
504
+ */
505
+ type EditorHostDocument = typeof globalThis extends {
506
+ readonly document: infer D;
507
+ } ? D : object;
457
508
  /**
458
509
  * The payload of the `reviewItemReveal` event.
459
510
  *
@@ -461,17 +512,18 @@ interface EditorEvents {
461
512
  */
462
513
  interface ReviewItemRevealEvent {
463
514
  /**
464
- * The key of the review item to open, as `getReviewItems()` without `pairReplacements`
465
- * lists it. Next Change and Previous Change step through that unpaired queue, so for a
466
- * replacement this is the key of its deletion or its insertion. `setActiveReviewItem`
515
+ * The key of the review item to open, as `getReviewItems({ pairReplacements: false })`
516
+ * lists it, so for a replacement this is the key of its deletion or its insertion. Next
517
+ * Change and Previous Change stop once on a replacement and report its deletion's key,
518
+ * with the pair's key in {@link ReviewItemRevealEvent.pairKey}. `setActiveReviewItem`
467
519
  * reports the key it was given, so a call with a pair's key reports that key here and in
468
520
  * {@link ReviewItemRevealEvent.pairKey}.
469
521
  */
470
522
  readonly key: string;
471
523
  /**
472
- * The key that `getReviewItems({ pairReplacements: true })` gives the replacement this item
473
- * belongs to. Present only when the item is a paired replacement or one half of one. A
474
- * host that lists pairs opens `pairKey ?? key`.
524
+ * The key that `getReviewItems()` gives the replacement this item belongs to, since it
525
+ * pairs replacements by default. Present only when the item is a paired replacement or one
526
+ * half of one. A host that reads the default list opens `pairKey ?? key`.
475
527
  */
476
528
  readonly pairKey?: string;
477
529
  /**
@@ -481,6 +533,33 @@ interface ReviewItemRevealEvent {
481
533
  */
482
534
  readonly source: ReviewItemRevealSource;
483
535
  }
536
+ /**
537
+ * The payload of the `reviewChangesResolved` event.
538
+ *
539
+ * @public
540
+ */
541
+ interface ReviewChangesResolvedEvent {
542
+ /** Whether the decision accepted or rejected the changes. */
543
+ readonly action: 'accept' | 'reject';
544
+ /** How many listed changes it resolved. The `exec` result lists them in `revisions.resolved`. */
545
+ readonly resolvedCount: number;
546
+ /**
547
+ * The listed changes it left pending, with why: `'retained-structure'` for a row that stays
548
+ * to keep a nested table, `'incomplete-group'` for a change that would also resolve one the
549
+ * selection leaves out, `'unsupported-revision'` for a structure the engine cannot resolve,
550
+ * and `'unknown-revision'` for a key that no longer names a change. `reviewCodeOfSkip(skip)`
551
+ * gives each entry's review code, with its `detail`.
552
+ */
553
+ readonly skipped: readonly {
554
+ /** The skipped change's key, as `getReviewItems({ pairReplacements: false })` lists it. */
555
+ readonly key: string;
556
+ /** The key of the replacement it is one half of, as the default `getReviewItems()` lists it. */
557
+ readonly pairKey?: string;
558
+ readonly reason: 'unsupported-revision' | 'incomplete-group' | 'retained-structure' | 'unknown-revision';
559
+ /** Which condition kept it, such as `'locked-content'` (a content lock) or `'bound-content'` (a data binding). */
560
+ readonly detail?: RevisionBatchSkipDetail;
561
+ }[];
562
+ }
484
563
  /** What asked to reveal a review item. See {@link ReviewItemRevealEvent.source}. @public */
485
564
  type ReviewItemRevealSource = 'navigate' | 'host';
486
565
  /**
@@ -823,7 +902,7 @@ interface EditorReviewHits {
823
902
  *
824
903
  * Filtering revision kinds is how a host hides structural cards it has no UI for,
825
904
  * `placement: false` skips the layout pass entirely when only metadata is wanted, and
826
- * `pairReplacements` lists a typed-over selection as one decision.
905
+ * `pairReplacements: false` lists a typed-over selection as its two halves.
827
906
  */
828
907
  interface ReviewItemQuery {
829
908
  /**
@@ -836,8 +915,12 @@ interface ReviewItemQuery {
836
915
  /** When false, skip layout geometry; metadata is unchanged and anchors are null. Default true. */
837
916
  readonly placement?: boolean;
838
917
  /**
839
- * When true, list a deletion and the insertion that directly follows it as one
840
- * `'replace'` item. Default false.
918
+ * Whether to list a deletion and the insertion that directly follows it as one
919
+ * `'replace'` item. Default true. Set it to false to list the deletion and the insertion as
920
+ * separate items, for example to accept or reject each half on its own.
921
+ *
922
+ * A host that steps through the list with `setActiveReviewItem` stops once on
923
+ * each replacement with the default, as Next Change does.
841
924
  *
842
925
  * Two revisions pair when they are next to each other among the queue's revisions, the
843
926
  * deletion comes first, both have the same author, nesting level and `readOnly` value, and
@@ -857,6 +940,43 @@ interface ReviewItemQuery {
857
940
  readonly pairReplacements?: boolean;
858
941
  }
859
942
 
943
+ /**
944
+ * The refused-open read model, split out of `editor.ts`.
945
+ *
946
+ * Re-exported from `editor.ts`, so consumers keep importing
947
+ * `@docx-editor.dev/core/contracts/editor`.
948
+ */
949
+
950
+ /**
951
+ * What a person can do about a document that did not open. It groups the open codes so a
952
+ * host can pick a message without listing every code:
953
+ *
954
+ * - `damaged`: the archive or its XML is broken. Saving the file again in a desktop editor
955
+ * can repair it.
956
+ * - `not-docx`: the bytes are not a `.docx` document, or hold no main document.
957
+ * - `too-large`: the file crosses a size, count or depth limit.
958
+ * - `blocked`: the file uses XML features that the editor refuses for security.
959
+ * - `unknown`: any other failure.
960
+ *
961
+ * @public
962
+ */
963
+ type DocumentOpenFailureReason = 'damaged' | 'not-docx' | 'too-large' | 'blocked' | 'unknown';
964
+ /**
965
+ * A document the editor refused to open. It carries a stable code only, never the file's
966
+ * content or name, so a host can show it, log it, or send it with a support request.
967
+ *
968
+ * Each refusal is a new object, so a host can compare it by reference to tell a second
969
+ * refusal of the same file from the first.
970
+ *
971
+ * @public
972
+ */
973
+ interface DocumentOpenFailure {
974
+ /** The stable open code, the same one the `document.open` diagnostic reports. */
975
+ readonly code: DocumentOpenDiagnosticCode;
976
+ /** The group of {@link DocumentOpenFailure.code} that picks the message. */
977
+ readonly reason: DocumentOpenFailureReason;
978
+ }
979
+
860
980
  /**
861
981
  * How activating a review item places it in the viewport, and whether it announces the
862
982
  * reveal.
@@ -972,8 +1092,8 @@ interface ReviewRevisionPlacement extends ReviewItemPlacementBase {
972
1092
  readonly revisionKind: ReviewRevisionKind;
973
1093
  /**
974
1094
  * The words a replacement decision removes when {@link revisionKind} is `'replace'`.
975
- * The built-in reader lists separate deletion and insertion cards unless the query sets
976
- * {@link ReviewItemQuery.pairReplacements}.
1095
+ * The built-in reader lists separate deletion and insertion cards when the query sets
1096
+ * {@link ReviewItemQuery.pairReplacements} to false.
977
1097
  */
978
1098
  readonly replacedText?: string;
979
1099
  readonly item: ReviewRevisionItem;
@@ -1245,7 +1365,8 @@ interface EditorFormatPainterCommands {
1245
1365
  * direct paragraph properties as well.
1246
1366
  *
1247
1367
  * Non-mutating: the capture lives on the editor, not in the document, and it survives
1248
- * until the next capture or until the editor is detached.
1368
+ * until the next capture, a document load, or `destroy()`, including across a `detach()`
1369
+ * and a later `attach()`.
1249
1370
  */
1250
1371
  copyFormatting: Record<never, never>;
1251
1372
  /**
@@ -1361,9 +1482,21 @@ interface SelectedImageState {
1361
1482
  readonly dpiX: number;
1362
1483
  readonly dpiY: number;
1363
1484
  }> | null;
1485
+ /**
1486
+ * Whether `setImageProperties` can change the size. False for a hidden drawing, a drawing
1487
+ * whose size is locked, a rotated legacy VML text box or one sized as a percentage of a
1488
+ * frame, and in viewing mode. An inline text box resizes.
1489
+ */
1364
1490
  readonly canResize: boolean;
1491
+ /**
1492
+ * Whether `setImagePosition` can move the drawing. False for an inline drawing, which flows
1493
+ * with its line, for a locked or hidden drawing, a rotated legacy VML text box, and in
1494
+ * viewing mode.
1495
+ */
1365
1496
  readonly canMove: boolean;
1497
+ /** Whether `setImageWrapType` applies: pictures only, never text boxes. */
1366
1498
  readonly canChangeWrap: boolean;
1499
+ /** Whether `setImageProperties` can crop: pictures only, never text boxes. */
1367
1500
  readonly canCrop: boolean;
1368
1501
  }
1369
1502
  /**
@@ -1376,6 +1509,110 @@ interface SelectedImageState {
1376
1509
  */
1377
1510
  type ImageContext = SelectedImageState;
1378
1511
 
1512
+ /**
1513
+ * Which kind of story a bookmark is in: the main text, a header or footer, or a note.
1514
+ *
1515
+ * @public
1516
+ */
1517
+ type BookmarkStory = 'body' | 'headerFooter' | 'note';
1518
+ /**
1519
+ * Where a bookmark is, finer than {@link BookmarkStory}: the main text, a header, a footer, a
1520
+ * footnote or an endnote.
1521
+ *
1522
+ * @public
1523
+ */
1524
+ type BookmarkPlace = 'body' | 'header' | 'footer' | 'footnote' | 'endnote';
1525
+ /**
1526
+ * One bookmark, as the `bookmarks` query lists it.
1527
+ *
1528
+ * @public
1529
+ */
1530
+ interface BookmarkSummary {
1531
+ /** The name as the document writes it. Names compare without case. */
1532
+ readonly name: string;
1533
+ /** Whether the name starts with an underscore. Hidden bookmarks mark application targets. */
1534
+ readonly hidden: boolean;
1535
+ /** The story the bookmark starts in. */
1536
+ readonly story: BookmarkStory;
1537
+ /** The same story, telling a header from a footer and a footnote from an endnote. */
1538
+ readonly place: BookmarkPlace;
1539
+ /**
1540
+ * Position in document order: the main text first, then headers, footers and notes. Sort by
1541
+ * this value to list bookmarks by location.
1542
+ */
1543
+ readonly order: number;
1544
+ /** Whether the bookmark marks a point rather than a range of text. */
1545
+ readonly empty: boolean;
1546
+ /** Whether the start of the selection is inside the bookmark, edges included. */
1547
+ readonly atSelection: boolean;
1548
+ /**
1549
+ * How many other places carry the same name. Usually 0. Collaborators who add one name while
1550
+ * offline can leave copies; the list, Go To and links use this bookmark, the first in
1551
+ * document order. Adding the name again at this bookmark keeps it and removes the copies.
1552
+ */
1553
+ readonly duplicates: number;
1554
+ }
1555
+ /**
1556
+ * The bookmark commands an editor accepts.
1557
+ *
1558
+ * @public
1559
+ */
1560
+ interface EditorBookmarkCommands {
1561
+ /**
1562
+ * Bookmark the selection under `name`, or the caret position when the selection is
1563
+ * collapsed. A bookmark that already has the name, compared without case, moves here, also
1564
+ * from another story, in one undo step. Two collaborators who add one name offline both keep
1565
+ * their bookmark; every replica reads the first in document order until the next write of the
1566
+ * name, which replaces or removes both.
1567
+ * Refused with `invalidArgs` for a name that does not start with a letter, holds a
1568
+ * character other than a letter, a digit or an underscore, or has more than 40 characters.
1569
+ */
1570
+ insertBookmark: {
1571
+ name: string;
1572
+ };
1573
+ /**
1574
+ * Remove the bookmark with this name, compared without case, and any copies of it in other
1575
+ * places. The text stays.
1576
+ */
1577
+ deleteBookmark: {
1578
+ name: string;
1579
+ };
1580
+ /**
1581
+ * Keep the bookmark this name means, the first in document order, and remove its copies, in
1582
+ * one undo step. The selection does not move. Collaborators who add one name while offline
1583
+ * can leave copies; `BookmarkSummary.duplicates` counts them. Refused with `notFound` when no
1584
+ * bookmark has the name, and with `unsupported` when it has no copies.
1585
+ */
1586
+ keepFirstBookmark: {
1587
+ name: string;
1588
+ };
1589
+ /** Select the bookmark's text, or put the caret at a point bookmark, and scroll to it. */
1590
+ goToBookmark: {
1591
+ name: string;
1592
+ };
1593
+ /** Show or hide bracket marks at bookmarks. A view command: the document does not change. */
1594
+ toggleBookmarks: Record<never, never>;
1595
+ /**
1596
+ * Open the host's Go To UI, the Go to tab of `DocxEditor.Navigation`, the request its
1597
+ * shortcut (Ctrl+G, Cmd+Option+G on macOS) sends. Allowed in a read-only document. Refused
1598
+ * with `unsupported` while no host shows one. To jump without UI, run `goToBookmark`.
1599
+ *
1600
+ * `fromShortcut: true` asks as the shortcut does: also refused with `unsupported` when the
1601
+ * Go To UI turned its shortcut off (`GoToChromeHandlers.shortcut`). Chrome that forwards the
1602
+ * chord sends it, and a menu asks `can` with it before it shows the shortcut.
1603
+ */
1604
+ openGoTo: {
1605
+ readonly fromShortcut?: boolean;
1606
+ };
1607
+ /**
1608
+ * Open the Bookmark dialog the host registered, the same request the Insert menu and
1609
+ * Ctrl/Cmd+Shift+F5 send. Allowed in a read-only document, where Go To still works.
1610
+ * Refused with `unsupported` while no host shows a bookmark dialog, for example when the
1611
+ * `bookmark` popup is `false`.
1612
+ */
1613
+ openBookmarkDialog: Record<never, never>;
1614
+ }
1615
+
1379
1616
  /** Where the caret sits inside a table: its shape and current cell. */
1380
1617
  interface TableContext {
1381
1618
  readonly rows: number;
@@ -1476,57 +1713,6 @@ interface DocumentHandle {
1476
1713
  * where a new array per render rebuilds the editor per render.
1477
1714
  */
1478
1715
  type DocumentSource = ArrayBuffer | Uint8Array | DocumentHandle | 'blank';
1479
- /** A concrete font face requested by authored document content. */
1480
- interface FontFaceRequest {
1481
- readonly family: string;
1482
- readonly weight: number;
1483
- readonly style: 'normal' | 'italic';
1484
- }
1485
- /** Immutable, byte-backed font face supplied to layout and browser paint. */
1486
- interface FontSource {
1487
- readonly request: FontFaceRequest;
1488
- readonly id: string;
1489
- readonly bytes: Uint8Array;
1490
- readonly hash: string;
1491
- readonly faceIndex: number;
1492
- readonly availability?: 'available' | 'forbidden';
1493
- }
1494
- /** An explicit authored-font substitution. No implicit platform fallback is performed. */
1495
- interface FontSourceSubstitution {
1496
- readonly from: FontFaceRequest;
1497
- readonly to: FontFaceRequest;
1498
- /** Word line-box metrics for the requested face, expressed as em ratios. */
1499
- readonly lineMetrics?: {
1500
- readonly heightEm: number;
1501
- readonly baselineEm: number;
1502
- };
1503
- }
1504
- /**
1505
- * Public font source configuration sampled when an adapter mounts. It must be immutable for that
1506
- * editor lifetime; remount the adapter to replace bytes or substitutions atomically.
1507
- */
1508
- interface FontConfiguration {
1509
- /** Selectable provider families, independent of loaded bytes. Listing them performs no fetch. */
1510
- readonly supportedFamilies?: readonly string[];
1511
- readonly epoch: number;
1512
- readonly maxFontBytes: number;
1513
- readonly sources: readonly FontSource[];
1514
- readonly substitutions?: readonly FontSourceSubstitution[];
1515
- readonly defaultFont: {
1516
- readonly family: string;
1517
- readonly sizeHalfPoints: number;
1518
- };
1519
- readonly language?: string;
1520
- }
1521
- /**
1522
- * Why a font was not admitted.
1523
- *
1524
- * Distinguished rather than collapsed because the responses differ: `overLimit` and `malformed`
1525
- * are the caller's own bytes, while `forbidden` and `hashMismatch` mean the source was not what
1526
- * it claimed and the load should not be retried. `wasmUnavailable` alone is a HOST fault — the
1527
- * shaper's WASM never loaded, `diagnostic` carries the remedy — surface it as a setup error.
1528
- */
1529
- type EditorFontErrorCode = 'initializationFailed' | 'wasmUnavailable' | 'missing' | 'forbidden' | 'overLimit' | 'malformed' | 'hashMismatch' | 'metadataMismatch' | 'fontFaceLoadFailed' | 'unsupportedFaceIndex' | 'missingFont' | 'hashInvalid' | 'fontMismatch' | 'unsupportedFace' | 'loadFailed';
1530
1716
  /** Typed adapter error reported both through `onFontError` and accessible alert UI. */
1531
1717
  declare class EditorFontError extends Error {
1532
1718
  readonly name: string;
@@ -1608,6 +1794,11 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1608
1794
  * Serialize the current document, finalizing pending text form values first.
1609
1795
  * Invalid input rejects with `EditorError.code === 'invalidArgs'` and remains editable.
1610
1796
  * Validation does not open a dialog. Other write refusals also reject the save.
1797
+ *
1798
+ * The bytes describe the document as it was when you called `save()`. The file is written
1799
+ * in short tasks, so input stays responsive while a long document saves, and edits made
1800
+ * meanwhile belong to the next save. Paragraphs and table rows unchanged since an earlier
1801
+ * save are not written again, so autosave after a small edit stays cheap.
1611
1802
  */
1612
1803
  save(): Promise<ArrayBuffer>;
1613
1804
  getDocumentHandle(): DocumentHandle;
@@ -1715,6 +1906,13 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1715
1906
  * The search narrows to the body and its selectable text boxes when other stories cannot open.
1716
1907
  * This includes viewing mode and surfaces without header, footer, or note entry methods.
1717
1908
  * Text boxes in footnotes and endnotes remain excluded until their drawings are selectable.
1909
+ *
1910
+ * Pass a match to `exec({ type: 'replaceMatch', match, text })` to replace it, which records a
1911
+ * tracked replacement in suggesting mode, or to {@link selectMatch} and then
1912
+ * {@link addComment} to comment on it. For headless or server use, see `body.search` in
1913
+ * `@docx-editor.dev/editor-api`.
1914
+ *
1915
+ * @see {@link https://www.docx-editor.dev/docs/2.x/recipes/tracked-replacement | Replace as a tracked change}
1718
1916
  */
1719
1917
  findMatches(query: string, options?: {
1720
1918
  readonly matchCase?: boolean;
@@ -1761,11 +1959,11 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1761
1959
  setTableInteractionLabel(resolver: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string): void;
1762
1960
  /** Section page setup — size, orientation and margins — for the page-setup dialog. */
1763
1961
  getPageSetup(): PageSetup | null;
1764
- /** The document watermark, for the watermark dialog. */
1765
- getWatermark(): {
1766
- readonly kind: 'text' | 'image';
1767
- readonly text?: string;
1768
- } | null;
1962
+ /**
1963
+ * The watermark the document shows, read from the first section's headers; null when it
1964
+ * shows none. For a picture watermark's bytes, use `query({ type: 'watermark' })`.
1965
+ */
1966
+ getWatermark(): WatermarkState | null;
1769
1967
  /** Header/footer editing state: which region is being edited, if any. */
1770
1968
  getHeaderFooterState(): HeaderFooterState | null;
1771
1969
  /** Resolved and authored note properties for the caret section — properties dialog read-model. */
@@ -1858,8 +2056,32 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1858
2056
  * Anchored to the RETAINED range when there is one, so a compose box that took focus does
1859
2057
  * not lose the words it is about — that is what retention exists for. Refused on a
1860
2058
  * collapsed caret: a comment with no range has nothing to point at, and Word writes none.
2059
+ *
2060
+ * A refused write names its cause, as every review write does: `code: 'locked'` with
2061
+ * `'the document is open for viewing'` in viewing or under read-only protection, and
2062
+ * `code: 'unsupported'` with the external refresh sentence or a collaboration reason token
2063
+ * such as `'collaboration-session-not-ready'` (wait for the session, then retry). Branch on
2064
+ * `diagnosticCodeOfRefusal(result.reason, result.code)`, not on the text.
2065
+ *
2066
+ * Pass `options.historyGroup` to make the comment part of a larger undo step, such as a
2067
+ * review decision that also resolves changes. See {@link HistoryGroupOptions}.
2068
+ *
2069
+ * @example
2070
+ * ```ts
2071
+ * editor.addComment('Counter-proposal: 45 days.', { historyGroup: decision });
2072
+ * editor.addComment('Approved.', 'Legal team', { historyGroup: decision });
2073
+ * ```
2074
+ *
2075
+ * To comment on found text, select it first with {@link findMatches} and
2076
+ * {@link selectMatch}. In a React or Vue host with the review module, `useReview().comment`
2077
+ * calls this. For headless or server use, see `Range.insertComment` in
2078
+ * `@docx-editor.dev/editor-api`.
2079
+ *
2080
+ * @see {@link https://www.docx-editor.dev/docs/2.x/recipes/comment-on-found-text | Comment on found text}
1861
2081
  */
1862
- addComment(text: string, author?: string): ExecResult;
2082
+ addComment(text: string, options?: HistoryGroupOptions): ExecResult;
2083
+ /** {@link addComment} with an author for this call, overriding the configured author. */
2084
+ addComment(text: string, author?: string, options?: HistoryGroupOptions): ExecResult;
1863
2085
  /**
1864
2086
  * Where a comment on the current selection would sit, in the same space as
1865
2087
  * {@link ReviewItemPlacement.anchorY}, or null when nothing is selected.
@@ -1883,6 +2105,11 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1883
2105
  * With `options.announce: true`, a call that lands fires `reviewItemReveal` with
1884
2106
  * `source: 'host'`, also when the item was already active, so the packaged review UI opens
1885
2107
  * the item's balloon or card. By default it fires nothing. A `null` key fires nothing.
2108
+ *
2109
+ * Pass `{ reveal: false }` to open the item without scrolling, for a host whose own list
2110
+ * drives the scroll. `useReview().setActive` calls this.
2111
+ *
2112
+ * @see {@link https://www.docx-editor.dev/docs/2.x/recipes/accept-reject-without-scrolling | Accept or reject without scrolling}
1886
2113
  */
1887
2114
  setActiveReviewItem(key: string | null, options?: ReviewActivationOptions): ExecResult;
1888
2115
  /**
@@ -1895,16 +2122,15 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1895
2122
  * caret that merely lands in a change leaves this `null`. Open a balloon or card for the
1896
2123
  * activated item, and highlight the caret-active one.
1897
2124
  *
1898
- * Pass the query you read items with, so the key matches theirs: with
1899
- * `pairReplacements: true`, a paired replacement reports the pair's key; without it, the
1900
- * key of the half the caret is in. The value changes with the selection, so read it again
1901
- * on `selectionChange`.
2125
+ * Pass the query you read items with, so the key matches theirs. By default a paired
2126
+ * replacement reports the pair's key; with `pairReplacements: false`, the key of the half
2127
+ * the caret is in. The value changes with the selection, so read it again on
2128
+ * `selectionChange`.
1902
2129
  *
1903
2130
  * @example
1904
2131
  * ```ts
1905
- * const query = { pairReplacements: true };
1906
2132
  * editor.on('selectionChange', () => {
1907
- * const activated = editor.getActivatedReviewItemKey(query);
2133
+ * const activated = editor.getActivatedReviewItemKey();
1908
2134
  * if (activated !== null) showMyCard(activated);
1909
2135
  * });
1910
2136
  * ```
@@ -1931,17 +2157,32 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1931
2157
  *
1932
2158
  * Refused for a card whose kind the engine cannot resolve structurally, which is why
1933
2159
  * `readOnly` is on the item — a surface should not offer the button in the first place.
2160
+ * Other refusals name their cause, as {@link addComment} describes. A change that resolves
2161
+ * only together with another change refuses with a reason led by `incomplete-group:`, and a
2162
+ * row that stays to keep a nested table with one led by `retained-structure:`. A change a
2163
+ * content control lock keeps refuses with `code: 'locked'` and a reason led by
2164
+ * `locked-content:`; one in a data-bound control with `code: 'bound'` and `bound-content:`.
2165
+ * `reviewCodeOfRefusal(result.reason)` names the review code of each. In a React or
2166
+ * Vue host, `useReviewRefusalMessage()` turns `useReview().lastRefusal` into a sentence.
2167
+ *
2168
+ * Neither call scrolls. In a React or Vue host with the review module, `useReview().accept`
2169
+ * and `useReview().reject` call these. For headless or server use, see `Revision.accept()`
2170
+ * and `Revision.reject()` in `@docx-editor.dev/editor-api`.
2171
+ *
2172
+ * @see {@link https://www.docx-editor.dev/docs/2.x/recipes/accept-reject-without-scrolling | Accept or reject without scrolling}
1934
2173
  */
1935
- acceptReviewItem(key: string): ExecResult;
1936
- rejectReviewItem(key: string): ExecResult;
2174
+ acceptReviewItem(key: string, options?: HistoryGroupOptions): ExecResult;
2175
+ /** The rejecting half of {@link acceptReviewItem}, with the same rules and options. */
2176
+ rejectReviewItem(key: string, options?: HistoryGroupOptions): ExecResult;
1937
2177
  /**
1938
2178
  * Resolve or reopen the comment thread behind a review card.
1939
2179
  *
1940
2180
  * The thread state is written through the same package transaction as every other comment
1941
2181
  * mutation, so `commentsExtended.xml`, Undo and save/reopen cannot disagree. Repeating the
1942
- * state already on the item succeeds without adding an undo entry.
2182
+ * state already on the item succeeds without adding an undo entry. A refusal names its cause,
2183
+ * as {@link addComment} describes.
1943
2184
  */
1944
- setCommentResolved(key: string, resolved: boolean): ExecResult;
2185
+ setCommentResolved(key: string, resolved: boolean, options?: HistoryGroupOptions): ExecResult;
1945
2186
  /**
1946
2187
  * Discard the item behind a card: the destructive half of the review verbs.
1947
2188
  *
@@ -1955,9 +2196,10 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1955
2196
  * a surface can put one "remove this" affordance on every card instead of branching.
1956
2197
  *
1957
2198
  * Refused on a custom node's card, which is informational, and on a revision kind the engine
1958
- * cannot resolve — the same rule {@link rejectReviewItem} follows.
2199
+ * cannot resolve — the same rule {@link rejectReviewItem} follows. Other refusals name their
2200
+ * cause, as {@link addComment} describes, and leave the open card and its draft open.
1959
2201
  */
1960
- deleteReviewItem(key: string): ExecResult;
2202
+ deleteReviewItem(key: string, options?: HistoryGroupOptions): ExecResult;
1961
2203
  /**
1962
2204
  * Reply to a review item.
1963
2205
  *
@@ -1968,9 +2210,25 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1968
2210
  * The author is AMBIENT — `DocxEditorConfig.author`, the way the rest of the authored commands
1969
2211
  * source it — and the argument overrides it for one call. `CT_Comment` makes `@w:author`
1970
2212
  * required, so a reply with neither is refused rather than written as an empty attribute.
2213
+ * Other refusals name their cause, as {@link addComment} describes.
2214
+ *
2215
+ * In a React or Vue host with the review module, `useReview().reply` calls this. For
2216
+ * headless or server use, see `Comment.reply` in `@docx-editor.dev/editor-api`.
2217
+ */
2218
+ replyToReviewItem(key: string, text: string, options?: HistoryGroupOptions): ExecResult;
2219
+ /** {@link replyToReviewItem} with an author for this call, overriding the configured author. */
2220
+ replyToReviewItem(key: string, text: string, author?: string, options?: HistoryGroupOptions): ExecResult;
2221
+ /**
2222
+ * Move editing into `scope`: the body, a header or footer, a note, or a text box (`frame`).
2223
+ *
2224
+ * A frame whose `owner` is a header or footer opens that story first and edits the box
2225
+ * inside it. The box is edited on the page of the open story when that story is already
2226
+ * open, otherwise on the page in view, otherwise on the first page that shows it. A frame
2227
+ * owned by a note, a box with rotated or vertical text, and a box holding a table are refused:
2228
+ * the scope stays where it was. Read {@link getActiveScope} to confirm the entry.
1971
2229
  */
1972
- replyToReviewItem(key: string, text: string, author?: string): ExecResult;
1973
2230
  setActiveScope(scope: ViewScope): void;
2231
+ /** The scope editing is in, as {@link setActiveScope} last set it or a press moved it. */
1974
2232
  getActiveScope(): ViewScope;
1975
2233
  query<K extends keyof EditorQueries>(query: {
1976
2234
  type: K;
@@ -1996,7 +2254,8 @@ interface Editor extends EditorAnchorNavigation, EditorHighlights, EditorReviewH
1996
2254
  */
1997
2255
  /**
1998
2256
  * Scroll a page or a block into view. Returns false when the target does not exist or
1999
- * the host has no scroll container — a caller can tell "not found" from "scrolled".
2257
+ * the host has no scroll container. During a large open, a target not laid out yet answers
2258
+ * true and scrolls once it is; input cancels that, and a page past the end never scrolls.
2000
2259
  */
2001
2260
  scrollToPage(pageNumber: number): boolean;
2002
2261
  /**
@@ -2093,7 +2352,7 @@ type TrackedChangeFilterMode = 'accept' | 'reject';
2093
2352
  * selection, view state, chrome modes, header/footer and note editing. An interface rather than a
2094
2353
  * closed union so an extension can widen it by declaration merging.
2095
2354
  */
2096
- interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFooterCommands, EditorNoteCommands, EditorFormatPainterCommands {
2355
+ interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFooterCommands, EditorNoteCommands, EditorFormatPainterCommands, EditorBookmarkCommands {
2097
2356
  /** Switch how edits are written. A view command: it changes no document state. */
2098
2357
  setEditingMode: {
2099
2358
  mode: DocumentEditingMode;
@@ -2112,7 +2371,17 @@ interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFoote
2112
2371
  toggleParagraphMarks: Record<never, never>;
2113
2372
  /** Word's Protect Document: enforce filling-in-forms protection, or lift the enforced one. */
2114
2373
  toggleDocumentProtection: Record<never, never>;
2115
- /** Navigate tracked changes, including hidden formatting balloons, and wrap at the end. */
2374
+ /**
2375
+ * Navigate tracked changes, including hidden formatting balloons, and wrap at the end.
2376
+ *
2377
+ * A replacement is one stop in every review layout. A replacement is a deletion and the
2378
+ * touching insertion from the same author that took its place. Navigation lands on the
2379
+ * deletion, highlights both halves, and `reviewItemReveal` carries the pair's `pairKey`.
2380
+ *
2381
+ * Navigation steps through the changes {@link Editor.getReviewItems} returns, so a
2382
+ * reviewer or `setTrackedChangesFilter` filter applies. When a filter hides one half of a
2383
+ * replacement, the other half is a stop of its own.
2384
+ */
2116
2385
  navigateReviewChange: {
2117
2386
  direction: 'next' | 'previous';
2118
2387
  };
@@ -2320,11 +2589,21 @@ interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFoote
2320
2589
  positionTwips: number;
2321
2590
  };
2322
2591
  /**
2323
- * Replace one found match with `text`. Addressed by {@link TextMatch} rather than a
2324
- * `DocTarget` because that is what `findMatches` hands back, and re-deriving a target
2325
- * from it in the caller is where an off-by-one would come from. An empty `text`
2326
- * deletes the match, which is what a find/replace dialog means by replacing with
2327
- * nothing.
2592
+ * Replace one found match with `text`, addressed by the {@link TextMatch} `findMatches`
2593
+ * returns. An empty `text` deletes it. The selection and scroll position stay put. In
2594
+ * suggesting mode it is a tracked replacement under the editor's author, refused where
2595
+ * `proposeReplacement` would be. The match must be in the open story, not a text box.
2596
+ *
2597
+ * For headless or server use, see `range.insertText(text, 'Replace')` with
2598
+ * `document.changeTrackingMode` set to `'TrackMineOnly'` in `@docx-editor.dev/editor-api`.
2599
+ *
2600
+ * @example
2601
+ * ```ts
2602
+ * const [match] = editor.findMatches('30 days', { matchCase: true });
2603
+ * if (match) editor.exec({ type: 'replaceMatch', match, text: '45 days' });
2604
+ * ```
2605
+ *
2606
+ * @see {@link https://www.docx-editor.dev/docs/2.x/recipes/tracked-replacement | Replace as a tracked change}
2328
2607
  */
2329
2608
  replaceMatch: {
2330
2609
  match: TextMatch;
@@ -2431,6 +2710,11 @@ interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFoote
2431
2710
  drawingNodeId?: string;
2432
2711
  expectedPackageRevision?: number;
2433
2712
  };
2713
+ /**
2714
+ * Replace the document watermark in every header the document shows; null removes it. One
2715
+ * undo step. Refuses with `invalidArgs` for an invalid option and `locked` in a protected
2716
+ * document; a refusal writes nothing. See {@link Watermark} for the options and defaults.
2717
+ */
2434
2718
  setWatermark: {
2435
2719
  watermark: Watermark | null;
2436
2720
  };
@@ -2540,6 +2824,8 @@ interface EditorQueries extends DocQueries {
2540
2824
  pos: number;
2541
2825
  };
2542
2826
  trackedChanges: Record<never, never>;
2827
+ /** Every bookmark in the document, hidden ones included, in document order. */
2828
+ bookmarks: Record<never, never>;
2543
2829
  }
2544
2830
  /**
2545
2831
  * One query, as a discriminated union derived from {@link EditorQueries}.
@@ -2566,51 +2852,7 @@ interface EditorQueryResults extends DocQueryResults {
2566
2852
  contentControlAt: ContentControlSummary | null;
2567
2853
  isInsideToc: boolean;
2568
2854
  trackedChanges: readonly Revision[];
2569
- }
2570
- /**
2571
- * One occurrence of a search query in the document.
2572
- *
2573
- * Carries TWO addresses on purpose. `blockId` + `start` is the engine's own: stable
2574
- * across edits and independent of ordering. `paragraphIndex` + `runIndex` + `runOffset`
2575
- * is the positional one a find/replace UI needs to show and navigate results, and it is
2576
- * derived from the same walk rather than left to the caller to reconstruct — a caller
2577
- * guessing at run boundaries would send the selection to the wrong place.
2578
- *
2579
- * A match can span runs when formatting changes mid-word; the run address is where it
2580
- * STARTS. `scope` identifies a non-body story so navigation opens the correct surface.
2581
- * A frame scope selects its anchoring drawing and never places a caret inside its story.
2582
- * A match inside a field result reports the field atom's model range. Its `length` is one,
2583
- * while `text` carries the visible match and can be longer. Select with `start` and `length`.
2584
- * Never derive the selected length from `text.length`.
2585
- */
2586
- interface TextMatch {
2587
- readonly blockId: string;
2588
- /** Character offset within the paragraph's concatenated run text. */
2589
- readonly start: number;
2590
- readonly length: number;
2591
- /**
2592
- * Paragraph ordinal within this match's story. Table and nested-table paragraphs count.
2593
- * Non-paragraph blocks add no ordinal.
2594
- */
2595
- readonly paragraphIndex: number;
2596
- /** Index of the run the match starts in, and the offset within that run. */
2597
- readonly runIndex: number;
2598
- readonly runOffset: number;
2599
- /** Story containing the match. Absence means the body. */
2600
- readonly scope?: ViewScope;
2601
- /** The matched text as it appears in the document. */
2602
- readonly text: string;
2603
- /**
2604
- * Paragraph text immediately before and after the match, bounded at the derivation
2605
- * boundary. A results list shows the match in its sentence — "…as described in this
2606
- * **Exhi**bit A" — and nothing else in the contract can reach paragraph text, so a
2607
- * caller would otherwise have to re-read the document to render one row.
2608
- *
2609
- * Optional and additive: an implementation that has not derived them omits them, and a
2610
- * consumer treats absent as empty.
2611
- */
2612
- readonly contextBefore?: string;
2613
- readonly contextAfter?: string;
2855
+ bookmarks: readonly BookmarkSummary[];
2614
2856
  }
2615
2857
  /**
2616
2858
  * The hyperlink under a position: where it points, how far it reaches, and what Word shows on
@@ -2660,16 +2902,23 @@ interface EditorSnapshot {
2660
2902
  * point on — it never depends on one existing. */
2661
2903
  readonly isLoading: boolean;
2662
2904
  /**
2663
- * Whether a supplied document is still on its way to painted pages. Opening a large
2664
- * document mounts behind one painted frame so a loading screen can show instead of a
2665
- * frozen page; this is true for exactly that window, and across it the previous
2666
- * document (if any) stays on screen. Show a loading overlay while it holds — but gate
2667
- * only chrome on it, never the mount point, which must stay mounted for the open to
2668
- * complete ({@link EditorSnapshot.isLoading} is the gate-safe flag). Optional and
2905
+ * Whether a supplied document is still on its way to painted pages. A large document
2906
+ * mounts behind one painted frame so a loading screen can show instead of a frozen page,
2907
+ * with the previous document (if any) still on screen. Show an overlay while it holds,
2908
+ * but gate only chrome on it, never the mount point, which must stay mounted for the open
2909
+ * to complete ({@link EditorSnapshot.isLoading} is the gate-safe flag). It turns false
2910
+ * when the first pages paint; they take input while the rest lay out. Optional and
2669
2911
  * additive: absent means the implementation has not derived it, read as `false`.
2670
2912
  */
2671
2913
  readonly isOpening?: boolean;
2672
2914
  readonly parseError: string | null;
2915
+ /**
2916
+ * Why the last supplied document did not open, or `null` while it opens or after it opened.
2917
+ * Unlike {@link EditorSnapshot.parseError}, it holds a stable code and never quotes the
2918
+ * file, so a host can show it to a person. `DocxEditor.OpenFailure` renders it. Optional
2919
+ * and additive: absent means the implementation has not derived it, read as `null`.
2920
+ */
2921
+ readonly openFailure?: DocumentOpenFailure | null;
2673
2922
  /** Whether the loaded document is being edited: a patchable document opened in edit mode. A
2674
2923
  * read-only document (tables/SDTs/unpreservable) or `mode: 'view'` reports false. */
2675
2924
  readonly editable: boolean;
@@ -2745,6 +2994,8 @@ interface EditorSnapshot {
2745
2994
  readonly reviewPane: ResolvedReviewPane;
2746
2995
  /** Whether Show/Hide paragraph marks is enabled. */
2747
2996
  readonly showParagraphMarks?: boolean;
2997
+ /** Whether bracket marks are shown at bookmarks. */
2998
+ readonly showBookmarks?: boolean;
2748
2999
  /** The document's `w:documentProtection`, as the file states it; null with no document. */
2749
3000
  readonly documentProtection?: DocumentProtectionState | null;
2750
3001
  /** The displayed revision projection. The document and its revision history stay unchanged. */
@@ -2815,11 +3066,13 @@ interface EditorSnapshot {
2815
3066
  * An error the engine raised, carrying a machine-readable `code` alongside the message.
2816
3067
  *
2817
3068
  * `code` is optional because an `Error` from deeper down (a parser, a codec) is surfaced as-is
2818
- * rather than wrapped in a fabricated code.
3069
+ * rather than wrapped in a fabricated code. The editor's own codes: `invalidTarget` (`attach`
3070
+ * cannot mount there), `unsupported` (a source it refuses to open), and `hostCallback` (a host
3071
+ * callback such as a bookmark mark's `decorate` threw; the editor kept its default behavior).
2819
3072
  */
2820
3073
  interface EditorError extends Error {
2821
3074
  readonly code?: string;
2822
3075
  }
2823
3076
 
2824
- export { DIAGNOSTIC_SCHEMA_VERSION as D, validateImageCropPercent as a$, DEFAULT_REVIEW_PANE as aN, cropPercentFromCropPermille as aT, cropPercentFromPermille as aU, cropPercentFromSourceCrop as aV, cropPermilleFromCropPercent as aW, cropPermilleFromPercent as aX, resolveReviewPane as aY, reviewPaneListsItem as aZ, sourceCropFromCropPercent as a_, EditorFontError as y };
2825
- export type { HighlightHit as $, AnchorHighlightAnimation as A, EditorFormatPainterCommands as B, CanResult as C, EditorDiagnostic as E, EditorHeaderFooterCommands as F, EditorHighlights as G, EditorNoteCommands as H, EditorPosition as I, EditorQueries as J, EditorQuery as K, EditorQueryResults as L, EditorReviewHits as M, EditorSelection as N, EditorSnapshot as O, FontConfiguration as P, FontFaceRequest as Q, ReviewPaneOptions as R, FontFailedDiagnostic as S, FontSource as T, FontSourceSubstitution as U, FormatPainterLevel as V, FormatPainterMode as W, FormatPainterSurfaceState as X, FurnitureVariant as Y, HeaderFooterSlotArgs as Z, HeaderFooterState as _, EditorDiagnosticKind as a, HighlightOptions as a0, HighlightRange as a1, HighlightRect as a2, HighlightResult as a3, HistoryDiagnosticEvent as a4, HyperlinkInfo as a5, ImageContext as a6, ImageCropPercent as a7, NoteKind as a8, NotePropertiesSide as a9, TableColumnDividerResizeTarget as aA, TableColumnOccurrenceTarget as aB, TableContext as aC, TableRightEdgeResizeTarget as aD, TableRowOccurrenceTarget as aE, TextMatch as aF, TimingSummary as aG, TrackedChangeFilterMode as aH, TrackedChangePredicate as aI, ZoomFitTarget as aJ, ZoomMode as aK, ReviewPaneOverflow as aL, CommentMarkerStyle as aM, ImageCropPermille as aO, ResolvedReviewPane as aP, ReviewPaneItemFields as aQ, ReviewPaneOpening as aR, RevisionDisplay as aS, NotePropertiesState as aa, PageSetup as ab, PerformanceDiagnostic as ac, ResolveReviewChangesOptions as ad, ResolvedNoteNumbering as ae, ReviewActivationOptions as af, ReviewChangesAttribution as ag, ReviewCommentPlacement as ah, ReviewCustomPlacement as ai, ReviewItemHit as aj, ReviewItemPlacement as ak, ReviewItemPlacementBase as al, ReviewItemQuery as am, ReviewItemRevealEvent as an, ReviewItemRevealSource as ao, ReviewRevisionPlacement as ap, ReviewSkippedDiagnostic as aq, ScrollPlacement as ar, ScrollToAnchorOptions as as, SelectedImageState as at, SetReviewChangesAuthorOptions as au, TableBorderEdgeTarget as av, TableBorderSpec as aw, TableBorderStyle as ax, TableBorderTarget as ay, TableCellVerticalAlignment as az, EditorCommand as b, AnchorHighlightOptions as c, AuthoredNoteNumbering as d, ClearAnchorHighlightOptions as e, CollaborationParticipantsDiagnostic as f, CollaborationStatusDiagnostic as g, CustomNodeDiagnosticEvent as h, DiagnosticBase as i, DiagnosticFailureDetail as j, DocumentChange as k, DocumentEditingMode as l, DocumentHandle as m, DocumentOpenDiagnostic as n, DocumentShape as o, DocumentSource as p, EditRejectedDiagnostic as q, EditRejectionOrigin as r, Editor as s, EditorAnchorNavigation as t, EditorCommandShape as u, EditorCommands as v, EditorError as w, EditorEvents as x, EditorFontErrorCode as z };
3077
+ export { DIAGNOSTIC_SCHEMA_VERSION as D, EditorFontError as J, cropPercentFromCropPermille as aS, cropPercentFromPermille as aT, cropPercentFromSourceCrop as aU, cropPermilleFromCropPercent as aV, cropPermilleFromPercent as aW, sourceCropFromCropPercent as aX, validateImageCropPercent as aY };
3078
+ export type { FurnitureVariant as $, AnchorHighlightAnimation as A, BookmarkPlace as B, CanResult as C, EditorDiagnostic as E, EditorCommandShape as F, EditorCommands as G, EditorError as H, EditorEvents as I, EditorFormatPainterCommands as K, EditorHeaderFooterCommands as L, EditorHighlights as M, EditorHostChange as N, EditorHostDocument as O, EditorNoteCommands as P, EditorPosition as Q, EditorQueries as R, EditorQuery as S, EditorQueryResults as T, EditorReviewHits as U, EditorSelection as V, EditorSnapshot as W, FontFailedDiagnostic as X, FormatPainterLevel as Y, FormatPainterMode as Z, FormatPainterSurfaceState as _, EditorDiagnosticKind as a, HeaderFooterSlotArgs as a0, HeaderFooterState as a1, HighlightHit as a2, HighlightOptions as a3, HighlightRange as a4, HighlightRect as a5, HighlightResult as a6, HistoryDiagnosticEvent as a7, HyperlinkInfo as a8, ImageContext as a9, SetReviewChangesAuthorOptions as aA, TableBorderEdgeTarget as aB, TableBorderSpec as aC, TableBorderStyle as aD, TableBorderTarget as aE, TableCellVerticalAlignment as aF, TableColumnDividerResizeTarget as aG, TableColumnOccurrenceTarget as aH, TableContext as aI, TableRightEdgeResizeTarget as aJ, TableRowOccurrenceTarget as aK, TextMatch as aL, TimingSummary as aM, TrackedChangeFilterMode as aN, TrackedChangePredicate as aO, ZoomFitTarget as aP, ZoomMode as aQ, ImageCropPermille as aR, ImageCropPercent as aa, NoteKind as ab, NotePropertiesSide as ac, NotePropertiesState as ad, PageSetup as ae, PerformanceDiagnostic as af, ResolveReviewChangesOptions as ag, ResolvedNoteNumbering as ah, ReviewActivationOptions as ai, ReviewChangesAttribution as aj, ReviewChangesResolvedEvent as ak, ReviewCommentPlacement as al, ReviewCustomPlacement as am, ReviewItemHit as an, ReviewItemPlacement as ao, ReviewItemPlacementBase as ap, ReviewItemQuery as aq, ReviewItemRevealEvent as ar, ReviewItemRevealSource as as, ReviewRevisionPlacement as at, ReviewSkippedDiagnostic as au, ScrollPlacement as av, ScrollToAnchorOptions as aw, SelectedImageState as ax, SessionActivity as ay, SessionDiagnostic as az, EditorCommand as b, AnchorHighlightOptions as c, AuthoredNoteNumbering as d, BookmarkStory as e, BookmarkSummary as f, ClearAnchorHighlightOptions as g, CollaborationParticipantsDiagnostic as h, CollaborationStatusDiagnostic as i, CustomNodeDiagnosticEvent as j, DiagnosticBase as k, DiagnosticFailureDetail as l, DocumentChange as m, DocumentEditingMode as n, DocumentHandle as o, DocumentOpenDiagnostic as p, DocumentOpenFailure as q, DocumentOpenFailureReason as r, DocumentSaveDiagnostic as s, DocumentShape as t, DocumentSource as u, EditRejectedDiagnostic as v, EditRejectionOrigin as w, Editor as x, EditorAnchorNavigation as y, EditorBookmarkCommands as z };