reactjs-tiptap-editor 0.3.29 → 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.
Files changed (222) hide show
  1. package/lib/{ActionMenuButton-Cs9DM_16.js → ActionMenuButton-B6fitGKu.js} +1 -1
  2. package/lib/{ActionMenuButton-5Y8QcYxD.cjs → ActionMenuButton-wiDnIxE2.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +19 -19
  5. package/lib/Attachment.d.ts +19 -19
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +19 -19
  9. package/lib/Blockquote.d.ts +19 -19
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +19 -19
  13. package/lib/Bold.d.ts +19 -19
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +19 -19
  17. package/lib/BulletList.d.ts +19 -19
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +19 -19
  21. package/lib/Clear.d.ts +19 -19
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +19 -19
  25. package/lib/Code.d.ts +19 -19
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +19 -19
  29. package/lib/CodeBlock.d.ts +19 -19
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +19 -19
  33. package/lib/CodeView.d.ts +19 -19
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +19 -19
  37. package/lib/Color.d.ts +19 -19
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +19 -19
  40. package/lib/Document.d.ts +19 -19
  41. package/lib/{Drawer-BCmNLh31.js → Drawer-BKTU9CpU.js} +1 -1
  42. package/lib/{Drawer-DCAp7eZF.cjs → Drawer-CmoEF-Zg.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +19 -19
  45. package/lib/Drawer.d.ts +19 -19
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +19 -19
  49. package/lib/Emoji.d.ts +19 -19
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-CYPcjYZB.js → Excalidraw-CM74U5tG.js} +1 -1
  52. package/lib/{Excalidraw-BI50RQL-.cjs → Excalidraw-DAPP9qgY.cjs} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +19 -19
  55. package/lib/Excalidraw.d.ts +19 -19
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +19 -19
  59. package/lib/ExportPdf.d.ts +19 -19
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +19 -19
  63. package/lib/ExportWord.d.ts +19 -19
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +19 -19
  67. package/lib/FontFamily.d.ts +19 -19
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +19 -19
  71. package/lib/FontSize.d.ts +19 -19
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +19 -19
  75. package/lib/FormatPainter.d.ts +19 -19
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +19 -19
  79. package/lib/Heading.d.ts +19 -19
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +19 -19
  83. package/lib/Highlight.d.ts +19 -19
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +19 -19
  87. package/lib/History.d.ts +19 -19
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +19 -19
  91. package/lib/HorizontalRule.d.ts +19 -19
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +19 -19
  95. package/lib/Iframe.d.ts +19 -19
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +19 -19
  99. package/lib/Image.d.ts +19 -19
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +19 -19
  103. package/lib/ImageGif.d.ts +19 -19
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +19 -19
  107. package/lib/ImportWord.d.ts +19 -19
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +19 -19
  111. package/lib/Indent.d.ts +19 -19
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +19 -19
  115. package/lib/Italic.d.ts +19 -19
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +19 -19
  119. package/lib/Katex.d.ts +19 -19
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +19 -19
  123. package/lib/LineHeight.d.ts +19 -19
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +19 -19
  127. package/lib/Link.d.ts +19 -19
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +19 -19
  130. package/lib/ListItem.d.ts +19 -19
  131. package/lib/Mention.d.cts +19 -19
  132. package/lib/Mention.d.ts +19 -19
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +19 -19
  135. package/lib/Mermaid.d.ts +19 -19
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +19 -19
  139. package/lib/MoreMark.d.ts +19 -19
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +19 -19
  143. package/lib/MultiColumn.d.ts +19 -19
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +19 -19
  147. package/lib/OrderedList.d.ts +19 -19
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-e6q30rbV.js → RichTextEditor-BQN2eLD_.js} +3 -5
  150. package/lib/{RichTextEditor-DsUcQSbm.cjs → RichTextEditor-C8Sm1E6J.cjs} +1 -1
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +19 -19
  153. package/lib/SearchAndReplace.d.ts +19 -19
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +19 -19
  156. package/lib/Selection.d.ts +19 -19
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +19 -19
  159. package/lib/SlashCommand.d.ts +19 -19
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +19 -19
  163. package/lib/Strike.d.ts +19 -19
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +19 -19
  167. package/lib/SubAndSuperScript.d.ts +19 -19
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +19 -19
  171. package/lib/Table.d.ts +19 -19
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +19 -19
  175. package/lib/TableOfContent.d.ts +19 -19
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +19 -19
  179. package/lib/TaskList.d.ts +19 -19
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +19 -19
  183. package/lib/TextAlign.d.ts +19 -19
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +19 -19
  187. package/lib/TextBubble.d.ts +19 -19
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +19 -19
  191. package/lib/TextDirection.d.ts +19 -19
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +19 -19
  195. package/lib/TextUnderline.d.ts +19 -19
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +19 -19
  198. package/lib/TrailingNode.d.ts +19 -19
  199. package/lib/{Twitter-D2Osj8qP.cjs → Twitter-CL2pu4QM.cjs} +1 -1
  200. package/lib/{Twitter-Wb7cD3M-.js → Twitter-Dg6WWauX.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +19 -19
  203. package/lib/Twitter.d.ts +19 -19
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +19 -19
  207. package/lib/Video.d.ts +19 -19
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +19 -19
  211. package/lib/bubble-extra.d.ts +19 -19
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +19 -19
  215. package/lib/index.d.ts +19 -19
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +19 -19
  218. package/lib/locale-bundle.d.ts +19 -19
  219. package/lib/style.css +1 -1
  220. package/lib/{textarea-Csmx5x-_.js → textarea-BglwYF6b.js} +1 -1
  221. package/lib/{textarea-BVbzd9-k.cjs → textarea-D5WVZMgt.cjs} +1 -1
  222. package/package.json +1 -1
@@ -59,8 +59,8 @@ declare module '@tiptap/core' {
59
59
 
60
60
  declare module '@tiptap/core' {
61
61
  interface Commands<ReturnType> {
62
- exportPdf: {
63
- exportToPdf: () => ReturnType;
62
+ excalidraw: {
63
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
64
64
  };
65
65
  }
66
66
  }
@@ -68,8 +68,8 @@ declare module '@tiptap/core' {
68
68
 
69
69
  declare module '@tiptap/core' {
70
70
  interface Commands<ReturnType> {
71
- excalidraw: {
72
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
71
+ exportPdf: {
72
+ exportToPdf: () => ReturnType;
73
73
  };
74
74
  }
75
75
  }
@@ -111,21 +111,6 @@ declare module '@tiptap/core' {
111
111
  }
112
112
 
113
113
 
114
- declare module '@tiptap/core' {
115
- interface Commands<ReturnType> {
116
- iframe: {
117
- /**
118
- * Add an iframe
119
- */
120
- setIframe: (options: {
121
- src: string;
122
- service: string;
123
- }) => ReturnType;
124
- };
125
- }
126
- }
127
-
128
-
129
114
  declare module '@tiptap/core' {
130
115
  interface Commands<ReturnType> {
131
116
  imageUpload: {
@@ -146,6 +131,21 @@ declare module '@tiptap/core' {
146
131
  }
147
132
 
148
133
 
134
+ declare module '@tiptap/core' {
135
+ interface Commands<ReturnType> {
136
+ iframe: {
137
+ /**
138
+ * Add an iframe
139
+ */
140
+ setIframe: (options: {
141
+ src: string;
142
+ service: string;
143
+ }) => ReturnType;
144
+ };
145
+ }
146
+ }
147
+
148
+
149
149
  declare module '@tiptap/core' {
150
150
  interface Commands<ReturnType> {
151
151
  imageGifUpload: {
@@ -1,7 +1,7 @@
1
1
  import { E as b } from "./index-DI9T3iLd.js";
2
2
  import { jsxs as h, jsx as n } from "react/jsx-runtime";
3
3
  import { useMemo as g } from "react";
4
- import { P as D, m as v, A as y, k as T, n as A, T as C, a as w, r as M, b as P, s as z } from "./RichTextEditor-e6q30rbV.js";
4
+ import { P as D, m as v, A as y, k as T, n as A, T as C, a as w, r as M, b as P, s as z } from "./RichTextEditor-BQN2eLD_.js";
5
5
  function L(t) {
6
6
  var c;
7
7
  const i = g(() => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-ByRfqzMr.cjs"),o=require("./RichTextEditor-DsUcQSbm.cjs"),s=n.Mark.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",n.mergeAttributes(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),d=s.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button({editor:t,t:r,extension:i}){return{component:o.ActionButton,componentProps:{action:()=>t.commands.toggleUnderline(),isActive:()=>t.isActive("underline")||!1,disabled:!1,icon:"Underline",shortcutKeys:i.options.shortcutKeys??["mod","U"],tooltip:r("editor.underline.tooltip")}}}}}});exports.TextUnderline=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-ByRfqzMr.cjs"),o=require("./RichTextEditor-C8Sm1E6J.cjs"),s=n.Mark.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",n.mergeAttributes(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),d=s.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button({editor:t,t:r,extension:i}){return{component:o.ActionButton,componentProps:{action:()=>t.commands.toggleUnderline(),isActive:()=>t.isActive("underline")||!1,disabled:!1,icon:"Underline",shortcutKeys:i.options.shortcutKeys??["mod","U"],tooltip:r("editor.underline.tooltip")}}}}}});exports.TextUnderline=d;
@@ -134,8 +134,8 @@ declare module '@tiptap/core' {
134
134
 
135
135
  declare module '@tiptap/core' {
136
136
  interface Commands<ReturnType> {
137
- exportPdf: {
138
- exportToPdf: () => ReturnType;
137
+ excalidraw: {
138
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
139
139
  };
140
140
  }
141
141
  }
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
143
143
 
144
144
  declare module '@tiptap/core' {
145
145
  interface Commands<ReturnType> {
146
- excalidraw: {
147
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
146
+ exportPdf: {
147
+ exportToPdf: () => ReturnType;
148
148
  };
149
149
  }
150
150
  }
@@ -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: {
@@ -134,8 +134,8 @@ declare module '@tiptap/core' {
134
134
 
135
135
  declare module '@tiptap/core' {
136
136
  interface Commands<ReturnType> {
137
- exportPdf: {
138
- exportToPdf: () => ReturnType;
137
+ excalidraw: {
138
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
139
139
  };
140
140
  }
141
141
  }
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
143
143
 
144
144
  declare module '@tiptap/core' {
145
145
  interface Commands<ReturnType> {
146
- excalidraw: {
147
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
146
+ exportPdf: {
147
+ exportToPdf: () => ReturnType;
148
148
  };
149
149
  }
150
150
  }
@@ -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: {
@@ -1,5 +1,5 @@
1
1
  import { M as o, m as s } from "./index-DI9T3iLd.js";
2
- import { A as i } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as i } from "./RichTextEditor-BQN2eLD_.js";
3
3
  const d = o.create({
4
4
  name: "underline",
5
5
  addOptions() {
@@ -69,8 +69,8 @@ declare module '@tiptap/core' {
69
69
 
70
70
  declare module '@tiptap/core' {
71
71
  interface Commands<ReturnType> {
72
- exportPdf: {
73
- exportToPdf: () => ReturnType;
72
+ excalidraw: {
73
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
74
74
  };
75
75
  }
76
76
  }
@@ -78,8 +78,8 @@ declare module '@tiptap/core' {
78
78
 
79
79
  declare module '@tiptap/core' {
80
80
  interface Commands<ReturnType> {
81
- excalidraw: {
82
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
81
+ exportPdf: {
82
+ exportToPdf: () => ReturnType;
83
83
  };
84
84
  }
85
85
  }
@@ -121,21 +121,6 @@ declare module '@tiptap/core' {
121
121
  }
122
122
 
123
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
124
  declare module '@tiptap/core' {
140
125
  interface Commands<ReturnType> {
141
126
  imageUpload: {
@@ -156,6 +141,21 @@ declare module '@tiptap/core' {
156
141
  }
157
142
 
158
143
 
144
+ declare module '@tiptap/core' {
145
+ interface Commands<ReturnType> {
146
+ iframe: {
147
+ /**
148
+ * Add an iframe
149
+ */
150
+ setIframe: (options: {
151
+ src: string;
152
+ service: string;
153
+ }) => ReturnType;
154
+ };
155
+ }
156
+ }
157
+
158
+
159
159
  declare module '@tiptap/core' {
160
160
  interface Commands<ReturnType> {
161
161
  imageGifUpload: {
@@ -69,8 +69,8 @@ declare module '@tiptap/core' {
69
69
 
70
70
  declare module '@tiptap/core' {
71
71
  interface Commands<ReturnType> {
72
- exportPdf: {
73
- exportToPdf: () => ReturnType;
72
+ excalidraw: {
73
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
74
74
  };
75
75
  }
76
76
  }
@@ -78,8 +78,8 @@ declare module '@tiptap/core' {
78
78
 
79
79
  declare module '@tiptap/core' {
80
80
  interface Commands<ReturnType> {
81
- excalidraw: {
82
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
81
+ exportPdf: {
82
+ exportToPdf: () => ReturnType;
83
83
  };
84
84
  }
85
85
  }
@@ -121,21 +121,6 @@ declare module '@tiptap/core' {
121
121
  }
122
122
 
123
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
124
  declare module '@tiptap/core' {
140
125
  interface Commands<ReturnType> {
141
126
  imageUpload: {
@@ -156,6 +141,21 @@ declare module '@tiptap/core' {
156
141
  }
157
142
 
158
143
 
144
+ declare module '@tiptap/core' {
145
+ interface Commands<ReturnType> {
146
+ iframe: {
147
+ /**
148
+ * Add an iframe
149
+ */
150
+ setIframe: (options: {
151
+ src: string;
152
+ service: string;
153
+ }) => ReturnType;
154
+ };
155
+ }
156
+ }
157
+
158
+
159
159
  declare module '@tiptap/core' {
160
160
  interface Commands<ReturnType> {
161
161
  imageGifUpload: {
@@ -1,4 +1,4 @@
1
- "use strict";const je=require("./index-ByRfqzMr.cjs"),M=require("./dom-dataset-Byuf1YmW.cjs"),n=require("react/jsx-runtime"),x=require("react"),H=require("./RichTextEditor-DsUcQSbm.cjs"),qt=require("./index-D_A0TBRA.cjs"),Dt="_verified_lvyh0_1",We={verified:Dt},$t=()=>n.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsx("g",{children:n.jsx("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),At=()=>n.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsxs("g",{children:[n.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[n.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),n.jsx("stop",{offset:".539",stopColor:"#cd8105"}),n.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),n.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),n.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),n.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[n.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),n.jsx("stop",{offset:".406",stopColor:"#e2b719"}),n.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),n.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[n.jsx("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),n.jsx("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),n.jsx("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),Vt=()=>n.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsx("g",{children:n.jsx("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),Mt="_root_98iqw_1",Bt="_article_98iqw_21",et={root:Mt,article:Bt},Fe=({className:e,children:t})=>n.jsx("div",{className:M.clsx("react-tweet-theme",et.root,e),children:n.jsx("article",{className:et.article,children:t})}),mt=e=>n.jsx("img",{...e}),Wt="_header_nqq4j_1",Ft="_avatar_nqq4j_11",Pt="_avatarOverflow_nqq4j_16",Ut="_avatarSquare_nqq4j_23",Ht="_avatarShadow_nqq4j_26",zt="_author_nqq4j_37",Gt="_authorLink_nqq4j_44",Kt="_authorVerified_nqq4j_53",Xt="_authorLinkText_nqq4j_56",Qt="_authorMeta_nqq4j_63",Jt="_authorFollow_nqq4j_66",Yt="_username_nqq4j_69",Zt="_follow_nqq4j_74",en="_separator_nqq4j_82",tn="_brand_nqq4j_86",nn="_twitterIcon_nqq4j_90",b={header:Wt,avatar:Ft,avatarOverflow:Pt,avatarSquare:Ut,avatarShadow:Ht,author:zt,authorLink:Gt,authorVerified:Kt,authorLinkText:Xt,authorMeta:Qt,authorFollow:Jt,username:Yt,follow:Zt,separator:en,brand:tn,twitterIcon:nn},rn="_verifiedOld_lcna5_1",sn="_verifiedBlue_lcna5_4",on="_verifiedGovernment_lcna5_7",we={verifiedOld:rn,verifiedBlue:sn,verifiedGovernment:on},pt=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let s=n.jsx($t,{}),o=we.verifiedBlue;if(r)switch(e.is_blue_verified||(o=we.verifiedOld),e.verified_type){case"Government":s=n.jsx(Vt,{}),o=we.verifiedGovernment;break;case"Business":s=n.jsx(At,{}),o=null;break}return r?n.jsx("div",{className:M.clsx(t,o),children:s}):null},an=({tweet:e,components:t})=>{var r;const s=(r=t==null?void 0:t.AvatarImg)!=null?r:mt,{user:o}=e;return n.jsxs("div",{className:b.header,children:[n.jsxs("a",{href:e.url,className:b.avatar,target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:M.clsx(b.avatarOverflow,o.profile_image_shape==="Square"&&b.avatarSquare),children:n.jsx(s,{src:o.profile_image_url_https,alt:o.name,width:48,height:48})}),n.jsx("div",{className:b.avatarOverflow,children:n.jsx("div",{className:b.avatarShadow})})]}),n.jsxs("div",{className:b.author,children:[n.jsxs("a",{href:e.url,className:b.authorLink,target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:b.authorLinkText,children:n.jsx("span",{title:o.name,children:o.name})}),n.jsx(pt,{user:o,className:b.authorVerified})]}),n.jsxs("div",{className:b.authorMeta,children:[n.jsx("a",{href:e.url,className:b.username,target:"_blank",rel:"noopener noreferrer",children:n.jsxs("span",{title:`@${o.screen_name}`,children:["@",o.screen_name]})}),n.jsxs("div",{className:b.authorFollow,children:[n.jsx("span",{className:b.separator,children:"·"}),n.jsx("a",{href:o.follow_url,className:b.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),n.jsx("a",{href:e.url,className:b.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:n.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:b.twitterIcon,children:n.jsx("g",{children:n.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},cn="_root_1ec15_1",ln={root:cn},un=({tweet:e})=>n.jsxs("a",{href:e.in_reply_to_url,className:ln.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),dn="_root_eihfa_1",fn={root:dn},_n=({href:e,children:t})=>n.jsx("a",{href:e,className:fn.root,target:"_blank",rel:"noopener noreferrer nofollow",children:t}),hn="_root_1xq52_1",mn={root:hn},pn=({tweet:e})=>n.jsx("p",{className:mn.root,lang:e.lang,dir:"auto",children:e.entities.map((t,r)=>{switch(t.type){case"hashtag":case"mention":case"url":case"symbol":return n.jsx(_n,{href:t.href,children:t.text},r);case"media":return;default:return n.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r)}})}),tt=e=>`https://x.com/${e.user.screen_name}/status/${e.id_str}`,xt=e=>`https://x.com/${typeof e=="string"?e:e.user.screen_name}`,xn=e=>`https://x.com/intent/like?tweet_id=${e.id_str}`,vn=e=>`https://x.com/intent/tweet?in_reply_to=${e.id_str}`,gn=e=>`https://x.com/intent/follow?screen_name=${e.user.screen_name}`,jn=e=>`https://x.com/hashtag/${e.text}`,wn=e=>`https://x.com/search?q=%24${e.text}`,yn=e=>`https://x.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,vt=(e,t)=>{const r=new URL(e.media_url_https),s=r.pathname.split(".").pop();return s?(r.pathname=r.pathname.replace(`.${s}`,""),r.searchParams.set("format",s),r.searchParams.set("name",t),r.toString()):e.media_url_https},Sn=e=>{const{variants:t}=e.video_info;return t.filter(s=>s.content_type==="video/mp4").sort((s,o)=>{var i,a;return((i=o.bitrate)!=null?i:0)-((a=s.bitrate)!=null?a:0)})},Tn=e=>{const t=Sn(e);return t.length>1?t[1]:t[0]},Ie=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function nt(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return ae(r,"hashtag",e.entities.hashtags),ae(r,"mention",e.entities.user_mentions),ae(r,"url",e.entities.urls),ae(r,"symbol",e.entities.symbols),e.entities.media&&ae(r,"media",e.entities.media),bn(e,r),r.map(s=>{const o=t.slice(s.indices[0],s.indices[1]).join("");switch(s.type){case"hashtag":return Object.assign(s,{href:jn(s),text:o});case"mention":return Object.assign(s,{href:xt(s.screen_name),text:o});case"url":case"media":return Object.assign(s,{href:s.expanded_url,text:s.display_url});case"symbol":return Object.assign(s,{href:wn(s),text:o});default:return Object.assign(s,{text:o})}})}function ae(e,t,r){for(const s of r)for(const[o,i]of e.entries()){if(i.indices[0]>s.indices[0]||i.indices[1]<s.indices[1])continue;const a=[{...s,type:t}];i.indices[0]<s.indices[0]&&a.unshift({indices:[i.indices[0],s.indices[0]],type:"text"}),i.indices[1]>s.indices[1]&&a.push({indices:[s.indices[1],i.indices[1]],type:"text"}),e.splice(o,1,...a);break}}function bn(e,t){e.entities.media&&e.entities.media[0].indices[0]<e.display_text_range[1]&&(e.display_text_range[1]=e.entities.media[0].indices[0]);const r=t.at(-1);r&&r.indices[1]>e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}const En=e=>({...e,url:tt(e),user:{...e.user,url:xt(e),follow_url:gn(e)},like_url:xn(e),reply_url:vn(e),in_reply_to_url:e.in_reply_to_screen_name?yn(e):void 0,entities:nt(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:tt(e.quoted_tweet),entities:nt(e.quoted_tweet)}:void 0}),Rn="_root_g9tkv_1",On="_rounded_g9tkv_6",Nn="_mediaWrapper_g9tkv_10",Ln="_grid2Columns_g9tkv_17",kn="_grid3_g9tkv_20",In="_grid2x2_g9tkv_23",Cn="_mediaContainer_g9tkv_26",qn="_mediaLink_g9tkv_34",Dn="_skeleton_g9tkv_38",$n="_image_g9tkv_43",C={root:Rn,rounded:On,mediaWrapper:Nn,grid2Columns:Ln,grid3:kn,grid2x2:In,mediaContainer:Cn,mediaLink:qn,skeleton:Dn,image:$n},An="_anchor_fp31d_1",Vn="_videoButton_fp31d_17",Mn="_videoButtonIcon_fp31d_35",Bn="_watchOnTwitter_fp31d_44",Wn="_viewReplies_fp31d_60",se={anchor:An,videoButton:Vn,videoButtonIcon:Mn,watchOnTwitter:Bn,viewReplies:Wn},Fn=({tweet:e,media:t})=>{const[r,s]=x.useState(!0),[o,i]=x.useState(!1),[a,d]=x.useState(!1),p=Tn(t);let _=0;return n.jsxs(n.Fragment,{children:[n.jsx("video",{className:C.image,poster:vt(t,"small"),controls:!r,playsInline:!0,preload:"none",tabIndex:r?-1:0,onPlay:()=>{_&&window.clearTimeout(_),o||i(!0),a&&d(!1)},onPause:()=>{_&&window.clearTimeout(_),_=window.setTimeout(()=>{o&&i(!1),_=0},100)},onEnded:()=>{d(!0)},children:n.jsx("source",{src:p.url,type:p.content_type})}),r&&n.jsx("button",{type:"button",className:se.videoButton,"aria-label":"View video on X",onClick:w=>{const u=w.currentTarget.previousSibling;w.preventDefault(),s(!1),u.load(),u.play().then(()=>{i(!0),u.focus()}).catch(h=>{console.error("Error playing video:",h),s(!0),i(!1)})},children:n.jsx("svg",{viewBox:"0 0 24 24",className:se.videoButtonIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!o&&!a&&n.jsx("div",{className:se.watchOnTwitter,children:n.jsx("a",{href:e.url,className:se.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on X":"Continue watching on X"})}),a&&n.jsx("a",{href:e.url,className:M.clsx(se.anchor,se.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Pn=e=>n.jsx("img",{...e}),rt=(e,t)=>{let r=56.25;return t===1&&(r=100/e.original_info.width*e.original_info.height),t===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},gt=({tweet:e,components:t,quoted:r})=>{var s,o,i;const a=(i=(s=e.mediaDetails)==null?void 0:s.length)!=null?i:0;var d;const p=(d=t==null?void 0:t.MediaImg)!=null?d:Pn;return n.jsx("div",{className:M.clsx(C.root,!r&&C.rounded),children:n.jsx("div",{className:M.clsx(C.mediaWrapper,a>1&&C.grid2Columns,a===3&&C.grid3,a>4&&C.grid2x2),children:(o=e.mediaDetails)==null?void 0:o.map(_=>n.jsx(x.Fragment,{children:_.type==="photo"?n.jsxs("a",{href:e.url,className:M.clsx(C.mediaContainer,C.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:C.skeleton,style:rt(_,a)}),n.jsx(p,{src:vt(_,"small"),alt:_.ext_alt_text||"Image",className:C.image,draggable:!0})]},_.media_url_https):n.jsxs("div",{className:C.mediaContainer,children:[n.jsx("div",{className:C.skeleton,style:rt(_,a)}),n.jsx(Fn,{tweet:e,media:_})]},_.media_url_https)},_.media_url_https))})})},Un={hour:"numeric",minute:"2-digit",hour12:!0,weekday:"short",month:"short",day:"numeric",year:"numeric"},Hn=new Intl.DateTimeFormat("en-US",Un),zn=e=>{const t={};for(const r of e)t[r.type]=r.value;return t},Gn=e=>{const t=zn(Hn.formatToParts(e)),r=`${t.hour}:${t.minute} ${t.dayPeriod}`,s=`${t.month} ${t.day}, ${t.year}`;return`${r} · ${s}`},Kn="_root_i24yn_1",Xn={root:Kn},Qn=({tweet:e})=>{const t=new Date(e.created_at),r=Gn(t);return n.jsx("a",{className:Xn.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":r,children:n.jsx("time",{dateTime:t.toISOString(),children:r})})},Jn="_info_19qcj_1",Yn="_infoLink_19qcj_10",Zn="_infoIcon_19qcj_30",ye={info:Jn,infoLink:Yn,infoIcon:Zn},er=({tweet:e})=>n.jsxs("div",{className:ye.info,children:[n.jsx(Qn,{tweet:e}),n.jsx("a",{className:ye.infoLink,href:"https://help.x.com/en/x-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:n.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:ye.infoIcon,children:n.jsx("g",{children:n.jsx("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]}),tr="_actions_n2anf_1",nr="_like_n2anf_13",rr="_reply_n2anf_14",sr="_copy_n2anf_15",or="_likeIconWrapper_n2anf_27",ir="_likeCount_n2anf_30",ar="_replyIconWrapper_n2anf_35",cr="_copyIconWrapper_n2anf_36",lr="_likeIcon_n2anf_27",ur="_replyIcon_n2anf_35",dr="_copyIcon_n2anf_36",fr="_replyText_n2anf_56",_r="_copyText_n2anf_57",L={actions:tr,like:nr,reply:rr,copy:sr,likeIconWrapper:or,likeCount:ir,replyIconWrapper:ar,copyIconWrapper:cr,likeIcon:lr,replyIcon:ur,copyIcon:dr,replyText:fr,copyText:_r},hr=({tweet:e})=>{const[t,r]=x.useState(!1),s=()=>{navigator.clipboard.writeText(e.url),r(!0)};return x.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},6e3);return()=>clearTimeout(o)}},[t]),n.jsxs("button",{type:"button",className:L.copy,"aria-label":"Copy link",onClick:s,children:[n.jsx("div",{className:L.copyIconWrapper,children:t?n.jsx("svg",{viewBox:"0 0 24 24",className:L.copyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):n.jsx("svg",{viewBox:"0 0 24 24",className:L.copyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),n.jsx("span",{className:L.copyText,children:t?"Copied!":"Copy link"})]})},mr=({tweet:e})=>{const t=Ie(e.favorite_count);return n.jsxs("div",{className:L.actions,children:[n.jsxs("a",{className:L.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[n.jsx("div",{className:L.likeIconWrapper,children:n.jsx("svg",{viewBox:"0 0 24 24",className:L.likeIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),n.jsx("span",{className:L.likeCount,children:t})]}),n.jsxs("a",{className:L.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[n.jsx("div",{className:L.replyIconWrapper,children:n.jsx("svg",{viewBox:"0 0 24 24",className:L.replyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),n.jsx("span",{className:L.replyText,children:"Reply"})]}),n.jsx(hr,{tweet:e})]})},pr="_replies_1cutb_1",xr="_link_1cutb_4",vr="_text_1cutb_23",Se={replies:pr,link:xr,text:vr},gr=({tweet:e})=>n.jsx("div",{className:Se.replies,children:n.jsx("a",{className:Se.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:n.jsx("span",{className:Se.text,children:e.conversation_count===0?"Read more on X":e.conversation_count===1?`Read ${Ie(e.conversation_count)} reply`:`Read ${Ie(e.conversation_count)} replies`})})}),jr="_root_q5799_1",wr="_article_q5799_16",st={root:jr,article:wr},yr=({tweet:e,children:t})=>n.jsx("div",{className:st.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:n.jsx("article",{className:st.article,children:t})}),Sr="_header_r31i5_1",Tr="_avatar_r31i5_11",br="_avatarSquare_r31i5_17",Er="_author_r31i5_21",Rr="_authorText_r31i5_26",Or="_username_r31i5_33",Q={header:Sr,avatar:Tr,avatarSquare:br,author:Er,authorText:Rr,username:Or},Nr=({tweet:e})=>{const{user:t}=e;return n.jsxs("div",{className:Q.header,children:[n.jsx("a",{href:e.url,className:Q.avatar,target:"_blank",rel:"noopener noreferrer",children:n.jsx("div",{className:M.clsx(Q.avatarOverflow,t.profile_image_shape==="Square"&&Q.avatarSquare),children:n.jsx(mt,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),n.jsxs("div",{className:Q.author,children:[n.jsx("div",{className:Q.authorText,children:n.jsx("span",{title:t.name,children:t.name})}),n.jsx(pt,{user:t}),n.jsx("div",{className:Q.username,children:n.jsxs("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},Lr="_root_175ot_1",kr={root:Lr},Ir=({tweet:e})=>n.jsx("p",{className:kr.root,lang:e.lang,dir:"auto",children:e.entities.map((t,r)=>n.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r))}),Cr=({tweet:e})=>{var t;return n.jsxs(yr,{tweet:e,children:[n.jsx(Nr,{tweet:e}),n.jsx(Ir,{tweet:e}),(t=e.mediaDetails)!=null&&t.length?n.jsx(gt,{quoted:!0,tweet:e}):null]})},qr=({tweet:e,components:t})=>{var r;const s=x.useMemo(()=>En(e),[e]);return n.jsxs(Fe,{children:[n.jsx(an,{tweet:s,components:t}),s.in_reply_to_status_id_str&&n.jsx(un,{tweet:s}),n.jsx(pn,{tweet:s}),(r=s.mediaDetails)!=null&&r.length?n.jsx(gt,{tweet:s,components:t}):null,s.quoted_tweet&&n.jsx(Cr,{tweet:s.quoted_tweet}),n.jsx(er,{tweet:s}),n.jsx(mr,{tweet:s}),n.jsx(gr,{tweet:s})]})},Dr="_root_16yxa_1",$r={root:Dr},Ar=e=>n.jsx(Fe,{children:n.jsxs("div",{className:$r.root,children:[n.jsx("h3",{children:"Tweet not found"}),n.jsx("p",{children:"The embedded tweet could not be found…"})]})}),Vr="_skeleton_oi7hr_1",Mr={skeleton:Vr},_e=({style:e})=>n.jsx("span",{className:Mr.skeleton,style:e}),Br="_root_17qqv_1",Wr={root:Br},Fr=()=>n.jsxs(Fe,{className:Wr.root,children:[n.jsx(_e,{style:{height:"3rem",marginBottom:"0.75rem"}}),n.jsx(_e,{style:{height:"6rem",margin:"0.5rem 0"}}),n.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),n.jsx(_e,{style:{height:"2rem"}}),n.jsx(_e,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]});var he={exports:{}},Te={};/**
1
+ "use strict";const je=require("./index-ByRfqzMr.cjs"),M=require("./dom-dataset-Byuf1YmW.cjs"),n=require("react/jsx-runtime"),x=require("react"),H=require("./RichTextEditor-C8Sm1E6J.cjs"),qt=require("./index-D_A0TBRA.cjs"),Dt="_verified_lvyh0_1",We={verified:Dt},$t=()=>n.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsx("g",{children:n.jsx("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),At=()=>n.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsxs("g",{children:[n.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[n.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),n.jsx("stop",{offset:".539",stopColor:"#cd8105"}),n.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),n.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),n.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),n.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[n.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),n.jsx("stop",{offset:".406",stopColor:"#e2b719"}),n.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),n.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[n.jsx("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),n.jsx("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),n.jsx("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),Vt=()=>n.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsx("g",{children:n.jsx("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),Mt="_root_98iqw_1",Bt="_article_98iqw_21",et={root:Mt,article:Bt},Fe=({className:e,children:t})=>n.jsx("div",{className:M.clsx("react-tweet-theme",et.root,e),children:n.jsx("article",{className:et.article,children:t})}),mt=e=>n.jsx("img",{...e}),Wt="_header_nqq4j_1",Ft="_avatar_nqq4j_11",Pt="_avatarOverflow_nqq4j_16",Ut="_avatarSquare_nqq4j_23",Ht="_avatarShadow_nqq4j_26",zt="_author_nqq4j_37",Gt="_authorLink_nqq4j_44",Kt="_authorVerified_nqq4j_53",Xt="_authorLinkText_nqq4j_56",Qt="_authorMeta_nqq4j_63",Jt="_authorFollow_nqq4j_66",Yt="_username_nqq4j_69",Zt="_follow_nqq4j_74",en="_separator_nqq4j_82",tn="_brand_nqq4j_86",nn="_twitterIcon_nqq4j_90",b={header:Wt,avatar:Ft,avatarOverflow:Pt,avatarSquare:Ut,avatarShadow:Ht,author:zt,authorLink:Gt,authorVerified:Kt,authorLinkText:Xt,authorMeta:Qt,authorFollow:Jt,username:Yt,follow:Zt,separator:en,brand:tn,twitterIcon:nn},rn="_verifiedOld_lcna5_1",sn="_verifiedBlue_lcna5_4",on="_verifiedGovernment_lcna5_7",we={verifiedOld:rn,verifiedBlue:sn,verifiedGovernment:on},pt=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let s=n.jsx($t,{}),o=we.verifiedBlue;if(r)switch(e.is_blue_verified||(o=we.verifiedOld),e.verified_type){case"Government":s=n.jsx(Vt,{}),o=we.verifiedGovernment;break;case"Business":s=n.jsx(At,{}),o=null;break}return r?n.jsx("div",{className:M.clsx(t,o),children:s}):null},an=({tweet:e,components:t})=>{var r;const s=(r=t==null?void 0:t.AvatarImg)!=null?r:mt,{user:o}=e;return n.jsxs("div",{className:b.header,children:[n.jsxs("a",{href:e.url,className:b.avatar,target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:M.clsx(b.avatarOverflow,o.profile_image_shape==="Square"&&b.avatarSquare),children:n.jsx(s,{src:o.profile_image_url_https,alt:o.name,width:48,height:48})}),n.jsx("div",{className:b.avatarOverflow,children:n.jsx("div",{className:b.avatarShadow})})]}),n.jsxs("div",{className:b.author,children:[n.jsxs("a",{href:e.url,className:b.authorLink,target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:b.authorLinkText,children:n.jsx("span",{title:o.name,children:o.name})}),n.jsx(pt,{user:o,className:b.authorVerified})]}),n.jsxs("div",{className:b.authorMeta,children:[n.jsx("a",{href:e.url,className:b.username,target:"_blank",rel:"noopener noreferrer",children:n.jsxs("span",{title:`@${o.screen_name}`,children:["@",o.screen_name]})}),n.jsxs("div",{className:b.authorFollow,children:[n.jsx("span",{className:b.separator,children:"·"}),n.jsx("a",{href:o.follow_url,className:b.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),n.jsx("a",{href:e.url,className:b.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:n.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:b.twitterIcon,children:n.jsx("g",{children:n.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},cn="_root_1ec15_1",ln={root:cn},un=({tweet:e})=>n.jsxs("a",{href:e.in_reply_to_url,className:ln.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),dn="_root_eihfa_1",fn={root:dn},_n=({href:e,children:t})=>n.jsx("a",{href:e,className:fn.root,target:"_blank",rel:"noopener noreferrer nofollow",children:t}),hn="_root_1xq52_1",mn={root:hn},pn=({tweet:e})=>n.jsx("p",{className:mn.root,lang:e.lang,dir:"auto",children:e.entities.map((t,r)=>{switch(t.type){case"hashtag":case"mention":case"url":case"symbol":return n.jsx(_n,{href:t.href,children:t.text},r);case"media":return;default:return n.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r)}})}),tt=e=>`https://x.com/${e.user.screen_name}/status/${e.id_str}`,xt=e=>`https://x.com/${typeof e=="string"?e:e.user.screen_name}`,xn=e=>`https://x.com/intent/like?tweet_id=${e.id_str}`,vn=e=>`https://x.com/intent/tweet?in_reply_to=${e.id_str}`,gn=e=>`https://x.com/intent/follow?screen_name=${e.user.screen_name}`,jn=e=>`https://x.com/hashtag/${e.text}`,wn=e=>`https://x.com/search?q=%24${e.text}`,yn=e=>`https://x.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,vt=(e,t)=>{const r=new URL(e.media_url_https),s=r.pathname.split(".").pop();return s?(r.pathname=r.pathname.replace(`.${s}`,""),r.searchParams.set("format",s),r.searchParams.set("name",t),r.toString()):e.media_url_https},Sn=e=>{const{variants:t}=e.video_info;return t.filter(s=>s.content_type==="video/mp4").sort((s,o)=>{var i,a;return((i=o.bitrate)!=null?i:0)-((a=s.bitrate)!=null?a:0)})},Tn=e=>{const t=Sn(e);return t.length>1?t[1]:t[0]},Ie=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function nt(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return ae(r,"hashtag",e.entities.hashtags),ae(r,"mention",e.entities.user_mentions),ae(r,"url",e.entities.urls),ae(r,"symbol",e.entities.symbols),e.entities.media&&ae(r,"media",e.entities.media),bn(e,r),r.map(s=>{const o=t.slice(s.indices[0],s.indices[1]).join("");switch(s.type){case"hashtag":return Object.assign(s,{href:jn(s),text:o});case"mention":return Object.assign(s,{href:xt(s.screen_name),text:o});case"url":case"media":return Object.assign(s,{href:s.expanded_url,text:s.display_url});case"symbol":return Object.assign(s,{href:wn(s),text:o});default:return Object.assign(s,{text:o})}})}function ae(e,t,r){for(const s of r)for(const[o,i]of e.entries()){if(i.indices[0]>s.indices[0]||i.indices[1]<s.indices[1])continue;const a=[{...s,type:t}];i.indices[0]<s.indices[0]&&a.unshift({indices:[i.indices[0],s.indices[0]],type:"text"}),i.indices[1]>s.indices[1]&&a.push({indices:[s.indices[1],i.indices[1]],type:"text"}),e.splice(o,1,...a);break}}function bn(e,t){e.entities.media&&e.entities.media[0].indices[0]<e.display_text_range[1]&&(e.display_text_range[1]=e.entities.media[0].indices[0]);const r=t.at(-1);r&&r.indices[1]>e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}const En=e=>({...e,url:tt(e),user:{...e.user,url:xt(e),follow_url:gn(e)},like_url:xn(e),reply_url:vn(e),in_reply_to_url:e.in_reply_to_screen_name?yn(e):void 0,entities:nt(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:tt(e.quoted_tweet),entities:nt(e.quoted_tweet)}:void 0}),Rn="_root_g9tkv_1",On="_rounded_g9tkv_6",Nn="_mediaWrapper_g9tkv_10",Ln="_grid2Columns_g9tkv_17",kn="_grid3_g9tkv_20",In="_grid2x2_g9tkv_23",Cn="_mediaContainer_g9tkv_26",qn="_mediaLink_g9tkv_34",Dn="_skeleton_g9tkv_38",$n="_image_g9tkv_43",C={root:Rn,rounded:On,mediaWrapper:Nn,grid2Columns:Ln,grid3:kn,grid2x2:In,mediaContainer:Cn,mediaLink:qn,skeleton:Dn,image:$n},An="_anchor_fp31d_1",Vn="_videoButton_fp31d_17",Mn="_videoButtonIcon_fp31d_35",Bn="_watchOnTwitter_fp31d_44",Wn="_viewReplies_fp31d_60",se={anchor:An,videoButton:Vn,videoButtonIcon:Mn,watchOnTwitter:Bn,viewReplies:Wn},Fn=({tweet:e,media:t})=>{const[r,s]=x.useState(!0),[o,i]=x.useState(!1),[a,d]=x.useState(!1),p=Tn(t);let _=0;return n.jsxs(n.Fragment,{children:[n.jsx("video",{className:C.image,poster:vt(t,"small"),controls:!r,playsInline:!0,preload:"none",tabIndex:r?-1:0,onPlay:()=>{_&&window.clearTimeout(_),o||i(!0),a&&d(!1)},onPause:()=>{_&&window.clearTimeout(_),_=window.setTimeout(()=>{o&&i(!1),_=0},100)},onEnded:()=>{d(!0)},children:n.jsx("source",{src:p.url,type:p.content_type})}),r&&n.jsx("button",{type:"button",className:se.videoButton,"aria-label":"View video on X",onClick:w=>{const u=w.currentTarget.previousSibling;w.preventDefault(),s(!1),u.load(),u.play().then(()=>{i(!0),u.focus()}).catch(h=>{console.error("Error playing video:",h),s(!0),i(!1)})},children:n.jsx("svg",{viewBox:"0 0 24 24",className:se.videoButtonIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!o&&!a&&n.jsx("div",{className:se.watchOnTwitter,children:n.jsx("a",{href:e.url,className:se.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on X":"Continue watching on X"})}),a&&n.jsx("a",{href:e.url,className:M.clsx(se.anchor,se.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Pn=e=>n.jsx("img",{...e}),rt=(e,t)=>{let r=56.25;return t===1&&(r=100/e.original_info.width*e.original_info.height),t===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},gt=({tweet:e,components:t,quoted:r})=>{var s,o,i;const a=(i=(s=e.mediaDetails)==null?void 0:s.length)!=null?i:0;var d;const p=(d=t==null?void 0:t.MediaImg)!=null?d:Pn;return n.jsx("div",{className:M.clsx(C.root,!r&&C.rounded),children:n.jsx("div",{className:M.clsx(C.mediaWrapper,a>1&&C.grid2Columns,a===3&&C.grid3,a>4&&C.grid2x2),children:(o=e.mediaDetails)==null?void 0:o.map(_=>n.jsx(x.Fragment,{children:_.type==="photo"?n.jsxs("a",{href:e.url,className:M.clsx(C.mediaContainer,C.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:C.skeleton,style:rt(_,a)}),n.jsx(p,{src:vt(_,"small"),alt:_.ext_alt_text||"Image",className:C.image,draggable:!0})]},_.media_url_https):n.jsxs("div",{className:C.mediaContainer,children:[n.jsx("div",{className:C.skeleton,style:rt(_,a)}),n.jsx(Fn,{tweet:e,media:_})]},_.media_url_https)},_.media_url_https))})})},Un={hour:"numeric",minute:"2-digit",hour12:!0,weekday:"short",month:"short",day:"numeric",year:"numeric"},Hn=new Intl.DateTimeFormat("en-US",Un),zn=e=>{const t={};for(const r of e)t[r.type]=r.value;return t},Gn=e=>{const t=zn(Hn.formatToParts(e)),r=`${t.hour}:${t.minute} ${t.dayPeriod}`,s=`${t.month} ${t.day}, ${t.year}`;return`${r} · ${s}`},Kn="_root_i24yn_1",Xn={root:Kn},Qn=({tweet:e})=>{const t=new Date(e.created_at),r=Gn(t);return n.jsx("a",{className:Xn.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":r,children:n.jsx("time",{dateTime:t.toISOString(),children:r})})},Jn="_info_19qcj_1",Yn="_infoLink_19qcj_10",Zn="_infoIcon_19qcj_30",ye={info:Jn,infoLink:Yn,infoIcon:Zn},er=({tweet:e})=>n.jsxs("div",{className:ye.info,children:[n.jsx(Qn,{tweet:e}),n.jsx("a",{className:ye.infoLink,href:"https://help.x.com/en/x-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:n.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:ye.infoIcon,children:n.jsx("g",{children:n.jsx("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]}),tr="_actions_n2anf_1",nr="_like_n2anf_13",rr="_reply_n2anf_14",sr="_copy_n2anf_15",or="_likeIconWrapper_n2anf_27",ir="_likeCount_n2anf_30",ar="_replyIconWrapper_n2anf_35",cr="_copyIconWrapper_n2anf_36",lr="_likeIcon_n2anf_27",ur="_replyIcon_n2anf_35",dr="_copyIcon_n2anf_36",fr="_replyText_n2anf_56",_r="_copyText_n2anf_57",L={actions:tr,like:nr,reply:rr,copy:sr,likeIconWrapper:or,likeCount:ir,replyIconWrapper:ar,copyIconWrapper:cr,likeIcon:lr,replyIcon:ur,copyIcon:dr,replyText:fr,copyText:_r},hr=({tweet:e})=>{const[t,r]=x.useState(!1),s=()=>{navigator.clipboard.writeText(e.url),r(!0)};return x.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},6e3);return()=>clearTimeout(o)}},[t]),n.jsxs("button",{type:"button",className:L.copy,"aria-label":"Copy link",onClick:s,children:[n.jsx("div",{className:L.copyIconWrapper,children:t?n.jsx("svg",{viewBox:"0 0 24 24",className:L.copyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):n.jsx("svg",{viewBox:"0 0 24 24",className:L.copyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),n.jsx("span",{className:L.copyText,children:t?"Copied!":"Copy link"})]})},mr=({tweet:e})=>{const t=Ie(e.favorite_count);return n.jsxs("div",{className:L.actions,children:[n.jsxs("a",{className:L.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[n.jsx("div",{className:L.likeIconWrapper,children:n.jsx("svg",{viewBox:"0 0 24 24",className:L.likeIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),n.jsx("span",{className:L.likeCount,children:t})]}),n.jsxs("a",{className:L.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[n.jsx("div",{className:L.replyIconWrapper,children:n.jsx("svg",{viewBox:"0 0 24 24",className:L.replyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),n.jsx("span",{className:L.replyText,children:"Reply"})]}),n.jsx(hr,{tweet:e})]})},pr="_replies_1cutb_1",xr="_link_1cutb_4",vr="_text_1cutb_23",Se={replies:pr,link:xr,text:vr},gr=({tweet:e})=>n.jsx("div",{className:Se.replies,children:n.jsx("a",{className:Se.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:n.jsx("span",{className:Se.text,children:e.conversation_count===0?"Read more on X":e.conversation_count===1?`Read ${Ie(e.conversation_count)} reply`:`Read ${Ie(e.conversation_count)} replies`})})}),jr="_root_q5799_1",wr="_article_q5799_16",st={root:jr,article:wr},yr=({tweet:e,children:t})=>n.jsx("div",{className:st.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:n.jsx("article",{className:st.article,children:t})}),Sr="_header_r31i5_1",Tr="_avatar_r31i5_11",br="_avatarSquare_r31i5_17",Er="_author_r31i5_21",Rr="_authorText_r31i5_26",Or="_username_r31i5_33",Q={header:Sr,avatar:Tr,avatarSquare:br,author:Er,authorText:Rr,username:Or},Nr=({tweet:e})=>{const{user:t}=e;return n.jsxs("div",{className:Q.header,children:[n.jsx("a",{href:e.url,className:Q.avatar,target:"_blank",rel:"noopener noreferrer",children:n.jsx("div",{className:M.clsx(Q.avatarOverflow,t.profile_image_shape==="Square"&&Q.avatarSquare),children:n.jsx(mt,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),n.jsxs("div",{className:Q.author,children:[n.jsx("div",{className:Q.authorText,children:n.jsx("span",{title:t.name,children:t.name})}),n.jsx(pt,{user:t}),n.jsx("div",{className:Q.username,children:n.jsxs("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},Lr="_root_175ot_1",kr={root:Lr},Ir=({tweet:e})=>n.jsx("p",{className:kr.root,lang:e.lang,dir:"auto",children:e.entities.map((t,r)=>n.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r))}),Cr=({tweet:e})=>{var t;return n.jsxs(yr,{tweet:e,children:[n.jsx(Nr,{tweet:e}),n.jsx(Ir,{tweet:e}),(t=e.mediaDetails)!=null&&t.length?n.jsx(gt,{quoted:!0,tweet:e}):null]})},qr=({tweet:e,components:t})=>{var r;const s=x.useMemo(()=>En(e),[e]);return n.jsxs(Fe,{children:[n.jsx(an,{tweet:s,components:t}),s.in_reply_to_status_id_str&&n.jsx(un,{tweet:s}),n.jsx(pn,{tweet:s}),(r=s.mediaDetails)!=null&&r.length?n.jsx(gt,{tweet:s,components:t}):null,s.quoted_tweet&&n.jsx(Cr,{tweet:s.quoted_tweet}),n.jsx(er,{tweet:s}),n.jsx(mr,{tweet:s}),n.jsx(gr,{tweet:s})]})},Dr="_root_16yxa_1",$r={root:Dr},Ar=e=>n.jsx(Fe,{children:n.jsxs("div",{className:$r.root,children:[n.jsx("h3",{children:"Tweet not found"}),n.jsx("p",{children:"The embedded tweet could not be found…"})]})}),Vr="_skeleton_oi7hr_1",Mr={skeleton:Vr},_e=({style:e})=>n.jsx("span",{className:Mr.skeleton,style:e}),Br="_root_17qqv_1",Wr={root:Br},Fr=()=>n.jsxs(Fe,{className:Wr.root,children:[n.jsx(_e,{style:{height:"3rem",marginBottom:"0.75rem"}}),n.jsx(_e,{style:{height:"6rem",margin:"0.5rem 0"}}),n.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),n.jsx(_e,{style:{height:"2rem"}}),n.jsx(_e,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]});var he={exports:{}},Te={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.js
4
4
  *
@@ -2,7 +2,7 @@ import { N as $t, m as Vt, H as Mt } from "./index-DI9T3iLd.js";
2
2
  import { c as H, N as jt, R as Bt } from "./dom-dataset-Di3tIRrR.js";
3
3
  import { jsx as r, jsxs as g, Fragment as Wt } from "react/jsx-runtime";
4
4
  import de, { useState as ce, Fragment as Ft, useEffect as Pe, useMemo as gt, createContext as Pt, useLayoutEffect as Ut, useContext as Ht, useRef as X, useCallback as Te, useDebugValue as zt } from "react";
5
- import { L as Gt, o as Kt, B as Xt, P as Qt, m as Jt, A as Yt, k as Zt, n as en } from "./RichTextEditor-e6q30rbV.js";
5
+ import { L as Gt, o as Kt, B as Xt, P as Qt, m as Jt, A as Yt, k as Zt, n as en } from "./RichTextEditor-BQN2eLD_.js";
6
6
  import { u as tn } from "./index-CsK90iVd.js";
7
7
  const nn = "_verified_lvyh0_1", Ue = {
8
8
  verified: nn
package/lib/Twitter.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");require("./dom-dataset-Byuf1YmW.cjs");const e=require("./Twitter-D2Osj8qP.cjs");exports.Twitter=e.Twitter;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");require("./dom-dataset-Byuf1YmW.cjs");const e=require("./Twitter-CL2pu4QM.cjs");exports.Twitter=e.Twitter;
package/lib/Twitter.d.cts CHANGED
@@ -84,8 +84,8 @@ declare module '@tiptap/core' {
84
84
 
85
85
  declare module '@tiptap/core' {
86
86
  interface Commands<ReturnType> {
87
- exportPdf: {
88
- exportToPdf: () => ReturnType;
87
+ excalidraw: {
88
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
89
89
  };
90
90
  }
91
91
  }
@@ -93,8 +93,8 @@ declare module '@tiptap/core' {
93
93
 
94
94
  declare module '@tiptap/core' {
95
95
  interface Commands<ReturnType> {
96
- excalidraw: {
97
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
96
+ exportPdf: {
97
+ exportToPdf: () => ReturnType;
98
98
  };
99
99
  }
100
100
  }
@@ -136,21 +136,6 @@ declare module '@tiptap/core' {
136
136
  }
137
137
 
138
138
 
139
- declare module '@tiptap/core' {
140
- interface Commands<ReturnType> {
141
- iframe: {
142
- /**
143
- * Add an iframe
144
- */
145
- setIframe: (options: {
146
- src: string;
147
- service: string;
148
- }) => ReturnType;
149
- };
150
- }
151
- }
152
-
153
-
154
139
  declare module '@tiptap/core' {
155
140
  interface Commands<ReturnType> {
156
141
  imageUpload: {
@@ -171,6 +156,21 @@ declare module '@tiptap/core' {
171
156
  }
172
157
 
173
158
 
159
+ declare module '@tiptap/core' {
160
+ interface Commands<ReturnType> {
161
+ iframe: {
162
+ /**
163
+ * Add an iframe
164
+ */
165
+ setIframe: (options: {
166
+ src: string;
167
+ service: string;
168
+ }) => ReturnType;
169
+ };
170
+ }
171
+ }
172
+
173
+
174
174
  declare module '@tiptap/core' {
175
175
  interface Commands<ReturnType> {
176
176
  imageGifUpload: {
package/lib/Twitter.d.ts CHANGED
@@ -84,8 +84,8 @@ declare module '@tiptap/core' {
84
84
 
85
85
  declare module '@tiptap/core' {
86
86
  interface Commands<ReturnType> {
87
- exportPdf: {
88
- exportToPdf: () => ReturnType;
87
+ excalidraw: {
88
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
89
89
  };
90
90
  }
91
91
  }
@@ -93,8 +93,8 @@ declare module '@tiptap/core' {
93
93
 
94
94
  declare module '@tiptap/core' {
95
95
  interface Commands<ReturnType> {
96
- excalidraw: {
97
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
96
+ exportPdf: {
97
+ exportToPdf: () => ReturnType;
98
98
  };
99
99
  }
100
100
  }
@@ -136,21 +136,6 @@ declare module '@tiptap/core' {
136
136
  }
137
137
 
138
138
 
139
- declare module '@tiptap/core' {
140
- interface Commands<ReturnType> {
141
- iframe: {
142
- /**
143
- * Add an iframe
144
- */
145
- setIframe: (options: {
146
- src: string;
147
- service: string;
148
- }) => ReturnType;
149
- };
150
- }
151
- }
152
-
153
-
154
139
  declare module '@tiptap/core' {
155
140
  interface Commands<ReturnType> {
156
141
  imageUpload: {
@@ -171,6 +156,21 @@ declare module '@tiptap/core' {
171
156
  }
172
157
 
173
158
 
159
+ declare module '@tiptap/core' {
160
+ interface Commands<ReturnType> {
161
+ iframe: {
162
+ /**
163
+ * Add an iframe
164
+ */
165
+ setIframe: (options: {
166
+ src: string;
167
+ service: string;
168
+ }) => ReturnType;
169
+ };
170
+ }
171
+ }
172
+
173
+
174
174
  declare module '@tiptap/core' {
175
175
  interface Commands<ReturnType> {
176
176
  imageGifUpload: {
package/lib/Twitter.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./index-DI9T3iLd.js";
2
2
  import "./dom-dataset-Di3tIRrR.js";
3
- import { T as m } from "./Twitter-Wb7cD3M-.js";
3
+ import { T as m } from "./Twitter-Dg6WWauX.js";
4
4
  export {
5
5
  m as Twitter
6
6
  };
package/lib/Video.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");require("./index-D_A0TBRA.cjs");const e=require("./RichTextEditor-DsUcQSbm.cjs");exports.Video=e.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");require("./index-D_A0TBRA.cjs");const e=require("./RichTextEditor-C8Sm1E6J.cjs");exports.Video=e.Video;