@oyat/editor 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -55
- package/dist/components/editor/plate-editor.d.ts +7 -0
- package/dist/components/editor/plate-editor.d.ts.map +1 -0
- package/dist/components/editor/plate-types.d.ts +85 -0
- package/dist/components/editor/plate-types.d.ts.map +1 -0
- package/dist/components/editor/plugins/align-base-kit.d.ts +4 -0
- package/dist/components/editor/plugins/align-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/align-kit.d.ts +4 -0
- package/dist/components/editor/plugins/align-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/autoformat-kit.d.ts +2 -0
- package/dist/components/editor/plugins/autoformat-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/basic-blocks-base-kit.d.ts +6 -0
- package/dist/components/editor/plugins/basic-blocks-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/basic-blocks-kit.d.ts +6 -0
- package/dist/components/editor/plugins/basic-blocks-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/basic-marks-base-kit.d.ts +20 -0
- package/dist/components/editor/plugins/basic-marks-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/basic-marks-kit.d.ts +20 -0
- package/dist/components/editor/plugins/basic-marks-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/basic-nodes-kit.d.ts +24 -0
- package/dist/components/editor/plugins/basic-nodes-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/block-menu-kit.d.ts +165 -0
- package/dist/components/editor/plugins/block-menu-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/block-placeholder-kit.d.ts +15 -0
- package/dist/components/editor/plugins/block-placeholder-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/block-selection-kit.d.ts +137 -0
- package/dist/components/editor/plugins/block-selection-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/callout-base-kit.d.ts +21 -0
- package/dist/components/editor/plugins/callout-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/callout-kit.d.ts +21 -0
- package/dist/components/editor/plugins/callout-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/code-block-base-kit.d.ts +8 -0
- package/dist/components/editor/plugins/code-block-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/code-block-kit.d.ts +8 -0
- package/dist/components/editor/plugins/code-block-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/column-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/column-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/column-kit.d.ts +2 -0
- package/dist/components/editor/plugins/column-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/comment-base-kit.d.ts +48 -0
- package/dist/components/editor/plugins/comment-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/comment-kit.d.ts +68 -0
- package/dist/components/editor/plugins/comment-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +12 -0
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/date-base-kit.d.ts +20 -0
- package/dist/components/editor/plugins/date-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/date-kit.d.ts +20 -0
- package/dist/components/editor/plugins/date-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/discussion-kit.d.ts +56 -0
- package/dist/components/editor/plugins/discussion-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/dnd-kit.d.ts +21 -0
- package/dist/components/editor/plugins/dnd-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/docx-kit.d.ts +2 -0
- package/dist/components/editor/plugins/docx-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/emoji-kit.d.ts +6 -0
- package/dist/components/editor/plugins/emoji-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/exit-break-kit.d.ts +5 -0
- package/dist/components/editor/plugins/exit-break-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/fixed-toolbar-kit.d.ts +2 -0
- package/dist/components/editor/plugins/fixed-toolbar-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/floating-toolbar-kit.d.ts +2 -0
- package/dist/components/editor/plugins/floating-toolbar-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/font-base-kit.d.ts +10 -0
- package/dist/components/editor/plugins/font-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/font-kit.d.ts +10 -0
- package/dist/components/editor/plugins/font-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/indent-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/indent-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/indent-kit.d.ts +6 -0
- package/dist/components/editor/plugins/indent-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/line-height-base-kit.d.ts +4 -0
- package/dist/components/editor/plugins/line-height-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/line-height-kit.d.ts +4 -0
- package/dist/components/editor/plugins/line-height-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/link-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/link-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/link-kit.d.ts +35 -0
- package/dist/components/editor/plugins/link-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/list-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/list-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/list-kit.d.ts +9 -0
- package/dist/components/editor/plugins/list-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/math-base-kit.d.ts +10 -0
- package/dist/components/editor/plugins/math-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/math-kit.d.ts +10 -0
- package/dist/components/editor/plugins/math-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/media-base-kit.d.ts +26 -0
- package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/media-kit.d.ts +39 -0
- package/dist/components/editor/plugins/media-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/mention-base-kit.d.ts +12 -0
- package/dist/components/editor/plugins/mention-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/mention-kit.d.ts +12 -0
- package/dist/components/editor/plugins/mention-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/slash-kit.d.ts +2 -0
- package/dist/components/editor/plugins/slash-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/suggestion-base-kit.d.ts +33 -0
- package/dist/components/editor/plugins/suggestion-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/suggestion-kit.d.ts +54 -0
- package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/table-base-kit.d.ts +78 -0
- package/dist/components/editor/plugins/table-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/table-kit.d.ts +139 -0
- package/dist/components/editor/plugins/table-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/toc-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/toc-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/toc-kit.d.ts +6 -0
- package/dist/components/editor/plugins/toc-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/toggle-base-kit.d.ts +13 -0
- package/dist/components/editor/plugins/toggle-base-kit.d.ts.map +1 -0
- package/dist/components/editor/plugins/toggle-kit.d.ts +17 -0
- package/dist/components/editor/plugins/toggle-kit.d.ts.map +1 -0
- package/dist/components/editor/settings-dialog.d.ts +8 -0
- package/dist/components/editor/settings-dialog.d.ts.map +1 -0
- package/dist/components/editor/transforms.d.ts +13 -0
- package/dist/components/editor/transforms.d.ts.map +1 -0
- package/dist/components/editor/use-chat.d.ts +53 -0
- package/dist/components/editor/use-chat.d.ts.map +1 -0
- package/dist/components/ui/ai-chat-editor.d.ts +5 -0
- package/dist/components/ui/ai-chat-editor.d.ts.map +1 -0
- package/dist/components/ui/ai-menu.d.ts +8 -0
- package/dist/components/ui/ai-menu.d.ts.map +1 -0
- package/dist/components/ui/ai-node.d.ts +4 -0
- package/dist/components/ui/ai-node.d.ts.map +1 -0
- package/dist/components/ui/ai-toolbar-button.d.ts +4 -0
- package/dist/components/ui/ai-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/align-toolbar-button.d.ts +3 -0
- package/dist/components/ui/align-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/block-context-menu.d.ts +5 -0
- package/dist/components/ui/block-context-menu.d.ts.map +1 -0
- package/dist/components/ui/block-discussion.d.ts +4 -0
- package/dist/components/ui/block-discussion.d.ts.map +1 -0
- package/dist/components/ui/block-draggable.d.ts +3 -0
- package/dist/components/ui/block-draggable.d.ts.map +1 -0
- package/dist/components/ui/block-list-static.d.ts +3 -0
- package/dist/components/ui/block-list-static.d.ts.map +1 -0
- package/dist/components/ui/block-list.d.ts +3 -0
- package/dist/components/ui/block-list.d.ts.map +1 -0
- package/dist/components/ui/block-selection.d.ts +6 -0
- package/dist/components/ui/block-selection.d.ts.map +1 -0
- package/dist/components/ui/block-suggestion.d.ts +18 -0
- package/dist/components/ui/block-suggestion.d.ts.map +1 -0
- package/dist/components/ui/blockquote-node-static.d.ts +3 -0
- package/dist/components/ui/blockquote-node-static.d.ts.map +1 -0
- package/dist/components/ui/blockquote-node.d.ts +3 -0
- package/dist/components/ui/blockquote-node.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/callout-node-static.d.ts +3 -0
- package/dist/components/ui/callout-node-static.d.ts.map +1 -0
- package/dist/components/ui/callout-node.d.ts +4 -0
- package/dist/components/ui/callout-node.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/code-block-node-static.d.ts +5 -0
- package/dist/components/ui/code-block-node-static.d.ts.map +1 -0
- package/dist/components/ui/code-block-node.d.ts +6 -0
- package/dist/components/ui/code-block-node.d.ts.map +1 -0
- package/dist/components/ui/code-node-static.d.ts +3 -0
- package/dist/components/ui/code-node-static.d.ts.map +1 -0
- package/dist/components/ui/code-node.d.ts +3 -0
- package/dist/components/ui/code-node.d.ts.map +1 -0
- package/dist/components/ui/column-node-static.d.ts +4 -0
- package/dist/components/ui/column-node-static.d.ts.map +1 -0
- package/dist/components/ui/column-node.d.ts +6 -0
- package/dist/components/ui/column-node.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +19 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/comment-node-static.d.ts +3 -0
- package/dist/components/ui/comment-node-static.d.ts.map +1 -0
- package/dist/components/ui/comment-node.d.ts +4 -0
- package/dist/components/ui/comment-node.d.ts.map +1 -0
- package/dist/components/ui/comment-toolbar-button.d.ts +2 -0
- package/dist/components/ui/comment-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/comment.d.ts +28 -0
- package/dist/components/ui/comment.d.ts.map +1 -0
- package/dist/components/ui/context-menu.d.ts +26 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/cursor-overlay.d.ts +2 -0
- package/dist/components/ui/cursor-overlay.d.ts.map +1 -0
- package/dist/components/ui/date-node-static.d.ts +3 -0
- package/dist/components/ui/date-node-static.d.ts.map +1 -0
- package/dist/components/ui/date-node.d.ts +4 -0
- package/dist/components/ui/date-node.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +16 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/editor-static.d.ts +9 -0
- package/dist/components/ui/editor-static.d.ts.map +1 -0
- package/dist/components/ui/editor.d.ts +29 -0
- package/dist/components/ui/editor.d.ts.map +1 -0
- package/dist/components/ui/emoji-node.d.ts +3 -0
- package/dist/components/ui/emoji-node.d.ts.map +1 -0
- package/dist/components/ui/emoji-toolbar-button.d.ts +17 -0
- package/dist/components/ui/emoji-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/equation-node-static.d.ts +4 -0
- package/dist/components/ui/equation-node-static.d.ts.map +1 -0
- package/dist/components/ui/equation-node.d.ts +5 -0
- package/dist/components/ui/equation-node.d.ts.map +1 -0
- package/dist/components/ui/equation-toolbar-button.d.ts +4 -0
- package/dist/components/ui/equation-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/export-toolbar-button.d.ts +3 -0
- package/dist/components/ui/export-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/fixed-toolbar-buttons.d.ts +2 -0
- package/dist/components/ui/fixed-toolbar-buttons.d.ts.map +1 -0
- package/dist/components/ui/fixed-toolbar.d.ts +3 -0
- package/dist/components/ui/fixed-toolbar.d.ts.map +1 -0
- package/dist/components/ui/floating-toolbar-buttons.d.ts +2 -0
- package/dist/components/ui/floating-toolbar-buttons.d.ts.map +1 -0
- package/dist/components/ui/floating-toolbar.d.ts +7 -0
- package/dist/components/ui/floating-toolbar.d.ts.map +1 -0
- package/dist/components/ui/font-size-toolbar-button.d.ts +2 -0
- package/dist/components/ui/font-size-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/ghost-text.d.ts +2 -0
- package/dist/components/ui/ghost-text.d.ts.map +1 -0
- package/dist/components/ui/heading-node-static.d.ts +15 -0
- package/dist/components/ui/heading-node-static.d.ts.map +1 -0
- package/dist/components/ui/heading-node.d.ts +14 -0
- package/dist/components/ui/heading-node.d.ts.map +1 -0
- package/dist/components/ui/highlight-node-static.d.ts +3 -0
- package/dist/components/ui/highlight-node-static.d.ts.map +1 -0
- package/dist/components/ui/highlight-node.d.ts +3 -0
- package/dist/components/ui/highlight-node.d.ts.map +1 -0
- package/dist/components/ui/history-toolbar-button.d.ts +5 -0
- package/dist/components/ui/history-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/hr-node-static.d.ts +3 -0
- package/dist/components/ui/hr-node-static.d.ts.map +1 -0
- package/dist/components/ui/hr-node.d.ts +3 -0
- package/dist/components/ui/hr-node.d.ts.map +1 -0
- package/dist/components/ui/import-toolbar-button.d.ts +3 -0
- package/dist/components/ui/import-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/indent-toolbar-button.d.ts +5 -0
- package/dist/components/ui/indent-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/inline-combobox.d.ts +34 -0
- package/dist/components/ui/inline-combobox.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/insert-toolbar-button.d.ts +3 -0
- package/dist/components/ui/insert-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/kbd-node-static.d.ts +3 -0
- package/dist/components/ui/kbd-node-static.d.ts.map +1 -0
- package/dist/components/ui/kbd-node.d.ts +3 -0
- package/dist/components/ui/kbd-node.d.ts.map +1 -0
- package/dist/components/ui/line-height-toolbar-button.d.ts +3 -0
- package/dist/components/ui/line-height-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/link-node-static.d.ts +3 -0
- package/dist/components/ui/link-node-static.d.ts.map +1 -0
- package/dist/components/ui/link-node.d.ts +4 -0
- package/dist/components/ui/link-node.d.ts.map +1 -0
- package/dist/components/ui/link-toolbar-button.d.ts +4 -0
- package/dist/components/ui/link-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/link-toolbar.d.ts +5 -0
- package/dist/components/ui/link-toolbar.d.ts.map +1 -0
- package/dist/components/ui/list-toolbar-button.d.ts +6 -0
- package/dist/components/ui/list-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/mark-toolbar-button.d.ts +7 -0
- package/dist/components/ui/mark-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/media-audio-node-static.d.ts +3 -0
- package/dist/components/ui/media-audio-node-static.d.ts.map +1 -0
- package/dist/components/ui/media-audio-node.d.ts +5 -0
- package/dist/components/ui/media-audio-node.d.ts.map +1 -0
- package/dist/components/ui/media-embed-node.d.ts +5 -0
- package/dist/components/ui/media-embed-node.d.ts.map +1 -0
- package/dist/components/ui/media-file-node-static.d.ts +3 -0
- package/dist/components/ui/media-file-node-static.d.ts.map +1 -0
- package/dist/components/ui/media-file-node.d.ts +5 -0
- package/dist/components/ui/media-file-node.d.ts.map +1 -0
- package/dist/components/ui/media-image-node-static.d.ts +3 -0
- package/dist/components/ui/media-image-node-static.d.ts.map +1 -0
- package/dist/components/ui/media-image-node.d.ts +5 -0
- package/dist/components/ui/media-image-node.d.ts.map +1 -0
- package/dist/components/ui/media-placeholder-node.d.ts +11 -0
- package/dist/components/ui/media-placeholder-node.d.ts.map +1 -0
- package/dist/components/ui/media-preview-dialog.d.ts +2 -0
- package/dist/components/ui/media-preview-dialog.d.ts.map +1 -0
- package/dist/components/ui/media-toolbar-button.d.ts +5 -0
- package/dist/components/ui/media-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/media-toolbar.d.ts +7 -0
- package/dist/components/ui/media-toolbar.d.ts.map +1 -0
- package/dist/components/ui/media-upload-toast.d.ts +2 -0
- package/dist/components/ui/media-upload-toast.d.ts.map +1 -0
- package/dist/components/ui/media-video-node-static.d.ts +3 -0
- package/dist/components/ui/media-video-node-static.d.ts.map +1 -0
- package/dist/components/ui/media-video-node.d.ts +5 -0
- package/dist/components/ui/media-video-node.d.ts.map +1 -0
- package/dist/components/ui/mention-node-static.d.ts +5 -0
- package/dist/components/ui/mention-node-static.d.ts.map +1 -0
- package/dist/components/ui/mention-node.d.ts +7 -0
- package/dist/components/ui/mention-node.d.ts.map +1 -0
- package/dist/components/ui/mode-toolbar-button.d.ts +3 -0
- package/dist/components/ui/mode-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/more-toolbar-button.d.ts +3 -0
- package/dist/components/ui/more-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/paragraph-node-static.d.ts +3 -0
- package/dist/components/ui/paragraph-node-static.d.ts.map +1 -0
- package/dist/components/ui/paragraph-node.d.ts +3 -0
- package/dist/components/ui/paragraph-node.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/resize-handle.d.ts +16 -0
- package/dist/components/ui/resize-handle.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/slash-node.d.ts +4 -0
- package/dist/components/ui/slash-node.d.ts.map +1 -0
- package/dist/components/ui/suggestion-node-static.d.ts +3 -0
- package/dist/components/ui/suggestion-node-static.d.ts.map +1 -0
- package/dist/components/ui/suggestion-node.d.ts +6 -0
- package/dist/components/ui/suggestion-node.d.ts.map +1 -0
- package/dist/components/ui/suggestion-toolbar-button.d.ts +2 -0
- package/dist/components/ui/suggestion-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/table-icons.d.ts +8 -0
- package/dist/components/ui/table-icons.d.ts.map +1 -0
- package/dist/components/ui/table-node-static.d.ts +8 -0
- package/dist/components/ui/table-node-static.d.ts.map +1 -0
- package/dist/components/ui/table-node.d.ts +10 -0
- package/dist/components/ui/table-node.d.ts.map +1 -0
- package/dist/components/ui/table-toolbar-button.d.ts +3 -0
- package/dist/components/ui/table-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/toc-node-static.d.ts +3 -0
- package/dist/components/ui/toc-node-static.d.ts.map +1 -0
- package/dist/components/ui/toc-node.d.ts +3 -0
- package/dist/components/ui/toc-node.d.ts.map +1 -0
- package/dist/components/ui/toggle-node-static.d.ts +3 -0
- package/dist/components/ui/toggle-node-static.d.ts.map +1 -0
- package/dist/components/ui/toggle-node.d.ts +3 -0
- package/dist/components/ui/toggle-node.d.ts.map +1 -0
- package/dist/components/ui/toggle-toolbar-button.d.ts +4 -0
- package/dist/components/ui/toggle-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/toolbar.d.ts +41 -0
- package/dist/components/ui/toolbar.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/turn-into-toolbar-button.d.ts +9 -0
- package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -0
- package/dist/index.d.ts +42 -83
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/dist/editor.css +0 -1
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const BlockPlaceholderKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockPlaceholder", {
|
|
2
|
+
_target: {
|
|
3
|
+
node: import('platejs').TElement;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
} | null;
|
|
6
|
+
placeholders: Record<string, string>;
|
|
7
|
+
query: (context: import('platejs/react').PlatePluginContext<import('platejs/react').BlockPlaceholderConfig> & {
|
|
8
|
+
node: import('platejs').TElement;
|
|
9
|
+
path: import('platejs').Path;
|
|
10
|
+
}) => boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}, {}, {}, {
|
|
13
|
+
placeholder: (node: import('platejs').TElement) => string | undefined;
|
|
14
|
+
}>>[];
|
|
15
|
+
//# sourceMappingURL=block-placeholder-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-placeholder-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-placeholder-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;KAa/B,CAAC"}
|
|
@@ -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" | "cover" | "touch") | 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 | 2 | 3 | 4) | {
|
|
23
|
+
button: 0 | 1 | 2 | 3 | 4;
|
|
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
|
+
isSelecting?: boolean;
|
|
43
|
+
isSelectionAreaVisible?: boolean;
|
|
44
|
+
rightSelectionAreaClassName?: string;
|
|
45
|
+
selectedIds?: Set<string>;
|
|
46
|
+
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
47
|
+
isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
48
|
+
onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
|
|
49
|
+
}, {
|
|
50
|
+
blockSelection: {
|
|
51
|
+
addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event, }: {
|
|
52
|
+
element: import('platejs').TElement;
|
|
53
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
54
|
+
disabledWhenFocused?: boolean;
|
|
55
|
+
}) => void>;
|
|
56
|
+
setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed, }: Partial<{
|
|
57
|
+
added: Element[];
|
|
58
|
+
removed: Element[];
|
|
59
|
+
}> & {
|
|
60
|
+
ids?: string[];
|
|
61
|
+
}) => void>;
|
|
62
|
+
add: (id: string[] | string) => void;
|
|
63
|
+
addSelectedRow: (id: string, options?: {
|
|
64
|
+
clear?: boolean;
|
|
65
|
+
delay?: number;
|
|
66
|
+
}) => void;
|
|
67
|
+
clear: () => void;
|
|
68
|
+
delete: (id: string[] | string) => void;
|
|
69
|
+
deselect: () => void;
|
|
70
|
+
first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
|
|
71
|
+
focus: () => void;
|
|
72
|
+
getNodes: (options?: {
|
|
73
|
+
collapseTableRows?: boolean;
|
|
74
|
+
selectionFallback?: boolean;
|
|
75
|
+
sort?: boolean;
|
|
76
|
+
}) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
|
|
77
|
+
has: (id: string[] | string) => boolean;
|
|
78
|
+
isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
79
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
80
|
+
resetSelectedIds: () => void;
|
|
81
|
+
selectAll: () => void;
|
|
82
|
+
set: (id: string[] | string) => void;
|
|
83
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
84
|
+
unselect: () => void;
|
|
85
|
+
};
|
|
86
|
+
} & Record<"blockSelection", Partial<{
|
|
87
|
+
addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event, }: {
|
|
88
|
+
element: import('platejs').TElement;
|
|
89
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
90
|
+
disabledWhenFocused?: boolean;
|
|
91
|
+
}) => void>;
|
|
92
|
+
setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed, }: Partial<{
|
|
93
|
+
added: Element[];
|
|
94
|
+
removed: Element[];
|
|
95
|
+
}> & {
|
|
96
|
+
ids?: string[];
|
|
97
|
+
}) => void>;
|
|
98
|
+
add: (id: string[] | string) => void;
|
|
99
|
+
addSelectedRow: (id: string, options?: {
|
|
100
|
+
clear?: boolean;
|
|
101
|
+
delay?: number;
|
|
102
|
+
}) => void;
|
|
103
|
+
clear: () => void;
|
|
104
|
+
delete: (id: string[] | string) => void;
|
|
105
|
+
deselect: () => void;
|
|
106
|
+
first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
|
|
107
|
+
focus: () => void;
|
|
108
|
+
getNodes: (options?: {
|
|
109
|
+
collapseTableRows?: boolean;
|
|
110
|
+
selectionFallback?: boolean;
|
|
111
|
+
sort?: boolean;
|
|
112
|
+
}) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
|
|
113
|
+
has: (id: string[] | string) => boolean;
|
|
114
|
+
isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
|
|
115
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
116
|
+
resetSelectedIds: () => void;
|
|
117
|
+
selectAll: () => void;
|
|
118
|
+
set: (id: string[] | string) => void;
|
|
119
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
120
|
+
unselect: () => void;
|
|
121
|
+
}>>, Record<"blockSelection", {
|
|
122
|
+
duplicate: () => void;
|
|
123
|
+
insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
|
|
124
|
+
at: import('platejs').Path;
|
|
125
|
+
insertedCallback?: () => void;
|
|
126
|
+
}) => void;
|
|
127
|
+
removeNodes: () => void;
|
|
128
|
+
select: () => void;
|
|
129
|
+
selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
|
|
130
|
+
setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
|
|
131
|
+
setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
|
|
132
|
+
setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
|
|
133
|
+
}>, {
|
|
134
|
+
isSelected?: (id?: string) => boolean;
|
|
135
|
+
isSelectingSome?: () => boolean;
|
|
136
|
+
}>>[];
|
|
137
|
+
//# sourceMappingURL=block-selection-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-selection-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-selection-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA2B00E,CAAC;;;;;;eAA0a,CAAC;;;4CAAk4I,CAAC;iBAAqB,CAAC;iBAA4B,CAAC;;;;;;;0BAA8xB,CAAC;6BAAiC,CAAC;6BAAoM,CAAC;gBAA2B,CAAC;;;;;;;;;;;;;;;2BAAp4L,CAAC;;;;;;WAA0a,CAAC;;;wCAAwyN,CAAC;aAAiB,CAAC;aAAwB,CAAC;;;;;;;sBAA8sB,CAAC;yBAA6B,CAAC;yBAAgL,CAAC;YAAuB,CAAC;;;;;;;;;;;;;;wBAAk/B,CAAC;;;;;uCAAgqB,CAAC;oFAA0J,CAAC;6EAA2J,CAAC;;oBAAoI,CAAC;;KAD7mZ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}, {}>>[];
|
|
21
|
+
//# sourceMappingURL=callout-base-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/callout-base-kit.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;wBAGL,CAAC;sBAA2B,CAAC;mBAA8B,CAAC;qBAAgC,CAAC;uBAAkC,CAAC;kBAAwD,CAAC;;cAAuC,CAAC;iBAAqC,CAAC;iBAA4B,CAAC;iBAA4B,CAAC;gBAAgF,CAAC;;gBAAoG,CAAC;mBAA6B,CAAC;;;SAD1iB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}, {}>>[];
|
|
21
|
+
//# sourceMappingURL=callout-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/callout-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;wBACZ,CAAC;sBAA2B,CAAC;mBAA8B,CAAC;qBAAgC,CAAC;uBAAkC,CAAC;kBAAwD,CAAC;;cAAuC,CAAC;iBAAqC,CAAC;iBAA4B,CAAC;iBAA4B,CAAC;gBAAgF,CAAC;;gBAAoG,CAAC;mBAA6B,CAAC;;;SADzd,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createLowlight } from 'lowlight';
|
|
2
|
+
export declare const BaseCodeBlockKit: (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> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"code_syntax", {}, {}, {}, {}>>)[];
|
|
8
|
+
//# sourceMappingURL=code-block-base-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/code-block-base-kit.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAO,cAAc,EAAE,MAAM,UAAU,CAAC;AAU/C,eAAO,MAAM,gBAAgB;;;;;0KAO5B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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", {}, {}, {}, {}>>)[];
|
|
8
|
+
//# sourceMappingURL=code-block-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/code-block-kit.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAO,cAAc,EAAE,MAAM,UAAU,CAAC;AAU/C,eAAO,MAAM,YAAY;;;;;2MAQxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/column-base-kit.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,6LAGzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/column-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,yMAGrB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const BaseCommentKit: import('platejs').SlatePlugin<import('platejs').PluginConfig<"comment", {}, {
|
|
2
|
+
comment: {
|
|
3
|
+
has: (options: {
|
|
4
|
+
id: string;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
7
|
+
id?: string;
|
|
8
|
+
isDraft?: boolean;
|
|
9
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
|
|
10
|
+
nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
|
|
11
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
12
|
+
id?: string;
|
|
13
|
+
isDraft?: boolean;
|
|
14
|
+
transient?: boolean;
|
|
15
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
|
|
16
|
+
};
|
|
17
|
+
} & Record<"comment", {
|
|
18
|
+
has: (options: {
|
|
19
|
+
id: string;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
22
|
+
id?: string;
|
|
23
|
+
isDraft?: boolean;
|
|
24
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
|
|
25
|
+
nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
|
|
26
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
27
|
+
id?: string;
|
|
28
|
+
isDraft?: boolean;
|
|
29
|
+
transient?: boolean;
|
|
30
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
|
|
31
|
+
}>, {
|
|
32
|
+
comment: {
|
|
33
|
+
removeMark: () => void;
|
|
34
|
+
setDraft: (options?: import('platejs').SetNodesOptions) => void;
|
|
35
|
+
unsetMark: (options: {
|
|
36
|
+
id?: string;
|
|
37
|
+
transient?: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
};
|
|
40
|
+
} & Record<"comment", {
|
|
41
|
+
removeMark: () => void;
|
|
42
|
+
setDraft: (options?: import('platejs').SetNodesOptions) => void;
|
|
43
|
+
unsetMark: (options: {
|
|
44
|
+
id?: string;
|
|
45
|
+
transient?: boolean;
|
|
46
|
+
}) => void;
|
|
47
|
+
}>, {}>>[];
|
|
48
|
+
//# sourceMappingURL=comment-base-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/comment-base-kit.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;sBAG+2B,CAAC;cAAuC,CAAC;mBAA6B,CAAC;;;uBAAiJ,CAAC;cAAuC,CAAC;mBAA6B,CAAC;qBAAgC,CAAC;;;;;;;kBAAiK,CAAC;UAAmC,CAAC;eAAyB,CAAC;;;mBAAqI,CAAC;UAAmC,CAAC;eAAyB,CAAC;iBAA4B,CAAC;;;;;0BAA+H,CAAC;;cAAyE,CAAC;qBAA+B,CAAC;;;;;sBAAgH,CAAC;;UAAiE,CAAC;iBAA2B,CAAC;;UADnkE,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Path } from 'platejs';
|
|
2
|
+
export declare const commentPlugin: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"comment", {
|
|
3
|
+
activeId: string | null;
|
|
4
|
+
commentingBlock: Path | null;
|
|
5
|
+
hoverId: string | null;
|
|
6
|
+
uniquePathMap: Map<string, Path>;
|
|
7
|
+
}, {
|
|
8
|
+
comment: {
|
|
9
|
+
has: (options: {
|
|
10
|
+
id: string;
|
|
11
|
+
}) => boolean;
|
|
12
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
13
|
+
id?: string;
|
|
14
|
+
isDraft?: boolean;
|
|
15
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
|
|
16
|
+
nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
|
|
17
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
18
|
+
id?: string;
|
|
19
|
+
isDraft?: boolean;
|
|
20
|
+
transient?: boolean;
|
|
21
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
comment: {
|
|
25
|
+
removeMark: () => void;
|
|
26
|
+
setDraft: (options?: import('platejs').SetNodesOptions) => void;
|
|
27
|
+
unsetMark: (options: {
|
|
28
|
+
id?: string;
|
|
29
|
+
transient?: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
};
|
|
32
|
+
} & Record<"comment", {
|
|
33
|
+
setDraft: () => void;
|
|
34
|
+
}>, {}>>;
|
|
35
|
+
export declare const CommentKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"comment", {
|
|
36
|
+
activeId: string | null;
|
|
37
|
+
commentingBlock: Path | null;
|
|
38
|
+
hoverId: string | null;
|
|
39
|
+
uniquePathMap: Map<string, Path>;
|
|
40
|
+
}, {
|
|
41
|
+
comment: {
|
|
42
|
+
has: (options: {
|
|
43
|
+
id: string;
|
|
44
|
+
}) => boolean;
|
|
45
|
+
node: (options?: import('platejs').EditorNodesOptions & {
|
|
46
|
+
id?: string;
|
|
47
|
+
isDraft?: boolean;
|
|
48
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText> | undefined;
|
|
49
|
+
nodeId: (leaf: import('platejs').TCommentText) => string | undefined;
|
|
50
|
+
nodes: (options?: import('platejs').EditorNodesOptions & {
|
|
51
|
+
id?: string;
|
|
52
|
+
isDraft?: boolean;
|
|
53
|
+
transient?: boolean;
|
|
54
|
+
}) => import('platejs').NodeEntry<import('platejs').TCommentText>[];
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
comment: {
|
|
58
|
+
removeMark: () => void;
|
|
59
|
+
setDraft: (options?: import('platejs').SetNodesOptions) => void;
|
|
60
|
+
unsetMark: (options: {
|
|
61
|
+
id?: string;
|
|
62
|
+
transient?: boolean;
|
|
63
|
+
}) => void;
|
|
64
|
+
};
|
|
65
|
+
} & Record<"comment", {
|
|
66
|
+
setDraft: () => void;
|
|
67
|
+
}>, {}>>[];
|
|
68
|
+
//# sourceMappingURL=comment-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/comment-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,IAAI,EAAE,MAAM,SAAS,CAAC;AAsBlD,eAAO,MAAM,aAAa;cAPZ,MAAM,GAAG,IAAI;qBACN,IAAI,GAAG,IAAI;aACnB,MAAM,GAAG,IAAI;mBACP,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC;;;;;;sBANjC,CAAC;cACI,CAAC;mBAEK,CAAA;;;uBAOQ,CAAC;cAAuC,CAAC;mBACnD,CAAC;qBACkB,CAAC;;;;;;0BAKxB,CAAN;;cAII,CAAC;qBAA+B,CAAC;;;;;QA2DnC,CAAC;AAEL,eAAO,MAAM,UAAU;cA/ET,MAAM,GAAG,IAAI;qBACN,IAAI,GAAG,IAAI;aACnB,MAAM,GAAG,IAAI;mBACP,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC;;;;;;sBANjC,CAAC;cACI,CAAC;mBAEK,CAAA;;;uBAOQ,CAAC;cAAuC,CAAC;mBACnD,CAAC;qBACkB,CAAC;;;;;;0BAKxB,CAAN;;cAII,CAAC;qBAA+B,CAAC;;;;;UA6DE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const CursorOverlayKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"cursorOverlay", {
|
|
2
|
+
cursors: Record<string, import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>>;
|
|
3
|
+
}, {
|
|
4
|
+
cursorOverlay: {
|
|
5
|
+
addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
|
|
6
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
7
|
+
};
|
|
8
|
+
} & Record<"cursorOverlay", {
|
|
9
|
+
addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
|
|
10
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
11
|
+
}>, {}, {}>>[];
|
|
12
|
+
//# sourceMappingURL=cursor-overlay-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor-overlay-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/cursor-overlay-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;;;cAM5B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const BaseDateKit: import('platejs').SlatePlugin<import('platejs').PluginConfig<"date", {}, {}, {
|
|
2
|
+
insert: {
|
|
3
|
+
date: (args_0?: ({
|
|
4
|
+
date?: string;
|
|
5
|
+
} & {
|
|
6
|
+
batchDirty?: boolean;
|
|
7
|
+
hanging?: boolean;
|
|
8
|
+
nextBlock?: boolean;
|
|
9
|
+
removeEmpty?: import('platejs').QueryNodeOptions | boolean;
|
|
10
|
+
select?: boolean;
|
|
11
|
+
} & {
|
|
12
|
+
id?: boolean | string;
|
|
13
|
+
block?: boolean;
|
|
14
|
+
empty?: boolean;
|
|
15
|
+
match?: import('platejs').Predicate<import('platejs').NodeIn<import('platejs').Value>> | undefined;
|
|
16
|
+
text?: boolean;
|
|
17
|
+
} & import('platejs').QueryAt & import('platejs').QueryMode & import('platejs').QueryVoids) | undefined) => void;
|
|
18
|
+
};
|
|
19
|
+
}, {}>>[];
|
|
20
|
+
//# sourceMappingURL=date-base-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/date-base-kit.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;qBACK,CAAC;gBAAqB,CAAC;;sBAA8C,CAAC;mBAA8B,CAAC;qBAAgC,CAAC;uBAAkC,CAAC;kBAAwD,CAAC;;cAAuC,CAAC;iBAAqC,CAAC;iBAA4B,CAAC;iBAA4B,CAAC;gBAAgF,CAAC;;;SAD5Y,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const DateKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"date", {}, {}, {
|
|
2
|
+
insert: {
|
|
3
|
+
date: (args_0?: ({
|
|
4
|
+
date?: string;
|
|
5
|
+
} & {
|
|
6
|
+
batchDirty?: boolean;
|
|
7
|
+
hanging?: boolean;
|
|
8
|
+
nextBlock?: boolean;
|
|
9
|
+
removeEmpty?: import('platejs').QueryNodeOptions | boolean;
|
|
10
|
+
select?: boolean;
|
|
11
|
+
} & {
|
|
12
|
+
id?: boolean | string;
|
|
13
|
+
block?: boolean;
|
|
14
|
+
empty?: boolean;
|
|
15
|
+
match?: import('platejs').Predicate<import('platejs').NodeIn<import('platejs').Value>> | undefined;
|
|
16
|
+
text?: boolean;
|
|
17
|
+
} & import('platejs').QueryAt & import('platejs').QueryMode & import('platejs').QueryVoids) | undefined) => void;
|
|
18
|
+
};
|
|
19
|
+
}, {}>>[];
|
|
20
|
+
//# sourceMappingURL=date-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/date-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO;;qBACG,CAAC;gBAAqB,CAAC;;sBAA8C,CAAC;mBAA8B,CAAC;qBAAgC,CAAC;uBAAkC,CAAC;kBAAwD,CAAC;;cAAuC,CAAC;iBAAqC,CAAC;iBAA4B,CAAC;iBAA4B,CAAC;gBAAgF,CAAC;;;SADpZ,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { TComment } from '../../ui/comment';
|
|
2
|
+
export interface TDiscussion {
|
|
3
|
+
id: string;
|
|
4
|
+
comments: TComment[];
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
isResolved: boolean;
|
|
7
|
+
userId: string;
|
|
8
|
+
documentContent?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const discussionPlugin: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"discussion", {
|
|
11
|
+
currentUserId: string;
|
|
12
|
+
discussions: TDiscussion[];
|
|
13
|
+
users: Record<string, {
|
|
14
|
+
id: string;
|
|
15
|
+
avatarUrl: string;
|
|
16
|
+
name: string;
|
|
17
|
+
hue?: number;
|
|
18
|
+
}>;
|
|
19
|
+
}, {}, {}, {
|
|
20
|
+
currentUser: () => {
|
|
21
|
+
id: string;
|
|
22
|
+
avatarUrl: string;
|
|
23
|
+
name: string;
|
|
24
|
+
hue?: number;
|
|
25
|
+
};
|
|
26
|
+
user: (id: string) => {
|
|
27
|
+
id: string;
|
|
28
|
+
avatarUrl: string;
|
|
29
|
+
name: string;
|
|
30
|
+
hue?: number;
|
|
31
|
+
};
|
|
32
|
+
}>>;
|
|
33
|
+
export declare const DiscussionKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"discussion", {
|
|
34
|
+
currentUserId: string;
|
|
35
|
+
discussions: TDiscussion[];
|
|
36
|
+
users: Record<string, {
|
|
37
|
+
id: string;
|
|
38
|
+
avatarUrl: string;
|
|
39
|
+
name: string;
|
|
40
|
+
hue?: number;
|
|
41
|
+
}>;
|
|
42
|
+
}, {}, {}, {
|
|
43
|
+
currentUser: () => {
|
|
44
|
+
id: string;
|
|
45
|
+
avatarUrl: string;
|
|
46
|
+
name: string;
|
|
47
|
+
hue?: number;
|
|
48
|
+
};
|
|
49
|
+
user: (id: string) => {
|
|
50
|
+
id: string;
|
|
51
|
+
avatarUrl: string;
|
|
52
|
+
name: string;
|
|
53
|
+
hue?: number;
|
|
54
|
+
};
|
|
55
|
+
}>>[];
|
|
56
|
+
//# sourceMappingURL=discussion-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discussion-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/discussion-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAMxD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAoHD,eAAO,MAAM,gBAAgB;;;;YApBrB,MAAM;mBAAa,MAAM;cAAQ,MAAM;cAAQ,MAAM;;;;YAArD,MAAM;mBAAa,MAAM;cAAQ,MAAM;cAAQ,MAAM;;eAiC9C,MAAM;YAjCb,MAAM;mBAAa,MAAM;cAAQ,MAAM;cAAQ,MAAM;;GAkCxD,CAAC;AAEN,eAAO,MAAM,aAAa;;;;YApClB,MAAM;mBAAa,MAAM;cAAQ,MAAM;cAAQ,MAAM;;;;YAArD,MAAM;mBAAa,MAAM;cAAQ,MAAM;cAAQ,MAAM;;eAiC9C,MAAM;YAjCb,MAAM;mBAAa,MAAM;cAAQ,MAAM;cAAQ,MAAM;;KAoCd,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const DndKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"dnd", {
|
|
2
|
+
_isOver?: boolean;
|
|
3
|
+
draggingId?: string[] | string | null;
|
|
4
|
+
dropTarget?: {
|
|
5
|
+
id: string | null;
|
|
6
|
+
line: import('@platejs/dnd').DropLineDirection;
|
|
7
|
+
};
|
|
8
|
+
enableScroller?: boolean;
|
|
9
|
+
isDragging?: boolean;
|
|
10
|
+
multiplePreviewRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
11
|
+
scrollerProps?: Partial<import('@platejs/dnd').ScrollerProps>;
|
|
12
|
+
onDropFiles?: (props: {
|
|
13
|
+
id: string;
|
|
14
|
+
dragItem: import('@platejs/dnd').FileDragItemNode;
|
|
15
|
+
editor: import('platejs/react').PlateEditor;
|
|
16
|
+
monitor: import('react-dnd').DropTargetMonitor<import('@platejs/dnd').DragItemNode, unknown>;
|
|
17
|
+
nodeRef: any;
|
|
18
|
+
target?: import('platejs').Path;
|
|
19
|
+
}) => void;
|
|
20
|
+
}, {}, {}, {}>>[];
|
|
21
|
+
//# sourceMappingURL=dnd-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dnd-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/dnd-kit.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;cAkB8qE,CAAC;;iBADjsE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docx-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/docx-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,oLAA4B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as emojiMartData } from '@emoji-mart/data';
|
|
2
|
+
export declare const EmojiKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji", {
|
|
3
|
+
data?: emojiMartData.EmojiMartData;
|
|
4
|
+
createEmojiNode?: (emoji: emojiMartData.Emoji) => import('platejs').Descendant;
|
|
5
|
+
} & import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji_input", {}, {}, {}, {}>>)[];
|
|
6
|
+
//# sourceMappingURL=emoji-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/emoji-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAK7C,eAAO,MAAM,QAAQ;;;kLAKpB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ExitBreakKit: import('platejs').SlatePlugin<import('platejs').PluginConfig<"exitBreak", {}, {}, Record<"exitBreak", {
|
|
2
|
+
insert: (options: Omit<import('platejs').InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
3
|
+
insertBefore: (options: Omit<import('platejs').InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
4
|
+
}>, {}>>[];
|
|
5
|
+
//# sourceMappingURL=exit-break-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit-break-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/exit-break-kit.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;UAOxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixed-toolbar-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/fixed-toolbar-kit.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,wGAW3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-toolbar-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/floating-toolbar-kit.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,2GAW9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const BaseFontKit: (import('platejs').SlatePlugin<import('platejs').PluginConfig<"color", {}, {}, Record<"color", {
|
|
2
|
+
addMark: (value: string) => void;
|
|
3
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
|
|
4
|
+
addMark: (value: string) => void;
|
|
5
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
|
|
6
|
+
addMark: (value: string) => void;
|
|
7
|
+
}>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
8
|
+
addMark: (value: string) => void;
|
|
9
|
+
}>, {}>>)[];
|
|
10
|
+
//# sourceMappingURL=font-base-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/font-base-kit.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW;;;;;;;;WAKvB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const FontKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"color", {}, {}, Record<"color", {
|
|
2
|
+
addMark: (value: string) => void;
|
|
3
|
+
}>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
|
|
4
|
+
addMark: (value: string) => void;
|
|
5
|
+
}>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
|
|
6
|
+
addMark: (value: string) => void;
|
|
7
|
+
}>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
8
|
+
addMark: (value: string) => void;
|
|
9
|
+
}>, {}>>)[];
|
|
10
|
+
//# sourceMappingURL=font-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/font-kit.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO;;;;;;;;WAYnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indent-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/indent-base-kit.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,yEAezB,CAAC"}
|