@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkDocumentSectionLayout } from '../work-types';
|
|
2
|
+
export declare function DocumentLayoutPanel({ layout, sectionIndex, sectionCount, onChange, onInsertSection, onMergeSection, onClose, }: {
|
|
3
|
+
layout: WorkDocumentSectionLayout;
|
|
4
|
+
sectionIndex: number;
|
|
5
|
+
sectionCount: number;
|
|
6
|
+
onChange: (layout: WorkDocumentSectionLayout) => void;
|
|
7
|
+
onInsertSection: () => void;
|
|
8
|
+
onMergeSection: () => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import { type DocumentNavigationPage } from './document-page-navigation';
|
|
3
|
+
export declare function DocumentNavigationPanel({ currentPage, editor, modal, pages, onClose, }: {
|
|
4
|
+
currentPage?: number;
|
|
5
|
+
editor: Editor;
|
|
6
|
+
modal?: boolean;
|
|
7
|
+
pages?: readonly DocumentNavigationPage[];
|
|
8
|
+
onClose: () => void | Promise<void>;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor, Extensions } from '@tiptap/core';
|
|
2
|
+
import { normalizeDocumentPageChromeHref } from '../work-document-page-chrome-commands';
|
|
3
|
+
export type DocumentPageChromeAlignment = 'center' | 'justify' | 'left' | 'right';
|
|
4
|
+
export interface DocumentPageChromeEditorState {
|
|
5
|
+
alignment: DocumentPageChromeAlignment;
|
|
6
|
+
bold: boolean;
|
|
7
|
+
canRedo: boolean;
|
|
8
|
+
canUndo: boolean;
|
|
9
|
+
color: string;
|
|
10
|
+
italic: boolean;
|
|
11
|
+
link: string | null;
|
|
12
|
+
subscript: boolean;
|
|
13
|
+
superscript: boolean;
|
|
14
|
+
underline: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface DocumentPageChromeRichTextEditorProps {
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
onChange: (html: string) => void;
|
|
22
|
+
onEditorChange?: (editor: Editor | null) => void;
|
|
23
|
+
onExit?: () => void;
|
|
24
|
+
showToolbar?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function DocumentPageChromeRichTextEditor({ autoFocus, className, label, value, onChange, onEditorChange, onExit, showToolbar, }: DocumentPageChromeRichTextEditorProps): import("react").JSX.Element;
|
|
27
|
+
export declare function createDocumentPageChromeEditorExtensions(placeholder?: string): Extensions;
|
|
28
|
+
export declare function documentPageChromeEditorState(editor: Editor): DocumentPageChromeEditorState;
|
|
29
|
+
export { normalizeDocumentPageChromeHref };
|
|
30
|
+
export type DocumentPageChromeImageLoadResult = {
|
|
31
|
+
ok: true;
|
|
32
|
+
alt: string;
|
|
33
|
+
source: string;
|
|
34
|
+
} | {
|
|
35
|
+
ok: false;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
export declare function loadDocumentPageChromeImage(file: File): Promise<DocumentPageChromeImageLoadResult>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export type DocumentPageChromeEditingPart = 'footer' | 'header';
|
|
3
|
+
export declare function DocumentPageChromeRibbon({ editor, editingPart, showPageNumber, onEditingPartChange, onTogglePageNumber, onClose, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
editingPart: DocumentPageChromeEditingPart;
|
|
6
|
+
showPageNumber: boolean;
|
|
7
|
+
onEditingPartChange: (part: DocumentPageChromeEditingPart) => void;
|
|
8
|
+
onTogglePageNumber: () => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WorkDocumentSectionLayout } from '../work-types';
|
|
2
|
+
export interface DocumentNavigationPage {
|
|
3
|
+
backgroundColor?: string;
|
|
4
|
+
physicalPage: number;
|
|
5
|
+
pageNumber: number;
|
|
6
|
+
orientation: WorkDocumentSectionLayout['orientation'];
|
|
7
|
+
previewText: string;
|
|
8
|
+
selectionPosition: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function DocumentPageNavigation({ currentPage, pages, onSelectPage, }: {
|
|
11
|
+
currentPage: number;
|
|
12
|
+
pages: readonly DocumentNavigationPage[];
|
|
13
|
+
onSelectPage: (page: DocumentNavigationPage) => void | Promise<void>;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface DocumentPageStackProps {
|
|
2
|
+
pageColor: string;
|
|
3
|
+
pageCount: number;
|
|
4
|
+
pageGap: number;
|
|
5
|
+
pageHeight: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function DocumentPageStack({ pageColor, pageCount, pageGap, pageHeight, }: DocumentPageStackProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type DocumentTabStop } from '../work-document-tab-stops';
|
|
3
|
+
export interface DocumentRulerTabStopsProps {
|
|
4
|
+
marginLeft: number;
|
|
5
|
+
pageWidth: number;
|
|
6
|
+
rulerRef: RefObject<HTMLFieldSetElement | null>;
|
|
7
|
+
tabStops: readonly DocumentTabStop[];
|
|
8
|
+
textWidth: number;
|
|
9
|
+
onChange: (tabStops: DocumentTabStop[]) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function DocumentRulerTabStops({ marginLeft, pageWidth, rulerRef, tabStops, textWidth, onChange, }: DocumentRulerTabStopsProps): import("react").JSX.Element;
|
|
12
|
+
export declare function constrainRulerTabStops(tabStops: readonly DocumentTabStop[], textWidth: number): DocumentTabStop[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type DocumentParagraphIndent } from '../work-document-paragraph-formatting';
|
|
2
|
+
import type { DocumentTabStop } from '../work-document-tab-stops';
|
|
3
|
+
import type { WorkDocumentSectionLayout } from '../work-types';
|
|
4
|
+
export interface DocumentRulerProps {
|
|
5
|
+
layout: WorkDocumentSectionLayout;
|
|
6
|
+
paragraphIndent: DocumentParagraphIndent;
|
|
7
|
+
tabStops: readonly DocumentTabStop[];
|
|
8
|
+
onLayoutChange: (layout: WorkDocumentSectionLayout) => void;
|
|
9
|
+
onParagraphIndentChange: (indent: DocumentParagraphIndent) => void;
|
|
10
|
+
onTabStopsChange: (tabStops: DocumentTabStop[]) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DocumentRuler({ layout, paragraphIndent, tabStops, onLayoutChange, onParagraphIndentChange, onTabStopsChange, }: DocumentRulerProps): import("react").JSX.Element;
|
|
13
|
+
export declare function documentRulerPageWidth(layout: WorkDocumentSectionLayout): number;
|
|
14
|
+
export declare function documentRulerPageHeight(layout: WorkDocumentSectionLayout): number;
|
|
15
|
+
export declare function documentRulerMaximumIndentLevel(layout: WorkDocumentSectionLayout): number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkEditorAgentRequest } from '../work-agent-request';
|
|
3
|
+
import { type WorkDocumentSelectionMenuItem, type WorkDocumentSelectionSnapshot } from '../work-document-selection-menu';
|
|
4
|
+
export type DocumentSelectionMenuState = {
|
|
5
|
+
kind: 'agent';
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
snapshot: WorkDocumentSelectionSnapshot;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'custom';
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
snapshot: WorkDocumentSelectionSnapshot;
|
|
14
|
+
items: readonly WorkDocumentSelectionMenuItem[];
|
|
15
|
+
};
|
|
16
|
+
export declare function DocumentSelectionContextMenu({ editor, menu, getTrackChanges, onAgentRequest, onClose, }: {
|
|
17
|
+
editor: Editor;
|
|
18
|
+
menu: DocumentSelectionMenuState;
|
|
19
|
+
getTrackChanges: () => boolean;
|
|
20
|
+
onAgentRequest?: (request: WorkEditorAgentRequest) => void | Promise<void>;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkDocumentLayoutFont } from '../work-document-fonts';
|
|
3
|
+
export declare function DocumentSelectionToolbar({ editor, canInsertComment, layoutFonts, onInsertComment, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
canInsertComment: boolean;
|
|
6
|
+
layoutFonts?: readonly WorkDocumentLayoutFont[];
|
|
7
|
+
onInsertComment: () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DocumentViewMode } from './document-toolbar';
|
|
2
|
+
interface DocumentStatusBarProps {
|
|
3
|
+
bibliographyCount: number;
|
|
4
|
+
citationCount: number;
|
|
5
|
+
currentPage: number;
|
|
6
|
+
pageCount: number;
|
|
7
|
+
saveStatus: string;
|
|
8
|
+
sectionCount: number;
|
|
9
|
+
sectionIndex: number;
|
|
10
|
+
spellcheckEnabled: boolean;
|
|
11
|
+
viewMode: DocumentViewMode;
|
|
12
|
+
wordCount: number;
|
|
13
|
+
zoom: number;
|
|
14
|
+
onSpellcheckChange: (enabled: boolean) => void;
|
|
15
|
+
onViewModeChange: (mode: DocumentViewMode) => void;
|
|
16
|
+
onZoomChange: (zoom: number) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function DocumentStatusBar({ bibliographyCount, citationCount, currentPage, pageCount, saveStatus, sectionCount, sectionIndex, spellcheckEnabled, viewMode, wordCount, zoom, onSpellcheckChange, onViewModeChange, onZoomChange, }: DocumentStatusBarProps): import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export declare function DocumentTableDesignRibbon({ editor }: {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
export declare function DocumentTableLayoutRibbon({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type KeyboardEvent, type ReactNode } from 'react';
|
|
2
|
+
export declare function DocumentTaskPane({ ariaLabel, title, description, closeLabel, className, children, onClose, onKeyDown, }: {
|
|
3
|
+
ariaLabel?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
closeLabel: string;
|
|
7
|
+
className: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkDocumentCaptionKind } from '../work-document-captions';
|
|
3
|
+
import type { WorkDocumentFieldKind } from '../work-document-fields';
|
|
4
|
+
import type { WorkDocumentNoteKind } from '../work-document-notes';
|
|
5
|
+
import type { WorkDocumentLayoutFont } from '../work-document-fonts';
|
|
6
|
+
import { type DocumentPageChromeEditingPart } from './document-page-chrome-ribbon';
|
|
7
|
+
import type { DocumentFindReplaceMode } from './document-find-replace-panel';
|
|
8
|
+
import { type WorkOfficeFileAction } from './work-office-chrome';
|
|
9
|
+
declare const documentRibbonTabs: readonly [{
|
|
10
|
+
readonly id: "home";
|
|
11
|
+
readonly label: "开始";
|
|
12
|
+
}, {
|
|
13
|
+
readonly id: "insert";
|
|
14
|
+
readonly label: "插入";
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "page";
|
|
17
|
+
readonly label: "页面布局";
|
|
18
|
+
readonly compactLabel: "布局";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "references";
|
|
21
|
+
readonly label: "引用";
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "review";
|
|
24
|
+
readonly label: "审阅";
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "view";
|
|
27
|
+
readonly label: "视图";
|
|
28
|
+
}];
|
|
29
|
+
declare const documentPictureRibbonTab: {
|
|
30
|
+
readonly id: "picture";
|
|
31
|
+
readonly label: "图片";
|
|
32
|
+
};
|
|
33
|
+
declare const documentTableRibbonTabs: readonly [{
|
|
34
|
+
readonly id: "tableDesign";
|
|
35
|
+
readonly label: "表格设计";
|
|
36
|
+
readonly compactLabel: "设计";
|
|
37
|
+
}, {
|
|
38
|
+
readonly id: "tableLayout";
|
|
39
|
+
readonly label: "表格布局";
|
|
40
|
+
readonly compactLabel: "布局";
|
|
41
|
+
}];
|
|
42
|
+
declare const documentPageChromeRibbonTab: {
|
|
43
|
+
readonly id: "pageChrome";
|
|
44
|
+
readonly label: "页眉和页脚";
|
|
45
|
+
readonly compactLabel: "页眉页脚";
|
|
46
|
+
};
|
|
47
|
+
type DocumentRibbonTabId = (typeof documentRibbonTabs)[number]['id'] | typeof documentPictureRibbonTab.id | (typeof documentTableRibbonTabs)[number]['id'] | typeof documentPageChromeRibbonTab.id;
|
|
48
|
+
export type DocumentViewMode = 'page' | 'web';
|
|
49
|
+
interface DocumentToolbarProps {
|
|
50
|
+
editor: Editor;
|
|
51
|
+
layoutOpen: boolean;
|
|
52
|
+
layoutFonts?: readonly WorkDocumentLayoutFont[];
|
|
53
|
+
navigationOpen: boolean;
|
|
54
|
+
pageColor: string;
|
|
55
|
+
showPageNumbers: boolean;
|
|
56
|
+
showRulers: boolean;
|
|
57
|
+
spellcheckEnabled: boolean;
|
|
58
|
+
viewMode: DocumentViewMode;
|
|
59
|
+
zoom: number;
|
|
60
|
+
pageChromeEditor: Editor | null;
|
|
61
|
+
pageChromeEditingPart: DocumentPageChromeEditingPart | null;
|
|
62
|
+
pageChromeShowPageNumber: boolean;
|
|
63
|
+
onRequestImage: () => void;
|
|
64
|
+
onPageChromeEditingPartChange: (part: DocumentPageChromeEditingPart) => void;
|
|
65
|
+
onClosePageChrome: () => void;
|
|
66
|
+
onTogglePageChromePageNumber: () => void;
|
|
67
|
+
onToggleLayout: () => void;
|
|
68
|
+
onToggleNavigation: () => void;
|
|
69
|
+
onTogglePageNumbers: () => void;
|
|
70
|
+
onToggleRulers: () => void;
|
|
71
|
+
onPageColorChange: (color: string) => void;
|
|
72
|
+
onToggleSpellcheck: () => void;
|
|
73
|
+
onViewModeChange: (mode: DocumentViewMode) => void;
|
|
74
|
+
onZoomChange: (zoom: number) => void;
|
|
75
|
+
onInsertSection: () => void;
|
|
76
|
+
onInsertNote: (kind: WorkDocumentNoteKind) => void;
|
|
77
|
+
onInsertCaption: (kind: WorkDocumentCaptionKind) => void;
|
|
78
|
+
onInsertCrossReference: () => void;
|
|
79
|
+
citationsOpen: boolean;
|
|
80
|
+
citationSourceCount: number;
|
|
81
|
+
onToggleCitations: () => void;
|
|
82
|
+
onInsertField: (kind: WorkDocumentFieldKind) => void;
|
|
83
|
+
onRefreshFields: () => void;
|
|
84
|
+
canInsertComment: boolean;
|
|
85
|
+
onInsertComment: () => void;
|
|
86
|
+
commentsOpen: boolean;
|
|
87
|
+
commentCount: number;
|
|
88
|
+
onToggleComments: () => void;
|
|
89
|
+
trackChanges: boolean;
|
|
90
|
+
changesOpen: boolean;
|
|
91
|
+
changeCount: number;
|
|
92
|
+
findReplaceMode: DocumentFindReplaceMode | null;
|
|
93
|
+
fileActions?: readonly WorkOfficeFileAction[];
|
|
94
|
+
onRibbonTabChange?: (tab: DocumentRibbonTabId) => boolean | undefined | Promise<boolean | undefined>;
|
|
95
|
+
onToggleTrackChanges: () => void;
|
|
96
|
+
onToggleChanges: () => void;
|
|
97
|
+
onOpenFindReplace: (mode: DocumentFindReplaceMode) => void;
|
|
98
|
+
}
|
|
99
|
+
export declare function DocumentToolbar({ editor, layoutOpen, layoutFonts, navigationOpen, pageColor, showPageNumbers, showRulers, spellcheckEnabled, viewMode, zoom, pageChromeEditor, pageChromeEditingPart, pageChromeShowPageNumber, onRequestImage, onPageChromeEditingPartChange, onClosePageChrome, onTogglePageChromePageNumber, onToggleLayout, onToggleNavigation, onTogglePageNumbers, onToggleRulers, onPageColorChange, onToggleSpellcheck, onViewModeChange, onZoomChange, onInsertSection, onInsertNote, onInsertCaption, onInsertCrossReference, citationsOpen, citationSourceCount, onToggleCitations, onInsertField, onRefreshFields, canInsertComment, onInsertComment, commentsOpen, commentCount, onToggleComments, trackChanges, changesOpen, changeCount, findReplaceMode, fileActions, onRibbonTabChange, onToggleTrackChanges, onToggleChanges, onOpenFindReplace, }: DocumentToolbarProps): import("react").JSX.Element;
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkDocumentSectionLayout } from '../work-types';
|
|
2
|
+
export interface DocumentVerticalRulerProps {
|
|
3
|
+
layout: WorkDocumentSectionLayout;
|
|
4
|
+
onLayoutChange: (layout: WorkDocumentSectionLayout) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function DocumentVerticalRuler({ layout, onLayoutChange, }: DocumentVerticalRulerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Extensions } from '@tiptap/core';
|
|
2
|
+
import { markdownTaskCheckboxLabel } from '../work-markdown-extensions';
|
|
3
|
+
import { type WorkGetMarkdownSelectionMenuItems } from '../work-markdown-selection-menu';
|
|
4
|
+
import type { WorkMarkdownContent } from '../work-types';
|
|
5
|
+
import { type WorkOfficeFileAction } from './work-office-chrome';
|
|
6
|
+
export { markdownTaskCheckboxLabel };
|
|
7
|
+
export interface MarkdownEditorProps {
|
|
8
|
+
content: WorkMarkdownContent;
|
|
9
|
+
extensions?: Extensions;
|
|
10
|
+
preview: boolean;
|
|
11
|
+
saveStatus?: string;
|
|
12
|
+
fileActions?: readonly WorkOfficeFileAction[];
|
|
13
|
+
getSelectionMenuItems?: WorkGetMarkdownSelectionMenuItems;
|
|
14
|
+
onChange: (content: WorkMarkdownContent) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function MarkdownEditor({ content, extensions: additionalExtensions, preview, saveStatus, fileActions, getSelectionMenuItems, onChange, }: MarkdownEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const MARKDOWN_IMAGE_VALIDATION_MESSAGE = "\u8BF7\u8F93\u5165\u5B8C\u6574\u7684 http\u3001https \u6216\u76F8\u5BF9\u56FE\u7247\u5730\u5740\u3002";
|
|
2
|
+
export type MarkdownInsertDialogRequest = {
|
|
3
|
+
kind: 'link';
|
|
4
|
+
action: 'edit' | 'insert';
|
|
5
|
+
label: string;
|
|
6
|
+
source: string;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'image';
|
|
9
|
+
altText: string;
|
|
10
|
+
source: string;
|
|
11
|
+
};
|
|
12
|
+
export type MarkdownInsertDialogResult = MarkdownInsertDialogRequest;
|
|
13
|
+
export declare function MarkdownInsertDialog({ request, restoreFocusTarget, onClose, onSubmit, }: {
|
|
14
|
+
request: MarkdownInsertDialogRequest;
|
|
15
|
+
restoreFocusTarget: () => HTMLElement | null;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
onSubmit: (result: MarkdownInsertDialogResult) => void;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function normalizeMarkdownInsertSource(kind: MarkdownInsertDialogRequest['kind'], source: string): string | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkMarkdownSelectionAction, WorkMarkdownSelectionMenuItem, WorkMarkdownSelectionSnapshot } from '../work-markdown-selection-menu';
|
|
3
|
+
export interface MarkdownSelectionMenuState {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
snapshot: WorkMarkdownSelectionSnapshot;
|
|
7
|
+
items: readonly WorkMarkdownSelectionMenuItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare function MarkdownSelectionContextMenu({ editor, menu, createSourceAction, onClose, }: {
|
|
10
|
+
editor: Editor;
|
|
11
|
+
menu: MarkdownSelectionMenuState;
|
|
12
|
+
createSourceAction: (snapshot: WorkMarkdownSelectionSnapshot) => WorkMarkdownSelectionAction;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface MarkdownSourceSelection {
|
|
2
|
+
start: number;
|
|
3
|
+
end: number;
|
|
4
|
+
direction: 'backward' | 'forward' | 'none';
|
|
5
|
+
}
|
|
6
|
+
export interface MarkdownSourceEdit {
|
|
7
|
+
markdown: string;
|
|
8
|
+
selection: MarkdownSourceSelection;
|
|
9
|
+
}
|
|
10
|
+
export interface MarkdownSourceSelectionState {
|
|
11
|
+
markdown: string;
|
|
12
|
+
selection: MarkdownSourceSelection;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MarkdownSourceInsert {
|
|
16
|
+
replacement: string;
|
|
17
|
+
selectedRange: {
|
|
18
|
+
start: number;
|
|
19
|
+
end: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface MarkdownSourceLink {
|
|
23
|
+
label: string;
|
|
24
|
+
rawLabel: string;
|
|
25
|
+
range: {
|
|
26
|
+
start: number;
|
|
27
|
+
end: number;
|
|
28
|
+
};
|
|
29
|
+
source: string;
|
|
30
|
+
}
|
|
31
|
+
export type MarkdownSourceCommand = 'blockquote' | 'bold' | 'bullet-list' | 'code' | 'code-block' | 'heading-1' | 'heading-2' | 'heading-3' | 'horizontal-rule' | 'italic' | 'ordered-list' | 'paragraph' | 'strike' | 'table' | 'task-list';
|
|
32
|
+
export declare function isMarkdownSourceCommandActive(markdown: string, requestedSelection: MarkdownSourceSelection, command: MarkdownSourceCommand): boolean;
|
|
33
|
+
export declare function applyMarkdownSourceCommand(markdown: string, requestedSelection: MarkdownSourceSelection, command: MarkdownSourceCommand): MarkdownSourceEdit;
|
|
34
|
+
export declare function replaceMarkdownSourceSelection(markdown: string, requestedSelection: MarkdownSourceSelection, replacement: string, selectedRange?: {
|
|
35
|
+
start: number;
|
|
36
|
+
end: number;
|
|
37
|
+
}): MarkdownSourceEdit;
|
|
38
|
+
export declare function createMarkdownLinkSourceInsert(label: string, source: string): MarkdownSourceInsert;
|
|
39
|
+
export declare function createMarkdownImageSourceInsert(altText: string, source: string): MarkdownSourceInsert;
|
|
40
|
+
export declare function findMarkdownSourceLink(markdown: string, requestedSelection: MarkdownSourceSelection): MarkdownSourceLink | null;
|
|
41
|
+
export declare function createMarkdownSourceLinkRemoval(link: MarkdownSourceLink): MarkdownSourceInsert;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { MarkdownSourceCommand, MarkdownSourceSelectionState } from './markdown-source-commands';
|
|
3
|
+
import type { MarkdownViewMode } from './markdown-workspace';
|
|
4
|
+
import { type WorkOfficeFileAction } from './work-office-chrome';
|
|
5
|
+
export declare function MarkdownToolbar({ editor, fileActions, sourceEditing, canSourceRedo, canSourceUndo, viewMode, getSourceFocusTarget, getSourceSelection, onSourceCommand, onSourceRedo, onSourceReplace, onSourceUndo, onViewModeChange, }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
fileActions?: readonly WorkOfficeFileAction[];
|
|
8
|
+
sourceEditing: boolean;
|
|
9
|
+
canSourceRedo: boolean;
|
|
10
|
+
canSourceUndo: boolean;
|
|
11
|
+
viewMode: MarkdownViewMode;
|
|
12
|
+
getSourceFocusTarget: () => HTMLElement | null;
|
|
13
|
+
getSourceSelection: () => MarkdownSourceSelectionState | null;
|
|
14
|
+
onSourceCommand: (command: MarkdownSourceCommand) => boolean;
|
|
15
|
+
onSourceRedo: () => boolean;
|
|
16
|
+
onSourceReplace: (replacement: string, selectedRange?: {
|
|
17
|
+
start: number;
|
|
18
|
+
end: number;
|
|
19
|
+
}, target?: MarkdownSourceSelectionState) => boolean;
|
|
20
|
+
onSourceUndo: () => boolean;
|
|
21
|
+
onViewModeChange: (mode: MarkdownViewMode) => void;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import { type RefObject } from 'react';
|
|
3
|
+
import { type WorkspaceContextMenuEvent } from '../../workspace/components/workspace-context-menu';
|
|
4
|
+
import type { MarkdownSourceCommand, MarkdownSourceSelection } from './markdown-source-commands';
|
|
5
|
+
export type MarkdownViewMode = 'visual' | 'source' | 'split';
|
|
6
|
+
export declare function proportionalMarkdownScrollTop(sourceScrollTop: number, sourceScrollHeight: number, sourceClientHeight: number, targetScrollHeight: number, targetClientHeight: number): number;
|
|
7
|
+
export declare function MarkdownWorkspace({ editor, markdown, mode, readOnly, visualReadOnly, sourceRef, sourceSelectionRequest, onSourceChange, onSourceCommand, onSourceContextMenu, onSourceIntent, onSourceRedo, onSourceSelectionChange, onSourceUndo, onVisualContextMenu, onVisualIntent, }: {
|
|
8
|
+
editor: Editor;
|
|
9
|
+
markdown: string;
|
|
10
|
+
mode: MarkdownViewMode;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
visualReadOnly?: boolean;
|
|
13
|
+
sourceRef: RefObject<HTMLTextAreaElement | null>;
|
|
14
|
+
sourceSelectionRequest?: MarkdownSourceSelection & {
|
|
15
|
+
revision: number;
|
|
16
|
+
};
|
|
17
|
+
onSourceChange: (markdown: string, selection: MarkdownSourceSelection, inputType?: string) => void;
|
|
18
|
+
onSourceCommand?: (command: MarkdownSourceCommand) => boolean;
|
|
19
|
+
onSourceContextMenu?: (event: WorkspaceContextMenuEvent<HTMLTextAreaElement>) => boolean;
|
|
20
|
+
onSourceIntent?: () => void;
|
|
21
|
+
onSourceRedo?: () => boolean;
|
|
22
|
+
onSourceSelectionChange?: (selection: MarkdownSourceSelection) => void;
|
|
23
|
+
onSourceUndo?: () => boolean;
|
|
24
|
+
onVisualContextMenu?: (event: WorkspaceContextMenuEvent<HTMLElement>) => boolean;
|
|
25
|
+
onVisualIntent?: () => void;
|
|
26
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function OfficeCheckbox({ ariaLabel, checked, onCheckedChange, children, disabled, className, }: {
|
|
3
|
+
ariaLabel: string;
|
|
4
|
+
checked: boolean;
|
|
5
|
+
onCheckedChange: (checked: boolean) => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare function OfficeColorPicker({ ariaLabel, value, onValueChange, disabled, compact, className, triggerLabel, triggerIcon, }: {
|
|
3
|
+
ariaLabel: string;
|
|
4
|
+
value: string;
|
|
5
|
+
onValueChange: (value: string) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
compact?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
triggerLabel?: string;
|
|
10
|
+
triggerIcon?: ReactNode;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { OfficeCheckbox } from './office-checkbox';
|
|
2
|
+
export { OfficeColorPicker } from './office-color-picker';
|
|
3
|
+
export { type OfficeConfirmOptions, type OfficeNoticeOptions, type OfficePromptOptions, useOfficeDialog, } from './office-dialog';
|
|
4
|
+
export { CommittedOfficeNumberField, OfficeNumberField, } from './office-number-field';
|
|
5
|
+
export { OfficeSelect, type OfficeSelectOption } from './office-select';
|
|
6
|
+
export { OfficeSlider } from './office-slider';
|
|
7
|
+
export { CommittedOfficeTextArea, CommittedOfficeTextField, OfficeFileInput, OfficeTextArea, OfficeTextField, } from './office-text-field';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonTone } from '../../../design-system/primitives';
|
|
3
|
+
export interface OfficePromptOptions {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
initialValue?: string;
|
|
7
|
+
fieldLabel?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
multiline?: boolean;
|
|
10
|
+
inputMode?: InputHTMLAttributes<HTMLInputElement>['inputMode'];
|
|
11
|
+
confirmLabel?: string;
|
|
12
|
+
required?: boolean | string;
|
|
13
|
+
validate?: (value: string) => string | null;
|
|
14
|
+
restoreFocusTarget?: () => HTMLElement | null;
|
|
15
|
+
}
|
|
16
|
+
export interface OfficeNoticeOptions {
|
|
17
|
+
title: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
confirmLabel?: string;
|
|
20
|
+
restoreFocusTarget?: () => HTMLElement | null;
|
|
21
|
+
}
|
|
22
|
+
export interface OfficeConfirmOptions {
|
|
23
|
+
title: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
confirmLabel?: string;
|
|
26
|
+
cancelLabel?: string;
|
|
27
|
+
confirmTone?: ButtonTone;
|
|
28
|
+
restoreFocusTarget?: () => HTMLElement | null;
|
|
29
|
+
}
|
|
30
|
+
export declare function useOfficeDialog(): {
|
|
31
|
+
prompt: (options: OfficePromptOptions) => Promise<string | null>;
|
|
32
|
+
notice: (options: OfficeNoticeOptions) => Promise<void>;
|
|
33
|
+
confirm: (options: OfficeConfirmOptions) => Promise<boolean>;
|
|
34
|
+
dialog: ReactNode;
|
|
35
|
+
};
|