@epam/ai-dial-conversation-stages 1.2.0-dev.142 → 1.2.0-dev.148

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.
@@ -4,12 +4,12 @@ interface Props {
4
4
  children: ReactNode;
5
5
  /** Language class from react-markdown (e.g. `language-json`). */
6
6
  codeClassName?: string;
7
- /** Typography class applied to the `<pre>` block. Defaults to `'dial-code-text'`. */
7
+ /** Typography class applied to the fenced code block. Defaults to `'dial-code-text'`. */
8
8
  blockClassName?: string;
9
9
  /** Accessible label for the copy button. */
10
10
  copyAriaLabel: string;
11
11
  }
12
- /** Code block with an inline copy button in the top-end corner. */
12
+ /** Adapts stage markdown code blocks to the shared markdown code-block UI. */
13
13
  export declare const StageCodeBlock: FC<Props>;
14
14
  export {};
15
15
  //# sourceMappingURL=StageCodeBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageCodeBlock.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAGf,UAAU,KAAK;IACb,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,mEAAmE;AACnE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CA4DpC,CAAC"}
1
+ {"version":3,"file":"StageCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageCodeBlock.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhD,UAAU,KAAK;IACb,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,8EAA8E;AAC9E,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAoBpC,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,2 @@
1
1
  ._panel_vd48n_1{color:var(--cs-text,var(--text-primary,#161b2d))}._row_vd48n_5:hover{background:var(--cs-row-hover,var(--bg-layer-sunken,#eef1f7))}._collapseButton_vd48n_9{background:var(--cs-button-bg,transparent)}._stageName_vd48n_13{color:var(--cs-stage-text,var(--text-secondary,#57647a))}._stageNameFailed_vd48n_17{color:var(--cs-failed-text,var(--text-warning,#7f6300))}._monoName_vd48n_21{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}._tag_vd48n_25{color:var(--cs-tag-text,var(--text-tertiary,#848e9c))}._count_vd48n_29{color:var(--cs-count-text,var(--text-tertiary,#848e9c));font-variant-numeric:tabular-nums}._duration_vd48n_34{color:var(--cs-duration-text,var(--text-tertiary,#848e9c));font-variant-numeric:tabular-nums}._iconSecondary_vd48n_39{color:var(--cs-icon-secondary,var(--text-secondary,#57647a));opacity:.7}._iconCompleted_vd48n_44{color:var(--cs-icon-completed,var(--text-tertiary,#848e9c))}._iconError_vd48n_48{color:var(--cs-icon-error,var(--text-warning,#7f6300))}._stageContent_vd48n_52{color:var(--cs-stage-text,var(--text-secondary,#57647a))}._codeBlock_vd48n_56{background:var(--cs-code-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cs-code-border,var(--stroke-secondary,#d1dbea));color:var(--cs-code-text,var(--text-primary,#161b2d))}._codeInline_vd48n_62{background:var(--cs-code-bg,var(--bg-layer-raised,#fcfcfc));border:1px solid var(--cs-code-border,var(--stroke-secondary,#d1dbea));color:var(--cs-code-text,var(--text-primary,#161b2d))}._blockquote_vd48n_68{border-color:var(--cs-stage-text,var(--text-secondary,#57647a));color:var(--cs-stage-text,var(--text-secondary,#57647a))}._tableCell_vd48n_73{border-color:var(--cs-border,var(--stroke-secondary,#d1dbea));color:var(--cs-stage-text,var(--text-secondary,#57647a))}._toggleButton_1sa5v_1{color:var(--cs-cg-label,var(--text-secondary,#57647a));text-align:start;width:100%;min-width:0;justify-content:flex-start!important}._toggleButton_1sa5v_1:hover{color:var(--cs-cg-label-hover,var(--text-primary,#161b2d))}._executedLabel_1sa5v_13{color:var(--cs-cg-label,var(--text-secondary,#57647a))}._stepsCount_1sa5v_17{color:var(--cs-cg-steps-count,var(--text-tertiary,#848e9c));font-variant-numeric:tabular-nums}._doneIcon_1sa5v_22{color:var(--cs-cg-done,var(--text-success,#007274))}._failedText_1sa5v_26{color:var(--cs-cg-failed,var(--text-warning,#7f6300))}._liveName_1sa5v_30{color:var(--cs-cg-label,var(--text-primary,#161b2d))}
2
- /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.end-2{inset-inline-end:.5rem}.top-2{top:.5rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.max-h-\[300px\]{max-height:300px}.w-full{width:100%}.min-w-0{min-width:0}.max-w-\[22rem\]{max-width:22rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.cursor-pointer{cursor:pointer}.grid-rows-\[0fr\]{grid-template-rows:0fr}.grid-rows-\[1fr\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:4px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.p-3{padding:.75rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.ps-5{padding-inline-start:1.25rem}.ps-6{padding-inline-start:1.5rem}.ps-8{padding-inline-start:2rem}.pt-1{padding-top:.25rem}.text-start{text-align:start}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\[grid-template-rows\]{transition-duration:.15s;transition-property:grid-template-rows;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-\[250ms\]{transition-duration:.25s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.last\:mb-0:last-child{margin-bottom:0}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
2
+ /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.collapse{visibility:collapse}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.max-h-\[300px\]{max-height:300px}.w-full{width:100%}.min-w-0{min-width:0}.max-w-\[22rem\]{max-width:22rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.cursor-pointer{cursor:pointer}.grid-rows-\[0fr\]{grid-template-rows:0fr}.grid-rows-\[1fr\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.ps-5{padding-inline-start:1.25rem}.ps-6{padding-inline-start:1.5rem}.ps-8{padding-inline-start:2rem}.pt-1{padding-top:.25rem}.text-start{text-align:start}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\[grid-template-rows\]{transition-duration:.15s;transition-property:grid-template-rows;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-\[250ms\]{transition-duration:.25s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.last\:mb-0:last-child{margin-bottom:0}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
package/index.js CHANGED
@@ -1,46 +1,46 @@
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, DIAL_KIT_ICON_STROKE as o, ElementSize as s, EllipsisTooltip as c, GhostIconButton as l, LinkButton as u, Spinner as d } from "@epam/ai-dial-ui-kit";
3
- import { IconAlertCircle as f, IconCheck as p, IconChevronDown as m, IconChevronRight as h, IconCopy as g } from "@tabler/icons-react";
4
- import { memo as _, useCallback as v, useEffect as y, useRef as b, useState as x } from "react";
5
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
1
+ import { MarkdownCodeBlock as e, MarkdownRenderer as t, StageStatus as n, buildCssVars as r, mergeClasses as i } from "@epam/ai-dial-chat-shared";
2
+ import { DIAL_ICON_SIZE as a, DIAL_KIT_ICON_STROKE as o, EllipsisTooltip as s, LinkButton as c, Spinner as l } from "@epam/ai-dial-ui-kit";
3
+ import { IconAlertCircle as u, IconCheck as d, IconChevronDown as f, IconChevronRight as p } from "@tabler/icons-react";
4
+ import { memo as m, useEffect as h, useRef as g, useState as _ } from "react";
5
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
6
6
  //#region src/constants/public-class-names.ts
7
- var T = {
7
+ var x = {
8
8
  panel: "dial-conversation-stages-panel",
9
9
  group: "dial-conversation-stages-group",
10
10
  groupToggle: "dial-conversation-stages-group-toggle"
11
- }, E = /[([][^()[\]]*[)\]]/g, D = /(\d+(?:\.\d+)?)\s*s\b/, O = /\bStart:\s*(\d{1,2}):([0-5]\d):([0-5]\d(?:\.\d+)?)\b/i, k = (e) => {
11
+ }, S = /[([][^()[\]]*[)\]]/g, C = /(\d+(?:\.\d+)?)\s*s\b/, w = /\bStart:\s*(\d{1,2}):([0-5]\d):([0-5]\d(?:\.\d+)?)\b/i, T = (e) => {
12
12
  let t = e.trimEnd();
13
13
  return t.endsWith(":") ? t.slice(0, -1) : t;
14
- }, A = 1440 * 60, j = A / 2, M = (e) => {
15
- let t = O.exec(e);
14
+ }, E = 1440 * 60, D = E / 2, O = (e) => {
15
+ let t = w.exec(e);
16
16
  if (!t) return;
17
17
  let n = Number(t[1]);
18
18
  if (!(n > 23)) return n * 60 * 60 + Number(t[2]) * 60 + Number(t[3]);
19
- }, N = (e) => {
20
- E.lastIndex = 0;
19
+ }, k = (e) => {
20
+ S.lastIndex = 0;
21
21
  let t;
22
- for (; t = E.exec(e);) {
23
- let e = t[0].slice(1, -1), n = D.exec(e);
22
+ for (; t = S.exec(e);) {
23
+ let e = t[0].slice(1, -1), n = C.exec(e);
24
24
  if (n) return {
25
25
  durationLabel: `${n[1]}s`,
26
26
  groupIndex: t.index,
27
27
  groupLength: t[0].length,
28
- startTimeSeconds: M(e)
28
+ startTimeSeconds: O(e)
29
29
  };
30
30
  }
31
- }, P = (e) => {
32
- let t = e ?? "", n = N(t);
31
+ }, A = (e) => {
32
+ let t = e ?? "", n = k(t);
33
33
  return {
34
- name: k(n ? t.slice(0, n.groupIndex) + t.slice(n.groupIndex + n.groupLength) : t).trim().replace(/ {2,}/g, " "),
34
+ name: T(n ? t.slice(0, n.groupIndex) + t.slice(n.groupIndex + n.groupLength) : t).trim().replace(/ {2,}/g, " "),
35
35
  durationLabel: n?.durationLabel
36
36
  };
37
- }, F = (e) => e.length > 0 && !/\s/.test(e) && e.includes("_"), I = (e) => e >= 60 ? `${Math.floor(e / 60)}m ${Math.round(e % 60)}s` : `${e.toFixed(1)}s`, L = (e) => {
37
+ }, j = (e) => e.length > 0 && !/\s/.test(e) && e.includes("_"), M = (e) => e >= 60 ? `${Math.floor(e / 60)}m ${Math.round(e % 60)}s` : `${e.toFixed(1)}s`, N = (e) => {
38
38
  if (!e) return;
39
39
  let t = /^(\d+(?:\.\d+)?)s$/.exec(e);
40
40
  return t ? parseFloat(t[1]) : void 0;
41
- }, R = (e) => {
41
+ }, P = (e) => {
42
42
  let t = e.flatMap((e) => {
43
- let t = N(e ?? ""), n = L(t?.durationLabel);
43
+ let t = k(e ?? ""), n = N(t?.durationLabel);
44
44
  return n == null ? [] : [{
45
45
  durationSeconds: n,
46
46
  startTimeSeconds: t?.startTimeSeconds
@@ -51,18 +51,18 @@ var T = {
51
51
  let n = 0, r, i = t.flatMap(({ durationSeconds: e, startTimeSeconds: t }) => {
52
52
  if (t == null) return [];
53
53
  let i = t + n;
54
- return r != null && r - i > j && (n += A, i += A), r = i, {
54
+ return r != null && r - i > D && (n += E, i += E), r = i, {
55
55
  start: i,
56
56
  end: i + e
57
57
  };
58
58
  }).sort((e, t) => e.start - t.start), a = 0, o = i[0].start, s = i[0].end;
59
59
  for (let e of i.slice(1)) e.start <= s ? s = Math.max(s, e.end) : (a += s - o, o = e.start, s = e.end);
60
60
  return a + s - o;
61
- }, z = (e) => [...e].reverse().find((e) => e.status == null), B = (e) => {
61
+ }, F = (e) => [...e].reverse().find((e) => e.status == null), I = (e) => {
62
62
  let t = [], n = 0;
63
63
  for (; n < e.length;) {
64
- let r = e[n], i = P(r.name).name, a = n + 1;
65
- for (; a < e.length && P(e[a].name).name === i;) a += 1;
64
+ let r = e[n], i = A(r.name).name, a = n + 1;
65
+ for (; a < e.length && A(e[a].name).name === i;) a += 1;
66
66
  let o = e.slice(n, a);
67
67
  o.length > 1 ? t.push({
68
68
  key: r.index,
@@ -74,7 +74,7 @@ var T = {
74
74
  }), n = a;
75
75
  }
76
76
  return t;
77
- }, V = {
77
+ }, L = {
78
78
  panel: "_panel_vd48n_1",
79
79
  row: "_row_vd48n_5",
80
80
  collapseButton: "_collapseButton_vd48n_9",
@@ -92,51 +92,33 @@ var T = {
92
92
  codeInline: "_codeInline_vd48n_62",
93
93
  blockquote: "_blockquote_vd48n_68",
94
94
  tableCell: "_tableCell_vd48n_73"
95
- }, H = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) => e === t.Failed ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(f, {
95
+ }, R = ({ status: e, isLive: t, runningLabel: r = "Running", failedLabel: i = "Failed" }) => e === n.Failed ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(u, {
96
96
  size: a.MD,
97
- className: V.iconError,
97
+ className: L.iconError,
98
98
  "aria-hidden": !0,
99
99
  stroke: o
100
- }), /* @__PURE__ */ C("span", {
100
+ }), /* @__PURE__ */ y("span", {
101
101
  className: "sr-only",
102
102
  children: i
103
- })] }) : e === t.Completed ? /* @__PURE__ */ C(p, {
103
+ })] }) : e === n.Completed ? /* @__PURE__ */ y(d, {
104
104
  size: a.SM,
105
- className: V.iconCompleted,
105
+ className: L.iconCompleted,
106
106
  "aria-hidden": !0,
107
107
  stroke: o
108
- }) : n ? /* @__PURE__ */ C(d, {
108
+ }) : t ? /* @__PURE__ */ y(l, {
109
109
  size: 16,
110
110
  ariaLabel: r
111
- }) : null, U = ({ children: e, codeClassName: t, blockClassName: n = "dial-code-text", copyAriaLabel: c }) => {
112
- let [u, d] = x(!1), f = b(null);
113
- y(() => () => {
114
- f.current != null && clearTimeout(f.current);
115
- }, []);
116
- let m = v(() => {
117
- r(typeof e == "string" ? e : String(e ?? "")), f.current && clearTimeout(f.current), d(!0), f.current = setTimeout(() => d(!1), 2e3);
118
- }, [e]);
119
- return /* @__PURE__ */ w("pre", {
120
- className: i("relative max-h-[300px] overflow-auto rounded border p-3", n, V.codeBlock),
121
- children: [/* @__PURE__ */ C(l, {
122
- size: s.Small,
123
- icon: C(u ? p : g, {
124
- size: a.SM,
125
- className: V.iconSecondary,
126
- stroke: o
127
- }),
128
- "aria-label": c,
129
- onClick: m,
130
- className: "absolute end-2 top-2"
131
- }), /* @__PURE__ */ C("code", {
132
- className: t,
133
- children: e
134
- })]
135
- });
136
- }, W = _(({ content: t, typography: n, copyAriaLabel: r = "Copy" }) => {
137
- let a = "mb-1.5 last:mb-0", o = i(n?.headingClassName ?? "dial-small-semi-text", V.stageContent, a);
138
- return /* @__PURE__ */ C(e, {
139
- content: t,
111
+ }) : null, z = ({ children: t, codeClassName: n, blockClassName: r = "dial-code-text", copyAriaLabel: a }) => /* @__PURE__ */ y(e, {
112
+ language: n?.replace(/^language-/, "") ?? "",
113
+ value: typeof t == "string" ? t : String(t ?? ""),
114
+ codeClassName: r,
115
+ containerClassName: i(L.codeBlock, r),
116
+ copyLabel: a,
117
+ hideDownload: !0
118
+ }), B = m(({ content: e, typography: n, copyAriaLabel: r = "Copy" }) => {
119
+ let a = "mb-1.5 last:mb-0", o = i(n?.headingClassName ?? "dial-small-semi-text", L.stageContent, a);
120
+ return /* @__PURE__ */ y(t, {
121
+ content: e,
140
122
  classNames: {
141
123
  h1: o,
142
124
  h2: o,
@@ -144,127 +126,127 @@ var T = {
144
126
  h4: o,
145
127
  h5: o,
146
128
  h6: o,
147
- p: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent, "mb-1.5"),
148
- ul: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent, a),
149
- ol: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent, a),
150
- strong: i(n?.strongClassName ?? n?.contentClassName ?? "dial-tiny-text", V.stageContent),
151
- codeInline: V.codeInline,
152
- blockquote: i(n?.contentClassName ?? "dial-tiny-text", V.blockquote, a),
153
- link: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent),
154
- tableCell: i(n?.contentClassName ?? "dial-tiny-text", V.tableCell)
129
+ p: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent, "mb-1.5"),
130
+ ul: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent, a),
131
+ ol: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent, a),
132
+ strong: i(n?.strongClassName ?? n?.contentClassName ?? "dial-tiny-text", L.stageContent),
133
+ codeInline: L.codeInline,
134
+ blockquote: i(n?.contentClassName ?? "dial-tiny-text", L.blockquote, a),
135
+ link: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent),
136
+ tableCell: i(n?.contentClassName ?? "dial-tiny-text", L.tableCell)
155
137
  },
156
- components: { code: ({ children: e, className: t }) => t?.includes("language-") ? /* @__PURE__ */ C(U, {
138
+ components: { code: ({ children: e, className: t }) => t?.includes("language-") ? /* @__PURE__ */ y(z, {
157
139
  codeClassName: t,
158
140
  blockClassName: n?.codeBlockClassName,
159
141
  copyAriaLabel: r,
160
142
  children: e
161
- }) : /* @__PURE__ */ C("code", {
162
- className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md", V.codeInline),
143
+ }) : /* @__PURE__ */ y("code", {
144
+ className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md", L.codeInline),
163
145
  children: e
164
146
  }) }
165
147
  });
166
- }), G = ({ stage: e, isLive: n, typography: r, labels: s, nameOverride: l }) => {
167
- let [u, d] = x(!1), { copyAriaLabel: f = "Copy stage content", runningAriaLabel: p, failedAriaLabel: g } = s ?? {}, { name: _, durationLabel: v } = P(e.name), y = l ?? _, b = !l && F(_), T = e.status === t.Failed, E = !!e.content, D = /* @__PURE__ */ w(S, { children: [
168
- /* @__PURE__ */ C("span", {
148
+ }), V = ({ stage: e, isLive: t, typography: r, labels: c, nameOverride: l }) => {
149
+ let [u, d] = _(!1), { copyAriaLabel: m = "Copy stage content", runningAriaLabel: h, failedAriaLabel: g } = c ?? {}, { name: x, durationLabel: S } = A(e.name), C = l ?? x, w = !l && j(x), T = e.status === n.Failed, E = !!e.content, D = /* @__PURE__ */ b(v, { children: [
150
+ /* @__PURE__ */ y("span", {
169
151
  className: "flex flex-none items-center",
170
- children: /* @__PURE__ */ C(H, {
152
+ children: /* @__PURE__ */ y(R, {
171
153
  status: e.status,
172
- isLive: n,
173
- runningLabel: p,
154
+ isLive: t,
155
+ runningLabel: h,
174
156
  failedLabel: g
175
157
  })
176
158
  }),
177
- /* @__PURE__ */ C("span", {
178
- className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName, T && V.stageNameFailed, b && V.monoName),
179
- children: /* @__PURE__ */ C(c, { text: y || e.status || "" })
159
+ /* @__PURE__ */ y("span", {
160
+ className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", L.stageName, T && L.stageNameFailed, w && L.monoName),
161
+ children: /* @__PURE__ */ y(s, { text: C || e.status || "" })
180
162
  }),
181
- e.tag && /* @__PURE__ */ C("span", {
182
- className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text", V.tag),
163
+ e.tag && /* @__PURE__ */ y("span", {
164
+ className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text", L.tag),
183
165
  children: e.tag
184
166
  }),
185
- v && /* @__PURE__ */ C("span", {
186
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
187
- children: v
167
+ S && /* @__PURE__ */ y("span", {
168
+ className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", L.duration),
169
+ children: S
188
170
  }),
189
- E && /* @__PURE__ */ C("span", {
190
- className: i("flex-none", V.iconSecondary),
191
- children: u ? /* @__PURE__ */ C(m, {
171
+ E && /* @__PURE__ */ y("span", {
172
+ className: i("flex-none", L.iconSecondary),
173
+ children: u ? /* @__PURE__ */ y(f, {
192
174
  size: a.SM,
193
175
  "aria-hidden": !0,
194
176
  stroke: o
195
- }) : /* @__PURE__ */ C(h, {
177
+ }) : /* @__PURE__ */ y(p, {
196
178
  size: a.SM,
197
179
  className: "rtl:scale-x-[-1]",
198
180
  "aria-hidden": !0,
199
181
  stroke: o
200
182
  })
201
183
  })
202
- ] }), O = i("flex w-full items-center gap-2 px-2 py-1.5", V.row);
203
- return E ? /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
184
+ ] }), O = i("flex w-full items-center gap-2 px-2 py-1.5", L.row);
185
+ return E ? /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("div", {
204
186
  className: O,
205
- children: /* @__PURE__ */ C("button", {
187
+ children: /* @__PURE__ */ y("button", {
206
188
  type: "button",
207
189
  onClick: () => d((e) => !e),
208
190
  "aria-expanded": u,
209
191
  className: "flex min-w-0 flex-1 cursor-pointer items-center gap-2 text-start",
210
192
  children: D
211
193
  })
212
- }), /* @__PURE__ */ C("div", {
194
+ }), /* @__PURE__ */ y("div", {
213
195
  className: i("grid overflow-hidden transition-[grid-template-rows] duration-[250ms] ease-in-out", u ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
214
- children: /* @__PURE__ */ C("div", {
196
+ children: /* @__PURE__ */ y("div", {
215
197
  className: "overflow-hidden",
216
- children: /* @__PURE__ */ C("div", {
198
+ children: /* @__PURE__ */ y("div", {
217
199
  className: "mt-2 flex flex-col gap-3 py-1 ps-8",
218
- children: e.content && /* @__PURE__ */ C("div", {
200
+ children: e.content && /* @__PURE__ */ y("div", {
219
201
  className: "max-h-[300px] overflow-y-auto",
220
- children: /* @__PURE__ */ C(W, {
202
+ children: /* @__PURE__ */ y(B, {
221
203
  content: e.content,
222
204
  typography: r,
223
- copyAriaLabel: f
205
+ copyAriaLabel: m
224
206
  })
225
207
  })
226
208
  })
227
209
  })
228
- })] }) : /* @__PURE__ */ C("div", {
210
+ })] }) : /* @__PURE__ */ y("div", {
229
211
  className: O,
230
212
  children: D
231
213
  });
232
- }, K = ({ row: e, isLive: n, typography: r, labels: s }) => {
233
- let { runningAriaLabel: l, failedAriaLabel: u, attemptLabel: d = (e) => `Attempt ${e}` } = s ?? {}, [f, p] = x(!1), g = e.attempts?.some((e) => e.status == null) ?? !1, _ = e.attempts?.some((e) => e.status === t.Failed), v = g ? null : _ ? t.Failed : t.Completed, y = R((e.attempts || []).map((e) => e.name)), b = y > 0 ? I(y) : void 0;
234
- return /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("button", {
214
+ }, H = ({ row: e, isLive: t, typography: r, labels: c }) => {
215
+ let { runningAriaLabel: l, failedAriaLabel: u, attemptLabel: d = (e) => `Attempt ${e}` } = c ?? {}, [m, h] = _(!1), g = e.attempts?.some((e) => e.status == null) ?? !1, v = e.attempts?.some((e) => e.status === n.Failed), x = g ? null : v ? n.Failed : n.Completed, S = P((e.attempts || []).map((e) => e.name)), C = S > 0 ? M(S) : void 0;
216
+ return /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("button", {
235
217
  type: "button",
236
- onClick: () => p((e) => !e),
237
- "aria-expanded": f,
238
- className: i("flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-start", V.collapseButton, V.row),
218
+ onClick: () => h((e) => !e),
219
+ "aria-expanded": m,
220
+ className: i("flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-start", L.collapseButton, L.row),
239
221
  children: [
240
- /* @__PURE__ */ C("span", {
222
+ /* @__PURE__ */ y("span", {
241
223
  className: "flex flex-none items-center",
242
- children: /* @__PURE__ */ C(H, {
243
- status: v,
244
- isLive: n,
224
+ children: /* @__PURE__ */ y(R, {
225
+ status: x,
226
+ isLive: t,
245
227
  runningLabel: l,
246
228
  failedLabel: u
247
229
  })
248
230
  }),
249
- /* @__PURE__ */ C("span", {
250
- className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName, _ && V.stageNameFailed),
251
- children: /* @__PURE__ */ C(c, { text: e.name })
231
+ /* @__PURE__ */ y("span", {
232
+ className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", L.stageName, v && L.stageNameFailed),
233
+ children: /* @__PURE__ */ y(s, { text: e.name })
252
234
  }),
253
- /* @__PURE__ */ w("span", {
254
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.count),
235
+ /* @__PURE__ */ b("span", {
236
+ className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", L.count),
255
237
  children: ["×", e.attempts?.length ?? 0]
256
238
  }),
257
- b && /* @__PURE__ */ C("span", {
258
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
259
- children: b
239
+ C && /* @__PURE__ */ y("span", {
240
+ className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", L.duration),
241
+ children: C
260
242
  }),
261
- /* @__PURE__ */ C("span", {
262
- className: i("flex-none", V.iconSecondary),
263
- children: f ? /* @__PURE__ */ C(m, {
243
+ /* @__PURE__ */ y("span", {
244
+ className: i("flex-none", L.iconSecondary),
245
+ children: m ? /* @__PURE__ */ y(f, {
264
246
  size: a.SM,
265
247
  "aria-hidden": !0,
266
248
  stroke: o
267
- }) : /* @__PURE__ */ C(h, {
249
+ }) : /* @__PURE__ */ y(p, {
268
250
  size: a.SM,
269
251
  className: "rtl:scale-x-[-1]",
270
252
  "aria-hidden": !0,
@@ -272,28 +254,28 @@ var T = {
272
254
  })
273
255
  })
274
256
  ]
275
- }), /* @__PURE__ */ C("div", {
276
- className: i("grid overflow-hidden transition-[grid-template-rows] duration-[250ms] ease-in-out", f ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
277
- children: /* @__PURE__ */ C("div", {
257
+ }), /* @__PURE__ */ y("div", {
258
+ className: i("grid overflow-hidden transition-[grid-template-rows] duration-[250ms] ease-in-out", m ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
259
+ children: /* @__PURE__ */ y("div", {
278
260
  className: "overflow-hidden",
279
- children: /* @__PURE__ */ C("ul", {
261
+ children: /* @__PURE__ */ y("ul", {
280
262
  role: "list",
281
263
  className: "mt-1 flex flex-col gap-0.5 ps-6",
282
- children: e.attempts?.map((e, t) => /* @__PURE__ */ C("li", {
264
+ children: e.attempts?.map((e, n) => /* @__PURE__ */ y("li", {
283
265
  role: "listitem",
284
- children: /* @__PURE__ */ C(G, {
266
+ children: /* @__PURE__ */ y(V, {
285
267
  stage: e,
286
- nameOverride: d(t + 1),
287
- isLive: n && e.status == null,
268
+ nameOverride: d(n + 1),
269
+ isLive: t && e.status == null,
288
270
  typography: r,
289
- labels: s
271
+ labels: c
290
272
  })
291
273
  }, e.index))
292
274
  })
293
275
  })
294
276
  })] });
295
- }, q = ({ stages: e, isStreaming: t, className: r, styles: a, labels: o }) => {
296
- let { colors: s, typography: c } = a ?? {}, l = n({
277
+ }, U = ({ stages: e, isStreaming: t, className: n, styles: a, labels: o }) => {
278
+ let { colors: s, typography: c } = a ?? {}, l = r({
297
279
  "--cs-text": s?.text,
298
280
  "--cs-row-hover": s?.rowHoverColor,
299
281
  "--cs-button-bg": s?.collapsedButtonBg,
@@ -309,24 +291,24 @@ var T = {
309
291
  "--cs-code-border": s?.codeBorderColor,
310
292
  "--cs-code-text": s?.codeTextColor,
311
293
  "--cs-border": s?.borderColor
312
- }), u = B(e);
313
- return /* @__PURE__ */ C("div", {
294
+ }), u = I(e);
295
+ return /* @__PURE__ */ y("div", {
314
296
  style: l,
315
- className: i("w-full", V.panel, r, T.panel),
316
- children: /* @__PURE__ */ C("ul", {
297
+ className: i("w-full", L.panel, n, x.panel),
298
+ children: /* @__PURE__ */ y("ul", {
317
299
  role: "list",
318
300
  className: "flex w-full flex-col gap-0.5 ps-5",
319
- children: u.map((e) => e.stage ? /* @__PURE__ */ C("li", {
301
+ children: u.map((e) => e.stage ? /* @__PURE__ */ y("li", {
320
302
  role: "listitem",
321
- children: /* @__PURE__ */ C(G, {
303
+ children: /* @__PURE__ */ y(V, {
322
304
  stage: e.stage,
323
305
  isLive: t && e.stage.status == null,
324
306
  typography: c,
325
307
  labels: o
326
308
  })
327
- }, e.key) : /* @__PURE__ */ C("li", {
309
+ }, e.key) : /* @__PURE__ */ y("li", {
328
310
  role: "listitem",
329
- children: /* @__PURE__ */ C(K, {
311
+ children: /* @__PURE__ */ y(H, {
330
312
  row: e,
331
313
  isLive: t && (e.attempts?.some((e) => e.status == null) ?? !1),
332
314
  typography: c,
@@ -335,154 +317,154 @@ var T = {
335
317
  }, e.key))
336
318
  })
337
319
  });
338
- }, J = {
320
+ }, W = {
339
321
  toggleButton: "_toggleButton_1sa5v_1",
340
322
  executedLabel: "_executedLabel_1sa5v_13",
341
323
  stepsCount: "_stepsCount_1sa5v_17",
342
324
  doneIcon: "_doneIcon_1sa5v_22",
343
325
  failedText: "_failedText_1sa5v_26",
344
326
  liveName: "_liveName_1sa5v_30"
345
- }, Y = ({ stages: e, isStreaming: r, labels: s, className: l, styles: f }) => {
346
- let { executedLabel: g = "Executed", stepsLabel: _ = () => "steps", failedCountLabel: v = (e) => `${e} failed`, runningAriaLabel: S = "Running", copyAriaLabel: E, failedAriaLabel: D, attemptLabel: O } = s ?? {}, [k, A] = x(r), j = b(r);
347
- y(() => {
348
- j.current && !r && A(!1), j.current = r;
349
- }, [r]);
350
- let { colors: M, panel: N } = f ?? {}, F = f?.typography ?? { fontClassName: "dial-small-text" }, L = n({
351
- "--cs-cg-label": M?.labelColor,
352
- "--cs-cg-label-hover": M?.labelHoverColor,
353
- "--cs-cg-steps-count": M?.stepsCountColor,
354
- "--cs-cg-done": M?.doneColor,
355
- "--cs-cg-failed": M?.failedColor,
356
- "--cs-text": N?.text,
357
- "--cs-row-hover": N?.rowHoverColor,
358
- "--cs-button-bg": N?.collapsedButtonBg,
359
- "--cs-stage-text": N?.stageTextColor,
360
- "--cs-failed-text": N?.failedColor,
361
- "--cs-tag-text": N?.tagTextColor,
362
- "--cs-count-text": N?.countTextColor,
363
- "--cs-duration-text": N?.durationTextColor,
364
- "--cs-icon-secondary": N?.iconSecondaryColor,
365
- "--cs-icon-completed": N?.iconCompletedColor,
366
- "--cs-icon-error": N?.iconErrorColor,
367
- "--cs-code-bg": N?.codeBg,
368
- "--cs-code-border": N?.codeBorderColor,
369
- "--cs-code-text": N?.codeTextColor,
370
- "--cs-border": N?.borderColor
327
+ }, G = ({ stages: e, isStreaming: t, labels: u, className: m, styles: v }) => {
328
+ let { executedLabel: S = "Executed", stepsLabel: C = () => "steps", failedCountLabel: w = (e) => `${e} failed`, runningAriaLabel: T = "Running", copyAriaLabel: E, failedAriaLabel: D, attemptLabel: O } = u ?? {}, [k, j] = _(t), N = g(t);
329
+ h(() => {
330
+ N.current && !t && j(!1), N.current = t;
331
+ }, [t]);
332
+ let { colors: I, panel: L } = v ?? {}, R = v?.typography ?? { fontClassName: "dial-small-text" }, z = r({
333
+ "--cs-cg-label": I?.labelColor,
334
+ "--cs-cg-label-hover": I?.labelHoverColor,
335
+ "--cs-cg-steps-count": I?.stepsCountColor,
336
+ "--cs-cg-done": I?.doneColor,
337
+ "--cs-cg-failed": I?.failedColor,
338
+ "--cs-text": L?.text,
339
+ "--cs-row-hover": L?.rowHoverColor,
340
+ "--cs-button-bg": L?.collapsedButtonBg,
341
+ "--cs-stage-text": L?.stageTextColor,
342
+ "--cs-failed-text": L?.failedColor,
343
+ "--cs-tag-text": L?.tagTextColor,
344
+ "--cs-count-text": L?.countTextColor,
345
+ "--cs-duration-text": L?.durationTextColor,
346
+ "--cs-icon-secondary": L?.iconSecondaryColor,
347
+ "--cs-icon-completed": L?.iconCompletedColor,
348
+ "--cs-icon-error": L?.iconErrorColor,
349
+ "--cs-code-bg": L?.codeBg,
350
+ "--cs-code-border": L?.codeBorderColor,
351
+ "--cs-code-text": L?.codeTextColor,
352
+ "--cs-border": L?.borderColor
371
353
  });
372
354
  if (e.length === 0) return null;
373
355
  let B = {
374
356
  copyAriaLabel: E,
375
- runningAriaLabel: S,
357
+ runningAriaLabel: T,
376
358
  failedAriaLabel: D,
377
359
  attemptLabel: O
378
360
  };
379
- if (e.length === 1) return /* @__PURE__ */ C(q, {
361
+ if (e.length === 1) return /* @__PURE__ */ y(U, {
380
362
  stages: e,
381
- isStreaming: r,
382
- className: l,
363
+ isStreaming: t,
364
+ className: m,
383
365
  styles: {
384
- colors: N,
385
- typography: f?.typography
366
+ colors: L,
367
+ typography: v?.typography
386
368
  },
387
369
  labels: B
388
370
  });
389
- let V = e.some((e) => e.status === t.Failed), H = R(e.map((e) => e.name)), U = H > 0 ? I(H) : void 0, W;
390
- if (r) {
391
- let t = P((z(e) ?? e[e.length - 1]).name).name;
392
- W = /* @__PURE__ */ w("span", {
371
+ let V = e.some((e) => e.status === n.Failed), H = P(e.map((e) => e.name)), G = H > 0 ? M(H) : void 0, K;
372
+ if (t) {
373
+ let t = A((F(e) ?? e[e.length - 1]).name).name;
374
+ K = /* @__PURE__ */ b("span", {
393
375
  role: "status",
394
376
  "aria-live": "polite",
395
377
  className: "flex min-w-0 items-center gap-2",
396
- children: [/* @__PURE__ */ C("span", {
378
+ children: [/* @__PURE__ */ y("span", {
397
379
  className: "flex flex-none items-center",
398
- children: /* @__PURE__ */ C(d, {
380
+ children: /* @__PURE__ */ y(l, {
399
381
  size: 14,
400
- ariaLabel: S
382
+ ariaLabel: T
401
383
  })
402
- }), t && /* @__PURE__ */ C("span", {
403
- className: i("min-w-0 max-w-[22rem] truncate", F.fontClassName, J.liveName),
404
- children: /* @__PURE__ */ C(c, { text: t })
384
+ }), t && /* @__PURE__ */ y("span", {
385
+ className: i("min-w-0 max-w-[22rem] truncate", R.fontClassName, W.liveName),
386
+ children: /* @__PURE__ */ y(s, { text: t })
405
387
  })]
406
388
  });
407
389
  } else if (V) {
408
- let n = e.filter((e) => e.status === t.Failed).length;
409
- W = /* @__PURE__ */ w("span", {
390
+ let t = e.filter((e) => e.status === n.Failed).length;
391
+ K = /* @__PURE__ */ b("span", {
410
392
  className: "inline-flex items-center gap-1",
411
393
  children: [
412
- /* @__PURE__ */ w("span", {
413
- className: i(F.fontClassName, J.executedLabel),
394
+ /* @__PURE__ */ b("span", {
395
+ className: i(R.fontClassName, W.executedLabel),
414
396
  children: [
415
- g,
397
+ S,
416
398
  " ",
417
399
  e.length,
418
400
  " ",
419
- _(e.length)
401
+ C(e.length)
420
402
  ]
421
403
  }),
422
- /* @__PURE__ */ C("span", {
423
- className: i(F.fontClassName, J.failedText),
424
- children: v(n)
404
+ /* @__PURE__ */ y("span", {
405
+ className: i(R.fontClassName, W.failedText),
406
+ children: w(t)
425
407
  }),
426
- U && /* @__PURE__ */ C("span", {
427
- className: i(F.fontClassName, J.stepsCount),
428
- children: U
408
+ G && /* @__PURE__ */ y("span", {
409
+ className: i(R.fontClassName, W.stepsCount),
410
+ children: G
429
411
  })
430
412
  ]
431
413
  });
432
- } else W = /* @__PURE__ */ w("span", {
414
+ } else K = /* @__PURE__ */ b("span", {
433
415
  className: "inline-flex items-center gap-1",
434
416
  children: [
435
- /* @__PURE__ */ C(p, {
417
+ /* @__PURE__ */ y(d, {
436
418
  size: a.SM,
437
- className: J.doneIcon,
419
+ className: W.doneIcon,
438
420
  "aria-hidden": !0,
439
421
  stroke: o
440
422
  }),
441
- /* @__PURE__ */ w("span", {
442
- className: i(F.fontClassName, J.executedLabel),
423
+ /* @__PURE__ */ b("span", {
424
+ className: i(R.fontClassName, W.executedLabel),
443
425
  children: [
444
- g,
426
+ S,
445
427
  " ",
446
428
  e.length,
447
429
  " ",
448
- _(e.length)
430
+ C(e.length)
449
431
  ]
450
432
  }),
451
- U && /* @__PURE__ */ C("span", {
452
- className: i(F.fontClassName, J.stepsCount),
453
- children: U
433
+ G && /* @__PURE__ */ y("span", {
434
+ className: i(R.fontClassName, W.stepsCount),
435
+ children: G
454
436
  })
455
437
  ]
456
438
  });
457
- return /* @__PURE__ */ w("div", {
458
- style: L,
459
- className: i("flex w-full flex-col gap-1", l, T.group),
460
- children: [/* @__PURE__ */ C(u, {
461
- className: i(J.toggleButton, T.groupToggle),
439
+ return /* @__PURE__ */ b("div", {
440
+ style: z,
441
+ className: i("flex w-full flex-col gap-1", m, x.group),
442
+ children: [/* @__PURE__ */ y(c, {
443
+ className: i(W.toggleButton, x.groupToggle),
462
444
  textClassName: "min-w-0",
463
- onClick: () => A((e) => !e),
445
+ onClick: () => j((e) => !e),
464
446
  "aria-expanded": k,
465
- iconAfter: k ? /* @__PURE__ */ C(m, {
447
+ iconAfter: k ? /* @__PURE__ */ y(f, {
466
448
  size: 12,
467
449
  "aria-hidden": !0,
468
450
  stroke: o
469
- }) : /* @__PURE__ */ C(h, {
451
+ }) : /* @__PURE__ */ y(p, {
470
452
  size: 12,
471
453
  className: "rtl:scale-x-[-1]",
472
454
  "aria-hidden": !0,
473
455
  stroke: o
474
456
  }),
475
- label: W
476
- }), /* @__PURE__ */ C("div", {
457
+ label: K
458
+ }), /* @__PURE__ */ y("div", {
477
459
  className: i("grid transition-[grid-template-rows] duration-300 ease-in-out", k ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
478
- children: /* @__PURE__ */ C("div", {
460
+ children: /* @__PURE__ */ y("div", {
479
461
  className: "overflow-hidden",
480
- children: /* @__PURE__ */ C(q, {
462
+ children: /* @__PURE__ */ y(U, {
481
463
  stages: e,
482
- isStreaming: r,
464
+ isStreaming: t,
483
465
  styles: {
484
- colors: N,
485
- typography: f?.typography
466
+ colors: L,
467
+ typography: v?.typography
486
468
  },
487
469
  labels: B,
488
470
  className: "pt-1"
@@ -492,4 +474,4 @@ var T = {
492
474
  });
493
475
  };
494
476
  //#endregion
495
- export { T as CONVERSATION_STAGES_CLASS, Y as CollapsedGroup, q as StagesPanel };
477
+ export { x as CONVERSATION_STAGES_CLASS, G as CollapsedGroup, U as StagesPanel };
@@ -11,7 +11,7 @@ export interface StageTypography {
11
11
  headingClassName?: string;
12
12
  /** CSS utility class applied to inline code elements. Defaults to `'dial-code-text rounded-md'`. */
13
13
  codeClassName?: string;
14
- /** CSS utility class applied to fenced code blocks (`<pre>`). Defaults to `'dial-code-text'`. */
14
+ /** CSS utility class applied to fenced code blocks. Defaults to `'dial-code-text'`. */
15
15
  codeBlockClassName?: string;
16
16
  /** CSS utility class applied to count badges (e.g. `×N` collapsed group). Defaults to `'dial-tiny-text'`. */
17
17
  countFontClassName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"stages-props.d.ts","sourceRoot":"","sources":["../../src/models/stages-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEvD,gGAAgG;AAChG,MAAM,WAAW,eAAe;IAC9B,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wJAAwJ;IACxJ,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kJAAkJ;IAClJ,eAAe,CAAC,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,KAAK,MAAM,CAAC;CAClD;AAED,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,yEAAyE;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
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.142",
4
+ "version": "1.2.0-dev.148",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": "^19.2.8",
24
- "@epam/ai-dial-chat-shared": "1.2.0-dev.142",
24
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.148",
25
25
  "@epam/ai-dial-ui-kit": "^0.15.0-dev.18"
26
26
  },
27
27
  "repository": {