@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.
@@ -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("div", { ref: r, style: { position: "relative" }, children: a && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
21378
- u && /* @__PURE__ */ I.jsx(
21379
- "div",
21380
- {
21381
- style: {
21382
- background: "#f0f0f0",
21383
- height: "200px",
21384
- borderRadius: "8px",
21385
- animation: "pulse 1.5s infinite"
21386
- }
21387
- }
21388
- ),
21389
- /* @__PURE__ */ I.jsx(
21390
- "img",
21391
- {
21392
- src: e,
21393
- alt: t,
21394
- loading: "lazy",
21395
- onLoad: () => s(!1),
21396
- onError: () => {
21397
- s(!1);
21398
- },
21399
- style: {
21400
- maxWidth: "100%",
21401
- maxHeight: "1280px",
21402
- objectFit: "contain",
21403
- display: u ? "none" : "block",
21404
- borderRadius: "8px",
21405
- margin: "0.5rem 0"
21406
- },
21407
- ...n
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.34.0-alpha.8",
3
+ "version": "1.34.0-alpha.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"