@delali/web-editor 0.0.0-stage → 0.4.1
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/CHANGELOG.md +39 -0
- package/LICENSE +201 -0
- package/README.md +167 -2
- package/dist/components/editor/chat-comment-effects.d.ts +2 -0
- package/dist/components/editor/chat-types.d.ts +20 -0
- package/dist/components/editor/collaboration/base-collaboration-plugin.d.ts +14 -0
- package/dist/components/editor/collaboration/collaboration-plugin.d.ts +6 -0
- package/dist/components/editor/collaboration/collaboration-session.d.ts +30 -0
- package/dist/components/editor/collaboration/collaboration-starter.d.ts +9 -0
- package/dist/components/editor/collaboration/editor-collaboration.d.ts +16 -0
- package/dist/components/editor/collaboration/editor-collaboration.js +293 -0
- package/dist/components/editor/collaboration/remote-cursor-overlay.d.ts +1 -0
- package/dist/components/editor/collaboration/shared-document.d.ts +18 -0
- package/dist/components/editor/create-editor-plugins.d.ts +3 -0
- package/dist/components/editor/create-editor-plugins.js +25204 -0
- package/dist/components/editor/create-viewer-plugins.d.ts +3 -0
- package/dist/components/editor/editor-base-kit.d.ts +329 -0
- package/dist/components/editor/editor-base-kit.js +3136 -0
- package/dist/components/editor/editor-config.d.ts +14 -0
- package/dist/components/editor/editor-config.js +145 -0
- package/dist/components/editor/editor-kit.d.ts +3978 -0
- package/dist/components/editor/editor-kit.js +18781 -0
- package/dist/components/editor/plate-types.d.ts +99 -0
- package/dist/components/editor/plugins/accordion-group-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/accordion-group-kit.d.ts +3 -0
- package/dist/components/editor/plugins/accordion-types.d.ts +14 -0
- package/dist/components/editor/plugins/ai-kit.d.ts +248 -0
- package/dist/components/editor/plugins/align-base-kit.d.ts +3 -0
- package/dist/components/editor/plugins/api-doc/expandable-base-kit.d.ts +24 -0
- package/dist/components/editor/plugins/api-doc/expandable-kit.d.ts +29 -0
- package/dist/components/editor/plugins/api-doc/expandable-types.d.ts +7 -0
- package/dist/components/editor/plugins/api-doc/panel-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/api-doc/panel-kit.d.ts +3 -0
- package/dist/components/editor/plugins/api-doc/panel-types.d.ts +7 -0
- package/dist/components/editor/plugins/api-doc/response-field-base-kit.d.ts +3 -0
- package/dist/components/editor/plugins/api-doc/response-field-kit.d.ts +4 -0
- package/dist/components/editor/plugins/api-doc/response-field-types.d.ts +17 -0
- package/dist/components/editor/plugins/autoformat-kit.d.ts +1 -0
- package/dist/components/editor/plugins/badge-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/badge-kit.d.ts +3 -0
- package/dist/components/editor/plugins/badge-types.d.ts +24 -0
- package/dist/components/editor/plugins/banner-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/banner-kit.d.ts +3 -0
- package/dist/components/editor/plugins/banner-types.d.ts +15 -0
- package/dist/components/editor/plugins/basic-blocks-base-kit.d.ts +5 -0
- package/dist/components/editor/plugins/basic-blocks-kit.d.ts +5 -0
- package/dist/components/editor/plugins/basic-marks-base-kit.d.ts +19 -0
- package/dist/components/editor/plugins/basic-marks-kit.d.ts +35 -0
- package/dist/components/editor/plugins/basic-nodes-kit.d.ts +21 -0
- package/dist/components/editor/plugins/block-menu-kit.d.ts +165 -0
- package/dist/components/editor/plugins/block-placeholder-kit.d.ts +14 -0
- package/dist/components/editor/plugins/block-selection-kit.d.ts +137 -0
- package/dist/components/editor/plugins/callout-base-kit.d.ts +20 -0
- package/dist/components/editor/plugins/callout-kit.d.ts +20 -0
- package/dist/components/editor/plugins/callout-types.d.ts +18 -0
- package/dist/components/editor/plugins/card-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/card-kit.d.ts +3 -0
- package/dist/components/editor/plugins/card-types.d.ts +14 -0
- package/dist/components/editor/plugins/caret-placement-kit.d.ts +8 -0
- package/dist/components/editor/plugins/code-block-base-kit.d.ts +7 -0
- package/dist/components/editor/plugins/code-block-input-rule-gate.d.ts +4 -0
- package/dist/components/editor/plugins/code-block-kit.d.ts +7 -0
- package/dist/components/editor/plugins/color-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/color-kit.d.ts +3 -0
- package/dist/components/editor/plugins/color-types.d.ts +18 -0
- package/dist/components/editor/plugins/column-base-kit.d.ts +1 -0
- package/dist/components/editor/plugins/column-kit.d.ts +1 -0
- package/dist/components/editor/plugins/comment-base-kit.d.ts +47 -0
- package/dist/components/editor/plugins/comment-kit.d.ts +71 -0
- package/dist/components/editor/plugins/copilot-kit.d.ts +72 -0
- package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +11 -0
- package/dist/components/editor/plugins/date-base-kit.d.ts +19 -0
- package/dist/components/editor/plugins/date-kit.d.ts +19 -0
- package/dist/components/editor/plugins/discussion-kit.d.ts +31 -0
- package/dist/components/editor/plugins/dnd-kit.d.ts +20 -0
- package/dist/components/editor/plugins/docx-kit.d.ts +1 -0
- package/dist/components/editor/plugins/emoji-kit.d.ts +9 -0
- package/dist/components/editor/plugins/exit-break-kit.d.ts +4 -0
- package/dist/components/editor/plugins/floating-toolbar-kit.d.ts +1 -0
- package/dist/components/editor/plugins/font-base-kit.d.ts +9 -0
- package/dist/components/editor/plugins/font-kit.d.ts +9 -0
- package/dist/components/editor/plugins/fraction-input-rule.d.ts +12 -0
- package/dist/components/editor/plugins/frame-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/frame-kit.d.ts +3 -0
- package/dist/components/editor/plugins/frame-types.d.ts +10 -0
- package/dist/components/editor/plugins/icon-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/icon-kit.d.ts +3 -0
- package/dist/components/editor/plugins/icon-types.d.ts +15 -0
- package/dist/components/editor/plugins/indent-base-kit.d.ts +1 -0
- package/dist/components/editor/plugins/indent-kit.d.ts +5 -0
- package/dist/components/editor/plugins/input-rule-gate.d.ts +8 -0
- package/dist/components/editor/plugins/line-height-base-kit.d.ts +3 -0
- package/dist/components/editor/plugins/link-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/link-kit.d.ts +89 -0
- package/dist/components/editor/plugins/list-base-kit.d.ts +1 -0
- package/dist/components/editor/plugins/list-kit.d.ts +16 -0
- package/dist/components/editor/plugins/mark-input-rule-gate.d.ts +2 -0
- package/dist/components/editor/plugins/markdown-kit.d.ts +19 -0
- package/dist/components/editor/plugins/math-base-kit.d.ts +9 -0
- package/dist/components/editor/plugins/math-kit.d.ts +9 -0
- package/dist/components/editor/plugins/media-base-kit.d.ts +25 -0
- package/dist/components/editor/plugins/media-kit.d.ts +38 -0
- package/dist/components/editor/plugins/mention-base-kit.d.ts +11 -0
- package/dist/components/editor/plugins/mention-kit.d.ts +11 -0
- package/dist/components/editor/plugins/mermaid-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/mermaid-kit.d.ts +3 -0
- package/dist/components/editor/plugins/mermaid-types.d.ts +14 -0
- package/dist/components/editor/plugins/shared/color-selector.d.ts +9 -0
- package/dist/components/editor/plugins/shared/component-popover.d.ts +12 -0
- package/dist/components/editor/plugins/slash-kit.d.ts +1 -0
- package/dist/components/editor/plugins/steps-base-kit.d.ts +3 -0
- package/dist/components/editor/plugins/steps-kit.d.ts +4 -0
- package/dist/components/editor/plugins/steps-types.d.ts +18 -0
- package/dist/components/editor/plugins/suggestion-base-kit.d.ts +32 -0
- package/dist/components/editor/plugins/suggestion-kit.d.ts +53 -0
- package/dist/components/editor/plugins/tabbed-code-block-base-kit.d.ts +32 -0
- package/dist/components/editor/plugins/tabbed-code-block-kit.d.ts +33 -0
- package/dist/components/editor/plugins/tabbed-code-block-types.d.ts +29 -0
- package/dist/components/editor/plugins/table-base-kit.d.ts +94 -0
- package/dist/components/editor/plugins/table-kit.d.ts +162 -0
- package/dist/components/editor/plugins/tabs-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/tabs-kit.d.ts +3 -0
- package/dist/components/editor/plugins/tabs-types.d.ts +14 -0
- package/dist/components/editor/plugins/text-substitution-input-rule-gate.d.ts +4 -0
- package/dist/components/editor/plugins/tiles-base-kit.d.ts +3 -0
- package/dist/components/editor/plugins/tiles-kit.d.ts +4 -0
- package/dist/components/editor/plugins/tiles-types.d.ts +16 -0
- package/dist/components/editor/plugins/toc-base-kit.d.ts +1 -0
- package/dist/components/editor/plugins/toc-kit.d.ts +5 -0
- package/dist/components/editor/plugins/todo-to-bullet-kit.d.ts +7 -0
- package/dist/components/editor/plugins/toggle-base-kit.d.ts +12 -0
- package/dist/components/editor/plugins/toggle-kit.d.ts +16 -0
- package/dist/components/editor/plugins/tooltip-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/tooltip-html.d.ts +27 -0
- package/dist/components/editor/plugins/tooltip-kit.d.ts +3 -0
- package/dist/components/editor/plugins/tooltip-types.d.ts +10 -0
- package/dist/components/editor/plugins/tree-base-kit.d.ts +2 -0
- package/dist/components/editor/plugins/tree-kit.d.ts +3 -0
- package/dist/components/editor/plugins/tree-types.d.ts +26 -0
- package/dist/components/editor/plugins/typed-conversion-options.d.ts +13 -0
- package/dist/components/editor/plugins/update-base-kit.d.ts +1 -0
- package/dist/components/editor/plugins/update-kit.d.ts +4 -0
- package/dist/components/editor/plugins/update-types.d.ts +19 -0
- package/dist/components/editor/plugins/web-address-text.d.ts +1 -0
- package/dist/components/editor/transforms.d.ts +8 -0
- package/dist/components/editor/use-chat.d.ts +3 -0
- package/dist/components/editor/use-chat.js +3315 -0
- package/dist/components/editor/use-typed-conversion-options.d.ts +3 -0
- package/dist/components/editor/version-history/chunk-node.d.ts +7 -0
- package/dist/components/editor/version-history/chunk-plugin.d.ts +6 -0
- package/dist/components/editor/version-history/collapse-blocks-without-diff.d.ts +4 -0
- package/dist/components/editor/version-history/diff-node.d.ts +9 -0
- package/dist/components/editor/version-history/diff-plate.d.ts +7 -0
- package/dist/components/editor/version-history/diff-plugin.d.ts +8 -0
- package/dist/components/editor/version-history/index.d.ts +9 -0
- package/dist/components/editor/version-history/index.js +19179 -0
- package/dist/components/editor/version-history/use-object-version.d.ts +1 -0
- package/dist/components/editor/version-history/use-reset-editor-on-change.d.ts +7 -0
- package/dist/components/editor/version-history/version-plate.d.ts +7 -0
- package/dist/components/editor/web-editor.d.ts +6 -0
- package/dist/components/editor/web-editor.js +27295 -0
- package/dist/context/editor-adapter-context.d.ts +13 -0
- package/dist/context/editor-adapter-context.js +124 -0
- package/dist/context/editor-adapter.d.ts +262 -0
- package/dist/context/editor-toc-context.d.ts +16 -0
- package/dist/context/heading-slug-context.d.ts +11 -0
- package/dist/context/link-resolution-context.d.ts +24 -0
- package/dist/context/link-resolution-store.d.ts +20 -0
- package/dist/context/portal-container.d.ts +7 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +10 -0
- package/dist/hooks/use-dark-mode.d.ts +1 -0
- package/dist/hooks/use-debounce-callback.d.ts +108 -0
- package/dist/hooks/use-debounce.d.ts +1 -0
- package/dist/hooks/use-is-touch-device.d.ts +1 -0
- package/dist/hooks/use-lock-scroll.d.ts +1 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-mounted.d.ts +6 -0
- package/dist/hooks/use-on-click-outside.d.ts +26 -0
- package/dist/hooks/use-shield-input-selection-from-editor.d.ts +3 -0
- package/dist/hooks/use-upload-file.d.ts +25 -0
- package/dist/hooks/use-upload-file.js +129 -0
- package/dist/lib/accepted-file-types.d.ts +1 -0
- package/dist/lib/block-features.d.ts +11 -0
- package/dist/lib/comment-mark-strip.d.ts +24 -0
- package/dist/lib/comment-mark-strip.js +56 -0
- package/dist/lib/download-file.d.ts +1 -0
- package/dist/lib/editor-element-path.d.ts +8 -0
- package/dist/lib/extract-headings.d.ts +13 -0
- package/dist/lib/extract-headings.js +79 -0
- package/dist/lib/file-size-limit.d.ts +7 -0
- package/dist/lib/html-serialize-hast.d.ts +18 -0
- package/dist/lib/html-serialize-rules.d.ts +15 -0
- package/dist/lib/html-serialize-utils.d.ts +24 -0
- package/dist/lib/html-serialize-utils.js +392 -0
- package/dist/lib/line-marking-context.d.ts +13 -0
- package/dist/lib/line-marking.d.ts +47 -0
- package/dist/lib/list-html.d.ts +30 -0
- package/dist/lib/markdown-joiner-transform.d.ts +31 -0
- package/dist/lib/markdown-utils.d.ts +4 -0
- package/dist/lib/markdown-utils.js +25275 -0
- package/dist/lib/mdx/mdx-archetype-rules.d.ts +2 -0
- package/dist/lib/mdx/mdx-attribute-codec.d.ts +23 -0
- package/dist/lib/mdx/mdx-color-rules.d.ts +2 -0
- package/dist/lib/mdx/mdx-component-rules.d.ts +2 -0
- package/dist/lib/mdx/mdx-mermaid-rules.d.ts +10 -0
- package/dist/lib/mdx/mdx-reference-rules.d.ts +11 -0
- package/dist/lib/mdx/mdx-round-trip.d.ts +3 -0
- package/dist/lib/mdx/mdx-round-trip.js +1397 -0
- package/dist/lib/mdx/mdx-rule-builder.d.ts +45 -0
- package/dist/lib/mdx/mdx-server-plugins.d.ts +8 -0
- package/dist/lib/mdx/mdx-tabbed-code-rules.d.ts +2 -0
- package/dist/lib/mdx/mdx-tabs-rules.d.ts +2 -0
- package/dist/lib/mdx/mdx-toggle-rules.d.ts +9 -0
- package/dist/lib/mdx/mdx-tree-rules.d.ts +2 -0
- package/dist/lib/media-html.d.ts +121 -0
- package/dist/lib/paragraph-html.d.ts +26 -0
- package/dist/lib/server-plugins.d.ts +199 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +25 -0
- package/dist/lib/video-embeds.d.ts +9 -0
- package/dist/styles.css +6726 -0
- package/dist/types/editor.d.ts +161 -0
- package/dist/types/editor.js +77 -0
- package/dist/ui/accordion-group-node-static.d.ts +11 -0
- package/dist/ui/accordion-group-node.d.ts +10 -0
- package/dist/ui/ai-chat-editor.d.ts +4 -0
- package/dist/ui/ai-menu.d.ts +2 -0
- package/dist/ui/ai-node.d.ts +3 -0
- package/dist/ui/ai-toolbar-button.d.ts +3 -0
- package/dist/ui/alert-dialog.d.ts +20 -0
- package/dist/ui/api-doc/expandable-node-static.d.ts +4 -0
- package/dist/ui/api-doc/expandable-node.d.ts +3 -0
- package/dist/ui/api-doc/expandable-settings.d.ts +17 -0
- package/dist/ui/api-doc/panel-node-static.d.ts +3 -0
- package/dist/ui/api-doc/panel-node.d.ts +3 -0
- package/dist/ui/api-doc/response-field-item-node-static.d.ts +3 -0
- package/dist/ui/api-doc/response-field-item-node.d.ts +3 -0
- package/dist/ui/api-doc/response-field-node-static.d.ts +9 -0
- package/dist/ui/api-doc/response-field-node.d.ts +9 -0
- package/dist/ui/avatar.d.ts +16 -0
- package/dist/ui/badge-node-static.d.ts +3 -0
- package/dist/ui/badge-node.d.ts +3 -0
- package/dist/ui/badge-settings-options.d.ts +24 -0
- package/dist/ui/badge-settings.d.ts +19 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/banner-node-static.d.ts +4 -0
- package/dist/ui/banner-node.d.ts +3 -0
- package/dist/ui/block-context-menu.d.ts +8 -0
- package/dist/ui/block-discussion.d.ts +3 -0
- package/dist/ui/block-draggable.d.ts +2 -0
- package/dist/ui/block-list-static.d.ts +2 -0
- package/dist/ui/block-list.d.ts +2 -0
- package/dist/ui/block-menu.d.ts +167 -0
- package/dist/ui/block-selection.d.ts +5 -0
- package/dist/ui/block-suggestion.d.ts +17 -0
- package/dist/ui/blockquote-node-static.d.ts +2 -0
- package/dist/ui/blockquote-node.d.ts +2 -0
- package/dist/ui/button.d.ts +81 -0
- package/dist/ui/calendar.d.ts +5 -0
- package/dist/ui/callout-detail-settings.d.ts +15 -0
- package/dist/ui/callout-icon.d.ts +9 -0
- package/dist/ui/callout-node-static.d.ts +2 -0
- package/dist/ui/callout-node.d.ts +3 -0
- package/dist/ui/callout-settings.d.ts +19 -0
- package/dist/ui/callout-type-button.d.ts +9 -0
- package/dist/ui/caption.d.ts +72 -0
- package/dist/ui/card-element-actions.d.ts +7 -0
- package/dist/ui/card-icon-settings.d.ts +11 -0
- package/dist/ui/card-node-static.d.ts +3 -0
- package/dist/ui/card-node.d.ts +3 -0
- package/dist/ui/card-settings.d.ts +24 -0
- package/dist/ui/card-title-row.d.ts +14 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/code-block-line-marking-form.d.ts +9 -0
- package/dist/ui/code-block-line-marking-input.d.ts +8 -0
- package/dist/ui/code-block-line-marking-popover.d.ts +12 -0
- package/dist/ui/code-block-line-marking-state.d.ts +11 -0
- package/dist/ui/code-block-node-static.d.ts +10 -0
- package/dist/ui/code-block-node.d.ts +5 -0
- package/dist/ui/code-line-selection-toolbar.d.ts +10 -0
- package/dist/ui/code-line-wrapper.d.ts +22 -0
- package/dist/ui/code-node-static.d.ts +2 -0
- package/dist/ui/code-node.d.ts +2 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/color-copy-icon.d.ts +9 -0
- package/dist/ui/color-element-actions.d.ts +7 -0
- package/dist/ui/color-item-settings.d.ts +11 -0
- package/dist/ui/color-node-static.d.ts +3 -0
- package/dist/ui/color-node.d.ts +3 -0
- package/dist/ui/color-settings.d.ts +18 -0
- package/dist/ui/color-swatch-editable.d.ts +12 -0
- package/dist/ui/color-table-row-editable.d.ts +10 -0
- package/dist/ui/column-node-static.d.ts +4 -0
- package/dist/ui/column-node.d.ts +3 -0
- package/dist/ui/command.d.ts +25 -0
- package/dist/ui/comment-node-static.d.ts +3 -0
- package/dist/ui/comment-node.d.ts +3 -0
- package/dist/ui/comment-toolbar-button.d.ts +1 -0
- package/dist/ui/comment.d.ts +45 -0
- package/dist/ui/cursor-overlay.d.ts +4 -0
- package/dist/ui/date-node-static.d.ts +2 -0
- package/dist/ui/date-node.d.ts +2 -0
- package/dist/ui/dialog.d.ts +90 -0
- package/dist/ui/dropdown-menu.d.ts +35 -0
- package/dist/ui/editor-inspector-panel.d.ts +6 -0
- package/dist/ui/editor-static.d.ts +8 -0
- package/dist/ui/editor.d.ts +15 -0
- package/dist/ui/emoji-node.d.ts +3 -0
- package/dist/ui/emoji-toolbar-button.d.ts +16 -0
- package/dist/ui/equation-node-static.d.ts +4 -0
- package/dist/ui/equation-node.d.ts +5 -0
- package/dist/ui/equation-toolbar-button.d.ts +2 -0
- package/dist/ui/floating-discussion.d.ts +8 -0
- package/dist/ui/floating-toolbar-buttons.d.ts +1 -0
- package/dist/ui/floating-toolbar.d.ts +6 -0
- package/dist/ui/font-color-toolbar-button.d.ts +15 -0
- package/dist/ui/frame-node-static.d.ts +3 -0
- package/dist/ui/frame-node.d.ts +3 -0
- package/dist/ui/frame-settings.d.ts +19 -0
- package/dist/ui/ghost-text.d.ts +1 -0
- package/dist/ui/heading-node-static.d.ts +10 -0
- package/dist/ui/heading-node.d.ts +14 -0
- package/dist/ui/highlight-node-static.d.ts +2 -0
- package/dist/ui/highlight-node.d.ts +2 -0
- package/dist/ui/hover-card.d.ts +6 -0
- package/dist/ui/hr-node-static.d.ts +2 -0
- package/dist/ui/hr-node.d.ts +2 -0
- package/dist/ui/icon-node-static.d.ts +3 -0
- package/dist/ui/icon-node.d.ts +3 -0
- package/dist/ui/icon-picker.d.ts +16 -0
- package/dist/ui/icon-settings.d.ts +17 -0
- package/dist/ui/inline-combobox.d.ts +38 -0
- package/dist/ui/input.d.ts +7 -0
- package/dist/ui/kbd-node-static.d.ts +2 -0
- package/dist/ui/kbd-node.d.ts +2 -0
- package/dist/ui/label.d.ts +8 -0
- package/dist/ui/link-node-static.d.ts +11 -0
- package/dist/ui/link-node.d.ts +11 -0
- package/dist/ui/link-reference.d.ts +39 -0
- package/dist/ui/link-reference.js +84 -0
- package/dist/ui/link-search-panel.d.ts +5 -0
- package/dist/ui/link-toolbar-button.d.ts +3 -0
- package/dist/ui/link-toolbar-edit-command.d.ts +7 -0
- package/dist/ui/link-toolbar-shared.d.ts +18 -0
- package/dist/ui/link-toolbar.d.ts +1 -0
- package/dist/ui/mark-toolbar-button.d.ts +6 -0
- package/dist/ui/media-align-button.d.ts +5 -0
- package/dist/ui/media-audio-node-static.d.ts +3 -0
- package/dist/ui/media-audio-node.d.ts +2 -0
- package/dist/ui/media-card.d.ts +11 -0
- package/dist/ui/media-embed-node-static.d.ts +6 -0
- package/dist/ui/media-embed-node.d.ts +2 -0
- package/dist/ui/media-file-display.d.ts +11 -0
- package/dist/ui/media-file-mode-dropdown.d.ts +10 -0
- package/dist/ui/media-file-node-static.d.ts +3 -0
- package/dist/ui/media-file-node.d.ts +2 -0
- package/dist/ui/media-hint-icon-picker.d.ts +5 -0
- package/dist/ui/media-hint-settings.d.ts +2 -0
- package/dist/ui/media-image-lightbox.d.ts +17 -0
- package/dist/ui/media-image-node-static.d.ts +6 -0
- package/dist/ui/media-image-node.d.ts +7 -0
- package/dist/ui/media-placeholder-node.d.ts +3 -0
- package/dist/ui/media-preview-dialog.d.ts +12 -0
- package/dist/ui/media-toolbar.d.ts +3 -0
- package/dist/ui/media-upload-toast.d.ts +1 -0
- package/dist/ui/media-video-node-static.d.ts +6 -0
- package/dist/ui/media-video-node.d.ts +2 -0
- package/dist/ui/member-profile-card.d.ts +17 -0
- package/dist/ui/mention-document-element.d.ts +5 -0
- package/dist/ui/mention-document-hover-card.d.ts +17 -0
- package/dist/ui/mention-document-link.d.ts +13 -0
- package/dist/ui/mention-element.d.ts +5 -0
- package/dist/ui/mention-input-element.d.ts +2 -0
- package/dist/ui/mention-node-static.d.ts +7 -0
- package/dist/ui/mention-page-combobox-group.d.ts +8 -0
- package/dist/ui/mention-people-combobox-group.d.ts +8 -0
- package/dist/ui/menu.d.ts +103 -0
- package/dist/ui/mermaid-node-static.d.ts +4 -0
- package/dist/ui/mermaid-node.d.ts +3 -0
- package/dist/ui/more-toolbar-button.d.ts +3 -0
- package/dist/ui/paragraph-node-static.d.ts +2 -0
- package/dist/ui/paragraph-node.d.ts +2 -0
- package/dist/ui/popover.d.ts +11 -0
- package/dist/ui/progress.d.ts +3 -0
- package/dist/ui/resize-handle.d.ts +15 -0
- package/dist/ui/select.d.ts +13 -0
- package/dist/ui/separator.d.ts +8 -0
- package/dist/ui/slash-node.d.ts +20 -0
- package/dist/ui/smart-link-clipboard.d.ts +1 -0
- package/dist/ui/smart-link-copy-button.d.ts +6 -0
- package/dist/ui/smart-link-mode-dropdown.d.ts +9 -0
- package/dist/ui/smart-link-toolbar.d.ts +17 -0
- package/dist/ui/smart-link-view.d.ts +23 -0
- package/dist/ui/smart-link.d.ts +43 -0
- package/dist/ui/spinner.d.ts +7 -0
- package/dist/ui/step-node-static.d.ts +3 -0
- package/dist/ui/step-node.d.ts +3 -0
- package/dist/ui/step-settings.d.ts +19 -0
- package/dist/ui/steps-node-static.d.ts +10 -0
- package/dist/ui/steps-node.d.ts +10 -0
- package/dist/ui/suggestion-node-static.d.ts +3 -0
- package/dist/ui/suggestion-node.d.ts +6 -0
- package/dist/ui/suggestion-toolbar-button.d.ts +1 -0
- package/dist/ui/switch.d.ts +4 -0
- package/dist/ui/tabbed-code-block-actions.d.ts +24 -0
- package/dist/ui/tabbed-code-block-header.d.ts +23 -0
- package/dist/ui/tabbed-code-block-language-selector.d.ts +7 -0
- package/dist/ui/tabbed-code-block-languages.d.ts +6 -0
- package/dist/ui/tabbed-code-block-node-static.d.ts +4 -0
- package/dist/ui/tabbed-code-block-node.d.ts +4 -0
- package/dist/ui/tabbed-code-block-settings.d.ts +18 -0
- package/dist/ui/tabbed-code-block-sync.d.ts +10 -0
- package/dist/ui/tabbed-code-block-tab-dropdown.d.ts +10 -0
- package/dist/ui/tabbed-code-block-tab-strip.d.ts +27 -0
- package/dist/ui/tabbed-code-block-tab-trigger.d.ts +14 -0
- package/dist/ui/tabbed-code-block-utils.d.ts +9 -0
- package/dist/ui/table-icons.d.ts +7 -0
- package/dist/ui/table-node-static.d.ts +9 -0
- package/dist/ui/table-node.d.ts +9 -0
- package/dist/ui/tabs-node-static.d.ts +4 -0
- package/dist/ui/tabs-node.d.ts +3 -0
- package/dist/ui/tabs.d.ts +10 -0
- package/dist/ui/textarea.d.ts +10 -0
- package/dist/ui/tile-node-static.d.ts +3 -0
- package/dist/ui/tile-node.d.ts +3 -0
- package/dist/ui/tile-settings.d.ts +18 -0
- package/dist/ui/tiles-node-static.d.ts +3 -0
- package/dist/ui/tiles-node.d.ts +3 -0
- package/dist/ui/toc-node-static.d.ts +2 -0
- package/dist/ui/toc-node.d.ts +2 -0
- package/dist/ui/toc-sidebar.d.ts +6 -0
- package/dist/ui/toc-state-sync.d.ts +5 -0
- package/dist/ui/toggle-node-static.d.ts +3 -0
- package/dist/ui/toggle-node-views.d.ts +35 -0
- package/dist/ui/toggle-node.d.ts +3 -0
- package/dist/ui/toggle-settings.d.ts +23 -0
- package/dist/ui/toggle.d.ts +8 -0
- package/dist/ui/toolbar.d.ts +37 -0
- package/dist/ui/tooltip-node-static.d.ts +3 -0
- package/dist/ui/tooltip-node.d.ts +3 -0
- package/dist/ui/tooltip-preview-content.d.ts +6 -0
- package/dist/ui/tooltip-settings.d.ts +21 -0
- package/dist/ui/tooltip-toolbar-button.d.ts +3 -0
- package/dist/ui/tooltip.d.ts +19 -0
- package/dist/ui/tree-context-value.d.ts +22 -0
- package/dist/ui/tree-context.d.ts +32 -0
- package/dist/ui/tree-file-node-static.d.ts +8 -0
- package/dist/ui/tree-file-node.d.ts +11 -0
- package/dist/ui/tree-folder-node-static.d.ts +9 -0
- package/dist/ui/tree-folder-node.d.ts +12 -0
- package/dist/ui/tree-item-utils.d.ts +11 -0
- package/dist/ui/tree-items-list.d.ts +11 -0
- package/dist/ui/tree-node-events.d.ts +19 -0
- package/dist/ui/tree-node-state.d.ts +14 -0
- package/dist/ui/tree-node-static.d.ts +12 -0
- package/dist/ui/tree-node.d.ts +5 -0
- package/dist/ui/tree-root-actions.d.ts +11 -0
- package/dist/ui/tree-settings.d.ts +18 -0
- package/dist/ui/turn-into-toolbar-button.d.ts +129 -0
- package/dist/ui/update-display-tags.d.ts +5 -0
- package/dist/ui/update-node-static.d.ts +2 -0
- package/dist/ui/update-node.d.ts +3 -0
- package/dist/ui/update-rss-settings.d.ts +9 -0
- package/dist/ui/update-settings.d.ts +21 -0
- package/dist/ui/update-tags-settings.d.ts +8 -0
- package/dist/ui/updates-node-static.d.ts +2 -0
- package/dist/ui/updates-node.d.ts +2 -0
- package/dist/ui/use-member-profile.d.ts +22 -0
- package/dist/ui/use-placeholder-max-file-size.d.ts +3 -0
- package/dist/vendor/slate-yjs-core.d.ts +1 -0
- package/dist/vendor/slate-yjs-core.js +2 -0
- package/dist/vendor/y-protocols-awareness.d.ts +1 -0
- package/dist/vendor/y-protocols-awareness.js +2 -0
- package/dist/vendor/yjs.d.ts +1 -0
- package/dist/vendor/yjs.js +2 -0
- package/package.json +255 -4
|
@@ -0,0 +1,3978 @@
|
|
|
1
|
+
import { type Value } from 'platejs';
|
|
2
|
+
import { type TPlateEditor } from 'platejs/react';
|
|
3
|
+
export declare const EditorKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"comment", {
|
|
4
|
+
activeId: string | null;
|
|
5
|
+
commentingBlock: import("platejs").Path | null;
|
|
6
|
+
hoverId: string | null;
|
|
7
|
+
isOverlapWithEditor: boolean;
|
|
8
|
+
uniquePathMap: Map<string, import("platejs").Path>;
|
|
9
|
+
updateTimestamp: number | null;
|
|
10
|
+
}, {
|
|
11
|
+
comment: {
|
|
12
|
+
has: (options: {
|
|
13
|
+
id: string;
|
|
14
|
+
}) => boolean;
|
|
15
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
16
|
+
id?: string;
|
|
17
|
+
isDraft?: boolean;
|
|
18
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText> | undefined;
|
|
19
|
+
nodeId: (leaf: import("platejs").TCommentText) => string | undefined;
|
|
20
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
21
|
+
id?: string;
|
|
22
|
+
isDraft?: boolean;
|
|
23
|
+
transient?: boolean;
|
|
24
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText>[];
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
comment: {
|
|
28
|
+
removeMark: () => void;
|
|
29
|
+
setDraft: (options?: import("platejs").SetNodesOptions) => void;
|
|
30
|
+
unsetMark: (options: {
|
|
31
|
+
id?: string;
|
|
32
|
+
transient?: boolean;
|
|
33
|
+
}) => void;
|
|
34
|
+
};
|
|
35
|
+
} & Record<"comment", {
|
|
36
|
+
setDraft: () => void;
|
|
37
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"discussion", {
|
|
38
|
+
currentUserId: string;
|
|
39
|
+
discussions: import("./plugins/discussion-kit").TDiscussion[];
|
|
40
|
+
users: Record<string, import("./plugins/discussion-kit").TDiscussionUser>;
|
|
41
|
+
}, {}, {}, {
|
|
42
|
+
currentUser: () => import("./plugins/discussion-kit").TDiscussionUser;
|
|
43
|
+
user: (id: string) => import("./plugins/discussion-kit").TDiscussionUser;
|
|
44
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"suggestion", {
|
|
45
|
+
currentUserId: string | null;
|
|
46
|
+
isSuggesting: boolean;
|
|
47
|
+
} & {
|
|
48
|
+
activeId: string | null;
|
|
49
|
+
hoverId: string | null;
|
|
50
|
+
uniquePathMap: Map<string, import("platejs").Path>;
|
|
51
|
+
}, {
|
|
52
|
+
suggestion: {
|
|
53
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
54
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
55
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
56
|
+
id?: string;
|
|
57
|
+
isText?: boolean;
|
|
58
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
59
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
60
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
61
|
+
transient?: boolean;
|
|
62
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
63
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
64
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
65
|
+
};
|
|
66
|
+
}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
67
|
+
toggle: () => void;
|
|
68
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
69
|
+
toggle: () => void;
|
|
70
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
71
|
+
toggle: () => void;
|
|
72
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
73
|
+
toggle: () => void;
|
|
74
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
75
|
+
toggle: () => void;
|
|
76
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
77
|
+
toggle: () => void;
|
|
78
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
79
|
+
toggle: () => void;
|
|
80
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
81
|
+
toggle: () => void;
|
|
82
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockSelection", {
|
|
83
|
+
anchorId?: string | null;
|
|
84
|
+
areaOptions?: {
|
|
85
|
+
document?: Document;
|
|
86
|
+
} & {
|
|
87
|
+
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
88
|
+
features?: {
|
|
89
|
+
range?: boolean | undefined;
|
|
90
|
+
singleTap?: {
|
|
91
|
+
allow?: boolean | undefined;
|
|
92
|
+
intersect?: ("touch" | "native") | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
touch?: boolean | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
behaviour?: {
|
|
97
|
+
intersect?: ("center" | "touch" | "cover") | undefined;
|
|
98
|
+
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
99
|
+
scrolling?: {
|
|
100
|
+
manualSpeed?: number | undefined;
|
|
101
|
+
speedDivider?: number | undefined;
|
|
102
|
+
startScrollMargins?: {
|
|
103
|
+
x?: number | undefined;
|
|
104
|
+
y?: number | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
startThreshold?: number | {
|
|
108
|
+
x?: number | undefined;
|
|
109
|
+
y?: number | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
triggers?: ((0 | 1 | 2 | 3 | 4) | {
|
|
112
|
+
button: 0 | 1 | 2 | 3 | 4;
|
|
113
|
+
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
114
|
+
})[] | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
117
|
+
selectables?: (string | string[]) | undefined;
|
|
118
|
+
selectionAreaClass?: string | undefined;
|
|
119
|
+
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
120
|
+
};
|
|
121
|
+
editorPaddingRight?: import("react").CSSProperties["width"];
|
|
122
|
+
enableContextMenu?: boolean;
|
|
123
|
+
disableSelectAll?: boolean;
|
|
124
|
+
isSelecting?: boolean;
|
|
125
|
+
isSelectionAreaVisible?: boolean;
|
|
126
|
+
rightSelectionAreaClassName?: string;
|
|
127
|
+
selectedIds?: Set<string>;
|
|
128
|
+
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
129
|
+
isSelectable?: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
130
|
+
onKeyDownSelecting?: (editor: import("platejs").SlateEditor, e: KeyboardEvent) => void;
|
|
131
|
+
}, {
|
|
132
|
+
blockSelection: {
|
|
133
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
134
|
+
element: import("platejs").TElement;
|
|
135
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
136
|
+
disabledWhenFocused?: boolean;
|
|
137
|
+
}) => void>;
|
|
138
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
139
|
+
added: Element[];
|
|
140
|
+
removed: Element[];
|
|
141
|
+
}> & {
|
|
142
|
+
ids?: string[];
|
|
143
|
+
}) => void>;
|
|
144
|
+
add: (id: string[] | string) => void;
|
|
145
|
+
addSelectedRow: (id: string, options?: {
|
|
146
|
+
clear?: boolean;
|
|
147
|
+
delay?: number;
|
|
148
|
+
}) => void;
|
|
149
|
+
clear: () => void;
|
|
150
|
+
delete: (id: string[] | string) => void;
|
|
151
|
+
deselect: () => void;
|
|
152
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
153
|
+
focus: () => void;
|
|
154
|
+
getNodes: (options?: {
|
|
155
|
+
collapseTableRows?: boolean;
|
|
156
|
+
selectionFallback?: boolean;
|
|
157
|
+
sort?: boolean;
|
|
158
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
159
|
+
has: (id: string[] | string) => boolean;
|
|
160
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
161
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
162
|
+
resetSelectedIds: () => void;
|
|
163
|
+
selectAll: () => void;
|
|
164
|
+
set: (id: string[] | string) => void;
|
|
165
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
166
|
+
unselect: () => void;
|
|
167
|
+
};
|
|
168
|
+
} & Record<"blockSelection", Partial<{
|
|
169
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
170
|
+
element: import("platejs").TElement;
|
|
171
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
172
|
+
disabledWhenFocused?: boolean;
|
|
173
|
+
}) => void>;
|
|
174
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
175
|
+
added: Element[];
|
|
176
|
+
removed: Element[];
|
|
177
|
+
}> & {
|
|
178
|
+
ids?: string[];
|
|
179
|
+
}) => void>;
|
|
180
|
+
add: (id: string[] | string) => void;
|
|
181
|
+
addSelectedRow: (id: string, options?: {
|
|
182
|
+
clear?: boolean;
|
|
183
|
+
delay?: number;
|
|
184
|
+
}) => void;
|
|
185
|
+
clear: () => void;
|
|
186
|
+
delete: (id: string[] | string) => void;
|
|
187
|
+
deselect: () => void;
|
|
188
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
189
|
+
focus: () => void;
|
|
190
|
+
getNodes: (options?: {
|
|
191
|
+
collapseTableRows?: boolean;
|
|
192
|
+
selectionFallback?: boolean;
|
|
193
|
+
sort?: boolean;
|
|
194
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
195
|
+
has: (id: string[] | string) => boolean;
|
|
196
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
197
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
198
|
+
resetSelectedIds: () => void;
|
|
199
|
+
selectAll: () => void;
|
|
200
|
+
set: (id: string[] | string) => void;
|
|
201
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
202
|
+
unselect: () => void;
|
|
203
|
+
}>>, Record<"blockSelection", {
|
|
204
|
+
duplicate: () => void;
|
|
205
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
206
|
+
at: import("platejs").Path;
|
|
207
|
+
insertedCallback?: () => void;
|
|
208
|
+
}) => void;
|
|
209
|
+
removeNodes: () => void;
|
|
210
|
+
select: () => void;
|
|
211
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
212
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
213
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
214
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
215
|
+
}>, {
|
|
216
|
+
isSelected?: (id?: string) => boolean;
|
|
217
|
+
isSelectingSome?: () => boolean;
|
|
218
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockMenu", {
|
|
219
|
+
openId: ((string & {}) | "context") | null;
|
|
220
|
+
position: {
|
|
221
|
+
x: number;
|
|
222
|
+
y: number;
|
|
223
|
+
};
|
|
224
|
+
}, {
|
|
225
|
+
blockMenu: {
|
|
226
|
+
hide: () => void;
|
|
227
|
+
show: (id: (string & {}) | "context", position?: {
|
|
228
|
+
x: number;
|
|
229
|
+
y: number;
|
|
230
|
+
}) => void;
|
|
231
|
+
showContextMenu: (blockId: string, position: {
|
|
232
|
+
x: number;
|
|
233
|
+
y: number;
|
|
234
|
+
}) => void;
|
|
235
|
+
};
|
|
236
|
+
} & Record<"blockMenu", Partial<{
|
|
237
|
+
hide: () => void;
|
|
238
|
+
show: (id: (string & {}) | "context", position?: {
|
|
239
|
+
x: number;
|
|
240
|
+
y: number;
|
|
241
|
+
}) => void;
|
|
242
|
+
showContextMenu: (blockId: string, position: {
|
|
243
|
+
x: number;
|
|
244
|
+
y: number;
|
|
245
|
+
}) => void;
|
|
246
|
+
}>>, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"markdown", {
|
|
247
|
+
allowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
248
|
+
disallowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
249
|
+
remarkPlugins: import("unified").Plugin[];
|
|
250
|
+
remarkStringifyOptions: import("remark-stringify").Options | null;
|
|
251
|
+
rules: import("@platejs/markdown").MdRules | null;
|
|
252
|
+
allowNode?: import("@platejs/markdown").AllowNodeConfig;
|
|
253
|
+
plainMarks?: import("@platejs/markdown").PlateType[] | null;
|
|
254
|
+
}, {
|
|
255
|
+
markdown: {
|
|
256
|
+
deserialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor">) => Value>;
|
|
257
|
+
deserializeInline: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, text: string, options?: import("@platejs/markdown").DeserializeMdOptions) => import("platejs").Descendant[]>;
|
|
258
|
+
serialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor">) => string>;
|
|
259
|
+
};
|
|
260
|
+
} & Record<"markdown", {
|
|
261
|
+
deserialize: (data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor"> | undefined) => Value;
|
|
262
|
+
deserializeInline: (text: string, options?: import("@platejs/markdown").DeserializeMdOptions | undefined) => import("platejs").Descendant[];
|
|
263
|
+
serialize: (options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor"> | undefined) => string;
|
|
264
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"ai", {}, {}, {
|
|
265
|
+
ai: {
|
|
266
|
+
acceptPreview: ((_value?: Value | undefined) => boolean) & ((_value?: Value | undefined) => boolean);
|
|
267
|
+
beginPreview: ((args_0?: {
|
|
268
|
+
originalBlocks?: Value;
|
|
269
|
+
} | undefined) => boolean) & ((args_0?: {
|
|
270
|
+
originalBlocks?: Value;
|
|
271
|
+
} | undefined) => boolean);
|
|
272
|
+
cancelPreview: (() => boolean) & (() => boolean);
|
|
273
|
+
discardPreview: (() => boolean) & (() => boolean);
|
|
274
|
+
hasPreview: (() => boolean) & (() => boolean);
|
|
275
|
+
insertNodes: ((nodes: import("platejs").Descendant[], args_1?: {
|
|
276
|
+
target?: import("platejs").Path;
|
|
277
|
+
} | undefined) => void) & ((nodes: import("platejs").Descendant[], args_1?: {
|
|
278
|
+
target?: import("platejs").Path;
|
|
279
|
+
} | undefined) => void);
|
|
280
|
+
removeMarks: ((args_0?: {
|
|
281
|
+
at?: import("platejs").TLocation;
|
|
282
|
+
} | undefined) => void) & ((args_0?: {
|
|
283
|
+
at?: import("platejs").TLocation;
|
|
284
|
+
} | undefined) => void);
|
|
285
|
+
removeNodes: ((args_0?: {
|
|
286
|
+
at?: import("platejs").Path;
|
|
287
|
+
} | undefined) => void) & ((args_0?: {
|
|
288
|
+
at?: import("platejs").Path;
|
|
289
|
+
} | undefined) => void);
|
|
290
|
+
undo: (() => void) & (() => void);
|
|
291
|
+
};
|
|
292
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"cursorOverlay", {
|
|
293
|
+
cursors: Record<string, import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>>;
|
|
294
|
+
}, {
|
|
295
|
+
cursorOverlay: {
|
|
296
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
297
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
298
|
+
};
|
|
299
|
+
} & Record<"cursorOverlay", {
|
|
300
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
301
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
302
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
303
|
+
contentRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
304
|
+
scrollRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
305
|
+
} & {
|
|
306
|
+
_blockChunks: string;
|
|
307
|
+
_blockPath: import("platejs").Path | null;
|
|
308
|
+
_mdxName: string | null;
|
|
309
|
+
_replaceIds: string[];
|
|
310
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
311
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
312
|
+
toolName: "comment" | "edit" | "generate";
|
|
313
|
+
comment?: {
|
|
314
|
+
blockId: string;
|
|
315
|
+
comment: string;
|
|
316
|
+
content: string;
|
|
317
|
+
};
|
|
318
|
+
}, import("ai").UITools>>;
|
|
319
|
+
chatNodes: import("platejs").TIdElement[];
|
|
320
|
+
chatSelection: import("platejs").TRange | null;
|
|
321
|
+
experimental_lastTextId: string | null;
|
|
322
|
+
mode: import("@platejs/ai").AIMode;
|
|
323
|
+
open: boolean;
|
|
324
|
+
streaming: boolean;
|
|
325
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
326
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
327
|
+
aiChat: {
|
|
328
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
329
|
+
undo?: boolean;
|
|
330
|
+
}) => void>;
|
|
331
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
332
|
+
mode?: import("@platejs/ai").AIMode;
|
|
333
|
+
options?: import("ai").ChatRequestOptions;
|
|
334
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
335
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
336
|
+
}) => void>;
|
|
337
|
+
hide: (options?: {
|
|
338
|
+
focus?: boolean;
|
|
339
|
+
undo?: boolean;
|
|
340
|
+
}) => void;
|
|
341
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
342
|
+
anchor?: boolean;
|
|
343
|
+
streaming?: boolean;
|
|
344
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
345
|
+
reload: () => void;
|
|
346
|
+
show: () => void;
|
|
347
|
+
stop: () => void;
|
|
348
|
+
};
|
|
349
|
+
} & Record<"aiChat", Pick<{
|
|
350
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
351
|
+
undo?: boolean;
|
|
352
|
+
}) => void>;
|
|
353
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
354
|
+
mode?: import("@platejs/ai").AIMode;
|
|
355
|
+
options?: import("ai").ChatRequestOptions;
|
|
356
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
357
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
358
|
+
}) => void>;
|
|
359
|
+
hide: (options?: {
|
|
360
|
+
focus?: boolean;
|
|
361
|
+
undo?: boolean;
|
|
362
|
+
}) => void;
|
|
363
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
364
|
+
anchor?: boolean;
|
|
365
|
+
streaming?: boolean;
|
|
366
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
367
|
+
reload: () => void;
|
|
368
|
+
show: () => void;
|
|
369
|
+
stop: () => void;
|
|
370
|
+
}, "stop" | "node" | "reset" | "submit">> & Record<"aiChat", {
|
|
371
|
+
hide: ({ focus, undo }?: {
|
|
372
|
+
focus?: boolean;
|
|
373
|
+
undo?: boolean;
|
|
374
|
+
}) => void;
|
|
375
|
+
show: () => void;
|
|
376
|
+
}>, {
|
|
377
|
+
aiChat: {
|
|
378
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => void>;
|
|
379
|
+
insertBelow: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
380
|
+
format?: "all" | "none" | "single";
|
|
381
|
+
}) => void>;
|
|
382
|
+
replaceSelection: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
383
|
+
format?: "all" | "none" | "single";
|
|
384
|
+
}) => void>;
|
|
385
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
386
|
+
};
|
|
387
|
+
} & Record<"aiChat", {
|
|
388
|
+
accept: () => void;
|
|
389
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
390
|
+
format?: "all" | "none" | "single";
|
|
391
|
+
} | undefined) => void;
|
|
392
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
393
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
394
|
+
format?: "all" | "none" | "single";
|
|
395
|
+
} | undefined) => void;
|
|
396
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"panel", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"textSubstitution", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
|
|
397
|
+
toggle: () => void;
|
|
398
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
399
|
+
toggle: () => void;
|
|
400
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"dnd", {
|
|
401
|
+
_isOver?: boolean;
|
|
402
|
+
draggingId?: string[] | string | null;
|
|
403
|
+
dropTarget?: {
|
|
404
|
+
id: string | null;
|
|
405
|
+
line: import("@platejs/dnd").DropLineDirection;
|
|
406
|
+
};
|
|
407
|
+
enableScroller?: boolean;
|
|
408
|
+
isDragging?: boolean;
|
|
409
|
+
multiplePreviewRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
410
|
+
scrollerProps?: Partial<import("@platejs/dnd").ScrollerProps>;
|
|
411
|
+
onDropFiles?: (props: {
|
|
412
|
+
id: string;
|
|
413
|
+
dragItem: import("@platejs/dnd").FileDragItemNode;
|
|
414
|
+
editor: import("platejs/react").PlateEditor;
|
|
415
|
+
monitor: import("react-dnd").DropTargetMonitor<import("@platejs/dnd").DragItemNode, unknown>;
|
|
416
|
+
nodeRef: any;
|
|
417
|
+
target?: import("platejs").Path;
|
|
418
|
+
}) => void;
|
|
419
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockPlaceholder", {
|
|
420
|
+
_target: {
|
|
421
|
+
node: import("platejs").TElement;
|
|
422
|
+
placeholder: string;
|
|
423
|
+
} | null;
|
|
424
|
+
placeholders: Record<string, string>;
|
|
425
|
+
query: (context: import("platejs/react").PlatePluginContext<import("platejs/react").BlockPlaceholderConfig> & {
|
|
426
|
+
node: import("platejs").TElement;
|
|
427
|
+
path: import("platejs").Path;
|
|
428
|
+
}) => boolean;
|
|
429
|
+
className?: string;
|
|
430
|
+
}, {}, {}, {
|
|
431
|
+
placeholder: (node: import("platejs").TElement) => string | undefined;
|
|
432
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"callout", {}, {}, {
|
|
433
|
+
insert: {
|
|
434
|
+
callout: (args_0?: ({
|
|
435
|
+
batchDirty?: boolean;
|
|
436
|
+
hanging?: boolean;
|
|
437
|
+
nextBlock?: boolean;
|
|
438
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
439
|
+
select?: boolean;
|
|
440
|
+
} & {
|
|
441
|
+
id?: boolean | string;
|
|
442
|
+
block?: boolean;
|
|
443
|
+
empty?: boolean;
|
|
444
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
445
|
+
text?: boolean;
|
|
446
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
447
|
+
icon?: string;
|
|
448
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
449
|
+
}) | undefined) => void;
|
|
450
|
+
};
|
|
451
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"caretPlacement", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_block", {
|
|
452
|
+
defaultLanguage?: string | null;
|
|
453
|
+
lowlight?: ReturnType<typeof import("lowlight").createLowlight> | null;
|
|
454
|
+
}, {}, Record<"code_block", {
|
|
455
|
+
toggle: () => void;
|
|
456
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column_group", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"copilot", {
|
|
457
|
+
abortController?: AbortController | null;
|
|
458
|
+
completion?: string | null;
|
|
459
|
+
error?: Error | null;
|
|
460
|
+
isLoading?: boolean;
|
|
461
|
+
} & {
|
|
462
|
+
completeOptions?: Partial<import("@platejs/ai/react").CompleteOptions>;
|
|
463
|
+
debounceDelay?: number;
|
|
464
|
+
getNextWord?: import("@platejs/ai/react").GetNextWord;
|
|
465
|
+
renderGhostText?: (() => React.ReactNode) | null;
|
|
466
|
+
shouldAbort?: boolean;
|
|
467
|
+
suggestionNodeId?: string | null;
|
|
468
|
+
suggestionText?: string | null;
|
|
469
|
+
autoTriggerQuery?: (options: {
|
|
470
|
+
editor: import("platejs/react").PlateEditor;
|
|
471
|
+
}) => boolean;
|
|
472
|
+
getPrompt?: (options: {
|
|
473
|
+
editor: import("platejs/react").PlateEditor;
|
|
474
|
+
}) => string;
|
|
475
|
+
triggerQuery?: (options: {
|
|
476
|
+
editor: import("platejs/react").PlateEditor;
|
|
477
|
+
}) => boolean;
|
|
478
|
+
}, {
|
|
479
|
+
copilot: {
|
|
480
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
481
|
+
reject: () => false | undefined;
|
|
482
|
+
setBlockSuggestion: (options: {
|
|
483
|
+
text: string;
|
|
484
|
+
id?: string;
|
|
485
|
+
}) => void;
|
|
486
|
+
stop: () => void;
|
|
487
|
+
};
|
|
488
|
+
} & Record<"copilot", Omit<{
|
|
489
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
490
|
+
reject: () => false | undefined;
|
|
491
|
+
setBlockSuggestion: (options: {
|
|
492
|
+
text: string;
|
|
493
|
+
id?: string;
|
|
494
|
+
}) => void;
|
|
495
|
+
stop: () => void;
|
|
496
|
+
}, "reject">> & Record<"copilot", {
|
|
497
|
+
reject: () => false | undefined;
|
|
498
|
+
}>, {
|
|
499
|
+
copilot: {
|
|
500
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
501
|
+
acceptNextWord: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
502
|
+
};
|
|
503
|
+
} & Record<"copilot", {
|
|
504
|
+
accept: () => false | undefined;
|
|
505
|
+
acceptNextWord: () => false | undefined;
|
|
506
|
+
}>, {
|
|
507
|
+
isSuggested?: (id: string) => boolean;
|
|
508
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"date", {}, {}, {
|
|
509
|
+
insert: {
|
|
510
|
+
date: (args_0?: ({
|
|
511
|
+
date?: string;
|
|
512
|
+
} & {
|
|
513
|
+
batchDirty?: boolean;
|
|
514
|
+
hanging?: boolean;
|
|
515
|
+
nextBlock?: boolean;
|
|
516
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
517
|
+
select?: boolean;
|
|
518
|
+
} & {
|
|
519
|
+
id?: boolean | string;
|
|
520
|
+
block?: boolean;
|
|
521
|
+
empty?: boolean;
|
|
522
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
523
|
+
text?: boolean;
|
|
524
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids) | undefined) => void;
|
|
525
|
+
};
|
|
526
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"placeholder", import("@platejs/media").MediaPlaceholderOptions & {
|
|
527
|
+
disableEmptyPlaceholder: boolean;
|
|
528
|
+
disableFileDrop: boolean;
|
|
529
|
+
uploadConfig: import("@platejs/media/react").UploadConfig;
|
|
530
|
+
uploadingFiles: Record<string, File>;
|
|
531
|
+
error?: import("@platejs/media/react").UploadError | null;
|
|
532
|
+
maxFileCount?: number;
|
|
533
|
+
multiple?: boolean;
|
|
534
|
+
}, {
|
|
535
|
+
placeholder: import("@platejs/media/react").PlaceholderApi;
|
|
536
|
+
} & Record<"placeholder", {
|
|
537
|
+
addUploadingFile: (id: string, file: File) => void;
|
|
538
|
+
getUploadingFile: (id: string) => File;
|
|
539
|
+
removeUploadingFile: (id: string) => void;
|
|
540
|
+
}>, {
|
|
541
|
+
insert: {
|
|
542
|
+
media: (files: FileList, options?: (Omit<import("platejs").InsertNodesOptions, "at"> & {
|
|
543
|
+
at?: import("platejs").Path;
|
|
544
|
+
}) | undefined) => any;
|
|
545
|
+
};
|
|
546
|
+
}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"docx", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"juice", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"emoji", {
|
|
547
|
+
data?: import("@emoji-mart/data").EmojiMartData;
|
|
548
|
+
createEmojiNode?: (emoji: import("@emoji-mart/data").Emoji) => any;
|
|
549
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"emoji_input", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"exitBreak", {}, {}, Record<"exitBreak", {
|
|
550
|
+
insert: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
551
|
+
insertBefore: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
552
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"a", {
|
|
553
|
+
allowedSchemes?: string[];
|
|
554
|
+
dangerouslySkipSanitization?: boolean;
|
|
555
|
+
defaultLinkAttributes?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
556
|
+
forceSubmit?: boolean;
|
|
557
|
+
keepSelectedTextOnPaste?: boolean;
|
|
558
|
+
rangeBeforeOptions?: import("platejs").EditorBeforeOptions;
|
|
559
|
+
triggerFloatingLinkHotkeys?: string[] | string;
|
|
560
|
+
getLinkUrl?: (prevUrl: string | null) => Promise<string | null>;
|
|
561
|
+
getUrlHref?: (url: string) => string | undefined;
|
|
562
|
+
isUrl?: (text: string) => boolean;
|
|
563
|
+
transformInput?: (url: string) => string | undefined;
|
|
564
|
+
} & {
|
|
565
|
+
activeId: string | null;
|
|
566
|
+
anchorElement: HTMLElement | null;
|
|
567
|
+
mode: import("./plugins/link-kit").FloatingLinkMode;
|
|
568
|
+
}, {
|
|
569
|
+
a: {
|
|
570
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
571
|
+
};
|
|
572
|
+
} & Record<"a", Partial<{
|
|
573
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
574
|
+
}>>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"floating-toolbar", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"color", {}, {}, Record<"color", {
|
|
575
|
+
addMark: (value: string) => void;
|
|
576
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
|
|
577
|
+
addMark: (value: string) => void;
|
|
578
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
|
|
579
|
+
addMark: (value: string) => void;
|
|
580
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
581
|
+
addMark: (value: string) => void;
|
|
582
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"indent", {
|
|
583
|
+
indentMax?: number;
|
|
584
|
+
offset?: number;
|
|
585
|
+
unit?: string;
|
|
586
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"list", {
|
|
587
|
+
getSiblingListOptions?: import("@platejs/list").GetSiblingListOptions<import("platejs").TElement>;
|
|
588
|
+
getListStyleType?: (element: HTMLElement) => import("@platejs/list").ListStyleType;
|
|
589
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"inline_equation", {}, {}, {
|
|
590
|
+
insert: {
|
|
591
|
+
inlineEquation: (texExpression?: string | undefined, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
592
|
+
};
|
|
593
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"equation", {}, {}, {
|
|
594
|
+
insert: {
|
|
595
|
+
equation: (options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
596
|
+
};
|
|
597
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"img", {
|
|
598
|
+
disableEmbedInsert?: boolean;
|
|
599
|
+
disableUploadInsert?: boolean;
|
|
600
|
+
uploadImage?: (dataUrl: ArrayBuffer | string) => ArrayBuffer | Promise<ArrayBuffer | string> | string;
|
|
601
|
+
} & import("@platejs/media").MediaPluginOptions, {}, {
|
|
602
|
+
insert: {
|
|
603
|
+
imageFromFiles: (files: FileList, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
604
|
+
};
|
|
605
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"media_embed", import("@platejs/media").MediaPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"video", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"audio", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"file", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"caption", {
|
|
606
|
+
focusEndPath: import("platejs").Path | null;
|
|
607
|
+
focusStartPath: import("platejs").Path | null;
|
|
608
|
+
query: {
|
|
609
|
+
allow: string[];
|
|
610
|
+
};
|
|
611
|
+
visibleId: string | null;
|
|
612
|
+
}, {}, {}, {
|
|
613
|
+
isVisible?: (elementId: string) => boolean;
|
|
614
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention", {
|
|
615
|
+
insertSpaceAfterMention?: boolean;
|
|
616
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {
|
|
617
|
+
insert: {
|
|
618
|
+
mention: (options: {
|
|
619
|
+
search: string;
|
|
620
|
+
value: any;
|
|
621
|
+
key?: any;
|
|
622
|
+
}) => void;
|
|
623
|
+
};
|
|
624
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention_input", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"slash_command", import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"slash_input", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"table", {
|
|
625
|
+
_cellIndices: Record<string, {
|
|
626
|
+
col: number;
|
|
627
|
+
row: number;
|
|
628
|
+
}>;
|
|
629
|
+
_selectedCellIds: string[] | null | undefined;
|
|
630
|
+
_selectedTableIds: string[] | null | undefined;
|
|
631
|
+
_selectionVersion: number;
|
|
632
|
+
selectedCells: import("platejs").TElement[] | null;
|
|
633
|
+
selectedTables: import("platejs").TElement[] | null;
|
|
634
|
+
disableExpandOnInsert?: boolean;
|
|
635
|
+
disableMarginLeft?: boolean;
|
|
636
|
+
disableMerge?: boolean;
|
|
637
|
+
enableUnsetSingleColSize?: boolean;
|
|
638
|
+
initialTableWidth?: number;
|
|
639
|
+
minColumnWidth?: number;
|
|
640
|
+
}, {
|
|
641
|
+
create: {
|
|
642
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
643
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
644
|
+
children: import("platejs").Descendant[];
|
|
645
|
+
type: string;
|
|
646
|
+
}>;
|
|
647
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
648
|
+
children: {
|
|
649
|
+
children: import("platejs").Descendant[];
|
|
650
|
+
type: string;
|
|
651
|
+
}[];
|
|
652
|
+
type: string;
|
|
653
|
+
}>;
|
|
654
|
+
};
|
|
655
|
+
table: {
|
|
656
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
657
|
+
element: import("platejs").TTableCellElement;
|
|
658
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
659
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
660
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
661
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
662
|
+
element: import("platejs").TTableCellElement;
|
|
663
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
664
|
+
colSizes?: number[];
|
|
665
|
+
rowSize?: number;
|
|
666
|
+
}) => {
|
|
667
|
+
minHeight: number;
|
|
668
|
+
width: number;
|
|
669
|
+
}>;
|
|
670
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
671
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
672
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
673
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
674
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
675
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
676
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
677
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
678
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
679
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
680
|
+
};
|
|
681
|
+
} & {
|
|
682
|
+
create: {
|
|
683
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
684
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
685
|
+
children: import("platejs").Descendant[];
|
|
686
|
+
type: string;
|
|
687
|
+
}>;
|
|
688
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
689
|
+
children: {
|
|
690
|
+
children: import("platejs").Descendant[];
|
|
691
|
+
type: string;
|
|
692
|
+
}[];
|
|
693
|
+
type: string;
|
|
694
|
+
}>;
|
|
695
|
+
};
|
|
696
|
+
table: {
|
|
697
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
698
|
+
element: import("platejs").TTableCellElement;
|
|
699
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
700
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
701
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
702
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
703
|
+
element: import("platejs").TTableCellElement;
|
|
704
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
705
|
+
colSizes?: number[];
|
|
706
|
+
rowSize?: number;
|
|
707
|
+
}) => {
|
|
708
|
+
minHeight: number;
|
|
709
|
+
width: number;
|
|
710
|
+
}>;
|
|
711
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
712
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
713
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
714
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
715
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
716
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
717
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
718
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
719
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
720
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
721
|
+
};
|
|
722
|
+
}, {
|
|
723
|
+
insert: {
|
|
724
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
725
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
726
|
+
at?: import("platejs").Path;
|
|
727
|
+
before?: boolean;
|
|
728
|
+
fromCell?: import("platejs").Path;
|
|
729
|
+
header?: boolean;
|
|
730
|
+
select?: boolean;
|
|
731
|
+
}) => void>;
|
|
732
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
733
|
+
at?: import("platejs").Path;
|
|
734
|
+
before?: boolean;
|
|
735
|
+
fromRow?: import("platejs").Path;
|
|
736
|
+
header?: boolean;
|
|
737
|
+
select?: boolean;
|
|
738
|
+
}) => void>;
|
|
739
|
+
};
|
|
740
|
+
remove: {
|
|
741
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
742
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
743
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
744
|
+
};
|
|
745
|
+
table: {
|
|
746
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
747
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
748
|
+
};
|
|
749
|
+
} & {
|
|
750
|
+
insert: {
|
|
751
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
752
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
753
|
+
at?: import("platejs").Path;
|
|
754
|
+
before?: boolean;
|
|
755
|
+
fromCell?: import("platejs").Path;
|
|
756
|
+
header?: boolean;
|
|
757
|
+
select?: boolean;
|
|
758
|
+
}) => void>;
|
|
759
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
760
|
+
at?: import("platejs").Path;
|
|
761
|
+
before?: boolean;
|
|
762
|
+
fromRow?: import("platejs").Path;
|
|
763
|
+
header?: boolean;
|
|
764
|
+
select?: boolean;
|
|
765
|
+
}) => void>;
|
|
766
|
+
};
|
|
767
|
+
remove: {
|
|
768
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
769
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
770
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
771
|
+
};
|
|
772
|
+
table: {
|
|
773
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
774
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
775
|
+
};
|
|
776
|
+
}, {
|
|
777
|
+
cellIndices?: (id: string) => import("@platejs/table").CellIndices;
|
|
778
|
+
isCellSelected?: (id?: string | null) => boolean;
|
|
779
|
+
isSelectingCell?: () => boolean;
|
|
780
|
+
selectedCell?: (id?: string | null) => import("platejs").TElement | null;
|
|
781
|
+
selectedCellIds?: () => string[] | null;
|
|
782
|
+
selectedCells?: () => import("platejs").TElement[] | null;
|
|
783
|
+
selectedTableIds?: () => string[] | null;
|
|
784
|
+
selectedTables?: () => import("platejs").TElement[] | null;
|
|
785
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toc", {
|
|
786
|
+
isScroll: boolean;
|
|
787
|
+
topOffset: number;
|
|
788
|
+
queryHeading?: (editor: import("platejs").SlateEditor) => import("@platejs/toc").Heading[];
|
|
789
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
790
|
+
openIds?: Set<string>;
|
|
791
|
+
} & {
|
|
792
|
+
toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
|
|
793
|
+
}, {
|
|
794
|
+
toggle: {
|
|
795
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
796
|
+
};
|
|
797
|
+
}, {}, {
|
|
798
|
+
isOpen?: (toggleId: string) => boolean;
|
|
799
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
800
|
+
}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"trailingBlock", {
|
|
801
|
+
type: string;
|
|
802
|
+
} & {
|
|
803
|
+
insert?: (editor: import("platejs").SlateEditor, options: import("platejs").TrailingBlockInsertOptions) => void;
|
|
804
|
+
level?: number;
|
|
805
|
+
type?: string;
|
|
806
|
+
} & import("platejs").QueryNodeOptions, {}, {}, {}>>)[];
|
|
807
|
+
export type MyEditor = TPlateEditor<Value, (typeof EditorKit)[number]>;
|
|
808
|
+
export declare const useEditor: () => {
|
|
809
|
+
[x: string]: unknown;
|
|
810
|
+
id: string;
|
|
811
|
+
history: import("platejs").History;
|
|
812
|
+
marks: import("platejs").EditorMarks | null;
|
|
813
|
+
meta: import("platejs").UnknownObject & {
|
|
814
|
+
isNormalizing?: boolean;
|
|
815
|
+
} & {
|
|
816
|
+
key: any;
|
|
817
|
+
components: import("platejs").NodeComponents;
|
|
818
|
+
userId?: string | null;
|
|
819
|
+
isFallback: boolean;
|
|
820
|
+
pluginCache: {
|
|
821
|
+
decorate: string[];
|
|
822
|
+
handlers: {
|
|
823
|
+
onChange: string[];
|
|
824
|
+
onNodeChange: string[];
|
|
825
|
+
onTextChange: string[];
|
|
826
|
+
};
|
|
827
|
+
inject: {
|
|
828
|
+
nodeProps: string[];
|
|
829
|
+
};
|
|
830
|
+
node: {
|
|
831
|
+
isContainer: string[];
|
|
832
|
+
isLeaf: string[];
|
|
833
|
+
isMetadataProp: string[];
|
|
834
|
+
isText: string[];
|
|
835
|
+
leafProps: string[];
|
|
836
|
+
textProps: string[];
|
|
837
|
+
types: Record<string, string>;
|
|
838
|
+
};
|
|
839
|
+
transformInitialValue: string[];
|
|
840
|
+
render: {
|
|
841
|
+
aboveEditable: string[];
|
|
842
|
+
aboveNodes: string[];
|
|
843
|
+
aboveSlate: string[];
|
|
844
|
+
afterContainer: string[];
|
|
845
|
+
afterEditable: string[];
|
|
846
|
+
beforeContainer: string[];
|
|
847
|
+
beforeEditable: string[];
|
|
848
|
+
belowNodes: string[];
|
|
849
|
+
belowRootNodes: string[];
|
|
850
|
+
};
|
|
851
|
+
rules: {
|
|
852
|
+
match: string[];
|
|
853
|
+
};
|
|
854
|
+
useHooks: string[];
|
|
855
|
+
};
|
|
856
|
+
pluginList: any[];
|
|
857
|
+
uid?: string;
|
|
858
|
+
} & {
|
|
859
|
+
inputRules: import("platejs").ResolvedInputRulesMeta;
|
|
860
|
+
pluginList: import("platejs/react").AnyEditorPlatePlugin[];
|
|
861
|
+
shortcuts: import("platejs/react").Shortcuts;
|
|
862
|
+
};
|
|
863
|
+
selection: import("platejs").EditorSelection;
|
|
864
|
+
redo: () => void;
|
|
865
|
+
undo: () => void;
|
|
866
|
+
dom: {
|
|
867
|
+
composing: boolean;
|
|
868
|
+
currentKeyboardEvent: KeyboardEventLike | null;
|
|
869
|
+
focused: boolean;
|
|
870
|
+
prevSelection: import("platejs").TRange | null;
|
|
871
|
+
readOnly: boolean;
|
|
872
|
+
};
|
|
873
|
+
plugins: Record<string, any> & Record<string, import("platejs/react").AnyEditorPlatePlugin>;
|
|
874
|
+
setOptions: <C extends import("platejs").AnyPluginConfig>(plugin: import("platejs").WithRequiredKey<C>, options: ((state: import("mutative").Draft<Partial<import("platejs").InferOptions<C>>>) => void) | Partial<import("platejs").InferOptions<C>>) => void;
|
|
875
|
+
getInjectProps: <C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin: import("platejs").WithRequiredKey<C>) => import("platejs").InjectNodeProps<C>;
|
|
876
|
+
getOption: <C extends import("platejs").AnyPluginConfig, StateType extends import("platejs").InferOptions<C>, TSelectors extends import("platejs").InferSelectors<C>, K$1 extends keyof StateType | keyof TSelectors | "state">(plugin: import("platejs").WithRequiredKey<C>, key: K$1, ...args: K$1 extends keyof TSelectors ? Parameters<TSelectors[K$1]> : []) => K$1 extends "state" ? StateType : K$1 extends keyof TSelectors ? ReturnType<TSelectors[K$1]> : K$1 extends keyof StateType ? StateType[K$1] : never;
|
|
877
|
+
getOptions: <C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin: import("platejs").WithRequiredKey<C>) => import("platejs").InferOptions<C>;
|
|
878
|
+
getOptionsStore: <C extends import("platejs").AnyPluginConfig>(plugin: import("platejs").WithRequiredKey<C>) => import("zustand-x").TStateApi<import("platejs").InferOptions<C>, [["zustand/mutative-x", never]], {}, import("platejs").InferSelectors<C>>;
|
|
879
|
+
getPlugin: (<C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig<any, {}, {}, {}, {}>>(plugin: import("platejs").WithRequiredKey<C>) => C extends {
|
|
880
|
+
node: any;
|
|
881
|
+
} ? C : import("platejs").EditorPlugin<C>) & (<C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin: import("platejs").WithRequiredKey<C>) => C extends {
|
|
882
|
+
node: any;
|
|
883
|
+
} ? C : import("platejs/react").EditorPlatePlugin<C>);
|
|
884
|
+
getType: (pluginKey: string) => string;
|
|
885
|
+
setOption: <C extends import("platejs").AnyPluginConfig, K$1 extends keyof import("platejs").InferOptions<C>>(plugin: import("platejs").WithRequiredKey<C>, optionKey: K$1, value: import("platejs").InferOptions<C>[K$1]) => void;
|
|
886
|
+
api: import("platejs").EditorApi & import("platejs").UnionToIntersection<import("platejs").InferApi<import("platejs/react").PlateCorePlugin>>;
|
|
887
|
+
tf: import("platejs").EditorTransforms & import("platejs").UnionToIntersection<import("platejs").InferTransforms<import("platejs/react").PlateCorePlugin>>;
|
|
888
|
+
transforms: import("platejs").EditorTransforms & import("platejs").UnionToIntersection<import("platejs").InferTransforms<import("platejs/react").PlateCorePlugin>>;
|
|
889
|
+
getApi: <C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin?: import("platejs").WithRequiredKey<C>) => import("platejs/react").PlateEditor["api"] & import("platejs").InferApi<C>;
|
|
890
|
+
getTransforms: <C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin?: import("platejs").WithRequiredKey<C>) => import("platejs/react").PlateEditor["tf"] & import("platejs").InferTransforms<C>;
|
|
891
|
+
uid?: string | undefined;
|
|
892
|
+
} & {
|
|
893
|
+
api: {
|
|
894
|
+
fragment: <N extends import("platejs").ElementOrTextIn<Value>>(at?: import("platejs").At | null, options?: import("platejs").EditorFragmentOptions) => N[];
|
|
895
|
+
getDirtyPaths: <N extends import("platejs").TText | import("platejs").TElement>(operation: import("platejs").Operation<N>) => import("platejs").Path[];
|
|
896
|
+
getFragment: (at?: import("platejs").At) => import("platejs").ElementOrTextIn<Value>[];
|
|
897
|
+
isElementReadOnly: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
898
|
+
isSelected: (target: import("platejs").Path | import("platejs").TRange, options?: import("platejs").EditorIsSelectedOptions) => boolean;
|
|
899
|
+
isVoid: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
900
|
+
markableVoid: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
901
|
+
setNormalizing: (isNormalizing: boolean) => void;
|
|
902
|
+
shouldMergeNodes: (prevNodeEntry: import("platejs").NodeEntry, curNodeEntry: import("platejs").NodeEntry, options?: {
|
|
903
|
+
reverse?: boolean;
|
|
904
|
+
}) => boolean;
|
|
905
|
+
shouldNormalize: (options: {
|
|
906
|
+
dirtyPaths: import("platejs").Path[];
|
|
907
|
+
initialDirtyPathsLength: number;
|
|
908
|
+
iteration: number;
|
|
909
|
+
operation?: import("platejs").Operation;
|
|
910
|
+
}) => boolean;
|
|
911
|
+
shouldNormalizeNode: (entry: import("platejs").NodeEntry) => boolean;
|
|
912
|
+
onChange: (options?: {
|
|
913
|
+
operation?: import("platejs").Operation;
|
|
914
|
+
}) => void;
|
|
915
|
+
} & {
|
|
916
|
+
after: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorAfterOptions) => import("slate").BasePoint | undefined>;
|
|
917
|
+
before: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorBeforeOptions) => import("platejs").Point | undefined>;
|
|
918
|
+
edges: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At) => [import("slate").BasePoint, import("slate").BasePoint] | undefined>;
|
|
919
|
+
elementReadOnly: import("platejs").OmitFirst<(<E extends import("platejs").Editor = import("platejs").Editor<Value>>(editor: E, options?: import("platejs").EditorElementReadOnlyOptions) => import("slate").NodeEntry<import("slate").BaseElement> | undefined)>;
|
|
920
|
+
end: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorEndOptions) => import("slate").BasePoint | undefined>;
|
|
921
|
+
hasBlocks: import("platejs").OmitFirst<(editor: import("platejs").Editor, element: import("platejs").TElement) => boolean>;
|
|
922
|
+
hasInlines: import("platejs").OmitFirst<(editor: import("platejs").Editor, element: import("platejs").TElement) => boolean>;
|
|
923
|
+
hasMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string) => boolean>;
|
|
924
|
+
hasTexts: import("platejs").OmitFirst<(editor: import("platejs").Editor, element: import("platejs").TElement) => boolean>;
|
|
925
|
+
isBlock: import("platejs").OmitFirst<(editor: import("platejs").Editor, value: any) => value is import("platejs").TElement>;
|
|
926
|
+
isEdge: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point, at: import("platejs").TLocation) => boolean>;
|
|
927
|
+
isEmpty: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, target?: import("platejs").At | null, options?: import("platejs").EditorEmptyOptions) => boolean)>;
|
|
928
|
+
isEnd: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point | null | undefined, at: import("platejs").TLocation) => boolean>;
|
|
929
|
+
isNormalizing: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
930
|
+
isStart: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point | null | undefined, at: import("platejs").TLocation) => boolean>;
|
|
931
|
+
path: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("slate").EditorPathOptions) => import("slate").Path | undefined>;
|
|
932
|
+
pathRef: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").Path, options?: import("slate").EditorPathRefOptions) => import("slate").PathRef>;
|
|
933
|
+
pathRefs: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Set<import("slate").PathRef>>;
|
|
934
|
+
point: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("slate").EditorPointOptions) => import("slate").BasePoint | undefined>;
|
|
935
|
+
pointRef: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point, options?: import("slate").EditorPointRefOptions) => import("slate").PointRef>;
|
|
936
|
+
pointRefs: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Set<import("slate").PointRef>>;
|
|
937
|
+
positions: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("platejs").EditorPositionsOptions) => Generator<import("slate").BasePoint, void, undefined>>;
|
|
938
|
+
range: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At | "before" | "start", to?: import("platejs").At | null, options?: {
|
|
939
|
+
before?: import("platejs").EditorBeforeOptions;
|
|
940
|
+
}) => import("platejs").TRange | undefined>;
|
|
941
|
+
rangeRef: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange, options?: import("slate").EditorRangeRefOptions) => import("slate").RangeRef>;
|
|
942
|
+
rangeRefs: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Set<import("slate").RangeRef>>;
|
|
943
|
+
start: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorStartOptions) => import("slate").BasePoint | undefined>;
|
|
944
|
+
string: import("platejs").OmitFirst<(editor: import("platejs").Editor, at?: import("platejs").At | null, options?: import("platejs").EditorStringOptions) => string>;
|
|
945
|
+
unhangRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange, options?: import("platejs").EditorUnhangRangeOptions) => import("platejs").TRange>;
|
|
946
|
+
above: <N extends import("platejs").Editor<Value> | import("platejs").TElement>(options?: import("platejs").EditorAboveOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
947
|
+
first: <N extends import("platejs").TText | import("platejs").TElement>(at: import("platejs").At) => import("platejs").NodeEntry<N> | undefined;
|
|
948
|
+
fragment: <N extends import("platejs").ElementOrTextIn<Value>>(at: import("platejs").At) => N[] | undefined;
|
|
949
|
+
hasPath: (path: import("platejs").Path) => boolean;
|
|
950
|
+
last: <N extends import("platejs").TText | import("platejs").TElement>(at: import("platejs").At, options?: import("platejs").EditorLastOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
951
|
+
leaf: <N extends import("platejs").TText>(at: import("platejs").At, options?: import("platejs").EditorLeafOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
952
|
+
levels: <N extends import("platejs").NodeIn<Value>>(options?: import("platejs").EditorLevelsOptions<Value> | undefined) => Generator<import("platejs").NodeEntry<N>, void, undefined>;
|
|
953
|
+
marks: () => {
|
|
954
|
+
[x: string]: unknown;
|
|
955
|
+
} | null;
|
|
956
|
+
next: <N extends import("platejs").TText | import("platejs").TElement>(options?: import("platejs").EditorNextOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
957
|
+
node: <N extends import("platejs").TText | import("platejs").TElement>(atOrOptions: import("platejs").EditorNodesOptions<Value> | import("platejs").AtOrDescendant, nodeOptions?: import("platejs").EditorNodeOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
958
|
+
nodes: <N extends import("platejs").TText | import("platejs").TElement>(options?: import("platejs").EditorNodesOptions<Value> | undefined) => Generator<import("platejs").NodeEntry<N>, void, undefined>;
|
|
959
|
+
parent: <N extends import("platejs").Editor<Value> | import("platejs").TElement>(at: import("platejs").At, options?: import("platejs").EditorParentOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
960
|
+
previous: <N extends import("platejs").TText | import("platejs").TElement>(options?: import("platejs").EditorPreviousOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
961
|
+
void: <N extends import("platejs").TElement>(options?: import("platejs").EditorVoidOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
962
|
+
} & {
|
|
963
|
+
findDocumentOrShadowRoot: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Document | ShadowRoot | undefined>;
|
|
964
|
+
findEventRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, event: any) => import("slate").BaseRange | undefined>;
|
|
965
|
+
findKey: import("platejs").OmitFirst<(editor: import("platejs").Editor, node: import("platejs").TNode) => import("slate-dom").Key | undefined>;
|
|
966
|
+
getWindow: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Window | undefined>;
|
|
967
|
+
hasDOMNode: import("platejs").OmitFirst<(editor: import("platejs").Editor, target: Node, options?: Parameters<(editor: import("slate-dom").DOMEditor, target: Node, options?: {
|
|
968
|
+
editable?: boolean;
|
|
969
|
+
}) => boolean>[2]) => boolean>;
|
|
970
|
+
hasRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange) => boolean>;
|
|
971
|
+
isComposing: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
972
|
+
isFocused: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
973
|
+
isReadOnly: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
974
|
+
isTargetInsideNonReadonlyVoid: import("platejs").OmitFirst<(editor: import("platejs").Editor, target: EventTarget | null) => boolean>;
|
|
975
|
+
toDOMNode: import("platejs").OmitFirst<(editor: import("platejs").Editor, node: import("platejs").TNode) => HTMLElement | undefined>;
|
|
976
|
+
toDOMPoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point) => import("slate-dom").DOMPoint | undefined>;
|
|
977
|
+
toDOMRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange) => Range | undefined>;
|
|
978
|
+
toSlatePoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, domPoint: import("slate-dom").DOMPoint, options: Omit<Parameters<(<T extends boolean>(editor: import("slate-dom").DOMEditor, domPoint: import("slate-dom").DOMPoint, options: {
|
|
979
|
+
exactMatch: boolean;
|
|
980
|
+
suppressThrow: T;
|
|
981
|
+
searchDirection?: "forward" | "backward";
|
|
982
|
+
}) => T extends true ? import("slate").Point | null : import("slate").Point)>[2], "suppressThrow">) => import("slate").BasePoint | null | undefined>;
|
|
983
|
+
toSlateRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, domRange: Parameters<(<T extends boolean>(editor: import("slate-dom").DOMEditor, domRange: Range | StaticRange | Selection, options: {
|
|
984
|
+
exactMatch: boolean;
|
|
985
|
+
suppressThrow: T;
|
|
986
|
+
}) => T extends true ? import("slate").Range | null : import("slate").Range)>[1], options: Omit<Parameters<(<T extends boolean>(editor: import("slate-dom").DOMEditor, domRange: Range | StaticRange | Selection, options: {
|
|
987
|
+
exactMatch: boolean;
|
|
988
|
+
suppressThrow: T;
|
|
989
|
+
}) => T extends true ? import("slate").Range | null : import("slate").Range)>[2], "supressThrow">) => import("slate").BaseRange | null | undefined>;
|
|
990
|
+
findPath: (node: import("platejs").TNode, options?: import("platejs").EditorFindPathOptions) => import("platejs").Path | undefined;
|
|
991
|
+
hasEditableTarget: (target: EventTarget | null) => target is Node;
|
|
992
|
+
hasSelectableTarget: (target: EventTarget | null) => target is Node;
|
|
993
|
+
hasTarget: (target: EventTarget | null) => target is Node;
|
|
994
|
+
toSlateNode: <N extends import("platejs").NodeIn<Value>>(domNode: Parameters<(editor: import("platejs").Editor, domNode: Node) => import("platejs").TNode | undefined>[1]) => N | undefined;
|
|
995
|
+
} & {
|
|
996
|
+
isMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean | undefined>;
|
|
997
|
+
isSaving: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean | undefined>;
|
|
998
|
+
isSplittingOnce: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean | undefined>;
|
|
999
|
+
} & {
|
|
1000
|
+
create: {
|
|
1001
|
+
block: (node?: Partial<import("platejs").TElement>, path?: import("platejs").Path) => import("platejs").TElement;
|
|
1002
|
+
value: () => Value;
|
|
1003
|
+
};
|
|
1004
|
+
isAt: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, { at, block, blocks, end, start, text, word, ...options }?: {
|
|
1005
|
+
at?: import("platejs").TLocation | null;
|
|
1006
|
+
block?: boolean;
|
|
1007
|
+
blocks?: boolean;
|
|
1008
|
+
end?: boolean;
|
|
1009
|
+
start?: boolean;
|
|
1010
|
+
text?: boolean;
|
|
1011
|
+
word?: boolean;
|
|
1012
|
+
} & Omit<import("platejs").EditorAboveOptions<import("platejs").ValueOf<E>>, "at" | "block">) => boolean)>;
|
|
1013
|
+
isText: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At) => boolean>;
|
|
1014
|
+
scrollIntoView: import("platejs").OmitFirst<(editor: import("platejs").Editor, target: Range | import("platejs").Point, options?: import("platejs").ScrollIntoViewOptions) => void>;
|
|
1015
|
+
some: import("platejs").OmitFirst<(<E extends import("platejs").Editor = import("platejs").Editor<Value>>(editor: E, options: import("platejs").EditorNodesOptions<import("platejs").ValueOf<E>>) => boolean)>;
|
|
1016
|
+
block: <N extends import("platejs").TElement>(options?: import("platejs").EditorBlockOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
1017
|
+
blocks: <N extends import("platejs").TElement>(options?: import("platejs").EditorNodesOptions<Value> | undefined) => import("platejs").NodeEntry<N>[];
|
|
1018
|
+
descendant: <N extends import("platejs").TText | import("platejs").TElement>(options: import("platejs").EditorNodesOptions<Value>) => import("platejs").NodeEntry<N> | undefined;
|
|
1019
|
+
edgeBlocks: <N1 extends import("platejs").TElement, N2 extends import("platejs").TElement = N1>(options?: import("platejs").EditorAboveOptions<Value> | undefined) => [import("platejs").NodeEntry<N1>, import("platejs").NodeEntry<N2>] | null;
|
|
1020
|
+
isCollapsed: () => boolean;
|
|
1021
|
+
isEditorEnd: () => boolean;
|
|
1022
|
+
isExpanded: () => boolean;
|
|
1023
|
+
isInline: <N extends import("platejs").TText | import("platejs").TElement>(element: N) => boolean;
|
|
1024
|
+
isSelectable: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
1025
|
+
mark: <K extends string>(key: K) => unknown;
|
|
1026
|
+
nodesRange: (nodes: import("platejs").NodeEntry[]) => import("platejs").TRange | undefined;
|
|
1027
|
+
prop: (options: import("platejs").EditorPropOptions<Value>) => string | undefined;
|
|
1028
|
+
} & {
|
|
1029
|
+
debug: {
|
|
1030
|
+
error: (message: string | unknown, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
1031
|
+
info: (message: string, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
1032
|
+
log: (message: string, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
1033
|
+
warn: (message: string, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
1034
|
+
};
|
|
1035
|
+
} & {
|
|
1036
|
+
isElementStateEmpty: (element: import("platejs").TElement) => boolean;
|
|
1037
|
+
redecorate: () => void;
|
|
1038
|
+
} & {
|
|
1039
|
+
isScrolling: () => boolean;
|
|
1040
|
+
} & {
|
|
1041
|
+
navigation: {
|
|
1042
|
+
activeTarget: () => import("platejs").NavigationFeedbackActiveTarget | null;
|
|
1043
|
+
clear: () => void;
|
|
1044
|
+
isTarget: (path: import("platejs").Path) => boolean;
|
|
1045
|
+
};
|
|
1046
|
+
} & Record<"html", {
|
|
1047
|
+
deserialize: (args_0: {
|
|
1048
|
+
element: HTMLElement | string;
|
|
1049
|
+
collapseWhiteSpace?: boolean;
|
|
1050
|
+
defaultElementPlugin?: import("platejs").WithRequiredKey;
|
|
1051
|
+
}) => import("platejs").Descendant[];
|
|
1052
|
+
}> & {
|
|
1053
|
+
redecorate: (() => void) & (() => void);
|
|
1054
|
+
isElementStateEmpty: (element: import("platejs").TElement) => boolean;
|
|
1055
|
+
} & {
|
|
1056
|
+
markdown: {
|
|
1057
|
+
deserialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor">) => Value>;
|
|
1058
|
+
deserializeInline: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, text: string, options?: import("@platejs/markdown").DeserializeMdOptions) => import("platejs").Descendant[]>;
|
|
1059
|
+
serialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor">) => string>;
|
|
1060
|
+
};
|
|
1061
|
+
} & Record<"markdown", {
|
|
1062
|
+
deserialize: (data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor"> | undefined) => Value;
|
|
1063
|
+
deserializeInline: (text: string, options?: import("@platejs/markdown").DeserializeMdOptions | undefined) => import("platejs").Descendant[];
|
|
1064
|
+
serialize: (options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor"> | undefined) => string;
|
|
1065
|
+
}> & {
|
|
1066
|
+
placeholder: import("@platejs/media/react").PlaceholderApi;
|
|
1067
|
+
} & Record<"placeholder", {
|
|
1068
|
+
addUploadingFile: (id: string, file: File) => void;
|
|
1069
|
+
getUploadingFile: (id: string) => File;
|
|
1070
|
+
removeUploadingFile: (id: string) => void;
|
|
1071
|
+
}> & {
|
|
1072
|
+
a: {
|
|
1073
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
1074
|
+
};
|
|
1075
|
+
} & Record<"a", Partial<{
|
|
1076
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
1077
|
+
}>> & {
|
|
1078
|
+
create: {
|
|
1079
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
1080
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
1081
|
+
children: import("platejs").Descendant[];
|
|
1082
|
+
type: string;
|
|
1083
|
+
}>;
|
|
1084
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
1085
|
+
children: {
|
|
1086
|
+
children: import("platejs").Descendant[];
|
|
1087
|
+
type: string;
|
|
1088
|
+
}[];
|
|
1089
|
+
type: string;
|
|
1090
|
+
}>;
|
|
1091
|
+
};
|
|
1092
|
+
table: {
|
|
1093
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
1094
|
+
element: import("platejs").TTableCellElement;
|
|
1095
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
1096
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
1097
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
1098
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
1099
|
+
element: import("platejs").TTableCellElement;
|
|
1100
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
1101
|
+
colSizes?: number[];
|
|
1102
|
+
rowSize?: number;
|
|
1103
|
+
}) => {
|
|
1104
|
+
minHeight: number;
|
|
1105
|
+
width: number;
|
|
1106
|
+
}>;
|
|
1107
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
1108
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
1109
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
1110
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
1111
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
1112
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
1113
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
1114
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
1115
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
1116
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
1117
|
+
};
|
|
1118
|
+
} & {
|
|
1119
|
+
create: {
|
|
1120
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
1121
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
1122
|
+
children: import("platejs").Descendant[];
|
|
1123
|
+
type: string;
|
|
1124
|
+
}>;
|
|
1125
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
1126
|
+
children: {
|
|
1127
|
+
children: import("platejs").Descendant[];
|
|
1128
|
+
type: string;
|
|
1129
|
+
}[];
|
|
1130
|
+
type: string;
|
|
1131
|
+
}>;
|
|
1132
|
+
};
|
|
1133
|
+
table: {
|
|
1134
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
1135
|
+
element: import("platejs").TTableCellElement;
|
|
1136
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
1137
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
1138
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
1139
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
1140
|
+
element: import("platejs").TTableCellElement;
|
|
1141
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
1142
|
+
colSizes?: number[];
|
|
1143
|
+
rowSize?: number;
|
|
1144
|
+
}) => {
|
|
1145
|
+
minHeight: number;
|
|
1146
|
+
width: number;
|
|
1147
|
+
}>;
|
|
1148
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
1149
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
1150
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
1151
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
1152
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
1153
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
1154
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
1155
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
1156
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
1157
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
1158
|
+
};
|
|
1159
|
+
} & {
|
|
1160
|
+
toggle: {
|
|
1161
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
1162
|
+
};
|
|
1163
|
+
} & {
|
|
1164
|
+
comment: {
|
|
1165
|
+
has: (options: {
|
|
1166
|
+
id: string;
|
|
1167
|
+
}) => boolean;
|
|
1168
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1169
|
+
id?: string;
|
|
1170
|
+
isDraft?: boolean;
|
|
1171
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText> | undefined;
|
|
1172
|
+
nodeId: (leaf: import("platejs").TCommentText) => string | undefined;
|
|
1173
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
1174
|
+
id?: string;
|
|
1175
|
+
isDraft?: boolean;
|
|
1176
|
+
transient?: boolean;
|
|
1177
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText>[];
|
|
1178
|
+
};
|
|
1179
|
+
} & {
|
|
1180
|
+
suggestion: {
|
|
1181
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
1182
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
1183
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1184
|
+
id?: string;
|
|
1185
|
+
isText?: boolean;
|
|
1186
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
1187
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
1188
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
1189
|
+
transient?: boolean;
|
|
1190
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
1191
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
1192
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
1193
|
+
};
|
|
1194
|
+
} & {
|
|
1195
|
+
blockSelection: {
|
|
1196
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
1197
|
+
element: import("platejs").TElement;
|
|
1198
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1199
|
+
disabledWhenFocused?: boolean;
|
|
1200
|
+
}) => void>;
|
|
1201
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
1202
|
+
added: Element[];
|
|
1203
|
+
removed: Element[];
|
|
1204
|
+
}> & {
|
|
1205
|
+
ids?: string[];
|
|
1206
|
+
}) => void>;
|
|
1207
|
+
add: (id: string[] | string) => void;
|
|
1208
|
+
addSelectedRow: (id: string, options?: {
|
|
1209
|
+
clear?: boolean;
|
|
1210
|
+
delay?: number;
|
|
1211
|
+
}) => void;
|
|
1212
|
+
clear: () => void;
|
|
1213
|
+
delete: (id: string[] | string) => void;
|
|
1214
|
+
deselect: () => void;
|
|
1215
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
1216
|
+
focus: () => void;
|
|
1217
|
+
getNodes: (options?: {
|
|
1218
|
+
collapseTableRows?: boolean;
|
|
1219
|
+
selectionFallback?: boolean;
|
|
1220
|
+
sort?: boolean;
|
|
1221
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
1222
|
+
has: (id: string[] | string) => boolean;
|
|
1223
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
1224
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
1225
|
+
resetSelectedIds: () => void;
|
|
1226
|
+
selectAll: () => void;
|
|
1227
|
+
set: (id: string[] | string) => void;
|
|
1228
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
1229
|
+
unselect: () => void;
|
|
1230
|
+
};
|
|
1231
|
+
} & Record<"blockSelection", Partial<{
|
|
1232
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
1233
|
+
element: import("platejs").TElement;
|
|
1234
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1235
|
+
disabledWhenFocused?: boolean;
|
|
1236
|
+
}) => void>;
|
|
1237
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
1238
|
+
added: Element[];
|
|
1239
|
+
removed: Element[];
|
|
1240
|
+
}> & {
|
|
1241
|
+
ids?: string[];
|
|
1242
|
+
}) => void>;
|
|
1243
|
+
add: (id: string[] | string) => void;
|
|
1244
|
+
addSelectedRow: (id: string, options?: {
|
|
1245
|
+
clear?: boolean;
|
|
1246
|
+
delay?: number;
|
|
1247
|
+
}) => void;
|
|
1248
|
+
clear: () => void;
|
|
1249
|
+
delete: (id: string[] | string) => void;
|
|
1250
|
+
deselect: () => void;
|
|
1251
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
1252
|
+
focus: () => void;
|
|
1253
|
+
getNodes: (options?: {
|
|
1254
|
+
collapseTableRows?: boolean;
|
|
1255
|
+
selectionFallback?: boolean;
|
|
1256
|
+
sort?: boolean;
|
|
1257
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
1258
|
+
has: (id: string[] | string) => boolean;
|
|
1259
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
1260
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
1261
|
+
resetSelectedIds: () => void;
|
|
1262
|
+
selectAll: () => void;
|
|
1263
|
+
set: (id: string[] | string) => void;
|
|
1264
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
1265
|
+
unselect: () => void;
|
|
1266
|
+
}>> & {
|
|
1267
|
+
aiChat: {
|
|
1268
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
1269
|
+
undo?: boolean;
|
|
1270
|
+
}) => void>;
|
|
1271
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
1272
|
+
mode?: import("@platejs/ai").AIMode;
|
|
1273
|
+
options?: import("ai").ChatRequestOptions;
|
|
1274
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
1275
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
1276
|
+
}) => void>;
|
|
1277
|
+
hide: (options?: {
|
|
1278
|
+
focus?: boolean;
|
|
1279
|
+
undo?: boolean;
|
|
1280
|
+
}) => void;
|
|
1281
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1282
|
+
anchor?: boolean;
|
|
1283
|
+
streaming?: boolean;
|
|
1284
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
1285
|
+
reload: () => void;
|
|
1286
|
+
show: () => void;
|
|
1287
|
+
stop: () => void;
|
|
1288
|
+
};
|
|
1289
|
+
} & Record<"aiChat", Pick<{
|
|
1290
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
1291
|
+
undo?: boolean;
|
|
1292
|
+
}) => void>;
|
|
1293
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
1294
|
+
mode?: import("@platejs/ai").AIMode;
|
|
1295
|
+
options?: import("ai").ChatRequestOptions;
|
|
1296
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
1297
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
1298
|
+
}) => void>;
|
|
1299
|
+
hide: (options?: {
|
|
1300
|
+
focus?: boolean;
|
|
1301
|
+
undo?: boolean;
|
|
1302
|
+
}) => void;
|
|
1303
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1304
|
+
anchor?: boolean;
|
|
1305
|
+
streaming?: boolean;
|
|
1306
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
1307
|
+
reload: () => void;
|
|
1308
|
+
show: () => void;
|
|
1309
|
+
stop: () => void;
|
|
1310
|
+
}, "stop" | "node" | "reset" | "submit">> & Record<"aiChat", {
|
|
1311
|
+
hide: ({ focus, undo }?: {
|
|
1312
|
+
focus?: boolean;
|
|
1313
|
+
undo?: boolean;
|
|
1314
|
+
}) => void;
|
|
1315
|
+
show: () => void;
|
|
1316
|
+
}> & {
|
|
1317
|
+
blockMenu: {
|
|
1318
|
+
hide: () => void;
|
|
1319
|
+
show: (id: (string & {}) | "context", position?: {
|
|
1320
|
+
x: number;
|
|
1321
|
+
y: number;
|
|
1322
|
+
}) => void;
|
|
1323
|
+
showContextMenu: (blockId: string, position: {
|
|
1324
|
+
x: number;
|
|
1325
|
+
y: number;
|
|
1326
|
+
}) => void;
|
|
1327
|
+
};
|
|
1328
|
+
} & Record<"blockMenu", Partial<{
|
|
1329
|
+
hide: () => void;
|
|
1330
|
+
show: (id: (string & {}) | "context", position?: {
|
|
1331
|
+
x: number;
|
|
1332
|
+
y: number;
|
|
1333
|
+
}) => void;
|
|
1334
|
+
showContextMenu: (blockId: string, position: {
|
|
1335
|
+
x: number;
|
|
1336
|
+
y: number;
|
|
1337
|
+
}) => void;
|
|
1338
|
+
}>> & {
|
|
1339
|
+
cursorOverlay: {
|
|
1340
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
1341
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
1342
|
+
};
|
|
1343
|
+
} & Record<"cursorOverlay", {
|
|
1344
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
1345
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
1346
|
+
}> & {
|
|
1347
|
+
copilot: {
|
|
1348
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
1349
|
+
reject: () => false | undefined;
|
|
1350
|
+
setBlockSuggestion: (options: {
|
|
1351
|
+
text: string;
|
|
1352
|
+
id?: string;
|
|
1353
|
+
}) => void;
|
|
1354
|
+
stop: () => void;
|
|
1355
|
+
};
|
|
1356
|
+
} & Record<"copilot", Omit<{
|
|
1357
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
1358
|
+
reject: () => false | undefined;
|
|
1359
|
+
setBlockSuggestion: (options: {
|
|
1360
|
+
text: string;
|
|
1361
|
+
id?: string;
|
|
1362
|
+
}) => void;
|
|
1363
|
+
stop: () => void;
|
|
1364
|
+
}, "reject">> & Record<"copilot", {
|
|
1365
|
+
reject: () => false | undefined;
|
|
1366
|
+
}>;
|
|
1367
|
+
children: Value;
|
|
1368
|
+
meta: import("platejs").UnknownObject & {
|
|
1369
|
+
isNormalizing?: boolean;
|
|
1370
|
+
} & {
|
|
1371
|
+
key: any;
|
|
1372
|
+
components: import("platejs").NodeComponents;
|
|
1373
|
+
userId?: string | null;
|
|
1374
|
+
isFallback: boolean;
|
|
1375
|
+
pluginCache: {
|
|
1376
|
+
decorate: string[];
|
|
1377
|
+
handlers: {
|
|
1378
|
+
onChange: string[];
|
|
1379
|
+
onNodeChange: string[];
|
|
1380
|
+
onTextChange: string[];
|
|
1381
|
+
};
|
|
1382
|
+
inject: {
|
|
1383
|
+
nodeProps: string[];
|
|
1384
|
+
};
|
|
1385
|
+
node: {
|
|
1386
|
+
isContainer: string[];
|
|
1387
|
+
isLeaf: string[];
|
|
1388
|
+
isMetadataProp: string[];
|
|
1389
|
+
isText: string[];
|
|
1390
|
+
leafProps: string[];
|
|
1391
|
+
textProps: string[];
|
|
1392
|
+
types: Record<string, string>;
|
|
1393
|
+
};
|
|
1394
|
+
transformInitialValue: string[];
|
|
1395
|
+
render: {
|
|
1396
|
+
aboveEditable: string[];
|
|
1397
|
+
aboveNodes: string[];
|
|
1398
|
+
aboveSlate: string[];
|
|
1399
|
+
afterContainer: string[];
|
|
1400
|
+
afterEditable: string[];
|
|
1401
|
+
beforeContainer: string[];
|
|
1402
|
+
beforeEditable: string[];
|
|
1403
|
+
belowNodes: string[];
|
|
1404
|
+
belowRootNodes: string[];
|
|
1405
|
+
};
|
|
1406
|
+
rules: {
|
|
1407
|
+
match: string[];
|
|
1408
|
+
};
|
|
1409
|
+
useHooks: string[];
|
|
1410
|
+
};
|
|
1411
|
+
pluginList: any[];
|
|
1412
|
+
uid?: string;
|
|
1413
|
+
} & {
|
|
1414
|
+
inputRules: import("platejs").ResolvedInputRulesMeta;
|
|
1415
|
+
pluginList: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"comment", {
|
|
1416
|
+
activeId: string | null;
|
|
1417
|
+
commentingBlock: import("platejs").Path | null;
|
|
1418
|
+
hoverId: string | null;
|
|
1419
|
+
isOverlapWithEditor: boolean;
|
|
1420
|
+
uniquePathMap: Map<string, import("platejs").Path>;
|
|
1421
|
+
updateTimestamp: number | null;
|
|
1422
|
+
}, {
|
|
1423
|
+
comment: {
|
|
1424
|
+
has: (options: {
|
|
1425
|
+
id: string;
|
|
1426
|
+
}) => boolean;
|
|
1427
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1428
|
+
id?: string;
|
|
1429
|
+
isDraft?: boolean;
|
|
1430
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText> | undefined;
|
|
1431
|
+
nodeId: (leaf: import("platejs").TCommentText) => string | undefined;
|
|
1432
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
1433
|
+
id?: string;
|
|
1434
|
+
isDraft?: boolean;
|
|
1435
|
+
transient?: boolean;
|
|
1436
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText>[];
|
|
1437
|
+
};
|
|
1438
|
+
}, {
|
|
1439
|
+
comment: {
|
|
1440
|
+
removeMark: () => void;
|
|
1441
|
+
setDraft: (options?: import("platejs").SetNodesOptions) => void;
|
|
1442
|
+
unsetMark: (options: {
|
|
1443
|
+
id?: string;
|
|
1444
|
+
transient?: boolean;
|
|
1445
|
+
}) => void;
|
|
1446
|
+
};
|
|
1447
|
+
} & Record<"comment", {
|
|
1448
|
+
setDraft: () => void;
|
|
1449
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"discussion", {
|
|
1450
|
+
currentUserId: string;
|
|
1451
|
+
discussions: import("./plugins/discussion-kit").TDiscussion[];
|
|
1452
|
+
users: Record<string, import("./plugins/discussion-kit").TDiscussionUser>;
|
|
1453
|
+
}, {}, {}, {
|
|
1454
|
+
currentUser: () => import("./plugins/discussion-kit").TDiscussionUser;
|
|
1455
|
+
user: (id: string) => import("./plugins/discussion-kit").TDiscussionUser;
|
|
1456
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"suggestion", {
|
|
1457
|
+
currentUserId: string | null;
|
|
1458
|
+
isSuggesting: boolean;
|
|
1459
|
+
} & {
|
|
1460
|
+
activeId: string | null;
|
|
1461
|
+
hoverId: string | null;
|
|
1462
|
+
uniquePathMap: Map<string, import("platejs").Path>;
|
|
1463
|
+
}, {
|
|
1464
|
+
suggestion: {
|
|
1465
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
1466
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
1467
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1468
|
+
id?: string;
|
|
1469
|
+
isText?: boolean;
|
|
1470
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
1471
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
1472
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
1473
|
+
transient?: boolean;
|
|
1474
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
1475
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
1476
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
1477
|
+
};
|
|
1478
|
+
}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
1479
|
+
toggle: () => void;
|
|
1480
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
1481
|
+
toggle: () => void;
|
|
1482
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
1483
|
+
toggle: () => void;
|
|
1484
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
1485
|
+
toggle: () => void;
|
|
1486
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
1487
|
+
toggle: () => void;
|
|
1488
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
1489
|
+
toggle: () => void;
|
|
1490
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
1491
|
+
toggle: () => void;
|
|
1492
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
1493
|
+
toggle: () => void;
|
|
1494
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockSelection", {
|
|
1495
|
+
anchorId?: string | null;
|
|
1496
|
+
areaOptions?: {
|
|
1497
|
+
document?: Document;
|
|
1498
|
+
} & {
|
|
1499
|
+
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
1500
|
+
features?: {
|
|
1501
|
+
range?: boolean | undefined;
|
|
1502
|
+
singleTap?: {
|
|
1503
|
+
allow?: boolean | undefined;
|
|
1504
|
+
intersect?: ("touch" | "native") | undefined;
|
|
1505
|
+
} | undefined;
|
|
1506
|
+
touch?: boolean | undefined;
|
|
1507
|
+
} | undefined;
|
|
1508
|
+
behaviour?: {
|
|
1509
|
+
intersect?: ("center" | "touch" | "cover") | undefined;
|
|
1510
|
+
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
1511
|
+
scrolling?: {
|
|
1512
|
+
manualSpeed?: number | undefined;
|
|
1513
|
+
speedDivider?: number | undefined;
|
|
1514
|
+
startScrollMargins?: {
|
|
1515
|
+
x?: number | undefined;
|
|
1516
|
+
y?: number | undefined;
|
|
1517
|
+
} | undefined;
|
|
1518
|
+
} | undefined;
|
|
1519
|
+
startThreshold?: number | {
|
|
1520
|
+
x?: number | undefined;
|
|
1521
|
+
y?: number | undefined;
|
|
1522
|
+
} | undefined;
|
|
1523
|
+
triggers?: ((0 | 1 | 2 | 3 | 4) | {
|
|
1524
|
+
button: 0 | 1 | 2 | 3 | 4;
|
|
1525
|
+
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
1526
|
+
})[] | undefined;
|
|
1527
|
+
} | undefined;
|
|
1528
|
+
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
1529
|
+
selectables?: (string | string[]) | undefined;
|
|
1530
|
+
selectionAreaClass?: string | undefined;
|
|
1531
|
+
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
1532
|
+
};
|
|
1533
|
+
editorPaddingRight?: import("react").CSSProperties["width"];
|
|
1534
|
+
enableContextMenu?: boolean;
|
|
1535
|
+
disableSelectAll?: boolean;
|
|
1536
|
+
isSelecting?: boolean;
|
|
1537
|
+
isSelectionAreaVisible?: boolean;
|
|
1538
|
+
rightSelectionAreaClassName?: string;
|
|
1539
|
+
selectedIds?: Set<string>;
|
|
1540
|
+
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
1541
|
+
isSelectable?: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
1542
|
+
onKeyDownSelecting?: (editor: import("platejs").SlateEditor, e: KeyboardEvent) => void;
|
|
1543
|
+
}, {
|
|
1544
|
+
blockSelection: {
|
|
1545
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
1546
|
+
element: import("platejs").TElement;
|
|
1547
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1548
|
+
disabledWhenFocused?: boolean;
|
|
1549
|
+
}) => void>;
|
|
1550
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
1551
|
+
added: Element[];
|
|
1552
|
+
removed: Element[];
|
|
1553
|
+
}> & {
|
|
1554
|
+
ids?: string[];
|
|
1555
|
+
}) => void>;
|
|
1556
|
+
add: (id: string[] | string) => void;
|
|
1557
|
+
addSelectedRow: (id: string, options?: {
|
|
1558
|
+
clear?: boolean;
|
|
1559
|
+
delay?: number;
|
|
1560
|
+
}) => void;
|
|
1561
|
+
clear: () => void;
|
|
1562
|
+
delete: (id: string[] | string) => void;
|
|
1563
|
+
deselect: () => void;
|
|
1564
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
1565
|
+
focus: () => void;
|
|
1566
|
+
getNodes: (options?: {
|
|
1567
|
+
collapseTableRows?: boolean;
|
|
1568
|
+
selectionFallback?: boolean;
|
|
1569
|
+
sort?: boolean;
|
|
1570
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
1571
|
+
has: (id: string[] | string) => boolean;
|
|
1572
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
1573
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
1574
|
+
resetSelectedIds: () => void;
|
|
1575
|
+
selectAll: () => void;
|
|
1576
|
+
set: (id: string[] | string) => void;
|
|
1577
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
1578
|
+
unselect: () => void;
|
|
1579
|
+
};
|
|
1580
|
+
} & Record<"blockSelection", Partial<{
|
|
1581
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
1582
|
+
element: import("platejs").TElement;
|
|
1583
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
1584
|
+
disabledWhenFocused?: boolean;
|
|
1585
|
+
}) => void>;
|
|
1586
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
1587
|
+
added: Element[];
|
|
1588
|
+
removed: Element[];
|
|
1589
|
+
}> & {
|
|
1590
|
+
ids?: string[];
|
|
1591
|
+
}) => void>;
|
|
1592
|
+
add: (id: string[] | string) => void;
|
|
1593
|
+
addSelectedRow: (id: string, options?: {
|
|
1594
|
+
clear?: boolean;
|
|
1595
|
+
delay?: number;
|
|
1596
|
+
}) => void;
|
|
1597
|
+
clear: () => void;
|
|
1598
|
+
delete: (id: string[] | string) => void;
|
|
1599
|
+
deselect: () => void;
|
|
1600
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
1601
|
+
focus: () => void;
|
|
1602
|
+
getNodes: (options?: {
|
|
1603
|
+
collapseTableRows?: boolean;
|
|
1604
|
+
selectionFallback?: boolean;
|
|
1605
|
+
sort?: boolean;
|
|
1606
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
1607
|
+
has: (id: string[] | string) => boolean;
|
|
1608
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
1609
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
1610
|
+
resetSelectedIds: () => void;
|
|
1611
|
+
selectAll: () => void;
|
|
1612
|
+
set: (id: string[] | string) => void;
|
|
1613
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
1614
|
+
unselect: () => void;
|
|
1615
|
+
}>>, Record<"blockSelection", {
|
|
1616
|
+
duplicate: () => void;
|
|
1617
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
1618
|
+
at: import("platejs").Path;
|
|
1619
|
+
insertedCallback?: () => void;
|
|
1620
|
+
}) => void;
|
|
1621
|
+
removeNodes: () => void;
|
|
1622
|
+
select: () => void;
|
|
1623
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
1624
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
1625
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
1626
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
1627
|
+
}>, {
|
|
1628
|
+
isSelected?: (id?: string) => boolean;
|
|
1629
|
+
isSelectingSome?: () => boolean;
|
|
1630
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockMenu", {
|
|
1631
|
+
openId: ((string & {}) | "context") | null;
|
|
1632
|
+
position: {
|
|
1633
|
+
x: number;
|
|
1634
|
+
y: number;
|
|
1635
|
+
};
|
|
1636
|
+
}, {
|
|
1637
|
+
blockMenu: {
|
|
1638
|
+
hide: () => void;
|
|
1639
|
+
show: (id: (string & {}) | "context", position?: {
|
|
1640
|
+
x: number;
|
|
1641
|
+
y: number;
|
|
1642
|
+
}) => void;
|
|
1643
|
+
showContextMenu: (blockId: string, position: {
|
|
1644
|
+
x: number;
|
|
1645
|
+
y: number;
|
|
1646
|
+
}) => void;
|
|
1647
|
+
};
|
|
1648
|
+
} & Record<"blockMenu", Partial<{
|
|
1649
|
+
hide: () => void;
|
|
1650
|
+
show: (id: (string & {}) | "context", position?: {
|
|
1651
|
+
x: number;
|
|
1652
|
+
y: number;
|
|
1653
|
+
}) => void;
|
|
1654
|
+
showContextMenu: (blockId: string, position: {
|
|
1655
|
+
x: number;
|
|
1656
|
+
y: number;
|
|
1657
|
+
}) => void;
|
|
1658
|
+
}>>, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"markdown", {
|
|
1659
|
+
allowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
1660
|
+
disallowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
1661
|
+
remarkPlugins: import("unified").Plugin[];
|
|
1662
|
+
remarkStringifyOptions: import("remark-stringify").Options | null;
|
|
1663
|
+
rules: import("@platejs/markdown").MdRules | null;
|
|
1664
|
+
allowNode?: import("@platejs/markdown").AllowNodeConfig;
|
|
1665
|
+
plainMarks?: import("@platejs/markdown").PlateType[] | null;
|
|
1666
|
+
}, {
|
|
1667
|
+
markdown: {
|
|
1668
|
+
deserialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor">) => Value>;
|
|
1669
|
+
deserializeInline: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, text: string, options?: import("@platejs/markdown").DeserializeMdOptions) => import("platejs").Descendant[]>;
|
|
1670
|
+
serialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor">) => string>;
|
|
1671
|
+
};
|
|
1672
|
+
} & Record<"markdown", {
|
|
1673
|
+
deserialize: (data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor"> | undefined) => Value;
|
|
1674
|
+
deserializeInline: (text: string, options?: import("@platejs/markdown").DeserializeMdOptions | undefined) => import("platejs").Descendant[];
|
|
1675
|
+
serialize: (options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor"> | undefined) => string;
|
|
1676
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"ai", {}, {}, {
|
|
1677
|
+
ai: {
|
|
1678
|
+
acceptPreview: ((_value?: Value | undefined) => boolean) & ((_value?: Value | undefined) => boolean);
|
|
1679
|
+
beginPreview: ((args_0?: {
|
|
1680
|
+
originalBlocks?: Value;
|
|
1681
|
+
} | undefined) => boolean) & ((args_0?: {
|
|
1682
|
+
originalBlocks?: Value;
|
|
1683
|
+
} | undefined) => boolean);
|
|
1684
|
+
cancelPreview: (() => boolean) & (() => boolean);
|
|
1685
|
+
discardPreview: (() => boolean) & (() => boolean);
|
|
1686
|
+
hasPreview: (() => boolean) & (() => boolean);
|
|
1687
|
+
insertNodes: ((nodes: import("platejs").Descendant[], args_1?: {
|
|
1688
|
+
target?: import("platejs").Path;
|
|
1689
|
+
} | undefined) => void) & ((nodes: import("platejs").Descendant[], args_1?: {
|
|
1690
|
+
target?: import("platejs").Path;
|
|
1691
|
+
} | undefined) => void);
|
|
1692
|
+
removeMarks: ((args_0?: {
|
|
1693
|
+
at?: import("platejs").TLocation;
|
|
1694
|
+
} | undefined) => void) & ((args_0?: {
|
|
1695
|
+
at?: import("platejs").TLocation;
|
|
1696
|
+
} | undefined) => void);
|
|
1697
|
+
removeNodes: ((args_0?: {
|
|
1698
|
+
at?: import("platejs").Path;
|
|
1699
|
+
} | undefined) => void) & ((args_0?: {
|
|
1700
|
+
at?: import("platejs").Path;
|
|
1701
|
+
} | undefined) => void);
|
|
1702
|
+
undo: (() => void) & (() => void);
|
|
1703
|
+
};
|
|
1704
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"cursorOverlay", {
|
|
1705
|
+
cursors: Record<string, import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>>;
|
|
1706
|
+
}, {
|
|
1707
|
+
cursorOverlay: {
|
|
1708
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
1709
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
1710
|
+
};
|
|
1711
|
+
} & Record<"cursorOverlay", {
|
|
1712
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
1713
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
1714
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
1715
|
+
contentRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
1716
|
+
scrollRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
1717
|
+
} & {
|
|
1718
|
+
_blockChunks: string;
|
|
1719
|
+
_blockPath: import("platejs").Path | null;
|
|
1720
|
+
_mdxName: string | null;
|
|
1721
|
+
_replaceIds: string[];
|
|
1722
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
1723
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
1724
|
+
toolName: "comment" | "edit" | "generate";
|
|
1725
|
+
comment?: {
|
|
1726
|
+
blockId: string;
|
|
1727
|
+
comment: string;
|
|
1728
|
+
content: string;
|
|
1729
|
+
};
|
|
1730
|
+
}, import("ai").UITools>>;
|
|
1731
|
+
chatNodes: import("platejs").TIdElement[];
|
|
1732
|
+
chatSelection: import("platejs").TRange | null;
|
|
1733
|
+
experimental_lastTextId: string | null;
|
|
1734
|
+
mode: import("@platejs/ai").AIMode;
|
|
1735
|
+
open: boolean;
|
|
1736
|
+
streaming: boolean;
|
|
1737
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
1738
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
1739
|
+
aiChat: {
|
|
1740
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
1741
|
+
undo?: boolean;
|
|
1742
|
+
}) => void>;
|
|
1743
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
1744
|
+
mode?: import("@platejs/ai").AIMode;
|
|
1745
|
+
options?: import("ai").ChatRequestOptions;
|
|
1746
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
1747
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
1748
|
+
}) => void>;
|
|
1749
|
+
hide: (options?: {
|
|
1750
|
+
focus?: boolean;
|
|
1751
|
+
undo?: boolean;
|
|
1752
|
+
}) => void;
|
|
1753
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1754
|
+
anchor?: boolean;
|
|
1755
|
+
streaming?: boolean;
|
|
1756
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
1757
|
+
reload: () => void;
|
|
1758
|
+
show: () => void;
|
|
1759
|
+
stop: () => void;
|
|
1760
|
+
};
|
|
1761
|
+
} & Record<"aiChat", Pick<{
|
|
1762
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
1763
|
+
undo?: boolean;
|
|
1764
|
+
}) => void>;
|
|
1765
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
1766
|
+
mode?: import("@platejs/ai").AIMode;
|
|
1767
|
+
options?: import("ai").ChatRequestOptions;
|
|
1768
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
1769
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
1770
|
+
}) => void>;
|
|
1771
|
+
hide: (options?: {
|
|
1772
|
+
focus?: boolean;
|
|
1773
|
+
undo?: boolean;
|
|
1774
|
+
}) => void;
|
|
1775
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
1776
|
+
anchor?: boolean;
|
|
1777
|
+
streaming?: boolean;
|
|
1778
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
1779
|
+
reload: () => void;
|
|
1780
|
+
show: () => void;
|
|
1781
|
+
stop: () => void;
|
|
1782
|
+
}, "stop" | "node" | "reset" | "submit">> & Record<"aiChat", {
|
|
1783
|
+
hide: ({ focus, undo }?: {
|
|
1784
|
+
focus?: boolean;
|
|
1785
|
+
undo?: boolean;
|
|
1786
|
+
}) => void;
|
|
1787
|
+
show: () => void;
|
|
1788
|
+
}>, {
|
|
1789
|
+
aiChat: {
|
|
1790
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => void>;
|
|
1791
|
+
insertBelow: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
1792
|
+
format?: "all" | "none" | "single";
|
|
1793
|
+
}) => void>;
|
|
1794
|
+
replaceSelection: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
1795
|
+
format?: "all" | "none" | "single";
|
|
1796
|
+
}) => void>;
|
|
1797
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
1798
|
+
};
|
|
1799
|
+
} & Record<"aiChat", {
|
|
1800
|
+
accept: () => void;
|
|
1801
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
1802
|
+
format?: "all" | "none" | "single";
|
|
1803
|
+
} | undefined) => void;
|
|
1804
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
1805
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
1806
|
+
format?: "all" | "none" | "single";
|
|
1807
|
+
} | undefined) => void;
|
|
1808
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"panel", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"textSubstitution", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
|
|
1809
|
+
toggle: () => void;
|
|
1810
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
1811
|
+
toggle: () => void;
|
|
1812
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"dnd", {
|
|
1813
|
+
_isOver?: boolean;
|
|
1814
|
+
draggingId?: string[] | string | null;
|
|
1815
|
+
dropTarget?: {
|
|
1816
|
+
id: string | null;
|
|
1817
|
+
line: import("@platejs/dnd").DropLineDirection;
|
|
1818
|
+
};
|
|
1819
|
+
enableScroller?: boolean;
|
|
1820
|
+
isDragging?: boolean;
|
|
1821
|
+
multiplePreviewRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
1822
|
+
scrollerProps?: Partial<import("@platejs/dnd").ScrollerProps>;
|
|
1823
|
+
onDropFiles?: (props: {
|
|
1824
|
+
id: string;
|
|
1825
|
+
dragItem: import("@platejs/dnd").FileDragItemNode;
|
|
1826
|
+
editor: import("platejs/react").PlateEditor;
|
|
1827
|
+
monitor: import("react-dnd").DropTargetMonitor<import("@platejs/dnd").DragItemNode, unknown>;
|
|
1828
|
+
nodeRef: any;
|
|
1829
|
+
target?: import("platejs").Path;
|
|
1830
|
+
}) => void;
|
|
1831
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockPlaceholder", {
|
|
1832
|
+
_target: {
|
|
1833
|
+
node: import("platejs").TElement;
|
|
1834
|
+
placeholder: string;
|
|
1835
|
+
} | null;
|
|
1836
|
+
placeholders: Record<string, string>;
|
|
1837
|
+
query: (context: import("platejs/react").PlatePluginContext<import("platejs/react").BlockPlaceholderConfig> & {
|
|
1838
|
+
node: import("platejs").TElement;
|
|
1839
|
+
path: import("platejs").Path;
|
|
1840
|
+
}) => boolean;
|
|
1841
|
+
className?: string;
|
|
1842
|
+
}, {}, {}, {
|
|
1843
|
+
placeholder: (node: import("platejs").TElement) => string | undefined;
|
|
1844
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"callout", {}, {}, {
|
|
1845
|
+
insert: {
|
|
1846
|
+
callout: (args_0?: ({
|
|
1847
|
+
batchDirty?: boolean;
|
|
1848
|
+
hanging?: boolean;
|
|
1849
|
+
nextBlock?: boolean;
|
|
1850
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
1851
|
+
select?: boolean;
|
|
1852
|
+
} & {
|
|
1853
|
+
id?: boolean | string;
|
|
1854
|
+
block?: boolean;
|
|
1855
|
+
empty?: boolean;
|
|
1856
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
1857
|
+
text?: boolean;
|
|
1858
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
1859
|
+
icon?: string;
|
|
1860
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
1861
|
+
}) | undefined) => void;
|
|
1862
|
+
};
|
|
1863
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"caretPlacement", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_block", {
|
|
1864
|
+
defaultLanguage?: string | null;
|
|
1865
|
+
lowlight?: ReturnType<typeof import("lowlight").createLowlight> | null;
|
|
1866
|
+
}, {}, Record<"code_block", {
|
|
1867
|
+
toggle: () => void;
|
|
1868
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column_group", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"copilot", {
|
|
1869
|
+
abortController?: AbortController | null;
|
|
1870
|
+
completion?: string | null;
|
|
1871
|
+
error?: Error | null;
|
|
1872
|
+
isLoading?: boolean;
|
|
1873
|
+
} & {
|
|
1874
|
+
completeOptions?: Partial<import("@platejs/ai/react").CompleteOptions>;
|
|
1875
|
+
debounceDelay?: number;
|
|
1876
|
+
getNextWord?: import("@platejs/ai/react").GetNextWord;
|
|
1877
|
+
renderGhostText?: (() => React.ReactNode) | null;
|
|
1878
|
+
shouldAbort?: boolean;
|
|
1879
|
+
suggestionNodeId?: string | null;
|
|
1880
|
+
suggestionText?: string | null;
|
|
1881
|
+
autoTriggerQuery?: (options: {
|
|
1882
|
+
editor: import("platejs/react").PlateEditor;
|
|
1883
|
+
}) => boolean;
|
|
1884
|
+
getPrompt?: (options: {
|
|
1885
|
+
editor: import("platejs/react").PlateEditor;
|
|
1886
|
+
}) => string;
|
|
1887
|
+
triggerQuery?: (options: {
|
|
1888
|
+
editor: import("platejs/react").PlateEditor;
|
|
1889
|
+
}) => boolean;
|
|
1890
|
+
}, {
|
|
1891
|
+
copilot: {
|
|
1892
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
1893
|
+
reject: () => false | undefined;
|
|
1894
|
+
setBlockSuggestion: (options: {
|
|
1895
|
+
text: string;
|
|
1896
|
+
id?: string;
|
|
1897
|
+
}) => void;
|
|
1898
|
+
stop: () => void;
|
|
1899
|
+
};
|
|
1900
|
+
} & Record<"copilot", Omit<{
|
|
1901
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
1902
|
+
reject: () => false | undefined;
|
|
1903
|
+
setBlockSuggestion: (options: {
|
|
1904
|
+
text: string;
|
|
1905
|
+
id?: string;
|
|
1906
|
+
}) => void;
|
|
1907
|
+
stop: () => void;
|
|
1908
|
+
}, "reject">> & Record<"copilot", {
|
|
1909
|
+
reject: () => false | undefined;
|
|
1910
|
+
}>, {
|
|
1911
|
+
copilot: {
|
|
1912
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
1913
|
+
acceptNextWord: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
1914
|
+
};
|
|
1915
|
+
} & Record<"copilot", {
|
|
1916
|
+
accept: () => false | undefined;
|
|
1917
|
+
acceptNextWord: () => false | undefined;
|
|
1918
|
+
}>, {
|
|
1919
|
+
isSuggested?: (id: string) => boolean;
|
|
1920
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"date", {}, {}, {
|
|
1921
|
+
insert: {
|
|
1922
|
+
date: (args_0?: ({
|
|
1923
|
+
date?: string;
|
|
1924
|
+
} & {
|
|
1925
|
+
batchDirty?: boolean;
|
|
1926
|
+
hanging?: boolean;
|
|
1927
|
+
nextBlock?: boolean;
|
|
1928
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
1929
|
+
select?: boolean;
|
|
1930
|
+
} & {
|
|
1931
|
+
id?: boolean | string;
|
|
1932
|
+
block?: boolean;
|
|
1933
|
+
empty?: boolean;
|
|
1934
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
1935
|
+
text?: boolean;
|
|
1936
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids) | undefined) => void;
|
|
1937
|
+
};
|
|
1938
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"placeholder", import("@platejs/media").MediaPlaceholderOptions & {
|
|
1939
|
+
disableEmptyPlaceholder: boolean;
|
|
1940
|
+
disableFileDrop: boolean;
|
|
1941
|
+
uploadConfig: import("@platejs/media/react").UploadConfig;
|
|
1942
|
+
uploadingFiles: Record<string, File>;
|
|
1943
|
+
error?: import("@platejs/media/react").UploadError | null;
|
|
1944
|
+
maxFileCount?: number;
|
|
1945
|
+
multiple?: boolean;
|
|
1946
|
+
}, {
|
|
1947
|
+
placeholder: import("@platejs/media/react").PlaceholderApi;
|
|
1948
|
+
} & Record<"placeholder", {
|
|
1949
|
+
addUploadingFile: (id: string, file: File) => void;
|
|
1950
|
+
getUploadingFile: (id: string) => File;
|
|
1951
|
+
removeUploadingFile: (id: string) => void;
|
|
1952
|
+
}>, {
|
|
1953
|
+
insert: {
|
|
1954
|
+
media: (files: FileList, options?: (Omit<import("platejs").InsertNodesOptions, "at"> & {
|
|
1955
|
+
at?: import("platejs").Path;
|
|
1956
|
+
}) | undefined) => any;
|
|
1957
|
+
};
|
|
1958
|
+
}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"docx", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"juice", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"emoji", {
|
|
1959
|
+
data?: import("@emoji-mart/data").EmojiMartData;
|
|
1960
|
+
createEmojiNode?: (emoji: import("@emoji-mart/data").Emoji) => any;
|
|
1961
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"emoji_input", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"exitBreak", {}, {}, Record<"exitBreak", {
|
|
1962
|
+
insert: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
1963
|
+
insertBefore: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
1964
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"a", {
|
|
1965
|
+
allowedSchemes?: string[];
|
|
1966
|
+
dangerouslySkipSanitization?: boolean;
|
|
1967
|
+
defaultLinkAttributes?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
1968
|
+
forceSubmit?: boolean;
|
|
1969
|
+
keepSelectedTextOnPaste?: boolean;
|
|
1970
|
+
rangeBeforeOptions?: import("platejs").EditorBeforeOptions;
|
|
1971
|
+
triggerFloatingLinkHotkeys?: string[] | string;
|
|
1972
|
+
getLinkUrl?: (prevUrl: string | null) => Promise<string | null>;
|
|
1973
|
+
getUrlHref?: (url: string) => string | undefined;
|
|
1974
|
+
isUrl?: (text: string) => boolean;
|
|
1975
|
+
transformInput?: (url: string) => string | undefined;
|
|
1976
|
+
} & {
|
|
1977
|
+
activeId: string | null;
|
|
1978
|
+
anchorElement: HTMLElement | null;
|
|
1979
|
+
mode: import("./plugins/link-kit").FloatingLinkMode;
|
|
1980
|
+
}, {
|
|
1981
|
+
a: {
|
|
1982
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
1983
|
+
};
|
|
1984
|
+
} & Record<"a", Partial<{
|
|
1985
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
1986
|
+
}>>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"floating-toolbar", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"color", {}, {}, Record<"color", {
|
|
1987
|
+
addMark: (value: string) => void;
|
|
1988
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
|
|
1989
|
+
addMark: (value: string) => void;
|
|
1990
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
|
|
1991
|
+
addMark: (value: string) => void;
|
|
1992
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
1993
|
+
addMark: (value: string) => void;
|
|
1994
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"indent", {
|
|
1995
|
+
indentMax?: number;
|
|
1996
|
+
offset?: number;
|
|
1997
|
+
unit?: string;
|
|
1998
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"list", {
|
|
1999
|
+
getSiblingListOptions?: import("@platejs/list").GetSiblingListOptions<import("platejs").TElement>;
|
|
2000
|
+
getListStyleType?: (element: HTMLElement) => import("@platejs/list").ListStyleType;
|
|
2001
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"inline_equation", {}, {}, {
|
|
2002
|
+
insert: {
|
|
2003
|
+
inlineEquation: (texExpression?: string | undefined, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
2004
|
+
};
|
|
2005
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"equation", {}, {}, {
|
|
2006
|
+
insert: {
|
|
2007
|
+
equation: (options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
2008
|
+
};
|
|
2009
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"img", {
|
|
2010
|
+
disableEmbedInsert?: boolean;
|
|
2011
|
+
disableUploadInsert?: boolean;
|
|
2012
|
+
uploadImage?: (dataUrl: ArrayBuffer | string) => ArrayBuffer | Promise<ArrayBuffer | string> | string;
|
|
2013
|
+
} & import("@platejs/media").MediaPluginOptions, {}, {
|
|
2014
|
+
insert: {
|
|
2015
|
+
imageFromFiles: (files: FileList, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
2016
|
+
};
|
|
2017
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"media_embed", import("@platejs/media").MediaPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"video", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"audio", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"file", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"caption", {
|
|
2018
|
+
focusEndPath: import("platejs").Path | null;
|
|
2019
|
+
focusStartPath: import("platejs").Path | null;
|
|
2020
|
+
query: {
|
|
2021
|
+
allow: string[];
|
|
2022
|
+
};
|
|
2023
|
+
visibleId: string | null;
|
|
2024
|
+
}, {}, {}, {
|
|
2025
|
+
isVisible?: (elementId: string) => boolean;
|
|
2026
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention", {
|
|
2027
|
+
insertSpaceAfterMention?: boolean;
|
|
2028
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {
|
|
2029
|
+
insert: {
|
|
2030
|
+
mention: (options: {
|
|
2031
|
+
search: string;
|
|
2032
|
+
value: any;
|
|
2033
|
+
key?: any;
|
|
2034
|
+
}) => void;
|
|
2035
|
+
};
|
|
2036
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention_input", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"slash_command", import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"slash_input", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"table", {
|
|
2037
|
+
_cellIndices: Record<string, {
|
|
2038
|
+
col: number;
|
|
2039
|
+
row: number;
|
|
2040
|
+
}>;
|
|
2041
|
+
_selectedCellIds: string[] | null | undefined;
|
|
2042
|
+
_selectedTableIds: string[] | null | undefined;
|
|
2043
|
+
_selectionVersion: number;
|
|
2044
|
+
selectedCells: import("platejs").TElement[] | null;
|
|
2045
|
+
selectedTables: import("platejs").TElement[] | null;
|
|
2046
|
+
disableExpandOnInsert?: boolean;
|
|
2047
|
+
disableMarginLeft?: boolean;
|
|
2048
|
+
disableMerge?: boolean;
|
|
2049
|
+
enableUnsetSingleColSize?: boolean;
|
|
2050
|
+
initialTableWidth?: number;
|
|
2051
|
+
minColumnWidth?: number;
|
|
2052
|
+
}, {
|
|
2053
|
+
create: {
|
|
2054
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
2055
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
2056
|
+
children: import("platejs").Descendant[];
|
|
2057
|
+
type: string;
|
|
2058
|
+
}>;
|
|
2059
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
2060
|
+
children: {
|
|
2061
|
+
children: import("platejs").Descendant[];
|
|
2062
|
+
type: string;
|
|
2063
|
+
}[];
|
|
2064
|
+
type: string;
|
|
2065
|
+
}>;
|
|
2066
|
+
};
|
|
2067
|
+
table: {
|
|
2068
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
2069
|
+
element: import("platejs").TTableCellElement;
|
|
2070
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2071
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
2072
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
2073
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
2074
|
+
element: import("platejs").TTableCellElement;
|
|
2075
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2076
|
+
colSizes?: number[];
|
|
2077
|
+
rowSize?: number;
|
|
2078
|
+
}) => {
|
|
2079
|
+
minHeight: number;
|
|
2080
|
+
width: number;
|
|
2081
|
+
}>;
|
|
2082
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
2083
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2084
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2085
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2086
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2087
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2088
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2089
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
2090
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
2091
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
2092
|
+
};
|
|
2093
|
+
} & {
|
|
2094
|
+
create: {
|
|
2095
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
2096
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
2097
|
+
children: import("platejs").Descendant[];
|
|
2098
|
+
type: string;
|
|
2099
|
+
}>;
|
|
2100
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
2101
|
+
children: {
|
|
2102
|
+
children: import("platejs").Descendant[];
|
|
2103
|
+
type: string;
|
|
2104
|
+
}[];
|
|
2105
|
+
type: string;
|
|
2106
|
+
}>;
|
|
2107
|
+
};
|
|
2108
|
+
table: {
|
|
2109
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
2110
|
+
element: import("platejs").TTableCellElement;
|
|
2111
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2112
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
2113
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
2114
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
2115
|
+
element: import("platejs").TTableCellElement;
|
|
2116
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2117
|
+
colSizes?: number[];
|
|
2118
|
+
rowSize?: number;
|
|
2119
|
+
}) => {
|
|
2120
|
+
minHeight: number;
|
|
2121
|
+
width: number;
|
|
2122
|
+
}>;
|
|
2123
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
2124
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2125
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2126
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2127
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2128
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2129
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2130
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
2131
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
2132
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
2133
|
+
};
|
|
2134
|
+
}, {
|
|
2135
|
+
insert: {
|
|
2136
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
2137
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2138
|
+
at?: import("platejs").Path;
|
|
2139
|
+
before?: boolean;
|
|
2140
|
+
fromCell?: import("platejs").Path;
|
|
2141
|
+
header?: boolean;
|
|
2142
|
+
select?: boolean;
|
|
2143
|
+
}) => void>;
|
|
2144
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2145
|
+
at?: import("platejs").Path;
|
|
2146
|
+
before?: boolean;
|
|
2147
|
+
fromRow?: import("platejs").Path;
|
|
2148
|
+
header?: boolean;
|
|
2149
|
+
select?: boolean;
|
|
2150
|
+
}) => void>;
|
|
2151
|
+
};
|
|
2152
|
+
remove: {
|
|
2153
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2154
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2155
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2156
|
+
};
|
|
2157
|
+
table: {
|
|
2158
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2159
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2160
|
+
};
|
|
2161
|
+
} & {
|
|
2162
|
+
insert: {
|
|
2163
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
2164
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2165
|
+
at?: import("platejs").Path;
|
|
2166
|
+
before?: boolean;
|
|
2167
|
+
fromCell?: import("platejs").Path;
|
|
2168
|
+
header?: boolean;
|
|
2169
|
+
select?: boolean;
|
|
2170
|
+
}) => void>;
|
|
2171
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2172
|
+
at?: import("platejs").Path;
|
|
2173
|
+
before?: boolean;
|
|
2174
|
+
fromRow?: import("platejs").Path;
|
|
2175
|
+
header?: boolean;
|
|
2176
|
+
select?: boolean;
|
|
2177
|
+
}) => void>;
|
|
2178
|
+
};
|
|
2179
|
+
remove: {
|
|
2180
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2181
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2182
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2183
|
+
};
|
|
2184
|
+
table: {
|
|
2185
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2186
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2187
|
+
};
|
|
2188
|
+
}, {
|
|
2189
|
+
cellIndices?: (id: string) => import("@platejs/table").CellIndices;
|
|
2190
|
+
isCellSelected?: (id?: string | null) => boolean;
|
|
2191
|
+
isSelectingCell?: () => boolean;
|
|
2192
|
+
selectedCell?: (id?: string | null) => import("platejs").TElement | null;
|
|
2193
|
+
selectedCellIds?: () => string[] | null;
|
|
2194
|
+
selectedCells?: () => import("platejs").TElement[] | null;
|
|
2195
|
+
selectedTableIds?: () => string[] | null;
|
|
2196
|
+
selectedTables?: () => import("platejs").TElement[] | null;
|
|
2197
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toc", {
|
|
2198
|
+
isScroll: boolean;
|
|
2199
|
+
topOffset: number;
|
|
2200
|
+
queryHeading?: (editor: import("platejs").SlateEditor) => import("@platejs/toc").Heading[];
|
|
2201
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
2202
|
+
openIds?: Set<string>;
|
|
2203
|
+
} & {
|
|
2204
|
+
toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
|
|
2205
|
+
}, {
|
|
2206
|
+
toggle: {
|
|
2207
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
2208
|
+
};
|
|
2209
|
+
}, {}, {
|
|
2210
|
+
isOpen?: (toggleId: string) => boolean;
|
|
2211
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
2212
|
+
}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"trailingBlock", {
|
|
2213
|
+
type: string;
|
|
2214
|
+
} & {
|
|
2215
|
+
insert?: (editor: import("platejs").SlateEditor, options: import("platejs").TrailingBlockInsertOptions) => void;
|
|
2216
|
+
level?: number;
|
|
2217
|
+
type?: string;
|
|
2218
|
+
} & import("platejs").QueryNodeOptions, {}, {}, {}>>)[];
|
|
2219
|
+
shortcuts: import("platejs/react").Shortcuts;
|
|
2220
|
+
};
|
|
2221
|
+
operations: import("platejs").Operation<import("platejs").TText | import("platejs").TElement>[];
|
|
2222
|
+
plugins: {
|
|
2223
|
+
[x: string]: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"comment", {
|
|
2224
|
+
activeId: string | null;
|
|
2225
|
+
commentingBlock: import("platejs").Path | null;
|
|
2226
|
+
hoverId: string | null;
|
|
2227
|
+
isOverlapWithEditor: boolean;
|
|
2228
|
+
uniquePathMap: Map<string, import("platejs").Path>;
|
|
2229
|
+
updateTimestamp: number | null;
|
|
2230
|
+
}, {
|
|
2231
|
+
comment: {
|
|
2232
|
+
has: (options: {
|
|
2233
|
+
id: string;
|
|
2234
|
+
}) => boolean;
|
|
2235
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
2236
|
+
id?: string;
|
|
2237
|
+
isDraft?: boolean;
|
|
2238
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText> | undefined;
|
|
2239
|
+
nodeId: (leaf: import("platejs").TCommentText) => string | undefined;
|
|
2240
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
2241
|
+
id?: string;
|
|
2242
|
+
isDraft?: boolean;
|
|
2243
|
+
transient?: boolean;
|
|
2244
|
+
}) => import("platejs").NodeEntry<import("platejs").TCommentText>[];
|
|
2245
|
+
};
|
|
2246
|
+
}, {
|
|
2247
|
+
comment: {
|
|
2248
|
+
removeMark: () => void;
|
|
2249
|
+
setDraft: (options?: import("platejs").SetNodesOptions) => void;
|
|
2250
|
+
unsetMark: (options: {
|
|
2251
|
+
id?: string;
|
|
2252
|
+
transient?: boolean;
|
|
2253
|
+
}) => void;
|
|
2254
|
+
};
|
|
2255
|
+
} & Record<"comment", {
|
|
2256
|
+
setDraft: () => void;
|
|
2257
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"discussion", {
|
|
2258
|
+
currentUserId: string;
|
|
2259
|
+
discussions: import("./plugins/discussion-kit").TDiscussion[];
|
|
2260
|
+
users: Record<string, import("./plugins/discussion-kit").TDiscussionUser>;
|
|
2261
|
+
}, {}, {}, {
|
|
2262
|
+
currentUser: () => import("./plugins/discussion-kit").TDiscussionUser;
|
|
2263
|
+
user: (id: string) => import("./plugins/discussion-kit").TDiscussionUser;
|
|
2264
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"suggestion", {
|
|
2265
|
+
currentUserId: string | null;
|
|
2266
|
+
isSuggesting: boolean;
|
|
2267
|
+
} & {
|
|
2268
|
+
activeId: string | null;
|
|
2269
|
+
hoverId: string | null;
|
|
2270
|
+
uniquePathMap: Map<string, import("platejs").Path>;
|
|
2271
|
+
}, {
|
|
2272
|
+
suggestion: {
|
|
2273
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
2274
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
2275
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
2276
|
+
id?: string;
|
|
2277
|
+
isText?: boolean;
|
|
2278
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
2279
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
2280
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
2281
|
+
transient?: boolean;
|
|
2282
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
2283
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
2284
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
2285
|
+
};
|
|
2286
|
+
}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
2287
|
+
toggle: () => void;
|
|
2288
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
2289
|
+
toggle: () => void;
|
|
2290
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
2291
|
+
toggle: () => void;
|
|
2292
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
2293
|
+
toggle: () => void;
|
|
2294
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
2295
|
+
toggle: () => void;
|
|
2296
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
2297
|
+
toggle: () => void;
|
|
2298
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
2299
|
+
toggle: () => void;
|
|
2300
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
2301
|
+
toggle: () => void;
|
|
2302
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockSelection", {
|
|
2303
|
+
anchorId?: string | null;
|
|
2304
|
+
areaOptions?: {
|
|
2305
|
+
document?: Document;
|
|
2306
|
+
} & {
|
|
2307
|
+
container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
2308
|
+
features?: {
|
|
2309
|
+
range?: boolean | undefined;
|
|
2310
|
+
singleTap?: {
|
|
2311
|
+
allow?: boolean | undefined;
|
|
2312
|
+
intersect?: ("touch" | "native") | undefined;
|
|
2313
|
+
} | undefined;
|
|
2314
|
+
touch?: boolean | undefined;
|
|
2315
|
+
} | undefined;
|
|
2316
|
+
behaviour?: {
|
|
2317
|
+
intersect?: ("center" | "touch" | "cover") | undefined;
|
|
2318
|
+
overlap?: ("drop" | "invert" | "keep") | undefined;
|
|
2319
|
+
scrolling?: {
|
|
2320
|
+
manualSpeed?: number | undefined;
|
|
2321
|
+
speedDivider?: number | undefined;
|
|
2322
|
+
startScrollMargins?: {
|
|
2323
|
+
x?: number | undefined;
|
|
2324
|
+
y?: number | undefined;
|
|
2325
|
+
} | undefined;
|
|
2326
|
+
} | undefined;
|
|
2327
|
+
startThreshold?: number | {
|
|
2328
|
+
x?: number | undefined;
|
|
2329
|
+
y?: number | undefined;
|
|
2330
|
+
} | undefined;
|
|
2331
|
+
triggers?: ((0 | 1 | 2 | 3 | 4) | {
|
|
2332
|
+
button: 0 | 1 | 2 | 3 | 4;
|
|
2333
|
+
modifiers: ("shift" | "alt" | "ctrl")[];
|
|
2334
|
+
})[] | undefined;
|
|
2335
|
+
} | undefined;
|
|
2336
|
+
boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
2337
|
+
selectables?: (string | string[]) | undefined;
|
|
2338
|
+
selectionAreaClass?: string | undefined;
|
|
2339
|
+
startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
|
|
2340
|
+
};
|
|
2341
|
+
editorPaddingRight?: import("react").CSSProperties["width"];
|
|
2342
|
+
enableContextMenu?: boolean;
|
|
2343
|
+
disableSelectAll?: boolean;
|
|
2344
|
+
isSelecting?: boolean;
|
|
2345
|
+
isSelectionAreaVisible?: boolean;
|
|
2346
|
+
rightSelectionAreaClassName?: string;
|
|
2347
|
+
selectedIds?: Set<string>;
|
|
2348
|
+
shadowInputRef?: React.RefObject<HTMLInputElement | null>;
|
|
2349
|
+
isSelectable?: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
2350
|
+
onKeyDownSelecting?: (editor: import("platejs").SlateEditor, e: KeyboardEvent) => void;
|
|
2351
|
+
}, {
|
|
2352
|
+
blockSelection: {
|
|
2353
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
2354
|
+
element: import("platejs").TElement;
|
|
2355
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
2356
|
+
disabledWhenFocused?: boolean;
|
|
2357
|
+
}) => void>;
|
|
2358
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
2359
|
+
added: Element[];
|
|
2360
|
+
removed: Element[];
|
|
2361
|
+
}> & {
|
|
2362
|
+
ids?: string[];
|
|
2363
|
+
}) => void>;
|
|
2364
|
+
add: (id: string[] | string) => void;
|
|
2365
|
+
addSelectedRow: (id: string, options?: {
|
|
2366
|
+
clear?: boolean;
|
|
2367
|
+
delay?: number;
|
|
2368
|
+
}) => void;
|
|
2369
|
+
clear: () => void;
|
|
2370
|
+
delete: (id: string[] | string) => void;
|
|
2371
|
+
deselect: () => void;
|
|
2372
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
2373
|
+
focus: () => void;
|
|
2374
|
+
getNodes: (options?: {
|
|
2375
|
+
collapseTableRows?: boolean;
|
|
2376
|
+
selectionFallback?: boolean;
|
|
2377
|
+
sort?: boolean;
|
|
2378
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
2379
|
+
has: (id: string[] | string) => boolean;
|
|
2380
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
2381
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
2382
|
+
resetSelectedIds: () => void;
|
|
2383
|
+
selectAll: () => void;
|
|
2384
|
+
set: (id: string[] | string) => void;
|
|
2385
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
2386
|
+
unselect: () => void;
|
|
2387
|
+
};
|
|
2388
|
+
} & Record<"blockSelection", Partial<{
|
|
2389
|
+
addOnContextMenu: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { disabledWhenFocused, element, event }: {
|
|
2390
|
+
element: import("platejs").TElement;
|
|
2391
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>;
|
|
2392
|
+
disabledWhenFocused?: boolean;
|
|
2393
|
+
}) => void>;
|
|
2394
|
+
setSelectedIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { added, ids, removed }: Partial<{
|
|
2395
|
+
added: Element[];
|
|
2396
|
+
removed: Element[];
|
|
2397
|
+
}> & {
|
|
2398
|
+
ids?: string[];
|
|
2399
|
+
}) => void>;
|
|
2400
|
+
add: (id: string[] | string) => void;
|
|
2401
|
+
addSelectedRow: (id: string, options?: {
|
|
2402
|
+
clear?: boolean;
|
|
2403
|
+
delay?: number;
|
|
2404
|
+
}) => void;
|
|
2405
|
+
clear: () => void;
|
|
2406
|
+
delete: (id: string[] | string) => void;
|
|
2407
|
+
deselect: () => void;
|
|
2408
|
+
first: () => import("platejs").NodeEntry<import("platejs").TIdElement> | null;
|
|
2409
|
+
focus: () => void;
|
|
2410
|
+
getNodes: (options?: {
|
|
2411
|
+
collapseTableRows?: boolean;
|
|
2412
|
+
selectionFallback?: boolean;
|
|
2413
|
+
sort?: boolean;
|
|
2414
|
+
}) => import("platejs").NodeEntry<import("platejs").TIdElement>[];
|
|
2415
|
+
has: (id: string[] | string) => boolean;
|
|
2416
|
+
isSelectable: (element: import("platejs").TElement, path: import("platejs").Path) => boolean;
|
|
2417
|
+
moveSelection: (direction: "down" | "up") => void;
|
|
2418
|
+
resetSelectedIds: () => void;
|
|
2419
|
+
selectAll: () => void;
|
|
2420
|
+
set: (id: string[] | string) => void;
|
|
2421
|
+
shiftSelection: (direction: "down" | "up") => void;
|
|
2422
|
+
unselect: () => void;
|
|
2423
|
+
}>>, Record<"blockSelection", {
|
|
2424
|
+
duplicate: () => void;
|
|
2425
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
2426
|
+
at: import("platejs").Path;
|
|
2427
|
+
insertedCallback?: () => void;
|
|
2428
|
+
}) => void;
|
|
2429
|
+
removeNodes: () => void;
|
|
2430
|
+
select: () => void;
|
|
2431
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
2432
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
2433
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
2434
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
2435
|
+
}>, {
|
|
2436
|
+
isSelected?: (id?: string) => boolean;
|
|
2437
|
+
isSelectingSome?: () => boolean;
|
|
2438
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockMenu", {
|
|
2439
|
+
openId: ((string & {}) | "context") | null;
|
|
2440
|
+
position: {
|
|
2441
|
+
x: number;
|
|
2442
|
+
y: number;
|
|
2443
|
+
};
|
|
2444
|
+
}, {
|
|
2445
|
+
blockMenu: {
|
|
2446
|
+
hide: () => void;
|
|
2447
|
+
show: (id: (string & {}) | "context", position?: {
|
|
2448
|
+
x: number;
|
|
2449
|
+
y: number;
|
|
2450
|
+
}) => void;
|
|
2451
|
+
showContextMenu: (blockId: string, position: {
|
|
2452
|
+
x: number;
|
|
2453
|
+
y: number;
|
|
2454
|
+
}) => void;
|
|
2455
|
+
};
|
|
2456
|
+
} & Record<"blockMenu", Partial<{
|
|
2457
|
+
hide: () => void;
|
|
2458
|
+
show: (id: (string & {}) | "context", position?: {
|
|
2459
|
+
x: number;
|
|
2460
|
+
y: number;
|
|
2461
|
+
}) => void;
|
|
2462
|
+
showContextMenu: (blockId: string, position: {
|
|
2463
|
+
x: number;
|
|
2464
|
+
y: number;
|
|
2465
|
+
}) => void;
|
|
2466
|
+
}>>, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"markdown", {
|
|
2467
|
+
allowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
2468
|
+
disallowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
2469
|
+
remarkPlugins: import("unified").Plugin[];
|
|
2470
|
+
remarkStringifyOptions: import("remark-stringify").Options | null;
|
|
2471
|
+
rules: import("@platejs/markdown").MdRules | null;
|
|
2472
|
+
allowNode?: import("@platejs/markdown").AllowNodeConfig;
|
|
2473
|
+
plainMarks?: import("@platejs/markdown").PlateType[] | null;
|
|
2474
|
+
}, {
|
|
2475
|
+
markdown: {
|
|
2476
|
+
deserialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor">) => Value>;
|
|
2477
|
+
deserializeInline: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, text: string, options?: import("@platejs/markdown").DeserializeMdOptions) => import("platejs").Descendant[]>;
|
|
2478
|
+
serialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor">) => string>;
|
|
2479
|
+
};
|
|
2480
|
+
} & Record<"markdown", {
|
|
2481
|
+
deserialize: (data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor"> | undefined) => Value;
|
|
2482
|
+
deserializeInline: (text: string, options?: import("@platejs/markdown").DeserializeMdOptions | undefined) => import("platejs").Descendant[];
|
|
2483
|
+
serialize: (options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor"> | undefined) => string;
|
|
2484
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"ai", {}, {}, {
|
|
2485
|
+
ai: {
|
|
2486
|
+
acceptPreview: ((_value?: Value | undefined) => boolean) & ((_value?: Value | undefined) => boolean);
|
|
2487
|
+
beginPreview: ((args_0?: {
|
|
2488
|
+
originalBlocks?: Value;
|
|
2489
|
+
} | undefined) => boolean) & ((args_0?: {
|
|
2490
|
+
originalBlocks?: Value;
|
|
2491
|
+
} | undefined) => boolean);
|
|
2492
|
+
cancelPreview: (() => boolean) & (() => boolean);
|
|
2493
|
+
discardPreview: (() => boolean) & (() => boolean);
|
|
2494
|
+
hasPreview: (() => boolean) & (() => boolean);
|
|
2495
|
+
insertNodes: ((nodes: import("platejs").Descendant[], args_1?: {
|
|
2496
|
+
target?: import("platejs").Path;
|
|
2497
|
+
} | undefined) => void) & ((nodes: import("platejs").Descendant[], args_1?: {
|
|
2498
|
+
target?: import("platejs").Path;
|
|
2499
|
+
} | undefined) => void);
|
|
2500
|
+
removeMarks: ((args_0?: {
|
|
2501
|
+
at?: import("platejs").TLocation;
|
|
2502
|
+
} | undefined) => void) & ((args_0?: {
|
|
2503
|
+
at?: import("platejs").TLocation;
|
|
2504
|
+
} | undefined) => void);
|
|
2505
|
+
removeNodes: ((args_0?: {
|
|
2506
|
+
at?: import("platejs").Path;
|
|
2507
|
+
} | undefined) => void) & ((args_0?: {
|
|
2508
|
+
at?: import("platejs").Path;
|
|
2509
|
+
} | undefined) => void);
|
|
2510
|
+
undo: (() => void) & (() => void);
|
|
2511
|
+
};
|
|
2512
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"cursorOverlay", {
|
|
2513
|
+
cursors: Record<string, import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>>;
|
|
2514
|
+
}, {
|
|
2515
|
+
cursorOverlay: {
|
|
2516
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
2517
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
2518
|
+
};
|
|
2519
|
+
} & Record<"cursorOverlay", {
|
|
2520
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
2521
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
2522
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
2523
|
+
contentRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
2524
|
+
scrollRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
2525
|
+
} & {
|
|
2526
|
+
_blockChunks: string;
|
|
2527
|
+
_blockPath: import("platejs").Path | null;
|
|
2528
|
+
_mdxName: string | null;
|
|
2529
|
+
_replaceIds: string[];
|
|
2530
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
2531
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
2532
|
+
toolName: "comment" | "edit" | "generate";
|
|
2533
|
+
comment?: {
|
|
2534
|
+
blockId: string;
|
|
2535
|
+
comment: string;
|
|
2536
|
+
content: string;
|
|
2537
|
+
};
|
|
2538
|
+
}, import("ai").UITools>>;
|
|
2539
|
+
chatNodes: import("platejs").TIdElement[];
|
|
2540
|
+
chatSelection: import("platejs").TRange | null;
|
|
2541
|
+
experimental_lastTextId: string | null;
|
|
2542
|
+
mode: import("@platejs/ai").AIMode;
|
|
2543
|
+
open: boolean;
|
|
2544
|
+
streaming: boolean;
|
|
2545
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
2546
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
2547
|
+
aiChat: {
|
|
2548
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
2549
|
+
undo?: boolean;
|
|
2550
|
+
}) => void>;
|
|
2551
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
2552
|
+
mode?: import("@platejs/ai").AIMode;
|
|
2553
|
+
options?: import("ai").ChatRequestOptions;
|
|
2554
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
2555
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
2556
|
+
}) => void>;
|
|
2557
|
+
hide: (options?: {
|
|
2558
|
+
focus?: boolean;
|
|
2559
|
+
undo?: boolean;
|
|
2560
|
+
}) => void;
|
|
2561
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
2562
|
+
anchor?: boolean;
|
|
2563
|
+
streaming?: boolean;
|
|
2564
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
2565
|
+
reload: () => void;
|
|
2566
|
+
show: () => void;
|
|
2567
|
+
stop: () => void;
|
|
2568
|
+
};
|
|
2569
|
+
} & Record<"aiChat", Pick<{
|
|
2570
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, { undo }?: {
|
|
2571
|
+
undo?: boolean;
|
|
2572
|
+
}) => void>;
|
|
2573
|
+
submit: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
2574
|
+
mode?: import("@platejs/ai").AIMode;
|
|
2575
|
+
options?: import("ai").ChatRequestOptions;
|
|
2576
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
2577
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
2578
|
+
}) => void>;
|
|
2579
|
+
hide: (options?: {
|
|
2580
|
+
focus?: boolean;
|
|
2581
|
+
undo?: boolean;
|
|
2582
|
+
}) => void;
|
|
2583
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
2584
|
+
anchor?: boolean;
|
|
2585
|
+
streaming?: boolean;
|
|
2586
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
2587
|
+
reload: () => void;
|
|
2588
|
+
show: () => void;
|
|
2589
|
+
stop: () => void;
|
|
2590
|
+
}, "stop" | "node" | "reset" | "submit">> & Record<"aiChat", {
|
|
2591
|
+
hide: ({ focus, undo }?: {
|
|
2592
|
+
focus?: boolean;
|
|
2593
|
+
undo?: boolean;
|
|
2594
|
+
}) => void;
|
|
2595
|
+
show: () => void;
|
|
2596
|
+
}>, {
|
|
2597
|
+
aiChat: {
|
|
2598
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => void>;
|
|
2599
|
+
insertBelow: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
2600
|
+
format?: "all" | "none" | "single";
|
|
2601
|
+
}) => void>;
|
|
2602
|
+
replaceSelection: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
2603
|
+
format?: "all" | "none" | "single";
|
|
2604
|
+
}) => void>;
|
|
2605
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
2606
|
+
};
|
|
2607
|
+
} & Record<"aiChat", {
|
|
2608
|
+
accept: () => void;
|
|
2609
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
2610
|
+
format?: "all" | "none" | "single";
|
|
2611
|
+
} | undefined) => void;
|
|
2612
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
2613
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
2614
|
+
format?: "all" | "none" | "single";
|
|
2615
|
+
} | undefined) => void;
|
|
2616
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"panel", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"textSubstitution", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
|
|
2617
|
+
toggle: () => void;
|
|
2618
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
2619
|
+
toggle: () => void;
|
|
2620
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"dnd", {
|
|
2621
|
+
_isOver?: boolean;
|
|
2622
|
+
draggingId?: string[] | string | null;
|
|
2623
|
+
dropTarget?: {
|
|
2624
|
+
id: string | null;
|
|
2625
|
+
line: import("@platejs/dnd").DropLineDirection;
|
|
2626
|
+
};
|
|
2627
|
+
enableScroller?: boolean;
|
|
2628
|
+
isDragging?: boolean;
|
|
2629
|
+
multiplePreviewRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
2630
|
+
scrollerProps?: Partial<import("@platejs/dnd").ScrollerProps>;
|
|
2631
|
+
onDropFiles?: (props: {
|
|
2632
|
+
id: string;
|
|
2633
|
+
dragItem: import("@platejs/dnd").FileDragItemNode;
|
|
2634
|
+
editor: import("platejs/react").PlateEditor;
|
|
2635
|
+
monitor: import("react-dnd").DropTargetMonitor<import("@platejs/dnd").DragItemNode, unknown>;
|
|
2636
|
+
nodeRef: any;
|
|
2637
|
+
target?: import("platejs").Path;
|
|
2638
|
+
}) => void;
|
|
2639
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockPlaceholder", {
|
|
2640
|
+
_target: {
|
|
2641
|
+
node: import("platejs").TElement;
|
|
2642
|
+
placeholder: string;
|
|
2643
|
+
} | null;
|
|
2644
|
+
placeholders: Record<string, string>;
|
|
2645
|
+
query: (context: import("platejs/react").PlatePluginContext<import("platejs/react").BlockPlaceholderConfig> & {
|
|
2646
|
+
node: import("platejs").TElement;
|
|
2647
|
+
path: import("platejs").Path;
|
|
2648
|
+
}) => boolean;
|
|
2649
|
+
className?: string;
|
|
2650
|
+
}, {}, {}, {
|
|
2651
|
+
placeholder: (node: import("platejs").TElement) => string | undefined;
|
|
2652
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"callout", {}, {}, {
|
|
2653
|
+
insert: {
|
|
2654
|
+
callout: (args_0?: ({
|
|
2655
|
+
batchDirty?: boolean;
|
|
2656
|
+
hanging?: boolean;
|
|
2657
|
+
nextBlock?: boolean;
|
|
2658
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
2659
|
+
select?: boolean;
|
|
2660
|
+
} & {
|
|
2661
|
+
id?: boolean | string;
|
|
2662
|
+
block?: boolean;
|
|
2663
|
+
empty?: boolean;
|
|
2664
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
2665
|
+
text?: boolean;
|
|
2666
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
2667
|
+
icon?: string;
|
|
2668
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
2669
|
+
}) | undefined) => void;
|
|
2670
|
+
};
|
|
2671
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"caretPlacement", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_block", {
|
|
2672
|
+
defaultLanguage?: string | null;
|
|
2673
|
+
lowlight?: ReturnType<typeof import("lowlight").createLowlight> | null;
|
|
2674
|
+
}, {}, Record<"code_block", {
|
|
2675
|
+
toggle: () => void;
|
|
2676
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column_group", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"column", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"copilot", {
|
|
2677
|
+
abortController?: AbortController | null;
|
|
2678
|
+
completion?: string | null;
|
|
2679
|
+
error?: Error | null;
|
|
2680
|
+
isLoading?: boolean;
|
|
2681
|
+
} & {
|
|
2682
|
+
completeOptions?: Partial<import("@platejs/ai/react").CompleteOptions>;
|
|
2683
|
+
debounceDelay?: number;
|
|
2684
|
+
getNextWord?: import("@platejs/ai/react").GetNextWord;
|
|
2685
|
+
renderGhostText?: (() => React.ReactNode) | null;
|
|
2686
|
+
shouldAbort?: boolean;
|
|
2687
|
+
suggestionNodeId?: string | null;
|
|
2688
|
+
suggestionText?: string | null;
|
|
2689
|
+
autoTriggerQuery?: (options: {
|
|
2690
|
+
editor: import("platejs/react").PlateEditor;
|
|
2691
|
+
}) => boolean;
|
|
2692
|
+
getPrompt?: (options: {
|
|
2693
|
+
editor: import("platejs/react").PlateEditor;
|
|
2694
|
+
}) => string;
|
|
2695
|
+
triggerQuery?: (options: {
|
|
2696
|
+
editor: import("platejs/react").PlateEditor;
|
|
2697
|
+
}) => boolean;
|
|
2698
|
+
}, {
|
|
2699
|
+
copilot: {
|
|
2700
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
2701
|
+
reject: () => false | undefined;
|
|
2702
|
+
setBlockSuggestion: (options: {
|
|
2703
|
+
text: string;
|
|
2704
|
+
id?: string;
|
|
2705
|
+
}) => void;
|
|
2706
|
+
stop: () => void;
|
|
2707
|
+
};
|
|
2708
|
+
} & Record<"copilot", Omit<{
|
|
2709
|
+
triggerSuggestion: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => Promise<false | undefined>>;
|
|
2710
|
+
reject: () => false | undefined;
|
|
2711
|
+
setBlockSuggestion: (options: {
|
|
2712
|
+
text: string;
|
|
2713
|
+
id?: string;
|
|
2714
|
+
}) => void;
|
|
2715
|
+
stop: () => void;
|
|
2716
|
+
}, "reject">> & Record<"copilot", {
|
|
2717
|
+
reject: () => false | undefined;
|
|
2718
|
+
}>, {
|
|
2719
|
+
copilot: {
|
|
2720
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
2721
|
+
acceptNextWord: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
2722
|
+
};
|
|
2723
|
+
} & Record<"copilot", {
|
|
2724
|
+
accept: () => false | undefined;
|
|
2725
|
+
acceptNextWord: () => false | undefined;
|
|
2726
|
+
}>, {
|
|
2727
|
+
isSuggested?: (id: string) => boolean;
|
|
2728
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"date", {}, {}, {
|
|
2729
|
+
insert: {
|
|
2730
|
+
date: (args_0?: ({
|
|
2731
|
+
date?: string;
|
|
2732
|
+
} & {
|
|
2733
|
+
batchDirty?: boolean;
|
|
2734
|
+
hanging?: boolean;
|
|
2735
|
+
nextBlock?: boolean;
|
|
2736
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
2737
|
+
select?: boolean;
|
|
2738
|
+
} & {
|
|
2739
|
+
id?: boolean | string;
|
|
2740
|
+
block?: boolean;
|
|
2741
|
+
empty?: boolean;
|
|
2742
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
2743
|
+
text?: boolean;
|
|
2744
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids) | undefined) => void;
|
|
2745
|
+
};
|
|
2746
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"placeholder", import("@platejs/media").MediaPlaceholderOptions & {
|
|
2747
|
+
disableEmptyPlaceholder: boolean;
|
|
2748
|
+
disableFileDrop: boolean;
|
|
2749
|
+
uploadConfig: import("@platejs/media/react").UploadConfig;
|
|
2750
|
+
uploadingFiles: Record<string, File>;
|
|
2751
|
+
error?: import("@platejs/media/react").UploadError | null;
|
|
2752
|
+
maxFileCount?: number;
|
|
2753
|
+
multiple?: boolean;
|
|
2754
|
+
}, {
|
|
2755
|
+
placeholder: import("@platejs/media/react").PlaceholderApi;
|
|
2756
|
+
} & Record<"placeholder", {
|
|
2757
|
+
addUploadingFile: (id: string, file: File) => void;
|
|
2758
|
+
getUploadingFile: (id: string) => File;
|
|
2759
|
+
removeUploadingFile: (id: string) => void;
|
|
2760
|
+
}>, {
|
|
2761
|
+
insert: {
|
|
2762
|
+
media: (files: FileList, options?: (Omit<import("platejs").InsertNodesOptions, "at"> & {
|
|
2763
|
+
at?: import("platejs").Path;
|
|
2764
|
+
}) | undefined) => any;
|
|
2765
|
+
};
|
|
2766
|
+
}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"docx", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"juice", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"emoji", {
|
|
2767
|
+
data?: import("@emoji-mart/data").EmojiMartData;
|
|
2768
|
+
createEmojiNode?: (emoji: import("@emoji-mart/data").Emoji) => any;
|
|
2769
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"emoji_input", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"exitBreak", {}, {}, Record<"exitBreak", {
|
|
2770
|
+
insert: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
2771
|
+
insertBefore: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
2772
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"a", {
|
|
2773
|
+
allowedSchemes?: string[];
|
|
2774
|
+
dangerouslySkipSanitization?: boolean;
|
|
2775
|
+
defaultLinkAttributes?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
2776
|
+
forceSubmit?: boolean;
|
|
2777
|
+
keepSelectedTextOnPaste?: boolean;
|
|
2778
|
+
rangeBeforeOptions?: import("platejs").EditorBeforeOptions;
|
|
2779
|
+
triggerFloatingLinkHotkeys?: string[] | string;
|
|
2780
|
+
getLinkUrl?: (prevUrl: string | null) => Promise<string | null>;
|
|
2781
|
+
getUrlHref?: (url: string) => string | undefined;
|
|
2782
|
+
isUrl?: (text: string) => boolean;
|
|
2783
|
+
transformInput?: (url: string) => string | undefined;
|
|
2784
|
+
} & {
|
|
2785
|
+
activeId: string | null;
|
|
2786
|
+
anchorElement: HTMLElement | null;
|
|
2787
|
+
mode: import("./plugins/link-kit").FloatingLinkMode;
|
|
2788
|
+
}, {
|
|
2789
|
+
a: {
|
|
2790
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
2791
|
+
};
|
|
2792
|
+
} & Record<"a", Partial<{
|
|
2793
|
+
show: (options?: import("./plugins/link-kit").LinkShowOptions) => void;
|
|
2794
|
+
}>>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"floating-toolbar", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"color", {}, {}, Record<"color", {
|
|
2795
|
+
addMark: (value: string) => void;
|
|
2796
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
|
|
2797
|
+
addMark: (value: string) => void;
|
|
2798
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontSize", {}, {}, Record<"fontSize", {
|
|
2799
|
+
addMark: (value: string) => void;
|
|
2800
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
|
|
2801
|
+
addMark: (value: string) => void;
|
|
2802
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"indent", {
|
|
2803
|
+
indentMax?: number;
|
|
2804
|
+
offset?: number;
|
|
2805
|
+
unit?: string;
|
|
2806
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"list", {
|
|
2807
|
+
getSiblingListOptions?: import("@platejs/list").GetSiblingListOptions<import("platejs").TElement>;
|
|
2808
|
+
getListStyleType?: (element: HTMLElement) => import("@platejs/list").ListStyleType;
|
|
2809
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"inline_equation", {}, {}, {
|
|
2810
|
+
insert: {
|
|
2811
|
+
inlineEquation: (texExpression?: string | undefined, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
2812
|
+
};
|
|
2813
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"equation", {}, {}, {
|
|
2814
|
+
insert: {
|
|
2815
|
+
equation: (options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
2816
|
+
};
|
|
2817
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"img", {
|
|
2818
|
+
disableEmbedInsert?: boolean;
|
|
2819
|
+
disableUploadInsert?: boolean;
|
|
2820
|
+
uploadImage?: (dataUrl: ArrayBuffer | string) => ArrayBuffer | Promise<ArrayBuffer | string> | string;
|
|
2821
|
+
} & import("@platejs/media").MediaPluginOptions, {}, {
|
|
2822
|
+
insert: {
|
|
2823
|
+
imageFromFiles: (files: FileList, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
2824
|
+
};
|
|
2825
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"media_embed", import("@platejs/media").MediaPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"video", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"audio", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"file", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"caption", {
|
|
2826
|
+
focusEndPath: import("platejs").Path | null;
|
|
2827
|
+
focusStartPath: import("platejs").Path | null;
|
|
2828
|
+
query: {
|
|
2829
|
+
allow: string[];
|
|
2830
|
+
};
|
|
2831
|
+
visibleId: string | null;
|
|
2832
|
+
}, {}, {}, {
|
|
2833
|
+
isVisible?: (elementId: string) => boolean;
|
|
2834
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention", {
|
|
2835
|
+
insertSpaceAfterMention?: boolean;
|
|
2836
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {
|
|
2837
|
+
insert: {
|
|
2838
|
+
mention: (options: {
|
|
2839
|
+
search: string;
|
|
2840
|
+
value: any;
|
|
2841
|
+
key?: any;
|
|
2842
|
+
}) => void;
|
|
2843
|
+
};
|
|
2844
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention_input", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"slash_command", import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"slash_input", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"table", {
|
|
2845
|
+
_cellIndices: Record<string, {
|
|
2846
|
+
col: number;
|
|
2847
|
+
row: number;
|
|
2848
|
+
}>;
|
|
2849
|
+
_selectedCellIds: string[] | null | undefined;
|
|
2850
|
+
_selectedTableIds: string[] | null | undefined;
|
|
2851
|
+
_selectionVersion: number;
|
|
2852
|
+
selectedCells: import("platejs").TElement[] | null;
|
|
2853
|
+
selectedTables: import("platejs").TElement[] | null;
|
|
2854
|
+
disableExpandOnInsert?: boolean;
|
|
2855
|
+
disableMarginLeft?: boolean;
|
|
2856
|
+
disableMerge?: boolean;
|
|
2857
|
+
enableUnsetSingleColSize?: boolean;
|
|
2858
|
+
initialTableWidth?: number;
|
|
2859
|
+
minColumnWidth?: number;
|
|
2860
|
+
}, {
|
|
2861
|
+
create: {
|
|
2862
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
2863
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
2864
|
+
children: import("platejs").Descendant[];
|
|
2865
|
+
type: string;
|
|
2866
|
+
}>;
|
|
2867
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
2868
|
+
children: {
|
|
2869
|
+
children: import("platejs").Descendant[];
|
|
2870
|
+
type: string;
|
|
2871
|
+
}[];
|
|
2872
|
+
type: string;
|
|
2873
|
+
}>;
|
|
2874
|
+
};
|
|
2875
|
+
table: {
|
|
2876
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
2877
|
+
element: import("platejs").TTableCellElement;
|
|
2878
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2879
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
2880
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
2881
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
2882
|
+
element: import("platejs").TTableCellElement;
|
|
2883
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2884
|
+
colSizes?: number[];
|
|
2885
|
+
rowSize?: number;
|
|
2886
|
+
}) => {
|
|
2887
|
+
minHeight: number;
|
|
2888
|
+
width: number;
|
|
2889
|
+
}>;
|
|
2890
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
2891
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2892
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2893
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2894
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2895
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2896
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2897
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
2898
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
2899
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
2900
|
+
};
|
|
2901
|
+
} & {
|
|
2902
|
+
create: {
|
|
2903
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
2904
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
2905
|
+
children: import("platejs").Descendant[];
|
|
2906
|
+
type: string;
|
|
2907
|
+
}>;
|
|
2908
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
2909
|
+
children: {
|
|
2910
|
+
children: import("platejs").Descendant[];
|
|
2911
|
+
type: string;
|
|
2912
|
+
}[];
|
|
2913
|
+
type: string;
|
|
2914
|
+
}>;
|
|
2915
|
+
};
|
|
2916
|
+
table: {
|
|
2917
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
2918
|
+
element: import("platejs").TTableCellElement;
|
|
2919
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2920
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
2921
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
2922
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
2923
|
+
element: import("platejs").TTableCellElement;
|
|
2924
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
2925
|
+
colSizes?: number[];
|
|
2926
|
+
rowSize?: number;
|
|
2927
|
+
}) => {
|
|
2928
|
+
minHeight: number;
|
|
2929
|
+
width: number;
|
|
2930
|
+
}>;
|
|
2931
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
2932
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2933
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2934
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
2935
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
2936
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2937
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
2938
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
2939
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
2940
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
2941
|
+
};
|
|
2942
|
+
}, {
|
|
2943
|
+
insert: {
|
|
2944
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
2945
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2946
|
+
at?: import("platejs").Path;
|
|
2947
|
+
before?: boolean;
|
|
2948
|
+
fromCell?: import("platejs").Path;
|
|
2949
|
+
header?: boolean;
|
|
2950
|
+
select?: boolean;
|
|
2951
|
+
}) => void>;
|
|
2952
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2953
|
+
at?: import("platejs").Path;
|
|
2954
|
+
before?: boolean;
|
|
2955
|
+
fromRow?: import("platejs").Path;
|
|
2956
|
+
header?: boolean;
|
|
2957
|
+
select?: boolean;
|
|
2958
|
+
}) => void>;
|
|
2959
|
+
};
|
|
2960
|
+
remove: {
|
|
2961
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2962
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2963
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2964
|
+
};
|
|
2965
|
+
table: {
|
|
2966
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2967
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2968
|
+
};
|
|
2969
|
+
} & {
|
|
2970
|
+
insert: {
|
|
2971
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
2972
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2973
|
+
at?: import("platejs").Path;
|
|
2974
|
+
before?: boolean;
|
|
2975
|
+
fromCell?: import("platejs").Path;
|
|
2976
|
+
header?: boolean;
|
|
2977
|
+
select?: boolean;
|
|
2978
|
+
}) => void>;
|
|
2979
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
2980
|
+
at?: import("platejs").Path;
|
|
2981
|
+
before?: boolean;
|
|
2982
|
+
fromRow?: import("platejs").Path;
|
|
2983
|
+
header?: boolean;
|
|
2984
|
+
select?: boolean;
|
|
2985
|
+
}) => void>;
|
|
2986
|
+
};
|
|
2987
|
+
remove: {
|
|
2988
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2989
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2990
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2991
|
+
};
|
|
2992
|
+
table: {
|
|
2993
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2994
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
2995
|
+
};
|
|
2996
|
+
}, {
|
|
2997
|
+
cellIndices?: (id: string) => import("@platejs/table").CellIndices;
|
|
2998
|
+
isCellSelected?: (id?: string | null) => boolean;
|
|
2999
|
+
isSelectingCell?: () => boolean;
|
|
3000
|
+
selectedCell?: (id?: string | null) => import("platejs").TElement | null;
|
|
3001
|
+
selectedCellIds?: () => string[] | null;
|
|
3002
|
+
selectedCells?: () => import("platejs").TElement[] | null;
|
|
3003
|
+
selectedTableIds?: () => string[] | null;
|
|
3004
|
+
selectedTables?: () => import("platejs").TElement[] | null;
|
|
3005
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toc", {
|
|
3006
|
+
isScroll: boolean;
|
|
3007
|
+
topOffset: number;
|
|
3008
|
+
queryHeading?: (editor: import("platejs").SlateEditor) => import("@platejs/toc").Heading[];
|
|
3009
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
3010
|
+
openIds?: Set<string>;
|
|
3011
|
+
} & {
|
|
3012
|
+
toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
|
|
3013
|
+
}, {
|
|
3014
|
+
toggle: {
|
|
3015
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
3016
|
+
};
|
|
3017
|
+
}, {}, {
|
|
3018
|
+
isOpen?: (toggleId: string) => boolean;
|
|
3019
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
3020
|
+
}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"trailingBlock", {
|
|
3021
|
+
type: string;
|
|
3022
|
+
} & {
|
|
3023
|
+
insert?: (editor: import("platejs").SlateEditor, options: import("platejs").TrailingBlockInsertOptions) => void;
|
|
3024
|
+
level?: number;
|
|
3025
|
+
type?: string;
|
|
3026
|
+
} & import("platejs").QueryNodeOptions, {}, {}, {}>>;
|
|
3027
|
+
};
|
|
3028
|
+
tf: {
|
|
3029
|
+
addMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string, value: any) => void>;
|
|
3030
|
+
addMarks: import("platejs").OmitFirst<(editor: import("platejs").Editor, marks: import("platejs").EditorMarks, { remove }?: import("platejs").AddMarksOptions) => void>;
|
|
3031
|
+
deleteBackward: import("platejs").OmitFirst<(editor: import("platejs").Editor, unit?: import("platejs").TextUnit) => void>;
|
|
3032
|
+
deleteForward: import("platejs").OmitFirst<(editor: import("platejs").Editor, unit?: import("platejs").TextUnit) => void>;
|
|
3033
|
+
deleteFragment: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate").EditorFragmentDeletionOptions) => void>;
|
|
3034
|
+
duplicateNodes: import("platejs").OmitFirst<(editor: import("platejs").Editor, { block, nodes, ...options }?: import("platejs").DuplicateNodesOptions) => void>;
|
|
3035
|
+
insertBreak: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3036
|
+
removeMarks: import("platejs").OmitFirst<(editor: import("platejs").Editor, keys?: string[] | string | null, { at, shouldChange, ...options }?: import("platejs").RemoveMarksOptions) => void>;
|
|
3037
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("platejs").ResetOptions) => void>;
|
|
3038
|
+
toggleBlock: import("platejs").OmitFirst<(editor: import("platejs").Editor, type: string, { defaultType: defaultTypeProp, someOptions, wrap, ...options }?: import("platejs").ToggleBlockOptions) => void>;
|
|
3039
|
+
toggleMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string, { remove }?: import("platejs").ToggleMarkOptions) => void>;
|
|
3040
|
+
withoutNormalizing: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => boolean | void) => boolean>;
|
|
3041
|
+
escape: () => boolean | undefined;
|
|
3042
|
+
insertFragment: <N extends import("platejs").ElementOrTextIn<Value>>(fragment: N[], options?: import("platejs").InsertFragmentOptions) => void;
|
|
3043
|
+
insertNode: <N extends import("platejs").TText | import("platejs").TElement>(node: N, options?: import("platejs").InsertNodesOptions<Value> | undefined) => void;
|
|
3044
|
+
insertNodes: <N extends import("platejs").ElementOrTextIn<Value>>(nodes: N | N[], options?: import("platejs").InsertNodesOptions<Value> | undefined) => void;
|
|
3045
|
+
insertSoftBreak: () => void;
|
|
3046
|
+
liftNodes: (options?: import("platejs").LiftNodesOptions<Value> | undefined) => void;
|
|
3047
|
+
mergeNodes: (options?: import("platejs").MergeNodesOptions<Value, import("platejs").Editor<Value>> | undefined) => void;
|
|
3048
|
+
moveLine: (options: {
|
|
3049
|
+
reverse: boolean;
|
|
3050
|
+
}) => boolean | undefined;
|
|
3051
|
+
moveNodes: (options: import("platejs").MoveNodesOptions<Value>) => boolean | void;
|
|
3052
|
+
normalize: (options?: import("platejs").EditorNormalizeOptions) => void;
|
|
3053
|
+
redo: () => void;
|
|
3054
|
+
removeMark: (key: string) => void;
|
|
3055
|
+
removeNodes: (options?: import("platejs").RemoveNodesOptions<Value> | undefined) => void;
|
|
3056
|
+
replaceNodes: <N extends import("platejs").ElementOrTextIn<Value>>(nodes: N | N[], options?: import("platejs").ReplaceNodesOptions<Value> | undefined) => void;
|
|
3057
|
+
selectAll: () => boolean | undefined;
|
|
3058
|
+
setNodes: <N extends import("platejs").TText | import("platejs").TElement>(props: Partial<import("platejs").NodeProps<N>>, options?: import("platejs").SetNodesOptions<Value> | undefined) => void;
|
|
3059
|
+
setChildren: (children: Value) => void;
|
|
3060
|
+
setNodesBatch: <N extends import("platejs").TText | import("platejs").TElement>(updates: import("platejs").NodeBatchUpdate<N>[]) => void;
|
|
3061
|
+
splitNodes: (options?: import("platejs").SplitNodesOptions<Value> | undefined) => void;
|
|
3062
|
+
tab: (options: {
|
|
3063
|
+
reverse: boolean;
|
|
3064
|
+
}) => boolean | undefined;
|
|
3065
|
+
undo: () => void;
|
|
3066
|
+
unsetNodes: <N extends import("platejs").TText | import("platejs").TElement>(props: keyof import("platejs").NodeProps<N> | (keyof import("platejs").NodeProps<N>)[], options?: import("platejs").UnsetNodesOptions<Value> | undefined) => void;
|
|
3067
|
+
unwrapNodes: (options?: import("platejs").UnwrapNodesOptions<Value> | undefined) => void;
|
|
3068
|
+
wrapNodes: <N extends import("platejs").TElement>(element: N, options?: import("platejs").WrapNodesOptions<Value> | undefined) => void;
|
|
3069
|
+
writeHistory: (stack: "redos" | "undos", batch: any) => void;
|
|
3070
|
+
} & {
|
|
3071
|
+
delete: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, options?: import("platejs").DeleteTextOptions) => void)>;
|
|
3072
|
+
insertText: (text: string, options?: import("platejs").InsertTextOptions) => void;
|
|
3073
|
+
} & {
|
|
3074
|
+
collapse: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate/dist/interfaces/transforms/selection").SelectionCollapseOptions) => void>;
|
|
3075
|
+
move: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate/dist/interfaces/transforms/selection").SelectionMoveOptions) => void>;
|
|
3076
|
+
select: import("platejs").OmitFirst<(editor: import("platejs").Editor, target?: import("platejs").At, options?: import("platejs").SelectOptions) => void>;
|
|
3077
|
+
setPoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, props: Partial<import("platejs").Point>, options?: import("slate/dist/interfaces/transforms/selection").SelectionSetPointOptions) => void>;
|
|
3078
|
+
setSelection: import("platejs").OmitFirst<(editor: import("platejs").Editor, props: Partial<import("platejs").TRange>) => void>;
|
|
3079
|
+
deselect: () => void;
|
|
3080
|
+
} & {
|
|
3081
|
+
blur: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3082
|
+
deselectDOM: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3083
|
+
focus: import("platejs").OmitFirst<(editor: import("platejs").Editor, { at, edge, retries }?: import("platejs").FocusOptions) => void>;
|
|
3084
|
+
insertData: import("slate-dom").DOMEditor["insertData"];
|
|
3085
|
+
insertFragmentData: import("slate-dom").DOMEditor["insertFragmentData"];
|
|
3086
|
+
insertTextData: import("slate-dom").DOMEditor["insertTextData"];
|
|
3087
|
+
setFragmentData: import("slate-dom").DOMEditor["setFragmentData"];
|
|
3088
|
+
} & {
|
|
3089
|
+
setSplittingOnce: import("platejs").OmitFirst<(editor: import("platejs").Editor, value: boolean | undefined) => void>;
|
|
3090
|
+
withMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3091
|
+
withNewBatch: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3092
|
+
withoutMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3093
|
+
withoutSaving: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3094
|
+
} & {
|
|
3095
|
+
apply: <N extends import("platejs").TText | import("platejs").TElement>(operation: import("platejs").Operation<N>) => void;
|
|
3096
|
+
normalizeNode: <N extends import("platejs").NodeIn<Value>>(entry: import("platejs").NodeEntry<N>, options?: {
|
|
3097
|
+
operation?: import("platejs").Operation;
|
|
3098
|
+
}) => void;
|
|
3099
|
+
} & {
|
|
3100
|
+
init: ((args_0: import("platejs").InitOptions) => void) & ((args_0: import("platejs").InitOptions) => void);
|
|
3101
|
+
insertExitBreak: ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined);
|
|
3102
|
+
liftBlock: ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined) & ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined);
|
|
3103
|
+
resetBlock: ((args_0?: {
|
|
3104
|
+
at?: import("platejs").Path;
|
|
3105
|
+
} | undefined) => true | undefined) & ((args_0?: {
|
|
3106
|
+
at?: import("platejs").Path;
|
|
3107
|
+
} | undefined) => true | undefined);
|
|
3108
|
+
setValue: ((value?: string | Value | undefined) => void) & ((value?: string | Value | undefined) => void);
|
|
3109
|
+
apply: <N$1 extends import("platejs").TElement | import("platejs").TText>(operation: import("platejs").Operation<N$1>) => void;
|
|
3110
|
+
} & {
|
|
3111
|
+
withScrolling: (fn: () => void, options?: import("platejs").WithAutoScrollOptions | undefined) => void;
|
|
3112
|
+
} & {
|
|
3113
|
+
navigation: {
|
|
3114
|
+
clear: () => void;
|
|
3115
|
+
flashTarget: (options: import("platejs").NavigationFlashTargetOptions) => boolean;
|
|
3116
|
+
navigate: (options: import("platejs").NavigationNavigateOptions) => boolean;
|
|
3117
|
+
};
|
|
3118
|
+
} & {
|
|
3119
|
+
nodeId: {
|
|
3120
|
+
normalize: () => void;
|
|
3121
|
+
};
|
|
3122
|
+
} & Record<"nodeId", {
|
|
3123
|
+
normalize(): void;
|
|
3124
|
+
}> & {
|
|
3125
|
+
reset: (options: import("platejs").ResetOptions | undefined) => void;
|
|
3126
|
+
init: ((args_0: import("platejs").InitOptions) => void) & ((args_0: import("platejs").InitOptions) => void);
|
|
3127
|
+
insertExitBreak: ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined);
|
|
3128
|
+
liftBlock: ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined) & ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined);
|
|
3129
|
+
resetBlock: ((args_0?: {
|
|
3130
|
+
at?: import("platejs").Path;
|
|
3131
|
+
} | undefined) => true | undefined) & ((args_0?: {
|
|
3132
|
+
at?: import("platejs").Path;
|
|
3133
|
+
} | undefined) => true | undefined);
|
|
3134
|
+
setValue: ((value?: string | Value | undefined) => void) & ((value?: string | Value | undefined) => void);
|
|
3135
|
+
apply: <N$1 extends import("platejs").TElement | import("platejs").TText>(operation: import("platejs").Operation<N$1>) => void;
|
|
3136
|
+
} & Record<"bold", {
|
|
3137
|
+
toggle: () => void;
|
|
3138
|
+
}> & Record<"italic", {
|
|
3139
|
+
toggle: () => void;
|
|
3140
|
+
}> & Record<"underline", {
|
|
3141
|
+
toggle: () => void;
|
|
3142
|
+
}> & Record<"code", {
|
|
3143
|
+
toggle: () => void;
|
|
3144
|
+
}> & Record<"strikethrough", {
|
|
3145
|
+
toggle: () => void;
|
|
3146
|
+
}> & Record<"subscript", {
|
|
3147
|
+
toggle: () => void;
|
|
3148
|
+
}> & Record<"superscript", {
|
|
3149
|
+
toggle: () => void;
|
|
3150
|
+
}> & Record<"kbd", {
|
|
3151
|
+
toggle: () => void;
|
|
3152
|
+
}> & Record<any, {
|
|
3153
|
+
toggle: () => void;
|
|
3154
|
+
}> & Record<"blockquote", {
|
|
3155
|
+
toggle: () => void;
|
|
3156
|
+
}> & {
|
|
3157
|
+
insert: {
|
|
3158
|
+
callout: (args_0?: ({
|
|
3159
|
+
batchDirty?: boolean;
|
|
3160
|
+
hanging?: boolean;
|
|
3161
|
+
nextBlock?: boolean;
|
|
3162
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
3163
|
+
select?: boolean;
|
|
3164
|
+
} & {
|
|
3165
|
+
id?: boolean | string;
|
|
3166
|
+
block?: boolean;
|
|
3167
|
+
empty?: boolean;
|
|
3168
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
3169
|
+
text?: boolean;
|
|
3170
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
3171
|
+
icon?: string;
|
|
3172
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
3173
|
+
}) | undefined) => void;
|
|
3174
|
+
};
|
|
3175
|
+
} & Record<"code_block", {
|
|
3176
|
+
toggle: () => void;
|
|
3177
|
+
}> & {
|
|
3178
|
+
insert: {
|
|
3179
|
+
date: (args_0?: ({
|
|
3180
|
+
date?: string;
|
|
3181
|
+
} & {
|
|
3182
|
+
batchDirty?: boolean;
|
|
3183
|
+
hanging?: boolean;
|
|
3184
|
+
nextBlock?: boolean;
|
|
3185
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
3186
|
+
select?: boolean;
|
|
3187
|
+
} & {
|
|
3188
|
+
id?: boolean | string;
|
|
3189
|
+
block?: boolean;
|
|
3190
|
+
empty?: boolean;
|
|
3191
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
3192
|
+
text?: boolean;
|
|
3193
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids) | undefined) => void;
|
|
3194
|
+
};
|
|
3195
|
+
} & {
|
|
3196
|
+
insert: {
|
|
3197
|
+
media: (files: FileList, options?: (Omit<import("platejs").InsertNodesOptions, "at"> & {
|
|
3198
|
+
at?: import("platejs").Path;
|
|
3199
|
+
}) | undefined) => any;
|
|
3200
|
+
};
|
|
3201
|
+
} & Record<"exitBreak", {
|
|
3202
|
+
insert: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
3203
|
+
insertBefore: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
3204
|
+
}> & Record<"color", {
|
|
3205
|
+
addMark: (value: string) => void;
|
|
3206
|
+
}> & Record<"backgroundColor", {
|
|
3207
|
+
addMark: (value: string) => void;
|
|
3208
|
+
}> & Record<"fontSize", {
|
|
3209
|
+
addMark: (value: string) => void;
|
|
3210
|
+
}> & Record<"fontFamily", {
|
|
3211
|
+
addMark: (value: string) => void;
|
|
3212
|
+
}> & {
|
|
3213
|
+
insert: {
|
|
3214
|
+
inlineEquation: (texExpression?: string | undefined, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
3215
|
+
};
|
|
3216
|
+
} & {
|
|
3217
|
+
insert: {
|
|
3218
|
+
equation: (options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
3219
|
+
};
|
|
3220
|
+
} & {
|
|
3221
|
+
insert: {
|
|
3222
|
+
imageFromFiles: (files: FileList, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
3223
|
+
};
|
|
3224
|
+
} & {
|
|
3225
|
+
insert: {
|
|
3226
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
3227
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3228
|
+
at?: import("platejs").Path;
|
|
3229
|
+
before?: boolean;
|
|
3230
|
+
fromCell?: import("platejs").Path;
|
|
3231
|
+
header?: boolean;
|
|
3232
|
+
select?: boolean;
|
|
3233
|
+
}) => void>;
|
|
3234
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3235
|
+
at?: import("platejs").Path;
|
|
3236
|
+
before?: boolean;
|
|
3237
|
+
fromRow?: import("platejs").Path;
|
|
3238
|
+
header?: boolean;
|
|
3239
|
+
select?: boolean;
|
|
3240
|
+
}) => void>;
|
|
3241
|
+
};
|
|
3242
|
+
remove: {
|
|
3243
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3244
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3245
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3246
|
+
};
|
|
3247
|
+
table: {
|
|
3248
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3249
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3250
|
+
};
|
|
3251
|
+
} & {
|
|
3252
|
+
insert: {
|
|
3253
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
3254
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3255
|
+
at?: import("platejs").Path;
|
|
3256
|
+
before?: boolean;
|
|
3257
|
+
fromCell?: import("platejs").Path;
|
|
3258
|
+
header?: boolean;
|
|
3259
|
+
select?: boolean;
|
|
3260
|
+
}) => void>;
|
|
3261
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3262
|
+
at?: import("platejs").Path;
|
|
3263
|
+
before?: boolean;
|
|
3264
|
+
fromRow?: import("platejs").Path;
|
|
3265
|
+
header?: boolean;
|
|
3266
|
+
select?: boolean;
|
|
3267
|
+
}) => void>;
|
|
3268
|
+
};
|
|
3269
|
+
remove: {
|
|
3270
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3271
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3272
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3273
|
+
};
|
|
3274
|
+
table: {
|
|
3275
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3276
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3277
|
+
};
|
|
3278
|
+
} & {
|
|
3279
|
+
comment: {
|
|
3280
|
+
removeMark: () => void;
|
|
3281
|
+
setDraft: (options?: import("platejs").SetNodesOptions) => void;
|
|
3282
|
+
unsetMark: (options: {
|
|
3283
|
+
id?: string;
|
|
3284
|
+
transient?: boolean;
|
|
3285
|
+
}) => void;
|
|
3286
|
+
};
|
|
3287
|
+
} & Record<"comment", {
|
|
3288
|
+
setDraft: () => void;
|
|
3289
|
+
}> & Record<"blockSelection", {
|
|
3290
|
+
duplicate: () => void;
|
|
3291
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
3292
|
+
at: import("platejs").Path;
|
|
3293
|
+
insertedCallback?: () => void;
|
|
3294
|
+
}) => void;
|
|
3295
|
+
removeNodes: () => void;
|
|
3296
|
+
select: () => void;
|
|
3297
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
3298
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
3299
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
3300
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
3301
|
+
}> & {
|
|
3302
|
+
aiChat: {
|
|
3303
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => void>;
|
|
3304
|
+
insertBelow: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
3305
|
+
format?: "all" | "none" | "single";
|
|
3306
|
+
}) => void>;
|
|
3307
|
+
replaceSelection: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
3308
|
+
format?: "all" | "none" | "single";
|
|
3309
|
+
}) => void>;
|
|
3310
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
3311
|
+
};
|
|
3312
|
+
} & Record<"aiChat", {
|
|
3313
|
+
accept: () => void;
|
|
3314
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
3315
|
+
format?: "all" | "none" | "single";
|
|
3316
|
+
} | undefined) => void;
|
|
3317
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
3318
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
3319
|
+
format?: "all" | "none" | "single";
|
|
3320
|
+
} | undefined) => void;
|
|
3321
|
+
}> & {
|
|
3322
|
+
ai: {
|
|
3323
|
+
acceptPreview: ((_value?: Value | undefined) => boolean) & ((_value?: Value | undefined) => boolean);
|
|
3324
|
+
beginPreview: ((args_0?: {
|
|
3325
|
+
originalBlocks?: Value;
|
|
3326
|
+
} | undefined) => boolean) & ((args_0?: {
|
|
3327
|
+
originalBlocks?: Value;
|
|
3328
|
+
} | undefined) => boolean);
|
|
3329
|
+
cancelPreview: (() => boolean) & (() => boolean);
|
|
3330
|
+
discardPreview: (() => boolean) & (() => boolean);
|
|
3331
|
+
hasPreview: (() => boolean) & (() => boolean);
|
|
3332
|
+
insertNodes: ((nodes: import("platejs").Descendant[], args_1?: {
|
|
3333
|
+
target?: import("platejs").Path;
|
|
3334
|
+
} | undefined) => void) & ((nodes: import("platejs").Descendant[], args_1?: {
|
|
3335
|
+
target?: import("platejs").Path;
|
|
3336
|
+
} | undefined) => void);
|
|
3337
|
+
removeMarks: ((args_0?: {
|
|
3338
|
+
at?: import("platejs").TLocation;
|
|
3339
|
+
} | undefined) => void) & ((args_0?: {
|
|
3340
|
+
at?: import("platejs").TLocation;
|
|
3341
|
+
} | undefined) => void);
|
|
3342
|
+
removeNodes: ((args_0?: {
|
|
3343
|
+
at?: import("platejs").Path;
|
|
3344
|
+
} | undefined) => void) & ((args_0?: {
|
|
3345
|
+
at?: import("platejs").Path;
|
|
3346
|
+
} | undefined) => void);
|
|
3347
|
+
undo: (() => void) & (() => void);
|
|
3348
|
+
};
|
|
3349
|
+
} & {
|
|
3350
|
+
copilot: {
|
|
3351
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
3352
|
+
acceptNextWord: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
3353
|
+
};
|
|
3354
|
+
} & Record<"copilot", {
|
|
3355
|
+
accept: () => false | undefined;
|
|
3356
|
+
acceptNextWord: () => false | undefined;
|
|
3357
|
+
}> & {
|
|
3358
|
+
insert: {
|
|
3359
|
+
mention: (options: {
|
|
3360
|
+
search: string;
|
|
3361
|
+
value: any;
|
|
3362
|
+
key?: any;
|
|
3363
|
+
}) => void;
|
|
3364
|
+
};
|
|
3365
|
+
};
|
|
3366
|
+
transforms: {
|
|
3367
|
+
addMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string, value: any) => void>;
|
|
3368
|
+
addMarks: import("platejs").OmitFirst<(editor: import("platejs").Editor, marks: import("platejs").EditorMarks, { remove }?: import("platejs").AddMarksOptions) => void>;
|
|
3369
|
+
deleteBackward: import("platejs").OmitFirst<(editor: import("platejs").Editor, unit?: import("platejs").TextUnit) => void>;
|
|
3370
|
+
deleteForward: import("platejs").OmitFirst<(editor: import("platejs").Editor, unit?: import("platejs").TextUnit) => void>;
|
|
3371
|
+
deleteFragment: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate").EditorFragmentDeletionOptions) => void>;
|
|
3372
|
+
duplicateNodes: import("platejs").OmitFirst<(editor: import("platejs").Editor, { block, nodes, ...options }?: import("platejs").DuplicateNodesOptions) => void>;
|
|
3373
|
+
insertBreak: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3374
|
+
removeMarks: import("platejs").OmitFirst<(editor: import("platejs").Editor, keys?: string[] | string | null, { at, shouldChange, ...options }?: import("platejs").RemoveMarksOptions) => void>;
|
|
3375
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("platejs").ResetOptions) => void>;
|
|
3376
|
+
toggleBlock: import("platejs").OmitFirst<(editor: import("platejs").Editor, type: string, { defaultType: defaultTypeProp, someOptions, wrap, ...options }?: import("platejs").ToggleBlockOptions) => void>;
|
|
3377
|
+
toggleMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string, { remove }?: import("platejs").ToggleMarkOptions) => void>;
|
|
3378
|
+
withoutNormalizing: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => boolean | void) => boolean>;
|
|
3379
|
+
escape: () => boolean | undefined;
|
|
3380
|
+
insertFragment: <N extends import("platejs").ElementOrTextIn<Value>>(fragment: N[], options?: import("platejs").InsertFragmentOptions) => void;
|
|
3381
|
+
insertNode: <N extends import("platejs").TText | import("platejs").TElement>(node: N, options?: import("platejs").InsertNodesOptions<Value> | undefined) => void;
|
|
3382
|
+
insertNodes: <N extends import("platejs").ElementOrTextIn<Value>>(nodes: N | N[], options?: import("platejs").InsertNodesOptions<Value> | undefined) => void;
|
|
3383
|
+
insertSoftBreak: () => void;
|
|
3384
|
+
liftNodes: (options?: import("platejs").LiftNodesOptions<Value> | undefined) => void;
|
|
3385
|
+
mergeNodes: (options?: import("platejs").MergeNodesOptions<Value, import("platejs").Editor<Value>> | undefined) => void;
|
|
3386
|
+
moveLine: (options: {
|
|
3387
|
+
reverse: boolean;
|
|
3388
|
+
}) => boolean | undefined;
|
|
3389
|
+
moveNodes: (options: import("platejs").MoveNodesOptions<Value>) => boolean | void;
|
|
3390
|
+
normalize: (options?: import("platejs").EditorNormalizeOptions) => void;
|
|
3391
|
+
redo: () => void;
|
|
3392
|
+
removeMark: (key: string) => void;
|
|
3393
|
+
removeNodes: (options?: import("platejs").RemoveNodesOptions<Value> | undefined) => void;
|
|
3394
|
+
replaceNodes: <N extends import("platejs").ElementOrTextIn<Value>>(nodes: N | N[], options?: import("platejs").ReplaceNodesOptions<Value> | undefined) => void;
|
|
3395
|
+
selectAll: () => boolean | undefined;
|
|
3396
|
+
setNodes: <N extends import("platejs").TText | import("platejs").TElement>(props: Partial<import("platejs").NodeProps<N>>, options?: import("platejs").SetNodesOptions<Value> | undefined) => void;
|
|
3397
|
+
setChildren: (children: Value) => void;
|
|
3398
|
+
setNodesBatch: <N extends import("platejs").TText | import("platejs").TElement>(updates: import("platejs").NodeBatchUpdate<N>[]) => void;
|
|
3399
|
+
splitNodes: (options?: import("platejs").SplitNodesOptions<Value> | undefined) => void;
|
|
3400
|
+
tab: (options: {
|
|
3401
|
+
reverse: boolean;
|
|
3402
|
+
}) => boolean | undefined;
|
|
3403
|
+
undo: () => void;
|
|
3404
|
+
unsetNodes: <N extends import("platejs").TText | import("platejs").TElement>(props: keyof import("platejs").NodeProps<N> | (keyof import("platejs").NodeProps<N>)[], options?: import("platejs").UnsetNodesOptions<Value> | undefined) => void;
|
|
3405
|
+
unwrapNodes: (options?: import("platejs").UnwrapNodesOptions<Value> | undefined) => void;
|
|
3406
|
+
wrapNodes: <N extends import("platejs").TElement>(element: N, options?: import("platejs").WrapNodesOptions<Value> | undefined) => void;
|
|
3407
|
+
writeHistory: (stack: "redos" | "undos", batch: any) => void;
|
|
3408
|
+
} & {
|
|
3409
|
+
delete: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, options?: import("platejs").DeleteTextOptions) => void)>;
|
|
3410
|
+
insertText: (text: string, options?: import("platejs").InsertTextOptions) => void;
|
|
3411
|
+
} & {
|
|
3412
|
+
collapse: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate/dist/interfaces/transforms/selection").SelectionCollapseOptions) => void>;
|
|
3413
|
+
move: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate/dist/interfaces/transforms/selection").SelectionMoveOptions) => void>;
|
|
3414
|
+
select: import("platejs").OmitFirst<(editor: import("platejs").Editor, target?: import("platejs").At, options?: import("platejs").SelectOptions) => void>;
|
|
3415
|
+
setPoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, props: Partial<import("platejs").Point>, options?: import("slate/dist/interfaces/transforms/selection").SelectionSetPointOptions) => void>;
|
|
3416
|
+
setSelection: import("platejs").OmitFirst<(editor: import("platejs").Editor, props: Partial<import("platejs").TRange>) => void>;
|
|
3417
|
+
deselect: () => void;
|
|
3418
|
+
} & {
|
|
3419
|
+
blur: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3420
|
+
deselectDOM: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3421
|
+
focus: import("platejs").OmitFirst<(editor: import("platejs").Editor, { at, edge, retries }?: import("platejs").FocusOptions) => void>;
|
|
3422
|
+
insertData: import("slate-dom").DOMEditor["insertData"];
|
|
3423
|
+
insertFragmentData: import("slate-dom").DOMEditor["insertFragmentData"];
|
|
3424
|
+
insertTextData: import("slate-dom").DOMEditor["insertTextData"];
|
|
3425
|
+
setFragmentData: import("slate-dom").DOMEditor["setFragmentData"];
|
|
3426
|
+
} & {
|
|
3427
|
+
setSplittingOnce: import("platejs").OmitFirst<(editor: import("platejs").Editor, value: boolean | undefined) => void>;
|
|
3428
|
+
withMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3429
|
+
withNewBatch: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3430
|
+
withoutMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3431
|
+
withoutSaving: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3432
|
+
} & {
|
|
3433
|
+
apply: <N extends import("platejs").TText | import("platejs").TElement>(operation: import("platejs").Operation<N>) => void;
|
|
3434
|
+
normalizeNode: <N extends import("platejs").NodeIn<Value>>(entry: import("platejs").NodeEntry<N>, options?: {
|
|
3435
|
+
operation?: import("platejs").Operation;
|
|
3436
|
+
}) => void;
|
|
3437
|
+
} & {
|
|
3438
|
+
init: ((args_0: import("platejs").InitOptions) => void) & ((args_0: import("platejs").InitOptions) => void);
|
|
3439
|
+
insertExitBreak: ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined);
|
|
3440
|
+
liftBlock: ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined) & ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined);
|
|
3441
|
+
resetBlock: ((args_0?: {
|
|
3442
|
+
at?: import("platejs").Path;
|
|
3443
|
+
} | undefined) => true | undefined) & ((args_0?: {
|
|
3444
|
+
at?: import("platejs").Path;
|
|
3445
|
+
} | undefined) => true | undefined);
|
|
3446
|
+
setValue: ((value?: string | Value | undefined) => void) & ((value?: string | Value | undefined) => void);
|
|
3447
|
+
apply: <N$1 extends import("platejs").TElement | import("platejs").TText>(operation: import("platejs").Operation<N$1>) => void;
|
|
3448
|
+
} & {
|
|
3449
|
+
withScrolling: (fn: () => void, options?: import("platejs").WithAutoScrollOptions | undefined) => void;
|
|
3450
|
+
} & {
|
|
3451
|
+
navigation: {
|
|
3452
|
+
clear: () => void;
|
|
3453
|
+
flashTarget: (options: import("platejs").NavigationFlashTargetOptions) => boolean;
|
|
3454
|
+
navigate: (options: import("platejs").NavigationNavigateOptions) => boolean;
|
|
3455
|
+
};
|
|
3456
|
+
} & {
|
|
3457
|
+
nodeId: {
|
|
3458
|
+
normalize: () => void;
|
|
3459
|
+
};
|
|
3460
|
+
} & Record<"nodeId", {
|
|
3461
|
+
normalize(): void;
|
|
3462
|
+
}> & {
|
|
3463
|
+
reset: (options: import("platejs").ResetOptions | undefined) => void;
|
|
3464
|
+
init: ((args_0: import("platejs").InitOptions) => void) & ((args_0: import("platejs").InitOptions) => void);
|
|
3465
|
+
insertExitBreak: ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined);
|
|
3466
|
+
liftBlock: ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined) & ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined);
|
|
3467
|
+
resetBlock: ((args_0?: {
|
|
3468
|
+
at?: import("platejs").Path;
|
|
3469
|
+
} | undefined) => true | undefined) & ((args_0?: {
|
|
3470
|
+
at?: import("platejs").Path;
|
|
3471
|
+
} | undefined) => true | undefined);
|
|
3472
|
+
setValue: ((value?: string | Value | undefined) => void) & ((value?: string | Value | undefined) => void);
|
|
3473
|
+
apply: <N$1 extends import("platejs").TElement | import("platejs").TText>(operation: import("platejs").Operation<N$1>) => void;
|
|
3474
|
+
} & Record<"bold", {
|
|
3475
|
+
toggle: () => void;
|
|
3476
|
+
}> & Record<"italic", {
|
|
3477
|
+
toggle: () => void;
|
|
3478
|
+
}> & Record<"underline", {
|
|
3479
|
+
toggle: () => void;
|
|
3480
|
+
}> & Record<"code", {
|
|
3481
|
+
toggle: () => void;
|
|
3482
|
+
}> & Record<"strikethrough", {
|
|
3483
|
+
toggle: () => void;
|
|
3484
|
+
}> & Record<"subscript", {
|
|
3485
|
+
toggle: () => void;
|
|
3486
|
+
}> & Record<"superscript", {
|
|
3487
|
+
toggle: () => void;
|
|
3488
|
+
}> & Record<"kbd", {
|
|
3489
|
+
toggle: () => void;
|
|
3490
|
+
}> & Record<any, {
|
|
3491
|
+
toggle: () => void;
|
|
3492
|
+
}> & Record<"blockquote", {
|
|
3493
|
+
toggle: () => void;
|
|
3494
|
+
}> & {
|
|
3495
|
+
insert: {
|
|
3496
|
+
callout: (args_0?: ({
|
|
3497
|
+
batchDirty?: boolean;
|
|
3498
|
+
hanging?: boolean;
|
|
3499
|
+
nextBlock?: boolean;
|
|
3500
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
3501
|
+
select?: boolean;
|
|
3502
|
+
} & {
|
|
3503
|
+
id?: boolean | string;
|
|
3504
|
+
block?: boolean;
|
|
3505
|
+
empty?: boolean;
|
|
3506
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
3507
|
+
text?: boolean;
|
|
3508
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids & {
|
|
3509
|
+
icon?: string;
|
|
3510
|
+
variant?: (string & {}) | import("platejs").TCalloutElement["variant"];
|
|
3511
|
+
}) | undefined) => void;
|
|
3512
|
+
};
|
|
3513
|
+
} & Record<"code_block", {
|
|
3514
|
+
toggle: () => void;
|
|
3515
|
+
}> & {
|
|
3516
|
+
insert: {
|
|
3517
|
+
date: (args_0?: ({
|
|
3518
|
+
date?: string;
|
|
3519
|
+
} & {
|
|
3520
|
+
batchDirty?: boolean;
|
|
3521
|
+
hanging?: boolean;
|
|
3522
|
+
nextBlock?: boolean;
|
|
3523
|
+
removeEmpty?: import("platejs").QueryNodeOptions | boolean;
|
|
3524
|
+
select?: boolean;
|
|
3525
|
+
} & {
|
|
3526
|
+
id?: boolean | string;
|
|
3527
|
+
block?: boolean;
|
|
3528
|
+
empty?: boolean;
|
|
3529
|
+
match?: import("platejs").Predicate<import("platejs").NodeIn<Value>> | undefined;
|
|
3530
|
+
text?: boolean;
|
|
3531
|
+
} & import("platejs").QueryAt & import("platejs").QueryMode & import("platejs").QueryVoids) | undefined) => void;
|
|
3532
|
+
};
|
|
3533
|
+
} & {
|
|
3534
|
+
insert: {
|
|
3535
|
+
media: (files: FileList, options?: (Omit<import("platejs").InsertNodesOptions, "at"> & {
|
|
3536
|
+
at?: import("platejs").Path;
|
|
3537
|
+
}) | undefined) => any;
|
|
3538
|
+
};
|
|
3539
|
+
} & Record<"exitBreak", {
|
|
3540
|
+
insert: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
3541
|
+
insertBefore: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
|
|
3542
|
+
}> & Record<"color", {
|
|
3543
|
+
addMark: (value: string) => void;
|
|
3544
|
+
}> & Record<"backgroundColor", {
|
|
3545
|
+
addMark: (value: string) => void;
|
|
3546
|
+
}> & Record<"fontSize", {
|
|
3547
|
+
addMark: (value: string) => void;
|
|
3548
|
+
}> & Record<"fontFamily", {
|
|
3549
|
+
addMark: (value: string) => void;
|
|
3550
|
+
}> & {
|
|
3551
|
+
insert: {
|
|
3552
|
+
inlineEquation: (texExpression?: string | undefined, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
3553
|
+
};
|
|
3554
|
+
} & {
|
|
3555
|
+
insert: {
|
|
3556
|
+
equation: (options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
3557
|
+
};
|
|
3558
|
+
} & {
|
|
3559
|
+
insert: {
|
|
3560
|
+
imageFromFiles: (files: FileList, options?: import("platejs").InsertNodesOptions | undefined) => void;
|
|
3561
|
+
};
|
|
3562
|
+
} & {
|
|
3563
|
+
insert: {
|
|
3564
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
3565
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3566
|
+
at?: import("platejs").Path;
|
|
3567
|
+
before?: boolean;
|
|
3568
|
+
fromCell?: import("platejs").Path;
|
|
3569
|
+
header?: boolean;
|
|
3570
|
+
select?: boolean;
|
|
3571
|
+
}) => void>;
|
|
3572
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3573
|
+
at?: import("platejs").Path;
|
|
3574
|
+
before?: boolean;
|
|
3575
|
+
fromRow?: import("platejs").Path;
|
|
3576
|
+
header?: boolean;
|
|
3577
|
+
select?: boolean;
|
|
3578
|
+
}) => void>;
|
|
3579
|
+
};
|
|
3580
|
+
remove: {
|
|
3581
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3582
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3583
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3584
|
+
};
|
|
3585
|
+
table: {
|
|
3586
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3587
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3588
|
+
};
|
|
3589
|
+
} & {
|
|
3590
|
+
insert: {
|
|
3591
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
3592
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3593
|
+
at?: import("platejs").Path;
|
|
3594
|
+
before?: boolean;
|
|
3595
|
+
fromCell?: import("platejs").Path;
|
|
3596
|
+
header?: boolean;
|
|
3597
|
+
select?: boolean;
|
|
3598
|
+
}) => void>;
|
|
3599
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
3600
|
+
at?: import("platejs").Path;
|
|
3601
|
+
before?: boolean;
|
|
3602
|
+
fromRow?: import("platejs").Path;
|
|
3603
|
+
header?: boolean;
|
|
3604
|
+
select?: boolean;
|
|
3605
|
+
}) => void>;
|
|
3606
|
+
};
|
|
3607
|
+
remove: {
|
|
3608
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3609
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3610
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3611
|
+
};
|
|
3612
|
+
table: {
|
|
3613
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3614
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
3615
|
+
};
|
|
3616
|
+
} & {
|
|
3617
|
+
comment: {
|
|
3618
|
+
removeMark: () => void;
|
|
3619
|
+
setDraft: (options?: import("platejs").SetNodesOptions) => void;
|
|
3620
|
+
unsetMark: (options: {
|
|
3621
|
+
id?: string;
|
|
3622
|
+
transient?: boolean;
|
|
3623
|
+
}) => void;
|
|
3624
|
+
};
|
|
3625
|
+
} & Record<"comment", {
|
|
3626
|
+
setDraft: () => void;
|
|
3627
|
+
}> & Record<"blockSelection", {
|
|
3628
|
+
duplicate: () => void;
|
|
3629
|
+
insertBlocksAndSelect: (nodes: import("platejs").TElement[], args_1: {
|
|
3630
|
+
at: import("platejs").Path;
|
|
3631
|
+
insertedCallback?: () => void;
|
|
3632
|
+
}) => void;
|
|
3633
|
+
removeNodes: () => void;
|
|
3634
|
+
select: () => void;
|
|
3635
|
+
selectBlocks: (at: import("platejs").Path | import("platejs").TNode) => void;
|
|
3636
|
+
setIndent: (indent: number, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
3637
|
+
setNodes: (props: Partial<Omit<import("platejs").TElement, "children">>, options?: import("platejs").SetNodesOptions | undefined) => void;
|
|
3638
|
+
setTexts: (props: Partial<Omit<import("platejs").TText, "text">>, options?: Omit<import("platejs").SetNodesOptions, "at"> | undefined) => void;
|
|
3639
|
+
}> & {
|
|
3640
|
+
aiChat: {
|
|
3641
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => void>;
|
|
3642
|
+
insertBelow: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
3643
|
+
format?: "all" | "none" | "single";
|
|
3644
|
+
}) => void>;
|
|
3645
|
+
replaceSelection: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
3646
|
+
format?: "all" | "none" | "single";
|
|
3647
|
+
}) => void>;
|
|
3648
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
3649
|
+
};
|
|
3650
|
+
} & Record<"aiChat", {
|
|
3651
|
+
accept: () => void;
|
|
3652
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
3653
|
+
format?: "all" | "none" | "single";
|
|
3654
|
+
} | undefined) => void;
|
|
3655
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
3656
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
3657
|
+
format?: "all" | "none" | "single";
|
|
3658
|
+
} | undefined) => void;
|
|
3659
|
+
}> & {
|
|
3660
|
+
ai: {
|
|
3661
|
+
acceptPreview: ((_value?: Value | undefined) => boolean) & ((_value?: Value | undefined) => boolean);
|
|
3662
|
+
beginPreview: ((args_0?: {
|
|
3663
|
+
originalBlocks?: Value;
|
|
3664
|
+
} | undefined) => boolean) & ((args_0?: {
|
|
3665
|
+
originalBlocks?: Value;
|
|
3666
|
+
} | undefined) => boolean);
|
|
3667
|
+
cancelPreview: (() => boolean) & (() => boolean);
|
|
3668
|
+
discardPreview: (() => boolean) & (() => boolean);
|
|
3669
|
+
hasPreview: (() => boolean) & (() => boolean);
|
|
3670
|
+
insertNodes: ((nodes: import("platejs").Descendant[], args_1?: {
|
|
3671
|
+
target?: import("platejs").Path;
|
|
3672
|
+
} | undefined) => void) & ((nodes: import("platejs").Descendant[], args_1?: {
|
|
3673
|
+
target?: import("platejs").Path;
|
|
3674
|
+
} | undefined) => void);
|
|
3675
|
+
removeMarks: ((args_0?: {
|
|
3676
|
+
at?: import("platejs").TLocation;
|
|
3677
|
+
} | undefined) => void) & ((args_0?: {
|
|
3678
|
+
at?: import("platejs").TLocation;
|
|
3679
|
+
} | undefined) => void);
|
|
3680
|
+
removeNodes: ((args_0?: {
|
|
3681
|
+
at?: import("platejs").Path;
|
|
3682
|
+
} | undefined) => void) & ((args_0?: {
|
|
3683
|
+
at?: import("platejs").Path;
|
|
3684
|
+
} | undefined) => void);
|
|
3685
|
+
undo: (() => void) & (() => void);
|
|
3686
|
+
};
|
|
3687
|
+
} & {
|
|
3688
|
+
copilot: {
|
|
3689
|
+
accept: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
3690
|
+
acceptNextWord: import("platejs").OmitFirst<(editor: import("platejs/react").PlateEditor) => false | undefined>;
|
|
3691
|
+
};
|
|
3692
|
+
} & Record<"copilot", {
|
|
3693
|
+
accept: () => false | undefined;
|
|
3694
|
+
acceptNextWord: () => false | undefined;
|
|
3695
|
+
}> & {
|
|
3696
|
+
insert: {
|
|
3697
|
+
mention: (options: {
|
|
3698
|
+
search: string;
|
|
3699
|
+
value: any;
|
|
3700
|
+
key?: any;
|
|
3701
|
+
}) => void;
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
getApi: <C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin?: import("platejs").WithRequiredKey<C> | undefined) => {
|
|
3705
|
+
fragment: <N extends import("platejs").ElementOrTextIn<Value>>(at?: import("platejs").At | null, options?: import("platejs").EditorFragmentOptions) => N[];
|
|
3706
|
+
getDirtyPaths: <N extends import("platejs").TText | import("platejs").TElement>(operation: import("platejs").Operation<N>) => import("platejs").Path[];
|
|
3707
|
+
getFragment: (at?: import("platejs").At) => import("platejs").ElementOrTextIn<Value>[];
|
|
3708
|
+
isElementReadOnly: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
3709
|
+
isSelected: (target: import("platejs").Path | import("platejs").TRange, options?: import("platejs").EditorIsSelectedOptions) => boolean;
|
|
3710
|
+
isVoid: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
3711
|
+
markableVoid: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
3712
|
+
setNormalizing: (isNormalizing: boolean) => void;
|
|
3713
|
+
shouldMergeNodes: (prevNodeEntry: import("platejs").NodeEntry, curNodeEntry: import("platejs").NodeEntry, options?: {
|
|
3714
|
+
reverse?: boolean;
|
|
3715
|
+
}) => boolean;
|
|
3716
|
+
shouldNormalize: (options: {
|
|
3717
|
+
dirtyPaths: import("platejs").Path[];
|
|
3718
|
+
initialDirtyPathsLength: number;
|
|
3719
|
+
iteration: number;
|
|
3720
|
+
operation?: import("platejs").Operation;
|
|
3721
|
+
}) => boolean;
|
|
3722
|
+
shouldNormalizeNode: (entry: import("platejs").NodeEntry) => boolean;
|
|
3723
|
+
onChange: (options?: {
|
|
3724
|
+
operation?: import("platejs").Operation;
|
|
3725
|
+
}) => void;
|
|
3726
|
+
} & {
|
|
3727
|
+
after: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorAfterOptions) => import("slate").BasePoint | undefined>;
|
|
3728
|
+
before: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorBeforeOptions) => import("platejs").Point | undefined>;
|
|
3729
|
+
edges: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At) => [import("slate").BasePoint, import("slate").BasePoint] | undefined>;
|
|
3730
|
+
elementReadOnly: import("platejs").OmitFirst<(<E extends import("platejs").Editor = import("platejs").Editor<Value>>(editor: E, options?: import("platejs").EditorElementReadOnlyOptions) => import("slate").NodeEntry<import("slate").BaseElement> | undefined)>;
|
|
3731
|
+
end: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorEndOptions) => import("slate").BasePoint | undefined>;
|
|
3732
|
+
hasBlocks: import("platejs").OmitFirst<(editor: import("platejs").Editor, element: import("platejs").TElement) => boolean>;
|
|
3733
|
+
hasInlines: import("platejs").OmitFirst<(editor: import("platejs").Editor, element: import("platejs").TElement) => boolean>;
|
|
3734
|
+
hasMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string) => boolean>;
|
|
3735
|
+
hasTexts: import("platejs").OmitFirst<(editor: import("platejs").Editor, element: import("platejs").TElement) => boolean>;
|
|
3736
|
+
isBlock: import("platejs").OmitFirst<(editor: import("platejs").Editor, value: any) => value is import("platejs").TElement>;
|
|
3737
|
+
isEdge: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point, at: import("platejs").TLocation) => boolean>;
|
|
3738
|
+
isEmpty: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, target?: import("platejs").At | null, options?: import("platejs").EditorEmptyOptions) => boolean)>;
|
|
3739
|
+
isEnd: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point | null | undefined, at: import("platejs").TLocation) => boolean>;
|
|
3740
|
+
isNormalizing: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
3741
|
+
isStart: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point | null | undefined, at: import("platejs").TLocation) => boolean>;
|
|
3742
|
+
path: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("slate").EditorPathOptions) => import("slate").Path | undefined>;
|
|
3743
|
+
pathRef: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").Path, options?: import("slate").EditorPathRefOptions) => import("slate").PathRef>;
|
|
3744
|
+
pathRefs: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Set<import("slate").PathRef>>;
|
|
3745
|
+
point: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("slate").EditorPointOptions) => import("slate").BasePoint | undefined>;
|
|
3746
|
+
pointRef: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point, options?: import("slate").EditorPointRefOptions) => import("slate").PointRef>;
|
|
3747
|
+
pointRefs: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Set<import("slate").PointRef>>;
|
|
3748
|
+
positions: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("platejs").EditorPositionsOptions) => Generator<import("slate").BasePoint, void, undefined>>;
|
|
3749
|
+
range: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At | "before" | "start", to?: import("platejs").At | null, options?: {
|
|
3750
|
+
before?: import("platejs").EditorBeforeOptions;
|
|
3751
|
+
}) => import("platejs").TRange | undefined>;
|
|
3752
|
+
rangeRef: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange, options?: import("slate").EditorRangeRefOptions) => import("slate").RangeRef>;
|
|
3753
|
+
rangeRefs: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Set<import("slate").RangeRef>>;
|
|
3754
|
+
start: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At, options?: import("platejs").EditorStartOptions) => import("slate").BasePoint | undefined>;
|
|
3755
|
+
string: import("platejs").OmitFirst<(editor: import("platejs").Editor, at?: import("platejs").At | null, options?: import("platejs").EditorStringOptions) => string>;
|
|
3756
|
+
unhangRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange, options?: import("platejs").EditorUnhangRangeOptions) => import("platejs").TRange>;
|
|
3757
|
+
above: <N extends import("platejs").Editor<Value> | import("platejs").TElement>(options?: import("platejs").EditorAboveOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
3758
|
+
first: <N extends import("platejs").TText | import("platejs").TElement>(at: import("platejs").At) => import("platejs").NodeEntry<N> | undefined;
|
|
3759
|
+
fragment: <N extends import("platejs").ElementOrTextIn<Value>>(at: import("platejs").At) => N[] | undefined;
|
|
3760
|
+
hasPath: (path: import("platejs").Path) => boolean;
|
|
3761
|
+
last: <N extends import("platejs").TText | import("platejs").TElement>(at: import("platejs").At, options?: import("platejs").EditorLastOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
3762
|
+
leaf: <N extends import("platejs").TText>(at: import("platejs").At, options?: import("platejs").EditorLeafOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
3763
|
+
levels: <N extends import("platejs").NodeIn<Value>>(options?: import("platejs").EditorLevelsOptions<Value> | undefined) => Generator<import("platejs").NodeEntry<N>, void, undefined>;
|
|
3764
|
+
marks: () => {
|
|
3765
|
+
[x: string]: unknown;
|
|
3766
|
+
} | null;
|
|
3767
|
+
next: <N extends import("platejs").TText | import("platejs").TElement>(options?: import("platejs").EditorNextOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
3768
|
+
node: <N extends import("platejs").TText | import("platejs").TElement>(atOrOptions: import("platejs").EditorNodesOptions<Value> | import("platejs").AtOrDescendant, nodeOptions?: import("platejs").EditorNodeOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
3769
|
+
nodes: <N extends import("platejs").TText | import("platejs").TElement>(options?: import("platejs").EditorNodesOptions<Value> | undefined) => Generator<import("platejs").NodeEntry<N>, void, undefined>;
|
|
3770
|
+
parent: <N extends import("platejs").Editor<Value> | import("platejs").TElement>(at: import("platejs").At, options?: import("platejs").EditorParentOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
3771
|
+
previous: <N extends import("platejs").TText | import("platejs").TElement>(options?: import("platejs").EditorPreviousOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
3772
|
+
void: <N extends import("platejs").TElement>(options?: import("platejs").EditorVoidOptions) => import("platejs").NodeEntry<N> | undefined;
|
|
3773
|
+
} & {
|
|
3774
|
+
findDocumentOrShadowRoot: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Document | ShadowRoot | undefined>;
|
|
3775
|
+
findEventRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, event: any) => import("slate").BaseRange | undefined>;
|
|
3776
|
+
findKey: import("platejs").OmitFirst<(editor: import("platejs").Editor, node: import("platejs").TNode) => import("slate-dom").Key | undefined>;
|
|
3777
|
+
getWindow: import("platejs").OmitFirst<(editor: import("platejs").Editor) => Window | undefined>;
|
|
3778
|
+
hasDOMNode: import("platejs").OmitFirst<(editor: import("platejs").Editor, target: Node, options?: Parameters<(editor: import("slate-dom").DOMEditor, target: Node, options?: {
|
|
3779
|
+
editable?: boolean;
|
|
3780
|
+
}) => boolean>[2]) => boolean>;
|
|
3781
|
+
hasRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange) => boolean>;
|
|
3782
|
+
isComposing: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
3783
|
+
isFocused: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
3784
|
+
isReadOnly: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean>;
|
|
3785
|
+
isTargetInsideNonReadonlyVoid: import("platejs").OmitFirst<(editor: import("platejs").Editor, target: EventTarget | null) => boolean>;
|
|
3786
|
+
toDOMNode: import("platejs").OmitFirst<(editor: import("platejs").Editor, node: import("platejs").TNode) => HTMLElement | undefined>;
|
|
3787
|
+
toDOMPoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, point: import("platejs").Point) => import("slate-dom").DOMPoint | undefined>;
|
|
3788
|
+
toDOMRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, range: import("platejs").TRange) => Range | undefined>;
|
|
3789
|
+
toSlatePoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, domPoint: import("slate-dom").DOMPoint, options: Omit<Parameters<(<T extends boolean>(editor: import("slate-dom").DOMEditor, domPoint: import("slate-dom").DOMPoint, options: {
|
|
3790
|
+
exactMatch: boolean;
|
|
3791
|
+
suppressThrow: T;
|
|
3792
|
+
searchDirection?: "forward" | "backward";
|
|
3793
|
+
}) => T extends true ? import("slate").Point | null : import("slate").Point)>[2], "suppressThrow">) => import("slate").BasePoint | null | undefined>;
|
|
3794
|
+
toSlateRange: import("platejs").OmitFirst<(editor: import("platejs").Editor, domRange: Parameters<(<T extends boolean>(editor: import("slate-dom").DOMEditor, domRange: Range | StaticRange | Selection, options: {
|
|
3795
|
+
exactMatch: boolean;
|
|
3796
|
+
suppressThrow: T;
|
|
3797
|
+
}) => T extends true ? import("slate").Range | null : import("slate").Range)>[1], options: Omit<Parameters<(<T extends boolean>(editor: import("slate-dom").DOMEditor, domRange: Range | StaticRange | Selection, options: {
|
|
3798
|
+
exactMatch: boolean;
|
|
3799
|
+
suppressThrow: T;
|
|
3800
|
+
}) => T extends true ? import("slate").Range | null : import("slate").Range)>[2], "supressThrow">) => import("slate").BaseRange | null | undefined>;
|
|
3801
|
+
findPath: (node: import("platejs").TNode, options?: import("platejs").EditorFindPathOptions) => import("platejs").Path | undefined;
|
|
3802
|
+
hasEditableTarget: (target: EventTarget | null) => target is Node;
|
|
3803
|
+
hasSelectableTarget: (target: EventTarget | null) => target is Node;
|
|
3804
|
+
hasTarget: (target: EventTarget | null) => target is Node;
|
|
3805
|
+
toSlateNode: <N extends import("platejs").NodeIn<Value>>(domNode: Parameters<(editor: import("platejs").Editor, domNode: Node) => import("platejs").TNode | undefined>[1]) => N | undefined;
|
|
3806
|
+
} & {
|
|
3807
|
+
isMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean | undefined>;
|
|
3808
|
+
isSaving: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean | undefined>;
|
|
3809
|
+
isSplittingOnce: import("platejs").OmitFirst<(editor: import("platejs").Editor) => boolean | undefined>;
|
|
3810
|
+
} & {
|
|
3811
|
+
create: {
|
|
3812
|
+
block: (node?: Partial<import("platejs").TElement>, path?: import("platejs").Path) => import("platejs").TElement;
|
|
3813
|
+
value: () => Value;
|
|
3814
|
+
};
|
|
3815
|
+
isAt: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, { at, block, blocks, end, start, text, word, ...options }?: {
|
|
3816
|
+
at?: import("platejs").TLocation | null;
|
|
3817
|
+
block?: boolean;
|
|
3818
|
+
blocks?: boolean;
|
|
3819
|
+
end?: boolean;
|
|
3820
|
+
start?: boolean;
|
|
3821
|
+
text?: boolean;
|
|
3822
|
+
word?: boolean;
|
|
3823
|
+
} & Omit<import("platejs").EditorAboveOptions<import("platejs").ValueOf<E>>, "at" | "block">) => boolean)>;
|
|
3824
|
+
isText: import("platejs").OmitFirst<(editor: import("platejs").Editor, at: import("platejs").At) => boolean>;
|
|
3825
|
+
scrollIntoView: import("platejs").OmitFirst<(editor: import("platejs").Editor, target: Range | import("platejs").Point, options?: import("platejs").ScrollIntoViewOptions) => void>;
|
|
3826
|
+
some: import("platejs").OmitFirst<(<E extends import("platejs").Editor = import("platejs").Editor<Value>>(editor: E, options: import("platejs").EditorNodesOptions<import("platejs").ValueOf<E>>) => boolean)>;
|
|
3827
|
+
block: <N extends import("platejs").TElement>(options?: import("platejs").EditorBlockOptions<Value> | undefined) => import("platejs").NodeEntry<N> | undefined;
|
|
3828
|
+
blocks: <N extends import("platejs").TElement>(options?: import("platejs").EditorNodesOptions<Value> | undefined) => import("platejs").NodeEntry<N>[];
|
|
3829
|
+
descendant: <N extends import("platejs").TText | import("platejs").TElement>(options: import("platejs").EditorNodesOptions<Value>) => import("platejs").NodeEntry<N> | undefined;
|
|
3830
|
+
edgeBlocks: <N1 extends import("platejs").TElement, N2 extends import("platejs").TElement = N1>(options?: import("platejs").EditorAboveOptions<Value> | undefined) => [import("platejs").NodeEntry<N1>, import("platejs").NodeEntry<N2>] | null;
|
|
3831
|
+
isCollapsed: () => boolean;
|
|
3832
|
+
isEditorEnd: () => boolean;
|
|
3833
|
+
isExpanded: () => boolean;
|
|
3834
|
+
isInline: <N extends import("platejs").TText | import("platejs").TElement>(element: N) => boolean;
|
|
3835
|
+
isSelectable: <N extends import("platejs").TElement>(element: N) => boolean;
|
|
3836
|
+
mark: <K extends string>(key: K) => unknown;
|
|
3837
|
+
nodesRange: (nodes: import("platejs").NodeEntry[]) => import("platejs").TRange | undefined;
|
|
3838
|
+
prop: (options: import("platejs").EditorPropOptions<Value>) => string | undefined;
|
|
3839
|
+
} & {
|
|
3840
|
+
debug: {
|
|
3841
|
+
error: (message: string | unknown, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
3842
|
+
info: (message: string, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
3843
|
+
log: (message: string, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
3844
|
+
warn: (message: string, type?: import("platejs").DebugErrorType, details?: any) => void;
|
|
3845
|
+
};
|
|
3846
|
+
} & {
|
|
3847
|
+
isElementStateEmpty: (element: import("platejs").TElement) => boolean;
|
|
3848
|
+
redecorate: () => void;
|
|
3849
|
+
} & {
|
|
3850
|
+
isScrolling: () => boolean;
|
|
3851
|
+
} & {
|
|
3852
|
+
navigation: {
|
|
3853
|
+
activeTarget: () => import("platejs").NavigationFeedbackActiveTarget | null;
|
|
3854
|
+
clear: () => void;
|
|
3855
|
+
isTarget: (path: import("platejs").Path) => boolean;
|
|
3856
|
+
};
|
|
3857
|
+
} & Record<"html", {
|
|
3858
|
+
deserialize: (args_0: {
|
|
3859
|
+
element: HTMLElement | string;
|
|
3860
|
+
collapseWhiteSpace?: boolean;
|
|
3861
|
+
defaultElementPlugin?: import("platejs").WithRequiredKey;
|
|
3862
|
+
}) => import("platejs").Descendant[];
|
|
3863
|
+
}> & {
|
|
3864
|
+
redecorate: (() => void) & (() => void);
|
|
3865
|
+
isElementStateEmpty: (element: import("platejs").TElement) => boolean;
|
|
3866
|
+
} & import("platejs").InferApi<C>;
|
|
3867
|
+
getTransforms: <C extends import("platejs").AnyPluginConfig = import("platejs").PluginConfig>(plugin?: import("platejs").WithRequiredKey<C> | undefined) => {
|
|
3868
|
+
addMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string, value: any) => void>;
|
|
3869
|
+
addMarks: import("platejs").OmitFirst<(editor: import("platejs").Editor, marks: import("platejs").EditorMarks, { remove }?: import("platejs").AddMarksOptions) => void>;
|
|
3870
|
+
deleteBackward: import("platejs").OmitFirst<(editor: import("platejs").Editor, unit?: import("platejs").TextUnit) => void>;
|
|
3871
|
+
deleteForward: import("platejs").OmitFirst<(editor: import("platejs").Editor, unit?: import("platejs").TextUnit) => void>;
|
|
3872
|
+
deleteFragment: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate").EditorFragmentDeletionOptions) => void>;
|
|
3873
|
+
duplicateNodes: import("platejs").OmitFirst<(editor: import("platejs").Editor, { block, nodes, ...options }?: import("platejs").DuplicateNodesOptions) => void>;
|
|
3874
|
+
insertBreak: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3875
|
+
removeMarks: import("platejs").OmitFirst<(editor: import("platejs").Editor, keys?: string[] | string | null, { at, shouldChange, ...options }?: import("platejs").RemoveMarksOptions) => void>;
|
|
3876
|
+
reset: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("platejs").ResetOptions) => void>;
|
|
3877
|
+
toggleBlock: import("platejs").OmitFirst<(editor: import("platejs").Editor, type: string, { defaultType: defaultTypeProp, someOptions, wrap, ...options }?: import("platejs").ToggleBlockOptions) => void>;
|
|
3878
|
+
toggleMark: import("platejs").OmitFirst<(editor: import("platejs").Editor, key: string, { remove }?: import("platejs").ToggleMarkOptions) => void>;
|
|
3879
|
+
withoutNormalizing: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => boolean | void) => boolean>;
|
|
3880
|
+
escape: () => boolean | undefined;
|
|
3881
|
+
insertFragment: <N extends import("platejs").ElementOrTextIn<Value>>(fragment: N[], options?: import("platejs").InsertFragmentOptions) => void;
|
|
3882
|
+
insertNode: <N extends import("platejs").TText | import("platejs").TElement>(node: N, options?: import("platejs").InsertNodesOptions<Value> | undefined) => void;
|
|
3883
|
+
insertNodes: <N extends import("platejs").ElementOrTextIn<Value>>(nodes: N | N[], options?: import("platejs").InsertNodesOptions<Value> | undefined) => void;
|
|
3884
|
+
insertSoftBreak: () => void;
|
|
3885
|
+
liftNodes: (options?: import("platejs").LiftNodesOptions<Value> | undefined) => void;
|
|
3886
|
+
mergeNodes: (options?: import("platejs").MergeNodesOptions<Value, import("platejs").Editor<Value>> | undefined) => void;
|
|
3887
|
+
moveLine: (options: {
|
|
3888
|
+
reverse: boolean;
|
|
3889
|
+
}) => boolean | undefined;
|
|
3890
|
+
moveNodes: (options: import("platejs").MoveNodesOptions<Value>) => boolean | void;
|
|
3891
|
+
normalize: (options?: import("platejs").EditorNormalizeOptions) => void;
|
|
3892
|
+
redo: () => void;
|
|
3893
|
+
removeMark: (key: string) => void;
|
|
3894
|
+
removeNodes: (options?: import("platejs").RemoveNodesOptions<Value> | undefined) => void;
|
|
3895
|
+
replaceNodes: <N extends import("platejs").ElementOrTextIn<Value>>(nodes: N | N[], options?: import("platejs").ReplaceNodesOptions<Value> | undefined) => void;
|
|
3896
|
+
selectAll: () => boolean | undefined;
|
|
3897
|
+
setNodes: <N extends import("platejs").TText | import("platejs").TElement>(props: Partial<import("platejs").NodeProps<N>>, options?: import("platejs").SetNodesOptions<Value> | undefined) => void;
|
|
3898
|
+
setChildren: (children: Value) => void;
|
|
3899
|
+
setNodesBatch: <N extends import("platejs").TText | import("platejs").TElement>(updates: import("platejs").NodeBatchUpdate<N>[]) => void;
|
|
3900
|
+
splitNodes: (options?: import("platejs").SplitNodesOptions<Value> | undefined) => void;
|
|
3901
|
+
tab: (options: {
|
|
3902
|
+
reverse: boolean;
|
|
3903
|
+
}) => boolean | undefined;
|
|
3904
|
+
undo: () => void;
|
|
3905
|
+
unsetNodes: <N extends import("platejs").TText | import("platejs").TElement>(props: keyof import("platejs").NodeProps<N> | (keyof import("platejs").NodeProps<N>)[], options?: import("platejs").UnsetNodesOptions<Value> | undefined) => void;
|
|
3906
|
+
unwrapNodes: (options?: import("platejs").UnwrapNodesOptions<Value> | undefined) => void;
|
|
3907
|
+
wrapNodes: <N extends import("platejs").TElement>(element: N, options?: import("platejs").WrapNodesOptions<Value> | undefined) => void;
|
|
3908
|
+
writeHistory: (stack: "redos" | "undos", batch: any) => void;
|
|
3909
|
+
} & {
|
|
3910
|
+
delete: import("platejs").OmitFirst<(<E extends import("platejs").Editor>(editor: E, options?: import("platejs").DeleteTextOptions) => void)>;
|
|
3911
|
+
insertText: (text: string, options?: import("platejs").InsertTextOptions) => void;
|
|
3912
|
+
} & {
|
|
3913
|
+
collapse: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate/dist/interfaces/transforms/selection").SelectionCollapseOptions) => void>;
|
|
3914
|
+
move: import("platejs").OmitFirst<(editor: import("platejs").Editor, options?: import("slate/dist/interfaces/transforms/selection").SelectionMoveOptions) => void>;
|
|
3915
|
+
select: import("platejs").OmitFirst<(editor: import("platejs").Editor, target?: import("platejs").At, options?: import("platejs").SelectOptions) => void>;
|
|
3916
|
+
setPoint: import("platejs").OmitFirst<(editor: import("platejs").Editor, props: Partial<import("platejs").Point>, options?: import("slate/dist/interfaces/transforms/selection").SelectionSetPointOptions) => void>;
|
|
3917
|
+
setSelection: import("platejs").OmitFirst<(editor: import("platejs").Editor, props: Partial<import("platejs").TRange>) => void>;
|
|
3918
|
+
deselect: () => void;
|
|
3919
|
+
} & {
|
|
3920
|
+
blur: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3921
|
+
deselectDOM: import("platejs").OmitFirst<(editor: import("platejs").Editor) => void>;
|
|
3922
|
+
focus: import("platejs").OmitFirst<(editor: import("platejs").Editor, { at, edge, retries }?: import("platejs").FocusOptions) => void>;
|
|
3923
|
+
insertData: import("slate-dom").DOMEditor["insertData"];
|
|
3924
|
+
insertFragmentData: import("slate-dom").DOMEditor["insertFragmentData"];
|
|
3925
|
+
insertTextData: import("slate-dom").DOMEditor["insertTextData"];
|
|
3926
|
+
setFragmentData: import("slate-dom").DOMEditor["setFragmentData"];
|
|
3927
|
+
} & {
|
|
3928
|
+
setSplittingOnce: import("platejs").OmitFirst<(editor: import("platejs").Editor, value: boolean | undefined) => void>;
|
|
3929
|
+
withMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3930
|
+
withNewBatch: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3931
|
+
withoutMerging: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3932
|
+
withoutSaving: import("platejs").OmitFirst<(editor: import("platejs").Editor, fn: () => void) => void>;
|
|
3933
|
+
} & {
|
|
3934
|
+
apply: <N extends import("platejs").TText | import("platejs").TElement>(operation: import("platejs").Operation<N>) => void;
|
|
3935
|
+
normalizeNode: <N extends import("platejs").NodeIn<Value>>(entry: import("platejs").NodeEntry<N>, options?: {
|
|
3936
|
+
operation?: import("platejs").Operation;
|
|
3937
|
+
}) => void;
|
|
3938
|
+
} & {
|
|
3939
|
+
init: ((args_0: import("platejs").InitOptions) => void) & ((args_0: import("platejs").InitOptions) => void);
|
|
3940
|
+
insertExitBreak: ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined);
|
|
3941
|
+
liftBlock: ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined) & ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined);
|
|
3942
|
+
resetBlock: ((args_0?: {
|
|
3943
|
+
at?: import("platejs").Path;
|
|
3944
|
+
} | undefined) => true | undefined) & ((args_0?: {
|
|
3945
|
+
at?: import("platejs").Path;
|
|
3946
|
+
} | undefined) => true | undefined);
|
|
3947
|
+
setValue: ((value?: string | Value | undefined) => void) & ((value?: string | Value | undefined) => void);
|
|
3948
|
+
apply: <N$1 extends import("platejs").TElement | import("platejs").TText>(operation: import("platejs").Operation<N$1>) => void;
|
|
3949
|
+
} & {
|
|
3950
|
+
withScrolling: (fn: () => void, options?: import("platejs").WithAutoScrollOptions | undefined) => void;
|
|
3951
|
+
} & {
|
|
3952
|
+
navigation: {
|
|
3953
|
+
clear: () => void;
|
|
3954
|
+
flashTarget: (options: import("platejs").NavigationFlashTargetOptions) => boolean;
|
|
3955
|
+
navigate: (options: import("platejs").NavigationNavigateOptions) => boolean;
|
|
3956
|
+
};
|
|
3957
|
+
} & {
|
|
3958
|
+
nodeId: {
|
|
3959
|
+
normalize: () => void;
|
|
3960
|
+
};
|
|
3961
|
+
} & Record<"nodeId", {
|
|
3962
|
+
normalize(): void;
|
|
3963
|
+
}> & {
|
|
3964
|
+
reset: (options: import("platejs").ResetOptions | undefined) => void;
|
|
3965
|
+
init: ((args_0: import("platejs").InitOptions) => void) & ((args_0: import("platejs").InitOptions) => void);
|
|
3966
|
+
insertExitBreak: ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: import("platejs").InsertExitBreakOptions | undefined) => true | undefined);
|
|
3967
|
+
liftBlock: ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined) & ((args_0?: import("platejs").LiftBlockOptions | undefined) => true | undefined);
|
|
3968
|
+
resetBlock: ((args_0?: {
|
|
3969
|
+
at?: import("platejs").Path;
|
|
3970
|
+
} | undefined) => true | undefined) & ((args_0?: {
|
|
3971
|
+
at?: import("platejs").Path;
|
|
3972
|
+
} | undefined) => true | undefined);
|
|
3973
|
+
setValue: ((value?: string | Value | undefined) => void) & ((value?: string | Value | undefined) => void);
|
|
3974
|
+
apply: <N$1 extends import("platejs").TElement | import("platejs").TText>(operation: import("platejs").Operation<N$1>) => void;
|
|
3975
|
+
} & import("platejs").InferTransforms<C>;
|
|
3976
|
+
} & {
|
|
3977
|
+
store: import("platejs/react").PlateStore;
|
|
3978
|
+
};
|