@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.2 → 1.36.0-alpha.3
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 +7 -11
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -5889,13 +5889,9 @@ function ki({
|
|
5889
5889
|
g(V.target.value);
|
5890
5890
|
};
|
5891
5891
|
ve(() => {
|
5892
|
-
var V;
|
5893
5892
|
if (a) {
|
5894
|
-
const
|
5895
|
-
return
|
5896
|
-
var y;
|
5897
|
-
return (y = r.current) == null ? void 0 : y.removeEventListener("input", L);
|
5898
|
-
};
|
5893
|
+
const V = (y) => g(y.target.value), L = r.current;
|
5894
|
+
return L == null || L.addEventListener("input", V), () => L == null ? void 0 : L.removeEventListener("input", V);
|
5899
5895
|
}
|
5900
5896
|
}, [a, r]), ve(() => {
|
5901
5897
|
(p || f) && (g(""), r.current.style.height = "auto");
|
@@ -21478,13 +21474,13 @@ const UT = () => /* @__PURE__ */ S.jsx(
|
|
21478
21474
|
const { streaming: r } = ue(We), a = tt(null), [i, o] = de(!1), [s, l] = de(!0);
|
21479
21475
|
return ve(() => {
|
21480
21476
|
const c = new IntersectionObserver(
|
21481
|
-
([
|
21482
|
-
|
21477
|
+
([f]) => {
|
21478
|
+
f.isIntersecting ? o(!0) : o(!1);
|
21483
21479
|
},
|
21484
21480
|
{ threshold: 0.01 }
|
21485
|
-
);
|
21486
|
-
return
|
21487
|
-
|
21481
|
+
), d = a.current;
|
21482
|
+
return d && c.observe(d), () => {
|
21483
|
+
d && c.unobserve(d);
|
21488
21484
|
};
|
21489
21485
|
}, []), ve(() => {
|
21490
21486
|
!i || !s || l(!1);
|