wendang-react 0.0.0-stage → 0.5.5
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/NOTICE.md +381 -0
- package/README.md +469 -2
- package/dist/bindings/yjs.js +5 -0
- package/dist/chunks/AnchoredPanel-D3nte06T.js +68 -0
- package/dist/chunks/MindMapCanvas-VWrxTy5Q.js +2070 -0
- package/dist/chunks/MindMapViewer-DqKu_Kuz.js +180 -0
- package/dist/chunks/SpreadsheetViewer-DN_QQGud.js +157 -0
- package/dist/chunks/code-highlight-BmaqTe1m.js +30 -0
- package/dist/chunks/code-highlight-engine-BFDzDPzy.js +40 -0
- package/dist/chunks/comment-hint-DN7LKJAn.js +296 -0
- package/dist/chunks/composition-state-Bl-U1R_2.js +40 -0
- package/dist/chunks/extensions-B-CVVQhp.js +4210 -0
- package/dist/chunks/fuzzy-match-DYQR-4w2.js +89 -0
- package/dist/chunks/hooks-C53Dp0pr.js +35 -0
- package/dist/chunks/host-C-V688Rq.js +197 -0
- package/dist/chunks/index-Ii536CFG.js +720 -0
- package/dist/chunks/katex-WjrodtTU.js +71 -0
- package/dist/chunks/mind-map-controller-B6SxK3GZ.js +479 -0
- package/dist/chunks/mind-map-delete-CVsxdXfs.js +31 -0
- package/dist/chunks/mind-map-input-CEWRz_t6.js +43 -0
- package/dist/chunks/mind-topic-text-BBNTbFSe.js +446 -0
- package/dist/chunks/nodes-iKqTGr_N.js +291 -0
- package/dist/chunks/popover-placement-D3xVYdkt.js +47 -0
- package/dist/chunks/worksheet-engine-TJ54m0KC.js +125 -0
- package/dist/chunks/worksheet-preview-DsDVWxIM.js +129 -0
- package/dist/document/viewer.js +287 -0
- package/dist/document.js +3620 -0
- package/dist/index.js +8 -0
- package/dist/mindmap/viewer.js +6 -0
- package/dist/mindmap.js +123 -0
- package/dist/shared.js +52 -0
- package/dist/spreadsheet/viewer.js +5 -0
- package/dist/spreadsheet/xlsx.js +299 -0
- package/dist/spreadsheet.js +120 -0
- package/dist/styles/callout.css +34 -0
- package/dist/styles/code-block.css +58 -0
- package/dist/styles/content-style.css +619 -0
- package/dist/styles/editor-interaction.css +621 -0
- package/dist/styles/file-video.css +12 -0
- package/dist/styles/image-preview.css +103 -0
- package/dist/styles/mind-map-block.css +14 -0
- package/dist/styles/mind-map-canvas.css +80 -0
- package/dist/styles/mind-map-comments.css +93 -0
- package/dist/styles/mind-map-details.css +7 -0
- package/dist/styles/mind-map-preview.css +7 -0
- package/dist/styles/mind-map-topic.css +112 -0
- package/dist/styles/page-picker.css +47 -0
- package/dist/styles/renderer.css +45 -0
- package/dist/styles/spreadsheet-editor.css +3 -0
- package/dist/styles/tokens.css +153 -0
- package/dist/styles/video-dialog.css +41 -0
- package/dist/styles/video-embed.css +35 -0
- package/dist/styles.css +2614 -0
- package/dist/types/bindings/yjs.d.ts +3 -0
- package/dist/types/document/viewer.d.ts +3 -0
- package/dist/types/document.d.ts +7 -0
- package/dist/types/editor/BlockAffordance.d.ts +47 -0
- package/dist/types/editor/CalloutView.d.ts +2 -0
- package/dist/types/editor/CodeBlockView.d.ts +9 -0
- package/dist/types/editor/DocumentColorPanel.d.ts +8 -0
- package/dist/types/editor/DocumentEditor.d.ts +71 -0
- package/dist/types/editor/ImagePreview.d.ts +10 -0
- package/dist/types/editor/LinkPopover.d.ts +21 -0
- package/dist/types/editor/PagePicker.d.ts +7 -0
- package/dist/types/editor/SelectionToolbar.d.ts +11 -0
- package/dist/types/editor/SlashMenu.d.ts +30 -0
- package/dist/types/editor/TableControls.d.ts +9 -0
- package/dist/types/editor/VideoEmbedDialog.d.ts +6 -0
- package/dist/types/editor/document-gestures.d.ts +13 -0
- package/dist/types/editor/extensions.d.ts +29 -0
- package/dist/types/editor/nodes.d.ts +20 -0
- package/dist/types/editor/same-document.d.ts +2 -0
- package/dist/types/engine/collab/presence.d.ts +1 -0
- package/dist/types/engine/editor/block-commands.d.ts +35 -0
- package/dist/types/engine/editor/block-conversion.d.ts +12 -0
- package/dist/types/engine/editor/block-drag.d.ts +16 -0
- package/dist/types/engine/editor/block-menu-placement.d.ts +16 -0
- package/dist/types/engine/editor/callout-commands.d.ts +4 -0
- package/dist/types/engine/editor/collab-change-origin.d.ts +2 -0
- package/dist/types/engine/editor/delete-block.d.ts +2 -0
- package/dist/types/engine/editor/extensions/block-format.d.ts +19 -0
- package/dist/types/engine/editor/extensions/block-handle.d.ts +17 -0
- package/dist/types/engine/editor/extensions/block-menu-highlight.d.ts +4 -0
- package/dist/types/engine/editor/extensions/block-selection.d.ts +117 -0
- package/dist/types/engine/editor/extensions/code-highlight.d.ts +2 -0
- package/dist/types/engine/editor/extensions/collab-cursor.d.ts +13 -0
- package/dist/types/engine/editor/extensions/ime-guard.d.ts +8 -0
- package/dist/types/engine/editor/extensions/inline-comments.d.ts +15 -0
- package/dist/types/engine/editor/extensions/paste-sanitizer.d.ts +4 -0
- package/dist/types/engine/editor/extensions/slash.d.ts +16 -0
- package/dist/types/engine/editor/extensions/table-interaction.d.ts +9 -0
- package/dist/types/engine/editor/extensions/upload-placeholder.d.ts +48 -0
- package/dist/types/engine/editor/image-preview-gesture.d.ts +3 -0
- package/dist/types/engine/editor/ime/composition-state.d.ts +9 -0
- package/dist/types/engine/editor/insert-block.d.ts +6 -0
- package/dist/types/engine/editor/insert-picker-logic.d.ts +13 -0
- package/dist/types/engine/editor/link-edit.d.ts +10 -0
- package/dist/types/engine/editor/mind-map-controller.d.ts +63 -0
- package/dist/types/engine/editor/mind-map-delete.d.ts +7 -0
- package/dist/types/engine/editor/mind-map-drag.d.ts +16 -0
- package/dist/types/engine/editor/mind-map-input.d.ts +16 -0
- package/dist/types/engine/editor/mind-map-selection.d.ts +11 -0
- package/dist/types/engine/editor/nodes/columns.d.ts +6 -0
- package/dist/types/engine/editor/nodes/file-nodeview.d.ts +4 -0
- package/dist/types/engine/editor/nodes/file.d.ts +2 -0
- package/dist/types/engine/editor/nodes/image-gallery.d.ts +2 -0
- package/dist/types/engine/editor/nodes/image-nodeview.d.ts +4 -0
- package/dist/types/engine/editor/nodes/image.d.ts +1 -0
- package/dist/types/engine/editor/nodes/inline-style.d.ts +4 -0
- package/dist/types/engine/editor/nodes/math-nodeview.d.ts +2 -0
- package/dist/types/engine/editor/nodes/math.d.ts +3 -0
- package/dist/types/engine/editor/nodes/mention.d.ts +2 -0
- package/dist/types/engine/editor/nodes/mind-map-schema.d.ts +6 -0
- package/dist/types/engine/editor/nodes/page-link.d.ts +2 -0
- package/dist/types/engine/editor/nodes/table-cell.d.ts +4 -0
- package/dist/types/engine/editor/nodes/video-embed-schema.d.ts +2 -0
- package/dist/types/engine/editor/popover-placement.d.ts +35 -0
- package/dist/types/engine/editor/table-clipboard.d.ts +3 -0
- package/dist/types/engine/editor/table-commands.d.ts +20 -0
- package/dist/types/engine/editor/table-geometry.d.ts +34 -0
- package/dist/types/engine/editor/table-menu-placement.d.ts +30 -0
- package/dist/types/engine/editor/tracked-target.d.ts +8 -0
- package/dist/types/engine/editor/trailing-paragraph.d.ts +2 -0
- package/dist/types/engine/host.d.ts +2 -0
- package/dist/types/engine/renderer/attachments.d.ts +11 -0
- package/dist/types/engine/renderer/katex.d.ts +7 -0
- package/dist/types/engine/renderer/lazy-visible.d.ts +11 -0
- package/dist/types/engine/shared/callout.d.ts +1 -0
- package/dist/types/engine/shared/code-block.d.ts +1 -0
- package/dist/types/engine/shared/code-highlight-engine.d.ts +2 -0
- package/dist/types/engine/shared/code-highlight.d.ts +8 -0
- package/dist/types/engine/shared/comment-hint-position.d.ts +20 -0
- package/dist/types/engine/shared/comment-hint.d.ts +2 -0
- package/dist/types/engine/shared/document-colors.d.ts +1 -0
- package/dist/types/engine/shared/fuzzy-match.d.ts +13 -0
- package/dist/types/engine/shared/image-gallery.d.ts +1 -0
- package/dist/types/engine/shared/inline-comments.d.ts +1 -0
- package/dist/types/engine/shared/mind-map-phase2.d.ts +1 -0
- package/dist/types/engine/shared/mind-map.d.ts +1 -0
- package/dist/types/engine/shared/mind-topic-text.d.ts +1 -0
- package/dist/types/engine/shared/modal-stack.d.ts +6 -0
- package/dist/types/engine/shared/page-candidates.d.ts +6 -0
- package/dist/types/engine/shared/pinyin.d.ts +6 -0
- package/dist/types/engine/shared/preview-items.d.ts +10 -0
- package/dist/types/engine/shared/safe-href.d.ts +1 -0
- package/dist/types/engine/shared/table-cell-format.d.ts +1 -0
- package/dist/types/engine/shared/table-layout.d.ts +1 -0
- package/dist/types/engine/shared/video-embed.d.ts +1 -0
- package/dist/types/engine/shared/video-feedback.d.ts +1 -0
- package/dist/types/engine/shared/workbook.d.ts +1 -0
- package/dist/types/engine/worksheets/worksheet-engine.d.ts +16 -0
- package/dist/types/engine/worksheets/worksheet-format.d.ts +20 -0
- package/dist/types/engine/worksheets/worksheet-preview.d.ts +17 -0
- package/dist/types/engine/worksheets/worksheet-xlsx.d.ts +21 -0
- package/dist/types/engine/wui/core/dialog.d.ts +5 -0
- package/dist/types/engine/wui/core/listbox.d.ts +8 -0
- package/dist/types/engine/wui/core/placement.d.ts +40 -0
- package/dist/types/hooks.d.ts +7 -0
- package/dist/types/host-types.d.ts +58 -0
- package/dist/types/host.d.ts +24 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/mindmap/Comments.d.ts +9 -0
- package/dist/types/mindmap/Details.d.ts +13 -0
- package/dist/types/mindmap/Field.d.ts +10 -0
- package/dist/types/mindmap/MindMapCanvas.d.ts +19 -0
- package/dist/types/mindmap/MindMapEditor.d.ts +30 -0
- package/dist/types/mindmap/MindMapViewer.d.ts +23 -0
- package/dist/types/mindmap/TopicLabel.d.ts +4 -0
- package/dist/types/mindmap/viewer.d.ts +2 -0
- package/dist/types/mindmap.d.ts +4 -0
- package/dist/types/renderer/CodeToolbar.d.ts +10 -0
- package/dist/types/renderer/DocumentViewer.d.ts +23 -0
- package/dist/types/renderer/media.d.ts +33 -0
- package/dist/types/shared.d.ts +12 -0
- package/dist/types/spreadsheet/SpreadsheetEditor.d.ts +23 -0
- package/dist/types/spreadsheet/SpreadsheetViewer.d.ts +13 -0
- package/dist/types/spreadsheet/viewer.d.ts +2 -0
- package/dist/types/spreadsheet/xlsx.d.ts +2 -0
- package/dist/types/spreadsheet.d.ts +3 -0
- package/dist/types/wui/AnchoredPanel.d.ts +14 -0
- package/dist/types/wui/Dropdown.d.ts +18 -0
- package/dist/types/wui/Icon.d.ts +7 -0
- package/dist/types/wui/Tooltip.d.ts +5 -0
- package/dist/types/wui/index.d.ts +69 -0
- package/package.json +122 -3
- package/third-party-notices/@fast-csv__format@4.3.5-LICENSE.txt +21 -0
- package/third-party-notices/@fast-csv__parse@4.3.6-LICENSE.txt +21 -0
- package/third-party-notices/@flatten-js__interval-tree@1.1.3-LICENSE.txt +21 -0
- package/third-party-notices/@floating-ui__core@1.8.0-LICENSE.txt +20 -0
- package/third-party-notices/@floating-ui__dom@1.8.0-LICENSE.txt +20 -0
- package/third-party-notices/@floating-ui__react-dom@2.1.9-LICENSE.txt +20 -0
- package/third-party-notices/@floating-ui__utils@0.2.12-LICENSE.txt +20 -0
- package/third-party-notices/@grpc__grpc-js@1.14.6-LICENSE.txt +201 -0
- package/third-party-notices/@grpc__proto-loader@0.8.1-LICENSE.txt +201 -0
- package/third-party-notices/@js-sdsl__ordered-map@4.4.2-LICENSE.txt +21 -0
- package/third-party-notices/@protobufjs__aspromise@1.1.2-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__base64@1.1.2-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__codegen@2.0.5-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__eventemitter@1.1.1-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__fetch@1.1.1-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__float@1.0.2-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__path@1.1.2-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__pool@1.1.0-LICENSE.txt +26 -0
- package/third-party-notices/@protobufjs__utf8@1.1.2-LICENSE.txt +26 -0
- package/third-party-notices/@radix-ui__primitive@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-arrow@1.1.17-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-collection@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-compose-refs@1.1.5-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-context@1.3.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-dialog@1.3.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-direction@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-dismissable-layer@1.2.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-dropdown-menu@2.2.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-focus-guards@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-focus-scope@1.3.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-hover-card@1.2.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-id@1.1.4-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-menu@2.2.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-popover@1.3.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-popper@1.4.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-portal@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-presence@1.1.11-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-primitive@2.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-roving-focus@1.2.1-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-separator@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-slot@1.5.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-callback-ref@1.1.5-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-controllable-state@1.3.0-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-effect-event@0.0.5-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-is-hydrated@0.1.3-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-layout-effect@1.1.4-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-rect@1.1.4-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__react-use-size@1.1.5-LICENSE.txt +21 -0
- package/third-party-notices/@radix-ui__rect@1.1.3-LICENSE.txt +21 -0
- package/third-party-notices/@tiptap__core@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-blockquote@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-bold@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-bullet-list@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-code-block@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-code@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-collaboration@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-document@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-dropcursor@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-gapcursor@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-hard-break@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-heading@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-horizontal-rule@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-image@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-italic@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-link@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-list-item@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-list-keymap@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-list@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-ordered-list@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-paragraph@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-placeholder@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-strike@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-table-cell@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-table-header@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-table-row@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-table@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-task-item@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-task-list@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-text@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extension-underline@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__extensions@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__pm@3.31.4-LICENSE.txt +21 -0
- package/third-party-notices/@tiptap__starter-kit@3.31.4-LICENSE.md.txt +21 -0
- package/third-party-notices/@tiptap__y-tiptap@3.0.7-LICENSE.txt +22 -0
- package/third-party-notices/@types__hast@3.0.5-LICENSE.txt +21 -0
- package/third-party-notices/@types__node@14.18.63-LICENSE.txt +21 -0
- package/third-party-notices/@types__node@26.6.2-LICENSE.txt +21 -0
- package/third-party-notices/@types__react-dom@19.3.0-LICENSE.txt +21 -0
- package/third-party-notices/@types__react@19.3.0-LICENSE.txt +21 -0
- package/third-party-notices/@types__unist@3.0.3-LICENSE.txt +21 -0
- package/third-party-notices/@univerjs__core@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__design@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__docs-ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__docs@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__drawing@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__engine-formula@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__engine-render@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__icons@1.46.0-LICENSE.txt +21 -0
- package/third-party-notices/@univerjs__network@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__preset-sheets-core@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__preset-sheets-filter@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__preset-sheets-sort@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__presets@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__rpc@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-filter-ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-filter@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-formula-ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-formula@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-numfmt-ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-numfmt@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-sort-ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-sort@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets-ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__sheets@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__telemetry@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__themes@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@univerjs__ui@1.1.0-LICENSE.txt +176 -0
- package/third-party-notices/@wendellhu__redi@1.1.3-LICENSE.txt +7 -0
- package/third-party-notices/ansi-regex@5.0.1-license.txt +9 -0
- package/third-party-notices/ansi-styles@4.3.0-license.txt +9 -0
- package/third-party-notices/archiver-utils@2.1.0-LICENSE.txt +22 -0
- package/third-party-notices/archiver-utils@3.0.4-LICENSE.txt +22 -0
- package/third-party-notices/archiver@5.3.2-LICENSE.txt +22 -0
- package/third-party-notices/aria-hidden@1.2.6-LICENSE.txt +21 -0
- package/third-party-notices/array-buffer-byte-length@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/arraybuffer.prototype.slice@1.0.4-LICENSE.txt +21 -0
- package/third-party-notices/async-function@1.0.0-LICENSE.txt +21 -0
- package/third-party-notices/async-lock@1.4.1-LICENSE.txt +22 -0
- package/third-party-notices/async@3.2.6-LICENSE.txt +19 -0
- package/third-party-notices/available-typed-arrays@1.0.7-LICENSE.txt +21 -0
- package/third-party-notices/balanced-match@1.0.2-LICENSE.md.txt +21 -0
- package/third-party-notices/base64-js@1.5.1-LICENSE.txt +21 -0
- package/third-party-notices/big-integer@1.6.52-LICENSE.txt +24 -0
- package/third-party-notices/bl@4.1.0-LICENSE.md.txt +13 -0
- package/third-party-notices/bluebird@3.4.7-LICENSE.txt +21 -0
- package/third-party-notices/brace-expansion@1.1.21-LICENSE.txt +21 -0
- package/third-party-notices/brace-expansion@2.1.7-LICENSE.txt +21 -0
- package/third-party-notices/buffer-crc32@0.2.13-LICENSE.txt +19 -0
- package/third-party-notices/buffer-indexof-polyfill@1.0.2-LICENSE.txt +22 -0
- package/third-party-notices/buffer@5.7.1-LICENSE.txt +21 -0
- package/third-party-notices/call-bind-apply-helpers@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/call-bind@1.0.9-LICENSE.txt +21 -0
- package/third-party-notices/call-bound@1.0.4-LICENSE.txt +21 -0
- package/third-party-notices/class-variance-authority@0.7.1-LICENSE.txt +190 -0
- package/third-party-notices/cliui@8.0.1-LICENSE.txt.txt +14 -0
- package/third-party-notices/clsx@2.1.1-license.txt +9 -0
- package/third-party-notices/cmdk@1.1.1-LICENSE.md.txt +21 -0
- package/third-party-notices/collapse-white-space@2.1.0-license.txt +22 -0
- package/third-party-notices/color-convert@2.0.1-LICENSE.txt +21 -0
- package/third-party-notices/color-name@1.1.4-LICENSE.txt +8 -0
- package/third-party-notices/commander@15.0.0-LICENSE.txt +22 -0
- package/third-party-notices/compress-commons@4.1.2-LICENSE.txt +22 -0
- package/third-party-notices/concat-map@0.0.1-LICENSE.txt +18 -0
- package/third-party-notices/core-util-is@1.0.3-LICENSE.txt +19 -0
- package/third-party-notices/crc-32@1.2.2-LICENSE.txt +201 -0
- package/third-party-notices/crc32-stream@4.0.3-LICENSE.txt +22 -0
- package/third-party-notices/csstype@3.2.3-LICENSE.txt +19 -0
- package/third-party-notices/data-view-buffer@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/data-view-byte-length@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/data-view-byte-offset@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/dayjs@1.11.23-LICENSE.txt +21 -0
- package/third-party-notices/decimal.js@10.6.0-LICENCE.md.txt +23 -0
- package/third-party-notices/define-data-property@1.1.4-LICENSE.txt +21 -0
- package/third-party-notices/define-properties@1.2.1-LICENSE.txt +21 -0
- package/third-party-notices/dequal@2.0.3-license.txt +21 -0
- package/third-party-notices/detect-node-es@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/devlop@1.1.0-license.txt +22 -0
- package/third-party-notices/dunder-proto@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/duplexer2@0.1.4-LICENSE.md.txt +26 -0
- package/third-party-notices/end-of-stream@1.4.5-LICENSE.txt +21 -0
- package/third-party-notices/es-abstract-get@1.0.0-LICENSE.txt +21 -0
- package/third-party-notices/es-abstract@1.24.2-LICENSE.txt +21 -0
- package/third-party-notices/es-define-property@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/es-errors@1.3.0-LICENSE.txt +21 -0
- package/third-party-notices/es-object-atoms@1.1.2-LICENSE.txt +21 -0
- package/third-party-notices/es-set-tostringtag@2.1.0-LICENSE.txt +21 -0
- package/third-party-notices/es-to-primitive@1.3.4-LICENSE.txt +22 -0
- package/third-party-notices/escalade@3.2.0-license.txt +9 -0
- package/third-party-notices/exceljs@4.4.0-LICENSE.txt +22 -0
- package/third-party-notices/fast-csv@4.3.6-LICENSE.txt +21 -0
- package/third-party-notices/fast-diff@1.3.0-LICENSE.txt +201 -0
- package/third-party-notices/for-each@0.3.5-LICENSE.txt +22 -0
- package/third-party-notices/fs-constants@1.0.0-LICENSE.txt +21 -0
- package/third-party-notices/fs.realpath@1.0.0-LICENSE.txt +43 -0
- package/third-party-notices/fstream@1.0.12-LICENSE.txt +15 -0
- package/third-party-notices/function-bind@1.1.2-LICENSE.txt +20 -0
- package/third-party-notices/function.prototype.name@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/functions-have-names@1.2.3-LICENSE.txt +21 -0
- package/third-party-notices/generator-function@2.0.1-LICENSE.md.txt +7 -0
- package/third-party-notices/get-caller-file@2.0.5-LICENSE.md.txt +6 -0
- package/third-party-notices/get-intrinsic@1.3.0-LICENSE.txt +21 -0
- package/third-party-notices/get-nonce@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/get-proto@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/get-symbol-description@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/glob@7.2.3-LICENSE.txt +21 -0
- package/third-party-notices/globalthis@1.0.4-LICENSE.txt +21 -0
- package/third-party-notices/gopd@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/graceful-fs@4.2.11-LICENSE.txt +15 -0
- package/third-party-notices/has-bigints@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/has-property-descriptors@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/has-proto@1.2.0-LICENSE.txt +21 -0
- package/third-party-notices/has-symbols@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/has-tostringtag@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/hasown@2.0.4-LICENSE.txt +21 -0
- package/third-party-notices/highlight.js@11.11.2-LICENSE.txt +29 -0
- package/third-party-notices/ieee754@1.2.1-LICENSE.txt +11 -0
- package/third-party-notices/immediate@3.0.6-LICENSE.txt.txt +20 -0
- package/third-party-notices/inflight@1.0.6-LICENSE.txt +15 -0
- package/third-party-notices/inherits@2.0.4-LICENSE.txt +16 -0
- package/third-party-notices/internal-slot@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/is-array-buffer@3.0.5-LICENSE.txt +21 -0
- package/third-party-notices/is-async-function@2.1.1-LICENSE.txt +20 -0
- package/third-party-notices/is-bigint@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/is-boolean-object@1.2.2-LICENSE.txt +22 -0
- package/third-party-notices/is-callable@1.2.7-LICENSE.txt +22 -0
- package/third-party-notices/is-data-view@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/is-date-object@1.1.0-LICENSE.txt +22 -0
- package/third-party-notices/is-document.all@1.0.0-LICENSE.txt +21 -0
- package/third-party-notices/is-finalizationregistry@1.1.1-LICENSE.txt +21 -0
- package/third-party-notices/is-fullwidth-code-point@3.0.0-license.txt +9 -0
- package/third-party-notices/is-generator-function@1.1.2-LICENSE.txt +20 -0
- package/third-party-notices/is-map@2.0.3-LICENSE.txt +21 -0
- package/third-party-notices/is-negative-zero@2.0.3-LICENSE.txt +20 -0
- package/third-party-notices/is-number-object@1.1.1-LICENSE.txt +22 -0
- package/third-party-notices/is-regex@1.2.1-LICENSE.txt +20 -0
- package/third-party-notices/is-set@2.0.3-LICENSE.txt +21 -0
- package/third-party-notices/is-shared-array-buffer@1.0.4-LICENSE.txt +21 -0
- package/third-party-notices/is-string@1.1.1-LICENSE.txt +22 -0
- package/third-party-notices/is-symbol@1.1.1-LICENSE.txt +22 -0
- package/third-party-notices/is-typed-array@1.1.15-LICENSE.txt +22 -0
- package/third-party-notices/is-weakmap@2.0.2-LICENSE.txt +21 -0
- package/third-party-notices/is-weakref@1.1.1-LICENSE.txt +21 -0
- package/third-party-notices/is-weakset@2.0.4-LICENSE.txt +21 -0
- package/third-party-notices/isarray@2.0.5-LICENSE.txt +21 -0
- package/third-party-notices/isomorphic.js@0.2.5-LICENSE.txt +21 -0
- package/third-party-notices/jszip@3.10.2-LICENSE.markdown.txt +651 -0
- package/third-party-notices/katex@0.18.9-LICENSE.txt +21 -0
- package/third-party-notices/kdbush@4.1.0-LICENSE.txt +15 -0
- package/third-party-notices/lazystream@1.0.1-LICENSE.txt +23 -0
- package/third-party-notices/lib0@0.2.119-LICENSE.txt +21 -0
- package/third-party-notices/lie@3.3.0-license.md.txt +7 -0
- package/third-party-notices/linkifyjs@4.3.3-LICENSE.txt +19 -0
- package/third-party-notices/listenercount@1.0.1-LICENSE.md.txt +5 -0
- package/third-party-notices/lodash-es@4.18.1-LICENSE.txt +47 -0
- package/third-party-notices/lodash.camelcase@4.3.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.defaults@4.2.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.difference@4.5.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.escaperegexp@4.1.2-LICENSE.txt +47 -0
- package/third-party-notices/lodash.flatten@4.4.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.groupby@4.6.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.isboolean@3.0.3-LICENSE.txt +22 -0
- package/third-party-notices/lodash.isequal@4.5.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.isfunction@3.0.9-LICENSE.txt +47 -0
- package/third-party-notices/lodash.isnil@4.0.0-LICENSE.txt +22 -0
- package/third-party-notices/lodash.isplainobject@4.0.6-LICENSE.txt +47 -0
- package/third-party-notices/lodash.isundefined@3.0.1-LICENSE.txt.txt +22 -0
- package/third-party-notices/lodash.union@4.6.0-LICENSE.txt +47 -0
- package/third-party-notices/lodash.uniq@4.5.0-LICENSE.txt +47 -0
- package/third-party-notices/long@5.3.2-LICENSE.txt +202 -0
- package/third-party-notices/lowlight@3.3.0-license.txt +22 -0
- package/third-party-notices/math-intrinsics@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/minimatch@3.1.5-LICENSE.txt +15 -0
- package/third-party-notices/minimatch@5.1.9-LICENSE.txt +15 -0
- package/third-party-notices/minimist@1.2.8-LICENSE.txt +18 -0
- package/third-party-notices/mkdirp@0.5.6-LICENSE.txt +21 -0
- package/third-party-notices/n-gram@2.0.2-license.txt +22 -0
- package/third-party-notices/normalize-path@3.0.0-LICENSE.txt +21 -0
- package/third-party-notices/numfmt@4.0.1-LICENSE.txt +19 -0
- package/third-party-notices/object-inspect@1.13.4-LICENSE.txt +21 -0
- package/third-party-notices/object-keys@1.1.1-LICENSE.txt +21 -0
- package/third-party-notices/object.assign@4.1.7-LICENSE.txt +21 -0
- package/third-party-notices/once@1.4.0-LICENSE.txt +15 -0
- package/third-party-notices/orderedmap@2.1.1-LICENSE.txt +19 -0
- package/third-party-notices/own-keys@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/pako@1.0.11-LICENSE.txt +21 -0
- package/third-party-notices/path-is-absolute@1.0.1-license.txt +21 -0
- package/third-party-notices/possible-typed-array-names@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/process-nextick-args@2.0.1-license.md.txt +19 -0
- package/third-party-notices/prosemirror-changeset@2.4.4-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-commands@1.7.2-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-dropcursor@1.8.4-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-gapcursor@1.4.1-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-history@1.5.1-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-inputrules@1.5.1-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-keymap@1.2.3-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-model@1.25.12-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-schema-list@1.5.1-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-state@1.4.4-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-tables@1.8.5-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-transform@1.12.2-LICENSE.txt +19 -0
- package/third-party-notices/prosemirror-view@1.42.6-LICENSE.txt +19 -0
- package/third-party-notices/protobufjs@7.6.6-LICENSE.txt +39 -0
- package/third-party-notices/quickselect@3.0.0-LICENSE.txt +15 -0
- package/third-party-notices/rbush@4.0.1-LICENSE.txt +21 -0
- package/third-party-notices/react-dom@19.3.1-LICENSE.txt +21 -0
- package/third-party-notices/react-remove-scroll@2.7.2-LICENSE.txt +21 -0
- package/third-party-notices/react-style-singleton@2.2.3-LICENSE.txt +21 -0
- package/third-party-notices/react@19.3.1-LICENSE.txt +21 -0
- package/third-party-notices/readable-stream@2.3.8-LICENSE.txt +47 -0
- package/third-party-notices/readable-stream@3.6.2-LICENSE.txt +47 -0
- package/third-party-notices/readdir-glob@1.1.3-LICENSE.txt +201 -0
- package/third-party-notices/reflect.getprototypeof@1.0.10-LICENSE.txt +21 -0
- package/third-party-notices/regexp.prototype.flags@1.5.4-LICENSE.txt +22 -0
- package/third-party-notices/require-directory@2.1.1-LICENSE.txt +22 -0
- package/third-party-notices/rimraf@2.7.1-LICENSE.txt +15 -0
- package/third-party-notices/rope-sequence@1.3.4-LICENSE.txt +19 -0
- package/third-party-notices/rxjs@7.8.2-LICENSE.txt.txt +202 -0
- package/third-party-notices/safe-array-concat@1.1.4-LICENSE.txt +21 -0
- package/third-party-notices/safe-buffer@5.1.2-LICENSE.txt +21 -0
- package/third-party-notices/safe-buffer@5.2.1-LICENSE.txt +21 -0
- package/third-party-notices/safe-push-apply@1.0.0-LICENSE.txt +21 -0
- package/third-party-notices/safe-regex-test@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/scheduler@0.28.0-LICENSE.txt +21 -0
- package/third-party-notices/set-function-length@1.2.2-LICENSE.txt +21 -0
- package/third-party-notices/set-function-name@2.0.2-LICENSE.txt +21 -0
- package/third-party-notices/set-proto@1.0.0-LICENSE.txt +21 -0
- package/third-party-notices/setimmediate@1.0.5-LICENSE.txt.txt +20 -0
- package/third-party-notices/side-channel-list@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/side-channel-map@1.0.1-LICENSE.txt +21 -0
- package/third-party-notices/side-channel-weakmap@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/side-channel@1.1.1-LICENSE.txt +21 -0
- package/third-party-notices/sonner@2.0.8-LICENSE.md.txt +21 -0
- package/third-party-notices/stop-iteration-iterator@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/string-width@4.2.3-license.txt +9 -0
- package/third-party-notices/string.prototype.trim@1.2.11-LICENSE.txt +21 -0
- package/third-party-notices/string.prototype.trimend@1.0.10-LICENSE.txt +21 -0
- package/third-party-notices/string.prototype.trimstart@1.0.8-LICENSE.txt +21 -0
- package/third-party-notices/string_decoder@1.1.1-LICENSE.txt +48 -0
- package/third-party-notices/string_decoder@1.3.0-LICENSE.txt +48 -0
- package/third-party-notices/strip-ansi@6.0.1-license.txt +9 -0
- package/third-party-notices/tar-stream@2.2.0-LICENSE.txt +21 -0
- package/third-party-notices/tiny-pinyin@1.3.2-LICENSE.txt +21 -0
- package/third-party-notices/tmp@0.2.7-LICENSE.txt +21 -0
- package/third-party-notices/traverse@0.3.10-LICENSE.txt +21 -0
- package/third-party-notices/trigram-utils@2.0.1-license.txt +22 -0
- package/third-party-notices/tslib@2.8.1-LICENSE.txt.txt +12 -0
- package/third-party-notices/typed-array-buffer@1.0.3-LICENSE.txt +21 -0
- package/third-party-notices/typed-array-byte-length@1.0.3-LICENSE.txt +21 -0
- package/third-party-notices/typed-array-byte-offset@1.0.5-LICENSE.txt +21 -0
- package/third-party-notices/typed-array-length@1.0.8-LICENSE.txt +21 -0
- package/third-party-notices/typedarray.prototype.slice@1.0.6-LICENSE.txt +21 -0
- package/third-party-notices/unbox-primitive@1.1.0-LICENSE.txt +21 -0
- package/third-party-notices/undici-types@8.9.0-LICENSE.txt +21 -0
- package/third-party-notices/unzipper@0.10.14-LICENSE.txt +25 -0
- package/third-party-notices/use-callback-ref@1.3.3-LICENSE.txt +21 -0
- package/third-party-notices/use-sidecar@1.1.3-LICENSE.txt +21 -0
- package/third-party-notices/util-deprecate@1.0.2-LICENSE.txt +24 -0
- package/third-party-notices/uuid@8.3.2-LICENSE.md.txt +9 -0
- package/third-party-notices/w3c-keyname@2.2.8-LICENSE.txt +19 -0
- package/third-party-notices/which-boxed-primitive@1.1.1-LICENSE.txt +21 -0
- package/third-party-notices/which-builtin-type@1.2.1-LICENSE.txt +21 -0
- package/third-party-notices/which-collection@1.0.2-LICENSE.txt +21 -0
- package/third-party-notices/which-typed-array@1.1.24-LICENSE.txt +22 -0
- package/third-party-notices/wrap-ansi@7.0.0-license.txt +9 -0
- package/third-party-notices/wrappy@1.0.2-LICENSE.txt +15 -0
- package/third-party-notices/xmlchars@2.2.0-LICENSE.txt +18 -0
- package/third-party-notices/y-protocols@1.0.7-LICENSE.txt +21 -0
- package/third-party-notices/y18n@5.0.8-LICENSE.txt +13 -0
- package/third-party-notices/yargs-parser@21.1.1-LICENSE.txt.txt +14 -0
- package/third-party-notices/yargs@17.7.3-LICENSE.txt +21 -0
- package/third-party-notices/yjs@13.6.33-LICENSE.txt +23 -0
- package/third-party-notices/zip-stream@4.1.1-LICENSE.txt +22 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function videoProblem(value: string, attempted?: boolean): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'wendang/internal/workbook';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@univerjs/preset-sheets-core/lib/index.css';
|
|
2
|
+
import '@univerjs/preset-sheets-filter/lib/index.css';
|
|
3
|
+
import '@univerjs/preset-sheets-sort/lib/index.css';
|
|
4
|
+
import type { WorkbookDocument } from '../shared/workbook';
|
|
5
|
+
export declare function createWorksheetEngine(container: HTMLElement, initial: WorkbookDocument, onChange: () => void, options?: {
|
|
6
|
+
theme?: 'light' | 'dark';
|
|
7
|
+
}): {
|
|
8
|
+
snapshot: () => WorkbookDocument;
|
|
9
|
+
setEditable: (editable: boolean) => import("@univerjs/preset-sheets-core").FWorkbook;
|
|
10
|
+
setTheme: (theme: "light" | "dark") => void;
|
|
11
|
+
isEditing: () => boolean;
|
|
12
|
+
finishEditing(): Promise<void>;
|
|
13
|
+
settleCalculation(): Promise<void>;
|
|
14
|
+
replace(doc: WorkbookDocument): void;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { WorkbookCell, WorkbookDocument, WorkbookSheet } from '../shared/workbook';
|
|
2
|
+
export declare function cellStyleData(doc: WorkbookDocument, sheet: WorkbookSheet, r: number, c: number): Record<string, unknown>;
|
|
3
|
+
export declare function cellDisplay(cell: WorkbookCell | null | undefined, style?: Record<string, unknown>): {
|
|
4
|
+
text: string;
|
|
5
|
+
note?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function safeColor(value: unknown): string | undefined;
|
|
8
|
+
export declare const FILTER_RESOURCE = "SHEET_FILTER_PLUGIN";
|
|
9
|
+
export interface SheetFilter {
|
|
10
|
+
ref: {
|
|
11
|
+
startRow: number;
|
|
12
|
+
endRow: number;
|
|
13
|
+
startColumn: number;
|
|
14
|
+
endColumn: number;
|
|
15
|
+
};
|
|
16
|
+
cachedFilteredOut?: number[];
|
|
17
|
+
filterColumns?: unknown[];
|
|
18
|
+
}
|
|
19
|
+
export declare function workbookFilters(doc: WorkbookDocument): Record<string, SheetFilter>;
|
|
20
|
+
export declare function dateSerial(value: Date): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WorkbookDocument, WorkbookSheet } from '../shared/workbook';
|
|
2
|
+
export declare function columnName(index: number): string;
|
|
3
|
+
export declare function previewAxes(doc: WorkbookDocument, sheet: WorkbookSheet, showAll: boolean): {
|
|
4
|
+
rows: number[];
|
|
5
|
+
columns: number[];
|
|
6
|
+
filtered: number;
|
|
7
|
+
hasFilter: boolean;
|
|
8
|
+
hasHidden: boolean;
|
|
9
|
+
};
|
|
10
|
+
export interface PreviewMerge {
|
|
11
|
+
sourceRow: number;
|
|
12
|
+
sourceColumn: number;
|
|
13
|
+
rowspan: number;
|
|
14
|
+
colspan: number;
|
|
15
|
+
hidden: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function previewMerges(sheet: WorkbookSheet, rows: number[], columns: number[]): Map<string, PreviewMerge>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type WorkbookDocument } from '../shared/workbook';
|
|
2
|
+
export interface XlsxInspection {
|
|
3
|
+
sheets: Array<{
|
|
4
|
+
name: string;
|
|
5
|
+
rows: number;
|
|
6
|
+
columns: number;
|
|
7
|
+
cells: number;
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
warnings: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface XlsxImport {
|
|
13
|
+
doc: WorkbookDocument;
|
|
14
|
+
warnings: string[];
|
|
15
|
+
inspection: XlsxInspection;
|
|
16
|
+
}
|
|
17
|
+
export declare function importXlsx(file: {
|
|
18
|
+
size: number;
|
|
19
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
20
|
+
}): Promise<XlsxImport>;
|
|
21
|
+
export declare function exportXlsx(raw: WorkbookDocument): Promise<Uint8Array<ArrayBuffer>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface WuiOption {
|
|
2
|
+
value: unknown;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function moveActive(current: number, count: number, step: 1 | -1, isDisabled?: (index: number) => boolean): number;
|
|
7
|
+
export declare function filterOptions(options: readonly WuiOption[], query: string): WuiOption[];
|
|
8
|
+
export declare function optionLabel(options: readonly WuiOption[], value: unknown, fallback?: string): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type WuiPlacement = 'bottom' | 'top' | 'left' | 'right' | 'bl' | 'br' | 'tl' | 'tr';
|
|
2
|
+
export interface WuiRect {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export interface WuiSize {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
export interface WuiViewport {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}
|
|
16
|
+
export interface WuiPlaced {
|
|
17
|
+
left: number;
|
|
18
|
+
top: number;
|
|
19
|
+
side: 'top' | 'bottom' | 'left' | 'right';
|
|
20
|
+
arrow: number;
|
|
21
|
+
arrowShift: number;
|
|
22
|
+
}
|
|
23
|
+
interface Alignment {
|
|
24
|
+
side: 'top' | 'bottom' | 'left' | 'right';
|
|
25
|
+
align: 'start' | 'center' | 'end';
|
|
26
|
+
}
|
|
27
|
+
export declare function resolvePlacement(position: WuiPlacement | undefined): Alignment;
|
|
28
|
+
export declare function placePanel(input: {
|
|
29
|
+
trigger: WuiRect;
|
|
30
|
+
panel: WuiSize;
|
|
31
|
+
position?: WuiPlacement;
|
|
32
|
+
gap?: number;
|
|
33
|
+
margin?: number;
|
|
34
|
+
viewport: WuiViewport;
|
|
35
|
+
point?: {
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
};
|
|
39
|
+
}): WuiPlaced;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { CommentItem } from 'wendang/types';
|
|
2
|
+
export type AttachmentFetcher = (id: string) => Promise<Blob>;
|
|
3
|
+
export interface ReferenceCandidate {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ContentHost {
|
|
8
|
+
scope?: string;
|
|
9
|
+
attachments?: {
|
|
10
|
+
fetch: AttachmentFetcher;
|
|
11
|
+
uploadImage?: (file: File) => Promise<{
|
|
12
|
+
id: string;
|
|
13
|
+
alt: string;
|
|
14
|
+
}>;
|
|
15
|
+
uploadFile?: (file: File) => Promise<{
|
|
16
|
+
id: string;
|
|
17
|
+
filename: string;
|
|
18
|
+
mimeType: string;
|
|
19
|
+
size: number;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
references?: {
|
|
23
|
+
search: (query: string, context: {
|
|
24
|
+
spaceId?: string;
|
|
25
|
+
excludeId?: string;
|
|
26
|
+
}) => Promise<ReferenceCandidate[]>;
|
|
27
|
+
resolve: (id: string, label: string) => {
|
|
28
|
+
href?: string;
|
|
29
|
+
external?: boolean;
|
|
30
|
+
} | null;
|
|
31
|
+
navigate?: (href: string) => void | Promise<unknown>;
|
|
32
|
+
};
|
|
33
|
+
location?: {
|
|
34
|
+
current: () => string;
|
|
35
|
+
subscribe: (listener: () => void) => () => void;
|
|
36
|
+
createLink?: (target: {
|
|
37
|
+
blockId: string;
|
|
38
|
+
topicId: string;
|
|
39
|
+
}) => string | null;
|
|
40
|
+
};
|
|
41
|
+
preferences?: {
|
|
42
|
+
get: (key: string) => string | null;
|
|
43
|
+
set: (key: string, value: string) => void;
|
|
44
|
+
};
|
|
45
|
+
comments?: {
|
|
46
|
+
list: (resourceId: string) => Promise<{
|
|
47
|
+
items: CommentItem[];
|
|
48
|
+
}>;
|
|
49
|
+
create: (resourceId: string, body: string, parentId?: string, target?: {
|
|
50
|
+
blockId: string;
|
|
51
|
+
topicId: string;
|
|
52
|
+
}) => Promise<unknown>;
|
|
53
|
+
update?: (commentId: string, body: string) => Promise<unknown>;
|
|
54
|
+
resolve: (commentId: string, resolved: boolean) => Promise<unknown>;
|
|
55
|
+
remove: (commentId: string) => Promise<unknown>;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export declare const unavailableAttachment: AttachmentFetcher;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ContentHost } from './host-types';
|
|
3
|
+
import './styles.css';
|
|
4
|
+
export interface ContentContext {
|
|
5
|
+
host: ContentHost;
|
|
6
|
+
theme: 'light' | 'dark';
|
|
7
|
+
accent: string;
|
|
8
|
+
portal: HTMLElement | null;
|
|
9
|
+
}
|
|
10
|
+
export declare function useContentContext(): ContentContext;
|
|
11
|
+
export declare function useContentHost(): ContentHost;
|
|
12
|
+
export declare function ContentContextBridge({ value, children }: {
|
|
13
|
+
value: ContentContext;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export interface ContentProviderProps {
|
|
17
|
+
host?: ContentHost;
|
|
18
|
+
theme?: 'light' | 'dark';
|
|
19
|
+
accent?: string;
|
|
20
|
+
unstyled?: boolean;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function ContentProvider({ host, theme, accent, unstyled, children, className }: ContentProviderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ContentProvider, useContentContext, useContentHost } from './host';
|
|
2
|
+
export type { ContentProviderProps } from './host';
|
|
3
|
+
export type { ContentHost, AttachmentFetcher, ReferenceCandidate } from './host-types';
|
|
4
|
+
export { unavailableAttachment } from './host-types';
|
|
5
|
+
export type * from 'wendang/types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function MindMapComments({ pageId, blockId, topicId, topicLabel, canComment, onClose, onChanged }: {
|
|
2
|
+
pageId: string;
|
|
3
|
+
blockId: string;
|
|
4
|
+
topicId: string;
|
|
5
|
+
topicLabel: string;
|
|
6
|
+
canComment?: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onChanged?: () => void;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MindMapModel } from 'wendang/mindmap';
|
|
2
|
+
import type { MindMapController } from '../engine/editor/mind-map-controller';
|
|
3
|
+
export declare function MindMapDetails({ model, id, controller, range, onClose, onNotice }: {
|
|
4
|
+
model: MindMapModel;
|
|
5
|
+
id: string;
|
|
6
|
+
controller?: MindMapController;
|
|
7
|
+
range: {
|
|
8
|
+
from: number;
|
|
9
|
+
to: number;
|
|
10
|
+
};
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onNotice?: (message: string) => void;
|
|
13
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MindMapController } from '../engine/editor/mind-map-controller';
|
|
2
|
+
export declare function MindMapField({ id, field, value, controller, label, onFocus, onCommand }: {
|
|
3
|
+
id: string;
|
|
4
|
+
field: 'title' | 'description' | 'note';
|
|
5
|
+
value: string;
|
|
6
|
+
controller?: MindMapController;
|
|
7
|
+
label: string;
|
|
8
|
+
onFocus?: () => void;
|
|
9
|
+
onCommand?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type MindMapModel } from 'wendang/mindmap';
|
|
2
|
+
import { type MindMapController } from '../engine/editor/mind-map-controller';
|
|
3
|
+
import '../engine/shared/mind-topic-text';
|
|
4
|
+
import type { AttachmentFetcher } from '../host-types';
|
|
5
|
+
export interface MindMapCanvasProps {
|
|
6
|
+
model: MindMapModel;
|
|
7
|
+
controller?: MindMapController;
|
|
8
|
+
allowExport?: boolean;
|
|
9
|
+
showSaveHint?: boolean;
|
|
10
|
+
saveStatus?: string;
|
|
11
|
+
pageId?: string;
|
|
12
|
+
canComment?: boolean;
|
|
13
|
+
openComments?: boolean;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
onCommentsChanged?: () => void;
|
|
16
|
+
fetchAttachment?: AttachmentFetcher;
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function MindMapCanvas(props: MindMapCanvasProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type MindMapJson } from 'wendang/mindmap';
|
|
2
|
+
import type { Awareness } from 'y-protocols/awareness';
|
|
3
|
+
import type { MindMapViewState } from 'wendang/mindmap';
|
|
4
|
+
export interface MindMapEditorProps {
|
|
5
|
+
value?: MindMapJson;
|
|
6
|
+
defaultValue?: MindMapJson;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
allowExport?: boolean;
|
|
9
|
+
resourceId?: string;
|
|
10
|
+
canComment?: boolean;
|
|
11
|
+
saveStatus?: string;
|
|
12
|
+
showSaveHint?: boolean;
|
|
13
|
+
openComments?: boolean;
|
|
14
|
+
collabAwareness?: Awareness | null;
|
|
15
|
+
viewState?: MindMapViewState;
|
|
16
|
+
onCommentsChanged?: () => void;
|
|
17
|
+
onChange?: (value: MindMapJson) => void;
|
|
18
|
+
onReady?: () => void;
|
|
19
|
+
onError?: (error: Error) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface MindMapEditorHandle {
|
|
22
|
+
isReady: () => boolean;
|
|
23
|
+
whenReady: () => Promise<void>;
|
|
24
|
+
getSnapshot: () => MindMapJson;
|
|
25
|
+
prepareSnapshot: () => Promise<MindMapJson>;
|
|
26
|
+
undo: () => boolean;
|
|
27
|
+
redo: () => boolean;
|
|
28
|
+
focus: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const MindMapEditor: import("react").ForwardRefExoticComponent<MindMapEditorProps & import("react").RefAttributes<MindMapEditorHandle>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type MindMapJson, type MindMapModel } from 'wendang/mindmap';
|
|
2
|
+
import type { MindMapController } from '../engine/editor/mind-map-controller';
|
|
3
|
+
import type { AttachmentFetcher } from '../host-types';
|
|
4
|
+
import '../engine/shared/mind-topic-text';
|
|
5
|
+
export interface MindMapViewerProps {
|
|
6
|
+
value?: MindMapModel;
|
|
7
|
+
modelValue?: MindMapModel;
|
|
8
|
+
height?: number;
|
|
9
|
+
fetchAttachment?: AttachmentFetcher;
|
|
10
|
+
}
|
|
11
|
+
export declare function MindMapViewer({ value, modelValue, height, fetchAttachment }: MindMapViewerProps): import("react").JSX.Element;
|
|
12
|
+
export interface MindMapBlockProps {
|
|
13
|
+
node?: MindMapJson;
|
|
14
|
+
value?: MindMapJson;
|
|
15
|
+
modelValue?: MindMapJson;
|
|
16
|
+
allowExport?: boolean;
|
|
17
|
+
pageId?: string;
|
|
18
|
+
canComment?: boolean;
|
|
19
|
+
onCommentsChanged?: () => void;
|
|
20
|
+
fetchAttachment?: AttachmentFetcher;
|
|
21
|
+
controller?: MindMapController;
|
|
22
|
+
}
|
|
23
|
+
export declare function MindMapBlock(props: MindMapBlockProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { MindMapEditor } from './mindmap/MindMapEditor';
|
|
2
|
+
export type { MindMapEditorProps, MindMapEditorHandle } from './mindmap/MindMapEditor';
|
|
3
|
+
export { createMindMapController } from './engine/editor/mind-map-controller';
|
|
4
|
+
export type { MindMapController, MindMapContext } from './engine/editor/mind-map-controller';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CodeBlockDisplay } from '../engine/shared/code-block';
|
|
2
|
+
export declare function CodeToolbar({ text, language, editable, canCopy, display, onLanguage, onDisplay }: {
|
|
3
|
+
text: string;
|
|
4
|
+
language: string;
|
|
5
|
+
editable: boolean;
|
|
6
|
+
canCopy: boolean;
|
|
7
|
+
display: CodeBlockDisplay;
|
|
8
|
+
onLanguage: (value: string) => void;
|
|
9
|
+
onDisplay: (value: CodeBlockDisplay) => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ProseMirrorNode, CommentItem } from 'wendang/types';
|
|
2
|
+
import { type InlineMark } from 'wendang/shared';
|
|
3
|
+
import type { AttachmentFetcher } from '../host-types';
|
|
4
|
+
export interface DocumentViewerProps {
|
|
5
|
+
value?: ProseMirrorNode | null;
|
|
6
|
+
modelValue?: ProseMirrorNode | null;
|
|
7
|
+
inlineComments?: CommentItem[];
|
|
8
|
+
inlineMarks?: Map<number, InlineMark[]>;
|
|
9
|
+
activeCommentId?: string | null;
|
|
10
|
+
onMarkClick?: (id: string) => void;
|
|
11
|
+
attachmentFetcher?: AttachmentFetcher;
|
|
12
|
+
resolvePageLink?: (id: string, label: string) => {
|
|
13
|
+
href?: string;
|
|
14
|
+
external?: boolean;
|
|
15
|
+
} | null;
|
|
16
|
+
pageId?: string;
|
|
17
|
+
spaceId?: string;
|
|
18
|
+
canComment?: boolean;
|
|
19
|
+
allowExport?: boolean;
|
|
20
|
+
onCommentsChanged?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function DocumentViewer(props: DocumentViewerProps): import("react").JSX.Element;
|
|
23
|
+
export declare const DocRenderer: typeof DocumentViewer;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type AttachmentFetcher } from '../host-types';
|
|
2
|
+
export declare function useAttachment(id?: string, fetcher?: AttachmentFetcher): {
|
|
3
|
+
url: string;
|
|
4
|
+
error: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function AttachmentImage({ id, alt, width, fetcher, src, align, aspectRatio, galleryScale, className }: {
|
|
7
|
+
id?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
fetcher?: AttachmentFetcher;
|
|
12
|
+
src?: string;
|
|
13
|
+
allowExport?: boolean;
|
|
14
|
+
align?: 'left' | 'center' | 'right' | null;
|
|
15
|
+
aspectRatio?: number | null;
|
|
16
|
+
galleryScale?: number | null;
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function MathView({ latex, block }: {
|
|
20
|
+
latex: string;
|
|
21
|
+
block?: boolean;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
export declare function FileView({ id, filename, mimeType, size, fetcher, allowExport }: {
|
|
24
|
+
id: string;
|
|
25
|
+
filename: string;
|
|
26
|
+
mimeType?: string;
|
|
27
|
+
size?: number;
|
|
28
|
+
fetcher?: AttachmentFetcher;
|
|
29
|
+
allowExport?: boolean;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
export declare function VideoView({ attrs }: {
|
|
32
|
+
attrs: Record<string, unknown>;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from 'wendang/shared';
|
|
2
|
+
export * from './engine/shared/code-block';
|
|
3
|
+
export * from './engine/shared/code-highlight';
|
|
4
|
+
export * from './engine/shared/code-highlight-engine';
|
|
5
|
+
export * from './engine/shared/fuzzy-match';
|
|
6
|
+
export * from './engine/shared/inline-comments';
|
|
7
|
+
export * from './engine/shared/modal-stack';
|
|
8
|
+
export * from './engine/shared/pinyin';
|
|
9
|
+
export * from './engine/editor/ime/composition-state';
|
|
10
|
+
export * from './engine/editor/popover-placement';
|
|
11
|
+
export * from './engine/editor/mind-map-input';
|
|
12
|
+
export * from './engine/editor/mind-map-delete';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type WorkbookDocument } from 'wendang/spreadsheet';
|
|
2
|
+
export interface SpreadsheetEditorProps {
|
|
3
|
+
value?: WorkbookDocument;
|
|
4
|
+
defaultValue?: WorkbookDocument;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
theme?: 'light' | 'dark';
|
|
7
|
+
onChange?: (value: WorkbookDocument) => void;
|
|
8
|
+
onReady?: () => void;
|
|
9
|
+
onError?: (error: Error) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface SpreadsheetEditorHandle {
|
|
12
|
+
isReady: () => boolean;
|
|
13
|
+
whenReady: () => Promise<void>;
|
|
14
|
+
getSnapshot: () => WorkbookDocument;
|
|
15
|
+
snapshot: () => WorkbookDocument;
|
|
16
|
+
prepareSnapshot: () => Promise<WorkbookDocument>;
|
|
17
|
+
isEditing: () => boolean;
|
|
18
|
+
finishEditing: () => Promise<void>;
|
|
19
|
+
settleCalculation: () => Promise<void>;
|
|
20
|
+
replace: (value: WorkbookDocument) => void;
|
|
21
|
+
dispose: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const SpreadsheetEditor: import("react").ForwardRefExoticComponent<SpreadsheetEditorProps & import("react").RefAttributes<SpreadsheetEditorHandle>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type WorkbookDocument } from 'wendang/spreadsheet';
|
|
2
|
+
export interface SpreadsheetViewerProps {
|
|
3
|
+
value?: WorkbookDocument;
|
|
4
|
+
modelValue?: WorkbookDocument;
|
|
5
|
+
allowExport?: boolean;
|
|
6
|
+
standalone?: boolean;
|
|
7
|
+
pageId?: string;
|
|
8
|
+
exportSnapshot?: () => Promise<{
|
|
9
|
+
title: string;
|
|
10
|
+
doc: WorkbookDocument;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export declare function SpreadsheetViewer({ value, modelValue, allowExport, standalone, exportSnapshot }: SpreadsheetViewerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare function AnchoredPanel({ anchor, onClose, align, prefer, gap, label, role, className, portal: portalOverride, children, onKeyDown }: {
|
|
3
|
+
anchor: HTMLElement | null;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
align?: 'start' | 'center' | 'end';
|
|
6
|
+
prefer?: 'above' | 'below';
|
|
7
|
+
gap?: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
role?: 'dialog' | 'menu' | 'listbox' | 'tooltip';
|
|
10
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
11
|
+
className?: string;
|
|
12
|
+
portal?: HTMLElement | null | (() => HTMLElement | null);
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type WButtonProps } from './index';
|
|
3
|
+
export interface DropdownItem {
|
|
4
|
+
value: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DropdownGroup {
|
|
10
|
+
title?: string;
|
|
11
|
+
items: DropdownItem[];
|
|
12
|
+
}
|
|
13
|
+
export declare function WDropdown({ label, groups, onSelect, buttonProps }: {
|
|
14
|
+
label: ReactNode;
|
|
15
|
+
groups: DropdownGroup[];
|
|
16
|
+
onSelect: (value: string) => void;
|
|
17
|
+
buttonProps?: WButtonProps;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { WIcon } from './Icon';
|
|
3
|
+
export { WIcon };
|
|
4
|
+
type Variant = 'default' | 'text' | 'primary' | 'outline';
|
|
5
|
+
type Size = 'mini' | 'small' | 'medium';
|
|
6
|
+
export interface WButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
7
|
+
variant?: Variant;
|
|
8
|
+
size?: Size;
|
|
9
|
+
narrow?: boolean;
|
|
10
|
+
block?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
htmlType?: 'button' | 'submit' | 'reset';
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const WButton: import("react").ForwardRefExoticComponent<WButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export declare function WAlert({ children, closable, closeLabel, onClose, tone, className }: {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
closable?: boolean;
|
|
19
|
+
closeLabel?: string;
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
tone?: 'info' | 'success' | 'warning' | 'danger';
|
|
22
|
+
className?: string;
|
|
23
|
+
}): import("react").JSX.Element | null;
|
|
24
|
+
interface Layer {
|
|
25
|
+
contains: (target: Node) => boolean;
|
|
26
|
+
children: Set<Layer>;
|
|
27
|
+
}
|
|
28
|
+
export declare function LayerProvider({ layer, children }: {
|
|
29
|
+
layer: Layer;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
export declare function useLayer(anchor: React.RefObject<HTMLElement | null>, panel: React.RefObject<HTMLElement | null>, open: boolean, onClose: () => void): Layer;
|
|
33
|
+
export declare function WPopover({ label, children, onClose, align, ariaLabel, disabled }: {
|
|
34
|
+
label?: ReactNode;
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
onClose?: () => void;
|
|
37
|
+
align?: 'start' | 'end';
|
|
38
|
+
ariaLabel?: string;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
export interface WSelectOption {
|
|
42
|
+
value: string | number;
|
|
43
|
+
label: string;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function WSelect({ label, ariaLabel, value, onChange, options, disabled, size, searchable, width, className }: {
|
|
47
|
+
label?: string;
|
|
48
|
+
ariaLabel?: string;
|
|
49
|
+
value: string | number;
|
|
50
|
+
onChange: (value: string) => void;
|
|
51
|
+
options: WSelectOption[];
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
size?: Size;
|
|
54
|
+
searchable?: boolean;
|
|
55
|
+
width?: number | string;
|
|
56
|
+
className?: string;
|
|
57
|
+
}): import("react").JSX.Element;
|
|
58
|
+
export declare function WDialog({ title, children, onClose, fullscreen, hideFooter, footer, workspace, className, ariaLabel, escToClose }: {
|
|
59
|
+
title: ReactNode;
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
onClose: () => void;
|
|
62
|
+
fullscreen?: boolean;
|
|
63
|
+
hideFooter?: boolean;
|
|
64
|
+
footer?: ReactNode;
|
|
65
|
+
workspace?: boolean;
|
|
66
|
+
className?: string;
|
|
67
|
+
ariaLabel?: string;
|
|
68
|
+
escToClose?: boolean;
|
|
69
|
+
}): import("react").JSX.Element | null;
|