@arbidocs/blocks 0.5.134 → 0.5.136

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 (231) hide show
  1. package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs → ConnectedNativeDocxComparison-W4KIGO54.cjs} +8 -8
  2. package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs.map → ConnectedNativeDocxComparison-W4KIGO54.cjs.map} +1 -1
  3. package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs → ConnectedStreamedWordArtifact-764NSXPQ.cjs} +8 -8
  4. package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs.map → ConnectedStreamedWordArtifact-764NSXPQ.cjs.map} +1 -1
  5. package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-UV3DLFCB.cjs} +3 -3
  6. package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-UV3DLFCB.cjs.map} +1 -1
  7. package/dist/{FilesViewerDialog-PA2B7O7I.cjs → FilesViewerDialog-IFF2JR2A.cjs} +6 -6
  8. package/dist/{FilesViewerDialog-PA2B7O7I.cjs.map → FilesViewerDialog-IFF2JR2A.cjs.map} +1 -1
  9. package/dist/{NativeDocxEditor-XZAEU5QU.cjs → NativeDocxEditor-KM6U4ZLA.cjs} +6 -6
  10. package/dist/{NativeDocxEditor-XZAEU5QU.cjs.map → NativeDocxEditor-KM6U4ZLA.cjs.map} +1 -1
  11. package/dist/{chunk-T2DUNNYY.cjs → chunk-C6DF6WB2.cjs} +745 -21
  12. package/dist/chunk-C6DF6WB2.cjs.map +1 -0
  13. package/dist/{chunk-64247UHS.cjs → chunk-DBGBAD4J.cjs} +4 -4
  14. package/dist/{chunk-64247UHS.cjs.map → chunk-DBGBAD4J.cjs.map} +1 -1
  15. package/dist/{chunk-UOZ237OW.cjs → chunk-FABKMTAI.cjs} +42 -5
  16. package/dist/chunk-FABKMTAI.cjs.map +1 -0
  17. package/dist/{chunk-L4Y6UMRC.cjs → chunk-FDRZJFNV.cjs} +5 -5
  18. package/dist/{chunk-L4Y6UMRC.cjs.map → chunk-FDRZJFNV.cjs.map} +1 -1
  19. package/dist/{chunk-O5WVYUFT.cjs → chunk-IEAZX7L6.cjs} +4 -4
  20. package/dist/{chunk-O5WVYUFT.cjs.map → chunk-IEAZX7L6.cjs.map} +1 -1
  21. package/dist/{chunk-2SWS7ESM.cjs → chunk-L62EU3TQ.cjs} +3 -3
  22. package/dist/{chunk-2SWS7ESM.cjs.map → chunk-L62EU3TQ.cjs.map} +1 -1
  23. package/dist/{chunk-IN3KXI3K.cjs → chunk-LG36LSVZ.cjs} +6 -6
  24. package/dist/{chunk-IN3KXI3K.cjs.map → chunk-LG36LSVZ.cjs.map} +1 -1
  25. package/dist/{chunk-RZSBHRQL.cjs → chunk-MMKMQZ2B.cjs} +5 -5
  26. package/dist/{chunk-RZSBHRQL.cjs.map → chunk-MMKMQZ2B.cjs.map} +1 -1
  27. package/dist/chunk-MMMGOZYH.cjs +18 -0
  28. package/dist/{chunk-KWD5Q4XH.cjs.map → chunk-MMMGOZYH.cjs.map} +1 -1
  29. package/dist/{chunk-V6SFJ44C.cjs → chunk-ZN2JXV65.cjs} +50 -13
  30. package/dist/chunk-ZN2JXV65.cjs.map +1 -0
  31. package/dist/connect/docx.cjs +12 -12
  32. package/dist/connect/index.cjs +86 -86
  33. package/dist/connect/viewer.cjs +4 -4
  34. package/dist/connection/docx/ConnectedNativeDocxEditor.js +39 -2
  35. package/dist/connection/docx/ConnectedNativeDocxEditor.js.map +2 -2
  36. package/dist/connection/viewer/ConnectedDocumentViewer.js +43 -6
  37. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  38. package/dist/docx/NativeDocxEditor.d.ts +12 -1
  39. package/dist/docx/NativeDocxEditor.js +513 -20
  40. package/dist/docx/NativeDocxEditor.js.map +3 -3
  41. package/dist/docx/index.cjs +38 -38
  42. package/dist/docx/recoveryStore.d.ts +8 -0
  43. package/dist/docx/recoveryStore.js +208 -0
  44. package/dist/docx/recoveryStore.js.map +7 -0
  45. package/dist/docx/temporaryRecovery.d.ts +8 -0
  46. package/dist/docx/temporaryRecovery.js +37 -0
  47. package/dist/docx/temporaryRecovery.js.map +7 -0
  48. package/dist/index.cjs +72 -72
  49. package/dist/styles.css +1 -1
  50. package/dist/vite/index.cjs +11 -1
  51. package/dist/vite/index.cjs.map +1 -1
  52. package/dist/vite/index.d.ts +13 -0
  53. package/dist/vite/index.js +11 -1
  54. package/dist/vite/index.js.map +1 -1
  55. package/dist/workflow-canvas/index.cjs +10 -10
  56. package/node_modules/@arbidocs/coedit/dist/commands.cjs +18 -1
  57. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
  58. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +2 -2
  59. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +2 -2
  60. package/node_modules/@arbidocs/coedit/dist/commands.js +18 -1
  61. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
  62. package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.cts → port-DXBNxZYw.d.cts} +2 -0
  63. package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.ts → port-DXBNxZYw.d.ts} +2 -0
  64. package/node_modules/@arbidocs/coedit/dist/server.cjs +16 -0
  65. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  66. package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
  67. package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
  68. package/node_modules/@arbidocs/coedit/dist/server.js +16 -0
  69. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  70. package/node_modules/@arbidocs/coedit/package.json +2 -2
  71. package/node_modules/@docx-editor.dev/core/README.md +25 -1
  72. package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +1 -0
  73. package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -1
  74. package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +21 -63
  75. package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -1
  76. package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -1
  77. package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +49 -40
  78. package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -1
  79. package/node_modules/@docx-editor.dev/core/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-CrPI9ZQc.d.ts} +714 -290
  80. package/node_modules/@docx-editor.dev/core/dist/chunk-23MKR33J.js +4 -0
  81. package/node_modules/@docx-editor.dev/core/dist/chunk-2CWQY27B.cjs +1 -0
  82. package/node_modules/@docx-editor.dev/core/dist/chunk-2DEY5NUC.cjs +32 -0
  83. package/node_modules/@docx-editor.dev/core/dist/chunk-2DR4TH6B.js +1 -0
  84. package/node_modules/@docx-editor.dev/core/dist/chunk-2F2UEAE2.js +2 -0
  85. package/node_modules/@docx-editor.dev/core/dist/chunk-2GPGAFOJ.cjs +5 -0
  86. package/node_modules/@docx-editor.dev/core/dist/chunk-ALD626VU.cjs +2 -0
  87. package/node_modules/@docx-editor.dev/core/dist/chunk-AU33YWEJ.js +236 -0
  88. package/node_modules/@docx-editor.dev/core/dist/chunk-AXU63LYW.cjs +1 -0
  89. package/node_modules/@docx-editor.dev/core/dist/chunk-CM5VZRBV.js +32 -0
  90. package/node_modules/@docx-editor.dev/core/dist/chunk-D7FAFFTN.js +1 -0
  91. package/node_modules/@docx-editor.dev/core/dist/chunk-DYUVJNDD.cjs +1 -0
  92. package/node_modules/@docx-editor.dev/core/dist/chunk-ESYUKD5D.js +2 -0
  93. package/node_modules/@docx-editor.dev/core/dist/chunk-F7TGQMVR.js +5 -0
  94. package/node_modules/@docx-editor.dev/core/dist/chunk-FLW7KIQX.js +30 -0
  95. package/node_modules/@docx-editor.dev/core/dist/chunk-JG4A6W6I.js +7 -0
  96. package/node_modules/@docx-editor.dev/core/dist/chunk-JNGLSBPH.js +2 -0
  97. package/node_modules/@docx-editor.dev/core/dist/chunk-KE6ZWRIY.cjs +236 -0
  98. package/node_modules/@docx-editor.dev/core/dist/chunk-L3YXJDPX.js +1 -0
  99. package/node_modules/@docx-editor.dev/core/dist/chunk-LI42N7OW.cjs +4 -0
  100. package/node_modules/@docx-editor.dev/core/dist/chunk-PLKDS4JT.js +1 -0
  101. package/node_modules/@docx-editor.dev/core/dist/chunk-PXMTQ73F.cjs +2 -0
  102. package/node_modules/@docx-editor.dev/core/dist/chunk-R4R3AAE4.js +1 -0
  103. package/node_modules/@docx-editor.dev/core/dist/chunk-RFUNFTGV.cjs +1 -0
  104. package/node_modules/@docx-editor.dev/core/dist/chunk-SVM6PGMS.js +3 -0
  105. package/node_modules/@docx-editor.dev/core/dist/chunk-SZURLHR3.cjs +3 -0
  106. package/node_modules/@docx-editor.dev/core/dist/chunk-UYCGCVZ2.cjs +1 -0
  107. package/node_modules/@docx-editor.dev/core/dist/chunk-WN7ICTA5.js +1 -0
  108. package/node_modules/@docx-editor.dev/core/dist/chunk-X34QRAUU.cjs +1 -0
  109. package/node_modules/@docx-editor.dev/core/dist/chunk-XNBYG4XJ.cjs +30 -0
  110. package/node_modules/@docx-editor.dev/core/dist/chunk-ZDFJW5XS.cjs +2 -0
  111. package/node_modules/@docx-editor.dev/core/dist/chunk-ZWO4JHNN.cjs +7 -0
  112. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -1
  113. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +29 -5
  114. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -1
  115. package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -1
  116. package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +5 -6
  117. package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -1
  118. package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +3 -3
  119. package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +13 -10
  120. package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +2 -2
  121. package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +15 -13
  122. package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +135 -2
  123. package/node_modules/@docx-editor.dev/core/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
  124. package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
  125. package/node_modules/@docx-editor.dev/core/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +14 -7
  126. package/node_modules/@docx-editor.dev/core/dist/{document-protection-CUb55pl_.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
  127. package/node_modules/@docx-editor.dev/core/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
  128. package/node_modules/@docx-editor.dev/core/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
  129. package/node_modules/@docx-editor.dev/core/dist/{editor-CZQZmTIU.d.ts → editor-B7OOAAie.d.ts} +536 -283
  130. package/node_modules/@docx-editor.dev/core/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
  131. package/node_modules/@docx-editor.dev/core/dist/editor-scope-CA6egMaK.d.ts +141 -0
  132. package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -1
  133. package/node_modules/@docx-editor.dev/core/dist/editor.css +6 -4
  134. package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +834 -34
  135. package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -1
  136. package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -2
  137. package/node_modules/@docx-editor.dev/core/dist/export.d.ts +52 -21
  138. package/node_modules/@docx-editor.dev/core/dist/export.js +2 -2
  139. package/node_modules/@docx-editor.dev/core/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
  140. package/node_modules/@docx-editor.dev/core/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
  141. package/node_modules/@docx-editor.dev/core/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
  142. package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -1
  143. package/node_modules/@docx-editor.dev/core/dist/index.d.ts +44 -27
  144. package/node_modules/@docx-editor.dev/core/dist/index.js +1 -1
  145. package/node_modules/@docx-editor.dev/core/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-Ci_BTnSU.d.ts} +3 -2
  146. package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -1
  147. package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +276 -126
  148. package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -1
  149. package/node_modules/@docx-editor.dev/core/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
  150. package/node_modules/@docx-editor.dev/core/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
  151. package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -1
  152. package/node_modules/@docx-editor.dev/core/dist/output.d.ts +24 -10
  153. package/node_modules/@docx-editor.dev/core/dist/output.js +1 -1
  154. package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts} +167 -5
  155. package/node_modules/@docx-editor.dev/core/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
  156. package/node_modules/@docx-editor.dev/core/dist/revision-projection-OVusTS77.d.ts +258 -0
  157. package/node_modules/@docx-editor.dev/core/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
  158. package/node_modules/@docx-editor.dev/core/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
  159. package/node_modules/@docx-editor.dev/core/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
  160. package/node_modules/@docx-editor.dev/core/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
  161. package/node_modules/@docx-editor.dev/core/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-DoK0lNjS.d.ts} +697 -608
  162. package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -1
  163. package/node_modules/@docx-editor.dev/core/dist/store.d.ts +527 -123
  164. package/node_modules/@docx-editor.dev/core/dist/store.js +1 -1
  165. package/node_modules/@docx-editor.dev/core/dist/{types-barrel-DuC5QBNC.d.ts → tree-op-types-Df4oY2u4.d.ts} +1723 -765
  166. package/node_modules/@docx-editor.dev/core/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DXhX1PE-.d.ts} +617 -428
  167. package/node_modules/@docx-editor.dev/core/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CF2625mv.d.ts} +28 -13
  168. package/node_modules/@docx-editor.dev/core/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
  169. package/node_modules/@docx-editor.dev/core/docs/accept-reject-without-scrolling.md +95 -0
  170. package/node_modules/@docx-editor.dev/core/docs/comment-on-found-text.md +72 -0
  171. package/node_modules/@docx-editor.dev/core/docs/custom-review-cards.md +178 -0
  172. package/node_modules/@docx-editor.dev/core/docs/highlight-ranges.md +48 -0
  173. package/node_modules/@docx-editor.dev/core/docs/index.md +36 -0
  174. package/node_modules/@docx-editor.dev/core/docs/propose-rewrite.md +247 -0
  175. package/node_modules/@docx-editor.dev/core/docs/tracked-replacement.md +68 -0
  176. package/node_modules/@docx-editor.dev/core/licenses/ECMA-376.md +29 -0
  177. package/node_modules/@docx-editor.dev/core/package.json +3 -2
  178. package/node_modules/@docx-editor.dev/react/README.md +71 -0
  179. package/node_modules/@docx-editor.dev/react/dist/index.d.mts +936 -86
  180. package/node_modules/@docx-editor.dev/react/dist/index.d.ts +936 -86
  181. package/node_modules/@docx-editor.dev/react/dist/index.js +3 -3
  182. package/node_modules/@docx-editor.dev/react/dist/index.mjs +3 -3
  183. package/node_modules/@docx-editor.dev/react/docs/accept-reject-without-scrolling.md +72 -0
  184. package/node_modules/@docx-editor.dev/react/docs/comment-on-found-text.md +47 -0
  185. package/node_modules/@docx-editor.dev/react/docs/custom-review-cards.md +105 -0
  186. package/node_modules/@docx-editor.dev/react/docs/highlight-ranges.md +25 -0
  187. package/node_modules/@docx-editor.dev/react/docs/index.md +36 -0
  188. package/node_modules/@docx-editor.dev/react/docs/propose-rewrite.md +247 -0
  189. package/node_modules/@docx-editor.dev/react/docs/tracked-replacement.md +45 -0
  190. package/node_modules/@docx-editor.dev/react/package.json +4 -3
  191. package/package.json +8 -8
  192. package/src/docx/styles.css +37 -7
  193. package/dist/chunk-KWD5Q4XH.cjs +0 -18
  194. package/dist/chunk-T2DUNNYY.cjs.map +0 -1
  195. package/dist/chunk-UOZ237OW.cjs.map +0 -1
  196. package/dist/chunk-V6SFJ44C.cjs.map +0 -1
  197. package/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
  198. package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
  199. package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
  200. package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
  201. package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
  202. package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
  203. package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
  204. package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
  205. package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
  206. package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
  207. package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
  208. package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
  209. package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
  210. package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
  211. package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
  212. package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
  213. package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
  214. package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
  215. package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
  216. package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
  217. package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
  218. package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
  219. package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
  220. package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
  221. package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
  222. package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
  223. package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
  224. package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
  225. package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
  226. package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
  227. package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
  228. package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
  229. package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
  230. package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
  231. package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/coedit",
