@epam/ai-dial-conversation-stages 1.2.0-dev.219 → 1.2.0-dev.225

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 +1 @@
1
- {"version":3,"file":"CollapsedGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsedGroup/CollapsedGroup.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAUxE,gJAAgJ;AAChJ,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA2NlD,CAAC"}
1
+ {"version":3,"file":"CollapsedGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsedGroup/CollapsedGroup.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAUxE,gJAAgJ;AAChJ,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA6NlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAOnC,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,kEAAkE;IAClE,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,kHAAkH;IAClH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D;AAyCD,6EAA6E;AAC7E,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAuHxC,CAAC"}
1
+ {"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EAAE,EAAE,EAAkC,MAAM,OAAO,CAAC;AAK3D,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAOnC,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,kEAAkE;IAClE,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,kHAAkH;IAClH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D;AAyCD,6EAA6E;AAC7E,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA0HxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAO3B,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AA4HnC,+FAA+F;AAC/F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,CAAC"}
1
+ {"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAOrC,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AAgInC,+FAA+F;AAC/F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,CAAC"}
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AttachmentErrorReason as e, AttachmentType as t, MIME_TYPE_EXT_MAP as n, MarkdownCodeBlock as r, MarkdownRenderer as i, RequestStatus as a, StageStatus as o, buildCssVars as s, mergeClasses as c, messageAttachmentsToDisplayAttachments as l, normalizeMimeType as u } from "@epam/ai-dial-chat-shared";
2
2
  import { Accordion as d, DIAL_ICON_SIZE as f, DIAL_KIT_ICON_STROKE as p, ElementSize as m, EllipsisTooltip as h, Highlight as g, Skeleton as _, SkeletonVariant as v, Spinner as y, StaticIconButton as b } from "@epam/ai-dial-ui-kit";
3
- import { IconAlertCircle as x, IconCheck as S, IconClipboard as C, IconDownload as w, IconExternalLink as T, IconFile as E, IconFileTypeBmp as D, IconFileTypeCss as O, IconFileTypeCsv as k, IconFileTypeDoc as A, IconFileTypeDocx as j, IconFileTypeHtml as M, IconFileTypeJpg as N, IconFileTypeJs as P, IconFileTypeJsx as F, IconFileTypePdf as I, IconFileTypePhp as L, IconFileTypePng as ee, IconFileTypePpt as R, IconFileTypeRs as z, IconFileTypeSql as te, IconFileTypeSvg as ne, IconFileTypeTs as re, IconFileTypeTsx as B, IconFileTypeTxt as ie, IconFileTypeVue as ae, IconFileTypeXls as oe, IconFileTypeXml as se, IconFileTypeZip as ce, IconMusic as le, IconPhoto as V, IconReload as ue, IconTerminal2 as de, IconVideo as fe, IconX as pe } from "@tabler/icons-react";
4
- import { memo as me, useCallback as he, useEffect as H, useId as ge, useMemo as U, useRef as _e, useState as ve } from "react";
3
+ import { IconAlertCircle as x, IconCheck as S, IconClipboard as C, IconDownload as w, IconExternalLink as T, IconFile as E, IconFileTypeBmp as D, IconFileTypeCss as O, IconFileTypeCsv as k, IconFileTypeDoc as A, IconFileTypeDocx as j, IconFileTypeHtml as M, IconFileTypeJpg as N, IconFileTypeJs as P, IconFileTypeJsx as F, IconFileTypePdf as I, IconFileTypePhp as L, IconFileTypePng as ee, IconFileTypePpt as R, IconFileTypeRs as z, IconFileTypeSql as te, IconFileTypeSvg as ne, IconFileTypeTs as re, IconFileTypeTsx as B, IconFileTypeTxt as ie, IconFileTypeVue as ae, IconFileTypeXls as oe, IconFileTypeXml as se, IconFileTypeZip as ce, IconMusic as le, IconPhoto as ue, IconReload as de, IconTerminal2 as fe, IconVideo as pe, IconX as me } from "@tabler/icons-react";
4
+ import { memo as he, useCallback as ge, useEffect as V, useId as _e, useMemo as H, useRef as ve, useState as U } from "react";
5
5
  import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
