@2uinc/frontend-component-xpert-chatbot 1.40.12-beta.8 → 1.40.12

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.
@@ -21002,41 +21002,21 @@ const xy = (e) => ({
21002
21002
  }
21003
21003
  }), ky = (e, t) => ({
21004
21004
  img: ({ src: n, alt: r }) => /* @__PURE__ */ _.jsx(K0, { fallback: /* @__PURE__ */ _.jsx("div", { children: "Loading image..." }), children: /* @__PURE__ */ _.jsx(Od, { src: n, alt: r }) }),
21005
- a: ({ children: n, href: r, ...a }) => {
21006
- const i = (u) => {
21007
- const s = u?.type === "keydown", l = typeof u?.button != "number" || u.button === 0;
21008
- if (!(!s && !l) && (u?.preventDefault?.(), u?.currentTarget?.dataset && (u.currentTarget.dataset.xpertLinkOpened = "1"), e?.(u), r))
21009
- try {
21010
- window.open(r, "_blank", "noopener,noreferrer");
21011
- } catch {
21012
- }
21013
- };
21014
- return /* @__PURE__ */ _.jsx(
21015
- "a",
21016
- {
21017
- ...a,
21018
- href: r,
21019
- target: "_blank",
21020
- rel: "noopener noreferrer",
21021
- onPointerDown: i,
21022
- onClick: (u) => {
21023
- if (u?.currentTarget?.dataset?.xpertLinkOpened === "1") {
21024
- u.preventDefault(), delete u.currentTarget.dataset.xpertLinkOpened;
21025
- return;
21026
- }
21027
- i(u);
21028
- },
21029
- onKeyDown: (u) => {
21030
- (u.key === "Enter" || u.key === " ") && i(u);
21031
- },
21032
- style: {
21033
- color: "-webkit-link",
21034
- textDecoration: "underline"
21035
- },
21036
- children: n
21037
- }
21038
- );
21039
- },
21005
+ a: ({ children: n, ...r }) => /* @__PURE__ */ _.jsx(
21006
+ "a",
21007
+ {
21008
+ ...r,
21009
+ role: "link",
21010
+ tabIndex: 0,
21011
+ onClick: e,
21012
+ onKeyDown: void 0,
21013
+ style: {
21014
+ color: "-webkit-link",
21015
+ textDecoration: "underline"
21016
+ },
21017
+ children: n
21018
+ }
21019
+ ),
21040
21020
  p: ({ children: n, ...r }) => /* @__PURE__ */ _.jsx("p", { ...r, style: t, children: n }),
21041
21021
  "document-source": ({ children: n, node: r }) => {
21042
21022
  const a = r?.properties?.dataIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.40.12-beta.8",
3
+ "version": "1.40.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"