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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { N as jt, m as Wt,
|
|
2
|
-
import { c as U, s as ot, N as Ft, a as Pt } from "./clsx-
|
|
1
|
+
import { N as jt, m as Wt, a1 as Bt } from "./index-Dx-Dh7KS.js";
|
|
2
|
+
import { c as U, s as ot, N as Ft, a as Pt } from "./clsx-_bq4MQQ7.js";
|
|
3
3
|
import { jsx as r, jsxs as h, Fragment as Ut } from "react/jsx-runtime";
|
|
4
4
|
import Ue, { useState as se, Fragment as zt, useEffect as ze, useMemo as He, createContext as Ht, useLayoutEffect as Gt, useContext as Xt, useRef as z, useCallback as Re, useDebugValue as Kt } from "react";
|
|
5
|
-
import { L as Qt,
|
|
5
|
+
import { L as Qt, k as Jt, B as Yt, h as Zt, u as en, d as tn, A as nn, I as rn } from "./index-C52cuQ_Y.js";
|
|
6
6
|
import "./theme.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { P as on, a as an, b as sn } from "./popover-BB-ZDnqk.js";
|
|
8
|
+
import { u as cn } from "./index-DtyAGMbq.js";
|
|
9
9
|
const ln = "_verified_lvyh0_1", Ge = {
|
|
10
10
|
verified: ln
|
|
11
11
|
}, dn = () => /* @__PURE__ */ r("svg", {
|
|
@@ -120,17 +120,17 @@ const ln = "_verified_lvyh0_1", Ge = {
|
|
|
120
120
|
})
|
|
121
121
|
}), gt = (e) => /* @__PURE__ */ r("img", {
|
|
122
122
|
...e
|
|
123
|
-
}), mn = "_verifiedOld_lcna5_1", pn = "_verifiedBlue_lcna5_4", vn = "_verifiedGovernment_lcna5_7",
|
|
123
|
+
}), mn = "_verifiedOld_lcna5_1", pn = "_verifiedBlue_lcna5_4", vn = "_verifiedGovernment_lcna5_7", Se = {
|
|
124
124
|
verifiedOld: mn,
|
|
125
125
|
verifiedBlue: pn,
|
|
126
126
|
verifiedGovernment: vn
|
|
127
127
|
}, wt = ({ user: e, className: t }) => {
|
|
128
128
|
const n = e.verified || e.is_blue_verified || e.verified_type;
|
|
129
|
-
let o = /* @__PURE__ */ r(dn, {}), a =
|
|
129
|
+
let o = /* @__PURE__ */ r(dn, {}), a = Se.verifiedBlue;
|
|
130
130
|
if (n)
|
|
131
|
-
switch (e.is_blue_verified || (a =
|
|
131
|
+
switch (e.is_blue_verified || (a = Se.verifiedOld), e.verified_type) {
|
|
132
132
|
case "Government":
|
|
133
|
-
o = /* @__PURE__ */ r(fn, {}), a =
|
|
133
|
+
o = /* @__PURE__ */ r(fn, {}), a = Se.verifiedGovernment;
|
|
134
134
|
break;
|
|
135
135
|
case "Business":
|
|
136
136
|
o = /* @__PURE__ */ r(un, {}), a = null;
|
|
@@ -154,15 +154,15 @@ const ln = "_verified_lvyh0_1", Ge = {
|
|
|
154
154
|
alt: o.description
|
|
155
155
|
})
|
|
156
156
|
}) : null;
|
|
157
|
-
}, yn = "_header_nqq4j_1", bn = "_avatar_nqq4j_11", Tn = "_avatarOverflow_nqq4j_16", xn = "_avatarSquare_nqq4j_23", Nn = "_avatarShadow_nqq4j_26", Rn = "_author_nqq4j_37",
|
|
157
|
+
}, yn = "_header_nqq4j_1", bn = "_avatar_nqq4j_11", Tn = "_avatarOverflow_nqq4j_16", xn = "_avatarSquare_nqq4j_23", Nn = "_avatarShadow_nqq4j_26", Rn = "_author_nqq4j_37", Sn = "_authorLink_nqq4j_44", In = "_authorVerified_nqq4j_53", kn = "_authorLinkText_nqq4j_56", En = "_authorMeta_nqq4j_63", Cn = "_authorFollow_nqq4j_66", On = "_username_nqq4j_69", Ln = "_follow_nqq4j_74", qn = "_separator_nqq4j_82", $n = "_brand_nqq4j_86", Dn = "_twitterIcon_nqq4j_90", N = {
|
|
158
158
|
header: yn,
|
|
159
159
|
avatar: bn,
|
|
160
160
|
avatarOverflow: Tn,
|
|
161
161
|
avatarSquare: xn,
|
|
162
162
|
avatarShadow: Nn,
|
|
163
163
|
author: Rn,
|
|
164
|
-
authorLink:
|
|
165
|
-
authorVerified:
|
|
164
|
+
authorLink: Sn,
|
|
165
|
+
authorVerified: In,
|
|
166
166
|
authorLinkText: kn,
|
|
167
167
|
authorMeta: En,
|
|
168
168
|
authorFollow: Cn,
|
|
@@ -364,8 +364,8 @@ const Hn = {
|
|
|
364
364
|
}, nr = (e) => {
|
|
365
365
|
const { variants: t } = e.video_info;
|
|
366
366
|
return t.filter((o) => o.content_type === "video/mp4").sort((o, a) => {
|
|
367
|
-
var
|
|
368
|
-
return ((
|
|
367
|
+
var s, i;
|
|
368
|
+
return ((s = a.bitrate) != null ? s : 0) - ((i = o.bitrate) != null ? i : 0);
|
|
369
369
|
});
|
|
370
370
|
}, rr = (e) => {
|
|
371
371
|
const t = nr(e);
|
|
@@ -377,69 +377,72 @@ function it(e) {
|
|
|
377
377
|
indices: e.display_text_range,
|
|
378
378
|
type: "text"
|
|
379
379
|
}
|
|
380
|
-
];
|
|
381
|
-
return he(n, "hashtag",
|
|
382
|
-
const
|
|
383
|
-
switch (
|
|
380
|
+
], { entities: o } = e;
|
|
381
|
+
return o && (he(n, "hashtag", o.hashtags), he(n, "mention", o.user_mentions), he(n, "url", o.urls), he(n, "symbol", o.symbols), he(n, "media", o.media)), or(e, n), n.map((a) => {
|
|
382
|
+
const s = t.slice(a.indices[0], a.indices[1]).join("");
|
|
383
|
+
switch (a.type) {
|
|
384
384
|
case "hashtag":
|
|
385
|
-
return Object.assign(
|
|
386
|
-
href: Zn(
|
|
387
|
-
text:
|
|
385
|
+
return Object.assign(a, {
|
|
386
|
+
href: Zn(a),
|
|
387
|
+
text: s
|
|
388
388
|
});
|
|
389
389
|
case "mention":
|
|
390
|
-
return Object.assign(
|
|
391
|
-
href: Tt(
|
|
392
|
-
text:
|
|
390
|
+
return Object.assign(a, {
|
|
391
|
+
href: Tt(a.screen_name),
|
|
392
|
+
text: s
|
|
393
393
|
});
|
|
394
394
|
case "url":
|
|
395
395
|
case "media":
|
|
396
|
-
return Object.assign(
|
|
397
|
-
href:
|
|
398
|
-
text:
|
|
396
|
+
return Object.assign(a, {
|
|
397
|
+
href: a.expanded_url,
|
|
398
|
+
text: a.display_url
|
|
399
399
|
});
|
|
400
400
|
case "symbol":
|
|
401
|
-
return Object.assign(
|
|
402
|
-
href: er(
|
|
403
|
-
text:
|
|
401
|
+
return Object.assign(a, {
|
|
402
|
+
href: er(a),
|
|
403
|
+
text: s
|
|
404
404
|
});
|
|
405
405
|
default:
|
|
406
|
-
return Object.assign(
|
|
407
|
-
text:
|
|
406
|
+
return Object.assign(a, {
|
|
407
|
+
text: s
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
function he(e, t, n) {
|
|
413
|
-
|
|
414
|
-
for (const
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
indices
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
indices
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
413
|
+
if (n != null && n.length)
|
|
414
|
+
for (const o of n)
|
|
415
|
+
for (const [a, s] of e.entries()) {
|
|
416
|
+
if (s.indices[0] > o.indices[0] || s.indices[1] < o.indices[1])
|
|
417
|
+
continue;
|
|
418
|
+
const i = [
|
|
419
|
+
{
|
|
420
|
+
...o,
|
|
421
|
+
type: t
|
|
422
|
+
}
|
|
423
|
+
];
|
|
424
|
+
s.indices[0] < o.indices[0] && i.unshift({
|
|
425
|
+
indices: [
|
|
426
|
+
s.indices[0],
|
|
427
|
+
o.indices[0]
|
|
428
|
+
],
|
|
429
|
+
type: "text"
|
|
430
|
+
}), s.indices[1] > o.indices[1] && i.push({
|
|
431
|
+
indices: [
|
|
432
|
+
o.indices[1],
|
|
433
|
+
s.indices[1]
|
|
434
|
+
],
|
|
435
|
+
type: "text"
|
|
436
|
+
}), e.splice(a, 1, ...i);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
438
439
|
}
|
|
439
440
|
function or(e, t) {
|
|
440
|
-
|
|
441
|
-
const n =
|
|
442
|
-
|
|
441
|
+
var n;
|
|
442
|
+
const o = (n = e.entities) == null ? void 0 : n.media;
|
|
443
|
+
o != null && o.length && o[0].indices[0] < e.display_text_range[1] && (e.display_text_range[1] = o[0].indices[0]);
|
|
444
|
+
const a = t.at(-1);
|
|
445
|
+
a && a.indices[1] > e.display_text_range[1] && (a.indices[1] = e.display_text_range[1]);
|
|
443
446
|
}
|
|
444
447
|
const ar = (e) => ({
|
|
445
448
|
...e,
|
|
@@ -476,7 +479,7 @@ const ar = (e) => ({
|
|
|
476
479
|
watchOnTwitter: wr,
|
|
477
480
|
viewReplies: yr
|
|
478
481
|
}, br = ({ tweet: e, media: t }) => {
|
|
479
|
-
const [n, o] = se(!0), [a,
|
|
482
|
+
const [n, o] = se(!0), [a, s] = se(!1), [i, c] = se(!1), f = rr(t);
|
|
480
483
|
let u = 0;
|
|
481
484
|
return /* @__PURE__ */ h(Ut, {
|
|
482
485
|
children: [
|
|
@@ -488,11 +491,11 @@ const ar = (e) => ({
|
|
|
488
491
|
preload: "none",
|
|
489
492
|
tabIndex: n ? -1 : 0,
|
|
490
493
|
onPlay: () => {
|
|
491
|
-
u && window.clearTimeout(u), a ||
|
|
494
|
+
u && window.clearTimeout(u), a || s(!0), i && c(!1);
|
|
492
495
|
},
|
|
493
496
|
onPause: () => {
|
|
494
497
|
u && window.clearTimeout(u), u = window.setTimeout(() => {
|
|
495
|
-
a &&
|
|
498
|
+
a && s(!1), u = 0;
|
|
496
499
|
}, 100);
|
|
497
500
|
},
|
|
498
501
|
onEnded: () => {
|
|
@@ -510,9 +513,9 @@ const ar = (e) => ({
|
|
|
510
513
|
onClick: (v) => {
|
|
511
514
|
const m = v.currentTarget.previousSibling;
|
|
512
515
|
v.preventDefault(), o(!1), m.load(), m.play().then(() => {
|
|
513
|
-
|
|
516
|
+
s(!0), m.focus();
|
|
514
517
|
}).catch((T) => {
|
|
515
|
-
console.error("Error playing video:", T), o(!0),
|
|
518
|
+
console.error("Error playing video:", T), o(!0), s(!1);
|
|
516
519
|
});
|
|
517
520
|
},
|
|
518
521
|
children: /* @__PURE__ */ r("svg", {
|
|
@@ -526,7 +529,7 @@ const ar = (e) => ({
|
|
|
526
529
|
})
|
|
527
530
|
})
|
|
528
531
|
}),
|
|
529
|
-
!a && !
|
|
532
|
+
!a && !i && /* @__PURE__ */ r("div", {
|
|
530
533
|
className: ae.watchOnTwitter,
|
|
531
534
|
children: /* @__PURE__ */ r("a", {
|
|
532
535
|
href: e.url,
|
|
@@ -536,7 +539,7 @@ const ar = (e) => ({
|
|
|
536
539
|
children: n ? "Watch on X" : "Continue watching on X"
|
|
537
540
|
})
|
|
538
541
|
}),
|
|
539
|
-
|
|
542
|
+
i && /* @__PURE__ */ r("a", {
|
|
540
543
|
href: e.url,
|
|
541
544
|
className: U(ae.anchor, ae.viewReplies),
|
|
542
545
|
target: "_blank",
|
|
@@ -554,15 +557,13 @@ const ar = (e) => ({
|
|
|
554
557
|
paddingBottom: `${n}%`
|
|
555
558
|
};
|
|
556
559
|
}, Nt = ({ tweet: e, components: t, quoted: n }) => {
|
|
557
|
-
var o, a, i;
|
|
558
|
-
const
|
|
559
|
-
var c;
|
|
560
|
-
const f = (c = t == null ? void 0 : t.MediaImg) != null ? c : Tr;
|
|
560
|
+
var o, a, s, i;
|
|
561
|
+
const c = (o = (s = e.mediaDetails) == null ? void 0 : s.length) != null ? o : 0, f = (a = t == null ? void 0 : t.MediaImg) != null ? a : Tr;
|
|
561
562
|
return /* @__PURE__ */ r("div", {
|
|
562
563
|
className: U(E.root, !n && E.rounded),
|
|
563
564
|
children: /* @__PURE__ */ r("div", {
|
|
564
|
-
className: U(E.mediaWrapper,
|
|
565
|
-
children: (
|
|
565
|
+
className: U(E.mediaWrapper, c > 1 && E.grid2Columns, c === 3 && E.grid3, c > 4 && E.grid2x2),
|
|
566
|
+
children: (i = e.mediaDetails) == null ? void 0 : i.map((u) => /* @__PURE__ */ r(zt, {
|
|
566
567
|
children: u.type === "photo" ? /* @__PURE__ */ h("a", {
|
|
567
568
|
href: e.url,
|
|
568
569
|
className: U(E.mediaContainer, E.mediaLink),
|
|
@@ -571,7 +572,7 @@ const ar = (e) => ({
|
|
|
571
572
|
children: [
|
|
572
573
|
/* @__PURE__ */ r("div", {
|
|
573
574
|
className: E.skeleton,
|
|
574
|
-
style: ct(u,
|
|
575
|
+
style: ct(u, c)
|
|
575
576
|
}),
|
|
576
577
|
/* @__PURE__ */ r(f, {
|
|
577
578
|
src: xt(u, "small"),
|
|
@@ -585,7 +586,7 @@ const ar = (e) => ({
|
|
|
585
586
|
children: [
|
|
586
587
|
/* @__PURE__ */ r("div", {
|
|
587
588
|
className: E.skeleton,
|
|
588
|
-
style: ct(u,
|
|
589
|
+
style: ct(u, c)
|
|
589
590
|
}),
|
|
590
591
|
/* @__PURE__ */ r(br, {
|
|
591
592
|
tweet: e,
|
|
@@ -611,18 +612,18 @@ const ar = (e) => ({
|
|
|
611
612
|
children: n
|
|
612
613
|
})
|
|
613
614
|
});
|
|
614
|
-
},
|
|
615
|
-
info:
|
|
616
|
-
infoLink:
|
|
615
|
+
}, Sr = "_info_19qcj_1", Ir = "_infoLink_19qcj_10", kr = "_infoIcon_19qcj_30", Ie = {
|
|
616
|
+
info: Sr,
|
|
617
|
+
infoLink: Ir,
|
|
617
618
|
infoIcon: kr
|
|
618
619
|
}, Er = ({ tweet: e }) => /* @__PURE__ */ h("div", {
|
|
619
|
-
className:
|
|
620
|
+
className: Ie.info,
|
|
620
621
|
children: [
|
|
621
622
|
/* @__PURE__ */ r(Rr, {
|
|
622
623
|
tweet: e
|
|
623
624
|
}),
|
|
624
625
|
/* @__PURE__ */ r("a", {
|
|
625
|
-
className:
|
|
626
|
+
className: Ie.infoLink,
|
|
626
627
|
href: "https://help.x.com/en/x-for-websites-ads-info-and-privacy",
|
|
627
628
|
target: "_blank",
|
|
628
629
|
rel: "noopener noreferrer",
|
|
@@ -630,7 +631,7 @@ const ar = (e) => ({
|
|
|
630
631
|
children: /* @__PURE__ */ r("svg", {
|
|
631
632
|
viewBox: "0 0 24 24",
|
|
632
633
|
"aria-hidden": "true",
|
|
633
|
-
className:
|
|
634
|
+
className: Ie.infoIcon,
|
|
634
635
|
children: /* @__PURE__ */ r("g", {
|
|
635
636
|
children: /* @__PURE__ */ r("path", {
|
|
636
637
|
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"
|
|
@@ -639,7 +640,7 @@ const ar = (e) => ({
|
|
|
639
640
|
})
|
|
640
641
|
})
|
|
641
642
|
]
|
|
642
|
-
}), Cr = "_actions_n2anf_1", Or = "_like_n2anf_13", Lr = "_reply_n2anf_14", qr = "_copy_n2anf_15", $r = "_likeIconWrapper_n2anf_27", Dr = "_likeCount_n2anf_30", Ar = "_replyIconWrapper_n2anf_35", Vr = "_copyIconWrapper_n2anf_36", Mr = "_likeIcon_n2anf_27", jr = "_replyIcon_n2anf_35", Wr = "_copyIcon_n2anf_36", Br = "_replyText_n2anf_56", Fr = "_copyText_n2anf_57",
|
|
643
|
+
}), Cr = "_actions_n2anf_1", Or = "_like_n2anf_13", Lr = "_reply_n2anf_14", qr = "_copy_n2anf_15", $r = "_likeIconWrapper_n2anf_27", Dr = "_likeCount_n2anf_30", Ar = "_replyIconWrapper_n2anf_35", Vr = "_copyIconWrapper_n2anf_36", Mr = "_likeIcon_n2anf_27", jr = "_replyIcon_n2anf_35", Wr = "_copyIcon_n2anf_36", Br = "_replyText_n2anf_56", Fr = "_copyText_n2anf_57", I = {
|
|
643
644
|
actions: Cr,
|
|
644
645
|
like: Or,
|
|
645
646
|
reply: Lr,
|
|
@@ -668,15 +669,15 @@ const ar = (e) => ({
|
|
|
668
669
|
t
|
|
669
670
|
]), /* @__PURE__ */ h("button", {
|
|
670
671
|
type: "button",
|
|
671
|
-
className:
|
|
672
|
+
className: I.copy,
|
|
672
673
|
"aria-label": "Copy link",
|
|
673
674
|
onClick: o,
|
|
674
675
|
children: [
|
|
675
676
|
/* @__PURE__ */ r("div", {
|
|
676
|
-
className:
|
|
677
|
+
className: I.copyIconWrapper,
|
|
677
678
|
children: t ? /* @__PURE__ */ r("svg", {
|
|
678
679
|
viewBox: "0 0 24 24",
|
|
679
|
-
className:
|
|
680
|
+
className: I.copyIcon,
|
|
680
681
|
"aria-hidden": "true",
|
|
681
682
|
children: /* @__PURE__ */ r("g", {
|
|
682
683
|
children: /* @__PURE__ */ r("path", {
|
|
@@ -685,7 +686,7 @@ const ar = (e) => ({
|
|
|
685
686
|
})
|
|
686
687
|
}) : /* @__PURE__ */ r("svg", {
|
|
687
688
|
viewBox: "0 0 24 24",
|
|
688
|
-
className:
|
|
689
|
+
className: I.copyIcon,
|
|
689
690
|
"aria-hidden": "true",
|
|
690
691
|
children: /* @__PURE__ */ r("g", {
|
|
691
692
|
children: /* @__PURE__ */ r("path", {
|
|
@@ -695,7 +696,7 @@ const ar = (e) => ({
|
|
|
695
696
|
})
|
|
696
697
|
}),
|
|
697
698
|
/* @__PURE__ */ r("span", {
|
|
698
|
-
className:
|
|
699
|
+
className: I.copyText,
|
|
699
700
|
children: t ? "Copied!" : "Copy link"
|
|
700
701
|
})
|
|
701
702
|
]
|
|
@@ -703,20 +704,20 @@ const ar = (e) => ({
|
|
|
703
704
|
}, Ur = ({ tweet: e }) => {
|
|
704
705
|
const t = De(e.favorite_count);
|
|
705
706
|
return /* @__PURE__ */ h("div", {
|
|
706
|
-
className:
|
|
707
|
+
className: I.actions,
|
|
707
708
|
children: [
|
|
708
709
|
/* @__PURE__ */ h("a", {
|
|
709
|
-
className:
|
|
710
|
+
className: I.like,
|
|
710
711
|
href: e.like_url,
|
|
711
712
|
target: "_blank",
|
|
712
713
|
rel: "noopener noreferrer",
|
|
713
714
|
"aria-label": `Like. This Tweet has ${t} likes`,
|
|
714
715
|
children: [
|
|
715
716
|
/* @__PURE__ */ r("div", {
|
|
716
|
-
className:
|
|
717
|
+
className: I.likeIconWrapper,
|
|
717
718
|
children: /* @__PURE__ */ r("svg", {
|
|
718
719
|
viewBox: "0 0 24 24",
|
|
719
|
-
className:
|
|
720
|
+
className: I.likeIcon,
|
|
720
721
|
"aria-hidden": "true",
|
|
721
722
|
children: /* @__PURE__ */ r("g", {
|
|
722
723
|
children: /* @__PURE__ */ r("path", {
|
|
@@ -726,23 +727,23 @@ const ar = (e) => ({
|
|
|
726
727
|
})
|
|
727
728
|
}),
|
|
728
729
|
/* @__PURE__ */ r("span", {
|
|
729
|
-
className:
|
|
730
|
+
className: I.likeCount,
|
|
730
731
|
children: t
|
|
731
732
|
})
|
|
732
733
|
]
|
|
733
734
|
}),
|
|
734
735
|
/* @__PURE__ */ h("a", {
|
|
735
|
-
className:
|
|
736
|
+
className: I.reply,
|
|
736
737
|
href: e.reply_url,
|
|
737
738
|
target: "_blank",
|
|
738
739
|
rel: "noopener noreferrer",
|
|
739
740
|
"aria-label": "Reply to this Tweet on Twitter",
|
|
740
741
|
children: [
|
|
741
742
|
/* @__PURE__ */ r("div", {
|
|
742
|
-
className:
|
|
743
|
+
className: I.replyIconWrapper,
|
|
743
744
|
children: /* @__PURE__ */ r("svg", {
|
|
744
745
|
viewBox: "0 0 24 24",
|
|
745
|
-
className:
|
|
746
|
+
className: I.replyIcon,
|
|
746
747
|
"aria-hidden": "true",
|
|
747
748
|
children: /* @__PURE__ */ r("g", {
|
|
748
749
|
children: /* @__PURE__ */ r("path", {
|
|
@@ -752,7 +753,7 @@ const ar = (e) => ({
|
|
|
752
753
|
})
|
|
753
754
|
}),
|
|
754
755
|
/* @__PURE__ */ r("span", {
|
|
755
|
-
className:
|
|
756
|
+
className: I.replyText,
|
|
756
757
|
children: "Reply"
|
|
757
758
|
})
|
|
758
759
|
]
|
|
@@ -799,9 +800,8 @@ const ar = (e) => ({
|
|
|
799
800
|
authorText: ro,
|
|
800
801
|
username: oo
|
|
801
802
|
}, ao = ({ tweet: e, components: t }) => {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
const a = (o = t == null ? void 0 : t.AvatarImg) != null ? o : gt;
|
|
803
|
+
var n;
|
|
804
|
+
const { user: o } = e, a = (n = t == null ? void 0 : t.AvatarImg) != null ? n : gt;
|
|
805
805
|
return /* @__PURE__ */ h("div", {
|
|
806
806
|
className: Q.header,
|
|
807
807
|
children: [
|
|
@@ -811,10 +811,10 @@ const ar = (e) => ({
|
|
|
811
811
|
target: "_blank",
|
|
812
812
|
rel: "noopener noreferrer",
|
|
813
813
|
children: /* @__PURE__ */ r("div", {
|
|
814
|
-
className: U(Q.avatarOverflow,
|
|
814
|
+
className: U(Q.avatarOverflow, o.profile_image_shape === "Square" && Q.avatarSquare),
|
|
815
815
|
children: /* @__PURE__ */ r(a, {
|
|
816
|
-
src:
|
|
817
|
-
alt:
|
|
816
|
+
src: o.profile_image_url_https,
|
|
817
|
+
alt: o.name,
|
|
818
818
|
width: 20,
|
|
819
819
|
height: 20
|
|
820
820
|
})
|
|
@@ -826,23 +826,23 @@ const ar = (e) => ({
|
|
|
826
826
|
/* @__PURE__ */ r("div", {
|
|
827
827
|
className: Q.authorText,
|
|
828
828
|
children: /* @__PURE__ */ r("span", {
|
|
829
|
-
title:
|
|
830
|
-
children:
|
|
829
|
+
title: o.name,
|
|
830
|
+
children: o.name
|
|
831
831
|
})
|
|
832
832
|
}),
|
|
833
833
|
/* @__PURE__ */ r(wt, {
|
|
834
|
-
user:
|
|
834
|
+
user: o
|
|
835
835
|
}),
|
|
836
836
|
/* @__PURE__ */ r(yt, {
|
|
837
|
-
user:
|
|
837
|
+
user: o
|
|
838
838
|
}),
|
|
839
839
|
/* @__PURE__ */ r("div", {
|
|
840
840
|
className: Q.username,
|
|
841
841
|
children: /* @__PURE__ */ h("span", {
|
|
842
|
-
title: `@${
|
|
842
|
+
title: `@${o.screen_name}`,
|
|
843
843
|
children: [
|
|
844
844
|
"@",
|
|
845
|
-
|
|
845
|
+
o.screen_name
|
|
846
846
|
]
|
|
847
847
|
})
|
|
848
848
|
})
|
|
@@ -970,7 +970,7 @@ const ar = (e) => ({
|
|
|
970
970
|
}
|
|
971
971
|
})
|
|
972
972
|
]
|
|
973
|
-
}), Rt = 0,
|
|
973
|
+
}), Rt = 0, St = 1, It = 2, dt = 3;
|
|
974
974
|
var ut = Object.prototype.hasOwnProperty;
|
|
975
975
|
function Ae(e, t) {
|
|
976
976
|
var n, o;
|
|
@@ -993,10 +993,10 @@ function Ae(e, t) {
|
|
|
993
993
|
return e !== e && t !== t;
|
|
994
994
|
}
|
|
995
995
|
const F = /* @__PURE__ */ new WeakMap(), P = () => {
|
|
996
|
-
},
|
|
996
|
+
}, S = (
|
|
997
997
|
/*#__NOINLINE__*/
|
|
998
998
|
P()
|
|
999
|
-
), Ve = Object, d = (e) => e ===
|
|
999
|
+
), Ve = Object, d = (e) => e === S, W = (e) => typeof e == "function", H = (e, t) => ({
|
|
1000
1000
|
...e,
|
|
1001
1001
|
...t
|
|
1002
1002
|
}), kt = (e) => W(e.then), Ee = {}, we = {}, Ke = "undefined", _e = typeof window != Ke, Me = typeof document != Ke, yo = _e && "Deno" in window, bo = () => _e && typeof window.requestAnimationFrame != Ke, Et = (e, t) => {
|
|
@@ -1038,10 +1038,10 @@ const To = () => je, [We, Be] = _e && window.addEventListener ? [
|
|
|
1038
1038
|
return We("online", t), We("offline", n), () => {
|
|
1039
1039
|
Be("online", t), Be("offline", n);
|
|
1040
1040
|
};
|
|
1041
|
-
},
|
|
1041
|
+
}, So = {
|
|
1042
1042
|
isOnline: To,
|
|
1043
1043
|
isVisible: xo
|
|
1044
|
-
},
|
|
1044
|
+
}, Io = {
|
|
1045
1045
|
initFocus: No,
|
|
1046
1046
|
initReconnect: Ro
|
|
1047
1047
|
}, ft = !Ue.useId, ie = !_e || yo, ko = (e) => bo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ce = ie ? ze : Gt, Oe = typeof navigator < "u" && navigator.connection, ht = !ie && Oe && ([
|
|
@@ -1050,25 +1050,25 @@ const To = () => je, [We, Be] = _e && window.addEventListener ? [
|
|
|
1050
1050
|
].includes(Oe.effectiveType) || Oe.saveData), ye = /* @__PURE__ */ new WeakMap(), Eo = (e) => Ve.prototype.toString.call(e), Le = (e, t) => e === `[object ${t}]`;
|
|
1051
1051
|
let Co = 0;
|
|
1052
1052
|
const Fe = (e) => {
|
|
1053
|
-
const t = typeof e, n = Eo(e), o = Le(n, "Date"), a = Le(n, "RegExp"),
|
|
1054
|
-
let
|
|
1053
|
+
const t = typeof e, n = Eo(e), o = Le(n, "Date"), a = Le(n, "RegExp"), s = Le(n, "Object");
|
|
1054
|
+
let i, c;
|
|
1055
1055
|
if (Ve(e) === e && !o && !a) {
|
|
1056
|
-
if (
|
|
1057
|
-
if (
|
|
1058
|
-
for (
|
|
1059
|
-
|
|
1060
|
-
ye.set(e,
|
|
1056
|
+
if (i = ye.get(e), i) return i;
|
|
1057
|
+
if (i = ++Co + "~", ye.set(e, i), Array.isArray(e)) {
|
|
1058
|
+
for (i = "@", c = 0; c < e.length; c++)
|
|
1059
|
+
i += Fe(e[c]) + ",";
|
|
1060
|
+
ye.set(e, i);
|
|
1061
1061
|
}
|
|
1062
|
-
if (
|
|
1063
|
-
|
|
1062
|
+
if (s) {
|
|
1063
|
+
i = "#";
|
|
1064
1064
|
const f = Ve.keys(e).sort();
|
|
1065
1065
|
for (; !d(c = f.pop()); )
|
|
1066
|
-
d(e[c]) || (
|
|
1067
|
-
ye.set(e,
|
|
1066
|
+
d(e[c]) || (i += c + ":" + Fe(e[c]) + ",");
|
|
1067
|
+
ye.set(e, i);
|
|
1068
1068
|
}
|
|
1069
1069
|
} else
|
|
1070
|
-
|
|
1071
|
-
return
|
|
1070
|
+
i = o ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
1071
|
+
return i;
|
|
1072
1072
|
}, Qe = (e) => {
|
|
1073
1073
|
if (W(e))
|
|
1074
1074
|
try {
|
|
@@ -1085,16 +1085,16 @@ const Fe = (e) => {
|
|
|
1085
1085
|
let Oo = 0;
|
|
1086
1086
|
const Pe = () => ++Oo;
|
|
1087
1087
|
async function Ct(...e) {
|
|
1088
|
-
const [t, n, o, a] = e,
|
|
1088
|
+
const [t, n, o, a] = e, s = H({
|
|
1089
1089
|
populateCache: !0,
|
|
1090
1090
|
throwOnError: !0
|
|
1091
1091
|
}, typeof a == "boolean" ? {
|
|
1092
1092
|
revalidate: a
|
|
1093
1093
|
} : a || {});
|
|
1094
|
-
let
|
|
1095
|
-
const c =
|
|
1096
|
-
let f =
|
|
1097
|
-
const u = (T) => typeof c == "function" ? c(T) : c !== !1, v =
|
|
1094
|
+
let i = s.populateCache;
|
|
1095
|
+
const c = s.rollbackOnError;
|
|
1096
|
+
let f = s.optimisticData;
|
|
1097
|
+
const u = (T) => typeof c == "function" ? c(T) : c !== !1, v = s.throwOnError;
|
|
1098
1098
|
if (W(n)) {
|
|
1099
1099
|
const T = n, R = [], k = t.keys();
|
|
1100
1100
|
for (const L of k)
|
|
@@ -1108,7 +1108,7 @@ async function Ct(...e) {
|
|
|
1108
1108
|
if (!R) return;
|
|
1109
1109
|
const [k, L] = Et(t, R), [D, ce, l, me] = F.get(t), J = () => {
|
|
1110
1110
|
const q = D[R];
|
|
1111
|
-
return (W(
|
|
1111
|
+
return (W(s.revalidate) ? s.revalidate(k().data, T) : s.revalidate !== !1) && (delete l[R], delete me[R], q && q[0]) ? q[0](It).then(() => k().data) : k().data;
|
|
1112
1112
|
};
|
|
1113
1113
|
if (e.length < 3)
|
|
1114
1114
|
return J();
|
|
@@ -1134,27 +1134,27 @@ async function Ct(...e) {
|
|
|
1134
1134
|
}), Y !== ce[R][0]) {
|
|
1135
1135
|
if (V) throw A;
|
|
1136
1136
|
return x;
|
|
1137
|
-
} else V && p && u(A) && (
|
|
1137
|
+
} else V && p && u(A) && (i = !0, L({
|
|
1138
1138
|
data: G,
|
|
1139
|
-
_c:
|
|
1139
|
+
_c: S
|
|
1140
1140
|
}));
|
|
1141
|
-
if (
|
|
1142
|
-
if (W(
|
|
1143
|
-
const q =
|
|
1141
|
+
if (i && !V)
|
|
1142
|
+
if (W(i)) {
|
|
1143
|
+
const q = i(x, G);
|
|
1144
1144
|
L({
|
|
1145
1145
|
data: q,
|
|
1146
|
-
error:
|
|
1147
|
-
_c:
|
|
1146
|
+
error: S,
|
|
1147
|
+
_c: S
|
|
1148
1148
|
});
|
|
1149
1149
|
} else
|
|
1150
1150
|
L({
|
|
1151
1151
|
data: x,
|
|
1152
|
-
error:
|
|
1153
|
-
_c:
|
|
1152
|
+
error: S,
|
|
1153
|
+
_c: S
|
|
1154
1154
|
});
|
|
1155
1155
|
if (ce[R][1] = Pe(), Promise.resolve(J()).then(() => {
|
|
1156
1156
|
L({
|
|
1157
|
-
_c:
|
|
1157
|
+
_c: S
|
|
1158
1158
|
});
|
|
1159
1159
|
}), V) {
|
|
1160
1160
|
if (v) throw A;
|
|
@@ -1168,14 +1168,14 @@ const _t = (e, t) => {
|
|
|
1168
1168
|
e[n][0] && e[n][0](t);
|
|
1169
1169
|
}, Lo = (e, t) => {
|
|
1170
1170
|
if (!F.has(e)) {
|
|
1171
|
-
const n = H(
|
|
1172
|
-
let
|
|
1173
|
-
const
|
|
1174
|
-
const T =
|
|
1175
|
-
return
|
|
1171
|
+
const n = H(Io, t), o = /* @__PURE__ */ Object.create(null), a = Ct.bind(S, e);
|
|
1172
|
+
let s = P;
|
|
1173
|
+
const i = /* @__PURE__ */ Object.create(null), c = (v, m) => {
|
|
1174
|
+
const T = i[v] || [];
|
|
1175
|
+
return i[v] = T, T.push(m), () => T.splice(T.indexOf(m), 1);
|
|
1176
1176
|
}, f = (v, m, T) => {
|
|
1177
1177
|
e.set(v, m);
|
|
1178
|
-
const R =
|
|
1178
|
+
const R = i[v];
|
|
1179
1179
|
if (R)
|
|
1180
1180
|
for (const k of R)
|
|
1181
1181
|
k(m, T);
|
|
@@ -1189,8 +1189,8 @@ const _t = (e, t) => {
|
|
|
1189
1189
|
f,
|
|
1190
1190
|
c
|
|
1191
1191
|
]), !ie)) {
|
|
1192
|
-
const v = n.initFocus(setTimeout.bind(
|
|
1193
|
-
|
|
1192
|
+
const v = n.initFocus(setTimeout.bind(S, _t.bind(S, o, Rt))), m = n.initReconnect(setTimeout.bind(S, _t.bind(S, o, St)));
|
|
1193
|
+
s = () => {
|
|
1194
1194
|
v && v(), m && m(), F.delete(e);
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
@@ -1199,7 +1199,7 @@ const _t = (e, t) => {
|
|
|
1199
1199
|
e,
|
|
1200
1200
|
a,
|
|
1201
1201
|
u,
|
|
1202
|
-
|
|
1202
|
+
s
|
|
1203
1203
|
];
|
|
1204
1204
|
}
|
|
1205
1205
|
return [
|
|
@@ -1207,8 +1207,8 @@ const _t = (e, t) => {
|
|
|
1207
1207
|
F.get(e)[4]
|
|
1208
1208
|
];
|
|
1209
1209
|
}, qo = (e, t, n, o, a) => {
|
|
1210
|
-
const
|
|
1211
|
-
!d(
|
|
1210
|
+
const s = n.errorRetryCount, i = a.retryCount, c = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * n.errorRetryInterval;
|
|
1211
|
+
!d(s) && i > s || setTimeout(o, c, a);
|
|
1212
1212
|
}, $o = Ae, [Ot, Do] = Lo(/* @__PURE__ */ new Map()), Ao = H(
|
|
1213
1213
|
{
|
|
1214
1214
|
// events
|
|
@@ -1235,12 +1235,12 @@ const _t = (e, t) => {
|
|
|
1235
1235
|
fallback: {}
|
|
1236
1236
|
},
|
|
1237
1237
|
// use web preset by default
|
|
1238
|
-
|
|
1238
|
+
So
|
|
1239
1239
|
), Vo = (e, t) => {
|
|
1240
1240
|
const n = H(e, t);
|
|
1241
1241
|
if (t) {
|
|
1242
|
-
const { use: o, fallback: a } = e, { use:
|
|
1243
|
-
o &&
|
|
1242
|
+
const { use: o, fallback: a } = e, { use: s, fallback: i } = t;
|
|
1243
|
+
o && s && (n.use = o.concat(s)), a && i && (n.fallback = H(a, i));
|
|
1244
1244
|
}
|
|
1245
1245
|
return n;
|
|
1246
1246
|
}, Mo = Ht({}), jo = "$inf$", Lt = _e && window.__SWR_DEVTOOLS_USE__, Wo = Lt ? window.__SWR_DEVTOOLS_USE__ : [], Bo = () => {
|
|
@@ -1258,19 +1258,19 @@ const _t = (e, t) => {
|
|
|
1258
1258
|
return He(() => H(Ao, e), [
|
|
1259
1259
|
e
|
|
1260
1260
|
]);
|
|
1261
|
-
}, Uo = (e) => (t, n, o) => e(t, n && ((...
|
|
1262
|
-
const [
|
|
1263
|
-
if (
|
|
1264
|
-
return n(...
|
|
1265
|
-
const f = c[
|
|
1266
|
-
return d(f) ? n(...
|
|
1261
|
+
}, Uo = (e) => (t, n, o) => e(t, n && ((...s) => {
|
|
1262
|
+
const [i] = Qe(t), [, , , c] = F.get(Ot);
|
|
1263
|
+
if (i.startsWith(jo))
|
|
1264
|
+
return n(...s);
|
|
1265
|
+
const f = c[i];
|
|
1266
|
+
return d(f) ? n(...s) : (delete c[i], f);
|
|
1267
1267
|
}), o), zo = Wo.concat(Uo), Ho = (e) => function(...n) {
|
|
1268
|
-
const o = Po(), [a,
|
|
1268
|
+
const o = Po(), [a, s, i] = Fo(n), c = Vo(o, i);
|
|
1269
1269
|
let f = e;
|
|
1270
1270
|
const { use: u } = c, v = (u || []).concat(zo);
|
|
1271
1271
|
for (let m = v.length; m--; )
|
|
1272
1272
|
f = v[m](f);
|
|
1273
|
-
return f(a,
|
|
1273
|
+
return f(a, s || c.fetcher || null, c);
|
|
1274
1274
|
}, Go = (e, t, n) => {
|
|
1275
1275
|
const o = t[e] || (t[e] = []);
|
|
1276
1276
|
return o.push(n), () => {
|
|
@@ -1300,8 +1300,8 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1300
1300
|
}
|
|
1301
1301
|
}), $e = {
|
|
1302
1302
|
dedupe: !0
|
|
1303
|
-
}, mt = Promise.resolve(
|
|
1304
|
-
const { cache: o, compare: a, suspense:
|
|
1303
|
+
}, mt = Promise.resolve(S), Xo = () => P, Ko = (e, t, n) => {
|
|
1304
|
+
const { cache: o, compare: a, suspense: s, fallbackData: i, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: u, refreshWhenHidden: v, refreshWhenOffline: m, keepPreviousData: T, strictServerPrefetchWarning: R } = n, [k, L, D, ce] = F.get(o), [l, me] = Qe(e), J = z(!1), x = z(!1), A = z(l), V = z(t), Y = z(n), p = () => Y.current, Z = () => p().isVisible() && p().isOnline(), [M, ee, G, q] = Et(o, l), te = z({}).current, ne = d(i) ? d(n.fallback) ? S : n.fallback[l] : i, Je = (_, g) => {
|
|
1305
1305
|
for (const w in te) {
|
|
1306
1306
|
const y = w;
|
|
1307
1307
|
if (y === "data") {
|
|
@@ -1350,8 +1350,8 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1350
1350
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1351
1351
|
ot.useSyncExternalStore(Xo, () => (le.current = !1, le), () => (le.current = !0, le));
|
|
1352
1352
|
const Dt = le.current;
|
|
1353
|
-
R && Dt && !
|
|
1354
|
-
const Ze = !l || !t || p().isPaused() || $t && !d(pe) ? !1 : be && !d(c) ? c :
|
|
1353
|
+
R && Dt && !s && 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.`);
|
|
1354
|
+
const Ze = !l || !t || p().isPaused() || $t && !d(pe) ? !1 : be && !d(c) ? c : s ? d(X) ? !1 : f : d(X) || f, et = be && Ze, At = d(re.isValidating) ? et : re.isValidating, Vt = d(re.isLoading) ? et : re.isLoading, de = Re(
|
|
1355
1355
|
async (_) => {
|
|
1356
1356
|
const g = V.current;
|
|
1357
1357
|
if (!l || !g || x.current || p().isPaused())
|
|
@@ -1377,7 +1377,7 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1377
1377
|
Pe()
|
|
1378
1378
|
]), [w, y] = D[l], w = await w, b && setTimeout(nt, n.dedupingInterval), !D[l] || D[l][1] !== y)
|
|
1379
1379
|
return b && $() && p().onDiscarded(l), !1;
|
|
1380
|
-
ue.error =
|
|
1380
|
+
ue.error = S;
|
|
1381
1381
|
const O = L[l];
|
|
1382
1382
|
if (!d(O) && // case 1
|
|
1383
1383
|
(y <= O[0] || // case 2
|
|
@@ -1424,17 +1424,17 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1424
1424
|
V.current = t, Y.current = n, d(oe) || (Te.current = oe);
|
|
1425
1425
|
}), Ce(() => {
|
|
1426
1426
|
if (!l) return;
|
|
1427
|
-
const _ = de.bind(
|
|
1427
|
+
const _ = de.bind(S, $e);
|
|
1428
1428
|
let g = 0;
|
|
1429
1429
|
p().revalidateOnFocus && (g = Date.now() + p().focusThrottleInterval);
|
|
1430
1430
|
const y = Go(l, k, (j, C = {}) => {
|
|
1431
1431
|
if (j == Rt) {
|
|
1432
1432
|
const b = Date.now();
|
|
1433
1433
|
p().revalidateOnFocus && b > g && Z() && (g = b + p().focusThrottleInterval, _());
|
|
1434
|
-
} else if (j ==
|
|
1434
|
+
} else if (j == St)
|
|
1435
1435
|
p().revalidateOnReconnect && Z() && _();
|
|
1436
1436
|
else {
|
|
1437
|
-
if (j ==
|
|
1437
|
+
if (j == It)
|
|
1438
1438
|
return de();
|
|
1439
1439
|
if (j == dt)
|
|
1440
1440
|
return de(C);
|
|
@@ -1464,7 +1464,7 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1464
1464
|
v,
|
|
1465
1465
|
m,
|
|
1466
1466
|
l
|
|
1467
|
-
]), Kt(ve),
|
|
1467
|
+
]), Kt(ve), s) {
|
|
1468
1468
|
if (!ft && ie && K)
|
|
1469
1469
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
1470
1470
|
K && (V.current = t, Y.current = n, x.current = !1);
|
|
@@ -1506,7 +1506,7 @@ async function Zo([e, t]) {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
const ea = (e, t, n) => {
|
|
1509
|
-
const { isLoading: o, data: a, error:
|
|
1509
|
+
const { isLoading: o, data: a, error: s } = Jo(() => t || e ? [
|
|
1510
1510
|
t || e && `${Yo}/api/tweet/${e}`,
|
|
1511
1511
|
n
|
|
1512
1512
|
] : null, Zo, {
|
|
@@ -1517,21 +1517,21 @@ const ea = (e, t, n) => {
|
|
|
1517
1517
|
return {
|
|
1518
1518
|
// If data is `undefined` then it might be the first render where SWR hasn't started doing
|
|
1519
1519
|
// any work, so we set `isLoading` to `true`.
|
|
1520
|
-
isLoading: !!(o || a === void 0 && !
|
|
1520
|
+
isLoading: !!(o || a === void 0 && !s),
|
|
1521
1521
|
data: a,
|
|
1522
|
-
error:
|
|
1522
|
+
error: s
|
|
1523
1523
|
};
|
|
1524
|
-
}, ta = ({ id: e, apiUrl: t, fallback: n = /* @__PURE__ */ r(wo, {}), components: o, fetchOptions: a, onError:
|
|
1525
|
-
const { data:
|
|
1524
|
+
}, ta = ({ id: e, apiUrl: t, fallback: n = /* @__PURE__ */ r(wo, {}), components: o, fetchOptions: a, onError: s }) => {
|
|
1525
|
+
const { data: i, error: c, isLoading: f } = ea(e, t, a);
|
|
1526
1526
|
if (f) return n;
|
|
1527
|
-
if (c || !
|
|
1527
|
+
if (c || !i) {
|
|
1528
1528
|
const u = (o == null ? void 0 : o.TweetNotFound) || _o;
|
|
1529
1529
|
return /* @__PURE__ */ r(u, {
|
|
1530
|
-
error:
|
|
1530
|
+
error: s ? s(c) : c
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
return /* @__PURE__ */ r(uo, {
|
|
1534
|
-
tweet:
|
|
1534
|
+
tweet: i,
|
|
1535
1535
|
components: o
|
|
1536
1536
|
});
|
|
1537
1537
|
};
|
|
@@ -1541,16 +1541,16 @@ function na({ node: e }) {
|
|
|
1541
1541
|
return n ? /* @__PURE__ */ r(Ft, { children: /* @__PURE__ */ r("div", { "data-twitter": "", children: /* @__PURE__ */ r(ta, { id: n }) }) }) : null;
|
|
1542
1542
|
}
|
|
1543
1543
|
function ra(e) {
|
|
1544
|
-
const { t } =
|
|
1544
|
+
const { t } = cn(), [n, o] = se("");
|
|
1545
1545
|
ze(() => {
|
|
1546
|
-
var
|
|
1546
|
+
var s;
|
|
1547
1547
|
if (e != null && e.editor) {
|
|
1548
|
-
const { src:
|
|
1549
|
-
|
|
1548
|
+
const { src: i } = (s = e.editor) == null ? void 0 : s.getAttributes(qt.name);
|
|
1549
|
+
i && o(i);
|
|
1550
1550
|
}
|
|
1551
1551
|
}, [e == null ? void 0 : e.editor]);
|
|
1552
|
-
function a(
|
|
1553
|
-
|
|
1552
|
+
function a(s) {
|
|
1553
|
+
s.preventDefault(), s.stopPropagation(), e == null || e.onSetLink(n);
|
|
1554
1554
|
}
|
|
1555
1555
|
return /* @__PURE__ */ h("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: a, children: [
|
|
1556
1556
|
/* @__PURE__ */ r(Qt, { className: "mb-[6px]", children: t("editor.link.dialog.text") }),
|
|
@@ -1558,7 +1558,7 @@ function ra(e) {
|
|
|
1558
1558
|
Jt,
|
|
1559
1559
|
{
|
|
1560
1560
|
className: "richtext-w-80",
|
|
1561
|
-
onChange: (
|
|
1561
|
+
onChange: (s) => o(s.target.value),
|
|
1562
1562
|
placeholder: "Text",
|
|
1563
1563
|
required: !0,
|
|
1564
1564
|
type: "text",
|
|
@@ -1571,26 +1571,26 @@ function ra(e) {
|
|
|
1571
1571
|
function ma() {
|
|
1572
1572
|
const [e, t] = se(!1), n = Zt(), o = en(qt.name), {
|
|
1573
1573
|
icon: a = void 0,
|
|
1574
|
-
tooltip:
|
|
1575
|
-
tooltipOptions:
|
|
1574
|
+
tooltip: s = void 0,
|
|
1575
|
+
tooltipOptions: i = {},
|
|
1576
1576
|
action: c = void 0,
|
|
1577
1577
|
isActive: f = void 0
|
|
1578
1578
|
} = (o == null ? void 0 : o.componentProps) ?? {}, { editorDisabled: u } = tn(f);
|
|
1579
1579
|
function v(m) {
|
|
1580
1580
|
u || c && (c(m), t(!1));
|
|
1581
1581
|
}
|
|
1582
|
-
return /* @__PURE__ */ h(
|
|
1583
|
-
/* @__PURE__ */ r(
|
|
1582
|
+
return /* @__PURE__ */ h(on, { modal: !0, onOpenChange: t, open: e, children: [
|
|
1583
|
+
/* @__PURE__ */ r(an, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1584
1584
|
nn,
|
|
1585
1585
|
{
|
|
1586
1586
|
disabled: u,
|
|
1587
1587
|
isActive: f,
|
|
1588
|
-
tooltip:
|
|
1589
|
-
tooltipOptions:
|
|
1588
|
+
tooltip: s,
|
|
1589
|
+
tooltipOptions: i,
|
|
1590
1590
|
children: /* @__PURE__ */ r(rn, { name: a })
|
|
1591
1591
|
}
|
|
1592
1592
|
) }),
|
|
1593
|
-
/* @__PURE__ */ r(
|
|
1593
|
+
/* @__PURE__ */ r(sn, { align: "start", className: "richtext-w-full", hideWhenDetached: !0, side: "bottom", children: /* @__PURE__ */ r(ra, { editor: n, onSetLink: v }) })
|
|
1594
1594
|
] });
|
|
1595
1595
|
}
|
|
1596
1596
|
const oa = /(https?:\/\/)?(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?/g, aa = /^https?:\/\/(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?$/;
|