reactjs-tiptap-editor 0.3.29 → 0.3.30
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-Cs9DM_16.js → ActionMenuButton-B6fitGKu.js} +1 -1
- package/lib/{ActionMenuButton-5Y8QcYxD.cjs → ActionMenuButton-wiDnIxE2.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +19 -19
- package/lib/Attachment.d.ts +19 -19
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +19 -19
- package/lib/Blockquote.d.ts +19 -19
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +19 -19
- package/lib/Bold.d.ts +19 -19
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +19 -19
- package/lib/BulletList.d.ts +19 -19
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +19 -19
- package/lib/Clear.d.ts +19 -19
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +19 -19
- package/lib/Code.d.ts +19 -19
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +19 -19
- package/lib/CodeBlock.d.ts +19 -19
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +19 -19
- package/lib/CodeView.d.ts +19 -19
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +19 -19
- package/lib/Color.d.ts +19 -19
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +19 -19
- package/lib/Document.d.ts +19 -19
- package/lib/{Drawer-BCmNLh31.js → Drawer-BKTU9CpU.js} +1 -1
- package/lib/{Drawer-DCAp7eZF.cjs → Drawer-CmoEF-Zg.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +19 -19
- package/lib/Drawer.d.ts +19 -19
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +19 -19
- package/lib/Emoji.d.ts +19 -19
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-CYPcjYZB.js → Excalidraw-CM74U5tG.js} +1 -1
- package/lib/{Excalidraw-BI50RQL-.cjs → Excalidraw-DAPP9qgY.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +19 -19
- package/lib/Excalidraw.d.ts +19 -19
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +19 -19
- package/lib/ExportPdf.d.ts +19 -19
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +19 -19
- package/lib/ExportWord.d.ts +19 -19
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +19 -19
- package/lib/FontFamily.d.ts +19 -19
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +19 -19
- package/lib/FontSize.d.ts +19 -19
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +19 -19
- package/lib/FormatPainter.d.ts +19 -19
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +19 -19
- package/lib/Heading.d.ts +19 -19
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +19 -19
- package/lib/Highlight.d.ts +19 -19
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +19 -19
- package/lib/History.d.ts +19 -19
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +19 -19
- package/lib/HorizontalRule.d.ts +19 -19
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +19 -19
- package/lib/Iframe.d.ts +19 -19
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +19 -19
- package/lib/Image.d.ts +19 -19
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +19 -19
- package/lib/ImageGif.d.ts +19 -19
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +19 -19
- package/lib/ImportWord.d.ts +19 -19
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +19 -19
- package/lib/Indent.d.ts +19 -19
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +19 -19
- package/lib/Italic.d.ts +19 -19
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +19 -19
- package/lib/Katex.d.ts +19 -19
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +19 -19
- package/lib/LineHeight.d.ts +19 -19
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +19 -19
- package/lib/Link.d.ts +19 -19
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +19 -19
- package/lib/ListItem.d.ts +19 -19
- package/lib/Mention.d.cts +19 -19
- package/lib/Mention.d.ts +19 -19
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +19 -19
- package/lib/Mermaid.d.ts +19 -19
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +19 -19
- package/lib/MoreMark.d.ts +19 -19
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +19 -19
- package/lib/MultiColumn.d.ts +19 -19
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +19 -19
- package/lib/OrderedList.d.ts +19 -19
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-e6q30rbV.js → RichTextEditor-BQN2eLD_.js} +3 -5
- package/lib/{RichTextEditor-DsUcQSbm.cjs → RichTextEditor-C8Sm1E6J.cjs} +1 -1
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +19 -19
- package/lib/SearchAndReplace.d.ts +19 -19
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +19 -19
- package/lib/Selection.d.ts +19 -19
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +19 -19
- package/lib/SlashCommand.d.ts +19 -19
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +19 -19
- package/lib/Strike.d.ts +19 -19
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +19 -19
- package/lib/SubAndSuperScript.d.ts +19 -19
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +19 -19
- package/lib/Table.d.ts +19 -19
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +19 -19
- package/lib/TableOfContent.d.ts +19 -19
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +19 -19
- package/lib/TaskList.d.ts +19 -19
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +19 -19
- package/lib/TextAlign.d.ts +19 -19
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +19 -19
- package/lib/TextBubble.d.ts +19 -19
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +19 -19
- package/lib/TextDirection.d.ts +19 -19
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +19 -19
- package/lib/TextUnderline.d.ts +19 -19
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +19 -19
- package/lib/TrailingNode.d.ts +19 -19
- package/lib/{Twitter-D2Osj8qP.cjs → Twitter-CL2pu4QM.cjs} +1 -1
- package/lib/{Twitter-Wb7cD3M-.js → Twitter-Dg6WWauX.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +19 -19
- package/lib/Twitter.d.ts +19 -19
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +19 -19
- package/lib/Video.d.ts +19 -19
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +19 -19
- package/lib/bubble-extra.d.ts +19 -19
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +19 -19
- package/lib/index.d.ts +19 -19
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +19 -19
- package/lib/locale-bundle.d.ts +19 -19
- package/lib/style.css +1 -1
- package/lib/{textarea-Csmx5x-_.js → textarea-BglwYF6b.js} +1 -1
- package/lib/{textarea-BVbzd9-k.cjs → textarea-D5WVZMgt.cjs} +1 -1
- package/package.json +1 -1
package/lib/Mermaid.d.ts
CHANGED
|
@@ -135,8 +135,8 @@ declare module '@tiptap/core' {
|
|
|
135
135
|
|
|
136
136
|
declare module '@tiptap/core' {
|
|
137
137
|
interface Commands<ReturnType> {
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
excalidraw: {
|
|
139
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -144,8 +144,8 @@ declare module '@tiptap/core' {
|
|
|
144
144
|
|
|
145
145
|
declare module '@tiptap/core' {
|
|
146
146
|
interface Commands<ReturnType> {
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
exportPdf: {
|
|
148
|
+
exportToPdf: () => ReturnType;
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -187,21 +187,6 @@ declare module '@tiptap/core' {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
|
|
190
|
-
declare module '@tiptap/core' {
|
|
191
|
-
interface Commands<ReturnType> {
|
|
192
|
-
iframe: {
|
|
193
|
-
/**
|
|
194
|
-
* Add an iframe
|
|
195
|
-
*/
|
|
196
|
-
setIframe: (options: {
|
|
197
|
-
src: string;
|
|
198
|
-
service: string;
|
|
199
|
-
}) => ReturnType;
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
190
|
declare module '@tiptap/core' {
|
|
206
191
|
interface Commands<ReturnType> {
|
|
207
192
|
imageUpload: {
|
|
@@ -222,6 +207,21 @@ declare module '@tiptap/core' {
|
|
|
222
207
|
}
|
|
223
208
|
|
|
224
209
|
|
|
210
|
+
declare module '@tiptap/core' {
|
|
211
|
+
interface Commands<ReturnType> {
|
|
212
|
+
iframe: {
|
|
213
|
+
/**
|
|
214
|
+
* Add an iframe
|
|
215
|
+
*/
|
|
216
|
+
setIframe: (options: {
|
|
217
|
+
src: string;
|
|
218
|
+
service: string;
|
|
219
|
+
}) => ReturnType;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
225
|
declare module '@tiptap/core' {
|
|
226
226
|
interface Commands<ReturnType> {
|
|
227
227
|
imageGifUpload: {
|
package/lib/Mermaid.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h as $, m as X } from "./index-DI9T3iLd.js";
|
|
2
|
-
import { w as Z, x as J, A as K, y as Y, z as Q, F as tt, B as et, G as rt, J as V, K as it, N as at } from "./RichTextEditor-
|
|
2
|
+
import { w as Z, x as J, A as K, y as Y, z as Q, F as tt, B as et, G as rt, J as V, K as it, N as at } from "./RichTextEditor-BQN2eLD_.js";
|
|
3
3
|
import { N as st, R as nt } from "./dom-dataset-Di3tIRrR.js";
|
|
4
4
|
import { jsxs as C, jsx as o } from "react/jsx-runtime";
|
|
5
5
|
import { useState as g, useRef as ot, useCallback as y, useEffect as E, useMemo as k } from "react";
|
|
6
6
|
import { s as lt, i as ct } from "./shortId-WJVkrvml.js";
|
|
7
|
-
import { T as dt } from "./textarea-
|
|
7
|
+
import { T as dt } from "./textarea-BglwYF6b.js";
|
|
8
8
|
import { I as q, i as ht, j as W } from "./index-CsK90iVd.js";
|
|
9
9
|
const j = `graph TB
|
|
10
10
|
a-->b`, ut = ({ editor: r, upload: t }) => {
|
package/lib/MoreMark.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),d=require("./index-Z4b9rzn-.cjs"),c=require("react/jsx-runtime"),m=require("react"),s=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),d=require("./index-Z4b9rzn-.cjs"),c=require("react/jsx-runtime"),m=require("react"),s=require("./RichTextEditor-C8Sm1E6J.cjs");function g(t){var n;const i=m.useMemo(()=>{var r;const e=(r=t==null?void 0:t.items)==null?void 0:r.find(u=>u.isActive());return e&&!e.default?{...e,icon:e!=null&&e.icon?e==null?void 0:e.icon:t==null?void 0:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return c.jsxs(s.DropdownMenu,{children:[c.jsx(s.DropdownMenuTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:c.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:c.jsx(s.MenuDown,{className:"richtext-size-3 richtext-text-gray-500"})})}),c.jsx(s.DropdownMenuContent,{className:"w-full",children:(n=t==null?void 0:t.items)==null?void 0:n.map((e,o)=>c.jsxs(s.DropdownMenuCheckboxItem,{checked:i.title===e.title,className:"richtext-flex richtext-items-center richtext-gap-3",onClick:e.action,children:[c.jsx(s.IconComponent,{name:e==null?void 0:e.icon}),c.jsx("span",{className:"richtext-ml-1",children:e.title}),!!(e!=null&&e.shortcutKeys)&&c.jsx("span",{className:"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",children:s.getShortcutKeys(e.shortcutKeys)})]},`more-mark-${o}`))})]})}const f=b.Extension.create({name:"moreMark",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:i,extension:n,t:e}){var l,h;const o=n.options.subscript,r=n.options.superscript,u={action:()=>i.commands.toggleSubscript(),isActive:()=>i.isActive("subscript")||!1,disabled:!i.can().toggleSubscript(),icon:"Subscript",title:e("editor.subscript.tooltip"),shortcutKeys:((l=n.options.shortcutKeys)==null?void 0:l[0])??["mod","."]},x={action:()=>i.commands.toggleSuperscript(),isActive:()=>i.isActive("superscript")||!1,disabled:!i.can().toggleSuperscript(),icon:"Superscript",title:e("editor.superscript.tooltip"),shortcutKeys:((h=n.options.shortcutKeys)==null?void 0:h[1])??["mod",","]},a=[];return o!==!1&&a.push(u),r!==!1&&a.push(x),{component:g,componentProps:{icon:"Type",tooltip:e("editor.moremark"),disabled:!i.isEditable,items:a}}}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(d.Subscript.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(d.Superscript.configure(this.options.superscript)),t}});exports.MoreMark=f;
|
package/lib/MoreMark.d.cts
CHANGED
|
@@ -146,8 +146,8 @@ declare module '@tiptap/core' {
|
|
|
146
146
|
|
|
147
147
|
declare module '@tiptap/core' {
|
|
148
148
|
interface Commands<ReturnType> {
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
excalidraw: {
|
|
150
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -155,8 +155,8 @@ declare module '@tiptap/core' {
|
|
|
155
155
|
|
|
156
156
|
declare module '@tiptap/core' {
|
|
157
157
|
interface Commands<ReturnType> {
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
exportPdf: {
|
|
159
|
+
exportToPdf: () => ReturnType;
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -198,21 +198,6 @@ declare module '@tiptap/core' {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
|
|
201
|
-
declare module '@tiptap/core' {
|
|
202
|
-
interface Commands<ReturnType> {
|
|
203
|
-
iframe: {
|
|
204
|
-
/**
|
|
205
|
-
* Add an iframe
|
|
206
|
-
*/
|
|
207
|
-
setIframe: (options: {
|
|
208
|
-
src: string;
|
|
209
|
-
service: string;
|
|
210
|
-
}) => ReturnType;
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
201
|
declare module '@tiptap/core' {
|
|
217
202
|
interface Commands<ReturnType> {
|
|
218
203
|
imageUpload: {
|
|
@@ -233,6 +218,21 @@ declare module '@tiptap/core' {
|
|
|
233
218
|
}
|
|
234
219
|
|
|
235
220
|
|
|
221
|
+
declare module '@tiptap/core' {
|
|
222
|
+
interface Commands<ReturnType> {
|
|
223
|
+
iframe: {
|
|
224
|
+
/**
|
|
225
|
+
* Add an iframe
|
|
226
|
+
*/
|
|
227
|
+
setIframe: (options: {
|
|
228
|
+
src: string;
|
|
229
|
+
service: string;
|
|
230
|
+
}) => ReturnType;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
236
|
declare module '@tiptap/core' {
|
|
237
237
|
interface Commands<ReturnType> {
|
|
238
238
|
imageGifUpload: {
|
package/lib/MoreMark.d.ts
CHANGED
|
@@ -146,8 +146,8 @@ declare module '@tiptap/core' {
|
|
|
146
146
|
|
|
147
147
|
declare module '@tiptap/core' {
|
|
148
148
|
interface Commands<ReturnType> {
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
excalidraw: {
|
|
150
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -155,8 +155,8 @@ declare module '@tiptap/core' {
|
|
|
155
155
|
|
|
156
156
|
declare module '@tiptap/core' {
|
|
157
157
|
interface Commands<ReturnType> {
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
exportPdf: {
|
|
159
|
+
exportToPdf: () => ReturnType;
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -198,21 +198,6 @@ declare module '@tiptap/core' {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
|
|
201
|
-
declare module '@tiptap/core' {
|
|
202
|
-
interface Commands<ReturnType> {
|
|
203
|
-
iframe: {
|
|
204
|
-
/**
|
|
205
|
-
* Add an iframe
|
|
206
|
-
*/
|
|
207
|
-
setIframe: (options: {
|
|
208
|
-
src: string;
|
|
209
|
-
service: string;
|
|
210
|
-
}) => ReturnType;
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
201
|
declare module '@tiptap/core' {
|
|
217
202
|
interface Commands<ReturnType> {
|
|
218
203
|
imageUpload: {
|
|
@@ -233,6 +218,21 @@ declare module '@tiptap/core' {
|
|
|
233
218
|
}
|
|
234
219
|
|
|
235
220
|
|
|
221
|
+
declare module '@tiptap/core' {
|
|
222
|
+
interface Commands<ReturnType> {
|
|
223
|
+
iframe: {
|
|
224
|
+
/**
|
|
225
|
+
* Add an iframe
|
|
226
|
+
*/
|
|
227
|
+
setIframe: (options: {
|
|
228
|
+
src: string;
|
|
229
|
+
service: string;
|
|
230
|
+
}) => ReturnType;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
236
|
declare module '@tiptap/core' {
|
|
237
237
|
interface Commands<ReturnType> {
|
|
238
238
|
imageGifUpload: {
|
package/lib/MoreMark.js
CHANGED
|
@@ -2,7 +2,7 @@ import { E as m } from "./index-DI9T3iLd.js";
|
|
|
2
2
|
import { S as f, a as b } from "./index-LUL9mqY4.js";
|
|
3
3
|
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo as x } from "react";
|
|
5
|
-
import { D as g, e as M, A as y, M as S, f as k, h as A, k as w, g as v } from "./RichTextEditor-
|
|
5
|
+
import { D as g, e as M, A as y, M as S, f as k, h as A, k as w, g as v } from "./RichTextEditor-BQN2eLD_.js";
|
|
6
6
|
function K(t) {
|
|
7
7
|
var c;
|
|
8
8
|
const e = x(() => {
|
package/lib/MultiColumn.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");const o=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");const o=require("./RichTextEditor-C8Sm1E6J.cjs");exports.Column=o.Column;exports.ColumnActionButton=o.ColumnActionButton;exports.EXTENSION_PRIORITY_HIGHEST=o.EXTENSION_PRIORITY_HIGHEST;exports.MultiColumn=o.MultiColumn;
|
package/lib/MultiColumn.d.cts
CHANGED
|
@@ -66,8 +66,8 @@ declare module '@tiptap/core' {
|
|
|
66
66
|
|
|
67
67
|
declare module '@tiptap/core' {
|
|
68
68
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
excalidraw: {
|
|
70
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -75,8 +75,8 @@ declare module '@tiptap/core' {
|
|
|
75
75
|
|
|
76
76
|
declare module '@tiptap/core' {
|
|
77
77
|
interface Commands<ReturnType> {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
exportPdf: {
|
|
79
|
+
exportToPdf: () => ReturnType;
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -118,21 +118,6 @@ declare module '@tiptap/core' {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
declare module '@tiptap/core' {
|
|
122
|
-
interface Commands<ReturnType> {
|
|
123
|
-
iframe: {
|
|
124
|
-
/**
|
|
125
|
-
* Add an iframe
|
|
126
|
-
*/
|
|
127
|
-
setIframe: (options: {
|
|
128
|
-
src: string;
|
|
129
|
-
service: string;
|
|
130
|
-
}) => ReturnType;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
121
|
declare module '@tiptap/core' {
|
|
137
122
|
interface Commands<ReturnType> {
|
|
138
123
|
imageUpload: {
|
|
@@ -153,6 +138,21 @@ declare module '@tiptap/core' {
|
|
|
153
138
|
}
|
|
154
139
|
|
|
155
140
|
|
|
141
|
+
declare module '@tiptap/core' {
|
|
142
|
+
interface Commands<ReturnType> {
|
|
143
|
+
iframe: {
|
|
144
|
+
/**
|
|
145
|
+
* Add an iframe
|
|
146
|
+
*/
|
|
147
|
+
setIframe: (options: {
|
|
148
|
+
src: string;
|
|
149
|
+
service: string;
|
|
150
|
+
}) => ReturnType;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
156
|
declare module '@tiptap/core' {
|
|
157
157
|
interface Commands<ReturnType> {
|
|
158
158
|
imageGifUpload: {
|
package/lib/MultiColumn.d.ts
CHANGED
|
@@ -66,8 +66,8 @@ declare module '@tiptap/core' {
|
|
|
66
66
|
|
|
67
67
|
declare module '@tiptap/core' {
|
|
68
68
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
excalidraw: {
|
|
70
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -75,8 +75,8 @@ declare module '@tiptap/core' {
|
|
|
75
75
|
|
|
76
76
|
declare module '@tiptap/core' {
|
|
77
77
|
interface Commands<ReturnType> {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
exportPdf: {
|
|
79
|
+
exportToPdf: () => ReturnType;
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -118,21 +118,6 @@ declare module '@tiptap/core' {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
declare module '@tiptap/core' {
|
|
122
|
-
interface Commands<ReturnType> {
|
|
123
|
-
iframe: {
|
|
124
|
-
/**
|
|
125
|
-
* Add an iframe
|
|
126
|
-
*/
|
|
127
|
-
setIframe: (options: {
|
|
128
|
-
src: string;
|
|
129
|
-
service: string;
|
|
130
|
-
}) => ReturnType;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
121
|
declare module '@tiptap/core' {
|
|
137
122
|
interface Commands<ReturnType> {
|
|
138
123
|
imageUpload: {
|
|
@@ -153,6 +138,21 @@ declare module '@tiptap/core' {
|
|
|
153
138
|
}
|
|
154
139
|
|
|
155
140
|
|
|
141
|
+
declare module '@tiptap/core' {
|
|
142
|
+
interface Commands<ReturnType> {
|
|
143
|
+
iframe: {
|
|
144
|
+
/**
|
|
145
|
+
* Add an iframe
|
|
146
|
+
*/
|
|
147
|
+
setIframe: (options: {
|
|
148
|
+
src: string;
|
|
149
|
+
service: string;
|
|
150
|
+
}) => ReturnType;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
156
|
declare module '@tiptap/core' {
|
|
157
157
|
interface Commands<ReturnType> {
|
|
158
158
|
imageGifUpload: {
|
package/lib/MultiColumn.js
CHANGED
package/lib/OrderedList.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),a=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),a=require("./RichTextEditor-C8Sm1E6J.cjs"),d="listItem",r="textStyle",o=/^(\d+)\.\s$/,u=i.Node.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...s}=t;return e===1?["ol",i.mergeAttributes(this.options.HTMLAttributes,s),0]:["ol",i.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(d,this.editor.getAttributes(r)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=i.wrappingInputRule({find:o,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i.wrappingInputRule({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(r)}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1],editor:this.editor})),[t]}}),p=u.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:s,extension:n})=>({component:a.ActionButton,componentProps:{action:()=>e.commands.toggleOrderedList(),isActive:()=>e.isActive("orderedList")||!1,disabled:!1,icon:"ListOrdered",shortcutKeys:n.options.shortcutKeys??["mod","shift","7"],tooltip:s("editor.orderedlist.tooltip")}})}}});exports.OrderedList=p;
|
package/lib/OrderedList.d.cts
CHANGED
|
@@ -134,8 +134,8 @@ declare module '@tiptap/core' {
|
|
|
134
134
|
|
|
135
135
|
declare module '@tiptap/core' {
|
|
136
136
|
interface Commands<ReturnType> {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
excalidraw: {
|
|
138
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
|
|
|
143
143
|
|
|
144
144
|
declare module '@tiptap/core' {
|
|
145
145
|
interface Commands<ReturnType> {
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
exportPdf: {
|
|
147
|
+
exportToPdf: () => ReturnType;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -186,21 +186,6 @@ declare module '@tiptap/core' {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
declare module '@tiptap/core' {
|
|
190
|
-
interface Commands<ReturnType> {
|
|
191
|
-
iframe: {
|
|
192
|
-
/**
|
|
193
|
-
* Add an iframe
|
|
194
|
-
*/
|
|
195
|
-
setIframe: (options: {
|
|
196
|
-
src: string;
|
|
197
|
-
service: string;
|
|
198
|
-
}) => ReturnType;
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
189
|
declare module '@tiptap/core' {
|
|
205
190
|
interface Commands<ReturnType> {
|
|
206
191
|
imageUpload: {
|
|
@@ -221,6 +206,21 @@ declare module '@tiptap/core' {
|
|
|
221
206
|
}
|
|
222
207
|
|
|
223
208
|
|
|
209
|
+
declare module '@tiptap/core' {
|
|
210
|
+
interface Commands<ReturnType> {
|
|
211
|
+
iframe: {
|
|
212
|
+
/**
|
|
213
|
+
* Add an iframe
|
|
214
|
+
*/
|
|
215
|
+
setIframe: (options: {
|
|
216
|
+
src: string;
|
|
217
|
+
service: string;
|
|
218
|
+
}) => ReturnType;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
224
|
declare module '@tiptap/core' {
|
|
225
225
|
interface Commands<ReturnType> {
|
|
226
226
|
imageGifUpload: {
|
package/lib/OrderedList.d.ts
CHANGED
|
@@ -134,8 +134,8 @@ declare module '@tiptap/core' {
|
|
|
134
134
|
|
|
135
135
|
declare module '@tiptap/core' {
|
|
136
136
|
interface Commands<ReturnType> {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
excalidraw: {
|
|
138
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
|
|
|
143
143
|
|
|
144
144
|
declare module '@tiptap/core' {
|
|
145
145
|
interface Commands<ReturnType> {
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
exportPdf: {
|
|
147
|
+
exportToPdf: () => ReturnType;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -186,21 +186,6 @@ declare module '@tiptap/core' {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
declare module '@tiptap/core' {
|
|
190
|
-
interface Commands<ReturnType> {
|
|
191
|
-
iframe: {
|
|
192
|
-
/**
|
|
193
|
-
* Add an iframe
|
|
194
|
-
*/
|
|
195
|
-
setIframe: (options: {
|
|
196
|
-
src: string;
|
|
197
|
-
service: string;
|
|
198
|
-
}) => ReturnType;
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
189
|
declare module '@tiptap/core' {
|
|
205
190
|
interface Commands<ReturnType> {
|
|
206
191
|
imageUpload: {
|
|
@@ -221,6 +206,21 @@ declare module '@tiptap/core' {
|
|
|
221
206
|
}
|
|
222
207
|
|
|
223
208
|
|
|
209
|
+
declare module '@tiptap/core' {
|
|
210
|
+
interface Commands<ReturnType> {
|
|
211
|
+
iframe: {
|
|
212
|
+
/**
|
|
213
|
+
* Add an iframe
|
|
214
|
+
*/
|
|
215
|
+
setIframe: (options: {
|
|
216
|
+
src: string;
|
|
217
|
+
service: string;
|
|
218
|
+
}) => ReturnType;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
224
|
declare module '@tiptap/core' {
|
|
225
225
|
interface Commands<ReturnType> {
|
|
226
226
|
imageGifUpload: {
|
package/lib/OrderedList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as p, w as i, m as r } from "./index-DI9T3iLd.js";
|
|
2
|
-
import { A as d } from "./RichTextEditor-
|
|
2
|
+
import { A as d } from "./RichTextEditor-BQN2eLD_.js";
|
|
3
3
|
const u = "listItem", o = "textStyle", n = /^(\d+)\.\s$/, l = p.create({
|
|
4
4
|
name: "orderedList",
|
|
5
5
|
addOptions() {
|
|
@@ -7482,15 +7482,13 @@ function Mx({ selectImage: e, apiKey: t, provider: r, children: n }) {
|
|
|
7482
7482
|
type: "text"
|
|
7483
7483
|
}
|
|
7484
7484
|
) }),
|
|
7485
|
-
/* @__PURE__ */ l("div", { className: "richtext-max-h-[280px] richtext-overflow-y-auto", children: /* @__PURE__ */ l("div", { className: "richtext-grid richtext-grid-cols-2 richtext-gap-1 ", children: i != null && i.length ? i == null ? void 0 : i.map((f) => /* @__PURE__ */ l(
|
|
7485
|
+
/* @__PURE__ */ l("div", { className: "richtext-max-h-[280px] !richtext-max-w-[400px] richtext-overflow-y-auto", children: /* @__PURE__ */ l("div", { className: "richtext-grid richtext-grid-cols-2 richtext-gap-1 ", children: i != null && i.length ? i == null ? void 0 : i.map((f) => /* @__PURE__ */ l(
|
|
7486
7486
|
"img",
|
|
7487
7487
|
{
|
|
7488
7488
|
alt: "",
|
|
7489
|
-
className: "richtext-cursor-pointer richtext-text-center",
|
|
7490
|
-
height: f.height,
|
|
7489
|
+
className: "richtext-cursor-pointer richtext-object-contain richtext-text-center",
|
|
7491
7490
|
onClick: () => e(f.src),
|
|
7492
|
-
src: f.src
|
|
7493
|
-
width: f.width
|
|
7491
|
+
src: f.src
|
|
7494
7492
|
},
|
|
7495
7493
|
f.id
|
|
7496
7494
|
)) : /* @__PURE__ */ l("p", { children: "No GIFs found" }) }) })
|