@epam/ai-dial-chat-shared 1.3.0-dev.282 → 1.3.0-dev.288

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.
@@ -1,26 +1,26 @@
1
1
  import { buildCssVars as e } from "../../utils/build-css-vars.js";
2
2
  import { FullScreenAlert as t } from "../FullScreenAlert/FullScreenAlert.js";
3
3
  import n from "./ErrorAlert.module.scss.js";
4
- import { DIAL_KIT_ICON_STROKE as r } from "@epam/ai-dial-ui-kit";
5
- import { memo as i } from "react";
6
- import { jsx as a } from "react/jsx-runtime";
7
- import { IconAlertTriangle as o } from "@tabler/icons-react";
4
+ import { DIAL_ICON_SIZE as r, DIAL_KIT_ICON_STROKE as i } from "@epam/ai-dial-ui-kit";
5
+ import { memo as a } from "react";
6
+ import { jsx as o } from "react/jsx-runtime";
7
+ import { IconAlertTriangle as s } from "@tabler/icons-react";
8
8
  //#region src/components/ErrorAlert/ErrorAlert.tsx
9
- var s = i(({ onAction: i, labels: s, colors: c }) => /* @__PURE__ */ a("div", {
9
+ var c = a(({ onAction: a, labels: c, colors: l }) => /* @__PURE__ */ o("div", {
10
10
  className: "size-full",
11
- style: e({ "--ea-icon": c?.icon }),
12
- children: /* @__PURE__ */ a(t, {
13
- icon: /* @__PURE__ */ a(o, {
11
+ style: e({ "--ea-icon": l?.icon }),
12
+ children: /* @__PURE__ */ o(t, {
13
+ icon: /* @__PURE__ */ o(s, {
14
14
  "aria-hidden": "true",
15
- size: 48,
16
- stroke: r,
15
+ size: r.LG,
16
+ stroke: i,
17
17
  className: n.icon
18
18
  }),
19
- heading: s?.heading ?? "Something went wrong",
20
- message: s?.message ?? "An unexpected error occurred. You can try again or reload the page.",
21
- actionLabel: s?.actionLabel ?? "Try again",
22
- onAction: i
19
+ heading: c?.heading ?? "Something went wrong",
20
+ message: c?.message ?? "An unexpected error occurred. You can try again or reload the page.",
21
+ actionLabel: c?.actionLabel ?? "Try again",
22
+ onAction: a
23
23
  })
24
24
  }));
25
25
  //#endregion
26
- export { s as ErrorAlert };
26
+ export { c as ErrorAlert };
@@ -1,26 +1,26 @@
1
1
  import { buildCssVars as e } from "../../utils/build-css-vars.js";
2
2
  import { FullScreenAlert as t } from "../FullScreenAlert/FullScreenAlert.js";
3
3
  import n from "./NewVersionAlert.module.scss.js";
4
- import { DIAL_KIT_ICON_STROKE as r } from "@epam/ai-dial-ui-kit";
5
- import { memo as i } from "react";
6
- import { jsx as a } from "react/jsx-runtime";
7
- import { IconRefresh as o } from "@tabler/icons-react";
4
+ import { DIAL_ICON_SIZE as r, DIAL_KIT_ICON_STROKE as i } from "@epam/ai-dial-ui-kit";
5
+ import { memo as a } from "react";
6
+ import { jsx as o } from "react/jsx-runtime";
7
+ import { IconRefresh as s } from "@tabler/icons-react";
8
8
  //#region src/components/NewVersionAlert/NewVersionAlert.tsx
9
- var s = i(({ onReload: i, labels: s, colors: c }) => /* @__PURE__ */ a("div", {
9
+ var c = a(({ onReload: a, labels: c, colors: l }) => /* @__PURE__ */ o("div", {
10
10
  className: "size-full",
11
- style: e({ "--nva-icon": c?.icon }),
12
- children: /* @__PURE__ */ a(t, {
13
- icon: /* @__PURE__ */ a(o, {
11
+ style: e({ "--nva-icon": l?.icon }),
12
+ children: /* @__PURE__ */ o(t, {
13
+ icon: /* @__PURE__ */ o(s, {
14
14
  "aria-hidden": "true",
15
- size: 48,
16
- stroke: r,
15
+ size: r.LG,
16
+ stroke: i,
17
17
  className: n.icon
18
18
  }),
19
- heading: s?.heading ?? "New version available",
20
- message: s?.message ?? "Reload the page to get the latest version.",
21
- actionLabel: s?.reloadLabel ?? "Reload the page",
22
- onAction: i
19
+ heading: c?.heading ?? "New version available",
20
+ message: c?.message ?? "Reload the page to get the latest version.",
21
+ actionLabel: c?.reloadLabel ?? "Reload the page",
22
+ onAction: a
23
23
  })
24
24
  }));
25
25
  //#endregion
26
- export { s as NewVersionAlert };
26
+ export { c as NewVersionAlert };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-shared",
3
3
  "description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
4
- "version": "1.3.0-dev.282",
4
+ "version": "1.3.0-dev.288",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [