superdoc 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (687) hide show
  1. package/AGENTS.md +337 -0
  2. package/LICENSE +661 -0
  3. package/NOTICE +8 -0
  4. package/README.md +107 -0
  5. package/dist/chunks/FindReplaceSurface-BEW-1NhM.es.js +344 -0
  6. package/dist/chunks/FindReplaceSurface-DLxnCQOB.cjs +346 -0
  7. package/dist/chunks/PasswordPromptSurface-BA6HHqEa.es.js +111 -0
  8. package/dist/chunks/PasswordPromptSurface-DMbfDvpQ.cjs +113 -0
  9. package/dist/chunks/PdfViewer-CNOtyS-I.es.js +531 -0
  10. package/dist/chunks/PdfViewer-CoFiGAhm.cjs +535 -0
  11. package/dist/chunks/_plugin-vue_export-helper-BTwbGDKw.cjs +11 -0
  12. package/dist/chunks/_plugin-vue_export-helper-CInC0bKI.es.js +6 -0
  13. package/dist/chunks/blank-docx-CJAXnJKp.es.js +2 -0
  14. package/dist/chunks/blank-docx-DA-G-3VB.cjs +7 -0
  15. package/dist/chunks/constants-CY3R3_kF.es.js +3 -0
  16. package/dist/chunks/constants-sbCZ2O_A.cjs +14 -0
  17. package/dist/chunks/create-super-doc-ui-CXCqHc2m.cjs +9451 -0
  18. package/dist/chunks/create-super-doc-ui-fxF2Q8Ib.es.js +9188 -0
  19. package/dist/chunks/eventemitter3-B60Fsz-a.es.js +131 -0
  20. package/dist/chunks/eventemitter3-DCfwFVNn.cjs +137 -0
  21. package/dist/chunks/jszip-BdUBlUeG.cjs +4679 -0
  22. package/dist/chunks/jszip-DzmwAHr3.es.js +4650 -0
  23. package/dist/chunks/rolldown-runtime-BJVcqBbz.es.js +43 -0
  24. package/dist/chunks/rolldown-runtime-_dR15c8t.cjs +68 -0
  25. package/dist/chunks/uuid-B2Sqk-3p.es.js +32 -0
  26. package/dist/chunks/uuid-CFp0WGVU.cjs +38 -0
  27. package/dist/collaboration-upgrade-engine.cjs +37 -0
  28. package/dist/collaboration-upgrade-engine.es.js +30 -0
  29. package/dist/document-api/src/authorities/authorities.d.ts +29 -0
  30. package/dist/document-api/src/authorities/authorities.types.d.ts +113 -0
  31. package/dist/document-api/src/blocks/blocks.d.ts +29 -0
  32. package/dist/document-api/src/bookmarks/bookmarks.d.ts +15 -0
  33. package/dist/document-api/src/bookmarks/bookmarks.types.d.ts +82 -0
  34. package/dist/document-api/src/capabilities/capabilities.d.ts +82 -0
  35. package/dist/document-api/src/captions/captions.d.ts +17 -0
  36. package/dist/document-api/src/captions/captions.types.d.ts +61 -0
  37. package/dist/document-api/src/citations/citations.d.ts +39 -0
  38. package/dist/document-api/src/citations/citations.types.d.ts +151 -0
  39. package/dist/document-api/src/clear-content/clear-content.d.ts +25 -0
  40. package/dist/document-api/src/clipboard/clipboard.d.ts +11 -0
  41. package/dist/document-api/src/comments/comments.d.ts +222 -0
  42. package/dist/document-api/src/comments/comments.types.d.ts +227 -0
  43. package/dist/document-api/src/content-controls/content-controls.d.ts +136 -0
  44. package/dist/document-api/src/content-controls/content-controls.types.d.ts +453 -0
  45. package/dist/document-api/src/contract/command-catalog.d.ts +17 -0
  46. package/dist/document-api/src/contract/index.d.ts +9 -0
  47. package/dist/document-api/src/contract/metadata-types.d.ts +30 -0
  48. package/dist/document-api/src/contract/operation-definitions.d.ts +3645 -0
  49. package/dist/document-api/src/contract/operation-map.d.ts +5 -0
  50. package/dist/document-api/src/contract/operation-registry.d.ts +2002 -0
  51. package/dist/document-api/src/contract/reference-aliases.d.ts +19 -0
  52. package/dist/document-api/src/contract/reference-doc-map.d.ts +12 -0
  53. package/dist/document-api/src/contract/schemas.d.ts +35 -0
  54. package/dist/document-api/src/contract/step-op-catalog.d.ts +26 -0
  55. package/dist/document-api/src/contract/types.d.ts +31 -0
  56. package/dist/document-api/src/create/create.d.ts +27 -0
  57. package/dist/document-api/src/cross-refs/cross-refs.d.ts +15 -0
  58. package/dist/document-api/src/cross-refs/cross-refs.types.d.ts +68 -0
  59. package/dist/document-api/src/customXml/customXml.d.ts +19 -0
  60. package/dist/document-api/src/customXml/customXml.types.d.ts +148 -0
  61. package/dist/document-api/src/delete/delete.d.ts +20 -0
  62. package/dist/document-api/src/diff/diff.d.ts +14 -0
  63. package/dist/document-api/src/diff/diff.types.d.ts +83 -0
  64. package/dist/document-api/src/diff/index.d.ts +3 -0
  65. package/dist/document-api/src/errors.d.ts +11 -0
  66. package/dist/document-api/src/export/export.d.ts +10 -0
  67. package/dist/document-api/src/export/export.types.d.ts +40 -0
  68. package/dist/document-api/src/extract/extract.d.ts +15 -0
  69. package/dist/document-api/src/fields/fields.d.ts +15 -0
  70. package/dist/document-api/src/fields/fields.types.d.ts +90 -0
  71. package/dist/document-api/src/find/find.d.ts +52 -0
  72. package/dist/document-api/src/footnotes/footnotes.d.ts +17 -0
  73. package/dist/document-api/src/footnotes/footnotes.types.d.ts +104 -0
  74. package/dist/document-api/src/format/format.d.ts +92 -0
  75. package/dist/document-api/src/format/inline-run-patch.d.ts +138 -0
  76. package/dist/document-api/src/get/get.d.ts +19 -0
  77. package/dist/document-api/src/get-html/get-html.d.ts +27 -0
  78. package/dist/document-api/src/get-markdown/get-markdown.d.ts +22 -0
  79. package/dist/document-api/src/get-node/get-node.d.ts +46 -0
  80. package/dist/document-api/src/get-text/get-text.d.ts +22 -0
  81. package/dist/document-api/src/header-footers/header-footers.d.ts +37 -0
  82. package/dist/document-api/src/header-footers/header-footers.types.d.ts +116 -0
  83. package/dist/document-api/src/history/history.d.ts +38 -0
  84. package/dist/document-api/src/history/history.types.d.ts +100 -0
  85. package/dist/document-api/src/hyperlinks/hyperlinks.d.ts +17 -0
  86. package/dist/document-api/src/hyperlinks/hyperlinks.types.d.ts +112 -0
  87. package/dist/document-api/src/images/images.d.ts +63 -0
  88. package/dist/document-api/src/images/images.types.d.ts +209 -0
  89. package/dist/document-api/src/images/z-order.d.ts +10 -0
  90. package/dist/document-api/src/index/index.d.ts +29 -0
  91. package/dist/document-api/src/index/index.types.d.ts +125 -0
  92. package/dist/document-api/src/index.d.ts +560 -0
  93. package/dist/document-api/src/info/info.d.ts +19 -0
  94. package/dist/document-api/src/inline-semantics/directives.d.ts +95 -0
  95. package/dist/document-api/src/inline-semantics/error-types.d.ts +68 -0
  96. package/dist/document-api/src/inline-semantics/index.d.ts +20 -0
  97. package/dist/document-api/src/inline-semantics/property-ids.d.ts +24 -0
  98. package/dist/document-api/src/inline-semantics/token-parsers.d.ts +59 -0
  99. package/dist/document-api/src/inline-semantics/token-sets.d.ts +34 -0
  100. package/dist/document-api/src/insert/insert.d.ts +65 -0
  101. package/dist/document-api/src/invoke/invoke.d.ts +17 -0
  102. package/dist/document-api/src/lists/lists.d.ts +100 -0
  103. package/dist/document-api/src/lists/lists.types.d.ts +499 -0
  104. package/dist/document-api/src/markdown-to-fragment/markdown-to-fragment.d.ts +15 -0
  105. package/dist/document-api/src/metadata/anchored-metadata.d.ts +33 -0
  106. package/dist/document-api/src/metadata/anchored-metadata.types.d.ts +175 -0
  107. package/dist/document-api/src/paragraphs/paragraphs.d.ts +84 -0
  108. package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +214 -0
  109. package/dist/document-api/src/permission-ranges/permission-ranges.d.ts +15 -0
  110. package/dist/document-api/src/permission-ranges/permission-ranges.types.d.ts +49 -0
  111. package/dist/document-api/src/plan/plan.d.ts +73 -0
  112. package/dist/document-api/src/protection/protection.d.ts +11 -0
  113. package/dist/document-api/src/protection/protection.types.d.ts +47 -0
  114. package/dist/document-api/src/ranges/index.d.ts +2 -0
  115. package/dist/document-api/src/ranges/ranges.types.d.ts +121 -0
  116. package/dist/document-api/src/ranges/resolve.d.ts +2 -0
  117. package/dist/document-api/src/receipt-bridge.d.ts +30 -0
  118. package/dist/document-api/src/replace/replace.d.ts +24 -0
  119. package/dist/document-api/src/sections/sections.d.ts +42 -0
  120. package/dist/document-api/src/sections/sections.types.d.ts +236 -0
  121. package/dist/document-api/src/selection/selection.d.ts +23 -0
  122. package/dist/document-api/src/selection/selection.types.d.ts +85 -0
  123. package/dist/document-api/src/selection-mutation.d.ts +46 -0
  124. package/dist/document-api/src/styles/apply.d.ts +142 -0
  125. package/dist/document-api/src/styles/catalog.d.ts +154 -0
  126. package/dist/document-api/src/styles/index.d.ts +14 -0
  127. package/dist/document-api/src/styles/registry.d.ts +43 -0
  128. package/dist/document-api/src/styles/schema.d.ts +9 -0
  129. package/dist/document-api/src/styles/validation.d.ts +38 -0
  130. package/dist/document-api/src/tables/color-formats.d.ts +12 -0
  131. package/dist/document-api/src/tables/tables.d.ts +83 -0
  132. package/dist/document-api/src/templates/apply.d.ts +160 -0
  133. package/dist/document-api/src/templates/index.d.ts +7 -0
  134. package/dist/document-api/src/toc/toc.d.ts +25 -0
  135. package/dist/document-api/src/toc/toc.types.d.ts +247 -0
  136. package/dist/document-api/src/track-changes/track-changes.d.ts +177 -0
  137. package/dist/document-api/src/types/adapter-result.d.ts +10 -0
  138. package/dist/document-api/src/types/address.d.ts +169 -0
  139. package/dist/document-api/src/types/base.d.ts +89 -0
  140. package/dist/document-api/src/types/blocks.types.d.ts +190 -0
  141. package/dist/document-api/src/types/clipboard.d.ts +216 -0
  142. package/dist/document-api/src/types/comments.types.d.ts +17 -0
  143. package/dist/document-api/src/types/create.types.d.ts +56 -0
  144. package/dist/document-api/src/types/discovery.d.ts +99 -0
  145. package/dist/document-api/src/types/extract.types.d.ts +163 -0
  146. package/dist/document-api/src/types/fragment.d.ts +29 -0
  147. package/dist/document-api/src/types/index.d.ts +30 -0
  148. package/dist/document-api/src/types/info.types.d.ts +109 -0
  149. package/dist/document-api/src/types/inline.types.d.ts +28 -0
  150. package/dist/document-api/src/types/media.types.d.ts +72 -0
  151. package/dist/document-api/src/types/mutation-plan.types.d.ts +264 -0
  152. package/dist/document-api/src/types/node.d.ts +9 -0
  153. package/dist/document-api/src/types/paragraph.types.d.ts +61 -0
  154. package/dist/document-api/src/types/placement.d.ts +24 -0
  155. package/dist/document-api/src/types/query-match.types.d.ts +212 -0
  156. package/dist/document-api/src/types/query.d.ts +133 -0
  157. package/dist/document-api/src/types/receipt.d.ts +191 -0
  158. package/dist/document-api/src/types/references.types.d.ts +9 -0
  159. package/dist/document-api/src/types/sd-contract.d.ts +54 -0
  160. package/dist/document-api/src/types/sd-envelope.d.ts +59 -0
  161. package/dist/document-api/src/types/sd-nodes.d.ts +375 -0
  162. package/dist/document-api/src/types/sd-objects.d.ts +144 -0
  163. package/dist/document-api/src/types/sd-props.d.ts +240 -0
  164. package/dist/document-api/src/types/sd-sections.d.ts +126 -0
  165. package/dist/document-api/src/types/sd-styles.d.ts +36 -0
  166. package/dist/document-api/src/types/step-manifest.types.d.ts +30 -0
  167. package/dist/document-api/src/types/story.types.d.ts +123 -0
  168. package/dist/document-api/src/types/structural-input.d.ts +40 -0
  169. package/dist/document-api/src/types/structured.types.d.ts +21 -0
  170. package/dist/document-api/src/types/style-policy.types.d.ts +49 -0
  171. package/dist/document-api/src/types/table-operations.types.d.ts +618 -0
  172. package/dist/document-api/src/types/tables.types.d.ts +43 -0
  173. package/dist/document-api/src/types/toc.types.d.ts +1 -0
  174. package/dist/document-api/src/types/track-changes.types.d.ts +703 -0
  175. package/dist/document-api/src/validation/create-location-validator.d.ts +2 -0
  176. package/dist/document-api/src/validation/fragment-validator.d.ts +13 -0
  177. package/dist/document-api/src/validation/selection-target-validator.d.ts +7 -0
  178. package/dist/document-api/src/validation/story-validator.d.ts +12 -0
  179. package/dist/document-api/src/validation-primitives.d.ts +29 -0
  180. package/dist/document-api/src/write/locator.d.ts +24 -0
  181. package/dist/document-api/src/write/write.d.ts +73 -0
  182. package/dist/images/altText_add.svg +3 -0
  183. package/dist/images/altText_disclaimer.svg +3 -0
  184. package/dist/images/altText_done.svg +3 -0
  185. package/dist/images/altText_spinner.svg +30 -0
  186. package/dist/images/altText_warning.svg +3 -0
  187. package/dist/images/annotation-check.svg +11 -0
  188. package/dist/images/annotation-comment.svg +16 -0
  189. package/dist/images/annotation-help.svg +26 -0
  190. package/dist/images/annotation-insert.svg +10 -0
  191. package/dist/images/annotation-key.svg +11 -0
  192. package/dist/images/annotation-newparagraph.svg +11 -0
  193. package/dist/images/annotation-noicon.svg +7 -0
  194. package/dist/images/annotation-note.svg +42 -0
  195. package/dist/images/annotation-paperclip.svg +6 -0
  196. package/dist/images/annotation-paragraph.svg +16 -0
  197. package/dist/images/annotation-pushpin.svg +7 -0
  198. package/dist/images/checkmark.svg +5 -0
  199. package/dist/images/comment-actionsButton.svg +3 -0
  200. package/dist/images/comment-closeButton.svg +3 -0
  201. package/dist/images/comment-editButton.svg +8 -0
  202. package/dist/images/comment-popup-editButton.svg +5 -0
  203. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  204. package/dist/images/cursor-editorFreeText.svg +3 -0
  205. package/dist/images/cursor-editorInk.svg +4 -0
  206. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  207. package/dist/images/editor-toolbar-delete.svg +5 -0
  208. package/dist/images/editor-toolbar-edit.svg +3 -0
  209. package/dist/images/findbarButton-next.svg +3 -0
  210. package/dist/images/findbarButton-previous.svg +3 -0
  211. package/dist/images/gv-toolbarButton-download.svg +3 -0
  212. package/dist/images/loading-icon.gif +0 -0
  213. package/dist/images/loading.svg +1 -0
  214. package/dist/images/messageBar_closingButton.svg +3 -0
  215. package/dist/images/messageBar_info.svg +3 -0
  216. package/dist/images/messageBar_warning.svg +3 -0
  217. package/dist/images/pages_closeButton.svg +3 -0
  218. package/dist/images/pages_selected.svg +7 -0
  219. package/dist/images/pages_viewArrow.svg +3 -0
  220. package/dist/images/pages_viewButton.svg +3 -0
  221. package/dist/images/secondaryToolbarButton-documentProperties.svg +3 -0
  222. package/dist/images/secondaryToolbarButton-firstPage.svg +3 -0
  223. package/dist/images/secondaryToolbarButton-handTool.svg +3 -0
  224. package/dist/images/secondaryToolbarButton-lastPage.svg +3 -0
  225. package/dist/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  226. package/dist/images/secondaryToolbarButton-rotateCw.svg +3 -0
  227. package/dist/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  228. package/dist/images/secondaryToolbarButton-scrollPage.svg +3 -0
  229. package/dist/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  230. package/dist/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  231. package/dist/images/secondaryToolbarButton-selectTool.svg +3 -0
  232. package/dist/images/secondaryToolbarButton-spreadEven.svg +3 -0
  233. package/dist/images/secondaryToolbarButton-spreadNone.svg +3 -0
  234. package/dist/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  235. package/dist/images/toolbarButton-bookmark.svg +3 -0
  236. package/dist/images/toolbarButton-currentOutlineItem.svg +3 -0
  237. package/dist/images/toolbarButton-download.svg +4 -0
  238. package/dist/images/toolbarButton-editorFreeText.svg +5 -0
  239. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  240. package/dist/images/toolbarButton-editorInk.svg +4 -0
  241. package/dist/images/toolbarButton-editorSignature.svg +6 -0
  242. package/dist/images/toolbarButton-editorStamp.svg +8 -0
  243. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  244. package/dist/images/toolbarButton-openFile.svg +3 -0
  245. package/dist/images/toolbarButton-pageDown.svg +3 -0
  246. package/dist/images/toolbarButton-pageUp.svg +3 -0
  247. package/dist/images/toolbarButton-presentationMode.svg +3 -0
  248. package/dist/images/toolbarButton-print.svg +3 -0
  249. package/dist/images/toolbarButton-search.svg +3 -0
  250. package/dist/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  251. package/dist/images/toolbarButton-viewAttachments.svg +3 -0
  252. package/dist/images/toolbarButton-viewLayers.svg +3 -0
  253. package/dist/images/toolbarButton-viewOutline.svg +3 -0
  254. package/dist/images/toolbarButton-viewThumbnail.svg +3 -0
  255. package/dist/images/toolbarButton-viewsManagerToggle.svg +3 -0
  256. package/dist/images/toolbarButton-zoomIn.svg +3 -0
  257. package/dist/images/toolbarButton-zoomOut.svg +3 -0
  258. package/dist/images/treeitem-collapsed.svg +1 -0
  259. package/dist/images/treeitem-expanded.svg +1 -0
  260. package/dist/layout-engine/contracts/src/author-colors.d.ts +56 -0
  261. package/dist/layout-engine/contracts/src/cell-spacing.d.ts +12 -0
  262. package/dist/layout-engine/contracts/src/clip-path-inset.d.ts +27 -0
  263. package/dist/layout-engine/contracts/src/column-layout.d.ts +79 -0
  264. package/dist/layout-engine/contracts/src/direction-context.d.ts +219 -0
  265. package/dist/layout-engine/contracts/src/drawing-taxonomy.d.ts +126 -0
  266. package/dist/layout-engine/contracts/src/engines/image-wrap.d.ts +54 -0
  267. package/dist/layout-engine/contracts/src/engines/index.d.ts +17 -0
  268. package/dist/layout-engine/contracts/src/engines/lists.d.ts +57 -0
  269. package/dist/layout-engine/contracts/src/engines/paragraph.d.ts +59 -0
  270. package/dist/layout-engine/contracts/src/engines/tables.d.ts +89 -0
  271. package/dist/layout-engine/contracts/src/engines/tabs.d.ts +117 -0
  272. package/dist/layout-engine/contracts/src/graphic-placement.d.ts +76 -0
  273. package/dist/layout-engine/contracts/src/header-footer-inheritance.d.ts +22 -0
  274. package/dist/layout-engine/contracts/src/header-footer-resolution.d.ts +28 -0
  275. package/dist/layout-engine/contracts/src/incremental-dependency.d.ts +10 -0
  276. package/dist/layout-engine/contracts/src/index.d.ts +2459 -0
  277. package/dist/layout-engine/contracts/src/justify-utils.d.ts +98 -0
  278. package/dist/layout-engine/contracts/src/layout-identity.d.ts +136 -0
  279. package/dist/layout-engine/contracts/src/ooxml-z-index.d.ts +46 -0
  280. package/dist/layout-engine/contracts/src/page-number-formatting.d.ts +26 -0
  281. package/dist/layout-engine/contracts/src/page-ref-anchor.d.ts +2 -0
  282. package/dist/layout-engine/contracts/src/pm-range.d.ts +45 -0
  283. package/dist/layout-engine/contracts/src/resolved-layout.d.ts +541 -0
  284. package/dist/layout-engine/contracts/src/run-helpers.d.ts +23 -0
  285. package/dist/layout-engine/contracts/src/sdt-container.d.ts +13 -0
  286. package/dist/layout-engine/contracts/src/segment-geometry.d.ts +192 -0
  287. package/dist/layout-engine/contracts/src/semantic-colors.d.ts +150 -0
  288. package/dist/layout-engine/contracts/src/table-cell-spacing.d.ts +12 -0
  289. package/dist/layout-engine/contracts/src/table-column-rescale.d.ts +13 -0
  290. package/dist/layout-engine/contracts/src/vertical-text.d.ts +43 -0
  291. package/dist/layout-engine/dom-contract/src/class-names.d.ts +62 -0
  292. package/dist/layout-engine/dom-contract/src/data-attrs.d.ts +103 -0
  293. package/dist/layout-engine/dom-contract/src/index.d.ts +18 -0
  294. package/dist/layout-engine/dom-contract/src/selectors.d.ts +47 -0
  295. package/dist/layout-engine/layout-bridge/src/cache-warmer.d.ts +73 -0
  296. package/dist/layout-engine/layout-bridge/src/cache.d.ts +143 -0
  297. package/dist/layout-engine/layout-bridge/src/cacheInvalidation.d.ts +117 -0
  298. package/dist/layout-engine/layout-bridge/src/cursor-renderer.d.ts +201 -0
  299. package/dist/layout-engine/layout-bridge/src/debounced-passes.d.ts +130 -0
  300. package/dist/layout-engine/layout-bridge/src/diff.d.ts +36 -0
  301. package/dist/layout-engine/layout-bridge/src/dirty-tracker.d.ts +128 -0
  302. package/dist/layout-engine/layout-bridge/src/dom-mapping.d.ts +80 -0
  303. package/dist/layout-engine/layout-bridge/src/featureFlags.d.ts +95 -0
  304. package/dist/layout-engine/layout-bridge/src/field-annotation-key.d.ts +2 -0
  305. package/dist/layout-engine/layout-bridge/src/focus-watchdog.d.ts +170 -0
  306. package/dist/layout-engine/layout-bridge/src/font-metrics-cache.d.ts +164 -0
  307. package/dist/layout-engine/layout-bridge/src/footnote-scorer.d.ts +63 -0
  308. package/dist/layout-engine/layout-bridge/src/headerFooterUtils.d.ts +218 -0
  309. package/dist/layout-engine/layout-bridge/src/ime-handler.d.ts +81 -0
  310. package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +390 -0
  311. package/dist/layout-engine/layout-bridge/src/index.d.ts +211 -0
  312. package/dist/layout-engine/layout-bridge/src/instrumentation.d.ts +245 -0
  313. package/dist/layout-engine/layout-bridge/src/layoutHeaderFooter.d.ts +123 -0
  314. package/dist/layout-engine/layout-bridge/src/list-indent-utils.d.ts +205 -0
  315. package/dist/layout-engine/layout-bridge/src/local-paragraph-layout.d.ts +93 -0
  316. package/dist/layout-engine/layout-bridge/src/neutral-hit.d.ts +142 -0
  317. package/dist/layout-engine/layout-bridge/src/neutral-segment-geometry.d.ts +32 -0
  318. package/dist/layout-engine/layout-bridge/src/page-geometry-helper.d.ts +197 -0
  319. package/dist/layout-engine/layout-bridge/src/paragraph-hash-utils.d.ts +126 -0
  320. package/dist/layout-engine/layout-bridge/src/paragraph-line-cache.d.ts +152 -0
  321. package/dist/layout-engine/layout-bridge/src/performance-metrics.d.ts +249 -0
  322. package/dist/layout-engine/layout-bridge/src/pm-dom-fallback.d.ts +188 -0
  323. package/dist/layout-engine/layout-bridge/src/pm-position-validator.d.ts +100 -0
  324. package/dist/layout-engine/layout-bridge/src/position-hit.d.ts +167 -0
  325. package/dist/layout-engine/layout-bridge/src/remeasure.d.ts +75 -0
  326. package/dist/layout-engine/layout-bridge/src/resolveHeaderFooterTokens.d.ts +76 -0
  327. package/dist/layout-engine/layout-bridge/src/rtl-text-geometry.d.ts +34 -0
  328. package/dist/layout-engine/layout-bridge/src/run-visual-marks.d.ts +12 -0
  329. package/dist/layout-engine/layout-bridge/src/safety-net.d.ts +234 -0
  330. package/dist/layout-engine/layout-bridge/src/sectionAwareHeaderFooter.d.ts +15 -0
  331. package/dist/layout-engine/layout-bridge/src/table-handler.d.ts +86 -0
  332. package/dist/layout-engine/layout-bridge/src/text-boundaries.d.ts +17 -0
  333. package/dist/layout-engine/layout-bridge/src/text-measurement.d.ts +69 -0
  334. package/dist/layout-engine/layout-bridge/src/track-changes-handler.d.ts +90 -0
  335. package/dist/layout-engine/layout-bridge/src/tracked-changes-utils.d.ts +41 -0
  336. package/dist/layout-engine/layout-engine/src/anchors.d.ts +52 -0
  337. package/dist/layout-engine/layout-engine/src/column-balancing.d.ts +255 -0
  338. package/dist/layout-engine/layout-engine/src/column-utils.d.ts +1 -0
  339. package/dist/layout-engine/layout-engine/src/floating-objects.d.ts +60 -0
  340. package/dist/layout-engine/layout-engine/src/floating-table-anchor.d.ts +21 -0
  341. package/dist/layout-engine/layout-engine/src/index.d.ts +349 -0
  342. package/dist/layout-engine/layout-engine/src/layout-drawing.d.ts +60 -0
  343. package/dist/layout-engine/layout-engine/src/layout-image.d.ts +16 -0
  344. package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +101 -0
  345. package/dist/layout-engine/layout-engine/src/layout-table.d.ts +71 -0
  346. package/dist/layout-engine/layout-engine/src/layout-textbox.d.ts +4 -0
  347. package/dist/layout-engine/layout-engine/src/layout-utils.d.ts +104 -0
  348. package/dist/layout-engine/layout-engine/src/normalize-header-footer-fragments.d.ts +45 -0
  349. package/dist/layout-engine/layout-engine/src/pageNumbering.d.ts +73 -0
  350. package/dist/layout-engine/layout-engine/src/paginator.d.ts +131 -0
  351. package/dist/layout-engine/layout-engine/src/paragraph-layout-eligibility.d.ts +1 -0
  352. package/dist/layout-engine/layout-engine/src/resolvePageRefs.d.ts +31 -0
  353. package/dist/layout-engine/layout-engine/src/resolvePageTokens.d.ts +82 -0
  354. package/dist/layout-engine/layout-engine/src/section-breaks.d.ts +98 -0
  355. package/dist/layout-engine/layout-engine/src/section-props.d.ts +65 -0
  356. package/dist/layout-engine/layout-engine/src/table-cell-slice.d.ts +98 -0
  357. package/dist/layout-engine/painters/dom/src/_test-utils.d.ts +21 -0
  358. package/dist/layout-engine/painters/dom/src/chart-renderer.d.ts +13 -0
  359. package/dist/layout-engine/painters/dom/src/constants.d.ts +10 -0
  360. package/dist/layout-engine/painters/dom/src/css-token.d.ts +10 -0
  361. package/dist/layout-engine/painters/dom/src/features/feature-registry.d.ts +41 -0
  362. package/dist/layout-engine/painters/dom/src/features/inline-direction/index.d.ts +22 -0
  363. package/dist/layout-engine/painters/dom/src/features/inline-direction/rtl-styles.d.ts +27 -0
  364. package/dist/layout-engine/painters/dom/src/features/inline-direction/run-direction.d.ts +75 -0
  365. package/dist/layout-engine/painters/dom/src/features/math/converters/accent.d.ts +25 -0
  366. package/dist/layout-engine/painters/dom/src/features/math/converters/bar.d.ts +16 -0
  367. package/dist/layout-engine/painters/dom/src/features/math/converters/box.d.ts +38 -0
  368. package/dist/layout-engine/painters/dom/src/features/math/converters/delimiter.d.ts +13 -0
  369. package/dist/layout-engine/painters/dom/src/features/math/converters/equation-array.d.ts +19 -0
  370. package/dist/layout-engine/painters/dom/src/features/math/converters/fraction.d.ts +13 -0
  371. package/dist/layout-engine/painters/dom/src/features/math/converters/function.d.ts +16 -0
  372. package/dist/layout-engine/painters/dom/src/features/math/converters/group-character.d.ts +26 -0
  373. package/dist/layout-engine/painters/dom/src/features/math/converters/index.d.ts +27 -0
  374. package/dist/layout-engine/painters/dom/src/features/math/converters/lower-limit.d.ts +13 -0
  375. package/dist/layout-engine/painters/dom/src/features/math/converters/math-run.d.ts +47 -0
  376. package/dist/layout-engine/painters/dom/src/features/math/converters/matrix.d.ts +23 -0
  377. package/dist/layout-engine/painters/dom/src/features/math/converters/nary.d.ts +23 -0
  378. package/dist/layout-engine/painters/dom/src/features/math/converters/phantom.d.ts +17 -0
  379. package/dist/layout-engine/painters/dom/src/features/math/converters/pre-sub-superscript.d.ts +25 -0
  380. package/dist/layout-engine/painters/dom/src/features/math/converters/radical.d.ts +14 -0
  381. package/dist/layout-engine/painters/dom/src/features/math/converters/sub-superscript.d.ts +13 -0
  382. package/dist/layout-engine/painters/dom/src/features/math/converters/subscript.d.ts +13 -0
  383. package/dist/layout-engine/painters/dom/src/features/math/converters/superscript.d.ts +13 -0
  384. package/dist/layout-engine/painters/dom/src/features/math/converters/upper-limit.d.ts +13 -0
  385. package/dist/layout-engine/painters/dom/src/features/math/index.d.ts +14 -0
  386. package/dist/layout-engine/painters/dom/src/features/math/omml-to-mathml.d.ts +18 -0
  387. package/dist/layout-engine/painters/dom/src/features/math/types.d.ts +41 -0
  388. package/dist/layout-engine/painters/dom/src/images/drawing-image.d.ts +5 -0
  389. package/dist/layout-engine/painters/dom/src/images/hyperlink.d.ts +2 -0
  390. package/dist/layout-engine/painters/dom/src/images/image-block.d.ts +15 -0
  391. package/dist/layout-engine/painters/dom/src/images/image-clip-path.d.ts +17 -0
  392. package/dist/layout-engine/painters/dom/src/images/image-fragment.d.ts +34 -0
  393. package/dist/layout-engine/painters/dom/src/images/image-selectors.d.ts +9 -0
  394. package/dist/layout-engine/painters/dom/src/images/types.d.ts +2 -0
  395. package/dist/layout-engine/painters/dom/src/index.d.ts +125 -0
  396. package/dist/layout-engine/painters/dom/src/page-content.d.ts +209 -0
  397. package/dist/layout-engine/painters/dom/src/paragraph/block-version.d.ts +8 -0
  398. package/dist/layout-engine/painters/dom/src/paragraph/borders/border-layer.d.ts +59 -0
  399. package/dist/layout-engine/painters/dom/src/paragraph/borders/group-analysis.d.ts +38 -0
  400. package/dist/layout-engine/painters/dom/src/paragraph/borders/index.d.ts +18 -0
  401. package/dist/layout-engine/painters/dom/src/paragraph/frame.d.ts +3 -0
  402. package/dist/layout-engine/painters/dom/src/paragraph/indentation.d.ts +25 -0
  403. package/dist/layout-engine/painters/dom/src/paragraph/list-marker.d.ts +51 -0
  404. package/dist/layout-engine/painters/dom/src/paragraph/marker-tracked-change.d.ts +34 -0
  405. package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphContent.d.ts +87 -0
  406. package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphFragment.d.ts +33 -0
  407. package/dist/layout-engine/painters/dom/src/paragraph/styles.d.ts +3 -0
  408. package/dist/layout-engine/painters/dom/src/paragraph-hash-utils.d.ts +13 -0
  409. package/dist/layout-engine/painters/dom/src/pm-position-validation.d.ts +149 -0
  410. package/dist/layout-engine/painters/dom/src/renderer.d.ts +681 -0
  411. package/dist/layout-engine/painters/dom/src/ruler/index.d.ts +41 -0
  412. package/dist/layout-engine/painters/dom/src/ruler/ruler-core.d.ts +195 -0
  413. package/dist/layout-engine/painters/dom/src/ruler/ruler-renderer.d.ts +97 -0
  414. package/dist/layout-engine/painters/dom/src/ruler/ruler-styles.d.ts +31 -0
  415. package/dist/layout-engine/painters/dom/src/runs/field-annotation-run.d.ts +14 -0
  416. package/dist/layout-engine/painters/dom/src/runs/font-synthesis.d.ts +1 -0
  417. package/dist/layout-engine/painters/dom/src/runs/formatting-marks.d.ts +3 -0
  418. package/dist/layout-engine/painters/dom/src/runs/hash.d.ts +82 -0
  419. package/dist/layout-engine/painters/dom/src/runs/image-run.d.ts +37 -0
  420. package/dist/layout-engine/painters/dom/src/runs/index.d.ts +13 -0
  421. package/dist/layout-engine/painters/dom/src/runs/links.d.ts +58 -0
  422. package/dist/layout-engine/painters/dom/src/runs/math-run.d.ts +7 -0
  423. package/dist/layout-engine/painters/dom/src/runs/render-line.d.ts +2 -0
  424. package/dist/layout-engine/painters/dom/src/runs/render-run.d.ts +12 -0
  425. package/dist/layout-engine/painters/dom/src/runs/tab-run.d.ts +66 -0
  426. package/dist/layout-engine/painters/dom/src/runs/text-run.d.ts +35 -0
  427. package/dist/layout-engine/painters/dom/src/runs/tracked-changes.d.ts +90 -0
  428. package/dist/layout-engine/painters/dom/src/runs/types.d.ts +67 -0
  429. package/dist/layout-engine/painters/dom/src/sdt/boundaries.d.ts +16 -0
  430. package/dist/layout-engine/painters/dom/src/sdt/container.d.ts +32 -0
  431. package/dist/layout-engine/painters/dom/src/sdt/dataset.d.ts +7 -0
  432. package/dist/layout-engine/painters/dom/src/sdt/inline.d.ts +9 -0
  433. package/dist/layout-engine/painters/dom/src/sdt/snapshot.d.ts +29 -0
  434. package/dist/layout-engine/painters/dom/src/styles.d.ts +71 -0
  435. package/dist/layout-engine/painters/dom/src/svg-utils.d.ts +101 -0
  436. package/dist/layout-engine/painters/dom/src/table/border-utils.d.ts +185 -0
  437. package/dist/layout-engine/painters/dom/src/table/grid-geometry.d.ts +69 -0
  438. package/dist/layout-engine/painters/dom/src/table/renderTableCell.d.ts +170 -0
  439. package/dist/layout-engine/painters/dom/src/table/renderTableFragment.d.ts +132 -0
  440. package/dist/layout-engine/painters/dom/src/table/renderTableRow.d.ts +146 -0
  441. package/dist/layout-engine/painters/dom/src/test-utils/normalize-line.d.ts +39 -0
  442. package/dist/layout-engine/painters/dom/src/utils/anchor-helpers.d.ts +3 -0
  443. package/dist/layout-engine/painters/dom/src/utils/apply-styles.d.ts +1 -0
  444. package/dist/layout-engine/painters/dom/src/utils/layout-identity.d.ts +9 -0
  445. package/dist/layout-engine/painters/dom/src/utils/source-anchor.d.ts +2 -0
  446. package/dist/layout-engine/style-engine/src/bench/resolveSdtMetadata.bench.d.ts +1 -0
  447. package/dist/layout-engine/style-engine/src/cascade.d.ts +43 -0
  448. package/dist/layout-engine/style-engine/src/index.d.ts +121 -0
  449. package/dist/layout-engine/style-engine/src/normalize/colors.d.ts +13 -0
  450. package/dist/layout-engine/style-engine/src/normalize/index.d.ts +13 -0
  451. package/dist/layout-engine/style-engine/src/normalize/paragraph-attrs.d.ts +3 -0
  452. package/dist/layout-engine/style-engine/src/normalize/run-attrs.d.ts +17 -0
  453. package/dist/layout-engine/style-engine/src/normalize/types.d.ts +36 -0
  454. package/dist/layout-engine/style-engine/src/normalize/units.d.ts +13 -0
  455. package/dist/layout-engine/style-engine/src/ooxml/index.d.ts +64 -0
  456. package/dist/layout-engine/style-engine/src/ooxml/numbering-types.d.ts +126 -0
  457. package/dist/layout-engine/style-engine/src/ooxml/styles-types.d.ts +363 -0
  458. package/dist/layout-engine/style-engine/src/ooxml/table-style-selection.d.ts +86 -0
  459. package/dist/layout-engine/style-engine/src/ooxml/types.d.ts +459 -0
  460. package/dist/layout-engine/style-engine/src/ooxml/word-style-model/parse-theme.d.ts +33 -0
  461. package/dist/layout-engine/style-engine/src/ooxml/word-style-model/parse-xml.d.ts +29 -0
  462. package/dist/public/ui-react.cjs +175 -0
  463. package/dist/public/ui-react.es.js +159 -0
  464. package/dist/public/ui.cjs +5 -0
  465. package/dist/public/ui.es.js +2 -0
  466. package/dist/shared/common/comments-types.d.ts +102 -0
  467. package/dist/shared/common/layout-constants.d.ts +7 -0
  468. package/dist/shared/common/list-marker-utils.d.ts +186 -0
  469. package/dist/shared/common/list-numbering/index.d.ts +16 -0
  470. package/dist/shared/font-system/src/activation.d.ts +64 -0
  471. package/dist/shared/font-system/src/bundled-manifest.d.ts +32 -0
  472. package/dist/shared/font-system/src/bundled.d.ts +41 -0
  473. package/dist/shared/font-system/src/document-font-options.d.ts +53 -0
  474. package/dist/shared/font-system/src/epoch.d.ts +6 -0
  475. package/dist/shared/font-system/src/font-offerings.d.ts +120 -0
  476. package/dist/shared/font-system/src/index.d.ts +35 -0
  477. package/dist/shared/font-system/src/os2.d.ts +30 -0
  478. package/dist/shared/font-system/src/registry.d.ts +188 -0
  479. package/dist/shared/font-system/src/report.d.ts +98 -0
  480. package/dist/shared/font-system/src/resolver.d.ts +215 -0
  481. package/dist/shared/font-system/src/substitution-evidence.d.ts +103 -0
  482. package/dist/shared/font-system/src/types.d.ts +128 -0
  483. package/dist/style.css +3316 -0
  484. package/dist/style.layered.css +3316 -0
  485. package/dist/superdoc/src/SuperDoc.vue.d.ts +88 -0
  486. package/dist/superdoc/src/cdn-entry.d.ts +2 -0
  487. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +62 -0
  488. package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +26 -0
  489. package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +19 -0
  490. package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +30 -0
  491. package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +10 -0
  492. package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +1 -0
  493. package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +6 -0
  494. package/dist/superdoc/src/components/CommentsLayer/comment-schemas.d.ts +18 -0
  495. package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +9 -0
  496. package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +21 -0
  497. package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +28 -0
  498. package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +7 -0
  499. package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +2 -0
  500. package/dist/superdoc/src/components/CommentsLayer/types.d.ts +3 -0
  501. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +8 -0
  502. package/dist/superdoc/src/components/CommentsLayer/use-conversation.d.ts +22 -0
  503. package/dist/superdoc/src/components/CommentsLayer/use-floating-comment.d.ts +11 -0
  504. package/dist/superdoc/src/components/HtmlViewer/HtmlViewer.vue.d.ts +10 -0
  505. package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +61 -0
  506. package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +21 -0
  507. package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +24 -0
  508. package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +19 -0
  509. package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +17 -0
  510. package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +18 -0
  511. package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +19 -0
  512. package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +17 -0
  513. package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +12 -0
  514. package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +19 -0
  515. package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +10 -0
  516. package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +31 -0
  517. package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +5 -0
  518. package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +32 -0
  519. package/dist/superdoc/src/composables/replace-continuation.d.ts +37 -0
  520. package/dist/superdoc/src/composables/use-ai.d.ts +10 -0
  521. package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +10 -0
  522. package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +21 -0
  523. package/dist/superdoc/src/composables/use-document.d.ts +34 -0
  524. package/dist/superdoc/src/composables/use-field.d.ts +33 -0
  525. package/dist/superdoc/src/composables/use-find-replace.d.ts +83 -0
  526. package/dist/superdoc/src/composables/use-high-contrast-mode.d.ts +4 -0
  527. package/dist/superdoc/src/composables/use-link-popover.d.ts +221 -0
  528. package/dist/superdoc/src/composables/use-password-prompt.d.ts +33 -0
  529. package/dist/superdoc/src/composables/use-selected-text.d.ts +16 -0
  530. package/dist/superdoc/src/composables/use-viewport-fit.d.ts +50 -0
  531. package/dist/superdoc/src/composables/useUiFontFamily.d.ts +24 -0
  532. package/dist/superdoc/src/core/EventEmitter.d.ts +55 -0
  533. package/dist/superdoc/src/core/SuperDoc.d.ts +775 -0
  534. package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +4 -0
  535. package/dist/superdoc/src/core/collaboration/collaboration.d.ts +28 -0
  536. package/dist/superdoc/src/core/collaboration/helpers.d.ts +8 -0
  537. package/dist/superdoc/src/core/collaboration/permissions.d.ts +19 -0
  538. package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +99 -0
  539. package/dist/superdoc/src/core/collaboration/room-overwrite.d.ts +22 -0
  540. package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +57 -0
  541. package/dist/superdoc/src/core/config/merge-defined.d.ts +35 -0
  542. package/dist/superdoc/src/core/config/normalize-interaction-config.d.ts +15 -0
  543. package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +23 -0
  544. package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +62 -0
  545. package/dist/superdoc/src/core/create-app.d.ts +32 -0
  546. package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +9 -0
  547. package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +117 -0
  548. package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -0
  549. package/dist/superdoc/src/core/editor-runtime/root-marker.d.ts +33 -0
  550. package/dist/superdoc/src/core/editor-runtime/types.d.ts +405 -0
  551. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +185 -0
  552. package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +47 -0
  553. package/dist/superdoc/src/core/extensions/define.d.ts +56 -0
  554. package/dist/superdoc/src/core/extensions/index.d.ts +2 -0
  555. package/dist/superdoc/src/core/extensions/types.d.ts +519 -0
  556. package/dist/superdoc/src/core/helpers/export.d.ts +2 -0
  557. package/dist/superdoc/src/core/helpers/file.d.ts +43 -0
  558. package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +60 -0
  559. package/dist/superdoc/src/core/helpers/normalize-user.d.ts +13 -0
  560. package/dist/superdoc/src/core/index.d.ts +1 -0
  561. package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -0
  562. package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -0
  563. package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -0
  564. package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -0
  565. package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +66 -0
  566. package/dist/superdoc/src/core/surface-manager.d.ts +90 -0
  567. package/dist/superdoc/src/core/theme/create-theme.d.ts +82 -0
  568. package/dist/superdoc/src/core/types/index.d.ts +3006 -0
  569. package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +3 -0
  570. package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +16 -0
  571. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +97 -0
  572. package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +247 -0
  573. package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +251 -0
  574. package/dist/superdoc/src/core/whiteboard/WhiteboardRenderer.d.ts +2 -0
  575. package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +1 -0
  576. package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -0
  577. package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -0
  578. package/dist/superdoc/src/helpers/collect-touched-tracked-change-ids.d.ts +11 -0
  579. package/dist/superdoc/src/helpers/comment-focus.d.ts +4 -0
  580. package/dist/superdoc/src/helpers/comment-small-screen.d.ts +14 -0
  581. package/dist/superdoc/src/helpers/deprecation.d.ts +26 -0
  582. package/dist/superdoc/src/helpers/floor.d.ts +1 -0
  583. package/dist/superdoc/src/helpers/group-changes.d.ts +1 -0
  584. package/dist/superdoc/src/helpers/interaction-trace.d.ts +26 -0
  585. package/dist/superdoc/src/helpers/selection-source.d.ts +1 -0
  586. package/dist/superdoc/src/helpers/transaction-touches-structural-change.d.ts +19 -0
  587. package/dist/superdoc/src/helpers/use-selection.d.ts +17 -0
  588. package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +22 -0
  589. package/dist/superdoc/src/helpers/v2-remote-review-hydration.d.ts +12 -0
  590. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +15 -0
  591. package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +19 -0
  592. package/dist/superdoc/src/helpers/v2-review-target.d.ts +7 -0
  593. package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +12 -0
  594. package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +5 -0
  595. package/dist/superdoc/src/icons.d.ts +11 -0
  596. package/dist/superdoc/src/index.d.cts +13 -0
  597. package/dist/superdoc/src/index.d.ts +11 -0
  598. package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +21 -0
  599. package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +6 -0
  600. package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +10 -0
  601. package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +10 -0
  602. package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +10 -0
  603. package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +10 -0
  604. package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +14 -0
  605. package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +13 -0
  606. package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +37 -0
  607. package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +12 -0
  608. package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +10 -0
  609. package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +34 -0
  610. package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +14 -0
  611. package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +8 -0
  612. package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +6 -0
  613. package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +4 -0
  614. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +24 -0
  615. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +11 -0
  616. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +18 -0
  617. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +38 -0
  618. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +8 -0
  619. package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +24 -0
  620. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +102 -0
  621. package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +17 -0
  622. package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +1 -0
  623. package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +11 -0
  624. package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +5 -0
  625. package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +1 -0
  626. package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +5 -0
  627. package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +10 -0
  628. package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +4 -0
  629. package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +1 -0
  630. package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +76 -0
  631. package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +58 -0
  632. package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +8 -0
  633. package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +48 -0
  634. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +237 -0
  635. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +59 -0
  636. package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +63 -0
  637. package/dist/superdoc/src/internal/toolbar/index.d.ts +10 -0
  638. package/dist/superdoc/src/main.d.ts +1 -0
  639. package/dist/superdoc/src/public/browser-document-api.d.ts +53 -0
  640. package/dist/superdoc/src/public/collaboration-upgrade-engine.d.cts +26 -0
  641. package/dist/superdoc/src/public/collaboration-upgrade-engine.d.ts +130 -0
  642. package/dist/superdoc/src/public/index.d.cts +359 -0
  643. package/dist/superdoc/src/public/index.d.ts +179 -0
  644. package/dist/superdoc/src/public/ui/commands.d.ts +249 -0
  645. package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +18 -0
  646. package/dist/superdoc/src/public/ui/entity-at.d.ts +29 -0
  647. package/dist/superdoc/src/public/ui/equality.d.ts +10 -0
  648. package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +36 -0
  649. package/dist/superdoc/src/public/ui/react.d.ts +81 -0
  650. package/dist/superdoc/src/public/ui/reasons.d.ts +99 -0
  651. package/dist/superdoc/src/public/ui/types.d.ts +1425 -0
  652. package/dist/superdoc/src/public/ui-react.d.cts +20 -0
  653. package/dist/superdoc/src/public/ui-react.d.ts +20 -0
  654. package/dist/superdoc/src/public/ui.d.cts +194 -0
  655. package/dist/superdoc/src/public/ui.d.ts +29 -0
  656. package/dist/superdoc/src/stores/comments-store.d.ts +676 -0
  657. package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +14 -0
  658. package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +14 -0
  659. package/dist/superdoc/src/stores/hrbr-fields-store.d.ts +43 -0
  660. package/dist/superdoc/src/stores/superdoc-store.d.ts +2182 -0
  661. package/dist/superdoc.cjs +36521 -0
  662. package/dist/superdoc.es.js +36449 -0
  663. package/dist/word-layout/src/index.d.ts +64 -0
  664. package/dist/word-layout/src/list-marker.d.ts +68 -0
  665. package/dist/word-layout/src/marker-utils.d.ts +20 -0
  666. package/dist/word-layout/src/numbering-manager.d.ts +85 -0
  667. package/dist/word-layout/src/tab-layout.d.ts +193 -0
  668. package/dist/word-layout/src/types.d.ts +106 -0
  669. package/dist/word-layout/src/unit-conversions.d.ts +120 -0
  670. package/dist-cdn/style.layered.css +2 -0
  671. package/dist-cdn/superdoc.min.css +2 -0
  672. package/dist-cdn/superdoc.min.js +108 -0
  673. package/package.json +137 -24
  674. package/.npmignore +0 -4
  675. package/data.json +0 -17
  676. package/index.js +0 -2
  677. package/lib/Augmenter.js +0 -27
  678. package/lib/Runner.js +0 -80
  679. package/lib/Stopper.js +0 -71
  680. package/test/superdoc.js +0 -126
  681. package/utils/app.js +0 -18
  682. package/utils/server.js +0 -2
  683. package/web/index.js +0 -54
  684. package/web/public/style.css +0 -74
  685. package/web/views/index.ejs +0 -53
  686. package/web/views/layout.ejs +0 -13
  687. package/web/views/method.ejs +0 -59
