@remarkablejames/editor 0.0.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/LICENSE +21 -0
- package/README.md +62 -0
- package/lib/ActionMenuButton-B0EHT9CC.js +35 -0
- package/lib/ActionMenuButton-J1el_e6Z.cjs +1 -0
- package/lib/Attachment.cjs +19 -0
- package/lib/Attachment.js +273 -0
- package/lib/Blockquote.cjs +5 -0
- package/lib/Blockquote.js +107 -0
- package/lib/Bold.cjs +1 -0
- package/lib/Bold.js +123 -0
- package/lib/BulletList.cjs +1 -0
- package/lib/BulletList.js +53 -0
- package/lib/Callout.cjs +1 -0
- package/lib/Callout.js +225 -0
- package/lib/Clear.cjs +1 -0
- package/lib/Clear.js +49 -0
- package/lib/Code.cjs +1 -0
- package/lib/Code.js +100 -0
- package/lib/CodeBlock.cjs +44 -0
- package/lib/CodeBlock.js +4065 -0
- package/lib/CodeView.cjs +1 -0
- package/lib/CodeView.js +81 -0
- package/lib/Color.cjs +1 -0
- package/lib/Color.js +134 -0
- package/lib/Column.cjs +1 -0
- package/lib/Column.js +230 -0
- package/lib/Drawer-BCWVN-4l.js +1125 -0
- package/lib/Drawer-BTouEroZ.cjs +2 -0
- package/lib/Drawer.cjs +1 -0
- package/lib/Drawer.js +7 -0
- package/lib/Emoji.cjs +1 -0
- package/lib/Emoji.js +19888 -0
- package/lib/Excalidraw.cjs +1 -0
- package/lib/Excalidraw.js +276 -0
- package/lib/ExportPdf.cjs +39 -0
- package/lib/ExportPdf.js +142 -0
- package/lib/ExportWord.cjs +1 -0
- package/lib/ExportWord.js +107 -0
- package/lib/FontFamily.cjs +1 -0
- package/lib/FontFamily.js +84 -0
- package/lib/FontSize.cjs +1 -0
- package/lib/FontSize.js +106 -0
- package/lib/Heading.cjs +1 -0
- package/lib/Heading.js +167 -0
- package/lib/Highlight.cjs +1 -0
- package/lib/Highlight.js +203 -0
- package/lib/History.cjs +1 -0
- package/lib/History.js +990 -0
- package/lib/HorizontalRule.cjs +1 -0
- package/lib/HorizontalRule.js +118 -0
- package/lib/Iframe-BdgiWGml.js +416 -0
- package/lib/Iframe-BfBLILDA.cjs +1 -0
- package/lib/Iframe.cjs +1 -0
- package/lib/Iframe.js +7 -0
- package/lib/Image.cjs +1 -0
- package/lib/Image.js +6 -0
- package/lib/ImageGif.cjs +1 -0
- package/lib/ImageGif.js +400 -0
- package/lib/ImportWord.cjs +1 -0
- package/lib/ImportWord.js +145 -0
- package/lib/Indent-BpMcZKok.js +148 -0
- package/lib/Indent-Dvqz_WEn.cjs +1 -0
- package/lib/Indent.cjs +1 -0
- package/lib/Indent.js +6 -0
- package/lib/Italic.cjs +1 -0
- package/lib/Italic.js +123 -0
- package/lib/Katex-B8_uprkO.js +2753 -0
- package/lib/Katex-BQyeCeQ0.cjs +4 -0
- package/lib/Katex.cjs +1 -0
- package/lib/Katex.js +6 -0
- package/lib/LineHeight.cjs +1 -0
- package/lib/LineHeight.js +89 -0
- package/lib/Link.cjs +1 -0
- package/lib/Link.js +6 -0
- package/lib/LinkEditBlock-BX0fXXpF.js +1185 -0
- package/lib/LinkEditBlock-CIshn_8F.cjs +5 -0
- package/lib/Mention.cjs +1 -0
- package/lib/Mention.js +265 -0
- package/lib/Mermaid-0GiGVxn0.cjs +2 -0
- package/lib/Mermaid-D8bbIgAl.js +381 -0
- package/lib/Mermaid.cjs +1 -0
- package/lib/Mermaid.js +7 -0
- package/lib/MoreMark.cjs +1 -0
- package/lib/MoreMark.js +157 -0
- package/lib/OrderedList.cjs +1 -0
- package/lib/OrderedList.js +52 -0
- package/lib/SearchAndReplace.cjs +1 -0
- package/lib/SearchAndReplace.js +305 -0
- package/lib/SlashCommand.cjs +1 -0
- package/lib/SlashCommand.js +90 -0
- package/lib/SlashCommandNodeView-BcmtKbEE.js +249 -0
- package/lib/SlashCommandNodeView-rDJ7OjRd.cjs +1 -0
- package/lib/Strike.cjs +1 -0
- package/lib/Strike.js +112 -0
- package/lib/Table-BEhNBeuA.cjs +5 -0
- package/lib/Table-DbxuP5xh.js +1939 -0
- package/lib/Table.cjs +1 -0
- package/lib/Table.js +5 -0
- package/lib/TaskList.cjs +1 -0
- package/lib/TaskList.js +63 -0
- package/lib/TextAlign.cjs +1 -0
- package/lib/TextAlign.js +165 -0
- package/lib/TextDirection.cjs +1 -0
- package/lib/TextDirection.js +110 -0
- package/lib/TextUnderline.cjs +1 -0
- package/lib/TextUnderline.js +115 -0
- package/lib/Twitter-9I6BLNmg.js +1666 -0
- package/lib/Twitter-BuEBgpi9.cjs +1 -0
- package/lib/Twitter.cjs +1 -0
- package/lib/Twitter.js +6 -0
- package/lib/Video.cjs +1 -0
- package/lib/Video.js +7 -0
- package/lib/bubble.cjs +3 -0
- package/lib/bubble.d.ts +1 -0
- package/lib/bubble.js +9533 -0
- package/lib/clsx-CDyrfCnw.js +7391 -0
- package/lib/clsx-CXbNJWDD.cjs +54 -0
- package/lib/components/ActionButton.d.ts +23 -0
- package/lib/components/ActionMenuButton.d.ts +28 -0
- package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleKatex.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleLink.d.ts +6 -0
- package/lib/components/Bubble/RichTextBubbleMedia.d.ts +4 -0
- package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -0
- package/lib/components/Bubble/RichTextBubbleTable.d.ts +5 -0
- package/lib/components/Bubble/RichTextBubbleText.d.ts +5 -0
- package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -0
- package/lib/components/Bubble/formatBubble.d.ts +55 -0
- package/lib/components/Bubble/index.d.ts +13 -0
- package/lib/components/ColorPicker.d.ts +11 -0
- package/lib/components/ReactBus.d.ts +11 -0
- package/lib/components/RichTextProvider.d.ts +8 -0
- package/lib/components/SizeSetter/SizeSetter.d.ts +13 -0
- package/lib/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +1 -0
- package/lib/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +1 -0
- package/lib/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +5 -0
- package/lib/components/icons/Activity.d.ts +2 -0
- package/lib/components/icons/Animas.d.ts +2 -0
- package/lib/components/icons/AspectRatio.d.ts +2 -0
- package/lib/components/icons/Blockquote.d.ts +2 -0
- package/lib/components/icons/CodeView.d.ts +1 -0
- package/lib/components/icons/ColumnAddLeft.d.ts +1 -0
- package/lib/components/icons/ColumnAddRight.d.ts +1 -0
- package/lib/components/icons/DeleteColumn.d.ts +2 -0
- package/lib/components/icons/DeleteRow.d.ts +2 -0
- package/lib/components/icons/Direction.d.ts +1 -0
- package/lib/components/icons/Excalidraw.d.ts +1 -0
- package/lib/components/icons/ExportPdf.d.ts +1 -0
- package/lib/components/icons/ExportWord.d.ts +2 -0
- package/lib/components/icons/FileWordOutline.d.ts +2 -0
- package/lib/components/icons/Flag.d.ts +2 -0
- package/lib/components/icons/Food.d.ts +2 -0
- package/lib/components/icons/GIfIcon.d.ts +1 -0
- package/lib/components/icons/Html.d.ts +1 -0
- package/lib/components/icons/Icon.d.ts +8 -0
- package/lib/components/icons/IconColorFill.d.ts +5 -0
- package/lib/components/icons/IconHighlightFill.d.ts +3 -0
- package/lib/components/icons/ImportWord.d.ts +2 -0
- package/lib/components/icons/LeftToRight.d.ts +1 -0
- package/lib/components/icons/LineHeight.d.ts +2 -0
- package/lib/components/icons/MenuDown.d.ts +2 -0
- package/lib/components/icons/Mermaid.d.ts +1 -0
- package/lib/components/icons/NoFill.d.ts +1 -0
- package/lib/components/icons/Object.d.ts +2 -0
- package/lib/components/icons/RightToLeft.d.ts +1 -0
- package/lib/components/icons/SizeL.d.ts +2 -0
- package/lib/components/icons/SizeM.d.ts +2 -0
- package/lib/components/icons/SizeS.d.ts +2 -0
- package/lib/components/icons/Symbol.d.ts +2 -0
- package/lib/components/icons/Travel.d.ts +2 -0
- package/lib/components/icons/Twitter.d.ts +1 -0
- package/lib/components/icons/icons.d.ts +1 -0
- package/lib/components/icons/index.d.ts +12 -0
- package/lib/components/index.d.ts +6 -0
- package/lib/components/ui/button.d.ts +11 -0
- package/lib/components/ui/checkbox.d.ts +4 -0
- package/lib/components/ui/dialog.d.ts +19 -0
- package/lib/components/ui/dropdown-menu.d.ts +27 -0
- package/lib/components/ui/emoji-picker.d.ts +7 -0
- package/lib/components/ui/index.d.ts +15 -0
- package/lib/components/ui/input.d.ts +5 -0
- package/lib/components/ui/label.d.ts +5 -0
- package/lib/components/ui/popover.d.ts +6 -0
- package/lib/components/ui/select.d.ts +13 -0
- package/lib/components/ui/separator.d.ts +4 -0
- package/lib/components/ui/switch.d.ts +4 -0
- package/lib/components/ui/tabs.d.ts +7 -0
- package/lib/components/ui/textarea.d.ts +5 -0
- package/lib/components/ui/toast.d.ts +15 -0
- package/lib/components/ui/toaster.d.ts +1 -0
- package/lib/components/ui/toggle.d.ts +12 -0
- package/lib/components/ui/tooltip.d.ts +7 -0
- package/lib/components/ui/use-toast.d.ts +44 -0
- package/lib/constants/index.d.ts +47 -0
- package/lib/constants/resetCSS.d.ts +1 -0
- package/lib/delete-node-CosiBes5.cjs +1 -0
- package/lib/delete-node-eQHsyyhR.js +24 -0
- package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
- package/lib/dom-dataset-CIEeltF6.js +47 -0
- package/lib/dropdown-menu-Bs69ZBbO.js +143 -0
- package/lib/dropdown-menu-DjWlG2-J.cjs +1 -0
- package/lib/extensions/Attachment/Attachment.d.ts +15 -0
- package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -0
- package/lib/extensions/Attachment/components/NodeViewAttachment/FileIconString.d.ts +1 -0
- package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -0
- package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -0
- package/lib/extensions/Attachment/index.d.ts +1 -0
- package/lib/extensions/Blockquote/Blockquote.d.ts +6 -0
- package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -0
- package/lib/extensions/Blockquote/index.d.ts +1 -0
- package/lib/extensions/Bold/Bold.d.ts +6 -0
- package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -0
- package/lib/extensions/Bold/index.d.ts +1 -0
- package/lib/extensions/BulletList/BulletList.d.ts +6 -0
- package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -0
- package/lib/extensions/BulletList/index.d.ts +1 -0
- package/lib/extensions/Callout/Callout.d.ts +18 -0
- package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -0
- package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -0
- package/lib/extensions/Callout/index.d.ts +1 -0
- package/lib/extensions/Clear/Clear.d.ts +6 -0
- package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -0
- package/lib/extensions/Clear/index.d.ts +1 -0
- package/lib/extensions/Code/Code.d.ts +6 -0
- package/lib/extensions/Code/components/RichTextCode.d.ts +1 -0
- package/lib/extensions/Code/index.d.ts +1 -0
- package/lib/extensions/CodeBlock/CodeBlock.d.ts +21 -0
- package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +1 -0
- package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +1 -0
- package/lib/extensions/CodeBlock/index.d.ts +1 -0
- package/lib/extensions/CodeView/CodeView.d.ts +17 -0
- package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -0
- package/lib/extensions/CodeView/index.d.ts +1 -0
- package/lib/extensions/Color/Color.d.ts +22 -0
- package/lib/extensions/Color/components/RichTextColor.d.ts +1 -0
- package/lib/extensions/Color/index.d.ts +1 -0
- package/lib/extensions/Column/Column.d.ts +17 -0
- package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -0
- package/lib/extensions/Column/index.d.ts +1 -0
- package/lib/extensions/Drawer/Drawer.d.ts +15 -0
- package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -0
- package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +28 -0
- package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -0
- package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +1 -0
- package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -0
- package/lib/extensions/Drawer/index.d.ts +1 -0
- package/lib/extensions/Emoji/Emoji.d.ts +5 -0
- package/lib/extensions/Emoji/components/EmojiList/EmojiNodeView.d.ts +11 -0
- package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +1 -0
- package/lib/extensions/Emoji/index.d.ts +1 -0
- package/lib/extensions/Excalidraw/Excalidraw.d.ts +17 -0
- package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -0
- package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -0
- package/lib/extensions/Excalidraw/index.d.ts +1 -0
- package/lib/extensions/ExportPdf/ExportPdf.d.ts +21 -0
- package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -0
- package/lib/extensions/ExportPdf/index.d.ts +1 -0
- package/lib/extensions/ExportWord/ExportWord.d.ts +13 -0
- package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -0
- package/lib/extensions/ExportWord/index.d.ts +1 -0
- package/lib/extensions/FontFamily/FontFamily.d.ts +10 -0
- package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +15 -0
- package/lib/extensions/FontFamily/index.d.ts +1 -0
- package/lib/extensions/FontSize/FontSize.d.ts +32 -0
- package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +12 -0
- package/lib/extensions/FontSize/index.d.ts +1 -0
- package/lib/extensions/Heading/Heading.d.ts +6 -0
- package/lib/extensions/Heading/components/RichTextHeading.d.ts +15 -0
- package/lib/extensions/Heading/index.d.ts +1 -0
- package/lib/extensions/Highlight/Highlight.d.ts +18 -0
- package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +1 -0
- package/lib/extensions/Highlight/index.d.ts +1 -0
- package/lib/extensions/History/History.d.ts +6 -0
- package/lib/extensions/History/components/RichTextHistory.d.ts +2 -0
- package/lib/extensions/History/index.d.ts +1 -0
- package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
- package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -0
- package/lib/extensions/HorizontalRule/index.d.ts +1 -0
- package/lib/extensions/Iframe/Iframe.d.ts +16 -0
- package/lib/extensions/Iframe/components/IframeNodeView.d.ts +2 -0
- package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -0
- package/lib/extensions/Iframe/index.d.ts +1 -0
- package/lib/extensions/Iframe/utils.d.ts +9 -0
- package/lib/extensions/Image/Image.d.ts +64 -0
- package/lib/extensions/Image/components/ImageCropper.d.ts +1 -0
- package/lib/extensions/Image/components/ImageView.d.ts +2 -0
- package/lib/extensions/Image/components/RichTextImage.d.ts +1 -0
- package/lib/extensions/Image/index.d.ts +1 -0
- package/lib/extensions/ImageGif/ImageGif.d.ts +39 -0
- package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -0
- package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +1 -0
- package/lib/extensions/ImageGif/components/services.d.ts +458 -0
- package/lib/extensions/ImageGif/index.d.ts +1 -0
- package/lib/extensions/ImportWord/ImportWord.d.ts +18 -0
- package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -0
- package/lib/extensions/ImportWord/index.d.ts +1 -0
- package/lib/extensions/Indent/Indent.d.ts +23 -0
- package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -0
- package/lib/extensions/Indent/index.d.ts +1 -0
- package/lib/extensions/Italic/Italic.d.ts +6 -0
- package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -0
- package/lib/extensions/Italic/index.d.ts +1 -0
- package/lib/extensions/Katex/Katex.d.ts +17 -0
- package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -0
- package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -0
- package/lib/extensions/Katex/index.d.ts +1 -0
- package/lib/extensions/LineHeight/LineHeight.d.ts +7 -0
- package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -0
- package/lib/extensions/LineHeight/index.d.ts +1 -0
- package/lib/extensions/Link/Link.d.ts +6 -0
- package/lib/extensions/Link/components/LinkEditBlock.d.ts +9 -0
- package/lib/extensions/Link/components/LinkViewBlock.d.ts +8 -0
- package/lib/extensions/Link/components/RichTextLink.d.ts +1 -0
- package/lib/extensions/Link/index.d.ts +1 -0
- package/lib/extensions/Mention/Mention.d.ts +3 -0
- package/lib/extensions/Mention/components/NodeViewMentionList.d.ts +16 -0
- package/lib/extensions/Mention/index.d.ts +1 -0
- package/lib/extensions/Mermaid/Mermaid.d.ts +27 -0
- package/lib/extensions/Mermaid/components/EditMermaidBlock.d.ts +9 -0
- package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +9 -0
- package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -0
- package/lib/extensions/Mermaid/index.d.ts +1 -0
- package/lib/extensions/MoreMark/MoreMark.d.ts +20 -0
- package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +14 -0
- package/lib/extensions/MoreMark/index.d.ts +1 -0
- package/lib/extensions/OrderedList/OrderedList.d.ts +6 -0
- package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -0
- package/lib/extensions/OrderedList/index.d.ts +1 -0
- package/lib/extensions/SearchAndReplace/SearchAndReplace.d.ts +36 -0
- package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -0
- package/lib/extensions/SearchAndReplace/index.d.ts +1 -0
- package/lib/extensions/SlashCommand/SlashCommand.d.ts +4 -0
- package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +6 -0
- package/lib/extensions/SlashCommand/components/SlashCommandNodeView.d.ts +3 -0
- package/lib/extensions/SlashCommand/index.d.ts +1 -0
- package/lib/extensions/SlashCommand/renderCommandListDefault.d.ts +7 -0
- package/lib/extensions/SlashCommand/types.d.ts +20 -0
- package/lib/extensions/Strike/Strike.d.ts +6 -0
- package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -0
- package/lib/extensions/Strike/index.d.ts +1 -0
- package/lib/extensions/Table/Table.d.ts +21 -0
- package/lib/extensions/Table/TableCellBackground.d.ts +14 -0
- package/lib/extensions/Table/components/CreateTablePopover.d.ts +7 -0
- package/lib/extensions/Table/components/RichTextTable.d.ts +1 -0
- package/lib/extensions/Table/index.d.ts +1 -0
- package/lib/extensions/TaskList/TaskList.d.ts +11 -0
- package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -0
- package/lib/extensions/TaskList/index.d.ts +1 -0
- package/lib/extensions/TextAlign/TextAlign.d.ts +17 -0
- package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +14 -0
- package/lib/extensions/TextAlign/index.d.ts +1 -0
- package/lib/extensions/TextDirection/TextDirection.d.ts +5 -0
- package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +15 -0
- package/lib/extensions/TextDirection/index.d.ts +1 -0
- package/lib/extensions/TextUnderline/TextUnderline.d.ts +6 -0
- package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -0
- package/lib/extensions/TextUnderline/index.d.ts +1 -0
- package/lib/extensions/Twitter/Twitter.d.ts +46 -0
- package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +6 -0
- package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +8 -0
- package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -0
- package/lib/extensions/Twitter/index.d.ts +1 -0
- package/lib/extensions/Video/Video.d.ts +66 -0
- package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -0
- package/lib/extensions/Video/index.d.ts +1 -0
- package/lib/hooks/useActive.d.ts +21 -0
- package/lib/hooks/useAttributes.d.ts +2 -0
- package/lib/hooks/useButtonProps.d.ts +1 -0
- package/lib/hooks/useCopy.d.ts +5 -0
- package/lib/hooks/useExtension.d.ts +1 -0
- package/lib/hooks/useLocalStorage.d.ts +13 -0
- package/lib/index-4Q5IhypJ.js +1349 -0
- package/lib/index-BCzvbrf5.cjs +12 -0
- package/lib/index-BG0kQamI.js +285 -0
- package/lib/index-C-tDsIKJ.js +1631 -0
- package/lib/index-C1WCZhyA.js +237 -0
- package/lib/index-CjhjjJsN.cjs +1 -0
- package/lib/index-Cs6cp0Y6.cjs +1 -0
- package/lib/index-CsSfYR30.js +1351 -0
- package/lib/index-D9oM__YW.cjs +1 -0
- package/lib/index-DjDf4BK8.js +707 -0
- package/lib/index-NsYff_Ni.cjs +1 -0
- package/lib/index-bVGIXhRg.cjs +1 -0
- package/lib/index-lj3VWExo.js +4883 -0
- package/lib/index-neeeY2o7.cjs +4 -0
- package/lib/index.cjs +115 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +338 -0
- package/lib/jsx-runtime-CT7Pcg-t.js +13 -0
- package/lib/jsx-runtime-C_NLcKys.cjs +1 -0
- package/lib/lib/utils.d.ts +2 -0
- package/lib/locale-bundle.cjs +1 -0
- package/lib/locale-bundle.d.ts +1 -0
- package/lib/locale-bundle.js +11 -0
- package/lib/locales/en.d.ts +196 -0
- package/lib/locales/fi.d.ts +196 -0
- package/lib/locales/hu.d.ts +196 -0
- package/lib/locales/index.d.ts +1198 -0
- package/lib/locales/pt-br.d.ts +196 -0
- package/lib/locales/vi.d.ts +196 -0
- package/lib/locales/zh-cn.d.ts +196 -0
- package/lib/plugins/image-upload.d.ts +13 -0
- package/lib/popover-CPr9bHYn.js +24 -0
- package/lib/popover-D-hUKDYu.cjs +1 -0
- package/lib/renderNodeView-BJSrgyGj.js +28 -0
- package/lib/renderNodeView-DfLmGrgA.cjs +1 -0
- package/lib/select-C2KF4RNg.cjs +1 -0
- package/lib/select-CuE_HaQJ.js +120 -0
- package/lib/separator-CHzYNMVt.js +293 -0
- package/lib/separator-_gvUNba_.cjs +1 -0
- package/lib/store/EditorEditableReactive.d.ts +1 -0
- package/lib/store/ThemeColorReactive.d.ts +1 -0
- package/lib/store/commandList.d.ts +2 -0
- package/lib/store/editor.d.ts +21 -0
- package/lib/store/store.d.ts +3 -0
- package/lib/style.css +1 -0
- package/lib/textarea-DZj6EY-N.cjs +1 -0
- package/lib/textarea-gEoNp9CA.js +20 -0
- package/lib/theme/theme.d.ts +369 -0
- package/lib/theme.cjs +1 -0
- package/lib/theme.js +395 -0
- package/lib/types.d.ts +230 -0
- package/lib/updatePosition-Cjuj2E26.cjs +1 -0
- package/lib/updatePosition-e90ZrFWW.js +16 -0
- package/lib/utils/base64.d.ts +2 -0
- package/lib/utils/checkIsVideoUrl.d.ts +1 -0
- package/lib/utils/color.d.ts +7 -0
- package/lib/utils/columns.d.ts +14 -0
- package/lib/utils/customEvents/events.constant.d.ts +6 -0
- package/lib/utils/delete-node.d.ts +2 -0
- package/lib/utils/dom-dataset.d.ts +28 -0
- package/lib/utils/download.d.ts +1 -0
- package/lib/utils/dynamicCSS.d.ts +25 -0
- package/lib/utils/editor-container-size.d.ts +4 -0
- package/lib/utils/file.d.ts +30 -0
- package/lib/utils/getRenderContainer.d.ts +3 -0
- package/lib/utils/indent.d.ts +14 -0
- package/lib/utils/is-mobile.d.ts +19 -0
- package/lib/utils/json.d.ts +2 -0
- package/lib/utils/lru-cache.d.ts +31 -0
- package/lib/utils/mitt.d.ts +24 -0
- package/lib/utils/node.d.ts +15 -0
- package/lib/utils/pdf.d.ts +3 -0
- package/lib/utils/plateform.d.ts +11 -0
- package/lib/utils/renderNodeView.d.ts +6 -0
- package/lib/utils/shortId.d.ts +1 -0
- package/lib/utils/storage.d.ts +2 -0
- package/lib/utils/updatePosition.d.ts +1 -0
- package/lib/utils/utils.d.ts +20 -0
- package/lib/utils/validateFile.d.ts +16 -0
- package/package.json +845 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function d(e) {
|
|
2
|
+
try {
|
|
3
|
+
return JSON.stringify(e);
|
|
4
|
+
} catch {
|
|
5
|
+
return JSON.stringify({});
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function p(e, s = !1) {
|
|
9
|
+
return (r) => {
|
|
10
|
+
const o = e.startsWith("data-") ? e : `data-${e}`;
|
|
11
|
+
let t = decodeURIComponent(r.getAttribute(o));
|
|
12
|
+
if (t == null || typeof t == "string" && t === "null")
|
|
13
|
+
try {
|
|
14
|
+
const c = r.outerHTML.match(/([\S\s])+?="([\S\s])+?"/g);
|
|
15
|
+
c && c.length > 0 && (t = (c.map((a) => a.trim()).reduce((a, u) => {
|
|
16
|
+
const i = u.indexOf("="), f = [u.slice(0, i), u.slice(i + 1).slice(1, -1)];
|
|
17
|
+
return a[f[0]] = f[1], a;
|
|
18
|
+
}, {})[e.toLowerCase()] || "").replaceAll(""", '"'));
|
|
19
|
+
} catch (l) {
|
|
20
|
+
console.error("Error getDatasetAttribute ", l.message, r);
|
|
21
|
+
}
|
|
22
|
+
if (s)
|
|
23
|
+
try {
|
|
24
|
+
return JSON.parse(t);
|
|
25
|
+
} catch {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
if (t.includes("%") || t.includes("auto"))
|
|
29
|
+
return t;
|
|
30
|
+
const n = Number.parseInt(t);
|
|
31
|
+
return n !== n ? t : n;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function h(e) {
|
|
35
|
+
const { attrs: s } = e;
|
|
36
|
+
return Object.keys(s).reduce((r, o) => {
|
|
37
|
+
const t = s[o];
|
|
38
|
+
if (t == null)
|
|
39
|
+
return r;
|
|
40
|
+
let n = "";
|
|
41
|
+
return typeof t == "object" ? n = d(t) : n = t, r[o] = n, r;
|
|
42
|
+
}, /* @__PURE__ */ Object.create(null));
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
p as g,
|
|
46
|
+
h as n
|
|
47
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { jsx as c, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { ChevronRight as d, Check as h, Circle as l } from "lucide-react";
|
|
4
|
+
import * as s from "react";
|
|
5
|
+
import { c as o } from "./index-lj3VWExo.js";
|
|
6
|
+
const R = t.Root, I = t.Trigger, S = t.Portal, C = t.Sub, m = s.forwardRef(({ className: e, inset: r, children: i, ...a }, n) => /* @__PURE__ */ x(
|
|
7
|
+
t.SubTrigger,
|
|
8
|
+
{
|
|
9
|
+
ref: n,
|
|
10
|
+
className: o(
|
|
11
|
+
"richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",
|
|
12
|
+
r && "richtext-pl-8",
|
|
13
|
+
e
|
|
14
|
+
),
|
|
15
|
+
...a,
|
|
16
|
+
children: [
|
|
17
|
+
i,
|
|
18
|
+
/* @__PURE__ */ c(d, { className: "richtext-ml-auto richtext-size-4" })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
));
|
|
22
|
+
m.displayName = t.SubTrigger.displayName;
|
|
23
|
+
const p = s.forwardRef(({ className: e, ...r }, i) => /* @__PURE__ */ c(
|
|
24
|
+
t.SubContent,
|
|
25
|
+
{
|
|
26
|
+
"data-richtext-portal": !0,
|
|
27
|
+
ref: i,
|
|
28
|
+
className: o(
|
|
29
|
+
"richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
|
|
30
|
+
e
|
|
31
|
+
),
|
|
32
|
+
...r
|
|
33
|
+
}
|
|
34
|
+
));
|
|
35
|
+
p.displayName = t.SubContent.displayName;
|
|
36
|
+
const u = s.forwardRef(({ className: e, sideOffset: r = 4, ...i }, a) => /* @__PURE__ */ c(t.Portal, { "data-richtext-portal": !0, children: /* @__PURE__ */ c(
|
|
37
|
+
t.Content,
|
|
38
|
+
{
|
|
39
|
+
"data-richtext-portal": !0,
|
|
40
|
+
ref: a,
|
|
41
|
+
sideOffset: r,
|
|
42
|
+
className: o(
|
|
43
|
+
"richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
|
|
44
|
+
e
|
|
45
|
+
),
|
|
46
|
+
...i
|
|
47
|
+
}
|
|
48
|
+
) }));
|
|
49
|
+
u.displayName = t.Content.displayName;
|
|
50
|
+
const f = s.forwardRef(({ className: e, inset: r, ...i }, a) => /* @__PURE__ */ c(
|
|
51
|
+
t.Item,
|
|
52
|
+
{
|
|
53
|
+
ref: a,
|
|
54
|
+
className: o(
|
|
55
|
+
"richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
|
|
56
|
+
r && "richtext-pl-8",
|
|
57
|
+
e
|
|
58
|
+
),
|
|
59
|
+
...i
|
|
60
|
+
}
|
|
61
|
+
));
|
|
62
|
+
f.displayName = t.Item.displayName;
|
|
63
|
+
const b = s.forwardRef(({ className: e, children: r, checked: i, ...a }, n) => /* @__PURE__ */ x(
|
|
64
|
+
t.CheckboxItem,
|
|
65
|
+
{
|
|
66
|
+
checked: i,
|
|
67
|
+
ref: n,
|
|
68
|
+
className: o(
|
|
69
|
+
"richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
|
|
70
|
+
e
|
|
71
|
+
),
|
|
72
|
+
...a,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ c("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ c(t.ItemIndicator, { children: /* @__PURE__ */ c(h, { className: "richtext-size-4" }) }) }),
|
|
75
|
+
r
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
));
|
|
79
|
+
b.displayName = t.CheckboxItem.displayName;
|
|
80
|
+
const g = s.forwardRef(({ className: e, children: r, ...i }, a) => /* @__PURE__ */ x(
|
|
81
|
+
t.RadioItem,
|
|
82
|
+
{
|
|
83
|
+
ref: a,
|
|
84
|
+
className: o(
|
|
85
|
+
"richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
|
|
86
|
+
e
|
|
87
|
+
),
|
|
88
|
+
...i,
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ c("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ c(t.ItemIndicator, { children: /* @__PURE__ */ c(l, { className: "richtext-size-2 richtext-fill-current" }) }) }),
|
|
91
|
+
r
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
));
|
|
95
|
+
g.displayName = t.RadioItem.displayName;
|
|
96
|
+
const N = s.forwardRef(({ className: e, inset: r, ...i }, a) => /* @__PURE__ */ c(
|
|
97
|
+
t.Label,
|
|
98
|
+
{
|
|
99
|
+
ref: a,
|
|
100
|
+
className: o(
|
|
101
|
+
"richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",
|
|
102
|
+
r && "richtext-pl-8",
|
|
103
|
+
e
|
|
104
|
+
),
|
|
105
|
+
...i
|
|
106
|
+
}
|
|
107
|
+
));
|
|
108
|
+
N.displayName = t.Label.displayName;
|
|
109
|
+
const w = s.forwardRef(({ className: e, ...r }, i) => /* @__PURE__ */ c(
|
|
110
|
+
t.Separator,
|
|
111
|
+
{
|
|
112
|
+
className: o("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
|
|
113
|
+
ref: i,
|
|
114
|
+
...r
|
|
115
|
+
}
|
|
116
|
+
));
|
|
117
|
+
w.displayName = t.Separator.displayName;
|
|
118
|
+
function y({ className: e, ...r }) {
|
|
119
|
+
return /* @__PURE__ */ c(
|
|
120
|
+
"span",
|
|
121
|
+
{
|
|
122
|
+
className: o(
|
|
123
|
+
"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",
|
|
124
|
+
e
|
|
125
|
+
),
|
|
126
|
+
...r
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
y.displayName = "DropdownMenuShortcut";
|
|
131
|
+
export {
|
|
132
|
+
R as D,
|
|
133
|
+
I as a,
|
|
134
|
+
u as b,
|
|
135
|
+
b as c,
|
|
136
|
+
w as d,
|
|
137
|
+
y as e,
|
|
138
|
+
f,
|
|
139
|
+
C as g,
|
|
140
|
+
m as h,
|
|
141
|
+
S as i,
|
|
142
|
+
p as j
|
|
143
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),w=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),g=require("react"),a=require("./index-D9oM__YW.cjs");function x(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const e=x(w),n=x(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=n.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:a.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(d.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=n.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{"data-richtext-portal":!0,ref:i,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...r}));l.displayName=e.SubContent.displayName;const u=n.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));u.displayName=e.Content.displayName;const p=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=n.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=n.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:a.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=n.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:a.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:a.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
attachment: {
|
|
6
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface AttachmentOptions extends GeneralOptions<AttachmentOptions> {
|
|
11
|
+
/** Function for uploading files */
|
|
12
|
+
upload?: (file: File) => Promise<string>;
|
|
13
|
+
}
|
|
14
|
+
export * from './components/RichTextAttachment';
|
|
15
|
+
export declare const Attachment: Node<AttachmentOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFileTypeIcon(fileType: string, forProseMirror?: boolean): any[] | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FileIconString: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NodeViewAttachment({ editor, node, updateAttributes, deleteNode, extension, }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextAttachment(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Attachment';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GeneralOptions } from '../../types';
|
|
2
|
+
import { BlockquoteOptions as TiptapBlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
3
|
+
export * from './components/RichTextBlockquote';
|
|
4
|
+
export interface BlockquoteOptions extends TiptapBlockquoteOptions, GeneralOptions<BlockquoteOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Blockquote: import('@tiptap/core').Node<BlockquoteOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextBlockquote(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Blockquote';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GeneralOptions } from '../../types';
|
|
2
|
+
import { BoldOptions as TiptapImageOptions } from '@tiptap/extension-bold';
|
|
3
|
+
export * from './components/RichTextBold';
|
|
4
|
+
export interface BoldOptions extends TiptapImageOptions, GeneralOptions<BoldOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Bold: import('@tiptap/core').Mark<BoldOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextBold(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Bold';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BulletListOptions as TiptapBulletListOptions } from '@tiptap/extension-list';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
export * from './components/RichTextBulletList';
|
|
4
|
+
export interface BulletListOptions extends TiptapBulletListOptions, GeneralOptions<BulletListOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const BulletList: import('@tiptap/core').Node<BulletListOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextBulletList(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BulletList';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
callout: {
|
|
6
|
+
setCallout: (attrs?: {
|
|
7
|
+
type?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
body?: string;
|
|
10
|
+
}) => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface CalloutOptions extends GeneralOptions<CalloutOptions> {
|
|
15
|
+
HTMLAttributes: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
export * from './components/RichTextCallout';
|
|
18
|
+
export declare const Callout: Node<CalloutOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NodeViewCallout({ node }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextCallout(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Callout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextClear(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Clear';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GeneralOptions } from '../../types';
|
|
2
|
+
import { CodeOptions as TiptapCodeOptions } from '@tiptap/extension-code';
|
|
3
|
+
export * from './components/RichTextCode';
|
|
4
|
+
export interface CodeOptions extends TiptapCodeOptions, GeneralOptions<CodeOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Code: import('@tiptap/core').Mark<CodeOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextCode(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Code';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
export * from './components/RichTextCodeBlock';
|
|
4
|
+
export interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {
|
|
5
|
+
}
|
|
6
|
+
declare module '@tiptap/core' {
|
|
7
|
+
interface Commands<ReturnType> {
|
|
8
|
+
setCodeBlock: {
|
|
9
|
+
setCodeBlock: (options?: any) => ReturnType;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Matches a code block with backticks.
|
|
15
|
+
*/
|
|
16
|
+
export declare const backtickInputRegex: RegExp;
|
|
17
|
+
/**
|
|
18
|
+
* Matches a code block with tildes.
|
|
19
|
+
*/
|
|
20
|
+
export declare const tildeInputRegex: RegExp;
|
|
21
|
+
export declare const CodeBlock: Node<any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NodeViewCodeBlock(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextCodeBlock(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CodeBlock';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
interface CodeViewOptions extends GeneralOptions<CodeViewOptions> {
|
|
4
|
+
isCodeViewMode?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export * from './components/RichTextCodeView';
|
|
7
|
+
declare module '@tiptap/core' {
|
|
8
|
+
interface Commands<ReturnType> {
|
|
9
|
+
codeView: {
|
|
10
|
+
/**
|
|
11
|
+
* Toggle code view mode
|
|
12
|
+
*/
|
|
13
|
+
toggleCodeView: () => ReturnType;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare const CodeView: Extension<CodeViewOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextCodeView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CodeView';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ColorOptions as TiptapColorOptions } from '@tiptap/extension-text-style';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
export * from './components/RichTextColor';
|
|
4
|
+
export interface ColorOptions extends TiptapColorOptions, GeneralOptions<ColorOptions> {
|
|
5
|
+
/**
|
|
6
|
+
* An array of color options to display in the color picker
|
|
7
|
+
*/
|
|
8
|
+
colors?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* The default color to use when no color is selected
|
|
11
|
+
*/
|
|
12
|
+
defaultColor?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ColorStorage {
|
|
15
|
+
currentColor?: string;
|
|
16
|
+
}
|
|
17
|
+
declare module '@tiptap/core' {
|
|
18
|
+
interface Storage {
|
|
19
|
+
color: ColorStorage;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare const Color: import('@tiptap/core').Extension<ColorOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextColor(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Color';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Node, Extension } from '@tiptap/core';
|
|
2
|
+
declare module '@tiptap/core' {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
columns: {
|
|
5
|
+
insertColumns: (attrs?: {
|
|
6
|
+
cols: number;
|
|
7
|
+
}) => ReturnType;
|
|
8
|
+
addColBefore: () => ReturnType;
|
|
9
|
+
addColAfter: () => ReturnType;
|
|
10
|
+
deleteCol: () => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export * from './components/RichTextColumn';
|
|
15
|
+
export declare const Column: Extension<any, any>;
|
|
16
|
+
export declare const ColumnNode: Node<any, any>;
|
|
17
|
+
export declare const MultipleColumnNode: Node<any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextColumn(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Column';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GeneralOptions } from '../../types';
|
|
2
|
+
export * from './components/RichTextDrawer';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
drawer: {
|
|
6
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
7
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export interface DrawerOptions extends GeneralOptions<DrawerOptions> {
|
|
12
|
+
/** Function for uploading files */
|
|
13
|
+
upload?: (file: File) => Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
export declare const Drawer: import('@tiptap/core').Node<DrawerOptions, any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
export declare function HugeiconsCursorRectangleSelection01(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function MdiFormatLetterCase(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function MaterialSymbolsEdit(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function PhHighlighter(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function OuiEraser(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function MdiSquareOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function MaterialSymbolsRectangleOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function MaterialSymbolsCircleOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function TablerTriangle(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function MaterialSymbolsHexagonOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function MingcuteDiamondSquareLine(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function IcSharpArrowRightAlt(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function SolarUndoLeftRoundBold(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function SolarUndoRightRoundBold(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function MaterialSymbolsDelete(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function HugeiconsSvg01(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function GardenUploadStroke12(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function HugeiconsPng01(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function IcSharpGrid4x4(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function AkarIconsDotGridFill(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function MageImageUpload(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function FluentColorBackground24Filled(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function PhLineSegmentFill(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function IcSharpFavorite(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function MaterialSymbolsKidStar(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function MaterialSymbolsCloud(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function AkarIconsParallelogram(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function EditDrawerBlock({ editor, attrs, extension }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NodeViewDrawer({ editor, node, updateAttributes, getPos, selected }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextDrawer(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Drawer';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IPropsEmojiNodeVIew {
|
|
3
|
+
items: Array<{
|
|
4
|
+
name: string;
|
|
5
|
+
emoji: string;
|
|
6
|
+
}>;
|
|
7
|
+
query: string;
|
|
8
|
+
command: any;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<IPropsEmojiNodeVIew & React.RefAttributes<unknown>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextEmoji(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Emoji';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
export * from './components/RichTextExcalidraw';
|
|
3
|
+
export interface IExcalidrawAttrs {
|
|
4
|
+
defaultShowPicker?: boolean;
|
|
5
|
+
createUser?: any;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number;
|
|
8
|
+
data?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
declare module '@tiptap/core' {
|
|
11
|
+
interface Commands<ReturnType> {
|
|
12
|
+
excalidraw: {
|
|
13
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare const Excalidraw: Node<any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextExcalidraw(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Excalidraw';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions, PaperSize, PageMargin } from '../../types';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
exportPdf: {
|
|
6
|
+
exportToPdf: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface ExportPdfOptions extends GeneralOptions<ExportPdfOptions> {
|
|
11
|
+
paperSize: PaperSize;
|
|
12
|
+
title?: string;
|
|
13
|
+
margins: {
|
|
14
|
+
top?: PageMargin;
|
|
15
|
+
right?: PageMargin;
|
|
16
|
+
bottom?: PageMargin;
|
|
17
|
+
left?: PageMargin;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export * from './components/RichTextExportPdf';
|
|
21
|
+
export declare const ExportPdf: Extension<ExportPdfOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextExportPdf(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExportPdf';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../types';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
exportWord: {
|
|
6
|
+
exportToWord: (docState: any) => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
interface ExportWordOptions extends GeneralOptions<ExportWordOptions> {
|
|
11
|
+
}
|
|
12
|
+
export * from './components/RichTextExportWord';
|
|
13
|
+
export declare const ExportWord: Extension<ExportWordOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextExportWord(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExportWord';
|