@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.16 → 1.36.0-alpha.18

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.
@@ -19916,18 +19916,18 @@ const zT = () => /* @__PURE__ */ S.jsx(
19916
19916
  )
19917
19917
  }
19918
19918
  ), od = ({ src: e, alt: t, ...n }) => {
19919
- const { streaming: r } = oe(Xe), a = tt(null), [i, u] = ce(!1), [s, l] = ce(!0), [c, d] = ce(!1);
19919
+ const { streaming: r } = oe(Xe), a = tt(null), [i, u] = ce(!1), [s, l] = ce(!1);
19920
19920
  return Ne(() => {
19921
- const f = a.current;
19922
- if (!f) return;
19923
- const p = new IntersectionObserver(
19924
- ([h]) => {
19925
- u(h.isIntersecting);
19921
+ const c = a.current;
19922
+ if (!c) return;
19923
+ const d = new IntersectionObserver(
19924
+ ([f]) => {
19925
+ u(f.isIntersecting);
19926
19926
  },
19927
19927
  { threshold: 0.01 }
19928
19928
  );
19929
- return p.observe(f), () => {
19930
- p.disconnect();
19929
+ return d.observe(c), () => {
19930
+ d.disconnect();
19931
19931
  };
19932
19932
  }, []), /* @__PURE__ */ S.jsxs(
19933
19933
  "div",
@@ -19944,18 +19944,15 @@ const zT = () => /* @__PURE__ */ S.jsx(
19944
19944
  role: "img",
19945
19945
  "aria-label": t || "Image",
19946
19946
  children: [
19947
- (r || c) && /* @__PURE__ */ S.jsx(zT, {}),
19948
- i && !r && !c && /* @__PURE__ */ S.jsx(
19947
+ (r || s) && /* @__PURE__ */ S.jsx(zT, {}),
19948
+ i && !r && !s && /* @__PURE__ */ S.jsx(
19949
19949
  "img",
19950
19950
  {
19951
19951
  src: e,
19952
19952
  alt: t,
19953
19953
  loading: "lazy",
19954
- onLoad: () => {
19955
- l(!1);
19956
- },
19957
19954
  onError: () => {
19958
- l(!1), d(!0);
19955
+ l(!0);
19959
19956
  },
19960
19957
  style: {
19961
19958
  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.16",
3
+ "version": "1.36.0-alpha.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"