reactjs-tiptap-editor 0.3.28 → 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-D0hFczCn.js → ActionMenuButton-B6fitGKu.js} +1 -1
- package/lib/{ActionMenuButton-C20molC9.cjs → ActionMenuButton-wiDnIxE2.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +41 -41
- package/lib/Attachment.d.ts +41 -41
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +41 -41
- package/lib/Blockquote.d.ts +41 -41
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +41 -41
- package/lib/Bold.d.ts +41 -41
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +41 -41
- package/lib/BulletList.d.ts +41 -41
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +41 -41
- package/lib/Clear.d.ts +41 -41
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +41 -41
- package/lib/Code.d.ts +41 -41
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +41 -41
- package/lib/CodeBlock.d.ts +41 -41
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +41 -41
- package/lib/CodeView.d.ts +41 -41
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +41 -41
- package/lib/Color.d.ts +41 -41
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +41 -41
- package/lib/Document.d.ts +41 -41
- package/lib/{Drawer-B96jQIQU.js → Drawer-BKTU9CpU.js} +1 -1
- package/lib/{Drawer-0kBt3GVL.cjs → Drawer-CmoEF-Zg.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +41 -41
- package/lib/Drawer.d.ts +41 -41
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +41 -41
- package/lib/Emoji.d.ts +41 -41
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CM74U5tG.js} +1 -1
- package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-DAPP9qgY.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +41 -41
- package/lib/Excalidraw.d.ts +41 -41
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +41 -41
- package/lib/ExportPdf.d.ts +41 -41
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +41 -41
- package/lib/ExportWord.d.ts +41 -41
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +41 -41
- package/lib/FontFamily.d.ts +41 -41
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +41 -41
- package/lib/FontSize.d.ts +41 -41
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +41 -41
- package/lib/FormatPainter.d.ts +41 -41
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +41 -41
- package/lib/Heading.d.ts +41 -41
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +41 -41
- package/lib/Highlight.d.ts +41 -41
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +41 -41
- package/lib/History.d.ts +41 -41
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +41 -41
- package/lib/HorizontalRule.d.ts +41 -41
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +41 -41
- package/lib/Iframe.d.ts +41 -41
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +41 -41
- package/lib/Image.d.ts +41 -41
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +44 -43
- package/lib/ImageGif.d.ts +44 -43
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +41 -41
- package/lib/ImportWord.d.ts +41 -41
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +41 -41
- package/lib/Indent.d.ts +41 -41
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +41 -41
- package/lib/Italic.d.ts +41 -41
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +41 -41
- package/lib/Katex.d.ts +41 -41
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +41 -41
- package/lib/LineHeight.d.ts +41 -41
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +41 -41
- package/lib/Link.d.ts +41 -41
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +41 -41
- package/lib/ListItem.d.ts +41 -41
- package/lib/Mention.d.cts +41 -41
- package/lib/Mention.d.ts +41 -41
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +41 -41
- package/lib/Mermaid.d.ts +41 -41
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +41 -41
- package/lib/MoreMark.d.ts +41 -41
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +41 -41
- package/lib/MultiColumn.d.ts +41 -41
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +41 -41
- package/lib/OrderedList.d.ts +41 -41
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-BQN2eLD_.js} +997 -943
- package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-C8Sm1E6J.cjs} +5 -5
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +41 -41
- package/lib/SearchAndReplace.d.ts +41 -41
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +41 -41
- package/lib/Selection.d.ts +41 -41
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +41 -41
- package/lib/SlashCommand.d.ts +41 -41
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +41 -41
- package/lib/Strike.d.ts +41 -41
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +41 -41
- package/lib/SubAndSuperScript.d.ts +41 -41
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +41 -41
- package/lib/Table.d.ts +41 -41
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +41 -41
- package/lib/TableOfContent.d.ts +41 -41
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +41 -41
- package/lib/TaskList.d.ts +41 -41
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +41 -41
- package/lib/TextAlign.d.ts +41 -41
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +41 -41
- package/lib/TextBubble.d.ts +41 -41
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +41 -41
- package/lib/TextDirection.d.ts +41 -41
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +41 -41
- package/lib/TextUnderline.d.ts +41 -41
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +41 -41
- package/lib/TrailingNode.d.ts +41 -41
- package/lib/{Twitter-Dj49i3B9.cjs → Twitter-CL2pu4QM.cjs} +1 -1
- package/lib/{Twitter-CCf1aM0f.js → Twitter-Dg6WWauX.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +41 -41
- package/lib/Twitter.d.ts +41 -41
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +41 -41
- package/lib/Video.d.ts +41 -41
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +41 -41
- package/lib/bubble-extra.d.ts +41 -41
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +41 -41
- package/lib/index.d.ts +41 -41
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +41 -41
- package/lib/locale-bundle.d.ts +41 -41
- package/lib/style.css +1 -1
- package/lib/{textarea-nr3UZ7Wg.js → textarea-BglwYF6b.js} +1 -1
- package/lib/{textarea-DhlS0JCr.cjs → textarea-D5WVZMgt.cjs} +1 -1
- package/package.json +1 -1
package/lib/TaskList.d.ts
CHANGED
|
@@ -128,8 +128,11 @@ declare module '@tiptap/core' {
|
|
|
128
128
|
|
|
129
129
|
declare module '@tiptap/core' {
|
|
130
130
|
interface Commands<ReturnType> {
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
emoji: {
|
|
132
|
+
setEmoji: (emoji: {
|
|
133
|
+
name: string;
|
|
134
|
+
emoji: string;
|
|
135
|
+
}) => ReturnType;
|
|
133
136
|
};
|
|
134
137
|
}
|
|
135
138
|
}
|
|
@@ -137,11 +140,8 @@ declare module '@tiptap/core' {
|
|
|
137
140
|
|
|
138
141
|
declare module '@tiptap/core' {
|
|
139
142
|
interface Commands<ReturnType> {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
name: string;
|
|
143
|
-
emoji: string;
|
|
144
|
-
}) => ReturnType;
|
|
143
|
+
excalidraw: {
|
|
144
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -192,21 +192,6 @@ declare module '@tiptap/core' {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
|
|
195
|
-
declare module '@tiptap/core' {
|
|
196
|
-
interface Commands<ReturnType> {
|
|
197
|
-
iframe: {
|
|
198
|
-
/**
|
|
199
|
-
* Add an iframe
|
|
200
|
-
*/
|
|
201
|
-
setIframe: (options: {
|
|
202
|
-
src: string;
|
|
203
|
-
service: string;
|
|
204
|
-
}) => ReturnType;
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
195
|
declare module '@tiptap/core' {
|
|
211
196
|
interface Commands<ReturnType> {
|
|
212
197
|
imageUpload: {
|
|
@@ -227,6 +212,21 @@ declare module '@tiptap/core' {
|
|
|
227
212
|
}
|
|
228
213
|
|
|
229
214
|
|
|
215
|
+
declare module '@tiptap/core' {
|
|
216
|
+
interface Commands<ReturnType> {
|
|
217
|
+
iframe: {
|
|
218
|
+
/**
|
|
219
|
+
* Add an iframe
|
|
220
|
+
*/
|
|
221
|
+
setIframe: (options: {
|
|
222
|
+
src: string;
|
|
223
|
+
service: string;
|
|
224
|
+
}) => ReturnType;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
230
|
declare module '@tiptap/core' {
|
|
231
231
|
interface Commands<ReturnType> {
|
|
232
232
|
imageGifUpload: {
|
|
@@ -265,9 +265,8 @@ declare module '@tiptap/core' {
|
|
|
265
265
|
|
|
266
266
|
declare module '@tiptap/core' {
|
|
267
267
|
interface Commands<ReturnType> {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
unsetLineHeight: () => ReturnType;
|
|
268
|
+
katex: {
|
|
269
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
271
270
|
};
|
|
272
271
|
}
|
|
273
272
|
}
|
|
@@ -275,8 +274,9 @@ declare module '@tiptap/core' {
|
|
|
275
274
|
|
|
276
275
|
declare module '@tiptap/core' {
|
|
277
276
|
interface Commands<ReturnType> {
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
lineHeight: {
|
|
278
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
279
|
+
unsetLineHeight: () => ReturnType;
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
}
|
|
@@ -292,6 +292,20 @@ declare module '@tiptap/core' {
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
|
|
295
|
+
declare module '@tiptap/core' {
|
|
296
|
+
interface Commands<ReturnType> {
|
|
297
|
+
columns: {
|
|
298
|
+
insertColumns: (attrs?: {
|
|
299
|
+
cols: number;
|
|
300
|
+
}) => ReturnType;
|
|
301
|
+
addColBefore: () => ReturnType;
|
|
302
|
+
addColAfter: () => ReturnType;
|
|
303
|
+
deleteCol: () => ReturnType;
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
|
|
295
309
|
declare module '@tiptap/core' {
|
|
296
310
|
interface Commands<ReturnType> {
|
|
297
311
|
search: {
|
|
@@ -307,20 +321,6 @@ declare module '@tiptap/core' {
|
|
|
307
321
|
}
|
|
308
322
|
|
|
309
323
|
|
|
310
|
-
declare module '@tiptap/core' {
|
|
311
|
-
interface Commands<ReturnType> {
|
|
312
|
-
columns: {
|
|
313
|
-
insertColumns: (attrs?: {
|
|
314
|
-
cols: number;
|
|
315
|
-
}) => ReturnType;
|
|
316
|
-
addColBefore: () => ReturnType;
|
|
317
|
-
addColAfter: () => ReturnType;
|
|
318
|
-
deleteCol: () => ReturnType;
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
324
|
declare module '@tiptap/core' {
|
|
325
325
|
interface Commands<ReturnType> {
|
|
326
326
|
tableOfContents: {
|
package/lib/TaskList.js
CHANGED
package/lib/TextAlign.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-ByRfqzMr.cjs"),s=require("react/jsx-runtime"),M=require("react"),l=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-ByRfqzMr.cjs"),s=require("react/jsx-runtime"),M=require("react"),l=require("./RichTextEditor-C8Sm1E6J.cjs"),S=v.Extension.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}});function C(t){var n;const e=M.useMemo(()=>{var o;const i=(o=t==null?void 0:t.items)==null?void 0:o.find(r=>r.isActive());return i&&!i.default?{...i,icon:i.icon?i.icon:t.icon}:{title:t==null?void 0:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return s.jsxs(l.Popover,{modal:!0,children:[s.jsx(l.PopoverTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:s.jsx(l.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:s.jsx(l.IconComponent,{className:"richtext-ml-1 richtext-size-3 richtext-text-zinc-500",name:"MenuDown"})})}),s.jsx(l.PopoverContent,{align:"start",className:"richtext-flex richtext-w-full richtext-min-w-4 richtext-flex-row richtext-gap-1 !richtext-p-[4px]",side:"bottom",children:(n=t==null?void 0:t.items)==null?void 0:n.map((i,h)=>{var o,r;return s.jsxs(l.Tooltip,{children:[s.jsx(l.TooltipTrigger,{asChild:!0,children:s.jsx(l.Toggle,{className:"richtext-size-7 richtext-p-1","data-state":e.title===i.title?"on":"off",onClick:i==null?void 0:i.action,pressed:e.title===i.title,size:"sm",children:(i==null?void 0:i.icon)&&s.jsx(l.IconComponent,{name:i.icon})})}),s.jsxs(l.TooltipContent,{className:"richtext-flex richtext-flex-col richtext-items-center",children:[s.jsx("span",{children:i.title}),!!((o=i.shortcutKeys)!=null&&o.length)&&s.jsx("span",{children:(r=i.shortcutKeys)==null?void 0:r.map(a=>l.getShortcutKey(a)).join(" ")})]})]},`text-align-${h}`)})})]})}const K=S.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),types:["heading","paragraph","list_item","title"],button({editor:e,extension:n,t:i}){var g,x,f,A,m;const h=((g=n.options)==null?void 0:g.alignments)||[],o={left:((x=n.options.shortcutKeys)==null?void 0:x[0])??["mod","Shift","L"],center:((f=n.options.shortcutKeys)==null?void 0:f[1])??["mod","Shift","E"],right:((A=n.options.shortcutKeys)==null?void 0:A[2])??["mod","Shift","R"],justify:((m=n.options.shortcutKeys)==null?void 0:m[3])??["mod","Shift","J"]},r={left:"AlignLeft",center:"AlignCenter",right:"AlignRight",justify:"AlignJustify"},a=h.map(c=>{var y,u,T;return{title:i(`editor.textalign.${c}.tooltip`),icon:r[c],shortcutKeys:o[c],isActive:()=>e.isActive({textAlign:c})||!1,action:()=>{var d,j;return(j=(d=e.commands)==null?void 0:d.setTextAlign)==null?void 0:j.call(d,c)},disabled:!((T=(u=(y=e==null?void 0:e.can)==null?void 0:y.call(e))==null?void 0:u.setTextAlign)!=null&&T.call(u,c))}}),b=a.filter(c=>c.disabled).length===a.length;return{component:C,componentProps:{icon:"AlignJustify",tooltip:i("editor.textalign.tooltip"),disabled:b,items:a}}}}}});exports.TextAlign=K;
|
package/lib/TextAlign.d.cts
CHANGED
|
@@ -132,8 +132,11 @@ declare module '@tiptap/core' {
|
|
|
132
132
|
|
|
133
133
|
declare module '@tiptap/core' {
|
|
134
134
|
interface Commands<ReturnType> {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
emoji: {
|
|
136
|
+
setEmoji: (emoji: {
|
|
137
|
+
name: string;
|
|
138
|
+
emoji: string;
|
|
139
|
+
}) => ReturnType;
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
}
|
|
@@ -141,11 +144,8 @@ declare module '@tiptap/core' {
|
|
|
141
144
|
|
|
142
145
|
declare module '@tiptap/core' {
|
|
143
146
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
name: string;
|
|
147
|
-
emoji: string;
|
|
148
|
-
}) => ReturnType;
|
|
147
|
+
excalidraw: {
|
|
148
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -196,21 +196,6 @@ declare module '@tiptap/core' {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
declare module '@tiptap/core' {
|
|
200
|
-
interface Commands<ReturnType> {
|
|
201
|
-
iframe: {
|
|
202
|
-
/**
|
|
203
|
-
* Add an iframe
|
|
204
|
-
*/
|
|
205
|
-
setIframe: (options: {
|
|
206
|
-
src: string;
|
|
207
|
-
service: string;
|
|
208
|
-
}) => ReturnType;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
199
|
declare module '@tiptap/core' {
|
|
215
200
|
interface Commands<ReturnType> {
|
|
216
201
|
imageUpload: {
|
|
@@ -231,6 +216,21 @@ declare module '@tiptap/core' {
|
|
|
231
216
|
}
|
|
232
217
|
|
|
233
218
|
|
|
219
|
+
declare module '@tiptap/core' {
|
|
220
|
+
interface Commands<ReturnType> {
|
|
221
|
+
iframe: {
|
|
222
|
+
/**
|
|
223
|
+
* Add an iframe
|
|
224
|
+
*/
|
|
225
|
+
setIframe: (options: {
|
|
226
|
+
src: string;
|
|
227
|
+
service: string;
|
|
228
|
+
}) => ReturnType;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
234
|
declare module '@tiptap/core' {
|
|
235
235
|
interface Commands<ReturnType> {
|
|
236
236
|
imageGifUpload: {
|
|
@@ -269,9 +269,8 @@ declare module '@tiptap/core' {
|
|
|
269
269
|
|
|
270
270
|
declare module '@tiptap/core' {
|
|
271
271
|
interface Commands<ReturnType> {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
unsetLineHeight: () => ReturnType;
|
|
272
|
+
katex: {
|
|
273
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
275
274
|
};
|
|
276
275
|
}
|
|
277
276
|
}
|
|
@@ -279,8 +278,9 @@ declare module '@tiptap/core' {
|
|
|
279
278
|
|
|
280
279
|
declare module '@tiptap/core' {
|
|
281
280
|
interface Commands<ReturnType> {
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
lineHeight: {
|
|
282
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
283
|
+
unsetLineHeight: () => ReturnType;
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -296,6 +296,20 @@ declare module '@tiptap/core' {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
declare module '@tiptap/core' {
|
|
300
|
+
interface Commands<ReturnType> {
|
|
301
|
+
columns: {
|
|
302
|
+
insertColumns: (attrs?: {
|
|
303
|
+
cols: number;
|
|
304
|
+
}) => ReturnType;
|
|
305
|
+
addColBefore: () => ReturnType;
|
|
306
|
+
addColAfter: () => ReturnType;
|
|
307
|
+
deleteCol: () => ReturnType;
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
|
|
299
313
|
declare module '@tiptap/core' {
|
|
300
314
|
interface Commands<ReturnType> {
|
|
301
315
|
search: {
|
|
@@ -311,20 +325,6 @@ declare module '@tiptap/core' {
|
|
|
311
325
|
}
|
|
312
326
|
|
|
313
327
|
|
|
314
|
-
declare module '@tiptap/core' {
|
|
315
|
-
interface Commands<ReturnType> {
|
|
316
|
-
columns: {
|
|
317
|
-
insertColumns: (attrs?: {
|
|
318
|
-
cols: number;
|
|
319
|
-
}) => ReturnType;
|
|
320
|
-
addColBefore: () => ReturnType;
|
|
321
|
-
addColAfter: () => ReturnType;
|
|
322
|
-
deleteCol: () => ReturnType;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
328
|
declare module '@tiptap/core' {
|
|
329
329
|
interface Commands<ReturnType> {
|
|
330
330
|
tableOfContents: {
|
package/lib/TextAlign.d.ts
CHANGED
|
@@ -132,8 +132,11 @@ declare module '@tiptap/core' {
|
|
|
132
132
|
|
|
133
133
|
declare module '@tiptap/core' {
|
|
134
134
|
interface Commands<ReturnType> {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
emoji: {
|
|
136
|
+
setEmoji: (emoji: {
|
|
137
|
+
name: string;
|
|
138
|
+
emoji: string;
|
|
139
|
+
}) => ReturnType;
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
}
|
|
@@ -141,11 +144,8 @@ declare module '@tiptap/core' {
|
|
|
141
144
|
|
|
142
145
|
declare module '@tiptap/core' {
|
|
143
146
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
name: string;
|
|
147
|
-
emoji: string;
|
|
148
|
-
}) => ReturnType;
|
|
147
|
+
excalidraw: {
|
|
148
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -196,21 +196,6 @@ declare module '@tiptap/core' {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
declare module '@tiptap/core' {
|
|
200
|
-
interface Commands<ReturnType> {
|
|
201
|
-
iframe: {
|
|
202
|
-
/**
|
|
203
|
-
* Add an iframe
|
|
204
|
-
*/
|
|
205
|
-
setIframe: (options: {
|
|
206
|
-
src: string;
|
|
207
|
-
service: string;
|
|
208
|
-
}) => ReturnType;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
199
|
declare module '@tiptap/core' {
|
|
215
200
|
interface Commands<ReturnType> {
|
|
216
201
|
imageUpload: {
|
|
@@ -231,6 +216,21 @@ declare module '@tiptap/core' {
|
|
|
231
216
|
}
|
|
232
217
|
|
|
233
218
|
|
|
219
|
+
declare module '@tiptap/core' {
|
|
220
|
+
interface Commands<ReturnType> {
|
|
221
|
+
iframe: {
|
|
222
|
+
/**
|
|
223
|
+
* Add an iframe
|
|
224
|
+
*/
|
|
225
|
+
setIframe: (options: {
|
|
226
|
+
src: string;
|
|
227
|
+
service: string;
|
|
228
|
+
}) => ReturnType;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
234
|
declare module '@tiptap/core' {
|
|
235
235
|
interface Commands<ReturnType> {
|
|
236
236
|
imageGifUpload: {
|
|
@@ -269,9 +269,8 @@ declare module '@tiptap/core' {
|
|
|
269
269
|
|
|
270
270
|
declare module '@tiptap/core' {
|
|
271
271
|
interface Commands<ReturnType> {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
unsetLineHeight: () => ReturnType;
|
|
272
|
+
katex: {
|
|
273
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
275
274
|
};
|
|
276
275
|
}
|
|
277
276
|
}
|
|
@@ -279,8 +278,9 @@ declare module '@tiptap/core' {
|
|
|
279
278
|
|
|
280
279
|
declare module '@tiptap/core' {
|
|
281
280
|
interface Commands<ReturnType> {
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
lineHeight: {
|
|
282
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
283
|
+
unsetLineHeight: () => ReturnType;
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -296,6 +296,20 @@ declare module '@tiptap/core' {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
declare module '@tiptap/core' {
|
|
300
|
+
interface Commands<ReturnType> {
|
|
301
|
+
columns: {
|
|
302
|
+
insertColumns: (attrs?: {
|
|
303
|
+
cols: number;
|
|
304
|
+
}) => ReturnType;
|
|
305
|
+
addColBefore: () => ReturnType;
|
|
306
|
+
addColAfter: () => ReturnType;
|
|
307
|
+
deleteCol: () => ReturnType;
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
|
|
299
313
|
declare module '@tiptap/core' {
|
|
300
314
|
interface Commands<ReturnType> {
|
|
301
315
|
search: {
|
|
@@ -311,20 +325,6 @@ declare module '@tiptap/core' {
|
|
|
311
325
|
}
|
|
312
326
|
|
|
313
327
|
|
|
314
|
-
declare module '@tiptap/core' {
|
|
315
|
-
interface Commands<ReturnType> {
|
|
316
|
-
columns: {
|
|
317
|
-
insertColumns: (attrs?: {
|
|
318
|
-
cols: number;
|
|
319
|
-
}) => ReturnType;
|
|
320
|
-
addColBefore: () => ReturnType;
|
|
321
|
-
addColAfter: () => ReturnType;
|
|
322
|
-
deleteCol: () => ReturnType;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
328
|
declare module '@tiptap/core' {
|
|
329
329
|
interface Commands<ReturnType> {
|
|
330
330
|
tableOfContents: {
|
package/lib/TextAlign.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as K } from "./index-DI9T3iLd.js";
|
|
2
2
|
import { jsxs as u, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as S } from "react";
|
|
4
|
-
import { P as C, m as j, A as w, k as v, n as P, T as z, a as L, r as N, b as $, s as E } from "./RichTextEditor-
|
|
4
|
+
import { P as C, m as j, A as w, k as v, n as P, T as z, a as L, r as N, b as $, s as E } from "./RichTextEditor-BQN2eLD_.js";
|
|
5
5
|
const J = K.create({
|
|
6
6
|
name: "textAlign",
|
|
7
7
|
addOptions() {
|
package/lib/TextBubble.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./index-ByRfqzMr.cjs"),t=require("react/jsx-runtime"),l=require("react"),x=require("lucide-react"),n=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./index-ByRfqzMr.cjs"),t=require("react/jsx-runtime"),l=require("react"),x=require("lucide-react"),n=require("./RichTextEditor-C8Sm1E6J.cjs"),g=require("./index-D_A0TBRA.cjs");function b(e){const{t:i}=g.useLocale(),c=l.useMemo(()=>[{name:"paragraph",label:i("editor.paragraph.tooltip"),iconName:"Heading1",isActive:()=>e.editor.isActive("paragraph")&&!e.editor.isActive("orderedList")&&!e.editor.isActive("bulletList")&&!e.editor.isActive("taskList"),action:()=>e.editor.chain().focus().clearNodes().run()},{name:"heading1",label:i("editor.heading.h1.tooltip"),isActive:()=>e.editor.isActive("heading",{level:1}),iconName:"Heading1",action:()=>e.editor.chain().focus().clearNodes().toggleHeading({level:1}).run()},{name:"heading2",label:i("editor.heading.h2.tooltip"),isActive:()=>e.editor.isActive("heading",{level:2}),iconName:"Heading2",action:()=>e.editor.chain().focus().clearNodes().toggleHeading({level:2}).run()},{name:"heading3",label:i("editor.heading.h3.tooltip"),isActive:()=>e.editor.isActive("heading",{level:3}),iconName:"Heading3",action:()=>e.editor.chain().focus().clearNodes().toggleHeading({level:3}).run()},{name:"bulletList",label:i("editor.bulletlist.tooltip"),isActive:()=>e.editor.isActive("bulletList"),iconName:"List",action:()=>e.editor.chain().focus().clearNodes().toggleBulletList().run()},{name:"numberedList",label:i("editor.orderedlist.tooltip"),isActive:()=>e.editor.isActive("orderedList"),iconName:"ListOrdered",action:()=>e.editor.chain().focus().clearNodes().toggleOrderedList().run()},{name:"taskList",label:i("editor.tasklist.tooltip"),isActive:()=>e.editor.isActive("taskList"),iconName:"ListTodo",action:()=>e.editor.chain().focus().clearNodes().toggleTaskList().run()},{name:"blockquote",label:i("editor.blockquote.tooltip"),isActive:()=>e.editor.isActive("blockquote"),iconName:"TextQuote",action:()=>e.editor.chain().focus().clearNodes().toggleBlockquote().run()}],[e.editor,i]),a=l.useMemo(()=>c.findLast(o=>o.isActive())??{label:"Empty"},[c]);return t.jsxs(n.DropdownMenu,{children:[t.jsx(n.DropdownMenuTrigger,{asChild:!0,children:t.jsxs(n.Button,{className:"richtext-flex richtext-h-[32px] richtext-gap-1 richtext-px-1.5",variant:"ghost",children:[t.jsxs("span",{className:"richtext-whitespace-nowrap richtext-text-sm richtext-font-normal",children:[" ",a==null?void 0:a.label]}),t.jsx(x.ChevronDown,{className:"richtext-size-4"})]})}),t.jsx(n.DropdownMenuContent,{align:"start",className:"richtext-w-full richtext-p-1",hideWhenDetached:!0,sideOffset:5,children:c.map((o,d)=>{var r;const u=n.icons[o.iconName];return t.jsx(n.DropdownMenuCheckboxItem,{checked:((r=o.isActive)==null?void 0:r.call(o))||!1,className:"richtext-cursor-pointer",onClick:()=>o.action(),children:t.jsxs("div",{className:"richtext-flex richtext-items-center richtext-gap-2 richtext-px-2",children:[t.jsx(u,{className:"richtext-h3 richtext-w-3"}),t.jsxs("span",{children:[" ",o.label]})]})},`text-bubble-${d}`)})})]})}const s=h.Extension.create({name:"text-bubble",addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),toolbar:!1,button:()=>({component:b,componentProps:{}})}}});exports.TextBubble=s;exports.default=s;
|
package/lib/TextBubble.d.cts
CHANGED
|
@@ -122,8 +122,11 @@ declare module '@tiptap/core' {
|
|
|
122
122
|
|
|
123
123
|
declare module '@tiptap/core' {
|
|
124
124
|
interface Commands<ReturnType> {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
emoji: {
|
|
126
|
+
setEmoji: (emoji: {
|
|
127
|
+
name: string;
|
|
128
|
+
emoji: string;
|
|
129
|
+
}) => ReturnType;
|
|
127
130
|
};
|
|
128
131
|
}
|
|
129
132
|
}
|
|
@@ -131,11 +134,8 @@ declare module '@tiptap/core' {
|
|
|
131
134
|
|
|
132
135
|
declare module '@tiptap/core' {
|
|
133
136
|
interface Commands<ReturnType> {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
name: string;
|
|
137
|
-
emoji: string;
|
|
138
|
-
}) => ReturnType;
|
|
137
|
+
excalidraw: {
|
|
138
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -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: {
|
|
@@ -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: {
|