@goodhood-web/nebenan-base 4.11.0-development.3 → 4.11.0-development.5
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/index.js +3 -1
- package/index.mjs +34 -26
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -75795,7 +75795,7 @@ function Zre(t) {
|
|
|
75795
75795
|
url: h.cta_url
|
|
75796
75796
|
});
|
|
75797
75797
|
const g = Kre({ extendedEmbed: h });
|
|
75798
|
-
|
|
75798
|
+
r.append(g), l += h.title, i.set(h.cta_url, h), a.add(h.cta_url);
|
|
75799
75799
|
} else
|
|
75800
75800
|
Bd(r, d), l += d;
|
|
75801
75801
|
s = f;
|
|
@@ -75863,50 +75863,58 @@ function Jre({ onChange: t, value: e }) {
|
|
|
75863
75863
|
let c = !1;
|
|
75864
75864
|
return n.registerUpdateListener(({ editorState: f }) => {
|
|
75865
75865
|
c || f.read(() => {
|
|
75866
|
-
const d = Ve()
|
|
75867
|
-
|
|
75868
|
-
const
|
|
75866
|
+
const d = Ve();
|
|
75867
|
+
let h = "";
|
|
75868
|
+
const m = d.getChildren();
|
|
75869
|
+
if (m.forEach((k, y) => {
|
|
75870
|
+
"getChildren" in k && (k.getChildren().forEach((T) => {
|
|
75871
|
+
T.getType() === "linebreak" ? h += `
|
|
75872
|
+
` : h += T.getTextContent();
|
|
75873
|
+
}), y < m.length - 1 && (h += `
|
|
75874
|
+
`));
|
|
75875
|
+
}), h === i.current) return;
|
|
75876
|
+
const { embeds: g, linkUrls: v } = U5(
|
|
75869
75877
|
d,
|
|
75870
75878
|
l.current
|
|
75871
75879
|
);
|
|
75872
|
-
|
|
75873
|
-
s.current.has(
|
|
75874
|
-
if ((
|
|
75875
|
-
const
|
|
75876
|
-
associated_gid:
|
|
75877
|
-
cta_url:
|
|
75878
|
-
description:
|
|
75879
|
-
image_url:
|
|
75880
|
+
v.forEach((k) => {
|
|
75881
|
+
s.current.has(k) || (s.current.add(k), o(k).then((y) => {
|
|
75882
|
+
if ((y == null ? void 0 : y.status) === "success" && y.data) {
|
|
75883
|
+
const S = {
|
|
75884
|
+
associated_gid: y.data.gid,
|
|
75885
|
+
cta_url: y.data.cta_url,
|
|
75886
|
+
description: y.data.description,
|
|
75887
|
+
image_url: y.data.image_url,
|
|
75880
75888
|
indices: null,
|
|
75881
|
-
recommendations_count:
|
|
75882
|
-
role:
|
|
75883
|
-
title:
|
|
75889
|
+
recommendations_count: y.data.recommendations_count,
|
|
75890
|
+
role: y.data.role,
|
|
75891
|
+
title: y.data.title
|
|
75884
75892
|
};
|
|
75885
|
-
l.current.set(
|
|
75886
|
-
const { embeds:
|
|
75893
|
+
l.current.set(k, S), n.getEditorState().read(() => {
|
|
75894
|
+
const { embeds: C } = U5(
|
|
75887
75895
|
Ve(),
|
|
75888
75896
|
l.current
|
|
75889
|
-
),
|
|
75890
|
-
(
|
|
75897
|
+
), T = e.embeddables.filter(
|
|
75898
|
+
(A) => A.role === "profile"
|
|
75891
75899
|
);
|
|
75892
75900
|
a.current = !0, t({
|
|
75893
75901
|
...e,
|
|
75894
75902
|
body: h,
|
|
75895
|
-
embeddables: [...
|
|
75903
|
+
embeddables: [...C, ...T]
|
|
75896
75904
|
});
|
|
75897
75905
|
});
|
|
75898
75906
|
}
|
|
75899
|
-
}).catch((
|
|
75900
|
-
console.error("Failed to fetch link metadata:",
|
|
75907
|
+
}).catch((y) => {
|
|
75908
|
+
console.error("Failed to fetch link metadata:", y);
|
|
75901
75909
|
}));
|
|
75902
|
-
}), s.current.forEach((
|
|
75903
|
-
|
|
75910
|
+
}), s.current.forEach((k) => {
|
|
75911
|
+
v.has(k) || (s.current.delete(k), l.current.delete(k));
|
|
75904
75912
|
});
|
|
75905
|
-
const
|
|
75913
|
+
const b = e.embeddables.filter((k) => k.role === "profile");
|
|
75906
75914
|
i.current = h, a.current = !0, c = !0, t({
|
|
75907
75915
|
...e,
|
|
75908
75916
|
body: h,
|
|
75909
|
-
embeddables: [...
|
|
75917
|
+
embeddables: [...g, ...b]
|
|
75910
75918
|
}), setTimeout(() => {
|
|
75911
75919
|
c = !1;
|
|
75912
75920
|
}, 0);
|