@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.
- package/LICENSE +21 -0
- package/README.md +470 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/0~1403.js +245 -0
- package/dist/0~152.js +94 -0
- package/dist/0~3539.js +1856 -0
- package/dist/0~3557.js +179 -0
- package/dist/0~3635.js +302 -0
- package/dist/0~4595.js +1162 -0
- package/dist/0~5050.js +308 -0
- package/dist/0~6552.js +787 -0
- package/dist/0~7048.js +2110 -0
- package/dist/0~7614.js +1037 -0
- package/dist/0~8155.js +299 -0
- package/dist/0~9445.js +283 -0
- package/dist/0~9512.js +743 -0
- package/dist/0~document-editor.js +10967 -0
- package/dist/0~markdown-editor.js +2260 -0
- package/dist/0~pdf-viewer.js +2156 -0
- package/dist/0~presentation-editor.js +8359 -0
- package/dist/0~rslib-runtime.js +27 -0
- package/dist/0~spreadsheet-editor.js +10388 -0
- package/dist/0~use-office-draft.js +46 -0
- package/dist/0~work-document-extensions.js +2470 -0
- package/dist/0~work-document-links.js +14 -0
- package/dist/0~work-document-model-codec.js +42 -0
- package/dist/0~work-document-page-color.js +11 -0
- package/dist/0~work-document-paragraph-formatting.js +425 -0
- package/dist/0~work-docx-bibliography.js +347 -0
- package/dist/0~work-docx-export.js +1151 -0
- package/dist/0~work-docx-import.js +3116 -0
- package/dist/0~work-docx-page-color.js +42 -0
- package/dist/0~work-office-diagnostics.js +1377 -0
- package/dist/0~work-pptx-export.js +1009 -0
- package/dist/0~work-pptx-import.js +1138 -0
- package/dist/0~work-presentation-charts.js +442 -0
- package/dist/0~work-presentation-transition.js +38 -0
- package/dist/0~work-presentation-visual-scale.js +38 -0
- package/dist/0~work-spreadsheet-formula-support.js +9 -0
- package/dist/1134.js +445 -0
- package/dist/4104.js +5786 -0
- package/dist/432.js +211 -0
- package/dist/4704.js +1364 -0
- package/dist/6489.js +182 -0
- package/dist/8715.js +3959 -0
- package/dist/8728.js +723 -0
- package/dist/9356.js +10 -0
- package/dist/core.d.ts +15 -0
- package/dist/core.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/internal/design-system/primitives/button/button.d.ts +9 -0
- package/dist/internal/design-system/primitives/button/icon-button.d.ts +7 -0
- package/dist/internal/design-system/primitives/dialog/dialog.d.ts +12 -0
- package/dist/internal/design-system/primitives/feedback/collection-state.d.ts +9 -0
- package/dist/internal/design-system/primitives/feedback/inline-notice.d.ts +10 -0
- package/dist/internal/design-system/primitives/feedback/state-view.d.ts +13 -0
- package/dist/internal/design-system/primitives/form/field.d.ts +19 -0
- package/dist/internal/design-system/primitives/index.d.ts +14 -0
- package/dist/internal/design-system/primitives/layout/split-handle.d.ts +17 -0
- package/dist/internal/design-system/primitives/navigation/segmented-control.d.ts +19 -0
- package/dist/internal/design-system/primitives/navigation/tab-navigation.d.ts +13 -0
- package/dist/internal/design-system/primitives/navigation/tabs.d.ts +21 -0
- package/dist/internal/design-system/primitives/overlay/dialog-focus-scope.d.ts +17 -0
- package/dist/internal/design-system/primitives/overlay/popover.d.ts +34 -0
- package/dist/internal/design-system/primitives/overlay/portal-root.d.ts +1 -0
- package/dist/internal/design-system/primitives/status/status-badge.d.ts +6 -0
- package/dist/internal/features/work/components/work-document-pages.d.ts +4 -0
- package/dist/internal/features/work/components/work-editor-agent-menus.d.ts +12 -0
- package/dist/internal/features/work/components/work-editor-loading-state.d.ts +3 -0
- package/dist/internal/features/work/editors/document-changes-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/document-citation-source-form.d.ts +33 -0
- package/dist/internal/features/work/editors/document-citations-panel.d.ts +8 -0
- package/dist/internal/features/work/editors/document-columns-panel.d.ts +5 -0
- package/dist/internal/features/work/editors/document-comment-composer.d.ts +13 -0
- package/dist/internal/features/work/editors/document-comments-panel.d.ts +17 -0
- package/dist/internal/features/work/editors/document-editor-focus.d.ts +1 -0
- package/dist/internal/features/work/editors/document-editor-pagination.d.ts +3 -0
- package/dist/internal/features/work/editors/document-editor-support.d.ts +34 -0
- package/dist/internal/features/work/editors/document-editor.d.ts +20 -0
- package/dist/internal/features/work/editors/document-find-highlight.d.ts +8 -0
- package/dist/internal/features/work/editors/document-find-replace-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/document-formatting-options.d.ts +113 -0
- package/dist/internal/features/work/editors/document-home-ribbon.d.ts +9 -0
- package/dist/internal/features/work/editors/document-layout-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/document-list-gallery.d.ts +4 -0
- package/dist/internal/features/work/editors/document-navigation-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/document-page-chrome-editor.d.ts +39 -0
- package/dist/internal/features/work/editors/document-page-chrome-panel.d.ts +5 -0
- package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +10 -0
- package/dist/internal/features/work/editors/document-page-navigation.d.ts +14 -0
- package/dist/internal/features/work/editors/document-page-stack.d.ts +8 -0
- package/dist/internal/features/work/editors/document-pagination-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-paragraph-spacing-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-picture-ribbon.d.ts +4 -0
- package/dist/internal/features/work/editors/document-ruler-tab-stops.d.ts +12 -0
- package/dist/internal/features/work/editors/document-ruler.d.ts +15 -0
- package/dist/internal/features/work/editors/document-selection-context-menu.d.ts +22 -0
- package/dist/internal/features/work/editors/document-selection-toolbar.d.ts +8 -0
- package/dist/internal/features/work/editors/document-status-bar.d.ts +19 -0
- package/dist/internal/features/work/editors/document-style-gallery.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-insert-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-ribbon.d.ts +7 -0
- package/dist/internal/features/work/editors/document-task-pane.d.ts +11 -0
- package/dist/internal/features/work/editors/document-toolbar.d.ts +100 -0
- package/dist/internal/features/work/editors/document-vertical-ruler.d.ts +6 -0
- package/dist/internal/features/work/editors/markdown-editor-focus.d.ts +2 -0
- package/dist/internal/features/work/editors/markdown-editor.d.ts +16 -0
- package/dist/internal/features/work/editors/markdown-insert-dialog.d.ts +19 -0
- package/dist/internal/features/work/editors/markdown-selection-context-menu.d.ts +14 -0
- package/dist/internal/features/work/editors/markdown-source-commands.d.ts +41 -0
- package/dist/internal/features/work/editors/markdown-status.d.ts +7 -0
- package/dist/internal/features/work/editors/markdown-toolbar.d.ts +22 -0
- package/dist/internal/features/work/editors/markdown-workspace.d.ts +26 -0
- package/dist/internal/features/work/editors/office-checkbox.d.ts +9 -0
- package/dist/internal/features/work/editors/office-color-picker.d.ts +11 -0
- package/dist/internal/features/work/editors/office-controls.d.ts +7 -0
- package/dist/internal/features/work/editors/office-dialog.d.ts +35 -0
- package/dist/internal/features/work/editors/office-editor-extension.d.ts +86 -0
- package/dist/internal/features/work/editors/office-file-data.d.ts +1 -0
- package/dist/internal/features/work/editors/office-font-families.d.ts +187 -0
- package/dist/internal/features/work/editors/office-menu-keyboard.d.ts +2 -0
- package/dist/internal/features/work/editors/office-number-field.d.ts +21 -0
- package/dist/internal/features/work/editors/office-number-normalization.d.ts +9 -0
- package/dist/internal/features/work/editors/office-select.d.ts +19 -0
- package/dist/internal/features/work/editors/office-shortcuts.d.ts +1 -0
- package/dist/internal/features/work/editors/office-slider.d.ts +10 -0
- package/dist/internal/features/work/editors/office-table-dimensions.d.ts +4 -0
- package/dist/internal/features/work/editors/office-table-insert-popover.d.ts +7 -0
- package/dist/internal/features/work/editors/office-task-pane.d.ts +7 -0
- package/dist/internal/features/work/editors/office-text-field.d.ts +20 -0
- package/dist/internal/features/work/editors/office-tiptap-extensions.d.ts +2 -0
- package/dist/internal/features/work/editors/pdf-annotation-controller.d.ts +23 -0
- package/dist/internal/features/work/editors/pdf-editor-extensions.d.ts +36 -0
- package/dist/internal/features/work/editors/pdf-thumbnail-rail.d.ts +26 -0
- package/dist/internal/features/work/editors/pdf-toolbar.d.ts +23 -0
- package/dist/internal/features/work/editors/pdf-viewer-controller.d.ts +48 -0
- package/dist/internal/features/work/editors/pdf-viewer.d.ts +11 -0
- package/dist/internal/features/work/editors/presentation-arrangement-controller.d.ts +19 -0
- package/dist/internal/features/work/editors/presentation-chart-analysis-canvas.d.ts +21 -0
- package/dist/internal/features/work/editors/presentation-chart-axis-canvas.d.ts +33 -0
- package/dist/internal/features/work/editors/presentation-chart-axis-editor.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-canvas.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-cartesian-canvas.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-chart-data-label-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/presentation-chart-data-labels.d.ts +26 -0
- package/dist/internal/features/work/editors/presentation-chart-layout-editor.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-legend-canvas.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-chart-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/presentation-chart-series-analysis-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/presentation-chart-series-canvas.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-command-controller.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-command-types.d.ts +206 -0
- package/dist/internal/features/work/editors/presentation-comments-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/presentation-context-menu.d.ts +11 -0
- package/dist/internal/features/work/editors/presentation-design-panel.d.ts +13 -0
- package/dist/internal/features/work/editors/presentation-editor-focus.d.ts +12 -0
- package/dist/internal/features/work/editors/presentation-editor-operations.d.ts +10 -0
- package/dist/internal/features/work/editors/presentation-editor-types.d.ts +22 -0
- package/dist/internal/features/work/editors/presentation-editor.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-keyboard-extension.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-player.d.ts +7 -0
- package/dist/internal/features/work/editors/presentation-presenter-view.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-selection.d.ts +21 -0
- package/dist/internal/features/work/editors/presentation-slide-canvas.d.ts +26 -0
- package/dist/internal/features/work/editors/presentation-slide-thumbnail.d.ts +18 -0
- package/dist/internal/features/work/editors/presentation-status-bar.d.ts +10 -0
- package/dist/internal/features/work/editors/presentation-text-editor.d.ts +22 -0
- package/dist/internal/features/work/editors/presentation-text-formatting.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-thumbnail-rail.d.ts +20 -0
- package/dist/internal/features/work/editors/presentation-toolbar.d.ts +19 -0
- package/dist/internal/features/work/editors/presentation-transition-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/presentation-workspace.d.ts +38 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-model.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-projection.d.ts +32 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-axis-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-draft.d.ts +17 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-layout-editor.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-series-style-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-clipboard-shortcuts.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +121 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-comparison-fields.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-format-model.d.ts +72 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-format-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-threshold-fields.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-context-menu.d.ts +36 -0
- package/dist/internal/features/work/editors/spreadsheet-data-label-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-editor-ribbon.d.ts +46 -0
- package/dist/internal/features/work/editors/spreadsheet-editor-support.d.ts +31 -0
- package/dist/internal/features/work/editors/spreadsheet-editor.d.ts +16 -0
- package/dist/internal/features/work/editors/spreadsheet-error-bar-editor.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-find-bar.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-find.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-formula-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-header-footer-fields.d.ts +5 -0
- package/dist/internal/features/work/editors/spreadsheet-keyboard-navigation.d.ts +18 -0
- package/dist/internal/features/work/editors/spreadsheet-number-format.d.ts +11 -0
- package/dist/internal/features/work/editors/spreadsheet-pivot-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-print-settings-panel.d.ts +6 -0
- package/dist/internal/features/work/editors/spreadsheet-protection-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-sheet-bar.d.ts +17 -0
- package/dist/internal/features/work/editors/spreadsheet-sheet-model.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-trendline-editor.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-workbook-panel.d.ts +16 -0
- package/dist/internal/features/work/editors/use-document-comments.d.ts +26 -0
- package/dist/internal/features/work/editors/use-document-insert-commands.d.ts +19 -0
- package/dist/internal/features/work/editors/use-document-layout-fonts.d.ts +2 -0
- package/dist/internal/features/work/editors/use-document-page-chrome.d.ts +33 -0
- package/dist/internal/features/work/editors/use-document-pagination.d.ts +46 -0
- package/dist/internal/features/work/editors/use-markdown-source-history.d.ts +16 -0
- package/dist/internal/features/work/editors/use-office-draft.d.ts +10 -0
- package/dist/internal/features/work/editors/use-office-editor-keyboard-shortcuts.d.ts +9 -0
- package/dist/internal/features/work/editors/use-office-editor-runtime.d.ts +6 -0
- package/dist/internal/features/work/editors/use-office-editor-wheel-zoom.d.ts +19 -0
- package/dist/internal/features/work/editors/use-office-history.d.ts +10 -0
- package/dist/internal/features/work/editors/use-presentation-clipboard.d.ts +22 -0
- package/dist/internal/features/work/editors/use-presentation-design-commands.d.ts +33 -0
- package/dist/internal/features/work/editors/use-presentation-element-commands.d.ts +29 -0
- package/dist/internal/features/work/editors/use-presentation-geometry.d.ts +17 -0
- package/dist/internal/features/work/editors/use-presentation-history.d.ts +12 -0
- package/dist/internal/features/work/editors/use-presentation-review-commands.d.ts +22 -0
- package/dist/internal/features/work/editors/use-presentation-selection.d.ts +11 -0
- package/dist/internal/features/work/editors/use-presentation-slide-commands.d.ts +18 -0
- package/dist/internal/features/work/editors/use-presentation-thumbnail-visibility.d.ts +4 -0
- package/dist/internal/features/work/editors/use-presentation-thumbnail-window.d.ts +17 -0
- package/dist/internal/features/work/editors/use-presentation-transform.d.ts +53 -0
- package/dist/internal/features/work/editors/use-spreadsheet-calculation.d.ts +17 -0
- package/dist/internal/features/work/editors/use-spreadsheet-workbook-sync.d.ts +10 -0
- package/dist/internal/features/work/editors/work-office-chrome.d.ts +61 -0
- package/dist/internal/features/work/editors/work-office-ribbon-overflow.d.ts +18 -0
- package/dist/internal/features/work/work-agent-proposal-apply.d.ts +8 -0
- package/dist/internal/features/work/work-agent-proposal.d.ts +55 -0
- package/dist/internal/features/work/work-agent-request.d.ts +6 -0
- package/dist/internal/features/work/work-chart-series-analysis-context.d.ts +3 -0
- package/dist/internal/features/work/work-document-caption-nodes.d.ts +13 -0
- package/dist/internal/features/work/work-document-captions.d.ts +14 -0
- package/dist/internal/features/work/work-document-changes.d.ts +35 -0
- package/dist/internal/features/work/work-document-character-formatting.d.ts +13 -0
- package/dist/internal/features/work/work-document-citation-nodes.d.ts +25 -0
- package/dist/internal/features/work/work-document-citations.d.ts +21 -0
- package/dist/internal/features/work/work-document-columns.d.ts +15 -0
- package/dist/internal/features/work/work-document-comments.d.ts +48 -0
- package/dist/internal/features/work/work-document-extensions.d.ts +11 -0
- package/dist/internal/features/work/work-document-field-node.d.ts +12 -0
- package/dist/internal/features/work/work-document-fields.d.ts +15 -0
- package/dist/internal/features/work/work-document-file-io.d.ts +4 -0
- package/dist/internal/features/work/work-document-fonts.d.ts +16 -0
- package/dist/internal/features/work/work-document-image-layout.d.ts +29 -0
- package/dist/internal/features/work/work-document-incremental-layout.d.ts +17 -0
- package/dist/internal/features/work/work-document-layout.d.ts +5 -0
- package/dist/internal/features/work/work-document-line-measurement.d.ts +24 -0
- package/dist/internal/features/work/work-document-links.d.ts +2 -0
- package/dist/internal/features/work/work-document-lists.d.ts +25 -0
- package/dist/internal/features/work/work-document-model-codec.d.ts +3 -0
- package/dist/internal/features/work/work-document-model.d.ts +12 -0
- package/dist/internal/features/work/work-document-note-nodes.d.ts +11 -0
- package/dist/internal/features/work/work-document-notes.d.ts +18 -0
- package/dist/internal/features/work/work-document-outline.d.ts +14 -0
- package/dist/internal/features/work/work-document-page-break.d.ts +2 -0
- package/dist/internal/features/work/work-document-page-chrome-commands.d.ts +15 -0
- package/dist/internal/features/work/work-document-page-chrome.d.ts +19 -0
- package/dist/internal/features/work/work-document-page-color.d.ts +3 -0
- package/dist/internal/features/work/work-document-pages.d.ts +19 -0
- package/dist/internal/features/work/work-document-pagination-decorations.d.ts +3 -0
- package/dist/internal/features/work/work-document-pagination-dom.d.ts +35 -0
- package/dist/internal/features/work/work-document-pagination-measurement.d.ts +9 -0
- package/dist/internal/features/work/work-document-pagination-types.d.ts +88 -0
- package/dist/internal/features/work/work-document-pagination.d.ts +17 -0
- package/dist/internal/features/work/work-document-paragraph-formatting.d.ts +61 -0
- package/dist/internal/features/work/work-document-search.d.ts +11 -0
- package/dist/internal/features/work/work-document-section-editor.d.ts +20 -0
- package/dist/internal/features/work/work-document-section-node.d.ts +13 -0
- package/dist/internal/features/work/work-document-section.d.ts +34 -0
- package/dist/internal/features/work/work-document-selection-menu.d.ts +54 -0
- package/dist/internal/features/work/work-document-tab-node.d.ts +6 -0
- package/dist/internal/features/work/work-document-tab-stops.d.ts +29 -0
- package/dist/internal/features/work/work-document-table-cell-formatting.d.ts +46 -0
- package/dist/internal/features/work/work-document-table-commands.d.ts +17 -0
- package/dist/internal/features/work/work-document-table-pagination.d.ts +5 -0
- package/dist/internal/features/work/work-document-table-row.d.ts +37 -0
- package/dist/internal/features/work/work-document-table-sizing.d.ts +27 -0
- package/dist/internal/features/work/work-document-text-layout.d.ts +14 -0
- package/dist/internal/features/work/work-docx-bibliography.d.ts +12 -0
- package/dist/internal/features/work/work-docx-caption-diagnostics.d.ts +6 -0
- package/dist/internal/features/work/work-docx-caption-export.d.ts +4 -0
- package/dist/internal/features/work/work-docx-caption-fields.d.ts +5 -0
- package/dist/internal/features/work/work-docx-caption-import.d.ts +20 -0
- package/dist/internal/features/work/work-docx-change-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-citation-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-citation-export.d.ts +3 -0
- package/dist/internal/features/work/work-docx-citation-import.d.ts +23 -0
- package/dist/internal/features/work/work-docx-column-export.d.ts +14 -0
- package/dist/internal/features/work/work-docx-column-import.d.ts +2 -0
- package/dist/internal/features/work/work-docx-comment-import.d.ts +14 -0
- package/dist/internal/features/work/work-docx-export-formatting.d.ts +30 -0
- package/dist/internal/features/work/work-docx-export-image.d.ts +2 -0
- package/dist/internal/features/work/work-docx-export.d.ts +2 -0
- package/dist/internal/features/work/work-docx-field-export.d.ts +2 -0
- package/dist/internal/features/work/work-docx-field-import.d.ts +16 -0
- package/dist/internal/features/work/work-docx-field-instructions.d.ts +8 -0
- package/dist/internal/features/work/work-docx-image-layout-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-import.d.ts +50 -0
- package/dist/internal/features/work/work-docx-list-import.d.ts +14 -0
- package/dist/internal/features/work/work-docx-note-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-note-import.d.ts +3 -0
- package/dist/internal/features/work/work-docx-page-chrome-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-page-chrome-import.d.ts +11 -0
- package/dist/internal/features/work/work-docx-page-color.d.ts +2 -0
- package/dist/internal/features/work/work-docx-paragraph-alignment-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-direction-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-indent-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-pagination-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-spacing-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-styles.d.ts +18 -0
- package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +19 -0
- package/dist/internal/features/work/work-docx-tab-stop-import.d.ts +13 -0
- package/dist/internal/features/work/work-docx-table-cell-export.d.ts +4 -0
- package/dist/internal/features/work/work-docx-table-cell-import.d.ts +16 -0
- package/dist/internal/features/work/work-docx-table-row-import.d.ts +13 -0
- package/dist/internal/features/work/work-docx-table-sizing-export.d.ts +8 -0
- package/dist/internal/features/work/work-docx-table-sizing-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-theme.d.ts +9 -0
- package/dist/internal/features/work/work-file-data.d.ts +1 -0
- package/dist/internal/features/work/work-file-download.d.ts +3 -0
- package/dist/internal/features/work/work-file-io.d.ts +8 -0
- package/dist/internal/features/work/work-markdown-extensions.d.ts +19 -0
- package/dist/internal/features/work/work-markdown-file-io.d.ts +3 -0
- package/dist/internal/features/work/work-markdown-selection-menu.d.ts +57 -0
- package/dist/internal/features/work/work-office-diagnostics.d.ts +9 -0
- package/dist/internal/features/work/work-ooxml-package.d.ts +28 -0
- package/dist/internal/features/work/work-pdf-export.d.ts +23 -0
- package/dist/internal/features/work/work-pptx-chart-axes.d.ts +3 -0
- package/dist/internal/features/work/work-pptx-chart-axis-diagnostics.d.ts +5 -0
- package/dist/internal/features/work/work-pptx-chart-data-labels.d.ts +12 -0
- package/dist/internal/features/work/work-pptx-chart-import.d.ts +11 -0
- package/dist/internal/features/work/work-pptx-chart-layout-style.d.ts +15 -0
- package/dist/internal/features/work/work-pptx-chart-series-analysis.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-chart-xy.d.ts +3 -0
- package/dist/internal/features/work/work-pptx-comments.d.ts +17 -0
- package/dist/internal/features/work/work-pptx-export.d.ts +4 -0
- package/dist/internal/features/work/work-pptx-groups.d.ts +19 -0
- package/dist/internal/features/work/work-pptx-import.d.ts +6 -0
- package/dist/internal/features/work/work-pptx-layout-export.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-layout-import.d.ts +30 -0
- package/dist/internal/features/work/work-pptx-style.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-transition.d.ts +13 -0
- package/dist/internal/features/work/work-presentation-agent-context.d.ts +6 -0
- package/dist/internal/features/work/work-presentation-chart-axes.d.ts +14 -0
- package/dist/internal/features/work/work-presentation-charts.d.ts +37 -0
- package/dist/internal/features/work/work-presentation-clipboard.d.ts +26 -0
- package/dist/internal/features/work/work-presentation-file-io.d.ts +15 -0
- package/dist/internal/features/work/work-presentation-groups.d.ts +17 -0
- package/dist/internal/features/work/work-presentation-layouts.d.ts +13 -0
- package/dist/internal/features/work/work-presentation-transition.d.ts +4 -0
- package/dist/internal/features/work/work-presentation-visual-scale.d.ts +2 -0
- package/dist/internal/features/work/work-repository.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-agent-context.d.ts +15 -0
- package/dist/internal/features/work/work-spreadsheet-chart-axis.d.ts +42 -0
- package/dist/internal/features/work/work-spreadsheet-chart-layout.d.ts +29 -0
- package/dist/internal/features/work/work-spreadsheet-chart-legend-svg.d.ts +18 -0
- package/dist/internal/features/work/work-spreadsheet-chart-series-layout.d.ts +24 -0
- package/dist/internal/features/work/work-spreadsheet-chart-series-style.d.ts +29 -0
- package/dist/internal/features/work/work-spreadsheet-chart-svg-utils.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-chart-svg.d.ts +3 -0
- package/dist/internal/features/work/work-spreadsheet-chart-types.d.ts +147 -0
- package/dist/internal/features/work/work-spreadsheet-chart-validation.d.ts +2 -0
- package/dist/internal/features/work/work-spreadsheet-charts.d.ts +17 -0
- package/dist/internal/features/work/work-spreadsheet-combination-chart-svg.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-comments.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-canvas.d.ts +5 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-colors.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-comparisons.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-data-bar.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-format.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-icons.d.ts +107 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-values.d.ts +19 -0
- package/dist/internal/features/work/work-spreadsheet-data-label-svg.d.ts +27 -0
- package/dist/internal/features/work/work-spreadsheet-error-bar-svg.d.ts +5 -0
- package/dist/internal/features/work/work-spreadsheet-error-bars.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-formula-analysis.d.ts +30 -0
- package/dist/internal/features/work/work-spreadsheet-formula-support.d.ts +1 -0
- package/dist/internal/features/work/work-spreadsheet-formulas.d.ts +19 -0
- package/dist/internal/features/work/work-spreadsheet-header-footer.d.ts +14 -0
- package/dist/internal/features/work/work-spreadsheet-line-chart-svg.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-page-breaks.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-page-setup.d.ts +26 -0
- package/dist/internal/features/work/work-spreadsheet-pivot-engine.d.ts +21 -0
- package/dist/internal/features/work/work-spreadsheet-pivot-values.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-pivots.d.ts +27 -0
- package/dist/internal/features/work/work-spreadsheet-protection.d.ts +55 -0
- package/dist/internal/features/work/work-spreadsheet-ranges.d.ts +25 -0
- package/dist/internal/features/work/work-spreadsheet-trendline-svg.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-trendlines.d.ts +11 -0
- package/dist/internal/features/work/work-spreadsheet-xy-chart-axes-svg.d.ts +10 -0
- package/dist/internal/features/work/work-templates.d.ts +4 -0
- package/dist/internal/features/work/work-types.d.ts +513 -0
- package/dist/internal/features/work/work-xlsx-chart-axes.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-chart-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-chart-layout.d.ts +16 -0
- package/dist/internal/features/work/work-xlsx-chart-series-style.d.ts +6 -0
- package/dist/internal/features/work/work-xlsx-chart-values.d.ts +10 -0
- package/dist/internal/features/work/work-xlsx-charts.d.ts +32 -0
- package/dist/internal/features/work/work-xlsx-conditional-format-diagnostics.d.ts +6 -0
- package/dist/internal/features/work/work-xlsx-conditional-format-write.d.ts +11 -0
- package/dist/internal/features/work/work-xlsx-conditional-format.d.ts +29 -0
- package/dist/internal/features/work/work-xlsx-defined-names.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-drawing-geometry.d.ts +27 -0
- package/dist/internal/features/work/work-xlsx-formula-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-formulas.d.ts +40 -0
- package/dist/internal/features/work/work-xlsx-header-footer.d.ts +12 -0
- package/dist/internal/features/work/work-xlsx-images.d.ts +17 -0
- package/dist/internal/features/work/work-xlsx-interop.d.ts +39 -0
- package/dist/internal/features/work/work-xlsx-page-breaks.d.ts +7 -0
- package/dist/internal/features/work/work-xlsx-page-setup-diagnostics.d.ts +2 -0
- package/dist/internal/features/work/work-xlsx-page-setup.d.ts +5 -0
- package/dist/internal/features/work/work-xlsx-pivot-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-pivot-xml.d.ts +9 -0
- package/dist/internal/features/work/work-xlsx-pivots.d.ts +32 -0
- package/dist/internal/features/work/work-xlsx-protection.d.ts +24 -0
- package/dist/internal/features/workspace/components/workspace-context-menu.d.ts +29 -0
- package/dist/internal/features/workspace/components/workspace-text-control-selection.d.ts +7 -0
- package/dist/internal/kernel/office-kernel-client-types.d.ts +40 -0
- package/dist/internal/kernel/office-kernel-client.d.ts +4 -0
- package/dist/internal/kernel/office-kernel-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-presentation-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-protocol.d.ts +229 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-formula.d.ts +3 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-validation.d.ts +5 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-value.d.ts +6 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-protocol.d.ts +112 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-session-fallback.d.ts +8 -0
- package/dist/internal/kernel/office-kernel-text-fallback.d.ts +10 -0
- package/dist/internal/kernel/office-kernel-version.d.ts +1 -0
- package/dist/internal/kernel/office-kernel.worker.d.ts +1 -0
- package/dist/internal/keyboard-shortcuts.d.ts +2 -0
- package/dist/internal/state/app-state.d.ts +8 -0
- package/dist/noto-naskh-arabic-regular.ttf +0 -0
- package/dist/noto-naskh-arabic.LICENSE.txt +94 -0
- package/dist/noto-sans-hans-regular.otf +0 -0
- package/dist/noto-sans-hans.LICENSE.txt +94 -0
- package/dist/noto-sans-hebrew-regular.ttf +0 -0
- package/dist/noto-sans-hebrew.LICENSE.txt +94 -0
- package/dist/noto-sans-regular.ttf +0 -0
- package/dist/noto-sans.LICENSE.txt +94 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/office-kernel.worker.js +14605 -0
- package/dist/office-surface.d.ts +10 -0
- package/dist/pdfium.LICENSE.txt +196 -0
- package/dist/pdfium.wasm +0 -0
- package/dist/pptxgen.LICENSE.txt +21 -0
- package/dist/pptxgen.bundle.js +11244 -0
- package/dist/react.d.ts +51 -0
- package/dist/react.js +1 -0
- package/dist/styles.css +17435 -0
- package/dist/styles.js +0 -0
- package/dist/vue.d.ts +282 -0
- package/dist/vue.js +231 -0
- package/dist/web-component.d.ts +98 -0
- package/dist/web-component.js +335 -0
- package/docs/browser-editor-architecture.md +947 -0
- package/package.json +165 -0
package/dist/styles.js
ADDED
|
File without changes
|
package/dist/vue.d.ts
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import type { Extensions } from '@tiptap/core';
|
|
2
|
+
import { type DocumentLayoutFont, type OfficeFileAction } from './react';
|
|
3
|
+
import type { DocumentContent, EditorAgentRequest, GetDocumentSelectionMenuItems, GetMarkdownSelectionMenuItems, MarkdownContent, PresentationContent, SpreadsheetContent } from './core';
|
|
4
|
+
import { type PropType } from 'vue';
|
|
5
|
+
import type { OfficeTheme } from './office-surface';
|
|
6
|
+
export declare const DocumentEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
artifactId: StringConstructor;
|
|
8
|
+
content: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: PropType<DocumentContent>;
|
|
11
|
+
};
|
|
12
|
+
fileActions: {
|
|
13
|
+
default: undefined;
|
|
14
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
15
|
+
};
|
|
16
|
+
extensions: {
|
|
17
|
+
default: undefined;
|
|
18
|
+
type: PropType<Extensions>;
|
|
19
|
+
};
|
|
20
|
+
getSelectionMenuItems: PropType<GetDocumentSelectionMenuItems>;
|
|
21
|
+
kernelWasmUrl: StringConstructor;
|
|
22
|
+
layoutFonts: {
|
|
23
|
+
default: undefined;
|
|
24
|
+
type: PropType<readonly DocumentLayoutFont[]>;
|
|
25
|
+
};
|
|
26
|
+
preview: {
|
|
27
|
+
default: boolean;
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
saveStatus: StringConstructor;
|
|
31
|
+
theme: {
|
|
32
|
+
readonly default: "system";
|
|
33
|
+
readonly type: PropType<OfficeTheme>;
|
|
34
|
+
};
|
|
35
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
agentRequest: (_request: EditorAgentRequest) => true;
|
|
39
|
+
change: (_content: DocumentContent) => true;
|
|
40
|
+
'update:content': (_content: DocumentContent) => true;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
artifactId: StringConstructor;
|
|
43
|
+
content: {
|
|
44
|
+
required: true;
|
|
45
|
+
type: PropType<DocumentContent>;
|
|
46
|
+
};
|
|
47
|
+
fileActions: {
|
|
48
|
+
default: undefined;
|
|
49
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
50
|
+
};
|
|
51
|
+
extensions: {
|
|
52
|
+
default: undefined;
|
|
53
|
+
type: PropType<Extensions>;
|
|
54
|
+
};
|
|
55
|
+
getSelectionMenuItems: PropType<GetDocumentSelectionMenuItems>;
|
|
56
|
+
kernelWasmUrl: StringConstructor;
|
|
57
|
+
layoutFonts: {
|
|
58
|
+
default: undefined;
|
|
59
|
+
type: PropType<readonly DocumentLayoutFont[]>;
|
|
60
|
+
};
|
|
61
|
+
preview: {
|
|
62
|
+
default: boolean;
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
};
|
|
65
|
+
saveStatus: StringConstructor;
|
|
66
|
+
theme: {
|
|
67
|
+
readonly default: "system";
|
|
68
|
+
readonly type: PropType<OfficeTheme>;
|
|
69
|
+
};
|
|
70
|
+
}>> & Readonly<{
|
|
71
|
+
onChange?: ((_content: DocumentContent) => any) | undefined;
|
|
72
|
+
onAgentRequest?: ((_request: EditorAgentRequest) => any) | undefined;
|
|
73
|
+
"onUpdate:content"?: ((_content: DocumentContent) => any) | undefined;
|
|
74
|
+
}>, {
|
|
75
|
+
theme: OfficeTheme;
|
|
76
|
+
layoutFonts: readonly DocumentLayoutFont[];
|
|
77
|
+
extensions: Extensions;
|
|
78
|
+
fileActions: readonly OfficeFileAction[];
|
|
79
|
+
preview: boolean;
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
|
+
export declare const MarkdownEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
82
|
+
content: {
|
|
83
|
+
required: true;
|
|
84
|
+
type: PropType<MarkdownContent>;
|
|
85
|
+
};
|
|
86
|
+
fileActions: {
|
|
87
|
+
default: undefined;
|
|
88
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
89
|
+
};
|
|
90
|
+
extensions: {
|
|
91
|
+
default: undefined;
|
|
92
|
+
type: PropType<Extensions>;
|
|
93
|
+
};
|
|
94
|
+
getSelectionMenuItems: PropType<GetMarkdownSelectionMenuItems>;
|
|
95
|
+
preview: {
|
|
96
|
+
default: boolean;
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
};
|
|
99
|
+
saveStatus: StringConstructor;
|
|
100
|
+
theme: {
|
|
101
|
+
readonly default: "system";
|
|
102
|
+
readonly type: PropType<OfficeTheme>;
|
|
103
|
+
};
|
|
104
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
107
|
+
change: (_content: MarkdownContent) => true;
|
|
108
|
+
'update:content': (_content: MarkdownContent) => true;
|
|
109
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
110
|
+
content: {
|
|
111
|
+
required: true;
|
|
112
|
+
type: PropType<MarkdownContent>;
|
|
113
|
+
};
|
|
114
|
+
fileActions: {
|
|
115
|
+
default: undefined;
|
|
116
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
117
|
+
};
|
|
118
|
+
extensions: {
|
|
119
|
+
default: undefined;
|
|
120
|
+
type: PropType<Extensions>;
|
|
121
|
+
};
|
|
122
|
+
getSelectionMenuItems: PropType<GetMarkdownSelectionMenuItems>;
|
|
123
|
+
preview: {
|
|
124
|
+
default: boolean;
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
};
|
|
127
|
+
saveStatus: StringConstructor;
|
|
128
|
+
theme: {
|
|
129
|
+
readonly default: "system";
|
|
130
|
+
readonly type: PropType<OfficeTheme>;
|
|
131
|
+
};
|
|
132
|
+
}>> & Readonly<{
|
|
133
|
+
onChange?: ((_content: MarkdownContent) => any) | undefined;
|
|
134
|
+
"onUpdate:content"?: ((_content: MarkdownContent) => any) | undefined;
|
|
135
|
+
}>, {
|
|
136
|
+
theme: OfficeTheme;
|
|
137
|
+
extensions: Extensions;
|
|
138
|
+
fileActions: readonly OfficeFileAction[];
|
|
139
|
+
preview: boolean;
|
|
140
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
|
+
export declare const SpreadsheetEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
142
|
+
content: {
|
|
143
|
+
required: true;
|
|
144
|
+
type: PropType<SpreadsheetContent>;
|
|
145
|
+
};
|
|
146
|
+
fileActions: {
|
|
147
|
+
default: undefined;
|
|
148
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
149
|
+
};
|
|
150
|
+
kernelWasmUrl: StringConstructor;
|
|
151
|
+
preview: {
|
|
152
|
+
default: boolean;
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
};
|
|
155
|
+
saveStatus: StringConstructor;
|
|
156
|
+
theme: {
|
|
157
|
+
readonly default: "system";
|
|
158
|
+
readonly type: PropType<OfficeTheme>;
|
|
159
|
+
};
|
|
160
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
163
|
+
agentRequest: (_request: EditorAgentRequest) => true;
|
|
164
|
+
change: (_content: SpreadsheetContent) => true;
|
|
165
|
+
'update:content': (_content: SpreadsheetContent) => true;
|
|
166
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
167
|
+
content: {
|
|
168
|
+
required: true;
|
|
169
|
+
type: PropType<SpreadsheetContent>;
|
|
170
|
+
};
|
|
171
|
+
fileActions: {
|
|
172
|
+
default: undefined;
|
|
173
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
174
|
+
};
|
|
175
|
+
kernelWasmUrl: StringConstructor;
|
|
176
|
+
preview: {
|
|
177
|
+
default: boolean;
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
};
|
|
180
|
+
saveStatus: StringConstructor;
|
|
181
|
+
theme: {
|
|
182
|
+
readonly default: "system";
|
|
183
|
+
readonly type: PropType<OfficeTheme>;
|
|
184
|
+
};
|
|
185
|
+
}>> & Readonly<{
|
|
186
|
+
onChange?: ((_content: SpreadsheetContent) => any) | undefined;
|
|
187
|
+
onAgentRequest?: ((_request: EditorAgentRequest) => any) | undefined;
|
|
188
|
+
"onUpdate:content"?: ((_content: SpreadsheetContent) => any) | undefined;
|
|
189
|
+
}>, {
|
|
190
|
+
theme: OfficeTheme;
|
|
191
|
+
fileActions: readonly OfficeFileAction[];
|
|
192
|
+
preview: boolean;
|
|
193
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
194
|
+
export declare const PresentationEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
195
|
+
content: {
|
|
196
|
+
required: true;
|
|
197
|
+
type: PropType<PresentationContent>;
|
|
198
|
+
};
|
|
199
|
+
fileActions: {
|
|
200
|
+
default: undefined;
|
|
201
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
202
|
+
};
|
|
203
|
+
kernelWasmUrl: StringConstructor;
|
|
204
|
+
preview: {
|
|
205
|
+
default: boolean;
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
};
|
|
208
|
+
saveStatus: StringConstructor;
|
|
209
|
+
theme: {
|
|
210
|
+
readonly default: "system";
|
|
211
|
+
readonly type: PropType<OfficeTheme>;
|
|
212
|
+
};
|
|
213
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
216
|
+
agentRequest: (_request: EditorAgentRequest) => true;
|
|
217
|
+
change: (_content: PresentationContent) => true;
|
|
218
|
+
startSlideshow: () => true;
|
|
219
|
+
'update:content': (_content: PresentationContent) => true;
|
|
220
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
221
|
+
content: {
|
|
222
|
+
required: true;
|
|
223
|
+
type: PropType<PresentationContent>;
|
|
224
|
+
};
|
|
225
|
+
fileActions: {
|
|
226
|
+
default: undefined;
|
|
227
|
+
type: PropType<readonly OfficeFileAction[]>;
|
|
228
|
+
};
|
|
229
|
+
kernelWasmUrl: StringConstructor;
|
|
230
|
+
preview: {
|
|
231
|
+
default: boolean;
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
};
|
|
234
|
+
saveStatus: StringConstructor;
|
|
235
|
+
theme: {
|
|
236
|
+
readonly default: "system";
|
|
237
|
+
readonly type: PropType<OfficeTheme>;
|
|
238
|
+
};
|
|
239
|
+
}>> & Readonly<{
|
|
240
|
+
onChange?: ((_content: PresentationContent) => any) | undefined;
|
|
241
|
+
onStartSlideshow?: (() => any) | undefined;
|
|
242
|
+
onAgentRequest?: ((_request: EditorAgentRequest) => any) | undefined;
|
|
243
|
+
"onUpdate:content"?: ((_content: PresentationContent) => any) | undefined;
|
|
244
|
+
}>, {
|
|
245
|
+
theme: OfficeTheme;
|
|
246
|
+
fileActions: readonly OfficeFileAction[];
|
|
247
|
+
preview: boolean;
|
|
248
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
249
|
+
export declare const PdfViewer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
250
|
+
fileName: StringConstructor;
|
|
251
|
+
loadSource: {
|
|
252
|
+
required: true;
|
|
253
|
+
type: PropType<() => Promise<Blob>>;
|
|
254
|
+
};
|
|
255
|
+
onSave: PropType<(pdf: Blob) => Promise<boolean>>;
|
|
256
|
+
saveLabel: StringConstructor;
|
|
257
|
+
sourceKey: StringConstructor;
|
|
258
|
+
theme: {
|
|
259
|
+
readonly default: "system";
|
|
260
|
+
readonly type: PropType<OfficeTheme>;
|
|
261
|
+
};
|
|
262
|
+
wasmUrl: StringConstructor;
|
|
263
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
266
|
+
fileName: StringConstructor;
|
|
267
|
+
loadSource: {
|
|
268
|
+
required: true;
|
|
269
|
+
type: PropType<() => Promise<Blob>>;
|
|
270
|
+
};
|
|
271
|
+
onSave: PropType<(pdf: Blob) => Promise<boolean>>;
|
|
272
|
+
saveLabel: StringConstructor;
|
|
273
|
+
sourceKey: StringConstructor;
|
|
274
|
+
theme: {
|
|
275
|
+
readonly default: "system";
|
|
276
|
+
readonly type: PropType<OfficeTheme>;
|
|
277
|
+
};
|
|
278
|
+
wasmUrl: StringConstructor;
|
|
279
|
+
}>> & Readonly<{}>, {
|
|
280
|
+
theme: OfficeTheme;
|
|
281
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
282
|
+
export { DocumentEditor as A3SDocumentEditor, MarkdownEditor as A3SMarkdownEditor, PdfViewer as A3SPdfViewer, PresentationEditor as A3SPresentationEditor, SpreadsheetEditor as A3SSpreadsheetEditor, };
|
package/dist/vue.js
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
import { createRoot } from "react-dom/client";
|
|
3
|
+
import { defineComponent, h, onBeforeUnmount, onMounted, onUpdated, ref } from "vue";
|
|
4
|
+
import { MarkdownEditor as react_MarkdownEditor, PdfViewer as react_PdfViewer, DocumentEditor as react_DocumentEditor, PresentationEditor as react_PresentationEditor, SpreadsheetEditor as react_SpreadsheetEditor } from "./432.js";
|
|
5
|
+
function createReactRenderer(renderNode) {
|
|
6
|
+
const host = ref(null);
|
|
7
|
+
let root = null;
|
|
8
|
+
const render = ()=>{
|
|
9
|
+
if (!host.value) return;
|
|
10
|
+
root ??= createRoot(host.value);
|
|
11
|
+
root.render(renderNode());
|
|
12
|
+
};
|
|
13
|
+
onMounted(render);
|
|
14
|
+
onUpdated(render);
|
|
15
|
+
onBeforeUnmount(()=>{
|
|
16
|
+
root?.unmount();
|
|
17
|
+
root = null;
|
|
18
|
+
});
|
|
19
|
+
return ()=>h('div', {
|
|
20
|
+
class: 'a3s-office-vue-host',
|
|
21
|
+
ref: host,
|
|
22
|
+
style: {
|
|
23
|
+
height: '100%',
|
|
24
|
+
minHeight: 0,
|
|
25
|
+
minWidth: 0,
|
|
26
|
+
width: '100%'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const themeProp = {
|
|
31
|
+
default: 'system',
|
|
32
|
+
type: String
|
|
33
|
+
};
|
|
34
|
+
const fileActionsProp = {
|
|
35
|
+
default: void 0,
|
|
36
|
+
type: Array
|
|
37
|
+
};
|
|
38
|
+
const DocumentEditor = defineComponent({
|
|
39
|
+
name: 'A3SDocumentEditor',
|
|
40
|
+
props: {
|
|
41
|
+
artifactId: String,
|
|
42
|
+
content: {
|
|
43
|
+
required: true,
|
|
44
|
+
type: Object
|
|
45
|
+
},
|
|
46
|
+
fileActions: fileActionsProp,
|
|
47
|
+
extensions: {
|
|
48
|
+
default: void 0,
|
|
49
|
+
type: Array
|
|
50
|
+
},
|
|
51
|
+
getSelectionMenuItems: Function,
|
|
52
|
+
kernelWasmUrl: String,
|
|
53
|
+
layoutFonts: {
|
|
54
|
+
default: void 0,
|
|
55
|
+
type: Array
|
|
56
|
+
},
|
|
57
|
+
preview: {
|
|
58
|
+
default: false,
|
|
59
|
+
type: Boolean
|
|
60
|
+
},
|
|
61
|
+
saveStatus: String,
|
|
62
|
+
theme: themeProp
|
|
63
|
+
},
|
|
64
|
+
emits: {
|
|
65
|
+
agentRequest: (_request)=>true,
|
|
66
|
+
change: (_content)=>true,
|
|
67
|
+
'update:content': (_content)=>true
|
|
68
|
+
},
|
|
69
|
+
setup (props, { emit }) {
|
|
70
|
+
return createReactRenderer(()=>createElement(react_DocumentEditor, {
|
|
71
|
+
artifactId: props.artifactId,
|
|
72
|
+
content: props.content,
|
|
73
|
+
extensions: props.extensions,
|
|
74
|
+
fileActions: props.fileActions,
|
|
75
|
+
getSelectionMenuItems: props.getSelectionMenuItems,
|
|
76
|
+
kernelWasmUrl: props.kernelWasmUrl,
|
|
77
|
+
layoutFonts: props.layoutFonts,
|
|
78
|
+
onAgentRequest: (request)=>emit('agentRequest', request),
|
|
79
|
+
onChange: (content)=>{
|
|
80
|
+
emit('update:content', content);
|
|
81
|
+
emit('change', content);
|
|
82
|
+
},
|
|
83
|
+
preview: props.preview,
|
|
84
|
+
saveStatus: props.saveStatus,
|
|
85
|
+
theme: props.theme
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const MarkdownEditor = defineComponent({
|
|
90
|
+
name: 'A3SMarkdownEditor',
|
|
91
|
+
props: {
|
|
92
|
+
content: {
|
|
93
|
+
required: true,
|
|
94
|
+
type: Object
|
|
95
|
+
},
|
|
96
|
+
fileActions: fileActionsProp,
|
|
97
|
+
extensions: {
|
|
98
|
+
default: void 0,
|
|
99
|
+
type: Array
|
|
100
|
+
},
|
|
101
|
+
getSelectionMenuItems: Function,
|
|
102
|
+
preview: {
|
|
103
|
+
default: false,
|
|
104
|
+
type: Boolean
|
|
105
|
+
},
|
|
106
|
+
saveStatus: String,
|
|
107
|
+
theme: themeProp
|
|
108
|
+
},
|
|
109
|
+
emits: {
|
|
110
|
+
change: (_content)=>true,
|
|
111
|
+
'update:content': (_content)=>true
|
|
112
|
+
},
|
|
113
|
+
setup (props, { emit }) {
|
|
114
|
+
return createReactRenderer(()=>createElement(react_MarkdownEditor, {
|
|
115
|
+
content: props.content,
|
|
116
|
+
extensions: props.extensions,
|
|
117
|
+
fileActions: props.fileActions,
|
|
118
|
+
getSelectionMenuItems: props.getSelectionMenuItems,
|
|
119
|
+
onChange: (content)=>{
|
|
120
|
+
emit('update:content', content);
|
|
121
|
+
emit('change', content);
|
|
122
|
+
},
|
|
123
|
+
preview: props.preview,
|
|
124
|
+
saveStatus: props.saveStatus,
|
|
125
|
+
theme: props.theme
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const SpreadsheetEditor = defineComponent({
|
|
130
|
+
name: 'A3SSpreadsheetEditor',
|
|
131
|
+
props: {
|
|
132
|
+
content: {
|
|
133
|
+
required: true,
|
|
134
|
+
type: Object
|
|
135
|
+
},
|
|
136
|
+
fileActions: fileActionsProp,
|
|
137
|
+
kernelWasmUrl: String,
|
|
138
|
+
preview: {
|
|
139
|
+
default: false,
|
|
140
|
+
type: Boolean
|
|
141
|
+
},
|
|
142
|
+
saveStatus: String,
|
|
143
|
+
theme: themeProp
|
|
144
|
+
},
|
|
145
|
+
emits: {
|
|
146
|
+
agentRequest: (_request)=>true,
|
|
147
|
+
change: (_content)=>true,
|
|
148
|
+
'update:content': (_content)=>true
|
|
149
|
+
},
|
|
150
|
+
setup (props, { emit }) {
|
|
151
|
+
return createReactRenderer(()=>createElement(react_SpreadsheetEditor, {
|
|
152
|
+
content: props.content,
|
|
153
|
+
fileActions: props.fileActions,
|
|
154
|
+
kernelWasmUrl: props.kernelWasmUrl,
|
|
155
|
+
onAgentRequest: (request)=>emit('agentRequest', request),
|
|
156
|
+
onChange: (content)=>{
|
|
157
|
+
emit('update:content', content);
|
|
158
|
+
emit('change', content);
|
|
159
|
+
},
|
|
160
|
+
preview: props.preview,
|
|
161
|
+
saveStatus: props.saveStatus,
|
|
162
|
+
theme: props.theme
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
const PresentationEditor = defineComponent({
|
|
167
|
+
name: 'A3SPresentationEditor',
|
|
168
|
+
props: {
|
|
169
|
+
content: {
|
|
170
|
+
required: true,
|
|
171
|
+
type: Object
|
|
172
|
+
},
|
|
173
|
+
fileActions: fileActionsProp,
|
|
174
|
+
kernelWasmUrl: String,
|
|
175
|
+
preview: {
|
|
176
|
+
default: false,
|
|
177
|
+
type: Boolean
|
|
178
|
+
},
|
|
179
|
+
saveStatus: String,
|
|
180
|
+
theme: themeProp
|
|
181
|
+
},
|
|
182
|
+
emits: {
|
|
183
|
+
agentRequest: (_request)=>true,
|
|
184
|
+
change: (_content)=>true,
|
|
185
|
+
startSlideshow: ()=>true,
|
|
186
|
+
'update:content': (_content)=>true
|
|
187
|
+
},
|
|
188
|
+
setup (props, { emit }) {
|
|
189
|
+
return createReactRenderer(()=>createElement(react_PresentationEditor, {
|
|
190
|
+
content: props.content,
|
|
191
|
+
fileActions: props.fileActions,
|
|
192
|
+
kernelWasmUrl: props.kernelWasmUrl,
|
|
193
|
+
onAgentRequest: (request)=>emit('agentRequest', request),
|
|
194
|
+
onChange: (content)=>{
|
|
195
|
+
emit('update:content', content);
|
|
196
|
+
emit('change', content);
|
|
197
|
+
},
|
|
198
|
+
onStartSlideshow: ()=>emit('startSlideshow'),
|
|
199
|
+
preview: props.preview,
|
|
200
|
+
saveStatus: props.saveStatus,
|
|
201
|
+
theme: props.theme
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
const PdfViewer = defineComponent({
|
|
206
|
+
name: 'A3SPdfViewer',
|
|
207
|
+
props: {
|
|
208
|
+
fileName: String,
|
|
209
|
+
loadSource: {
|
|
210
|
+
required: true,
|
|
211
|
+
type: Function
|
|
212
|
+
},
|
|
213
|
+
onSave: Function,
|
|
214
|
+
saveLabel: String,
|
|
215
|
+
sourceKey: String,
|
|
216
|
+
theme: themeProp,
|
|
217
|
+
wasmUrl: String
|
|
218
|
+
},
|
|
219
|
+
setup (props) {
|
|
220
|
+
return createReactRenderer(()=>createElement(react_PdfViewer, {
|
|
221
|
+
fileName: props.fileName,
|
|
222
|
+
loadSource: props.loadSource,
|
|
223
|
+
onSave: props.onSave,
|
|
224
|
+
saveLabel: props.saveLabel,
|
|
225
|
+
sourceKey: props.sourceKey,
|
|
226
|
+
theme: props.theme,
|
|
227
|
+
wasmUrl: props.wasmUrl
|
|
228
|
+
}));
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
export { DocumentEditor as A3SDocumentEditor, DocumentEditor, MarkdownEditor as A3SMarkdownEditor, MarkdownEditor, PdfViewer as A3SPdfViewer, PdfViewer, PresentationEditor as A3SPresentationEditor, PresentationEditor, SpreadsheetEditor as A3SSpreadsheetEditor, SpreadsheetEditor };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { Extensions } from '@tiptap/core';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import type { DocumentContent, EditorAgentRequest, GetDocumentSelectionMenuItems, GetMarkdownSelectionMenuItems, MarkdownContent, PresentationContent, SpreadsheetContent } from './core';
|
|
4
|
+
import { type DocumentLayoutFont, type OfficeFileAction } from './react';
|
|
5
|
+
import type { OfficeTheme } from './office-surface';
|
|
6
|
+
declare const HTMLElementBase: {
|
|
7
|
+
new (): HTMLElement;
|
|
8
|
+
prototype: HTMLElement;
|
|
9
|
+
};
|
|
10
|
+
declare abstract class A3SOfficeElement extends HTMLElementBase {
|
|
11
|
+
#private;
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
attributeChangedCallback(): void;
|
|
15
|
+
protected requestRender(): void;
|
|
16
|
+
protected abstract editorNode(): ReactNode;
|
|
17
|
+
private renderReactTree;
|
|
18
|
+
}
|
|
19
|
+
declare abstract class A3SContentEditorElement<TContent extends DocumentContent | MarkdownContent | SpreadsheetContent | PresentationContent> extends A3SOfficeElement {
|
|
20
|
+
#private;
|
|
21
|
+
get content(): TContent | undefined;
|
|
22
|
+
set content(value: TContent | undefined);
|
|
23
|
+
get fileActions(): readonly OfficeFileAction[] | undefined;
|
|
24
|
+
set fileActions(value: readonly OfficeFileAction[] | undefined);
|
|
25
|
+
get preview(): boolean;
|
|
26
|
+
set preview(value: boolean);
|
|
27
|
+
get saveStatus(): string | undefined;
|
|
28
|
+
set saveStatus(value: string | undefined);
|
|
29
|
+
get theme(): OfficeTheme;
|
|
30
|
+
set theme(value: OfficeTheme);
|
|
31
|
+
protected changeContent(value: TContent): void;
|
|
32
|
+
protected requestAgent(request: EditorAgentRequest): void;
|
|
33
|
+
}
|
|
34
|
+
export declare class A3SDocumentEditorElement extends A3SContentEditorElement<DocumentContent> {
|
|
35
|
+
#private;
|
|
36
|
+
static get observedAttributes(): string[];
|
|
37
|
+
get artifactId(): string | undefined;
|
|
38
|
+
set artifactId(value: string | undefined);
|
|
39
|
+
get kernelWasmUrl(): string | undefined;
|
|
40
|
+
set kernelWasmUrl(value: string | undefined);
|
|
41
|
+
get extensions(): Extensions | undefined;
|
|
42
|
+
set extensions(value: Extensions | undefined);
|
|
43
|
+
get getSelectionMenuItems(): GetDocumentSelectionMenuItems | undefined;
|
|
44
|
+
set getSelectionMenuItems(value: GetDocumentSelectionMenuItems | undefined);
|
|
45
|
+
get layoutFonts(): readonly DocumentLayoutFont[] | undefined;
|
|
46
|
+
set layoutFonts(value: readonly DocumentLayoutFont[] | undefined);
|
|
47
|
+
protected editorNode(): ReactNode;
|
|
48
|
+
}
|
|
49
|
+
export declare class A3SMarkdownEditorElement extends A3SContentEditorElement<MarkdownContent> {
|
|
50
|
+
#private;
|
|
51
|
+
static get observedAttributes(): string[];
|
|
52
|
+
get extensions(): Extensions | undefined;
|
|
53
|
+
set extensions(value: Extensions | undefined);
|
|
54
|
+
get getSelectionMenuItems(): GetMarkdownSelectionMenuItems | undefined;
|
|
55
|
+
set getSelectionMenuItems(value: GetMarkdownSelectionMenuItems | undefined);
|
|
56
|
+
protected editorNode(): ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export declare class A3SSpreadsheetEditorElement extends A3SContentEditorElement<SpreadsheetContent> {
|
|
59
|
+
static get observedAttributes(): string[];
|
|
60
|
+
get kernelWasmUrl(): string | undefined;
|
|
61
|
+
set kernelWasmUrl(value: string | undefined);
|
|
62
|
+
protected editorNode(): ReactNode;
|
|
63
|
+
}
|
|
64
|
+
export declare class A3SPresentationEditorElement extends A3SContentEditorElement<PresentationContent> {
|
|
65
|
+
static get observedAttributes(): string[];
|
|
66
|
+
get kernelWasmUrl(): string | undefined;
|
|
67
|
+
set kernelWasmUrl(value: string | undefined);
|
|
68
|
+
protected editorNode(): ReactNode;
|
|
69
|
+
}
|
|
70
|
+
export declare class A3SPdfViewerElement extends A3SOfficeElement {
|
|
71
|
+
#private;
|
|
72
|
+
static get observedAttributes(): string[];
|
|
73
|
+
get loadSource(): (() => Promise<Blob>) | undefined;
|
|
74
|
+
set loadSource(value: (() => Promise<Blob>) | undefined);
|
|
75
|
+
get onSave(): ((pdf: Blob) => Promise<boolean>) | undefined;
|
|
76
|
+
set onSave(value: ((pdf: Blob) => Promise<boolean>) | undefined);
|
|
77
|
+
get theme(): OfficeTheme;
|
|
78
|
+
set theme(value: OfficeTheme);
|
|
79
|
+
protected editorNode(): ReactNode;
|
|
80
|
+
}
|
|
81
|
+
export declare const A3S_OFFICE_ELEMENT_NAMES: {
|
|
82
|
+
readonly document: "a3s-document-editor";
|
|
83
|
+
readonly markdown: "a3s-markdown-editor";
|
|
84
|
+
readonly pdf: "a3s-pdf-viewer";
|
|
85
|
+
readonly presentation: "a3s-presentation-editor";
|
|
86
|
+
readonly spreadsheet: "a3s-spreadsheet-editor";
|
|
87
|
+
};
|
|
88
|
+
export declare function defineA3SOfficeElements(registry?: CustomElementRegistry): void;
|
|
89
|
+
declare global {
|
|
90
|
+
interface HTMLElementTagNameMap {
|
|
91
|
+
'a3s-document-editor': A3SDocumentEditorElement;
|
|
92
|
+
'a3s-markdown-editor': A3SMarkdownEditorElement;
|
|
93
|
+
'a3s-pdf-viewer': A3SPdfViewerElement;
|
|
94
|
+
'a3s-presentation-editor': A3SPresentationEditorElement;
|
|
95
|
+
'a3s-spreadsheet-editor': A3SSpreadsheetEditorElement;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export {};
|