@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/9356.js
ADDED
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { createWorkArtifact as createArtifact, createWorkId as createOfficeId, WORK_TEMPLATES as officeTemplates, } from './internal/features/work/work-templates';
|
|
2
|
+
export { createWorkArtifactBlob as createArtifactBlob, exportWorkArtifact as downloadArtifact, importWorkFile as importOfficeFile, WORK_IMPORT_ACCEPT as OFFICE_FILE_ACCEPT, workKindForFile as officeKindForFile, } from './internal/features/work/work-file-io';
|
|
3
|
+
export type { WorkArtifactExportOptions as ArtifactExportOptions } from './internal/features/work/work-file-io';
|
|
4
|
+
export { defaultPptxRuntimeUrl } from './internal/features/work/work-presentation-file-io';
|
|
5
|
+
export { forgetWorkSourceBlob as forgetSourceBlob, readWorkSourceBlob as readSourceBlob, rememberWorkSourceBlob as registerSourceBlob, } from './internal/features/work/work-repository';
|
|
6
|
+
export { exportWorkArtifactPdf as downloadArtifactPdf, type WorkPdfExportOptions as PdfExportOptions, workPdfPagesForExport as pdfPagesForExport, } from './internal/features/work/work-pdf-export';
|
|
7
|
+
export { OFFICE_NOTIFICATION_EVENT, type OfficeNotification, type OfficeNotificationTone, subscribeOfficeNotifications, } from './internal/state/app-state';
|
|
8
|
+
export { createWorkAgentProposalRequest as createAgentProposalRequest, WORK_AGENT_PROPOSAL_PROTOCOL as AGENT_PROPOSAL_PROTOCOL, workAgentProposalInstruction as createAgentProposalInstruction, workAgentProposalStatus as getAgentProposalStatus, } from './internal/features/work/work-agent-proposal';
|
|
9
|
+
export type { WorkAgentProposal as AgentProposal, WorkAgentProposalApplyResult as AgentProposalApplyResult, WorkAgentProposalChange as AgentProposalChange, WorkAgentProposalConflict as AgentProposalConflict, WorkAgentProposalMessage as AgentProposalMessage, WorkAgentProposalRequest as AgentProposalRequest, WorkAgentProposalStatus as AgentProposalStatus, WorkAgentProposalTarget as AgentProposalTarget, } from './internal/features/work/work-agent-proposal';
|
|
10
|
+
export type { WorkEditorAgentRequest as EditorAgentRequest } from './internal/features/work/work-agent-request';
|
|
11
|
+
export type { WorkDocumentSelectionCommandFailure as DocumentSelectionCommandFailure, WorkDocumentSelectionCommandResult as DocumentSelectionCommandResult, WorkDocumentSelectionCommands as DocumentSelectionCommands, WorkDocumentSelectionContext as DocumentSelectionContext, WorkDocumentSelectionMenuIcon as DocumentSelectionMenuIcon, WorkDocumentSelectionMenuItem as DocumentSelectionMenuItem, WorkDocumentSelectionSnapshot as DocumentSelectionSnapshot, WorkGetDocumentSelectionMenuItems as GetDocumentSelectionMenuItems, } from './internal/features/work/work-document-selection-menu';
|
|
12
|
+
export type { WorkGetMarkdownSelectionMenuItems as GetMarkdownSelectionMenuItems, WorkMarkdownSelectionCommandFailure as MarkdownSelectionCommandFailure, WorkMarkdownSelectionCommandResult as MarkdownSelectionCommandResult, WorkMarkdownSelectionCommands as MarkdownSelectionCommands, WorkMarkdownSelectionContext as MarkdownSelectionContext, WorkMarkdownSelectionMenuIcon as MarkdownSelectionMenuIcon, WorkMarkdownSelectionMenuItem as MarkdownSelectionMenuItem, WorkMarkdownSelectionSnapshot as MarkdownSelectionSnapshot, } from './internal/features/work/work-markdown-selection-menu';
|
|
13
|
+
export { workArtifactExtension as artifactExtension, workArtifactKindLabel as artifactKindLabel, } from './internal/features/work/work-types';
|
|
14
|
+
export type { WorkArtifact as OfficeArtifact, WorkArtifactContent as OfficeArtifactContent, WorkArtifactKind as OfficeArtifactKind, WorkCompatibilityIssue as CompatibilityIssue, WorkCompatibilityReport as CompatibilityReport, WorkDocumentContent as DocumentContent, WorkMarkdownContent as MarkdownContent, WorkPdfContent as PdfContent, WorkPresentationContent as PresentationContent, WorkSourceFile as SourceFile, WorkSpreadsheetContent as SpreadsheetContent, WorkTemplate as OfficeTemplate, } from './internal/features/work/work-types';
|
|
15
|
+
export * from './internal/features/work/work-types';
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AGENT_PROPOSAL_PROTOCOL, OFFICE_NOTIFICATION_EVENT, createAgentProposalInstruction, createAgentProposalRequest, getAgentProposalStatus, subscribeOfficeNotifications } from "./6489.js";
|
|
2
|
+
export { OFFICE_FILE_ACCEPT, artifactExtension, artifactExtension as workArtifactExtension, artifactKindLabel, artifactKindLabel as workArtifactKindLabel, createArtifactBlob, defaultPptxRuntimeUrl, downloadArtifact, downloadArtifactPdf, forgetSourceBlob, importOfficeFile, officeKindForFile, pdfPagesForExport, readSourceBlob, registerSourceBlob } from "./4104.js";
|
|
3
|
+
export { createArtifact, createOfficeId, officeTemplates } from "./1134.js";
|
|
4
|
+
export { normalizeWorkSpreadsheetBubbleScale, normalizeWorkSpreadsheetBubbleSizeRepresents, normalizeWorkSpreadsheetChartAxisGroup, normalizeWorkSpreadsheetCombinationSeriesType, normalizeWorkSpreadsheetDataLabelPosition, normalizeWorkSpreadsheetDataLabels, normalizeWorkSpreadsheetDoughnutHoleSize, normalizeWorkSpreadsheetErrorBars, normalizeWorkSpreadsheetRadarStyle, normalizeWorkSpreadsheetScatterStyle, normalizeWorkSpreadsheetTrendline, normalizeWorkSpreadsheetTrendlineType, workSpreadsheetChartSupportsAxes, workSpreadsheetChartSupportsErrorBars, workSpreadsheetChartSupportsTrendlines, workSpreadsheetChartTypeLabel, workSpreadsheetChartUsesNumericXAxis, workSpreadsheetCombinationSeriesTypeLabel, workSpreadsheetDataLabelPositionLabel, workSpreadsheetErrorBarTypeLabel, workSpreadsheetErrorBarValueTypeLabel, workSpreadsheetTrendlineTypeLabel } from "./8715.js";
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AGENT_PROPOSAL_PROTOCOL, OFFICE_NOTIFICATION_EVENT, createAgentProposalInstruction, createAgentProposalRequest, getAgentProposalStatus, subscribeOfficeNotifications } from "./6489.js";
|
|
2
|
+
export { DocumentEditor, MarkdownEditor, PdfViewer, PresentationEditor, SpreadsheetEditor, defaultDocumentArabicLayoutFontUrl, defaultDocumentHebrewLayoutFontUrl, defaultDocumentLatinLayoutFontUrl, defaultDocumentLayoutFontUrl, defaultDocumentLayoutFonts, defaultOfficeKernelWasmUrl, defaultPdfiumWasmUrl, preloadOfficeEditor } from "./432.js";
|
|
3
|
+
export { OFFICE_FILE_ACCEPT, artifactExtension, artifactExtension as workArtifactExtension, artifactKindLabel, artifactKindLabel as workArtifactKindLabel, createArtifactBlob, defaultPptxRuntimeUrl, downloadArtifact, downloadArtifactPdf, forgetSourceBlob, importOfficeFile, officeKindForFile, pdfPagesForExport, readSourceBlob, registerSourceBlob } from "./4104.js";
|
|
4
|
+
export { createArtifact, createOfficeId, officeTemplates } from "./1134.js";
|
|
5
|
+
export { normalizeWorkSpreadsheetBubbleScale, normalizeWorkSpreadsheetBubbleSizeRepresents, normalizeWorkSpreadsheetChartAxisGroup, normalizeWorkSpreadsheetCombinationSeriesType, normalizeWorkSpreadsheetDataLabelPosition, normalizeWorkSpreadsheetDataLabels, normalizeWorkSpreadsheetDoughnutHoleSize, normalizeWorkSpreadsheetErrorBars, normalizeWorkSpreadsheetRadarStyle, normalizeWorkSpreadsheetScatterStyle, normalizeWorkSpreadsheetTrendline, normalizeWorkSpreadsheetTrendlineType, workSpreadsheetChartSupportsAxes, workSpreadsheetChartSupportsErrorBars, workSpreadsheetChartSupportsTrendlines, workSpreadsheetChartTypeLabel, workSpreadsheetChartUsesNumericXAxis, workSpreadsheetCombinationSeriesTypeLabel, workSpreadsheetDataLabelPositionLabel, workSpreadsheetErrorBarTypeLabel, workSpreadsheetErrorBarValueTypeLabel, workSpreadsheetTrendlineTypeLabel } from "./8715.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type ButtonTone = 'primary' | 'secondary' | 'quiet' | 'danger';
|
|
3
|
+
export type ButtonSize = 'standard' | 'compact';
|
|
4
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
+
tone?: ButtonTone;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & {
|
|
3
|
+
label: string;
|
|
4
|
+
tooltip?: string;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare function Dialog({ title, description, children, footer, onClose, closeDisabled, className, focusKey, restoreFocusTarget, }: {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
footer?: ReactNode;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
closeDisabled?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
focusKey?: string | number;
|
|
11
|
+
restoreFocusTarget?: () => HTMLElement | null;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function CollectionState({ children, icon, actions, tone, role, className, }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
tone?: 'neutral' | 'info' | 'warning' | 'danger';
|
|
7
|
+
role?: 'alert' | 'status' | 'note';
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function InlineNotice({ title, children, icon, actions, tone, role, className, }: {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
actions?: ReactNode;
|
|
7
|
+
tone?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
8
|
+
role?: 'alert' | 'status' | 'note';
|
|
9
|
+
className?: string;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function StateView({ icon, title, description, descriptionTitle, actions, children, tone, size, role, className, }: {
|
|
3
|
+
icon?: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
descriptionTitle?: string;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
tone?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
10
|
+
size?: 'standard' | 'compact';
|
|
11
|
+
role?: 'alert' | 'status';
|
|
12
|
+
className?: string;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
export type FieldControlProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
'aria-describedby': string | undefined;
|
|
5
|
+
'aria-invalid': boolean | undefined;
|
|
6
|
+
'aria-required': boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
type FieldControlElementProps = Partial<FieldControlProps> & {
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function Field({ label, description, error, required, children, className, }: {
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
error?: ReactNode;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
children: ReactElement<FieldControlElementProps> | ((props: FieldControlProps) => ReactNode);
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Button, type ButtonSize, type ButtonTone } from './button/button';
|
|
2
|
+
export { IconButton } from './button/icon-button';
|
|
3
|
+
export { Dialog } from './dialog/dialog';
|
|
4
|
+
export { CollectionState } from './feedback/collection-state';
|
|
5
|
+
export { InlineNotice } from './feedback/inline-notice';
|
|
6
|
+
export { StateView } from './feedback/state-view';
|
|
7
|
+
export { Field, type FieldControlProps } from './form/field';
|
|
8
|
+
export { SplitHandle } from './layout/split-handle';
|
|
9
|
+
export { type TabNavigationItem, useTabNavigation, } from './navigation/tab-navigation';
|
|
10
|
+
export { SegmentedControl, type SegmentedControlItem, } from './navigation/segmented-control';
|
|
11
|
+
export { type TabItem, Tabs } from './navigation/tabs';
|
|
12
|
+
export { type DialogFocusScopeOptions, useDialogFocusScope, } from './overlay/dialog-focus-scope';
|
|
13
|
+
export { Popover, type PopoverTriggerProps } from './overlay/popover';
|
|
14
|
+
export { StatusBadge } from './status/status-badge';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type SplitOrientation = 'vertical' | 'horizontal';
|
|
2
|
+
export declare function SplitHandle({ label, value, min, max, onChange, onCommit, defaultValue, orientation, direction, step, disabled, valueText, className, }: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
onChange: (value: number) => void;
|
|
8
|
+
onCommit?: (value: number) => void;
|
|
9
|
+
defaultValue?: number;
|
|
10
|
+
orientation?: SplitOrientation;
|
|
11
|
+
direction?: 'normal' | 'reverse';
|
|
12
|
+
step?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
valueText?: (value: number) => string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type SegmentedControlItem<T extends string> = {
|
|
3
|
+
id: T;
|
|
4
|
+
label: string;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function SegmentedControl<T extends string>({ ariaLabel, value, items, onChange, size, layout, disabled, className, }: {
|
|
11
|
+
ariaLabel: string;
|
|
12
|
+
value: T;
|
|
13
|
+
items: readonly SegmentedControlItem<T>[];
|
|
14
|
+
onChange: (value: T) => void;
|
|
15
|
+
size?: 'standard' | 'compact';
|
|
16
|
+
layout?: 'fit' | 'equal';
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type KeyboardEvent } from 'react';
|
|
2
|
+
export type TabNavigationItem<T extends string> = {
|
|
3
|
+
id: T;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function useTabNavigation<T extends string>({ items, onChange, }: {
|
|
7
|
+
items: readonly TabNavigationItem<T>[];
|
|
8
|
+
onChange: (value: T) => void;
|
|
9
|
+
}): {
|
|
10
|
+
getTabElement: (id: T) => HTMLElement | undefined;
|
|
11
|
+
handleTabKeyDown: (event: KeyboardEvent<HTMLElement>, currentId: T) => void;
|
|
12
|
+
setTabElement: (id: T, element: HTMLElement | null) => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
export type TabItem<T extends string> = {
|
|
3
|
+
id: T;
|
|
4
|
+
label: string;
|
|
5
|
+
compactLabel?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
badge?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
tabId?: string;
|
|
10
|
+
panelId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function Tabs<T extends string>({ ariaLabel, value, items, onChange, variant, size, className, containerRef, }: {
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
value: T;
|
|
15
|
+
items: readonly TabItem<T>[];
|
|
16
|
+
onChange: (value: T) => void;
|
|
17
|
+
variant?: 'segment' | 'line';
|
|
18
|
+
size?: 'standard' | 'compact';
|
|
19
|
+
className?: string;
|
|
20
|
+
containerRef?: Ref<HTMLDivElement>;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
2
|
+
export interface DialogFocusScopeOptions {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
onEscape?: () => void;
|
|
5
|
+
escapeDisabled?: boolean;
|
|
6
|
+
passThroughCommandKeys?: readonly string[];
|
|
7
|
+
initialFocus?: () => HTMLElement | null;
|
|
8
|
+
getActiveScope?: () => HTMLElement | null;
|
|
9
|
+
getIsolationExceptions?: () => readonly (HTMLElement | null | undefined)[];
|
|
10
|
+
restoreFocus?: boolean;
|
|
11
|
+
restoreFocusTarget?: () => HTMLElement | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function useDialogFocusScope<T extends HTMLElement>({ active, onEscape, escapeDisabled, passThroughCommandKeys, initialFocus, getActiveScope, getIsolationExceptions, restoreFocus, restoreFocusTarget, }?: DialogFocusScopeOptions): {
|
|
14
|
+
scopeRef: import("react").RefObject<T | null>;
|
|
15
|
+
handleKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
|
|
16
|
+
focusInitial: (scope?: HTMLElement | null) => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type AriaAttributes, type KeyboardEventHandler, type MouseEventHandler, type ReactNode, type Ref, type RefCallback } from 'react';
|
|
2
|
+
export type PopoverTriggerProps = {
|
|
3
|
+
ref: RefCallback<HTMLButtonElement>;
|
|
4
|
+
type: 'button';
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
'aria-label': string;
|
|
7
|
+
'aria-expanded': boolean;
|
|
8
|
+
'aria-controls': string | undefined;
|
|
9
|
+
'aria-haspopup': AriaAttributes['aria-haspopup'];
|
|
10
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
11
|
+
};
|
|
12
|
+
type PopoverContent = ReactNode | ((close: () => void) => ReactNode);
|
|
13
|
+
type PopoverPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
14
|
+
export declare function Popover({ label, panelLabel, trigger, children, disabled, className, panelClassName, panelRole, placement, portal, open: controlledOpen, defaultOpen, panelRef, focusFirstOnOpen, onPanelKeyDown, onOpenChange, }: {
|
|
15
|
+
label: string;
|
|
16
|
+
panelLabel: string;
|
|
17
|
+
trigger: (props: PopoverTriggerProps, state: {
|
|
18
|
+
open: boolean;
|
|
19
|
+
}) => ReactNode;
|
|
20
|
+
children: PopoverContent;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
panelClassName?: string;
|
|
24
|
+
panelRole?: 'region' | 'dialog' | 'menu' | 'listbox';
|
|
25
|
+
placement?: PopoverPlacement;
|
|
26
|
+
portal?: boolean;
|
|
27
|
+
open?: boolean;
|
|
28
|
+
defaultOpen?: boolean;
|
|
29
|
+
panelRef?: Ref<HTMLElement>;
|
|
30
|
+
focusFirstOnOpen?: boolean;
|
|
31
|
+
onPanelKeyDown?: KeyboardEventHandler<HTMLElement>;
|
|
32
|
+
onOpenChange?: (open: boolean) => void;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function officeOverlayPortalRoot(ownerDocument: Document, ...anchors: Array<Element | null | undefined>): HTMLElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WorkspaceContextMenuItem } from '../../workspace/components/workspace-context-menu';
|
|
2
|
+
import { type WorkAgentProposalRequest, type WorkAgentProposalTarget } from '../work-agent-proposal';
|
|
3
|
+
import type { WorkEditorAgentRequest } from '../work-agent-request';
|
|
4
|
+
import type { WorkSpreadsheetAgentSelection } from '../work-spreadsheet-agent-context';
|
|
5
|
+
type WorkEditorAgentHandler = (request: WorkEditorAgentRequest) => void | Promise<void>;
|
|
6
|
+
export declare function spreadsheetAgentMenuItems(selection: WorkSpreadsheetAgentSelection, onAgentRequest: WorkEditorAgentHandler, applyProposal?: WorkAgentProposalRequest['apply']): WorkspaceContextMenuItem[];
|
|
7
|
+
export declare function presentationAgentMenuItems(selection: string, target: 'slide' | 'element', onAgentRequest: WorkEditorAgentHandler, proposalOptions?: {
|
|
8
|
+
rewriteTargets: readonly WorkAgentProposalTarget[];
|
|
9
|
+
notesTarget: WorkAgentProposalTarget;
|
|
10
|
+
apply: WorkAgentProposalRequest['apply'];
|
|
11
|
+
}): WorkspaceContextMenuItem[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkDocumentChange } from '../work-document-changes';
|
|
3
|
+
export declare function DocumentChangesPanel({ editor, changes, trackChanges, onTrackChangesChange, onClose, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
changes: WorkDocumentChange[];
|
|
6
|
+
trackChanges: boolean;
|
|
7
|
+
onTrackChangesChange: (enabled: boolean) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Ref } from 'react';
|
|
2
|
+
export interface CitationSourceDraft {
|
|
3
|
+
id?: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
sourceType: string;
|
|
6
|
+
title: string;
|
|
7
|
+
year: string;
|
|
8
|
+
authors: string;
|
|
9
|
+
corporateAuthor: string;
|
|
10
|
+
publisher: string;
|
|
11
|
+
city: string;
|
|
12
|
+
journalName: string;
|
|
13
|
+
volume: string;
|
|
14
|
+
issue: string;
|
|
15
|
+
pages: string;
|
|
16
|
+
url: string;
|
|
17
|
+
standardNumber: string;
|
|
18
|
+
conferenceName: string;
|
|
19
|
+
institution: string;
|
|
20
|
+
}
|
|
21
|
+
export type CitationSourceValidationField = 'tag' | 'title';
|
|
22
|
+
export declare function DocumentCitationSourceForm({ draft, dirty, error, errorField, tagInputRef, titleInputRef, onDraftChange, onSave, onInsert, onDelete, }: {
|
|
23
|
+
draft: CitationSourceDraft;
|
|
24
|
+
dirty: boolean;
|
|
25
|
+
error: string;
|
|
26
|
+
errorField?: CitationSourceValidationField;
|
|
27
|
+
tagInputRef?: Ref<HTMLInputElement>;
|
|
28
|
+
titleInputRef?: Ref<HTMLInputElement>;
|
|
29
|
+
onDraftChange: (draft: CitationSourceDraft) => void;
|
|
30
|
+
onSave: () => void;
|
|
31
|
+
onInsert: () => void;
|
|
32
|
+
onDelete: () => void;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkDocumentContent } from '../work-types';
|
|
3
|
+
export declare function DocumentCitationsPanel({ editor, content, onClose, onDirtyChange, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
content: WorkDocumentContent;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onDirtyChange?: (dirty: boolean) => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DocumentCommentDraft {
|
|
2
|
+
id: string;
|
|
3
|
+
from: number;
|
|
4
|
+
to: number;
|
|
5
|
+
anchorText: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DocumentCommentComposer: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
draft: DocumentCommentDraft;
|
|
9
|
+
top: number;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
onDirtyChange?: (dirty: boolean) => void;
|
|
12
|
+
onSubmit: (text: string) => string | null;
|
|
13
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import { type RefObject } from 'react';
|
|
3
|
+
import { type WorkDocumentCommentView } from '../work-document-comments';
|
|
4
|
+
import { type DocumentCommentDraft } from './document-comment-composer';
|
|
5
|
+
export declare function DocumentCommentsPanel({ editor, comments, draft, surfaceRef, onReply, onToggleResolved, onDelete, onCancelDraft, onSubmitDraft, onClose, onDirtyChange, }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
comments: WorkDocumentCommentView[];
|
|
8
|
+
draft: DocumentCommentDraft | null;
|
|
9
|
+
surfaceRef: RefObject<HTMLDivElement | null>;
|
|
10
|
+
onReply: (id: string, text: string) => void;
|
|
11
|
+
onToggleResolved: (id: string) => void;
|
|
12
|
+
onDelete: (id: string) => void;
|
|
13
|
+
onCancelDraft: () => void;
|
|
14
|
+
onSubmitDraft: (text: string) => string | null;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
onDirtyChange?: (dirty: boolean) => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function restoreDocumentEditorFocus(getTarget: () => HTMLElement | null): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { documentInitialSectionLayout } from '../work-document-section';
|
|
2
|
+
import type { DocumentPaginationPageDescriptor } from './use-document-pagination';
|
|
3
|
+
export declare function fallbackPaginationPageDescriptor(sectionId: string | undefined, sectionIndex: number | undefined, layout: ReturnType<typeof documentInitialSectionLayout>, physicalPage: number): DocumentPaginationPageDescriptor;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkspaceContextMenuItem } from '../../workspace/components/workspace-context-menu';
|
|
3
|
+
import { type WorkAgentProposalRequest, type WorkAgentProposalTarget } from '../work-agent-proposal';
|
|
4
|
+
import type { WorkEditorAgentRequest } from '../work-agent-request';
|
|
5
|
+
import type { WorkDocumentSelectionAction, WorkDocumentSelectionMenuIcon, WorkDocumentSelectionMenuItem } from '../work-document-selection-menu';
|
|
6
|
+
export declare const MIN_DOCUMENT_ZOOM = 50;
|
|
7
|
+
export declare const MAX_DOCUMENT_ZOOM = 200;
|
|
8
|
+
export declare function documentEditorSelectionText(editor: Pick<Editor, 'state'>): string;
|
|
9
|
+
export declare function documentAgentMenuItems(selection: string, onAgentRequest: (request: WorkEditorAgentRequest) => void | Promise<void>, proposalOptions?: {
|
|
10
|
+
target: WorkAgentProposalTarget;
|
|
11
|
+
apply: WorkAgentProposalRequest['apply'];
|
|
12
|
+
}): WorkspaceContextMenuItem[];
|
|
13
|
+
export declare function documentCustomSelectionMenuItems(items: readonly WorkDocumentSelectionMenuItem[], createAction: () => WorkDocumentSelectionAction): WorkspaceContextMenuItem[];
|
|
14
|
+
interface CustomSelectionAction<Context> {
|
|
15
|
+
context: Context;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
}
|
|
18
|
+
interface CustomSelectionMenuItem<Context> {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
icon?: WorkDocumentSelectionMenuIcon;
|
|
22
|
+
shortcut?: string;
|
|
23
|
+
ariaKeyShortcut?: string;
|
|
24
|
+
danger?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
separatorBefore?: boolean;
|
|
27
|
+
onSelect(context: Context): void | Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export declare function customSelectionMenuItems<Context>(items: readonly CustomSelectionMenuItem<Context>[], createAction: () => CustomSelectionAction<Context>): WorkspaceContextMenuItem[];
|
|
30
|
+
export declare function documentPageCount(editor: Editor): number;
|
|
31
|
+
export declare function documentCurrentPage(editor: Editor): number;
|
|
32
|
+
export declare function documentWordCount(value: string): number;
|
|
33
|
+
export declare function clampDocumentZoom(zoom: number): number;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Extensions } from '@tiptap/core';
|
|
2
|
+
import type { WorkEditorAgentRequest } from '../work-agent-request';
|
|
3
|
+
import type { WorkDocumentLayoutFont } from '../work-document-fonts';
|
|
4
|
+
import type { WorkDocumentContent } from '../work-types';
|
|
5
|
+
import { type WorkOfficeFileAction } from './work-office-chrome';
|
|
6
|
+
import { type WorkGetDocumentSelectionMenuItems } from '../work-document-selection-menu';
|
|
7
|
+
export interface DocumentEditorProps {
|
|
8
|
+
artifactId?: string;
|
|
9
|
+
content: WorkDocumentContent;
|
|
10
|
+
extensions?: Extensions;
|
|
11
|
+
preview: boolean;
|
|
12
|
+
saveStatus?: string;
|
|
13
|
+
kernelWasmUrl?: string;
|
|
14
|
+
layoutFonts?: readonly WorkDocumentLayoutFont[];
|
|
15
|
+
fileActions?: readonly WorkOfficeFileAction[];
|
|
16
|
+
getSelectionMenuItems?: WorkGetDocumentSelectionMenuItems;
|
|
17
|
+
onChange: (content: WorkDocumentContent) => void;
|
|
18
|
+
onAgentRequest?: (request: WorkEditorAgentRequest) => void | Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export declare function DocumentEditor({ artifactId, content, extensions, preview, saveStatus, kernelWasmUrl, layoutFonts, fileActions, getSelectionMenuItems, onChange, onAgentRequest, }: DocumentEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export interface DocumentFindHighlightRange {
|
|
3
|
+
from: number;
|
|
4
|
+
to: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function registerDocumentFindHighlight(editor: Editor): void;
|
|
7
|
+
export declare function updateDocumentFindHighlights(editor: Editor, ranges: readonly DocumentFindHighlightRange[], activeIndex: number): void;
|
|
8
|
+
export declare function unregisterDocumentFindHighlight(editor: Editor): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
export type DocumentFindReplaceMode = 'find' | 'replace';
|
|
3
|
+
export declare function DocumentFindReplacePanel({ editor, mode, focusRequest, onModeChange, onReplaceText, onClose, }: {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
mode: DocumentFindReplaceMode;
|
|
6
|
+
focusRequest?: number;
|
|
7
|
+
onModeChange: (mode: DocumentFindReplaceMode) => void;
|
|
8
|
+
onReplaceText: (from: number, to: number, replacement: string) => boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import { type WorkDocumentLayoutFont } from '../work-document-fonts';
|
|
3
|
+
import type { OfficeSelectOption } from './office-select';
|
|
4
|
+
export declare const documentFontFamilyOptions: readonly OfficeSelectOption[];
|
|
5
|
+
export declare const documentFontSizeOptions: readonly [{
|
|
6
|
+
readonly value: "default";
|
|
7
|
+
readonly label: "10.5";
|
|
8
|
+
}, {
|
|
9
|
+
readonly value: "9pt";
|
|
10
|
+
readonly label: "9";
|
|
11
|
+
}, {
|
|
12
|
+
readonly value: "12pt";
|
|
13
|
+
readonly label: "12";
|
|
14
|
+
}, {
|
|
15
|
+
readonly value: "14pt";
|
|
16
|
+
readonly label: "14";
|
|
17
|
+
}, {
|
|
18
|
+
readonly value: "16pt";
|
|
19
|
+
readonly label: "16";
|
|
20
|
+
}, {
|
|
21
|
+
readonly value: "18pt";
|
|
22
|
+
readonly label: "18";
|
|
23
|
+
}, {
|
|
24
|
+
readonly value: "22pt";
|
|
25
|
+
readonly label: "22";
|
|
26
|
+
}, {
|
|
27
|
+
readonly value: "24pt";
|
|
28
|
+
readonly label: "24";
|
|
29
|
+
}, {
|
|
30
|
+
readonly value: "36pt";
|
|
31
|
+
readonly label: "36";
|
|
32
|
+
}, {
|
|
33
|
+
readonly value: "48pt";
|
|
34
|
+
readonly label: "48";
|
|
35
|
+
}, {
|
|
36
|
+
readonly value: "72pt";
|
|
37
|
+
readonly label: "72";
|
|
38
|
+
}];
|
|
39
|
+
export declare function documentFontFamilyValue(editor: Editor, layoutFonts?: readonly WorkDocumentLayoutFont[]): string;
|
|
40
|
+
export declare function documentFontFamilyOptionsForValue(value: string, layoutFonts?: readonly WorkDocumentLayoutFont[]): readonly OfficeSelectOption<string>[];
|
|
41
|
+
export declare function documentFontSizeValue(editor: Editor): string;
|
|
42
|
+
export declare function documentFontSizeOptionsForValue(value: string): readonly [{
|
|
43
|
+
readonly value: "default";
|
|
44
|
+
readonly label: "10.5";
|
|
45
|
+
}, {
|
|
46
|
+
readonly value: "9pt";
|
|
47
|
+
readonly label: "9";
|
|
48
|
+
}, {
|
|
49
|
+
readonly value: "12pt";
|
|
50
|
+
readonly label: "12";
|
|
51
|
+
}, {
|
|
52
|
+
readonly value: "14pt";
|
|
53
|
+
readonly label: "14";
|
|
54
|
+
}, {
|
|
55
|
+
readonly value: "16pt";
|
|
56
|
+
readonly label: "16";
|
|
57
|
+
}, {
|
|
58
|
+
readonly value: "18pt";
|
|
59
|
+
readonly label: "18";
|
|
60
|
+
}, {
|
|
61
|
+
readonly value: "22pt";
|
|
62
|
+
readonly label: "22";
|
|
63
|
+
}, {
|
|
64
|
+
readonly value: "24pt";
|
|
65
|
+
readonly label: "24";
|
|
66
|
+
}, {
|
|
67
|
+
readonly value: "36pt";
|
|
68
|
+
readonly label: "36";
|
|
69
|
+
}, {
|
|
70
|
+
readonly value: "48pt";
|
|
71
|
+
readonly label: "48";
|
|
72
|
+
}, {
|
|
73
|
+
readonly value: "72pt";
|
|
74
|
+
readonly label: "72";
|
|
75
|
+
}] | ({
|
|
76
|
+
readonly value: "default";
|
|
77
|
+
readonly label: "10.5";
|
|
78
|
+
} | {
|
|
79
|
+
readonly value: "9pt";
|
|
80
|
+
readonly label: "9";
|
|
81
|
+
} | {
|
|
82
|
+
readonly value: "12pt";
|
|
83
|
+
readonly label: "12";
|
|
84
|
+
} | {
|
|
85
|
+
readonly value: "14pt";
|
|
86
|
+
readonly label: "14";
|
|
87
|
+
} | {
|
|
88
|
+
readonly value: "16pt";
|
|
89
|
+
readonly label: "16";
|
|
90
|
+
} | {
|
|
91
|
+
readonly value: "18pt";
|
|
92
|
+
readonly label: "18";
|
|
93
|
+
} | {
|
|
94
|
+
readonly value: "22pt";
|
|
95
|
+
readonly label: "22";
|
|
96
|
+
} | {
|
|
97
|
+
readonly value: "24pt";
|
|
98
|
+
readonly label: "24";
|
|
99
|
+
} | {
|
|
100
|
+
readonly value: "36pt";
|
|
101
|
+
readonly label: "36";
|
|
102
|
+
} | {
|
|
103
|
+
readonly value: "48pt";
|
|
104
|
+
readonly label: "48";
|
|
105
|
+
} | {
|
|
106
|
+
readonly value: "72pt";
|
|
107
|
+
readonly label: "72";
|
|
108
|
+
} | {
|
|
109
|
+
value: string;
|
|
110
|
+
label: string;
|
|
111
|
+
})[];
|
|
112
|
+
export declare function changeDocumentFontSize(editor: Editor, direction: -1 | 1): boolean;
|
|
113
|
+
export declare function canChangeDocumentFontSize(editor: Editor, direction: -1 | 1): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { WorkDocumentLayoutFont } from '../work-document-fonts';
|
|
3
|
+
import type { DocumentFindReplaceMode } from './document-find-replace-panel';
|
|
4
|
+
export declare function DocumentHomeRibbon({ editor, findReplaceMode, layoutFonts, onFindText, }: {
|
|
5
|
+
editor: Editor;
|
|
6
|
+
findReplaceMode: DocumentFindReplaceMode | null;
|
|
7
|
+
layoutFonts?: readonly WorkDocumentLayoutFont[];
|
|
8
|
+
onFindText: (replace: boolean) => void;
|
|
9
|
+
}): import("react").JSX.Element | null;
|