@a3s-lab/office 0.1.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 (463) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +470 -0
  3. package/THIRD_PARTY_NOTICES.md +33 -0
  4. package/dist/0~1403.js +245 -0
  5. package/dist/0~152.js +94 -0
  6. package/dist/0~3539.js +1856 -0
  7. package/dist/0~3557.js +179 -0
  8. package/dist/0~3635.js +302 -0
  9. package/dist/0~4595.js +1162 -0
  10. package/dist/0~5050.js +308 -0
  11. package/dist/0~6552.js +787 -0
  12. package/dist/0~7048.js +2110 -0
  13. package/dist/0~7614.js +1037 -0
  14. package/dist/0~8155.js +299 -0
  15. package/dist/0~9445.js +283 -0
  16. package/dist/0~9512.js +743 -0
  17. package/dist/0~document-editor.js +10967 -0
  18. package/dist/0~markdown-editor.js +2260 -0
  19. package/dist/0~pdf-viewer.js +2156 -0
  20. package/dist/0~presentation-editor.js +8359 -0
  21. package/dist/0~rslib-runtime.js +27 -0
  22. package/dist/0~spreadsheet-editor.js +10388 -0
  23. package/dist/0~use-office-draft.js +46 -0
  24. package/dist/0~work-document-extensions.js +2470 -0
  25. package/dist/0~work-document-links.js +14 -0
  26. package/dist/0~work-document-model-codec.js +42 -0
  27. package/dist/0~work-document-page-color.js +11 -0
  28. package/dist/0~work-document-paragraph-formatting.js +425 -0
  29. package/dist/0~work-docx-bibliography.js +347 -0
  30. package/dist/0~work-docx-export.js +1151 -0
  31. package/dist/0~work-docx-import.js +3116 -0
  32. package/dist/0~work-docx-page-color.js +42 -0
  33. package/dist/0~work-office-diagnostics.js +1377 -0
  34. package/dist/0~work-pptx-export.js +1009 -0
  35. package/dist/0~work-pptx-import.js +1138 -0
  36. package/dist/0~work-presentation-charts.js +442 -0
  37. package/dist/0~work-presentation-transition.js +38 -0
  38. package/dist/0~work-presentation-visual-scale.js +38 -0
  39. package/dist/0~work-spreadsheet-formula-support.js +9 -0
  40. package/dist/1134.js +445 -0
  41. package/dist/4104.js +5786 -0
  42. package/dist/432.js +211 -0
  43. package/dist/4704.js +1364 -0
  44. package/dist/6489.js +182 -0
  45. package/dist/8715.js +3959 -0
  46. package/dist/8728.js +723 -0
  47. package/dist/9356.js +10 -0
  48. package/dist/core.d.ts +15 -0
  49. package/dist/core.js +4 -0
  50. package/dist/index.d.ts +2 -0
  51. package/dist/index.js +5 -0
  52. package/dist/internal/design-system/primitives/button/button.d.ts +9 -0
  53. package/dist/internal/design-system/primitives/button/icon-button.d.ts +7 -0
  54. package/dist/internal/design-system/primitives/dialog/dialog.d.ts +12 -0
  55. package/dist/internal/design-system/primitives/feedback/collection-state.d.ts +9 -0
  56. package/dist/internal/design-system/primitives/feedback/inline-notice.d.ts +10 -0
  57. package/dist/internal/design-system/primitives/feedback/state-view.d.ts +13 -0
  58. package/dist/internal/design-system/primitives/form/field.d.ts +19 -0
  59. package/dist/internal/design-system/primitives/index.d.ts +14 -0
  60. package/dist/internal/design-system/primitives/layout/split-handle.d.ts +17 -0
  61. package/dist/internal/design-system/primitives/navigation/segmented-control.d.ts +19 -0
  62. package/dist/internal/design-system/primitives/navigation/tab-navigation.d.ts +13 -0
  63. package/dist/internal/design-system/primitives/navigation/tabs.d.ts +21 -0
  64. package/dist/internal/design-system/primitives/overlay/dialog-focus-scope.d.ts +17 -0
  65. package/dist/internal/design-system/primitives/overlay/popover.d.ts +34 -0
  66. package/dist/internal/design-system/primitives/overlay/portal-root.d.ts +1 -0
  67. package/dist/internal/design-system/primitives/status/status-badge.d.ts +6 -0
  68. package/dist/internal/features/work/components/work-document-pages.d.ts +4 -0
  69. package/dist/internal/features/work/components/work-editor-agent-menus.d.ts +12 -0
  70. package/dist/internal/features/work/components/work-editor-loading-state.d.ts +3 -0
  71. package/dist/internal/features/work/editors/document-changes-panel.d.ts +9 -0
  72. package/dist/internal/features/work/editors/document-citation-source-form.d.ts +33 -0
  73. package/dist/internal/features/work/editors/document-citations-panel.d.ts +8 -0
  74. package/dist/internal/features/work/editors/document-columns-panel.d.ts +5 -0
  75. package/dist/internal/features/work/editors/document-comment-composer.d.ts +13 -0
  76. package/dist/internal/features/work/editors/document-comments-panel.d.ts +17 -0
  77. package/dist/internal/features/work/editors/document-editor-focus.d.ts +1 -0
  78. package/dist/internal/features/work/editors/document-editor-pagination.d.ts +3 -0
  79. package/dist/internal/features/work/editors/document-editor-support.d.ts +34 -0
  80. package/dist/internal/features/work/editors/document-editor.d.ts +20 -0
  81. package/dist/internal/features/work/editors/document-find-highlight.d.ts +8 -0
  82. package/dist/internal/features/work/editors/document-find-replace-panel.d.ts +10 -0
  83. package/dist/internal/features/work/editors/document-formatting-options.d.ts +113 -0
  84. package/dist/internal/features/work/editors/document-home-ribbon.d.ts +9 -0
  85. package/dist/internal/features/work/editors/document-layout-panel.d.ts +10 -0
  86. package/dist/internal/features/work/editors/document-list-gallery.d.ts +4 -0
  87. package/dist/internal/features/work/editors/document-navigation-panel.d.ts +9 -0
  88. package/dist/internal/features/work/editors/document-page-chrome-editor.d.ts +39 -0
  89. package/dist/internal/features/work/editors/document-page-chrome-panel.d.ts +5 -0
  90. package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +10 -0
  91. package/dist/internal/features/work/editors/document-page-navigation.d.ts +14 -0
  92. package/dist/internal/features/work/editors/document-page-stack.d.ts +8 -0
  93. package/dist/internal/features/work/editors/document-pagination-popover.d.ts +4 -0
  94. package/dist/internal/features/work/editors/document-paragraph-spacing-popover.d.ts +4 -0
  95. package/dist/internal/features/work/editors/document-picture-ribbon.d.ts +4 -0
  96. package/dist/internal/features/work/editors/document-ruler-tab-stops.d.ts +12 -0
  97. package/dist/internal/features/work/editors/document-ruler.d.ts +15 -0
  98. package/dist/internal/features/work/editors/document-selection-context-menu.d.ts +22 -0
  99. package/dist/internal/features/work/editors/document-selection-toolbar.d.ts +8 -0
  100. package/dist/internal/features/work/editors/document-status-bar.d.ts +19 -0
  101. package/dist/internal/features/work/editors/document-style-gallery.d.ts +4 -0
  102. package/dist/internal/features/work/editors/document-table-insert-popover.d.ts +4 -0
  103. package/dist/internal/features/work/editors/document-table-ribbon.d.ts +7 -0
  104. package/dist/internal/features/work/editors/document-task-pane.d.ts +11 -0
  105. package/dist/internal/features/work/editors/document-toolbar.d.ts +100 -0
  106. package/dist/internal/features/work/editors/document-vertical-ruler.d.ts +6 -0
  107. package/dist/internal/features/work/editors/markdown-editor-focus.d.ts +2 -0
  108. package/dist/internal/features/work/editors/markdown-editor.d.ts +16 -0
  109. package/dist/internal/features/work/editors/markdown-insert-dialog.d.ts +19 -0
  110. package/dist/internal/features/work/editors/markdown-selection-context-menu.d.ts +14 -0
  111. package/dist/internal/features/work/editors/markdown-source-commands.d.ts +41 -0
  112. package/dist/internal/features/work/editors/markdown-status.d.ts +7 -0
  113. package/dist/internal/features/work/editors/markdown-toolbar.d.ts +22 -0
  114. package/dist/internal/features/work/editors/markdown-workspace.d.ts +26 -0
  115. package/dist/internal/features/work/editors/office-checkbox.d.ts +9 -0
  116. package/dist/internal/features/work/editors/office-color-picker.d.ts +11 -0
  117. package/dist/internal/features/work/editors/office-controls.d.ts +7 -0
  118. package/dist/internal/features/work/editors/office-dialog.d.ts +35 -0
  119. package/dist/internal/features/work/editors/office-editor-extension.d.ts +86 -0
  120. package/dist/internal/features/work/editors/office-file-data.d.ts +1 -0
  121. package/dist/internal/features/work/editors/office-font-families.d.ts +187 -0
  122. package/dist/internal/features/work/editors/office-menu-keyboard.d.ts +2 -0
  123. package/dist/internal/features/work/editors/office-number-field.d.ts +21 -0
  124. package/dist/internal/features/work/editors/office-number-normalization.d.ts +9 -0
  125. package/dist/internal/features/work/editors/office-select.d.ts +19 -0
  126. package/dist/internal/features/work/editors/office-shortcuts.d.ts +1 -0
  127. package/dist/internal/features/work/editors/office-slider.d.ts +10 -0
  128. package/dist/internal/features/work/editors/office-table-dimensions.d.ts +4 -0
  129. package/dist/internal/features/work/editors/office-table-insert-popover.d.ts +7 -0
  130. package/dist/internal/features/work/editors/office-task-pane.d.ts +7 -0
  131. package/dist/internal/features/work/editors/office-text-field.d.ts +20 -0
  132. package/dist/internal/features/work/editors/office-tiptap-extensions.d.ts +2 -0
  133. package/dist/internal/features/work/editors/pdf-annotation-controller.d.ts +23 -0
  134. package/dist/internal/features/work/editors/pdf-editor-extensions.d.ts +36 -0
  135. package/dist/internal/features/work/editors/pdf-thumbnail-rail.d.ts +26 -0
  136. package/dist/internal/features/work/editors/pdf-toolbar.d.ts +23 -0
  137. package/dist/internal/features/work/editors/pdf-viewer-controller.d.ts +48 -0
  138. package/dist/internal/features/work/editors/pdf-viewer.d.ts +11 -0
  139. package/dist/internal/features/work/editors/presentation-arrangement-controller.d.ts +19 -0
  140. package/dist/internal/features/work/editors/presentation-chart-analysis-canvas.d.ts +21 -0
  141. package/dist/internal/features/work/editors/presentation-chart-axis-canvas.d.ts +33 -0
  142. package/dist/internal/features/work/editors/presentation-chart-axis-editor.d.ts +5 -0
  143. package/dist/internal/features/work/editors/presentation-chart-canvas.d.ts +5 -0
  144. package/dist/internal/features/work/editors/presentation-chart-cartesian-canvas.d.ts +3 -0
  145. package/dist/internal/features/work/editors/presentation-chart-data-label-editor.d.ts +6 -0
  146. package/dist/internal/features/work/editors/presentation-chart-data-labels.d.ts +26 -0
  147. package/dist/internal/features/work/editors/presentation-chart-layout-editor.d.ts +5 -0
  148. package/dist/internal/features/work/editors/presentation-chart-legend-canvas.d.ts +15 -0
  149. package/dist/internal/features/work/editors/presentation-chart-panel.d.ts +7 -0
  150. package/dist/internal/features/work/editors/presentation-chart-series-analysis-editor.d.ts +6 -0
  151. package/dist/internal/features/work/editors/presentation-chart-series-canvas.d.ts +15 -0
  152. package/dist/internal/features/work/editors/presentation-command-controller.d.ts +3 -0
  153. package/dist/internal/features/work/editors/presentation-command-types.d.ts +206 -0
  154. package/dist/internal/features/work/editors/presentation-comments-panel.d.ts +9 -0
  155. package/dist/internal/features/work/editors/presentation-context-menu.d.ts +11 -0
  156. package/dist/internal/features/work/editors/presentation-design-panel.d.ts +13 -0
  157. package/dist/internal/features/work/editors/presentation-editor-focus.d.ts +12 -0
  158. package/dist/internal/features/work/editors/presentation-editor-operations.d.ts +10 -0
  159. package/dist/internal/features/work/editors/presentation-editor-types.d.ts +22 -0
  160. package/dist/internal/features/work/editors/presentation-editor.d.ts +3 -0
  161. package/dist/internal/features/work/editors/presentation-keyboard-extension.d.ts +3 -0
  162. package/dist/internal/features/work/editors/presentation-player.d.ts +7 -0
  163. package/dist/internal/features/work/editors/presentation-presenter-view.d.ts +15 -0
  164. package/dist/internal/features/work/editors/presentation-selection.d.ts +21 -0
  165. package/dist/internal/features/work/editors/presentation-slide-canvas.d.ts +26 -0
  166. package/dist/internal/features/work/editors/presentation-slide-thumbnail.d.ts +18 -0
  167. package/dist/internal/features/work/editors/presentation-status-bar.d.ts +10 -0
  168. package/dist/internal/features/work/editors/presentation-text-editor.d.ts +22 -0
  169. package/dist/internal/features/work/editors/presentation-text-formatting.d.ts +3 -0
  170. package/dist/internal/features/work/editors/presentation-thumbnail-rail.d.ts +20 -0
  171. package/dist/internal/features/work/editors/presentation-toolbar.d.ts +19 -0
  172. package/dist/internal/features/work/editors/presentation-transition-panel.d.ts +9 -0
  173. package/dist/internal/features/work/editors/presentation-workspace.d.ts +38 -0
  174. package/dist/internal/features/work/editors/spreadsheet-calculation-model.d.ts +8 -0
  175. package/dist/internal/features/work/editors/spreadsheet-calculation-projection.d.ts +32 -0
  176. package/dist/internal/features/work/editors/spreadsheet-chart-axis-editor.d.ts +9 -0
  177. package/dist/internal/features/work/editors/spreadsheet-chart-draft.d.ts +17 -0
  178. package/dist/internal/features/work/editors/spreadsheet-chart-layout-editor.d.ts +13 -0
  179. package/dist/internal/features/work/editors/spreadsheet-chart-panel.d.ts +10 -0
  180. package/dist/internal/features/work/editors/spreadsheet-chart-series-style-editor.d.ts +9 -0
  181. package/dist/internal/features/work/editors/spreadsheet-clipboard-shortcuts.d.ts +9 -0
  182. package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +121 -0
  183. package/dist/internal/features/work/editors/spreadsheet-conditional-comparison-fields.d.ts +7 -0
  184. package/dist/internal/features/work/editors/spreadsheet-conditional-format-model.d.ts +72 -0
  185. package/dist/internal/features/work/editors/spreadsheet-conditional-format-panel.d.ts +7 -0
  186. package/dist/internal/features/work/editors/spreadsheet-conditional-threshold-fields.d.ts +10 -0
  187. package/dist/internal/features/work/editors/spreadsheet-context-menu.d.ts +36 -0
  188. package/dist/internal/features/work/editors/spreadsheet-data-label-editor.d.ts +9 -0
  189. package/dist/internal/features/work/editors/spreadsheet-editor-ribbon.d.ts +46 -0
  190. package/dist/internal/features/work/editors/spreadsheet-editor-support.d.ts +31 -0
  191. package/dist/internal/features/work/editors/spreadsheet-editor.d.ts +16 -0
  192. package/dist/internal/features/work/editors/spreadsheet-error-bar-editor.d.ts +10 -0
  193. package/dist/internal/features/work/editors/spreadsheet-find-bar.d.ts +8 -0
  194. package/dist/internal/features/work/editors/spreadsheet-find.d.ts +9 -0
  195. package/dist/internal/features/work/editors/spreadsheet-formula-panel.d.ts +10 -0
  196. package/dist/internal/features/work/editors/spreadsheet-header-footer-fields.d.ts +5 -0
  197. package/dist/internal/features/work/editors/spreadsheet-keyboard-navigation.d.ts +18 -0
  198. package/dist/internal/features/work/editors/spreadsheet-number-format.d.ts +11 -0
  199. package/dist/internal/features/work/editors/spreadsheet-pivot-panel.d.ts +10 -0
  200. package/dist/internal/features/work/editors/spreadsheet-print-settings-panel.d.ts +6 -0
  201. package/dist/internal/features/work/editors/spreadsheet-protection-panel.d.ts +7 -0
  202. package/dist/internal/features/work/editors/spreadsheet-sheet-bar.d.ts +17 -0
  203. package/dist/internal/features/work/editors/spreadsheet-sheet-model.d.ts +13 -0
  204. package/dist/internal/features/work/editors/spreadsheet-trendline-editor.d.ts +8 -0
  205. package/dist/internal/features/work/editors/spreadsheet-workbook-panel.d.ts +16 -0
  206. package/dist/internal/features/work/editors/use-document-comments.d.ts +26 -0
  207. package/dist/internal/features/work/editors/use-document-insert-commands.d.ts +19 -0
  208. package/dist/internal/features/work/editors/use-document-layout-fonts.d.ts +2 -0
  209. package/dist/internal/features/work/editors/use-document-page-chrome.d.ts +33 -0
  210. package/dist/internal/features/work/editors/use-document-pagination.d.ts +46 -0
  211. package/dist/internal/features/work/editors/use-markdown-source-history.d.ts +16 -0
  212. package/dist/internal/features/work/editors/use-office-draft.d.ts +10 -0
  213. package/dist/internal/features/work/editors/use-office-editor-keyboard-shortcuts.d.ts +9 -0
  214. package/dist/internal/features/work/editors/use-office-editor-runtime.d.ts +6 -0
  215. package/dist/internal/features/work/editors/use-office-editor-wheel-zoom.d.ts +19 -0
  216. package/dist/internal/features/work/editors/use-office-history.d.ts +10 -0
  217. package/dist/internal/features/work/editors/use-presentation-clipboard.d.ts +22 -0
  218. package/dist/internal/features/work/editors/use-presentation-design-commands.d.ts +33 -0
  219. package/dist/internal/features/work/editors/use-presentation-element-commands.d.ts +29 -0
  220. package/dist/internal/features/work/editors/use-presentation-geometry.d.ts +17 -0
  221. package/dist/internal/features/work/editors/use-presentation-history.d.ts +12 -0
  222. package/dist/internal/features/work/editors/use-presentation-review-commands.d.ts +22 -0
  223. package/dist/internal/features/work/editors/use-presentation-selection.d.ts +11 -0
  224. package/dist/internal/features/work/editors/use-presentation-slide-commands.d.ts +18 -0
  225. package/dist/internal/features/work/editors/use-presentation-thumbnail-visibility.d.ts +4 -0
  226. package/dist/internal/features/work/editors/use-presentation-thumbnail-window.d.ts +17 -0
  227. package/dist/internal/features/work/editors/use-presentation-transform.d.ts +53 -0
  228. package/dist/internal/features/work/editors/use-spreadsheet-calculation.d.ts +17 -0
  229. package/dist/internal/features/work/editors/use-spreadsheet-workbook-sync.d.ts +10 -0
  230. package/dist/internal/features/work/editors/work-office-chrome.d.ts +61 -0
  231. package/dist/internal/features/work/editors/work-office-ribbon-overflow.d.ts +18 -0
  232. package/dist/internal/features/work/work-agent-proposal-apply.d.ts +8 -0
  233. package/dist/internal/features/work/work-agent-proposal.d.ts +55 -0
  234. package/dist/internal/features/work/work-agent-request.d.ts +6 -0
  235. package/dist/internal/features/work/work-chart-series-analysis-context.d.ts +3 -0
  236. package/dist/internal/features/work/work-document-caption-nodes.d.ts +13 -0
  237. package/dist/internal/features/work/work-document-captions.d.ts +14 -0
  238. package/dist/internal/features/work/work-document-changes.d.ts +35 -0
  239. package/dist/internal/features/work/work-document-character-formatting.d.ts +13 -0
  240. package/dist/internal/features/work/work-document-citation-nodes.d.ts +25 -0
  241. package/dist/internal/features/work/work-document-citations.d.ts +21 -0
  242. package/dist/internal/features/work/work-document-columns.d.ts +15 -0
  243. package/dist/internal/features/work/work-document-comments.d.ts +48 -0
  244. package/dist/internal/features/work/work-document-extensions.d.ts +11 -0
  245. package/dist/internal/features/work/work-document-field-node.d.ts +12 -0
  246. package/dist/internal/features/work/work-document-fields.d.ts +15 -0
  247. package/dist/internal/features/work/work-document-file-io.d.ts +4 -0
  248. package/dist/internal/features/work/work-document-fonts.d.ts +16 -0
  249. package/dist/internal/features/work/work-document-image-layout.d.ts +29 -0
  250. package/dist/internal/features/work/work-document-incremental-layout.d.ts +17 -0
  251. package/dist/internal/features/work/work-document-layout.d.ts +5 -0
  252. package/dist/internal/features/work/work-document-line-measurement.d.ts +24 -0
  253. package/dist/internal/features/work/work-document-links.d.ts +2 -0
  254. package/dist/internal/features/work/work-document-lists.d.ts +25 -0
  255. package/dist/internal/features/work/work-document-model-codec.d.ts +3 -0
  256. package/dist/internal/features/work/work-document-model.d.ts +12 -0
  257. package/dist/internal/features/work/work-document-note-nodes.d.ts +11 -0
  258. package/dist/internal/features/work/work-document-notes.d.ts +18 -0
  259. package/dist/internal/features/work/work-document-outline.d.ts +14 -0
  260. package/dist/internal/features/work/work-document-page-break.d.ts +2 -0
  261. package/dist/internal/features/work/work-document-page-chrome-commands.d.ts +15 -0
  262. package/dist/internal/features/work/work-document-page-chrome.d.ts +19 -0
  263. package/dist/internal/features/work/work-document-page-color.d.ts +3 -0
  264. package/dist/internal/features/work/work-document-pages.d.ts +19 -0
  265. package/dist/internal/features/work/work-document-pagination-decorations.d.ts +3 -0
  266. package/dist/internal/features/work/work-document-pagination-dom.d.ts +35 -0
  267. package/dist/internal/features/work/work-document-pagination-measurement.d.ts +9 -0
  268. package/dist/internal/features/work/work-document-pagination-types.d.ts +88 -0
  269. package/dist/internal/features/work/work-document-pagination.d.ts +17 -0
  270. package/dist/internal/features/work/work-document-paragraph-formatting.d.ts +61 -0
  271. package/dist/internal/features/work/work-document-search.d.ts +11 -0
  272. package/dist/internal/features/work/work-document-section-editor.d.ts +20 -0
  273. package/dist/internal/features/work/work-document-section-node.d.ts +13 -0
  274. package/dist/internal/features/work/work-document-section.d.ts +34 -0
  275. package/dist/internal/features/work/work-document-selection-menu.d.ts +54 -0
  276. package/dist/internal/features/work/work-document-tab-node.d.ts +6 -0
  277. package/dist/internal/features/work/work-document-tab-stops.d.ts +29 -0
  278. package/dist/internal/features/work/work-document-table-cell-formatting.d.ts +46 -0
  279. package/dist/internal/features/work/work-document-table-commands.d.ts +17 -0
  280. package/dist/internal/features/work/work-document-table-pagination.d.ts +5 -0
  281. package/dist/internal/features/work/work-document-table-row.d.ts +37 -0
  282. package/dist/internal/features/work/work-document-table-sizing.d.ts +27 -0
  283. package/dist/internal/features/work/work-document-text-layout.d.ts +14 -0
  284. package/dist/internal/features/work/work-docx-bibliography.d.ts +12 -0
  285. package/dist/internal/features/work/work-docx-caption-diagnostics.d.ts +6 -0
  286. package/dist/internal/features/work/work-docx-caption-export.d.ts +4 -0
  287. package/dist/internal/features/work/work-docx-caption-fields.d.ts +5 -0
  288. package/dist/internal/features/work/work-docx-caption-import.d.ts +20 -0
  289. package/dist/internal/features/work/work-docx-change-import.d.ts +12 -0
  290. package/dist/internal/features/work/work-docx-citation-diagnostics.d.ts +3 -0
  291. package/dist/internal/features/work/work-docx-citation-export.d.ts +3 -0
  292. package/dist/internal/features/work/work-docx-citation-import.d.ts +23 -0
  293. package/dist/internal/features/work/work-docx-column-export.d.ts +14 -0
  294. package/dist/internal/features/work/work-docx-column-import.d.ts +2 -0
  295. package/dist/internal/features/work/work-docx-comment-import.d.ts +14 -0
  296. package/dist/internal/features/work/work-docx-export-formatting.d.ts +30 -0
  297. package/dist/internal/features/work/work-docx-export-image.d.ts +2 -0
  298. package/dist/internal/features/work/work-docx-export.d.ts +2 -0
  299. package/dist/internal/features/work/work-docx-field-export.d.ts +2 -0
  300. package/dist/internal/features/work/work-docx-field-import.d.ts +16 -0
  301. package/dist/internal/features/work/work-docx-field-instructions.d.ts +8 -0
  302. package/dist/internal/features/work/work-docx-image-layout-import.d.ts +12 -0
  303. package/dist/internal/features/work/work-docx-import.d.ts +50 -0
  304. package/dist/internal/features/work/work-docx-list-import.d.ts +14 -0
  305. package/dist/internal/features/work/work-docx-note-diagnostics.d.ts +3 -0
  306. package/dist/internal/features/work/work-docx-note-import.d.ts +3 -0
  307. package/dist/internal/features/work/work-docx-page-chrome-diagnostics.d.ts +3 -0
  308. package/dist/internal/features/work/work-docx-page-chrome-import.d.ts +11 -0
  309. package/dist/internal/features/work/work-docx-page-color.d.ts +2 -0
  310. package/dist/internal/features/work/work-docx-paragraph-alignment-import.d.ts +12 -0
  311. package/dist/internal/features/work/work-docx-paragraph-direction-import.d.ts +12 -0
  312. package/dist/internal/features/work/work-docx-paragraph-indent-import.d.ts +12 -0
  313. package/dist/internal/features/work/work-docx-paragraph-pagination-import.d.ts +12 -0
  314. package/dist/internal/features/work/work-docx-paragraph-spacing-import.d.ts +12 -0
  315. package/dist/internal/features/work/work-docx-paragraph-styles.d.ts +18 -0
  316. package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +19 -0
  317. package/dist/internal/features/work/work-docx-tab-stop-import.d.ts +13 -0
  318. package/dist/internal/features/work/work-docx-table-cell-export.d.ts +4 -0
  319. package/dist/internal/features/work/work-docx-table-cell-import.d.ts +16 -0
  320. package/dist/internal/features/work/work-docx-table-row-import.d.ts +13 -0
  321. package/dist/internal/features/work/work-docx-table-sizing-export.d.ts +8 -0
  322. package/dist/internal/features/work/work-docx-table-sizing-import.d.ts +12 -0
  323. package/dist/internal/features/work/work-docx-theme.d.ts +9 -0
  324. package/dist/internal/features/work/work-file-data.d.ts +1 -0
  325. package/dist/internal/features/work/work-file-download.d.ts +3 -0
  326. package/dist/internal/features/work/work-file-io.d.ts +8 -0
  327. package/dist/internal/features/work/work-markdown-extensions.d.ts +19 -0
  328. package/dist/internal/features/work/work-markdown-file-io.d.ts +3 -0
  329. package/dist/internal/features/work/work-markdown-selection-menu.d.ts +57 -0
  330. package/dist/internal/features/work/work-office-diagnostics.d.ts +9 -0
  331. package/dist/internal/features/work/work-ooxml-package.d.ts +28 -0
  332. package/dist/internal/features/work/work-pdf-export.d.ts +23 -0
  333. package/dist/internal/features/work/work-pptx-chart-axes.d.ts +3 -0
  334. package/dist/internal/features/work/work-pptx-chart-axis-diagnostics.d.ts +5 -0
  335. package/dist/internal/features/work/work-pptx-chart-data-labels.d.ts +12 -0
  336. package/dist/internal/features/work/work-pptx-chart-import.d.ts +11 -0
  337. package/dist/internal/features/work/work-pptx-chart-layout-style.d.ts +15 -0
  338. package/dist/internal/features/work/work-pptx-chart-series-analysis.d.ts +13 -0
  339. package/dist/internal/features/work/work-pptx-chart-xy.d.ts +3 -0
  340. package/dist/internal/features/work/work-pptx-comments.d.ts +17 -0
  341. package/dist/internal/features/work/work-pptx-export.d.ts +4 -0
  342. package/dist/internal/features/work/work-pptx-groups.d.ts +19 -0
  343. package/dist/internal/features/work/work-pptx-import.d.ts +6 -0
  344. package/dist/internal/features/work/work-pptx-layout-export.d.ts +13 -0
  345. package/dist/internal/features/work/work-pptx-layout-import.d.ts +30 -0
  346. package/dist/internal/features/work/work-pptx-style.d.ts +13 -0
  347. package/dist/internal/features/work/work-pptx-transition.d.ts +13 -0
  348. package/dist/internal/features/work/work-presentation-agent-context.d.ts +6 -0
  349. package/dist/internal/features/work/work-presentation-chart-axes.d.ts +14 -0
  350. package/dist/internal/features/work/work-presentation-charts.d.ts +37 -0
  351. package/dist/internal/features/work/work-presentation-clipboard.d.ts +26 -0
  352. package/dist/internal/features/work/work-presentation-file-io.d.ts +15 -0
  353. package/dist/internal/features/work/work-presentation-groups.d.ts +17 -0
  354. package/dist/internal/features/work/work-presentation-layouts.d.ts +13 -0
  355. package/dist/internal/features/work/work-presentation-transition.d.ts +4 -0
  356. package/dist/internal/features/work/work-presentation-visual-scale.d.ts +2 -0
  357. package/dist/internal/features/work/work-repository.d.ts +4 -0
  358. package/dist/internal/features/work/work-spreadsheet-agent-context.d.ts +15 -0
  359. package/dist/internal/features/work/work-spreadsheet-chart-axis.d.ts +42 -0
  360. package/dist/internal/features/work/work-spreadsheet-chart-layout.d.ts +29 -0
  361. package/dist/internal/features/work/work-spreadsheet-chart-legend-svg.d.ts +18 -0
  362. package/dist/internal/features/work/work-spreadsheet-chart-series-layout.d.ts +24 -0
  363. package/dist/internal/features/work/work-spreadsheet-chart-series-style.d.ts +29 -0
  364. package/dist/internal/features/work/work-spreadsheet-chart-svg-utils.d.ts +7 -0
  365. package/dist/internal/features/work/work-spreadsheet-chart-svg.d.ts +3 -0
  366. package/dist/internal/features/work/work-spreadsheet-chart-types.d.ts +147 -0
  367. package/dist/internal/features/work/work-spreadsheet-chart-validation.d.ts +2 -0
  368. package/dist/internal/features/work/work-spreadsheet-charts.d.ts +17 -0
  369. package/dist/internal/features/work/work-spreadsheet-combination-chart-svg.d.ts +9 -0
  370. package/dist/internal/features/work/work-spreadsheet-comments.d.ts +7 -0
  371. package/dist/internal/features/work/work-spreadsheet-conditional-canvas.d.ts +5 -0
  372. package/dist/internal/features/work/work-spreadsheet-conditional-colors.d.ts +9 -0
  373. package/dist/internal/features/work/work-spreadsheet-conditional-comparisons.d.ts +4 -0
  374. package/dist/internal/features/work/work-spreadsheet-conditional-data-bar.d.ts +8 -0
  375. package/dist/internal/features/work/work-spreadsheet-conditional-format.d.ts +10 -0
  376. package/dist/internal/features/work/work-spreadsheet-conditional-icons.d.ts +107 -0
  377. package/dist/internal/features/work/work-spreadsheet-conditional-values.d.ts +19 -0
  378. package/dist/internal/features/work/work-spreadsheet-data-label-svg.d.ts +27 -0
  379. package/dist/internal/features/work/work-spreadsheet-error-bar-svg.d.ts +5 -0
  380. package/dist/internal/features/work/work-spreadsheet-error-bars.d.ts +8 -0
  381. package/dist/internal/features/work/work-spreadsheet-formula-analysis.d.ts +30 -0
  382. package/dist/internal/features/work/work-spreadsheet-formula-support.d.ts +1 -0
  383. package/dist/internal/features/work/work-spreadsheet-formulas.d.ts +19 -0
  384. package/dist/internal/features/work/work-spreadsheet-header-footer.d.ts +14 -0
  385. package/dist/internal/features/work/work-spreadsheet-line-chart-svg.d.ts +10 -0
  386. package/dist/internal/features/work/work-spreadsheet-page-breaks.d.ts +4 -0
  387. package/dist/internal/features/work/work-spreadsheet-page-setup.d.ts +26 -0
  388. package/dist/internal/features/work/work-spreadsheet-pivot-engine.d.ts +21 -0
  389. package/dist/internal/features/work/work-spreadsheet-pivot-values.d.ts +7 -0
  390. package/dist/internal/features/work/work-spreadsheet-pivots.d.ts +27 -0
  391. package/dist/internal/features/work/work-spreadsheet-protection.d.ts +55 -0
  392. package/dist/internal/features/work/work-spreadsheet-ranges.d.ts +25 -0
  393. package/dist/internal/features/work/work-spreadsheet-trendline-svg.d.ts +9 -0
  394. package/dist/internal/features/work/work-spreadsheet-trendlines.d.ts +11 -0
  395. package/dist/internal/features/work/work-spreadsheet-xy-chart-axes-svg.d.ts +10 -0
  396. package/dist/internal/features/work/work-templates.d.ts +4 -0
  397. package/dist/internal/features/work/work-types.d.ts +513 -0
  398. package/dist/internal/features/work/work-xlsx-chart-axes.d.ts +4 -0
  399. package/dist/internal/features/work/work-xlsx-chart-diagnostics.d.ts +3 -0
  400. package/dist/internal/features/work/work-xlsx-chart-layout.d.ts +16 -0
  401. package/dist/internal/features/work/work-xlsx-chart-series-style.d.ts +6 -0
  402. package/dist/internal/features/work/work-xlsx-chart-values.d.ts +10 -0
  403. package/dist/internal/features/work/work-xlsx-charts.d.ts +32 -0
  404. package/dist/internal/features/work/work-xlsx-conditional-format-diagnostics.d.ts +6 -0
  405. package/dist/internal/features/work/work-xlsx-conditional-format-write.d.ts +11 -0
  406. package/dist/internal/features/work/work-xlsx-conditional-format.d.ts +29 -0
  407. package/dist/internal/features/work/work-xlsx-defined-names.d.ts +4 -0
  408. package/dist/internal/features/work/work-xlsx-drawing-geometry.d.ts +27 -0
  409. package/dist/internal/features/work/work-xlsx-formula-diagnostics.d.ts +3 -0
  410. package/dist/internal/features/work/work-xlsx-formulas.d.ts +40 -0
  411. package/dist/internal/features/work/work-xlsx-header-footer.d.ts +12 -0
  412. package/dist/internal/features/work/work-xlsx-images.d.ts +17 -0
  413. package/dist/internal/features/work/work-xlsx-interop.d.ts +39 -0
  414. package/dist/internal/features/work/work-xlsx-page-breaks.d.ts +7 -0
  415. package/dist/internal/features/work/work-xlsx-page-setup-diagnostics.d.ts +2 -0
  416. package/dist/internal/features/work/work-xlsx-page-setup.d.ts +5 -0
  417. package/dist/internal/features/work/work-xlsx-pivot-diagnostics.d.ts +3 -0
  418. package/dist/internal/features/work/work-xlsx-pivot-xml.d.ts +9 -0
  419. package/dist/internal/features/work/work-xlsx-pivots.d.ts +32 -0
  420. package/dist/internal/features/work/work-xlsx-protection.d.ts +24 -0
  421. package/dist/internal/features/workspace/components/workspace-context-menu.d.ts +29 -0
  422. package/dist/internal/features/workspace/components/workspace-text-control-selection.d.ts +7 -0
  423. package/dist/internal/kernel/office-kernel-client-types.d.ts +40 -0
  424. package/dist/internal/kernel/office-kernel-client.d.ts +4 -0
  425. package/dist/internal/kernel/office-kernel-fallback.d.ts +2 -0
  426. package/dist/internal/kernel/office-kernel-presentation-fallback.d.ts +2 -0
  427. package/dist/internal/kernel/office-kernel-protocol.d.ts +229 -0
  428. package/dist/internal/kernel/office-kernel-spreadsheet-fallback-formula.d.ts +3 -0
  429. package/dist/internal/kernel/office-kernel-spreadsheet-fallback-validation.d.ts +5 -0
  430. package/dist/internal/kernel/office-kernel-spreadsheet-fallback-value.d.ts +6 -0
  431. package/dist/internal/kernel/office-kernel-spreadsheet-fallback.d.ts +2 -0
  432. package/dist/internal/kernel/office-kernel-spreadsheet-protocol.d.ts +112 -0
  433. package/dist/internal/kernel/office-kernel-spreadsheet-session-fallback.d.ts +8 -0
  434. package/dist/internal/kernel/office-kernel-text-fallback.d.ts +10 -0
  435. package/dist/internal/kernel/office-kernel-version.d.ts +1 -0
  436. package/dist/internal/kernel/office-kernel.worker.d.ts +1 -0
  437. package/dist/internal/keyboard-shortcuts.d.ts +2 -0
  438. package/dist/internal/state/app-state.d.ts +8 -0
  439. package/dist/noto-naskh-arabic-regular.ttf +0 -0
  440. package/dist/noto-naskh-arabic.LICENSE.txt +94 -0
  441. package/dist/noto-sans-hans-regular.otf +0 -0
  442. package/dist/noto-sans-hans.LICENSE.txt +94 -0
  443. package/dist/noto-sans-hebrew-regular.ttf +0 -0
  444. package/dist/noto-sans-hebrew.LICENSE.txt +94 -0
  445. package/dist/noto-sans-regular.ttf +0 -0
  446. package/dist/noto-sans.LICENSE.txt +94 -0
  447. package/dist/office-kernel.wasm +0 -0
  448. package/dist/office-kernel.worker.js +14605 -0
  449. package/dist/office-surface.d.ts +10 -0
  450. package/dist/pdfium.LICENSE.txt +196 -0
  451. package/dist/pdfium.wasm +0 -0
  452. package/dist/pptxgen.LICENSE.txt +21 -0
  453. package/dist/pptxgen.bundle.js +11244 -0
  454. package/dist/react.d.ts +51 -0
  455. package/dist/react.js +1 -0
  456. package/dist/styles.css +17435 -0
  457. package/dist/styles.js +0 -0
  458. package/dist/vue.d.ts +282 -0
  459. package/dist/vue.js +231 -0
  460. package/dist/web-component.d.ts +98 -0
  461. package/dist/web-component.js +335 -0
  462. package/docs/browser-editor-architecture.md +947 -0
  463. package/package.json +165 -0
