reactjs-tiptap-editor-pro 0.2.30 → 0.2.31
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/package.json +4 -1
- package/src/components/ActionButton.tsx +4 -4
- package/src/components/ActionMenuButton.tsx +3 -3
- package/src/components/BubbleMenu.tsx +9 -9
- package/src/components/CharactorCount.tsx +1 -1
- package/src/components/ColorPicker.tsx +4 -4
- package/src/components/RichTextEditor.tsx +11 -11
- package/src/components/SizeSetter/SizeSetter.tsx +2 -2
- package/src/components/Toolbar.tsx +4 -4
- package/src/components/icons/Icon.tsx +1 -1
- package/src/components/icons/icons.ts +12 -12
- package/src/components/menus/bubble.ts +4 -4
- package/src/components/menus/components/BubbleMenuDrawer.tsx +6 -6
- package/src/components/menus/components/BubbleMenuExcalidraw.tsx +9 -9
- package/src/components/menus/components/BubbleMenuIframe.tsx +9 -9
- package/src/components/menus/components/BubbleMenuKatex.tsx +7 -7
- package/src/components/menus/components/BubbleMenuLink.tsx +2 -2
- package/src/components/menus/components/BubbleMenuMedia.tsx +3 -3
- package/src/components/menus/components/BubbleMenuMermaid.tsx +6 -6
- package/src/components/menus/components/BubbleMenuText.tsx +3 -3
- package/src/components/menus/components/BubbleMenuTwitter.tsx +5 -5
- package/src/components/menus/components/ColumnsBubbleMenu.tsx +4 -4
- package/src/components/menus/components/ContentMenu.tsx +4 -4
- package/src/components/menus/components/TableBubbleMenu.tsx +5 -5
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/emoji-picker.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/ui/toaster.tsx +2 -2
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/ui/use-toast.ts +1 -1
- package/src/extension-bundle.ts +1 -1
- package/src/extensions/Attachment/Attachment.ts +6 -6
- package/src/extensions/Attachment/components/NodeViewAttachment/FileIcon.tsx +4 -4
- package/src/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.tsx +4 -4
- package/src/extensions/BaseKit.ts +8 -8
- package/src/extensions/Blockquote/Blockquote.ts +2 -2
- package/src/extensions/Bold/Bold.ts +2 -2
- package/src/extensions/BulletList/BulletList.ts +2 -2
- package/src/extensions/Clear/Clear.ts +2 -2
- package/src/extensions/Code/Code.ts +2 -2
- package/src/extensions/CodeBlock/CodeBlock.ts +5 -5
- package/src/extensions/CodeBlock/components/CodeBlockActiveButton.tsx +2 -2
- package/src/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.tsx +7 -7
- package/src/extensions/Color/Color.ts +2 -2
- package/src/extensions/Color/components/ColorActionButton.tsx +3 -3
- package/src/extensions/Drawer/Drawer.ts +3 -3
- package/src/extensions/Drawer/components/ControlDrawer/ControlDrawer.tsx +1 -1
- package/src/extensions/Drawer/components/DrawerActiveButton.tsx +6 -6
- package/src/extensions/Drawer/components/EditDrawerBlock.tsx +6 -6
- package/src/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.tsx +2 -2
- package/src/extensions/Emoji/Emoji.ts +1 -1
- package/src/extensions/Emoji/components/EmojiList/EmojiList.tsx +1 -1
- package/src/extensions/Emoji/components/EmojiPicker/EmojiPicker.tsx +2 -2
- package/src/extensions/Excalidraw/Excalidraw.ts +3 -3
- package/src/extensions/Excalidraw/components/ExcalidrawActiveButton.tsx +4 -4
- package/src/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.tsx +4 -4
- package/src/extensions/ExportPdf/ExportPdf.ts +2 -2
- package/src/extensions/ExportWord/ExportWord.ts +3 -3
- package/src/extensions/FontFamily/FontFamily.ts +4 -4
- package/src/extensions/FontFamily/components/FontFamilyButton.tsx +3 -3
- package/src/extensions/FontSize/FontSize.ts +3 -3
- package/src/extensions/FontSize/components/FontSizeMenuButton.tsx +3 -3
- package/src/extensions/FormatPainter/FormatPainter.ts +2 -2
- package/src/extensions/Heading/Heading.ts +2 -2
- package/src/extensions/Heading/components/HeadingButton.tsx +3 -3
- package/src/extensions/Highlight/Highlight.ts +1 -1
- package/src/extensions/Highlight/components/HighlightActionButton.tsx +3 -3
- package/src/extensions/History/History.ts +2 -2
- package/src/extensions/History/components/HistoryActionButton.tsx +3 -3
- package/src/extensions/HorizontalRule/HorizontalRule.ts +2 -2
- package/src/extensions/Iframe/Iframe.ts +3 -3
- package/src/extensions/Iframe/components/IframeNodeView.tsx +4 -4
- package/src/extensions/Image/Image.ts +4 -4
- package/src/extensions/Image/components/ActionImageButton.tsx +8 -8
- package/src/extensions/Image/components/ImageCropper.tsx +6 -6
- package/src/extensions/Image/components/ImageView.tsx +1 -1
- package/src/extensions/Image/store.ts +3 -3
- package/src/extensions/ImageGif/ImageGif.ts +2 -2
- package/src/extensions/ImageGif/components/ImageGifActionButton.tsx +1 -1
- package/src/extensions/ImageGif/components/ImageGifView.tsx +1 -1
- package/src/extensions/ImportWord/ImportWord.ts +2 -2
- package/src/extensions/ImportWord/components/ImportWordButton.tsx +3 -3
- package/src/extensions/Indent/Indent.ts +3 -3
- package/src/extensions/Italic/Italic.ts +2 -2
- package/src/extensions/Katex/Katex.ts +2 -2
- package/src/extensions/Katex/components/KatexActiveButton.tsx +6 -6
- package/src/extensions/Katex/components/KatexWrapper.tsx +2 -2
- package/src/extensions/LineHeight/LineHeight.ts +4 -4
- package/src/extensions/LineHeight/components/LineHeightDropdown.tsx +3 -3
- package/src/extensions/Link/Link.ts +2 -2
- package/src/extensions/Link/components/LinkEditBlock.tsx +2 -2
- package/src/extensions/Link/components/LinkEditPopover.tsx +3 -3
- package/src/extensions/Link/components/LinkViewBlock.tsx +2 -2
- package/src/extensions/Mention/Mention.ts +3 -3
- package/src/extensions/Mermaid/Mermaid.ts +3 -3
- package/src/extensions/Mermaid/components/EditMermaidBlock.tsx +6 -6
- package/src/extensions/Mermaid/components/MermaidActiveButton.tsx +6 -6
- package/src/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.tsx +2 -2
- package/src/extensions/MoreMark/MoreMark.ts +3 -3
- package/src/extensions/MoreMark/components/ActionMoreButton.tsx +3 -3
- package/src/extensions/MultiColumn/MultiColumn.ts +1 -1
- package/src/extensions/MultiColumn/components/ColumnActionButton.ts +1 -1
- package/src/extensions/OrderedList/OrderedList.ts +2 -2
- package/src/extensions/SearchAndReplace/SearchAndReplace.ts +4 -4
- package/src/extensions/SearchAndReplace/components/SearchAndReplaceButton.tsx +5 -5
- package/src/extensions/SlashCommand/SlashCommand.ts +1 -1
- package/src/extensions/SlashCommand/components/CommandsList.tsx +3 -3
- package/src/extensions/SlashCommand/groups.ts +4 -4
- package/src/extensions/Strike/Strike.ts +2 -2
- package/src/extensions/Subscript/Subscript.ts +2 -2
- package/src/extensions/Table/Table.ts +2 -2
- package/src/extensions/Table/components/CreateTablePopover.tsx +3 -3
- package/src/extensions/Table/components/TableActionButton.tsx +3 -3
- package/src/extensions/TableOfContent/TableOfContent.ts +3 -3
- package/src/extensions/TableOfContent/components/NodeViewTableOfContent.tsx +2 -2
- package/src/extensions/TableOfContent/components/TableOfContentActionButton.tsx +3 -3
- package/src/extensions/TaskList/TaskList.ts +2 -2
- package/src/extensions/TextAlign/TextAlign.ts +2 -2
- package/src/extensions/TextAlign/components/TextAlignMenuButton.tsx +4 -4
- package/src/extensions/TextBubble/TextBubble.ts +1 -1
- package/src/extensions/TextBubble/components/TextDropdown.tsx +2 -2
- package/src/extensions/TextDirection/TextDirection.ts +1 -1
- package/src/extensions/TextDirection/components/TextDirectionButton.tsx +4 -4
- package/src/extensions/Twitter/Twitter.ts +2 -2
- package/src/extensions/Twitter/components/FormEditLinkTwitter.tsx +3 -3
- package/src/extensions/Twitter/components/TwitterActiveButton.tsx +3 -3
- package/src/extensions/UnderLine/Underline.ts +2 -2
- package/src/extensions/Video/Video.ts +4 -4
- package/src/extensions/Video/components/ActiveVideoButton.tsx +6 -6
- package/src/extensions/Video/store.ts +3 -3
- package/src/index.ts +3 -3
- package/src/locales/index.tsx +3 -3
- package/src/store/ProviderRichText.tsx +3 -3
- package/src/store/editableEditor.ts +3 -3
- package/src/store/store.ts +1 -1
- package/src/theme/theme.ts +3 -3
- package/src/utils/_event.ts +1 -1
- package/src/utils/columns.ts +1 -1
- package/src/utils/customEvents/customEvents.ts +1 -1
- package/src/utils/dom-dataset.ts +1 -1
- package/src/utils/line-height.ts +1 -1
- package/src/utils/utils.ts +1 -1
|
@@ -4,10 +4,10 @@ import { NodeViewWrapper } from '@tiptap/react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { Resizable } from 're-resizable';
|
|
6
6
|
|
|
7
|
-
// import { getEditorContainerDOMSize } from '
|
|
8
|
-
import { Button, Input } from '
|
|
9
|
-
import { Iframe } from '
|
|
10
|
-
import { useEditableEditor } from '
|
|
7
|
+
// import { getEditorContainerDOMSize } from 'reactjs-tiptap-editor-pro/utils'
|
|
8
|
+
import { Button, Input } from 'reactjs-tiptap-editor-pro/components/ui';
|
|
9
|
+
import { Iframe } from 'reactjs-tiptap-editor-pro/extensions/Iframe/Iframe';
|
|
10
|
+
import { useEditableEditor } from 'reactjs-tiptap-editor-pro/store/editableEditor';
|
|
11
11
|
|
|
12
12
|
import styles from './index.module.scss';
|
|
13
13
|
|
|
@@ -4,10 +4,10 @@ import TiptapImage from '@tiptap/extension-image';
|
|
|
4
4
|
import { Plugin } from '@tiptap/pm/state';
|
|
5
5
|
import { ReactNodeViewRenderer } from '@tiptap/react';
|
|
6
6
|
|
|
7
|
-
import ActionImageButton from '
|
|
8
|
-
import ImageView from '
|
|
9
|
-
import { UploadImagesPlugin, createImageUpload, handleImageDrop, handleImagePaste } from '
|
|
10
|
-
import type { GeneralOptions } from '
|
|
7
|
+
import ActionImageButton from 'reactjs-tiptap-editor-pro/extensions/Image/components/ActionImageButton';
|
|
8
|
+
import ImageView from 'reactjs-tiptap-editor-pro/extensions/Image/components/ImageView';
|
|
9
|
+
import { UploadImagesPlugin, createImageUpload, handleImageDrop, handleImagePaste } from 'reactjs-tiptap-editor-pro/plugins/image-upload';
|
|
10
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
11
11
|
|
|
12
12
|
export interface SetImageAttrsOptions {
|
|
13
13
|
src?: string
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { ActionButton, Button, Checkbox, Input, Label, Tabs, TabsContent, TabsList, TabsTrigger } from '
|
|
4
|
-
import { Dialog, DialogContent, DialogTitle, DialogTrigger } from '
|
|
5
|
-
import { ImageCropper } from '
|
|
6
|
-
import Image from '
|
|
7
|
-
import { actionDialogImage } from '
|
|
8
|
-
import { useLocale } from '
|
|
9
|
-
import { listenEvent } from '
|
|
10
|
-
import { EVENTS } from '
|
|
3
|
+
import { ActionButton, Button, Checkbox, Input, Label, Tabs, TabsContent, TabsList, TabsTrigger } from 'reactjs-tiptap-editor-pro/components';
|
|
4
|
+
import { Dialog, DialogContent, DialogTitle, DialogTrigger } from 'reactjs-tiptap-editor-pro/components/ui/dialog';
|
|
5
|
+
import { ImageCropper } from 'reactjs-tiptap-editor-pro/extensions/Image/components/ImageCropper';
|
|
6
|
+
import Image from 'reactjs-tiptap-editor-pro/extensions/Image/Image';
|
|
7
|
+
import { actionDialogImage } from 'reactjs-tiptap-editor-pro/extensions/Image/store';
|
|
8
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
9
|
+
import { listenEvent } from 'reactjs-tiptap-editor-pro/utils/customEvents/customEvents';
|
|
10
|
+
import { EVENTS } from 'reactjs-tiptap-editor-pro/utils/customEvents/events.constant';
|
|
11
11
|
|
|
12
12
|
function ActionImageButton(props: any) {
|
|
13
13
|
const { t } = useLocale();
|
|
@@ -5,18 +5,18 @@ import ReactCrop, {
|
|
|
5
5
|
type PixelCrop,
|
|
6
6
|
} from 'react-image-crop';
|
|
7
7
|
|
|
8
|
-
import { IconComponent } from '
|
|
9
|
-
import { Button } from '
|
|
8
|
+
import { IconComponent } from 'reactjs-tiptap-editor-pro/components';
|
|
9
|
+
import { Button } from 'reactjs-tiptap-editor-pro/components/ui/button';
|
|
10
10
|
import {
|
|
11
11
|
Dialog,
|
|
12
12
|
DialogContent,
|
|
13
13
|
DialogFooter,
|
|
14
14
|
DialogTitle,
|
|
15
15
|
DialogTrigger,
|
|
16
|
-
} from '
|
|
17
|
-
import { Image as ExtensionImage } from '
|
|
18
|
-
import { useLocale } from '
|
|
19
|
-
import { dataURLtoFile, readImageAsBase64 } from '
|
|
16
|
+
} from 'reactjs-tiptap-editor-pro/components/ui/dialog';
|
|
17
|
+
import { Image as ExtensionImage } from 'reactjs-tiptap-editor-pro/extensions';
|
|
18
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
19
|
+
import { dataURLtoFile, readImageAsBase64 } from 'reactjs-tiptap-editor-pro/utils/file';
|
|
20
20
|
|
|
21
21
|
export function ImageCropper({ editor, imageInline, onClose }: any) {
|
|
22
22
|
const { t } = useLocale();
|
|
@@ -5,7 +5,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
5
5
|
import { NodeViewWrapper } from '@tiptap/react';
|
|
6
6
|
import { clamp, isNumber, throttle } from 'lodash-es';
|
|
7
7
|
|
|
8
|
-
import { IMAGE_MAX_SIZE, IMAGE_MIN_SIZE, IMAGE_THROTTLE_WAIT_TIME } from '
|
|
8
|
+
import { IMAGE_MAX_SIZE, IMAGE_MIN_SIZE, IMAGE_THROTTLE_WAIT_TIME } from 'reactjs-tiptap-editor-pro/constants';
|
|
9
9
|
|
|
10
10
|
interface Size {
|
|
11
11
|
width: number
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useStoreUploadImage } from '
|
|
2
|
-
import { dispatchEvent } from '
|
|
3
|
-
import { EVENTS } from '
|
|
1
|
+
import { useStoreUploadImage } 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
4
|
|
|
5
5
|
export function useDialogImage() {
|
|
6
6
|
const [v] = useStoreUploadImage(store => store.value);
|
|
@@ -3,8 +3,8 @@ import type { ImageOptions } from '@tiptap/extension-image';
|
|
|
3
3
|
import TiptapImage from '@tiptap/extension-image';
|
|
4
4
|
import { ReactNodeViewRenderer } from '@tiptap/react';
|
|
5
5
|
|
|
6
|
-
import ImageGifActionButton from '
|
|
7
|
-
import ImageGifView from '
|
|
6
|
+
import ImageGifActionButton from 'reactjs-tiptap-editor-pro/extensions/ImageGif/components/ImageGifActionButton';
|
|
7
|
+
import ImageGifView from 'reactjs-tiptap-editor-pro/extensions/ImageGif/components/ImageGifView';
|
|
8
8
|
|
|
9
9
|
export interface SetImageAttrsOptions {
|
|
10
10
|
src?: string
|
|
@@ -3,7 +3,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { debounce } from 'lodash-es';
|
|
5
5
|
|
|
6
|
-
import { ActionButton, Input, Popover, PopoverContent, PopoverTrigger } from '
|
|
6
|
+
import { ActionButton, Input, Popover, PopoverContent, PopoverTrigger } from 'reactjs-tiptap-editor-pro/components';
|
|
7
7
|
|
|
8
8
|
interface IProps {
|
|
9
9
|
showClear?: boolean
|
|
@@ -5,7 +5,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
5
5
|
import { NodeViewWrapper } from '@tiptap/react';
|
|
6
6
|
import { clamp, isNumber, throttle } from 'lodash-es';
|
|
7
7
|
|
|
8
|
-
import { IMAGE_MAX_SIZE, IMAGE_MIN_SIZE, IMAGE_THROTTLE_WAIT_TIME } from '
|
|
8
|
+
import { IMAGE_MAX_SIZE, IMAGE_MIN_SIZE, IMAGE_THROTTLE_WAIT_TIME } from 'reactjs-tiptap-editor-pro/constants';
|
|
9
9
|
|
|
10
10
|
interface Size {
|
|
11
11
|
width: number
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { default as Mammoth } from 'mammoth';
|
|
3
3
|
|
|
4
4
|
import { Extension } from '@tiptap/core';
|
|
5
|
-
import type { GeneralOptions } from '
|
|
5
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
6
6
|
|
|
7
|
-
import ImportWordButton from '
|
|
7
|
+
import ImportWordButton from 'reactjs-tiptap-editor-pro/extensions/ImportWord/components/ImportWordButton';
|
|
8
8
|
|
|
9
9
|
export interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
|
|
10
10
|
/** Function for converting Word files to HTML */
|
|
@@ -3,9 +3,9 @@ import { useRef, useState } from 'react';
|
|
|
3
3
|
import type { Editor } from '@tiptap/core';
|
|
4
4
|
import mammoth from 'mammoth';
|
|
5
5
|
|
|
6
|
-
import { ActionButton, useToast } from '
|
|
7
|
-
import { useLocale } from '
|
|
8
|
-
import { hasExtension } from '
|
|
6
|
+
import { ActionButton, useToast } from 'reactjs-tiptap-editor-pro/components';
|
|
7
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
8
|
+
import { hasExtension } from 'reactjs-tiptap-editor-pro/utils/utils';
|
|
9
9
|
|
|
10
10
|
function base64ToBlob(base64: any, mimeType: any) {
|
|
11
11
|
const byteCharacters = atob(base64.split(',')[1]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Extension } from '@tiptap/core';
|
|
2
2
|
import type { Editor } from '@tiptap/core';
|
|
3
3
|
|
|
4
|
-
import { ActionButton } from '
|
|
5
|
-
import type { GeneralOptions } from '
|
|
6
|
-
import { IndentProps, createIndentCommand } from '
|
|
4
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components';
|
|
5
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
6
|
+
import { IndentProps, createIndentCommand } from 'reactjs-tiptap-editor-pro/utils/indent';
|
|
7
7
|
|
|
8
8
|
export interface IndentOptions extends GeneralOptions<IndentOptions> {
|
|
9
9
|
types: string[]
|
|
@@ -2,8 +2,8 @@ import type { Editor } from '@tiptap/core';
|
|
|
2
2
|
import type { ItalicOptions as TiptapItalicOptions } from '@tiptap/extension-italic';
|
|
3
3
|
import TiptapItalic from '@tiptap/extension-italic';
|
|
4
4
|
|
|
5
|
-
import { ActionButton } from '
|
|
6
|
-
import type { GeneralOptions } from '
|
|
5
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components';
|
|
6
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
7
7
|
|
|
8
8
|
export interface ItalicOptions extends TiptapItalicOptions, GeneralOptions<ItalicOptions> {}
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Node, mergeAttributes, nodeInputRule } from '@tiptap/core';
|
|
2
2
|
import { ReactNodeViewRenderer } from '@tiptap/react';
|
|
3
3
|
|
|
4
|
-
import KatexActiveButton from '
|
|
5
|
-
import { KatexWrapper } from '
|
|
4
|
+
import KatexActiveButton from 'reactjs-tiptap-editor-pro/extensions/Katex/components/KatexActiveButton';
|
|
5
|
+
import { KatexWrapper } from 'reactjs-tiptap-editor-pro/extensions/Katex/components/KatexWrapper';
|
|
6
6
|
|
|
7
7
|
export interface IKatexAttrs {
|
|
8
8
|
text?: string
|
|
@@ -3,12 +3,12 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
3
3
|
import katex from 'katex';
|
|
4
4
|
import { HelpCircle } from 'lucide-react';
|
|
5
5
|
|
|
6
|
-
import { ActionButton, Button, Label, Popover, PopoverContent, PopoverTrigger } from '
|
|
7
|
-
import { Textarea } from '
|
|
8
|
-
import type { IKatexAttrs } from '
|
|
9
|
-
import { Katex } from '
|
|
10
|
-
import { useAttributes } from '
|
|
11
|
-
import { useLocale } from '
|
|
6
|
+
import { ActionButton, Button, Label, Popover, PopoverContent, PopoverTrigger } from 'reactjs-tiptap-editor-pro/components';
|
|
7
|
+
import { Textarea } from 'reactjs-tiptap-editor-pro/components/ui/textarea';
|
|
8
|
+
import type { IKatexAttrs } from 'reactjs-tiptap-editor-pro/extensions/Katex/Katex';
|
|
9
|
+
import { Katex } from 'reactjs-tiptap-editor-pro/extensions/Katex/Katex';
|
|
10
|
+
import { useAttributes } from 'reactjs-tiptap-editor-pro/hooks/useAttributes';
|
|
11
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
12
12
|
|
|
13
13
|
function KatexActiveButton({ editor, ...props }: any) {
|
|
14
14
|
const { t } = useLocale();
|
|
@@ -3,8 +3,8 @@ import { useMemo } from 'react';
|
|
|
3
3
|
import { NodeViewWrapper } from '@tiptap/react';
|
|
4
4
|
|
|
5
5
|
import katex from 'katex';
|
|
6
|
-
import { useTheme } from '
|
|
7
|
-
import { convertColorToRGBA } from '
|
|
6
|
+
import { useTheme } from 'reactjs-tiptap-editor-pro/theme/theme';
|
|
7
|
+
import { convertColorToRGBA } from 'reactjs-tiptap-editor-pro/utils/color';
|
|
8
8
|
|
|
9
9
|
export function KatexWrapper({ node }: any) {
|
|
10
10
|
const theme = useTheme();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Extension } from '@tiptap/core';
|
|
2
2
|
import type { Editor } from '@tiptap/core';
|
|
3
3
|
|
|
4
|
-
import { DEFAULT_LINE_HEIGHT, DEFAULT_LINE_HEIGHT_LIST } from '
|
|
5
|
-
import LineHeightDropdown from '
|
|
6
|
-
import type { GeneralOptions } from '
|
|
7
|
-
import { createLineHeightCommand } from '
|
|
4
|
+
import { DEFAULT_LINE_HEIGHT, DEFAULT_LINE_HEIGHT_LIST } from 'reactjs-tiptap-editor-pro/constants';
|
|
5
|
+
import LineHeightDropdown from 'reactjs-tiptap-editor-pro/extensions/LineHeight/components/LineHeightDropdown';
|
|
6
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
7
|
+
import { createLineHeightCommand } from 'reactjs-tiptap-editor-pro/utils/line-height';
|
|
8
8
|
|
|
9
9
|
export interface LineHeightOptions extends GeneralOptions<LineHeightOptions> {
|
|
10
10
|
types: string[]
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
DropdownMenuContent,
|
|
8
8
|
DropdownMenuTrigger,
|
|
9
9
|
IconComponent,
|
|
10
|
-
} from '
|
|
11
|
-
import { useLocale } from '
|
|
12
|
-
import type { ButtonViewReturnComponentProps } from '
|
|
10
|
+
} from 'reactjs-tiptap-editor-pro/components';
|
|
11
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
12
|
+
import type { ButtonViewReturnComponentProps } from 'reactjs-tiptap-editor-pro/types';
|
|
13
13
|
|
|
14
14
|
interface IPropsLineHeightDropdown {
|
|
15
15
|
editor: any
|
|
@@ -4,8 +4,8 @@ import { Link as TiptapLink } from '@tiptap/extension-link';
|
|
|
4
4
|
import { Plugin, TextSelection } from '@tiptap/pm/state';
|
|
5
5
|
import type { EditorView } from '@tiptap/pm/view';
|
|
6
6
|
|
|
7
|
-
import LinkEditPopover from '
|
|
8
|
-
import type { GeneralOptions } from '
|
|
7
|
+
import LinkEditPopover from 'reactjs-tiptap-editor-pro/extensions/Link/components/LinkEditPopover';
|
|
8
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
9
9
|
|
|
10
10
|
export interface LinkOptions extends TiptapLinkOptions, GeneralOptions<LinkOptions> {}
|
|
11
11
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button, IconComponent, Input, Label, Switch } from '
|
|
7
|
-
import { useLocale } from '
|
|
6
|
+
import { Button, IconComponent, Input, Label, Switch } from 'reactjs-tiptap-editor-pro/components';
|
|
7
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
8
8
|
|
|
9
9
|
interface IPropsLinkEditBlock {
|
|
10
10
|
editor: any
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { ActionButton, IconComponent, Popover, PopoverContent, PopoverTrigger } from '
|
|
4
|
-
import LinkEditBlock from '
|
|
5
|
-
import type { ButtonViewReturnComponentProps } from '
|
|
3
|
+
import { ActionButton, IconComponent, Popover, PopoverContent, PopoverTrigger } from 'reactjs-tiptap-editor-pro/components';
|
|
4
|
+
import LinkEditBlock from 'reactjs-tiptap-editor-pro/extensions/Link/components/LinkEditBlock';
|
|
5
|
+
import type { ButtonViewReturnComponentProps } from 'reactjs-tiptap-editor-pro/types';
|
|
6
6
|
|
|
7
7
|
interface IPropsLinkEditPopover {
|
|
8
8
|
editor: any
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { truncate } from 'lodash-es';
|
|
4
4
|
|
|
5
|
-
import { ActionButton, Separator } from '
|
|
6
|
-
import { useLocale } from '
|
|
5
|
+
import { ActionButton, Separator } from 'reactjs-tiptap-editor-pro/components';
|
|
6
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
7
7
|
|
|
8
8
|
interface IPropsLinkViewBlock {
|
|
9
9
|
editor: any
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import BulitInMention from '@tiptap/extension-mention';
|
|
2
2
|
// import { getMentionUser } from 'services/user'
|
|
3
|
-
// import { MentionList } from '
|
|
3
|
+
// import { MentionList } from 'reactjs-tiptap-editor-pro/wrappers/mention-list'
|
|
4
4
|
import { ReactRenderer } from '@tiptap/react';
|
|
5
5
|
import tippy from 'tippy.js';
|
|
6
|
-
import { getDatasetAttribute } from '
|
|
7
|
-
import { NodeViewMentionList } from '
|
|
6
|
+
import { getDatasetAttribute } from 'reactjs-tiptap-editor-pro/utils/dom-dataset';
|
|
7
|
+
import { NodeViewMentionList } from 'reactjs-tiptap-editor-pro/extensions/Mention/components/NodeViewMentionList/NodeViewMentionList';
|
|
8
8
|
|
|
9
9
|
const MOCK_USERS = [
|
|
10
10
|
{
|
|
@@ -4,9 +4,9 @@ import { mergeAttributes } from '@tiptap/core';
|
|
|
4
4
|
import TiptapImage from '@tiptap/extension-image';
|
|
5
5
|
import { ReactNodeViewRenderer } from '@tiptap/react';
|
|
6
6
|
|
|
7
|
-
import { MermaidActiveButton } from '
|
|
8
|
-
import { NodeViewMermaid } from '
|
|
9
|
-
import type { GeneralOptions } from '
|
|
7
|
+
import { MermaidActiveButton } from 'reactjs-tiptap-editor-pro/extensions/Mermaid/components/MermaidActiveButton';
|
|
8
|
+
import { NodeViewMermaid } from 'reactjs-tiptap-editor-pro/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid';
|
|
9
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
10
10
|
|
|
11
11
|
declare module '@tiptap/core' {
|
|
12
12
|
interface Commands<ReturnType> {
|
|
@@ -6,12 +6,12 @@ import mermaid from 'mermaid';
|
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
import svg64 from 'svg64';
|
|
8
8
|
|
|
9
|
-
import { ActionButton } from '
|
|
10
|
-
import { Button } from '
|
|
11
|
-
import { Dialog, DialogContent, DialogFooter, DialogTitle, DialogTrigger } from '
|
|
12
|
-
import { Textarea } from '
|
|
13
|
-
import { dataURLtoFile } from '
|
|
14
|
-
import { shortId } from '
|
|
9
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components/ActionButton';
|
|
10
|
+
import { Button } from 'reactjs-tiptap-editor-pro/components/ui';
|
|
11
|
+
import { Dialog, DialogContent, DialogFooter, DialogTitle, DialogTrigger } from 'reactjs-tiptap-editor-pro/components/ui/dialog';
|
|
12
|
+
import { Textarea } from 'reactjs-tiptap-editor-pro/components/ui/textarea';
|
|
13
|
+
import { dataURLtoFile } from 'reactjs-tiptap-editor-pro/utils/file';
|
|
14
|
+
import { shortId } from 'reactjs-tiptap-editor-pro/utils/shortId';
|
|
15
15
|
|
|
16
16
|
interface IProps {
|
|
17
17
|
editor: Editor, attrs?: any, extension?: any
|
|
@@ -6,12 +6,12 @@ import mermaid from 'mermaid';
|
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
import svg64 from 'svg64';
|
|
8
8
|
|
|
9
|
-
import { ActionButton } from '
|
|
10
|
-
import { Button } from '
|
|
11
|
-
import { Dialog, DialogContent, DialogFooter, DialogTitle, DialogTrigger } from '
|
|
12
|
-
import { Textarea } from '
|
|
13
|
-
import { dataURLtoFile } from '
|
|
14
|
-
import { shortId } from '
|
|
9
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components/ActionButton';
|
|
10
|
+
import { Button } from 'reactjs-tiptap-editor-pro/components/ui';
|
|
11
|
+
import { Dialog, DialogContent, DialogFooter, DialogTitle, DialogTrigger } from 'reactjs-tiptap-editor-pro/components/ui/dialog';
|
|
12
|
+
import { Textarea } from 'reactjs-tiptap-editor-pro/components/ui/textarea';
|
|
13
|
+
import { dataURLtoFile } from 'reactjs-tiptap-editor-pro/utils/file';
|
|
14
|
+
import { shortId } from 'reactjs-tiptap-editor-pro/utils/shortId';
|
|
15
15
|
|
|
16
16
|
interface IProps {
|
|
17
17
|
editor: Editor, upload?: any
|
|
@@ -6,8 +6,8 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
6
6
|
import { NodeViewWrapper, isNumber } from '@tiptap/react';
|
|
7
7
|
import { throttle } from 'lodash-es';
|
|
8
8
|
|
|
9
|
-
import { IMAGE_MAX_SIZE, IMAGE_MIN_SIZE, IMAGE_THROTTLE_WAIT_TIME } from '
|
|
10
|
-
import { clamp } from '
|
|
9
|
+
import { IMAGE_MAX_SIZE, IMAGE_MIN_SIZE, IMAGE_THROTTLE_WAIT_TIME } from 'reactjs-tiptap-editor-pro/constants';
|
|
10
|
+
import { clamp } from 'reactjs-tiptap-editor-pro/utils/utils';
|
|
11
11
|
|
|
12
12
|
interface Size {
|
|
13
13
|
width: number
|
|
@@ -5,9 +5,9 @@ import { Subscript as TiptapSubscript } from '@tiptap/extension-subscript';
|
|
|
5
5
|
import type { SuperscriptExtensionOptions as TiptapSuperscriptOptions } from '@tiptap/extension-superscript';
|
|
6
6
|
import { Superscript as TiptapSuperscript } from '@tiptap/extension-superscript';
|
|
7
7
|
|
|
8
|
-
import type { Item } from '
|
|
9
|
-
import ActionMoreButton from '
|
|
10
|
-
import type { GeneralOptions } from '
|
|
8
|
+
import type { Item } from 'reactjs-tiptap-editor-pro/extensions/MoreMark/components/ActionMoreButton';
|
|
9
|
+
import ActionMoreButton from 'reactjs-tiptap-editor-pro/extensions/MoreMark/components/ActionMoreButton';
|
|
10
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
11
11
|
|
|
12
12
|
export interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions> {
|
|
13
13
|
/**
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
DropdownMenuTrigger,
|
|
9
9
|
IconComponent,
|
|
10
10
|
MenuDown,
|
|
11
|
-
} from '
|
|
12
|
-
import type { ButtonViewReturnComponentProps } from '
|
|
13
|
-
import { getShortcutKeys } from '
|
|
11
|
+
} from 'reactjs-tiptap-editor-pro/components';
|
|
12
|
+
import type { ButtonViewReturnComponentProps } from 'reactjs-tiptap-editor-pro/types';
|
|
13
|
+
import { getShortcutKeys } from 'reactjs-tiptap-editor-pro/utils/plateform';
|
|
14
14
|
|
|
15
15
|
export interface Item {
|
|
16
16
|
title: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node, mergeAttributes } from '@tiptap/core';
|
|
2
2
|
|
|
3
3
|
import { TextSelection } from '@tiptap/pm/state';
|
|
4
|
-
import { addOrDeleteCol, createColumns, gotoCol } from '
|
|
4
|
+
import { addOrDeleteCol, createColumns, gotoCol } from 'reactjs-tiptap-editor-pro/utils/columns';
|
|
5
5
|
|
|
6
6
|
export const EXTENSION_PRIORITY_HIGHEST = 200;
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { OrderedListOptions as TiptapOrderedListOptions } from '@tiptap/extension-ordered-list';
|
|
2
2
|
import { OrderedList as TiptapOrderedList } from '@tiptap/extension-ordered-list';
|
|
3
3
|
|
|
4
|
-
import { ActionButton } from '
|
|
5
|
-
import type { GeneralOptions } from '
|
|
4
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components';
|
|
5
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
6
6
|
|
|
7
7
|
export interface OrderedListOptions
|
|
8
8
|
extends TiptapOrderedListOptions,
|
|
@@ -6,10 +6,10 @@ import { Plugin, PluginKey } from '@tiptap/pm/state';
|
|
|
6
6
|
import { Decoration, DecorationSet } from '@tiptap/pm/view';
|
|
7
7
|
import scrollIntoView from 'scroll-into-view-if-needed';
|
|
8
8
|
|
|
9
|
-
import SearchAndReplaceButton from '
|
|
10
|
-
import type { GeneralOptions } from '
|
|
11
|
-
import { dispatchEvent } from '
|
|
12
|
-
import { EVENTS } from '
|
|
9
|
+
import SearchAndReplaceButton from 'reactjs-tiptap-editor-pro/extensions/SearchAndReplace/components/SearchAndReplaceButton';
|
|
10
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
11
|
+
import { dispatchEvent } from 'reactjs-tiptap-editor-pro/utils/customEvents/customEvents';
|
|
12
|
+
import { EVENTS } from 'reactjs-tiptap-editor-pro/utils/customEvents/events.constant';
|
|
13
13
|
|
|
14
14
|
declare module '@tiptap/core' {
|
|
15
15
|
interface Commands<ReturnType> {
|
|
@@ -2,11 +2,11 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import deepEqual from 'deep-equal';
|
|
4
4
|
|
|
5
|
-
import { ActionButton, Button, IconComponent, Input, Label, Popover, PopoverContent, PopoverTrigger, Switch } from '
|
|
6
|
-
import { SearchAndReplace } from '
|
|
7
|
-
import { useLocale } from '
|
|
8
|
-
import { listenEvent } from '
|
|
9
|
-
import { EVENTS } from '
|
|
5
|
+
import { ActionButton, Button, IconComponent, Input, Label, Popover, PopoverContent, PopoverTrigger, Switch } from 'reactjs-tiptap-editor-pro/components';
|
|
6
|
+
import { SearchAndReplace } from 'reactjs-tiptap-editor-pro/extensions/SearchAndReplace/SearchAndReplace';
|
|
7
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
8
|
+
import { listenEvent } from 'reactjs-tiptap-editor-pro/utils/customEvents/customEvents';
|
|
9
|
+
import { EVENTS } from 'reactjs-tiptap-editor-pro/utils/customEvents/events.constant';
|
|
10
10
|
|
|
11
11
|
function SearchAndReplaceButton({ editor, ...props }: any) {
|
|
12
12
|
const { t } = useLocale();
|
|
@@ -6,7 +6,7 @@ import type { SuggestionKeyDownProps, SuggestionProps } from '@tiptap/suggestion
|
|
|
6
6
|
import Suggestion from '@tiptap/suggestion';
|
|
7
7
|
import tippy from 'tippy.js';
|
|
8
8
|
|
|
9
|
-
import CommandsList from '
|
|
9
|
+
import CommandsList from 'reactjs-tiptap-editor-pro/extensions/SlashCommand/components/CommandsList';
|
|
10
10
|
|
|
11
11
|
import { renderGroups } from './groups';
|
|
12
12
|
import { type Group } from './types';
|
|
@@ -7,9 +7,9 @@ import React, {
|
|
|
7
7
|
useState,
|
|
8
8
|
} from 'react';
|
|
9
9
|
|
|
10
|
-
import { IconComponent } from '
|
|
11
|
-
import { cn } from '
|
|
12
|
-
import { useLocale } from '
|
|
10
|
+
import { IconComponent } from 'reactjs-tiptap-editor-pro/components';
|
|
11
|
+
import { cn } from 'reactjs-tiptap-editor-pro/lib/utils';
|
|
12
|
+
import { useLocale } from 'reactjs-tiptap-editor-pro/locales';
|
|
13
13
|
|
|
14
14
|
function CommandsList(props: any, ref: any) {
|
|
15
15
|
// 选中的索引
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Extensions } from '@tiptap/core';
|
|
2
2
|
|
|
3
|
-
import { Image, Video, type HeadingOptions } from '
|
|
4
|
-
import { actionDialogImage } from '
|
|
5
|
-
import { actionDialogVideo } from '
|
|
6
|
-
import { localeActions } from '
|
|
3
|
+
import { Image, Video, type HeadingOptions } from 'reactjs-tiptap-editor-pro/extensions';
|
|
4
|
+
import { actionDialogImage } from 'reactjs-tiptap-editor-pro/extensions/Image/store';
|
|
5
|
+
import { actionDialogVideo } from 'reactjs-tiptap-editor-pro/extensions/Video/store';
|
|
6
|
+
import { localeActions } from 'reactjs-tiptap-editor-pro/locales';
|
|
7
7
|
|
|
8
8
|
import type { SlashCommandOptions } from './SlashCommand';
|
|
9
9
|
import type { Group } from './types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StrikeOptions as TiptapStrikeOptions } from '@tiptap/extension-strike';
|
|
2
2
|
import { Strike as TiptapStrike } from '@tiptap/extension-strike';
|
|
3
3
|
|
|
4
|
-
import { ActionButton } from '
|
|
5
|
-
import type { GeneralOptions } from '
|
|
4
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components';
|
|
5
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
6
6
|
|
|
7
7
|
export interface StrikeOptions extends TiptapStrikeOptions, GeneralOptions<StrikeOptions> {}
|
|
8
8
|
|
|
@@ -5,8 +5,8 @@ import { Subscript as TiptapSubscript } from '@tiptap/extension-subscript';
|
|
|
5
5
|
import type { SuperscriptExtensionOptions as TiptapSuperscriptOptions } from '@tiptap/extension-superscript';
|
|
6
6
|
import { Superscript as TiptapSuperscript } from '@tiptap/extension-superscript';
|
|
7
7
|
|
|
8
|
-
import { ActionButton } from '
|
|
9
|
-
import type { ButtonViewReturn, GeneralOptions } from '
|
|
8
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components';
|
|
9
|
+
import type { ButtonViewReturn, GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Represents the interface for subscript and superscript options, extending GeneralOptions.
|
|
@@ -3,8 +3,8 @@ import type { TableCellOptions } from '@tiptap/extension-table-cell';
|
|
|
3
3
|
import type { TableHeaderOptions } from '@tiptap/extension-table-header';
|
|
4
4
|
import type { TableRowOptions } from '@tiptap/extension-table-row';
|
|
5
5
|
|
|
6
|
-
import TableActionButton from '
|
|
7
|
-
import type { GeneralOptions } from '
|
|
6
|
+
import TableActionButton from 'reactjs-tiptap-editor-pro/extensions/Table/components/TableActionButton';
|
|
7
|
+
import type { GeneralOptions } from 'reactjs-tiptap-editor-pro/types';
|
|
8
8
|
|
|
9
9
|
import { TableCell } from './Cell';
|
|
10
10
|
import { TableCellBackground } from './cell-background';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Popover, PopoverContent, PopoverTrigger } from '
|
|
3
|
+
import { Popover, PopoverContent, PopoverTrigger } from 'reactjs-tiptap-editor-pro/components';
|
|
4
4
|
import {
|
|
5
5
|
TABLE_DEFAULT_SELECTED_GRID_SIZE,
|
|
6
6
|
TABLE_INIT_GRID_SIZE,
|
|
7
7
|
TABLE_MAX_GRID_SIZE,
|
|
8
|
-
} from '
|
|
9
|
-
import { isMobile } from '
|
|
8
|
+
} from 'reactjs-tiptap-editor-pro/constants';
|
|
9
|
+
import { isMobile } from 'reactjs-tiptap-editor-pro/utils/is-mobile';
|
|
10
10
|
|
|
11
11
|
const createArray = (length: number) => Array.from({ length }).map((_, index) => index + 1);
|
|
12
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { ActionButton } from '
|
|
4
|
-
import CreateTablePopover from '
|
|
5
|
-
import type { ButtonViewReturnComponentProps } from '
|
|
3
|
+
import { ActionButton } from 'reactjs-tiptap-editor-pro/components';
|
|
4
|
+
import CreateTablePopover from 'reactjs-tiptap-editor-pro/extensions/Table/components/CreateTablePopover';
|
|
5
|
+
import type { ButtonViewReturnComponentProps } from 'reactjs-tiptap-editor-pro/types';
|
|
6
6
|
|
|
7
7
|
interface IPropsTableActionButton {
|
|
8
8
|
editor: any
|