@fileverse-dev/ddoc 3.0.20 → 3.0.21
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-
|
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-5FAaoRqW.mjs";
|
|
2
2
|
class S extends p {
|
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
|
4
4
|
var o;
|
|
@@ -93963,7 +93963,7 @@ async function DF(e, t) {
|
|
|
93963
93963
|
});
|
|
93964
93964
|
return ne === "0x" ? { data: void 0 } : { data: ne };
|
|
93965
93965
|
} catch (I) {
|
|
93966
|
-
const R = jKt(I), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-
|
|
93966
|
+
const R = jKt(I), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-D36cyBIU.mjs");
|
|
93967
93967
|
if (e.ccipRead !== !1 && (R == null ? void 0 : R.slice(0, 10)) === $ && x)
|
|
93968
93968
|
return { data: await H(e, { data: R, to: x }) };
|
|
93969
93969
|
throw O && (R == null ? void 0 : R.slice(0, 10)) === "0x101bb98d" ? new cZt({ factory: f }) : Age(I, {
|
|
@@ -128162,7 +128162,7 @@ const s6e = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
128162
128162
|
children: /* @__PURE__ */ A.jsx("source", { src: n.attrs.src })
|
|
128163
128163
|
}
|
|
128164
128164
|
),
|
|
128165
|
-
a === "iframe" && /* @__PURE__ */ A.jsx(
|
|
128165
|
+
a === "iframe" && /* @__PURE__ */ A.jsx(A.Fragment, { children: /* @__PURE__ */ A.jsx(
|
|
128166
128166
|
"iframe",
|
|
128167
128167
|
{
|
|
128168
128168
|
ref: p,
|
|
@@ -128174,7 +128174,7 @@ const s6e = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
128174
128174
|
width: n.attrs.width,
|
|
128175
128175
|
height: n.attrs.height
|
|
128176
128176
|
}
|
|
128177
|
-
),
|
|
128177
|
+
) }),
|
|
128178
128178
|
!i && /* @__PURE__ */ A.jsx(
|
|
128179
128179
|
"div",
|
|
128180
128180
|
{
|
|
@@ -129826,24 +129826,35 @@ const ign = (e, t, n) => {
|
|
|
129826
129826
|
components: r
|
|
129827
129827
|
});
|
|
129828
129828
|
}, sgn = ({ node: e, editor: t }) => {
|
|
129829
|
-
const [n, r] = Re(null);
|
|
129830
|
-
|
|
129829
|
+
const [n, r] = Re(null), [o, i] = Re(!1);
|
|
129830
|
+
He(() => {
|
|
129831
129831
|
t == null || t.chain().focus(), (async () => {
|
|
129832
129832
|
try {
|
|
129833
|
-
const
|
|
129833
|
+
const u = await (await fetch(
|
|
129834
129834
|
`https://react-tweet.vercel.app/api/tweet/${e.attrs.tweetId}`
|
|
129835
129835
|
)).json();
|
|
129836
|
-
r(
|
|
129837
|
-
} catch (
|
|
129838
|
-
console.error("Error fetching tweet:", i);
|
|
129836
|
+
r(u.data);
|
|
129837
|
+
} catch (l) {
|
|
129838
|
+
console.error("Error fetching tweet:", l), i(!0);
|
|
129839
129839
|
}
|
|
129840
129840
|
})();
|
|
129841
|
-
}, [e.attrs.tweetId])
|
|
129841
|
+
}, [e.attrs.tweetId]);
|
|
129842
|
+
const a = `https://twitter.com/i/status/${e.attrs.tweetId}`;
|
|
129843
|
+
return /* @__PURE__ */ A.jsx(
|
|
129842
129844
|
Pu,
|
|
129843
129845
|
{
|
|
129844
129846
|
as: "div",
|
|
129845
129847
|
className: "flex gap-2 group w-full relative justify-center items-start",
|
|
129846
|
-
children:
|
|
129848
|
+
children: o ? /* @__PURE__ */ A.jsx(
|
|
129849
|
+
"a",
|
|
129850
|
+
{
|
|
129851
|
+
href: a,
|
|
129852
|
+
target: "_blank",
|
|
129853
|
+
rel: "noopener noreferrer",
|
|
129854
|
+
className: "text-blue-600 hover:underline",
|
|
129855
|
+
children: a
|
|
129856
|
+
}
|
|
129857
|
+
) : /* @__PURE__ */ A.jsx("div", { className: "w-full flex justify-center items-center min-h-[200px]", children: n ? /* @__PURE__ */ A.jsx(p6e, { tweet: n }) : /* @__PURE__ */ A.jsx(agn, { id: e.attrs.tweetId }) })
|
|
129847
129858
|
}
|
|
129848
129859
|
);
|
|
129849
129860
|
}, lgn = Zt.create({
|
package/dist/index.es.js
CHANGED