@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
package/lib/theme.js
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { y as n, b as c, v as d } from "./index-BG0kQamI.js";
|
|
2
|
+
const t = {
|
|
3
|
+
light: {
|
|
4
|
+
default: {
|
|
5
|
+
radius: "0.65rem",
|
|
6
|
+
background: "0 0% 100%",
|
|
7
|
+
foreground: "240 10% 3.9%",
|
|
8
|
+
card: "0 0% 100%",
|
|
9
|
+
"card-foreground": "240 10% 3.9%",
|
|
10
|
+
popover: "0 0% 100%",
|
|
11
|
+
"popover-foreground": "240 10% 3.9%",
|
|
12
|
+
primary: "240 5.9% 10%",
|
|
13
|
+
"primary-foreground": "0 0% 98%",
|
|
14
|
+
secondary: "240 4.8% 95.9%",
|
|
15
|
+
"secondary-foreground": "240 5.9% 10%",
|
|
16
|
+
muted: "240 4.8% 95.9%",
|
|
17
|
+
"muted-foreground": "240 3.8% 46.1%",
|
|
18
|
+
accent: "240 4.8% 95.9%",
|
|
19
|
+
"accent-foreground": "240 5.9% 10%",
|
|
20
|
+
destructive: "0 84.2% 60.2%",
|
|
21
|
+
"destructive-foreground": "0 0% 98%",
|
|
22
|
+
border: "240 5.9% 90%",
|
|
23
|
+
input: "240 5.9% 90%",
|
|
24
|
+
ring: "240 5.9% 10%"
|
|
25
|
+
},
|
|
26
|
+
red: {
|
|
27
|
+
radius: "0.65rem",
|
|
28
|
+
background: "0 0% 100%",
|
|
29
|
+
foreground: "0 0% 3.9%",
|
|
30
|
+
card: "0 0% 100%",
|
|
31
|
+
"card-foreground": "0 0% 3.9%",
|
|
32
|
+
popover: "0 0% 100%",
|
|
33
|
+
"popover-foreground": "0 0% 3.9%",
|
|
34
|
+
primary: "0 72.2% 50.6%",
|
|
35
|
+
"primary-foreground": "0 85.7% 97.3%",
|
|
36
|
+
secondary: "0 0% 96.1%",
|
|
37
|
+
"secondary-foreground": "0 0% 9%",
|
|
38
|
+
muted: "0 0% 96.1%",
|
|
39
|
+
"muted-foreground": "0 0% 45.1%",
|
|
40
|
+
accent: "0 0% 96.1%",
|
|
41
|
+
"accent-foreground": "0 0% 9%",
|
|
42
|
+
destructive: "0 84.2% 60.2%",
|
|
43
|
+
"destructive-foreground": "0 0% 98%",
|
|
44
|
+
border: "0 0% 89.8%",
|
|
45
|
+
input: "0 0% 89.8%",
|
|
46
|
+
ring: "0 72.2% 50.6%"
|
|
47
|
+
},
|
|
48
|
+
blue: {
|
|
49
|
+
radius: "0.65rem",
|
|
50
|
+
background: "0 0% 100%",
|
|
51
|
+
foreground: "222.2 84% 4.9%",
|
|
52
|
+
card: "0 0% 100%",
|
|
53
|
+
"card-foreground": "222.2 84% 4.9%",
|
|
54
|
+
popover: "0 0% 100%",
|
|
55
|
+
"popover-foreground": "222.2 84% 4.9%",
|
|
56
|
+
primary: "221.2 83.2% 53.3%",
|
|
57
|
+
"primary-foreground": "210 40% 98%",
|
|
58
|
+
secondary: "210 40% 96.1%",
|
|
59
|
+
"secondary-foreground": "222.2 47.4% 11.2%",
|
|
60
|
+
muted: "210 40% 96.1%",
|
|
61
|
+
"muted-foreground": "215.4 16.3% 46.9%",
|
|
62
|
+
accent: "210 40% 96.1%",
|
|
63
|
+
"accent-foreground": "222.2 47.4% 11.2%",
|
|
64
|
+
destructive: "0 84.2% 60.2%",
|
|
65
|
+
"destructive-foreground": "210 40% 98%",
|
|
66
|
+
border: "214.3 31.8% 91.4%",
|
|
67
|
+
input: "214.3 31.8% 91.4%",
|
|
68
|
+
ring: "221.2 83.2% 53.3%"
|
|
69
|
+
},
|
|
70
|
+
green: {
|
|
71
|
+
radius: "0.65rem",
|
|
72
|
+
background: "0 0% 100%",
|
|
73
|
+
foreground: "240 10% 3.9%",
|
|
74
|
+
card: "0 0% 100%",
|
|
75
|
+
"card-foreground": "240 10% 3.9%",
|
|
76
|
+
popover: "0 0% 100%",
|
|
77
|
+
"popover-foreground": "240 10% 3.9%",
|
|
78
|
+
primary: "142.1 76.2% 36.3%",
|
|
79
|
+
"primary-foreground": "355.7 100% 97.3%",
|
|
80
|
+
secondary: "240 4.8% 95.9%",
|
|
81
|
+
"secondary-foreground": "240 5.9% 10%",
|
|
82
|
+
muted: "240 4.8% 95.9%",
|
|
83
|
+
"muted-foreground": "240 3.8% 46.1%",
|
|
84
|
+
accent: "240 4.8% 95.9%",
|
|
85
|
+
"accent-foreground": "240 5.9% 10%",
|
|
86
|
+
destructive: "0 84.2% 60.2%",
|
|
87
|
+
"destructive-foreground": "0 0% 98%",
|
|
88
|
+
border: "240 5.9% 90%",
|
|
89
|
+
input: "240 5.9% 90%",
|
|
90
|
+
ring: "142.1 76.2% 36.3%"
|
|
91
|
+
},
|
|
92
|
+
orange: {
|
|
93
|
+
radius: "0.65rem",
|
|
94
|
+
background: "0 0% 100%",
|
|
95
|
+
foreground: "20 14.3% 4.1%",
|
|
96
|
+
card: "0 0% 100%",
|
|
97
|
+
"card-foreground": "20 14.3% 4.1%",
|
|
98
|
+
popover: "0 0% 100%",
|
|
99
|
+
"popover-foreground": "20 14.3% 4.1%",
|
|
100
|
+
primary: "24.6 95% 53.1%",
|
|
101
|
+
"primary-foreground": "60 9.1% 97.8%",
|
|
102
|
+
secondary: "60 4.8% 95.9%",
|
|
103
|
+
"secondary-foreground": "24 9.8% 10%",
|
|
104
|
+
muted: "60 4.8% 95.9%",
|
|
105
|
+
"muted-foreground": "25 5.3% 44.7%",
|
|
106
|
+
accent: "60 4.8% 95.9%",
|
|
107
|
+
"accent-foreground": "24 9.8% 10%",
|
|
108
|
+
destructive: "0 84.2% 60.2%",
|
|
109
|
+
"destructive-foreground": "60 9.1% 97.8%",
|
|
110
|
+
border: "20 5.9% 90%",
|
|
111
|
+
input: "20 5.9% 90%"
|
|
112
|
+
},
|
|
113
|
+
rose: {
|
|
114
|
+
radius: "0.65rem",
|
|
115
|
+
background: "0 0% 100%",
|
|
116
|
+
foreground: "240 10% 3.9%",
|
|
117
|
+
card: "0 0% 100%",
|
|
118
|
+
"card-foreground": "240 10% 3.9%",
|
|
119
|
+
popover: "0 0% 100%",
|
|
120
|
+
"popover-foreground": "240 10% 3.9%",
|
|
121
|
+
primary: "346.8 77.2% 49.8%",
|
|
122
|
+
"primary-foreground": "355.7 100% 97.3%",
|
|
123
|
+
secondary: "240 4.8% 95.9%",
|
|
124
|
+
"secondary-foreground": "240 5.9% 10%",
|
|
125
|
+
muted: "240 4.8% 95.9%",
|
|
126
|
+
"muted-foreground": "240 3.8% 46.1%",
|
|
127
|
+
accent: "240 4.8% 95.9%",
|
|
128
|
+
"accent-foreground": "240 5.9% 10%",
|
|
129
|
+
destructive: "0 84.2% 60.2%",
|
|
130
|
+
"destructive-foreground": "0 0% 98%",
|
|
131
|
+
border: "240 5.9% 90%",
|
|
132
|
+
input: "240 5.9% 90%",
|
|
133
|
+
ring: "346.8 77.2% 49.8%"
|
|
134
|
+
},
|
|
135
|
+
violet: {
|
|
136
|
+
radius: "0.65rem",
|
|
137
|
+
background: "0 0% 100%",
|
|
138
|
+
foreground: "224 71.4% 4.1%",
|
|
139
|
+
card: "0 0% 100%",
|
|
140
|
+
"card-foreground": "224 71.4% 4.1%",
|
|
141
|
+
popover: "0 0% 100%",
|
|
142
|
+
"popover-foreground": "224 71.4% 4.1%",
|
|
143
|
+
primary: "262.1 83.3% 57.8%",
|
|
144
|
+
"primary-foreground": "210 20% 98%",
|
|
145
|
+
secondary: "220 14.3% 95.9%",
|
|
146
|
+
"secondary-foreground": "220.9 39.3% 11%",
|
|
147
|
+
muted: "220 14.3% 95.9%",
|
|
148
|
+
"muted-foreground": "220 8.9% 46.1%",
|
|
149
|
+
accent: "220 14.3% 95.9%",
|
|
150
|
+
"accent-foreground": "220.9 39.3% 11%",
|
|
151
|
+
destructive: "0 84.2% 60.2%",
|
|
152
|
+
"destructive-foreground": "210 20% 98%",
|
|
153
|
+
border: "220 13% 91%",
|
|
154
|
+
input: "220 13% 91%",
|
|
155
|
+
ring: "262.1 83.3% 57.8%"
|
|
156
|
+
},
|
|
157
|
+
yellow: {
|
|
158
|
+
radius: "0.65rem",
|
|
159
|
+
background: "0 0% 100%",
|
|
160
|
+
foreground: "20 14.3% 4.1%",
|
|
161
|
+
card: "0 0% 100%",
|
|
162
|
+
"card-foreground": "20 14.3% 4.1%",
|
|
163
|
+
popover: "0 0% 100%",
|
|
164
|
+
"popover-foreground": "20 14.3% 4.1%",
|
|
165
|
+
primary: "47.9 95.8% 53.1%",
|
|
166
|
+
"primary-foreground": "26 83.3% 14.1%",
|
|
167
|
+
secondary: "60 4.8% 95.9%",
|
|
168
|
+
"secondary-foreground": "24 9.8% 10%",
|
|
169
|
+
muted: "60 4.8% 95.9%",
|
|
170
|
+
"muted-foreground": "25 5.3% 44.7%",
|
|
171
|
+
accent: "60 4.8% 95.9%",
|
|
172
|
+
"accent-foreground": "24 9.8% 10%",
|
|
173
|
+
destructive: "0 84.2% 60.2%",
|
|
174
|
+
"destructive-foreground": "60 9.1% 97.8%",
|
|
175
|
+
border: "20 5.9% 90%",
|
|
176
|
+
input: "20 5.9% 90%",
|
|
177
|
+
ring: "20 14.3% 4.1"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
dark: {
|
|
181
|
+
default: {
|
|
182
|
+
radius: "0.65rem",
|
|
183
|
+
background: "240 10% 3.9%",
|
|
184
|
+
foreground: "0 0% 98%",
|
|
185
|
+
card: "240 10% 3.9%",
|
|
186
|
+
"card-foreground": "0 0% 98%",
|
|
187
|
+
popover: "240 10% 3.9%",
|
|
188
|
+
"popover-foreground": "0 0% 98%",
|
|
189
|
+
primary: "0 0% 98%",
|
|
190
|
+
"primary-foreground": "240 5.9% 10%",
|
|
191
|
+
secondary: "240 3.7% 15.9%",
|
|
192
|
+
"secondary-foreground": "0 0% 98%",
|
|
193
|
+
muted: "240 3.7% 15.9%",
|
|
194
|
+
"muted-foreground": "240 5% 64.9%",
|
|
195
|
+
accent: "240 3.7% 15.9%",
|
|
196
|
+
"accent-foreground": "0 0% 98%",
|
|
197
|
+
destructive: "0 62.8% 30.6%",
|
|
198
|
+
"destructive-foreground": "0 0% 98%",
|
|
199
|
+
border: "240 3.7% 15.9%",
|
|
200
|
+
input: "240 3.7% 15.9%",
|
|
201
|
+
ring: "240 4.9% 83.9%"
|
|
202
|
+
},
|
|
203
|
+
red: {
|
|
204
|
+
radius: "0.65rem",
|
|
205
|
+
background: "0 0% 3.9%",
|
|
206
|
+
foreground: "0 0% 98%",
|
|
207
|
+
card: "0 0% 3.9%",
|
|
208
|
+
"card-foreground": "0 0% 98%",
|
|
209
|
+
popover: "0 0% 3.9%",
|
|
210
|
+
"popover-foreground": "0 0% 98%",
|
|
211
|
+
primary: "0 72.2% 50.6%",
|
|
212
|
+
"primary-foreground": "0 85.7% 97.3%",
|
|
213
|
+
secondary: "0 0% 14.9%",
|
|
214
|
+
"secondary-foreground": "0 0% 98%",
|
|
215
|
+
muted: "0 0% 14.9%",
|
|
216
|
+
"muted-foreground": "0 0% 63.9%",
|
|
217
|
+
accent: "0 0% 14.9%",
|
|
218
|
+
"accent-foreground": "0 0% 98%",
|
|
219
|
+
destructive: "0 62.8% 30.6%",
|
|
220
|
+
"destructive-foreground": "0 0% 98%",
|
|
221
|
+
border: "0 0% 14.9%",
|
|
222
|
+
input: "0 0% 14.9%",
|
|
223
|
+
ring: "0 72.2% 50.6%"
|
|
224
|
+
},
|
|
225
|
+
blue: {
|
|
226
|
+
radius: "0.65rem",
|
|
227
|
+
background: "222.2 84% 4.9%",
|
|
228
|
+
foreground: "210 40% 98%",
|
|
229
|
+
card: "222.2 84% 4.9%",
|
|
230
|
+
"card-foreground": "210 40% 98%",
|
|
231
|
+
popover: "222.2 84% 4.9%",
|
|
232
|
+
"popover-foreground": "210 40% 98%",
|
|
233
|
+
primary: "217.2 91.2% 59.8%",
|
|
234
|
+
"primary-foreground": "222.2 47.4% 11.2%",
|
|
235
|
+
secondary: "217.2 32.6% 17.5%",
|
|
236
|
+
"secondary-foreground": "210 40% 98%",
|
|
237
|
+
muted: "217.2 32.6% 17.5%",
|
|
238
|
+
"muted-foreground": "215 20.2% 65.1%",
|
|
239
|
+
accent: "217.2 32.6% 17.5%",
|
|
240
|
+
"accent-foreground": "210 40% 98%",
|
|
241
|
+
destructive: "0 62.8% 30.6%",
|
|
242
|
+
"destructive-foreground": "210 40% 98%",
|
|
243
|
+
border: "217.2 32.6% 17.5%",
|
|
244
|
+
input: "217.2 32.6% 17.5%",
|
|
245
|
+
ring: "224.3 76.3% 48%"
|
|
246
|
+
},
|
|
247
|
+
green: {
|
|
248
|
+
radius: "0.65rem",
|
|
249
|
+
background: "20 14.3% 4.1%",
|
|
250
|
+
foreground: "0 0% 95%",
|
|
251
|
+
card: "24 9.8% 10%",
|
|
252
|
+
"card-foreground": "0 0% 95%",
|
|
253
|
+
popover: "0 0% 9%",
|
|
254
|
+
"popover-foreground": "0 0% 95%",
|
|
255
|
+
primary: "142.1 70.6% 45.3%",
|
|
256
|
+
"primary-foreground": "144.9 80.4% 10%",
|
|
257
|
+
secondary: "240 3.7% 15.9%",
|
|
258
|
+
"secondary-foreground": "0 0% 98%",
|
|
259
|
+
muted: "0 0% 15%",
|
|
260
|
+
"muted-foreground": "240 5% 64.9%",
|
|
261
|
+
accent: "12 6.5% 15.1%",
|
|
262
|
+
"accent-foreground": "0 0% 98%",
|
|
263
|
+
destructive: "0 62.8% 30.6%",
|
|
264
|
+
"destructive-foreground": "0 85.7% 97.3%",
|
|
265
|
+
border: "240 3.7% 15.9%",
|
|
266
|
+
input: "240 3.7% 15.9%",
|
|
267
|
+
ring: "142.4 71.8% 29.2%"
|
|
268
|
+
},
|
|
269
|
+
orange: {
|
|
270
|
+
radius: "0.65rem",
|
|
271
|
+
background: "20 14.3% 4.1%",
|
|
272
|
+
foreground: "60 9.1% 97.8%",
|
|
273
|
+
card: "20 14.3% 4.1%",
|
|
274
|
+
"card-foreground": "60 9.1% 97.8%",
|
|
275
|
+
popover: "20 14.3% 4.1%",
|
|
276
|
+
"popover-foreground": "60 9.1% 97.8%",
|
|
277
|
+
primary: "20.5 90.2% 48.2%",
|
|
278
|
+
"primary-foreground": "60 9.1% 97.8%",
|
|
279
|
+
secondary: "12 6.5% 15.1%",
|
|
280
|
+
"secondary-foreground": "60 9.1% 97.8%",
|
|
281
|
+
muted: "12 6.5% 15.1%",
|
|
282
|
+
"muted-foreground": "24 5.4% 63.9%",
|
|
283
|
+
accent: "12 6.5% 15.1%",
|
|
284
|
+
"accent-foreground": "60 9.1% 97.8%",
|
|
285
|
+
destructive: "0 72.2% 50.6%",
|
|
286
|
+
"destructive-foreground": "60 9.1% 97.8%",
|
|
287
|
+
border: "12 6.5% 15.1%",
|
|
288
|
+
input: "12 6.5% 15.1%",
|
|
289
|
+
ring: "20.5 90.2% 48.2%"
|
|
290
|
+
},
|
|
291
|
+
rose: {
|
|
292
|
+
radius: "0.65rem",
|
|
293
|
+
background: "20 14.3% 4.1%",
|
|
294
|
+
foreground: "0 0% 95%",
|
|
295
|
+
card: "24 9.8% 10%",
|
|
296
|
+
"card-foreground": "0 0% 95%",
|
|
297
|
+
popover: "0 0% 9%",
|
|
298
|
+
"popover-foreground": "0 0% 95%",
|
|
299
|
+
primary: "346.8 77.2% 49.8%",
|
|
300
|
+
"primary-foreground": "355.7 100% 97.3%",
|
|
301
|
+
secondary: "240 3.7% 15.9%",
|
|
302
|
+
"secondary-foreground": "0 0% 98%",
|
|
303
|
+
muted: "0 0% 15%",
|
|
304
|
+
"muted-foreground": "240 5% 64.9%",
|
|
305
|
+
accent: "12 6.5% 15.1%",
|
|
306
|
+
"accent-foreground": "0 0% 98%",
|
|
307
|
+
destructive: "0 62.8% 30.6%",
|
|
308
|
+
"destructive-foreground": "0 85.7% 97.3%",
|
|
309
|
+
border: "240 3.7% 15.9%",
|
|
310
|
+
input: "240 3.7% 15.9%",
|
|
311
|
+
ring: "346.8 77.2% 49.8%"
|
|
312
|
+
},
|
|
313
|
+
violet: {
|
|
314
|
+
radius: "0.65rem",
|
|
315
|
+
background: "224 71.4% 4.1%",
|
|
316
|
+
foreground: "210 20% 98%",
|
|
317
|
+
card: "224 71.4% 4.1%",
|
|
318
|
+
"card-foreground": "210 20% 98%",
|
|
319
|
+
popover: "224 71.4% 4.1%",
|
|
320
|
+
"popover-foreground": "210 20% 98%",
|
|
321
|
+
primary: "263.4 70% 50.4%",
|
|
322
|
+
"primary-foreground": "210 20% 98%",
|
|
323
|
+
secondary: "215 27.9% 16.9%",
|
|
324
|
+
"secondary-foreground": "210 20% 98%",
|
|
325
|
+
muted: "215 27.9% 16.9%",
|
|
326
|
+
"muted-foreground": "217.9 10.6% 64.9%",
|
|
327
|
+
accent: "215 27.9% 16.9%",
|
|
328
|
+
"accent-foreground": "210 20% 98%",
|
|
329
|
+
destructive: "0 62.8% 30.6%",
|
|
330
|
+
"destructive-foreground": "210 20% 98%",
|
|
331
|
+
border: "215 27.9% 16.9%",
|
|
332
|
+
input: "215 27.9% 16.9%",
|
|
333
|
+
ring: "263.4 70% 50.4%"
|
|
334
|
+
},
|
|
335
|
+
yellow: {
|
|
336
|
+
radius: "0.65rem",
|
|
337
|
+
background: "20 14.3% 4.1%",
|
|
338
|
+
foreground: "60 9.1% 97.8%",
|
|
339
|
+
card: "20 14.3% 4.1%",
|
|
340
|
+
"card-foreground": "60 9.1% 97.8%",
|
|
341
|
+
popover: "20 14.3% 4.1%",
|
|
342
|
+
"popover-foreground": "60 9.1% 97.8%",
|
|
343
|
+
primary: "47.9 95.8% 53.1%",
|
|
344
|
+
"primary-foreground": "26 83.3% 14.1%",
|
|
345
|
+
secondary: "12 6.5% 15.1%",
|
|
346
|
+
"secondary-foreground": "60 9.1% 97.8%",
|
|
347
|
+
muted: "12 6.5% 15.1%",
|
|
348
|
+
"muted-foreground": "24 5.4% 63.9%",
|
|
349
|
+
accent: "12 6.5% 15.1%",
|
|
350
|
+
"accent-foreground": "60 9.1% 97.8%",
|
|
351
|
+
destructive: "0 62.8% 30.6%",
|
|
352
|
+
"destructive-foreground": "60 9.1% 97.8%",
|
|
353
|
+
border: "12 6.5% 15.1%",
|
|
354
|
+
input: "12 6.5% 15.1%",
|
|
355
|
+
ring: "35.5 91.7% 32.9%"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}, e = n({
|
|
359
|
+
theme: "light",
|
|
360
|
+
color: "default",
|
|
361
|
+
borderRadius: "0.65rem"
|
|
362
|
+
});
|
|
363
|
+
function g() {
|
|
364
|
+
const { theme: r, color: o, borderRadius: u } = c(e);
|
|
365
|
+
return {
|
|
366
|
+
theme: r,
|
|
367
|
+
color: o,
|
|
368
|
+
borderRadius: u
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
const f = {
|
|
372
|
+
setTheme: (r) => {
|
|
373
|
+
d(e).setValue((o) => ({
|
|
374
|
+
...o,
|
|
375
|
+
theme: r
|
|
376
|
+
}));
|
|
377
|
+
},
|
|
378
|
+
setColor: (r) => {
|
|
379
|
+
d(e).setValue((o) => ({
|
|
380
|
+
...o,
|
|
381
|
+
color: r
|
|
382
|
+
}));
|
|
383
|
+
},
|
|
384
|
+
setBorderRadius: (r) => {
|
|
385
|
+
d(e).setValue((o) => ({
|
|
386
|
+
...o,
|
|
387
|
+
borderRadius: r
|
|
388
|
+
}));
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
export {
|
|
392
|
+
t as THEME,
|
|
393
|
+
f as themeActions,
|
|
394
|
+
g as useTheme
|
|
395
|
+
};
|
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { Editor as CoreEditor, Extension, JSONContent } from '@tiptap/core';
|
|
2
|
+
import { Editor } from '@tiptap/react';
|
|
3
|
+
import { ActionButtonProps } from './components';
|
|
4
|
+
export type { Editor, JSONContent } from '@tiptap/core';
|
|
5
|
+
/**
|
|
6
|
+
* Represents the onChange event for EchoEditor.
|
|
7
|
+
*/
|
|
8
|
+
export interface EchoEditorOnChange {
|
|
9
|
+
/** Editor object */
|
|
10
|
+
editor: CoreEditor;
|
|
11
|
+
/** Output content, can be a string or JSON content */
|
|
12
|
+
output: string | JSONContent;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents the keys for different extensions.
|
|
16
|
+
*/
|
|
17
|
+
export type ExtensionNameKeys = 'bold' | 'italic' | 'underline' | 'strike' | 'color' | 'highlight' | 'heading' | 'textAlign' | 'bulletList' | 'orderedList' | 'taskList' | 'indent' | 'link' | 'image' | 'video' | 'table' | 'blockquote' | 'horizontalRule' | 'code' | 'codeBlock' | 'clear' | 'history' | 'twitter' | 'katex' | 'excalidraw' | 'mermaid' | 'drawer';
|
|
18
|
+
/**
|
|
19
|
+
* Represents the general options for Tiptap extensions.
|
|
20
|
+
*/
|
|
21
|
+
export interface GeneralOptions<T> {
|
|
22
|
+
/** Enabled divider */
|
|
23
|
+
divider: boolean;
|
|
24
|
+
/** Enabled spacer */
|
|
25
|
+
spacer: boolean;
|
|
26
|
+
/** Button view function */
|
|
27
|
+
button: ButtonView<T>;
|
|
28
|
+
/** Show on Toolbar */
|
|
29
|
+
toolbar?: boolean;
|
|
30
|
+
/** Shortcut keys override */
|
|
31
|
+
shortcutKeys?: string[] | string[][];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Represents the props for the ButtonView component.
|
|
35
|
+
*/
|
|
36
|
+
export interface ButtonViewReturnComponentProps {
|
|
37
|
+
/** Method triggered when action is performed */
|
|
38
|
+
action?: (value?: any) => void;
|
|
39
|
+
/** Whether it is in the active state */
|
|
40
|
+
isActive?: () => boolean;
|
|
41
|
+
/** Button icon */
|
|
42
|
+
icon?: any;
|
|
43
|
+
/** Text displayed on hover */
|
|
44
|
+
tooltip?: string;
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Represents the slots for the ButtonView component.
|
|
49
|
+
*/
|
|
50
|
+
export interface ButtonViewReturnComponentSlots {
|
|
51
|
+
/** Dialog slot */
|
|
52
|
+
dialog: () => any;
|
|
53
|
+
[x: string]: () => any;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Represents the return value for the ButtonView component.
|
|
57
|
+
*/
|
|
58
|
+
export interface ButtonViewReturn {
|
|
59
|
+
/** Component */
|
|
60
|
+
component: unknown;
|
|
61
|
+
/** Component props */
|
|
62
|
+
componentProps: ButtonViewReturnComponentProps;
|
|
63
|
+
/** Component slots */
|
|
64
|
+
componentSlots?: ButtonViewReturnComponentSlots;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Represents the parameters for the ButtonView function.
|
|
68
|
+
*/
|
|
69
|
+
export interface ButtonViewParams<T = any> {
|
|
70
|
+
/** Editor object */
|
|
71
|
+
editor: Editor;
|
|
72
|
+
/** Extension object */
|
|
73
|
+
extension: Extension<T>;
|
|
74
|
+
/** Translation function */
|
|
75
|
+
t: (path: string) => string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Represents the ButtonView function.
|
|
79
|
+
*/
|
|
80
|
+
export type ButtonView<T = any> = (options: ButtonViewParams<T>) => ButtonViewReturn | ButtonViewReturn[];
|
|
81
|
+
/**
|
|
82
|
+
* Represents the BubbleMenuRenderProps.
|
|
83
|
+
*/
|
|
84
|
+
export interface BubbleMenuRenderProps {
|
|
85
|
+
editor: Editor;
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
bubbleMenu: BubbleMenuProps;
|
|
88
|
+
extensionsNames: string[];
|
|
89
|
+
}
|
|
90
|
+
export interface TableMenuConfig {
|
|
91
|
+
/**
|
|
92
|
+
* @description Column menu hidden
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
hidden?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* custom menu actions
|
|
98
|
+
*/
|
|
99
|
+
actions?: ActionButtonProps[];
|
|
100
|
+
/**
|
|
101
|
+
* hidden default actions, if any
|
|
102
|
+
*/
|
|
103
|
+
hiddenActions?: string[];
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Represents the BubbleMenuProps.
|
|
107
|
+
*/
|
|
108
|
+
export interface BubbleMenuProps {
|
|
109
|
+
columnConfig?: {
|
|
110
|
+
/**
|
|
111
|
+
* @description Column menu hidden
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
hidden?: boolean;
|
|
115
|
+
};
|
|
116
|
+
tableConfig?: TableMenuConfig;
|
|
117
|
+
floatingMenuConfig?: {
|
|
118
|
+
/**
|
|
119
|
+
* @description Floating menu hidden
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
hidden?: boolean;
|
|
123
|
+
};
|
|
124
|
+
linkConfig?: {
|
|
125
|
+
/**
|
|
126
|
+
* @description Link menu hidden
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
hidden?: boolean;
|
|
130
|
+
};
|
|
131
|
+
textConfig?: {
|
|
132
|
+
/**
|
|
133
|
+
* @description Text menu hidden
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
hidden?: boolean;
|
|
137
|
+
};
|
|
138
|
+
imageConfig?: {
|
|
139
|
+
/**
|
|
140
|
+
* @description Image menu hidden
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
hidden?: boolean;
|
|
144
|
+
};
|
|
145
|
+
imageGifConfig?: {
|
|
146
|
+
/**
|
|
147
|
+
* @description Image menu hidden
|
|
148
|
+
* @default false
|
|
149
|
+
*/
|
|
150
|
+
hidden?: boolean;
|
|
151
|
+
};
|
|
152
|
+
videoConfig?: {
|
|
153
|
+
/**
|
|
154
|
+
* @description Video menu hidden
|
|
155
|
+
* @default false
|
|
156
|
+
*/
|
|
157
|
+
hidden?: boolean;
|
|
158
|
+
};
|
|
159
|
+
katexConfig?: {
|
|
160
|
+
/**
|
|
161
|
+
* @description katex menu hidden
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
hidden?: boolean;
|
|
165
|
+
};
|
|
166
|
+
excalidrawConfig?: {
|
|
167
|
+
/**
|
|
168
|
+
* @description excalidraw menu hidden
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
hidden?: boolean;
|
|
172
|
+
};
|
|
173
|
+
iframeConfig?: {
|
|
174
|
+
/**
|
|
175
|
+
* @description iframe menu hidden
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
178
|
+
hidden?: boolean;
|
|
179
|
+
};
|
|
180
|
+
mermaidConfig?: {
|
|
181
|
+
/**
|
|
182
|
+
* @description mermaid menu hidden
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
hidden?: boolean;
|
|
186
|
+
};
|
|
187
|
+
twitterConfig?: {
|
|
188
|
+
/**
|
|
189
|
+
* @description twitter menu hidden
|
|
190
|
+
* @default false
|
|
191
|
+
*/
|
|
192
|
+
hidden?: boolean;
|
|
193
|
+
};
|
|
194
|
+
drawerConfig?: {
|
|
195
|
+
/**
|
|
196
|
+
* @description twitter menu hidden
|
|
197
|
+
* @default false
|
|
198
|
+
*/
|
|
199
|
+
hidden?: boolean;
|
|
200
|
+
};
|
|
201
|
+
render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Represents the ToolbarItemProps.
|
|
205
|
+
*/
|
|
206
|
+
export interface ToolbarItemProps {
|
|
207
|
+
button: {
|
|
208
|
+
component: React.ComponentType<any>;
|
|
209
|
+
componentProps: Record<string, any>;
|
|
210
|
+
};
|
|
211
|
+
divider: boolean;
|
|
212
|
+
spacer: boolean;
|
|
213
|
+
type: string;
|
|
214
|
+
name: string;
|
|
215
|
+
}
|
|
216
|
+
export interface ToolbarRenderProps {
|
|
217
|
+
editor: Editor;
|
|
218
|
+
disabled: boolean;
|
|
219
|
+
}
|
|
220
|
+
export interface ToolbarProps {
|
|
221
|
+
render?: (props: ToolbarRenderProps, toolbarItems: ToolbarItemProps[], dom: any[], containerDom: (innerContent: React.ReactNode) => React.ReactNode) => React.ReactNode;
|
|
222
|
+
tooltipSide?: 'top' | 'bottom';
|
|
223
|
+
}
|
|
224
|
+
export interface NameValueOption<T = string> {
|
|
225
|
+
name: string;
|
|
226
|
+
value: T;
|
|
227
|
+
}
|
|
228
|
+
export type VideoAlignment = 'flex-start' | 'center' | 'flex-end';
|
|
229
|
+
export type PaperSize = 'Legal' | 'Letter' | 'Tabloid' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5';
|
|
230
|
+
export type PageMargin = '0in' | '0.25in' | '0.4in' | '0.5in' | '0.75in' | '1in' | '1.25in' | '1.5in' | '1.75in' | '2in' | '0cm' | '0.5cm' | '1cm' | '1.5cm' | '2cm' | '2.5cm' | '3cm' | '4cm' | '5cm' | '0mm' | '5mm' | '10mm' | '15mm' | '20mm' | '25mm' | '30mm' | '40mm' | '50mm' | '0pt' | '18pt' | '36pt' | '54pt' | '72pt' | '90pt' | '108pt' | '144pt';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index-Cs6cp0Y6.cjs"),a=require("./clsx-CXbNJWDD.cjs");function l(o,t){const e={getBoundingClientRect:()=>a.posToDOMRect(o.view,o.state.selection.from,o.state.selection.to)};s.computePosition(e,t,{placement:"bottom-start",strategy:"absolute",middleware:[s.shift(),s.flip()]}).then(({x:i,y:n,strategy:c})=>{t.style.width="max-content",t.style.position=c,t.style.left=`${i}px`,t.style.top=`${n}px`})}exports.updatePosition=l;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as a, s as n, f as l } from "./index-CsSfYR30.js";
|
|
2
|
+
import { d as p } from "./clsx-CDyrfCnw.js";
|
|
3
|
+
function m(o, t) {
|
|
4
|
+
a({
|
|
5
|
+
getBoundingClientRect: () => p(o.view, o.state.selection.from, o.state.selection.to)
|
|
6
|
+
}, t, {
|
|
7
|
+
placement: "bottom-start",
|
|
8
|
+
strategy: "absolute",
|
|
9
|
+
middleware: [n(), l()]
|
|
10
|
+
}).then(({ x: s, y: i, strategy: e }) => {
|
|
11
|
+
t.style.width = "max-content", t.style.position = e, t.style.left = `${s}px`, t.style.top = `${i}px`;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
m as u
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function checkIsVideoUrl(url: string, allowedProviders?: string[]): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EditorState } from '@tiptap/pm/state';
|
|
2
|
+
export declare function createColumn(colType: any, index: any, colContent?: null): any;
|
|
3
|
+
export declare function getColumnsNodeTypes(schema: any): any;
|
|
4
|
+
export declare function createColumns(schema: any, colsCount: any, colContent?: null): any;
|
|
5
|
+
export declare function addOrDeleteCol({ state, dispatch, type, }: {
|
|
6
|
+
state: EditorState;
|
|
7
|
+
dispatch: any;
|
|
8
|
+
type: 'addBefore' | 'addAfter' | 'delete';
|
|
9
|
+
}): boolean;
|
|
10
|
+
export declare function gotoCol({ state, dispatch, type, }: {
|
|
11
|
+
state: EditorState;
|
|
12
|
+
dispatch: any;
|
|
13
|
+
type: 'before' | 'after';
|
|
14
|
+
}): boolean;
|