@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 @@
|
|
|
1
|
+
export declare const BaseEditorKit: any[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type Value } from 'platejs';
|
|
3
|
+
export interface PlateEditorHandle {
|
|
4
|
+
setValue: (value: Value) => void;
|
|
5
|
+
setMarkdown: (markdown: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface PlateEditorProps {
|
|
8
|
+
value?: Value;
|
|
9
|
+
onChange?: (value: Value) => void;
|
|
10
|
+
onReady?: () => void;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
hideToolbar?: boolean;
|
|
14
|
+
collabToken?: string;
|
|
15
|
+
documentId?: string;
|
|
16
|
+
getAccessToken?: () => Promise<string | null>;
|
|
17
|
+
}
|
|
18
|
+
export declare const PlateEditor: ({ ref, value, onChange, onReady, readOnly, placeholder, hideToolbar, getAccessToken }: PlateEditorProps & {
|
|
19
|
+
ref?: RefObject<PlateEditorHandle | null>;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type EmptyText, type KEYS, type PlainText, type TBasicMarks, type TCommentText, type TElement, type TFontMarks, type TImageElement, type TLinkElement, type TListProps, type TMentionElement, type TTableElement, type TText, type TTextAlignProps } from 'platejs';
|
|
2
|
+
export interface MyBlockElement extends TElement, TListProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MyBlockquoteElement extends MyTextBlockElement {
|
|
6
|
+
type: typeof KEYS.blockquote;
|
|
7
|
+
}
|
|
8
|
+
export interface MyCodeBlockElement extends MyBlockElement {
|
|
9
|
+
children: MyCodeLineElement[];
|
|
10
|
+
type: typeof KEYS.codeBlock;
|
|
11
|
+
}
|
|
12
|
+
export interface MyCodeLineElement extends TElement {
|
|
13
|
+
children: PlainText[];
|
|
14
|
+
type: typeof KEYS.codeLine;
|
|
15
|
+
}
|
|
16
|
+
export interface MyH1Element extends MyTextBlockElement {
|
|
17
|
+
type: typeof KEYS.h1;
|
|
18
|
+
}
|
|
19
|
+
export interface MyH2Element extends MyTextBlockElement {
|
|
20
|
+
type: typeof KEYS.h2;
|
|
21
|
+
}
|
|
22
|
+
export interface MyH3Element extends MyTextBlockElement {
|
|
23
|
+
type: typeof KEYS.h3;
|
|
24
|
+
}
|
|
25
|
+
export interface MyHrElement extends MyBlockElement {
|
|
26
|
+
children: [EmptyText];
|
|
27
|
+
type: typeof KEYS.hr;
|
|
28
|
+
}
|
|
29
|
+
export interface MyImageElement extends MyBlockElement, TImageElement {
|
|
30
|
+
children: [EmptyText];
|
|
31
|
+
type: typeof KEYS.img;
|
|
32
|
+
}
|
|
33
|
+
export interface MyLinkElement extends TLinkElement {
|
|
34
|
+
id: string;
|
|
35
|
+
children: RichText[];
|
|
36
|
+
type: typeof KEYS.link;
|
|
37
|
+
icon?: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface MyMentionElement extends TMentionElement {
|
|
41
|
+
children: [EmptyText];
|
|
42
|
+
type: typeof KEYS.mention;
|
|
43
|
+
key?: string;
|
|
44
|
+
}
|
|
45
|
+
export type MyNestableBlock = MyParagraphElement;
|
|
46
|
+
export interface MyParagraphElement extends MyTextBlockElement {
|
|
47
|
+
type: typeof KEYS.p;
|
|
48
|
+
}
|
|
49
|
+
export interface MyTableCellElement extends TElement {
|
|
50
|
+
children: MyNestableBlock[];
|
|
51
|
+
type: typeof KEYS.td;
|
|
52
|
+
}
|
|
53
|
+
export interface MyTableElement extends MyBlockElement, TTableElement {
|
|
54
|
+
children: MyTableRowElement[];
|
|
55
|
+
type: typeof KEYS.table;
|
|
56
|
+
}
|
|
57
|
+
export interface MyTableRowElement extends TElement {
|
|
58
|
+
children: MyTableCellElement[];
|
|
59
|
+
type: typeof KEYS.tr;
|
|
60
|
+
}
|
|
61
|
+
export interface MyTextBlockElement extends TElement, TTextAlignProps {
|
|
62
|
+
children: (MyLinkElement | MyMentionElement | RichText)[];
|
|
63
|
+
}
|
|
64
|
+
export interface MyToggleElement extends MyTextBlockElement {
|
|
65
|
+
type: typeof KEYS.toggle;
|
|
66
|
+
}
|
|
67
|
+
export type MyValue = (MyBlockquoteElement | MyCodeBlockElement | MyH1Element | MyH2Element | MyH3Element | MyHrElement | MyImageElement | MyParagraphElement | MyTableElement | MyToggleElement)[];
|
|
68
|
+
export interface RichText extends TBasicMarks, TCommentText, TFontMarks, TText {
|
|
69
|
+
kbd?: boolean;
|
|
70
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type RefCallback, type RefObject } from 'react';
|
|
2
|
+
import { type PlateEditor } from 'platejs/react';
|
|
3
|
+
export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
4
|
+
contentRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
|
|
5
|
+
scrollRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
|
|
6
|
+
} & {
|
|
7
|
+
_blockChunks: string;
|
|
8
|
+
_blockPath: import("platejs").Path | null;
|
|
9
|
+
_mdxName: string | null;
|
|
10
|
+
_replaceIds: string[];
|
|
11
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
12
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
13
|
+
toolName: "edit" | "comment" | "generate";
|
|
14
|
+
comment?: {
|
|
15
|
+
blockId: string;
|
|
16
|
+
comment: string;
|
|
17
|
+
content: string;
|
|
18
|
+
};
|
|
19
|
+
}, import("ai").UITools>>;
|
|
20
|
+
chatNodes: import("platejs").TIdElement[];
|
|
21
|
+
chatSelection: import("platejs").TRange | null;
|
|
22
|
+
experimental_lastTextId: string | null;
|
|
23
|
+
mode: import("@platejs/ai").AIMode;
|
|
24
|
+
open: boolean;
|
|
25
|
+
streaming: boolean;
|
|
26
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
27
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
28
|
+
aiChat: {
|
|
29
|
+
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
30
|
+
undo?: boolean;
|
|
31
|
+
}) => void>;
|
|
32
|
+
submit: import("platejs").OmitFirst<(editor: PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
33
|
+
mode?: import("@platejs/ai").AIMode;
|
|
34
|
+
options?: import("ai").ChatRequestOptions;
|
|
35
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
36
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
37
|
+
}) => void>;
|
|
38
|
+
hide: (options?: {
|
|
39
|
+
focus?: boolean;
|
|
40
|
+
undo?: boolean;
|
|
41
|
+
}) => void;
|
|
42
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
43
|
+
anchor?: boolean;
|
|
44
|
+
streaming?: boolean;
|
|
45
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
46
|
+
reload: () => void;
|
|
47
|
+
show: () => void;
|
|
48
|
+
stop: () => void;
|
|
49
|
+
};
|
|
50
|
+
} & Record<"aiChat", Pick<{
|
|
51
|
+
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
52
|
+
undo?: boolean;
|
|
53
|
+
}) => void>;
|
|
54
|
+
submit: import("platejs").OmitFirst<(editor: PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
55
|
+
mode?: import("@platejs/ai").AIMode;
|
|
56
|
+
options?: import("ai").ChatRequestOptions;
|
|
57
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
58
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
59
|
+
}) => void>;
|
|
60
|
+
hide: (options?: {
|
|
61
|
+
focus?: boolean;
|
|
62
|
+
undo?: boolean;
|
|
63
|
+
}) => void;
|
|
64
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
65
|
+
anchor?: boolean;
|
|
66
|
+
streaming?: boolean;
|
|
67
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
68
|
+
reload: () => void;
|
|
69
|
+
show: () => void;
|
|
70
|
+
stop: () => void;
|
|
71
|
+
}, "stop" | "submit" | "reset" | "node">> & Record<"aiChat", {
|
|
72
|
+
hide: ({ focus, undo }?: {
|
|
73
|
+
focus?: boolean;
|
|
74
|
+
undo?: boolean;
|
|
75
|
+
}) => void;
|
|
76
|
+
show: () => void;
|
|
77
|
+
}>, {
|
|
78
|
+
aiChat: {
|
|
79
|
+
accept: import("platejs").OmitFirst<(editor: PlateEditor) => void>;
|
|
80
|
+
insertBelow: import("platejs").OmitFirst<(editor: PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
81
|
+
format?: "all" | "none" | "single";
|
|
82
|
+
}) => void>;
|
|
83
|
+
replaceSelection: import("platejs").OmitFirst<(editor: PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
84
|
+
format?: "all" | "none" | "single";
|
|
85
|
+
}) => void>;
|
|
86
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
87
|
+
};
|
|
88
|
+
} & Record<"aiChat", {
|
|
89
|
+
accept: () => void;
|
|
90
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
91
|
+
format?: "all" | "none" | "single";
|
|
92
|
+
} | undefined) => void;
|
|
93
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
94
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
95
|
+
format?: "all" | "none" | "single";
|
|
96
|
+
} | undefined) => void;
|
|
97
|
+
}>, {}>>;
|
|
98
|
+
export declare const AIKit: any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AutoformatKit: import("platejs").SlatePlugin<import("@platejs/autoformat").AutoformatConfig>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BaseBasicBlocksKit: any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BasicBlocksKit: any[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const BaseBasicMarksKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
2
|
+
toggle: () => void;
|
|
3
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"highlight", {}, {}, Record<"highlight", {
|
|
16
|
+
toggle: () => void;
|
|
17
|
+
}>, {}>>)[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const BasicMarksKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
2
|
+
toggle: () => void;
|
|
3
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"highlight", {}, {}, Record<"highlight", {
|
|
16
|
+
toggle: () => void;
|
|
17
|
+
}>, {}>>)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BasicNodesKit: any[];
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
export declare const BlockMenuKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockSelection", {
|
|
2
|
+
anchorId?: string | null;
|
|
3
|
+
areaOptions?: {
|
|
4
|
+
document?: Document;
|
|
5
|
+
} & {
|
|
6
|
+
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
7
|
+
behaviour?: {
|
|
8
|
+
intersect?: ("center" | "touch" | "cover") | undefined;
|
|
9
|
+
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
10
|
+
scrolling?: {
|
|
11
|
+
manualSpeed?: number | undefined;
|
|
12
|
+
speedDivider?: number | undefined;
|
|
13
|
+
startScrollMargins?: {
|
|
14
|
+
x?: number | undefined;
|
|
15
|
+
y?: number | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
startThreshold?: number | {
|
|
19
|
+
x?: number | undefined;
|
|
20
|
+
y?: number | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
triggers?: ((0 | 1 | 3 | 4 | 2) | {
|
|
23
|
+
button: 0 | 1 | 3 | 4 | 2;
|
|
24
|
+
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
25
|
+
})[] | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
28
|
+
features?: {
|
|
29
|
+
range?: boolean | undefined;
|
|
30
|
+
singleTap?: {
|
|
31
|
+
allow?: boolean | undefined;
|
|
32
|
+
intersect?: ("touch" | "native") | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
touch?: boolean | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
selectables?: (string | string[]) | undefined;
|
|
37
|
+
selectionAreaClass?: string | undefined;
|
|
38
|
+
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
39
|
+
};
|
|
40
|
+
editorPaddingRight?: import("react").CSSProperties["width"];
|
|
41
|
+
enableContextMenu?: boolean;
|
|
42
|
+
disableSelectAll?: boolean;
|
|
43
|
+
isSelecting?: boolean;
|
|
44
|
+
isSelectionAreaVisible?: boolean;
|
|
45
|
+
rightSelectionAreaClassName?: string;
|
|
46
|
+
selectedIds?: Set<string>;
|
|
47
|
+
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
48
|
+
isSelectable?: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
49
|
+
onKeyDownSelecting?: (editor: import("platejs").SlateEditor, e: KeyboardEvent) => void;
|
|
50
|
+
}, {
|
|
51
|
+
blockSelection: {
|
|
52
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
53
|
+
element: import("platejs").TElement;
|
|
54
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
55
|
+
disabledWhenFocused?: boolean;
|
|
56
|
+
}) => void>;
|
|
57
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
58
|
+
added: Element[];
|
|
59
|
+
removed: Element[];
|
|
60
|
+
}> & {
|
|
61
|
+
ids?: string[];
|
|
62
|
+
}) => void>;
|
|
63
|
+
add: (id: string[] | string) => void;
|
|
64
|
+
addSelectedRow: (id: string, options?: {
|
|
65
|
+
clear?: boolean;
|
|
66
|
+
delay?: number;
|
|
67
|
+
}) => void;
|
|
68
|
+
clear: () => void;
|
|
69
|
+
delete: (id: string[] | string) => void;
|
|
70
|
+
deselect: () => void;
|
|
71
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
72
|
+
focus: () => void;
|
|
73
|
+
getNodes: (options?: {
|
|
74
|
+
collapseTableRows?: boolean;
|
|
75
|
+
selectionFallback?: boolean;
|
|
76
|
+
sort?: boolean;
|
|
77
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
78
|
+
has: (id: string[] | string) => boolean;
|
|
79
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
80
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
81
|
+
resetSelectedIds: () => void;
|
|
82
|
+
selectAll: () => void;
|
|
83
|
+
set: (id: string[] | string) => void;
|
|
84
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
85
|
+
unselect: () => void;
|
|
86
|
+
};
|
|
87
|
+
} & Record<"blockSelection", Partial<{
|
|
88
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
89
|
+
element: import("platejs").TElement;
|
|
90
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
91
|
+
disabledWhenFocused?: boolean;
|
|
92
|
+
}) => void>;
|
|
93
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
94
|
+
added: Element[];
|
|
95
|
+
removed: Element[];
|
|
96
|
+
}> & {
|
|
97
|
+
ids?: string[];
|
|
98
|
+
}) => void>;
|
|
99
|
+
add: (id: string[] | string) => void;
|
|
100
|
+
addSelectedRow: (id: string, options?: {
|
|
101
|
+
clear?: boolean;
|
|
102
|
+
delay?: number;
|
|
103
|
+
}) => void;
|
|
104
|
+
clear: () => void;
|
|
105
|
+
delete: (id: string[] | string) => void;
|
|
106
|
+
deselect: () => void;
|
|
107
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
108
|
+
focus: () => void;
|
|
109
|
+
getNodes: (options?: {
|
|
110
|
+
collapseTableRows?: boolean;
|
|
111
|
+
selectionFallback?: boolean;
|
|
112
|
+
sort?: boolean;
|
|
113
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
114
|
+
has: (id: string[] | string) => boolean;
|
|
115
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
116
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
117
|
+
resetSelectedIds: () => void;
|
|
118
|
+
selectAll: () => void;
|
|
119
|
+
set: (id: string[] | string) => void;
|
|
120
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
121
|
+
unselect: () => void;
|
|
122
|
+
}>>, Record<"blockSelection", {
|
|
123
|
+
duplicate: () => void;
|
|
124
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
125
|
+
at: import("platejs").Path;
|
|
126
|
+
insertedCallback?: () => void;
|
|
127
|
+
}) => void;
|
|
128
|
+
removeNodes: () => void;
|
|
129
|
+
select: () => void;
|
|
130
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
131
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
132
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
133
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
134
|
+
}>, {
|
|
135
|
+
isSelected?: (id?: string) => boolean;
|
|
136
|
+
isSelectingSome?: () => boolean;
|
|
137
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockMenu", {
|
|
138
|
+
openId: ((string & {}) | "context") | null;
|
|
139
|
+
position: {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
};
|
|
143
|
+
}, {
|
|
144
|
+
blockMenu: {
|
|
145
|
+
hide: () => void;
|
|
146
|
+
show: (id: (string & {}) | "context", position?: {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
}) => void;
|
|
150
|
+
showContextMenu: (blockId: string, position: {
|
|
151
|
+
x: number;
|
|
152
|
+
y: number;
|
|
153
|
+
}) => void;
|
|
154
|
+
};
|
|
155
|
+
} & Record<"blockMenu", Partial<{
|
|
156
|
+
hide: () => void;
|
|
157
|
+
show: (id: (string & {}) | "context", position?: {
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
}) => void;
|
|
161
|
+
showContextMenu: (blockId: string, position: {
|
|
162
|
+
x: number;
|
|
163
|
+
y: number;
|
|
164
|
+
}) => void;
|
|
165
|
+
}>>, {}, {}>>)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BlockPlaceholderKit: any[];
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export declare const BlockSelectionKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockSelection", {
|
|
2
|
+
anchorId?: string | null;
|
|
3
|
+
areaOptions?: {
|
|
4
|
+
document?: Document;
|
|
5
|
+
} & {
|
|
6
|
+
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
7
|
+
behaviour?: {
|
|
8
|
+
intersect?: ("center" | "touch" | "cover") | undefined;
|
|
9
|
+
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
10
|
+
scrolling?: {
|
|
11
|
+
manualSpeed?: number | undefined;
|
|
12
|
+
speedDivider?: number | undefined;
|
|
13
|
+
startScrollMargins?: {
|
|
14
|
+
x?: number | undefined;
|
|
15
|
+
y?: number | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
startThreshold?: number | {
|
|
19
|
+
x?: number | undefined;
|
|
20
|
+
y?: number | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
triggers?: ((0 | 1 | 3 | 4 | 2) | {
|
|
23
|
+
button: 0 | 1 | 3 | 4 | 2;
|
|
24
|
+
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
25
|
+
})[] | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
28
|
+
features?: {
|
|
29
|
+
range?: boolean | undefined;
|
|
30
|
+
singleTap?: {
|
|
31
|
+
allow?: boolean | undefined;
|
|
32
|
+
intersect?: ("touch" | "native") | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
touch?: boolean | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
selectables?: (string | string[]) | undefined;
|
|
37
|
+
selectionAreaClass?: string | undefined;
|
|
38
|
+
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
39
|
+
};
|
|
40
|
+
editorPaddingRight?: import("react").CSSProperties["width"];
|
|
41
|
+
enableContextMenu?: boolean;
|
|
42
|
+
disableSelectAll?: boolean;
|
|
43
|
+
isSelecting?: boolean;
|
|
44
|
+
isSelectionAreaVisible?: boolean;
|
|
45
|
+
rightSelectionAreaClassName?: string;
|
|
46
|
+
selectedIds?: Set<string>;
|
|
47
|
+
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
48
|
+
isSelectable?: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
49
|
+
onKeyDownSelecting?: (editor: import("platejs").SlateEditor, e: KeyboardEvent) => void;
|
|
50
|
+
}, {
|
|
51
|
+
blockSelection: {
|
|
52
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
53
|
+
element: import("platejs").TElement;
|
|
54
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
55
|
+
disabledWhenFocused?: boolean;
|
|
56
|
+
}) => void>;
|
|
57
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
58
|
+
added: Element[];
|
|
59
|
+
removed: Element[];
|
|
60
|
+
}> & {
|
|
61
|
+
ids?: string[];
|
|
62
|
+
}) => void>;
|
|
63
|
+
add: (id: string[] | string) => void;
|
|
64
|
+
addSelectedRow: (id: string, options?: {
|
|
65
|
+
clear?: boolean;
|
|
66
|
+
delay?: number;
|
|
67
|
+
}) => void;
|
|
68
|
+
clear: () => void;
|
|
69
|
+
delete: (id: string[] | string) => void;
|
|
70
|
+
deselect: () => void;
|
|
71
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
72
|
+
focus: () => void;
|
|
73
|
+
getNodes: (options?: {
|
|
74
|
+
collapseTableRows?: boolean;
|
|
75
|
+
selectionFallback?: boolean;
|
|
76
|
+
sort?: boolean;
|
|
77
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
78
|
+
has: (id: string[] | string) => boolean;
|
|
79
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
80
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
81
|
+
resetSelectedIds: () => void;
|
|
82
|
+
selectAll: () => void;
|
|
83
|
+
set: (id: string[] | string) => void;
|
|
84
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
85
|
+
unselect: () => void;
|
|
86
|
+
};
|
|
87
|
+
} & Record<"blockSelection", Partial<{
|
|
88
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
89
|
+
element: import("platejs").TElement;
|
|
90
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
91
|
+
disabledWhenFocused?: boolean;
|
|
92
|
+
}) => void>;
|
|
93
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
94
|
+
added: Element[];
|
|
95
|
+
removed: Element[];
|
|
96
|
+
}> & {
|
|
97
|
+
ids?: string[];
|
|
98
|
+
}) => void>;
|
|
99
|
+
add: (id: string[] | string) => void;
|
|
100
|
+
addSelectedRow: (id: string, options?: {
|
|
101
|
+
clear?: boolean;
|
|
102
|
+
delay?: number;
|
|
103
|
+
}) => void;
|
|
104
|
+
clear: () => void;
|
|
105
|
+
delete: (id: string[] | string) => void;
|
|
106
|
+
deselect: () => void;
|
|
107
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
108
|
+
focus: () => void;
|
|
109
|
+
getNodes: (options?: {
|
|
110
|
+
collapseTableRows?: boolean;
|
|
111
|
+
selectionFallback?: boolean;
|
|
112
|
+
sort?: boolean;
|
|
113
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
114
|
+
has: (id: string[] | string) => boolean;
|
|
115
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
116
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
117
|
+
resetSelectedIds: () => void;
|
|
118
|
+
selectAll: () => void;
|
|
119
|
+
set: (id: string[] | string) => void;
|
|
120
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
121
|
+
unselect: () => void;
|
|
122
|
+
}>>, Record<"blockSelection", {
|
|
123
|
+
duplicate: () => void;
|
|
124
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
125
|
+
at: import("platejs").Path;
|
|
126
|
+
insertedCallback?: () => void;
|
|
127
|
+
}) => void;
|
|
128
|
+
removeNodes: () => void;
|
|
129
|
+
select: () => void;
|
|
130
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
131
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
132
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
133
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
134
|
+
}>, {
|
|
135
|
+
isSelected?: (id?: string) => boolean;
|
|
136
|
+
isSelectingSome?: () => boolean;
|
|
137
|
+
}>>[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const BaseCalloutKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"callout", {}, {}, {
|
|
2
|
+
insert: {
|
|
3
|
+
callout: (args_0?: ({
|
|
4
|
+
batchDirty?: boolean;
|
|
5
|
+
hanging?: boolean;
|
|
6
|
+
nextBlock?: boolean;
|
|
7
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
8
|
+
select?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
id?: boolean | string;
|
|
11
|
+
block?: boolean;
|
|
12
|
+
empty?: boolean;
|
|
13
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<import("platejs").Value>> | undefined;
|
|
14
|
+
text?: boolean;
|
|
15
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
16
|
+
icon?: string;
|
|
17
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
18
|
+
}) | undefined) => void;
|
|
19
|
+
};
|
|
20
|
+
}, {}>>[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const CalloutKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"callout", {}, {}, {
|
|
2
|
+
insert: {
|
|
3
|
+
callout: (args_0?: ({
|
|
4
|
+
batchDirty?: boolean;
|
|
5
|
+
hanging?: boolean;
|
|
6
|
+
nextBlock?: boolean;
|
|
7
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
8
|
+
select?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
id?: boolean | string;
|
|
11
|
+
block?: boolean;
|
|
12
|
+
empty?: boolean;
|
|
13
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<import("platejs").Value>> | undefined;
|
|
14
|
+
text?: boolean;
|
|
15
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
16
|
+
icon?: string;
|
|
17
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
18
|
+
}) | undefined) => void;
|
|
19
|
+
};
|
|
20
|
+
}, {}>>[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createLowlight } from 'lowlight';
|
|
2
|
+
export declare const BaseCodeBlockKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"code_block", {
|
|
3
|
+
defaultLanguage?: string | null;
|
|
4
|
+
lowlight?: ReturnType<typeof createLowlight> | null;
|
|
5
|
+
}, {}, Record<"code_block", {
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createLowlight } from 'lowlight';
|
|
2
|
+
export declare const CodeBlockKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_block", {
|
|
3
|
+
defaultLanguage?: string | null;
|
|
4
|
+
lowlight?: ReturnType<typeof createLowlight> | null;
|
|
5
|
+
}, {}, Record<"code_block", {
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BaseColumnKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"column_group", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"column", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ColumnKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column_group", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column", {}, {}, {}, {}>>)[];
|