@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,3 @@
|
|
|
1
|
+
export declare const StepPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"step", {}, {}, {}, {}>>;
|
|
2
|
+
export declare const StepsPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"steps", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const BaseStepsKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"step", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"steps", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { TStepElement, TStepsElement } from './steps-types';
|
|
2
|
+
export declare const StepPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"step", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const StepsPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"steps", {}, {}, {}, {}>>;
|
|
4
|
+
export declare const StepsKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"step", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"steps", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IconName } from 'lucide-react/dynamic';
|
|
2
|
+
import type { TElement } from 'platejs';
|
|
3
|
+
export declare const TitleSizes: readonly ["p", "h2", "h3"];
|
|
4
|
+
export type TitleSize = (typeof TitleSizes)[number];
|
|
5
|
+
export interface TStepElement extends TElement {
|
|
6
|
+
type: 'step';
|
|
7
|
+
id: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
titleSize?: TitleSize;
|
|
10
|
+
icon?: IconName;
|
|
11
|
+
stepNumber?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface TStepsElement extends TElement {
|
|
14
|
+
type: 'steps';
|
|
15
|
+
id: string;
|
|
16
|
+
titleSize?: TitleSize;
|
|
17
|
+
children: TStepElement[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const BaseSuggestionKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"suggestion", {
|
|
2
|
+
currentUserId: string | null;
|
|
3
|
+
isSuggesting: boolean;
|
|
4
|
+
}, {
|
|
5
|
+
suggestion: {
|
|
6
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
7
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
8
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
9
|
+
id?: string;
|
|
10
|
+
isText?: boolean;
|
|
11
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
12
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
13
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
14
|
+
transient?: boolean;
|
|
15
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
16
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
17
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
18
|
+
};
|
|
19
|
+
} & Record<"suggestion", {
|
|
20
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
21
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
22
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
23
|
+
id?: string;
|
|
24
|
+
isText?: boolean;
|
|
25
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
26
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
27
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
28
|
+
transient?: boolean;
|
|
29
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
30
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
31
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
32
|
+
}>, {}, {}>>[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type BaseSuggestionConfig } from '@platejs/suggestion';
|
|
2
|
+
import { type ExtendConfig, type Path } from 'platejs';
|
|
3
|
+
export type SuggestionConfig = ExtendConfig<BaseSuggestionConfig, {
|
|
4
|
+
activeId: string | null;
|
|
5
|
+
hoverId: string | null;
|
|
6
|
+
uniquePathMap: Map<string, Path>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const suggestionPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"suggestion", {
|
|
9
|
+
currentUserId: string | null;
|
|
10
|
+
isSuggesting: boolean;
|
|
11
|
+
} & {
|
|
12
|
+
activeId: string | null;
|
|
13
|
+
hoverId: string | null;
|
|
14
|
+
uniquePathMap: Map<string, Path>;
|
|
15
|
+
}, {
|
|
16
|
+
suggestion: {
|
|
17
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
18
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
19
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
20
|
+
id?: string;
|
|
21
|
+
isText?: boolean;
|
|
22
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
23
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
24
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
25
|
+
transient?: boolean;
|
|
26
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
27
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
28
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
29
|
+
};
|
|
30
|
+
}, {}, {}>>;
|
|
31
|
+
export declare const SuggestionKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"suggestion", {
|
|
32
|
+
currentUserId: string | null;
|
|
33
|
+
isSuggesting: boolean;
|
|
34
|
+
} & {
|
|
35
|
+
activeId: string | null;
|
|
36
|
+
hoverId: string | null;
|
|
37
|
+
uniquePathMap: Map<string, Path>;
|
|
38
|
+
}, {
|
|
39
|
+
suggestion: {
|
|
40
|
+
dataList: (node: import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData[];
|
|
41
|
+
isBlockSuggestion: (node: import("platejs").TNode) => node is import("platejs").TSuggestionElement;
|
|
42
|
+
node: (options?: import("platejs").EditorNodesOptions & {
|
|
43
|
+
id?: string;
|
|
44
|
+
isText?: boolean;
|
|
45
|
+
}) => import("platejs").NodeEntry<import("platejs").TSuggestionElement | import("platejs").TSuggestionText> | undefined;
|
|
46
|
+
nodeId: (node: import("platejs").TElement | import("platejs").TSuggestionText) => string | undefined;
|
|
47
|
+
nodes: (options?: import("platejs").EditorNodesOptions & {
|
|
48
|
+
transient?: boolean;
|
|
49
|
+
}) => import("platejs").NodeEntry<import("platejs").TElement | import("platejs").TSuggestionText>[];
|
|
50
|
+
suggestionData: (node: import("platejs").TElement | import("platejs").TSuggestionText) => import("platejs").TInlineSuggestionData | import("platejs").TSuggestionElement["suggestion"] | undefined;
|
|
51
|
+
withoutSuggestions: (fn: () => void) => void;
|
|
52
|
+
};
|
|
53
|
+
}, {}, {}>>[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const TabbedCodeBlockPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tabbed_code_block", {
|
|
2
|
+
lowlight: {
|
|
3
|
+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
|
|
4
|
+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
|
|
5
|
+
listLanguages: () => Array<string>;
|
|
6
|
+
register: {
|
|
7
|
+
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
|
|
8
|
+
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
|
|
9
|
+
};
|
|
10
|
+
registerAlias: {
|
|
11
|
+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
|
|
12
|
+
(language: string, alias: ReadonlyArray<string> | string): undefined;
|
|
13
|
+
};
|
|
14
|
+
registered: (aliasOrName: string) => boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {}, {}, {}>>;
|
|
17
|
+
export declare const BaseTabbedCodeBlockKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tabbed_code_block", {
|
|
18
|
+
lowlight: {
|
|
19
|
+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
|
|
20
|
+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
|
|
21
|
+
listLanguages: () => Array<string>;
|
|
22
|
+
register: {
|
|
23
|
+
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
|
|
24
|
+
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
|
|
25
|
+
};
|
|
26
|
+
registerAlias: {
|
|
27
|
+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
|
|
28
|
+
(language: string, alias: ReadonlyArray<string> | string): undefined;
|
|
29
|
+
};
|
|
30
|
+
registered: (aliasOrName: string) => boolean;
|
|
31
|
+
};
|
|
32
|
+
}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type { TabbedCodeBlockTabMeta, TTabbedCodeBlockElement } from './tabbed-code-block-types';
|
|
2
|
+
export declare const TabbedCodeBlockPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tabbed_code_block", {
|
|
3
|
+
lowlight: {
|
|
4
|
+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
|
|
5
|
+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
|
|
6
|
+
listLanguages: () => Array<string>;
|
|
7
|
+
register: {
|
|
8
|
+
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
|
|
9
|
+
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
|
|
10
|
+
};
|
|
11
|
+
registerAlias: {
|
|
12
|
+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
|
|
13
|
+
(language: string, alias: ReadonlyArray<string> | string): undefined;
|
|
14
|
+
};
|
|
15
|
+
registered: (aliasOrName: string) => boolean;
|
|
16
|
+
};
|
|
17
|
+
}, {}, {}, {}>>;
|
|
18
|
+
export declare const TabbedCodeBlockKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tabbed_code_block", {
|
|
19
|
+
lowlight: {
|
|
20
|
+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
|
|
21
|
+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
|
|
22
|
+
listLanguages: () => Array<string>;
|
|
23
|
+
register: {
|
|
24
|
+
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
|
|
25
|
+
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
|
|
26
|
+
};
|
|
27
|
+
registerAlias: {
|
|
28
|
+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
|
|
29
|
+
(language: string, alias: ReadonlyArray<string> | string): undefined;
|
|
30
|
+
};
|
|
31
|
+
registered: (aliasOrName: string) => boolean;
|
|
32
|
+
};
|
|
33
|
+
}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TElement } from 'platejs';
|
|
2
|
+
export interface TabbedCodeBlockTabMeta {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
lang: string;
|
|
6
|
+
lineMarkingMeta?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TabbedCodeBlockTabContent {
|
|
9
|
+
lines: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare const TabbedCodeBlockDisplayModes: readonly ["tabs", "dropdown"];
|
|
12
|
+
export type TabbedCodeBlockDisplayMode = (typeof TabbedCodeBlockDisplayModes)[number];
|
|
13
|
+
export interface TTabbedCodeBlockElement extends TElement {
|
|
14
|
+
type: 'tabbed_code_block';
|
|
15
|
+
id: string;
|
|
16
|
+
activeTabId: string;
|
|
17
|
+
tabs: TabbedCodeBlockTabMeta[];
|
|
18
|
+
tabContents: Record<string, TabbedCodeBlockTabContent>;
|
|
19
|
+
displayMode?: TabbedCodeBlockDisplayMode;
|
|
20
|
+
syncKey?: string;
|
|
21
|
+
lineMarkingMeta?: string;
|
|
22
|
+
children: TElement[];
|
|
23
|
+
}
|
|
24
|
+
export interface TTabbedCodeBlockTab extends TElement {
|
|
25
|
+
type: 'tabbed_code_block_tab';
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
lang: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export declare const BaseTableKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"table", {
|
|
2
|
+
_cellIndices: Record<string, {
|
|
3
|
+
col: number;
|
|
4
|
+
row: number;
|
|
5
|
+
}>;
|
|
6
|
+
_selectedCellIds: string[] | null | undefined;
|
|
7
|
+
_selectedTableIds: string[] | null | undefined;
|
|
8
|
+
_selectionVersion: number;
|
|
9
|
+
selectedCells: import("platejs").TElement[] | null;
|
|
10
|
+
selectedTables: import("platejs").TElement[] | null;
|
|
11
|
+
disableExpandOnInsert?: boolean;
|
|
12
|
+
disableMarginLeft?: boolean;
|
|
13
|
+
disableMerge?: boolean;
|
|
14
|
+
enableUnsetSingleColSize?: boolean;
|
|
15
|
+
initialTableWidth?: number;
|
|
16
|
+
minColumnWidth?: number;
|
|
17
|
+
}, {
|
|
18
|
+
create: {
|
|
19
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
20
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
21
|
+
children: import("platejs").Descendant[];
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
25
|
+
children: {
|
|
26
|
+
children: import("platejs").Descendant[];
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
type: string;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
table: {
|
|
33
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
34
|
+
element: import("platejs").TTableCellElement;
|
|
35
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
36
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
37
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
38
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
39
|
+
element: import("platejs").TTableCellElement;
|
|
40
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
41
|
+
colSizes?: number[];
|
|
42
|
+
rowSize?: number;
|
|
43
|
+
}) => {
|
|
44
|
+
minHeight: number;
|
|
45
|
+
width: number;
|
|
46
|
+
}>;
|
|
47
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
48
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
49
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
50
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
51
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
52
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
53
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
54
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
55
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
56
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
insert: {
|
|
60
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
61
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
62
|
+
at?: import("platejs").Path;
|
|
63
|
+
before?: boolean;
|
|
64
|
+
fromCell?: import("platejs").Path;
|
|
65
|
+
header?: boolean;
|
|
66
|
+
select?: boolean;
|
|
67
|
+
}) => void>;
|
|
68
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
69
|
+
at?: import("platejs").Path;
|
|
70
|
+
before?: boolean;
|
|
71
|
+
fromRow?: import("platejs").Path;
|
|
72
|
+
header?: boolean;
|
|
73
|
+
select?: boolean;
|
|
74
|
+
}) => void>;
|
|
75
|
+
};
|
|
76
|
+
remove: {
|
|
77
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
78
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
79
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
80
|
+
};
|
|
81
|
+
table: {
|
|
82
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
83
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
cellIndices?: (id: string) => import("@platejs/table").CellIndices;
|
|
87
|
+
isCellSelected?: (id?: string | null) => boolean;
|
|
88
|
+
isSelectingCell?: () => boolean;
|
|
89
|
+
selectedCell?: (id?: string | null) => import("platejs").TElement | null;
|
|
90
|
+
selectedCellIds?: () => string[] | null;
|
|
91
|
+
selectedCells?: () => import("platejs").TElement[] | null;
|
|
92
|
+
selectedTableIds?: () => string[] | null;
|
|
93
|
+
selectedTables?: () => import("platejs").TElement[] | null;
|
|
94
|
+
}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
export declare const TableKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"table", {
|
|
2
|
+
_cellIndices: Record<string, {
|
|
3
|
+
col: number;
|
|
4
|
+
row: number;
|
|
5
|
+
}>;
|
|
6
|
+
_selectedCellIds: string[] | null | undefined;
|
|
7
|
+
_selectedTableIds: string[] | null | undefined;
|
|
8
|
+
_selectionVersion: number;
|
|
9
|
+
selectedCells: import("platejs").TElement[] | null;
|
|
10
|
+
selectedTables: import("platejs").TElement[] | null;
|
|
11
|
+
disableExpandOnInsert?: boolean;
|
|
12
|
+
disableMarginLeft?: boolean;
|
|
13
|
+
disableMerge?: boolean;
|
|
14
|
+
enableUnsetSingleColSize?: boolean;
|
|
15
|
+
initialTableWidth?: number;
|
|
16
|
+
minColumnWidth?: number;
|
|
17
|
+
}, {
|
|
18
|
+
create: {
|
|
19
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
20
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
21
|
+
children: import("platejs").Descendant[];
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
25
|
+
children: {
|
|
26
|
+
children: import("platejs").Descendant[];
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
type: string;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
table: {
|
|
33
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
34
|
+
element: import("platejs").TTableCellElement;
|
|
35
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
36
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
37
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
38
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
39
|
+
element: import("platejs").TTableCellElement;
|
|
40
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
41
|
+
colSizes?: number[];
|
|
42
|
+
rowSize?: number;
|
|
43
|
+
}) => {
|
|
44
|
+
minHeight: number;
|
|
45
|
+
width: number;
|
|
46
|
+
}>;
|
|
47
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
48
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
49
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
50
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
51
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
52
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
53
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
54
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
55
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
56
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
57
|
+
};
|
|
58
|
+
} & {
|
|
59
|
+
create: {
|
|
60
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import("@platejs/table").GetEmptyTableNodeOptions) => import("platejs").TTableElement>;
|
|
61
|
+
tableCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { children, header, row }?: import("@platejs/table").CreateCellOptions) => {
|
|
62
|
+
children: import("platejs").Descendant[];
|
|
63
|
+
type: string;
|
|
64
|
+
}>;
|
|
65
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, ...cellOptions }?: import("@platejs/table").GetEmptyRowNodeOptions) => {
|
|
66
|
+
children: {
|
|
67
|
+
children: import("platejs").Descendant[];
|
|
68
|
+
type: string;
|
|
69
|
+
}[];
|
|
70
|
+
type: string;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
table: {
|
|
74
|
+
getCellBorders: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, defaultBorder, element }: {
|
|
75
|
+
element: import("platejs").TTableCellElement;
|
|
76
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
77
|
+
defaultBorder?: import("platejs").TTableCellBorder;
|
|
78
|
+
}) => import("@platejs/table").BorderStylesDefault>;
|
|
79
|
+
getCellSize: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { cellIndices, colSizes, element, rowSize }: {
|
|
80
|
+
element: import("platejs").TTableCellElement;
|
|
81
|
+
cellIndices?: import("@platejs/table").CellIndices;
|
|
82
|
+
colSizes?: number[];
|
|
83
|
+
rowSize?: number;
|
|
84
|
+
}) => {
|
|
85
|
+
minHeight: number;
|
|
86
|
+
width: number;
|
|
87
|
+
}>;
|
|
88
|
+
getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
|
|
89
|
+
getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
90
|
+
getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
91
|
+
getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
|
|
92
|
+
getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
|
|
93
|
+
getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
94
|
+
getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
|
|
95
|
+
getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
|
|
96
|
+
isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
|
|
97
|
+
isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
insert: {
|
|
101
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
102
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
103
|
+
at?: import("platejs").Path;
|
|
104
|
+
before?: boolean;
|
|
105
|
+
fromCell?: import("platejs").Path;
|
|
106
|
+
header?: boolean;
|
|
107
|
+
select?: boolean;
|
|
108
|
+
}) => void>;
|
|
109
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
110
|
+
at?: import("platejs").Path;
|
|
111
|
+
before?: boolean;
|
|
112
|
+
fromRow?: import("platejs").Path;
|
|
113
|
+
header?: boolean;
|
|
114
|
+
select?: boolean;
|
|
115
|
+
}) => void>;
|
|
116
|
+
};
|
|
117
|
+
remove: {
|
|
118
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
119
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
120
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
121
|
+
};
|
|
122
|
+
table: {
|
|
123
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
124
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
125
|
+
};
|
|
126
|
+
} & {
|
|
127
|
+
insert: {
|
|
128
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, { colCount, header, rowCount }?: import("@platejs/table").GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import("platejs").InsertNodesOptions) => void>;
|
|
129
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
130
|
+
at?: import("platejs").Path;
|
|
131
|
+
before?: boolean;
|
|
132
|
+
fromCell?: import("platejs").Path;
|
|
133
|
+
header?: boolean;
|
|
134
|
+
select?: boolean;
|
|
135
|
+
}) => void>;
|
|
136
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, options?: {
|
|
137
|
+
at?: import("platejs").Path;
|
|
138
|
+
before?: boolean;
|
|
139
|
+
fromRow?: import("platejs").Path;
|
|
140
|
+
header?: boolean;
|
|
141
|
+
select?: boolean;
|
|
142
|
+
}) => void>;
|
|
143
|
+
};
|
|
144
|
+
remove: {
|
|
145
|
+
table: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
146
|
+
tableColumn: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
147
|
+
tableRow: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
148
|
+
};
|
|
149
|
+
table: {
|
|
150
|
+
merge: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
151
|
+
split: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => void>;
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
cellIndices?: (id: string) => import("@platejs/table").CellIndices;
|
|
155
|
+
isCellSelected?: (id?: string | null) => boolean;
|
|
156
|
+
isSelectingCell?: () => boolean;
|
|
157
|
+
selectedCell?: (id?: string | null) => import("platejs").TElement | null;
|
|
158
|
+
selectedCellIds?: () => string[] | null;
|
|
159
|
+
selectedCells?: () => import("platejs").TElement[] | null;
|
|
160
|
+
selectedTableIds?: () => string[] | null;
|
|
161
|
+
selectedTables?: () => import("platejs").TElement[] | null;
|
|
162
|
+
}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { TabMeta, TTabsElement } from './tabs-types';
|
|
2
|
+
export declare const TabsPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tabs", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const TabsKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tabs", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TElement } from 'platejs';
|
|
2
|
+
export interface TabMeta {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TTabsElement extends TElement {
|
|
7
|
+
type: 'tabs';
|
|
8
|
+
id: string;
|
|
9
|
+
activeTabId: string;
|
|
10
|
+
tabs: TabMeta[];
|
|
11
|
+
tabContents: Record<string, TElement[]>;
|
|
12
|
+
syncKey?: string;
|
|
13
|
+
children: TElement[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type SlateEditor } from 'platejs';
|
|
2
|
+
import { type GatedInputRule } from './input-rule-gate';
|
|
3
|
+
export declare const canSubstituteTextAfter: (editor: SlateEditor, textBeforeSelection: string) => boolean;
|
|
4
|
+
export declare const whereTextSubstitutionApplies: <TRule extends GatedInputRule>(rule: TRule) => TRule;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const TilesPluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tiles", {}, {}, {}, {}>>;
|
|
2
|
+
export declare const TilePluginStatic: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tile", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const BaseTilesKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tiles", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tile", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { TTileElement, TTilesElement } from './tiles-types';
|
|
2
|
+
export declare const TilesPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tiles", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const TilePlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tile", {}, {}, {}, {}>>;
|
|
4
|
+
export declare const TilesKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tiles", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tile", {}, {}, {}, {}>>)[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TElement } from 'platejs';
|
|
2
|
+
export declare const TileColumns: readonly [2, 3, 4];
|
|
3
|
+
export type TileColumn = (typeof TileColumns)[number];
|
|
4
|
+
export interface TTileElement extends TElement {
|
|
5
|
+
type: 'tile';
|
|
6
|
+
id: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TTilesElement extends TElement {
|
|
12
|
+
type: 'tiles';
|
|
13
|
+
id: string;
|
|
14
|
+
columns?: TileColumn;
|
|
15
|
+
children: TTileElement[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BaseTocKit: import("platejs").SlatePlugin<import("@platejs/toc").TocConfig>[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns every to-do list item into a bulleted list item and drops its checked state, for an editor that runs with
|
|
3
|
+
* `todoLists: false`. The initial value converts in place before the first render, and normalization converts any
|
|
4
|
+
* to-do item that a paste, `setValue`, or a transform adds later, so loaded HTML and markdown keep their items.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TodoToBulletPlugin: import("platejs").SlatePlugin<import("platejs").PluginConfig<"todoToBullet", {}, {}, {}, {}>>;
|
|
7
|
+
export declare const TodoToBulletKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"todoToBullet", {}, {}, {}, {}>>[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const BaseToggleKit: 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
|
+
}>>[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const ToggleKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"indent", {
|
|
2
|
+
indentMax?: number;
|
|
3
|
+
offset?: number;
|
|
4
|
+
unit?: string;
|
|
5
|
+
}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
|
|
6
|
+
openIds?: Set<string>;
|
|
7
|
+
} & {
|
|
8
|
+
toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
|
|
9
|
+
}, {
|
|
10
|
+
toggle: {
|
|
11
|
+
toggleIds: (ids: string[], force?: boolean | null) => void;
|
|
12
|
+
};
|
|
13
|
+
}, {}, {
|
|
14
|
+
isOpen?: (toggleId: string) => boolean;
|
|
15
|
+
someClosed?: (toggleIds: string[]) => boolean;
|
|
16
|
+
}>>)[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface ParseOptions {
|
|
2
|
+
element: HTMLElement;
|
|
3
|
+
type: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Loads the `<span data-tooltip>` that `serializePlateToHtml` writes for a tooltip back into a tooltip node. Each
|
|
7
|
+
* loaded tooltip gets a fresh id, the same way the toolbar button gives one to a new tooltip.
|
|
8
|
+
*/
|
|
9
|
+
export declare const TOOLTIP_HTML_PARSERS: {
|
|
10
|
+
html: {
|
|
11
|
+
deserializer: {
|
|
12
|
+
rules: {
|
|
13
|
+
validNodeName: string;
|
|
14
|
+
validAttribute: string;
|
|
15
|
+
}[];
|
|
16
|
+
parse: ({ element, type }: ParseOptions) => {
|
|
17
|
+
href?: string | undefined;
|
|
18
|
+
cta?: string | undefined;
|
|
19
|
+
headline?: string | undefined;
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
tip: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { TTooltipElement } from './tooltip-types';
|
|
2
|
+
export declare const TooltipPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tooltip", {}, {}, {}, {}>>;
|
|
3
|
+
export declare const TooltipKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tooltip", {}, {}, {}, {}>>[];
|