@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,99 @@
|
|
|
1
|
+
import type { EmptyText, KEYS, PlainText, TBasicMarks, TCaptionProps, TComboboxInputElement, TCommentText, TElement, TFileElement, TFontMarks, TImageElement, TLineHeightProps, TLinkElement, TListProps, TMediaEmbedElement, TMentionElement, TResizableProps, TTableElement, TText, TTextAlignProps } from 'platejs';
|
|
2
|
+
import type { LinkReference } from '../../ui/link-reference';
|
|
3
|
+
import type { FileDisplayMode } from '../../ui/media-file-display';
|
|
4
|
+
import type { SmartLinkDisplayMode } from '../../ui/smart-link';
|
|
5
|
+
export interface MyBlockElement extends TElement, TListProps {
|
|
6
|
+
id?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Inline Elements */
|
|
9
|
+
export interface MyBlockquoteElement extends MyTextBlockElement {
|
|
10
|
+
type: typeof KEYS.blockquote;
|
|
11
|
+
}
|
|
12
|
+
export interface MyCodeBlockElement extends MyBlockElement {
|
|
13
|
+
children: MyCodeLineElement[];
|
|
14
|
+
type: typeof KEYS.codeBlock;
|
|
15
|
+
}
|
|
16
|
+
export interface MyCodeLineElement extends TElement {
|
|
17
|
+
children: PlainText[];
|
|
18
|
+
type: typeof KEYS.codeLine;
|
|
19
|
+
}
|
|
20
|
+
export interface MyH1Element extends MyTextBlockElement {
|
|
21
|
+
type: typeof KEYS.h1;
|
|
22
|
+
}
|
|
23
|
+
export interface MyH2Element extends MyTextBlockElement {
|
|
24
|
+
type: typeof KEYS.h2;
|
|
25
|
+
}
|
|
26
|
+
export interface MyH3Element extends MyTextBlockElement {
|
|
27
|
+
type: typeof KEYS.h3;
|
|
28
|
+
}
|
|
29
|
+
export interface MyHrElement extends MyBlockElement {
|
|
30
|
+
children: [EmptyText];
|
|
31
|
+
type: typeof KEYS.hr;
|
|
32
|
+
}
|
|
33
|
+
/** Block props */
|
|
34
|
+
export interface MyImageElement extends MyBlockElement, TCaptionProps, TImageElement, TResizableProps {
|
|
35
|
+
children: [EmptyText];
|
|
36
|
+
type: typeof KEYS.img;
|
|
37
|
+
}
|
|
38
|
+
export interface MyFileElement extends MyBlockElement, TCaptionProps, TFileElement, TResizableProps {
|
|
39
|
+
children: [EmptyText];
|
|
40
|
+
type: typeof KEYS.file;
|
|
41
|
+
displayMode?: FileDisplayMode;
|
|
42
|
+
}
|
|
43
|
+
export interface MyLinkElement extends Omit<TLinkElement, 'url'> {
|
|
44
|
+
id: string;
|
|
45
|
+
children: RichText[];
|
|
46
|
+
type: typeof KEYS.link;
|
|
47
|
+
displayMode?: SmartLinkDisplayMode;
|
|
48
|
+
icon?: string;
|
|
49
|
+
/** External links only. Internal targets carry `reference` instead. */
|
|
50
|
+
url?: string;
|
|
51
|
+
/** Typed identity of an internal target; persisted untrusted, parse before use. */
|
|
52
|
+
reference?: LinkReference;
|
|
53
|
+
title?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface MyMediaEmbedElement extends MyBlockElement, TCaptionProps, TMediaEmbedElement, TResizableProps {
|
|
56
|
+
children: [EmptyText];
|
|
57
|
+
type: typeof KEYS.mediaEmbed;
|
|
58
|
+
}
|
|
59
|
+
export interface MyMentionElement extends TMentionElement {
|
|
60
|
+
children: [EmptyText];
|
|
61
|
+
type: typeof KEYS.mention;
|
|
62
|
+
/** User mentions: member id. Legacy document mentions used '/{pageId}'. */
|
|
63
|
+
key?: string;
|
|
64
|
+
/** Document mentions: typed identity of the target page. */
|
|
65
|
+
reference?: LinkReference;
|
|
66
|
+
coverImage?: string;
|
|
67
|
+
displayMode?: SmartLinkDisplayMode;
|
|
68
|
+
icon?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface MyMentionInputElement extends TComboboxInputElement {
|
|
71
|
+
children: [PlainText];
|
|
72
|
+
type: typeof KEYS.mentionInput;
|
|
73
|
+
}
|
|
74
|
+
export type MyNestableBlock = MyParagraphElement;
|
|
75
|
+
export interface MyParagraphElement extends MyTextBlockElement {
|
|
76
|
+
type: typeof KEYS.p;
|
|
77
|
+
}
|
|
78
|
+
export interface MyTableCellElement extends TElement {
|
|
79
|
+
children: MyNestableBlock[];
|
|
80
|
+
type: typeof KEYS.td;
|
|
81
|
+
}
|
|
82
|
+
export interface MyTableElement extends MyBlockElement, TTableElement {
|
|
83
|
+
children: MyTableRowElement[];
|
|
84
|
+
type: typeof KEYS.table;
|
|
85
|
+
}
|
|
86
|
+
export interface MyTableRowElement extends TElement {
|
|
87
|
+
children: MyTableCellElement[];
|
|
88
|
+
type: typeof KEYS.tr;
|
|
89
|
+
}
|
|
90
|
+
export interface MyTextBlockElement extends TElement, TLineHeightProps, TTextAlignProps {
|
|
91
|
+
children: (MyLinkElement | MyMentionElement | MyMentionInputElement | RichText)[];
|
|
92
|
+
}
|
|
93
|
+
export interface MyToggleElement extends MyTextBlockElement {
|
|
94
|
+
type: typeof KEYS.toggle;
|
|
95
|
+
}
|
|
96
|
+
export type MyValue = (MyBlockquoteElement | MyCodeBlockElement | MyH1Element | MyH2Element | MyH3Element | MyHrElement | MyImageElement | MyFileElement | MyMediaEmbedElement | MyParagraphElement | MyTableElement | MyToggleElement)[];
|
|
97
|
+
export interface RichText extends TBasicMarks, TCommentText, TFontMarks, TText {
|
|
98
|
+
kbd?: boolean;
|
|
99
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const AccordionGroupPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"accordion_group", {}, {}, {}, {}>>;
|
|
2
|
+
export declare const BaseAccordionGroupKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"accordion_group", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { TAccordionElement, TAccordionGroupElement } from './accordion-types';
|
|
2
|
+
export declare const AccordionGroupPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"accordion_group", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const AccordionGroupKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"accordion_group", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TElement } from 'platejs';
|
|
2
|
+
export interface TAccordionElement extends TElement {
|
|
3
|
+
type: 'toggle';
|
|
4
|
+
id: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface TAccordionGroupElement extends TElement {
|
|
10
|
+
type: 'accordion_group';
|
|
11
|
+
id: string;
|
|
12
|
+
allowMultiple?: boolean;
|
|
13
|
+
children: TAccordionElement[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { type PlateEditor } from 'platejs/react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
4
|
+
contentRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
5
|
+
scrollRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
6
|
+
} & {
|
|
7
|
+
_blockChunks: string;
|
|
8
|
+
_blockPath: import("platejs").Path | null;
|
|
9
|
+
_mdxName: string | null;
|
|
10
|
+
_replaceIds: string[];
|
|
11
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
12
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
13
|
+
toolName: "comment" | "edit" | "generate";
|
|
14
|
+
comment?: {
|
|
15
|
+
blockId: string;
|
|
16
|
+
comment: string;
|
|
17
|
+
content: string;
|
|
18
|
+
};
|
|
19
|
+
}, import("ai").UITools>>;
|
|
20
|
+
chatNodes: import("platejs").TIdElement[];
|
|
21
|
+
chatSelection: import("platejs").TRange | null;
|
|
22
|
+
experimental_lastTextId: string | null;
|
|
23
|
+
mode: import("@platejs/ai").AIMode;
|
|
24
|
+
open: boolean;
|
|
25
|
+
streaming: boolean;
|
|
26
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
27
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
28
|
+
aiChat: {
|
|
29
|
+
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
30
|
+
undo?: boolean;
|
|
31
|
+
}) => void>;
|
|
32
|
+
submit: import("platejs").OmitFirst<(editor: PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
33
|
+
mode?: import("@platejs/ai").AIMode;
|
|
34
|
+
options?: import("ai").ChatRequestOptions;
|
|
35
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
36
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
37
|
+
}) => void>;
|
|
38
|
+
hide: (options?: {
|
|
39
|
+
focus?: boolean;
|
|
40
|
+
undo?: boolean;
|
|
41
|
+
}) => void;
|
|
42
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
43
|
+
anchor?: boolean;
|
|
44
|
+
streaming?: boolean;
|
|
45
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
46
|
+
reload: () => void;
|
|
47
|
+
show: () => void;
|
|
48
|
+
stop: () => void;
|
|
49
|
+
};
|
|
50
|
+
} & Record<"aiChat", Pick<{
|
|
51
|
+
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
52
|
+
undo?: boolean;
|
|
53
|
+
}) => void>;
|
|
54
|
+
submit: import("platejs").OmitFirst<(editor: PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
55
|
+
mode?: import("@platejs/ai").AIMode;
|
|
56
|
+
options?: import("ai").ChatRequestOptions;
|
|
57
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
58
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
59
|
+
}) => void>;
|
|
60
|
+
hide: (options?: {
|
|
61
|
+
focus?: boolean;
|
|
62
|
+
undo?: boolean;
|
|
63
|
+
}) => void;
|
|
64
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
65
|
+
anchor?: boolean;
|
|
66
|
+
streaming?: boolean;
|
|
67
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
68
|
+
reload: () => void;
|
|
69
|
+
show: () => void;
|
|
70
|
+
stop: () => void;
|
|
71
|
+
}, "stop" | "node" | "reset" | "submit">> & Record<"aiChat", {
|
|
72
|
+
hide: ({ focus, undo }?: {
|
|
73
|
+
focus?: boolean;
|
|
74
|
+
undo?: boolean;
|
|
75
|
+
}) => void;
|
|
76
|
+
show: () => void;
|
|
77
|
+
}>, {
|
|
78
|
+
aiChat: {
|
|
79
|
+
accept: import("platejs").OmitFirst<(editor: PlateEditor) => void>;
|
|
80
|
+
insertBelow: import("platejs").OmitFirst<(editor: PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
81
|
+
format?: "all" | "none" | "single";
|
|
82
|
+
}) => void>;
|
|
83
|
+
replaceSelection: import("platejs").OmitFirst<(editor: PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
84
|
+
format?: "all" | "none" | "single";
|
|
85
|
+
}) => void>;
|
|
86
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
87
|
+
};
|
|
88
|
+
} & Record<"aiChat", {
|
|
89
|
+
accept: () => void;
|
|
90
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
91
|
+
format?: "all" | "none" | "single";
|
|
92
|
+
} | undefined) => void;
|
|
93
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
94
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
95
|
+
format?: "all" | "none" | "single";
|
|
96
|
+
} | undefined) => void;
|
|
97
|
+
}>, {}>>;
|
|
98
|
+
export declare const AIKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"markdown", {
|
|
99
|
+
allowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
100
|
+
disallowedNodes: import("@platejs/markdown").PlateType[] | null;
|
|
101
|
+
remarkPlugins: import("unified").Plugin[];
|
|
102
|
+
remarkStringifyOptions: import("remark-stringify").Options | null;
|
|
103
|
+
rules: import("@platejs/markdown").MdRules | null;
|
|
104
|
+
allowNode?: import("@platejs/markdown").AllowNodeConfig;
|
|
105
|
+
plainMarks?: import("@platejs/markdown").PlateType[] | null;
|
|
106
|
+
}, {
|
|
107
|
+
markdown: {
|
|
108
|
+
deserialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor">) => import("platejs").Value>;
|
|
109
|
+
deserializeInline: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, text: string, options?: import("@platejs/markdown").DeserializeMdOptions) => import("platejs").Descendant[]>;
|
|
110
|
+
serialize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor">) => string>;
|
|
111
|
+
};
|
|
112
|
+
} & Record<"markdown", {
|
|
113
|
+
deserialize: (data: string, options?: Omit<import("@platejs/markdown").DeserializeMdOptions, "editor"> | undefined) => import("platejs").Value;
|
|
114
|
+
deserializeInline: (text: string, options?: import("@platejs/markdown").DeserializeMdOptions | undefined) => import("platejs").Descendant[];
|
|
115
|
+
serialize: (options?: Omit<import("@platejs/markdown").SerializeMdOptions, "editor"> | undefined) => string;
|
|
116
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"ai", {}, {}, {
|
|
117
|
+
ai: {
|
|
118
|
+
acceptPreview: ((_value?: import("platejs").Value | undefined) => boolean) & ((_value?: import("platejs").Value | undefined) => boolean);
|
|
119
|
+
beginPreview: ((args_0?: {
|
|
120
|
+
originalBlocks?: import("platejs").Value;
|
|
121
|
+
} | undefined) => boolean) & ((args_0?: {
|
|
122
|
+
originalBlocks?: import("platejs").Value;
|
|
123
|
+
} | undefined) => boolean);
|
|
124
|
+
cancelPreview: (() => boolean) & (() => boolean);
|
|
125
|
+
discardPreview: (() => boolean) & (() => boolean);
|
|
126
|
+
hasPreview: (() => boolean) & (() => boolean);
|
|
127
|
+
insertNodes: ((nodes: import("platejs").Descendant[], args_1?: {
|
|
128
|
+
target?: import("platejs").Path;
|
|
129
|
+
} | undefined) => void) & ((nodes: import("platejs").Descendant[], args_1?: {
|
|
130
|
+
target?: import("platejs").Path;
|
|
131
|
+
} | undefined) => void);
|
|
132
|
+
removeMarks: ((args_0?: {
|
|
133
|
+
at?: import("platejs").TLocation;
|
|
134
|
+
} | undefined) => void) & ((args_0?: {
|
|
135
|
+
at?: import("platejs").TLocation;
|
|
136
|
+
} | undefined) => void);
|
|
137
|
+
removeNodes: ((args_0?: {
|
|
138
|
+
at?: import("platejs").Path;
|
|
139
|
+
} | undefined) => void) & ((args_0?: {
|
|
140
|
+
at?: import("platejs").Path;
|
|
141
|
+
} | undefined) => void);
|
|
142
|
+
undo: (() => void) & (() => void);
|
|
143
|
+
};
|
|
144
|
+
}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"cursorOverlay", {
|
|
145
|
+
cursors: Record<string, import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>>;
|
|
146
|
+
}, {
|
|
147
|
+
cursorOverlay: {
|
|
148
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
149
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
150
|
+
};
|
|
151
|
+
} & Record<"cursorOverlay", {
|
|
152
|
+
addCursor: (id: string, cursor: Omit<import("@platejs/selection/react").CursorState<import("@platejs/selection/react").CursorData>, "id">) => void;
|
|
153
|
+
removeCursor: (id: (string & {}) | "drag" | "selection") => void;
|
|
154
|
+
}>, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
155
|
+
contentRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
156
|
+
scrollRef: (React.RefObject<HTMLElement | null> & React.RefCallback<HTMLElement>) | null;
|
|
157
|
+
} & {
|
|
158
|
+
_blockChunks: string;
|
|
159
|
+
_blockPath: import("platejs").Path | null;
|
|
160
|
+
_mdxName: string | null;
|
|
161
|
+
_replaceIds: string[];
|
|
162
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
163
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
164
|
+
toolName: "comment" | "edit" | "generate";
|
|
165
|
+
comment?: {
|
|
166
|
+
blockId: string;
|
|
167
|
+
comment: string;
|
|
168
|
+
content: string;
|
|
169
|
+
};
|
|
170
|
+
}, import("ai").UITools>>;
|
|
171
|
+
chatNodes: import("platejs").TIdElement[];
|
|
172
|
+
chatSelection: import("platejs").TRange | null;
|
|
173
|
+
experimental_lastTextId: string | null;
|
|
174
|
+
mode: import("@platejs/ai").AIMode;
|
|
175
|
+
open: boolean;
|
|
176
|
+
streaming: boolean;
|
|
177
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
178
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
179
|
+
aiChat: {
|
|
180
|
+
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
181
|
+
undo?: boolean;
|
|
182
|
+
}) => void>;
|
|
183
|
+
submit: import("platejs").OmitFirst<(editor: PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
184
|
+
mode?: import("@platejs/ai").AIMode;
|
|
185
|
+
options?: import("ai").ChatRequestOptions;
|
|
186
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
187
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
188
|
+
}) => void>;
|
|
189
|
+
hide: (options?: {
|
|
190
|
+
focus?: boolean;
|
|
191
|
+
undo?: boolean;
|
|
192
|
+
}) => void;
|
|
193
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
194
|
+
anchor?: boolean;
|
|
195
|
+
streaming?: boolean;
|
|
196
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
197
|
+
reload: () => void;
|
|
198
|
+
show: () => void;
|
|
199
|
+
stop: () => void;
|
|
200
|
+
};
|
|
201
|
+
} & Record<"aiChat", Pick<{
|
|
202
|
+
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
203
|
+
undo?: boolean;
|
|
204
|
+
}) => void>;
|
|
205
|
+
submit: import("platejs").OmitFirst<(editor: PlateEditor, input: string, { mode, options, prompt, toolName: toolNameProps }?: {
|
|
206
|
+
mode?: import("@platejs/ai").AIMode;
|
|
207
|
+
options?: import("ai").ChatRequestOptions;
|
|
208
|
+
prompt?: import("@platejs/ai").EditorPrompt;
|
|
209
|
+
toolName?: import("@platejs/ai").AIToolName;
|
|
210
|
+
}) => void>;
|
|
211
|
+
hide: (options?: {
|
|
212
|
+
focus?: boolean;
|
|
213
|
+
undo?: boolean;
|
|
214
|
+
}) => void;
|
|
215
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
216
|
+
anchor?: boolean;
|
|
217
|
+
streaming?: boolean;
|
|
218
|
+
}) => import("platejs").NodeEntry | undefined;
|
|
219
|
+
reload: () => void;
|
|
220
|
+
show: () => void;
|
|
221
|
+
stop: () => void;
|
|
222
|
+
}, "stop" | "node" | "reset" | "submit">> & Record<"aiChat", {
|
|
223
|
+
hide: ({ focus, undo }?: {
|
|
224
|
+
focus?: boolean;
|
|
225
|
+
undo?: boolean;
|
|
226
|
+
}) => void;
|
|
227
|
+
show: () => void;
|
|
228
|
+
}>, {
|
|
229
|
+
aiChat: {
|
|
230
|
+
accept: import("platejs").OmitFirst<(editor: PlateEditor) => void>;
|
|
231
|
+
insertBelow: import("platejs").OmitFirst<(editor: PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
232
|
+
format?: "all" | "none" | "single";
|
|
233
|
+
}) => void>;
|
|
234
|
+
replaceSelection: import("platejs").OmitFirst<(editor: PlateEditor, sourceEditor: import("platejs").SlateEditor, { format }?: {
|
|
235
|
+
format?: "all" | "none" | "single";
|
|
236
|
+
}) => void>;
|
|
237
|
+
removeAnchor: (options?: import("platejs").EditorNodesOptions) => void;
|
|
238
|
+
};
|
|
239
|
+
} & Record<"aiChat", {
|
|
240
|
+
accept: () => void;
|
|
241
|
+
insertBelow: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
242
|
+
format?: "all" | "none" | "single";
|
|
243
|
+
} | undefined) => void;
|
|
244
|
+
removeAnchor: (options?: import("platejs").RemoveNodesOptions | undefined) => void;
|
|
245
|
+
replaceSelection: (sourceEditor: import("platejs").SlateEditor, args_1?: {
|
|
246
|
+
format?: "all" | "none" | "single";
|
|
247
|
+
} | undefined) => void;
|
|
248
|
+
}>, {}>>)[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const BaseExpandablePlugin: import("platejs").SlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
2
|
+
openIds?: Set<string>;
|
|
3
|
+
}, {
|
|
4
|
+
toggle: {
|
|
5
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
6
|
+
};
|
|
7
|
+
} & Record<"toggle", {
|
|
8
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
9
|
+
}>, {}, {
|
|
10
|
+
isOpen?: (toggleId: string) => boolean;
|
|
11
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
12
|
+
}>>;
|
|
13
|
+
export declare const BaseExpandableKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
14
|
+
openIds?: Set<string>;
|
|
15
|
+
}, {
|
|
16
|
+
toggle: {
|
|
17
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
18
|
+
};
|
|
19
|
+
} & Record<"toggle", {
|
|
20
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
21
|
+
}>, {}, {
|
|
22
|
+
isOpen?: (toggleId: string) => boolean;
|
|
23
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
24
|
+
}>>[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type { TExpandableElement } from './expandable-types';
|
|
2
|
+
export declare const ExpandablePlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
3
|
+
openIds?: Set<string>;
|
|
4
|
+
} & {
|
|
5
|
+
toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
|
|
6
|
+
}, {
|
|
7
|
+
toggle: {
|
|
8
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {
|
|
11
|
+
isOpen?: (toggleId: string) => boolean;
|
|
12
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
13
|
+
}>>;
|
|
14
|
+
export declare const ExpandableKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"indent", {
|
|
15
|
+
indentMax?: number;
|
|
16
|
+
offset?: number;
|
|
17
|
+
unit?: string;
|
|
18
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
19
|
+
openIds?: Set<string>;
|
|
20
|
+
} & {
|
|
21
|
+
toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
|
|
22
|
+
}, {
|
|
23
|
+
toggle: {
|
|
24
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
25
|
+
};
|
|
26
|
+
}, {}, {
|
|
27
|
+
isOpen?: (toggleId: string) => boolean;
|
|
28
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
29
|
+
}>>)[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { PanelPosition, TPanelElement } from './panel-types';
|
|
2
|
+
export declare const PanelPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"panel", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const PanelKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"panel", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ResponseFieldItemPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>>;
|
|
2
|
+
export declare const ResponseFieldPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const BaseResponseFieldKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { TResponseFieldElement, TResponseFieldItemElement } from './response-field-types';
|
|
2
|
+
export declare const ResponseFieldItemPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const ResponseFieldPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>>;
|
|
4
|
+
export declare const ResponseFieldKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field_item", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"response_field", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TElement } from 'platejs';
|
|
2
|
+
export interface TResponseFieldItemElement extends TElement {
|
|
3
|
+
type: 'response_field_item';
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
fieldType: string;
|
|
7
|
+
default?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
deprecated?: boolean;
|
|
10
|
+
preLabels?: string[];
|
|
11
|
+
postLabels?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface TResponseFieldElement extends TElement {
|
|
14
|
+
type: 'response_field';
|
|
15
|
+
id: string;
|
|
16
|
+
children: TResponseFieldItemElement[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AutoformatKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"textSubstitution", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { TBadgeElement } from './badge-types';
|
|
2
|
+
export declare const BadgePlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"badge", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const BadgeKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"badge", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IconName } from 'lucide-react/dynamic';
|
|
2
|
+
import type { TElement, TText } from 'platejs';
|
|
3
|
+
export declare const BadgeColors: readonly ["gray", "blue", "green", "yellow", "orange", "red", "purple"];
|
|
4
|
+
export type BadgeColor = (typeof BadgeColors)[number];
|
|
5
|
+
export declare const BadgeSizes: readonly ["xs", "sm", "md", "lg"];
|
|
6
|
+
export type BadgeSize = (typeof BadgeSizes)[number];
|
|
7
|
+
export declare const BadgeShapes: readonly ["rounded", "pill"];
|
|
8
|
+
export type BadgeShape = (typeof BadgeShapes)[number];
|
|
9
|
+
export interface TBadgeElement extends TElement {
|
|
10
|
+
type: 'badge';
|
|
11
|
+
id: string;
|
|
12
|
+
color?: BadgeColor;
|
|
13
|
+
size?: BadgeSize;
|
|
14
|
+
shape?: BadgeShape;
|
|
15
|
+
icon?: IconName;
|
|
16
|
+
stroke?: boolean;
|
|
17
|
+
children: [TText];
|
|
18
|
+
}
|
|
19
|
+
export declare const BADGE_COLOR_STYLES: Record<BadgeColor, {
|
|
20
|
+
bg: string;
|
|
21
|
+
text: string;
|
|
22
|
+
border: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const BADGE_SIZE_STYLES: Record<BadgeSize, string>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { TBannerElement } from './banner-types';
|
|
2
|
+
export declare const BannerPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"banner", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const BannerKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"banner", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TElement } from 'platejs';
|
|
2
|
+
export declare const BannerVariants: readonly ["info", "warning", "success", "error", "neutral"];
|
|
3
|
+
export type BannerVariant = (typeof BannerVariants)[number];
|
|
4
|
+
export interface TBannerElement extends TElement {
|
|
5
|
+
type: 'banner';
|
|
6
|
+
id: string;
|
|
7
|
+
variant?: BannerVariant;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const BANNER_VARIANT_STYLES: Record<BannerVariant, {
|
|
11
|
+
bg: string;
|
|
12
|
+
border: string;
|
|
13
|
+
text: string;
|
|
14
|
+
iconName: string;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const BaseBasicBlocksKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
|
|
2
|
+
toggle: () => void;
|
|
3
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const BasicBlocksKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
|
|
2
|
+
toggle: () => void;
|
|
3
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const BaseBasicMarksKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
2
|
+
toggle: () => void;
|
|
3
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"highlight", {}, {}, Record<"highlight", {
|
|
16
|
+
toggle: () => void;
|
|
17
|
+
}>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
18
|
+
toggle: () => void;
|
|
19
|
+
}>, {}>>)[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type MarkShortcut } from '../../../types/editor';
|
|
2
|
+
export declare const createBasicMarksKit: (markShortcuts?: readonly MarkShortcut[]) => (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
3
|
+
toggle: () => void;
|
|
4
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
5
|
+
toggle: () => void;
|
|
6
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
7
|
+
toggle: () => void;
|
|
8
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
9
|
+
toggle: () => void;
|
|
10
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
13
|
+
toggle: () => void;
|
|
14
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
15
|
+
toggle: () => void;
|
|
16
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
17
|
+
toggle: () => void;
|
|
18
|
+
}>, {}>>)[];
|
|
19
|
+
export declare const BasicMarksKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
20
|
+
toggle: () => void;
|
|
21
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
22
|
+
toggle: () => void;
|
|
23
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
24
|
+
toggle: () => void;
|
|
25
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
26
|
+
toggle: () => void;
|
|
27
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
28
|
+
toggle: () => void;
|
|
29
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
30
|
+
toggle: () => void;
|
|
31
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
32
|
+
toggle: () => void;
|
|
33
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
34
|
+
toggle: () => void;
|
|
35
|
+
}>, {}>>)[];
|