@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.5 → 1.36.0-alpha.7
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/dist/lib/index.min.js +11 -11
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -21467,18 +21467,18 @@ const qT = () => /* @__PURE__ */ S.jsx(
|
|
21467
21467
|
)
|
21468
21468
|
}
|
21469
21469
|
), nd = ({ src: e, alt: t, ...n }) => {
|
21470
|
-
const { streaming: r } = ue(We), a = tt(null), [i, o] = de(!1), [s, l] = de(!0);
|
21470
|
+
const { streaming: r } = ue(We), a = tt(null), [i, o] = de(!1), [s, l] = de(!0), [c, d] = de(!1);
|
21471
21471
|
return Ne(() => {
|
21472
|
-
const
|
21473
|
-
if (!
|
21474
|
-
const
|
21475
|
-
([
|
21476
|
-
o(
|
21472
|
+
const f = a.current;
|
21473
|
+
if (!f) return;
|
21474
|
+
const p = new IntersectionObserver(
|
21475
|
+
([h]) => {
|
21476
|
+
o(h.isIntersecting);
|
21477
21477
|
},
|
21478
21478
|
{ threshold: 0.01 }
|
21479
21479
|
);
|
21480
|
-
return
|
21481
|
-
|
21480
|
+
return p.observe(f), () => {
|
21481
|
+
p.disconnect();
|
21482
21482
|
};
|
21483
21483
|
}, []), Ne(() => {
|
21484
21484
|
!i || !s || l(!1);
|
@@ -21497,8 +21497,8 @@ const qT = () => /* @__PURE__ */ S.jsx(
|
|
21497
21497
|
role: "img",
|
21498
21498
|
"aria-label": t || "Image",
|
21499
21499
|
children: [
|
21500
|
-
r && /* @__PURE__ */ S.jsx(qT, {}),
|
21501
|
-
i && !r && /* @__PURE__ */ S.jsx(
|
21500
|
+
(r || c) && /* @__PURE__ */ S.jsx(qT, {}),
|
21501
|
+
i && !r && !c && /* @__PURE__ */ S.jsx(
|
21502
21502
|
"img",
|
21503
21503
|
{
|
21504
21504
|
src: e,
|
@@ -21508,7 +21508,7 @@ const qT = () => /* @__PURE__ */ S.jsx(
|
|
21508
21508
|
l(!1);
|
21509
21509
|
},
|
21510
21510
|
onError: () => {
|
21511
|
-
l(!1);
|
21511
|
+
l(!1), d(!0);
|
21512
21512
|
},
|
21513
21513
|
style: {
|
21514
21514
|
maxWidth: "100%",
|