@@ -0,0 +1,23 @@
1
+ export interface ImportedDocxCitationMarkers {
2
+ citations: ImportedDocxCitationMarker[];
3
+ bibliographies: ImportedDocxBibliographyMarker[];
4
+ }
5
+ interface ImportedDocxCitationMarker {
6
+ start: string;
7
+ end: string;
8
+ id: string;
9
+ instruction: string;
10
+ tags: string[];
11
+ display: string;
12
+ }
13
+ interface ImportedDocxBibliographyMarker {
14
+ start: string;
15
+ end: string;
16
+ id: string;
17
+ instruction: string;
18
+ display: string;
19
+ }
20
+ export declare function markDocxCitationFields(document: Document): ImportedDocxCitationMarkers;
21
+ export declare function applyImportedDocxCitationMarkers(document: Document, markers: ImportedDocxCitationMarkers): void;
22
+ export declare function hasImportedDocxCitationMarkers(markers: ImportedDocxCitationMarkers): boolean;
23
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { WorkDocumentSectionLayout } from './work-types';
2
+ export declare function docxSectionColumns(layout: WorkDocumentSectionLayout, pageWidth: number, docx: typeof import('docx')): {
3
+ count: number;
4
+ space: number;
5
+ separate: boolean;
6
+ equalWidth: boolean;
7
+ children?: undefined;
8
+ } | {
9
+ count: number;
10
+ separate: boolean;
11
+ equalWidth: boolean;
12
+ children: import("docx").Column[];
13
+ space?: undefined;
14
+ };
@@ -0,0 +1,2 @@
1
+ import type { WorkDocumentColumns } from './work-types';
2
+ export declare function importDocxColumns(element: Element, fallback: WorkDocumentColumns): WorkDocumentColumns;
@@ -0,0 +1,14 @@
1
+ import type { WorkDocumentComment } from './work-types';
2
+ import { type OoxmlPackage } from './work-ooxml-package';
3
+ export interface ImportedDocxCommentRange {
4
+ id: string;
5
+ start: string;
6
+ end: string;
7
+ }
8
+ export interface ImportedDocxCommentMarkers {
9
+ comments: WorkDocumentComment[];
10
+ ranges: ImportedDocxCommentRange[];
11
+ }
12
+ export declare function markDocxComments(document: Document, archive: OoxmlPackage): Promise<ImportedDocxCommentMarkers>;
13
+ export declare function applyImportedDocxCommentMarkers(document: Document, markers: ImportedDocxCommentMarkers): void;
14
+ export declare function hasImportedDocxCommentMarkers(markers: ImportedDocxCommentMarkers): boolean;
@@ -0,0 +1,30 @@
1
+ import type { TabStopDefinition } from 'docx';
2
+ export declare function paragraphAlignment(element: HTMLElement, docx: typeof import('docx')): "right" | "left" | "center" | "both" | undefined;
3
+ export declare function paragraphDirectionOptions(element: HTMLElement): {
4
+ bidirectional?: boolean;
5
+ };
6
+ export declare function paragraphBidirectional(element: HTMLElement): boolean | undefined;
7
+ export declare function domDirection(element: HTMLElement): 'ltr' | 'rtl' | undefined;
8
+ export declare function paragraphSpacingOptions(element: HTMLElement, heading: boolean, docx: typeof import('docx')): {
9
+ lineRule?: "auto" | "exact" | "atLeast" | undefined;
10
+ line: number;
11
+ before?: number | undefined;
12
+ after: number;
13
+ };
14
+ export declare function paragraphIndent(element: HTMLElement, tag: string): {
15
+ left?: number;
16
+ right?: number;
17
+ hanging?: number;
18
+ firstLine?: number;
19
+ } | undefined;
20
+ export declare function paragraphPaginationOptions(element: HTMLElement): {
21
+ keepLines: boolean | undefined;
22
+ keepNext: boolean | undefined;
23
+ pageBreakBefore: boolean | undefined;
24
+ widowControl: boolean | undefined;
25
+ };
26
+ export declare function paragraphTabStops(element: HTMLElement, docx: typeof import('docx')): TabStopDefinition[] | undefined;
27
+ export declare function dataBoolean(value: string | undefined): boolean | undefined;
28
+ export declare function cssFontFamily(value: string): string | undefined;
29
+ export declare function cssFontSize(value: string): number | undefined;
30
+ export declare function cssColorToHex(source: string): string | undefined;
@@ -0,0 +1,2 @@
1
+ import type { ParagraphChild } from 'docx';
2
+ export declare function imageToDocx(element: HTMLImageElement, docx: typeof import('docx')): Promise<ParagraphChild>;
@@ -0,0 +1,2 @@
1
+ import type { WorkDocumentContent } from './work-types';
2
+ export declare function createDocxBlob(content: WorkDocumentContent): Promise<Blob>;
@@ -0,0 +1,2 @@
1
+ import type { ParagraphChild } from 'docx';
2
+ export declare function docxDocumentFieldRun(element: HTMLElement, docx: typeof import('docx')): ParagraphChild;
@@ -0,0 +1,16 @@
1
+ import { type WorkDocumentFieldKind } from './work-document-fields';
2
+ export interface ImportedDocxFieldMarkers {
3
+ fields: ImportedDocxFieldMarker[];
4
+ }
5
+ interface ImportedDocxFieldMarker {
6
+ start: string;
7
+ end: string;
8
+ id: string;
9
+ kind: WorkDocumentFieldKind;
10
+ instruction: string;
11
+ display: string;
12
+ }
13
+ export declare function markDocxBodyFields(document: Document): ImportedDocxFieldMarkers;
14
+ export declare function applyImportedDocxFieldMarkers(document: Document, markers: ImportedDocxFieldMarkers): void;
15
+ export declare function hasImportedDocxFieldMarkers(markers: ImportedDocxFieldMarkers): boolean;
16
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface DocxFieldOccurrence {
2
+ instruction: string;
3
+ start: Element;
4
+ end: Element;
5
+ }
6
+ export declare function docxFieldInstructions(root: ParentNode): string[];
7
+ export declare function docxFieldOccurrences(root: ParentNode): DocxFieldOccurrence[];
8
+ export declare function docxFieldResultText(field: DocxFieldOccurrence): string;
@@ -0,0 +1,12 @@
1
+ import { type WorkDocumentImageLayoutOptions } from './work-document-image-layout';
2
+ export interface ImportedDocxImageLayoutMarker {
3
+ startMarker: string;
4
+ endMarker: string;
5
+ options: WorkDocumentImageLayoutOptions;
6
+ }
7
+ export interface ImportedDocxImageLayoutMarkers {
8
+ images: ImportedDocxImageLayoutMarker[];
9
+ }
10
+ export declare function markDocxImageLayouts(document: Document): ImportedDocxImageLayoutMarkers;
11
+ export declare function applyImportedDocxImageLayoutMarkers(document: Document, markers: ImportedDocxImageLayoutMarkers): void;
12
+ export declare function hasImportedDocxImageLayoutMarkers(markers: ImportedDocxImageLayoutMarkers): boolean;
@@ -0,0 +1,50 @@
1
+ import { type ImportedDocxCaptionMarkers } from './work-docx-caption-import';
2
+ import { type ImportedDocxChangeMarkers } from './work-docx-change-import';
3
+ import { type ImportedDocxCitationMarkers } from './work-docx-citation-import';
4
+ import { type ImportedDocxCommentMarkers } from './work-docx-comment-import';
5
+ import { type ImportedDocxFieldMarkers } from './work-docx-field-import';
6
+ import { type ImportedDocxListMarkers } from './work-docx-list-import';
7
+ import { type ImportedDocxImageLayoutMarkers } from './work-docx-image-layout-import';
8
+ import { type ImportedDocxParagraphDirectionMarkers } from './work-docx-paragraph-direction-import';
9
+ import { type ImportedDocxParagraphAlignmentMarkers } from './work-docx-paragraph-alignment-import';
10
+ import { type ImportedDocxParagraphIndentMarkers } from './work-docx-paragraph-indent-import';
11
+ import { type ImportedDocxParagraphPaginationMarkers } from './work-docx-paragraph-pagination-import';
12
+ import { type ImportedDocxParagraphSpacingMarkers } from './work-docx-paragraph-spacing-import';
13
+ import { type ImportedDocxRunFormattingMarkers } from './work-docx-run-formatting-import';
14
+ import { type ImportedDocxParagraphTabStopMarkers } from './work-docx-tab-stop-import';
15
+ import { type ImportedDocxTableCellMarkers } from './work-docx-table-cell-import';
16
+ import { type ImportedDocxTableRowMarkers } from './work-docx-table-row-import';
17
+ import { type ImportedDocxTableSizingMarkers } from './work-docx-table-sizing-import';
18
+ import type { WorkDocumentContent, WorkDocumentSectionLayout } from './work-types';
19
+ type ImportedDocumentLayout = Omit<WorkDocumentContent, 'type' | 'html'>;
20
+ export interface PreparedDocxImport {
21
+ conversionBuffer: ArrayBuffer;
22
+ sections: Array<{
23
+ id: string;
24
+ layout: WorkDocumentSectionLayout;
25
+ }>;
26
+ pageColor?: string;
27
+ captionMarkers: ImportedDocxCaptionMarkers;
28
+ changeMarkers: ImportedDocxChangeMarkers;
29
+ commentMarkers: ImportedDocxCommentMarkers;
30
+ fieldMarkers: ImportedDocxFieldMarkers;
31
+ citationMarkers: ImportedDocxCitationMarkers;
32
+ listMarkers: ImportedDocxListMarkers;
33
+ imageLayoutMarkers: ImportedDocxImageLayoutMarkers;
34
+ paragraphAlignmentMarkers: ImportedDocxParagraphAlignmentMarkers;
35
+ paragraphDirectionMarkers: ImportedDocxParagraphDirectionMarkers;
36
+ paragraphIndentMarkers: ImportedDocxParagraphIndentMarkers;
37
+ paragraphPaginationMarkers: ImportedDocxParagraphPaginationMarkers;
38
+ paragraphSpacingMarkers: ImportedDocxParagraphSpacingMarkers;
39
+ runFormattingMarkers: ImportedDocxRunFormattingMarkers;
40
+ tabStopMarkers: ImportedDocxParagraphTabStopMarkers;
41
+ tableCellMarkers: ImportedDocxTableCellMarkers;
42
+ tableRowMarkers: ImportedDocxTableRowMarkers;
43
+ tableSizingMarkers: ImportedDocxTableSizingMarkers;
44
+ bibliography?: WorkDocumentContent['bibliography'];
45
+ trackChanges: boolean;
46
+ }
47
+ export declare function prepareDocxImport(buffer: ArrayBuffer): Promise<PreparedDocxImport>;
48
+ export declare function applyDocxSectionsToHtml(html: string, sections: PreparedDocxImport['sections'], captionMarkers?: ImportedDocxCaptionMarkers, changeMarkers?: ImportedDocxChangeMarkers, commentMarkers?: ImportedDocxCommentMarkers, fieldMarkers?: ImportedDocxFieldMarkers, citationMarkers?: ImportedDocxCitationMarkers, listMarkers?: ImportedDocxListMarkers, imageLayoutMarkers?: ImportedDocxImageLayoutMarkers, paragraphAlignmentMarkers?: ImportedDocxParagraphAlignmentMarkers, runFormattingMarkers?: ImportedDocxRunFormattingMarkers, paragraphDirectionMarkers?: ImportedDocxParagraphDirectionMarkers, paragraphIndentMarkers?: ImportedDocxParagraphIndentMarkers, paragraphSpacingMarkers?: ImportedDocxParagraphSpacingMarkers, paragraphPaginationMarkers?: ImportedDocxParagraphPaginationMarkers, bibliography?: WorkDocumentContent['bibliography'], tabStopMarkers?: ImportedDocxParagraphTabStopMarkers, tableCellMarkers?: ImportedDocxTableCellMarkers, tableRowMarkers?: ImportedDocxTableRowMarkers, tableSizingMarkers?: ImportedDocxTableSizingMarkers): string;
49
+ export declare function readDocxLayout(buffer: ArrayBuffer): Promise<ImportedDocumentLayout>;
50
+ export {};
@@ -0,0 +1,14 @@
1
+ export interface ImportedDocxListMarker {
2
+ marker: string;
3
+ start: number;
4
+ type?: ImportedDocxOrderedListType;
5
+ bulletStyle?: ImportedDocxBulletListStyle;
6
+ }
7
+ export interface ImportedDocxListMarkers {
8
+ lists: ImportedDocxListMarker[];
9
+ }
10
+ export type ImportedDocxOrderedListType = 'a' | 'A' | 'i' | 'I';
11
+ export type ImportedDocxBulletListStyle = 'disc' | 'circle' | 'square';
12
+ export declare function markDocxLists(document: Document, numbering: Document | null): ImportedDocxListMarkers;
13
+ export declare function applyImportedDocxListMarkers(document: Document, markers: ImportedDocxListMarkers): void;
14
+ export declare function hasImportedDocxListMarkers(markers: ImportedDocxListMarkers): boolean;
@@ -0,0 +1,3 @@
1
+ import { type OoxmlPackage } from './work-ooxml-package';
2
+ import type { WorkCompatibilityIssue } from './work-types';
3
+ export declare function diagnoseDocxNotes(archive: OoxmlPackage, document: Document | null): Promise<WorkCompatibilityIssue[]>;
@@ -0,0 +1,3 @@
1
+ import { type WorkDocumentNote } from './work-document-notes';
2
+ export declare function extractMammothDocumentNotes(document: Document): WorkDocumentNote[];
3
+ export declare function placeMammothDocumentNotes(document: Document, notes: WorkDocumentNote[]): void;
@@ -0,0 +1,3 @@
1
+ import { type OoxmlPackage } from './work-ooxml-package';
2
+ import type { WorkCompatibilityIssue } from './work-types';
3
+ export declare function diagnoseDocxPageChrome(archive: OoxmlPackage): Promise<WorkCompatibilityIssue[]>;
@@ -0,0 +1,11 @@
1
+ import { type OoxmlPackage, type OoxmlRelationship } from './work-ooxml-package';
2
+ import type { WorkDocumentPageChrome, WorkDocumentSectionLayout } from './work-types';
3
+ type Relationships = Map<string, OoxmlRelationship>;
4
+ export declare function importSectionPageChrome(section: Element, archive: OoxmlPackage, documentRelationships: Relationships, previous: WorkDocumentSectionLayout, oddEvenEnabled: boolean): Promise<{
5
+ pageChrome: WorkDocumentPageChrome;
6
+ headerText?: string;
7
+ footerText?: string;
8
+ showPageNumbers?: boolean;
9
+ }>;
10
+ export declare function documentUsesOddEvenPageChrome(settings: Document | null): boolean;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function importDocxPageColor(document: Document): string | undefined;
2
+ export declare function patchDocxPageColor(buffer: ArrayBuffer, value: string | undefined): Promise<ArrayBuffer>;
@@ -0,0 +1,12 @@
1
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
2
+ export type ImportedDocxParagraphAlignment = 'left' | 'center' | 'right' | 'justify';
3
+ export interface ImportedDocxParagraphAlignmentMarker {
4
+ marker: string;
5
+ alignment: ImportedDocxParagraphAlignment;
6
+ }
7
+ export interface ImportedDocxParagraphAlignmentMarkers {
8
+ paragraphs: ImportedDocxParagraphAlignmentMarker[];
9
+ }
10
+ export declare function markDocxParagraphAlignments(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphAlignmentMarkers;
11
+ export declare function applyImportedDocxParagraphAlignmentMarkers(document: Document, markers: ImportedDocxParagraphAlignmentMarkers): void;
12
+ export declare function hasImportedDocxParagraphAlignmentMarkers(markers: ImportedDocxParagraphAlignmentMarkers): boolean;
@@ -0,0 +1,12 @@
1
+ import type { DocumentParagraphDirection } from './work-document-paragraph-formatting';
2
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
3
+ export interface ImportedDocxParagraphDirectionMarker {
4
+ marker: string;
5
+ direction: DocumentParagraphDirection;
6
+ }
7
+ export interface ImportedDocxParagraphDirectionMarkers {
8
+ paragraphs: ImportedDocxParagraphDirectionMarker[];
9
+ }
10
+ export declare function markDocxParagraphDirections(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphDirectionMarkers;
11
+ export declare function applyImportedDocxParagraphDirectionMarkers(document: Document, markers: ImportedDocxParagraphDirectionMarkers): void;
12
+ export declare function hasImportedDocxParagraphDirectionMarkers(markers: ImportedDocxParagraphDirectionMarkers): boolean;
@@ -0,0 +1,12 @@
1
+ import { type DocumentParagraphIndent } from './work-document-paragraph-formatting';
2
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
3
+ export interface ImportedDocxParagraphIndentMarker {
4
+ marker: string;
5
+ indent: DocumentParagraphIndent;
6
+ }
7
+ export interface ImportedDocxParagraphIndentMarkers {
8
+ paragraphs: ImportedDocxParagraphIndentMarker[];
9
+ }
10
+ export declare function markDocxParagraphIndents(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphIndentMarkers;
11
+ export declare function applyImportedDocxParagraphIndentMarkers(document: Document, markers: ImportedDocxParagraphIndentMarkers): void;
12
+ export declare function hasImportedDocxParagraphIndentMarkers(markers: ImportedDocxParagraphIndentMarkers): boolean;
@@ -0,0 +1,12 @@
1
+ import type { DocumentParagraphPagination } from './work-document-paragraph-formatting';
2
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
3
+ export interface ImportedDocxParagraphPaginationMarker {
4
+ marker: string;
5
+ pagination: Partial<DocumentParagraphPagination>;
6
+ }
7
+ export interface ImportedDocxParagraphPaginationMarkers {
8
+ paragraphs: ImportedDocxParagraphPaginationMarker[];
9
+ }
10
+ export declare function markDocxParagraphPagination(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphPaginationMarkers;
11
+ export declare function applyImportedDocxParagraphPaginationMarkers(document: Document, markers: ImportedDocxParagraphPaginationMarkers): void;
12
+ export declare function hasImportedDocxParagraphPaginationMarkers(markers: ImportedDocxParagraphPaginationMarkers): boolean;
@@ -0,0 +1,12 @@
1
+ import type { DocumentParagraphSpacing } from './work-document-paragraph-formatting';
2
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
3
+ export interface ImportedDocxParagraphSpacingMarker {
4
+ marker: string;
5
+ spacing: Partial<DocumentParagraphSpacing>;
6
+ }
7
+ export interface ImportedDocxParagraphSpacingMarkers {
8
+ paragraphs: ImportedDocxParagraphSpacingMarker[];
9
+ }
10
+ export declare function markDocxParagraphSpacing(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphSpacingMarkers;
11
+ export declare function applyImportedDocxParagraphSpacingMarkers(document: Document, markers: ImportedDocxParagraphSpacingMarkers): void;
12
+ export declare function hasImportedDocxParagraphSpacingMarkers(markers: ImportedDocxParagraphSpacingMarkers): boolean;
@@ -0,0 +1,18 @@
1
+ interface DocxStyle {
2
+ basedOn?: string;
3
+ paragraphProperties?: Element;
4
+ runProperties?: Element;
5
+ }
6
+ export interface DocxParagraphStyleResolver {
7
+ defaultProperties?: Element;
8
+ defaultRunProperties?: Element;
9
+ defaultStyleId?: string;
10
+ styles: ReadonlyMap<string, DocxStyle>;
11
+ characterStyles: ReadonlyMap<string, DocxStyle>;
12
+ }
13
+ export type DocxParagraphStyleSource = Document | DocxParagraphStyleResolver | null | undefined;
14
+ export declare function createDocxParagraphStyleResolver(stylesDocument?: Document | null): DocxParagraphStyleResolver;
15
+ export declare function resolveDocxParagraphStyleResolver(source: DocxParagraphStyleSource): DocxParagraphStyleResolver;
16
+ export declare function docxParagraphPropertySources(directProperties: Element | undefined, resolver: DocxParagraphStyleResolver): Element[];
17
+ export declare function docxRunPropertySources(paragraphProperties: Element | undefined, runProperties: Element | undefined, resolver: DocxParagraphStyleResolver): Element[];
18
+ export {};
@@ -0,0 +1,19 @@
1
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
2
+ import { type DocxThemeSource } from './work-docx-theme';
3
+ export interface ImportedDocxRunFormatting {
4
+ fontFamily?: string;
5
+ fontSize?: number;
6
+ color?: string;
7
+ backgroundColor?: string;
8
+ }
9
+ export interface ImportedDocxRunFormattingMarker {
10
+ startMarker: string;
11
+ endMarker: string;
12
+ formatting: ImportedDocxRunFormatting;
13
+ }
14
+ export interface ImportedDocxRunFormattingMarkers {
15
+ runs: ImportedDocxRunFormattingMarker[];
16
+ }
17
+ export declare function markDocxRunFormatting(document: Document, styleSource?: DocxParagraphStyleSource, themeSource?: DocxThemeSource): ImportedDocxRunFormattingMarkers;
18
+ export declare function applyImportedDocxRunFormattingMarkers(document: Document, markers: ImportedDocxRunFormattingMarkers): void;
19
+ export declare function hasImportedDocxRunFormattingMarkers(markers: ImportedDocxRunFormattingMarkers): boolean;
@@ -0,0 +1,13 @@
1
+ import { type DocumentTabStop } from './work-document-tab-stops';
2
+ import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles';
3
+ export interface ImportedDocxParagraphTabStopMarker {
4
+ marker: string;
5
+ tabStops: DocumentTabStop[];
6
+ }
7
+ export interface ImportedDocxParagraphTabStopMarkers {
8
+ paragraphs: ImportedDocxParagraphTabStopMarker[];
9
+ inlineTabs: string[];
10
+ }
11
+ export declare function markDocxParagraphTabStops(document: Document, styleSource?: DocxParagraphStyleSource): ImportedDocxParagraphTabStopMarkers;
12
+ export declare function applyImportedDocxParagraphTabStopMarkers(document: Document, markers: ImportedDocxParagraphTabStopMarkers): void;
13
+ export declare function hasImportedDocxParagraphTabStopMarkers(markers: ImportedDocxParagraphTabStopMarkers): boolean;
@@ -0,0 +1,4 @@
1
+ import type { ITableCellOptions } from 'docx';
2
+ type TableCellPresentationOptions = Partial<Pick<ITableCellOptions, 'borders' | 'shading' | 'verticalAlign'>>;
3
+ export declare function documentTableCellDocxOptions(cell: HTMLTableCellElement, docx: typeof import('docx')): TableCellPresentationOptions;
4
+ export {};
@@ -0,0 +1,16 @@
1
+ export type ImportedDocxTableCellVerticalAlign = 'top' | 'middle' | 'bottom';
2
+ export type ImportedDocxTableCellBorderStyle = 'solid' | 'dashed' | 'dotted' | 'double' | 'none';
3
+ export interface ImportedDocxTableCellMarker {
4
+ marker: string;
5
+ backgroundColor?: string;
6
+ verticalAlign?: ImportedDocxTableCellVerticalAlign;
7
+ borderColor?: string;
8
+ borderStyle?: ImportedDocxTableCellBorderStyle;
9
+ borderWidth?: number;
10
+ }
11
+ export interface ImportedDocxTableCellMarkers {
12
+ cells: ImportedDocxTableCellMarker[];
13
+ }
14
+ export declare function markDocxTableCells(document: Document): ImportedDocxTableCellMarkers;
15
+ export declare function applyImportedDocxTableCellMarkers(document: Document, markers: ImportedDocxTableCellMarkers): void;
16
+ export declare function hasImportedDocxTableCellMarkers(markers: ImportedDocxTableCellMarkers): boolean;
@@ -0,0 +1,13 @@
1
+ export interface ImportedDocxTableRowMarker {
2
+ marker: string;
3
+ cantSplit?: boolean;
4
+ repeatHeader?: boolean;
5
+ rowHeight?: number;
6
+ rowHeightRule?: 'atLeast' | 'exact';
7
+ }
8
+ export interface ImportedDocxTableRowMarkers {
9
+ rows: ImportedDocxTableRowMarker[];
10
+ }
11
+ export declare function markDocxTableRows(document: Document): ImportedDocxTableRowMarkers;
12
+ export declare function applyImportedDocxTableRowMarkers(document: Document, markers: ImportedDocxTableRowMarkers): void;
13
+ export declare function hasImportedDocxTableRowMarkers(markers: ImportedDocxTableRowMarkers): boolean;
@@ -0,0 +1,8 @@
1
+ import type { ITableCellOptions, ITableOptions, ITableRowOptions } from 'docx';
2
+ type TableSizingDocxOptions = Pick<ITableOptions, 'columnWidths' | 'layout' | 'width'>;
3
+ type TableCellSizingDocxOptions = Pick<ITableCellOptions, 'width'>;
4
+ type TableRowSizingDocxOptions = Pick<ITableRowOptions, 'height'>;
5
+ export declare function documentTableSizingDocxOptions(table: HTMLTableElement, docx: typeof import('docx')): TableSizingDocxOptions;
6
+ export declare function documentTableCellSizingDocxOptions(cell: HTMLTableCellElement, docx: typeof import('docx')): TableCellSizingDocxOptions;
7
+ export declare function documentTableRowSizingDocxOptions(row: HTMLTableRowElement, docx: typeof import('docx')): TableRowSizingDocxOptions;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { DocumentTableLayoutMode } from './work-document-table-sizing';
2
+ export interface ImportedDocxTableSizingMarker {
3
+ marker: string;
4
+ layoutMode: DocumentTableLayoutMode;
5
+ columnWidths: number[];
6
+ }
7
+ export interface ImportedDocxTableSizingMarkers {
8
+ tables: ImportedDocxTableSizingMarker[];
9
+ }
10
+ export declare function markDocxTableSizing(document: Document): ImportedDocxTableSizingMarkers;
11
+ export declare function applyImportedDocxTableSizingMarkers(document: Document, markers: ImportedDocxTableSizingMarkers): void;
12
+ export declare function hasImportedDocxTableSizingMarkers(markers: ImportedDocxTableSizingMarkers): boolean;
@@ -0,0 +1,9 @@
1
+ export interface DocxThemeResolver {
2
+ colors: ReadonlyMap<string, string>;
3
+ fonts: ReadonlyMap<string, string>;
4
+ }
5
+ export type DocxThemeSource = Document | DocxThemeResolver | null | undefined;
6
+ export declare function createDocxThemeResolver(themeDocument?: Document | null): DocxThemeResolver;
7
+ export declare function resolveDocxThemeResolver(source: DocxThemeSource): DocxThemeResolver;
8
+ export declare function docxThemeFont(resolver: DocxThemeResolver, key: string | null): string | undefined;
9
+ export declare function docxThemeColor(resolver: DocxThemeResolver, key: string | null, tint?: string | null, shade?: string | null): string | undefined;
@@ -0,0 +1 @@
1
+ export declare function materializeWorkFile(file: File): Promise<File>;
@@ -0,0 +1,3 @@
1
+ export declare function fileNameWithoutExtension(value: string): string;
2
+ export declare function safeFileName(value: string): string;
3
+ export declare function downloadBlob(blob: Blob, name: string): void;
@@ -0,0 +1,8 @@
1
+ import { type WorkPresentationExportOptions } from './work-presentation-file-io';
2
+ import { type WorkArtifact, type WorkArtifactKind } from './work-types';
3
+ export declare const WORK_IMPORT_ACCEPT: string;
4
+ export type WorkArtifactExportOptions = WorkPresentationExportOptions;
5
+ export declare function importWorkFile(file: File): Promise<WorkArtifact>;
6
+ export declare function exportWorkArtifact(artifact: WorkArtifact, options?: WorkArtifactExportOptions): Promise<void>;
7
+ export declare function createWorkArtifactBlob(artifact: WorkArtifact, options?: WorkArtifactExportOptions): Promise<Blob>;
8
+ export declare function workKindForFile(file: File): WorkArtifactKind | null;
@@ -0,0 +1,19 @@
1
+ import { Extension, type Extensions } from '@tiptap/core';
2
+ export interface SetWorkMarkdownOptions {
3
+ emitUpdate?: boolean;
4
+ }
5
+ declare module '@tiptap/core' {
6
+ interface Commands<ReturnType> {
7
+ workMarkdown: {
8
+ setWorkMarkdown: (markdown: string, options?: SetWorkMarkdownOptions) => ReturnType;
9
+ };
10
+ }
11
+ }
12
+ export declare const WorkMarkdown: Extension<any, any>;
13
+ export declare function createWorkMarkdownExtensions(): Extensions;
14
+ export declare function markdownTaskCheckboxLabel(node: {
15
+ attrs: {
16
+ checked?: boolean;
17
+ };
18
+ textContent: string;
19
+ }): string;
@@ -0,0 +1,3 @@
1
+ import type { WorkArtifact } from './work-types';
2
+ export declare function importWorkMarkdownFile(file: File): Promise<WorkArtifact>;
3
+ export declare function createWorkMarkdownBlob(artifact: WorkArtifact): Blob;
@@ -0,0 +1,57 @@
1
+ import type { Editor } from '@tiptap/core';
2
+ import type { MarkdownSourceEdit, MarkdownSourceSelection } from './editors/markdown-source-commands';
3
+ import type { WorkDocumentSelectionMenuIcon } from './work-document-selection-menu';
4
+ import type { WorkMarkdownContent } from './work-types';
5
+ export type WorkMarkdownSelectionMenuIcon = WorkDocumentSelectionMenuIcon;
6
+ export type WorkMarkdownSelectionCommandFailure = 'command-rejected' | 'editor-unavailable' | 'invalid-text' | 'read-only' | 'stale-selection';
7
+ export type WorkMarkdownSelectionCommandResult = {
8
+ applied: true;
9
+ } | {
10
+ applied: false;
11
+ reason: WorkMarkdownSelectionCommandFailure;
12
+ };
13
+ export interface WorkMarkdownSelectionCommands {
14
+ copyText(): Promise<boolean>;
15
+ insertAfter(text: string): WorkMarkdownSelectionCommandResult;
16
+ insertBefore(text: string): WorkMarkdownSelectionCommandResult;
17
+ replaceText(text: string): WorkMarkdownSelectionCommandResult;
18
+ }
19
+ export interface WorkMarkdownSelectionSnapshot {
20
+ selection: {
21
+ surface: 'source' | 'visual';
22
+ from: number;
23
+ to: number;
24
+ text: string;
25
+ rawText: string;
26
+ beforeText: string;
27
+ afterText: string;
28
+ };
29
+ document: {
30
+ content: WorkMarkdownContent;
31
+ markdown: string;
32
+ text: string;
33
+ };
34
+ }
35
+ export interface WorkMarkdownSelectionContext extends WorkMarkdownSelectionSnapshot {
36
+ commands: WorkMarkdownSelectionCommands;
37
+ }
38
+ export interface WorkMarkdownSelectionMenuItem {
39
+ id: string;
40
+ label: string;
41
+ icon?: WorkMarkdownSelectionMenuIcon;
42
+ shortcut?: string;
43
+ ariaKeyShortcut?: string;
44
+ danger?: boolean;
45
+ disabled?: boolean;
46
+ separatorBefore?: boolean;
47
+ onSelect(context: WorkMarkdownSelectionContext): void | Promise<void>;
48
+ }
49
+ export type WorkGetMarkdownSelectionMenuItems = (context: WorkMarkdownSelectionSnapshot) => readonly WorkMarkdownSelectionMenuItem[];
50
+ export interface WorkMarkdownSelectionAction {
51
+ context: WorkMarkdownSelectionContext;
52
+ dispose(): void;
53
+ }
54
+ export declare function createWorkMarkdownSourceSelectionSnapshot(markdown: string, selection: MarkdownSourceSelection, content: WorkMarkdownContent): WorkMarkdownSelectionSnapshot | null;
55
+ export declare function createWorkMarkdownVisualSelectionSnapshot(editor: Editor, content: WorkMarkdownContent): WorkMarkdownSelectionSnapshot | null;
56
+ export declare function createWorkMarkdownSourceSelectionAction(snapshot: WorkMarkdownSelectionSnapshot, getMarkdown: () => string, applyEdit: (edit: MarkdownSourceEdit) => boolean): WorkMarkdownSelectionAction;
57
+ export declare function createWorkMarkdownVisualSelectionAction(editor: Editor, snapshot: WorkMarkdownSelectionSnapshot): WorkMarkdownSelectionAction;
@@ -0,0 +1,9 @@
1
+ import type { WorkBook } from 'xlsx';
2
+ import type { WorkCompatibilityReport } from './work-types';
3
+ interface ConversionMessage {
4
+ type: string;
5
+ message: string;
6
+ }
7
+ export declare function analyzeDocxCompatibility(file: File, messages: ConversionMessage[]): Promise<WorkCompatibilityReport>;
8
+ export declare function analyzeSpreadsheetCompatibility(file: File, extension: string, workbook: WorkBook): Promise<WorkCompatibilityReport | null>;
9
+ export {};
@@ -0,0 +1,28 @@
1
+ export interface OoxmlRelationship {
2
+ id: string;
3
+ target: string;
4
+ type: string;
5
+ targetMode?: string;
6
+ }
7
+ export declare class OoxmlPackage {
8
+ private readonly zip;
9
+ private constructor();
10
+ static load(buffer: ArrayBuffer): Promise<OoxmlPackage>;
11
+ has(partPath: string): boolean;
12
+ paths(prefix: string): string[];
13
+ text(partPath: string): Promise<string>;
14
+ xml(partPath: string): Promise<Document>;
15
+ bytes(partPath: string): Promise<Uint8Array>;
16
+ relationships(sourcePart: string): Promise<Map<string, OoxmlRelationship>>;
17
+ }
18
+ export declare function parseXml(source: string, label?: string): Document;
19
+ export declare function attribute(element: Element, name: string): string | null;
20
+ export declare function xmlNamespacePrefix(element: Element, namespace: string | null): string | null;
21
+ export declare function directChildren(parent: ParentNode, localName?: string): Element[];
22
+ export declare function directChild(parent: ParentNode, localName: string): Element | undefined;
23
+ export declare function descendants(parent: ParentNode, localName: string): Element[];
24
+ export declare function firstDescendant(parent: ParentNode | null | undefined, localName: string): Element | undefined;
25
+ export declare function childPath(parent: ParentNode | null | undefined, ...localNames: string[]): Element | undefined;
26
+ export declare function resolvePartTarget(sourcePart: string, target: string): string;
27
+ export declare function contentTypeForPart(partPath: string): string;
28
+ export declare function bytesToDataUrl(bytes: Uint8Array, contentType: string): string;
@@ -0,0 +1,23 @@
1
+ import type { WorkArtifact, WorkSpreadsheetPaperSize } from './work-types';
2
+ type PdfPageSize = WorkSpreadsheetPaperSize;
3
+ export interface WorkPdfExportOptions {
4
+ pageIndexes?: number[];
5
+ }
6
+ export interface WorkLiveDocumentPdfSurface {
7
+ element: HTMLElement;
8
+ orientation: 'portrait' | 'landscape';
9
+ pageCount: number;
10
+ pageGap: number;
11
+ pageHeight: number;
12
+ pageSize: PdfPageSize;
13
+ pageWidth: number;
14
+ }
15
+ export declare function exportWorkArtifactPdf(artifact: WorkArtifact, options?: WorkPdfExportOptions): Promise<void>;
16
+ export declare function workLiveDocumentPdfSurfaceForExport(artifactId: string): WorkLiveDocumentPdfSurface | null;
17
+ export declare function workPdfPagesForExport(artifactId: string, options?: WorkPdfExportOptions): HTMLElement[];
18
+ export declare function workLiveDocumentPdfCaptureBatches(pageIndexes: readonly number[], page: Pick<WorkLiveDocumentPdfSurface, 'pageGap' | 'pageHeight' | 'pageCount'>): Array<{
19
+ captureHeight: number;
20
+ firstPageIndex: number;
21
+ pageIndexes: number[];
22
+ }>;
23
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { WorkSlide, WorkSlideChart, WorkSlideChartAxis, WorkSpreadsheetChartAxisPosition } from './work-types';
2
+ export declare function patchPptxChartAxes(buffer: ArrayBuffer, slides: readonly WorkSlide[]): Promise<ArrayBuffer>;
3
+ export declare function writePptxChartAxis(document: Document, axisNode: Element, chart: WorkSlideChart, position: WorkSpreadsheetChartAxisPosition, axis: WorkSlideChartAxis | undefined): void;
@@ -0,0 +1,5 @@
1
+ export interface PptxChartAxisDiagnostic {
2
+ code: string;
3
+ message: string;
4
+ }
5
+ export declare function readPptxChartAxisDiagnostics(document: Document): PptxChartAxisDiagnostic[];