@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 {
|
|
5
|
-
import { memo as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { IconAlertTriangle as
|
|
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
|
|
9
|
+
var c = a(({ onAction: a, labels: c, colors: l }) => /* @__PURE__ */ o("div", {
|
|
10
10
|
className: "size-full",
|
|
11
|
-
style: e({ "--ea-icon":
|
|
12
|
-
children: /* @__PURE__ */
|
|
13
|
-
icon: /* @__PURE__ */
|
|
11
|
+
style: e({ "--ea-icon": l?.icon }),
|
|
12
|
+
children: /* @__PURE__ */ o(t, {
|
|
13
|
+
icon: /* @__PURE__ */ o(s, {
|
|
14
14
|
"aria-hidden": "true",
|
|
15
|
-
size:
|
|
16
|
-
stroke:
|
|
15
|
+
size: r.LG,
|
|
16
|
+
stroke: i,
|
|
17
17
|
className: n.icon
|
|
18
18
|
}),
|
|
19
|
-
heading:
|
|
20
|
-
message:
|
|
21
|
-
actionLabel:
|
|
22
|
-
onAction:
|
|
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 {
|
|
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 {
|
|
5
|
-
import { memo as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { IconRefresh as
|
|
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
|
|
9
|
+
var c = a(({ onReload: a, labels: c, colors: l }) => /* @__PURE__ */ o("div", {
|
|
10
10
|
className: "size-full",
|
|
11
|
-
style: e({ "--nva-icon":
|
|
12
|
-
children: /* @__PURE__ */
|
|
13
|
-
icon: /* @__PURE__ */
|
|
11
|
+
style: e({ "--nva-icon": l?.icon }),
|
|
12
|
+
children: /* @__PURE__ */ o(t, {
|
|
13
|
+
icon: /* @__PURE__ */ o(s, {
|
|
14
14
|
"aria-hidden": "true",
|
|
15
|
-
size:
|
|
16
|
-
stroke:
|
|
15
|
+
size: r.LG,
|
|
16
|
+
stroke: i,
|
|
17
17
|
className: n.icon
|
|
18
18
|
}),
|
|
19
|
-
heading:
|
|
20
|
-
message:
|
|
21
|
-
actionLabel:
|
|
22
|
-
onAction:
|
|
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 {
|
|
26
|
+
export { c as NewVersionAlert };
|
package/package.json
CHANGED