@delali/web-editor 0.0.0-stage → 0.4.3
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 +46 -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 +25243 -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 +18820 -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 +19218 -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 +27334 -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-return-focus-to-editor-on-input-removal.d.ts +3 -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 +25314 -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,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface ColorElementActionsProps {
|
|
3
|
+
readOnly: boolean;
|
|
4
|
+
settingsControl: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function ColorElementActions({ readOnly, settingsControl }: ColorElementActionsProps): import("react").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type TColorItem } from '../components/editor/plugins/color-types';
|
|
3
|
+
type ColorItemSettingsPanelProps = ColorItemSettingsFormProps;
|
|
4
|
+
export declare function ColorItemSettingsPanel(props: ColorItemSettingsPanelProps): React.JSX.Element;
|
|
5
|
+
interface ColorItemSettingsFormProps {
|
|
6
|
+
color: TColorItem;
|
|
7
|
+
onUpdate: (updates: Partial<TColorItem>) => void;
|
|
8
|
+
onRemove: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ColorItemSettingsForm({ color, onUpdate, onRemove }: ColorItemSettingsFormProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { type ColorVariant, type TColorElement } from '../components/editor/plugins/color-types';
|
|
4
|
+
interface ColorSettingsButtonProps extends Omit<ComponentProps<'button'>, 'onClick'> {
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ColorSettingsButton({ onClick, ...triggerProps }: ColorSettingsButtonProps): React.JSX.Element;
|
|
8
|
+
type ColorSettingsPanelProps = Omit<ColorSettingsFormProps, 'layout'>;
|
|
9
|
+
export declare function ColorSettingsPanel(props: ColorSettingsPanelProps): React.JSX.Element;
|
|
10
|
+
type ColorSettingsPopoverProps = Omit<ColorSettingsFormProps, 'layout'>;
|
|
11
|
+
export declare function ColorSettingsPopover(props: ColorSettingsPopoverProps): React.JSX.Element;
|
|
12
|
+
interface ColorSettingsFormProps {
|
|
13
|
+
initialVariant: ColorVariant;
|
|
14
|
+
initialShowLabels: boolean;
|
|
15
|
+
updateElement: (updates: Partial<TColorElement>) => void;
|
|
16
|
+
layout?: 'popover' | 'panel';
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TColorItem } from '../components/editor/plugins/color-types';
|
|
3
|
+
interface ColorSwatchEditableProps {
|
|
4
|
+
color: TColorItem;
|
|
5
|
+
elementId: string;
|
|
6
|
+
showLabel: boolean;
|
|
7
|
+
readOnly: boolean;
|
|
8
|
+
updateColor: (colorId: string, updates: Partial<TColorItem>) => void;
|
|
9
|
+
removeColor: (colorId: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function ColorSwatchEditable({ color, elementId, showLabel, readOnly, updateColor, removeColor, }: ColorSwatchEditableProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TColorItem } from '../components/editor/plugins/color-types';
|
|
3
|
+
interface ColorTableRowEditableProps {
|
|
4
|
+
color: TColorItem;
|
|
5
|
+
readOnly: boolean;
|
|
6
|
+
updateColor: (colorId: string, updates: Partial<TColorItem>) => void;
|
|
7
|
+
removeColor: (colorId: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function ColorTableRowEditable({ color, readOnly, updateColor, removeColor }: ColorTableRowEditableProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TColumnElement } from 'platejs';
|
|
2
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
3
|
+
export declare function ColumnElementStatic(props: SlateElementProps<TColumnElement>): import("react").JSX.Element;
|
|
4
|
+
export declare function ColumnGroupElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type PlateElementProps } from 'platejs/react';
|
|
2
|
+
export declare const ColumnElement: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
3
|
+
export declare function ColumnGroupElement(props: PlateElementProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
3
|
+
import type * as React from 'react';
|
|
4
|
+
import { type DialogProps } from './dialog';
|
|
5
|
+
import { inputVariants } from './input';
|
|
6
|
+
declare const commandVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "combobox" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
declare function Command({ className, variant, ...props }: React.ComponentProps<typeof CommandPrimitive> & VariantProps<typeof commandVariants>): React.JSX.Element;
|
|
10
|
+
declare function CommandDialog({ children, className, ...props }: DialogProps & {
|
|
11
|
+
className?: string;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
declare function CommandInput({ className, variant, wrapClassName, ...props }: React.ComponentProps<typeof CommandPrimitive.Input> & VariantProps<typeof inputVariants> & {
|
|
14
|
+
wrapClassName?: string;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
|
|
17
|
+
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
|
|
18
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
|
|
19
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
|
|
20
|
+
export declare const commandItemVariants: (props?: ({
|
|
21
|
+
variant?: "default" | "menuItem" | null | undefined;
|
|
22
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
23
|
+
declare function CommandItem({ className, variant, ...props }: React.ComponentProps<typeof CommandPrimitive.Item> & VariantProps<typeof commandItemVariants>): React.JSX.Element;
|
|
24
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
25
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CommentToolbarButton(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Value } from 'platejs';
|
|
2
|
+
import { type CreatePlateEditorOptions } from 'platejs/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type TComment = {
|
|
5
|
+
id: string;
|
|
6
|
+
contentRich: Value;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
discussionId: string;
|
|
9
|
+
isEdited: boolean;
|
|
10
|
+
userId: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function Comment(props: {
|
|
13
|
+
comment: TComment;
|
|
14
|
+
discussionLength: number;
|
|
15
|
+
editingId: string | null;
|
|
16
|
+
index: number;
|
|
17
|
+
setEditingId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
18
|
+
documentContent?: string;
|
|
19
|
+
showDocumentContent?: boolean;
|
|
20
|
+
onEditorClick?: () => void;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
export declare const useCommentEditor: (options?: Omit<CreatePlateEditorOptions, "plugins">, deps?: any[]) => import("platejs/react").TPlateEditor<Value, import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
|
|
23
|
+
toggle: () => void;
|
|
24
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
|
|
25
|
+
toggle: () => void;
|
|
26
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
|
|
27
|
+
toggle: () => void;
|
|
28
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
|
|
29
|
+
toggle: () => void;
|
|
30
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
|
|
31
|
+
toggle: () => void;
|
|
32
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
|
|
33
|
+
toggle: () => void;
|
|
34
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
|
|
35
|
+
toggle: () => void;
|
|
36
|
+
}>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"kbd", {}, {}, Record<"kbd", {
|
|
37
|
+
toggle: () => void;
|
|
38
|
+
}>, {}>>>;
|
|
39
|
+
export declare function CommentCreateForm({ autoFocus, className, discussionId: discussionIdProp, focusOnMount, }: {
|
|
40
|
+
autoFocus?: boolean;
|
|
41
|
+
className?: string;
|
|
42
|
+
discussionId?: string;
|
|
43
|
+
focusOnMount?: boolean;
|
|
44
|
+
}): React.JSX.Element;
|
|
45
|
+
export declare const formatCommentDate: (date: Date) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type CursorData, type CursorOverlayState } from '@platejs/selection/react';
|
|
2
|
+
export declare const getCursorOverlayElement: () => Element | null;
|
|
3
|
+
export declare function Cursor({ id, caretPosition, data, selection, selectionRects }: CursorOverlayState<CursorData>): import("react").JSX.Element | null;
|
|
4
|
+
export declare function CursorOverlay(): import("react").JSX.Element;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
|
+
type DialogPrimitiveProps = React.ComponentProps<typeof DialogPrimitive.Root>;
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
import type * as React from 'react';
|
|
5
|
+
import type { ComponentProps } from 'react';
|
|
6
|
+
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
7
|
+
/** Dialog */
|
|
8
|
+
export type DialogProps = DialogPrimitiveProps;
|
|
9
|
+
export declare const DialogModal: React.FC<DialogPrimitive.DialogProps>;
|
|
10
|
+
export declare const DialogModalTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export declare function DialogPortal(props: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
12
|
+
export declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
13
|
+
export declare const DialogClosePrimitive: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export declare function DialogClose({ children, className, ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
|
|
15
|
+
declare const dialogContentVariants: (props?: ({
|
|
16
|
+
minHeight?: boolean | null | undefined;
|
|
17
|
+
size?: "none" | "lg" | "sm" | "md" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
18
|
+
variant?: "modal" | "full" | null | undefined;
|
|
19
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
|
+
declare function DialogModalContent({ as: Component, children, className, disableAutoFocus, dismissible, hideClose, minHeight, size, variant: variantProp, onPointerDownOutside, ...props }: {
|
|
21
|
+
as?: React.FC<ComponentProps<typeof DialogPrimitive.Content>>;
|
|
22
|
+
disableAutoFocus?: boolean;
|
|
23
|
+
dismissible?: boolean;
|
|
24
|
+
fixed?: boolean;
|
|
25
|
+
hideClose?: boolean;
|
|
26
|
+
} & VariantProps<typeof dialogContentVariants> & React.ComponentProps<typeof DialogPrimitive.Content>): React.JSX.Element;
|
|
27
|
+
export declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
28
|
+
export declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
29
|
+
export declare function DialogModalTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
|
|
30
|
+
export declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
|
|
31
|
+
export declare const DialogProvider: React.FC<import("jotai-x").ProviderProps<{
|
|
32
|
+
desktopVariant: "drawer" | "full" | "modal";
|
|
33
|
+
dismissible: boolean;
|
|
34
|
+
mobileVariant: "drawer" | "full" | "modal";
|
|
35
|
+
variant: "drawer" | "full" | "modal";
|
|
36
|
+
}>>, useDialogSet: <K extends "variant" | "dismissible" | "desktopVariant" | "mobileVariant">(key: K, options?: string | import("jotai-x").UseAtomOptions) => ({
|
|
37
|
+
desktopVariant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
38
|
+
dismissible: import("jotai-x").SimpleWritableAtom<boolean>;
|
|
39
|
+
mobileVariant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
40
|
+
variant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
41
|
+
} & object)[K] extends import("jotai").WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, useDialogStore: import("jotai-x").UseStoreApi<{
|
|
42
|
+
desktopVariant: "drawer" | "full" | "modal";
|
|
43
|
+
dismissible: boolean;
|
|
44
|
+
mobileVariant: "drawer" | "full" | "modal";
|
|
45
|
+
variant: "drawer" | "full" | "modal";
|
|
46
|
+
}, object>, useDialogValue: <K extends "variant" | "dismissible" | "desktopVariant" | "mobileVariant", S = ({
|
|
47
|
+
desktopVariant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
48
|
+
dismissible: import("jotai-x").SimpleWritableAtom<boolean>;
|
|
49
|
+
mobileVariant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
50
|
+
variant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
51
|
+
} & object)[K] extends import("jotai").Atom<infer V> ? V : never>(key: K, options?: ({
|
|
52
|
+
selector?: ((v: ({
|
|
53
|
+
desktopVariant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
54
|
+
dismissible: import("jotai-x").SimpleWritableAtom<boolean>;
|
|
55
|
+
mobileVariant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
56
|
+
variant: import("jotai-x").SimpleWritableAtom<"modal" | "full" | "drawer">;
|
|
57
|
+
} & object)[K] extends import("jotai").Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
|
|
58
|
+
equalityFn?: ((prev: S, next: S) => boolean) | undefined;
|
|
59
|
+
} & import("jotai-x").UseAtomOptions) | undefined, deps?: unknown[]) => S;
|
|
60
|
+
export declare const DialogContentProvider: React.FC<import("jotai-x").ProviderProps<{
|
|
61
|
+
fixed: boolean;
|
|
62
|
+
}>>, useDialogContentValue: <K extends "fixed", S = ({
|
|
63
|
+
fixed: import("jotai-x").SimpleWritableAtom<boolean>;
|
|
64
|
+
} & object)[K] extends import("jotai").Atom<infer V> ? V : never>(key: K, options?: ({
|
|
65
|
+
selector?: ((v: ({
|
|
66
|
+
fixed: import("jotai-x").SimpleWritableAtom<boolean>;
|
|
67
|
+
} & object)[K] extends import("jotai").Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
|
|
68
|
+
equalityFn?: ((prev: S, next: S) => boolean) | undefined;
|
|
69
|
+
} & import("jotai-x").UseAtomOptions) | undefined, deps?: unknown[]) => S;
|
|
70
|
+
export declare function Dialog({ desktopVariant, mobileVariant, ...props }: ComponentProps<typeof DialogProvider> & DialogProps): React.JSX.Element;
|
|
71
|
+
export declare function DialogTrigger(props: React.ComponentProps<typeof DialogModalTrigger>): React.JSX.Element;
|
|
72
|
+
export declare function DialogContent({ as, disableAutoFocus, fixed, hideClose, size, ...props }: React.ComponentProps<typeof DialogModalContent> & {
|
|
73
|
+
fixed?: boolean;
|
|
74
|
+
}): React.JSX.Element;
|
|
75
|
+
export declare function DialogBody({ children, className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
76
|
+
export declare function DialogTitle(props: React.ComponentProps<typeof DialogModalTitle>): React.JSX.Element;
|
|
77
|
+
/** Drawer */
|
|
78
|
+
export declare function Drawer(props: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
79
|
+
export declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
80
|
+
export declare function DrawerPortal(props: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
|
|
81
|
+
export declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
82
|
+
export declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
|
|
83
|
+
export declare function DrawerContent({ children, className, dismissible, onPointerDownOutside, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content> & {
|
|
84
|
+
dismissible?: boolean;
|
|
85
|
+
}): React.JSX.Element;
|
|
86
|
+
export declare const DrawerFooter: typeof DialogFooter;
|
|
87
|
+
export declare const DrawerHeader: typeof DialogHeader;
|
|
88
|
+
export declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
|
|
89
|
+
export declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export declare const dropdownMenuItemVariants: (props?: ({
|
|
5
|
+
size?: "default" | "none" | null | undefined;
|
|
6
|
+
variant?: "default" | "none" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type DropdownMenuProps = DropdownMenuPrimitive.DropdownMenuProps;
|
|
9
|
+
export declare function DropdownMenu(props: DropdownMenuProps): React.JSX.Element;
|
|
10
|
+
export declare function DropdownMenuTrigger(props: DropdownMenuPrimitive.DropdownMenuTriggerProps): React.JSX.Element;
|
|
11
|
+
export declare function DropdownMenuGroup(props: DropdownMenuPrimitive.DropdownMenuGroupProps): React.JSX.Element;
|
|
12
|
+
export declare function DropdownMenuPortal(props: DropdownMenuPrimitive.DropdownMenuPortalProps): React.JSX.Element;
|
|
13
|
+
export declare function DropdownMenuSub(props: DropdownMenuPrimitive.DropdownMenuSubProps): React.JSX.Element;
|
|
14
|
+
export declare function DropdownMenuRadioGroup(props: DropdownMenuPrimitive.DropdownMenuRadioGroupProps): React.JSX.Element;
|
|
15
|
+
export declare function DropdownMenuSubTrigger({ children, className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
export declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
|
|
19
|
+
export declare function DropdownMenuContent({ className, portal, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content> & {
|
|
20
|
+
portal?: boolean;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
export declare function DropdownMenuItem({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & VariantProps<typeof dropdownMenuItemVariants>): React.JSX.Element;
|
|
23
|
+
export declare function DropdownMenuCheckboxItem({ children, className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
|
|
24
|
+
export declare function DropdownMenuRadioItem({ children, className, hideIcon, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
|
|
25
|
+
hideIcon?: boolean;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
export declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
28
|
+
inset?: boolean;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
export declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
31
|
+
export declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
32
|
+
export declare function useOpenState(): {
|
|
33
|
+
open: boolean;
|
|
34
|
+
onOpenChange: (_value?: boolean) => void;
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type PlateStaticProps } from 'platejs/static';
|
|
3
|
+
export declare const editorVariants: (props?: ({
|
|
4
|
+
disabled?: boolean | null | undefined;
|
|
5
|
+
focused?: boolean | null | undefined;
|
|
6
|
+
variant?: "comment" | "default" | "select" | "update" | "demo" | "fullWidth" | "versionHistory" | "ai" | "aiChat" | "viewer" | "mention" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare function EditorStatic({ children, className, variant, ...props }: PlateStaticProps & VariantProps<typeof editorVariants>): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type PlateContentProps } from 'platejs/react';
|
|
3
|
+
import type * as React from 'react';
|
|
4
|
+
declare const editorContainerVariants: (props?: ({
|
|
5
|
+
variant?: "comment" | "default" | "select" | "demo" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare function EditorContainer({ className, variant, ...props }: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof editorContainerVariants>): React.JSX.Element;
|
|
8
|
+
declare const editorVariants: (props?: ({
|
|
9
|
+
disabled?: boolean | null | undefined;
|
|
10
|
+
focused?: boolean | null | undefined;
|
|
11
|
+
variant?: "comment" | "default" | "select" | "update" | "demo" | "fullWidth" | "versionHistory" | "ai" | "aiChat" | "viewer" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
export type EditorProps = PlateContentProps & VariantProps<typeof editorVariants>;
|
|
14
|
+
export declare function Editor({ className, disabled, focused, variant, onClick, onMouseDown, ...props }: PlateContentProps & VariantProps<typeof editorVariants>): React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type EmojiIconList } from '@platejs/emoji';
|
|
2
|
+
import { type EmojiDropdownMenuOptions, type UseEmojiPickerType } from '@platejs/emoji/react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ToolbarButton } from './toolbar';
|
|
5
|
+
export declare function EmojiToolbarButton({ options, ...props }: {
|
|
6
|
+
options?: EmojiDropdownMenuOptions;
|
|
7
|
+
} & React.ComponentPropsWithoutRef<typeof ToolbarButton>): React.JSX.Element;
|
|
8
|
+
export declare function EmojiPopover({ children, control, isOpen, setIsOpen, }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
control: React.ReactNode;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
setIsOpen: (open: boolean) => void;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export declare function EmojiPicker({ clearSearch, emoji, emojiLibrary, focusedCategory, hasFound, i18n, icons, isSearching, refs, searchResult, searchValue, setSearch, settings, visibleCategories, handleCategoryClick, onMouseOver, onSelectEmoji, }: Omit<UseEmojiPickerType, 'icons'> & {
|
|
15
|
+
icons?: EmojiIconList<React.ReactElement>;
|
|
16
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TEquationElement } from 'platejs';
|
|
2
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
3
|
+
export declare function EquationElementStatic(props: SlateElementProps<TEquationElement>): import("react").JSX.Element;
|
|
4
|
+
export declare function InlineEquationElementStatic(props: SlateElementProps<TEquationElement>): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TEquationElement } from 'platejs';
|
|
2
|
+
import { type PlateElementProps } from 'platejs/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare function EquationElement(props: PlateElementProps): React.JSX.Element;
|
|
5
|
+
export declare function InlineEquationElement(props: PlateElementProps<TEquationElement>): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* When a comments adapter is wired by the host surface, that surface owns the
|
|
4
|
+
* thread UI (typically a docked side panel). The in-package floating popover
|
|
5
|
+
* stays mounted only when no adapter is present, so older consumers without a
|
|
6
|
+
* surface-side panel still get inline mocks.
|
|
7
|
+
*/
|
|
8
|
+
export declare function FloatingDiscussion(): React.JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FloatingToolbarButtons(): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FloatingToolbarState } from '@platejs/floating';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
import { Toolbar } from './toolbar';
|
|
4
|
+
export declare function FloatingToolbar({ children, ref: refProp, state, ...props }: React.ComponentProps<typeof Toolbar> & {
|
|
5
|
+
state?: FloatingToolbarState;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { DropdownMenu } from './dropdown-menu';
|
|
3
|
+
export declare function FontColorToolbarButton(props: React.ComponentProps<typeof DropdownMenu>): React.JSX.Element;
|
|
4
|
+
export declare function ColorIcon({ group, value }: {
|
|
5
|
+
group: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
export declare const textColorItems: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const backgroundColorItems: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { type FrameAlignment, type TFrameElement } from '../components/editor/plugins/frame-types';
|
|
4
|
+
interface FrameSettingsButtonProps extends Omit<ComponentProps<'button'>, 'onClick'> {
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function FrameSettingsButton({ onClick, ...triggerProps }: FrameSettingsButtonProps): React.JSX.Element;
|
|
8
|
+
type FrameSettingsPanelProps = Omit<FrameSettingsFormProps, 'layout'>;
|
|
9
|
+
export declare function FrameSettingsPanel(props: FrameSettingsPanelProps): React.JSX.Element;
|
|
10
|
+
type FrameSettingsPopoverProps = Omit<FrameSettingsFormProps, 'layout'>;
|
|
11
|
+
export declare function FrameSettingsPopover(props: FrameSettingsPopoverProps): React.JSX.Element;
|
|
12
|
+
interface FrameSettingsFormProps {
|
|
13
|
+
initialAlign: FrameAlignment;
|
|
14
|
+
initialHint: string;
|
|
15
|
+
initialCaption: string;
|
|
16
|
+
updateElement: (updates: Partial<TFrameElement>) => void;
|
|
17
|
+
layout?: 'popover' | 'panel';
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GhostText(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SlateElementProps } from 'platejs/static';
|
|
2
|
+
export declare function HeadingElementStatic({ children, variant, ...props }: SlateElementProps & {
|
|
3
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
export declare function H1ElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
6
|
+
export declare function H2ElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
7
|
+
export declare function H3ElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
8
|
+
export declare function H4ElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
9
|
+
export declare function H5ElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
10
|
+
export declare function H6ElementStatic(props: SlateElementProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { PlateElementProps } from 'platejs/react';
|
|
3
|
+
declare const headingVariants: (props?: ({
|
|
4
|
+
isFirstBlock?: boolean | null | undefined;
|
|
5
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare function HeadingElement({ attributes, variant, ...props }: PlateElementProps & VariantProps<typeof headingVariants>): import("react").JSX.Element;
|
|
8
|
+
export declare function H1Element(props: PlateElementProps): import("react").JSX.Element;
|
|
9
|
+
export declare function H2Element(props: PlateElementProps): import("react").JSX.Element;
|
|
10
|
+
export declare function H3Element(props: PlateElementProps): import("react").JSX.Element;
|
|
11
|
+
export declare function H4Element(props: PlateElementProps): import("react").JSX.Element;
|
|
12
|
+
export declare function H5Element(props: PlateElementProps): import("react").JSX.Element;
|
|
13
|
+
export declare function H6Element(props: PlateElementProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HoverCard as HoverCardPrimitive } from 'radix-ui';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function HoverCardContent({ align, className, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type LucideProps } from 'lucide-react';
|
|
2
|
+
import type { IconName } from 'lucide-react/dynamic';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
interface SafeIconProps extends Omit<LucideProps, 'ref'> {
|
|
5
|
+
name: IconName | string | undefined;
|
|
6
|
+
fallback?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const SafeIcon: React.ForwardRefExoticComponent<SafeIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
interface IconPickerProps {
|
|
10
|
+
value?: IconName;
|
|
11
|
+
onValueChange?: (value: IconName) => void;
|
|
12
|
+
onClear?: () => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function IconPicker({ value, onValueChange, children }: IconPickerProps): React.JSX.Element;
|
|
16
|
+
export { SafeIcon, type IconName };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IconName } from 'lucide-react/dynamic';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { type IconSize, type TIconElement } from '../components/editor/plugins/icon-types';
|
|
4
|
+
type IconSettingsPanelProps = Omit<IconSettingsFormProps, 'layout'>;
|
|
5
|
+
export declare function IconSettingsPanel(props: IconSettingsPanelProps): React.JSX.Element;
|
|
6
|
+
type IconSettingsPopoverProps = Omit<IconSettingsFormProps, 'layout'> & {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function IconSettingsPopover({ children, ...props }: IconSettingsPopoverProps): React.JSX.Element;
|
|
10
|
+
interface IconSettingsFormProps {
|
|
11
|
+
initialName: IconName;
|
|
12
|
+
initialSize: IconSize;
|
|
13
|
+
initialColor: string;
|
|
14
|
+
updateElement: (updates: Partial<TIconElement>) => void;
|
|
15
|
+
layout?: 'popover' | 'panel';
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { TElement } from 'platejs';
|
|
3
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Ariakit } from './menu';
|
|
6
|
+
type FilterFn = (item: {
|
|
7
|
+
value: string;
|
|
8
|
+
group?: string;
|
|
9
|
+
keywords?: string[];
|
|
10
|
+
label?: string;
|
|
11
|
+
}, search: string) => boolean;
|
|
12
|
+
type InlineComboboxProps = {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
element: TElement;
|
|
15
|
+
trigger: string;
|
|
16
|
+
filter?: FilterFn | false;
|
|
17
|
+
hideWhenNoValue?: boolean;
|
|
18
|
+
showTrigger?: boolean;
|
|
19
|
+
value?: string;
|
|
20
|
+
setValue?: (value: string) => void;
|
|
21
|
+
};
|
|
22
|
+
declare function InlineCombobox({ children, element, filter, hideWhenNoValue, setValue: setValueProp, showTrigger, trigger, value: valueProp, }: InlineComboboxProps): React.JSX.Element;
|
|
23
|
+
declare function InlineComboboxInput({ className, ref: refProp, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
|
|
24
|
+
declare const comboboxVariants: (props?: ({
|
|
25
|
+
variant?: "default" | "emoji" | "slash" | "mention" | null | undefined;
|
|
26
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
27
|
+
declare function InlineComboboxContent({ className, variant, ...props }: React.ComponentProps<typeof Ariakit.ComboboxPopover> & VariantProps<typeof comboboxVariants>): React.JSX.Element;
|
|
28
|
+
declare function InlineComboboxItem({ className, focusEditor, group, keywords, label, onClick, ...props }: {
|
|
29
|
+
focusEditor?: boolean;
|
|
30
|
+
group?: string;
|
|
31
|
+
keywords?: string[];
|
|
32
|
+
label?: string;
|
|
33
|
+
} & Ariakit.ComboboxItemProps & Required<Pick<Ariakit.ComboboxItemProps, 'value'>>): React.JSX.Element | null;
|
|
34
|
+
declare function InlineComboboxEmpty({ children, className }: HTMLAttributes<HTMLDivElement>): React.JSX.Element | null;
|
|
35
|
+
declare function InlineComboboxGroup({ className, ...props }: React.ComponentProps<typeof Ariakit.ComboboxGroup>): React.JSX.Element;
|
|
36
|
+
declare function InlineComboboxGroupLabel({ className, ...props }: React.ComponentProps<typeof Ariakit.ComboboxGroupLabel>): React.JSX.Element;
|
|
37
|
+
declare const InlineComboboxRow: (props: Ariakit.ComboboxRowProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
38
|
+
export { InlineCombobox, InlineComboboxContent, InlineComboboxEmpty, InlineComboboxGroup, InlineComboboxGroupLabel, InlineComboboxInput, InlineComboboxItem, InlineComboboxRow, };
|