reactjs-tiptap-editor 0.3.28 → 0.3.29
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-C20molC9.cjs → ActionMenuButton-5Y8QcYxD.cjs} +1 -1
- package/lib/{ActionMenuButton-D0hFczCn.js → ActionMenuButton-Cs9DM_16.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 +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +28 -28
- package/lib/Blockquote.d.ts +28 -28
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +28 -28
- package/lib/Bold.d.ts +28 -28
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +28 -28
- package/lib/BulletList.d.ts +28 -28
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +28 -28
- package/lib/Clear.d.ts +28 -28
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +28 -28
- package/lib/Code.d.ts +28 -28
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +28 -28
- package/lib/CodeBlock.d.ts +28 -28
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +28 -28
- package/lib/CodeView.d.ts +28 -28
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +28 -28
- package/lib/Color.d.ts +28 -28
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +28 -28
- package/lib/Document.d.ts +28 -28
- package/lib/{Drawer-B96jQIQU.js → Drawer-BCmNLh31.js} +1 -1
- package/lib/{Drawer-0kBt3GVL.cjs → Drawer-DCAp7eZF.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +28 -28
- package/lib/Drawer.d.ts +28 -28
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +28 -28
- package/lib/Emoji.d.ts +28 -28
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-BI50RQL-.cjs} +1 -1
- package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CYPcjYZB.js} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +28 -28
- package/lib/Excalidraw.d.ts +28 -28
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +28 -28
- package/lib/ExportPdf.d.ts +28 -28
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +28 -28
- package/lib/ExportWord.d.ts +28 -28
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +28 -28
- package/lib/FontFamily.d.ts +28 -28
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +28 -28
- package/lib/FontSize.d.ts +28 -28
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +28 -28
- package/lib/FormatPainter.d.ts +28 -28
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +28 -28
- package/lib/Heading.d.ts +28 -28
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +28 -28
- package/lib/Highlight.d.ts +28 -28
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +28 -28
- package/lib/History.d.ts +28 -28
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +28 -28
- package/lib/HorizontalRule.d.ts +28 -28
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +28 -28
- package/lib/Iframe.d.ts +28 -28
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +28 -28
- package/lib/Image.d.ts +28 -28
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +31 -30
- package/lib/ImageGif.d.ts +31 -30
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +28 -28
- package/lib/ImportWord.d.ts +28 -28
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +28 -28
- package/lib/Indent.d.ts +28 -28
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +28 -28
- package/lib/Italic.d.ts +28 -28
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +28 -28
- package/lib/Katex.d.ts +28 -28
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +28 -28
- package/lib/LineHeight.d.ts +28 -28
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +28 -28
- package/lib/Link.d.ts +28 -28
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +28 -28
- package/lib/ListItem.d.ts +28 -28
- package/lib/Mention.d.cts +28 -28
- package/lib/Mention.d.ts +28 -28
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +28 -28
- package/lib/Mermaid.d.ts +28 -28
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +28 -28
- package/lib/MoreMark.d.ts +28 -28
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +28 -28
- package/lib/MultiColumn.d.ts +28 -28
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +28 -28
- package/lib/OrderedList.d.ts +28 -28
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-DsUcQSbm.cjs} +5 -5
- package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-e6q30rbV.js} +998 -942
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +28 -28
- package/lib/SearchAndReplace.d.ts +28 -28
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +28 -28
- package/lib/Selection.d.ts +28 -28
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +28 -28
- package/lib/SlashCommand.d.ts +28 -28
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +28 -28
- package/lib/Strike.d.ts +28 -28
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +28 -28
- package/lib/SubAndSuperScript.d.ts +28 -28
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +28 -28
- package/lib/Table.d.ts +28 -28
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +28 -28
- package/lib/TableOfContent.d.ts +28 -28
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +28 -28
- package/lib/TaskList.d.ts +28 -28
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +28 -28
- package/lib/TextAlign.d.ts +28 -28
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +28 -28
- package/lib/TextBubble.d.ts +28 -28
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +28 -28
- package/lib/TextDirection.d.ts +28 -28
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +28 -28
- package/lib/TextUnderline.d.ts +28 -28
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +28 -28
- package/lib/TrailingNode.d.ts +28 -28
- package/lib/{Twitter-Dj49i3B9.cjs → Twitter-D2Osj8qP.cjs} +1 -1
- package/lib/{Twitter-CCf1aM0f.js → Twitter-Wb7cD3M-.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +28 -28
- package/lib/Twitter.d.ts +28 -28
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +28 -28
- package/lib/Video.d.ts +28 -28
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +28 -28
- package/lib/bubble-extra.d.ts +28 -28
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +28 -28
- package/lib/index.d.ts +28 -28
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +28 -28
- package/lib/locale-bundle.d.ts +28 -28
- package/lib/{textarea-DhlS0JCr.cjs → textarea-BVbzd9-k.cjs} +1 -1
- package/lib/{textarea-nr3UZ7Wg.js → textarea-Csmx5x-_.js} +1 -1
- package/package.json +1 -1
package/lib/Mermaid.d.cts
CHANGED
|
@@ -121,15 +121,6 @@ declare module '@tiptap/core' {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
declare module '@tiptap/core' {
|
|
125
|
-
interface Commands<ReturnType> {
|
|
126
|
-
excalidraw: {
|
|
127
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
124
|
declare module '@tiptap/core' {
|
|
134
125
|
interface Commands<ReturnType> {
|
|
135
126
|
emoji: {
|
|
@@ -151,6 +142,15 @@ declare module '@tiptap/core' {
|
|
|
151
142
|
}
|
|
152
143
|
|
|
153
144
|
|
|
145
|
+
declare module '@tiptap/core' {
|
|
146
|
+
interface Commands<ReturnType> {
|
|
147
|
+
excalidraw: {
|
|
148
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
154
|
declare module '@tiptap/core' {
|
|
155
155
|
interface Commands<ReturnType> {
|
|
156
156
|
exportWord: {
|
|
@@ -260,9 +260,8 @@ declare module '@tiptap/core' {
|
|
|
260
260
|
|
|
261
261
|
declare module '@tiptap/core' {
|
|
262
262
|
interface Commands<ReturnType> {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
unsetLineHeight: () => ReturnType;
|
|
263
|
+
katex: {
|
|
264
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
266
265
|
};
|
|
267
266
|
}
|
|
268
267
|
}
|
|
@@ -270,8 +269,9 @@ declare module '@tiptap/core' {
|
|
|
270
269
|
|
|
271
270
|
declare module '@tiptap/core' {
|
|
272
271
|
interface Commands<ReturnType> {
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
lineHeight: {
|
|
273
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
274
|
+
unsetLineHeight: () => ReturnType;
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -287,6 +287,20 @@ declare module '@tiptap/core' {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
|
|
290
|
+
declare module '@tiptap/core' {
|
|
291
|
+
interface Commands<ReturnType> {
|
|
292
|
+
columns: {
|
|
293
|
+
insertColumns: (attrs?: {
|
|
294
|
+
cols: number;
|
|
295
|
+
}) => ReturnType;
|
|
296
|
+
addColBefore: () => ReturnType;
|
|
297
|
+
addColAfter: () => ReturnType;
|
|
298
|
+
deleteCol: () => ReturnType;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
290
304
|
declare module '@tiptap/core' {
|
|
291
305
|
interface Commands<ReturnType> {
|
|
292
306
|
search: {
|
|
@@ -302,20 +316,6 @@ declare module '@tiptap/core' {
|
|
|
302
316
|
}
|
|
303
317
|
|
|
304
318
|
|
|
305
|
-
declare module '@tiptap/core' {
|
|
306
|
-
interface Commands<ReturnType> {
|
|
307
|
-
columns: {
|
|
308
|
-
insertColumns: (attrs?: {
|
|
309
|
-
cols: number;
|
|
310
|
-
}) => ReturnType;
|
|
311
|
-
addColBefore: () => ReturnType;
|
|
312
|
-
addColAfter: () => ReturnType;
|
|
313
|
-
deleteCol: () => ReturnType;
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
|
|
319
319
|
declare module '@tiptap/core' {
|
|
320
320
|
interface Commands<ReturnType> {
|
|
321
321
|
tableOfContents: {
|
package/lib/Mermaid.d.ts
CHANGED
|
@@ -121,15 +121,6 @@ declare module '@tiptap/core' {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
declare module '@tiptap/core' {
|
|
125
|
-
interface Commands<ReturnType> {
|
|
126
|
-
excalidraw: {
|
|
127
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
124
|
declare module '@tiptap/core' {
|
|
134
125
|
interface Commands<ReturnType> {
|
|
135
126
|
emoji: {
|
|
@@ -151,6 +142,15 @@ declare module '@tiptap/core' {
|
|
|
151
142
|
}
|
|
152
143
|
|
|
153
144
|
|
|
145
|
+
declare module '@tiptap/core' {
|
|
146
|
+
interface Commands<ReturnType> {
|
|
147
|
+
excalidraw: {
|
|
148
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
154
|
declare module '@tiptap/core' {
|
|
155
155
|
interface Commands<ReturnType> {
|
|
156
156
|
exportWord: {
|
|
@@ -260,9 +260,8 @@ declare module '@tiptap/core' {
|
|
|
260
260
|
|
|
261
261
|
declare module '@tiptap/core' {
|
|
262
262
|
interface Commands<ReturnType> {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
unsetLineHeight: () => ReturnType;
|
|
263
|
+
katex: {
|
|
264
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
266
265
|
};
|
|
267
266
|
}
|
|
268
267
|
}
|
|
@@ -270,8 +269,9 @@ declare module '@tiptap/core' {
|
|
|
270
269
|
|
|
271
270
|
declare module '@tiptap/core' {
|
|
272
271
|
interface Commands<ReturnType> {
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
lineHeight: {
|
|
273
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
274
|
+
unsetLineHeight: () => ReturnType;
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -287,6 +287,20 @@ declare module '@tiptap/core' {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
|
|
290
|
+
declare module '@tiptap/core' {
|
|
291
|
+
interface Commands<ReturnType> {
|
|
292
|
+
columns: {
|
|
293
|
+
insertColumns: (attrs?: {
|
|
294
|
+
cols: number;
|
|
295
|
+
}) => ReturnType;
|
|
296
|
+
addColBefore: () => ReturnType;
|
|
297
|
+
addColAfter: () => ReturnType;
|
|
298
|
+
deleteCol: () => ReturnType;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
290
304
|
declare module '@tiptap/core' {
|
|
291
305
|
interface Commands<ReturnType> {
|
|
292
306
|
search: {
|
|
@@ -302,20 +316,6 @@ declare module '@tiptap/core' {
|
|
|
302
316
|
}
|
|
303
317
|
|
|
304
318
|
|
|
305
|
-
declare module '@tiptap/core' {
|
|
306
|
-
interface Commands<ReturnType> {
|
|
307
|
-
columns: {
|
|
308
|
-
insertColumns: (attrs?: {
|
|
309
|
-
cols: number;
|
|
310
|
-
}) => ReturnType;
|
|
311
|
-
addColBefore: () => ReturnType;
|
|
312
|
-
addColAfter: () => ReturnType;
|
|
313
|
-
deleteCol: () => ReturnType;
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
|
|
319
319
|
declare module '@tiptap/core' {
|
|
320
320
|
interface Commands<ReturnType> {
|
|
321
321
|
tableOfContents: {
|
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-e6q30rbV.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-Csmx5x-_.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-DsUcQSbm.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
|
@@ -132,15 +132,6 @@ declare module '@tiptap/core' {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
declare module '@tiptap/core' {
|
|
136
|
-
interface Commands<ReturnType> {
|
|
137
|
-
excalidraw: {
|
|
138
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
135
|
declare module '@tiptap/core' {
|
|
145
136
|
interface Commands<ReturnType> {
|
|
146
137
|
emoji: {
|
|
@@ -162,6 +153,15 @@ declare module '@tiptap/core' {
|
|
|
162
153
|
}
|
|
163
154
|
|
|
164
155
|
|
|
156
|
+
declare module '@tiptap/core' {
|
|
157
|
+
interface Commands<ReturnType> {
|
|
158
|
+
excalidraw: {
|
|
159
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
165
|
declare module '@tiptap/core' {
|
|
166
166
|
interface Commands<ReturnType> {
|
|
167
167
|
exportWord: {
|
|
@@ -271,9 +271,8 @@ declare module '@tiptap/core' {
|
|
|
271
271
|
|
|
272
272
|
declare module '@tiptap/core' {
|
|
273
273
|
interface Commands<ReturnType> {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
unsetLineHeight: () => ReturnType;
|
|
274
|
+
katex: {
|
|
275
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
277
276
|
};
|
|
278
277
|
}
|
|
279
278
|
}
|
|
@@ -281,8 +280,9 @@ declare module '@tiptap/core' {
|
|
|
281
280
|
|
|
282
281
|
declare module '@tiptap/core' {
|
|
283
282
|
interface Commands<ReturnType> {
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
lineHeight: {
|
|
284
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
285
|
+
unsetLineHeight: () => ReturnType;
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
}
|
|
@@ -298,6 +298,20 @@ declare module '@tiptap/core' {
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
|
|
301
|
+
declare module '@tiptap/core' {
|
|
302
|
+
interface Commands<ReturnType> {
|
|
303
|
+
columns: {
|
|
304
|
+
insertColumns: (attrs?: {
|
|
305
|
+
cols: number;
|
|
306
|
+
}) => ReturnType;
|
|
307
|
+
addColBefore: () => ReturnType;
|
|
308
|
+
addColAfter: () => ReturnType;
|
|
309
|
+
deleteCol: () => ReturnType;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
|
|
301
315
|
declare module '@tiptap/core' {
|
|
302
316
|
interface Commands<ReturnType> {
|
|
303
317
|
search: {
|
|
@@ -313,20 +327,6 @@ declare module '@tiptap/core' {
|
|
|
313
327
|
}
|
|
314
328
|
|
|
315
329
|
|
|
316
|
-
declare module '@tiptap/core' {
|
|
317
|
-
interface Commands<ReturnType> {
|
|
318
|
-
columns: {
|
|
319
|
-
insertColumns: (attrs?: {
|
|
320
|
-
cols: number;
|
|
321
|
-
}) => ReturnType;
|
|
322
|
-
addColBefore: () => ReturnType;
|
|
323
|
-
addColAfter: () => ReturnType;
|
|
324
|
-
deleteCol: () => ReturnType;
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
330
330
|
declare module '@tiptap/core' {
|
|
331
331
|
interface Commands<ReturnType> {
|
|
332
332
|
tableOfContents: {
|
package/lib/MoreMark.d.ts
CHANGED
|
@@ -132,15 +132,6 @@ declare module '@tiptap/core' {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
declare module '@tiptap/core' {
|
|
136
|
-
interface Commands<ReturnType> {
|
|
137
|
-
excalidraw: {
|
|
138
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
135
|
declare module '@tiptap/core' {
|
|
145
136
|
interface Commands<ReturnType> {
|
|
146
137
|
emoji: {
|
|
@@ -162,6 +153,15 @@ declare module '@tiptap/core' {
|
|
|
162
153
|
}
|
|
163
154
|
|
|
164
155
|
|
|
156
|
+
declare module '@tiptap/core' {
|
|
157
|
+
interface Commands<ReturnType> {
|
|
158
|
+
excalidraw: {
|
|
159
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
165
|
declare module '@tiptap/core' {
|
|
166
166
|
interface Commands<ReturnType> {
|
|
167
167
|
exportWord: {
|
|
@@ -271,9 +271,8 @@ declare module '@tiptap/core' {
|
|
|
271
271
|
|
|
272
272
|
declare module '@tiptap/core' {
|
|
273
273
|
interface Commands<ReturnType> {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
unsetLineHeight: () => ReturnType;
|
|
274
|
+
katex: {
|
|
275
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
277
276
|
};
|
|
278
277
|
}
|
|
279
278
|
}
|
|
@@ -281,8 +280,9 @@ declare module '@tiptap/core' {
|
|
|
281
280
|
|
|
282
281
|
declare module '@tiptap/core' {
|
|
283
282
|
interface Commands<ReturnType> {
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
lineHeight: {
|
|
284
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
285
|
+
unsetLineHeight: () => ReturnType;
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
}
|
|
@@ -298,6 +298,20 @@ declare module '@tiptap/core' {
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
|
|
301
|
+
declare module '@tiptap/core' {
|
|
302
|
+
interface Commands<ReturnType> {
|
|
303
|
+
columns: {
|
|
304
|
+
insertColumns: (attrs?: {
|
|
305
|
+
cols: number;
|
|
306
|
+
}) => ReturnType;
|
|
307
|
+
addColBefore: () => ReturnType;
|
|
308
|
+
addColAfter: () => ReturnType;
|
|
309
|
+
deleteCol: () => ReturnType;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
|
|
301
315
|
declare module '@tiptap/core' {
|
|
302
316
|
interface Commands<ReturnType> {
|
|
303
317
|
search: {
|
|
@@ -313,20 +327,6 @@ declare module '@tiptap/core' {
|
|
|
313
327
|
}
|
|
314
328
|
|
|
315
329
|
|
|
316
|
-
declare module '@tiptap/core' {
|
|
317
|
-
interface Commands<ReturnType> {
|
|
318
|
-
columns: {
|
|
319
|
-
insertColumns: (attrs?: {
|
|
320
|
-
cols: number;
|
|
321
|
-
}) => ReturnType;
|
|
322
|
-
addColBefore: () => ReturnType;
|
|
323
|
-
addColAfter: () => ReturnType;
|
|
324
|
-
deleteCol: () => ReturnType;
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
330
330
|
declare module '@tiptap/core' {
|
|
331
331
|
interface Commands<ReturnType> {
|
|
332
332
|
tableOfContents: {
|
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-e6q30rbV.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-DsUcQSbm.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
|
@@ -52,15 +52,6 @@ declare module '@tiptap/core' {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
declare module '@tiptap/core' {
|
|
56
|
-
interface Commands<ReturnType> {
|
|
57
|
-
excalidraw: {
|
|
58
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
55
|
declare module '@tiptap/core' {
|
|
65
56
|
interface Commands<ReturnType> {
|
|
66
57
|
emoji: {
|
|
@@ -82,6 +73,15 @@ declare module '@tiptap/core' {
|
|
|
82
73
|
}
|
|
83
74
|
|
|
84
75
|
|
|
76
|
+
declare module '@tiptap/core' {
|
|
77
|
+
interface Commands<ReturnType> {
|
|
78
|
+
excalidraw: {
|
|
79
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
85
|
declare module '@tiptap/core' {
|
|
86
86
|
interface Commands<ReturnType> {
|
|
87
87
|
exportWord: {
|
|
@@ -191,9 +191,8 @@ declare module '@tiptap/core' {
|
|
|
191
191
|
|
|
192
192
|
declare module '@tiptap/core' {
|
|
193
193
|
interface Commands<ReturnType> {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
unsetLineHeight: () => ReturnType;
|
|
194
|
+
katex: {
|
|
195
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
197
196
|
};
|
|
198
197
|
}
|
|
199
198
|
}
|
|
@@ -201,8 +200,9 @@ declare module '@tiptap/core' {
|
|
|
201
200
|
|
|
202
201
|
declare module '@tiptap/core' {
|
|
203
202
|
interface Commands<ReturnType> {
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
lineHeight: {
|
|
204
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
205
|
+
unsetLineHeight: () => ReturnType;
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -218,6 +218,20 @@ declare module '@tiptap/core' {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
|
|
221
|
+
declare module '@tiptap/core' {
|
|
222
|
+
interface Commands<ReturnType> {
|
|
223
|
+
columns: {
|
|
224
|
+
insertColumns: (attrs?: {
|
|
225
|
+
cols: number;
|
|
226
|
+
}) => ReturnType;
|
|
227
|
+
addColBefore: () => ReturnType;
|
|
228
|
+
addColAfter: () => ReturnType;
|
|
229
|
+
deleteCol: () => ReturnType;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
221
235
|
declare module '@tiptap/core' {
|
|
222
236
|
interface Commands<ReturnType> {
|
|
223
237
|
search: {
|
|
@@ -233,20 +247,6 @@ declare module '@tiptap/core' {
|
|
|
233
247
|
}
|
|
234
248
|
|
|
235
249
|
|
|
236
|
-
declare module '@tiptap/core' {
|
|
237
|
-
interface Commands<ReturnType> {
|
|
238
|
-
columns: {
|
|
239
|
-
insertColumns: (attrs?: {
|
|
240
|
-
cols: number;
|
|
241
|
-
}) => ReturnType;
|
|
242
|
-
addColBefore: () => ReturnType;
|
|
243
|
-
addColAfter: () => ReturnType;
|
|
244
|
-
deleteCol: () => ReturnType;
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
250
|
declare module '@tiptap/core' {
|
|
251
251
|
interface Commands<ReturnType> {
|
|
252
252
|
tableOfContents: {
|
package/lib/MultiColumn.d.ts
CHANGED
|
@@ -52,15 +52,6 @@ declare module '@tiptap/core' {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
declare module '@tiptap/core' {
|
|
56
|
-
interface Commands<ReturnType> {
|
|
57
|
-
excalidraw: {
|
|
58
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
55
|
declare module '@tiptap/core' {
|
|
65
56
|
interface Commands<ReturnType> {
|
|
66
57
|
emoji: {
|
|
@@ -82,6 +73,15 @@ declare module '@tiptap/core' {
|
|
|
82
73
|
}
|
|
83
74
|
|
|
84
75
|
|
|
76
|
+
declare module '@tiptap/core' {
|
|
77
|
+
interface Commands<ReturnType> {
|
|
78
|
+
excalidraw: {
|
|
79
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
85
|
declare module '@tiptap/core' {
|
|
86
86
|
interface Commands<ReturnType> {
|
|
87
87
|
exportWord: {
|
|
@@ -191,9 +191,8 @@ declare module '@tiptap/core' {
|
|
|
191
191
|
|
|
192
192
|
declare module '@tiptap/core' {
|
|
193
193
|
interface Commands<ReturnType> {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
unsetLineHeight: () => ReturnType;
|
|
194
|
+
katex: {
|
|
195
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
197
196
|
};
|
|
198
197
|
}
|
|
199
198
|
}
|
|
@@ -201,8 +200,9 @@ declare module '@tiptap/core' {
|
|
|
201
200
|
|
|
202
201
|
declare module '@tiptap/core' {
|
|
203
202
|
interface Commands<ReturnType> {
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
lineHeight: {
|
|
204
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
205
|
+
unsetLineHeight: () => ReturnType;
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -218,6 +218,20 @@ declare module '@tiptap/core' {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
|
|
221
|
+
declare module '@tiptap/core' {
|
|
222
|
+
interface Commands<ReturnType> {
|
|
223
|
+
columns: {
|
|
224
|
+
insertColumns: (attrs?: {
|
|
225
|
+
cols: number;
|
|
226
|
+
}) => ReturnType;
|
|
227
|
+
addColBefore: () => ReturnType;
|
|
228
|
+
addColAfter: () => ReturnType;
|
|
229
|
+
deleteCol: () => ReturnType;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
221
235
|
declare module '@tiptap/core' {
|
|
222
236
|
interface Commands<ReturnType> {
|
|
223
237
|
search: {
|
|
@@ -233,20 +247,6 @@ declare module '@tiptap/core' {
|
|
|
233
247
|
}
|
|
234
248
|
|
|
235
249
|
|
|
236
|
-
declare module '@tiptap/core' {
|
|
237
|
-
interface Commands<ReturnType> {
|
|
238
|
-
columns: {
|
|
239
|
-
insertColumns: (attrs?: {
|
|
240
|
-
cols: number;
|
|
241
|
-
}) => ReturnType;
|
|
242
|
-
addColBefore: () => ReturnType;
|
|
243
|
-
addColAfter: () => ReturnType;
|
|
244
|
-
deleteCol: () => ReturnType;
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
250
|
declare module '@tiptap/core' {
|
|
251
251
|
interface Commands<ReturnType> {
|
|
252
252
|
tableOfContents: {
|
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-DsUcQSbm.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;
|