reactjs-tiptap-editor 0.3.7 → 0.3.9
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-CqlhqVIW.cjs → ActionMenuButton-D96eTByd.cjs} +1 -1
- package/lib/{ActionMenuButton-DXwpQHj4.js → ActionMenuButton-ZOYNohaO.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +27 -27
- package/lib/Attachment.d.ts +27 -27
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +27 -27
- package/lib/Blockquote.d.ts +27 -27
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +27 -27
- package/lib/Bold.d.ts +27 -27
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +27 -27
- package/lib/BulletList.d.ts +27 -27
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +27 -27
- package/lib/Clear.d.ts +27 -27
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +27 -27
- package/lib/Code.d.ts +27 -27
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +27 -27
- package/lib/CodeBlock.d.ts +27 -27
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +27 -27
- package/lib/CodeView.d.ts +27 -27
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +27 -27
- package/lib/Color.d.ts +27 -27
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +27 -27
- package/lib/Document.d.ts +27 -27
- package/lib/{Drawer-B6uGc4Ab.js → Drawer-D7VC0bqz.js} +1 -1
- package/lib/{Drawer-DBt_aN5x.cjs → Drawer-hzhjTRvj.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +27 -27
- package/lib/Drawer.d.ts +27 -27
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +27 -27
- package/lib/Emoji.d.ts +27 -27
- package/lib/Emoji.js +1 -1
- package/lib/Excalidraw-C3YArGc8.js +278 -0
- package/lib/Excalidraw-DkpPLrTk.cjs +1 -0
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +27 -27
- package/lib/Excalidraw.d.ts +27 -27
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +27 -27
- package/lib/ExportPdf.d.ts +27 -27
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +27 -27
- package/lib/ExportWord.d.ts +27 -27
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +27 -27
- package/lib/FontFamily.d.ts +27 -27
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +27 -27
- package/lib/FontSize.d.ts +27 -27
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +27 -27
- package/lib/FormatPainter.d.ts +27 -27
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +27 -27
- package/lib/Heading.d.ts +27 -27
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +27 -27
- package/lib/Highlight.d.ts +27 -27
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +27 -27
- package/lib/History.d.ts +27 -27
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +27 -27
- package/lib/HorizontalRule.d.ts +27 -27
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +27 -27
- package/lib/Iframe.d.ts +27 -27
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +27 -27
- package/lib/Image.d.ts +27 -27
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +27 -27
- package/lib/ImageGif.d.ts +27 -27
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +27 -27
- package/lib/ImportWord.d.ts +27 -27
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +27 -27
- package/lib/Indent.d.ts +27 -27
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +27 -27
- package/lib/Italic.d.ts +27 -27
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +27 -27
- package/lib/Katex.d.ts +27 -27
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +27 -27
- package/lib/LineHeight.d.ts +27 -27
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +27 -27
- package/lib/Link.d.ts +27 -27
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +27 -27
- package/lib/ListItem.d.ts +27 -27
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.d.cts +27 -27
- package/lib/Mention.d.ts +27 -27
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +27 -27
- package/lib/Mermaid.d.ts +27 -27
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +27 -27
- package/lib/MoreMark.d.ts +27 -27
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +27 -27
- package/lib/MultiColumn.d.ts +27 -27
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +27 -27
- package/lib/OrderedList.d.ts +27 -27
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-BfYZYQb9.js → RichTextEditor-CRDKX-F8.js} +11 -11
- package/lib/{RichTextEditor-Db6oQoYY.cjs → RichTextEditor-ymQlnG9m.cjs} +1 -1
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +27 -27
- package/lib/SearchAndReplace.d.ts +27 -27
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +27 -27
- package/lib/Selection.d.ts +27 -27
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +27 -27
- package/lib/SlashCommand.d.ts +27 -27
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +27 -27
- package/lib/Strike.d.ts +27 -27
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +27 -27
- package/lib/SubAndSuperScript.d.ts +27 -27
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +27 -27
- package/lib/Table.d.ts +27 -27
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +27 -27
- package/lib/TableOfContent.d.ts +27 -27
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +27 -27
- package/lib/TaskList.d.ts +27 -27
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +27 -27
- package/lib/TextAlign.d.ts +27 -27
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +27 -27
- package/lib/TextBubble.d.ts +27 -27
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +27 -27
- package/lib/TextDirection.d.ts +27 -27
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +27 -27
- package/lib/TextUnderline.d.ts +27 -27
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +27 -27
- package/lib/TrailingNode.d.ts +27 -27
- package/lib/{Twitter-DLO12QnF.cjs → Twitter-CMr6GpHp.cjs} +1 -1
- package/lib/{Twitter-CZA9dXpC.js → Twitter-CjAodXzu.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +27 -27
- package/lib/Twitter.d.ts +27 -27
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +27 -27
- package/lib/Video.d.ts +27 -27
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +2 -2
- package/lib/bubble-extra.d.cts +27 -27
- package/lib/bubble-extra.d.ts +27 -27
- package/lib/bubble-extra.js +6 -6
- package/lib/{dom-dataset-DmsCLv1q.cjs → dom-dataset-Cuy-pIfj.cjs} +3 -3
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +27 -27
- package/lib/index.d.ts +27 -27
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +27 -27
- package/lib/locale-bundle.d.ts +27 -27
- package/lib/{textarea-ILk3QoYy.cjs → textarea-Ci1tHD6V.cjs} +1 -1
- package/lib/{textarea-BUlQB7hI.js → textarea-CtL8w6IS.js} +1 -1
- package/package.json +1 -2
- package/lib/Excalidraw-Bp252YTN.js +0 -651
- package/lib/Excalidraw-CYLyPnI4.cjs +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -572,19 +572,15 @@ declare module '@tiptap/core' {
|
|
|
572
572
|
|
|
573
573
|
declare module '@tiptap/core' {
|
|
574
574
|
interface Commands<ReturnType> {
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* Add an image gif
|
|
578
|
-
*/
|
|
579
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
575
|
+
indent: {
|
|
580
576
|
/**
|
|
581
|
-
*
|
|
577
|
+
* Set the indent attribute
|
|
582
578
|
*/
|
|
583
|
-
|
|
579
|
+
indent: () => ReturnType;
|
|
584
580
|
/**
|
|
585
|
-
* Set
|
|
581
|
+
* Set the outdent attribute
|
|
586
582
|
*/
|
|
587
|
-
|
|
583
|
+
outdent: () => ReturnType;
|
|
588
584
|
};
|
|
589
585
|
}
|
|
590
586
|
}
|
|
@@ -592,15 +588,19 @@ declare module '@tiptap/core' {
|
|
|
592
588
|
|
|
593
589
|
declare module '@tiptap/core' {
|
|
594
590
|
interface Commands<ReturnType> {
|
|
595
|
-
|
|
591
|
+
imageGifUpload: {
|
|
596
592
|
/**
|
|
597
|
-
*
|
|
593
|
+
* Add an image gif
|
|
598
594
|
*/
|
|
599
|
-
|
|
595
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
600
596
|
/**
|
|
601
|
-
*
|
|
597
|
+
* Update an image gif
|
|
602
598
|
*/
|
|
603
|
-
|
|
599
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
600
|
+
/**
|
|
601
|
+
* Set image alignment
|
|
602
|
+
*/
|
|
603
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
}
|
|
@@ -676,15 +676,14 @@ declare module '@tiptap/core' {
|
|
|
676
676
|
|
|
677
677
|
declare module '@tiptap/core' {
|
|
678
678
|
interface Commands<ReturnType> {
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Add an video
|
|
682
|
-
*/
|
|
683
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
679
|
+
twitter: {
|
|
684
680
|
/**
|
|
685
|
-
*
|
|
681
|
+
* Insert a tweet
|
|
682
|
+
* @param options The tweet attributes
|
|
683
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
686
684
|
*/
|
|
687
|
-
|
|
685
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
686
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
688
687
|
};
|
|
689
688
|
}
|
|
690
689
|
}
|
|
@@ -692,14 +691,15 @@ declare module '@tiptap/core' {
|
|
|
692
691
|
|
|
693
692
|
declare module '@tiptap/core' {
|
|
694
693
|
interface Commands<ReturnType> {
|
|
695
|
-
|
|
694
|
+
video: {
|
|
696
695
|
/**
|
|
697
|
-
*
|
|
698
|
-
* @param options The tweet attributes
|
|
699
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
696
|
+
* Add an video
|
|
700
697
|
*/
|
|
701
|
-
|
|
702
|
-
|
|
698
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
699
|
+
/**
|
|
700
|
+
* Update an video
|
|
701
|
+
*/
|
|
702
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as O, useState as S, useEffect as B } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { a7 as z, a8 as N } from "./RichTextEditor-CRDKX-F8.js";
|
|
3
|
+
import { a9 as ve } from "./RichTextEditor-CRDKX-F8.js";
|
|
4
4
|
import { B as ke } from "./dom-dataset-2RXYq9wp.js";
|
|
5
5
|
import { E as f, P as p, a as y, z as L, D as C, b, B as R, F as k, S as P, T as M, g as T, C as w, G as D, H as V, N as x, m as A, I as H } from "./index-CXIIg9Sq.js";
|
|
6
6
|
import { ListItem as F } from "./ListItem.js";
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -1023,19 +1023,15 @@ declare module '@tiptap/core' {
|
|
|
1023
1023
|
|
|
1024
1024
|
declare module '@tiptap/core' {
|
|
1025
1025
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* Add an image gif
|
|
1029
|
-
*/
|
|
1030
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1026
|
+
indent: {
|
|
1031
1027
|
/**
|
|
1032
|
-
*
|
|
1028
|
+
* Set the indent attribute
|
|
1033
1029
|
*/
|
|
1034
|
-
|
|
1030
|
+
indent: () => ReturnType;
|
|
1035
1031
|
/**
|
|
1036
|
-
* Set
|
|
1032
|
+
* Set the outdent attribute
|
|
1037
1033
|
*/
|
|
1038
|
-
|
|
1034
|
+
outdent: () => ReturnType;
|
|
1039
1035
|
};
|
|
1040
1036
|
}
|
|
1041
1037
|
}
|
|
@@ -1043,15 +1039,19 @@ declare module '@tiptap/core' {
|
|
|
1043
1039
|
|
|
1044
1040
|
declare module '@tiptap/core' {
|
|
1045
1041
|
interface Commands<ReturnType> {
|
|
1046
|
-
|
|
1042
|
+
imageGifUpload: {
|
|
1047
1043
|
/**
|
|
1048
|
-
*
|
|
1044
|
+
* Add an image gif
|
|
1049
1045
|
*/
|
|
1050
|
-
|
|
1046
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1051
1047
|
/**
|
|
1052
|
-
*
|
|
1048
|
+
* Update an image gif
|
|
1053
1049
|
*/
|
|
1054
|
-
|
|
1050
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1051
|
+
/**
|
|
1052
|
+
* Set image alignment
|
|
1053
|
+
*/
|
|
1054
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
@@ -1127,15 +1127,14 @@ declare module '@tiptap/core' {
|
|
|
1127
1127
|
|
|
1128
1128
|
declare module '@tiptap/core' {
|
|
1129
1129
|
interface Commands<ReturnType> {
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* Add an video
|
|
1133
|
-
*/
|
|
1134
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1130
|
+
twitter: {
|
|
1135
1131
|
/**
|
|
1136
|
-
*
|
|
1132
|
+
* Insert a tweet
|
|
1133
|
+
* @param options The tweet attributes
|
|
1134
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1137
1135
|
*/
|
|
1138
|
-
|
|
1136
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1137
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1139
1138
|
};
|
|
1140
1139
|
}
|
|
1141
1140
|
}
|
|
@@ -1143,14 +1142,15 @@ declare module '@tiptap/core' {
|
|
|
1143
1142
|
|
|
1144
1143
|
declare module '@tiptap/core' {
|
|
1145
1144
|
interface Commands<ReturnType> {
|
|
1146
|
-
|
|
1145
|
+
video: {
|
|
1147
1146
|
/**
|
|
1148
|
-
*
|
|
1149
|
-
* @param options The tweet attributes
|
|
1150
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1147
|
+
* Add an video
|
|
1151
1148
|
*/
|
|
1152
|
-
|
|
1153
|
-
|
|
1149
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1150
|
+
/**
|
|
1151
|
+
* Update an video
|
|
1152
|
+
*/
|
|
1153
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -1023,19 +1023,15 @@ declare module '@tiptap/core' {
|
|
|
1023
1023
|
|
|
1024
1024
|
declare module '@tiptap/core' {
|
|
1025
1025
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* Add an image gif
|
|
1029
|
-
*/
|
|
1030
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1026
|
+
indent: {
|
|
1031
1027
|
/**
|
|
1032
|
-
*
|
|
1028
|
+
* Set the indent attribute
|
|
1033
1029
|
*/
|
|
1034
|
-
|
|
1030
|
+
indent: () => ReturnType;
|
|
1035
1031
|
/**
|
|
1036
|
-
* Set
|
|
1032
|
+
* Set the outdent attribute
|
|
1037
1033
|
*/
|
|
1038
|
-
|
|
1034
|
+
outdent: () => ReturnType;
|
|
1039
1035
|
};
|
|
1040
1036
|
}
|
|
1041
1037
|
}
|
|
@@ -1043,15 +1039,19 @@ declare module '@tiptap/core' {
|
|
|
1043
1039
|
|
|
1044
1040
|
declare module '@tiptap/core' {
|
|
1045
1041
|
interface Commands<ReturnType> {
|
|
1046
|
-
|
|
1042
|
+
imageGifUpload: {
|
|
1047
1043
|
/**
|
|
1048
|
-
*
|
|
1044
|
+
* Add an image gif
|
|
1049
1045
|
*/
|
|
1050
|
-
|
|
1046
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1051
1047
|
/**
|
|
1052
|
-
*
|
|
1048
|
+
* Update an image gif
|
|
1053
1049
|
*/
|
|
1054
|
-
|
|
1050
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1051
|
+
/**
|
|
1052
|
+
* Set image alignment
|
|
1053
|
+
*/
|
|
1054
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
@@ -1127,15 +1127,14 @@ declare module '@tiptap/core' {
|
|
|
1127
1127
|
|
|
1128
1128
|
declare module '@tiptap/core' {
|
|
1129
1129
|
interface Commands<ReturnType> {
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* Add an video
|
|
1133
|
-
*/
|
|
1134
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1130
|
+
twitter: {
|
|
1135
1131
|
/**
|
|
1136
|
-
*
|
|
1132
|
+
* Insert a tweet
|
|
1133
|
+
* @param options The tweet attributes
|
|
1134
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1137
1135
|
*/
|
|
1138
|
-
|
|
1136
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1137
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1139
1138
|
};
|
|
1140
1139
|
}
|
|
1141
1140
|
}
|
|
@@ -1143,14 +1142,15 @@ declare module '@tiptap/core' {
|
|
|
1143
1142
|
|
|
1144
1143
|
declare module '@tiptap/core' {
|
|
1145
1144
|
interface Commands<ReturnType> {
|
|
1146
|
-
|
|
1145
|
+
video: {
|
|
1147
1146
|
/**
|
|
1148
|
-
*
|
|
1149
|
-
* @param options The tweet attributes
|
|
1150
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1147
|
+
* Add an video
|
|
1151
1148
|
*/
|
|
1152
|
-
|
|
1153
|
-
|
|
1149
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1150
|
+
/**
|
|
1151
|
+
* Update an video
|
|
1152
|
+
*/
|
|
1153
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./RichTextEditor-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./RichTextEditor-ymQlnG9m.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=s(o),c=u.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),ref:t,...r}));c.displayName="Textarea";exports.Textarea=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import { d as o } from "./RichTextEditor-
|
|
3
|
+
import { d as o } from "./RichTextEditor-CRDKX-F8.js";
|
|
4
4
|
const x = c.forwardRef(
|
|
5
5
|
({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
6
6
|
"textarea",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reactjs-tiptap-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.9",
|
|
5
5
|
"packageManager": "pnpm@8.15.9",
|
|
6
6
|
"description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
|
|
7
7
|
"license": "MIT",
|
|
@@ -863,7 +863,6 @@
|
|
|
863
863
|
"react-colorful": "^5.6.1",
|
|
864
864
|
"react-image-crop": "^11.0.10",
|
|
865
865
|
"react-tweet": "^3.2.2",
|
|
866
|
-
"react-visibility-sensor": "^5.1.1",
|
|
867
866
|
"reactjs-signal": "^1.1.3",
|
|
868
867
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
869
868
|
"svg64": "^2.0.0",
|