@docyrus/ui-pro-ai-assistant 0.0.1 → 0.0.2
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/dist/chunk-VSTHZ22Q.js +165 -0
- package/dist/chunk-VSTHZ22Q.js.map +1 -0
- package/dist/components/assistant-animations.d.ts +12 -0
- package/dist/components/assistant-dialogs.d.ts +30 -0
- package/dist/components/code-view.d.ts +30 -0
- package/dist/components/create-agent-task.d.ts +9 -0
- package/dist/components/create-new-work-version.d.ts +7 -0
- package/dist/components/extract-web.d.ts +9 -0
- package/dist/components/forward-to-agent.d.ts +8 -0
- package/dist/components/generate-chart.d.ts +11 -0
- package/dist/components/generative-action-button.d.ts +11 -0
- package/dist/components/generative-tool.d.ts +61 -0
- package/dist/components/generative-ui-object.d.ts +26 -0
- package/dist/components/input-area.d.ts +49 -0
- package/dist/components/json-schema-layout.d.ts +6 -0
- package/dist/components/list-item-card.d.ts +17 -0
- package/dist/components/mermaid-diagram.d.ts +8 -0
- package/dist/components/preview-image.d.ts +16 -0
- package/dist/components/request-approval.d.ts +9 -0
- package/dist/components/request-user-input.d.ts +31 -0
- package/dist/components/search-web.d.ts +8 -0
- package/dist/components/sheet-command.d.ts +11 -0
- package/dist/components/shell-canvas.d.ts +16 -0
- package/dist/components/show-advanced-data-table.d.ts +34 -0
- package/dist/components/show-generated-content-options.d.ts +16 -0
- package/dist/components/show-people-cards.d.ts +8 -0
- package/dist/components/subagent-tool.d.ts +22 -0
- package/dist/components/text-editor-tool.d.ts +23 -0
- package/dist/components/work-canvas.d.ts +13 -0
- package/dist/components/work-card.d.ts +9 -0
- package/dist/docy-assistant.d.ts +5 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/use-assistant-api.d.ts +44 -0
- package/dist/hooks/use-deployment-data.d.ts +31 -0
- package/dist/hooks/use-project-state.d.ts +64 -0
- package/dist/hooks/use-session-state.d.ts +31 -0
- package/dist/hooks/use-speech-recognition.d.ts +25 -0
- package/dist/hooks/use-ui-state.d.ts +29 -0
- package/dist/hooks/use-works-state.d.ts +22 -0
- package/dist/i18n/context.d.ts +11 -0
- package/dist/i18n/index.d.ts +13 -0
- package/dist/i18n/types.d.ts +18 -0
- package/dist/i18n/use-translation.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +17 -20
- package/dist/index.js.map +1 -1
- package/dist/internal/plate-editor/editor/auth-context.d.ts +6 -0
- package/dist/internal/plate-editor/editor/editor-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/editor-kit.d.ts +5 -0
- package/dist/internal/plate-editor/editor/plate-editor.d.ts +20 -0
- package/dist/internal/plate-editor/editor/plate-types.d.ts +70 -0
- package/dist/internal/plate-editor/editor/plugins/ai-kit.d.ts +98 -0
- package/dist/internal/plate-editor/editor/plugins/autoformat-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/basic-blocks-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/basic-blocks-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/basic-marks-base-kit.d.ts +17 -0
- package/dist/internal/plate-editor/editor/plugins/basic-marks-kit.d.ts +17 -0
- package/dist/internal/plate-editor/editor/plugins/basic-nodes-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/block-menu-kit.d.ts +165 -0
- package/dist/internal/plate-editor/editor/plugins/block-placeholder-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/block-selection-kit.d.ts +137 -0
- package/dist/internal/plate-editor/editor/plugins/callout-base-kit.d.ts +20 -0
- package/dist/internal/plate-editor/editor/plugins/callout-kit.d.ts +20 -0
- package/dist/internal/plate-editor/editor/plugins/code-block-base-kit.d.ts +7 -0
- package/dist/internal/plate-editor/editor/plugins/code-block-kit.d.ts +7 -0
- package/dist/internal/plate-editor/editor/plugins/column-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/column-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/comment-base-kit.d.ts +47 -0
- package/dist/internal/plate-editor/editor/plugins/comment-kit.d.ts +71 -0
- package/dist/internal/plate-editor/editor/plugins/copilot-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/cursor-overlay-kit.d.ts +11 -0
- package/dist/internal/plate-editor/editor/plugins/date-base-kit.d.ts +19 -0
- package/dist/internal/plate-editor/editor/plugins/date-kit.d.ts +19 -0
- package/dist/internal/plate-editor/editor/plugins/discussion-kit.d.ts +55 -0
- package/dist/internal/plate-editor/editor/plugins/dnd-kit.d.ts +20 -0
- package/dist/internal/plate-editor/editor/plugins/docx-export-kit.d.ts +19 -0
- package/dist/internal/plate-editor/editor/plugins/docx-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/emoji-kit.d.ts +5 -0
- package/dist/internal/plate-editor/editor/plugins/exit-break-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/floating-toolbar-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/font-base-kit.d.ts +13 -0
- package/dist/internal/plate-editor/editor/plugins/font-kit.d.ts +13 -0
- package/dist/internal/plate-editor/editor/plugins/indent-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/indent-kit.d.ts +5 -0
- package/dist/internal/plate-editor/editor/plugins/link-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/link-kit.d.ts +68 -0
- package/dist/internal/plate-editor/editor/plugins/list-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/list-kit.d.ts +8 -0
- package/dist/internal/plate-editor/editor/plugins/markdown-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/math-base-kit.d.ts +9 -0
- package/dist/internal/plate-editor/editor/plugins/math-kit.d.ts +9 -0
- package/dist/internal/plate-editor/editor/plugins/media-base-kit.d.ts +25 -0
- package/dist/internal/plate-editor/editor/plugins/media-kit.d.ts +38 -0
- package/dist/internal/plate-editor/editor/plugins/mention-base-kit.d.ts +11 -0
- package/dist/internal/plate-editor/editor/plugins/mention-kit.d.ts +11 -0
- package/dist/internal/plate-editor/editor/plugins/slash-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/suggestion-base-kit.d.ts +32 -0
- package/dist/internal/plate-editor/editor/plugins/suggestion-kit.d.ts +53 -0
- package/dist/internal/plate-editor/editor/plugins/table-base-kit.d.ts +77 -0
- package/dist/internal/plate-editor/editor/plugins/table-kit.d.ts +138 -0
- package/dist/internal/plate-editor/editor/plugins/toc-base-kit.d.ts +1 -0
- package/dist/internal/plate-editor/editor/plugins/toc-kit.d.ts +5 -0
- package/dist/internal/plate-editor/editor/plugins/toggle-base-kit.d.ts +12 -0
- package/dist/internal/plate-editor/editor/plugins/toggle-kit.d.ts +16 -0
- package/dist/internal/plate-editor/editor/transforms.d.ts +8 -0
- package/dist/internal/plate-editor/editor/use-chat.d.ts +26 -0
- package/dist/internal/plate-editor/hooks/index.d.ts +3 -0
- package/dist/internal/plate-editor/hooks/use-copy-to-clipboard.d.ts +6 -0
- package/dist/internal/plate-editor/hooks/use-is-touch-device.d.ts +1 -0
- package/dist/internal/plate-editor/hooks/use-lock-scroll.d.ts +1 -0
- package/dist/internal/plate-editor/hooks/use-media-query.d.ts +2 -0
- package/dist/internal/plate-editor/hooks/use-mounted.d.ts +6 -0
- package/dist/internal/plate-editor/hooks/use-on-click-outside.d.ts +18 -0
- package/dist/internal/plate-editor/hooks/use-upload-file.d.ts +21 -0
- package/dist/internal/plate-editor/i18n/context.d.ts +12 -0
- package/dist/internal/plate-editor/i18n/index.d.ts +3 -0
- package/dist/internal/plate-editor/i18n/types.d.ts +58 -0
- package/dist/internal/plate-editor/i18n/use-translation.d.ts +4 -0
- package/dist/internal/plate-editor/index.d.ts +9 -0
- package/dist/internal/plate-editor/lib/ai-output-converter.d.ts +57 -0
- package/dist/internal/plate-editor/lib/download-file.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/ai-chat-editor.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/ai-menu.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/ai-node.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/ai-toolbar-button.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/alert-dialog.d.ts +50 -0
- package/dist/internal/plate-editor/plate-ui/align-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/avatar.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/block-context-menu.d.ts +8 -0
- package/dist/internal/plate-editor/plate-ui/block-discussion.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/block-draggable.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/block-list-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/block-list.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/block-menu.d.ts +167 -0
- package/dist/internal/plate-editor/plate-ui/block-selection.d.ts +5 -0
- package/dist/internal/plate-editor/plate-ui/block-suggestion.d.ts +16 -0
- package/dist/internal/plate-editor/plate-ui/blockquote-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/blockquote-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/button.d.ts +40 -0
- package/dist/internal/plate-editor/plate-ui/calendar.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/callout-node-static.d.ts +6 -0
- package/dist/internal/plate-editor/plate-ui/callout-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/caption.d.ts +10 -0
- package/dist/internal/plate-editor/plate-ui/checkbox.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/code-block-node-static.d.ts +12 -0
- package/dist/internal/plate-editor/plate-ui/code-block-node.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/code-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/code-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/column-node-static.d.ts +12 -0
- package/dist/internal/plate-editor/plate-ui/column-node.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/command.d.ts +25 -0
- package/dist/internal/plate-editor/plate-ui/comment-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/comment-node.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/comment-toolbar-button.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/comment.d.ts +45 -0
- package/dist/internal/plate-editor/plate-ui/cursor-overlay.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/date-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/date-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/dialog.d.ts +52 -0
- package/dist/internal/plate-editor/plate-ui/dropdown-menu.d.ts +36 -0
- package/dist/internal/plate-editor/plate-ui/editor-static.d.ts +6 -0
- package/dist/internal/plate-editor/plate-ui/editor.d.ts +15 -0
- package/dist/internal/plate-editor/plate-ui/emoji-node.d.ts +7 -0
- package/dist/internal/plate-editor/plate-ui/emoji-toolbar-button.d.ts +20 -0
- package/dist/internal/plate-editor/plate-ui/equation-node-static.d.ts +14 -0
- package/dist/internal/plate-editor/plate-ui/equation-node.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/equation-toolbar-button.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/export-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/fixed-toolbar-buttons.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/fixed-toolbar.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/floating-discussion.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/floating-toolbar-buttons.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/floating-toolbar.d.ts +6 -0
- package/dist/internal/plate-editor/plate-ui/font-color-toolbar-button.d.ts +15 -0
- package/dist/internal/plate-editor/plate-ui/font-size-toolbar-button.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/ghost-text.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/heading-node-static.d.ts +7 -0
- package/dist/internal/plate-editor/plate-ui/heading-node.d.ts +11 -0
- package/dist/internal/plate-editor/plate-ui/highlight-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/highlight-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/history-toolbar-button.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/hover-card.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/hr-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/hr-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/import-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/indent-toolbar-button.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/inline-combobox.d.ts +37 -0
- package/dist/internal/plate-editor/plate-ui/input.d.ts +7 -0
- package/dist/internal/plate-editor/plate-ui/insert-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/label.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/line-height-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/link-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/link-node.d.ts +7 -0
- package/dist/internal/plate-editor/plate-ui/link-toolbar-button.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/link-toolbar.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/list-toolbar-button.d.ts +5 -0
- package/dist/internal/plate-editor/plate-ui/mark-toolbar-button.d.ts +6 -0
- package/dist/internal/plate-editor/plate-ui/media-audio-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/media-audio-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/media-embed-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/media-file-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/media-file-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/media-image-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/media-image-node.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/media-placeholder-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/media-preview-dialog.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/media-toolbar-button.d.ts +4 -0
- package/dist/internal/plate-editor/plate-ui/media-toolbar.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/media-upload-toast.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/media-video-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/media-video-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/mention-node-static.d.ts +5 -0
- package/dist/internal/plate-editor/plate-ui/mention-node.d.ts +11 -0
- package/dist/internal/plate-editor/plate-ui/menu.d.ts +103 -0
- package/dist/internal/plate-editor/plate-ui/mode-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/more-toolbar-button.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/paragraph-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/paragraph-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/popover.d.ts +11 -0
- package/dist/internal/plate-editor/plate-ui/progress.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/remote-cursor-overlay.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/resize-handle.d.ts +17 -0
- package/dist/internal/plate-editor/plate-ui/separator.d.ts +8 -0
- package/dist/internal/plate-editor/plate-ui/slash-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/spinner.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/suggestion-node-static.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/suggestion-node.d.ts +5 -0
- package/dist/internal/plate-editor/plate-ui/suggestion-toolbar-button.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/table-node-static.d.ts +8 -0
- package/dist/internal/plate-editor/plate-ui/table-node.d.ts +9 -0
- package/dist/internal/plate-editor/plate-ui/table-toolbar-button.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/tabs.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/textarea.d.ts +10 -0
- package/dist/internal/plate-editor/plate-ui/toc-node-static.d.ts +7 -0
- package/dist/internal/plate-editor/plate-ui/toc-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/toc-sidebar.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/toggle-node-static.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/toggle-node.d.ts +2 -0
- package/dist/internal/plate-editor/plate-ui/toggle-toolbar-button.d.ts +3 -0
- package/dist/internal/plate-editor/plate-ui/toggle.d.ts +1 -0
- package/dist/internal/plate-editor/plate-ui/toolbar.d.ts +39 -0
- package/dist/internal/plate-editor/plate-ui/tooltip.d.ts +19 -0
- package/dist/internal/plate-editor/plate-ui/turn-into-toolbar-button.d.ts +63 -0
- package/dist/internal/plate-editor/types/index.d.ts +1 -0
- package/dist/internal/plate-editor/vite.d.ts +4 -0
- package/dist/internal/sheets/components/univer-sheets.d.ts +61 -0
- package/dist/internal/sheets/i18n/context.d.ts +11 -0
- package/dist/internal/sheets/i18n/index.d.ts +13 -0
- package/dist/internal/sheets/i18n/types.d.ts +18 -0
- package/dist/internal/sheets/i18n/use-translation.d.ts +2 -0
- package/dist/internal/sheets/index.d.ts +5 -0
- package/dist/internal/sheets/types/index.d.ts +259 -0
- package/dist/internal/sheets/xlsx.d.ts +40 -0
- package/dist/lib/api-client.d.ts +17 -0
- package/dist/lib/assistant-api-actions.d.ts +57 -0
- package/dist/lib/assistant-config.d.ts +39 -0
- package/dist/lib/class-utils.d.ts +22 -0
- package/dist/lib/index.d.ts +7 -0
- package/dist/lib/message-utils.d.ts +40 -0
- package/dist/types/index.d.ts +214 -0
- package/dist/views/assistant-view.d.ts +82 -0
- package/dist/views/canvas-app.d.ts +5 -0
- package/dist/views/canvas-code.d.ts +9 -0
- package/dist/views/canvas-deep-research.d.ts +8 -0
- package/dist/views/canvas-image.d.ts +13 -0
- package/dist/views/canvas-record-view.d.ts +10 -0
- package/dist/views/canvas-spreadsheet.d.ts +13 -0
- package/dist/views/canvas-text.d.ts +8 -0
- package/dist/views/canvas.d.ts +12 -0
- package/dist/views/chat-panel.d.ts +56 -0
- package/dist/views/index.d.ts +14 -0
- package/dist/views/memories-panel.d.ts +6 -0
- package/dist/views/message-list.d.ts +31 -0
- package/dist/views/project-detail.d.ts +31 -0
- package/dist/views/projects-panel.d.ts +15 -0
- package/dist/views/sessions-list.d.ts +15 -0
- package/dist/views/sidebar-content.d.ts +22 -0
- package/dist/views/work-detail.d.ts +9 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.js +55 -0
- package/dist/vite.js.map +1 -0
- package/dist/worker.d.ts +2 -0
- package/dist/worker.js +3 -0
- package/dist/worker.js.map +1 -0
- package/package.json +12 -5
- package/src/internal/plate-editor/editor/editor-kit.tsx +1 -1
- package/src/internal/plate-editor/editor/plugins/ai-kit.tsx +1 -1
- package/src/internal/plate-editor/editor/plugins/comment-kit.tsx +2 -2
- package/src/internal/plate-editor/editor/plugins/copilot-kit.tsx +1 -1
- package/src/internal/plate-editor/editor/plugins/markdown-kit.tsx +1 -1
- package/src/internal/plate-editor/editor/transforms.ts +4 -4
- package/src/internal/plate-editor/plate-ui/ai-chat-editor.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/ai-menu.tsx +1 -1
- package/src/internal/plate-editor/plate-ui/ai-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/alert-dialog.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/align-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/block-context-menu.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/block-discussion.tsx +1 -1
- package/src/internal/plate-editor/plate-ui/block-draggable.tsx +9 -8
- package/src/internal/plate-editor/plate-ui/block-list-static.tsx +0 -1
- package/src/internal/plate-editor/plate-ui/block-menu.tsx +3 -5
- package/src/internal/plate-editor/plate-ui/block-suggestion.tsx +6 -6
- package/src/internal/plate-editor/plate-ui/button.tsx +17 -6
- package/src/internal/plate-editor/plate-ui/caption.tsx +0 -1
- package/src/internal/plate-editor/plate-ui/code-block-node.tsx +2 -4
- package/src/internal/plate-editor/plate-ui/command.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/comment.tsx +2 -2
- package/src/internal/plate-editor/plate-ui/date-node.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/dialog.tsx +33 -14
- package/src/internal/plate-editor/plate-ui/dropdown-menu.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/editor.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/export-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/fixed-toolbar.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/floating-discussion.tsx +20 -20
- package/src/internal/plate-editor/plate-ui/floating-toolbar.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/font-color-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/font-size-toolbar-button.tsx +1 -3
- package/src/internal/plate-editor/plate-ui/history-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/import-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/indent-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/input.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/insert-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/line-height-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/link-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/link-toolbar.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/list-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/mark-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/media-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/media-toolbar.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/menu.tsx +16 -9
- package/src/internal/plate-editor/plate-ui/mode-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/popover.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/remote-cursor-overlay.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/resize-handle.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/separator.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/slash-node.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/suggestion-node-static.tsx +1 -1
- package/src/internal/plate-editor/plate-ui/suggestion-node.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/table-node-static.tsx +0 -1
- package/src/internal/plate-editor/plate-ui/table-node.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/table-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/textarea.tsx +0 -1
- package/src/internal/plate-editor/plate-ui/toc-node-static.tsx +2 -2
- package/src/internal/plate-editor/plate-ui/toc-sidebar.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/toggle-toolbar-button.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/toolbar.tsx +0 -2
- package/src/internal/plate-editor/plate-ui/tooltip.tsx +0 -1
- package/src/internal/plate-editor/plate-ui/turn-into-toolbar-button.tsx +0 -2
- package/src/lib/assistant-config.tsx +6 -2
- package/src/vite.ts +1 -221
- package/src/worker.ts +203 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type FloatingToolbarState } from '@platejs/floating';
|
|
3
|
+
import { Toolbar } from './toolbar';
|
|
4
|
+
export declare function FloatingToolbar({ children, ref: refProp, state, ...props }: ComponentProps<typeof Toolbar> & {
|
|
5
|
+
state?: FloatingToolbarState;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { DropdownMenu } from './dropdown-menu';
|
|
3
|
+
export declare function FontColorToolbarButton(props: ComponentProps<typeof DropdownMenu>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function ColorIcon({ group, value }: {
|
|
5
|
+
group: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const textColorItems: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const backgroundColorItems: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FontSizeToolbarButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
2
|
+
export declare function HeadingElementStatic({ children, variant, ...props }: SlateElementProps & {
|
|
3
|
+
variant?: 'h1' | 'h2' | 'h3';
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function H1ElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function H2ElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function H3ElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type PlateElementProps } from 'platejs/react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const headingVariants: (props?: ({
|
|
4
|
+
isFirstBlock?: boolean | null | undefined;
|
|
5
|
+
variant?: "h1" | "h2" | "h3" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare function HeadingElement({ attributes, variant, ...props }: PlateElementProps & VariantProps<typeof headingVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function H1Element(props: PlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function H2Element(props: PlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function H3Element(props: PlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ToolbarButton } from './toolbar';
|
|
3
|
+
export declare function RedoToolbarButton(props: ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function UndoToolbarButton(props: ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from '@docyrus/ui-pro-shared/hover-card';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ToolbarButton } from './toolbar';
|
|
3
|
+
export declare function IndentToolbarButton(props: ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function OutdentToolbarButton(props: ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ComponentProps, type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type TElement } from 'platejs';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { Ariakit } from './menu';
|
|
5
|
+
type FilterFn = (item: {
|
|
6
|
+
value: string;
|
|
7
|
+
group?: string;
|
|
8
|
+
keywords?: string[];
|
|
9
|
+
label?: string;
|
|
10
|
+
}, search: string) => boolean;
|
|
11
|
+
type InlineComboboxProps = {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
element: TElement;
|
|
14
|
+
trigger: string;
|
|
15
|
+
filter?: FilterFn | false;
|
|
16
|
+
hideWhenNoValue?: boolean;
|
|
17
|
+
showTrigger?: boolean;
|
|
18
|
+
value?: string;
|
|
19
|
+
setValue?: (value: string) => void;
|
|
20
|
+
};
|
|
21
|
+
declare function InlineCombobox({ children, element, filter, hideWhenNoValue, setValue: setValueProp, showTrigger, trigger, value: valueProp }: InlineComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function InlineComboboxInput({ className, ref: refProp, ...props }: ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const comboboxVariants: (props?: ({
|
|
24
|
+
variant?: "default" | "emoji" | "mention" | "slash" | null | undefined;
|
|
25
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
|
+
declare function InlineComboboxContent({ className, variant, ...props }: ComponentProps<typeof Ariakit.ComboboxPopover> & VariantProps<typeof comboboxVariants>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function InlineComboboxItem({ className, focusEditor, group, keywords, label, onClick, ...props }: {
|
|
28
|
+
focusEditor?: boolean;
|
|
29
|
+
group?: string;
|
|
30
|
+
keywords?: string[];
|
|
31
|
+
label?: string;
|
|
32
|
+
} & Ariakit.ComboboxItemProps & Required<Pick<Ariakit.ComboboxItemProps, 'value'>>): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
declare function InlineComboboxEmpty({ children, className }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element | null;
|
|
34
|
+
declare function InlineComboboxGroup({ className, ...props }: ComponentProps<typeof Ariakit.ComboboxGroup>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function InlineComboboxGroupLabel({ className, ...props }: ComponentProps<typeof Ariakit.ComboboxGroupLabel>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare const InlineComboboxRow: (props: Ariakit.ComboboxRowProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
37
|
+
export { InlineCombobox, InlineComboboxContent, InlineComboboxEmpty, InlineComboboxGroup, InlineComboboxGroupLabel, InlineComboboxInput, InlineComboboxItem, InlineComboboxRow };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const inputVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "search" | "flat" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type InputProps = ComponentProps<'input'> & VariantProps<typeof inputVariants>;
|
|
7
|
+
export declare function Input({ className, variant, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Label } from '@docyrus/ui-pro-shared/label';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LinkFloatingToolbar(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ToolbarButton } from './toolbar';
|
|
3
|
+
export declare function BulletedListToolbarButton(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function NumberedListToolbarButton(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function TodoListToolbarButton(props: ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ToolbarButton } from './toolbar';
|
|
3
|
+
export declare function MarkToolbarButton({ clear, nodeType, ...props }: ComponentProps<typeof ToolbarButton> & {
|
|
4
|
+
nodeType: string;
|
|
5
|
+
clear?: string[] | string;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type TCaptionElement, type TImageElement, type TResizableProps } from 'platejs';
|
|
2
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
3
|
+
export declare function ImageElementStatic(props: SlateElementProps<TImageElement & TCaptionElement & TResizableProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ImagePreview(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MediaUploadToast(): null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type TCaptionElement, type TResizableProps, type TVideoElement } from 'platejs';
|
|
2
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
3
|
+
export declare function MediaVideoElementStatic(props: SlateElementProps<TVideoElement & TCaptionElement & TResizableProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type TMentionElement } from 'platejs';
|
|
2
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
3
|
+
export declare function MentionElementStatic({ prefix, ...props }: SlateElementProps<TMentionElement> & {
|
|
4
|
+
prefix?: string;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TElement } from 'platejs';
|
|
2
|
+
import { type PlateElementProps } from 'platejs/react';
|
|
3
|
+
type TMentionElement = TElement & {
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
type TMentionInputElement = TElement;
|
|
7
|
+
export declare function MentionElement(props: PlateElementProps<TMentionElement> & {
|
|
8
|
+
prefix?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function MentionInputElement(props: PlateElementProps<TMentionInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
import * as Ariakit from '@ariakit/react';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export type Action = {
|
|
5
|
+
filterItems?: boolean;
|
|
6
|
+
focusEditor?: boolean;
|
|
7
|
+
group?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
items?: Action[];
|
|
10
|
+
keywords?: string[];
|
|
11
|
+
label?: string;
|
|
12
|
+
shortcut?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ActionGroup = {
|
|
16
|
+
group?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
};
|
|
19
|
+
export type MenuProps = Ariakit.MenuProviderProps & {
|
|
20
|
+
trigger?: ReactNode;
|
|
21
|
+
value?: string;
|
|
22
|
+
onOpenChange?: Ariakit.MenuProviderProps['setOpen'];
|
|
23
|
+
onRootMenuClose?: () => void;
|
|
24
|
+
onValueChange?: Ariakit.ComboboxProviderProps['setValue'];
|
|
25
|
+
onValuesChange?: Ariakit.MenuProviderProps['setValues'];
|
|
26
|
+
};
|
|
27
|
+
export declare function Menu({ children, trigger, value, onOpenChange, onRootMenuClose: _onRootMenuClose, onValueChange, onValuesChange, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function MenuTrigger({ children, icon, label, ...props }: ComponentProps<typeof Ariakit.MenuButton> & {
|
|
29
|
+
icon?: ReactNode;
|
|
30
|
+
label?: ReactNode;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare const menuVariants: (props?: ({
|
|
33
|
+
animateZoom?: boolean | null | undefined;
|
|
34
|
+
variant?: "default" | "ai" | "aiSub" | null | undefined;
|
|
35
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
36
|
+
export type MenuContentProps = Ariakit.MenuProps & VariantProps<typeof menuVariants> & {
|
|
37
|
+
animateZoom?: boolean;
|
|
38
|
+
onClickOutside?: (event: globalThis.MouseEvent) => void;
|
|
39
|
+
};
|
|
40
|
+
export declare function MenuContent({ animateZoom, children, className, ref, variant, onClickOutside, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare function MenuSeparator(props: ComponentProps<typeof Ariakit.MenuSeparator>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function MenuGroup({ label, ...props }: ComponentProps<typeof Ariakit.MenuGroup> & {
|
|
43
|
+
label?: ReactNode;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function MenuShortcut({ ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
declare const menuItemVariants: (props?: ({
|
|
47
|
+
isEmpty?: boolean | null | undefined;
|
|
48
|
+
variant?: "default" | null | undefined;
|
|
49
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
50
|
+
export type MenuItemProps = Omit<Ariakit.ComboboxItemProps, 'store'> & {
|
|
51
|
+
checked?: boolean;
|
|
52
|
+
group?: string;
|
|
53
|
+
icon?: ReactNode;
|
|
54
|
+
label?: string;
|
|
55
|
+
name?: string;
|
|
56
|
+
parentGroup?: string;
|
|
57
|
+
preventClose?: boolean;
|
|
58
|
+
shortcut?: ReactNode;
|
|
59
|
+
shortcutEnter?: boolean;
|
|
60
|
+
value?: string;
|
|
61
|
+
} & VariantProps<typeof menuItemVariants>;
|
|
62
|
+
export declare function MenuItem({ checked, className, group, icon, isEmpty, label, name, parentGroup, preventClose, shortcut, shortcutEnter, variant, ...props }: Omit<Ariakit.ComboboxItemProps, 'store'> & {
|
|
63
|
+
checked?: boolean;
|
|
64
|
+
group?: string;
|
|
65
|
+
icon?: ReactNode;
|
|
66
|
+
label?: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
parentGroup?: string;
|
|
69
|
+
preventClose?: boolean;
|
|
70
|
+
shortcut?: ReactNode;
|
|
71
|
+
shortcutEnter?: boolean;
|
|
72
|
+
value?: string;
|
|
73
|
+
} & VariantProps<typeof menuItemVariants>): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export declare const comboboxVariants: (props?: ({
|
|
75
|
+
variant?: "default" | "ai" | null | undefined;
|
|
76
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
77
|
+
export declare function ComboboxContent({ className, variant, ...props }: ComponentProps<'div'> & VariantProps<typeof comboboxVariants>): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
declare const comboboxListVariants: (props?: ({
|
|
79
|
+
variant?: "default" | "ai" | null | undefined;
|
|
80
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
81
|
+
export declare function ComboboxList({ className, variant, ...props }: ComponentProps<typeof Ariakit.ComboboxList> & VariantProps<typeof comboboxListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export declare function ComboboxInput({ children, ...props }: ComponentProps<typeof Ariakit.Combobox>): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
export declare function ComboboxEmpty(): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
export * as Ariakit from '@ariakit/react';
|
|
85
|
+
export declare function filterMenuItems({ items, ...group }: Action, searchValue: string): Action[];
|
|
86
|
+
export declare function filterMenuGroups(menuGroups: Action[], searchValue: string): Action[];
|
|
87
|
+
export declare function useComboboxValueState(): readonly [string, (value: string) => void];
|
|
88
|
+
export declare function useMenuSide(): string;
|
|
89
|
+
export declare function useContextMenu(anchorRect: {
|
|
90
|
+
x: number;
|
|
91
|
+
y: number;
|
|
92
|
+
}): {
|
|
93
|
+
store: any;
|
|
94
|
+
getAnchorRect: () => {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
};
|
|
98
|
+
show: () => void;
|
|
99
|
+
};
|
|
100
|
+
export declare function useMenuStore(): {
|
|
101
|
+
store: any;
|
|
102
|
+
show: (anchorElement: HTMLElement) => void;
|
|
103
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MoreToolbarButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
4
|
+
declare const popoverVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "combobox" | "media" | "equation" | "equationInline" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Popover({ ...props }: ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function PopoverTrigger({ ...props }: ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverAnchor({ ...props }: ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function PopoverContent({ align, className, sideOffset, variant, ...props }: ComponentProps<typeof PopoverPrimitive.Content> & VariantProps<typeof popoverVariants>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger, popoverVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Progress } from '@docyrus/ui-pro-shared/progress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RemoteCursorOverlay(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { Resizable as ResizablePrimitive, type ResizeHandle as ResizeHandlePrimitive } from '@platejs/resizable';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export declare const mediaResizeHandleVariants: (props?: ({
|
|
5
|
+
direction?: "left" | "right" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare const resizeHandleVariants: (props?: ({
|
|
8
|
+
direction?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
type ResizeHandleProps = ComponentProps<typeof ResizeHandlePrimitive> & VariantProps<typeof resizeHandleVariants>;
|
|
11
|
+
export declare function ResizeHandle({ className, options, ...props }: ResizeHandleProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
declare const resizableVariants: (props?: ({
|
|
13
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
type ResizableProps = ComponentProps<typeof ResizablePrimitive> & VariantProps<typeof resizableVariants>;
|
|
16
|
+
export declare function Resizable({ align, className, ...props }: ResizableProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
4
|
+
declare const separatorVariants: (props?: ({
|
|
5
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare function Separator({ className, decorative, orientation, ...props }: ComponentProps<typeof SeparatorPrimitive.Root> & VariantProps<typeof separatorVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner } from '@docyrus/ui-pro-shared/spinner';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type TSuggestionText } from 'platejs';
|
|
2
|
+
import { type PlateLeafProps, type RenderNodeWrapper } from 'platejs/react';
|
|
3
|
+
import { type SuggestionConfig } from '../editor/plugins/suggestion-kit';
|
|
4
|
+
export declare function SuggestionLeaf(props: PlateLeafProps<TSuggestionText>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const SuggestionLineBreak: RenderNodeWrapper<SuggestionConfig>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SuggestionToolbarButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type TTableCellElement, type TTableElement } from 'platejs';
|
|
2
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
3
|
+
export declare function TableElementStatic(props: SlateElementProps<TTableElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function TableRowElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function TableCellElementStatic({ isHeader, ...props }: SlateElementProps<TTableCellElement> & {
|
|
6
|
+
isHeader?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TableCellHeaderElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { type TTableCellElement } from 'platejs';
|
|
3
|
+
import { type PlateElementProps } from 'platejs/react';
|
|
4
|
+
export declare const TableElement: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare function TableRowElement(props: PlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function TableCellElement({ isHeader, ...props }: PlateElementProps<TTableCellElement> & {
|
|
7
|
+
isHeader?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function TableCellHeaderElement(props: ComponentProps<typeof TableCellElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from '@docyrus/ui-pro-shared/tabs';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { TextareaAutosize as ReactTextareaAutosize } from '@platejs/caption/react';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export declare const textareaVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "ai" | "equation" | "equationInline" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type TextareaAutosizeProps = ComponentProps<typeof ReactTextareaAutosize> & VariantProps<typeof textareaVariants>;
|
|
8
|
+
export declare function Textarea({ className, variant, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type TextareaProps = ComponentProps<'textarea'> & VariantProps<typeof textareaVariants>;
|
|
10
|
+
export declare function TextareaAutosize({ children: _children, className, variant, ...props }: TextareaAutosizeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
2
|
+
export declare function TocElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
/**
|
|
4
|
+
* DOCX-compatible TOC component.
|
|
5
|
+
* Renders TOC items as anchor links for proper Word internal navigation.
|
|
6
|
+
*/
|
|
7
|
+
export declare function TocElementDocx(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TocSidebar(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toggle, toggleVariants } from '@docyrus/ui-pro-shared/toggle';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithoutRef, type ElementType, type ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { Toolbar as ToolbarPrimitive, Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
4
|
+
import { DropdownMenuRadioGroup } from './dropdown-menu';
|
|
5
|
+
import { Tooltip, TooltipTrigger } from './tooltip';
|
|
6
|
+
export declare function Toolbar({ className, ...props }: ComponentProps<typeof ToolbarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function ToolbarToggleGroup({ className, ...props }: ComponentProps<typeof ToolbarPrimitive.ToolbarToggleGroup>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ToolbarLink({ className, ...props }: ComponentProps<typeof ToolbarPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ToolbarSeparator({ className, ...props }: ComponentProps<typeof ToolbarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const toolbarButtonVariants: (props?: ({
|
|
11
|
+
size?: "default" | "sm" | "lg" | "none" | null | undefined;
|
|
12
|
+
variant?: "default" | "outline" | "media" | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
|
+
declare const dropdownArrowVariants: (props?: ({
|
|
15
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
16
|
+
variant?: "default" | "outline" | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
type ToolbarButtonProps = {
|
|
19
|
+
isDropdown?: boolean;
|
|
20
|
+
pressed?: boolean;
|
|
21
|
+
} & Omit<ComponentPropsWithoutRef<typeof ToolbarToggleItem>, 'asChild' | 'value'> & VariantProps<typeof toolbarButtonVariants>;
|
|
22
|
+
export declare const ToolbarButton: ({ tooltip, tooltipContentProps, tooltipProps, tooltipTriggerProps, ...props }: TooltipProps<({ children, className, isDropdown, pressed, size, variant, ...props }: ToolbarButtonProps) => import("react/jsx-runtime").JSX.Element>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function ToolbarSplitButton({ className, ...props }: ComponentPropsWithoutRef<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
type ToolbarSplitButtonPrimaryProps = Omit<ComponentPropsWithoutRef<typeof ToolbarToggleItem>, 'value'> & VariantProps<typeof toolbarButtonVariants>;
|
|
25
|
+
export declare function ToolbarSplitButtonPrimary({ children, className, size, variant, ...props }: ToolbarSplitButtonPrimaryProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function ToolbarSplitButtonSecondary({ className, size, variant, ...props }: ComponentPropsWithoutRef<'span'> & VariantProps<typeof dropdownArrowVariants>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function ToolbarToggleItem({ className, size, variant, ...props }: ComponentProps<typeof ToolbarPrimitive.ToggleItem> & VariantProps<typeof toolbarButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function ToolbarGroup({ children, className }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
type TooltipProps<T extends ElementType> = {
|
|
30
|
+
tooltip?: ReactNode;
|
|
31
|
+
tooltipContentProps?: Omit<ComponentPropsWithoutRef<typeof TooltipContent>, 'children'>;
|
|
32
|
+
tooltipProps?: Omit<ComponentPropsWithoutRef<typeof Tooltip>, 'children'>;
|
|
33
|
+
tooltipTriggerProps?: ComponentPropsWithoutRef<typeof TooltipTrigger>;
|
|
34
|
+
} & ComponentProps<T>;
|
|
35
|
+
declare function TooltipContent({ children, className, sideOffset, ...props }: ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function ToolbarMenuGroup({ children, className, label, ...props }: ComponentProps<typeof DropdownMenuRadioGroup> & {
|
|
37
|
+
label?: string;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export {};
|