@2uinc/frontend-component-xpert-chatbot 1.34.0-alpha.8 → 1.34.0-alpha.9
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 +48 -34
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -21374,40 +21374,54 @@ const td = ({ src: e, alt: t, ...n }) => {
|
|
21374
21374
|
if (!a || !u) return;
|
21375
21375
|
const l = setTimeout(() => s(!1), 1e4);
|
21376
21376
|
return () => clearTimeout(l);
|
21377
|
-
}, [a, u]), /* @__PURE__ */ I.jsx(
|
21378
|
-
|
21379
|
-
|
21380
|
-
|
21381
|
-
|
21382
|
-
|
21383
|
-
|
21384
|
-
|
21385
|
-
|
21386
|
-
|
21387
|
-
|
21388
|
-
|
21389
|
-
|
21390
|
-
|
21391
|
-
|
21392
|
-
|
21393
|
-
|
21394
|
-
|
21395
|
-
|
21396
|
-
|
21397
|
-
|
21398
|
-
|
21399
|
-
|
21400
|
-
|
21401
|
-
|
21402
|
-
|
21403
|
-
|
21404
|
-
|
21405
|
-
|
21406
|
-
|
21407
|
-
|
21408
|
-
|
21409
|
-
|
21410
|
-
|
21377
|
+
}, [a, u]), /* @__PURE__ */ I.jsx(
|
21378
|
+
"div",
|
21379
|
+
{
|
21380
|
+
ref: r,
|
21381
|
+
style: { position: "relative" },
|
21382
|
+
role: "img",
|
21383
|
+
"aria-label": t || "Image",
|
21384
|
+
children: a && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21385
|
+
u && /* @__PURE__ */ I.jsx(
|
21386
|
+
"div",
|
21387
|
+
{
|
21388
|
+
"aria-busy": "true",
|
21389
|
+
"aria-live": "polite",
|
21390
|
+
style: {
|
21391
|
+
background: "#f0f0f0",
|
21392
|
+
height: "200px",
|
21393
|
+
borderRadius: "8px",
|
21394
|
+
animation: "pulse 1.5s infinite"
|
21395
|
+
},
|
21396
|
+
role: "status"
|
21397
|
+
}
|
21398
|
+
),
|
21399
|
+
/* @__PURE__ */ I.jsx(
|
21400
|
+
"img",
|
21401
|
+
{
|
21402
|
+
src: e,
|
21403
|
+
alt: t,
|
21404
|
+
loading: "lazy",
|
21405
|
+
onLoad: () => {
|
21406
|
+
s(!1);
|
21407
|
+
},
|
21408
|
+
onError: () => {
|
21409
|
+
s(!1);
|
21410
|
+
},
|
21411
|
+
style: {
|
21412
|
+
maxWidth: "100%",
|
21413
|
+
maxHeight: "1280px",
|
21414
|
+
objectFit: "contain",
|
21415
|
+
display: u ? "none" : "block",
|
21416
|
+
borderRadius: "8px",
|
21417
|
+
margin: "0.5rem 0"
|
21418
|
+
},
|
21419
|
+
...n
|
21420
|
+
}
|
21421
|
+
)
|
21422
|
+
] })
|
21423
|
+
}
|
21424
|
+
);
|
21411
21425
|
};
|
21412
21426
|
td.propTypes = {
|
21413
21427
|
src: x.string.isRequired,
|