3
- "version": "0.5.134",
3
+ "version": "0.5.136",
4
4
  "description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -53,7 +53,7 @@
53
53
  "typecheck": "tsc --noEmit"
54
54
  },
55
55
  "dependencies": {
56
- "@docx-editor.dev/core": "2.29.0",
56
+ "@docx-editor.dev/core": "2.33.0",
57
57
  "@hocuspocus/provider": "^4.6.0",
58
58
  "fflate": "^0.8.2",
59
59
  "y-protocols": "^1.0.6",
@@ -30,7 +30,7 @@ Node.js requires `^20.16.0 || >=22.3.0`.
30
30
  ## Features
31
31
 
32
32
  - [Read and save DOCX files](https://www.docx-editor.dev/docs/2.x/guides/loading-and-saving).
33
- - [Lay out and render document pages](https://www.docx-editor.dev/docs/2.x/word-fidelity).
33
+ - [Lay out and render document pages](https://www.docx-editor.dev/docs/2.x/word-fidelity). Charts, SmartArt saved without its drawing, shape effects, and WordArt need [`@docx-editor.dev/pro/drawing`](https://www.docx-editor.dev/docs/2.x/pro/drawing).
34
34
  - [Build an editor with shared commands and controls](https://www.docx-editor.dev/docs/2.x/guides/chrome-slots).
35
35
  - [Configure fonts for text measurement](https://www.docx-editor.dev/docs/2.x/guides/fonts).
36
36
 
@@ -114,6 +114,30 @@ Treat DOCX files as untrusted input. The engine validates URLs and limits XML en
114
114
 
115
115
  Anything you render from document data (a font name, a hyperlink target, a comment body) is still attacker-controlled at your boundary. Render it as text; do not build markup or URLs from it.
116
116
 
117
+ ## Which API for which job
118
+
119
+ | Job | Use |
120
+ | --- | --- |
121
+ | Build a review UI in the browser | The React or Vue adapter hooks, plus the review hooks and `DocxEditorReview` from `@docx-editor.dev/pro/react` or `@docx-editor.dev/pro/vue`. |
122
+ | Edit in a headless, server, or agent pipeline | The editing API in `@docx-editor.dev/editor-api`, which follows the Office.js object model. |
123
+
124
+ | Task | Browser host (React or Vue) | Headless, server, or agent |
125
+ | --- | --- | --- |
126
+ | [Comment on found text](https://www.docx-editor.dev/docs/2.x/recipes/comment-on-found-text) | `editor.findMatches`, `editor.selectMatch`, then `useReview().comment` | `body.search`, then `Range.insertComment` |
127
+ | Reply to a thread | `useReview().reply(item, text)` | `Comment.reply(text)` |
128
+ | [Record a tracked replacement](https://www.docx-editor.dev/docs/2.x/recipes/tracked-replacement) | Suggesting mode, then `editor.exec({ type: 'replaceMatch', match, text })` | `document.changeTrackingMode = 'TrackMineOnly'`, then `Range.insertText(text, 'Replace')` |
129
+ | [Propose an AI rewrite as tracked changes](https://www.docx-editor.dev/docs/2.x/recipes/propose-rewrite) | The same code through `DocxEditor.createBrowser` from `@docx-editor.dev/editor-api/browser` | `prepareRewrite` from `@docx-editor.dev/editor-api/agent` |
130
+ | [Accept or reject a change](https://www.docx-editor.dev/docs/2.x/recipes/accept-reject-without-scrolling) | `useReview().accept(item)` or `useReview().reject(item)` | `Revision.accept()` or `Revision.reject()` |
131
+ | [Open or reveal a change without scrolling](https://www.docx-editor.dev/docs/2.x/recipes/accept-reject-without-scrolling) | `useReview().setActive(key, { reveal: false })` | Not applicable: no viewport |
132
+ | [Highlight ranges](https://www.docx-editor.dev/docs/2.x/recipes/highlight-ranges) | `useHighlights(name, source, options)` | Not applicable |
133
+ | [Custom review rail cards](https://www.docx-editor.dev/docs/2.x/recipes/custom-review-cards) | `DocxEditorReview` with `preset` set to `false`, `useReview().items`, `useStackedReviewPositions`, and `useReviewRailMetrics` | Not applicable |
134
+ | Comment-on-selection button | `DocxEditorReview.AddComment` as a direct child of `DocxEditorReview`, or `useEditorCommand('review.addComment')` | Not applicable |
135
+ | Page setup and paragraph dialogs from a custom toolbar | `DocxEditor.PageSetupDialog` or `DocxEditor.ParagraphDialog` with `open` and a close handler (`onClose` in React, `@close` in Vue); enable the button from `usePageSetup().isEnabled` or `useParagraphFormat().isEnabled` | `Section.pageSetup`, and `Paragraph` properties such as `alignment` |
136
+
137
+ The review hooks need `reviewModule()` from `@docx-editor.dev/pro` in the editor's modules, and an editor `author` for comments and tracked changes. The editing API takes its author from the `author` option of `DocxEditor.createServer`, imported from `@docx-editor.dev/editor-api`, or of `DocxEditor.createBrowser`, imported from `@docx-editor.dev/editor-api/browser`.
138
+
139
+ This package ships the task recipes in [`docs/index.md`](./docs/index.md). They are also on the site: [Task recipes](https://www.docx-editor.dev/docs/2.x/recipes).
140
+
117
141
  ## Documentation
118
142
 
119
143
  - [Core overview](https://www.docx-editor.dev/docs/2.x/core)
@@ -19,6 +19,7 @@ This package also ships prebuilt third-party assets that are not esbuild inputs,
19
19
  so they cannot appear below. Their licenses travel with the package in
20
20
  `licenses/`:
21
21
 
22
+ - `licenses/ECMA-376.md`
22
23
  - `licenses/HarfBuzz-COPYING.txt`
23
24
 
24
25
  ## Bundled packages
@@ -1 +1 @@
1
- 'use strict';var chunkEKLM7NWB_cjs=require('./chunk-EKLM7NWB.cjs');require('./chunk-W35WTWAO.cjs'),require('./chunk-DOHF6FA7.cjs'),require('./chunk-7WQ7AAHW.cjs'),require('./chunk-MM5QBMTE.cjs'),require('./chunk-T6K2QYNZ.cjs'),require('./chunk-UHHYFIDT.cjs'),require('./chunk-OSFOJTHU.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.e}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.d}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.f}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.c}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.n}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.u}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.v}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.l}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.w}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.o}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.y}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.x}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.q}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.A}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.B}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.z}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.p}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.h}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.g}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.r}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.j}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.t}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunkEKLM7NWB_cjs.s}});
1
+ 'use strict';var chunkZWO4JHNN_cjs=require('./chunk-ZWO4JHNN.cjs');require('./chunk-AXU63LYW.cjs'),require('./chunk-2DEY5NUC.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.g}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.f}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.h}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.e}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.p}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.y}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.z}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.n}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.A}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.q}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.C}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.B}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.t}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.F}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.G}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.E}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.s}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.j}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.i}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.u}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.l}});Object.defineProperty(exports,"reviewCodeOfSkip",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.w}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.x}});Object.defineProperty(exports,"reviewSkipOfReason",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.D}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.v}});
@@ -11,22 +11,20 @@
11
11
  * @packageDocumentation
12
12
  * @public
13
13
  */
14
- import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-DYzzz2ej.js';
15
- export { c as AutomationAlignment, d as AutomationBatchRequest, e as AutomationBatchResponse, f as AutomationChangeEvent, g as AutomationContentControlLock, h as AutomationContentControlRangeLocation, i as AutomationContentControlScope, j as AutomationContentControlSubtype, k as AutomationContentControlValue, l as AutomationError, m as AutomationErrorCode, n as AutomationFontRead, o as AutomationFontWrite, p as AutomationHandle, q as AutomationHandleRef, r as AutomationObjectKind, s as AutomationOperationKind, t as AutomationOperationResult, u as AutomationPageOrientation, v as AutomationPageSetupRead, w as AutomationPageSetupWrite, x as AutomationParagraphFormatRead, y as AutomationParagraphFormatWrite, z as AutomationParagraphRef, B as AutomationPoint, C as AutomationReadingOrder, D as AutomationSaveResult, E as AutomationSearchOptions, F as AutomationSelectionMode, G as AutomationSpan, H as AutomationSpanRef, I as AutomationTextProjection, J as AutomationUnsubscribe, K as AutomationValue } from './protocol-DYzzz2ej.js';
16
- import { c as HeaderFooterVariant, N as NoteKind } from './tree-package-store-CovjNARF.js';
17
- import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-DQmumPgL.js';
18
- import { H as HeadlessDocumentView } from './headless-document-view-pp3q7wIh.js';
19
- import { ao as OoxmlPackageLimits, aj as OoxmlPackageRejection } from './types-barrel-DuC5QBNC.js';
20
- export { ap as RevisionAuthorEntry, a8 as RevisionAuthorResult, aq as RevisionAuthorSkipReason, ar as RevisionBatchEntry, a9 as RevisionBatchResult, as as RevisionBatchSkipDetail, at as RevisionBatchSkipReason, au as RevisionSiteRefusal } from './types-barrel-DuC5QBNC.js';
14
+ import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-Cp_QzVxS.js';
15
+ export { c as AutomationAlignment, d as AutomationAuthoringOperation, e as AutomationBatchRequest, f as AutomationBatchResponse, g as AutomationChangeEvent, h as AutomationContentControlLock, i as AutomationContentControlRangeLocation, j as AutomationContentControlScope, k as AutomationContentControlSubtype, l as AutomationContentControlValue, m as AutomationCustomNodePayload, n as AutomationEndpoint, o as AutomationError, p as AutomationErrorCode, q as AutomationFontRead, r as AutomationFontWrite, s as AutomationHandle, t as AutomationHandleRef, u as AutomationInlinePictureRead, v as AutomationInlinePictureWrite, w as AutomationListBullet, x as AutomationListLevelFormat, y as AutomationListNumbering, z as AutomationObjectKind, B as AutomationOperationKind, C as AutomationOperationResult, D as AutomationPageOrientation, E as AutomationPageSetupRead, F as AutomationPageSetupWrite, G as AutomationParagraphFormatRead, H as AutomationParagraphFormatWrite, I as AutomationParagraphRef, J as AutomationPoint, K as AutomationReadingOrder, L as AutomationSaveResult, M as AutomationSearchOptions, N as AutomationSelectionMode, O as AutomationShapeRead, P as AutomationShapeType, Q as AutomationSpan, R as AutomationSpanRef, S as AutomationTextProjection, T as AutomationUnsubscribe, U as AutomationValue } from './protocol-Cp_QzVxS.js';
16
+ import { H as HeaderFooterVariant, N as NoteKind, C as ContentLockPolicy } from './tree-package-store-DXhX1PE-.js';
17
+ import { az as OoxmlPackageLimits, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
18
+ export { aB as AutomationTableMutation, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal } from './tree-op-types-Df4oY2u4.js';
19
+ import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-DoK0lNjS.js';
20
+ import { H as HeadlessDocumentView } from './drawing-graphic-kind-CXYGYbB3.js';
21
21
  import { CollaborationModuleContribution } from './collaboration.js';
22
- import { B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode, i as ReviewDiagnosticCode, E as EditDiagnosticCode } from './diagnostic-hints-BeVjfNOv.js';
23
- export { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, d as DiagnosticCode, D as DiagnosticErrorName, e as DiagnosticExplanation, a as DocumentPartKind, F as FailureStage, g as FontDiagnosticCode, h as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, R as ReviewChangeKind, j as ReviewOperation, k as diagnosticCodes, l as explainDiagnostic } from './diagnostic-hints-BeVjfNOv.js';
24
- export { a as diagnosticCause, d as diagnosticCauses, b as diagnosticErrorName, c as documentPartKind, e as exceptionCause } from './diagnostic-context-B8M79cfK.js';
25
- import './image-resources-tXLQShoC.js';
26
- import './omml-equation-BUbU0utM.js';
27
- import './editor-scope-7o9xweiJ.js';
22
+ export { D as DiagnosticEmitter, a as DiagnosticPayload, b as byteSizeBucket, c as countBucket, e as createDiagnosticEmitter, f as diagnosticCause, d as diagnosticCauses, g as diagnosticErrorName, h as documentPartKind, i as exceptionCause, o as openDiagnosticCode, r as reviewCodeOfSkip, j as reviewDiagnosticCode, k as reviewSkipOfReason, s as storeEditDiagnosticCode } from './diagnostic-context-CuzhOX0g.js';
23
+ export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, a as CountBucket, b as CustomNodeDiagnosticCode, D as DiagnosticCode, c as DiagnosticErrorName, d as DiagnosticExplanation, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-BtCaCqQC.js';
24
+ export { c as HistoryGroup, H as HistoryGroupOutcome } from './editor-scope-CA6egMaK.js';
25
+ import './revision-projection-OVusTS77.js';
28
26
  import './collaboration/replication.js';
29
- import './failure-NS2lsya4.js';
27
+ import './failure-6KGFrDO9.js';
30
28
 
31
29
  /** The variants a section can declare furniture for. */
32
30
  declare const HEADER_FOOTER_VARIANTS: readonly HeaderFooterVariant[];
@@ -63,9 +61,9 @@ type AutomationShapeOwnerStory = {
63
61
  };
64
62
 
65
63
  /** Operations that read. They never open a transaction. */
66
- declare const AUTOMATION_QUERY_OPERATIONS: readonly ["getTables", "getTable", "getTableRows", "getTableCells", "getTableCell", "getTableCellProperties", "getTableCellBody", "getFields", "getField", "getInlinePictures", "getInlinePicture", "getShapes", "getShape", "getShapeBody", "getChangeTrackingMode", "getDocument", "getDocumentProperty", "getBody", "getParagraphs", "getRange", "getSpanParagraphs", "getText", "getSpanText", "getParagraphId", "search", "getFont", "getParagraphFormat", "getStyle", "getSections", "getPageSetup", "getFurniture", "getNotes", "getNoteBody", "getNoteText", "getNoteKind", "getLists", "getListId", "getListById", "getListParagraphs", "getParagraphList", "getListLevel", "getHyperlink", "getBookmarks", "getBookmarkName", "getBookmarkRange", "getComments", "getCommentReplies", "getCommentId", "getCommentAuthor", "getCommentDate", "getCommentText", "getCommentRange", "getCommentResolved", "getRevisions", "getRevisionType", "getRevisionAuthor", "getRevisionDate", "getRevisionRange", "getContentControls", "getContentControlById", "getContentControlsByTag", "getContentControlsByTitle", "getContentControlTag", "getContentControlTitle", "getContentControlFileId", "getContentControlSubtype", "getContentControlLock", "getContentControlIsBound", "getContentControlPlaceholderShown", "getContentControlTemporary", "getContentControlText", "getContentControlParagraphs", "getContentControlRange"];
64
+ declare const AUTOMATION_QUERY_OPERATIONS: readonly ["getTables", "getTable", "getTableRows", "getTableCells", "getTableCell", "getMergedTableCell", "getTableCellProperties", "getTableCellBody", "getFields", "getField", "getFieldResult", "getInlinePictures", "getInlinePicture", "getShapes", "getShape", "getShapeBody", "getChangeTrackingMode", "getDocument", "getDocumentProperty", "getBody", "getParagraphs", "getRange", "getSpanParagraphs", "getText", "getSpanText", "getTextRanges", "expandSpan", "getReviewedText", "getParagraphId", "search", "getFont", "getParagraphFormat", "getStyle", "getSections", "getPageSetup", "getFurniture", "getNotes", "getNoteBody", "getNoteText", "getNoteKind", "getLists", "getListId", "getListById", "getListParagraphs", "getParagraphList", "getListLevel", "getHyperlink", "getBookmarks", "getBookmarkName", "getBookmarkRange", "getBookmarkNames", "getBookmarkRangeByName", "getComments", "getCommentReplies", "getCommentId", "getCommentAuthor", "getCommentDate", "getCommentText", "getCommentRange", "getCommentResolved", "getRevisions", "getRevisionType", "getRevisionAuthor", "getRevisionDate", "getRevisionRange", "getReviewItemRange", "getContentControls", "getContentControlById", "getContentControlsByTag", "getContentControlsByTitle", "getContentControlTag", "getContentControlTitle", "getContentControlFileId", "getContentControlSubtype", "getContentControlLock", "getContentControlIsBound", "getContentControlPlaceholderShown", "getContentControlTemporary", "getContentControlText", "getContentControlParagraphs", "getContentControlRange"];
67
65
  /** Operations that write. Every one of these goes through the single transaction path. */
68
- declare const AUTOMATION_COMMAND_OPERATIONS: readonly ["removeDocumentInformation", "setDocumentProperties", "insertTableRows", "insertTable", "updateTable", "updateTableCell", "setInlinePicture", "deleteInlinePicture", "insertField", "setFieldCode", "deleteField", "updateFieldResult", "insertInlinePicture", "insertBreak", "setChangeTrackingMode", "proposeInsertion", "proposeDeletion", "proposeReplacement", "insertText", "replaceSpan", "replaceStoryBlocks", "insertParagraph", "splitParagraph", "deleteParagraph", "selectSpan", "selectBookmark", "setFont", "setParagraphFormat", "setStyle", "setPageSetup", "deleteNote", "setListLevel", "startNewList", "attachToList", "detachFromList", "setListLevelFormat", "insertListParagraph", "setHyperlink", "insertComment", "setCommentResolved", "replyToComment", "deleteComment", "acceptRevision", "rejectRevision", "resolveRevisionBatch", "setRevisionAuthorBatch", "acceptAllRevisions", "rejectAllRevisions", "setContentControlValue", "setContentControlProperties", "deleteContentControl", "insertContentControlText", "insertContentControl", "insertCustomNode"];
66
+ declare const AUTOMATION_COMMAND_OPERATIONS: readonly ["removeDocumentInformation", "setDocumentProperties", "insertTableRows", "insertTable", "updateTable", "updateTableCell", "splitTableCell", "setInlinePicture", "deleteInlinePicture", "insertField", "insertOoxml", "setFieldCode", "setFieldResult", "deleteField", "updateFieldResult", "insertInlinePicture", "insertBreak", "setChangeTrackingMode", "proposeInsertion", "proposeDeletion", "proposeReplacement", "insertText", "replaceSpan", "replaceStoryBlocks", "insertParagraph", "splitParagraph", "deleteParagraph", "selectSpan", "selectBookmark", "insertBookmark", "deleteBookmark", "setFont", "setParagraphFormat", "setStyle", "setPageSetup", "deleteNote", "setListLevel", "startNewList", "attachToList", "detachFromList", "setListLevelFormat", "insertListParagraph", "setHyperlink", "insertComment", "setCommentResolved", "replyToComment", "deleteComment", "acceptRevision", "rejectRevision", "resolveRevisionBatch", "setRevisionAuthorBatch", "acceptAllRevisions", "rejectAllRevisions", "setContentControlValue", "setContentControlProperties", "deleteContentControl", "insertContentControlText", "insertContentControl", "insertCustomNode"];
69
67
  /**
70
68
  * Commands that commit as a PACKAGE transaction and therefore share a batch with nothing.
71
69
  *
@@ -151,6 +149,11 @@ interface ServerAutomationHostOptions {
151
149
  * not attach a replica.
152
150
  */
153
151
  readonly collaborationModel?: CollaborationModuleContribution;
152
+ /**
153
+ * Opt-in relaxation of `w:lock` for run-property writes (`setFont`): content-locked controls
154
+ * can be restyled but not retyped. Absent, they refuse both.
155
+ */
156
+ readonly contentLockPolicy?: ContentLockPolicy;
154
157
  }
155
158
  /**
156
159
  * Open DOCX bytes into a headless automation host.
@@ -160,50 +163,5 @@ interface ServerAutomationHostOptions {
160
163
  */
161
164
  declare function createServerAutomationHost(bytes: Uint8Array, options?: ServerAutomationHostOptions): ServerAutomationHostResult;
162
165
 
163
- /**
164
- * Anonymous diagnostics, the neutral half: store reasons → public codes, size and count
165
- * buckets, and one delivery path. The browser editor and the headless automation runtime both
166
- * build their diagnostics here, so a refusal gets the same public code on either host.
167
- *
168
- * Only the RESULT of a lookup leaves the engine. A raw reason can be a sentence, and a package
169
- * `detail` can name parts of the file, so neither is ever copied into a diagnostic.
170
- */
171
-
172
- /**
173
- * The public code for a refused open. `too-large` is the one reason two layers share: the
174
- * archive reports it WITH the limit it crossed, a single XML part reports it without one.
175
- *
176
- * @public
177
- */
178
- declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpenDiagnosticCode;
179
- /**
180
- * The public code for a store or host refusal reason, or `null` for a reason this table does
181
- * not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
182
- * `unsupported-revision`.
183
- *
184
- * @public
185
- */
186
- declare function storeEditDiagnosticCode(reason: string): EditDiagnosticCode | null;
187
- /** The public code for a skipped tracked change, or null for a reason with no public code. */
188
- declare function reviewDiagnosticCode(reason: string): ReviewDiagnosticCode | null;
189
- /** The power-of-two bucket of a byte size. */
190
- declare function byteSizeBucket(bytes: number): ByteSizeBucket;
191
- /** The order-of-magnitude bucket of a count. */
192
- declare function countBucket(count: number): CountBucket;
193
- /** A diagnostic without the fields the emitter adds. Distributes over the union. */
194
- type DiagnosticPayload<T> = T extends unknown ? Omit<T, 'schemaVersion' | 'editorSessionId' | 'time'> : never;
195
- /** One delivery path for one editor or runtime instance. */
196
- interface DiagnosticEmitter<E> {
197
- /** Random for this instance and never stored. */
198
- readonly editorSessionId: string;
199
- /** Stamp the payload and hand it to every listener. A listener that throws is ignored. */
200
- deliver(payload: DiagnosticPayload<E>): void;
201
- }
202
- /**
203
- * A delivery path over `listeners`, read at each delivery so a later listener is heard. Generic
204
- * over the event union, which the editor contracts own: this lane never names them.
205
- */
206
- declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
207
-
208
- export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ByteSizeBucket, CountBucket, DocumentOpenDiagnosticCode, EditDiagnosticCode, HEADER_FOOTER_VARIANTS, ReviewDiagnosticCode, SERVER_AUTOMATION_CAPABILITIES, byteSizeBucket, countBucket, createAutomationPaginationProvider, createDiagnosticEmitter, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, openDiagnosticCode, paginationSnapshotOf, reviewDiagnosticCode, storeEditDiagnosticCode };
209
- export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationStoryId, DiagnosticEmitter, DiagnosticPayload, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
166
+ export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ContentLockPolicy, HEADER_FOOTER_VARIANTS, SERVER_AUTOMATION_CAPABILITIES, createAutomationPaginationProvider, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, paginationSnapshotOf };
167
+ export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationShapeOwnerStory, AutomationStoryId, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
@@ -1 +1 @@
1
- export{e as AUTOMATION_COMMAND_OPERATIONS,d as AUTOMATION_QUERY_OPERATIONS,f as AUTOMATION_SOLITARY_OPERATIONS,c as HEADER_FOOTER_VARIANTS,n as SERVER_AUTOMATION_CAPABILITIES,u as byteSizeBucket,v as countBucket,l as createAutomationPaginationProvider,w as createDiagnosticEmitter,o as createServerAutomationHost,y as diagnosticCause,x as diagnosticCauses,q as diagnosticCodes,A as diagnosticErrorName,B as documentPartKind,z as exceptionCause,p as explainDiagnostic,h as isAutomationCommand,g as isSolitaryAutomationCommand,r as openDiagnosticCode,j as paginationSnapshotOf,t as reviewDiagnosticCode,s as storeEditDiagnosticCode}from'./chunk-LQX36Z5P.js';import'./chunk-E4LOMDNL.js';import'./chunk-CPWLFPWC.js';import'./chunk-RCLZXP3B.js';import'./chunk-LSZ6KPKK.js';import'./chunk-U4JZVSOE.js';import'./chunk-OMCG63ZF.js';import'./chunk-YQ5G6LC7.js';
1
+ export{g as AUTOMATION_COMMAND_OPERATIONS,f as AUTOMATION_QUERY_OPERATIONS,h as AUTOMATION_SOLITARY_OPERATIONS,e as HEADER_FOOTER_VARIANTS,p as SERVER_AUTOMATION_CAPABILITIES,y as byteSizeBucket,z as countBucket,n as createAutomationPaginationProvider,A as createDiagnosticEmitter,q as createServerAutomationHost,C as diagnosticCause,B as diagnosticCauses,t as diagnosticCodes,F as diagnosticErrorName,G as documentPartKind,E as exceptionCause,s as explainDiagnostic,j as isAutomationCommand,i as isSolitaryAutomationCommand,u as openDiagnosticCode,l as paginationSnapshotOf,w as reviewCodeOfSkip,x as reviewDiagnosticCode,D as reviewSkipOfReason,v as storeEditDiagnosticCode}from'./chunk-JG4A6W6I.js';import'./chunk-R4R3AAE4.js';import'./chunk-CM5VZRBV.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';
@@ -1 +1 @@
1
- 'use strict';var chunk6JPL6ZAS_cjs=require('./chunk-6JPL6ZAS.cjs');require('./chunk-BY2ACZZ6.cjs'),require('./chunk-7WQ7AAHW.cjs'),require('./chunk-MM5QBMTE.cjs'),require('./chunk-T6K2QYNZ.cjs'),require('./chunk-UHHYFIDT.cjs'),require('./chunk-OSFOJTHU.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.l}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.m}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.j}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk6JPL6ZAS_cjs.e}});
1
+ 'use strict';var chunk2GPGAFOJ_cjs=require('./chunk-2GPGAFOJ.cjs');require('./chunk-UYCGCVZ2.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.n}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.o}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.l}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.e}});
@@ -9,26 +9,28 @@
9
9
  * @public
10
10
  */
11
11
  import { Node, Schema } from 'prosemirror-model';
12
- import { ah as OoxmlProperty, ai as OoxmlPackageResult, aj as OoxmlPackageRejection } from './types-barrel-DuC5QBNC.js';
13
- import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-CZVAGl51.js';
14
- export { D as DocumentStyleEntry, M as MapResult, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-CZVAGl51.js';
12
+ import { aC as OoxmlProperty, aD as OoxmlPackageResult, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
13
+ import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-CF2625mv.js';
14
+ export { D as DocumentStyleEntry, M as MapResult, P as PackageWriteOptions, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-CF2625mv.js';
15
+ import { C as ContentLockPolicy } from './tree-package-store-DXhX1PE-.js';
16
+ export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-DXhX1PE-.js';
15
17
  import { ReviewModuleContribution } from './contracts/modules.js';
16
- export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-CovjNARF.js';
17
18
  import { EditorView } from 'prosemirror-view';
18
- import './editor-scope-7o9xweiJ.js';
19
- import './image-resources-tXLQShoC.js';
20
- import './custom-node-writes-Bn6uciLb.js';
21
- import './headless-document-view-pp3q7wIh.js';
19
+ import './editor-scope-CA6egMaK.js';
20
+ import './custom-node-writes-AqY5KpVx.js';
21
+ import './drawing-graphic-kind-CXYGYbB3.js';
22
22
  import './collaboration/replication.js';
23
- import './semantic-records-DQmumPgL.js';
24
- import './omml-equation-BUbU0utM.js';
25
- import './editor-CZQZmTIU.js';
23
+ import './revision-projection-OVusTS77.js';
24
+ import './contracts/types.js';
25
+ import './failure-6KGFrDO9.js';
26
+ import './document-protection-BvbpSXbQ.js';
27
+ import './editor-B7OOAAie.js';
28
+ import './editor-fonts-D_-vjuJi.js';
29
+ import './diagnostic-hints-BtCaCqQC.js';
26
30
  import './contracts/document.js';
27
31
  import './contracts/interaction.js';
28
- import './semantic-interaction-kR_QB845.js';
29
- import './document-protection-CUb55pl_.js';
30
- import './failure-NS2lsya4.js';
31
- import './diagnostic-hints-BeVjfNOv.js';
32
+ import './semantic-interaction-BbA4dgEo.js';
33
+ import './semantic-records-DoK0lNjS.js';
32
34
  import './collaboration.js';
33
35
 
34
36
  /** Attributes carried by a projected paragraph. */
@@ -56,28 +58,22 @@ declare const treeSchema: Schema<'doc' | 'paragraph' | 'text' | 'tab' | 'hardBre
56
58
  /** The accepted run properties carried by a text node, or an empty list. */
57
59
  declare function runPropsOf(node: Node): readonly OoxmlProperty[];
58
60
 
59
- /**
60
- * Binding-only session methods that exchange ProseMirror projections.
61
- *
62
- * Editor surfaces expose {@link TreeDocxSessionView}. Only the binding lane sees this extension.
63
- */
64
- interface TreeDocxSession extends TreeDocxSessionView {
65
- /** Project the current BODY revision into a ProseMirror doc. */
66
- projectDoc(): Node;
67
- /** Re-project incrementally from the last committed change, reusing untouched paragraphs. */
68
- reconcile(previousDoc: Node): Node;
61
+ /** How `openTreeSession` opens a package. */
62
+ interface OpenTreeSessionOptions {
69
63
  /**
70
- * Whether the last commit changed the BLOCK SEQUENCE (a split, join, insert or delete).
71
- *
72
- * A host needs this to decide whether the view must be re-projected at all. After a pure
73
- * text edit, the view already holds what the model holds. Re-projecting wastes work and
74
- * races the next keystroke.
64
+ * The review module's derivation hooks, contributed through the editor's
65
+ * `EditorModule` seam. Absent — the free engine — the session's
66
+ * `reviewItems()` reports the typed empty queue; parse, preservation, and
67
+ * `hasReviewContent` are unaffected.
75
68
  */
76
- lastCommitWasStructural(): boolean;
77
- /** Map an edited BODY doc to tree ops and commit them as one transaction. */
78
- applyPmDoc(doc: Node): TreeApplyResult;
69
+ readonly reviewModel?: ReviewModuleContribution;
70
+ /**
71
+ * Opt-in relaxation of `w:lock` for run formatting: `contentLocked` / `sdtContentLocked`
72
+ * controls can be restyled (bold, color, font …) but not retyped. Absent, they refuse both.
73
+ * See {@link ContentLockPolicy}.
74
+ */
75
+ readonly contentLockPolicy?: ContentLockPolicy;
79
76
  }
80
-
81
77
  /**
82
78
  * Why bytes could not be opened: any bounded-reader rejection, plus the package that parsed but
83
79
  * carried no main document tree.
@@ -99,15 +95,28 @@ type OpenTreeSessionResult = {
99
95
  readonly reason: 'no-main-document-tree';
100
96
  readonly detail?: string;
101
97
  };
102
- interface OpenTreeSessionOptions {
98
+ /**
99
+ * Binding-only session methods that exchange ProseMirror projections.
100
+ *
101
+ * Editor surfaces expose {@link TreeDocxSessionView}. Only the binding lane sees this extension.
102
+ */
103
+ interface TreeDocxSession extends TreeDocxSessionView {
104
+ /** Project the current BODY revision into a ProseMirror doc. */
105
+ projectDoc(): Node;
106
+ /** Re-project incrementally from the last committed change, reusing untouched paragraphs. */
107
+ reconcile(previousDoc: Node): Node;
103
108
  /**
104
- * The review module's derivation hooks, contributed through the editor's
105
- * `EditorModule` seam. Absent — the free engine — the session's
106
- * `reviewItems()` reports the typed empty queue; parse, preservation, and
107
- * `hasReviewContent` are unaffected.
109
+ * Whether the last commit changed the BLOCK SEQUENCE (a split, join, insert or delete).
110
+ *
111
+ * A host needs this to decide whether the view must be re-projected at all. After a pure
112
+ * text edit, the view already holds what the model holds. Re-projecting wastes work and
113
+ * races the next keystroke.
108
114
  */
109
- readonly reviewModel?: ReviewModuleContribution;
115
+ lastCommitWasStructural(): boolean;
116
+ /** Map an edited BODY doc to tree ops and commit them as one transaction. */
117
+ applyPmDoc(doc: Node): TreeApplyResult;
110
118
  }
119
+
111
120
  /**
112
121
  * Open DOCX bytes into a tree-backed session.
113
122
  *
@@ -1 +1 @@
1
- export{l as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,m as mountTreeSurface,j as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-BCXH4BXB.js';import'./chunk-G4HOFIKJ.js';import'./chunk-RCLZXP3B.js';import'./chunk-LSZ6KPKK.js';import'./chunk-U4JZVSOE.js';import'./chunk-OMCG63ZF.js';import'./chunk-YQ5G6LC7.js';
1
+ export{n as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,o as mountTreeSurface,l as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-F7TGQMVR.js';import'./chunk-D7FAFFTN.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';