6
6
  //#region src/constants/public-class-names.ts
7
7
  var q = {
@@ -122,9 +122,9 @@ var q = {
122
122
  case "image/png": return ee;
123
123
  case "image/svg+xml": return ne;
124
124
  case "image/bmp": return D;
125
- default: return V;
125
+ default: return ue;
126
126
  }
127
- if (t.startsWith("video/")) return fe;
127
+ if (t.startsWith("video/")) return pe;
128
128
  if (t.startsWith("audio/")) return le;
129
129
  switch (t) {
130
130
  case "application/pdf": return I;
@@ -157,7 +157,7 @@ var q = {
157
157
  }
158
158
  }, Re = (e) => {
159
159
  let { type: n, contentType: r } = e;
160
- return n === t.Prompt ? de : n === t.Pasted ? C : n === t.Image ? V : Le(r ?? "");
160
+ return n === t.Prompt ? fe : n === t.Pasted ? C : n === t.Image ? ue : Le(r ?? "");
161
161
  }, ze = (e) => {
162
162
  let t = u(e), r = n[t];
163
163
  if (r) return r;
@@ -214,7 +214,7 @@ var q = {
214
214
  e.stopPropagation(), r(i);
215
215
  }
216
216
  }), Ue = ({ ...e }) => /* @__PURE__ */ G(Q, {
217
- icon: /* @__PURE__ */ G(ue, {
217
+ icon: /* @__PURE__ */ G(de, {
218
218
  size: f.SM,
219
219
  "aria-hidden": !0,
220
220
  stroke: p
@@ -236,7 +236,7 @@ var q = {
236
236
  }),
237
237
  ...e
238
238
  }), Ke = ({ ...e }) => /* @__PURE__ */ G(Q, {
239
- icon: /* @__PURE__ */ G(pe, {
239
+ icon: /* @__PURE__ */ G(me, {
240
240
  size: f.SM,
241
241
  "aria-hidden": !0,
242
242
  stroke: p
@@ -247,9 +247,9 @@ var q = {
247
247
  [e.UnsupportedType]: "Upload failed · unsupported file type",
248
248
  [e.FileTooLarge]: "Upload failed · file too large"
249
249
  }, Je = ({ attachment: t, searchQuery: n = "", onClick: r, onRetry: i, labels: o, styles: s, onDownload: l, isPasted: u, isLink: d, cssVars: f, onExpand: p, isExpandable: m, onRemove: h, isSelected: _ }) => {
250
- let { clickLabel: v = "Download attachment", retryLabel: b = "Retry upload", removeLabel: x = "Remove attachment", openInNewTabLabel: S = "Open in new tab", sizeLabel: C, uploadingLabel: w = "Uploading", errorReasonLabels: T, genericErrorLabel: E = "Upload failed" } = o ?? {}, { typography: D, className: O } = s ?? {}, { id: k, name: A, status: j, errorReason: M } = t, N = j === a.Loading, P = j === a.Error, F = ge(), I = P ? M && (T?.[M] ?? qe[M]) || E : "", { BottomIcon: L, typeLabel: ee } = Ve(t), R = !P && !N && l && !d, z = P && !!i && M !== e.UnsupportedType && M !== e.FileTooLarge, te = Number(!!R) + Number(!!z) + Number(!!d) + Number(!!h), ne = te > 1 ? "pe-11" : te === 1 ? "pe-5" : void 0, re = (e) => {
250
+ let { clickLabel: v = "Download attachment", retryLabel: b = "Retry upload", removeLabel: x = "Remove attachment", openInNewTabLabel: S = "Open in new tab", sizeLabel: C, uploadingLabel: w = "Uploading", errorReasonLabels: T, genericErrorLabel: E = "Upload failed" } = o ?? {}, { typography: D, className: O } = s ?? {}, { id: k, name: A, status: j, errorReason: M } = t, N = j === a.Loading, P = j === a.Error, F = _e(), I = P ? M && (T?.[M] ?? qe[M]) || E : "", { BottomIcon: L, typeLabel: ee } = Ve(t), R = !P && !N && l && !d, z = P && !!i && M !== e.UnsupportedType && M !== e.FileTooLarge, te = Number(!!R) + Number(!!z) + Number(!!d) + Number(!!h), ne = te > 1 ? "pe-11" : te === 1 ? "pe-5" : void 0, re = (e) => {
251
251
  e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r?.(t.id));
252
- }, B = U(() => u ? A : Ie(A), [u, A]), ie = he(() => {
252
+ }, B = H(() => u ? A : Ie(A), [u, A]), ie = ge(() => {
253
253
  window.open(t.referenceUrl, "_blank", "noopener,noreferrer");
254
254
  }, [t]), ae = c(He, "group/attachment-tile relative flex-col justify-between items-start gap-1 overflow-hidden p-1.5", Z.tile, !P && Z.hovered, _ && Z.selected, P && Z.tileError, X.tile, _ && X.tileSelected), oe = /* @__PURE__ */ G("div", {
255
255
  title: B,
@@ -338,10 +338,10 @@ var q = {
338
338
  }, Ye = /* @__PURE__ */ function(e) {
339
339
  return e.Idle = "idle", e.Loading = "loading", e.Loaded = "loaded", e.Error = "error", e;
340
340
  }({}), Xe = ({ enabled: e, src: t }) => {
341
- let n = _e(null), [r, i] = ve("idle");
342
- return H(() => {
341
+ let n = ve(null), [r, i] = U("idle");
342
+ return V(() => {
343
343
  i(e && t ? "loading" : "idle");
344
- }, [e, t]), H(() => {
344
+ }, [e, t]), V(() => {
345
345
  let r = n.current;
346
346
  if (!r || !e || !t) return;
347
347
  let a = () => i("loaded"), o = () => i("error");
@@ -353,7 +353,7 @@ var q = {
353
353
  imageLoadStatus: r
354
354
  };
355
355
  }, Ze = ({ attachment: e, onExpand: n, onClick: r, labels: i, onRemove: a, cssVars: o, onDownload: s, styles: l, isSelected: u }) => {
356
- let { clickLabel: d = "Open attachment", expandLabel: m = "Expand pasted text", removeLabel: h = "Remove attachment", downloadLabel: g = "Download attachment" } = i ?? {}, { className: y } = l ?? {}, { id: b, name: x } = e, S = e.previewUrl ?? e.url, C = e.type === t.Pasted && n !== void 0, { isLoading: w, isError: T, isImage: E } = U(() => Ve(e), [e]), D = r !== void 0 && !C && !w && !T, { imageRef: O, imageLoadStatus: k } = Xe({
356
+ let { clickLabel: d = "Open attachment", expandLabel: m = "Expand pasted text", removeLabel: h = "Remove attachment", downloadLabel: g = "Download attachment" } = i ?? {}, { className: y } = l ?? {}, { id: b, name: x } = e, S = e.previewUrl ?? e.url, C = e.type === t.Pasted && n !== void 0, { isLoading: w, isError: T, isImage: E } = H(() => Ve(e), [e]), D = r !== void 0 && !C && !w && !T, { imageRef: O, imageLoadStatus: k } = Xe({
357
357
  enabled: E,
358
358
  src: S
359
359
  }), A = () => {
@@ -391,7 +391,7 @@ var q = {
391
391
  width: "100%",
392
392
  height: "100%",
393
393
  active: k === Ye.Loading,
394
- overlay: /* @__PURE__ */ G(V, {
394
+ overlay: /* @__PURE__ */ G(ue, {
395
395
  size: f.LG,
396
396
  className: Z.typeText,
397
397
  "aria-hidden": !0,
@@ -427,7 +427,7 @@ var q = {
427
427
  "--ai-tile-hover-icon-bg": f?.hoverIconBackground,
428
428
  "--ai-tile-hover-icon-color": f?.hoverIconColor,
429
429
  "--ai-tile-progress-track": f?.trackBackground
430
- }), { isImage: g, isLink: _ } = U(() => Ve(e), [e]);
430
+ }), { isImage: g, isLink: _ } = H(() => Ve(e), [e]);
431
431
  return g ? /* @__PURE__ */ G(Ze, {
432
432
  attachment: e,
433
433
  labels: l,
@@ -476,7 +476,7 @@ var q = {
476
476
  containerClassName: c(Y.codeBlock, n),
477
477
  copyLabel: i,
478
478
  hideDownload: !0
479
- }), tt = me(({ content: e, typography: t, copyAriaLabel: n = "Copy" }) => {
479
+ }), tt = he(({ content: e, typography: t, copyAriaLabel: n = "Copy" }) => {
480
480
  let r = "mb-1.5 last:mb-0", a = c(t?.headingClassName ?? "dial-small-semi-text", Y.stageContent, r);
481
481
  return /* @__PURE__ */ G(i, {
482
482
  content: e,
@@ -507,7 +507,7 @@ var q = {
507
507
  }) }
508
508
  });
509
509
  }), nt = ({ attachments: e, clickLabel: t, onAttachmentClick: n }) => {
510
- let r = he((t) => {
510
+ let r = ge((t) => {
511
511
  let r = e.find((e) => e.id === t);
512
512
  r && n?.(r);
513
513
  }, [e, n]);
@@ -524,79 +524,83 @@ var q = {
524
524
  }, e.id))
525
525
  });
526
526
  }, rt = ({ stage: e, isLive: t, typography: n, labels: r, nameOverride: i, onAttachmentClick: a }) => {
527
- let { copyAriaLabel: s = "Copy stage content", runningAriaLabel: l, failedAriaLabel: u, attachmentClickLabel: f = "Preview search result" } = r ?? {}, p = U(() => $e(e.attachments), [e.attachments]), { name: m, durationLabel: g } = J(e.name), _ = i ?? m, v = !i && De(m), y = e.status === o.Failed, b = !!e.content || !!e.attachments?.length, x = /* @__PURE__ */ K(W, { children: [
527
+ let [s, l] = U(!1), { copyAriaLabel: u = "Copy stage content", runningAriaLabel: f, failedAriaLabel: p, attachmentClickLabel: m = "Preview search result" } = r ?? {}, g = H(() => $e(e.attachments), [e.attachments]), { name: _, durationLabel: v } = J(e.name), y = i ?? _, b = !i && De(_), x = e.status === o.Failed, S = !!e.content || !!e.attachments?.length, C = /* @__PURE__ */ K(W, { children: [
528
528
  /* @__PURE__ */ G("span", {
529
529
  className: "flex flex-none items-center",
530
530
  children: /* @__PURE__ */ G(Fe, {
531
531
  status: e.status,
532
532
  isLive: t,
533
- runningLabel: l,
534
- failedLabel: u
533
+ runningLabel: f,
534
+ failedLabel: p
535
535
  })
536
536
  }),
537
537
  /* @__PURE__ */ G("span", {
538
- className: c("min-w-0 max-w-[22rem] truncate", n?.fontClassName ?? "dial-small-text", Y.stageName, y && Y.stageNameFailed, v && Y.monoName),
539
- children: /* @__PURE__ */ G(h, { text: _ || e.status || "" })
538
+ className: c("min-w-0 max-w-[22rem] truncate", n?.fontClassName ?? "dial-small-text", Y.stageName, x && Y.stageNameFailed, b && Y.monoName),
539
+ children: /* @__PURE__ */ G(h, { text: y || e.status || "" })
540
540
  }),
541
541
  e.tag && /* @__PURE__ */ G("span", {
542
542
  className: c("flex-none", n?.tagClassName ?? "dial-tiny-lead-text", Y.tag),
543
543
  children: e.tag
544
544
  }),
545
- g && /* @__PURE__ */ G("span", {
545
+ v && /* @__PURE__ */ G("span", {
546
546
  className: c("flex-none", n?.countFontClassName ?? "dial-tiny-text", Y.duration),
547
- children: g
547
+ children: v
548
548
  })
549
549
  ] });
550
- return b ? /* @__PURE__ */ K(d, {
550
+ return S ? /* @__PURE__ */ K(d, {
551
+ expanded: s,
552
+ onToggle: l,
551
553
  title: /* @__PURE__ */ G("span", {
552
554
  className: "flex min-w-0 items-center gap-2",
553
- children: x
555
+ children: C
554
556
  }),
555
557
  className: Me,
556
558
  headerClassName: c(Ne, Y.row, Y.stageHeader),
557
559
  contentClassName: c("-mt-1 flex flex-col gap-3 px-0 py-1 ps-8", Y.stageRegion),
558
- children: [e.content && /* @__PURE__ */ G("div", {
560
+ children: [s && e.content && /* @__PURE__ */ G("div", {
559
561
  className: "max-h-[300px] overflow-y-auto",
560
562
  children: /* @__PURE__ */ G(tt, {
561
563
  content: e.content,
562
564
  typography: n,
563
- copyAriaLabel: s
565
+ copyAriaLabel: u
564
566
  })
565
- }), p.length > 0 && /* @__PURE__ */ G(nt, {
566
- attachments: p,
567
- clickLabel: f,
567
+ }), s && g.length > 0 && /* @__PURE__ */ G(nt, {
568
+ attachments: g,
569
+ clickLabel: m,
568
570
  onAttachmentClick: a
569
571
  })]
570
572
  }) : /* @__PURE__ */ G("div", {
571
573
  className: c("flex w-full items-center gap-2 px-2 py-1.5", Y.row),
572
- children: x
574
+ children: C
573
575
  });
574
576
  }, it = ({ row: e, isLive: t, typography: n, labels: r, onAttachmentClick: i }) => {
575
- let { runningAriaLabel: a, failedAriaLabel: s, attemptLabel: l = (e) => `Attempt ${e}` } = r ?? {}, u = e.attempts?.some((e) => e.status == null) ?? !1, f = e.attempts?.some((e) => e.status === o.Failed), p = u ? null : f ? o.Failed : o.Completed, m = Ae((e.attempts || []).map((e) => e.name)), g = m > 0 ? Oe(m) : void 0;
577
+ let { runningAriaLabel: a, failedAriaLabel: s, attemptLabel: l = (e) => `Attempt ${e}` } = r ?? {}, [u, f] = U(!1), p = e.attempts?.some((e) => e.status == null) ?? !1, m = e.attempts?.some((e) => e.status === o.Failed), g = p ? null : m ? o.Failed : o.Completed, _ = Ae((e.attempts || []).map((e) => e.name)), v = _ > 0 ? Oe(_) : void 0;
576
578
  return /* @__PURE__ */ G(d, {
579
+ expanded: u,
580
+ onToggle: f,
577
581
  title: /* @__PURE__ */ K("span", {
578
582
  className: "flex min-w-0 items-center gap-2",
579
583
  children: [
580
584
  /* @__PURE__ */ G("span", {
581
585
  className: "flex flex-none items-center",
582
586
  children: /* @__PURE__ */ G(Fe, {
583
- status: p,
587
+ status: g,
584
588
  isLive: t,
585
589
  runningLabel: a,
586
590
  failedLabel: s
587
591
  })
588
592
  }),
589
593
  /* @__PURE__ */ G("span", {
590
- className: c("min-w-0 max-w-[22rem] truncate", n?.fontClassName ?? "dial-small-text", Y.stageName, f && Y.stageNameFailed),
594
+ className: c("min-w-0 max-w-[22rem] truncate", n?.fontClassName ?? "dial-small-text", Y.stageName, m && Y.stageNameFailed),
591
595
  children: /* @__PURE__ */ G(h, { text: e.name })
592
596
  }),
593
597
  /* @__PURE__ */ K("span", {
594
598
  className: c("flex-none", n?.countFontClassName ?? "dial-tiny-text", Y.count),
595
599
  children: ["×", e.attempts?.length ?? 0]
596
600
  }),
597
- g && /* @__PURE__ */ G("span", {
601
+ v && /* @__PURE__ */ G("span", {
598
602
  className: c("flex-none", n?.countFontClassName ?? "dial-tiny-text", Y.duration),
599
- children: g
603
+ children: v
600
604
  })
601
605
  ]
602
606
  }),
@@ -606,7 +610,7 @@ var q = {
606
610
  children: /* @__PURE__ */ G("ul", {
607
611
  role: "list",
608
612
  className: "flex flex-col gap-0.5",
609
- children: e.attempts?.map((e, a) => /* @__PURE__ */ G("li", {
613
+ children: u && e.attempts?.map((e, a) => /* @__PURE__ */ G("li", {
610
614
  role: "listitem",
611
615
  children: /* @__PURE__ */ G(rt, {
612
616
  stage: e,
@@ -673,8 +677,8 @@ var q = {
673
677
  failedText: "_failedText_1kyyc_45",
674
678
  liveName: "_liveName_1kyyc_49"
675
679
  }, ot = ({ stages: e, isStreaming: t, labels: n, className: r, styles: i, onAttachmentClick: a }) => {
676
- let { executedLabel: l = "Executed", stepsLabel: u = () => "steps", failedCountLabel: m = (e) => `${e} failed`, runningAriaLabel: g = "Running", copyAriaLabel: _, failedAriaLabel: v, attemptLabel: b, attachmentClickLabel: x } = n ?? {}, [C, w] = ve(t), T = _e(t);
677
- H(() => {
680
+ let { executedLabel: l = "Executed", stepsLabel: u = () => "steps", failedCountLabel: m = (e) => `${e} failed`, runningAriaLabel: g = "Running", copyAriaLabel: _, failedAriaLabel: v, attemptLabel: b, attachmentClickLabel: x } = n ?? {}, [C, w] = U(t), T = ve(t);
681
+ V(() => {
678
682
  T.current && !t && w(!1), T.current = t;
679
683
  }, [t]);
680
684
  let { colors: E, panel: D } = i ?? {}, O = i?.typography ?? { fontClassName: "dial-small-text" }, k = s({
@@ -796,7 +800,7 @@ var q = {
796
800
  className: "overflow-visible py-0",
797
801
  headerClassName: c("justify-start gap-1 rounded-none px-0", $.toggleButton, q.groupToggle),
798
802
  contentClassName: c("-mt-2 px-0", $.groupRegion),
799
- children: /* @__PURE__ */ G(at, {
803
+ children: C && /* @__PURE__ */ G(at, {
800
804
  stages: e,
801
805
  isStreaming: t,
802
806
  styles: {
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.2.0-dev.219",
4
+ "version": "1.2.0-dev.225",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@tabler/icons-react": "^3.44.0",
21
- "@epam/ai-dial-attachment-input": "1.2.0-dev.219"
21
+ "@epam/ai-dial-attachment-input": "1.2.0-dev.225"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^19.2.8",
25
- "@epam/ai-dial-chat-shared": "1.2.0-dev.219",
25
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.225",
26
26
  "@epam/ai-dial-ui-kit": "^0.15.0-dev.27"
27
27
  },
28
28
  "repository": {