@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,18 @@
|
|
|
1
|
+
export declare const WORK_OFFICE_RIBBON_SCROLL_INSET = 34;
|
|
2
|
+
export interface WorkOfficeRibbonItemGeometry {
|
|
3
|
+
left: number;
|
|
4
|
+
right: number;
|
|
5
|
+
}
|
|
6
|
+
interface WorkOfficeRibbonViewport {
|
|
7
|
+
clientWidth: number;
|
|
8
|
+
items: readonly WorkOfficeRibbonItemGeometry[];
|
|
9
|
+
scrollLeft: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function calculateRibbonOverflow({ clientWidth, items, scrollLeft, }: WorkOfficeRibbonViewport): {
|
|
12
|
+
backward: boolean;
|
|
13
|
+
forward: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function calculateRibbonScrollTarget({ clientWidth, direction, items, scrollLeft, }: WorkOfficeRibbonViewport & {
|
|
16
|
+
direction: -1 | 1;
|
|
17
|
+
}): number;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WorkAgentProposalApplyResult, WorkAgentProposalChange } from './work-agent-proposal';
|
|
2
|
+
import type { WorkPresentationContent, WorkSpreadsheetContent } from './work-types';
|
|
3
|
+
export interface WorkAgentProposalApplyOutcome<T> {
|
|
4
|
+
content: T;
|
|
5
|
+
result: WorkAgentProposalApplyResult;
|
|
6
|
+
}
|
|
7
|
+
export declare function applySpreadsheetAgentProposalChanges(content: WorkSpreadsheetContent, sheetId: string, changes: readonly WorkAgentProposalChange[]): WorkAgentProposalApplyOutcome<WorkSpreadsheetContent>;
|
|
8
|
+
export declare function applyPresentationAgentProposalChanges(content: WorkPresentationContent, slideId: string, changes: readonly WorkAgentProposalChange[]): WorkAgentProposalApplyOutcome<WorkPresentationContent>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const WORK_AGENT_PROPOSAL_PROTOCOL = "a3s-work-proposal/v1";
|
|
2
|
+
export interface WorkAgentProposalTarget {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
before: string;
|
|
6
|
+
}
|
|
7
|
+
export interface WorkAgentProposalChange extends WorkAgentProposalTarget {
|
|
8
|
+
after: string;
|
|
9
|
+
reason: string;
|
|
10
|
+
}
|
|
11
|
+
export interface WorkAgentProposalConflict {
|
|
12
|
+
targetId: string;
|
|
13
|
+
label: string;
|
|
14
|
+
message: string;
|
|
15
|
+
}
|
|
16
|
+
export interface WorkAgentProposalApplyResult {
|
|
17
|
+
appliedTargetIds: string[];
|
|
18
|
+
conflicts: WorkAgentProposalConflict[];
|
|
19
|
+
}
|
|
20
|
+
export interface WorkAgentProposalRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
targets: WorkAgentProposalTarget[];
|
|
25
|
+
apply: (changes: readonly WorkAgentProposalChange[]) => WorkAgentProposalApplyResult;
|
|
26
|
+
}
|
|
27
|
+
export interface WorkAgentProposal {
|
|
28
|
+
requestId: string;
|
|
29
|
+
summary: string;
|
|
30
|
+
changes: WorkAgentProposalChange[];
|
|
31
|
+
}
|
|
32
|
+
export interface WorkAgentProposalMessage {
|
|
33
|
+
role: 'user' | 'assistant' | 'system';
|
|
34
|
+
content: string;
|
|
35
|
+
pending?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type WorkAgentProposalStatus = {
|
|
38
|
+
state: 'waiting';
|
|
39
|
+
phase: 'draft' | 'response';
|
|
40
|
+
} | {
|
|
41
|
+
state: 'invalid';
|
|
42
|
+
message: string;
|
|
43
|
+
} | {
|
|
44
|
+
state: 'ready';
|
|
45
|
+
proposal: WorkAgentProposal;
|
|
46
|
+
};
|
|
47
|
+
export declare function createWorkAgentProposalRequest({ id, title, description, targets, apply, }: {
|
|
48
|
+
id?: string;
|
|
49
|
+
title: string;
|
|
50
|
+
description: string;
|
|
51
|
+
targets: readonly WorkAgentProposalTarget[];
|
|
52
|
+
apply: WorkAgentProposalRequest['apply'];
|
|
53
|
+
}): WorkAgentProposalRequest;
|
|
54
|
+
export declare function workAgentProposalInstruction(instruction: string, request: WorkAgentProposalRequest): string;
|
|
55
|
+
export declare function workAgentProposalStatus(messages: readonly WorkAgentProposalMessage[], request: WorkAgentProposalRequest): WorkAgentProposalStatus;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartSeries, type WorkSpreadsheetChartType } from './work-types';
|
|
2
|
+
export declare function chartSeriesTrendlineContext(series: Pick<WorkSpreadsheetChartSeries, 'trendlines'>): string;
|
|
3
|
+
export declare function chartSeriesErrorBarContext(series: Pick<WorkSpreadsheetChartSeries, 'errorBars'>, chartType: WorkSpreadsheetChartType): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Editor, Node } from '@tiptap/core';
|
|
2
|
+
import { type WorkDocumentCaptionKind, type WorkDocumentCaptionTarget } from './work-document-captions';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
documentCaption: {
|
|
6
|
+
insertDocumentCaption: (kind: WorkDocumentCaptionKind, title: string) => ReturnType;
|
|
7
|
+
insertDocumentCrossReference: (target: WorkDocumentCaptionTarget) => ReturnType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const DocumentCaption: Node<any, any>;
|
|
12
|
+
export declare const DocumentCrossReference: Node<any, any>;
|
|
13
|
+
export declare function editorDocumentCaptionTargets(editor: Editor): WorkDocumentCaptionTarget[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type WorkDocumentCaptionKind = 'figure' | 'table';
|
|
2
|
+
export interface WorkDocumentCaptionTarget {
|
|
3
|
+
id: string;
|
|
4
|
+
kind: WorkDocumentCaptionKind;
|
|
5
|
+
number: number;
|
|
6
|
+
label: string;
|
|
7
|
+
title: string;
|
|
8
|
+
display: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function normalizeDocumentCaptionsHtml(source: string): string;
|
|
11
|
+
export declare function collectDocumentCaptionTargets(source: string): WorkDocumentCaptionTarget[];
|
|
12
|
+
export declare function documentCaptionKind(value: string | undefined): WorkDocumentCaptionKind | null;
|
|
13
|
+
export declare function documentCaptionLabel(kind: WorkDocumentCaptionKind): string;
|
|
14
|
+
export declare function documentCaptionDisplay(kind: WorkDocumentCaptionKind, number: number): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Mark } from '@tiptap/core';
|
|
2
|
+
import { type Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
|
+
export type WorkDocumentChangeKind = 'insertion' | 'deletion';
|
|
4
|
+
export interface WorkDocumentChangeIdentity {
|
|
5
|
+
id: string;
|
|
6
|
+
author: string;
|
|
7
|
+
date: string;
|
|
8
|
+
}
|
|
9
|
+
export interface WorkDocumentChange extends WorkDocumentChangeIdentity {
|
|
10
|
+
kind: WorkDocumentChangeKind;
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
interface DocumentChangeOptions {
|
|
16
|
+
isTracking: () => boolean;
|
|
17
|
+
createChange: (kind: WorkDocumentChangeKind) => WorkDocumentChangeIdentity;
|
|
18
|
+
onTrackingChange: (enabled: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
declare module '@tiptap/core' {
|
|
21
|
+
interface Commands<ReturnType> {
|
|
22
|
+
documentChange: {
|
|
23
|
+
acceptAllDocumentChanges: () => ReturnType;
|
|
24
|
+
acceptDocumentChange: (id: string) => ReturnType;
|
|
25
|
+
rejectAllDocumentChanges: () => ReturnType;
|
|
26
|
+
rejectDocumentChange: (id: string) => ReturnType;
|
|
27
|
+
replaceDocumentTextWithTrackedChange: (from: number, to: number, text: string) => ReturnType;
|
|
28
|
+
setDocumentTrackChanges: (enabled: boolean) => ReturnType;
|
|
29
|
+
toggleDocumentTrackChanges: () => ReturnType;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export declare const DocumentChange: Mark<DocumentChangeOptions, any>;
|
|
34
|
+
export declare function collectDocumentChanges(document: ProseMirrorNode): WorkDocumentChange[];
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
declare module '@tiptap/core' {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
documentCharacterFormatting: {
|
|
5
|
+
toggleDocumentSubscript: () => ReturnType;
|
|
6
|
+
toggleDocumentSuperscript: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const DocumentSubscript: import("@tiptap/core").Mark<import("@tiptap/extension-subscript").SubscriptExtensionOptions, any>;
|
|
11
|
+
export declare const DocumentSuperscript: import("@tiptap/core").Mark<import("@tiptap/extension-superscript").SuperscriptExtensionOptions, any>;
|
|
12
|
+
export declare function toggleDocumentSubscript(editor: Editor): boolean;
|
|
13
|
+
export declare function toggleDocumentSuperscript(editor: Editor): boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Editor, Node } from '@tiptap/core';
|
|
2
|
+
import type { WorkDocumentBibliography, WorkDocumentCitationSource, WorkDocumentContent } from './work-types';
|
|
3
|
+
export interface DocumentCitationTagRename {
|
|
4
|
+
next: string;
|
|
5
|
+
previous: string;
|
|
6
|
+
}
|
|
7
|
+
interface DocumentCitationOptions {
|
|
8
|
+
getContent: () => WorkDocumentContent | null;
|
|
9
|
+
onContentChange: (content: WorkDocumentContent) => void;
|
|
10
|
+
}
|
|
11
|
+
declare module '@tiptap/core' {
|
|
12
|
+
interface Commands<ReturnType> {
|
|
13
|
+
documentCitation: {
|
|
14
|
+
insertDocumentCitation: (source: WorkDocumentCitationSource, bibliography: WorkDocumentBibliography) => ReturnType;
|
|
15
|
+
insertDocumentBibliography: (bibliography: WorkDocumentBibliography) => ReturnType;
|
|
16
|
+
refreshDocumentCitations: (content: WorkDocumentContent) => ReturnType;
|
|
17
|
+
renameDocumentCitationTag: (previousTag: string, nextTag: string) => ReturnType;
|
|
18
|
+
setDocumentBibliography: (bibliography: WorkDocumentBibliography, renamedTag?: DocumentCitationTagRename) => ReturnType;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare const DocumentCitation: Node<DocumentCitationOptions, any>;
|
|
23
|
+
export declare const DocumentBibliography: Node<any, any>;
|
|
24
|
+
export declare function documentCitationCount(editor: Editor): number;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WorkDocumentBibliography, WorkDocumentCitationContributor, WorkDocumentCitationSource, WorkDocumentCitationStyle } from './work-types';
|
|
2
|
+
export interface ResolvedDocumentCitation {
|
|
3
|
+
text: string;
|
|
4
|
+
orphaned: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function createDocumentBibliography(style?: WorkDocumentCitationStyle): WorkDocumentBibliography;
|
|
7
|
+
export declare function documentCitationStyle(value: string | undefined): WorkDocumentCitationStyle;
|
|
8
|
+
export declare function documentCitationStyleDetails(style: WorkDocumentCitationStyle): {
|
|
9
|
+
name: string;
|
|
10
|
+
selectedStyle: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function documentCitationTagsFromInstruction(instruction: string): string[];
|
|
13
|
+
export declare function documentCitationInstruction(tags: readonly string[]): string;
|
|
14
|
+
export declare function renameDocumentCitationTagInInstruction(instruction: string, previousTag: string, nextTag: string): string;
|
|
15
|
+
export declare function documentCitationTags(value: string | undefined): string[];
|
|
16
|
+
export declare function isValidDocumentCitationTag(value: string): boolean;
|
|
17
|
+
export declare function resolveDocumentCitation(tags: readonly string[], bibliography: WorkDocumentBibliography | undefined, instruction?: string, cachedValue?: string): ResolvedDocumentCitation;
|
|
18
|
+
export declare function normalizeDocumentCitationsHtml(source: string, bibliography: WorkDocumentBibliography | undefined): string;
|
|
19
|
+
export declare function renderDocumentBibliographyHtml(bibliography: WorkDocumentBibliography, id?: string): string;
|
|
20
|
+
export declare function documentBibliographyEntry(source: WorkDocumentCitationSource, bibliography: WorkDocumentBibliography, index: number): string;
|
|
21
|
+
export declare function primaryCitationContributor(source: WorkDocumentCitationSource): WorkDocumentCitationContributor | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorkDocumentColumns } from './work-types';
|
|
2
|
+
interface LegacyDocumentColumns {
|
|
3
|
+
count?: number;
|
|
4
|
+
spacing?: number;
|
|
5
|
+
separator?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_DOCUMENT_COLUMNS: WorkDocumentColumns;
|
|
8
|
+
export declare function normalizeDocumentColumns(columns?: Partial<WorkDocumentColumns>): WorkDocumentColumns;
|
|
9
|
+
export declare function serializeDocumentColumns(columns: WorkDocumentColumns): string;
|
|
10
|
+
export declare function parseDocumentColumns(source: string | undefined, legacy?: LegacyDocumentColumns, fallback?: WorkDocumentColumns): WorkDocumentColumns;
|
|
11
|
+
export declare function setCustomDocumentColumns(columns: WorkDocumentColumns, enabled: boolean): WorkDocumentColumns;
|
|
12
|
+
export declare function updateDocumentColumnWidth(columns: WorkDocumentColumns, index: number, widthPercent: number): WorkDocumentColumns;
|
|
13
|
+
export declare function documentColumnGridTemplate(columns: WorkDocumentColumns): string;
|
|
14
|
+
export declare function documentUnequalColumnGroups(html: string, columns: WorkDocumentColumns): string[];
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Editor, Mark } from '@tiptap/core';
|
|
2
|
+
import { type Mark as ProseMirrorMark, type Node as ProseMirrorNode, Slice } from '@tiptap/pm/model';
|
|
3
|
+
import type { WorkDocumentComment, WorkDocumentCommentReply, WorkDocumentContent } from './work-types';
|
|
4
|
+
export interface WorkDocumentCommentAnchor {
|
|
5
|
+
id: string;
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
anchorText: string;
|
|
9
|
+
}
|
|
10
|
+
export interface WorkDocumentCommentView extends WorkDocumentComment, WorkDocumentCommentAnchor {
|
|
11
|
+
}
|
|
12
|
+
export interface WorkDocumentCommentRange {
|
|
13
|
+
from: number;
|
|
14
|
+
to: number;
|
|
15
|
+
}
|
|
16
|
+
export interface InsertDocumentCommentOptions {
|
|
17
|
+
id: string;
|
|
18
|
+
range?: WorkDocumentCommentRange;
|
|
19
|
+
}
|
|
20
|
+
interface DocumentCommentOptions {
|
|
21
|
+
getContent: () => WorkDocumentContent | null;
|
|
22
|
+
onContentChange: (content: WorkDocumentContent) => void;
|
|
23
|
+
}
|
|
24
|
+
declare module '@tiptap/core' {
|
|
25
|
+
interface Commands<ReturnType> {
|
|
26
|
+
documentComment: {
|
|
27
|
+
addDocumentCommentReply: (id: string, reply: WorkDocumentCommentReply) => ReturnType;
|
|
28
|
+
deleteDocumentComment: (id: string) => ReturnType;
|
|
29
|
+
showDocumentCommentDraft: (range: WorkDocumentCommentRange) => ReturnType;
|
|
30
|
+
clearDocumentCommentDraft: () => ReturnType;
|
|
31
|
+
insertDocumentComment: (options: InsertDocumentCommentOptions) => ReturnType;
|
|
32
|
+
insertDocumentCommentThread: (comment: WorkDocumentComment, range?: WorkDocumentCommentRange) => ReturnType;
|
|
33
|
+
removeDocumentComment: (id: string) => ReturnType;
|
|
34
|
+
toggleDocumentCommentResolved: (id: string) => ReturnType;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export declare const DocumentComment: Mark<DocumentCommentOptions, any>;
|
|
39
|
+
export declare function canInsertDocumentComment(editor: Editor, range?: WorkDocumentCommentRange): boolean;
|
|
40
|
+
export declare function documentCommentDraftRange(editor: Editor): WorkDocumentCommentRange | null;
|
|
41
|
+
export declare function collectDocumentCommentAnchors(document: ProseMirrorNode): WorkDocumentCommentAnchor[];
|
|
42
|
+
export declare function documentCommentViews(comments: readonly WorkDocumentComment[], anchors: readonly WorkDocumentCommentAnchor[]): WorkDocumentCommentView[];
|
|
43
|
+
export declare function retainAnchoredDocumentComments(comments: readonly WorkDocumentComment[], anchors: readonly WorkDocumentCommentAnchor[]): WorkDocumentComment[];
|
|
44
|
+
export declare function appendDocumentCommentReply(comments: readonly WorkDocumentComment[], id: string, reply: WorkDocumentCommentReply): WorkDocumentComment[];
|
|
45
|
+
export declare function toggleDocumentCommentResolved(comments: readonly WorkDocumentComment[], id: string): WorkDocumentComment[];
|
|
46
|
+
export declare function removeDocumentCommentRecord(comments: readonly WorkDocumentComment[], id: string): WorkDocumentComment[];
|
|
47
|
+
export declare function stripDocumentCommentsFromSlice(slice: Slice, type: ProseMirrorMark['type']): Slice;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Extensions } from '@tiptap/core';
|
|
2
|
+
import { type WorkDocumentChangeIdentity, type WorkDocumentChangeKind } from './work-document-changes';
|
|
3
|
+
import type { WorkDocumentContent } from './work-types';
|
|
4
|
+
export interface WorkDocumentExtensionOptions {
|
|
5
|
+
getContent?: () => WorkDocumentContent | null;
|
|
6
|
+
isTracking?: () => boolean;
|
|
7
|
+
createChange?: (kind: WorkDocumentChangeKind) => WorkDocumentChangeIdentity;
|
|
8
|
+
onContentChange?: (content: WorkDocumentContent) => void;
|
|
9
|
+
onTrackingChange?: (enabled: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function createWorkDocumentExtensions(options?: WorkDocumentExtensionOptions): Extensions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { type WorkDocumentFieldKind } from './work-document-fields';
|
|
3
|
+
import type { WorkDocumentContent } from './work-types';
|
|
4
|
+
declare module '@tiptap/core' {
|
|
5
|
+
interface Commands<ReturnType> {
|
|
6
|
+
documentField: {
|
|
7
|
+
insertDocumentField: (kind: WorkDocumentFieldKind) => ReturnType;
|
|
8
|
+
refreshDocumentFields: (content: WorkDocumentContent) => ReturnType;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare const DocumentField: Node<any, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type WorkDocumentFieldKind = 'page' | 'numPages' | 'section' | 'sectionPages' | 'date' | 'time';
|
|
2
|
+
export interface WorkDocumentFieldContext {
|
|
3
|
+
pageNumber: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
sectionNumber: number;
|
|
6
|
+
sectionPages: number;
|
|
7
|
+
now?: Date;
|
|
8
|
+
}
|
|
9
|
+
export declare function documentFieldKind(value: string | undefined): WorkDocumentFieldKind | null;
|
|
10
|
+
export declare function docxDocumentFieldKind(instruction: string): WorkDocumentFieldKind | null;
|
|
11
|
+
export declare function documentFieldInstruction(kind: WorkDocumentFieldKind): string;
|
|
12
|
+
export declare function documentFieldLabel(kind: WorkDocumentFieldKind): string;
|
|
13
|
+
export declare function documentFieldDisplay(kind: WorkDocumentFieldKind, context: WorkDocumentFieldContext, instruction?: string, cachedValue?: string): string;
|
|
14
|
+
export declare function normalizeDocumentFieldsHtml(source: string): string;
|
|
15
|
+
export declare function resolveDocumentFieldsHtml(source: string, context: WorkDocumentFieldContext): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WorkArtifact } from './work-types';
|
|
2
|
+
export declare function importWorkDocumentFile(file: File, extension: string): Promise<WorkArtifact>;
|
|
3
|
+
export declare function exportWorkDocumentArtifact(artifact: WorkArtifact): Promise<void>;
|
|
4
|
+
export declare function createWorkDocumentBlob(artifact: WorkArtifact): Promise<Blob>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_FONT_ID = "noto-sans-hans-regular";
|
|
2
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_FONT_FAMILY = "A3S Office Noto Sans Hans";
|
|
3
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_LATIN_FONT_ID = "noto-sans-regular";
|
|
4
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_LATIN_FONT_FAMILY = "A3S Office Noto Sans";
|
|
5
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_ARABIC_FONT_ID = "noto-naskh-arabic-regular";
|
|
6
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_ARABIC_FONT_FAMILY = "A3S Office Noto Naskh Arabic";
|
|
7
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_HEBREW_FONT_ID = "noto-sans-hebrew-regular";
|
|
8
|
+
export declare const OFFICE_DOCUMENT_LAYOUT_HEBREW_FONT_FAMILY = "A3S Office Noto Sans Hebrew";
|
|
9
|
+
export interface WorkDocumentLayoutFont {
|
|
10
|
+
id: string;
|
|
11
|
+
family: string;
|
|
12
|
+
url: string;
|
|
13
|
+
weight?: number;
|
|
14
|
+
style?: 'normal' | 'italic';
|
|
15
|
+
}
|
|
16
|
+
export declare function documentLayoutFontKey(fonts: readonly WorkDocumentLayoutFont[]): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Editor } from '@tiptap/core';
|
|
2
|
+
export type WorkDocumentImageLayout = 'inline' | 'square' | 'topBottom';
|
|
3
|
+
export type WorkDocumentImageAlignment = 'left' | 'center' | 'right';
|
|
4
|
+
export interface WorkDocumentImageLayoutOptions {
|
|
5
|
+
layout: WorkDocumentImageLayout;
|
|
6
|
+
alignment: WorkDocumentImageAlignment;
|
|
7
|
+
wrapDistance: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DocumentImageCommandOptions {
|
|
10
|
+
restoreFocus?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare module '@tiptap/core' {
|
|
13
|
+
interface Commands<ReturnType> {
|
|
14
|
+
documentImage: {
|
|
15
|
+
setDocumentImageAlternativeText: (alternativeText: string, options?: DocumentImageCommandOptions) => ReturnType;
|
|
16
|
+
setDocumentImageLayoutOptions: (value: Partial<WorkDocumentImageLayoutOptions>, options?: DocumentImageCommandOptions) => ReturnType;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare const DocumentImage: import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any>;
|
|
21
|
+
export declare function documentImageLayoutOptions(editor: Editor): WorkDocumentImageLayoutOptions;
|
|
22
|
+
export declare function setDocumentImageLayoutOptions(editor: Editor, value: Partial<WorkDocumentImageLayoutOptions>, options?: DocumentImageCommandOptions): boolean;
|
|
23
|
+
export declare function setDocumentImageAlternativeText(editor: Editor, alternativeText: string, options?: DocumentImageCommandOptions): boolean;
|
|
24
|
+
export declare function documentImageAlternativeText(editor: Editor): string;
|
|
25
|
+
export declare function documentImageLayoutFromElement(element: Element): WorkDocumentImageLayoutOptions;
|
|
26
|
+
export declare function normalizeDocumentImageLayoutOptions(value: Partial<Record<keyof WorkDocumentImageLayoutOptions, unknown>>): WorkDocumentImageLayoutOptions;
|
|
27
|
+
export declare function normalizeDocumentImageLayout(value: unknown): WorkDocumentImageLayout;
|
|
28
|
+
export declare function normalizeDocumentImageAlignment(value: unknown): WorkDocumentImageAlignment;
|
|
29
|
+
export declare function normalizeDocumentImageWrapDistance(value: unknown): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OfficeKernelLayoutBlock, OfficeKernelLayoutResult, OfficeKernelPageMetrics } from '../../kernel/office-kernel-protocol';
|
|
2
|
+
export interface PositionedOfficeKernelLayoutBlock {
|
|
3
|
+
block: OfficeKernelLayoutBlock;
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IncrementalDocumentLayoutPlan {
|
|
8
|
+
blocks: OfficeKernelLayoutBlock[];
|
|
9
|
+
reusedPageCount: number;
|
|
10
|
+
startBlockIndex: number;
|
|
11
|
+
startPageIndex: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function planIncrementalDocumentLayout(previous: {
|
|
14
|
+
blocks: readonly PositionedOfficeKernelLayoutBlock[];
|
|
15
|
+
layout: OfficeKernelLayoutResult;
|
|
16
|
+
} | null, next: readonly PositionedOfficeKernelLayoutBlock[], dirtyFrom: number): IncrementalDocumentLayoutPlan;
|
|
17
|
+
export declare function mergeIncrementalDocumentLayout(previous: OfficeKernelLayoutResult, partial: OfficeKernelLayoutResult, page: OfficeKernelPageMetrics): OfficeKernelLayoutResult;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WorkDocumentContent, WorkDocumentMargins } from './work-types';
|
|
2
|
+
export declare const DEFAULT_DOCUMENT_MARGINS: WorkDocumentMargins;
|
|
3
|
+
export declare function documentMargins(content: WorkDocumentContent): WorkDocumentMargins;
|
|
4
|
+
export declare function clampDocumentMargin(value: number): number;
|
|
5
|
+
export declare function millimetersToPixels(value: number): number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
|
+
import type { OfficeKernelTextLayoutParagraphResult } from '../../kernel/office-kernel-protocol';
|
|
4
|
+
import { type DocumentNodeParagraphPagination } from './work-document-pagination-dom';
|
|
5
|
+
import type { MeasuredDocumentLayoutBlock } from './work-document-pagination-types';
|
|
6
|
+
interface DocumentLineRect {
|
|
7
|
+
top: number;
|
|
8
|
+
right: number;
|
|
9
|
+
bottom: number;
|
|
10
|
+
left: number;
|
|
11
|
+
}
|
|
12
|
+
interface DocumentMeasuredLine extends DocumentLineRect {
|
|
13
|
+
position: number;
|
|
14
|
+
}
|
|
15
|
+
interface DocumentLineFragment {
|
|
16
|
+
from: number;
|
|
17
|
+
to: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function createDocumentLineFragments(lines: readonly Pick<DocumentMeasuredLine, 'top' | 'position'>[], outerTop: number, outerBottom: number, scale?: number): DocumentLineFragment[];
|
|
21
|
+
export declare function measureParagraphLineFragments(editor: Editor, node: ProseMirrorNode, element: HTMLElement, id: string, from: number, to: number, pagination: DocumentNodeParagraphPagination, shapedLayout?: OfficeKernelTextLayoutParagraphResult): MeasuredDocumentLayoutBlock[];
|
|
22
|
+
export declare function createShapedDocumentLineFragments(lines: readonly Pick<OfficeKernelTextLayoutParagraphResult['lines'][number], 'endUtf16' | 'height' | 'startUtf16'>[], nodeFrom: number, nodeTo: number, blockStart: number, blockEnd: number): DocumentLineFragment[];
|
|
23
|
+
export declare function findDocumentLineStartOffset(textLength: number, line: Pick<DocumentLineRect, 'top' | 'bottom'>, rectangleAt: (offset: number) => Pick<DocumentLineRect, 'top' | 'bottom'> | null): number | null;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Extension, type Editor } from '@tiptap/core';
|
|
2
|
+
export type DocumentBulletListStyle = 'disc' | 'circle' | 'square';
|
|
3
|
+
export type DocumentOrderedListStyle = 'decimal' | 'lower-alpha' | 'upper-alpha' | 'lower-roman' | 'upper-roman';
|
|
4
|
+
export interface DocumentOrderedListState {
|
|
5
|
+
start: number;
|
|
6
|
+
style: DocumentOrderedListStyle;
|
|
7
|
+
}
|
|
8
|
+
export declare const MAX_DOCUMENT_NUMBERING_START = 2147483647;
|
|
9
|
+
declare module '@tiptap/core' {
|
|
10
|
+
interface Commands<ReturnType> {
|
|
11
|
+
documentLists: {
|
|
12
|
+
applyDocumentBulletList: (style: DocumentBulletListStyle) => ReturnType;
|
|
13
|
+
applyDocumentOrderedList: (style: DocumentOrderedListStyle) => ReturnType;
|
|
14
|
+
clearDocumentList: () => ReturnType;
|
|
15
|
+
continueDocumentNumbering: () => ReturnType;
|
|
16
|
+
restartDocumentNumbering: () => ReturnType;
|
|
17
|
+
setDocumentNumberingStart: (start: number) => ReturnType;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare const DocumentBulletList: import("@tiptap/core").Node<import("@tiptap/extension-list").BulletListOptions, any>;
|
|
22
|
+
export declare const DocumentOrderedList: import("@tiptap/core").Node<import("@tiptap/extension-list").OrderedListOptions, any>;
|
|
23
|
+
export declare const DocumentListCommands: Extension<any, any>;
|
|
24
|
+
export declare function documentBulletListStyle(editor: Editor): DocumentBulletListStyle | null;
|
|
25
|
+
export declare function documentOrderedListState(editor: Editor): DocumentOrderedListState | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { WorkDocumentContent } from './work-types';
|
|
2
|
+
export declare function createWorkDocumentModelFromContent(content: WorkDocumentContent): WorkDocumentContent;
|
|
3
|
+
export declare function materializeWorkDocumentContent(content: WorkDocumentContent): WorkDocumentContent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WorkDocumentContent, WorkDocumentModel, WorkDocumentNode } from './work-types';
|
|
2
|
+
export declare function createWorkDocumentModel(html: string, root: WorkDocumentNode, previous?: WorkDocumentModel | null): WorkDocumentModel;
|
|
3
|
+
export declare function documentModelForContent(content: WorkDocumentContent): WorkDocumentModel | null;
|
|
4
|
+
export declare function documentModelForHtml(candidate: unknown, html: string): WorkDocumentModel | null;
|
|
5
|
+
export interface WorkDocumentEditorInput {
|
|
6
|
+
model: WorkDocumentModel | null;
|
|
7
|
+
source: WorkDocumentNode | string;
|
|
8
|
+
sourceKey: string;
|
|
9
|
+
revision: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function resolveWorkDocumentEditorInput(content: WorkDocumentContent, fallbackHtml: string): WorkDocumentEditorInput;
|
|
12
|
+
export declare function documentHtmlFingerprint(html: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { type WorkDocumentNoteKind } from './work-document-notes';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
documentNote: {
|
|
6
|
+
insertDocumentNote: (kind: WorkDocumentNoteKind) => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const DocumentNoteReference: Node<any, any>;
|
|
11
|
+
export declare const DocumentNote: Node<any, any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type WorkDocumentNoteKind = 'footnote' | 'endnote';
|
|
2
|
+
export interface WorkDocumentNote {
|
|
3
|
+
id: string;
|
|
4
|
+
kind: WorkDocumentNoteKind;
|
|
5
|
+
number: number;
|
|
6
|
+
html: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkDocumentNoteCollection {
|
|
9
|
+
html: string;
|
|
10
|
+
notes: WorkDocumentNote[];
|
|
11
|
+
}
|
|
12
|
+
export declare function normalizeDocumentNotesHtml(source: string): string;
|
|
13
|
+
export declare function collectDocumentNotes(source: string): WorkDocumentNoteCollection;
|
|
14
|
+
export declare function documentNoteReferenceKeys(source: string): string[];
|
|
15
|
+
export declare function removeDocumentNoteDefinitions(source: string): string;
|
|
16
|
+
export declare function createDocumentNoteElement(document: Document, note: WorkDocumentNote): HTMLElement;
|
|
17
|
+
export declare function documentNoteKey(kind: WorkDocumentNoteKind, id: string): string;
|
|
18
|
+
export declare function documentNoteKind(value: string | undefined): WorkDocumentNoteKind | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
2
|
+
export interface WorkDocumentOutlineItem {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
level: number;
|
|
6
|
+
depth: number;
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
parentId?: string;
|
|
10
|
+
hasChildren: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function collectWorkDocumentOutline(document: ProseMirrorNode): WorkDocumentOutlineItem[];
|
|
13
|
+
export declare function currentWorkDocumentOutlineItem(items: readonly WorkDocumentOutlineItem[], position: number): WorkDocumentOutlineItem | null;
|
|
14
|
+
export declare function visibleWorkDocumentOutlineItems(items: readonly WorkDocumentOutlineItem[], collapsedIds: ReadonlySet<string>, rawQuery: string): WorkDocumentOutlineItem[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface DocumentPageChromeImageOptions {
|
|
3
|
+
alt: string;
|
|
4
|
+
source: string;
|
|
5
|
+
}
|
|
6
|
+
declare module '@tiptap/core' {
|
|
7
|
+
interface Commands<ReturnType> {
|
|
8
|
+
documentPageChrome: {
|
|
9
|
+
insertDocumentPageChromeImage: (options: DocumentPageChromeImageOptions) => ReturnType;
|
|
10
|
+
setDocumentPageChromeLink: (href: string | null) => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const DocumentPageChromeCommands: Extension<any, any>;
|
|
15
|
+
export declare function normalizeDocumentPageChromeHref(value: string): string | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WorkDocumentPageChrome, WorkDocumentPageChromeContent, WorkDocumentPageChromeVariant, WorkDocumentSectionLayout } from './work-types';
|
|
2
|
+
interface LegacyPageChrome {
|
|
3
|
+
headerText?: string;
|
|
4
|
+
footerText?: string;
|
|
5
|
+
showPageNumbers?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ResolvedDocumentPageChrome extends WorkDocumentPageChromeContent {
|
|
8
|
+
variant: WorkDocumentPageChromeVariant;
|
|
9
|
+
}
|
|
10
|
+
export declare function normalizeDocumentPageChrome(source?: Partial<WorkDocumentPageChrome> | null, legacy?: LegacyPageChrome): WorkDocumentPageChrome;
|
|
11
|
+
export declare function serializeDocumentPageChrome(chrome: WorkDocumentPageChrome): string;
|
|
12
|
+
export declare function parseDocumentPageChrome(source: string | undefined, legacy?: LegacyPageChrome, fallback?: WorkDocumentPageChrome): WorkDocumentPageChrome;
|
|
13
|
+
export declare function resolveDocumentPageChrome(layout: WorkDocumentSectionLayout, sectionPage: number, physicalPage: number): ResolvedDocumentPageChrome;
|
|
14
|
+
export declare function documentPageChromeLegacyFields(chrome: WorkDocumentPageChrome): LegacyPageChrome;
|
|
15
|
+
export declare function updateDocumentPageChromeVariant(chrome: WorkDocumentPageChrome, variant: WorkDocumentPageChromeVariant, patch: Partial<WorkDocumentPageChromeContent>): WorkDocumentPageChrome;
|
|
16
|
+
export declare function pageChromePlainText(source: string): string;
|
|
17
|
+
export declare function sanitizeDocumentPageChromeHtml(source: string | undefined): string;
|
|
18
|
+
export declare function plainTextToPageChromeHtml(source: string | undefined): string;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type WorkDocumentNote } from './work-document-notes';
|
|
2
|
+
import type { WorkDocumentColumns, WorkDocumentContent, WorkDocumentSectionLayout } from './work-types';
|
|
3
|
+
export interface WorkDocumentPageSegment {
|
|
4
|
+
sectionId: string;
|
|
5
|
+
html: string;
|
|
6
|
+
columns: WorkDocumentColumns;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkDocumentPageDescriptor {
|
|
9
|
+
key: string;
|
|
10
|
+
layout: WorkDocumentSectionLayout;
|
|
11
|
+
segments: WorkDocumentPageSegment[];
|
|
12
|
+
pageNumber: number;
|
|
13
|
+
physicalPage: number;
|
|
14
|
+
sectionPage: number;
|
|
15
|
+
blank: boolean;
|
|
16
|
+
footnotes: WorkDocumentNote[];
|
|
17
|
+
endnotes: WorkDocumentNote[];
|
|
18
|
+
}
|
|
19
|
+
export declare function documentPageDescriptors(content: WorkDocumentContent): WorkDocumentPageDescriptor[];
|