reactjs-tiptap-editor 0.2.21 → 0.2.22
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/{RichTextEditor-aaUynZc2.js → RichTextEditor-BnruDETn.js} +1576 -1550
- package/lib/RichTextEditor-CRJ-dSCW.cjs +141 -0
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +45 -45
- package/lib/extension-bundle.d.ts +45 -45
- package/lib/extension-bundle.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +92 -52
- package/lib/index.d.ts +92 -52
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +45 -45
- package/lib/locale-bundle.d.ts +45 -45
- package/package.json +1 -1
- package/lib/RichTextEditor-DAqU7JiB.cjs +0 -141
|
@@ -741,21 +741,6 @@ declare module '@tiptap/core' {
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
|
|
744
|
-
declare module '@tiptap/core' {
|
|
745
|
-
interface Commands<ReturnType> {
|
|
746
|
-
iframe: {
|
|
747
|
-
/**
|
|
748
|
-
* Add an iframe
|
|
749
|
-
*/
|
|
750
|
-
setIframe: (options: {
|
|
751
|
-
src: string;
|
|
752
|
-
service: string;
|
|
753
|
-
}) => ReturnType;
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
759
744
|
declare module '@tiptap/core' {
|
|
760
745
|
interface Commands<ReturnType> {
|
|
761
746
|
lineHeight: {
|
|
@@ -807,14 +792,13 @@ declare module '@tiptap/core' {
|
|
|
807
792
|
|
|
808
793
|
declare module '@tiptap/core' {
|
|
809
794
|
interface Commands<ReturnType> {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
795
|
+
columns: {
|
|
796
|
+
insertColumns: (attrs?: {
|
|
797
|
+
cols: number;
|
|
798
|
+
}) => ReturnType;
|
|
799
|
+
addColBefore: () => ReturnType;
|
|
800
|
+
addColAfter: () => ReturnType;
|
|
801
|
+
deleteCol: () => ReturnType;
|
|
818
802
|
};
|
|
819
803
|
}
|
|
820
804
|
}
|
|
@@ -822,10 +806,13 @@ declare module '@tiptap/core' {
|
|
|
822
806
|
|
|
823
807
|
declare module '@tiptap/core' {
|
|
824
808
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
809
|
+
iframe: {
|
|
810
|
+
/**
|
|
811
|
+
* Add an iframe
|
|
812
|
+
*/
|
|
813
|
+
setIframe: (options: {
|
|
814
|
+
src: string;
|
|
815
|
+
service: string;
|
|
829
816
|
}) => ReturnType;
|
|
830
817
|
};
|
|
831
818
|
}
|
|
@@ -834,13 +821,20 @@ declare module '@tiptap/core' {
|
|
|
834
821
|
|
|
835
822
|
declare module '@tiptap/core' {
|
|
836
823
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
824
|
+
katex: {
|
|
825
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
declare module '@tiptap/core' {
|
|
832
|
+
interface Commands<ReturnType> {
|
|
833
|
+
emoji: {
|
|
834
|
+
setEmoji: (emoji: {
|
|
835
|
+
name: string;
|
|
836
|
+
emoji: string;
|
|
840
837
|
}) => ReturnType;
|
|
841
|
-
addColBefore: () => ReturnType;
|
|
842
|
-
addColAfter: () => ReturnType;
|
|
843
|
-
deleteCol: () => ReturnType;
|
|
844
838
|
};
|
|
845
839
|
}
|
|
846
840
|
}
|
|
@@ -848,8 +842,14 @@ declare module '@tiptap/core' {
|
|
|
848
842
|
|
|
849
843
|
declare module '@tiptap/core' {
|
|
850
844
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
845
|
+
search: {
|
|
846
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
847
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
848
|
+
replace: () => ReturnType;
|
|
849
|
+
replaceAll: () => ReturnType;
|
|
850
|
+
goToPrevSearchResult: () => void;
|
|
851
|
+
goToNextSearchResult: () => void;
|
|
852
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
855
|
}
|
|
@@ -892,6 +892,16 @@ declare module '@tiptap/core' {
|
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
|
|
895
|
+
declare module '@tiptap/core' {
|
|
896
|
+
interface Commands<ReturnType> {
|
|
897
|
+
mermaid: {
|
|
898
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
899
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
|
|
895
905
|
declare module '@tiptap/core' {
|
|
896
906
|
interface Commands<ReturnType> {
|
|
897
907
|
imageGifUpload: {
|
|
@@ -935,13 +945,3 @@ declare module '@tiptap/core' {
|
|
|
935
945
|
};
|
|
936
946
|
}
|
|
937
947
|
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
declare module '@tiptap/core' {
|
|
941
|
-
interface Commands<ReturnType> {
|
|
942
|
-
mermaid: {
|
|
943
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
944
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
}
|
|
@@ -741,21 +741,6 @@ declare module '@tiptap/core' {
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
|
|
744
|
-
declare module '@tiptap/core' {
|
|
745
|
-
interface Commands<ReturnType> {
|
|
746
|
-
iframe: {
|
|
747
|
-
/**
|
|
748
|
-
* Add an iframe
|
|
749
|
-
*/
|
|
750
|
-
setIframe: (options: {
|
|
751
|
-
src: string;
|
|
752
|
-
service: string;
|
|
753
|
-
}) => ReturnType;
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
759
744
|
declare module '@tiptap/core' {
|
|
760
745
|
interface Commands<ReturnType> {
|
|
761
746
|
lineHeight: {
|
|
@@ -807,14 +792,13 @@ declare module '@tiptap/core' {
|
|
|
807
792
|
|
|
808
793
|
declare module '@tiptap/core' {
|
|
809
794
|
interface Commands<ReturnType> {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
795
|
+
columns: {
|
|
796
|
+
insertColumns: (attrs?: {
|
|
797
|
+
cols: number;
|
|
798
|
+
}) => ReturnType;
|
|
799
|
+
addColBefore: () => ReturnType;
|
|
800
|
+
addColAfter: () => ReturnType;
|
|
801
|
+
deleteCol: () => ReturnType;
|
|
818
802
|
};
|
|
819
803
|
}
|
|
820
804
|
}
|
|
@@ -822,10 +806,13 @@ declare module '@tiptap/core' {
|
|
|
822
806
|
|
|
823
807
|
declare module '@tiptap/core' {
|
|
824
808
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
809
|
+
iframe: {
|
|
810
|
+
/**
|
|
811
|
+
* Add an iframe
|
|
812
|
+
*/
|
|
813
|
+
setIframe: (options: {
|
|
814
|
+
src: string;
|
|
815
|
+
service: string;
|
|
829
816
|
}) => ReturnType;
|
|
830
817
|
};
|
|
831
818
|
}
|
|
@@ -834,13 +821,20 @@ declare module '@tiptap/core' {
|
|
|
834
821
|
|
|
835
822
|
declare module '@tiptap/core' {
|
|
836
823
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
824
|
+
katex: {
|
|
825
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
declare module '@tiptap/core' {
|
|
832
|
+
interface Commands<ReturnType> {
|
|
833
|
+
emoji: {
|
|
834
|
+
setEmoji: (emoji: {
|
|
835
|
+
name: string;
|
|
836
|
+
emoji: string;
|
|
840
837
|
}) => ReturnType;
|
|
841
|
-
addColBefore: () => ReturnType;
|
|
842
|
-
addColAfter: () => ReturnType;
|
|
843
|
-
deleteCol: () => ReturnType;
|
|
844
838
|
};
|
|
845
839
|
}
|
|
846
840
|
}
|
|
@@ -848,8 +842,14 @@ declare module '@tiptap/core' {
|
|
|
848
842
|
|
|
849
843
|
declare module '@tiptap/core' {
|
|
850
844
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
845
|
+
search: {
|
|
846
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
847
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
848
|
+
replace: () => ReturnType;
|
|
849
|
+
replaceAll: () => ReturnType;
|
|
850
|
+
goToPrevSearchResult: () => void;
|
|
851
|
+
goToNextSearchResult: () => void;
|
|
852
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
855
|
}
|
|
@@ -892,6 +892,16 @@ declare module '@tiptap/core' {
|
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
|
|
895
|
+
declare module '@tiptap/core' {
|
|
896
|
+
interface Commands<ReturnType> {
|
|
897
|
+
mermaid: {
|
|
898
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
899
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
|
|
895
905
|
declare module '@tiptap/core' {
|
|
896
906
|
interface Commands<ReturnType> {
|
|
897
907
|
imageGifUpload: {
|
|
@@ -935,13 +945,3 @@ declare module '@tiptap/core' {
|
|
|
935
945
|
};
|
|
936
946
|
}
|
|
937
947
|
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
declare module '@tiptap/core' {
|
|
941
|
-
interface Commands<ReturnType> {
|
|
942
|
-
mermaid: {
|
|
943
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
944
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -4,8 +4,8 @@ import { jsxs as m, jsx as r, Fragment as ye } from "react/jsx-runtime";
|
|
|
4
4
|
import * as J from "react";
|
|
5
5
|
import dn, { useMemo as P, useState as v, useRef as G, useCallback as F, Fragment as ze, forwardRef as Re, useImperativeHandle as Pe, useEffect as M } from "react";
|
|
6
6
|
import { ChevronDown as Ie, Check as hn, ChevronUp as un, Copy as mn, CopyCheck as fn, SearchIcon as _n, LoaderIcon as gn, LucideTableProperties as bn, LucideSheet as xn, LucideImage as wn, LucideFile as pn, LucideVideo as yn, LucideAudioLines as kn } from "lucide-react";
|
|
7
|
-
import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-
|
|
8
|
-
import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-
|
|
7
|
+
import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-BnruDETn.js";
|
|
8
|
+
import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-BnruDETn.js";
|
|
9
9
|
import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-8id9bPv5.js";
|
|
10
10
|
import { bundledThemes as dt, bundledLanguages as ht, createHighlighter as Wn } from "shiki";
|
|
11
11
|
import * as C from "@radix-ui/react-select";
|
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-CRJ-dSCW.cjs"),c=require("./tiptap-Ufn12SjW.cjs");function a(){var r;const e=t.useRef({editor:null}),[i,o]=t.useState(!1),[s,n]=t.useState(null);return t.useEffect(()=>{var u;(u=e.current)!=null&&u.editor&&(o(!0),n(e.current.editor))},[e,(r=e.current)==null?void 0:r.editor]),{isReady:i,editor:s,editorRef:e}}exports.default=d.RichTextEditor;exports.BubbleMenu=c.BubbleMenu;exports.useEditorState=a;
|
package/lib/index.d.cts
CHANGED
|
@@ -1,13 +1,44 @@
|
|
|
1
1
|
import { AnyExtension } from '@tiptap/core';
|
|
2
2
|
import { BubbleMenu } from '@tiptap/react';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
3
4
|
import { Editor } from '@tiptap/react';
|
|
4
5
|
import { Editor as Editor_2 } from '@tiptap/core';
|
|
5
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
6
7
|
import { RefAttributes } from 'react';
|
|
8
|
+
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
7
9
|
import { UseEditorOptions } from '@tiptap/react';
|
|
8
10
|
|
|
11
|
+
declare interface ActionButtonProps {
|
|
12
|
+
icon?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
shortcutKeys?: string[];
|
|
17
|
+
customClass?: string;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
tooltipOptions?: TooltipContentProps;
|
|
20
|
+
color?: string;
|
|
21
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
22
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
23
|
+
children?: default_2.ReactNode;
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
upload?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
9
28
|
export { BubbleMenu }
|
|
10
29
|
|
|
30
|
+
declare interface BubbleMenuConfig {
|
|
31
|
+
/**
|
|
32
|
+
* @description Column menu hidden
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
hidden?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* custom menu actions
|
|
38
|
+
*/
|
|
39
|
+
actions?: ActionButtonProps[];
|
|
40
|
+
}
|
|
41
|
+
|
|
11
42
|
/**
|
|
12
43
|
* Represents the BubbleMenuProps.
|
|
13
44
|
*/
|
|
@@ -19,13 +50,7 @@ declare interface BubbleMenuProps {
|
|
|
19
50
|
*/
|
|
20
51
|
hidden?: boolean;
|
|
21
52
|
};
|
|
22
|
-
tableConfig?:
|
|
23
|
-
/**
|
|
24
|
-
* @description Table menu hidden
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
hidden?: boolean;
|
|
28
|
-
};
|
|
53
|
+
tableConfig?: BubbleMenuConfig;
|
|
29
54
|
floatingMenuConfig?: {
|
|
30
55
|
/**
|
|
31
56
|
* @description Floating menu hidden
|
|
@@ -122,6 +147,21 @@ declare interface BubbleMenuRenderProps {
|
|
|
122
147
|
bubbleMenu: BubbleMenuProps;
|
|
123
148
|
}
|
|
124
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Represents the props for the ButtonView component.
|
|
152
|
+
*/
|
|
153
|
+
declare interface ButtonViewReturnComponentProps {
|
|
154
|
+
/** Method triggered when action is performed */
|
|
155
|
+
action?: (value?: any) => void;
|
|
156
|
+
/** Whether it is in the active state */
|
|
157
|
+
isActive?: () => boolean;
|
|
158
|
+
/** Button icon */
|
|
159
|
+
icon?: any;
|
|
160
|
+
/** Text displayed on hover */
|
|
161
|
+
tooltip?: string;
|
|
162
|
+
[x: string]: any;
|
|
163
|
+
}
|
|
164
|
+
|
|
125
165
|
declare const _default: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes< {
|
|
126
166
|
editor: Editor_2 | null;
|
|
127
167
|
}>>;
|
|
@@ -265,21 +305,6 @@ declare module '@tiptap/core' {
|
|
|
265
305
|
}
|
|
266
306
|
|
|
267
307
|
|
|
268
|
-
declare module '@tiptap/core' {
|
|
269
|
-
interface Commands<ReturnType> {
|
|
270
|
-
iframe: {
|
|
271
|
-
/**
|
|
272
|
-
* Add an iframe
|
|
273
|
-
*/
|
|
274
|
-
setIframe: (options: {
|
|
275
|
-
src: string;
|
|
276
|
-
service: string;
|
|
277
|
-
}) => ReturnType;
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
308
|
declare module '@tiptap/core' {
|
|
284
309
|
interface Commands<ReturnType> {
|
|
285
310
|
lineHeight: {
|
|
@@ -331,14 +356,13 @@ declare module '@tiptap/core' {
|
|
|
331
356
|
|
|
332
357
|
declare module '@tiptap/core' {
|
|
333
358
|
interface Commands<ReturnType> {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
359
|
+
columns: {
|
|
360
|
+
insertColumns: (attrs?: {
|
|
361
|
+
cols: number;
|
|
362
|
+
}) => ReturnType;
|
|
363
|
+
addColBefore: () => ReturnType;
|
|
364
|
+
addColAfter: () => ReturnType;
|
|
365
|
+
deleteCol: () => ReturnType;
|
|
342
366
|
};
|
|
343
367
|
}
|
|
344
368
|
}
|
|
@@ -346,10 +370,13 @@ declare module '@tiptap/core' {
|
|
|
346
370
|
|
|
347
371
|
declare module '@tiptap/core' {
|
|
348
372
|
interface Commands<ReturnType> {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
373
|
+
iframe: {
|
|
374
|
+
/**
|
|
375
|
+
* Add an iframe
|
|
376
|
+
*/
|
|
377
|
+
setIframe: (options: {
|
|
378
|
+
src: string;
|
|
379
|
+
service: string;
|
|
353
380
|
}) => ReturnType;
|
|
354
381
|
};
|
|
355
382
|
}
|
|
@@ -358,13 +385,20 @@ declare module '@tiptap/core' {
|
|
|
358
385
|
|
|
359
386
|
declare module '@tiptap/core' {
|
|
360
387
|
interface Commands<ReturnType> {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
388
|
+
katex: {
|
|
389
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
declare module '@tiptap/core' {
|
|
396
|
+
interface Commands<ReturnType> {
|
|
397
|
+
emoji: {
|
|
398
|
+
setEmoji: (emoji: {
|
|
399
|
+
name: string;
|
|
400
|
+
emoji: string;
|
|
364
401
|
}) => ReturnType;
|
|
365
|
-
addColBefore: () => ReturnType;
|
|
366
|
-
addColAfter: () => ReturnType;
|
|
367
|
-
deleteCol: () => ReturnType;
|
|
368
402
|
};
|
|
369
403
|
}
|
|
370
404
|
}
|
|
@@ -372,8 +406,14 @@ declare module '@tiptap/core' {
|
|
|
372
406
|
|
|
373
407
|
declare module '@tiptap/core' {
|
|
374
408
|
interface Commands<ReturnType> {
|
|
375
|
-
|
|
376
|
-
|
|
409
|
+
search: {
|
|
410
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
411
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
412
|
+
replace: () => ReturnType;
|
|
413
|
+
replaceAll: () => ReturnType;
|
|
414
|
+
goToPrevSearchResult: () => void;
|
|
415
|
+
goToNextSearchResult: () => void;
|
|
416
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
377
417
|
};
|
|
378
418
|
}
|
|
379
419
|
}
|
|
@@ -416,6 +456,16 @@ declare module '@tiptap/core' {
|
|
|
416
456
|
}
|
|
417
457
|
|
|
418
458
|
|
|
459
|
+
declare module '@tiptap/core' {
|
|
460
|
+
interface Commands<ReturnType> {
|
|
461
|
+
mermaid: {
|
|
462
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
463
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
|
|
419
469
|
declare module '@tiptap/core' {
|
|
420
470
|
interface Commands<ReturnType> {
|
|
421
471
|
imageGifUpload: {
|
|
@@ -459,13 +509,3 @@ declare module '@tiptap/core' {
|
|
|
459
509
|
};
|
|
460
510
|
}
|
|
461
511
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
declare module '@tiptap/core' {
|
|
465
|
-
interface Commands<ReturnType> {
|
|
466
|
-
mermaid: {
|
|
467
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
468
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
}
|