reactjs-tiptap-editor 0.3.15 → 0.3.16
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-cLs916Iz.js → ActionMenuButton-Blixh0sY.js} +1 -1
- package/lib/{ActionMenuButton-BiJA06nt.cjs → ActionMenuButton-Dqp7UQ7o.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +25 -25
- package/lib/Attachment.d.ts +25 -25
- package/lib/Attachment.js +2 -2
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +25 -25
- package/lib/Blockquote.d.ts +25 -25
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +25 -25
- package/lib/Bold.d.ts +25 -25
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +25 -25
- package/lib/BulletList.d.ts +25 -25
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +25 -25
- package/lib/Clear.d.ts +25 -25
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +25 -25
- package/lib/Code.d.ts +25 -25
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +26 -26
- package/lib/CodeBlock.d.cts +25 -25
- package/lib/CodeBlock.d.ts +25 -25
- package/lib/CodeBlock.js +660 -643
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +25 -25
- package/lib/CodeView.d.ts +25 -25
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +25 -25
- package/lib/Color.d.ts +25 -25
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +25 -25
- package/lib/Document.d.ts +25 -25
- package/lib/{Drawer-Ctp3RrUF.cjs → Drawer-DRmsdhKK.cjs} +1 -1
- package/lib/{Drawer-mxoHuP24.js → Drawer-XpuScyFL.js} +2 -2
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +25 -25
- package/lib/Drawer.d.ts +25 -25
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +25 -25
- package/lib/Emoji.d.ts +25 -25
- package/lib/Emoji.js +2 -2
- package/lib/{Excalidraw-BIN8ca6O.js → Excalidraw-CK40GI6U.js} +2 -2
- package/lib/{Excalidraw-D2cIInsp.cjs → Excalidraw-CPiaxnoj.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +25 -25
- package/lib/Excalidraw.d.ts +25 -25
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +25 -25
- package/lib/ExportPdf.d.ts +25 -25
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +25 -25
- package/lib/ExportWord.d.ts +25 -25
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +25 -25
- package/lib/FontFamily.d.ts +25 -25
- package/lib/FontFamily.js +3 -3
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +25 -25
- package/lib/FontSize.d.ts +25 -25
- package/lib/FontSize.js +3 -3
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +25 -25
- package/lib/FormatPainter.d.ts +25 -25
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +25 -25
- package/lib/Heading.d.ts +25 -25
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +25 -25
- package/lib/Highlight.d.ts +25 -25
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +25 -25
- package/lib/History.d.ts +25 -25
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +25 -25
- package/lib/HorizontalRule.d.ts +25 -25
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +25 -25
- package/lib/Iframe.d.ts +25 -25
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +32 -25
- package/lib/Image.d.ts +32 -25
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +25 -25
- package/lib/ImageGif.d.ts +25 -25
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +25 -25
- package/lib/ImportWord.d.ts +25 -25
- package/lib/ImportWord.js +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +25 -25
- package/lib/Indent.d.ts +25 -25
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +25 -25
- package/lib/Italic.d.ts +25 -25
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +25 -25
- package/lib/Katex.d.ts +25 -25
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +25 -25
- package/lib/LineHeight.d.ts +25 -25
- package/lib/LineHeight.js +2 -2
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +25 -25
- package/lib/Link.d.ts +25 -25
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +25 -25
- package/lib/ListItem.d.ts +25 -25
- package/lib/Mention.d.cts +25 -25
- package/lib/Mention.d.ts +25 -25
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +25 -25
- package/lib/Mermaid.d.ts +25 -25
- package/lib/Mermaid.js +3 -3
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +25 -25
- package/lib/MoreMark.d.ts +25 -25
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +25 -25
- package/lib/MultiColumn.d.ts +25 -25
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +25 -25
- package/lib/OrderedList.d.ts +25 -25
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-1N7Gl9vo.js → RichTextEditor-BTv7R2Z0.js} +3065 -2949
- package/lib/RichTextEditor-Bca-oI9I.cjs +141 -0
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +25 -25
- package/lib/SearchAndReplace.d.ts +25 -25
- package/lib/SearchAndReplace.js +2 -2
- package/lib/Selection.d.cts +25 -25
- package/lib/Selection.d.ts +25 -25
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +25 -25
- package/lib/SlashCommand.d.ts +25 -25
- package/lib/SlashCommand.js +2 -2
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +25 -25
- package/lib/Strike.d.ts +25 -25
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +25 -25
- package/lib/SubAndSuperScript.d.ts +25 -25
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +25 -25
- package/lib/Table.d.ts +25 -25
- package/lib/Table.js +2 -2
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +25 -25
- package/lib/TableOfContent.d.ts +25 -25
- package/lib/TableOfContent.js +2 -2
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +25 -25
- package/lib/TaskList.d.ts +25 -25
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +25 -25
- package/lib/TextAlign.d.ts +25 -25
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +25 -25
- package/lib/TextBubble.d.ts +25 -25
- package/lib/TextBubble.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +25 -25
- package/lib/TextDirection.d.ts +25 -25
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +25 -25
- package/lib/TextUnderline.d.ts +25 -25
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +25 -25
- package/lib/TrailingNode.d.ts +25 -25
- package/lib/{Twitter-ClB1gNOp.js → Twitter-DZTS9Uc4.js} +2 -2
- package/lib/{Twitter-CvLMjYUZ.cjs → Twitter-tp6dT1fs.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +25 -25
- package/lib/Twitter.d.ts +25 -25
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +25 -25
- package/lib/Video.d.ts +25 -25
- package/lib/Video.js +2 -2
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +25 -25
- package/lib/bubble-extra.d.ts +25 -25
- package/lib/bubble-extra.js +6 -6
- package/lib/index-jEB3jXoa.cjs +1 -0
- package/lib/{index-D-DR0FPY.js → index-zcKfSGd5.js} +317 -295
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +25 -25
- package/lib/index.d.ts +25 -25
- package/lib/index.js +3 -3
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +46 -26
- package/lib/locale-bundle.d.ts +46 -26
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{textarea-rOG4VKVx.js → textarea-DKyqOqL2.js} +1 -1
- package/lib/{textarea-BIoxUMDS.cjs → textarea-Yr93rFW5.cjs} +1 -1
- package/package.json +1 -1
- package/lib/RichTextEditor-B_I3q8FW.cjs +0 -141
- package/lib/index-Dz3YxLE7.cjs +0 -1
package/lib/LineHeight.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-CSvnpArE.cjs"),g=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-CSvnpArE.cjs"),g=require("./index-jEB3jXoa.cjs"),c=require("react/jsx-runtime"),L=require("react"),u=require("./RichTextEditor-Bca-oI9I.cjs");function T(e){return Number.parseFloat(e.replace("%",""))/100}function x(e){const{t}=g.useLocale(),[n,r]=L.useState("default");function o(i){i==="default"?e.editor.commands.unsetLineHeight():e.editor.commands.setLineHeight(i),r(i)}const d=L.useMemo(()=>{const s=e.editor.extensionManager.extensions.find(l=>l.name==="lineHeight").options.lineHeights.map(l=>({label:T(l),value:l}));return s.unshift({label:t("editor.default"),value:"default"}),s},[e]);return c.jsxs(u.DropdownMenu,{children:[c.jsx(u.DropdownMenuTrigger,{asChild:!0,disabled:e==null?void 0:e.disabled,children:c.jsx(u.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:e==null?void 0:e.disabled,icon:"LineHeight",tooltip:e==null?void 0:e.tooltip,children:c.jsx(u.IconComponent,{className:"richtext-ml-1 richtext-size-3 richtext-text-zinc-500",name:"MenuDown"})})}),c.jsx(u.DropdownMenuContent,{className:"richtext-min-w-24",children:d==null?void 0:d.map((i,h)=>c.jsx(u.DropdownMenuCheckboxItem,{checked:i.value===n,onClick:()=>o(i.value),children:i.label},`lineHeight-${h}`))})]})}const _=["paragraph","heading","list_item","todo_item"];function E(e,t){const{selection:n,doc:r}=e;if(!n||!r||!(n instanceof m.TextSelection||n instanceof m.AllSelection))return e;const{from:o,to:d}=n,i=[],h=t&&t!==g.DEFAULT_LINE_HEIGHT?t:null;if(r.nodesBetween(o,d,(s,l)=>{const a=s.type;return _.includes(a.name)?((s.attrs.lineHeight||null)!==h&&i.push({node:s,pos:l,nodeType:a}),a.name!=="list_item"&&a.name!=="todo_item"):!0}),i.length===0)return e;for(const s of i){const{node:l,pos:a,nodeType:f}=s;let{attrs:H}=l;H={...H,lineHeight:h},e=e.setNodeMarkup(a,f,H,l.marks)}return e}function b(e){return({state:t,dispatch:n})=>{const{selection:r}=t;let{tr:o}=t;return o=o.setSelection(r),o=E(o,e),o.docChanged?(n&&n(o),!0):!1}}const I=m.Extension.create({name:"lineHeight",addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),types:["paragraph","heading","list_item","todo_item"],lineHeights:g.DEFAULT_LINE_HEIGHT_LIST,defaultHeight:g.DEFAULT_LINE_HEIGHT,button({editor:t,t:n}){return{component:x,componentProps:{editor:t,tooltip:n("editor.lineheight.tooltip")}}}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:e=>e.style.lineHeight||this.options.defaultHeight,renderHTML:e=>e.lineHeight===this.options.defaultHeight||!e.lineHeight?{}:{style:`line-height: ${e.lineHeight}`}}}}]},addCommands(){return{setLineHeight:e=>b(e),unsetLineHeight:()=>({commands:e})=>this.options.types.every(t=>e.resetAttributes(t,"lineHeight"))}}});exports.DEFAULT_LINE_HEIGHT_LIST=g.DEFAULT_LINE_HEIGHT_LIST;exports.LineHeight=I;
|
package/lib/LineHeight.d.cts
CHANGED
|
@@ -114,11 +114,9 @@ declare module '@tiptap/core' {
|
|
|
114
114
|
|
|
115
115
|
declare module '@tiptap/core' {
|
|
116
116
|
interface Commands<ReturnType> {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
emoji: string;
|
|
121
|
-
}) => ReturnType;
|
|
117
|
+
drawer: {
|
|
118
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
119
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
122
120
|
};
|
|
123
121
|
}
|
|
124
122
|
}
|
|
@@ -126,9 +124,8 @@ declare module '@tiptap/core' {
|
|
|
126
124
|
|
|
127
125
|
declare module '@tiptap/core' {
|
|
128
126
|
interface Commands<ReturnType> {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
127
|
+
excalidraw: {
|
|
128
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
132
129
|
};
|
|
133
130
|
}
|
|
134
131
|
}
|
|
@@ -136,8 +133,11 @@ declare module '@tiptap/core' {
|
|
|
136
133
|
|
|
137
134
|
declare module '@tiptap/core' {
|
|
138
135
|
interface Commands<ReturnType> {
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
emoji: {
|
|
137
|
+
setEmoji: (emoji: {
|
|
138
|
+
name: string;
|
|
139
|
+
emoji: string;
|
|
140
|
+
}) => ReturnType;
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -179,21 +179,6 @@ declare module '@tiptap/core' {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
declare module '@tiptap/core' {
|
|
183
|
-
interface Commands<ReturnType> {
|
|
184
|
-
iframe: {
|
|
185
|
-
/**
|
|
186
|
-
* Add an iframe
|
|
187
|
-
*/
|
|
188
|
-
setIframe: (options: {
|
|
189
|
-
src: string;
|
|
190
|
-
service: string;
|
|
191
|
-
}) => ReturnType;
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
182
|
declare module '@tiptap/core' {
|
|
198
183
|
interface Commands<ReturnType> {
|
|
199
184
|
imageUpload: {
|
|
@@ -214,6 +199,21 @@ declare module '@tiptap/core' {
|
|
|
214
199
|
}
|
|
215
200
|
|
|
216
201
|
|
|
202
|
+
declare module '@tiptap/core' {
|
|
203
|
+
interface Commands<ReturnType> {
|
|
204
|
+
iframe: {
|
|
205
|
+
/**
|
|
206
|
+
* Add an iframe
|
|
207
|
+
*/
|
|
208
|
+
setIframe: (options: {
|
|
209
|
+
src: string;
|
|
210
|
+
service: string;
|
|
211
|
+
}) => ReturnType;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
217
|
declare module '@tiptap/core' {
|
|
218
218
|
interface Commands<ReturnType> {
|
|
219
219
|
imageGifUpload: {
|
package/lib/LineHeight.d.ts
CHANGED
|
@@ -114,11 +114,9 @@ declare module '@tiptap/core' {
|
|
|
114
114
|
|
|
115
115
|
declare module '@tiptap/core' {
|
|
116
116
|
interface Commands<ReturnType> {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
emoji: string;
|
|
121
|
-
}) => ReturnType;
|
|
117
|
+
drawer: {
|
|
118
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
119
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
122
120
|
};
|
|
123
121
|
}
|
|
124
122
|
}
|
|
@@ -126,9 +124,8 @@ declare module '@tiptap/core' {
|
|
|
126
124
|
|
|
127
125
|
declare module '@tiptap/core' {
|
|
128
126
|
interface Commands<ReturnType> {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
127
|
+
excalidraw: {
|
|
128
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
132
129
|
};
|
|
133
130
|
}
|
|
134
131
|
}
|
|
@@ -136,8 +133,11 @@ declare module '@tiptap/core' {
|
|
|
136
133
|
|
|
137
134
|
declare module '@tiptap/core' {
|
|
138
135
|
interface Commands<ReturnType> {
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
emoji: {
|
|
137
|
+
setEmoji: (emoji: {
|
|
138
|
+
name: string;
|
|
139
|
+
emoji: string;
|
|
140
|
+
}) => ReturnType;
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -179,21 +179,6 @@ declare module '@tiptap/core' {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
declare module '@tiptap/core' {
|
|
183
|
-
interface Commands<ReturnType> {
|
|
184
|
-
iframe: {
|
|
185
|
-
/**
|
|
186
|
-
* Add an iframe
|
|
187
|
-
*/
|
|
188
|
-
setIframe: (options: {
|
|
189
|
-
src: string;
|
|
190
|
-
service: string;
|
|
191
|
-
}) => ReturnType;
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
182
|
declare module '@tiptap/core' {
|
|
198
183
|
interface Commands<ReturnType> {
|
|
199
184
|
imageUpload: {
|
|
@@ -214,6 +199,21 @@ declare module '@tiptap/core' {
|
|
|
214
199
|
}
|
|
215
200
|
|
|
216
201
|
|
|
202
|
+
declare module '@tiptap/core' {
|
|
203
|
+
interface Commands<ReturnType> {
|
|
204
|
+
iframe: {
|
|
205
|
+
/**
|
|
206
|
+
* Add an iframe
|
|
207
|
+
*/
|
|
208
|
+
setIframe: (options: {
|
|
209
|
+
src: string;
|
|
210
|
+
service: string;
|
|
211
|
+
}) => ReturnType;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
217
|
declare module '@tiptap/core' {
|
|
218
218
|
interface Commands<ReturnType> {
|
|
219
219
|
imageGifUpload: {
|
package/lib/LineHeight.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { T as f, A as H, E as L } from "./index-BWx1Mchx.js";
|
|
2
|
-
import { u as x, j as m, k as T } from "./index-
|
|
2
|
+
import { u as x, j as m, k as T } from "./index-zcKfSGd5.js";
|
|
3
3
|
import { jsxs as b, jsx as h } from "react/jsx-runtime";
|
|
4
4
|
import { useState as p, useMemo as _ } from "react";
|
|
5
|
-
import { D, e as E, A as M, k as w, f as A, h as C } from "./RichTextEditor-
|
|
5
|
+
import { D, e as E, A as M, k as w, f as A, h as C } from "./RichTextEditor-BTv7R2Z0.js";
|
|
6
6
|
function y(e) {
|
|
7
7
|
return Number.parseFloat(e.replace("%", "")) / 100;
|
|
8
8
|
}
|
package/lib/Link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-CSvnpArE.cjs");const e=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-CSvnpArE.cjs");const e=require("./RichTextEditor-Bca-oI9I.cjs");exports.Link=e.Link;exports.default=e.Link;
|
package/lib/Link.d.cts
CHANGED
|
@@ -112,11 +112,9 @@ declare module '@tiptap/core' {
|
|
|
112
112
|
|
|
113
113
|
declare module '@tiptap/core' {
|
|
114
114
|
interface Commands<ReturnType> {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
emoji: string;
|
|
119
|
-
}) => ReturnType;
|
|
115
|
+
drawer: {
|
|
116
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
117
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
120
118
|
};
|
|
121
119
|
}
|
|
122
120
|
}
|
|
@@ -124,9 +122,8 @@ declare module '@tiptap/core' {
|
|
|
124
122
|
|
|
125
123
|
declare module '@tiptap/core' {
|
|
126
124
|
interface Commands<ReturnType> {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
125
|
+
excalidraw: {
|
|
126
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
130
127
|
};
|
|
131
128
|
}
|
|
132
129
|
}
|
|
@@ -134,8 +131,11 @@ declare module '@tiptap/core' {
|
|
|
134
131
|
|
|
135
132
|
declare module '@tiptap/core' {
|
|
136
133
|
interface Commands<ReturnType> {
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
emoji: {
|
|
135
|
+
setEmoji: (emoji: {
|
|
136
|
+
name: string;
|
|
137
|
+
emoji: string;
|
|
138
|
+
}) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -177,21 +177,6 @@ declare module '@tiptap/core' {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
|
|
180
|
-
declare module '@tiptap/core' {
|
|
181
|
-
interface Commands<ReturnType> {
|
|
182
|
-
iframe: {
|
|
183
|
-
/**
|
|
184
|
-
* Add an iframe
|
|
185
|
-
*/
|
|
186
|
-
setIframe: (options: {
|
|
187
|
-
src: string;
|
|
188
|
-
service: string;
|
|
189
|
-
}) => ReturnType;
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
180
|
declare module '@tiptap/core' {
|
|
196
181
|
interface Commands<ReturnType> {
|
|
197
182
|
imageUpload: {
|
|
@@ -212,6 +197,21 @@ declare module '@tiptap/core' {
|
|
|
212
197
|
}
|
|
213
198
|
|
|
214
199
|
|
|
200
|
+
declare module '@tiptap/core' {
|
|
201
|
+
interface Commands<ReturnType> {
|
|
202
|
+
iframe: {
|
|
203
|
+
/**
|
|
204
|
+
* Add an iframe
|
|
205
|
+
*/
|
|
206
|
+
setIframe: (options: {
|
|
207
|
+
src: string;
|
|
208
|
+
service: string;
|
|
209
|
+
}) => ReturnType;
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
215
|
declare module '@tiptap/core' {
|
|
216
216
|
interface Commands<ReturnType> {
|
|
217
217
|
imageGifUpload: {
|
package/lib/Link.d.ts
CHANGED
|
@@ -112,11 +112,9 @@ declare module '@tiptap/core' {
|
|
|
112
112
|
|
|
113
113
|
declare module '@tiptap/core' {
|
|
114
114
|
interface Commands<ReturnType> {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
emoji: string;
|
|
119
|
-
}) => ReturnType;
|
|
115
|
+
drawer: {
|
|
116
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
117
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
120
118
|
};
|
|
121
119
|
}
|
|
122
120
|
}
|
|
@@ -124,9 +122,8 @@ declare module '@tiptap/core' {
|
|
|
124
122
|
|
|
125
123
|
declare module '@tiptap/core' {
|
|
126
124
|
interface Commands<ReturnType> {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
125
|
+
excalidraw: {
|
|
126
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
130
127
|
};
|
|
131
128
|
}
|
|
132
129
|
}
|
|
@@ -134,8 +131,11 @@ declare module '@tiptap/core' {
|
|
|
134
131
|
|
|
135
132
|
declare module '@tiptap/core' {
|
|
136
133
|
interface Commands<ReturnType> {
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
emoji: {
|
|
135
|
+
setEmoji: (emoji: {
|
|
136
|
+
name: string;
|
|
137
|
+
emoji: string;
|
|
138
|
+
}) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -177,21 +177,6 @@ declare module '@tiptap/core' {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
|
|
180
|
-
declare module '@tiptap/core' {
|
|
181
|
-
interface Commands<ReturnType> {
|
|
182
|
-
iframe: {
|
|
183
|
-
/**
|
|
184
|
-
* Add an iframe
|
|
185
|
-
*/
|
|
186
|
-
setIframe: (options: {
|
|
187
|
-
src: string;
|
|
188
|
-
service: string;
|
|
189
|
-
}) => ReturnType;
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
180
|
declare module '@tiptap/core' {
|
|
196
181
|
interface Commands<ReturnType> {
|
|
197
182
|
imageUpload: {
|
|
@@ -212,6 +197,21 @@ declare module '@tiptap/core' {
|
|
|
212
197
|
}
|
|
213
198
|
|
|
214
199
|
|
|
200
|
+
declare module '@tiptap/core' {
|
|
201
|
+
interface Commands<ReturnType> {
|
|
202
|
+
iframe: {
|
|
203
|
+
/**
|
|
204
|
+
* Add an iframe
|
|
205
|
+
*/
|
|
206
|
+
setIframe: (options: {
|
|
207
|
+
src: string;
|
|
208
|
+
service: string;
|
|
209
|
+
}) => ReturnType;
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
215
|
declare module '@tiptap/core' {
|
|
216
216
|
interface Commands<ReturnType> {
|
|
217
217
|
imageGifUpload: {
|
package/lib/Link.js
CHANGED
package/lib/ListItem.d.cts
CHANGED
|
@@ -36,11 +36,9 @@ declare module '@tiptap/core' {
|
|
|
36
36
|
|
|
37
37
|
declare module '@tiptap/core' {
|
|
38
38
|
interface Commands<ReturnType> {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
emoji: string;
|
|
43
|
-
}) => ReturnType;
|
|
39
|
+
drawer: {
|
|
40
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
41
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
}
|
|
@@ -48,9 +46,8 @@ declare module '@tiptap/core' {
|
|
|
48
46
|
|
|
49
47
|
declare module '@tiptap/core' {
|
|
50
48
|
interface Commands<ReturnType> {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
49
|
+
excalidraw: {
|
|
50
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
53
|
}
|
|
@@ -58,8 +55,11 @@ declare module '@tiptap/core' {
|
|
|
58
55
|
|
|
59
56
|
declare module '@tiptap/core' {
|
|
60
57
|
interface Commands<ReturnType> {
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
emoji: {
|
|
59
|
+
setEmoji: (emoji: {
|
|
60
|
+
name: string;
|
|
61
|
+
emoji: string;
|
|
62
|
+
}) => ReturnType;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -101,21 +101,6 @@ declare module '@tiptap/core' {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
declare module '@tiptap/core' {
|
|
105
|
-
interface Commands<ReturnType> {
|
|
106
|
-
iframe: {
|
|
107
|
-
/**
|
|
108
|
-
* Add an iframe
|
|
109
|
-
*/
|
|
110
|
-
setIframe: (options: {
|
|
111
|
-
src: string;
|
|
112
|
-
service: string;
|
|
113
|
-
}) => ReturnType;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
104
|
declare module '@tiptap/core' {
|
|
120
105
|
interface Commands<ReturnType> {
|
|
121
106
|
imageUpload: {
|
|
@@ -136,6 +121,21 @@ declare module '@tiptap/core' {
|
|
|
136
121
|
}
|
|
137
122
|
|
|
138
123
|
|
|
124
|
+
declare module '@tiptap/core' {
|
|
125
|
+
interface Commands<ReturnType> {
|
|
126
|
+
iframe: {
|
|
127
|
+
/**
|
|
128
|
+
* Add an iframe
|
|
129
|
+
*/
|
|
130
|
+
setIframe: (options: {
|
|
131
|
+
src: string;
|
|
132
|
+
service: string;
|
|
133
|
+
}) => ReturnType;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
139
|
declare module '@tiptap/core' {
|
|
140
140
|
interface Commands<ReturnType> {
|
|
141
141
|
imageGifUpload: {
|
package/lib/ListItem.d.ts
CHANGED
|
@@ -36,11 +36,9 @@ declare module '@tiptap/core' {
|
|
|
36
36
|
|
|
37
37
|
declare module '@tiptap/core' {
|
|
38
38
|
interface Commands<ReturnType> {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
emoji: string;
|
|
43
|
-
}) => ReturnType;
|
|
39
|
+
drawer: {
|
|
40
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
41
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
}
|
|
@@ -48,9 +46,8 @@ declare module '@tiptap/core' {
|
|
|
48
46
|
|
|
49
47
|
declare module '@tiptap/core' {
|
|
50
48
|
interface Commands<ReturnType> {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
49
|
+
excalidraw: {
|
|
50
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
53
|
}
|
|
@@ -58,8 +55,11 @@ declare module '@tiptap/core' {
|
|
|
58
55
|
|
|
59
56
|
declare module '@tiptap/core' {
|
|
60
57
|
interface Commands<ReturnType> {
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
emoji: {
|
|
59
|
+
setEmoji: (emoji: {
|
|
60
|
+
name: string;
|
|
61
|
+
emoji: string;
|
|
62
|
+
}) => ReturnType;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -101,21 +101,6 @@ declare module '@tiptap/core' {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
declare module '@tiptap/core' {
|
|
105
|
-
interface Commands<ReturnType> {
|
|
106
|
-
iframe: {
|
|
107
|
-
/**
|
|
108
|
-
* Add an iframe
|
|
109
|
-
*/
|
|
110
|
-
setIframe: (options: {
|
|
111
|
-
src: string;
|
|
112
|
-
service: string;
|
|
113
|
-
}) => ReturnType;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
104
|
declare module '@tiptap/core' {
|
|
120
105
|
interface Commands<ReturnType> {
|
|
121
106
|
imageUpload: {
|
|
@@ -136,6 +121,21 @@ declare module '@tiptap/core' {
|
|
|
136
121
|
}
|
|
137
122
|
|
|
138
123
|
|
|
124
|
+
declare module '@tiptap/core' {
|
|
125
|
+
interface Commands<ReturnType> {
|
|
126
|
+
iframe: {
|
|
127
|
+
/**
|
|
128
|
+
* Add an iframe
|
|
129
|
+
*/
|
|
130
|
+
setIframe: (options: {
|
|
131
|
+
src: string;
|
|
132
|
+
service: string;
|
|
133
|
+
}) => ReturnType;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
139
|
declare module '@tiptap/core' {
|
|
140
140
|
interface Commands<ReturnType> {
|
|
141
141
|
imageGifUpload: {
|
package/lib/Mention.d.cts
CHANGED
|
@@ -39,11 +39,9 @@ declare module '@tiptap/core' {
|
|
|
39
39
|
|
|
40
40
|
declare module '@tiptap/core' {
|
|
41
41
|
interface Commands<ReturnType> {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
emoji: string;
|
|
46
|
-
}) => ReturnType;
|
|
42
|
+
drawer: {
|
|
43
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
44
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
47
|
}
|
|
@@ -51,9 +49,8 @@ declare module '@tiptap/core' {
|
|
|
51
49
|
|
|
52
50
|
declare module '@tiptap/core' {
|
|
53
51
|
interface Commands<ReturnType> {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
52
|
+
excalidraw: {
|
|
53
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
56
|
}
|
|
@@ -61,8 +58,11 @@ declare module '@tiptap/core' {
|
|
|
61
58
|
|
|
62
59
|
declare module '@tiptap/core' {
|
|
63
60
|
interface Commands<ReturnType> {
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
emoji: {
|
|
62
|
+
setEmoji: (emoji: {
|
|
63
|
+
name: string;
|
|
64
|
+
emoji: string;
|
|
65
|
+
}) => ReturnType;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -104,21 +104,6 @@ declare module '@tiptap/core' {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
declare module '@tiptap/core' {
|
|
108
|
-
interface Commands<ReturnType> {
|
|
109
|
-
iframe: {
|
|
110
|
-
/**
|
|
111
|
-
* Add an iframe
|
|
112
|
-
*/
|
|
113
|
-
setIframe: (options: {
|
|
114
|
-
src: string;
|
|
115
|
-
service: string;
|
|
116
|
-
}) => ReturnType;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
107
|
declare module '@tiptap/core' {
|
|
123
108
|
interface Commands<ReturnType> {
|
|
124
109
|
imageUpload: {
|
|
@@ -139,6 +124,21 @@ declare module '@tiptap/core' {
|
|
|
139
124
|
}
|
|
140
125
|
|
|
141
126
|
|
|
127
|
+
declare module '@tiptap/core' {
|
|
128
|
+
interface Commands<ReturnType> {
|
|
129
|
+
iframe: {
|
|
130
|
+
/**
|
|
131
|
+
* Add an iframe
|
|
132
|
+
*/
|
|
133
|
+
setIframe: (options: {
|
|
134
|
+
src: string;
|
|
135
|
+
service: string;
|
|
136
|
+
}) => ReturnType;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
142
|
declare module '@tiptap/core' {
|
|
143
143
|
interface Commands<ReturnType> {
|
|
144
144
|
imageGifUpload: {
|