reactjs-tiptap-editor 0.3.23 → 0.3.24
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-DwzYAKDg.js → ActionMenuButton-BW1lNB_I.js} +1 -1
- package/lib/{ActionMenuButton-5AJJxQy1.cjs → ActionMenuButton-BqO6QTnX.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +16 -16
- package/lib/Attachment.d.ts +16 -16
- package/lib/Attachment.js +2 -2
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +16 -16
- package/lib/Blockquote.d.ts +16 -16
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +16 -16
- package/lib/Bold.d.ts +16 -16
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +16 -16
- package/lib/BulletList.d.ts +16 -16
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +16 -16
- package/lib/Clear.d.ts +16 -16
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +16 -16
- package/lib/Code.d.ts +16 -16
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +16 -16
- package/lib/CodeBlock.d.ts +16 -16
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +16 -16
- package/lib/CodeView.d.ts +16 -16
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +16 -16
- package/lib/Color.d.ts +16 -16
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +16 -16
- package/lib/Document.d.ts +16 -16
- package/lib/{Drawer-CCzPaigS.cjs → Drawer-B1rmIQfS.cjs} +1 -1
- package/lib/{Drawer-Dc03j6W1.js → Drawer-DEqRsjHw.js} +10 -10
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +16 -16
- package/lib/Drawer.d.ts +16 -16
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +16 -16
- package/lib/Emoji.d.ts +16 -16
- package/lib/Emoji.js +2 -2
- package/lib/{Excalidraw-yQ7O39ws.js → Excalidraw-D2y-x-OZ.js} +2 -2
- package/lib/{Excalidraw-Bxo4S3ET.cjs → Excalidraw-Qr5vHe9J.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +16 -16
- package/lib/Excalidraw.d.ts +16 -16
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +16 -16
- package/lib/ExportPdf.d.ts +16 -16
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +16 -16
- package/lib/ExportWord.d.ts +16 -16
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +16 -16
- package/lib/FontFamily.d.ts +16 -16
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +16 -16
- package/lib/FontSize.d.ts +16 -16
- package/lib/FontSize.js +3 -3
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +16 -16
- package/lib/FormatPainter.d.ts +16 -16
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +16 -16
- package/lib/Heading.d.ts +16 -16
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +16 -16
- package/lib/Highlight.d.ts +16 -16
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +16 -16
- package/lib/History.d.ts +16 -16
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +16 -16
- package/lib/HorizontalRule.d.ts +16 -16
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +16 -16
- package/lib/Iframe.d.ts +16 -16
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +16 -16
- package/lib/Image.d.ts +16 -16
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +16 -16
- package/lib/ImageGif.d.ts +16 -16
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +16 -16
- package/lib/ImportWord.d.ts +16 -16
- package/lib/ImportWord.js +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +16 -16
- package/lib/Indent.d.ts +16 -16
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +16 -16
- package/lib/Italic.d.ts +16 -16
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +16 -16
- package/lib/Katex.d.ts +16 -16
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +16 -16
- package/lib/LineHeight.d.ts +16 -16
- package/lib/LineHeight.js +6 -6
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +16 -16
- package/lib/Link.d.ts +16 -16
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +16 -16
- package/lib/ListItem.d.ts +16 -16
- package/lib/Mention.d.cts +16 -16
- package/lib/Mention.d.ts +16 -16
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +16 -16
- package/lib/Mermaid.d.ts +16 -16
- package/lib/Mermaid.js +14 -14
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +16 -16
- package/lib/MoreMark.d.ts +16 -16
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +16 -16
- package/lib/MultiColumn.d.ts +16 -16
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +16 -16
- package/lib/OrderedList.d.ts +16 -16
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-BnC1uaUo.cjs → RichTextEditor-CSA367l8.cjs} +1 -1
- package/lib/{RichTextEditor-CqgbZwS5.js → RichTextEditor-CrDGx-K7.js} +1 -1
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +16 -16
- package/lib/SearchAndReplace.d.ts +16 -16
- package/lib/SearchAndReplace.js +2 -2
- package/lib/Selection.d.cts +16 -16
- package/lib/Selection.d.ts +16 -16
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +16 -16
- package/lib/SlashCommand.d.ts +16 -16
- package/lib/SlashCommand.js +2 -2
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +16 -16
- package/lib/Strike.d.ts +16 -16
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +16 -16
- package/lib/SubAndSuperScript.d.ts +16 -16
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +16 -16
- package/lib/Table.d.ts +16 -16
- package/lib/Table.js +531 -531
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +16 -16
- package/lib/TableOfContent.d.ts +16 -16
- package/lib/TableOfContent.js +2 -2
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +16 -16
- package/lib/TaskList.d.ts +16 -16
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +16 -16
- package/lib/TextAlign.d.ts +16 -16
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +16 -16
- package/lib/TextBubble.d.ts +16 -16
- package/lib/TextBubble.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +16 -16
- package/lib/TextDirection.d.ts +16 -16
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +16 -16
- package/lib/TextUnderline.d.ts +16 -16
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +16 -16
- package/lib/TrailingNode.d.ts +16 -16
- package/lib/{Twitter-2BEmpZYn.cjs → Twitter-BRF2Ehp3.cjs} +1 -1
- package/lib/{Twitter-DjzxXZcS.js → Twitter-D-kqw1ZB.js} +2 -2
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +16 -16
- package/lib/Twitter.d.ts +16 -16
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +16 -16
- package/lib/Video.d.ts +16 -16
- package/lib/Video.js +2 -2
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +16 -16
- package/lib/bubble-extra.d.ts +16 -16
- package/lib/bubble-extra.js +6 -6
- package/lib/{index-Tj3Ci7xM.js → index-CsK90iVd.js} +306 -128
- package/lib/index-D_A0TBRA.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +16 -16
- package/lib/index.d.ts +16 -16
- package/lib/index.js +3 -3
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +195 -17
- package/lib/locale-bundle.d.ts +195 -17
- package/lib/locale-bundle.js +2 -1
- package/lib/{textarea-ClmQTGYC.js → textarea-06Uv95yx.js} +1 -1
- package/lib/{textarea-DsAuYgt7.cjs → textarea-QE8jlGEs.cjs} +1 -1
- package/package.json +1 -1
- package/lib/index-C19MB4Al.cjs +0 -1
package/lib/MultiColumn.d.ts
CHANGED
|
@@ -54,11 +54,8 @@ declare module '@tiptap/core' {
|
|
|
54
54
|
|
|
55
55
|
declare module '@tiptap/core' {
|
|
56
56
|
interface Commands<ReturnType> {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
name: string;
|
|
60
|
-
emoji: string;
|
|
61
|
-
}) => ReturnType;
|
|
57
|
+
excalidraw: {
|
|
58
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
62
59
|
};
|
|
63
60
|
}
|
|
64
61
|
}
|
|
@@ -66,8 +63,11 @@ declare module '@tiptap/core' {
|
|
|
66
63
|
|
|
67
64
|
declare module '@tiptap/core' {
|
|
68
65
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
emoji: {
|
|
67
|
+
setEmoji: (emoji: {
|
|
68
|
+
name: string;
|
|
69
|
+
emoji: string;
|
|
70
|
+
}) => ReturnType;
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -164,6 +164,15 @@ declare module '@tiptap/core' {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
|
|
167
|
+
declare module '@tiptap/core' {
|
|
168
|
+
interface Commands<ReturnType> {
|
|
169
|
+
katex: {
|
|
170
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
167
176
|
declare module '@tiptap/core' {
|
|
168
177
|
interface Commands<ReturnType> {
|
|
169
178
|
indent: {
|
|
@@ -180,15 +189,6 @@ declare module '@tiptap/core' {
|
|
|
180
189
|
}
|
|
181
190
|
|
|
182
191
|
|
|
183
|
-
declare module '@tiptap/core' {
|
|
184
|
-
interface Commands<ReturnType> {
|
|
185
|
-
katex: {
|
|
186
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
192
|
declare module '@tiptap/core' {
|
|
193
193
|
interface Commands<ReturnType> {
|
|
194
194
|
lineHeight: {
|
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"),n=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),n=require("./RichTextEditor-CSA367l8.cjs"),a="listItem",r="textStyle",o=/^(\d+)\.\s$/,d=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(a,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]}}),u=d.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:s})=>({component:n.ActionButton,componentProps:{action:()=>e.commands.toggleOrderedList(),isActive:()=>e.isActive("orderedList")||!1,disabled:!1,icon:"ListOrdered",shortcutKeys:["mod","shift","7"],tooltip:s("editor.orderedlist.tooltip")}})}}});exports.OrderedList=u;
|
package/lib/OrderedList.d.cts
CHANGED
|
@@ -120,11 +120,8 @@ declare module '@tiptap/core' {
|
|
|
120
120
|
|
|
121
121
|
declare module '@tiptap/core' {
|
|
122
122
|
interface Commands<ReturnType> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
name: string;
|
|
126
|
-
emoji: string;
|
|
127
|
-
}) => ReturnType;
|
|
123
|
+
excalidraw: {
|
|
124
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
128
125
|
};
|
|
129
126
|
}
|
|
130
127
|
}
|
|
@@ -132,8 +129,11 @@ declare module '@tiptap/core' {
|
|
|
132
129
|
|
|
133
130
|
declare module '@tiptap/core' {
|
|
134
131
|
interface Commands<ReturnType> {
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
emoji: {
|
|
133
|
+
setEmoji: (emoji: {
|
|
134
|
+
name: string;
|
|
135
|
+
emoji: string;
|
|
136
|
+
}) => ReturnType;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -230,6 +230,15 @@ declare module '@tiptap/core' {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
|
|
233
|
+
declare module '@tiptap/core' {
|
|
234
|
+
interface Commands<ReturnType> {
|
|
235
|
+
katex: {
|
|
236
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
233
242
|
declare module '@tiptap/core' {
|
|
234
243
|
interface Commands<ReturnType> {
|
|
235
244
|
indent: {
|
|
@@ -246,15 +255,6 @@ declare module '@tiptap/core' {
|
|
|
246
255
|
}
|
|
247
256
|
|
|
248
257
|
|
|
249
|
-
declare module '@tiptap/core' {
|
|
250
|
-
interface Commands<ReturnType> {
|
|
251
|
-
katex: {
|
|
252
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
258
|
declare module '@tiptap/core' {
|
|
259
259
|
interface Commands<ReturnType> {
|
|
260
260
|
lineHeight: {
|
package/lib/OrderedList.d.ts
CHANGED
|
@@ -120,11 +120,8 @@ declare module '@tiptap/core' {
|
|
|
120
120
|
|
|
121
121
|
declare module '@tiptap/core' {
|
|
122
122
|
interface Commands<ReturnType> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
name: string;
|
|
126
|
-
emoji: string;
|
|
127
|
-
}) => ReturnType;
|
|
123
|
+
excalidraw: {
|
|
124
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
128
125
|
};
|
|
129
126
|
}
|
|
130
127
|
}
|
|
@@ -132,8 +129,11 @@ declare module '@tiptap/core' {
|
|
|
132
129
|
|
|
133
130
|
declare module '@tiptap/core' {
|
|
134
131
|
interface Commands<ReturnType> {
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
emoji: {
|
|
133
|
+
setEmoji: (emoji: {
|
|
134
|
+
name: string;
|
|
135
|
+
emoji: string;
|
|
136
|
+
}) => ReturnType;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -230,6 +230,15 @@ declare module '@tiptap/core' {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
|
|
233
|
+
declare module '@tiptap/core' {
|
|
234
|
+
interface Commands<ReturnType> {
|
|
235
|
+
katex: {
|
|
236
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
233
242
|
declare module '@tiptap/core' {
|
|
234
243
|
interface Commands<ReturnType> {
|
|
235
244
|
indent: {
|
|
@@ -246,15 +255,6 @@ declare module '@tiptap/core' {
|
|
|
246
255
|
}
|
|
247
256
|
|
|
248
257
|
|
|
249
|
-
declare module '@tiptap/core' {
|
|
250
|
-
interface Commands<ReturnType> {
|
|
251
|
-
katex: {
|
|
252
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
258
|
declare module '@tiptap/core' {
|
|
259
259
|
interface Commands<ReturnType> {
|
|
260
260
|
lineHeight: {
|
package/lib/OrderedList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as a, w as i, m as r } from "./index-DI9T3iLd.js";
|
|
2
|
-
import { A as p } from "./RichTextEditor-
|
|
2
|
+
import { A as p } from "./RichTextEditor-CrDGx-K7.js";
|
|
3
3
|
const d = "listItem", o = "textStyle", n = /^(\d+)\.\s$/, u = a.create({
|
|
4
4
|
name: "orderedList",
|
|
5
5
|
addOptions() {
|