@@ -0,0 +1,159 @@
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-fxF2Q8Ib.es.js";
2
+ import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
3
+ var SuperDocUIContext = createContext(null);
4
+ function disposeOwnedUi(ref) {
5
+ const ui = ref.current;
6
+ if (!ui) return;
7
+ ui.destroy();
8
+ ref.current = null;
9
+ }
10
+ function SuperDocUIProvider(props) {
11
+ const [ui, setUi] = useState(null);
12
+ const [host, setHost] = useState(null);
13
+ const ownedUiRef = useRef(null);
14
+ const setSuperDoc = useCallback((superdoc) => {
15
+ const hostUi = superdoc.ui;
16
+ disposeOwnedUi(ownedUiRef);
17
+ if (hostUi) setUi(hostUi);
18
+ else {
19
+ const created = createSuperDocUI({ superdoc });
20
+ ownedUiRef.current = created;
21
+ setUi(created);
22
+ }
23
+ setHost(superdoc);
24
+ }, []);
25
+ useEffect(() => () => disposeOwnedUi(ownedUiRef), []);
26
+ const value = {
27
+ ui,
28
+ host,
29
+ setSuperDoc
30
+ };
31
+ return createElement(SuperDocUIContext.Provider, { value }, props.children);
32
+ }
33
+ function useContextValue() {
34
+ const value = useContext(SuperDocUIContext);
35
+ if (!value) throw new Error("[superdoc/ui/react] hooks must be used within <SuperDocUIProvider>.");
36
+ return value;
37
+ }
38
+ function useSuperDocUI() {
39
+ return useContextValue().ui;
40
+ }
41
+ function useSuperDocHost() {
42
+ return useContextValue().host;
43
+ }
44
+ function useSetSuperDoc() {
45
+ return useContextValue().setSuperDoc;
46
+ }
47
+ function toSliceSource(source) {
48
+ const candidate = source;
49
+ if (typeof candidate.getSnapshot === "function" && typeof candidate.observe === "function") return source;
50
+ const raw = source;
51
+ return {
52
+ getSnapshot: () => raw.get(),
53
+ observe: (listener) => {
54
+ const unsubscribe = raw.subscribe(listener);
55
+ listener(raw.get());
56
+ return unsubscribe;
57
+ }
58
+ };
59
+ }
60
+ function useSuperDocSlice(pick, initial) {
61
+ const ui = useSuperDocUI();
62
+ const [value, setValue] = useState(() => ui ? toSliceSource(pick(ui)).getSnapshot() : initial);
63
+ useEffect(() => {
64
+ if (!ui) {
65
+ setValue(initial);
66
+ return;
67
+ }
68
+ const source = toSliceSource(pick(ui));
69
+ setValue(source.getSnapshot());
70
+ return source.observe(setValue);
71
+ }, [ui]);
72
+ return value;
73
+ }
74
+ var EMPTY_SELECTION = {
75
+ status: "pending",
76
+ empty: true,
77
+ target: null,
78
+ selectionTarget: null,
79
+ activeMarks: [],
80
+ activeCommentIds: [],
81
+ activeChangeIds: [],
82
+ quotedText: ""
83
+ };
84
+ function useSuperDocSelection() {
85
+ return useSuperDocSlice((ui) => ui.selection, EMPTY_SELECTION);
86
+ }
87
+ function useSuperDocComments() {
88
+ return useSuperDocSlice((ui) => ui.comments, {
89
+ status: "pending",
90
+ listStatus: "pending",
91
+ items: [],
92
+ total: 0,
93
+ activeIds: [],
94
+ activeId: null
95
+ });
96
+ }
97
+ function useSuperDocContentControls() {
98
+ return useSuperDocSlice((ui) => ui.contentControls, {
99
+ status: "pending",
100
+ items: [],
101
+ total: 0,
102
+ activeId: null,
103
+ activeIds: []
104
+ });
105
+ }
106
+ function useSuperDocTrackChanges() {
107
+ return useSuperDocSlice((ui) => ui.trackChanges, {
108
+ status: "pending",
109
+ items: [],
110
+ total: 0,
111
+ activeId: null,
112
+ authors: []
113
+ });
114
+ }
115
+ function useSuperDocToolbar() {
116
+ return useSuperDocSlice((ui) => ui.toolbar, {
117
+ context: null,
118
+ commands: {},
119
+ copyFormatActive: false
120
+ });
121
+ }
122
+ function useSuperDocCommand(id) {
123
+ return useSuperDocSlice((ui) => ({
124
+ getSnapshot: () => ui.commands.get(id).getState(),
125
+ observe: (cb) => ui.commands.get(id).observe(cb)
126
+ }), {
127
+ enabled: false,
128
+ active: false,
129
+ supported: false
130
+ });
131
+ }
132
+ function useSuperDocDocument() {
133
+ return useSuperDocSlice((ui) => ui.document, {
134
+ ready: false,
135
+ mode: null,
136
+ dirty: false
137
+ });
138
+ }
139
+ function useSuperDocFontOptions() {
140
+ return useSuperDocSlice((ui) => ({
141
+ getSnapshot: () => ui.fonts.getFamilyOptions(),
142
+ observe: (cb) => ui.fonts.observe((slice) => cb(slice.options))
143
+ }), []);
144
+ }
145
+ function useSuperDocFontSizeOptions() {
146
+ return useSuperDocSlice((ui) => ({
147
+ getSnapshot: () => ui.fonts.getSizeOptions(),
148
+ observe: (cb) => ui.fonts.observe((slice) => cb(slice.sizeOptions))
149
+ }), []);
150
+ }
151
+ function useSuperDocZoom() {
152
+ return useSuperDocSlice((ui) => ui.zoom, {
153
+ mode: null,
154
+ value: 100,
155
+ min: 10,
156
+ max: 100
157
+ });
158
+ }
159
+ export { SuperDocUIProvider, useSetSuperDoc, useSuperDocCommand, useSuperDocComments, useSuperDocContentControls, useSuperDocDocument, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocHost, useSuperDocSelection, useSuperDocSlice, useSuperDocToolbar, useSuperDocTrackChanges, useSuperDocUI, useSuperDocZoom };
@@ -0,0 +1,5 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CXCqHc2m.cjs");
3
+ exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
4
+ exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
5
+ exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
@@ -0,0 +1,2 @@
1
+ import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-fxF2Q8Ib.es.js";
2
+ export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
@@ -0,0 +1,102 @@
1
+ export type Comment = {
2
+ commentId: string;
3
+ parentCommentId: string;
4
+ fileId: string;
5
+ fileType: string;
6
+ mentions: unknown[];
7
+ creatorId?: string | null;
8
+ creatorName: string;
9
+ creatorEmail?: string;
10
+ createdTime: number;
11
+ importedId: string;
12
+ importedAuthor: {
13
+ name: string;
14
+ email?: string;
15
+ };
16
+ isInternal: boolean;
17
+ commentText: string;
18
+ selection: {
19
+ documentId: string;
20
+ page: number;
21
+ selectionBounds: unknown;
22
+ };
23
+ trackedChange: boolean;
24
+ trackedChangeText: string | null;
25
+ trackedChangeType: 'trackInsert' | 'trackDelete' | 'both' | 'trackFormat';
26
+ trackedChangeDisplayType?: 'hyperlinkAdded' | 'hyperlinkModified' | null;
27
+ deletedText: string | null;
28
+ resolvedTime: number | null;
29
+ resolvedById: string | null;
30
+ resolvedByEmail: string | null;
31
+ resolvedByName: string | null;
32
+ commentJSON: CommentJSON;
33
+ origin?: 'word' | 'google-docs' | 'unknown';
34
+ threadingMethod?: 'commentsExtended' | 'range-based' | 'mixed';
35
+ threadingStyleOverride?: CommentThreadingStyle;
36
+ threadingParentCommentId?: string;
37
+ originalXmlStructure?: {
38
+ hasCommentsExtended: boolean;
39
+ hasCommentsExtensible: boolean;
40
+ hasCommentsIds: boolean;
41
+ };
42
+ };
43
+ export type CommentThreadingStyle = 'commentsExtended' | 'range-based';
44
+ export type CommentThreadingProfile = {
45
+ defaultStyle: CommentThreadingStyle;
46
+ mixed?: boolean;
47
+ fileSet: {
48
+ hasCommentsExtended: boolean;
49
+ hasCommentsExtensible: boolean;
50
+ hasCommentsIds: boolean;
51
+ };
52
+ };
53
+ export type CommentContent = {
54
+ type: string;
55
+ marks: Array<{
56
+ type: string;
57
+ attrs: {
58
+ color: string;
59
+ fontFamily: string;
60
+ fontSize: string;
61
+ styleId: string | null;
62
+ };
63
+ }>;
64
+ text: string;
65
+ };
66
+ export type CommentJSON = {
67
+ type: string;
68
+ attrs: {
69
+ lineHeight: string | null;
70
+ textIndent: string | null;
71
+ paraId: string | null;
72
+ textId: string | null;
73
+ rsidR: string | null;
74
+ rsidRDefault: string | null;
75
+ rsidP: string | null;
76
+ rsidRPr: string | null;
77
+ rsidDel: string | null;
78
+ spacing: {
79
+ lineSpaceAfter: number;
80
+ lineSpaceBefore: number;
81
+ line: number;
82
+ lineRule: string | null;
83
+ };
84
+ extraAttrs: Record<string, unknown>;
85
+ marksAttrs: unknown[] | null;
86
+ indent: unknown;
87
+ borders: unknown;
88
+ class: string | null;
89
+ styleId: string | null;
90
+ sdBlockId: string | null;
91
+ attributes: unknown;
92
+ filename: string | null;
93
+ keepLines: boolean | null;
94
+ keepNext: boolean | null;
95
+ paragraphProperties: Record<string, unknown> | null;
96
+ dropcap: string | null;
97
+ pageBreakSource: string | null;
98
+ justify: unknown;
99
+ tabStops: unknown;
100
+ };
101
+ content: CommentContent[];
102
+ };
@@ -0,0 +1,7 @@
1
+ export declare const LIST_MARKER_GAP = 8;
2
+ export declare const MIN_MARKER_GUTTER = 24;
3
+ export declare const DEFAULT_LIST_INDENT_BASE_PX = 24;
4
+ export declare const DEFAULT_LIST_INDENT_STEP_PX = 24;
5
+ export declare const DEFAULT_LIST_HANGING_PX = 18;
6
+ export declare const SPACE_SUFFIX_GAP_PX = 4;
7
+ export declare const DEFAULT_TAB_INTERVAL_PX = 48;
@@ -0,0 +1,186 @@
1
+ /**
2
+ * Shared utilities for list marker positioning and text start calculation.
3
+ *
4
+ * This module provides a unified implementation of list marker text positioning logic
5
+ * that is used consistently across the measuring and layout subsystems. The core
6
+ * function `resolveListTextStartPx` determines where paragraph text begins after
7
+ * accounting for list markers, tabs, and various justification modes.
8
+ *
9
+ * This module is extracted to ensure consistency across:
10
+ * - remeasure.ts (fast canvas-based remeasurement)
11
+ * - list-indent-utils.ts (layout bridge utilities)
12
+ * - measuring/dom/src/index.ts (full typography measurement)
13
+ */
14
+ /**
15
+ * Minimal marker run formatting information for text measurement.
16
+ */
17
+ export type MinimalMarkerRun = {
18
+ fontFamily?: string;
19
+ fontSize?: number;
20
+ bold?: boolean;
21
+ italic?: boolean;
22
+ color?: string;
23
+ letterSpacing?: number;
24
+ vanish?: boolean;
25
+ allCaps?: boolean;
26
+ smallCaps?: boolean;
27
+ };
28
+ /**
29
+ * Tracked-change review metadata for a list marker glyph (Plan 5).
30
+ *
31
+ * Structurally mirrors the canonical `MarkerTrackedChange` in
32
+ * `@superdoc/contracts` (which reuses `TrackedChangeMeta`). It is re-declared
33
+ * here so `@superdoc/common` stays dependency-free; the painter accepts both
34
+ * shapes through one permissive view. Keep the two declarations in sync.
35
+ */
36
+ export type MinimalMarkerTrackedChange = {
37
+ /** Primary tracked-change id, stamped as `data-track-change-id`. */
38
+ id: string;
39
+ /** Review kind driving base class + marker color/decoration. */
40
+ kind: 'insert' | 'delete' | 'format';
41
+ /** All affected ids for `data-track-change-ids`, when more than one. */
42
+ groupedIds?: readonly string[];
43
+ /** Raw structural change type (e.g. `paragraph-mark`, `list-properties`). */
44
+ type?: string;
45
+ /** Logical structural subtype. */
46
+ subtype?: string;
47
+ /** Structural target kind (e.g. `list-item`). */
48
+ targetKind?: string;
49
+ /** Semantic color category (e.g. `insertion`, `move-from`). */
50
+ semanticColorKey?: string;
51
+ /** Paint-ready semantic color. */
52
+ semanticColor?: string;
53
+ /** Per-author color. */
54
+ color?: string;
55
+ author?: string;
56
+ authorEmail?: string;
57
+ date?: string;
58
+ storyKey?: string;
59
+ };
60
+ /**
61
+ * Minimal marker information required for text start calculation.
62
+ *
63
+ * This type represents the essential properties needed from a marker object
64
+ * to calculate where text should start after the marker. It's designed to be
65
+ * compatible with various marker representations across different subsystems.
66
+ */
67
+ export type MinimalMarker = {
68
+ /** Pre-measured width of the entire marker box in pixels */
69
+ markerBoxWidthPx?: number;
70
+ /** Pre-measured width of the marker glyph/text in pixels */
71
+ glyphWidthPx?: number;
72
+ /** Horizontal position where marker is drawn (used in firstLineIndentMode) */
73
+ markerX?: number;
74
+ /** Horizontal position where text should start (used in firstLineIndentMode) */
75
+ textStartX?: number;
76
+ /** Width of the gutter between marker and text (used for center/right justification) */
77
+ gutterWidthPx?: number;
78
+ /** Marker justification: 'left', 'center', or 'right' */
79
+ justification?: 'left' | 'center' | 'right';
80
+ /** What follows the marker: 'tab', 'space', or 'nothing' */
81
+ suffix?: 'tab' | 'space' | 'nothing';
82
+ /** The text content of the marker (for measurement if glyphWidthPx not available) */
83
+ markerText?: string;
84
+ /** Formatting information for the marker (for measurement if needed) */
85
+ run?: MinimalMarkerRun;
86
+ /**
87
+ * Optional tracked-change review metadata for the marker glyph (Plan 5).
88
+ * Carried through the `wordLayout.marker` legacy paint path so the painter
89
+ * can stamp marker review identity/styling. Absent for normal markers.
90
+ */
91
+ trackedChange?: MinimalMarkerTrackedChange;
92
+ };
93
+ /**
94
+ * Minimal word layout configuration for text start calculation.
95
+ *
96
+ * Contains the subset of word layout properties needed to determine text positioning.
97
+ */
98
+ export type MinimalWordLayout = {
99
+ /** Whether this list uses first-line indent mode (input-rule created lists) */
100
+ firstLineIndentMode?: boolean;
101
+ /** Pre-calculated horizontal position where text should start */
102
+ textStartPx?: number;
103
+ /** Left indent in pixels from word-layout marker positioning */
104
+ indentLeftPx?: number;
105
+ /** Array of tab stop positions in pixels (for firstLineIndentMode) */
106
+ tabsPx?: number[];
107
+ /** Marker information */
108
+ marker?: MinimalMarker;
109
+ };
110
+ /**
111
+ * Function type for measuring marker text width.
112
+ *
113
+ * Different subsystems use different text measurement approaches:
114
+ * - remeasure.ts: Canvas-based measurement with getCtx()
115
+ * - measuring/dom: Canvas-based measurement with cached context
116
+ * - list-indent-utils: May not have access to canvas, provides markerWidth parameter
117
+ */
118
+ export type MarkerTextMeasurer = (markerText: string, marker: MinimalMarker) => number;
119
+ /**
120
+ * Resolved list prefix geometry for a single numbered or bulleted paragraph line.
121
+ *
122
+ * All coordinates are measured from the left edge of the paragraph content area.
123
+ */
124
+ export type ResolvedListMarkerGeometry = {
125
+ /** Left edge where the visible marker glyph should be painted. */
126
+ markerStartPx: number;
127
+ /** Visible marker glyph width in pixels. */
128
+ markerTextWidthPx: number;
129
+ /** Horizontal position where paragraph text begins after marker + suffix. */
130
+ textStartPx: number;
131
+ /** Width contributed by the suffix separator (tab, space, or nothing). */
132
+ suffixWidthPx: number;
133
+ };
134
+ /**
135
+ * Resolves full marker geometry for a list prefix on a paragraph line.
136
+ *
137
+ * This is the canonical geometry source for marker start, suffix width, and
138
+ * paragraph text start. Measurement and painting should both use this helper
139
+ * so they stay aligned on numbered-list first lines.
140
+ *
141
+ * @param wordLayout - Word list layout metadata for the paragraph
142
+ * @param indentLeft - Paragraph left indent in pixels
143
+ * @param firstLine - Paragraph first-line indent in pixels
144
+ * @param hanging - Paragraph hanging indent in pixels
145
+ * @param measureMarkerText - Callback used when marker glyph width is not precomputed
146
+ * @returns Resolved list prefix geometry, or undefined when the paragraph has no marker
147
+ */
148
+ export declare function resolveListMarkerGeometry(wordLayout: MinimalWordLayout | undefined, indentLeft: number, firstLine: number, hanging: number, measureMarkerText: MarkerTextMeasurer): ResolvedListMarkerGeometry | undefined;
149
+ /**
150
+ * Convenience wrapper that returns only the text-start X coordinate from
151
+ * {@link resolveListMarkerGeometry}. Falls back to `wordLayout.textStartPx`
152
+ * for firstLineIndentMode paragraphs that have no marker.
153
+ *
154
+ * @param wordLayout - Word list layout metadata for the paragraph
155
+ * @param indentLeft - Paragraph left indent in pixels
156
+ * @param firstLine - Paragraph first-line indent in pixels
157
+ * @param hanging - Paragraph hanging indent in pixels
158
+ * @param measureMarkerText - Callback used when marker glyph width is not precomputed
159
+ * @returns Horizontal pixel position where text content should begin, or undefined if no marker present
160
+ */
161
+ export declare function resolveListTextStartPx(wordLayout: MinimalWordLayout | undefined, indentLeft: number, firstLine: number, hanging: number, measureMarkerText: MarkerTextMeasurer): number | undefined;
162
+ /**
163
+ * Type guard to check if a value is a valid MinimalWordLayout object.
164
+ *
165
+ * Validates that the object has the expected structure for MinimalWordLayout
166
+ * without unsafe type assertions. Shared across resolver and painter.
167
+ */
168
+ export declare function isMinimalWordLayout(value: unknown): value is MinimalWordLayout;
169
+ /**
170
+ * Compute the width of the tab separator between a list marker and its text content.
171
+ *
172
+ * Used for marker modes whose rendering contract differs from the shared geometry
173
+ * helper, such as right/center-justified markers and firstLineIndentMode paragraphs.
174
+ */
175
+ export type MarkerIndent = {
176
+ anchorIndentPx: number;
177
+ firstLinePx: number;
178
+ hangingPx: number;
179
+ };
180
+ export declare function resolveMarkerIndent(indent: {
181
+ left?: number;
182
+ right?: number;
183
+ firstLine?: number;
184
+ hanging?: number;
185
+ } | undefined, isRtl: boolean): MarkerIndent;
186
+ export declare function computeTabWidth(currentPos: number, justification: string, tabs: number[] | undefined, hangingIndent: number | undefined, firstLineIndent: number | undefined, leftIndent: number): number;
@@ -0,0 +1,16 @@
1
+ type NumberingHandler = (path: number[], lvlText: string, customFormat?: string) => string | null;
2
+ export interface GenerateOrderedListIndexOptions {
3
+ listLevel: number[];
4
+ lvlText: string | null | undefined;
5
+ listNumberingType?: string;
6
+ customFormat?: string;
7
+ }
8
+ export declare const generateOrderedListIndex: ({ listLevel, lvlText, listNumberingType, customFormat, }: GenerateOrderedListIndexOptions) => string | null;
9
+ export declare const intToJapaneseCounting: (num: number) => string;
10
+ export declare const normalizeLvlTextChar: (lvlText?: string) => string | undefined;
11
+ export declare const listNumberingHelpers: {
12
+ generateOrderedListIndex: ({ listLevel, lvlText, listNumberingType, customFormat, }: GenerateOrderedListIndexOptions) => string | null;
13
+ intToJapaneseCounting: (num: number) => string;
14
+ normalizeLvlTextChar: (lvlText?: string) => string | undefined;
15
+ };
16
+ export type { NumberingHandler };
@@ -0,0 +1,64 @@
1
+ /** Selection of which bundled families are active, by logical Word family name. */
2
+ export interface BundledFontSelection {
3
+ /** Active families. When set (non-empty), ONLY these logical families resolve/advertise. */
4
+ include?: readonly string[];
5
+ /** Inactive families. When set, every bundled family EXCEPT these is active. */
6
+ exclude?: readonly string[];
7
+ }
8
+ /** Inputs that decide bundled activation for a document. */
9
+ export interface BundledActivationInput extends BundledFontSelection {
10
+ /** Whether the consumer wired the bundled pack (config presence or the CDN build). */
11
+ packConfigured: boolean;
12
+ }
13
+ /** A resolved activation: the packConfigured flag, a per-logical-family predicate, and a signature. */
14
+ export interface BundledActivation {
15
+ /** True when the bundled pack is wired for this document (config presence or the CDN build). */
16
+ readonly packConfigured: boolean;
17
+ /** Whether bundled substitution / advertising is active for this LOGICAL family (any case). */
18
+ isActive(logicalFamily: string): boolean;
19
+ /**
20
+ * Deterministic identity of this activation. `''` when FULLY active (packConfigured with no
21
+ * include/exclude) so default / full-pack documents keep sharing the measure cache and match the
22
+ * global resolver; any narrower activation (no pack, or curated) gets a distinct, non-empty
23
+ * signature the resolver folds into its own {@link FontResolver.signature} (the measure-cache key)
24
+ * - so a no-pack or curated document never reuses a full-pack document's cached measures.
25
+ */
26
+ readonly signature: string;
27
+ }
28
+ /**
29
+ * Fully-active activation: every bundled family, signature `''`. The resolver's default, so the
30
+ * module-level resolver and any `createFontResolver()` with no activation keep the prior global
31
+ * substitution behavior (and share the measure cache).
32
+ */
33
+ export declare const FULLY_ACTIVE_BUNDLED: BundledActivation;
34
+ /**
35
+ * No-pack activation: no bundled family is active. The conservative baseline default for the STATIC
36
+ * toolbar surfaces (the headless `DEFAULT_FONT_FAMILY_OPTIONS` / Vue `TOOLBAR_FONTS` consts, which
37
+ * have no runtime config to read).
38
+ */
39
+ export declare const BASELINE_BUNDLED: BundledActivation;
40
+ /**
41
+ * Build a {@link BundledActivation} from config-presence plus optional include/exclude.
42
+ *
43
+ * `include` is the stronger intent and WINS if both are passed (they are not meant to be combined).
44
+ * An include/exclude list with no usable entries is ignored rather than emptying the toolbar - "no
45
+ * bundled fonts" is expressed by not configuring the pack, not by `include: []`.
46
+ */
47
+ export declare function createBundledActivation(input: BundledActivationInput): BundledActivation;
48
+ /** Structural slice of a `fonts` config the activation needs - keeps this free of the editor type. */
49
+ export interface FontAssetConfigLike {
50
+ resolveAssetUrl?: unknown;
51
+ assetBaseUrl?: unknown;
52
+ bundled?: BundledFontSelection;
53
+ }
54
+ /**
55
+ * Derive a document's {@link BundledActivation} from its `fonts` config. The pack counts as
56
+ * configured when the consumer set `resolveAssetUrl` (e.g. `superdocFonts`) or `assetBaseUrl`, or
57
+ * when a host marked it present page-globally ({@link isBundledPackPresent}). Selection comes from
58
+ * `fonts.bundled` (set via `createSuperDocFonts`).
59
+ *
60
+ * This is the lower-level primitive; runtime documents that may carry hand-written `fonts.bundled`
61
+ * derive activation through `deriveBundledActivationForConfig` (in font-offerings), which sanitizes
62
+ * unknown curation names against the known family set first.
63
+ */
64
+ export declare function deriveBundledActivation(config: FontAssetConfigLike | null | undefined): BundledActivation;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Manifest of the bundled reviewed fallback pack: pure data, no binary
3
+ * imports. The provider ({@link ./bundled}) turns each entry into a `url(...)` face
4
+ * against a runtime base URL, so font bytes are emitted/served as SEPARATE assets and
5
+ * never inlined into the JS bundle. Adding reviewed fallback rows extends the pack without changing
6
+ * the resolver -> registry -> gate -> report flow.
7
+ *
8
+ * The `family` is the physical substitute name (must match the resolver's targets); the
9
+ * `file` is the asset filename under `../assets/`. Family display names with spaces map
10
+ * to space-free file prefixes (e.g. "Liberation Sans" -> `LiberationSans-*.woff2`).
11
+ */
12
+ /** License identifier or expression for provenance and diagnostics. */
13
+ export type BundledLicense = 'OFL-1.1' | 'Apache-2.0' | 'AGPL-3.0-only WITH PS-or-PDF-font-exception-20170817' | 'GPL-2.0-only WITH Font-exception-2.0' | 'LicenseRef-GUST-Font-License-1.0';
14
+ /** One shippable face of a bundled family: its style axis + the asset filename. */
15
+ export interface BundledFaceFile {
16
+ weight: 'normal' | 'bold';
17
+ style: 'normal' | 'italic';
18
+ /** Asset filename under the pack's `assets/` dir, e.g. `Carlito-Regular.woff2`. */
19
+ file: string;
20
+ }
21
+ /** A bundled substitute family modeled as its faces. */
22
+ export interface BundledFamilyManifest {
23
+ /** Physical family name (the substitute), e.g. "Carlito", "Liberation Sans". */
24
+ family: string;
25
+ license: BundledLicense;
26
+ faces: readonly BundledFaceFile[];
27
+ }
28
+ /**
29
+ * The verified bundled substitutes. Adding a row extends the pack without
30
+ * touching the provider, registry, gate, or report.
31
+ */
32
+ export declare const BUNDLED_MANIFEST: readonly BundledFamilyManifest[];
@@ -0,0 +1,41 @@
1
+ import type { FontRegistry } from './registry.js';
2
+ import type { FontAssetUrlResolver } from './types.js';
3
+ export type { BundledLicense, BundledFaceFile, BundledFamilyManifest } from './bundled-manifest.js';
4
+ export type { FontAssetUrlContext, FontAssetUrlResolver } from './types.js';
5
+ export { BUNDLED_MANIFEST } from './bundled-manifest.js';
6
+ /**
7
+ * Last-resort base URL the bundled `.woff2` are served from. Used only when neither a
8
+ * `resolveAssetUrl` nor an `assetBaseUrl` is configured and no build target set a default.
9
+ * A dev / simple-self-host fallback, NOT the product deploy assumption.
10
+ */
11
+ export declare const DEFAULT_BUNDLED_FONT_BASE = "/fonts/";
12
+ /** Override the default asset base (e.g. a host that serves the pack from a fixed path). */
13
+ export declare function setBundledFontAssetBase(base: string): void;
14
+ /** The current default asset base (script-relative on CDN, else {@link DEFAULT_BUNDLED_FONT_BASE}). */
15
+ export declare function getBundledFontAssetBase(): string;
16
+ /** Mark the bundled pack as served page-globally (for hosts that serve it without per-instance config). */
17
+ export declare function markBundledPackPresent(): void;
18
+ /** Whether the bundled pack is served page-globally (see {@link markBundledPackPresent}). */
19
+ export declare function isBundledPackPresent(): boolean;
20
+ /** Reset the page-global pack-present flag. Test-only; not part of the public surface. */
21
+ export declare function __resetBundledPackPresent(): void;
22
+ export interface InstallBundledOptions {
23
+ /** Highest-precedence per-face URL resolver (consumer `fonts.resolveAssetUrl`). */
24
+ resolveAssetUrl?: FontAssetUrlResolver;
25
+ /** Base URL the `.woff2` are served from (consumer `fonts.assetBaseUrl`). */
26
+ assetBaseUrl?: string;
27
+ }
28
+ /**
29
+ * Register the bundled substitute pack into a registry, once, as URL-sourced faces.
30
+ *
31
+ * The pack is one font PROVIDER - it registers `url(...)` faces through the same
32
+ * `registry.register` path as customer/embedded fonts, never importing font binaries
33
+ * into shared runtime, so the bytes are emitted as separate assets and never inlined.
34
+ *
35
+ * URL resolution precedence (per face): `resolveAssetUrl` -> `assetBaseUrl` -> the module
36
+ * default base (script-relative on CDN, else `/fonts/`). Loading stays lazy at the binary
37
+ * level: a `.woff2` is fetched only when the load gate awaits the family a document
38
+ * declares. Idempotent per registry. Physical family names MUST match the resolver's
39
+ * substitute targets.
40
+ */
41
+ export declare function installBundledSubstitutes(registry: FontRegistry, options?: InstallBundledOptions): void;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Document-scoped font options for the toolbar: one option per logical family a loaded document
3
+ * actually uses. Distinct from the static {@link ./font-offerings} (the bundled choices): this is
4
+ * runtime and document-scoped because it needs the document's registry and resolver.
5
+ *
6
+ * Fallback diagnostics are intentionally not part of this surface. The toolbar lists document fonts as
7
+ * plain picker rows; internal fallback/reporting details stay in SuperDoc's runtime font report.
8
+ */
9
+ import { type BundledActivation } from './activation.js';
10
+ import { type UsedFace } from './report.js';
11
+ import type { FontRegistry } from './registry.js';
12
+ import type { FontResolver } from './resolver.js';
13
+ /**
14
+ * One document font for the toolbar: the logical name (the dropdown label and the value stored and
15
+ * exported) and the family to render its preview in.
16
+ */
17
+ export interface DocumentFontOption {
18
+ /** The Word-facing logical family: the dropdown label and the value stored + exported (e.g. "Aptos"). */
19
+ logicalFamily: string;
20
+ /**
21
+ * The physical family to render the dropdown PREVIEW in (Calibri previews as Carlito; a document-
22
+ * provided font previews as itself). The regular face is used as the representative when present.
23
+ */
24
+ previewFamily: string;
25
+ }
26
+ /**
27
+ * The document-specific font options for the toolbar: one per LOGICAL family the document renders,
28
+ * deduped, each with the family that actually paints its preview. Resolved FACE-aware (via
29
+ * {@link buildFaceReport}) so an embedded / customer font the document supplies is detected even when
30
+ * no bundled clone exists.
31
+ */
32
+ export declare function buildDocumentFontOptions(usedFaces: Iterable<UsedFace>, registry: FontRegistry, resolver?: FontResolver): DocumentFontOption[];
33
+ /**
34
+ * Final, dropdown-ready font family option. `label` and `value` are the logical family; `previewFamily`
35
+ * is only for rendering the row preview.
36
+ */
37
+ export interface FontFamilyOption {
38
+ /** Display text: the Word-facing logical family (e.g. "Calibri"). */
39
+ label: string;
40
+ /** Value to apply with the font-family command. */
41
+ value: string;
42
+ /** Physical family used to render the option preview. */
43
+ previewFamily: string;
44
+ }
45
+ /**
46
+ * Compose the final font-family picker list from the built-in toolbar choices plus the active
47
+ * document's fonts. The built-in choices are gated on the document's bundled-font {@link
48
+ * BundledActivation} (baseline when no pack is configured, the curated rich set when it is); pass it
49
+ * from the editor so the picker advertises only what this document will render. Document fonts are
50
+ * always listed - they come from the loaded document itself. Sorted alphabetically, deduped by
51
+ * logical family.
52
+ */
53
+ export declare function buildFontFamilyOptions(documentOptions: ReadonlyArray<DocumentFontOption>, activation?: BundledActivation): FontFamilyOption[];