@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,3 @@
|
|
|
1
|
+
import type { WorkSlideChart } from '../work-types';
|
|
2
|
+
import { type PresentationChartRect } from './presentation-chart-axis-canvas';
|
|
3
|
+
export declare function drawPresentationCartesianChart(context: CanvasRenderingContext2D, chart: WorkSlideChart, sourceRect: PresentationChartRect): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkSlideChartDataLabels, WorkSlideChartType } from '../work-types';
|
|
2
|
+
export declare function PresentationChartDataLabelEditor({ chartType, value, onChange, }: {
|
|
3
|
+
chartType: WorkSlideChartType;
|
|
4
|
+
value?: WorkSlideChartDataLabels;
|
|
5
|
+
onChange: (value: WorkSlideChartDataLabels | undefined) => void;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { WorkSlideChart } from '../work-types';
|
|
2
|
+
export type PresentationChartDataLabelGeometry = {
|
|
3
|
+
kind: 'point';
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'verticalBar';
|
|
8
|
+
x: number;
|
|
9
|
+
valueY: number;
|
|
10
|
+
baselineY: number;
|
|
11
|
+
value: number;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'horizontalBar';
|
|
14
|
+
y: number;
|
|
15
|
+
valueX: number;
|
|
16
|
+
baselineX: number;
|
|
17
|
+
value: number;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'circular';
|
|
20
|
+
centerX: number;
|
|
21
|
+
centerY: number;
|
|
22
|
+
angle: number;
|
|
23
|
+
innerRadius: number;
|
|
24
|
+
outerRadius: number;
|
|
25
|
+
};
|
|
26
|
+
export declare function drawPresentationChartDataLabel(context: CanvasRenderingContext2D, chart: WorkSlideChart, seriesIndex: number, pointIndex: number, geometry: PresentationChartDataLabelGeometry): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorkSlideChart, WorkSlideChartLegendPosition } from '../work-types';
|
|
2
|
+
import type { PresentationChartRect } from './presentation-chart-axis-canvas';
|
|
3
|
+
interface PresentationChartLegendItem {
|
|
4
|
+
color: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PRESENTATION_CHART_COLORS: string[];
|
|
8
|
+
export declare function presentationChartCanvasLayout(chart: WorkSlideChart, content: PresentationChartRect, hasLegendItems: boolean): {
|
|
9
|
+
plot: PresentationChartRect;
|
|
10
|
+
legend?: PresentationChartRect;
|
|
11
|
+
legendPosition: WorkSlideChartLegendPosition;
|
|
12
|
+
};
|
|
13
|
+
export declare function presentationChartLegendItems(chart: WorkSlideChart): PresentationChartLegendItem[];
|
|
14
|
+
export declare function drawPresentationChartLegend(context: CanvasRenderingContext2D, items: PresentationChartLegendItem[], rect: PresentationChartRect, position: WorkSlideChartLegendPosition): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkSlideChart } from '../work-types';
|
|
2
|
+
export declare function PresentationChartPanel({ chart, onChange, onDelete, onClose, }: {
|
|
3
|
+
chart: WorkSlideChart;
|
|
4
|
+
onChange: (chart: WorkSlideChart) => void;
|
|
5
|
+
onDelete: () => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type WorkSlideChart } from '../work-types';
|
|
2
|
+
export declare function PresentationChartSeriesAnalysisEditor({ chart, seriesIndex, onChange, }: {
|
|
3
|
+
chart: WorkSlideChart;
|
|
4
|
+
seriesIndex: number;
|
|
5
|
+
onChange: (chart: WorkSlideChart) => void;
|
|
6
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorkSlideChartSeries, WorkSpreadsheetChartLineDash } from '../work-types';
|
|
2
|
+
export interface PresentationChartSeriesFill {
|
|
3
|
+
color: string;
|
|
4
|
+
opacity: number;
|
|
5
|
+
}
|
|
6
|
+
export interface PresentationChartSeriesLine {
|
|
7
|
+
color: string;
|
|
8
|
+
width: number;
|
|
9
|
+
dash: WorkSpreadsheetChartLineDash;
|
|
10
|
+
}
|
|
11
|
+
export declare function presentationChartSeriesFill(series: WorkSlideChartSeries, seriesIndex: number, defaultOpacity?: number, defaultColor?: string): PresentationChartSeriesFill;
|
|
12
|
+
export declare function presentationChartSeriesLine(series: WorkSlideChartSeries, seriesIndex: number, defaultWidth: number, defaultColor?: string): PresentationChartSeriesLine;
|
|
13
|
+
export declare function fillPresentationChartShape(context: CanvasRenderingContext2D, fill: PresentationChartSeriesFill, draw: () => void): void;
|
|
14
|
+
export declare function strokePresentationChartPath(context: CanvasRenderingContext2D, line: PresentationChartSeriesLine): void;
|
|
15
|
+
export declare function drawPresentationChartMarker(context: CanvasRenderingContext2D, series: WorkSlideChartSeries, seriesIndex: number, x: number, y: number, defaultVisible: boolean, defaultColor?: string): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type OfficeEditorExtension } from './office-editor-extension';
|
|
2
|
+
import type { PresentationCommandContext, PresentationEditorCommands } from './presentation-command-types';
|
|
3
|
+
export declare function createPresentationEditorExtensions(): readonly OfficeEditorExtension<PresentationCommandContext, PresentationEditorCommands>[];
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import type { OfficeKernelPresentationAlignment } from '../../../kernel/office-kernel-protocol';
|
|
2
|
+
import type { WorkPresentationContent, WorkSlideElement, WorkSlideTransition, WorkSlideTextRun } from '../work-types';
|
|
3
|
+
import type { OfficeEditorCanCommands } from './office-editor-extension';
|
|
4
|
+
import type { PresentationDesignMode } from './presentation-editor-types';
|
|
5
|
+
import type { PresentationDistribution } from './presentation-selection';
|
|
6
|
+
import type { OfficeTableDimensions } from './office-table-dimensions';
|
|
7
|
+
export type PresentationViewMode = 'normal' | 'sorter';
|
|
8
|
+
export type PresentationSlideshowStart = 'beginning' | 'current';
|
|
9
|
+
export type PresentationCommandResult = boolean | void | Promise<void>;
|
|
10
|
+
export interface PresentationEditorCommands {
|
|
11
|
+
addDesignPlaceholder: (type: 'body' | 'title') => PresentationCommandResult;
|
|
12
|
+
addChart: () => PresentationCommandResult;
|
|
13
|
+
addComment: () => PresentationCommandResult;
|
|
14
|
+
addElement: (type: 'shape' | 'text') => PresentationCommandResult;
|
|
15
|
+
addImage: (file: File) => PresentationCommandResult;
|
|
16
|
+
addSlide: () => PresentationCommandResult;
|
|
17
|
+
addTable: (dimensions: OfficeTableDimensions) => PresentationCommandResult;
|
|
18
|
+
alignElement: (alignment: OfficeKernelPresentationAlignment) => PresentationCommandResult;
|
|
19
|
+
applyTransitionToAll: (transition: WorkSlideTransition | undefined) => PresentationCommandResult;
|
|
20
|
+
applyPresentationLayout: (layoutId: string) => PresentationCommandResult;
|
|
21
|
+
closeComments: () => PresentationCommandResult;
|
|
22
|
+
closeDesign: () => PresentationCommandResult;
|
|
23
|
+
copySelection: () => boolean;
|
|
24
|
+
createPresentationLayout: (copyCurrent: boolean) => PresentationCommandResult;
|
|
25
|
+
cutSelection: () => boolean;
|
|
26
|
+
deletePresentationComment: (slideId: string, commentId: string) => PresentationCommandResult;
|
|
27
|
+
deletePresentationLayout: () => PresentationCommandResult;
|
|
28
|
+
deleteSelection: () => boolean;
|
|
29
|
+
deleteSlide: () => PresentationCommandResult;
|
|
30
|
+
deleteSlideById: (slideId: string) => boolean;
|
|
31
|
+
distributeElements: (direction: PresentationDistribution) => PresentationCommandResult;
|
|
32
|
+
duplicateSelection: () => boolean;
|
|
33
|
+
duplicateSlide: () => PresentationCommandResult;
|
|
34
|
+
editDesign: (mode: PresentationDesignMode) => PresentationCommandResult;
|
|
35
|
+
editElement: (id: string) => void;
|
|
36
|
+
exitEditing: () => void;
|
|
37
|
+
groupElements: () => boolean;
|
|
38
|
+
instantiatePlaceholder: (definition: WorkSlideElement) => PresentationCommandResult;
|
|
39
|
+
locatePresentationComment: (slideId: string, commentId: string) => PresentationCommandResult;
|
|
40
|
+
nudgeSelection: (key: string, distance: number) => boolean;
|
|
41
|
+
openComment: (commentId: string) => PresentationCommandResult;
|
|
42
|
+
pasteSelection: () => boolean;
|
|
43
|
+
redo: () => boolean;
|
|
44
|
+
renamePresentationLayout: (name: string) => PresentationCommandResult;
|
|
45
|
+
renamePresentationMaster: (name: string) => PresentationCommandResult;
|
|
46
|
+
reorderElement: (direction: -1 | 1) => PresentationCommandResult;
|
|
47
|
+
requestImage: () => PresentationCommandResult;
|
|
48
|
+
selectElement: (elementId: string | null, additive?: boolean) => PresentationCommandResult;
|
|
49
|
+
selectElements: (ids: readonly string[]) => void;
|
|
50
|
+
selectSlide: (slideId: string, returnToSlideMode?: boolean) => PresentationCommandResult;
|
|
51
|
+
setPresentationContent: (content: WorkPresentationContent) => PresentationCommandResult;
|
|
52
|
+
setBackground: (color: string) => PresentationCommandResult;
|
|
53
|
+
setPresentationLayoutBackground: (color: string | undefined) => PresentationCommandResult;
|
|
54
|
+
setPresentationMasterBackground: (color: string) => PresentationCommandResult;
|
|
55
|
+
setTransition: (transition: WorkSlideTransition | undefined) => PresentationCommandResult;
|
|
56
|
+
setViewMode: (mode: PresentationViewMode) => PresentationCommandResult;
|
|
57
|
+
startSlideshow: (source: PresentationSlideshowStart) => PresentationCommandResult;
|
|
58
|
+
toggleBold: () => boolean;
|
|
59
|
+
toggleItalic: () => boolean;
|
|
60
|
+
toggleUnderline: () => boolean;
|
|
61
|
+
toggleComments: () => PresentationCommandResult;
|
|
62
|
+
toggleDesign: () => PresentationCommandResult;
|
|
63
|
+
togglePresentationLayoutBackground: (enabled: boolean) => PresentationCommandResult;
|
|
64
|
+
undo: () => boolean;
|
|
65
|
+
ungroupElements: () => boolean;
|
|
66
|
+
updateElement: (patch: Partial<WorkSlideElement>, options?: {
|
|
67
|
+
restoreTextFocus?: boolean;
|
|
68
|
+
}) => PresentationCommandResult;
|
|
69
|
+
updateNotes: (notes: string) => PresentationCommandResult;
|
|
70
|
+
updatePresentationComment: (slideId: string, commentId: string, text: string) => PresentationCommandResult;
|
|
71
|
+
updateTextElement: (elementId: string, value: {
|
|
72
|
+
text: string;
|
|
73
|
+
textRuns?: WorkSlideTextRun[];
|
|
74
|
+
}) => PresentationCommandResult;
|
|
75
|
+
}
|
|
76
|
+
export type PresentationEditorCanCommands = OfficeEditorCanCommands<PresentationEditorCommands>;
|
|
77
|
+
export interface PresentationHistoryCommandPort {
|
|
78
|
+
canRedo: boolean;
|
|
79
|
+
canUndo: boolean;
|
|
80
|
+
redo: () => boolean;
|
|
81
|
+
undo: () => boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface PresentationDocumentCommandPort {
|
|
84
|
+
setContent: (content: WorkPresentationContent) => PresentationCommandResult;
|
|
85
|
+
}
|
|
86
|
+
export interface PresentationClipboardCommandPort {
|
|
87
|
+
canCopySelection: boolean;
|
|
88
|
+
canCutSelection: boolean;
|
|
89
|
+
canPasteSelection: boolean;
|
|
90
|
+
copySelection: () => boolean;
|
|
91
|
+
cutSelection: () => boolean;
|
|
92
|
+
pasteSelection: () => boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface PresentationSlideCommandPort {
|
|
95
|
+
canAddSlide: boolean;
|
|
96
|
+
canApplyTransitionToAll: (transition: WorkSlideTransition | undefined) => boolean;
|
|
97
|
+
canDeleteSlide: boolean;
|
|
98
|
+
canDuplicateSlide: boolean;
|
|
99
|
+
canSetTransition: boolean;
|
|
100
|
+
addSlide: () => PresentationCommandResult;
|
|
101
|
+
applyTransitionToAll: (transition: WorkSlideTransition | undefined) => PresentationCommandResult;
|
|
102
|
+
deleteSlide: () => PresentationCommandResult;
|
|
103
|
+
deleteSlideById: (slideId: string) => boolean;
|
|
104
|
+
duplicateSlide: () => PresentationCommandResult;
|
|
105
|
+
selectSlide: (slideId: string, returnToSlideMode: boolean) => PresentationCommandResult;
|
|
106
|
+
setBackground: (color: string) => PresentationCommandResult;
|
|
107
|
+
setTransition: (transition: WorkSlideTransition | undefined) => PresentationCommandResult;
|
|
108
|
+
updateNotes: (notes: string) => PresentationCommandResult;
|
|
109
|
+
}
|
|
110
|
+
export interface PresentationInsertCommandPort {
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
addChart: () => PresentationCommandResult;
|
|
113
|
+
addElement: (type: 'shape' | 'text') => PresentationCommandResult;
|
|
114
|
+
addImage: (file: File) => PresentationCommandResult;
|
|
115
|
+
addTable: (dimensions: OfficeTableDimensions) => PresentationCommandResult;
|
|
116
|
+
instantiatePlaceholder: (definition: WorkSlideElement) => PresentationCommandResult;
|
|
117
|
+
requestImage: () => PresentationCommandResult;
|
|
118
|
+
}
|
|
119
|
+
export interface PresentationDesignCommandPort {
|
|
120
|
+
addPlaceholder: (type: 'body' | 'title') => PresentationCommandResult;
|
|
121
|
+
applyLayout: (layoutId: string) => PresentationCommandResult;
|
|
122
|
+
canDeleteLayout: boolean;
|
|
123
|
+
close: () => PresentationCommandResult;
|
|
124
|
+
createLayout: (copyCurrent: boolean) => PresentationCommandResult;
|
|
125
|
+
deleteLayout: () => PresentationCommandResult;
|
|
126
|
+
edit: (mode: PresentationDesignMode) => PresentationCommandResult;
|
|
127
|
+
renameLayout: (name: string) => PresentationCommandResult;
|
|
128
|
+
renameMaster: (name: string) => PresentationCommandResult;
|
|
129
|
+
setLayoutBackground: (color: string | undefined) => PresentationCommandResult;
|
|
130
|
+
setMasterBackground: (color: string) => PresentationCommandResult;
|
|
131
|
+
toggleLayoutBackground: (enabled: boolean) => PresentationCommandResult;
|
|
132
|
+
}
|
|
133
|
+
export interface PresentationElementCommandPort {
|
|
134
|
+
canAlignElement: boolean;
|
|
135
|
+
canDistributeElements: boolean;
|
|
136
|
+
canGroupElements: boolean;
|
|
137
|
+
canReorderElement: boolean;
|
|
138
|
+
canUngroupElements: boolean;
|
|
139
|
+
canUpdateElement: boolean;
|
|
140
|
+
alignElement: (alignment: OfficeKernelPresentationAlignment) => PresentationCommandResult;
|
|
141
|
+
distributeElements: (direction: PresentationDistribution) => PresentationCommandResult;
|
|
142
|
+
groupElements: () => boolean;
|
|
143
|
+
reorderElement: (direction: -1 | 1) => PresentationCommandResult;
|
|
144
|
+
ungroupElements: () => boolean;
|
|
145
|
+
updateElement: (patch: Partial<WorkSlideElement>, options: {
|
|
146
|
+
restoreTextFocus?: boolean;
|
|
147
|
+
}) => PresentationCommandResult;
|
|
148
|
+
updateTextElement: (elementId: string, value: {
|
|
149
|
+
text: string;
|
|
150
|
+
textRuns?: WorkSlideTextRun[];
|
|
151
|
+
}) => PresentationCommandResult;
|
|
152
|
+
}
|
|
153
|
+
export interface PresentationSelectionCommandPort {
|
|
154
|
+
canDeleteSelection: boolean;
|
|
155
|
+
canDuplicateSelection: boolean;
|
|
156
|
+
canEditElement: (id: string) => boolean;
|
|
157
|
+
canExitEditing: boolean;
|
|
158
|
+
canNudgeSelection: boolean;
|
|
159
|
+
canToggleBold: boolean;
|
|
160
|
+
canToggleItalic: boolean;
|
|
161
|
+
canToggleUnderline: boolean;
|
|
162
|
+
deleteSelection: () => boolean;
|
|
163
|
+
duplicateSelection: () => boolean;
|
|
164
|
+
editElement: (id: string) => void;
|
|
165
|
+
exitEditing: () => void;
|
|
166
|
+
nudgeSelection: (key: string, distance: number) => boolean;
|
|
167
|
+
selectElement: (elementId: string | null, additive: boolean) => void;
|
|
168
|
+
selectElements: (ids: readonly string[]) => void;
|
|
169
|
+
toggleBold: () => boolean;
|
|
170
|
+
toggleItalic: () => boolean;
|
|
171
|
+
toggleUnderline: () => boolean;
|
|
172
|
+
}
|
|
173
|
+
export interface PresentationReviewCommandPort {
|
|
174
|
+
canAddComment: boolean;
|
|
175
|
+
addComment: () => PresentationCommandResult;
|
|
176
|
+
closeComments: () => PresentationCommandResult;
|
|
177
|
+
deleteComment: (slideId: string, commentId: string) => PresentationCommandResult;
|
|
178
|
+
locateComment: (slideId: string, commentId: string) => PresentationCommandResult;
|
|
179
|
+
openComment: (commentId: string) => PresentationCommandResult;
|
|
180
|
+
toggleComments: () => PresentationCommandResult;
|
|
181
|
+
updateComment: (slideId: string, commentId: string, text: string) => PresentationCommandResult;
|
|
182
|
+
}
|
|
183
|
+
export interface PresentationViewCommandPort {
|
|
184
|
+
canStartSlideshow: boolean;
|
|
185
|
+
setViewMode: (mode: PresentationViewMode) => PresentationCommandResult;
|
|
186
|
+
startSlideshow: (source: PresentationSlideshowStart) => PresentationCommandResult;
|
|
187
|
+
toggleDesign: () => PresentationCommandResult;
|
|
188
|
+
}
|
|
189
|
+
export interface PresentationKeyboardCommandPort {
|
|
190
|
+
editingElementId: string | null;
|
|
191
|
+
selectedElement: WorkSlideElement | null;
|
|
192
|
+
selectedElementCount: number;
|
|
193
|
+
}
|
|
194
|
+
export interface PresentationCommandContext {
|
|
195
|
+
clipboard: PresentationClipboardCommandPort;
|
|
196
|
+
design: PresentationDesignCommandPort;
|
|
197
|
+
document: PresentationDocumentCommandPort;
|
|
198
|
+
elements: PresentationElementCommandPort;
|
|
199
|
+
history: PresentationHistoryCommandPort;
|
|
200
|
+
insert: PresentationInsertCommandPort;
|
|
201
|
+
keyboard: PresentationKeyboardCommandPort;
|
|
202
|
+
review: PresentationReviewCommandPort;
|
|
203
|
+
selection: PresentationSelectionCommandPort;
|
|
204
|
+
slides: PresentationSlideCommandPort;
|
|
205
|
+
view: PresentationViewCommandPort;
|
|
206
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkSlide } from '../work-types';
|
|
2
|
+
import type { PresentationEditorCommands } from './presentation-command-types';
|
|
3
|
+
export type PresentationCommentsPanelCommands = Pick<PresentationEditorCommands, 'closeComments' | 'deletePresentationComment' | 'locatePresentationComment' | 'updatePresentationComment'>;
|
|
4
|
+
export declare function PresentationCommentsPanel({ slides, activeCommentId, commands, }: {
|
|
5
|
+
slides: WorkSlide[];
|
|
6
|
+
activeCommentId: string | null;
|
|
7
|
+
commands: PresentationCommentsPanelCommands;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function presentationCommentCount(slides: readonly WorkSlide[]): number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WorkspaceContextMenuItem } from '../../workspace/components/workspace-context-menu';
|
|
2
|
+
import type { PresentationEditorCanCommands, PresentationEditorCommands } from './presentation-command-types';
|
|
3
|
+
type PresentationContextCan = Pick<PresentationEditorCanCommands, 'addSlide' | 'copySelection' | 'cutSelection' | 'deleteSelection' | 'deleteSlide' | 'duplicateSelection' | 'duplicateSlide' | 'pasteSelection'>;
|
|
4
|
+
type PresentationContextCommands = Pick<PresentationEditorCommands, 'addSlide' | 'copySelection' | 'cutSelection' | 'deleteSelection' | 'deleteSlideById' | 'duplicateSelection' | 'duplicateSlide' | 'pasteSelection'>;
|
|
5
|
+
export declare function presentationCoreContextMenuItems({ can, commands, slideId, target, }: {
|
|
6
|
+
can: PresentationContextCan;
|
|
7
|
+
commands: PresentationContextCommands;
|
|
8
|
+
slideId: string;
|
|
9
|
+
target: 'slide' | 'element';
|
|
10
|
+
}): WorkspaceContextMenuItem[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WorkPresentationContent, WorkPresentationLayout, WorkPresentationMaster, WorkSlide } from '../work-types';
|
|
2
|
+
import type { PresentationEditorCanCommands, PresentationEditorCommands } from './presentation-command-types';
|
|
3
|
+
import type { PresentationDesignMode } from './presentation-editor-types';
|
|
4
|
+
export type PresentationDesignPanelCommands = Pick<PresentationEditorCommands, 'addDesignPlaceholder' | 'applyPresentationLayout' | 'closeDesign' | 'createPresentationLayout' | 'deletePresentationLayout' | 'editDesign' | 'renamePresentationLayout' | 'renamePresentationMaster' | 'setPresentationLayoutBackground' | 'setPresentationMasterBackground' | 'togglePresentationLayoutBackground'>;
|
|
5
|
+
export declare function PresentationDesignPanel({ can, commands, content, slide, layout, master, mode, }: {
|
|
6
|
+
can: Pick<PresentationEditorCanCommands, 'deletePresentationLayout'>;
|
|
7
|
+
commands: PresentationDesignPanelCommands;
|
|
8
|
+
content: WorkPresentationContent;
|
|
9
|
+
slide: WorkSlide;
|
|
10
|
+
layout: WorkPresentationLayout;
|
|
11
|
+
master: WorkPresentationMaster;
|
|
12
|
+
mode: PresentationDesignMode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PresentationEditorCommands } from './presentation-command-types';
|
|
2
|
+
export interface PresentationObjectFocusState {
|
|
3
|
+
editingElementId: string | null;
|
|
4
|
+
selectedElementIds: readonly string[];
|
|
5
|
+
}
|
|
6
|
+
export interface PresentationWorkspaceFocusState extends PresentationObjectFocusState {
|
|
7
|
+
selectedSlideId: string;
|
|
8
|
+
viewMode: 'normal' | 'sorter';
|
|
9
|
+
}
|
|
10
|
+
export declare function restorePresentationObjectFocus(container: HTMLElement | null, getState: () => PresentationObjectFocusState): void;
|
|
11
|
+
export declare function restorePresentationWorkspaceFocus(root: HTMLElement | null, getState: () => PresentationWorkspaceFocusState): void;
|
|
12
|
+
export declare function presentationCommandsWithObjectFocus(commands: PresentationEditorCommands, restoreFocus: () => void): PresentationEditorCommands;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkPresentationContent, WorkSlide, WorkSlideElement } from '../work-types';
|
|
2
|
+
import type { PresentationDesignMode } from './presentation-editor-types';
|
|
3
|
+
export declare function updatePresentationElements(content: WorkPresentationContent, mode: PresentationDesignMode, targetId: string, update: (elements: WorkSlideElement[]) => WorkSlideElement[], onChange: (content: WorkPresentationContent) => void): void;
|
|
4
|
+
export declare function updateSlide(content: WorkPresentationContent, slideId: string, update: (slide: WorkSlide) => WorkSlide, onChange: (content: WorkPresentationContent) => void): void;
|
|
5
|
+
export declare function newSlide(number: number): WorkSlide;
|
|
6
|
+
export declare function newPresentationElement(type: 'shape' | 'text'): WorkSlideElement;
|
|
7
|
+
export declare function newPresentationTableElement(requestedRows?: number, requestedColumns?: number): WorkSlideElement;
|
|
8
|
+
export declare function newPresentationImageElement(file: File): Promise<WorkSlideElement>;
|
|
9
|
+
export declare function clamp(value: number, minimum: number, maximum: number): number;
|
|
10
|
+
export declare function structuredCopy<T>(value: T): T;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { WorkEditorAgentRequest } from '../work-agent-request';
|
|
2
|
+
import type { WorkPresentationContent } from '../work-types';
|
|
3
|
+
import type { WorkOfficeFileAction } from './work-office-chrome';
|
|
4
|
+
export type PresentationDesignMode = 'slide' | 'layout' | 'master';
|
|
5
|
+
export interface PresentationEditorProps {
|
|
6
|
+
content: WorkPresentationContent;
|
|
7
|
+
preview: boolean;
|
|
8
|
+
saveStatus?: string;
|
|
9
|
+
fileActions?: readonly WorkOfficeFileAction[];
|
|
10
|
+
kernelWasmUrl?: string;
|
|
11
|
+
onChange: (content: WorkPresentationContent) => void;
|
|
12
|
+
onAgentRequest?: (request: WorkEditorAgentRequest) => void | Promise<void>;
|
|
13
|
+
onStartSlideshow?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface PresentationAgentMenuState {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
selection: string;
|
|
19
|
+
target: 'slide' | 'element';
|
|
20
|
+
slideId: string;
|
|
21
|
+
elementId: string | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type OfficeEditorExtension } from './office-editor-extension';
|
|
2
|
+
import type { PresentationCommandContext, PresentationEditorCommands } from './presentation-command-types';
|
|
3
|
+
export declare function createPresentationKeyboardExtension(): OfficeEditorExtension<PresentationCommandContext, PresentationEditorCommands>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkPresentationContent } from '../work-types';
|
|
2
|
+
export declare function PresentationPlayer({ autoFullscreen, content, initialIndex, onExit, }: {
|
|
3
|
+
autoFullscreen?: boolean;
|
|
4
|
+
content: WorkPresentationContent;
|
|
5
|
+
initialIndex?: number;
|
|
6
|
+
onExit?: () => void;
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorkPresentationContent, WorkSlide } from '../work-types';
|
|
2
|
+
export interface PresentationTimerController {
|
|
3
|
+
elapsedMilliseconds: number;
|
|
4
|
+
runningSinceMilliseconds: number | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function createPresentationTimerController(now?: number): PresentationTimerController;
|
|
7
|
+
export declare function PresentationPresenterView({ content, slide, nextSlide, index, total, aspectRatio, timer, }: {
|
|
8
|
+
content: WorkPresentationContent;
|
|
9
|
+
slide: WorkSlide;
|
|
10
|
+
nextSlide?: WorkSlide;
|
|
11
|
+
index: number;
|
|
12
|
+
total: number;
|
|
13
|
+
aspectRatio: string;
|
|
14
|
+
timer: PresentationTimerController;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OfficeKernelPresentationAlignment } from '../../../kernel/office-kernel-protocol';
|
|
2
|
+
import type { WorkSlideElement } from '../work-types';
|
|
3
|
+
export type PresentationDistribution = 'horizontal' | 'vertical';
|
|
4
|
+
export interface PresentationSelectionBounds {
|
|
5
|
+
bottom: number;
|
|
6
|
+
height: number;
|
|
7
|
+
left: number;
|
|
8
|
+
right: number;
|
|
9
|
+
top: number;
|
|
10
|
+
width: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function selectPresentationElement(selectedIds: readonly string[], elementId: string, additive: boolean): string[];
|
|
13
|
+
export declare function selectPresentationElementUnit(elements: readonly WorkSlideElement[], selectedIds: readonly string[], elementId: string, additive: boolean): string[];
|
|
14
|
+
export declare function selectedPresentationElements(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): WorkSlideElement[];
|
|
15
|
+
export declare function presentationSelectionBounds(elements: readonly WorkSlideElement[]): PresentationSelectionBounds | null;
|
|
16
|
+
export declare function translatePresentationSelection(elements: readonly WorkSlideElement[], selectedIds: readonly string[], deltaX: number, deltaY: number): WorkSlideElement[];
|
|
17
|
+
export declare function alignPresentationSelection(elements: readonly WorkSlideElement[], selectedIds: readonly string[], alignment: OfficeKernelPresentationAlignment): WorkSlideElement[];
|
|
18
|
+
export declare function distributePresentationSelection(elements: readonly WorkSlideElement[], selectedIds: readonly string[], direction: PresentationDistribution): WorkSlideElement[];
|
|
19
|
+
export declare function reorderPresentationSelection(elements: readonly WorkSlideElement[], selectedIds: readonly string[], direction: -1 | 1): WorkSlideElement[];
|
|
20
|
+
export declare function presentationElementCanEditContent(element: WorkSlideElement): boolean;
|
|
21
|
+
export declare function presentationElementSupportsTextFormatting(element: WorkSlideElement): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { WorkPresentationContent, WorkSlide, WorkSlideElement } from '../work-types';
|
|
2
|
+
export declare function SlideCanvas({ content, slide, interactive, aspectRatio, showPlaceholders, }: {
|
|
3
|
+
content?: WorkPresentationContent;
|
|
4
|
+
slide: WorkSlide;
|
|
5
|
+
interactive: boolean;
|
|
6
|
+
aspectRatio: string;
|
|
7
|
+
showPlaceholders?: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function SlideElementPreview({ element, origin, showPlaceholder, }: {
|
|
10
|
+
element: WorkSlideElement;
|
|
11
|
+
origin: 'inherited' | 'slide';
|
|
12
|
+
showPlaceholder?: boolean;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
export declare function EditableSlideTable({ element, onChange, }: {
|
|
15
|
+
element: WorkSlideElement;
|
|
16
|
+
onChange: (rows: string[][]) => void;
|
|
17
|
+
}): import("react").JSX.Element | null;
|
|
18
|
+
export declare function slideElementStyle(element: WorkSlideElement): React.CSSProperties;
|
|
19
|
+
export declare function slideTextStyle(element: WorkSlideElement): React.CSSProperties;
|
|
20
|
+
export declare function SlideElementTextPreview({ element, showPlaceholder, }: {
|
|
21
|
+
element: WorkSlideElement;
|
|
22
|
+
showPlaceholder?: boolean;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
export declare function SlideTablePreview({ element }: {
|
|
25
|
+
element: WorkSlideElement;
|
|
26
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WorkspaceContextMenuEvent } from '../../workspace/components/workspace-context-menu';
|
|
2
|
+
import type { WorkPresentationContent, WorkSlide } from '../work-types';
|
|
3
|
+
export declare function PresentationSlideThumbnail({ content, slide, index, selected, slideCount, aspectRatio, variant, renderPreview, onFocus, onSelect, onDelete, onNavigate, onContextMenu, onDoubleClick, }: {
|
|
4
|
+
content: WorkPresentationContent;
|
|
5
|
+
slide: WorkSlide;
|
|
6
|
+
index: number;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
slideCount: number;
|
|
9
|
+
aspectRatio: string;
|
|
10
|
+
variant: 'strip' | 'sorter';
|
|
11
|
+
renderPreview: boolean;
|
|
12
|
+
onFocus: () => void;
|
|
13
|
+
onSelect: () => void;
|
|
14
|
+
onDelete: () => boolean;
|
|
15
|
+
onNavigate: (index: number) => void;
|
|
16
|
+
onContextMenu?: (event: WorkspaceContextMenuEvent<HTMLButtonElement>) => void;
|
|
17
|
+
onDoubleClick?: () => void;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkPresentationContent, WorkSlide } from '../work-types';
|
|
2
|
+
export declare function PresentationStatusBar({ content, selectedSlide, viewMode, zoom, saveStatus, onViewModeChange, onZoomChange, }: {
|
|
3
|
+
content: WorkPresentationContent;
|
|
4
|
+
selectedSlide: WorkSlide;
|
|
5
|
+
viewMode: 'normal' | 'sorter';
|
|
6
|
+
zoom: number;
|
|
7
|
+
saveStatus: string;
|
|
8
|
+
onViewModeChange: (mode: 'normal' | 'sorter') => void;
|
|
9
|
+
onZoomChange: (zoom: number) => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Editor, Extensions } from '@tiptap/core';
|
|
2
|
+
import type { WorkSlideElement, WorkSlideTextRun } from '../work-types';
|
|
3
|
+
export interface PresentationTextValue {
|
|
4
|
+
text: string;
|
|
5
|
+
textRuns?: WorkSlideTextRun[];
|
|
6
|
+
}
|
|
7
|
+
export interface PresentationTextEditorProps {
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
element: WorkSlideElement;
|
|
10
|
+
onChange: (value: PresentationTextValue) => void;
|
|
11
|
+
onEditorChange?: (editor: Editor | null) => void;
|
|
12
|
+
onExitEditing?: () => void;
|
|
13
|
+
onSelectionChange?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function PresentationTextEditor({ autoFocus, element, onChange, onEditorChange, onExitEditing, onSelectionChange, }: PresentationTextEditorProps): import("react").JSX.Element | null;
|
|
16
|
+
export declare function createPresentationTextEditorExtensions(placeholder?: string): Extensions;
|
|
17
|
+
export declare function presentationTextElementHtml(element: WorkSlideElement): string;
|
|
18
|
+
export declare function presentationTextValue(editor: Editor, element: WorkSlideElement): PresentationTextValue;
|
|
19
|
+
export declare function presentationTextToolbarState(editor: Editor, element: WorkSlideElement): WorkSlideElement;
|
|
20
|
+
export declare function applyPresentationTextFormatting(editor: Editor, patch: Partial<WorkSlideElement>, options?: {
|
|
21
|
+
restoreFocus?: boolean;
|
|
22
|
+
}): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { WorkSlideElement } from '../work-types';
|
|
2
|
+
export declare function presentationElementToolbarState(element: WorkSlideElement): WorkSlideElement;
|
|
3
|
+
export declare function applyPresentationElementFormattingPatch(element: WorkSlideElement, patch: Partial<WorkSlideElement>): WorkSlideElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { WorkspaceContextMenuEvent } from '../../workspace/components/workspace-context-menu';
|
|
3
|
+
import type { WorkPresentationContent, WorkSlide, WorkSlideElement } from '../work-types';
|
|
4
|
+
export declare function PresentationThumbnailRail({ aspectRatio, content, designContent, selectedSlide, viewMode, zoom, mobileCloseButtonRef, mobileNavigationModal, mobileNavigationId, onAddSlide, onCloseMobileNavigation, onDeleteSlide, onOpenContextMenu, onSelectSlide, onViewModeChange, }: {
|
|
5
|
+
aspectRatio: string;
|
|
6
|
+
content: WorkPresentationContent;
|
|
7
|
+
designContent: WorkPresentationContent;
|
|
8
|
+
selectedSlide: WorkSlide;
|
|
9
|
+
viewMode: 'normal' | 'sorter';
|
|
10
|
+
zoom: number;
|
|
11
|
+
mobileCloseButtonRef?: RefObject<HTMLButtonElement | null>;
|
|
12
|
+
mobileNavigationModal?: boolean;
|
|
13
|
+
mobileNavigationId?: string;
|
|
14
|
+
onAddSlide: () => void;
|
|
15
|
+
onCloseMobileNavigation?: () => void;
|
|
16
|
+
onDeleteSlide: (slideId: string) => boolean;
|
|
17
|
+
onOpenContextMenu: (event: WorkspaceContextMenuEvent, slide: WorkSlide, slideIndex: number, element?: WorkSlideElement | null) => void;
|
|
18
|
+
onSelectSlide: (slideId: string, returnToSlideMode: boolean, dismissMobileNavigation?: boolean) => void;
|
|
19
|
+
onViewModeChange: (mode: 'normal' | 'sorter') => void;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WorkSlide, WorkSlideElement } from '../work-types';
|
|
2
|
+
import type { PresentationEditorCanCommands, PresentationEditorCommands } from './presentation-command-types';
|
|
3
|
+
import { type WorkOfficeFileAction } from './work-office-chrome';
|
|
4
|
+
export declare function PresentationToolbar({ selectedSlide, selectedElement, selectedUnitCount, can, textFormattingAvailable, commentsOpen, commentCount, designOpen, editingDesign, background, transition, fileActions, viewMode, commands, }: {
|
|
5
|
+
selectedSlide: WorkSlide;
|
|
6
|
+
selectedElement: WorkSlideElement | null;
|
|
7
|
+
selectedUnitCount: number;
|
|
8
|
+
can: PresentationEditorCanCommands;
|
|
9
|
+
textFormattingAvailable: boolean;
|
|
10
|
+
commentsOpen: boolean;
|
|
11
|
+
commentCount: number;
|
|
12
|
+
designOpen: boolean;
|
|
13
|
+
editingDesign: boolean;
|
|
14
|
+
background?: string;
|
|
15
|
+
transition: WorkSlide['transition'];
|
|
16
|
+
fileActions?: readonly WorkOfficeFileAction[];
|
|
17
|
+
viewMode?: 'normal' | 'sorter';
|
|
18
|
+
commands: PresentationEditorCommands;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkSlideTransition } from '../work-types';
|
|
2
|
+
export declare function PresentationTransitionPanel({ slideId, transition, editable, canApplyToAll, onChange, onApplyToAll, }: {
|
|
3
|
+
slideId: string;
|
|
4
|
+
transition: WorkSlideTransition | undefined;
|
|
5
|
+
editable: boolean;
|
|
6
|
+
canApplyToAll: (transition: WorkSlideTransition | undefined) => boolean;
|
|
7
|
+
onChange: (transition: WorkSlideTransition | undefined) => void;
|
|
8
|
+
onApplyToAll: (transition: WorkSlideTransition | undefined) => void;
|
|
9
|
+
}): import("react").JSX.Element;
|