reactjs-tiptap-editor 0.3.18 → 0.3.21
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/{ActionMenuButton-Bp3NtBKu.cjs → ActionMenuButton-BTFBZyG2.cjs} +1 -1
- package/lib/{ActionMenuButton-CK00Dg3S.js → ActionMenuButton-DXwnYZhJ.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +28 -28
- package/lib/Attachment.d.ts +28 -28
- package/lib/Attachment.js +4 -4
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +28 -28
- package/lib/Blockquote.d.ts +28 -28
- package/lib/Blockquote.js +2 -2
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +28 -28
- package/lib/Bold.d.ts +28 -28
- package/lib/Bold.js +2 -2
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +28 -28
- package/lib/BulletList.d.ts +28 -28
- package/lib/BulletList.js +2 -2
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +28 -28
- package/lib/Clear.d.ts +28 -28
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +28 -28
- package/lib/Code.d.ts +28 -28
- package/lib/Code.js +2 -2
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +28 -28
- package/lib/CodeBlock.d.ts +28 -28
- package/lib/CodeBlock.js +3 -3
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +28 -28
- package/lib/CodeView.d.ts +28 -28
- package/lib/CodeView.js +2 -2
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +28 -28
- package/lib/Color.d.ts +28 -28
- package/lib/Color.js +3 -3
- package/lib/Document.cjs +1 -1
- package/lib/Document.d.cts +28 -28
- package/lib/Document.d.ts +28 -28
- package/lib/Document.js +1 -1
- package/lib/{Drawer-D7O4q7Un.cjs → Drawer-BrHHs2E9.cjs} +1 -1
- package/lib/{Drawer-B5bTsUf8.js → Drawer-CVuwyG50.js} +4 -4
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +28 -28
- package/lib/Drawer.d.ts +28 -28
- package/lib/Drawer.js +4 -4
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +28 -28
- package/lib/Emoji.d.ts +28 -28
- package/lib/Emoji.js +5 -5
- package/lib/Excalidraw-Be_GDV4Q.cjs +1 -0
- package/lib/Excalidraw-frMX4K62.js +289 -0
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +28 -28
- package/lib/Excalidraw.d.ts +28 -28
- package/lib/Excalidraw.js +3 -3
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +28 -28
- package/lib/ExportPdf.d.ts +28 -28
- package/lib/ExportPdf.js +2 -2
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +28 -28
- package/lib/ExportWord.d.ts +28 -28
- package/lib/ExportWord.js +2 -2
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +28 -28
- package/lib/FontFamily.d.ts +28 -28
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +28 -28
- package/lib/FontSize.d.ts +28 -28
- package/lib/FontSize.js +4 -4
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +28 -28
- package/lib/FormatPainter.d.ts +28 -28
- package/lib/FormatPainter.js +2 -2
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +28 -28
- package/lib/Heading.d.ts +28 -28
- package/lib/Heading.js +3 -3
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +28 -28
- package/lib/Highlight.d.ts +28 -28
- package/lib/Highlight.js +2 -2
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +28 -28
- package/lib/History.d.ts +28 -28
- package/lib/History.js +2 -2
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +28 -28
- package/lib/HorizontalRule.d.ts +28 -28
- package/lib/HorizontalRule.js +2 -2
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +28 -28
- package/lib/Iframe.d.ts +28 -28
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +29 -28
- package/lib/Image.d.ts +29 -28
- package/lib/Image.js +3 -3
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +28 -28
- package/lib/ImageGif.d.ts +28 -28
- package/lib/ImageGif.js +3 -3
- package/lib/ImportWord.cjs +74 -74
- package/lib/ImportWord.d.cts +28 -28
- package/lib/ImportWord.d.ts +28 -28
- package/lib/ImportWord.js +5015 -4998
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +28 -28
- package/lib/Indent.d.ts +28 -28
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +28 -28
- package/lib/Italic.d.ts +28 -28
- package/lib/Italic.js +2 -2
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +28 -28
- package/lib/Katex.d.ts +28 -28
- package/lib/Katex.js +5 -5
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +28 -28
- package/lib/LineHeight.d.ts +28 -28
- package/lib/LineHeight.js +3 -3
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +28 -28
- package/lib/Link.d.ts +28 -28
- package/lib/Link.js +2 -2
- package/lib/ListItem.cjs +1 -1
- package/lib/ListItem.d.cts +28 -28
- package/lib/ListItem.d.ts +28 -28
- package/lib/ListItem.js +1 -1
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.d.cts +28 -28
- package/lib/Mention.d.ts +28 -28
- package/lib/Mention.js +123 -91
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +28 -28
- package/lib/Mermaid.d.ts +28 -28
- package/lib/Mermaid.js +5 -5
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +28 -28
- package/lib/MoreMark.d.ts +28 -28
- package/lib/MoreMark.js +3 -3
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +28 -28
- package/lib/MultiColumn.d.ts +28 -28
- package/lib/MultiColumn.js +2 -2
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +28 -28
- package/lib/OrderedList.d.ts +28 -28
- package/lib/OrderedList.js +2 -2
- package/lib/RichTextEditor-CAxwVWUE.cjs +137 -0
- package/lib/{RichTextEditor-DWN9FEob.js → RichTextEditor-DjTnd5Uu.js} +2336 -2328
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +28 -28
- package/lib/SearchAndReplace.d.ts +28 -28
- package/lib/SearchAndReplace.js +3 -3
- package/lib/Selection.cjs +1 -1
- package/lib/Selection.d.cts +28 -28
- package/lib/Selection.d.ts +28 -28
- package/lib/Selection.js +1 -1
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +28 -28
- package/lib/SlashCommand.d.ts +28 -28
- package/lib/SlashCommand.js +5 -5
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +28 -28
- package/lib/Strike.d.ts +28 -28
- package/lib/Strike.js +2 -2
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +28 -28
- package/lib/SubAndSuperScript.d.ts +28 -28
- package/lib/SubAndSuperScript.js +3 -3
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +28 -28
- package/lib/Table.d.ts +28 -28
- package/lib/Table.js +3 -3
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +28 -28
- package/lib/TableOfContent.d.ts +28 -28
- package/lib/TableOfContent.js +4 -4
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +28 -28
- package/lib/TaskList.d.ts +28 -28
- package/lib/TaskList.js +37 -33
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +28 -28
- package/lib/TextAlign.d.ts +28 -28
- package/lib/TextAlign.js +2 -2
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +28 -28
- package/lib/TextBubble.d.ts +28 -28
- package/lib/TextBubble.js +3 -3
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +28 -28
- package/lib/TextDirection.d.ts +28 -28
- package/lib/TextDirection.js +2 -2
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +28 -28
- package/lib/TextUnderline.d.ts +28 -28
- package/lib/TextUnderline.js +2 -2
- package/lib/TrailingNode.cjs +1 -1
- package/lib/TrailingNode.d.cts +28 -28
- package/lib/TrailingNode.d.ts +28 -28
- package/lib/TrailingNode.js +1 -1
- package/lib/{Twitter-COZu8DI2.cjs → Twitter-V0OzBT_E.cjs} +1 -1
- package/lib/{Twitter-J0XtGXRC.js → Twitter-dRxbZOad.js} +4 -4
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +28 -28
- package/lib/Twitter.d.ts +28 -28
- package/lib/Twitter.js +3 -3
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +28 -28
- package/lib/Video.d.ts +28 -28
- package/lib/Video.js +3 -3
- package/lib/bubble-extra.cjs +2 -2
- package/lib/bubble-extra.d.cts +28 -28
- package/lib/bubble-extra.d.ts +28 -28
- package/lib/bubble-extra.js +26 -26
- package/lib/{dom-dataset-Cuy-pIfj.cjs → dom-dataset-Byuf1YmW.cjs} +5 -5
- package/lib/{dom-dataset-CHDbKz5J.js → dom-dataset-Di3tIRrR.js} +94 -83
- package/lib/index-BI-IcZcN.cjs +1 -0
- package/lib/{index-CSvnpArE.cjs → index-ByRfqzMr.cjs} +2 -2
- package/lib/index-C19MB4Al.cjs +1 -0
- package/lib/{index-DIPntess.js → index-C1fzuXpN.js} +1 -1
- package/lib/index-CbQQFj2T.js +133 -0
- package/lib/{index-BWx1Mchx.js → index-DI9T3iLd.js} +243 -243
- package/lib/{index-CrxasX7b.cjs → index-DclQSrIx.cjs} +1 -1
- package/lib/{index-DEFQHExY.js → index-LUL9mqY4.js} +1 -1
- package/lib/{index-zcKfSGd5.js → index-Tj3Ci7xM.js} +13 -8
- package/lib/{index-h9_SDuwc.cjs → index-Z4b9rzn-.cjs} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +28 -28
- package/lib/index.d.ts +28 -28
- package/lib/index.js +6 -6
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +33 -28
- package/lib/locale-bundle.d.ts +33 -28
- package/lib/locale-bundle.js +1 -1
- package/lib/{textarea-Bm0GTcEU.js → textarea-6c8drwXJ.js} +1 -1
- package/lib/{textarea-C_xhu0vT.cjs → textarea-BsJTSgT-.cjs} +1 -1
- package/package.json +67 -67
- package/lib/Excalidraw-CzAhPJ3k.cjs +0 -1
- package/lib/Excalidraw-D1EJKRER.js +0 -282
- package/lib/RichTextEditor-jtVXJcE2.cjs +0 -141
- package/lib/index-Cyh1yoFk.cjs +0 -1
- package/lib/index-jEB3jXoa.cjs +0 -1
- package/lib/index-oQutU45z.js +0 -129
package/lib/TableOfContent.d.ts
CHANGED
|
@@ -41,9 +41,11 @@ declare module '@tiptap/core' {
|
|
|
41
41
|
|
|
42
42
|
declare module '@tiptap/core' {
|
|
43
43
|
interface Commands<ReturnType> {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
emoji: {
|
|
45
|
+
setEmoji: (emoji: {
|
|
46
|
+
name: string;
|
|
47
|
+
emoji: string;
|
|
48
|
+
}) => ReturnType;
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -51,11 +53,9 @@ declare module '@tiptap/core' {
|
|
|
51
53
|
|
|
52
54
|
declare module '@tiptap/core' {
|
|
53
55
|
interface Commands<ReturnType> {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
emoji: string;
|
|
58
|
-
}) => ReturnType;
|
|
56
|
+
drawer: {
|
|
57
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
58
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -106,21 +106,6 @@ declare module '@tiptap/core' {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
declare module '@tiptap/core' {
|
|
110
|
-
interface Commands<ReturnType> {
|
|
111
|
-
iframe: {
|
|
112
|
-
/**
|
|
113
|
-
* Add an iframe
|
|
114
|
-
*/
|
|
115
|
-
setIframe: (options: {
|
|
116
|
-
src: string;
|
|
117
|
-
service: string;
|
|
118
|
-
}) => ReturnType;
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
109
|
declare module '@tiptap/core' {
|
|
125
110
|
interface Commands<ReturnType> {
|
|
126
111
|
imageUpload: {
|
|
@@ -141,6 +126,21 @@ declare module '@tiptap/core' {
|
|
|
141
126
|
}
|
|
142
127
|
|
|
143
128
|
|
|
129
|
+
declare module '@tiptap/core' {
|
|
130
|
+
interface Commands<ReturnType> {
|
|
131
|
+
iframe: {
|
|
132
|
+
/**
|
|
133
|
+
* Add an iframe
|
|
134
|
+
*/
|
|
135
|
+
setIframe: (options: {
|
|
136
|
+
src: string;
|
|
137
|
+
service: string;
|
|
138
|
+
}) => ReturnType;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
144
|
declare module '@tiptap/core' {
|
|
145
145
|
interface Commands<ReturnType> {
|
|
146
146
|
imageGifUpload: {
|
|
@@ -179,8 +179,9 @@ declare module '@tiptap/core' {
|
|
|
179
179
|
|
|
180
180
|
declare module '@tiptap/core' {
|
|
181
181
|
interface Commands<ReturnType> {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
lineHeight: {
|
|
183
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
184
|
+
unsetLineHeight: () => ReturnType;
|
|
184
185
|
};
|
|
185
186
|
}
|
|
186
187
|
}
|
|
@@ -188,9 +189,8 @@ declare module '@tiptap/core' {
|
|
|
188
189
|
|
|
189
190
|
declare module '@tiptap/core' {
|
|
190
191
|
interface Commands<ReturnType> {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
unsetLineHeight: () => ReturnType;
|
|
192
|
+
katex: {
|
|
193
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
}
|
package/lib/TableOfContent.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as b, m as v } from "./index-
|
|
2
|
-
import { N as C, c as g, R as N } from "./dom-dataset-
|
|
1
|
+
import { N as b, m as v } from "./index-DI9T3iLd.js";
|
|
2
|
+
import { N as C, c as g, R as N } from "./dom-dataset-Di3tIRrR.js";
|
|
3
3
|
import { jsx as l, jsxs as T } from "react/jsx-runtime";
|
|
4
4
|
import { useState as p, useCallback as m, useEffect as d } from "react";
|
|
5
|
-
import { u as O } from "./index-
|
|
6
|
-
import { Z as _, A as y } from "./RichTextEditor-
|
|
5
|
+
import { u as O } from "./index-Tj3Ci7xM.js";
|
|
6
|
+
import { Z as _, A as y } from "./RichTextEditor-DjTnd5Uu.js";
|
|
7
7
|
const x = "_toc_aag8a_1", A = "_visible_aag8a_7", w = "_list_aag8a_11", E = "_item_aag8a_16", f = {
|
|
8
8
|
toc: x,
|
|
9
9
|
visible: A,
|
package/lib/TaskList.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-ByRfqzMr.cjs"),b=require("./RichTextEditor-CAxwVWUE.cjs"),f=/^\s*(\[([( |x])?\])\s$/,L=r.Node.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const i=t.getAttribute("data-checked");return i===""||i==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:i}){return["li",r.mergeAttributes(this.options.HTMLAttributes,i,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:i,getPos:o,editor:c})=>{const a=document.createElement("li"),d=document.createElement("label"),k=document.createElement("span"),s=document.createElement("input"),l=document.createElement("div"),p=()=>{var e,n;s.ariaLabel=((n=(e=this.options.a11y)===null||e===void 0?void 0:e.checkboxLabel)===null||n===void 0?void 0:n.call(e,t,s.checked))||`Task item checkbox for ${t.textContent||"empty task item"}`};return p(),d.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",e=>e.preventDefault()),s.addEventListener("change",e=>{if(!c.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:n}=e.target;c.isEditable&&typeof o=="function"&&c.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const u=o();if(typeof u!="number")return!1;const h=m.doc.nodeAt(u);return m.setNodeMarkup(u,void 0,{...h==null?void 0:h.attrs,checked:n}),!0}).run(),!c.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,n)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,n])=>{a.setAttribute(e,n)}),a.dataset.checked=t.attrs.checked,s.checked=t.attrs.checked,d.append(s,k),a.append(d,l),Object.entries(i).forEach(([e,n])=>{a.setAttribute(e,n)}),{dom:a,contentDOM:l,update:e=>e.type!==this.type?!1:(a.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,p(),!0)}}},addInputRules(){return[r.wrappingInputRule({find:f,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),y=r.Node.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",r.mergeAttributes(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),T=y.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),HTMLAttributes:{class:"task-list"},taskItem:{HTMLAttributes:{class:"task-list-item"}},button:({editor:i,t:o})=>({component:b.ActionButton,componentProps:{action:()=>i.commands.toggleTaskList(),isActive:()=>i.isActive("taskList")||!1,disabled:!1,icon:"ListTodo",shortcutKeys:["shift","mod","9"],tooltip:o("editor.tasklist.tooltip")}})}},addExtensions(){return[L.configure(this.options.taskItem)]}});exports.TaskList=T;
|
package/lib/TaskList.d.cts
CHANGED
|
@@ -116,9 +116,11 @@ declare module '@tiptap/core' {
|
|
|
116
116
|
|
|
117
117
|
declare module '@tiptap/core' {
|
|
118
118
|
interface Commands<ReturnType> {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
emoji: {
|
|
120
|
+
setEmoji: (emoji: {
|
|
121
|
+
name: string;
|
|
122
|
+
emoji: string;
|
|
123
|
+
}) => ReturnType;
|
|
122
124
|
};
|
|
123
125
|
}
|
|
124
126
|
}
|
|
@@ -126,11 +128,9 @@ declare module '@tiptap/core' {
|
|
|
126
128
|
|
|
127
129
|
declare module '@tiptap/core' {
|
|
128
130
|
interface Commands<ReturnType> {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
emoji: string;
|
|
133
|
-
}) => ReturnType;
|
|
131
|
+
drawer: {
|
|
132
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
133
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -181,21 +181,6 @@ declare module '@tiptap/core' {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
declare module '@tiptap/core' {
|
|
185
|
-
interface Commands<ReturnType> {
|
|
186
|
-
iframe: {
|
|
187
|
-
/**
|
|
188
|
-
* Add an iframe
|
|
189
|
-
*/
|
|
190
|
-
setIframe: (options: {
|
|
191
|
-
src: string;
|
|
192
|
-
service: string;
|
|
193
|
-
}) => ReturnType;
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
184
|
declare module '@tiptap/core' {
|
|
200
185
|
interface Commands<ReturnType> {
|
|
201
186
|
imageUpload: {
|
|
@@ -216,6 +201,21 @@ declare module '@tiptap/core' {
|
|
|
216
201
|
}
|
|
217
202
|
|
|
218
203
|
|
|
204
|
+
declare module '@tiptap/core' {
|
|
205
|
+
interface Commands<ReturnType> {
|
|
206
|
+
iframe: {
|
|
207
|
+
/**
|
|
208
|
+
* Add an iframe
|
|
209
|
+
*/
|
|
210
|
+
setIframe: (options: {
|
|
211
|
+
src: string;
|
|
212
|
+
service: string;
|
|
213
|
+
}) => ReturnType;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
219
|
declare module '@tiptap/core' {
|
|
220
220
|
interface Commands<ReturnType> {
|
|
221
221
|
imageGifUpload: {
|
|
@@ -254,8 +254,9 @@ declare module '@tiptap/core' {
|
|
|
254
254
|
|
|
255
255
|
declare module '@tiptap/core' {
|
|
256
256
|
interface Commands<ReturnType> {
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
lineHeight: {
|
|
258
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
259
|
+
unsetLineHeight: () => ReturnType;
|
|
259
260
|
};
|
|
260
261
|
}
|
|
261
262
|
}
|
|
@@ -263,9 +264,8 @@ declare module '@tiptap/core' {
|
|
|
263
264
|
|
|
264
265
|
declare module '@tiptap/core' {
|
|
265
266
|
interface Commands<ReturnType> {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
unsetLineHeight: () => ReturnType;
|
|
267
|
+
katex: {
|
|
268
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
}
|
package/lib/TaskList.d.ts
CHANGED
|
@@ -116,9 +116,11 @@ declare module '@tiptap/core' {
|
|
|
116
116
|
|
|
117
117
|
declare module '@tiptap/core' {
|
|
118
118
|
interface Commands<ReturnType> {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
emoji: {
|
|
120
|
+
setEmoji: (emoji: {
|
|
121
|
+
name: string;
|
|
122
|
+
emoji: string;
|
|
123
|
+
}) => ReturnType;
|
|
122
124
|
};
|
|
123
125
|
}
|
|
124
126
|
}
|
|
@@ -126,11 +128,9 @@ declare module '@tiptap/core' {
|
|
|
126
128
|
|
|
127
129
|
declare module '@tiptap/core' {
|
|
128
130
|
interface Commands<ReturnType> {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
emoji: string;
|
|
133
|
-
}) => ReturnType;
|
|
131
|
+
drawer: {
|
|
132
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
133
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -181,21 +181,6 @@ declare module '@tiptap/core' {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
declare module '@tiptap/core' {
|
|
185
|
-
interface Commands<ReturnType> {
|
|
186
|
-
iframe: {
|
|
187
|
-
/**
|
|
188
|
-
* Add an iframe
|
|
189
|
-
*/
|
|
190
|
-
setIframe: (options: {
|
|
191
|
-
src: string;
|
|
192
|
-
service: string;
|
|
193
|
-
}) => ReturnType;
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
184
|
declare module '@tiptap/core' {
|
|
200
185
|
interface Commands<ReturnType> {
|
|
201
186
|
imageUpload: {
|
|
@@ -216,6 +201,21 @@ declare module '@tiptap/core' {
|
|
|
216
201
|
}
|
|
217
202
|
|
|
218
203
|
|
|
204
|
+
declare module '@tiptap/core' {
|
|
205
|
+
interface Commands<ReturnType> {
|
|
206
|
+
iframe: {
|
|
207
|
+
/**
|
|
208
|
+
* Add an iframe
|
|
209
|
+
*/
|
|
210
|
+
setIframe: (options: {
|
|
211
|
+
src: string;
|
|
212
|
+
service: string;
|
|
213
|
+
}) => ReturnType;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
219
|
declare module '@tiptap/core' {
|
|
220
220
|
interface Commands<ReturnType> {
|
|
221
221
|
imageGifUpload: {
|
|
@@ -254,8 +254,9 @@ declare module '@tiptap/core' {
|
|
|
254
254
|
|
|
255
255
|
declare module '@tiptap/core' {
|
|
256
256
|
interface Commands<ReturnType> {
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
lineHeight: {
|
|
258
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
259
|
+
unsetLineHeight: () => ReturnType;
|
|
259
260
|
};
|
|
260
261
|
}
|
|
261
262
|
}
|
|
@@ -263,9 +264,8 @@ declare module '@tiptap/core' {
|
|
|
263
264
|
|
|
264
265
|
declare module '@tiptap/core' {
|
|
265
266
|
interface Commands<ReturnType> {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
unsetLineHeight: () => ReturnType;
|
|
267
|
+
katex: {
|
|
268
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
}
|
package/lib/TaskList.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { N as m, w as
|
|
2
|
-
import { A as
|
|
3
|
-
const
|
|
1
|
+
import { N as m, w as f, m as k } from "./index-DI9T3iLd.js";
|
|
2
|
+
import { A as L } from "./RichTextEditor-DjTnd5Uu.js";
|
|
3
|
+
const y = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
4
4
|
name: "taskItem",
|
|
5
5
|
addOptions() {
|
|
6
6
|
return {
|
|
7
7
|
nested: !1,
|
|
8
8
|
HTMLAttributes: {},
|
|
9
|
-
taskListTypeName: "taskList"
|
|
9
|
+
taskListTypeName: "taskList",
|
|
10
|
+
a11y: void 0
|
|
10
11
|
};
|
|
11
12
|
},
|
|
12
13
|
content() {
|
|
@@ -19,8 +20,8 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
19
20
|
default: !1,
|
|
20
21
|
keepOnSplit: !1,
|
|
21
22
|
parseHTML: (t) => {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
23
|
+
const i = t.getAttribute("data-checked");
|
|
24
|
+
return i === "" || i === "true";
|
|
24
25
|
},
|
|
25
26
|
renderHTML: (t) => ({
|
|
26
27
|
"data-checked": t.checked
|
|
@@ -36,10 +37,10 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
36
37
|
}
|
|
37
38
|
];
|
|
38
39
|
},
|
|
39
|
-
renderHTML({ node: t, HTMLAttributes:
|
|
40
|
+
renderHTML({ node: t, HTMLAttributes: i }) {
|
|
40
41
|
return [
|
|
41
42
|
"li",
|
|
42
|
-
|
|
43
|
+
k(this.options.HTMLAttributes, i, {
|
|
43
44
|
"data-type": this.name
|
|
44
45
|
}),
|
|
45
46
|
[
|
|
@@ -67,39 +68,42 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
67
68
|
} : t;
|
|
68
69
|
},
|
|
69
70
|
addNodeView() {
|
|
70
|
-
return ({ node: t, HTMLAttributes:
|
|
71
|
-
const
|
|
72
|
-
|
|
71
|
+
return ({ node: t, HTMLAttributes: i, getPos: r, editor: o }) => {
|
|
72
|
+
const a = document.createElement("li"), c = document.createElement("label"), b = document.createElement("span"), s = document.createElement("input"), h = document.createElement("div"), p = () => {
|
|
73
|
+
var e, n;
|
|
74
|
+
s.ariaLabel = ((n = (e = this.options.a11y) === null || e === void 0 ? void 0 : e.checkboxLabel) === null || n === void 0 ? void 0 : n.call(e, t, s.checked)) || `Task item checkbox for ${t.textContent || "empty task item"}`;
|
|
75
|
+
};
|
|
76
|
+
return p(), c.contentEditable = "false", s.type = "checkbox", s.addEventListener("mousedown", (e) => e.preventDefault()), s.addEventListener("change", (e) => {
|
|
73
77
|
if (!o.isEditable && !this.options.onReadOnlyChecked) {
|
|
74
78
|
s.checked = !s.checked;
|
|
75
79
|
return;
|
|
76
80
|
}
|
|
77
|
-
const { checked:
|
|
78
|
-
o.isEditable && typeof r == "function" && o.chain().focus(void 0, { scrollIntoView: !1 }).command(({ tr:
|
|
81
|
+
const { checked: n } = e.target;
|
|
82
|
+
o.isEditable && typeof r == "function" && o.chain().focus(void 0, { scrollIntoView: !1 }).command(({ tr: l }) => {
|
|
79
83
|
const d = r();
|
|
80
84
|
if (typeof d != "number")
|
|
81
85
|
return !1;
|
|
82
|
-
const u =
|
|
83
|
-
return
|
|
86
|
+
const u = l.doc.nodeAt(d);
|
|
87
|
+
return l.setNodeMarkup(d, void 0, {
|
|
84
88
|
...u == null ? void 0 : u.attrs,
|
|
85
|
-
checked:
|
|
89
|
+
checked: n
|
|
86
90
|
}), !0;
|
|
87
|
-
}).run(), !o.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(t,
|
|
88
|
-
}), Object.entries(this.options.HTMLAttributes).forEach(([e,
|
|
89
|
-
|
|
90
|
-
}),
|
|
91
|
-
|
|
91
|
+
}).run(), !o.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(t, n) || (s.checked = !s.checked));
|
|
92
|
+
}), Object.entries(this.options.HTMLAttributes).forEach(([e, n]) => {
|
|
93
|
+
a.setAttribute(e, n);
|
|
94
|
+
}), a.dataset.checked = t.attrs.checked, s.checked = t.attrs.checked, c.append(s, b), a.append(c, h), Object.entries(i).forEach(([e, n]) => {
|
|
95
|
+
a.setAttribute(e, n);
|
|
92
96
|
}), {
|
|
93
|
-
dom:
|
|
97
|
+
dom: a,
|
|
94
98
|
contentDOM: h,
|
|
95
|
-
update: (e) => e.type !== this.type ? !1 : (
|
|
99
|
+
update: (e) => e.type !== this.type ? !1 : (a.dataset.checked = e.attrs.checked, s.checked = e.attrs.checked, p(), !0)
|
|
96
100
|
};
|
|
97
101
|
};
|
|
98
102
|
},
|
|
99
103
|
addInputRules() {
|
|
100
104
|
return [
|
|
101
|
-
|
|
102
|
-
find:
|
|
105
|
+
f({
|
|
106
|
+
find: y,
|
|
103
107
|
type: this.type,
|
|
104
108
|
getAttributes: (t) => ({
|
|
105
109
|
checked: t[t.length - 1] === "x"
|
|
@@ -107,7 +111,7 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
107
111
|
})
|
|
108
112
|
];
|
|
109
113
|
}
|
|
110
|
-
}),
|
|
114
|
+
}), g = m.create({
|
|
111
115
|
name: "taskList",
|
|
112
116
|
addOptions() {
|
|
113
117
|
return {
|
|
@@ -128,7 +132,7 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
128
132
|
];
|
|
129
133
|
},
|
|
130
134
|
renderHTML({ HTMLAttributes: t }) {
|
|
131
|
-
return ["ul",
|
|
135
|
+
return ["ul", k(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
|
|
132
136
|
},
|
|
133
137
|
addCommands() {
|
|
134
138
|
return {
|
|
@@ -140,7 +144,7 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
140
144
|
"Mod-Shift-9": () => this.editor.commands.toggleTaskList()
|
|
141
145
|
};
|
|
142
146
|
}
|
|
143
|
-
}),
|
|
147
|
+
}), E = /* @__PURE__ */ g.extend({
|
|
144
148
|
addOptions() {
|
|
145
149
|
var t;
|
|
146
150
|
return {
|
|
@@ -153,11 +157,11 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
153
157
|
class: "task-list-item"
|
|
154
158
|
}
|
|
155
159
|
},
|
|
156
|
-
button: ({ editor:
|
|
157
|
-
component:
|
|
160
|
+
button: ({ editor: i, t: r }) => ({
|
|
161
|
+
component: L,
|
|
158
162
|
componentProps: {
|
|
159
|
-
action: () =>
|
|
160
|
-
isActive: () =>
|
|
163
|
+
action: () => i.commands.toggleTaskList(),
|
|
164
|
+
isActive: () => i.isActive("taskList") || !1,
|
|
161
165
|
disabled: !1,
|
|
162
166
|
icon: "ListTodo",
|
|
163
167
|
shortcutKeys: ["shift", "mod", "9"],
|
|
@@ -171,5 +175,5 @@ const L = /^\s*(\[([( |x])?\])\s$/, T = m.create({
|
|
|
171
175
|
}
|
|
172
176
|
});
|
|
173
177
|
export {
|
|
174
|
-
|
|
178
|
+
E as TaskList
|
|
175
179
|
};
|
package/lib/TextAlign.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index-ByRfqzMr.cjs"),n=require("react/jsx-runtime"),T=require("react"),s=require("./RichTextEditor-CAxwVWUE.cjs"),j=y.Extension.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(l=>e.updateAttributes(l,{textAlign:t})).every(l=>l):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:l})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?l.unsetTextAlign():l.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}});function b(t){var l;const e=T.useMemo(()=>{var o;const i=(o=t==null?void 0:t.items)==null?void 0:o.find(a=>a.isActive());return i&&!i.default?{...i,icon:i.icon?i.icon:t.icon}:{title:t==null?void 0:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return n.jsxs(s.Popover,{modal:!0,children:[n.jsx(s.PopoverTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:n.jsx(s.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip,children:n.jsx(s.IconComponent,{className:"richtext-ml-1 richtext-size-3 richtext-text-zinc-500",name:"MenuDown"})})}),n.jsx(s.PopoverContent,{align:"start",className:"richtext-flex richtext-w-full richtext-min-w-4 richtext-flex-row richtext-gap-1 !richtext-p-[4px]",side:"bottom",children:(l=t==null?void 0:t.items)==null?void 0:l.map((i,d)=>{var o,a;return n.jsxs(s.Tooltip,{children:[n.jsx(s.TooltipTrigger,{asChild:!0,children:n.jsx(s.Toggle,{className:"richtext-size-7 richtext-p-1","data-state":e.title===i.title?"on":"off",onClick:i==null?void 0:i.action,pressed:e.title===i.title,size:"sm",children:(i==null?void 0:i.icon)&&n.jsx(s.IconComponent,{name:i.icon})})}),n.jsxs(s.TooltipContent,{className:"richtext-flex richtext-flex-col richtext-items-center",children:[n.jsx("span",{children:i.title}),!!((o=i.shortcutKeys)!=null&&o.length)&&n.jsx("span",{children:(a=i.shortcutKeys)==null?void 0:a.map(r=>s.getShortcutKey(r)).join(" ")})]})]},`text-align-${d}`)})})]})}const v=j.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),types:["heading","paragraph","list_item","title"],button({editor:e,extension:l,t:i}){var x;const d=((x=l.options)==null?void 0:x.alignments)||[],o={left:["mod","Shift","L"],center:["mod","Shift","E"],right:["mod","Shift","R"],justify:["mod","Shift","J"]},a={left:"AlignLeft",center:"AlignCenter",right:"AlignRight",justify:"AlignJustify"},r=d.map(c=>{var g,h,f;return{title:i(`editor.textalign.${c}.tooltip`),icon:a[c],shortcutKeys:o[c],isActive:()=>e.isActive({textAlign:c})||!1,action:()=>{var u,A;return(A=(u=e.commands)==null?void 0:u.setTextAlign)==null?void 0:A.call(u,c)},disabled:!((f=(h=(g=e==null?void 0:e.can)==null?void 0:g.call(e))==null?void 0:h.setTextAlign)!=null&&f.call(h,c))}}),m=r.filter(c=>c.disabled).length===r.length;return{component:b,componentProps:{icon:"AlignJustify",tooltip:i("editor.textalign.tooltip"),disabled:m,items:r}}}}}});exports.TextAlign=v;
|
package/lib/TextAlign.d.cts
CHANGED
|
@@ -120,9 +120,11 @@ declare module '@tiptap/core' {
|
|
|
120
120
|
|
|
121
121
|
declare module '@tiptap/core' {
|
|
122
122
|
interface Commands<ReturnType> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
emoji: {
|
|
124
|
+
setEmoji: (emoji: {
|
|
125
|
+
name: string;
|
|
126
|
+
emoji: string;
|
|
127
|
+
}) => ReturnType;
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
130
|
}
|
|
@@ -130,11 +132,9 @@ declare module '@tiptap/core' {
|
|
|
130
132
|
|
|
131
133
|
declare module '@tiptap/core' {
|
|
132
134
|
interface Commands<ReturnType> {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
emoji: string;
|
|
137
|
-
}) => ReturnType;
|
|
135
|
+
drawer: {
|
|
136
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
137
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -185,21 +185,6 @@ declare module '@tiptap/core' {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
declare module '@tiptap/core' {
|
|
189
|
-
interface Commands<ReturnType> {
|
|
190
|
-
iframe: {
|
|
191
|
-
/**
|
|
192
|
-
* Add an iframe
|
|
193
|
-
*/
|
|
194
|
-
setIframe: (options: {
|
|
195
|
-
src: string;
|
|
196
|
-
service: string;
|
|
197
|
-
}) => ReturnType;
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
188
|
declare module '@tiptap/core' {
|
|
204
189
|
interface Commands<ReturnType> {
|
|
205
190
|
imageUpload: {
|
|
@@ -220,6 +205,21 @@ declare module '@tiptap/core' {
|
|
|
220
205
|
}
|
|
221
206
|
|
|
222
207
|
|
|
208
|
+
declare module '@tiptap/core' {
|
|
209
|
+
interface Commands<ReturnType> {
|
|
210
|
+
iframe: {
|
|
211
|
+
/**
|
|
212
|
+
* Add an iframe
|
|
213
|
+
*/
|
|
214
|
+
setIframe: (options: {
|
|
215
|
+
src: string;
|
|
216
|
+
service: string;
|
|
217
|
+
}) => ReturnType;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
223
|
declare module '@tiptap/core' {
|
|
224
224
|
interface Commands<ReturnType> {
|
|
225
225
|
imageGifUpload: {
|
|
@@ -258,8 +258,9 @@ declare module '@tiptap/core' {
|
|
|
258
258
|
|
|
259
259
|
declare module '@tiptap/core' {
|
|
260
260
|
interface Commands<ReturnType> {
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
lineHeight: {
|
|
262
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
263
|
+
unsetLineHeight: () => ReturnType;
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
}
|
|
@@ -267,9 +268,8 @@ declare module '@tiptap/core' {
|
|
|
267
268
|
|
|
268
269
|
declare module '@tiptap/core' {
|
|
269
270
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
unsetLineHeight: () => ReturnType;
|
|
271
|
+
katex: {
|
|
272
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
}
|