@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.1 → 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 +8 -12
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1439,7 +1439,7 @@ const Ns = /* @__PURE__ */ Lt(P0), M0 = {
|
|
1439
1439
|
if (o(!1), t)
|
1440
1440
|
try {
|
1441
1441
|
const p = await fetch(
|
1442
|
-
`https://xpert-api-services.
|
1442
|
+
`https://xpert-api-services.stg.ai.2u.com/v1/client?client_id=${t}`,
|
1443
1443
|
{
|
1444
1444
|
method: "GET",
|
1445
1445
|
headers: {
|
@@ -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);
|