@epam/ai-dial-conversation-stages 1.1.2 → 1.1.4

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":"AAiBA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAUxE,gJAAgJ;AAChJ,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA8OlD,CAAC"}
1
+ {"version":3,"file":"CollapsedGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsedGroup/CollapsedGroup.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAUxE,gJAAgJ;AAChJ,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAmOlD,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}.truncate,.whitespace-nowrap{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}.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))}
package/index.js CHANGED
@@ -54,7 +54,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
54
54
  }).sort((e, t) => e.start - t.start), a = 0, o = i[0].start, s = i[0].end;
55
55
  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);
56
56
  return a + s - o;
57
- }, R = (e) => [...e].reverse().find((e) => e.status == null), z = (e, t) => e.findIndex((e) => e.index === t.index) + 1, B = (e) => {
57
+ }, R = (e) => [...e].reverse().find((e) => e.status == null), z = (e) => {
58
58
  let t = [], n = 0;
59
59
  for (; n < e.length;) {
60
60
  let r = e[n], i = N(r.name).name, a = n + 1;
@@ -70,7 +70,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
70
70
  }), n = a;
71
71
  }
72
72
  return t;
73
- }, V = {
73
+ }, B = {
74
74
  panel: "_panel_vd48n_1",
75
75
  row: "_row_vd48n_5",
76
76
  collapseButton: "_collapseButton_vd48n_9",
@@ -88,9 +88,9 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
88
88
  codeInline: "_codeInline_vd48n_62",
89
89
  blockquote: "_blockquote_vd48n_68",
90
90
  tableCell: "_tableCell_vd48n_73"
91
- }, H = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) => e === t.Failed ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(f, {
91
+ }, V = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) => e === t.Failed ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(f, {
92
92
  size: a.MD,
93
- className: V.iconError,
93
+ className: B.iconError,
94
94
  "aria-hidden": !0,
95
95
  stroke: o
96
96
  }), /* @__PURE__ */ C("span", {
@@ -98,13 +98,13 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
98
98
  children: i
99
99
  })] }) : e === t.Completed ? /* @__PURE__ */ C(p, {
100
100
  size: a.SM,
101
- className: V.iconCompleted,
101
+ className: B.iconCompleted,
102
102
  "aria-hidden": !0,
103
103
  stroke: o
104
104
  }) : n ? /* @__PURE__ */ C(d, {
105
105
  size: 16,
106
106
  ariaLabel: r
107
- }) : null, U = ({ children: e, codeClassName: t, blockClassName: n = "dial-code-text", copyAriaLabel: c }) => {
107
+ }) : null, H = ({ children: e, codeClassName: t, blockClassName: n = "dial-code-text", copyAriaLabel: c }) => {
108
108
  let [u, d] = x(!1), f = b(null);
109
109
  y(() => () => {
110
110
  f.current != null && clearTimeout(f.current);
@@ -113,12 +113,12 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
113
113
  r(typeof e == "string" ? e : String(e ?? "")), f.current && clearTimeout(f.current), d(!0), f.current = setTimeout(() => d(!1), 2e3);
114
114
  }, [e]);
115
115
  return /* @__PURE__ */ w("pre", {
116
- className: i("relative max-h-[300px] overflow-auto rounded border p-3", n, V.codeBlock),
116
+ className: i("relative max-h-[300px] overflow-auto rounded border p-3", n, B.codeBlock),
117
117
  children: [/* @__PURE__ */ C(l, {
118
118
  size: s.Small,
119
119
  icon: C(u ? p : g, {
120
120
  size: a.SM,
121
- className: V.iconSecondary,
121
+ className: B.iconSecondary,
122
122
  stroke: o
123
123
  }),
124
124
  "aria-label": c,
@@ -129,8 +129,8 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
129
129
  children: e
130
130
  })]
131
131
  });
132
- }, W = _(({ content: t, typography: n, copyAriaLabel: r = "Copy" }) => {
133
- let a = "mb-1.5 last:mb-0", o = i(n?.headingClassName ?? "dial-small-semi-text", V.stageContent, a);
132
+ }, U = _(({ content: t, typography: n, copyAriaLabel: r = "Copy" }) => {
133
+ let a = "mb-1.5 last:mb-0", o = i(n?.headingClassName ?? "dial-small-semi-text", B.stageContent, a);
134
134
  return /* @__PURE__ */ C(e, {
135
135
  content: t,
136
136
  classNames: {
@@ -140,30 +140,30 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
140
140
  h4: o,
141
141
  h5: o,
142
142
  h6: o,
143
- p: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent, "mb-1.5"),
144
- ul: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent, a),
145
- ol: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent, a),
146
- strong: i(n?.strongClassName ?? n?.contentClassName ?? "dial-tiny-text", V.stageContent),
147
- codeInline: V.codeInline,
148
- blockquote: i(n?.contentClassName ?? "dial-tiny-text", V.blockquote, a),
149
- link: i(n?.contentClassName ?? "dial-tiny-text", V.stageContent),
150
- tableCell: i(n?.contentClassName ?? "dial-tiny-text", V.tableCell)
143
+ p: i(n?.contentClassName ?? "dial-tiny-text", B.stageContent, "mb-1.5"),
144
+ ul: i(n?.contentClassName ?? "dial-tiny-text", B.stageContent, a),
145
+ ol: i(n?.contentClassName ?? "dial-tiny-text", B.stageContent, a),
146
+ strong: i(n?.strongClassName ?? n?.contentClassName ?? "dial-tiny-text", B.stageContent),
147
+ codeInline: B.codeInline,
148
+ blockquote: i(n?.contentClassName ?? "dial-tiny-text", B.blockquote, a),
149
+ link: i(n?.contentClassName ?? "dial-tiny-text", B.stageContent),
150
+ tableCell: i(n?.contentClassName ?? "dial-tiny-text", B.tableCell)
151
151
  },
152
- components: { code: ({ children: e, className: t }) => t?.includes("language-") ? /* @__PURE__ */ C(U, {
152
+ components: { code: ({ children: e, className: t }) => t?.includes("language-") ? /* @__PURE__ */ C(H, {
153
153
  codeClassName: t,
154
154
  blockClassName: n?.codeBlockClassName,
155
155
  copyAriaLabel: r,
156
156
  children: e
157
157
  }) : /* @__PURE__ */ C("code", {
158
- className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md", V.codeInline),
158
+ className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md", B.codeInline),
159
159
  children: e
160
160
  }) }
161
161
  });
162
- }), G = ({ stage: e, isLive: n, typography: r, labels: s, nameOverride: l }) => {
162
+ }), W = ({ stage: e, isLive: n, typography: r, labels: s, nameOverride: l }) => {
163
163
  let [u, d] = x(!1), { copyAriaLabel: f = "Copy stage content", runningAriaLabel: p, failedAriaLabel: g } = s ?? {}, { name: _, durationLabel: v } = N(e.name), y = l ?? _, b = !l && P(_), T = e.status === t.Failed, E = !!e.content, D = /* @__PURE__ */ w(S, { children: [
164
164
  /* @__PURE__ */ C("span", {
165
165
  className: "flex flex-none items-center",
166
- children: /* @__PURE__ */ C(H, {
166
+ children: /* @__PURE__ */ C(V, {
167
167
  status: e.status,
168
168
  isLive: n,
169
169
  runningLabel: p,
@@ -171,19 +171,19 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
171
171
  })
172
172
  }),
173
173
  /* @__PURE__ */ C("span", {
174
- className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName, T && V.stageNameFailed, b && V.monoName),
174
+ className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", B.stageName, T && B.stageNameFailed, b && B.monoName),
175
175
  children: /* @__PURE__ */ C(c, { text: y || e.status || "" })
176
176
  }),
177
177
  e.tag && /* @__PURE__ */ C("span", {
178
- className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text", V.tag),
178
+ className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text", B.tag),
179
179
  children: e.tag
180
180
  }),
181
181
  v && /* @__PURE__ */ C("span", {
182
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
182
+ className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", B.duration),
183
183
  children: v
184
184
  }),
185
185
  E && /* @__PURE__ */ C("span", {
186
- className: i("flex-none", V.iconSecondary),
186
+ className: i("flex-none", B.iconSecondary),
187
187
  children: u ? /* @__PURE__ */ C(m, {
188
188
  size: a.SM,
189
189
  "aria-hidden": !0,
@@ -195,7 +195,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
195
195
  stroke: o
196
196
  })
197
197
  })
198
- ] }), O = i("flex w-full items-center gap-2 px-2 py-1.5", V.row);
198
+ ] }), O = i("flex w-full items-center gap-2 px-2 py-1.5", B.row);
199
199
  return E ? /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
