reactjs-tiptap-editor 0.3.21 → 0.3.22
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-BTFBZyG2.cjs → ActionMenuButton-B81uYOvt.cjs} +1 -1
- package/lib/{ActionMenuButton-DXwnYZhJ.js → ActionMenuButton-CtcDNq-L.js} +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-CVuwyG50.js → Drawer-BI_9XSqI.js} +1 -1
- package/lib/{Drawer-BrHHs2E9.cjs → Drawer-CHGZ5D6j.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 +116 -109
- package/lib/{Excalidraw-frMX4K62.js → Excalidraw-AIzEaOzF.js} +1 -1
- package/lib/{Excalidraw-Be_GDV4Q.cjs → Excalidraw-DOJiMnFl.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 +41 -41
- package/lib/ImageGif.d.ts +41 -41
- 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-DjTnd5Uu.js → RichTextEditor-CtxIf8pq.js} +5 -2
- package/lib/{RichTextEditor-CAxwVWUE.cjs → RichTextEditor-DtxJlApT.cjs} +5 -2
- 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-dRxbZOad.js → Twitter-CJIud-WM.js} +1 -1
- package/lib/{Twitter-V0OzBT_E.cjs → Twitter-DBA28WG3.cjs} +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-BsJTSgT-.cjs → textarea-9iN67tad.cjs} +1 -1
- package/lib/{textarea-6c8drwXJ.js → textarea-BhTw-eGz.js} +1 -1
- package/package.json +2 -2
package/lib/CodeView.d.ts
CHANGED
|
@@ -109,11 +109,9 @@ declare module '@tiptap/core' {
|
|
|
109
109
|
|
|
110
110
|
declare module '@tiptap/core' {
|
|
111
111
|
interface Commands<ReturnType> {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
emoji: string;
|
|
116
|
-
}) => ReturnType;
|
|
112
|
+
drawer: {
|
|
113
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
114
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
117
115
|
};
|
|
118
116
|
}
|
|
119
117
|
}
|
|
@@ -121,9 +119,11 @@ declare module '@tiptap/core' {
|
|
|
121
119
|
|
|
122
120
|
declare module '@tiptap/core' {
|
|
123
121
|
interface Commands<ReturnType> {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
emoji: {
|
|
123
|
+
setEmoji: (emoji: {
|
|
124
|
+
name: string;
|
|
125
|
+
emoji: string;
|
|
126
|
+
}) => ReturnType;
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -174,6 +174,21 @@ declare module '@tiptap/core' {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
|
|
177
|
+
declare module '@tiptap/core' {
|
|
178
|
+
interface Commands<ReturnType> {
|
|
179
|
+
iframe: {
|
|
180
|
+
/**
|
|
181
|
+
* Add an iframe
|
|
182
|
+
*/
|
|
183
|
+
setIframe: (options: {
|
|
184
|
+
src: string;
|
|
185
|
+
service: string;
|
|
186
|
+
}) => ReturnType;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
|
|
177
192
|
declare module '@tiptap/core' {
|
|
178
193
|
interface Commands<ReturnType> {
|
|
179
194
|
imageUpload: {
|
|
@@ -194,21 +209,6 @@ declare module '@tiptap/core' {
|
|
|
194
209
|
}
|
|
195
210
|
|
|
196
211
|
|
|
197
|
-
declare module '@tiptap/core' {
|
|
198
|
-
interface Commands<ReturnType> {
|
|
199
|
-
iframe: {
|
|
200
|
-
/**
|
|
201
|
-
* Add an iframe
|
|
202
|
-
*/
|
|
203
|
-
setIframe: (options: {
|
|
204
|
-
src: string;
|
|
205
|
-
service: string;
|
|
206
|
-
}) => ReturnType;
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
212
|
declare module '@tiptap/core' {
|
|
213
213
|
interface Commands<ReturnType> {
|
|
214
214
|
imageGifUpload: {
|
|
@@ -247,9 +247,8 @@ declare module '@tiptap/core' {
|
|
|
247
247
|
|
|
248
248
|
declare module '@tiptap/core' {
|
|
249
249
|
interface Commands<ReturnType> {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
unsetLineHeight: () => ReturnType;
|
|
250
|
+
katex: {
|
|
251
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
253
252
|
};
|
|
254
253
|
}
|
|
255
254
|
}
|
|
@@ -257,8 +256,9 @@ declare module '@tiptap/core' {
|
|
|
257
256
|
|
|
258
257
|
declare module '@tiptap/core' {
|
|
259
258
|
interface Commands<ReturnType> {
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
lineHeight: {
|
|
260
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
261
|
+
unsetLineHeight: () => ReturnType;
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
}
|
|
@@ -315,14 +315,15 @@ declare module '@tiptap/core' {
|
|
|
315
315
|
|
|
316
316
|
declare module '@tiptap/core' {
|
|
317
317
|
interface Commands<ReturnType> {
|
|
318
|
-
|
|
318
|
+
video: {
|
|
319
319
|
/**
|
|
320
|
-
*
|
|
321
|
-
* @param options The tweet attributes
|
|
322
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
320
|
+
* Add an video
|
|
323
321
|
*/
|
|
324
|
-
|
|
325
|
-
|
|
322
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
323
|
+
/**
|
|
324
|
+
* Update an video
|
|
325
|
+
*/
|
|
326
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
326
327
|
};
|
|
327
328
|
}
|
|
328
329
|
}
|
|
@@ -330,15 +331,14 @@ declare module '@tiptap/core' {
|
|
|
330
331
|
|
|
331
332
|
declare module '@tiptap/core' {
|
|
332
333
|
interface Commands<ReturnType> {
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Add an video
|
|
336
|
-
*/
|
|
337
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
334
|
+
twitter: {
|
|
338
335
|
/**
|
|
339
|
-
*
|
|
336
|
+
* Insert a tweet
|
|
337
|
+
* @param options The tweet attributes
|
|
338
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
340
339
|
*/
|
|
341
|
-
|
|
340
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
341
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
}
|
package/lib/CodeView.js
CHANGED
package/lib/Color.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-DclQSrIx.cjs");const u=require("./index-ByRfqzMr.cjs"),l=require("react/jsx-runtime"),d=require("react"),i=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-DclQSrIx.cjs");const u=require("./index-ByRfqzMr.cjs"),l=require("react/jsx-runtime"),d=require("react"),i=require("./RichTextEditor-DtxJlApT.cjs"),x=u.Extension.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}});function C({fill:e}){return l.jsx("svg",{width:"18px",height:"18px",viewBox:"0 0 240 240",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:l.jsx("g",{transform:"translate(0.000000, 0.500000)",children:l.jsxs("g",{transform:"translate(39.000000, 17.353553)",children:[l.jsx("path",{d:"M11,201.146447 L167,201.146447 C173.075132,201.146447 178,206.071314 178,212.146447 C178,218.221579 173.075132,223.146447 167,223.146447 L11,223.146447 C4.92486775,223.146447 7.43989126e-16,218.221579 0,212.146447 C-7.43989126e-16,206.071314 4.92486775,201.146447 11,201.146447 Z",id:"矩形",fill:e||"#DF2A3F",fillRule:"evenodd"}),l.jsx("path",{d:"M72.3425855,16.8295583 C75.799482,7.50883712 86.1577877,2.75526801 95.4785089,6.21216449 C100.284516,7.99463061 104.096358,11.7387855 105.968745,16.4968188 L106.112518,16.8745422 L159.385152,161.694068 C161.291848,166.877345 158.635655,172.624903 153.452378,174.531599 C148.358469,176.405421 142.719567,173.872338 140.716873,168.864661 L140.614848,168.598825 L89.211,28.86 L37.3759214,168.623816 C35.4885354,173.712715 29.8981043,176.351047 24.7909589,174.617647 L24.5226307,174.522368 C19.4337312,172.634982 16.7953993,167.044551 18.5287999,161.937406 L18.6240786,161.669077 L72.3425855,16.8295583 Z",id:"路径-21",fill:"currentColor",fillRule:"nonzero"}),l.jsx("path",{d:"M121,103.146447 C126.522847,103.146447 131,107.623599 131,113.146447 C131,118.575687 126.673329,122.994378 121.279905,123.142605 L121,123.146447 L55,123.146447 C49.4771525,123.146447 45,118.669294 45,113.146447 C45,107.717207 49.3266708,103.298515 54.7200952,103.150288 L55,103.146447 L121,103.146447 Z",id:"路径-22",fill:"currentColor",fillRule:"nonzero"})]})})})})}function h(e){const[t,c]=d.useState(void 0);function r(o){var a;(a=e.action)==null||a.call(e,o)}function n(){var o;(o=e.action)==null||o.call(e,t)}const s=d.useCallback(i.debounce(o=>{c(o)},350),[]);return l.jsxs("div",{className:"richtext-flex richtext-items-center richtext-h-[32px]",children:[l.jsx(i.ActionButton,{tooltip:e==null?void 0:e.tooltip,disabled:e==null?void 0:e.disabled,action:n,children:l.jsx("span",{className:"richtext-flex richtext-items-center richtext-justify-center richtext-text-sm",children:l.jsx(C,{fill:t||e.initialDisplayedColor})})}),l.jsx(i.ColorPicker,{selectedColor:t,setSelectedColor:s,onChange:r,disabled:e==null?void 0:e.disabled,colors:e==null?void 0:e.colors,defaultColor:e==null?void 0:e.defaultColor,children:l.jsx(i.Button,{variant:"ghost",size:"icon",className:"r!ichtext-h-[32px] !richtext-w-3",disabled:e==null?void 0:e.disabled,children:l.jsx(i.IconComponent,{className:"!richtext-w-3 !richtext-h-3 richtext-text-zinc-500",name:"MenuDown"})})})]})}const f=x.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button({editor:t,t:c,extension:r}){return{component:h,componentProps:{colors:r.options.colors,defaultColor:r.options.defaultColor,action:n=>{n===void 0&&t.chain().focus().unsetColor().run(),typeof n=="string"&&t.chain().focus().setColor(n).run()},isActive:()=>{const{color:n}=t.getAttributes("textStyle");return n&&t.isActive({color:n})||!1},editor:t,disabled:!1,tooltip:c("editor.color.tooltip")}}}}}});exports.Color=f;
|
package/lib/Color.d.cts
CHANGED
|
@@ -117,11 +117,9 @@ declare module '@tiptap/core' {
|
|
|
117
117
|
|
|
118
118
|
declare module '@tiptap/core' {
|
|
119
119
|
interface Commands<ReturnType> {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
emoji: string;
|
|
124
|
-
}) => ReturnType;
|
|
120
|
+
drawer: {
|
|
121
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
122
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
125
123
|
};
|
|
126
124
|
}
|
|
127
125
|
}
|
|
@@ -129,9 +127,11 @@ declare module '@tiptap/core' {
|
|
|
129
127
|
|
|
130
128
|
declare module '@tiptap/core' {
|
|
131
129
|
interface Commands<ReturnType> {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
emoji: {
|
|
131
|
+
setEmoji: (emoji: {
|
|
132
|
+
name: string;
|
|
133
|
+
emoji: string;
|
|
134
|
+
}) => ReturnType;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -182,6 +182,21 @@ declare module '@tiptap/core' {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
|
|
185
|
+
declare module '@tiptap/core' {
|
|
186
|
+
interface Commands<ReturnType> {
|
|
187
|
+
iframe: {
|
|
188
|
+
/**
|
|
189
|
+
* Add an iframe
|
|
190
|
+
*/
|
|
191
|
+
setIframe: (options: {
|
|
192
|
+
src: string;
|
|
193
|
+
service: string;
|
|
194
|
+
}) => ReturnType;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
185
200
|
declare module '@tiptap/core' {
|
|
186
201
|
interface Commands<ReturnType> {
|
|
187
202
|
imageUpload: {
|
|
@@ -202,21 +217,6 @@ declare module '@tiptap/core' {
|
|
|
202
217
|
}
|
|
203
218
|
|
|
204
219
|
|
|
205
|
-
declare module '@tiptap/core' {
|
|
206
|
-
interface Commands<ReturnType> {
|
|
207
|
-
iframe: {
|
|
208
|
-
/**
|
|
209
|
-
* Add an iframe
|
|
210
|
-
*/
|
|
211
|
-
setIframe: (options: {
|
|
212
|
-
src: string;
|
|
213
|
-
service: string;
|
|
214
|
-
}) => ReturnType;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
220
|
declare module '@tiptap/core' {
|
|
221
221
|
interface Commands<ReturnType> {
|
|
222
222
|
imageGifUpload: {
|
|
@@ -255,9 +255,8 @@ declare module '@tiptap/core' {
|
|
|
255
255
|
|
|
256
256
|
declare module '@tiptap/core' {
|
|
257
257
|
interface Commands<ReturnType> {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
unsetLineHeight: () => ReturnType;
|
|
258
|
+
katex: {
|
|
259
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
261
260
|
};
|
|
262
261
|
}
|
|
263
262
|
}
|
|
@@ -265,8 +264,9 @@ declare module '@tiptap/core' {
|
|
|
265
264
|
|
|
266
265
|
declare module '@tiptap/core' {
|
|
267
266
|
interface Commands<ReturnType> {
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
lineHeight: {
|
|
268
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
269
|
+
unsetLineHeight: () => ReturnType;
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -323,14 +323,15 @@ declare module '@tiptap/core' {
|
|
|
323
323
|
|
|
324
324
|
declare module '@tiptap/core' {
|
|
325
325
|
interface Commands<ReturnType> {
|
|
326
|
-
|
|
326
|
+
video: {
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
329
|
-
* @param options The tweet attributes
|
|
330
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
328
|
+
* Add an video
|
|
331
329
|
*/
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
331
|
+
/**
|
|
332
|
+
* Update an video
|
|
333
|
+
*/
|
|
334
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
337
|
}
|
|
@@ -338,15 +339,14 @@ declare module '@tiptap/core' {
|
|
|
338
339
|
|
|
339
340
|
declare module '@tiptap/core' {
|
|
340
341
|
interface Commands<ReturnType> {
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Add an video
|
|
344
|
-
*/
|
|
345
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
342
|
+
twitter: {
|
|
346
343
|
/**
|
|
347
|
-
*
|
|
344
|
+
* Insert a tweet
|
|
345
|
+
* @param options The tweet attributes
|
|
346
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
348
347
|
*/
|
|
349
|
-
|
|
348
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
349
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
}
|
package/lib/Color.d.ts
CHANGED
|
@@ -117,11 +117,9 @@ declare module '@tiptap/core' {
|
|
|
117
117
|
|
|
118
118
|
declare module '@tiptap/core' {
|
|
119
119
|
interface Commands<ReturnType> {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
emoji: string;
|
|
124
|
-
}) => ReturnType;
|
|
120
|
+
drawer: {
|
|
121
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
122
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
125
123
|
};
|
|
126
124
|
}
|
|
127
125
|
}
|
|
@@ -129,9 +127,11 @@ declare module '@tiptap/core' {
|
|
|
129
127
|
|
|
130
128
|
declare module '@tiptap/core' {
|
|
131
129
|
interface Commands<ReturnType> {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
emoji: {
|
|
131
|
+
setEmoji: (emoji: {
|
|
132
|
+
name: string;
|
|
133
|
+
emoji: string;
|
|
134
|
+
}) => ReturnType;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -182,6 +182,21 @@ declare module '@tiptap/core' {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
|
|
185
|
+
declare module '@tiptap/core' {
|
|
186
|
+
interface Commands<ReturnType> {
|
|
187
|
+
iframe: {
|
|
188
|
+
/**
|
|
189
|
+
* Add an iframe
|
|
190
|
+
*/
|
|
191
|
+
setIframe: (options: {
|
|
192
|
+
src: string;
|
|
193
|
+
service: string;
|
|
194
|
+
}) => ReturnType;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
185
200
|
declare module '@tiptap/core' {
|
|
186
201
|
interface Commands<ReturnType> {
|
|
187
202
|
imageUpload: {
|
|
@@ -202,21 +217,6 @@ declare module '@tiptap/core' {
|
|
|
202
217
|
}
|
|
203
218
|
|
|
204
219
|
|
|
205
|
-
declare module '@tiptap/core' {
|
|
206
|
-
interface Commands<ReturnType> {
|
|
207
|
-
iframe: {
|
|
208
|
-
/**
|
|
209
|
-
* Add an iframe
|
|
210
|
-
*/
|
|
211
|
-
setIframe: (options: {
|
|
212
|
-
src: string;
|
|
213
|
-
service: string;
|
|
214
|
-
}) => ReturnType;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
220
|
declare module '@tiptap/core' {
|
|
221
221
|
interface Commands<ReturnType> {
|
|
222
222
|
imageGifUpload: {
|
|
@@ -255,9 +255,8 @@ declare module '@tiptap/core' {
|
|
|
255
255
|
|
|
256
256
|
declare module '@tiptap/core' {
|
|
257
257
|
interface Commands<ReturnType> {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
unsetLineHeight: () => ReturnType;
|
|
258
|
+
katex: {
|
|
259
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
261
260
|
};
|
|
262
261
|
}
|
|
263
262
|
}
|
|
@@ -265,8 +264,9 @@ declare module '@tiptap/core' {
|
|
|
265
264
|
|
|
266
265
|
declare module '@tiptap/core' {
|
|
267
266
|
interface Commands<ReturnType> {
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
lineHeight: {
|
|
268
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
269
|
+
unsetLineHeight: () => ReturnType;
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -323,14 +323,15 @@ declare module '@tiptap/core' {
|
|
|
323
323
|
|
|
324
324
|
declare module '@tiptap/core' {
|
|
325
325
|
interface Commands<ReturnType> {
|
|
326
|
-
|
|
326
|
+
video: {
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
329
|
-
* @param options The tweet attributes
|
|
330
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
328
|
+
* Add an video
|
|
331
329
|
*/
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
331
|
+
/**
|
|
332
|
+
* Update an video
|
|
333
|
+
*/
|
|
334
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
337
|
}
|
|
@@ -338,15 +339,14 @@ declare module '@tiptap/core' {
|
|
|
338
339
|
|
|
339
340
|
declare module '@tiptap/core' {
|
|
340
341
|
interface Commands<ReturnType> {
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Add an video
|
|
344
|
-
*/
|
|
345
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
342
|
+
twitter: {
|
|
346
343
|
/**
|
|
347
|
-
*
|
|
344
|
+
* Insert a tweet
|
|
345
|
+
* @param options The tweet attributes
|
|
346
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
348
347
|
*/
|
|
349
|
-
|
|
348
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
349
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
}
|
package/lib/Color.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./index-C1fzuXpN.js";
|
|
|
2
2
|
import { E as u } from "./index-DI9T3iLd.js";
|
|
3
3
|
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
4
4
|
import { useState as s, useCallback as C } from "react";
|
|
5
|
-
import { t as h, A as f, C as x, B as m, k as v } from "./RichTextEditor-
|
|
5
|
+
import { t as h, A as f, C as x, B as m, k as v } from "./RichTextEditor-CtxIf8pq.js";
|
|
6
6
|
const L = u.create({
|
|
7
7
|
name: "color",
|
|
8
8
|
addOptions() {
|
package/lib/Document.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,11 @@ declare module '@tiptap/core' {
|
|
|
51
49
|
|
|
52
50
|
declare module '@tiptap/core' {
|
|
53
51
|
interface Commands<ReturnType> {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
emoji: {
|
|
53
|
+
setEmoji: (emoji: {
|
|
54
|
+
name: string;
|
|
55
|
+
emoji: string;
|
|
56
|
+
}) => ReturnType;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -104,6 +104,21 @@ 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
|
+
|
|
107
122
|
declare module '@tiptap/core' {
|
|
108
123
|
interface Commands<ReturnType> {
|
|
109
124
|
imageUpload: {
|
|
@@ -124,21 +139,6 @@ declare module '@tiptap/core' {
|
|
|
124
139
|
}
|
|
125
140
|
|
|
126
141
|
|
|
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: {
|
|
@@ -177,9 +177,8 @@ declare module '@tiptap/core' {
|
|
|
177
177
|
|
|
178
178
|
declare module '@tiptap/core' {
|
|
179
179
|
interface Commands<ReturnType> {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
unsetLineHeight: () => ReturnType;
|
|
180
|
+
katex: {
|
|
181
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
183
182
|
};
|
|
184
183
|
}
|
|
185
184
|
}
|
|
@@ -187,8 +186,9 @@ declare module '@tiptap/core' {
|
|
|
187
186
|
|
|
188
187
|
declare module '@tiptap/core' {
|
|
189
188
|
interface Commands<ReturnType> {
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
lineHeight: {
|
|
190
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
191
|
+
unsetLineHeight: () => ReturnType;
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -245,14 +245,15 @@ declare module '@tiptap/core' {
|
|
|
245
245
|
|
|
246
246
|
declare module '@tiptap/core' {
|
|
247
247
|
interface Commands<ReturnType> {
|
|
248
|
-
|
|
248
|
+
video: {
|
|
249
249
|
/**
|
|
250
|
-
*
|
|
251
|
-
* @param options The tweet attributes
|
|
252
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
250
|
+
* Add an video
|
|
253
251
|
*/
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
253
|
+
/**
|
|
254
|
+
* Update an video
|
|
255
|
+
*/
|
|
256
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
256
257
|
};
|
|
257
258
|
}
|
|
258
259
|
}
|
|
@@ -260,15 +261,14 @@ declare module '@tiptap/core' {
|
|
|
260
261
|
|
|
261
262
|
declare module '@tiptap/core' {
|
|
262
263
|
interface Commands<ReturnType> {
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Add an video
|
|
266
|
-
*/
|
|
267
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
264
|
+
twitter: {
|
|
268
265
|
/**
|
|
269
|
-
*
|
|
266
|
+
* Insert a tweet
|
|
267
|
+
* @param options The tweet attributes
|
|
268
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
270
269
|
*/
|
|
271
|
-
|
|
270
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
271
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
}
|