reactjs-tiptap-editor 1.0.24 → 1.0.26
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-HYlhmRvw.js → ActionMenuButton-B4KDkZ0z.js} +1 -1
- package/lib/{ActionMenuButton-B8NhVw5m.cjs → ActionMenuButton-C3Cfeza9.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +25 -25
- package/lib/Blockquote.cjs +5 -5
- package/lib/Blockquote.js +1490 -53
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +3 -3
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +2 -2
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +222 -8
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +56 -39
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +8 -4
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +2 -2
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +3 -3
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +2 -2
- package/lib/{Drawer-Was4hxYH.cjs → Drawer-D7E9kTca.cjs} +1 -1
- package/lib/{Drawer-CaXVhxo4.js → Drawer-DA0FLHs9.js} +20 -20
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +4 -4
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +1644 -148
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +10 -10
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +2 -2
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +2 -2
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +5 -5
- package/lib/FormatPainter.cjs +1 -0
- package/lib/FormatPainter.js +133 -0
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +15 -11
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +38 -32
- package/lib/History.cjs +7 -1
- package/lib/History.js +519 -478
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +2 -2
- package/lib/{Iframe-Bp986fj0.js → Iframe-DZ3r3QzK.js} +7 -7
- package/lib/{Iframe-BI0sq6pd.cjs → Iframe-OMVd0xa_.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +6 -6
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +35 -35
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +15 -15
- package/lib/{Indent-FvM52kjA.cjs → Indent-QgCoonRk.cjs} +1 -1
- package/lib/{Indent-E6B8DkyN.js → Indent-kI4G-clX.js} +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +2 -2
- package/lib/{Katex-pzwyyiFJ.js → Katex-BPbXjcZQ.js} +6 -7
- package/lib/Katex-CUofhjB5.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +4 -4
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-OjN4F2rM.js → LinkEditBlock-BYWwH2_x.js} +59 -32
- package/lib/{LinkEditBlock-Cmkmp2fW.cjs → LinkEditBlock-Z7RRurvx.cjs} +2 -2
- package/lib/MarkdownPaste.cjs +1 -1
- package/lib/MarkdownPaste.js +1 -1
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.js +9 -5
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +61 -62
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +5 -5
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +2 -2
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +14 -14
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +7 -7
- package/lib/{SlashCommandNodeView-o323V8li.js → SlashCommandNodeView-C0l3Fb_3.js} +10 -10
- package/lib/{SlashCommandNodeView-DarAytvt.cjs → SlashCommandNodeView-DPPmYEjC.cjs} +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +2 -2
- package/lib/{Table-Clnz-i4l.cjs → Table-D5G3rfwb.cjs} +5 -5
- package/lib/{Table-CC9uNHPL.js → Table-DwseaFSD.js} +115 -97
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +2 -2
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +11 -11
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +3 -3
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +2 -2
- package/lib/{Twitter-BVnXL8we.js → Twitter-DP26Lkn8.js} +195 -195
- package/lib/Twitter-q4ZGZL0i.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +3 -3
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +5 -5
- package/lib/bubble.cjs +6 -6
- package/lib/bubble.js +2783 -2137
- package/lib/{clsx-D6gYQn3o.cjs → clsx-DRbkQ4T7.cjs} +1 -1
- package/lib/{clsx-0OU6n9va.js → clsx-_bq4MQQ7.js} +14 -4
- package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleCodeBlock.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleKatex.d.ts +2 -1
- package/lib/components/Bubble/RichTextBubbleLink.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleMedia.d.ts +3 -3
- package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +2 -1
- package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleTable.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleText.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -1
- package/lib/components/ColorPicker.d.ts +1 -1
- package/lib/components/ReactBus.d.ts +1 -1
- package/lib/components/RichTextProvider.d.ts +1 -1
- package/lib/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +1 -1
- package/lib/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +1 -1
- package/lib/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +2 -1
- package/lib/components/icons/Activity.d.ts +2 -1
- package/lib/components/icons/Animas.d.ts +2 -1
- package/lib/components/icons/AspectRatio.d.ts +1 -1
- package/lib/components/icons/Blockquote.d.ts +1 -1
- package/lib/components/icons/CodeView.d.ts +1 -1
- package/lib/components/icons/ColumnAddLeft.d.ts +1 -1
- package/lib/components/icons/ColumnAddRight.d.ts +1 -1
- package/lib/components/icons/DeleteColumn.d.ts +1 -1
- package/lib/components/icons/DeleteRow.d.ts +1 -1
- package/lib/components/icons/Direction.d.ts +1 -1
- package/lib/components/icons/Excalidraw.d.ts +1 -1
- package/lib/components/icons/ExportPdf.d.ts +1 -1
- package/lib/components/icons/ExportWord.d.ts +2 -1
- package/lib/components/icons/FileWordOutline.d.ts +1 -1
- package/lib/components/icons/Flag.d.ts +2 -1
- package/lib/components/icons/Food.d.ts +2 -1
- package/lib/components/icons/GIfIcon.d.ts +1 -1
- package/lib/components/icons/Html.d.ts +1 -1
- package/lib/components/icons/Icon.d.ts +1 -1
- package/lib/components/icons/IconColorFill.d.ts +1 -1
- package/lib/components/icons/IconHighlightFill.d.ts +1 -1
- package/lib/components/icons/ImportWord.d.ts +2 -1
- package/lib/components/icons/LeftToRight.d.ts +1 -1
- package/lib/components/icons/LineHeight.d.ts +1 -1
- package/lib/components/icons/MenuDown.d.ts +1 -1
- package/lib/components/icons/Mermaid.d.ts +1 -1
- package/lib/components/icons/NoFill.d.ts +1 -1
- package/lib/components/icons/Object.d.ts +2 -1
- package/lib/components/icons/RightToLeft.d.ts +1 -1
- package/lib/components/icons/SizeL.d.ts +1 -1
- package/lib/components/icons/SizeM.d.ts +1 -1
- package/lib/components/icons/SizeS.d.ts +1 -1
- package/lib/components/icons/Symbol.d.ts +2 -1
- package/lib/components/icons/Travel.d.ts +2 -1
- package/lib/components/icons/Twitter.d.ts +1 -1
- package/lib/components/ui/dialog.d.ts +2 -2
- package/lib/components/ui/dropdown-menu.d.ts +1 -1
- package/lib/components/ui/emoji-picker.d.ts +4 -4
- package/lib/components/ui/toaster.d.ts +1 -1
- package/lib/{dropdown-menu-BW2M6saA.js → dropdown-menu-BKSX4gvT.js} +1 -1
- package/lib/{dropdown-menu-BIGvxqiu.cjs → dropdown-menu-CURWpB9o.cjs} +1 -1
- package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -1
- package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -1
- package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -1
- package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -1
- package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -1
- package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -1
- package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -1
- package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -1
- package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -1
- package/lib/extensions/Code/components/RichTextCode.d.ts +1 -1
- package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +2 -1
- package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -1
- package/lib/extensions/Color/components/RichTextColor.d.ts +1 -1
- package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -1
- package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -1
- package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +27 -27
- package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -1
- package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +2 -1
- package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -1
- package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +2 -1
- package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -1
- package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -1
- package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -1
- package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -1
- package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +1 -1
- package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +1 -1
- package/lib/extensions/FormatPainter/FormatPainter.d.ts +17 -0
- package/lib/extensions/FormatPainter/components/RichTextFormatPainter.d.ts +1 -0
- package/lib/extensions/FormatPainter/index.d.ts +1 -0
- package/lib/extensions/Heading/components/RichTextHeading.d.ts +1 -1
- package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +2 -1
- package/lib/extensions/History/components/RichTextHistory.d.ts +3 -2
- package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -1
- package/lib/extensions/Iframe/components/IframeNodeView.d.ts +1 -1
- package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -1
- package/lib/extensions/Image/components/ImageCropper.d.ts +2 -1
- package/lib/extensions/Image/components/ImageView.d.ts +2 -1
- package/lib/extensions/Image/components/RichTextImage.d.ts +1 -1
- package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -1
- package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +2 -1
- package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -1
- package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -1
- package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -1
- package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -1
- package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -1
- package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -1
- package/lib/extensions/Link/components/LinkEditBlock.d.ts +1 -1
- package/lib/extensions/Link/components/LinkViewBlock.d.ts +2 -1
- package/lib/extensions/Link/components/RichTextLink.d.ts +1 -1
- package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +2 -1
- package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -1
- package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +1 -1
- package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -1
- package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -1
- package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +1 -1
- package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -1
- package/lib/extensions/Table/components/CreateTablePopover.d.ts +2 -1
- package/lib/extensions/Table/components/RichTextTable.d.ts +2 -1
- package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -1
- package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +1 -1
- package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +1 -1
- package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -1
- package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +1 -1
- package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +1 -1
- package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -1
- package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -1
- package/lib/index-BGfIcDCQ.cjs +26 -0
- package/lib/index-BaR0Brts.js +1115 -0
- package/lib/index-BgNKVyMW.cjs +2 -0
- package/lib/index-BpLw6ebr.cjs +1 -0
- package/lib/{index-BrsJsbds.js → index-C52cuQ_Y.js} +1503 -1352
- package/lib/index-CDw4Eszh.cjs +12 -0
- package/lib/{index-CUvjYuRp.cjs → index-CHVV5iY-.cjs} +1 -1
- package/lib/{index-zw-Kd38i.js → index-CJMI7Fjf.js} +1 -1
- package/lib/{index-D-Ouz0vF.js → index-DQy9iBzV.js} +1 -1
- package/lib/index-Dbm_Mans.js +1756 -0
- package/lib/{index-oj858lQO.js → index-DtyAGMbq.js} +208 -208
- package/lib/{index-BblvcbTH.js → index-Dx-Dh7KS.js} +1464 -1348
- package/lib/{index-BAb_UADw.cjs → index-SEMQrdk2.cjs} +1 -1
- package/lib/index-aujjnfSJ.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +12 -12
- package/lib/{jsx-runtime-CT7Pcg-t.js → jsx-runtime-DE8oVoME.js} +3 -1
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/index.d.ts +1 -1
- package/lib/{popover-BIVHT1W9.js → popover-BB-ZDnqk.js} +1 -1
- package/lib/{popover-DoSfJsFS.cjs → popover-CrywEkBR.cjs} +1 -1
- package/lib/{renderNodeView-D--fDFov.cjs → renderNodeView-5h3-p80E.cjs} +1 -1
- package/lib/{renderNodeView-CfWJK4rG.js → renderNodeView-DoKZ4GYy.js} +2 -2
- package/lib/{separator-SRbPfmGa.cjs → separator-BGO9AZp4.cjs} +1 -1
- package/lib/{separator-b-qOPJmp.js → separator-DuuOJRQd.js} +21 -21
- package/lib/store/EditorEditableReactive.d.ts +1 -1
- package/lib/store/ThemeColorReactive.d.ts +1 -1
- package/lib/style.css +1 -1
- package/lib/types.d.ts +2 -2
- package/lib/{updatePosition-DGPtRfWN.cjs → updatePosition-B1oRJE1x.cjs} +1 -1
- package/lib/{updatePosition-BwzAsiY0.js → updatePosition-CFTYKYNJ.js} +2 -2
- package/package.json +79 -66
- package/lib/Callout-B-S2f0Qo.cjs +0 -1
- package/lib/Callout-CF7Y9yJ7.js +0 -340
- package/lib/Katex-DP6EjdKz.cjs +0 -4
- package/lib/Twitter-0kmrijjL.cjs +0 -1
- package/lib/index-BF3EVCB1.cjs +0 -2
- package/lib/index-Bcj8cyOO.cjs +0 -24
- package/lib/index-CGjT-a9h.js +0 -1377
- package/lib/index-CPTpXLfX.cjs +0 -11
- package/lib/index-CWw4s87s.cjs +0 -1
- package/lib/index-Cal5SPfB.js +0 -779
- package/lib/index-deubsx3z.cjs +0 -1
- package/lib/textarea-CpxXPky_.js +0 -20
- package/lib/textarea-DbGw9oCU.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Te=require("./index-BGfIcDCQ.cjs"),I=require("./clsx-DRbkQ4T7.cjs"),t=require("react/jsx-runtime"),h=require("react"),z=require("./index-aujjnfSJ.cjs");require("./theme.cjs");const Re=require("./popover-CrywEkBR.cjs"),Dt=require("./index-BpLw6ebr.cjs"),At="_verified_lvyh0_1",Ue={verified:At},Vt=()=>t.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:Ue.verified,children:t.jsx("g",{children:t.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"})})}),Mt=()=>t.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Ue.verified,children:t.jsxs("g",{children:[t.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[t.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),t.jsx("stop",{offset:".539",stopColor:"#cd8105"}),t.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),t.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),t.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),t.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[t.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),t.jsx("stop",{offset:".406",stopColor:"#e2b719"}),t.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),t.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[t.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)"}),t.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)"}),t.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"})]})]})}),Wt=()=>t.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Ue.verified,children:t.jsx("g",{children:t.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"})})}),Bt="_root_98iqw_1",Ft="_article_98iqw_21",nt={root:Bt,article:Ft},ze=({className:e,children:n})=>t.jsx("div",{className:I.clsx("react-tweet-theme",nt.root,e),children:t.jsx("article",{className:nt.article,children:n})}),pt=e=>t.jsx("img",{...e}),Pt="_verifiedOld_lcna5_1",Ut="_verifiedBlue_lcna5_4",zt="_verifiedGovernment_lcna5_7",Ne={verifiedOld:Pt,verifiedBlue:Ut,verifiedGovernment:zt},mt=({user:e,className:n})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let s=t.jsx(Vt,{}),o=Ne.verifiedBlue;if(r)switch(e.is_blue_verified||(o=Ne.verifiedOld),e.verified_type){case"Government":s=t.jsx(Wt,{}),o=Ne.verifiedGovernment;break;case"Business":s=t.jsx(Mt,{}),o=null;break}return r?t.jsx("div",{className:I.clsx(n,o),children:s}):null},Ht="_label_36ucz_1",Gt={label:Ht},xt=({user:e,className:n})=>{var r;const s=e.highlighted_label;if(!s)return null;const o=(r=s.badge)==null?void 0:r.url;return o?t.jsx("div",{className:I.clsx(Gt.label,n),children:t.jsx("img",{src:o,alt:s.description})}):null},Xt="_header_nqq4j_1",Kt="_avatar_nqq4j_11",Qt="_avatarOverflow_nqq4j_16",Jt="_avatarSquare_nqq4j_23",Yt="_avatarShadow_nqq4j_26",Zt="_author_nqq4j_37",en="_authorLink_nqq4j_44",tn="_authorVerified_nqq4j_53",nn="_authorLinkText_nqq4j_56",rn="_authorMeta_nqq4j_63",sn="_authorFollow_nqq4j_66",on="_username_nqq4j_69",an="_follow_nqq4j_74",cn="_separator_nqq4j_82",ln="_brand_nqq4j_86",dn="_twitterIcon_nqq4j_90",T={header:Xt,avatar:Kt,avatarOverflow:Qt,avatarSquare:Jt,avatarShadow:Yt,author:Zt,authorLink:en,authorVerified:tn,authorLinkText:nn,authorMeta:rn,authorFollow:sn,username:on,follow:an,separator:cn,brand:ln,twitterIcon:dn},un=({tweet:e,components:n})=>{var r;const s=(r=n==null?void 0:n.AvatarImg)!=null?r:pt,{user:o}=e;return t.jsxs("div",{className:T.header,children:[t.jsxs("a",{href:e.url,className:T.avatar,target:"_blank",rel:"noopener noreferrer",children:[t.jsx("div",{className:I.clsx(T.avatarOverflow,o.profile_image_shape==="Square"&&T.avatarSquare),children:t.jsx(s,{src:o.profile_image_url_https,alt:o.name,width:48,height:48})}),t.jsx("div",{className:T.avatarOverflow,children:t.jsx("div",{className:T.avatarShadow})})]}),t.jsxs("div",{className:T.author,children:[t.jsxs("a",{href:e.url,className:T.authorLink,target:"_blank",rel:"noopener noreferrer",children:[t.jsx("div",{className:T.authorLinkText,children:t.jsx("span",{title:o.name,children:o.name})}),t.jsx(mt,{user:o,className:T.authorVerified}),t.jsx(xt,{user:o})]}),t.jsxs("div",{className:T.authorMeta,children:[t.jsx("a",{href:e.url,className:T.username,target:"_blank",rel:"noopener noreferrer",children:t.jsxs("span",{title:`@${o.screen_name}`,children:["@",o.screen_name]})}),t.jsxs("div",{className:T.authorFollow,children:[t.jsx("span",{className:T.separator,children:"·"}),t.jsx("a",{href:o.follow_url,className:T.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),t.jsx("a",{href:e.url,className:T.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:t.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:T.twitterIcon,children:t.jsx("g",{children:t.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"})})})})]})},fn="_root_1ec15_1",hn={root:fn},_n=({tweet:e})=>t.jsxs("a",{href:e.in_reply_to_url,className:hn.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),pn="_root_eihfa_1",mn={root:pn},vt=({href:e,children:n})=>t.jsx("a",{href:e,className:mn.root,target:"_blank",rel:"noopener noreferrer nofollow",children:n}),xn="_root_1xq52_1",vn={root:xn},gn=({tweet:e})=>t.jsxs("p",{className:vn.root,lang:e.lang,dir:"auto",children:[e.entities.map((n,r)=>{switch(n.type){case"hashtag":case"mention":case"url":case"symbol":return t.jsx(vt,{href:n.href,children:n.text},r);case"media":return;default:return t.jsx("span",{dangerouslySetInnerHTML:{__html:n.text}},r)}}),e.note_tweet?t.jsx(jn,{tweet:e}):null]});function jn({tweet:e}){return t.jsxs(vt,{href:e.url,children:[t.jsx("span",{children:" "}),"Show more"]})}const wn={hour:"numeric",minute:"2-digit",hour12:!0,weekday:"short",month:"short",day:"numeric",year:"numeric"},yn=new Intl.DateTimeFormat("en-US",wn),bn=e=>{const n={};for(const r of e)n[r.type]=r.value;return n},Tn=e=>{const n=bn(yn.formatToParts(e)),r=`${n.hour}:${n.minute} ${n.dayPeriod}`,s=`${n.month} ${n.day}, ${n.year}`;return`${r} · ${s}`},rt=e=>`https://x.com/${e.user.screen_name}/status/${e.id_str}`,gt=e=>`https://x.com/${typeof e=="string"?e:e.user.screen_name}`,Rn=e=>`https://x.com/intent/like?tweet_id=${e.id_str}`,Nn=e=>`https://x.com/intent/tweet?in_reply_to=${e.id_str}`,Sn=e=>`https://x.com/intent/follow?screen_name=${e.user.screen_name}`,kn=e=>`https://x.com/hashtag/${e.text}`,En=e=>`https://x.com/search?q=%24${e.text}`,In=e=>`https://x.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,jt=(e,n)=>{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",n),r.toString()):e.media_url_https},Cn=e=>{const{variants:n}=e.video_info;return n.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)})},On=e=>{const n=Cn(e);return n.length>1?n[1]:n[0]},$e=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function st(e){const n=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}],{entities:s}=e;return s&&(fe(r,"hashtag",s.hashtags),fe(r,"mention",s.user_mentions),fe(r,"url",s.urls),fe(r,"symbol",s.symbols),fe(r,"media",s.media)),Ln(e,r),r.map(o=>{const i=n.slice(o.indices[0],o.indices[1]).join("");switch(o.type){case"hashtag":return Object.assign(o,{href:kn(o),text:i});case"mention":return Object.assign(o,{href:gt(o.screen_name),text:i});case"url":case"media":return Object.assign(o,{href:o.expanded_url,text:o.display_url});case"symbol":return Object.assign(o,{href:En(o),text:i});default:return Object.assign(o,{text:i})}})}function fe(e,n,r){if(r!=null&&r.length)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:n}];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 Ln(e,n){var r;const s=(r=e.entities)==null?void 0:r.media;s!=null&&s.length&&s[0].indices[0]<e.display_text_range[1]&&(e.display_text_range[1]=s[0].indices[0]);const o=n.at(-1);o&&o.indices[1]>e.display_text_range[1]&&(o.indices[1]=e.display_text_range[1])}const qn=e=>({...e,url:rt(e),user:{...e.user,url:gt(e),follow_url:Sn(e)},like_url:Rn(e),reply_url:Nn(e),in_reply_to_url:e.in_reply_to_screen_name?In(e):void 0,entities:st(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:rt(e.quoted_tweet),entities:st(e.quoted_tweet)}:void 0}),$n="_root_g9tkv_1",Dn="_rounded_g9tkv_6",An="_mediaWrapper_g9tkv_10",Vn="_grid2Columns_g9tkv_17",Mn="_grid3_g9tkv_20",Wn="_grid2x2_g9tkv_23",Bn="_mediaContainer_g9tkv_26",Fn="_mediaLink_g9tkv_34",Pn="_skeleton_g9tkv_38",Un="_image_g9tkv_43",E={root:$n,rounded:Dn,mediaWrapper:An,grid2Columns:Vn,grid3:Mn,grid2x2:Wn,mediaContainer:Bn,mediaLink:Fn,skeleton:Pn,image:Un},zn="_anchor_fp31d_1",Hn="_videoButton_fp31d_17",Gn="_videoButtonIcon_fp31d_35",Xn="_watchOnTwitter_fp31d_44",Kn="_viewReplies_fp31d_60",oe={anchor:zn,videoButton:Hn,videoButtonIcon:Gn,watchOnTwitter:Xn,viewReplies:Kn},Qn=({tweet:e,media:n})=>{const[r,s]=h.useState(!0),[o,i]=h.useState(!1),[a,c]=h.useState(!1),f=On(n);let u=0;return t.jsxs(t.Fragment,{children:[t.jsx("video",{className:E.image,poster:jt(n,"small"),controls:!r,playsInline:!0,preload:"none",tabIndex:r?-1:0,onPlay:()=>{u&&window.clearTimeout(u),o||i(!0),a&&c(!1)},onPause:()=>{u&&window.clearTimeout(u),u=window.setTimeout(()=>{o&&i(!1),u=0},100)},onEnded:()=>{c(!0)},children:t.jsx("source",{src:f.url,type:f.content_type})}),r&&t.jsx("button",{type:"button",className:oe.videoButton,"aria-label":"View video on X",onClick:x=>{const p=x.currentTarget.previousSibling;x.preventDefault(),s(!1),p.load(),p.play().then(()=>{i(!0),p.focus()}).catch(y=>{console.error("Error playing video:",y),s(!0),i(!1)})},children:t.jsx("svg",{viewBox:"0 0 24 24",className:oe.videoButtonIcon,"aria-hidden":"true",children:t.jsx("g",{children:t.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!o&&!a&&t.jsx("div",{className:oe.watchOnTwitter,children:t.jsx("a",{href:e.url,className:oe.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on X":"Continue watching on X"})}),a&&t.jsx("a",{href:e.url,className:I.clsx(oe.anchor,oe.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Jn=e=>t.jsx("img",{...e}),ot=(e,n)=>{let r=56.25;return n===1&&(r=100/e.original_info.width*e.original_info.height),n===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},wt=({tweet:e,components:n,quoted:r})=>{var s,o,i,a;const c=(s=(i=e.mediaDetails)==null?void 0:i.length)!=null?s:0,f=(o=n==null?void 0:n.MediaImg)!=null?o:Jn;return t.jsx("div",{className:I.clsx(E.root,!r&&E.rounded),children:t.jsx("div",{className:I.clsx(E.mediaWrapper,c>1&&E.grid2Columns,c===3&&E.grid3,c>4&&E.grid2x2),children:(a=e.mediaDetails)==null?void 0:a.map(u=>t.jsx(h.Fragment,{children:u.type==="photo"?t.jsxs("a",{href:e.url,className:I.clsx(E.mediaContainer,E.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[t.jsx("div",{className:E.skeleton,style:ot(u,c)}),t.jsx(f,{src:jt(u,"small"),alt:u.ext_alt_text||"Image",className:E.image,draggable:!0})]},u.media_url_https):t.jsxs("div",{className:E.mediaContainer,children:[t.jsx("div",{className:E.skeleton,style:ot(u,c)}),t.jsx(Qn,{tweet:e,media:u})]},u.media_url_https)},u.media_url_https))})})},Yn="_root_i24yn_1",Zn={root:Yn},er=({tweet:e})=>{const n=new Date(e.created_at),r=Tn(n);return t.jsx("a",{className:Zn.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":r,children:t.jsx("time",{dateTime:n.toISOString(),children:r})})},tr="_info_19qcj_1",nr="_infoLink_19qcj_10",rr="_infoIcon_19qcj_30",Se={info:tr,infoLink:nr,infoIcon:rr},sr=({tweet:e})=>t.jsxs("div",{className:Se.info,children:[t.jsx(er,{tweet:e}),t.jsx("a",{className:Se.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:t.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Se.infoIcon,children:t.jsx("g",{children:t.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"})})})})]}),or="_actions_n2anf_1",ir="_like_n2anf_13",ar="_reply_n2anf_14",cr="_copy_n2anf_15",lr="_likeIconWrapper_n2anf_27",dr="_likeCount_n2anf_30",ur="_replyIconWrapper_n2anf_35",fr="_copyIconWrapper_n2anf_36",hr="_likeIcon_n2anf_27",_r="_replyIcon_n2anf_35",pr="_copyIcon_n2anf_36",mr="_replyText_n2anf_56",xr="_copyText_n2anf_57",S={actions:or,like:ir,reply:ar,copy:cr,likeIconWrapper:lr,likeCount:dr,replyIconWrapper:ur,copyIconWrapper:fr,likeIcon:hr,replyIcon:_r,copyIcon:pr,replyText:mr,copyText:xr},vr=({tweet:e})=>{const[n,r]=h.useState(!1),s=()=>{navigator.clipboard.writeText(e.url),r(!0)};return h.useEffect(()=>{if(n){const o=setTimeout(()=>{r(!1)},6e3);return()=>clearTimeout(o)}},[n]),t.jsxs("button",{type:"button",className:S.copy,"aria-label":"Copy link",onClick:s,children:[t.jsx("div",{className:S.copyIconWrapper,children:n?t.jsx("svg",{viewBox:"0 0 24 24",className:S.copyIcon,"aria-hidden":"true",children:t.jsx("g",{children:t.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"})})}):t.jsx("svg",{viewBox:"0 0 24 24",className:S.copyIcon,"aria-hidden":"true",children:t.jsx("g",{children:t.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"})})})}),t.jsx("span",{className:S.copyText,children:n?"Copied!":"Copy link"})]})},gr=({tweet:e})=>{const n=$e(e.favorite_count);return t.jsxs("div",{className:S.actions,children:[t.jsxs("a",{className:S.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${n} likes`,children:[t.jsx("div",{className:S.likeIconWrapper,children:t.jsx("svg",{viewBox:"0 0 24 24",className:S.likeIcon,"aria-hidden":"true",children:t.jsx("g",{children:t.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"})})})}),t.jsx("span",{className:S.likeCount,children:n})]}),t.jsxs("a",{className:S.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[t.jsx("div",{className:S.replyIconWrapper,children:t.jsx("svg",{viewBox:"0 0 24 24",className:S.replyIcon,"aria-hidden":"true",children:t.jsx("g",{children:t.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"})})})}),t.jsx("span",{className:S.replyText,children:"Reply"})]}),t.jsx(vr,{tweet:e})]})},jr="_replies_1cutb_1",wr="_link_1cutb_4",yr="_text_1cutb_23",ke={replies:jr,link:wr,text:yr},br=({tweet:e})=>t.jsx("div",{className:ke.replies,children:t.jsx("a",{className:ke.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:t.jsx("span",{className:ke.text,children:e.conversation_count===0?"Read more on X":e.conversation_count===1?`Read ${$e(e.conversation_count)} reply`:`Read ${$e(e.conversation_count)} replies`})})}),Tr="_root_q5799_1",Rr="_article_q5799_16",it={root:Tr,article:Rr},Nr=({tweet:e,children:n})=>t.jsx("div",{className:it.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:t.jsx("article",{className:it.article,children:n})}),Sr="_header_f00ab_1",kr="_avatar_f00ab_11",Er="_avatarOverflow_f00ab_16",Ir="_avatarSquare_f00ab_23",Cr="_author_f00ab_27",Or="_authorText_f00ab_33",Lr="_username_f00ab_40",Q={header:Sr,avatar:kr,avatarOverflow:Er,avatarSquare:Ir,author:Cr,authorText:Or,username:Lr},qr=({tweet:e,components:n})=>{var r;const{user:s}=e,o=(r=n==null?void 0:n.AvatarImg)!=null?r:pt;return t.jsxs("div",{className:Q.header,children:[t.jsx("a",{href:e.url,className:Q.avatar,target:"_blank",rel:"noopener noreferrer",children:t.jsx("div",{className:I.clsx(Q.avatarOverflow,s.profile_image_shape==="Square"&&Q.avatarSquare),children:t.jsx(o,{src:s.profile_image_url_https,alt:s.name,width:20,height:20})})}),t.jsxs("div",{className:Q.author,children:[t.jsx("div",{className:Q.authorText,children:t.jsx("span",{title:s.name,children:s.name})}),t.jsx(mt,{user:s}),t.jsx(xt,{user:s}),t.jsx("div",{className:Q.username,children:t.jsxs("span",{title:`@${s.screen_name}`,children:["@",s.screen_name]})})]})]})},$r="_root_175ot_1",Dr={root:$r},Ar=({tweet:e})=>t.jsx("p",{className:Dr.root,lang:e.lang,dir:"auto",children:e.entities.map((n,r)=>t.jsx("span",{dangerouslySetInnerHTML:{__html:n.text}},r))}),Vr=({tweet:e,components:n})=>{var r;return t.jsxs(Nr,{tweet:e,children:[t.jsx(qr,{tweet:e,components:n}),t.jsx(Ar,{tweet:e}),(r=e.mediaDetails)!=null&&r.length?t.jsx(wt,{quoted:!0,tweet:e}):null]})},Mr=({tweet:e,components:n})=>{var r;const s=h.useMemo(()=>qn(e),[e]);return t.jsxs(ze,{children:[t.jsx(un,{tweet:s,components:n}),s.in_reply_to_status_id_str&&t.jsx(_n,{tweet:s}),t.jsx(gn,{tweet:s}),(r=s.mediaDetails)!=null&&r.length?t.jsx(wt,{tweet:s,components:n}):null,s.quoted_tweet&&t.jsx(Vr,{tweet:s.quoted_tweet,components:n}),t.jsx(sr,{tweet:s}),t.jsx(gr,{tweet:s}),t.jsx(br,{tweet:s})]})},Wr="_root_16yxa_1",Br={root:Wr},Fr=e=>t.jsx(ze,{children:t.jsxs("div",{className:Br.root,children:[t.jsx("h3",{children:"Tweet not found"}),t.jsx("p",{children:"The embedded tweet could not be found…"})]})}),Pr="_skeleton_oi7hr_1",Ur={skeleton:Pr},xe=({style:e})=>t.jsx("span",{className:Ur.skeleton,style:e}),zr="_root_17qqv_1",Hr={root:zr},Gr=()=>t.jsxs(ze,{className:Hr.root,children:[t.jsx(xe,{style:{height:"3rem",marginBottom:"0.75rem"}}),t.jsx(xe,{style:{height:"6rem",margin:"0.5rem 0"}}),t.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),t.jsx(xe,{style:{height:"2rem"}}),t.jsx(xe,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),yt=0,bt=1,Tt=2,at=3;var ct=Object.prototype.hasOwnProperty;function De(e,n){var r,s;if(e===n)return!0;if(e&&n&&(r=e.constructor)===n.constructor){if(r===Date)return e.getTime()===n.getTime();if(r===RegExp)return e.toString()===n.toString();if(r===Array){if((s=e.length)===n.length)for(;s--&&De(e[s],n[s]););return s===-1}if(!r||typeof e=="object"){s=0;for(r in e)if(ct.call(e,r)&&++s&&!ct.call(n,r)||!(r in n)||!De(e[r],n[r]))return!1;return Object.keys(n).length===s}}return e!==e&&n!==n}const P=new WeakMap,U=()=>{},N=U(),Ae=Object,d=e=>e===N,B=e=>typeof e=="function",H=(e,n)=>({...e,...n}),Rt=e=>B(e.then),Ee={},ve={},He="undefined",he=typeof window!=He,Ve=typeof document!=He,Xr=he&&"Deno"in window,Kr=()=>he&&typeof window.requestAnimationFrame!=He,Nt=(e,n)=>{const r=P.get(e);return[()=>!d(n)&&e.get(n)||Ee,s=>{if(!d(n)){const o=e.get(n);n in ve||(ve[n]=o),r[5](n,H(o,s),o||Ee)}},r[6],()=>!d(n)&&n in ve?ve[n]:!d(n)&&e.get(n)||Ee]};let Me=!0;const Qr=()=>Me,[We,Be]=he&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[U,U],Jr=()=>{const e=Ve&&document.visibilityState;return d(e)||e!=="hidden"},Yr=e=>(Ve&&document.addEventListener("visibilitychange",e),We("focus",e),()=>{Ve&&document.removeEventListener("visibilitychange",e),Be("focus",e)}),Zr=e=>{const n=()=>{Me=!0,e()},r=()=>{Me=!1};return We("online",n),We("offline",r),()=>{Be("online",n),Be("offline",r)}},es={isOnline:Qr,isVisible:Jr},ts={initFocus:Yr,initReconnect:Zr},lt=!h.useId,ie=!he||Xr,ns=e=>Kr()?window.requestAnimationFrame(e):setTimeout(e,1),Ie=ie?h.useEffect:h.useLayoutEffect,Ce=typeof navigator<"u"&&navigator.connection,dt=!ie&&Ce&&(["slow-2g","2g"].includes(Ce.effectiveType)||Ce.saveData),ge=new WeakMap,rs=e=>Ae.prototype.toString.call(e),Oe=(e,n)=>e===`[object ${n}]`;let ss=0;const Fe=e=>{const n=typeof e,r=rs(e),s=Oe(r,"Date"),o=Oe(r,"RegExp"),i=Oe(r,"Object");let a,c;if(Ae(e)===e&&!s&&!o){if(a=ge.get(e),a)return a;if(a=++ss+"~",ge.set(e,a),Array.isArray(e)){for(a="@",c=0;c<e.length;c++)a+=Fe(e[c])+",";ge.set(e,a)}if(i){a="#";const f=Ae.keys(e).sort();for(;!d(c=f.pop());)d(e[c])||(a+=c+":"+Fe(e[c])+",");ge.set(e,a)}}else a=s?e.toJSON():n=="symbol"?e.toString():n=="string"?JSON.stringify(e):""+e;return a},Ge=e=>{if(B(e))try{e=e()}catch{e=""}const n=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Fe(e):"",[e,n]};let os=0;const Pe=()=>++os;async function St(...e){const[n,r,s,o]=e,i=H({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const c=i.rollbackOnError;let f=i.optimisticData;const u=y=>typeof c=="function"?c(y):c!==!1,x=i.throwOnError;if(B(r)){const y=r,R=[],k=n.keys();for(const L of k)!/^\$(inf|sub)\$/.test(L)&&y(n.get(L)._k)&&R.push(L);return Promise.all(R.map(p))}return p(r);async function p(y){const[R]=Ge(y);if(!R)return;const[k,L]=Nt(n,R),[D,ae,l,_e]=P.get(n),J=()=>{const q=D[R];return(B(i.revalidate)?i.revalidate(k().data,y):i.revalidate!==!1)&&(delete l[R],delete _e[R],q&&q[0])?q[0](Tt).then(()=>k().data):k().data};if(e.length<3)return J();let b=s,A,V=!1;const Y=Pe();ae[R]=[Y,0];const m=!d(f),Z=k(),M=Z.data,ee=Z._c,G=d(ee)?M:ee;if(m&&(f=B(f)?f(G,M):f,L({data:f,_c:G})),B(b))try{b=b(G)}catch(q){A=q,V=!0}if(b&&Rt(b))if(b=await b.catch(q=>{A=q,V=!0}),Y!==ae[R][0]){if(V)throw A;return b}else V&&m&&u(A)&&(a=!0,L({data:G,_c:N}));if(a&&!V)if(B(a)){const q=a(b,G);L({data:q,error:N,_c:N})}else L({data:b,error:N,_c:N});if(ae[R][1]=Pe(),Promise.resolve(J()).then(()=>{L({_c:N})}),V){if(x)throw A;return}return b}}const ut=(e,n)=>{for(const r in e)e[r][0]&&e[r][0](n)},is=(e,n)=>{if(!P.has(e)){const r=H(ts,n),s=Object.create(null),o=St.bind(N,e);let i=U;const a=Object.create(null),c=(x,p)=>{const y=a[x]||[];return a[x]=y,y.push(p),()=>y.splice(y.indexOf(p),1)},f=(x,p,y)=>{e.set(x,p);const R=a[x];if(R)for(const k of R)k(p,y)},u=()=>{if(!P.has(e)&&(P.set(e,[s,Object.create(null),Object.create(null),Object.create(null),o,f,c]),!ie)){const x=r.initFocus(setTimeout.bind(N,ut.bind(N,s,yt))),p=r.initReconnect(setTimeout.bind(N,ut.bind(N,s,bt)));i=()=>{x&&x(),p&&p(),P.delete(e)}}};return u(),[e,o,u,i]}return[e,P.get(e)[4]]},as=(e,n,r,s,o)=>{const i=r.errorRetryCount,a=o.retryCount,c=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!d(i)&&a>i||setTimeout(s,c,o)},cs=De,[kt,ls]=is(new Map),ds=H({onLoadingSlow:U,onSuccess:U,onError:U,onErrorRetry:as,onDiscarded:U,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:dt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:dt?5e3:3e3,compare:cs,isPaused:()=>!1,cache:kt,mutate:ls,fallback:{}},es),us=(e,n)=>{const r=H(e,n);if(n){const{use:s,fallback:o}=e,{use:i,fallback:a}=n;s&&i&&(r.use=s.concat(i)),o&&a&&(r.fallback=H(o,a))}return r},fs=h.createContext({}),hs="$inf$",Et=he&&window.__SWR_DEVTOOLS_USE__,_s=Et?window.__SWR_DEVTOOLS_USE__:[],ps=()=>{Et&&(window.__SWR_DEVTOOLS_REACT__=h)},ms=e=>B(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],xs=()=>{const e=h.useContext(fs);return h.useMemo(()=>H(ds,e),[e])},vs=e=>(n,r,s)=>e(n,r&&((...i)=>{const[a]=Ge(n),[,,,c]=P.get(kt);if(a.startsWith(hs))return r(...i);const f=c[a];return d(f)?r(...i):(delete c[a],f)}),s),gs=_s.concat(vs),js=e=>function(...r){const s=xs(),[o,i,a]=ms(r),c=us(s,a);let f=e;const{use:u}=c,x=(u||[]).concat(gs);for(let p=x.length;p--;)f=x[p](f);return f(o,i||c.fetcher||null,c)},ws=(e,n,r)=>{const s=n[e]||(n[e]=[]);return s.push(r),()=>{const o=s.indexOf(r);o>=0&&(s[o]=s[s.length-1],s.pop())}};ps();const Le=h.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e}}),qe={dedupe:!0},ft=Promise.resolve(N),ys=()=>U,bs=(e,n,r)=>{const{cache:s,compare:o,suspense:i,fallbackData:a,revalidateOnMount:c,revalidateIfStale:f,refreshInterval:u,refreshWhenHidden:x,refreshWhenOffline:p,keepPreviousData:y,strictServerPrefetchWarning:R}=r,[k,L,D,ae]=P.get(s),[l,_e]=Ge(e),J=h.useRef(!1),b=h.useRef(!1),A=h.useRef(l),V=h.useRef(n),Y=h.useRef(r),m=()=>Y.current,Z=()=>m().isVisible()&&m().isOnline(),[M,ee,G,q]=Nt(s,l),te=h.useRef({}).current,ne=d(a)?d(r.fallback)?N:r.fallback[l]:a,Ke=(_,v)=>{for(const g in te){const j=g;if(j==="data"){if(!o(_[j],v[j])&&(!d(_[j])||!o(me,v[j])))return!1}else if(v[j]!==_[j])return!1}return!0},je=!J.current,Qe=h.useMemo(()=>{const _=M(),v=q(),g=w=>{const $=H(w);return delete $._k,(()=>{if(!l||!n||m().isPaused())return!1;if(je&&!d(c))return c;const ue=d(ne)?$.data:ne;return d(ue)||f})()?{isValidating:!0,isLoading:!0,...$}:$},j=g(_),W=_===v?j:g(v);let C=j;return[()=>{const w=g(M());return Ke(w,C)?(C.data=w.data,C.isLoading=w.isLoading,C.isValidating=w.isValidating,C.error=w.error,C):(C=w,w)},()=>W]},[s,l]),re=I.shimExports.useSyncExternalStore(h.useCallback(_=>G(l,(v,g)=>{Ke(g,v)||_()}),[s,l]),Qe[0],Qe[1]),Ct=k[l]&&k[l].length>0,se=re.data,X=d(se)?ne&&Rt(ne)?Le(ne):ne:se,pe=re.error,we=h.useRef(X),me=y?d(se)?d(we.current)?X:we.current:se:X,K=l&&d(X),ce=h.useRef(null);!ie&&I.shimExports.useSyncExternalStore(ys,()=>(ce.current=!1,ce),()=>(ce.current=!0,ce));const Ot=ce.current;R&&Ot&&!i&&K&&console.warn(`Missing pre-initiated data for serialized key "${l}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Je=!l||!n||m().isPaused()||Ct&&!d(pe)?!1:je&&!d(c)?c:i?d(X)?!1:f:d(X)||f,Ye=je&&Je,Lt=d(re.isValidating)?Ye:re.isValidating,qt=d(re.isLoading)?Ye:re.isLoading,le=h.useCallback(async _=>{const v=V.current;if(!l||!v||b.current||m().isPaused())return!1;let g,j,W=!0;const C=_||{},w=!D[l]||!C.dedupe,$=()=>lt?!b.current&&l===A.current&&J.current:l===A.current,de={isValidating:!1,isLoading:!1},ue=()=>{ee(de)},et=()=>{const O=D[l];O&&O[1]===j&&delete D[l]},tt={isValidating:!0};d(M().data)&&(tt.isLoading=!0);try{if(w&&(ee(tt),r.loadingTimeout&&d(M().data)&&setTimeout(()=>{W&&$()&&m().onLoadingSlow(l,r)},r.loadingTimeout),D[l]=[v(_e),Pe()]),[g,j]=D[l],g=await g,w&&setTimeout(et,r.dedupingInterval),!D[l]||D[l][1]!==j)return w&&$()&&m().onDiscarded(l),!1;de.error=N;const O=L[l];if(!d(O)&&(j<=O[0]||j<=O[1]||O[1]===0))return ue(),w&&$()&&m().onDiscarded(l),!1;const F=M().data;de.data=o(F,g)?F:g,w&&$()&&m().onSuccess(g,l,r)}catch(O){et();const F=m(),{shouldRetryOnError:ye}=F;F.isPaused()||(de.error=O,w&&$()&&(F.onError(O,l,F),(ye===!0||B(ye)&&ye(O))&&(!m().revalidateOnFocus||!m().revalidateOnReconnect||Z())&&F.onErrorRetry(O,l,F,$t=>{const be=k[l];be&&be[0]&&be[0](at,$t)},{retryCount:(C.retryCount||0)+1,dedupe:!0})))}return W=!1,ue(),!0},[l,s]),Ze=h.useCallback((..._)=>St(s,A.current,..._),[]);if(Ie(()=>{V.current=n,Y.current=r,d(se)||(we.current=se)}),Ie(()=>{if(!l)return;const _=le.bind(N,qe);let v=0;m().revalidateOnFocus&&(v=Date.now()+m().focusThrottleInterval);const j=ws(l,k,(W,C={})=>{if(W==yt){const w=Date.now();m().revalidateOnFocus&&w>v&&Z()&&(v=w+m().focusThrottleInterval,_())}else if(W==bt)m().revalidateOnReconnect&&Z()&&_();else{if(W==Tt)return le();if(W==at)return le(C)}});return b.current=!1,A.current=l,J.current=!0,ee({_k:_e}),Je&&(D[l]||(d(X)||ie?_():ns(_))),()=>{b.current=!0,j()}},[l]),Ie(()=>{let _;function v(){const j=B(u)?u(M().data):u;j&&_!==-1&&(_=setTimeout(g,j))}function g(){!M().error&&(x||m().isVisible())&&(p||m().isOnline())?le(qe).then(v):v()}return v(),()=>{_&&(clearTimeout(_),_=-1)}},[u,x,p,l]),h.useDebugValue(me),i){if(!lt&&ie&&K)throw new Error("Fallback data is required when using Suspense in SSR.");K&&(V.current=n,Y.current=r,b.current=!1);const _=ae[l],v=!d(_)&&K?Ze(_):ft;if(Le(v),!d(pe)&&K)throw pe;const g=K?le(qe):ft;!d(me)&&K&&(g.status="fulfilled",g.value=!0),Le(g)}return{mutate:Ze,get data(){return te.data=!0,me},get error(){return te.error=!0,pe},get isValidating(){return te.isValidating=!0,Lt},get isLoading(){return te.isLoading=!0,qt}}},ht=js(bs);class Ts extends Error{constructor({message:n,status:r,data:s}){super(n),this.name="TwitterApiError",this.status=r,this.data=s}}const Rs=ht.default||ht,Ns="https://react-tweet.vercel.app";async function Ss([e,n]){const r=await fetch(e,n),s=await r.json();if(r.ok)return s.data||null;throw new Ts({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:s,status:r.status})}const ks=(e,n,r)=>{const{isLoading:s,data:o,error:i}=Rs(()=>n||e?[n||e&&`${Ns}/api/tweet/${e}`,r]:null,Ss,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(s||o===void 0&&!i),data:o,error:i}},Es=({id:e,apiUrl:n,fallback:r=t.jsx(Gr,{}),components:s,fetchOptions:o,onError:i})=>{const{data:a,error:c,isLoading:f}=ks(e,n,o);if(f)return r;if(c||!a){const u=(s==null?void 0:s.TweetNotFound)||Fr;return t.jsx(u,{error:i?i(c):c})}return t.jsx(Mr,{tweet:a,components:s})};function Is({node:e}){var s;const n=((s=e==null?void 0:e.attrs)==null?void 0:s.src)||"",r=n==null?void 0:n.split("/").pop();return r?t.jsx(I.NodeViewWrapper,{children:t.jsx("div",{"data-twitter":"",children:t.jsx(Es,{id:r})})}):null}function It(e){const{t:n}=Dt.useLocale(),[r,s]=h.useState("");h.useEffect(()=>{var i;if(e!=null&&e.editor){const{src:a}=(i=e.editor)==null?void 0:i.getAttributes(Xe.name);a&&s(a)}},[e==null?void 0:e.editor]);function o(i){i.preventDefault(),i.stopPropagation(),e==null||e.onSetLink(r)}return t.jsxs("form",{className:"richtext-flex richtext-flex-col richtext-gap-2",onSubmit:o,children:[t.jsx(z.Label,{className:"mb-[6px]",children:n("editor.link.dialog.text")}),t.jsx("div",{className:"richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5",children:t.jsx("div",{className:"richtext-relative richtext-w-full richtext-max-w-sm richtext-items-center",children:t.jsx(z.Input,{className:"richtext-w-80",onChange:i=>s(i.target.value),placeholder:"Text",required:!0,type:"text",value:r})})}),t.jsx(z.Button,{className:"richtext-mt-2 richtext-self-end",type:"submit",children:n("editor.link.dialog.button.apply")})]})}function Cs(){const[e,n]=h.useState(!1),r=z.useEditorInstance(),s=z.useButtonProps(Xe.name),{icon:o=void 0,tooltip:i=void 0,tooltipOptions:a={},action:c=void 0,isActive:f=void 0}=(s==null?void 0:s.componentProps)??{},{editorDisabled:u}=z.useToggleActive(f);function x(p){u||c&&(c(p),n(!1))}return t.jsxs(Re.Popover,{modal:!0,onOpenChange:n,open:e,children:[t.jsx(Re.PopoverTrigger,{asChild:!0,children:t.jsx(z.ActionButton,{disabled:u,isActive:f,tooltip:i,tooltipOptions:a,children:t.jsx(z.IconComponent,{name:o})})}),t.jsx(Re.PopoverContent,{align:"start",className:"richtext-w-full",hideWhenDetached:!0,side:"bottom",children:t.jsx(It,{editor:r,onSetLink:x})})]})}const Os=/(https?:\/\/)?(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?/g,Ls=/^https?:\/\/(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?$/;function _t(e){return e.match(Ls)}const Xe=Te.Node3.create({name:"twitter",draggable:!0,selectable:!0,addOptions(){return{addPasteHandler:!0,HTMLAttributes:{},inline:!1,origin:"",button:({editor:e,t:n})=>({componentProps:{action:r=>{e.commands.setTweet({src:r})},isActive:()=>!1,disabled:!1,icon:"Twitter",tooltip:n("editor.twitter.tooltip"),editor:e}})}},addNodeView(){return I.ReactNodeViewRenderer(Is,{attrs:this.options.HTMLAttributes})},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},addAttributes(){return{src:{default:null}}},parseHTML(){return[{tag:"div[data-twitter]"}]},addCommands(){return{setTweet:e=>({commands:n})=>_t(e.src)?n.insertContent({type:this.name,attrs:e}):!1,updateTweet:e=>({commands:n})=>_t(e.src)?n.updateAttributes(this.name,{src:e.src}):!1}},addPasteRules(){return this.options.addPasteHandler?[Te.nodePasteRule({find:Os,type:this.type,getAttributes:e=>({src:e.input})})]:[]},renderHTML({HTMLAttributes:e}){return["div",Te.mergeAttributes({"data-twitter":""},e)]}});exports.FormEditLinkTwitter=It;exports.RichTextTwitter=Cs;exports.Twitter=Xe;
|
package/lib/Twitter.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-BGfIcDCQ.cjs");require("./clsx-DRbkQ4T7.cjs");const e=require("./Twitter-q4ZGZL0i.cjs");exports.RichTextTwitter=e.RichTextTwitter;exports.Twitter=e.Twitter;
|
package/lib/Twitter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import "./clsx-
|
|
3
|
-
import { R as o, T } from "./Twitter-
|
|
1
|
+
import "./index-Dx-Dh7KS.js";
|
|
2
|
+
import "./clsx-_bq4MQQ7.js";
|
|
3
|
+
import { R as o, T } from "./Twitter-DP26Lkn8.js";
|
|
4
4
|
export {
|
|
5
5
|
o as RichTextTwitter,
|
|
6
6
|
T as Twitter
|
package/lib/Video.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-BGfIcDCQ.cjs");require("./index-BpLw6ebr.cjs");const e=require("./index-aujjnfSJ.cjs");exports.RichTextVideo=e.RichTextVideo;exports.Video=e.Video;
|
package/lib/Video.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
1
|
+
import "./index-Dx-Dh7KS.js";
|
|
2
|
+
import "./index-DtyAGMbq.js";
|
|
3
|
+
import { a6 as r, a3 as t } from "./index-C52cuQ_Y.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
r as RichTextVideo,
|
|
6
|
+
t as Video
|
|
7
7
|
};
|