@epam/ai-dial-conversation-stages 1.1.0-dev.78 → 1.1.0-dev.87

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.
Files changed (2) hide show
  1. package/index.js +10 -10
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { MarkdownRenderer as e, StageStatus as t, buildCssVars as n, copyToClipboard as r, mergeClasses as i } from "@epam/ai-dial-chat-shared";
2
- import { DIAL_ICON_SIZE as a, DialEllipsisTooltip as o, DialGhostIconButton as s, DialSpinner as c, ElementSize as l, LinkButton as u } from "@epam/ai-dial-ui-kit";
2
+ import { DIAL_ICON_SIZE as a, DialEllipsisTooltip as o, DialSpinner as s, ElementSize as c, GhostIconButton as l, LinkButton as u } from "@epam/ai-dial-ui-kit";
3
3
  import { IconAlertCircle as d, IconCheck as f, IconChevronDown as p, IconChevronRight as m, IconCopy as h } from "@tabler/icons-react";
4
4
  import { memo as g, useCallback as _, useEffect as v, useRef as y, useState as b } from "react";
5
5
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -57,7 +57,7 @@ var w = /[([][^()[\]]*[)\]]/g, T = /(\d+(?:\.\d+)?)\s*s\b/, E = /:\s*$/, D = (e)
57
57
  codeInline: "_codeInline_1068d_71",
58
58
  blockquote: "_blockquote_1068d_77",
59
59
  tableCell: "_tableCell_1068d_82"
60
- }, F = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) => n ? /* @__PURE__ */ S(c, {
60
+ }, F = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) => n ? /* @__PURE__ */ S(s, {
61
61
  size: 16,
62
62
  ariaLabel: r
63
63
  }) : e === t.Failed ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(d, {
@@ -72,17 +72,17 @@ var w = /[([][^()[\]]*[)\]]/g, T = /(\d+(?:\.\d+)?)\s*s\b/, E = /:\s*$/, D = (e)
72
72
  className: P.iconCompleted,
73
73
  "aria-hidden": !0
74
74
  }), I = ({ children: e, codeClassName: t, copyAriaLabel: n }) => {
75
- let [o, c] = b(!1), u = y(null);
75
+ let [o, s] = b(!1), u = y(null);
76
76
  v(() => () => {
77
77
  u.current != null && clearTimeout(u.current);
78
78
  }, []);
79
79
  let d = _(() => {
80
- r(typeof e == "string" ? e : String(e ?? "")), u.current && clearTimeout(u.current), c(!0), u.current = setTimeout(() => c(!1), 2e3);
80
+ r(typeof e == "string" ? e : String(e ?? "")), u.current && clearTimeout(u.current), s(!0), u.current = setTimeout(() => s(!1), 2e3);
81
81
  }, [e]);
82
82
  return /* @__PURE__ */ C("pre", {
83
83
  className: i("relative max-h-[300px] overflow-auto rounded border p-3 text-sm", P.codeBlock),
84
- children: [/* @__PURE__ */ S(s, {
85
- size: l.Small,
84
+ children: [/* @__PURE__ */ S(l, {
85
+ size: c.Small,
86
86
  icon: S(o ? f : h, {
87
87
  size: a.SM,
88
88
  className: P.iconSecondary
@@ -299,7 +299,7 @@ var w = /[([][^()[\]]*[)\]]/g, T = /(\d+(?:\.\d+)?)\s*s\b/, E = /:\s*$/, D = (e)
299
299
  doneIcon: "_doneIcon_1dk5h_22",
300
300
  failedText: "_failedText_1dk5h_27",
301
301
  liveName: "_liveName_1dk5h_32"
302
- }, H = ({ stages: e, isStreaming: r, labels: o, className: s, styles: l }) => {
302
+ }, H = ({ stages: e, isStreaming: r, labels: o, className: c, styles: l }) => {
303
303
  let { executedLabel: d = "Executed", stepsLabel: h = () => "steps", failedCountLabel: g = (e) => `${e} failed`, runningStepLabel: _ = (e, t) => `Step ${e} of ${t}`, runningAriaLabel: x = "Running", copyAriaLabel: w, failedAriaLabel: T, attemptLabel: E } = o ?? {}, [O, N] = b(r), P = y(r);
304
304
  v(() => {
305
305
  P.current && !r && N(!1), P.current = r;
@@ -336,7 +336,7 @@ var w = /[([][^()[\]]*[)\]]/g, T = /(\d+(?:\.\d+)?)\s*s\b/, E = /:\s*$/, D = (e)
336
336
  if (e.length === 1) return /* @__PURE__ */ S(B, {
337
337
  stages: e,
338
338
  isStreaming: r,
339
- className: s,
339
+ className: c,
340
340
  styles: {
341
341
  colors: I,
342
342
  typography: l?.typography
@@ -354,7 +354,7 @@ var w = /[([][^()[\]]*[)\]]/g, T = /(\d+(?:\.\d+)?)\s*s\b/, E = /:\s*$/, D = (e)
354
354
  "aria-live": "polite",
355
355
  className: "inline-flex items-center gap-2",
356
356
  children: [
357
- /* @__PURE__ */ S(c, {
357
+ /* @__PURE__ */ S(s, {
358
358
  size: 14,
359
359
  ariaLabel: x
360
360
  }),
@@ -419,7 +419,7 @@ var w = /[([][^()[\]]*[)\]]/g, T = /(\d+(?:\.\d+)?)\s*s\b/, E = /:\s*$/, D = (e)
419
419
  });
420
420
  return /* @__PURE__ */ C("div", {
421
421
  style: R,
422
- className: i("flex w-full flex-col gap-1", s),
422
+ className: i("flex w-full flex-col gap-1", c),
423
423
  children: [/* @__PURE__ */ S(u, {
424
424
  className: V.toggleButton,
425
425
  onClick: () => N((e) => !e),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-stages",
3
3
  "description": "Panel for displaying agent processing stages during LLM response streaming",
4
- "version": "1.1.0-dev.78",
4
+ "version": "1.1.0-dev.87",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,8 +19,8 @@
19
19
  "peerDependencies": {
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
- "@epam/ai-dial-chat-shared": "1.1.0-dev.78",
23
- "@epam/ai-dial-ui-kit": "^0.13.0-dev.25"
22
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.87",
23
+ "@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",