@epam/ai-dial-conversation-stages 1.1.0-dev.375 → 1.1.0-dev.378
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":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AA6InC,+FAA+F;AAC/F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA+D5C,CAAC"}
|
package/index.js
CHANGED
|
@@ -85,10 +85,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
85
85
|
codeInline: "_codeInline_vd48n_62",
|
|
86
86
|
blockquote: "_blockquote_vd48n_68",
|
|
87
87
|
tableCell: "_tableCell_vd48n_73"
|
|
88
|
-
}, H = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) =>
|
|
89
|
-
size: 16,
|
|
90
|
-
ariaLabel: r
|
|
91
|
-
}) : e === t.Failed ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(f, {
|
|
88
|
+
}, H = ({ status: e, isLive: n, runningLabel: r = "Running", failedLabel: i = "Failed" }) => e === t.Failed ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(f, {
|
|
92
89
|
size: a.MD,
|
|
93
90
|
className: V.iconError,
|
|
94
91
|
"aria-hidden": !0,
|
|
@@ -96,12 +93,15 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
96
93
|
}), /* @__PURE__ */ C("span", {
|
|
97
94
|
className: "sr-only",
|
|
98
95
|
children: i
|
|
99
|
-
})] }) : /* @__PURE__ */ C(p, {
|
|
96
|
+
})] }) : e === t.Completed ? /* @__PURE__ */ C(p, {
|
|
100
97
|
size: a.SM,
|
|
101
98
|
className: V.iconCompleted,
|
|
102
99
|
"aria-hidden": !0,
|
|
103
100
|
stroke: o
|
|
104
|
-
})
|
|
101
|
+
}) : n ? /* @__PURE__ */ C(d, {
|
|
102
|
+
size: 16,
|
|
103
|
+
ariaLabel: r
|
|
104
|
+
}) : null, U = ({ children: e, codeClassName: t, blockClassName: n = "dial-code-text", copyAriaLabel: c }) => {
|
|
105
105
|
let [u, d] = x(!1), f = b(null);
|
|
106
106
|
y(() => () => {
|
|
107
107
|
f.current != null && clearTimeout(f.current);
|
|
@@ -223,7 +223,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
223
223
|
children: D
|
|
224
224
|
});
|
|
225
225
|
}, K = ({ row: e, isLive: n, typography: r, labels: s }) => {
|
|
226
|
-
let { runningAriaLabel: l, failedAriaLabel: u, attemptLabel: d = (e) => `Attempt ${e}` } = s ?? {}, [f, p] = x(!1), g = e.attempts?.some((e) => e.status === t.Failed), _ = L((e.attempts || []).map((e) => e.name)),
|
|
226
|
+
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;
|
|
227
227
|
return /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("button", {
|
|
228
228
|
type: "button",
|
|
229
229
|
onClick: () => p((e) => !e),
|
|
@@ -233,23 +233,23 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
233
233
|
/* @__PURE__ */ C("span", {
|
|
234
234
|
className: "flex flex-none items-center",
|
|
235
235
|
children: /* @__PURE__ */ C(H, {
|
|
236
|
-
status:
|
|
236
|
+
status: v,
|
|
237
237
|
isLive: n,
|
|
238
238
|
runningLabel: l,
|
|
239
239
|
failedLabel: u
|
|
240
240
|
})
|
|
241
241
|
}),
|
|
242
242
|
/* @__PURE__ */ C("span", {
|
|
243
|
-
className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName,
|
|
243
|
+
className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName, _ && V.stageNameFailed),
|
|
244
244
|
children: /* @__PURE__ */ C(c, { text: e.name })
|
|
245
245
|
}),
|
|
246
246
|
/* @__PURE__ */ w("span", {
|
|
247
247
|
className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.count),
|
|
248
248
|
children: ["×", e.attempts?.length ?? 0]
|
|
249
249
|
}),
|
|
250
|
-
|
|
250
|
+
b && /* @__PURE__ */ C("span", {
|
|
251
251
|
className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
|
|
252
|
-
children:
|
|
252
|
+
children: b
|
|
253
253
|
}),
|
|
254
254
|
/* @__PURE__ */ C("span", {
|
|
255
255
|
className: i("flex-none", V.iconSecondary),
|
|
@@ -272,16 +272,16 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
272
272
|
children: /* @__PURE__ */ C("ul", {
|
|
273
273
|
role: "list",
|
|
274
274
|
className: "mt-1 flex flex-col gap-0.5 ps-6",
|
|
275
|
-
children: e.attempts?.map((
|
|
275
|
+
children: e.attempts?.map((e, t) => /* @__PURE__ */ C("li", {
|
|
276
276
|
role: "listitem",
|
|
277
277
|
children: /* @__PURE__ */ C(G, {
|
|
278
|
-
stage:
|
|
279
|
-
nameOverride: d(
|
|
280
|
-
isLive: n &&
|
|
278
|
+
stage: e,
|
|
279
|
+
nameOverride: d(t + 1),
|
|
280
|
+
isLive: n && e.status == null,
|
|
281
281
|
typography: r,
|
|
282
282
|
labels: s
|
|
283
283
|
})
|
|
284
|
-
},
|
|
284
|
+
}, e.index))
|
|
285
285
|
})
|
|
286
286
|
})
|
|
287
287
|
})] });
|
|
@@ -302,18 +302,18 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
302
302
|
"--cs-code-border": s?.codeBorderColor,
|
|
303
303
|
"--cs-code-text": s?.codeTextColor,
|
|
304
304
|
"--cs-border": s?.borderColor
|
|
305
|
-
}), u =
|
|
305
|
+
}), u = B(e);
|
|
306
306
|
return /* @__PURE__ */ C("div", {
|
|
307
307
|
style: l,
|
|
308
308
|
className: i("w-full", V.panel, r),
|
|
309
309
|
children: /* @__PURE__ */ C("ul", {
|
|
310
310
|
role: "list",
|
|
311
311
|
className: "flex w-full flex-col gap-0.5 ps-5",
|
|
312
|
-
children:
|
|
312
|
+
children: u.map((e) => e.stage ? /* @__PURE__ */ C("li", {
|
|
313
313
|
role: "listitem",
|
|
314
314
|
children: /* @__PURE__ */ C(G, {
|
|
315
315
|
stage: e.stage,
|
|
316
|
-
isLive:
|
|
316
|
+
isLive: t && e.stage.status == null,
|
|
317
317
|
typography: c,
|
|
318
318
|
labels: o
|
|
319
319
|
})
|
|
@@ -321,7 +321,7 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
321
321
|
role: "listitem",
|
|
322
322
|
children: /* @__PURE__ */ C(K, {
|
|
323
323
|
row: e,
|
|
324
|
-
isLive:
|
|
324
|
+
isLive: t && (e.attempts?.some((e) => e.status == null) ?? !1),
|
|
325
325
|
typography: c,
|
|
326
326
|
labels: o
|
|
327
327
|
})
|
package/models/stages-props.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export interface StagesPanelLabels {
|
|
|
73
73
|
export interface StagesPanelProps {
|
|
74
74
|
/** Ordered list of stages to display. */
|
|
75
75
|
stages: Stage[];
|
|
76
|
-
/** When `true
|
|
76
|
+
/** When `true`, every stage with `status: null` shows a live spinner. */
|
|
77
77
|
isStreaming: boolean;
|
|
78
78
|
/** Extra class name(s) merged onto the outer wrapper. */
|
|
79
79
|
className?: 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,EAAE,MAAM,CAAC;IACzB,kIAAkI;IAClI,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oGAAoG;IACpG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gIAAgI;IAChI,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,cAAc,CAAC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;IAChB,4FAA4F;IAC5F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2FAA2F;IAC3F,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wFAAwF;AACxF,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,iEAAiE;IACjE,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kGAAkG;IAClG,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,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.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.378",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.0.0",
|
|
22
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
22
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.378",
|
|
23
23
|
"@epam/ai-dial-ui-kit": "^0.14.0-dev.15"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|