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/SlashCommand.js
CHANGED
|
@@ -4,7 +4,7 @@ import { S as P } from "./index-CbQQFj2T.js";
|
|
|
4
4
|
import B from "tippy.js";
|
|
5
5
|
import { jsx as g, jsxs as k } from "react/jsx-runtime";
|
|
6
6
|
import { forwardRef as $, useState as N, useRef as E, useImperativeHandle as z, useEffect as M, Fragment as T } from "react";
|
|
7
|
-
import { d as V, k as U, q, E as K, R as G, U as F, V as j } from "./RichTextEditor-
|
|
7
|
+
import { d as V, k as U, q, E as K, R as G, U as F, V as j } from "./RichTextEditor-e6q30rbV.js";
|
|
8
8
|
import { u as W, n as h } from "./index-CsK90iVd.js";
|
|
9
9
|
function Q(i, m) {
|
|
10
10
|
var L, v;
|
package/lib/Strike.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-ByRfqzMr.cjs"),i=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-ByRfqzMr.cjs"),i=require("./RichTextEditor-DsUcQSbm.cjs"),o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,a=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,u=e.Mark.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",e.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[e.markInputRule({find:o,type:this.type})]},addPasteRules(){return[e.markPasteRule({find:a,type:this.type})]}}),d=u.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:r,t:s,extension:n})=>({component:i.ActionButton,componentProps:{action:()=>r.commands.toggleStrike(),isActive:()=>r.isActive("strike")||!1,disabled:!1,icon:"Strikethrough",shortcutKeys:n.options.shortcutKeys??["shift","mod","S"],tooltip:s("editor.strike.tooltip")}})}}});exports.Strike=d;
|
package/lib/Strike.d.cts
CHANGED
|
@@ -120,15 +120,6 @@ declare module '@tiptap/core' {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
declare module '@tiptap/core' {
|
|
124
|
-
interface Commands<ReturnType> {
|
|
125
|
-
excalidraw: {
|
|
126
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
123
|
declare module '@tiptap/core' {
|
|
133
124
|
interface Commands<ReturnType> {
|
|
134
125
|
emoji: {
|
|
@@ -150,6 +141,15 @@ declare module '@tiptap/core' {
|
|
|
150
141
|
}
|
|
151
142
|
|
|
152
143
|
|
|
144
|
+
declare module '@tiptap/core' {
|
|
145
|
+
interface Commands<ReturnType> {
|
|
146
|
+
excalidraw: {
|
|
147
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
153
|
declare module '@tiptap/core' {
|
|
154
154
|
interface Commands<ReturnType> {
|
|
155
155
|
exportWord: {
|
|
@@ -259,9 +259,8 @@ declare module '@tiptap/core' {
|
|
|
259
259
|
|
|
260
260
|
declare module '@tiptap/core' {
|
|
261
261
|
interface Commands<ReturnType> {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
unsetLineHeight: () => ReturnType;
|
|
262
|
+
katex: {
|
|
263
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
265
264
|
};
|
|
266
265
|
}
|
|
267
266
|
}
|
|
@@ -269,8 +268,9 @@ declare module '@tiptap/core' {
|
|
|
269
268
|
|
|
270
269
|
declare module '@tiptap/core' {
|
|
271
270
|
interface Commands<ReturnType> {
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
lineHeight: {
|
|
272
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
273
|
+
unsetLineHeight: () => ReturnType;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -286,6 +286,20 @@ declare module '@tiptap/core' {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
|
|
289
|
+
declare module '@tiptap/core' {
|
|
290
|
+
interface Commands<ReturnType> {
|
|
291
|
+
columns: {
|
|
292
|
+
insertColumns: (attrs?: {
|
|
293
|
+
cols: number;
|
|
294
|
+
}) => ReturnType;
|
|
295
|
+
addColBefore: () => ReturnType;
|
|
296
|
+
addColAfter: () => ReturnType;
|
|
297
|
+
deleteCol: () => ReturnType;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
289
303
|
declare module '@tiptap/core' {
|
|
290
304
|
interface Commands<ReturnType> {
|
|
291
305
|
search: {
|
|
@@ -301,20 +315,6 @@ declare module '@tiptap/core' {
|
|
|
301
315
|
}
|
|
302
316
|
|
|
303
317
|
|
|
304
|
-
declare module '@tiptap/core' {
|
|
305
|
-
interface Commands<ReturnType> {
|
|
306
|
-
columns: {
|
|
307
|
-
insertColumns: (attrs?: {
|
|
308
|
-
cols: number;
|
|
309
|
-
}) => ReturnType;
|
|
310
|
-
addColBefore: () => ReturnType;
|
|
311
|
-
addColAfter: () => ReturnType;
|
|
312
|
-
deleteCol: () => ReturnType;
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
318
|
declare module '@tiptap/core' {
|
|
319
319
|
interface Commands<ReturnType> {
|
|
320
320
|
tableOfContents: {
|
package/lib/Strike.d.ts
CHANGED
|
@@ -120,15 +120,6 @@ declare module '@tiptap/core' {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
declare module '@tiptap/core' {
|
|
124
|
-
interface Commands<ReturnType> {
|
|
125
|
-
excalidraw: {
|
|
126
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
123
|
declare module '@tiptap/core' {
|
|
133
124
|
interface Commands<ReturnType> {
|
|
134
125
|
emoji: {
|
|
@@ -150,6 +141,15 @@ declare module '@tiptap/core' {
|
|
|
150
141
|
}
|
|
151
142
|
|
|
152
143
|
|
|
144
|
+
declare module '@tiptap/core' {
|
|
145
|
+
interface Commands<ReturnType> {
|
|
146
|
+
excalidraw: {
|
|
147
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
153
|
declare module '@tiptap/core' {
|
|
154
154
|
interface Commands<ReturnType> {
|
|
155
155
|
exportWord: {
|
|
@@ -259,9 +259,8 @@ declare module '@tiptap/core' {
|
|
|
259
259
|
|
|
260
260
|
declare module '@tiptap/core' {
|
|
261
261
|
interface Commands<ReturnType> {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
unsetLineHeight: () => ReturnType;
|
|
262
|
+
katex: {
|
|
263
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
265
264
|
};
|
|
266
265
|
}
|
|
267
266
|
}
|
|
@@ -269,8 +268,9 @@ declare module '@tiptap/core' {
|
|
|
269
268
|
|
|
270
269
|
declare module '@tiptap/core' {
|
|
271
270
|
interface Commands<ReturnType> {
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
lineHeight: {
|
|
272
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
273
|
+
unsetLineHeight: () => ReturnType;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -286,6 +286,20 @@ declare module '@tiptap/core' {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
|
|
289
|
+
declare module '@tiptap/core' {
|
|
290
|
+
interface Commands<ReturnType> {
|
|
291
|
+
columns: {
|
|
292
|
+
insertColumns: (attrs?: {
|
|
293
|
+
cols: number;
|
|
294
|
+
}) => ReturnType;
|
|
295
|
+
addColBefore: () => ReturnType;
|
|
296
|
+
addColAfter: () => ReturnType;
|
|
297
|
+
deleteCol: () => ReturnType;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
289
303
|
declare module '@tiptap/core' {
|
|
290
304
|
interface Commands<ReturnType> {
|
|
291
305
|
search: {
|
|
@@ -301,20 +315,6 @@ declare module '@tiptap/core' {
|
|
|
301
315
|
}
|
|
302
316
|
|
|
303
317
|
|
|
304
|
-
declare module '@tiptap/core' {
|
|
305
|
-
interface Commands<ReturnType> {
|
|
306
|
-
columns: {
|
|
307
|
-
insertColumns: (attrs?: {
|
|
308
|
-
cols: number;
|
|
309
|
-
}) => ReturnType;
|
|
310
|
-
addColBefore: () => ReturnType;
|
|
311
|
-
addColAfter: () => ReturnType;
|
|
312
|
-
deleteCol: () => ReturnType;
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
318
|
declare module '@tiptap/core' {
|
|
319
319
|
interface Commands<ReturnType> {
|
|
320
320
|
tableOfContents: {
|
package/lib/Strike.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as n, c as i, d as o, m as a } from "./index-DI9T3iLd.js";
|
|
2
|
-
import { A as u } from "./RichTextEditor-
|
|
2
|
+
import { A as u } from "./RichTextEditor-e6q30rbV.js";
|
|
3
3
|
const d = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, m = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, p = n.create({
|
|
4
4
|
name: "strike",
|
|
5
5
|
addOptions() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),n=require("./index-Z4b9rzn-.cjs"),e=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),n=require("./index-Z4b9rzn-.cjs"),e=require("./RichTextEditor-DsUcQSbm.cjs"),l=b.Extension.create({name:"subAndSuperScript",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:s,extension:o,t:p})=>{const c=o.options.subscript,r=o.options.superscript,u={component:e.ActionButton,componentProps:{action:()=>s.commands.toggleSubscript(),isActive:()=>s.isActive("subscript")||!1,disabled:!s.can().toggleSubscript(),icon:"Subscript",tooltip:p("editor.subscript.tooltip")}},a={component:e.ActionButton,componentProps:{action:()=>s.commands.toggleSuperscript(),isActive:()=>s.isActive("superscript")||!1,disabled:!s.can().toggleSuperscript(),icon:"Superscript",tooltip:p("editor.superscript.tooltip")}},i=[];return c!==!1&&i.push(u),r!==!1&&i.push(a),i}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(n.Subscript.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(n.Superscript.configure(this.options.superscript)),t}});exports.SubAndSuperScript=l;
|
|
@@ -135,15 +135,6 @@ declare module '@tiptap/core' {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
declare module '@tiptap/core' {
|
|
139
|
-
interface Commands<ReturnType> {
|
|
140
|
-
excalidraw: {
|
|
141
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
138
|
declare module '@tiptap/core' {
|
|
148
139
|
interface Commands<ReturnType> {
|
|
149
140
|
emoji: {
|
|
@@ -165,6 +156,15 @@ declare module '@tiptap/core' {
|
|
|
165
156
|
}
|
|
166
157
|
|
|
167
158
|
|
|
159
|
+
declare module '@tiptap/core' {
|
|
160
|
+
interface Commands<ReturnType> {
|
|
161
|
+
excalidraw: {
|
|
162
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
168
|
declare module '@tiptap/core' {
|
|
169
169
|
interface Commands<ReturnType> {
|
|
170
170
|
exportWord: {
|
|
@@ -274,9 +274,8 @@ declare module '@tiptap/core' {
|
|
|
274
274
|
|
|
275
275
|
declare module '@tiptap/core' {
|
|
276
276
|
interface Commands<ReturnType> {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
unsetLineHeight: () => ReturnType;
|
|
277
|
+
katex: {
|
|
278
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
280
279
|
};
|
|
281
280
|
}
|
|
282
281
|
}
|
|
@@ -284,8 +283,9 @@ declare module '@tiptap/core' {
|
|
|
284
283
|
|
|
285
284
|
declare module '@tiptap/core' {
|
|
286
285
|
interface Commands<ReturnType> {
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
lineHeight: {
|
|
287
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
288
|
+
unsetLineHeight: () => ReturnType;
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
}
|
|
@@ -301,6 +301,20 @@ declare module '@tiptap/core' {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
|
|
304
|
+
declare module '@tiptap/core' {
|
|
305
|
+
interface Commands<ReturnType> {
|
|
306
|
+
columns: {
|
|
307
|
+
insertColumns: (attrs?: {
|
|
308
|
+
cols: number;
|
|
309
|
+
}) => ReturnType;
|
|
310
|
+
addColBefore: () => ReturnType;
|
|
311
|
+
addColAfter: () => ReturnType;
|
|
312
|
+
deleteCol: () => ReturnType;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
304
318
|
declare module '@tiptap/core' {
|
|
305
319
|
interface Commands<ReturnType> {
|
|
306
320
|
search: {
|
|
@@ -316,20 +330,6 @@ declare module '@tiptap/core' {
|
|
|
316
330
|
}
|
|
317
331
|
|
|
318
332
|
|
|
319
|
-
declare module '@tiptap/core' {
|
|
320
|
-
interface Commands<ReturnType> {
|
|
321
|
-
columns: {
|
|
322
|
-
insertColumns: (attrs?: {
|
|
323
|
-
cols: number;
|
|
324
|
-
}) => ReturnType;
|
|
325
|
-
addColBefore: () => ReturnType;
|
|
326
|
-
addColAfter: () => ReturnType;
|
|
327
|
-
deleteCol: () => ReturnType;
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
333
|
declare module '@tiptap/core' {
|
|
334
334
|
interface Commands<ReturnType> {
|
|
335
335
|
tableOfContents: {
|
|
@@ -135,15 +135,6 @@ declare module '@tiptap/core' {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
declare module '@tiptap/core' {
|
|
139
|
-
interface Commands<ReturnType> {
|
|
140
|
-
excalidraw: {
|
|
141
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
138
|
declare module '@tiptap/core' {
|
|
148
139
|
interface Commands<ReturnType> {
|
|
149
140
|
emoji: {
|
|
@@ -165,6 +156,15 @@ declare module '@tiptap/core' {
|
|
|
165
156
|
}
|
|
166
157
|
|
|
167
158
|
|
|
159
|
+
declare module '@tiptap/core' {
|
|
160
|
+
interface Commands<ReturnType> {
|
|
161
|
+
excalidraw: {
|
|
162
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
168
|
declare module '@tiptap/core' {
|
|
169
169
|
interface Commands<ReturnType> {
|
|
170
170
|
exportWord: {
|
|
@@ -274,9 +274,8 @@ declare module '@tiptap/core' {
|
|
|
274
274
|
|
|
275
275
|
declare module '@tiptap/core' {
|
|
276
276
|
interface Commands<ReturnType> {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
unsetLineHeight: () => ReturnType;
|
|
277
|
+
katex: {
|
|
278
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
280
279
|
};
|
|
281
280
|
}
|
|
282
281
|
}
|
|
@@ -284,8 +283,9 @@ declare module '@tiptap/core' {
|
|
|
284
283
|
|
|
285
284
|
declare module '@tiptap/core' {
|
|
286
285
|
interface Commands<ReturnType> {
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
lineHeight: {
|
|
287
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
288
|
+
unsetLineHeight: () => ReturnType;
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
}
|
|
@@ -301,6 +301,20 @@ declare module '@tiptap/core' {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
|
|
304
|
+
declare module '@tiptap/core' {
|
|
305
|
+
interface Commands<ReturnType> {
|
|
306
|
+
columns: {
|
|
307
|
+
insertColumns: (attrs?: {
|
|
308
|
+
cols: number;
|
|
309
|
+
}) => ReturnType;
|
|
310
|
+
addColBefore: () => ReturnType;
|
|
311
|
+
addColAfter: () => ReturnType;
|
|
312
|
+
deleteCol: () => ReturnType;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
304
318
|
declare module '@tiptap/core' {
|
|
305
319
|
interface Commands<ReturnType> {
|
|
306
320
|
search: {
|
|
@@ -316,20 +330,6 @@ declare module '@tiptap/core' {
|
|
|
316
330
|
}
|
|
317
331
|
|
|
318
332
|
|
|
319
|
-
declare module '@tiptap/core' {
|
|
320
|
-
interface Commands<ReturnType> {
|
|
321
|
-
columns: {
|
|
322
|
-
insertColumns: (attrs?: {
|
|
323
|
-
cols: number;
|
|
324
|
-
}) => ReturnType;
|
|
325
|
-
addColBefore: () => ReturnType;
|
|
326
|
-
addColAfter: () => ReturnType;
|
|
327
|
-
deleteCol: () => ReturnType;
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
333
|
declare module '@tiptap/core' {
|
|
334
334
|
interface Commands<ReturnType> {
|
|
335
335
|
tableOfContents: {
|
package/lib/SubAndSuperScript.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as a } from "./index-DI9T3iLd.js";
|
|
2
2
|
import { S as b, a as l } from "./index-LUL9mqY4.js";
|
|
3
|
-
import { A as r } from "./RichTextEditor-
|
|
3
|
+
import { A as r } from "./RichTextEditor-e6q30rbV.js";
|
|
4
4
|
const g = /* @__PURE__ */ a.create({
|
|
5
5
|
name: "subAndSuperScript",
|
|
6
6
|
addOptions() {
|