@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.6 → 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.
@@ -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 c = a.current;
21473
- if (!c) return;
21474
- const d = new IntersectionObserver(
21475
- ([f]) => {
21476
- o(f.isIntersecting);
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 d.observe(c), () => {
21481
- d.disconnect();
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%",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.36.0-alpha.6",
3
+ "version": "1.36.0-alpha.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"