200
200
  className: O,
201
201
  children: /* @__PURE__ */ C("button", {
@@ -213,7 +213,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
213
213
  className: "mt-2 flex flex-col gap-3 py-1 ps-8",
214
214
  children: e.content && /* @__PURE__ */ C("div", {
215
215
  className: "max-h-[300px] overflow-y-auto",
216
- children: /* @__PURE__ */ C(W, {
216
+ children: /* @__PURE__ */ C(U, {
217
217
  content: e.content,
218
218
  typography: r,
219
219
  copyAriaLabel: f
@@ -225,17 +225,17 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
225
225
  className: O,
226
226
  children: D
227
227
  });
228
- }, K = ({ row: e, isLive: n, typography: r, labels: s }) => {
228
+ }, G = ({ row: e, isLive: n, typography: r, labels: s }) => {
229
229
  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 = L((e.attempts || []).map((e) => e.name)), b = y > 0 ? F(y) : void 0;
230
230
  return /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("button", {
231
231
  type: "button",
232
232
  onClick: () => p((e) => !e),
233
233
  "aria-expanded": f,
234
- className: i("flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-start", V.collapseButton, V.row),
234
+ className: i("flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-start", B.collapseButton, B.row),
235
235
  children: [
236
236
  /* @__PURE__ */ C("span", {
237
237
  className: "flex flex-none items-center",
238
- children: /* @__PURE__ */ C(H, {
238
+ children: /* @__PURE__ */ C(V, {
239
239
  status: v,
240
240
  isLive: n,
241
241
  runningLabel: l,
@@ -243,19 +243,19 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
243
243
  })
244
244
  }),
245
245
  /* @__PURE__ */ C("span", {
246
- className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName, _ && V.stageNameFailed),
246
+ className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", B.stageName, _ && B.stageNameFailed),
247
247
  children: /* @__PURE__ */ C(c, { text: e.name })
248
248
  }),
249
249
  /* @__PURE__ */ w("span", {
250
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.count),
250
+ className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", B.count),
251
251
  children: ["×", e.attempts?.length ?? 0]
252
252
  }),
253
253
  b && /* @__PURE__ */ C("span", {
254
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
254
+ className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", B.duration),
255
255
  children: b
256
256
  }),
257
257
  /* @__PURE__ */ C("span", {
258
- className: i("flex-none", V.iconSecondary),
258
+ className: i("flex-none", B.iconSecondary),
259
259
  children: f ? /* @__PURE__ */ C(m, {
260
260
  size: a.SM,
261
261
  "aria-hidden": !0,
@@ -277,7 +277,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
277
277
  className: "mt-1 flex flex-col gap-0.5 ps-6",
278
278
  children: e.attempts?.map((e, t) => /* @__PURE__ */ C("li", {
279
279
  role: "listitem",
280
- children: /* @__PURE__ */ C(G, {
280
+ children: /* @__PURE__ */ C(W, {
281
281
  stage: e,
282
282
  nameOverride: d(t + 1),
283
283
  isLive: n && e.status == null,
@@ -288,7 +288,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
288
288
  })
289
289
  })
290
290
  })] });
291
- }, q = ({ stages: e, isStreaming: t, className: r, styles: a, labels: o }) => {
291
+ }, K = ({ stages: e, isStreaming: t, className: r, styles: a, labels: o }) => {
292
292
  let { colors: s, typography: c } = a ?? {}, l = n({
293
293
  "--cs-text": s?.text,
294
294
  "--cs-row-hover": s?.rowHoverColor,
@@ -305,16 +305,16 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
305
305
  "--cs-code-border": s?.codeBorderColor,
306
306
  "--cs-code-text": s?.codeTextColor,
307
307
  "--cs-border": s?.borderColor
308
- }), u = B(e);
308
+ }), u = z(e);
309
309
  return /* @__PURE__ */ C("div", {
310
310
  style: l,
311
- className: i("w-full", V.panel, r),
311
+ className: i("w-full", B.panel, r),
312
312
  children: /* @__PURE__ */ C("ul", {
313
313
  role: "list",
314
314
  className: "flex w-full flex-col gap-0.5 ps-5",
315
315
  children: u.map((e) => e.stage ? /* @__PURE__ */ C("li", {
316
316
  role: "listitem",
317
- children: /* @__PURE__ */ C(G, {
317
+ children: /* @__PURE__ */ C(W, {
318
318
  stage: e.stage,
319
319
  isLive: t && e.stage.status == null,
320
320
  typography: c,
@@ -322,7 +322,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
322
322
  })
323
323
  }, e.key) : /* @__PURE__ */ C("li", {
324
324
  role: "listitem",
325
- children: /* @__PURE__ */ C(K, {
325
+ children: /* @__PURE__ */ C(G, {
326
326
  row: e,
327
327
  isLive: t && (e.attempts?.some((e) => e.status == null) ?? !1),
328
328
  typography: c,
@@ -331,89 +331,82 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
331
331
  }, e.key))
332
332
  })
333
333
  });
334
- }, J = {
334
+ }, q = {
335
335
  toggleButton: "_toggleButton_1sa5v_1",
336
336
  executedLabel: "_executedLabel_1sa5v_13",
337
337
  stepsCount: "_stepsCount_1sa5v_17",
338
338
  doneIcon: "_doneIcon_1sa5v_22",
339
339
  failedText: "_failedText_1sa5v_26",
340
340
  liveName: "_liveName_1sa5v_30"
341
- }, Y = ({ stages: e, isStreaming: r, labels: s, className: l, styles: f }) => {
342
- let { executedLabel: g = "Executed", stepsLabel: _ = () => "steps", failedCountLabel: v = (e) => `${e} failed`, runningStepLabel: S = (e, t) => `Step ${e} of ${t}`, runningAriaLabel: T = "Running", copyAriaLabel: E, failedAriaLabel: D, attemptLabel: O } = s ?? {}, [k, A] = x(r), j = b(r);
341
+ }, J = ({ stages: e, isStreaming: r, labels: s, className: l, styles: f }) => {
342
+ let { executedLabel: g = "Executed", stepsLabel: _ = () => "steps", failedCountLabel: v = (e) => `${e} failed`, runningAriaLabel: S = "Running", copyAriaLabel: T, failedAriaLabel: E, attemptLabel: D } = s ?? {}, [O, k] = x(r), A = b(r);
343
343
  y(() => {
344
- j.current && !r && A(!1), j.current = r;
344
+ A.current && !r && k(!1), A.current = r;
345
345
  }, [r]);
346
- let { colors: M, panel: P } = f ?? {}, I = f?.typography ?? { fontClassName: "dial-small-text" }, B = n({
347
- "--cs-cg-label": M?.labelColor,
348
- "--cs-cg-label-hover": M?.labelHoverColor,
349
- "--cs-cg-steps-count": M?.stepsCountColor,
350
- "--cs-cg-done": M?.doneColor,
351
- "--cs-cg-failed": M?.failedColor,
352
- "--cs-text": P?.text,
353
- "--cs-row-hover": P?.rowHoverColor,
354
- "--cs-button-bg": P?.collapsedButtonBg,
355
- "--cs-stage-text": P?.stageTextColor,
356
- "--cs-failed-text": P?.failedColor,
357
- "--cs-tag-text": P?.tagTextColor,
358
- "--cs-count-text": P?.countTextColor,
359
- "--cs-duration-text": P?.durationTextColor,
360
- "--cs-icon-secondary": P?.iconSecondaryColor,
361
- "--cs-icon-completed": P?.iconCompletedColor,
362
- "--cs-icon-error": P?.iconErrorColor,
363
- "--cs-code-bg": P?.codeBg,
364
- "--cs-code-border": P?.codeBorderColor,
365
- "--cs-code-text": P?.codeTextColor,
366
- "--cs-border": P?.borderColor
346
+ let { colors: j, panel: M } = f ?? {}, P = f?.typography ?? { fontClassName: "dial-small-text" }, I = n({
347
+ "--cs-cg-label": j?.labelColor,
348
+ "--cs-cg-label-hover": j?.labelHoverColor,
349
+ "--cs-cg-steps-count": j?.stepsCountColor,
350
+ "--cs-cg-done": j?.doneColor,
351
+ "--cs-cg-failed": j?.failedColor,
352
+ "--cs-text": M?.text,
353
+ "--cs-row-hover": M?.rowHoverColor,
354
+ "--cs-button-bg": M?.collapsedButtonBg,
355
+ "--cs-stage-text": M?.stageTextColor,
356
+ "--cs-failed-text": M?.failedColor,
357
+ "--cs-tag-text": M?.tagTextColor,
358
+ "--cs-count-text": M?.countTextColor,
359
+ "--cs-duration-text": M?.durationTextColor,
360
+ "--cs-icon-secondary": M?.iconSecondaryColor,
361
+ "--cs-icon-completed": M?.iconCompletedColor,
362
+ "--cs-icon-error": M?.iconErrorColor,
363
+ "--cs-code-bg": M?.codeBg,
364
+ "--cs-code-border": M?.codeBorderColor,
365
+ "--cs-code-text": M?.codeTextColor,
366
+ "--cs-border": M?.borderColor
367
367
  });
368
368
  if (e.length === 0) return null;
369
- let V = {
370
- copyAriaLabel: E,
371
- runningAriaLabel: T,
372
- failedAriaLabel: D,
373
- attemptLabel: O
369
+ let z = {
370
+ copyAriaLabel: T,
371
+ runningAriaLabel: S,
372
+ failedAriaLabel: E,
373
+ attemptLabel: D
374
374
  };
375
- if (e.length === 1) return /* @__PURE__ */ C(q, {
375
+ if (e.length === 1) return /* @__PURE__ */ C(K, {
376
376
  stages: e,
377
377
  isStreaming: r,
378
378
  className: l,
379
379
  styles: {
380
- colors: P,
380
+ colors: M,
381
381
  typography: f?.typography
382
382
  },
383
- labels: V
383
+ labels: z
384
384
  });
385
- let H = e.some((e) => e.status === t.Failed), U = L(e.map((e) => e.name)), W = U > 0 ? F(U) : void 0, G = r ? R(e) : void 0, K;
385
+ let B = e.some((e) => e.status === t.Failed), V = L(e.map((e) => e.name)), H = V > 0 ? F(V) : void 0, U;
386
386
  if (r) {
387
- let t = G ? z(e, G) : e.length, n = G ? N(G.name).name : "";
388
- K = /* @__PURE__ */ w("span", {
387
+ let t = N((R(e) ?? e[e.length - 1]).name).name;
388
+ U = /* @__PURE__ */ w("span", {
389
389
  role: "status",
390
390
  "aria-live": "polite",
391
391
  className: "flex min-w-0 items-center gap-2",
392
- children: [
393
- /* @__PURE__ */ C("span", {
394
- className: "flex flex-none items-center",
395
- children: /* @__PURE__ */ C(d, {
396
- size: 14,
397
- ariaLabel: T
398
- })
399
- }),
400
- /* @__PURE__ */ C("span", {
401
- className: i("flex-none whitespace-nowrap", I.fontClassName, J.liveName),
402
- children: S(t, e.length)
403
- }),
404
- n && /* @__PURE__ */ C("span", {
405
- className: i("min-w-0 max-w-[22rem] truncate", I.fontClassName, J.executedLabel),
406
- children: /* @__PURE__ */ C(c, { text: n })
392
+ children: [/* @__PURE__ */ C("span", {
393
+ className: "flex flex-none items-center",
394
+ children: /* @__PURE__ */ C(d, {
395
+ size: 14,
396
+ ariaLabel: S
407
397
  })
408
- ]
398
+ }), t && /* @__PURE__ */ C("span", {
399
+ className: i("min-w-0 max-w-[22rem] truncate", P.fontClassName, q.liveName),
400
+ children: /* @__PURE__ */ C(c, { text: t })
401
+ })]
409
402
  });
410
- } else if (H) {
403
+ } else if (B) {
411
404
  let n = e.filter((e) => e.status === t.Failed).length;
412
- K = /* @__PURE__ */ w("span", {
405
+ U = /* @__PURE__ */ w("span", {
413
406
  className: "inline-flex items-center gap-1",
414
407
  children: [
415
408
  /* @__PURE__ */ w("span", {
416
- className: i(I.fontClassName, J.executedLabel),
409
+ className: i(P.fontClassName, q.executedLabel),
417
410
  children: [
418
411
  g,
419
412
  " ",
@@ -423,26 +416,26 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
423
416
  ]
424
417
  }),
425
418
  /* @__PURE__ */ C("span", {
426
- className: i(I.fontClassName, J.failedText),
419
+ className: i(P.fontClassName, q.failedText),
427
420
  children: v(n)
428
421
  }),
429
- W && /* @__PURE__ */ C("span", {
430
- className: i(I.fontClassName, J.stepsCount),
431
- children: W
422
+ H && /* @__PURE__ */ C("span", {
423
+ className: i(P.fontClassName, q.stepsCount),
424
+ children: H
432
425
  })
433
426
  ]
434
427
  });
435
- } else K = /* @__PURE__ */ w("span", {
428
+ } else U = /* @__PURE__ */ w("span", {
436
429
  className: "inline-flex items-center gap-1",
437
430
  children: [
438
431
  /* @__PURE__ */ C(p, {
439
432
  size: a.SM,
440
- className: J.doneIcon,
433
+ className: q.doneIcon,
441
434
  "aria-hidden": !0,
442
435
  stroke: o
443
436
  }),
444
437
  /* @__PURE__ */ w("span", {
445
- className: i(I.fontClassName, J.executedLabel),
438
+ className: i(P.fontClassName, q.executedLabel),
446
439
  children: [
447
440
  g,
448
441
  " ",
@@ -451,21 +444,21 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
451
444
  _(e.length)
452
445
  ]
453
446
  }),
454
- W && /* @__PURE__ */ C("span", {
455
- className: i(I.fontClassName, J.stepsCount),
456
- children: W
447
+ H && /* @__PURE__ */ C("span", {
448
+ className: i(P.fontClassName, q.stepsCount),
449
+ children: H
457
450
  })
458
451
  ]
459
452
  });
460
453
  return /* @__PURE__ */ w("div", {
461
- style: B,
454
+ style: I,
462
455
  className: i("flex w-full flex-col gap-1", l),
463
456
  children: [/* @__PURE__ */ C(u, {
464
- className: J.toggleButton,
457
+ className: q.toggleButton,
465
458
  textClassName: "min-w-0",
466
- onClick: () => A((e) => !e),
467
- "aria-expanded": k,
468
- iconAfter: k ? /* @__PURE__ */ C(m, {
459
+ onClick: () => k((e) => !e),
460
+ "aria-expanded": O,
461
+ iconAfter: O ? /* @__PURE__ */ C(m, {
469
462
  size: 12,
470
463
  "aria-hidden": !0,
471
464
  stroke: o
@@ -475,19 +468,19 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
475
468
  "aria-hidden": !0,
476
469
  stroke: o
477
470
  }),
478
- label: K
471
+ label: U
479
472
  }), /* @__PURE__ */ C("div", {
480
- className: i("grid transition-[grid-template-rows] duration-300 ease-in-out", k ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
473
+ className: i("grid transition-[grid-template-rows] duration-300 ease-in-out", O ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
481
474
  children: /* @__PURE__ */ C("div", {
482
475
  className: "overflow-hidden",
483
- children: /* @__PURE__ */ C(q, {
476
+ children: /* @__PURE__ */ C(K, {
484
477
  stages: e,
485
478
  isStreaming: r,
486
479
  styles: {
487
- colors: P,
480
+ colors: M,
488
481
  typography: f?.typography
489
482
  },
490
- labels: V,
483
+ labels: z,
491
484
  className: "pt-1"
492
485
  })
493
486
  })
@@ -495,4 +488,4 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
495
488
  });
496
489
  };
497
490
  //#endregion
498
- export { Y as CollapsedGroup, q as StagesPanel };
491
+ export { J as CollapsedGroup, K as StagesPanel };
@@ -35,8 +35,6 @@ export interface CollapsedGroupLabels {
35
35
  stepsLabel?: (count: number) => string;
36
36
  /** Returns the "N failed" text in the failed summary. Defaults to `(n) => \`${n} failed\``. */
37
37
  failedCountLabel?: (failedCount: number) => string;
38
- /** Returns the "Step X of Y" text in the running summary. Defaults to `(current, total) => \`Step ${current} of ${total}\``. */
39
- runningStepLabel?: (current: number, total: number) => string;
40
38
  /** Accessible label announced for the running summary's spinner. Defaults to `'Running'`. */
41
39
  runningAriaLabel?: string;
42
40
  /** Accessible label for the copy button on each stage's content. Defaults to `'Copy'`. */
@@ -1 +1 @@
1
- {"version":3,"file":"collapsed-group.d.ts","sourceRoot":"","sources":["../../src/models/collapsed-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,iEAAiE;AACjE,MAAM,WAAW,wBAAwB;IACvC,6FAA6F;IAC7F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,4DAA4D;IAC5D,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,+FAA+F;IAC/F,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,gIAAgI;IAChI,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9D,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mHAAmH;IACnH,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,8FAA8F;IAC9F,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B"}
1
+ {"version":3,"file":"collapsed-group.d.ts","sourceRoot":"","sources":["../../src/models/collapsed-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,iEAAiE;AACjE,MAAM,WAAW,wBAAwB;IACvC,6FAA6F;IAC7F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,4DAA4D;IAC5D,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,+FAA+F;IAC/F,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mHAAmH;IACnH,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,8FAA8F;IAC9F,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B"}
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.2",
4
+ "version": "1.1.4",
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.1.2",
24
+ "@epam/ai-dial-chat-shared": "1.1.4",
25
25
  "@epam/ai-dial-ui-kit": "^0.14.2"
26
26
  },
27
27
  "repository": {
@@ -1,6 +1,4 @@
1
1
  import { Stage } from '@epam/ai-dial-chat-shared';
2
2
  /** Returns the last stage with `status: null` (the currently executing stage), or `undefined` if none exists. */
3
3
  export declare const findLiveStage: (stages: Stage[]) => Stage | undefined;
4
- /** 1-based position of `stage` within `stages`, by its stable `index` field. */
5
- export declare const stagePosition: (stages: Stage[], stage: Stage) => number;
6
4
  //# sourceMappingURL=stage-progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stage-progress.d.ts","sourceRoot":"","sources":["../../src/utils/stage-progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEvD,iHAAiH;AACjH,eAAO,MAAM,aAAa,GAAI,QAAQ,KAAK,EAAE,KAAG,KAAK,GAAG,SACK,CAAC;AAE9D,gFAAgF;AAChF,eAAO,MAAM,aAAa,GAAI,QAAQ,KAAK,EAAE,EAAE,OAAO,KAAK,KAAG,MACR,CAAC"}
1
+ {"version":3,"file":"stage-progress.d.ts","sourceRoot":"","sources":["../../src/utils/stage-progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEvD,iHAAiH;AACjH,eAAO,MAAM,aAAa,GAAI,QAAQ,KAAK,EAAE,KAAG,KAAK,GAAG,SACK,CAAC"}