reactjs-tiptap-editor-pro 0.2.31 → 0.2.33
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/lib/ColorPicker-MEAh4MhG.js +28181 -0
- package/lib/ColorPicker-ZncOwjAP.cjs +142 -0
- package/lib/extension-bundle.cjs +133 -0
- package/lib/extension-bundle.d.cts +947 -0
- package/lib/extension-bundle.d.ts +947 -0
- package/lib/extension-bundle.js +23921 -0
- package/lib/index.cjs +140 -0
- package/lib/index.d.cts +513 -0
- package/lib/index.d.ts +513 -0
- package/lib/index.js +3700 -0
- package/lib/locale-bundle-DiqW5jwb.cjs +1 -0
- package/lib/locale-bundle-DxCAtRDI.js +1487 -0
- package/lib/locale-bundle.cjs +1 -0
- package/lib/locale-bundle.d.cts +1140 -0
- package/lib/locale-bundle.d.ts +1140 -0
- package/lib/locale-bundle.js +9 -0
- package/lib/lucide-react-BFZtMawV.js +30462 -0
- package/lib/lucide-react-CMPhLW1m.cjs +7851 -0
- package/lib/style.css +1 -0
- package/package.json +58 -5
- package/src/components/ActionButton.tsx +0 -103
- package/src/components/ActionMenuButton.tsx +0 -76
- package/src/components/BubbleMenu.tsx +0 -93
- package/src/components/CharactorCount.tsx +0 -50
- package/src/components/ColorPicker.tsx +0 -272
- package/src/components/RichTextEditor.tsx +0 -212
- package/src/components/SizeSetter/SizeSetter.tsx +0 -102
- package/src/components/Toolbar.tsx +0 -108
- package/src/components/icons/Activity.tsx +0 -19
- package/src/components/icons/Animas.tsx +0 -24
- package/src/components/icons/AspectRatio.tsx +0 -13
- package/src/components/icons/Blockquote.tsx +0 -17
- package/src/components/icons/ColumnAddLeft.tsx +0 -7
- package/src/components/icons/ColumnAddRight.tsx +0 -7
- package/src/components/icons/DeleteColumn.tsx +0 -26
- package/src/components/icons/DeleteRow.tsx +0 -26
- package/src/components/icons/Direction.tsx +0 -7
- package/src/components/icons/Excalidraw.tsx +0 -7
- package/src/components/icons/ExportPdf.tsx +0 -8
- package/src/components/icons/ExportWord.tsx +0 -24
- package/src/components/icons/FileWordOutline.tsx +0 -13
- package/src/components/icons/Flag.tsx +0 -19
- package/src/components/icons/Food.tsx +0 -20
- package/src/components/icons/GIfIcon.tsx +0 -10
- package/src/components/icons/Icon.tsx +0 -30
- package/src/components/icons/ImportWord.tsx +0 -23
- package/src/components/icons/LeftToRight.tsx +0 -7
- package/src/components/icons/LineHeight.tsx +0 -13
- package/src/components/icons/MenuDown.tsx +0 -24
- package/src/components/icons/Mermaid.tsx +0 -13
- package/src/components/icons/NoFill.tsx +0 -7
- package/src/components/icons/Object.tsx +0 -24
- package/src/components/icons/RightToLeft.tsx +0 -7
- package/src/components/icons/SizeL.tsx +0 -9
- package/src/components/icons/SizeM.tsx +0 -13
- package/src/components/icons/SizeS.tsx +0 -13
- package/src/components/icons/Symbol.tsx +0 -19
- package/src/components/icons/Travel.tsx +0 -24
- package/src/components/icons/Twitter.tsx +0 -7
- package/src/components/icons/icons.ts +0 -212
- package/src/components/icons/index.ts +0 -12
- package/src/components/index.ts +0 -9
- package/src/components/menus/bubble.ts +0 -395
- package/src/components/menus/components/BubbleMenuContent.tsx +0 -15
- package/src/components/menus/components/BubbleMenuDrawer.tsx +0 -128
- package/src/components/menus/components/BubbleMenuExcalidraw.tsx +0 -91
- package/src/components/menus/components/BubbleMenuIframe.tsx +0 -143
- package/src/components/menus/components/BubbleMenuKatex.tsx +0 -136
- package/src/components/menus/components/BubbleMenuLink.tsx +0 -99
- package/src/components/menus/components/BubbleMenuMedia.tsx +0 -235
- package/src/components/menus/components/BubbleMenuMermaid.tsx +0 -128
- package/src/components/menus/components/BubbleMenuText.tsx +0 -102
- package/src/components/menus/components/BubbleMenuTwitter.tsx +0 -91
- package/src/components/menus/components/ColumnsBubbleMenu.tsx +0 -59
- package/src/components/menus/components/ContentMenu.tsx +0 -396
- package/src/components/menus/components/TableBubbleMenu.tsx +0 -362
- package/src/components/menus/index.ts +0 -7
- package/src/components/ui/button.tsx +0 -56
- package/src/components/ui/checkbox.tsx +0 -30
- package/src/components/ui/dialog.tsx +0 -128
- package/src/components/ui/dropdown-menu.tsx +0 -203
- package/src/components/ui/emoji-picker.tsx +0 -166
- package/src/components/ui/index.ts +0 -14
- package/src/components/ui/input.tsx +0 -25
- package/src/components/ui/label.tsx +0 -26
- package/src/components/ui/popover.tsx +0 -31
- package/src/components/ui/select.tsx +0 -162
- package/src/components/ui/separator.tsx +0 -31
- package/src/components/ui/switch.tsx +0 -29
- package/src/components/ui/tabs.tsx +0 -55
- package/src/components/ui/textarea.tsx +0 -24
- package/src/components/ui/toast.tsx +0 -129
- package/src/components/ui/toaster.tsx +0 -44
- package/src/components/ui/toggle.tsx +0 -45
- package/src/components/ui/tooltip.tsx +0 -30
- package/src/components/ui/use-toast.ts +0 -197
- package/src/constants/index.ts +0 -223
- package/src/constants/resetCSS.ts +0 -139
- package/src/extension-bundle.ts +0 -2
- package/src/extensions/Attachment/Attachment.ts +0 -144
- package/src/extensions/Attachment/components/NodeViewAttachment/FileIcon.tsx +0 -69
- package/src/extensions/Attachment/components/NodeViewAttachment/FileIconString.ts +0 -28
- package/src/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.tsx +0 -155
- package/src/extensions/Attachment/components/NodeViewAttachment/index.module.scss +0 -23
- package/src/extensions/Attachment/index.ts +0 -1
- package/src/extensions/BaseKit.ts +0 -253
- package/src/extensions/Blockquote/Blockquote.ts +0 -31
- package/src/extensions/Blockquote/index.ts +0 -1
- package/src/extensions/Bold/Bold.ts +0 -26
- package/src/extensions/Bold/index.ts +0 -1
- package/src/extensions/BulletList/BulletList.ts +0 -28
- package/src/extensions/BulletList/index.ts +0 -1
- package/src/extensions/Clear/Clear.ts +0 -24
- package/src/extensions/Clear/index.ts +0 -1
- package/src/extensions/Code/Code.ts +0 -26
- package/src/extensions/Code/index.ts +0 -1
- package/src/extensions/CodeBlock/CodeBlock.ts +0 -54
- package/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx +0 -66
- package/src/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.tsx +0 -89
- package/src/extensions/CodeBlock/components/NodeViewCodeBlock/index.module.scss +0 -81
- package/src/extensions/CodeBlock/highlighter.ts +0 -132
- package/src/extensions/CodeBlock/index.ts +0 -1
- package/src/extensions/CodeBlock/shiki-plugin.ts +0 -213
- package/src/extensions/Color/Color.ts +0 -52
- package/src/extensions/Color/components/ColorActionButton.tsx +0 -104
- package/src/extensions/Color/index.ts +0 -1
- package/src/extensions/Document/Document.ts +0 -8
- package/src/extensions/Document/index.ts +0 -1
- package/src/extensions/Drawer/Drawer.ts +0 -177
- package/src/extensions/Drawer/components/ControlDrawer/ControlDrawer.module.scss +0 -85
- package/src/extensions/Drawer/components/ControlDrawer/ControlDrawer.tsx +0 -598
- package/src/extensions/Drawer/components/ControlDrawer/icon.tsx +0 -500
- package/src/extensions/Drawer/components/DrawerActiveButton.tsx +0 -239
- package/src/extensions/Drawer/components/EditDrawerBlock.tsx +0 -238
- package/src/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.tsx +0 -260
- package/src/extensions/Drawer/index.ts +0 -1
- package/src/extensions/Emoji/Emoji.ts +0 -146
- package/src/extensions/Emoji/components/EmojiList/EmojiList.tsx +0 -103
- package/src/extensions/Emoji/components/EmojiList/emojis.ts +0 -1858
- package/src/extensions/Emoji/components/EmojiPicker/EmojiPicker.tsx +0 -61
- package/src/extensions/Emoji/index.ts +0 -1
- package/src/extensions/Excalidraw/Excalidraw.ts +0 -123
- package/src/extensions/Excalidraw/components/ExcalidrawActiveButton.tsx +0 -138
- package/src/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.tsx +0 -178
- package/src/extensions/Excalidraw/components/NodeViewExcalidraw/index.module.scss +0 -43
- package/src/extensions/Excalidraw/index.ts +0 -1
- package/src/extensions/ExportPdf/ExportPdf.ts +0 -25
- package/src/extensions/ExportPdf/index.ts +0 -1
- package/src/extensions/ExportWord/ExportWord.ts +0 -87
- package/src/extensions/ExportWord/index.ts +0 -1
- package/src/extensions/FontFamily/FontFamily.ts +0 -64
- package/src/extensions/FontFamily/components/FontFamilyButton.tsx +0 -97
- package/src/extensions/FontFamily/index.ts +0 -1
- package/src/extensions/FontSize/FontSize.ts +0 -119
- package/src/extensions/FontSize/components/FontSizeMenuButton.tsx +0 -84
- package/src/extensions/FontSize/index.ts +0 -1
- package/src/extensions/FormatPainter/FormatPainter.ts +0 -121
- package/src/extensions/FormatPainter/index.ts +0 -1
- package/src/extensions/Heading/Heading.ts +0 -57
- package/src/extensions/Heading/components/HeadingButton.tsx +0 -96
- package/src/extensions/Heading/index.ts +0 -1
- package/src/extensions/Highlight/Highlight.ts +0 -36
- package/src/extensions/Highlight/components/HighlightActionButton.tsx +0 -108
- package/src/extensions/Highlight/index.ts +0 -1
- package/src/extensions/History/History.ts +0 -39
- package/src/extensions/History/components/HistoryActionButton.tsx +0 -74
- package/src/extensions/History/index.ts +0 -1
- package/src/extensions/HorizontalRule/HorizontalRule.ts +0 -42
- package/src/extensions/HorizontalRule/index.ts +0 -1
- package/src/extensions/Iframe/Iframe.ts +0 -140
- package/src/extensions/Iframe/components/IframeNodeView.tsx +0 -92
- package/src/extensions/Iframe/components/index.module.scss +0 -40
- package/src/extensions/Iframe/embed.ts +0 -487
- package/src/extensions/Iframe/index.ts +0 -1
- package/src/extensions/Image/Image.ts +0 -303
- package/src/extensions/Image/components/ActionImageButton.tsx +0 -186
- package/src/extensions/Image/components/ImageCropper.tsx +0 -198
- package/src/extensions/Image/components/ImageView.tsx +0 -271
- package/src/extensions/Image/index.ts +0 -1
- package/src/extensions/Image/store.ts +0 -15
- package/src/extensions/ImageGif/ImageGif.ts +0 -176
- package/src/extensions/ImageGif/components/ImageGifActionButton.tsx +0 -138
- package/src/extensions/ImageGif/components/ImageGifView.tsx +0 -260
- package/src/extensions/ImageGif/index.ts +0 -1
- package/src/extensions/ImportWord/ImportWord.ts +0 -52
- package/src/extensions/ImportWord/components/ImportWordButton.tsx +0 -151
- package/src/extensions/ImportWord/index.ts +0 -1
- package/src/extensions/Indent/Indent.ts +0 -110
- package/src/extensions/Indent/index.ts +0 -1
- package/src/extensions/Italic/Italic.ts +0 -29
- package/src/extensions/Italic/index.ts +0 -1
- package/src/extensions/Katex/Katex.ts +0 -109
- package/src/extensions/Katex/components/KatexActiveButton.tsx +0 -117
- package/src/extensions/Katex/components/KatexWrapper.tsx +0 -53
- package/src/extensions/Katex/index.ts +0 -1
- package/src/extensions/LineHeight/LineHeight.ts +0 -76
- package/src/extensions/LineHeight/components/LineHeightDropdown.tsx +0 -93
- package/src/extensions/LineHeight/index.ts +0 -1
- package/src/extensions/Link/Link.ts +0 -92
- package/src/extensions/Link/components/LinkEditBlock.tsx +0 -110
- package/src/extensions/Link/components/LinkEditPopover.tsx +0 -46
- package/src/extensions/Link/components/LinkViewBlock.tsx +0 -54
- package/src/extensions/Link/index.ts +0 -1
- package/src/extensions/ListItem/ListItem.ts +0 -1
- package/src/extensions/ListItem/index.ts +0 -1
- package/src/extensions/Mention/Mention.ts +0 -100
- package/src/extensions/Mention/components/NodeViewMentionList/NodeViewMentionList.tsx +0 -94
- package/src/extensions/Mention/components/NodeViewMentionList/index.module.scss +0 -38
- package/src/extensions/Mention/index.ts +0 -1
- package/src/extensions/Mermaid/Mermaid.ts +0 -177
- package/src/extensions/Mermaid/components/EditMermaidBlock.tsx +0 -155
- package/src/extensions/Mermaid/components/MermaidActiveButton.tsx +0 -151
- package/src/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.tsx +0 -260
- package/src/extensions/Mermaid/index.ts +0 -1
- package/src/extensions/MoreMark/MoreMark.ts +0 -102
- package/src/extensions/MoreMark/components/ActionMoreButton.tsx +0 -97
- package/src/extensions/MoreMark/index.ts +0 -1
- package/src/extensions/MultiColumn/Column.ts +0 -36
- package/src/extensions/MultiColumn/MultiColumn.ts +0 -111
- package/src/extensions/MultiColumn/components/ColumnActionButton.ts +0 -22
- package/src/extensions/MultiColumn/index.ts +0 -3
- package/src/extensions/OrderedList/OrderedList.ts +0 -28
- package/src/extensions/OrderedList/index.ts +0 -1
- package/src/extensions/SearchAndReplace/SearchAndReplace.ts +0 -395
- package/src/extensions/SearchAndReplace/components/SearchAndReplaceButton.tsx +0 -190
- package/src/extensions/SearchAndReplace/index.ts +0 -1
- package/src/extensions/Selection/Selection.ts +0 -32
- package/src/extensions/Selection/index.ts +0 -1
- package/src/extensions/SlashCommand/SlashCommand.ts +0 -255
- package/src/extensions/SlashCommand/components/CommandsList.tsx +0 -180
- package/src/extensions/SlashCommand/groups.ts +0 -183
- package/src/extensions/SlashCommand/index.ts +0 -1
- package/src/extensions/SlashCommand/types.ts +0 -24
- package/src/extensions/Strike/Strike.ts +0 -26
- package/src/extensions/Strike/index.ts +0 -1
- package/src/extensions/Subscript/Subscript.ts +0 -88
- package/src/extensions/Subscript/index.ts +0 -1
- package/src/extensions/Table/Cell.ts +0 -131
- package/src/extensions/Table/Header.ts +0 -93
- package/src/extensions/Table/Row.ts +0 -8
- package/src/extensions/Table/Table.ts +0 -60
- package/src/extensions/Table/cell-background.ts +0 -112
- package/src/extensions/Table/components/CreateTablePopover.tsx +0 -132
- package/src/extensions/Table/components/TableActionButton.tsx +0 -42
- package/src/extensions/Table/index.ts +0 -6
- package/src/extensions/Table/utils.ts +0 -352
- package/src/extensions/TableOfContent/TableOfContent.ts +0 -124
- package/src/extensions/TableOfContent/components/NodeViewTableOfContent.tsx +0 -116
- package/src/extensions/TableOfContent/components/TableOfContentActionButton.tsx +0 -27
- package/src/extensions/TableOfContent/components/index.module.scss +0 -40
- package/src/extensions/TableOfContent/index.ts +0 -1
- package/src/extensions/TaskList/TaskList.ts +0 -46
- package/src/extensions/TaskList/index.ts +0 -1
- package/src/extensions/TextAlign/TextAlign.ts +0 -68
- package/src/extensions/TextAlign/components/TextAlignMenuButton.tsx +0 -103
- package/src/extensions/TextAlign/index.ts +0 -1
- package/src/extensions/TextBubble/TextBubble.ts +0 -22
- package/src/extensions/TextBubble/components/TextDropdown.tsx +0 -146
- package/src/extensions/TextBubble/index.ts +0 -1
- package/src/extensions/TextDirection/TextDirection.ts +0 -97
- package/src/extensions/TextDirection/components/TextDirectionButton.tsx +0 -103
- package/src/extensions/TextDirection/index.ts +0 -1
- package/src/extensions/TrailingNode/TrailingNode.ts +0 -71
- package/src/extensions/TrailingNode/index.ts +0 -1
- package/src/extensions/Twitter/Twitter.ts +0 -161
- package/src/extensions/Twitter/components/FormEditLinkTwitter.tsx +0 -68
- package/src/extensions/Twitter/components/NodeViewTweet.tsx +0 -30
- package/src/extensions/Twitter/components/TwitterActiveButton.tsx +0 -41
- package/src/extensions/Twitter/index.ts +0 -1
- package/src/extensions/UnderLine/Underline.ts +0 -30
- package/src/extensions/UnderLine/index.ts +0 -1
- package/src/extensions/Video/Video.ts +0 -204
- package/src/extensions/Video/components/ActiveVideoButton.tsx +0 -191
- package/src/extensions/Video/index.ts +0 -1
- package/src/extensions/Video/store.ts +0 -15
- package/src/extensions/index.ts +0 -122
- package/src/hooks/useActive.tsx +0 -24
- package/src/hooks/useAttributes.tsx +0 -45
- package/src/hooks/useCopy.tsx +0 -20
- package/src/hooks/useEditorState.tsx +0 -23
- package/src/hooks/useExtension.tsx +0 -29
- package/src/index.ts +0 -8
- package/src/lib/utils.ts +0 -7
- package/src/locale-bundle.ts +0 -3
- package/src/locales/en.ts +0 -173
- package/src/locales/hu.ts +0 -173
- package/src/locales/index.tsx +0 -163
- package/src/locales/pt-br.ts +0 -173
- package/src/locales/vi.ts +0 -173
- package/src/locales/zh-cn.ts +0 -173
- package/src/plugins/DragHandle/index.ts +0 -375
- package/src/plugins/DragHandle/range.ts +0 -114
- package/src/plugins/DragHandle/utils.ts +0 -80
- package/src/plugins/image-upload.ts +0 -160
- package/src/store/ProviderRichText.tsx +0 -53
- package/src/store/editableEditor.ts +0 -15
- package/src/store/fast-context.tsx +0 -70
- package/src/store/store.ts +0 -35
- package/src/styles/ProseMirror.scss +0 -176
- package/src/styles/columns.scss +0 -23
- package/src/styles/editor.scss +0 -411
- package/src/styles/global.scss +0 -87
- package/src/styles/index.scss +0 -5
- package/src/styles/mention.scss +0 -6
- package/src/theme/theme.ts +0 -15
- package/src/types.ts +0 -271
- package/src/utils/_event.ts +0 -55
- package/src/utils/color.ts +0 -67
- package/src/utils/columns.ts +0 -142
- package/src/utils/customEvents/customEvents.ts +0 -18
- package/src/utils/customEvents/events.constant.ts +0 -11
- package/src/utils/delete-node.ts +0 -46
- package/src/utils/dom-dataset.ts +0 -121
- package/src/utils/download.ts +0 -17
- package/src/utils/dynamicCSS.ts +0 -192
- package/src/utils/editor-container-size.ts +0 -28
- package/src/utils/file.ts +0 -112
- package/src/utils/getRenderContainer.ts +0 -41
- package/src/utils/indent.ts +0 -99
- package/src/utils/is-mobile.ts +0 -57
- package/src/utils/json.ts +0 -18
- package/src/utils/line-height.ts +0 -109
- package/src/utils/lru-cache.ts +0 -145
- package/src/utils/mitt.ts +0 -114
- package/src/utils/node.ts +0 -92
- package/src/utils/pdf.ts +0 -72
- package/src/utils/plateform.ts +0 -49
- package/src/utils/shortId.ts +0 -5
- package/src/utils/storage.ts +0 -18
- package/src/utils/utils.ts +0 -71
- package/src/vite-env.d.ts +0 -3
package/src/styles/editor.scss
DELETED
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
.reactjs-tiptap-editor.reactjs-tiptap-editor {
|
|
2
|
-
.ProseMirror.ProseMirror.ProseMirror {
|
|
3
|
-
@apply caret-black dark:caret-white outline-0 pr-8 pl-20 py-16 z-0 lg:pl-8 lg:pr-8;
|
|
4
|
-
min-height: 180px;
|
|
5
|
-
padding: 32px 80px;
|
|
6
|
-
|
|
7
|
-
.img-placeholder {
|
|
8
|
-
width: fit-content;
|
|
9
|
-
position: relative;
|
|
10
|
-
@apply backdrop-blur-sm bg-white/30;
|
|
11
|
-
|
|
12
|
-
&:before {
|
|
13
|
-
content: '';
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
position: absolute;
|
|
16
|
-
top: 50%;
|
|
17
|
-
left: 50%;
|
|
18
|
-
width: 24px;
|
|
19
|
-
height: 24px;
|
|
20
|
-
margin: -12px 0 0 -12px;
|
|
21
|
-
@apply animate-spin border-current border-t-transparent rounded-full border-[3px] inline-block;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tableWrapper {
|
|
26
|
-
@apply my-12 overflow-auto p-3;
|
|
27
|
-
table {
|
|
28
|
-
@apply box-border w-full border-collapse rounded border-black/10;
|
|
29
|
-
@apply dark:border-white/20;
|
|
30
|
-
td,
|
|
31
|
-
th {
|
|
32
|
-
@apply relative border border-black/10 p-2 text-left align-top;
|
|
33
|
-
@apply dark:border-white/20;
|
|
34
|
-
|
|
35
|
-
&:first-of-type:not(a) {
|
|
36
|
-
@apply mt-0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
p {
|
|
40
|
-
@apply m-0;
|
|
41
|
-
|
|
42
|
-
& + p {
|
|
43
|
-
@apply mt-3;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.column-resize-handle {
|
|
49
|
-
@apply bottom-[-2px] absolute right-[-2px] top-0 w-1 z-10 pointer-events-none bg-primary;
|
|
50
|
-
}
|
|
51
|
-
.resize-cursor {
|
|
52
|
-
cursor: 'col-resize';
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.selectedCell {
|
|
56
|
-
@apply bg-black/5 border-black/20 border-double;
|
|
57
|
-
@apply dark:bg-white/10 dark:border-white/20;
|
|
58
|
-
}
|
|
59
|
-
.grip-column,
|
|
60
|
-
.grip-row {
|
|
61
|
-
@apply absolute z-10 flex cursor-pointer items-center justify-center bg-black/5;
|
|
62
|
-
@apply dark:bg-white/10;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.grip-column {
|
|
66
|
-
@apply -top-3 left-0 -ml-[1px] h-3 w-[calc(100%+1px)] border-l border-black/20;
|
|
67
|
-
@apply dark:border-white/20;
|
|
68
|
-
|
|
69
|
-
&:hover,
|
|
70
|
-
&.selected {
|
|
71
|
-
&::before {
|
|
72
|
-
content: '';
|
|
73
|
-
@apply w-2.5;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:hover {
|
|
78
|
-
@apply bg-black/10;
|
|
79
|
-
@apply dark:bg-white/20;
|
|
80
|
-
|
|
81
|
-
&::before {
|
|
82
|
-
@apply border-b-2 border-dotted border-black/60;
|
|
83
|
-
@apply dark:border-white/60;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.first {
|
|
88
|
-
@apply rounded-tl-sm border-transparent;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.last {
|
|
92
|
-
@apply rounded-tr-sm;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.selected {
|
|
96
|
-
@apply border-black/30 bg-black/30 shadow-sm;
|
|
97
|
-
@apply dark:border-white/30 dark:bg-white/30;
|
|
98
|
-
|
|
99
|
-
&::before {
|
|
100
|
-
@apply border-b-2 border-dotted;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.grip-row {
|
|
106
|
-
@apply -left-3 top-0 -mt-[1px] h-[calc(100%+1px)] w-3 border-t border-black/20;
|
|
107
|
-
@apply dark:border-white/20;
|
|
108
|
-
|
|
109
|
-
&:hover,
|
|
110
|
-
&.selected {
|
|
111
|
-
&::before {
|
|
112
|
-
@apply h-2.5;
|
|
113
|
-
content: '';
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
&:hover {
|
|
117
|
-
@apply bg-black/10;
|
|
118
|
-
@apply dark:bg-white/20;
|
|
119
|
-
|
|
120
|
-
&::before {
|
|
121
|
-
@apply border-l-2 border-dotted border-black/60;
|
|
122
|
-
@apply dark:border-white/60;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.first {
|
|
127
|
-
@apply rounded-tl-sm border-transparent;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.last {
|
|
131
|
-
@apply rounded-bl-sm;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.selected {
|
|
135
|
-
@apply border-black/30 bg-black/30 shadow-sm;
|
|
136
|
-
@apply dark:border-white/30 dark:bg-white/30;
|
|
137
|
-
|
|
138
|
-
&::before {
|
|
139
|
-
@apply border-l-2 border-dotted;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
[data-type='horizontalRule'] {
|
|
147
|
-
@apply transition-all duration-100 ease-in-out cursor-pointer;
|
|
148
|
-
|
|
149
|
-
&.ProseMirror-selectednode {
|
|
150
|
-
@apply bg-black/5 dark:bg-white/10;
|
|
151
|
-
|
|
152
|
-
hr {
|
|
153
|
-
@apply border-t-black/30 dark:border-t-white/30;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&:hover:not(&.ProseMirror-selectednode) {
|
|
158
|
-
@apply bg-black/5;
|
|
159
|
-
@apply dark:bg-white/10;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
:not(.dragging) .ProseMirror-selectednode:not(.image-view) {
|
|
163
|
-
@apply outline-none bg-black/10 dark:bg-white/20 shadow-none transition-colors;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.selection:not(.image-view),
|
|
167
|
-
*:not(.image-view)::selection {
|
|
168
|
-
@apply bg-black/10 dark:bg-white/20;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.is-empty::before {
|
|
172
|
-
content: attr(data-placeholder);
|
|
173
|
-
float: left;
|
|
174
|
-
color: #adb5bd;
|
|
175
|
-
pointer-events: none;
|
|
176
|
-
width: 100%;
|
|
177
|
-
height: 0;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.columns.is-empty::before {
|
|
181
|
-
display: none !important;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.is-editor-empty:first-child::before {
|
|
185
|
-
content: attr(data-placeholder);
|
|
186
|
-
float: left;
|
|
187
|
-
color: #adb5bd;
|
|
188
|
-
pointer-events: none;
|
|
189
|
-
width: 100%;
|
|
190
|
-
height: 0;
|
|
191
|
-
}
|
|
192
|
-
p.is-editor-empty:first-child::before {
|
|
193
|
-
float: left;
|
|
194
|
-
height: 0;
|
|
195
|
-
color: #adb5bd;
|
|
196
|
-
pointer-events: none;
|
|
197
|
-
width: 100%;
|
|
198
|
-
content: attr(data-placeholder);
|
|
199
|
-
}
|
|
200
|
-
.ProseMirror-gapcursor {
|
|
201
|
-
@apply relative w-full max-w-2xl mx-auto;
|
|
202
|
-
|
|
203
|
-
&:after {
|
|
204
|
-
@apply border-t-black/40 dark:border-t-white/40 w-full top-[-1.5em] max-w-2xl mx-auto left-0 right-0;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.image-view {
|
|
209
|
-
$root: &;
|
|
210
|
-
|
|
211
|
-
display: inline-block;
|
|
212
|
-
float: none;
|
|
213
|
-
max-width: 100%;
|
|
214
|
-
line-height: 0;
|
|
215
|
-
vertical-align: baseline;
|
|
216
|
-
user-select: none;
|
|
217
|
-
|
|
218
|
-
&__body {
|
|
219
|
-
position: relative;
|
|
220
|
-
display: inline-block;
|
|
221
|
-
max-width: 100%;
|
|
222
|
-
clear: both;
|
|
223
|
-
outline: transparent solid 2px;
|
|
224
|
-
transition: all 0.2s ease-in;
|
|
225
|
-
|
|
226
|
-
&__button-wrap {
|
|
227
|
-
display: none;
|
|
228
|
-
justify-content: center;
|
|
229
|
-
align-items: center;
|
|
230
|
-
position: absolute;
|
|
231
|
-
top: 9px;
|
|
232
|
-
right: 9px;
|
|
233
|
-
background: rgba(38, 38, 38, 0.6);
|
|
234
|
-
border-radius: 8px;
|
|
235
|
-
z-index: 4;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&:hover {
|
|
239
|
-
outline-color: #ffc83d;
|
|
240
|
-
.image-view__body__button-wrap {
|
|
241
|
-
display: block;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&--focused:hover,
|
|
246
|
-
&--resizing:hover {
|
|
247
|
-
outline-color: hsl(var(--primary));
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&__placeholder {
|
|
251
|
-
position: absolute;
|
|
252
|
-
top: 0;
|
|
253
|
-
left: 0;
|
|
254
|
-
z-index: -1;
|
|
255
|
-
width: 100%;
|
|
256
|
-
height: 100%;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
&__image {
|
|
260
|
-
margin: 0;
|
|
261
|
-
cursor: pointer !important;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.image-view__body--focused {
|
|
266
|
-
outline-color: hsl(var(--primary)) !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
&.focus {
|
|
270
|
-
img {
|
|
271
|
-
@apply outline-primary outline-2 outline;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
img {
|
|
276
|
-
display: inline;
|
|
277
|
-
vertical-align: baseline;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.image-resizer {
|
|
282
|
-
position: absolute;
|
|
283
|
-
top: 0;
|
|
284
|
-
left: 0;
|
|
285
|
-
z-index: 1;
|
|
286
|
-
width: 100%;
|
|
287
|
-
height: 100%;
|
|
288
|
-
@apply border !important;
|
|
289
|
-
@apply border-border !important;
|
|
290
|
-
|
|
291
|
-
&__handler {
|
|
292
|
-
position: absolute;
|
|
293
|
-
z-index: 2;
|
|
294
|
-
box-sizing: border-box;
|
|
295
|
-
display: block;
|
|
296
|
-
width: 12px;
|
|
297
|
-
height: 12px;
|
|
298
|
-
border: 1px solid #fff;
|
|
299
|
-
border-radius: 2px;
|
|
300
|
-
background-color: hsl(var(--primary));
|
|
301
|
-
|
|
302
|
-
&--tl {
|
|
303
|
-
top: -6px;
|
|
304
|
-
left: -6px;
|
|
305
|
-
cursor: nw-resize;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
&--tr {
|
|
309
|
-
top: -6px;
|
|
310
|
-
right: -6px;
|
|
311
|
-
cursor: ne-resize;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
&--bl {
|
|
315
|
-
bottom: -6px;
|
|
316
|
-
left: -6px;
|
|
317
|
-
cursor: sw-resize;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
&--br {
|
|
321
|
-
right: -6px;
|
|
322
|
-
bottom: -6px;
|
|
323
|
-
cursor: se-resize;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
/* */
|
|
329
|
-
&.dense {
|
|
330
|
-
.ProseMirror {
|
|
331
|
-
min-height: 32px;
|
|
332
|
-
padding: 6px 12px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
p {
|
|
336
|
-
padding: 0;
|
|
337
|
-
line-height: 1.2rem;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.ProseMirror[contenteditable='true'].resize-cursor {
|
|
342
|
-
cursor: col-resize;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.slash-command-active.slash-command-active {
|
|
347
|
-
background-color: hsl(var(--accent)) !important;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
[data-dui-1-3-5~='dui-tooltip-wrapper'] {
|
|
351
|
-
display: inline-block;
|
|
352
|
-
position: relative;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.heading-0 {
|
|
356
|
-
font-weight: 700;
|
|
357
|
-
font-size: 16px;
|
|
358
|
-
}
|
|
359
|
-
.heading-1 {
|
|
360
|
-
font-weight: 700;
|
|
361
|
-
font-size: 28px;
|
|
362
|
-
line-height: 1.6;
|
|
363
|
-
}
|
|
364
|
-
.heading-2 {
|
|
365
|
-
font-weight: 700;
|
|
366
|
-
font-size: 24px;
|
|
367
|
-
line-height: 1.6;
|
|
368
|
-
}
|
|
369
|
-
.heading-3 {
|
|
370
|
-
font-size: 20px;
|
|
371
|
-
font-weight: 700;
|
|
372
|
-
line-height: 1.6;
|
|
373
|
-
}
|
|
374
|
-
.heading-4 {
|
|
375
|
-
font-size: 16px;
|
|
376
|
-
font-weight: 700;
|
|
377
|
-
line-height: 1.6;
|
|
378
|
-
}
|
|
379
|
-
.heading-5 {
|
|
380
|
-
font-size: 14px;
|
|
381
|
-
font-weight: 700;
|
|
382
|
-
line-height: 1.6;
|
|
383
|
-
}
|
|
384
|
-
.heading-6 {
|
|
385
|
-
font-size: 14px;
|
|
386
|
-
font-weight: 700;
|
|
387
|
-
line-height: 1.6;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.tableCellActive {
|
|
391
|
-
border-radius: 2px !important;
|
|
392
|
-
transition: all 100ms ease-in-out;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.tableCellActive > div {
|
|
396
|
-
border: unset !important;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.node-tableOfContents.focus {
|
|
400
|
-
border-width: 1px;
|
|
401
|
-
border-radius: 6px;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
div[data-twitter] > div {
|
|
405
|
-
margin: 10px auto;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.react-renderer.node-twitter.focus {
|
|
409
|
-
border-width: 1px;
|
|
410
|
-
border-radius: 6px;
|
|
411
|
-
}
|
package/src/styles/global.scss
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
@layer base {
|
|
6
|
-
:root {
|
|
7
|
-
--background: 0 0% 100%;
|
|
8
|
-
--foreground: 240 10% 3.9%;
|
|
9
|
-
|
|
10
|
-
--muted: 240 4.8% 95.9%;
|
|
11
|
-
--muted-foreground: 240 3.8% 46.1%;
|
|
12
|
-
|
|
13
|
-
--popover: 0 0% 100%;
|
|
14
|
-
--popover-foreground: 240 10% 3.9%;
|
|
15
|
-
|
|
16
|
-
--card: 0 0% 100%;
|
|
17
|
-
--card-foreground: 240 10% 3.9%;
|
|
18
|
-
|
|
19
|
-
--border: 240 5.9% 90%;
|
|
20
|
-
--input: 240 5.9% 90%;
|
|
21
|
-
|
|
22
|
-
--primary: 240 5.9% 10%;
|
|
23
|
-
--primary-foreground: 0 0% 98%;
|
|
24
|
-
|
|
25
|
-
--secondary: 240 4.8% 95.9%;
|
|
26
|
-
--secondary-foreground: 240 5.9% 10%;
|
|
27
|
-
|
|
28
|
-
--accent: 0 0% 88.24%;
|
|
29
|
-
--accent-foreground: 240 5.9% 10%;
|
|
30
|
-
|
|
31
|
-
--destructive: 0 84.2% 60.2%;
|
|
32
|
-
--destructive-foreground: 0 0% 98%;
|
|
33
|
-
|
|
34
|
-
--ring: 240 10% 3.9%;
|
|
35
|
-
|
|
36
|
-
--radius: 0.5rem;
|
|
37
|
-
|
|
38
|
-
--red: #FF5C33;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.dark {
|
|
42
|
-
--background: 240 10% 3.9%;
|
|
43
|
-
--foreground: 0 0% 98%;
|
|
44
|
-
|
|
45
|
-
--muted: 240 3.7% 15.9%;
|
|
46
|
-
--muted-foreground: 240 5% 64.9%;
|
|
47
|
-
|
|
48
|
-
--popover: 240 10% 3.9%;
|
|
49
|
-
--popover-foreground: 0 0% 98%;
|
|
50
|
-
|
|
51
|
-
--card: 240 10% 3.9%;
|
|
52
|
-
--card-foreground: 0 0% 98%;
|
|
53
|
-
|
|
54
|
-
--border: 240 3.7% 15.9%;
|
|
55
|
-
--input: 240 3.7% 15.9%;
|
|
56
|
-
|
|
57
|
-
--primary: 0 0% 98%;
|
|
58
|
-
--primary-foreground: 240 5.9% 10%;
|
|
59
|
-
|
|
60
|
-
--secondary: 240 3.7% 15.9%;
|
|
61
|
-
--secondary-foreground: 0 0% 98%;
|
|
62
|
-
|
|
63
|
-
--accent: 240 3.7% 15.9%;
|
|
64
|
-
--accent-foreground: 0 0% 98%;
|
|
65
|
-
|
|
66
|
-
--destructive: 0 62.8% 30.6%;
|
|
67
|
-
--destructive-foreground: 0 0% 98%;
|
|
68
|
-
|
|
69
|
-
--ring: 240 4.9% 83.9%;
|
|
70
|
-
|
|
71
|
-
--red: #FF5C33;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// https://github.com/radix-ui/primitives/issues/1496
|
|
76
|
-
html body[data-scroll-locked] {
|
|
77
|
-
--removed-body-scroll-bar-size: 0 !important;
|
|
78
|
-
// margin-right: 0 !important;
|
|
79
|
-
position: initial !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Character count */
|
|
83
|
-
.character-count {
|
|
84
|
-
&--warning {
|
|
85
|
-
color: var(--red) !important;
|
|
86
|
-
}
|
|
87
|
-
}
|
package/src/styles/index.scss
DELETED
package/src/styles/mention.scss
DELETED
package/src/theme/theme.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useStoreTheme } from 'reactjs-tiptap-editor-pro/store/store';
|
|
2
|
-
import { dispatchEvent } from 'reactjs-tiptap-editor-pro/utils/customEvents/customEvents';
|
|
3
|
-
import { EVENTS } from 'reactjs-tiptap-editor-pro/utils/customEvents/events.constant';
|
|
4
|
-
|
|
5
|
-
export function useTheme() {
|
|
6
|
-
const [v] = useStoreTheme(store => store.value);
|
|
7
|
-
|
|
8
|
-
return v;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const themeActions = {
|
|
12
|
-
setTheme: (id: any, theme: string) => {
|
|
13
|
-
dispatchEvent(EVENTS.UPDATE_THEME(id), theme);
|
|
14
|
-
},
|
|
15
|
-
};
|