@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,86 @@
1
+ type CommandArguments<Command> = Command extends (...args: infer Arguments extends unknown[]) => unknown ? Arguments : never;
2
+ type CommandResult<Command> = Command extends (...args: never[]) => infer Result ? Result : never;
3
+ export interface OfficeEditorCommandDefinition<Context, Command> {
4
+ canExecute?: (context: Context, ...args: CommandArguments<Command>) => boolean;
5
+ execute: (context: Context, ...args: CommandArguments<Command>) => CommandResult<Command>;
6
+ }
7
+ export type OfficeEditorCommandDefinitions<Context, Commands> = {
8
+ [Name in keyof Commands]?: OfficeEditorCommandDefinition<Context, Commands[Name]>;
9
+ };
10
+ export type OfficeEditorCanCommands<Commands> = {
11
+ [Name in keyof Commands]: (...args: CommandArguments<Commands[Name]>) => boolean;
12
+ };
13
+ export interface OfficeEditorExtensionLifecycle<Context, Storage> {
14
+ context: Context;
15
+ storage: Storage;
16
+ }
17
+ export interface OfficeEditorExtensionUpdate<Context, Storage> extends OfficeEditorExtensionLifecycle<Context, Storage> {
18
+ previousContext: Context;
19
+ }
20
+ export interface OfficeEditorKeyboardShortcutProps<Context, Commands, Storage> {
21
+ can: OfficeEditorCanCommands<Commands>;
22
+ commands: Commands;
23
+ context: Context;
24
+ storage: Storage;
25
+ }
26
+ export type OfficeEditorKeyboardShortcutHandler<Context, Commands, Storage> = (props: OfficeEditorKeyboardShortcutProps<Context, Commands, Storage>, event: KeyboardEvent) => boolean;
27
+ export interface OfficeEditorExtensionConfig<Context, Commands, Storage = Record<string, never>> {
28
+ name: string;
29
+ priority?: number;
30
+ addStorage?: () => Storage;
31
+ addCommands?: (extension: {
32
+ storage: Storage;
33
+ }) => OfficeEditorCommandDefinitions<Context, Commands>;
34
+ addKeyboardShortcuts?: (extension: {
35
+ storage: Storage;
36
+ }) => Record<string, OfficeEditorKeyboardShortcutHandler<Context, Commands, Storage>>;
37
+ onCreate?: (extension: OfficeEditorExtensionLifecycle<Context, Storage>) => void;
38
+ onUpdate?: (extension: OfficeEditorExtensionUpdate<Context, Storage>) => void;
39
+ onDestroy?: (extension: OfficeEditorExtensionLifecycle<Context, Storage>) => void;
40
+ }
41
+ interface ErasedOfficeEditorCommand<Context> {
42
+ canExecute?: (context: Context, args: readonly unknown[]) => boolean;
43
+ execute: (context: Context, args: readonly unknown[]) => unknown;
44
+ }
45
+ interface OfficeEditorExtensionInstance<Context> {
46
+ commands: ReadonlyMap<string, ErasedOfficeEditorCommand<Context>>;
47
+ keyboardShortcuts: readonly ErasedOfficeEditorKeyboardShortcut<Context>[];
48
+ onCreate: (context: Context) => void;
49
+ onDestroy: (context: Context) => void;
50
+ onUpdate: (context: Context, previousContext: Context) => void;
51
+ storage: unknown;
52
+ }
53
+ interface ErasedOfficeEditorKeyboardShortcut<Context> {
54
+ handler: (context: Context, commands: unknown, can: unknown, event: KeyboardEvent) => boolean;
55
+ shortcut: string;
56
+ }
57
+ export interface OfficeEditorExtension<Context, Commands> {
58
+ readonly name: string;
59
+ readonly priority: number;
60
+ createInstance: () => OfficeEditorExtensionInstance<Context>;
61
+ /**
62
+ * Type-only marker used to keep command maps aligned across extensions.
63
+ * It is intentionally absent at runtime.
64
+ */
65
+ readonly commandTypes?: Commands;
66
+ }
67
+ export interface OfficeEditorRuntime<Context, Commands> {
68
+ readonly commands: Commands;
69
+ readonly extensionNames: readonly string[];
70
+ readonly storage: Readonly<Record<string, unknown>>;
71
+ can: () => OfficeEditorCanCommands<Commands>;
72
+ handleKeyDown: (event: KeyboardEvent) => boolean;
73
+ mount: () => void;
74
+ unmount: () => void;
75
+ updateContext: (context: Context) => void;
76
+ }
77
+ export interface OfficeEditorRuntimeOptions<Context> {
78
+ /**
79
+ * Supplies render-current controlled state to commands and can() checks.
80
+ * Lifecycle callbacks still receive contexts through updateContext().
81
+ */
82
+ getCurrentContext?: () => Context;
83
+ }
84
+ export declare function createOfficeEditorExtension<Context, Commands, Storage = Record<string, never>>(config: OfficeEditorExtensionConfig<Context, Commands, Storage>): OfficeEditorExtension<Context, Commands>;
85
+ export declare function createOfficeEditorRuntime<Context, Commands>(initialContext: Context, extensions: readonly OfficeEditorExtension<Context, Commands>[], options?: OfficeEditorRuntimeOptions<Context>): OfficeEditorRuntime<Context, Commands>;
86
+ export { matchesOfficeEditorKeyboardShortcut } from '../../../keyboard-shortcuts';
@@ -0,0 +1 @@
1
+ export declare function readOfficeFileAsDataUrl(file: File): Promise<string>;
@@ -0,0 +1,187 @@
1
+ export type OfficeFontFamilyGroup = '中文字体' | '西文字体' | '等宽字体';
2
+ export interface OfficeFontFamily {
3
+ id: string;
4
+ name: string;
5
+ cssValue: string;
6
+ cssFamily: string;
7
+ label: string;
8
+ group: OfficeFontFamilyGroup;
9
+ }
10
+ export declare const officeFontFamilies: readonly [{
11
+ readonly id: "microsoft-yahei";
12
+ readonly name: "Microsoft YaHei";
13
+ readonly cssValue: "\"Microsoft YaHei\"";
14
+ readonly cssFamily: "\"Microsoft YaHei\", \"PingFang SC\", sans-serif";
15
+ readonly label: "微软雅黑";
16
+ readonly group: "中文字体";
17
+ }, {
18
+ readonly id: "pingfang-sc";
19
+ readonly name: "PingFang SC";
20
+ readonly cssValue: "\"PingFang SC\"";
21
+ readonly cssFamily: "\"PingFang SC\", \"Microsoft YaHei\", sans-serif";
22
+ readonly label: "苹方";
23
+ readonly group: "中文字体";
24
+ }, {
25
+ readonly id: "simsun";
26
+ readonly name: "SimSun";
27
+ readonly cssValue: "SimSun";
28
+ readonly cssFamily: "SimSun, \"Songti SC\", serif";
29
+ readonly label: "宋体";
30
+ readonly group: "中文字体";
31
+ }, {
32
+ readonly id: "stsong";
33
+ readonly name: "STSong";
34
+ readonly cssValue: "STSong";
35
+ readonly cssFamily: "STSong, \"Songti SC\", SimSun, serif";
36
+ readonly label: "华文宋体";
37
+ readonly group: "中文字体";
38
+ }, {
39
+ readonly id: "simhei";
40
+ readonly name: "SimHei";
41
+ readonly cssValue: "SimHei";
42
+ readonly cssFamily: "SimHei, \"Heiti SC\", sans-serif";
43
+ readonly label: "黑体";
44
+ readonly group: "中文字体";
45
+ }, {
46
+ readonly id: "stheiti";
47
+ readonly name: "STHeiti";
48
+ readonly cssValue: "STHeiti";
49
+ readonly cssFamily: "STHeiti, \"Heiti SC\", SimHei, sans-serif";
50
+ readonly label: "华文黑体";
51
+ readonly group: "中文字体";
52
+ }, {
53
+ readonly id: "kaiti";
54
+ readonly name: "KaiTi";
55
+ readonly cssValue: "KaiTi";
56
+ readonly cssFamily: "KaiTi, \"Kaiti SC\", serif";
57
+ readonly label: "楷体";
58
+ readonly group: "中文字体";
59
+ }, {
60
+ readonly id: "fangsong";
61
+ readonly name: "FangSong";
62
+ readonly cssValue: "FangSong";
63
+ readonly cssFamily: "FangSong, STFangsong, serif";
64
+ readonly label: "仿宋";
65
+ readonly group: "中文字体";
66
+ }, {
67
+ readonly id: "hiragino-sans-gb";
68
+ readonly name: "Hiragino Sans GB";
69
+ readonly cssValue: "\"Hiragino Sans GB\"";
70
+ readonly cssFamily: "\"Hiragino Sans GB\", \"PingFang SC\", sans-serif";
71
+ readonly label: "冬青黑体";
72
+ readonly group: "中文字体";
73
+ }, {
74
+ readonly id: "aptos";
75
+ readonly name: "Aptos";
76
+ readonly cssValue: "Aptos";
77
+ readonly cssFamily: "Aptos, sans-serif";
78
+ readonly label: "Aptos";
79
+ readonly group: "西文字体";
80
+ }, {
81
+ readonly id: "calibri";
82
+ readonly name: "Calibri";
83
+ readonly cssValue: "Calibri";
84
+ readonly cssFamily: "Calibri";
85
+ readonly label: "Calibri";
86
+ readonly group: "西文字体";
87
+ }, {
88
+ readonly id: "arial";
89
+ readonly name: "Arial";
90
+ readonly cssValue: "Arial";
91
+ readonly cssFamily: "Arial, sans-serif";
92
+ readonly label: "Arial";
93
+ readonly group: "西文字体";
94
+ }, {
95
+ readonly id: "helvetica";
96
+ readonly name: "Helvetica";
97
+ readonly cssValue: "Helvetica";
98
+ readonly cssFamily: "Helvetica, Arial, sans-serif";
99
+ readonly label: "Helvetica";
100
+ readonly group: "西文字体";
101
+ }, {
102
+ readonly id: "times-new-roman";
103
+ readonly name: "Times New Roman";
104
+ readonly cssValue: "\"Times New Roman\"";
105
+ readonly cssFamily: "\"Times New Roman\", Times, serif";
106
+ readonly label: "Times New Roman";
107
+ readonly group: "西文字体";
108
+ }, {
109
+ readonly id: "georgia";
110
+ readonly name: "Georgia";
111
+ readonly cssValue: "Georgia";
112
+ readonly cssFamily: "Georgia, \"Times New Roman\", serif";
113
+ readonly label: "Georgia";
114
+ readonly group: "西文字体";
115
+ }, {
116
+ readonly id: "cambria";
117
+ readonly name: "Cambria";
118
+ readonly cssValue: "Cambria";
119
+ readonly cssFamily: "Cambria, Georgia, serif";
120
+ readonly label: "Cambria";
121
+ readonly group: "西文字体";
122
+ }, {
123
+ readonly id: "garamond";
124
+ readonly name: "Garamond";
125
+ readonly cssValue: "Garamond";
126
+ readonly cssFamily: "Garamond, Georgia, serif";
127
+ readonly label: "Garamond";
128
+ readonly group: "西文字体";
129
+ }, {
130
+ readonly id: "verdana";
131
+ readonly name: "Verdana";
132
+ readonly cssValue: "Verdana";
133
+ readonly cssFamily: "Verdana, Arial, sans-serif";
134
+ readonly label: "Verdana";
135
+ readonly group: "西文字体";
136
+ }, {
137
+ readonly id: "tahoma";
138
+ readonly name: "Tahoma";
139
+ readonly cssValue: "Tahoma";
140
+ readonly cssFamily: "Tahoma, Verdana, sans-serif";
141
+ readonly label: "Tahoma";
142
+ readonly group: "西文字体";
143
+ }, {
144
+ readonly id: "trebuchet-ms";
145
+ readonly name: "Trebuchet MS";
146
+ readonly cssValue: "\"Trebuchet MS\"";
147
+ readonly cssFamily: "\"Trebuchet MS\", Arial, sans-serif";
148
+ readonly label: "Trebuchet MS";
149
+ readonly group: "西文字体";
150
+ }, {
151
+ readonly id: "sf-mono";
152
+ readonly name: "SFMono-Regular";
153
+ readonly cssValue: "SFMono-Regular";
154
+ readonly cssFamily: "SFMono-Regular, Menlo, Consolas, monospace";
155
+ readonly label: "SF Mono";
156
+ readonly group: "等宽字体";
157
+ }, {
158
+ readonly id: "menlo";
159
+ readonly name: "Menlo";
160
+ readonly cssValue: "Menlo";
161
+ readonly cssFamily: "Menlo, SFMono-Regular, Consolas, monospace";
162
+ readonly label: "Menlo";
163
+ readonly group: "等宽字体";
164
+ }, {
165
+ readonly id: "consolas";
166
+ readonly name: "Consolas";
167
+ readonly cssValue: "Consolas";
168
+ readonly cssFamily: "Consolas, \"Courier New\", monospace";
169
+ readonly label: "Consolas";
170
+ readonly group: "等宽字体";
171
+ }, {
172
+ readonly id: "courier-new";
173
+ readonly name: "Courier New";
174
+ readonly cssValue: "\"Courier New\"";
175
+ readonly cssFamily: "\"Courier New\", Courier, monospace";
176
+ readonly label: "Courier New";
177
+ readonly group: "等宽字体";
178
+ }, {
179
+ readonly id: "monaco";
180
+ readonly name: "Monaco";
181
+ readonly cssValue: "Monaco";
182
+ readonly cssFamily: "Monaco, Menlo, Consolas, monospace";
183
+ readonly label: "Monaco";
184
+ readonly group: "等宽字体";
185
+ }];
186
+ export declare function officeFontFamilyLabel(value: string): string;
187
+ export declare function normalizeOfficeFontFamily(value: string): string;
@@ -0,0 +1,2 @@
1
+ import type { KeyboardEvent } from 'react';
2
+ export declare function moveOfficeMenuFocus(event: KeyboardEvent<HTMLElement>): boolean;
@@ -0,0 +1,21 @@
1
+ export declare function OfficeNumberField({ ariaLabel, value, onValueChange, onCommit, onCancel, min, max, step, disabled, className, placeholder, escapeConsumer, validationInvalid, }: {
2
+ ariaLabel: string;
3
+ value: number | string;
4
+ onValueChange: (value: string) => void;
5
+ onCommit?: (value: string) => void;
6
+ onCancel?: () => void;
7
+ min?: number;
8
+ max?: number;
9
+ step?: number;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ placeholder?: string;
13
+ escapeConsumer?: boolean;
14
+ validationInvalid?: boolean;
15
+ }): import("react").JSX.Element;
16
+ export declare function CommittedOfficeNumberField<Value extends number | undefined = number>({ value, normalizeValue, onValueCommit, formatValue, ...fieldProps }: Omit<Parameters<typeof OfficeNumberField>[0], 'escapeConsumer' | 'onCancel' | 'onCommit' | 'onValueChange' | 'validationInvalid' | 'value'> & {
17
+ value: Value;
18
+ normalizeValue: (value: string) => Value | null;
19
+ onValueCommit: (value: Value) => void;
20
+ formatValue?: (value: number) => string;
21
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export interface OfficeNumberNormalizationOptions {
2
+ decimalPlaces?: number;
3
+ integer?: boolean;
4
+ isValid?: (value: number) => boolean;
5
+ maximum?: number;
6
+ minimum?: number;
7
+ }
8
+ export declare function normalizeRequiredOfficeNumber(value: string, options?: OfficeNumberNormalizationOptions): number | null;
9
+ export declare function normalizeOptionalOfficeNumber(value: string, options?: OfficeNumberNormalizationOptions): number | undefined | null;
@@ -0,0 +1,19 @@
1
+ import { type CSSProperties } from 'react';
2
+ export interface OfficeSelectOption<T extends string = string> {
3
+ value: T;
4
+ label: string;
5
+ disabled?: boolean;
6
+ group?: string;
7
+ meta?: string;
8
+ previewStyle?: CSSProperties;
9
+ searchText?: string;
10
+ }
11
+ export declare function OfficeSelect<T extends string>({ ariaLabel, value, options, onValueChange, disabled, placeholder, className, }: {
12
+ ariaLabel: string;
13
+ value: T;
14
+ options: readonly OfficeSelectOption<T>[];
15
+ onValueChange: (value: T) => void;
16
+ disabled?: boolean;
17
+ placeholder?: string;
18
+ className?: string;
19
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function isOfficeShortcutBlocked(target: EventTarget | null): boolean;
@@ -0,0 +1,10 @@
1
+ export declare function OfficeSlider({ ariaLabel, value, min, max, step, onValueChange, disabled, className, }: {
2
+ ariaLabel: string;
3
+ value: number;
4
+ min: number;
5
+ max: number;
6
+ step?: number;
7
+ onValueChange: (value: number) => void;
8
+ disabled?: boolean;
9
+ className?: string;
10
+ }): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export interface OfficeTableDimensions {
2
+ rows: number;
3
+ columns: number;
4
+ }
@@ -0,0 +1,7 @@
1
+ import type { OfficeTableDimensions } from './office-table-dimensions';
2
+ export declare function OfficeTableInsertPopover({ className, disabled, label, onInsert, }: {
3
+ className?: string;
4
+ disabled?: boolean;
5
+ label: string;
6
+ onInsert: (dimensions: OfficeTableDimensions) => void;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type KeyboardEvent } from 'react';
2
+ export declare const OFFICE_TASK_PANE_MODAL_QUERY = "(max-width: 900px)";
3
+ type OfficeTaskPaneClose = () => unknown;
4
+ export declare function handleOfficeTaskPaneKeyDown(event: KeyboardEvent<HTMLElement>, onClose: OfficeTaskPaneClose): void;
5
+ export declare function useOfficeTaskPaneEscape(active: boolean, onClose: OfficeTaskPaneClose): void;
6
+ export declare function useOfficeTaskPaneModal(): boolean;
7
+ export {};
@@ -0,0 +1,20 @@
1
+ import { type InputHTMLAttributes, type TextareaHTMLAttributes } from 'react';
2
+ export declare const OfficeTextField: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
3
+ type?: "text" | "search" | "password";
4
+ } & import("react").RefAttributes<HTMLInputElement>>;
5
+ export declare const OfficeTextArea: import("react").ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & import("react").RefAttributes<HTMLTextAreaElement>>;
6
+ export declare function CommittedOfficeTextField<Value>({ value, formatValue, parseValue, onValueCommit, ...fieldProps }: Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'defaultValue' | 'onBlur' | 'onChange' | 'onKeyDown' | 'type' | 'value'> & {
7
+ value: Value;
8
+ formatValue: (value: Value) => string;
9
+ parseValue: (draft: string) => Value | null;
10
+ onValueCommit: (value: Value) => void;
11
+ }): import("react").JSX.Element;
12
+ export declare function CommittedOfficeTextArea<Value>({ value, formatValue, parseValue, onValueCommit, ...textAreaProps }: Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid' | 'defaultValue' | 'onBlur' | 'onChange' | 'onKeyDown' | 'value'> & {
13
+ value: Value;
14
+ formatValue: (value: Value) => string;
15
+ parseValue: (draft: string) => Value | null;
16
+ onValueCommit: (value: Value) => void;
17
+ }): import("react").JSX.Element;
18
+ export declare const OfficeFileInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
19
+ onFileSelect: (file: File) => unknown;
20
+ } & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,2 @@
1
+ import type { Extensions } from '@tiptap/core';
2
+ export declare function mergeOfficeTiptapExtensions(editorName: string, builtInExtensions: Extensions, additionalExtensions: Extensions): Extensions;
@@ -0,0 +1,23 @@
1
+ import { type PluginRegistry } from '@embedpdf/react-pdf-viewer';
2
+ export type PdfAnnotationToolId = 'highlight' | 'underline' | 'strikeout' | 'ink' | 'freeText';
3
+ export interface PdfAnnotationControllerState {
4
+ activeToolId: string | null;
5
+ annotationColor: string;
6
+ annotationOpacity: number;
7
+ annotationStrokeWidth: number;
8
+ available: boolean;
9
+ availableToolIds: readonly PdfAnnotationToolId[];
10
+ hasPendingChanges: boolean;
11
+ selectedCount: number;
12
+ supportsOpacity: boolean;
13
+ supportsStrokeWidth: boolean;
14
+ }
15
+ export interface PdfAnnotationController {
16
+ state: PdfAnnotationControllerState;
17
+ deleteSelection: () => void;
18
+ setAnnotationColor: (color: string) => void;
19
+ setAnnotationOpacity: (opacity: number) => void;
20
+ setAnnotationStrokeWidth: (strokeWidth: number) => void;
21
+ selectTool: (toolId: PdfAnnotationToolId | null) => void;
22
+ }
23
+ export declare function usePdfAnnotationController(registry: PluginRegistry | null): PdfAnnotationController;
@@ -0,0 +1,36 @@
1
+ import type { PdfAnnotationController, PdfAnnotationToolId } from './pdf-annotation-controller';
2
+ import type { PdfViewerController } from './pdf-viewer-controller';
3
+ import { type OfficeEditorCanCommands, type OfficeEditorExtension } from './office-editor-extension';
4
+ export interface PdfEditorCommands {
5
+ clearSearch: () => void;
6
+ deleteAnnotationSelection: () => void;
7
+ fitPage: () => void;
8
+ fitWidth: () => void;
9
+ goToPage: (page: number) => void;
10
+ nextPage: () => void;
11
+ nextSearchResult: () => void;
12
+ previousPage: () => void;
13
+ previousSearchResult: () => void;
14
+ redo: () => void;
15
+ save: () => Promise<void>;
16
+ search: (query: string) => void;
17
+ setAnnotationColor: (color: string) => void;
18
+ setAnnotationOpacity: (opacity: number) => void;
19
+ setAnnotationStrokeWidth: (strokeWidth: number) => void;
20
+ selectAnnotationTool: (toolId: PdfAnnotationToolId | null) => void;
21
+ undo: () => void;
22
+ zoomIn: () => void;
23
+ zoomOut: () => void;
24
+ }
25
+ export type PdfEditorCanCommands = OfficeEditorCanCommands<PdfEditorCommands>;
26
+ export interface PdfEditorCommandContext {
27
+ annotation: PdfAnnotationController;
28
+ editable: boolean;
29
+ focusSearch: () => void;
30
+ save: {
31
+ enabled: boolean;
32
+ execute: () => Promise<void>;
33
+ };
34
+ viewer: PdfViewerController;
35
+ }
36
+ export declare function createPdfEditorExtensions(): readonly OfficeEditorExtension<PdfEditorCommandContext, PdfEditorCommands>[];
@@ -0,0 +1,26 @@
1
+ import { type PluginRegistry } from '@embedpdf/react-pdf-viewer';
2
+ import { type RefObject } from 'react';
3
+ export declare const PDF_THUMBNAIL_WINDOW_LIMIT = 32;
4
+ interface PdfThumbnailRange {
5
+ end: number;
6
+ start: number;
7
+ windowed: boolean;
8
+ }
9
+ export interface PdfThumbnailRailProps {
10
+ currentPage: number;
11
+ mobileCloseButtonRef?: RefObject<HTMLButtonElement | null>;
12
+ mobileNavigationId?: string;
13
+ mobileNavigationModal?: boolean;
14
+ registry: PluginRegistry;
15
+ totalPages: number;
16
+ onCloseMobileNavigation?: () => void;
17
+ onSelectPage: (page: number) => void;
18
+ }
19
+ export declare function PdfThumbnailRail({ currentPage, mobileCloseButtonRef, mobileNavigationId, mobileNavigationModal, registry, totalPages, onCloseMobileNavigation, onSelectPage, }: PdfThumbnailRailProps): import("react").JSX.Element;
20
+ export declare function calculatePdfThumbnailRange({ anchorIndex, itemHeight, totalPages, viewportHeight, }: {
21
+ anchorIndex: number;
22
+ itemHeight?: number;
23
+ totalPages: number;
24
+ viewportHeight: number;
25
+ }): PdfThumbnailRange;
26
+ export {};
@@ -0,0 +1,23 @@
1
+ import { type RefObject } from 'react';
2
+ import type { PdfAnnotationControllerState } from './pdf-annotation-controller';
3
+ import type { PdfEditorCanCommands, PdfEditorCommands } from './pdf-editor-extensions';
4
+ import type { PdfViewerControllerState } from './pdf-viewer-controller';
5
+ export type PdfSaveState = 'idle' | 'saving' | 'saved' | 'error';
6
+ interface PdfPageNavigationControl {
7
+ controlsId: string;
8
+ expanded: boolean;
9
+ onOpen: () => void;
10
+ toggleRef: RefObject<HTMLButtonElement | null>;
11
+ }
12
+ export declare function PdfToolbar({ annotationState, can, commands, editable, pageNavigation, saveLabel, saveState, searchInputRef, state, }: {
13
+ annotationState: PdfAnnotationControllerState;
14
+ can: PdfEditorCanCommands;
15
+ commands: PdfEditorCommands;
16
+ editable: boolean;
17
+ pageNavigation?: PdfPageNavigationControl;
18
+ saveLabel: string;
19
+ saveState: PdfSaveState;
20
+ searchInputRef: RefObject<HTMLInputElement | null>;
21
+ state: PdfViewerControllerState;
22
+ }): import("react").JSX.Element;
23
+ export {};
@@ -0,0 +1,48 @@
1
+ import { type PluginRegistry, ZoomMode } from '@embedpdf/react-pdf-viewer';
2
+ export interface PdfSearchState {
3
+ active: boolean;
4
+ activeResultIndex: number;
5
+ error: boolean;
6
+ loading: boolean;
7
+ query: string;
8
+ total: number;
9
+ }
10
+ export interface PdfViewerFeatures {
11
+ export: boolean;
12
+ history: boolean;
13
+ navigation: boolean;
14
+ search: boolean;
15
+ zoom: boolean;
16
+ }
17
+ export interface PdfViewerControllerState {
18
+ canRedo: boolean;
19
+ canUndo: boolean;
20
+ currentPage: number;
21
+ documentOpen: boolean;
22
+ error: string | null;
23
+ features: PdfViewerFeatures;
24
+ ready: boolean;
25
+ search: PdfSearchState;
26
+ totalPages: number;
27
+ zoomMode: ZoomMode | null;
28
+ zoomPercent: number;
29
+ }
30
+ export interface PdfViewerController {
31
+ state: PdfViewerControllerState;
32
+ clearSearch: () => void;
33
+ fitPage: () => void;
34
+ fitWidth: () => void;
35
+ goToPage: (page: number) => void;
36
+ nextPage: () => void;
37
+ nextSearchResult: () => void;
38
+ previousPage: () => void;
39
+ previousSearchResult: () => void;
40
+ redo: () => void;
41
+ saveAsCopy: () => Promise<Blob>;
42
+ search: (query: string) => void;
43
+ undo: () => void;
44
+ zoomIn: () => void;
45
+ zoomOut: () => void;
46
+ }
47
+ export declare const initialPdfViewerControllerState: PdfViewerControllerState;
48
+ export declare function usePdfViewerController(registry: PluginRegistry | null): PdfViewerController;
@@ -0,0 +1,11 @@
1
+ import { type UISchema } from '@embedpdf/react-pdf-viewer';
2
+ export declare const a3sPdfUiSchema: UISchema;
3
+ export interface PdfViewerProps {
4
+ fileName?: string;
5
+ loadSource: () => Promise<Blob>;
6
+ onSave?: (pdf: Blob) => Promise<boolean>;
7
+ saveLabel?: string;
8
+ sourceKey?: string;
9
+ wasmUrl?: string;
10
+ }
11
+ export declare function PdfViewer({ fileName, loadSource, onSave, saveLabel, sourceKey, wasmUrl, }: PdfViewerProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { OfficeKernelPresentationAlignment } from '../../../kernel/office-kernel-protocol';
2
+ import type { WorkPresentationContent, WorkSlideElement } from '../work-types';
3
+ import type { PresentationDesignMode } from './presentation-editor-types';
4
+ import { type PresentationDistribution } from './presentation-selection';
5
+ import type { PresentationGeometryController } from './use-presentation-geometry';
6
+ export interface PresentationArrangementController {
7
+ align: (alignment: OfficeKernelPresentationAlignment) => Promise<void>;
8
+ distribute: (direction: PresentationDistribution) => void;
9
+ reorder: (direction: -1 | 1) => void;
10
+ }
11
+ export declare function createPresentationArrangementController({ getContent, geometry, mode, onChange, selectedElements, selectedElementIds, targetId, }: {
12
+ getContent: () => WorkPresentationContent;
13
+ geometry: PresentationGeometryController;
14
+ mode: PresentationDesignMode;
15
+ onChange: (content: WorkPresentationContent) => void;
16
+ selectedElements: readonly WorkSlideElement[];
17
+ selectedElementIds: readonly string[];
18
+ targetId: string | undefined;
19
+ }): PresentationArrangementController;
@@ -0,0 +1,21 @@
1
+ import { type WorkSlideChart, type WorkSpreadsheetErrorBarDirection } from '../work-types';
2
+ type CanvasPoint = readonly [number, number];
3
+ export interface PresentationChartAnalysisBounds {
4
+ x: number[];
5
+ y: number[];
6
+ }
7
+ export declare function presentationChartAnalysisBounds(chart: WorkSlideChart, xValues: readonly number[]): PresentationChartAnalysisBounds;
8
+ export declare function drawPresentationChartSeriesAnalysis({ context, chart, seriesIndex, xValues, color, trendlinePosition, errorBarPosition, }: {
9
+ context: CanvasRenderingContext2D;
10
+ chart: WorkSlideChart;
11
+ seriesIndex: number;
12
+ xValues: readonly number[];
13
+ color: string;
14
+ trendlinePosition: (x: number, y: number) => CanvasPoint;
15
+ errorBarPosition: (direction: WorkSpreadsheetErrorBarDirection, pointIndex: number, value: number) => CanvasPoint;
16
+ }): void;
17
+ export declare function drawPresentationChartXyLine(context: CanvasRenderingContext2D, points: Array<{
18
+ x: number;
19
+ y: number;
20
+ }>, smooth: boolean): void;
21
+ export {};
@@ -0,0 +1,33 @@
1
+ import { type SpreadsheetChartAxisScale } from '../work-spreadsheet-chart-axis';
2
+ import type { WorkSlideChart } from '../work-types';
3
+ export interface PresentationChartRect {
4
+ x: number;
5
+ y: number;
6
+ width: number;
7
+ height: number;
8
+ }
9
+ export interface PresentationCartesianAxisCanvas {
10
+ plot: PresentationChartRect;
11
+ scale: SpreadsheetChartAxisScale;
12
+ baseline: number;
13
+ categoryPosition: (index: number) => number;
14
+ valuePosition: (value: number) => number;
15
+ }
16
+ export interface PresentationXyAxisCanvas {
17
+ plot: PresentationChartRect;
18
+ xScale: SpreadsheetChartAxisScale;
19
+ yScale: SpreadsheetChartAxisScale;
20
+ xPosition: (value: number) => number;
21
+ yPosition: (value: number) => number;
22
+ }
23
+ export interface PresentationRadarAxisCanvas {
24
+ scale: SpreadsheetChartAxisScale;
25
+ valueRatio: (value: number) => number;
26
+ point: (index: number, ratio: number) => {
27
+ x: number;
28
+ y: number;
29
+ };
30
+ }
31
+ export declare function drawPresentationCartesianAxes(context: CanvasRenderingContext2D, chart: WorkSlideChart, sourceRect: PresentationChartRect, values: readonly number[], categoryCount: number): PresentationCartesianAxisCanvas;
32
+ export declare function drawPresentationXyAxes(context: CanvasRenderingContext2D, chart: WorkSlideChart, sourceRect: PresentationChartRect, xValues: readonly number[], yValues: readonly number[]): PresentationXyAxisCanvas;
33
+ export declare function drawPresentationRadarAxes(context: CanvasRenderingContext2D, chart: WorkSlideChart, sourceRect: PresentationChartRect, categoryCount: number, values: readonly number[]): PresentationRadarAxisCanvas;
@@ -0,0 +1,5 @@
1
+ import type { WorkSlideChart } from '../work-types';
2
+ export declare function PresentationChartAxisEditor({ chart, onChange, }: {
3
+ chart: WorkSlideChart;
4
+ onChange: (chart: WorkSlideChart) => void;
5
+ }): import("react").JSX.Element;