@epam/ai-dial-conversation-stages 1.2.0-dev.2 → 1.2.0-dev.201
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.
- package/components/CollapsedGroup/CollapsedGroup.d.ts.map +1 -1
- package/components/StageItem/StageItem.d.ts.map +1 -1
- package/components/StageMarkdownContent/StageCodeBlock.d.ts +2 -2
- package/components/StageMarkdownContent/StageCodeBlock.d.ts.map +1 -1
- package/components/StagesPanel/StagesPanel.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +9 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/constants/stage-accordion.d.ts +5 -0
- package/constants/stage-accordion.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +271 -341
- package/models/collapsed-group.d.ts +0 -2
- package/models/collapsed-group.d.ts.map +1 -1
- package/models/stages-props.d.ts +1 -1
- package/models/stages-props.d.ts.map +1 -1
- package/package.json +3 -3
- package/utils/stage-progress.d.ts +0 -2
- package/utils/stage-progress.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsedGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsedGroup/CollapsedGroup.tsx"],"names":[],"mappings":"
|
|
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,CAsNlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAMnC,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;CACvB;AAED,6EAA6E;AAC7E,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAwGxC,CAAC"}
|
|
@@ -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
|
|
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
|
-
/**
|
|
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":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"
|
|
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;AAwHnC,+FAA+F;AAC/F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAoE5C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const CONVERSATION_STAGES_CLASS: {
|
|
2
|
+
/** The stages panel root, which carries the themed CSS variables. */
|
|
3
|
+
readonly panel: "dial-conversation-stages-panel";
|
|
4
|
+
/** The root of a `CollapsedGroup`, wrapping its summary line and the panel. */
|
|
5
|
+
readonly group: "dial-conversation-stages-group";
|
|
6
|
+
/** The summary line of a `CollapsedGroup`, which expands and collapses it. */
|
|
7
|
+
readonly groupToggle: "dial-conversation-stages-group-toggle";
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=public-class-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+EAA+E;;IAE/E,8EAA8E;;CAEtE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Classes merged onto each stage `Accordion` root: no block padding, and no clipping of the header's focus ring. */
|
|
2
|
+
export declare const STAGE_ACCORDION_CLASS_NAME = "overflow-visible py-0";
|
|
3
|
+
/** Classes merged onto each stage `Accordion` header: the compact row, with the caret right after the text. */
|
|
4
|
+
export declare const STAGE_ACCORDION_HEADER_CLASS_NAME = "justify-start gap-2 rounded-lg px-2 py-1.5 text-start";
|
|
5
|
+
//# sourceMappingURL=stage-accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-accordion.d.ts","sourceRoot":"","sources":["../../src/constants/stage-accordion.ts"],"names":[],"mappings":"AAOA,qHAAqH;AACrH,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAElE,+GAA+G;AAC/G,eAAO,MAAM,iCAAiC,0DACW,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.
|
|
2
|
-
/*$vite$:1
|
|
1
|
+
._panel_8he9e_1{color:var(--cs-text,var(--text-primary,#161b2d))}._row_8he9e_5:hover{background:var(--cs-row-hover,var(--bg-layer-sunken,#eef1f7))}._collapseButton_8he9e_9{background:var(--cs-button-bg,transparent)}._stageHeader_8he9e_18._stageHeader_8he9e_18:hover{background:var(--cs-row-hover,var(--bg-layer-sunken,#eef1f7))}._stageHeader_8he9e_18._stageHeader_8he9e_18>svg{color:var(--cs-icon-secondary,var(--text-secondary,#57647a));opacity:.7}._stageRegion_8he9e_27._stageRegion_8he9e_27{color:inherit}._stageName_8he9e_31{color:var(--cs-stage-text,var(--text-secondary,#57647a))}._stageNameFailed_8he9e_35{color:var(--cs-failed-text,var(--text-warning,#7f6300))}._monoName_8he9e_39{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}._tag_8he9e_43{color:var(--cs-tag-text,var(--text-tertiary,#848e9c))}._count_8he9e_47{color:var(--cs-count-text,var(--text-tertiary,#848e9c));font-variant-numeric:tabular-nums}._duration_8he9e_52{color:var(--cs-duration-text,var(--text-tertiary,#848e9c));font-variant-numeric:tabular-nums}._iconSecondary_8he9e_57{color:var(--cs-icon-secondary,var(--text-secondary,#57647a));opacity:.7}._iconCompleted_8he9e_62{color:var(--cs-icon-completed,var(--text-tertiary,#848e9c))}._iconError_8he9e_66{color:var(--cs-icon-error,var(--text-warning,#7f6300))}._stageContent_8he9e_70{color:var(--cs-stage-text,var(--text-secondary,#57647a))}._codeBlock_8he9e_74{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_8he9e_80{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_8he9e_86{border-color:var(--cs-stage-text,var(--text-secondary,#57647a));color:var(--cs-stage-text,var(--text-secondary,#57647a))}._tableCell_8he9e_91{border-color:var(--cs-border,var(--stroke-secondary,#d1dbea));color:var(--cs-stage-text,var(--text-secondary,#57647a))}._toggleButton_1kyyc_7._toggleButton_1kyyc_7{color:var(--cs-cg-label,var(--text-secondary,#57647a));text-align:start;width:100%;min-width:0}._toggleButton_1kyyc_7._toggleButton_1kyyc_7:hover{color:var(--cs-cg-label-hover,var(--text-primary,#161b2d));background:0 0}._toggleButton_1kyyc_7._toggleButton_1kyyc_7>svg{width:12px;height:12px;color:inherit}._toggleButton_1kyyc_7._toggleButton_1kyyc_7>span>span{white-space:normal}._groupRegion_1kyyc_28._groupRegion_1kyyc_28{color:inherit}._executedLabel_1kyyc_32{color:var(--cs-cg-label,var(--text-secondary,#57647a))}._stepsCount_1kyyc_36{color:var(--cs-cg-steps-count,var(--text-tertiary,#848e9c));font-variant-numeric:tabular-nums}._doneIcon_1kyyc_41{color:var(--cs-cg-done,var(--text-success,#007274))}._failedText_1kyyc_45{color:var(--cs-cg-failed,var(--text-warning,#7f6300))}._liveName_1kyyc_49{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}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.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-none{flex:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-visible{overflow:visible}.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}.rounded-none{border-radius:0}.px-0{padding-left:0;padding-right:0}.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-0{padding-bottom:0;padding-top:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.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}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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)}.last\:mb-0:last-child{margin-bottom:0}
|
package/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { CollapsedGroup } from './components/CollapsedGroup/CollapsedGroup';
|
|
|
2
2
|
export { StagesPanel } from './components/StagesPanel/StagesPanel';
|
|
3
3
|
export type { CollapsedGroupColors, CollapsedGroupLabels, CollapsedGroupProps, CollapsedGroupStyles, CollapsedGroupTypography, } from './models/collapsed-group';
|
|
4
4
|
export type { StagesPanelColors, StagesPanelLabels, StagesPanelProps, StagesPanelStyles, StageTypography, } from './models/stages-props';
|
|
5
|
+
export { CONVERSATION_STAGES_CLASS } from './constants/public-class-names';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IconAlertCircle as
|
|
4
|
-
import { memo as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
//#region src/
|
|
7
|
-
var
|
|
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 { Accordion as a, DIAL_ICON_SIZE as o, DIAL_KIT_ICON_STROKE as s, EllipsisTooltip as c, Spinner as l } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { IconAlertCircle as u, IconCheck as d } from "@tabler/icons-react";
|
|
4
|
+
import { memo as f, useEffect as p, useRef as m, useState as h } from "react";
|
|
5
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
6
|
+
//#region src/constants/public-class-names.ts
|
|
7
|
+
var y = {
|
|
8
|
+
panel: "dial-conversation-stages-panel",
|
|
9
|
+
group: "dial-conversation-stages-group",
|
|
10
|
+
groupToggle: "dial-conversation-stages-group-toggle"
|
|
11
|
+
}, b = /[([][^()[\]]*[)\]]/g, x = /(\d+(?:\.\d+)?)\s*s\b/, S = /\bStart:\s*(\d{1,2}):([0-5]\d):([0-5]\d(?:\.\d+)?)\b/i, C = (e) => {
|
|
8
12
|
let t = e.trimEnd();
|
|
9
13
|
return t.endsWith(":") ? t.slice(0, -1) : t;
|
|
10
|
-
},
|
|
11
|
-
let t =
|
|
14
|
+
}, w = 1440 * 60, T = w / 2, E = (e) => {
|
|
15
|
+
let t = S.exec(e);
|
|
12
16
|
if (!t) return;
|
|
13
17
|
let n = Number(t[1]);
|
|
14
18
|
if (!(n > 23)) return n * 60 * 60 + Number(t[2]) * 60 + Number(t[3]);
|
|
15
|
-
},
|
|
16
|
-
|
|
19
|
+
}, D = (e) => {
|
|
20
|
+
b.lastIndex = 0;
|
|
17
21
|
let t;
|
|
18
|
-
for (; t =
|
|
19
|
-
let e = t[0].slice(1, -1), n =
|
|
22
|
+
for (; t = b.exec(e);) {
|
|
23
|
+
let e = t[0].slice(1, -1), n = x.exec(e);
|
|
20
24
|
if (n) return {
|
|
21
25
|
durationLabel: `${n[1]}s`,
|
|
22
26
|
groupIndex: t.index,
|
|
23
27
|
groupLength: t[0].length,
|
|
24
|
-
startTimeSeconds:
|
|
28
|
+
startTimeSeconds: E(e)
|
|
25
29
|
};
|
|
26
30
|
}
|
|
27
|
-
},
|
|
28
|
-
let t = e ?? "", n =
|
|
31
|
+
}, O = (e) => {
|
|
32
|
+
let t = e ?? "", n = D(t);
|
|
29
33
|
return {
|
|
30
|
-
name:
|
|
34
|
+
name: C(n ? t.slice(0, n.groupIndex) + t.slice(n.groupIndex + n.groupLength) : t).trim().replace(/ {2,}/g, " "),
|
|
31
35
|
durationLabel: n?.durationLabel
|
|
32
36
|
};
|
|
33
|
-
},
|
|
37
|
+
}, k = (e) => e.length > 0 && !/\s/.test(e) && e.includes("_"), A = (e) => e >= 60 ? `${Math.floor(e / 60)}m ${Math.round(e % 60)}s` : `${e.toFixed(1)}s`, j = (e) => {
|
|
34
38
|
if (!e) return;
|
|
35
39
|
let t = /^(\d+(?:\.\d+)?)s$/.exec(e);
|
|
36
40
|
return t ? parseFloat(t[1]) : void 0;
|
|
37
|
-
},
|
|
41
|
+
}, M = (e) => {
|
|
38
42
|
let t = e.flatMap((e) => {
|
|
39
|
-
let t =
|
|
43
|
+
let t = D(e ?? ""), n = j(t?.durationLabel);
|
|
40
44
|
return n == null ? [] : [{
|
|
41
45
|
durationSeconds: n,
|
|
42
46
|
startTimeSeconds: t?.startTimeSeconds
|
|
@@ -47,18 +51,18 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
47
51
|
let n = 0, r, i = t.flatMap(({ durationSeconds: e, startTimeSeconds: t }) => {
|
|
48
52
|
if (t == null) return [];
|
|
49
53
|
let i = t + n;
|
|
50
|
-
return r != null && r - i >
|
|
54
|
+
return r != null && r - i > T && (n += w, i += w), r = i, {
|
|
51
55
|
start: i,
|
|
52
56
|
end: i + e
|
|
53
57
|
};
|
|
54
58
|
}).sort((e, t) => e.start - t.start), a = 0, o = i[0].start, s = i[0].end;
|
|
55
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);
|
|
56
60
|
return a + s - o;
|
|
57
|
-
},
|
|
61
|
+
}, N = (e) => [...e].reverse().find((e) => e.status == null), P = "overflow-visible py-0", F = "justify-start gap-2 rounded-lg px-2 py-1.5 text-start", I = (e) => {
|
|
58
62
|
let t = [], n = 0;
|
|
59
63
|
for (; n < e.length;) {
|
|
60
|
-
let r = e[n], i =
|
|
61
|
-
for (; a < e.length &&
|
|
64
|
+
let r = e[n], i = O(r.name).name, a = n + 1;
|
|
65
|
+
for (; a < e.length && O(e[a].name).name === i;) a += 1;
|
|
62
66
|
let o = e.slice(n, a);
|
|
63
67
|
o.length > 1 ? t.push({
|
|
64
68
|
key: r.index,
|
|
@@ -70,69 +74,53 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
70
74
|
}), n = a;
|
|
71
75
|
}
|
|
72
76
|
return t;
|
|
73
|
-
},
|
|
74
|
-
panel: "
|
|
75
|
-
row: "
|
|
76
|
-
collapseButton: "
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
77
|
+
}, L = {
|
|
78
|
+
panel: "_panel_8he9e_1",
|
|
79
|
+
row: "_row_8he9e_5",
|
|
80
|
+
collapseButton: "_collapseButton_8he9e_9",
|
|
81
|
+
stageHeader: "_stageHeader_8he9e_18",
|
|
82
|
+
stageRegion: "_stageRegion_8he9e_27",
|
|
83
|
+
stageName: "_stageName_8he9e_31",
|
|
84
|
+
stageNameFailed: "_stageNameFailed_8he9e_35",
|
|
85
|
+
monoName: "_monoName_8he9e_39",
|
|
86
|
+
tag: "_tag_8he9e_43",
|
|
87
|
+
count: "_count_8he9e_47",
|
|
88
|
+
duration: "_duration_8he9e_52",
|
|
89
|
+
iconSecondary: "_iconSecondary_8he9e_57",
|
|
90
|
+
iconCompleted: "_iconCompleted_8he9e_62",
|
|
91
|
+
iconError: "_iconError_8he9e_66",
|
|
92
|
+
stageContent: "_stageContent_8he9e_70",
|
|
93
|
+
codeBlock: "_codeBlock_8he9e_74",
|
|
94
|
+
codeInline: "_codeInline_8he9e_80",
|
|
95
|
+
blockquote: "_blockquote_8he9e_86",
|
|
96
|
+
tableCell: "_tableCell_8he9e_91"
|
|
97
|
+
}, R = ({ status: e, isLive: t, runningLabel: r = "Running", failedLabel: i = "Failed" }) => e === n.Failed ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(u, {
|
|
98
|
+
size: o.MD,
|
|
99
|
+
className: L.iconError,
|
|
94
100
|
"aria-hidden": !0,
|
|
95
|
-
stroke:
|
|
96
|
-
}), /* @__PURE__ */
|
|
101
|
+
stroke: s
|
|
102
|
+
}), /* @__PURE__ */ _("span", {
|
|
97
103
|
className: "sr-only",
|
|
98
104
|
children: i
|
|
99
|
-
})] }) : e ===
|
|
100
|
-
size:
|
|
101
|
-
className:
|
|
105
|
+
})] }) : e === n.Completed ? /* @__PURE__ */ _(d, {
|
|
106
|
+
size: o.SM,
|
|
107
|
+
className: L.iconCompleted,
|
|
102
108
|
"aria-hidden": !0,
|
|
103
|
-
stroke:
|
|
104
|
-
}) :
|
|
109
|
+
stroke: s
|
|
110
|
+
}) : t ? /* @__PURE__ */ _(l, {
|
|
105
111
|
size: 16,
|
|
106
112
|
ariaLabel: r
|
|
107
|
-
}) : null,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
size: s.Small,
|
|
119
|
-
icon: C(u ? p : g, {
|
|
120
|
-
size: a.SM,
|
|
121
|
-
className: V.iconSecondary,
|
|
122
|
-
stroke: o
|
|
123
|
-
}),
|
|
124
|
-
"aria-label": c,
|
|
125
|
-
onClick: m,
|
|
126
|
-
className: "absolute end-2 top-2"
|
|
127
|
-
}), /* @__PURE__ */ C("code", {
|
|
128
|
-
className: t,
|
|
129
|
-
children: e
|
|
130
|
-
})]
|
|
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);
|
|
134
|
-
return /* @__PURE__ */ C(e, {
|
|
135
|
-
content: t,
|
|
113
|
+
}) : null, z = ({ children: t, codeClassName: n, blockClassName: r = "dial-code-text", copyAriaLabel: a }) => /* @__PURE__ */ _(e, {
|
|
114
|
+
language: n?.replace(/^language-/, "") ?? "",
|
|
115
|
+
value: typeof t == "string" ? t : String(t ?? ""),
|
|
116
|
+
codeClassName: r,
|
|
117
|
+
containerClassName: i(L.codeBlock, r),
|
|
118
|
+
copyLabel: a,
|
|
119
|
+
hideDownload: !0
|
|
120
|
+
}), B = f(({ content: e, typography: n, copyAriaLabel: r = "Copy" }) => {
|
|
121
|
+
let a = "mb-1.5 last:mb-0", o = i(n?.headingClassName ?? "dial-small-semi-text", L.stageContent, a);
|
|
122
|
+
return /* @__PURE__ */ _(t, {
|
|
123
|
+
content: e,
|
|
136
124
|
classNames: {
|
|
137
125
|
h1: o,
|
|
138
126
|
h2: o,
|
|
@@ -140,156 +128,118 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
140
128
|
h4: o,
|
|
141
129
|
h5: o,
|
|
142
130
|
h6: o,
|
|
143
|
-
p: i(n?.contentClassName ?? "dial-tiny-text",
|
|
144
|
-
ul: i(n?.contentClassName ?? "dial-tiny-text",
|
|
145
|
-
ol: i(n?.contentClassName ?? "dial-tiny-text",
|
|
146
|
-
strong: i(n?.strongClassName ?? n?.contentClassName ?? "dial-tiny-text",
|
|
147
|
-
codeInline:
|
|
148
|
-
blockquote: i(n?.contentClassName ?? "dial-tiny-text",
|
|
149
|
-
link: i(n?.contentClassName ?? "dial-tiny-text",
|
|
150
|
-
tableCell: i(n?.contentClassName ?? "dial-tiny-text",
|
|
131
|
+
p: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent, "mb-1.5"),
|
|
132
|
+
ul: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent, a),
|
|
133
|
+
ol: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent, a),
|
|
134
|
+
strong: i(n?.strongClassName ?? n?.contentClassName ?? "dial-tiny-text", L.stageContent),
|
|
135
|
+
codeInline: L.codeInline,
|
|
136
|
+
blockquote: i(n?.contentClassName ?? "dial-tiny-text", L.blockquote, a),
|
|
137
|
+
link: i(n?.contentClassName ?? "dial-tiny-text", L.stageContent),
|
|
138
|
+
tableCell: i(n?.contentClassName ?? "dial-tiny-text", L.tableCell)
|
|
151
139
|
},
|
|
152
|
-
components: { code: ({ children: e, className: t }) => t?.includes("language-") ? /* @__PURE__ */
|
|
140
|
+
components: { code: ({ children: e, className: t }) => t?.includes("language-") ? /* @__PURE__ */ _(z, {
|
|
153
141
|
codeClassName: t,
|
|
154
142
|
blockClassName: n?.codeBlockClassName,
|
|
155
143
|
copyAriaLabel: r,
|
|
156
144
|
children: e
|
|
157
|
-
}) : /* @__PURE__ */
|
|
158
|
-
className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md",
|
|
145
|
+
}) : /* @__PURE__ */ _("code", {
|
|
146
|
+
className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md", L.codeInline),
|
|
159
147
|
children: e
|
|
160
148
|
}) }
|
|
161
149
|
});
|
|
162
|
-
}),
|
|
163
|
-
let
|
|
164
|
-
/* @__PURE__ */
|
|
150
|
+
}), V = ({ stage: e, isLive: t, typography: r, labels: o, nameOverride: s }) => {
|
|
151
|
+
let { copyAriaLabel: l = "Copy stage content", runningAriaLabel: u, failedAriaLabel: d } = o ?? {}, { name: f, durationLabel: p } = O(e.name), m = s ?? f, h = !s && k(f), y = e.status === n.Failed, b = !!e.content, x = /* @__PURE__ */ v(g, { children: [
|
|
152
|
+
/* @__PURE__ */ _("span", {
|
|
165
153
|
className: "flex flex-none items-center",
|
|
166
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ _(R, {
|
|
167
155
|
status: e.status,
|
|
168
|
-
isLive:
|
|
169
|
-
runningLabel:
|
|
170
|
-
failedLabel:
|
|
156
|
+
isLive: t,
|
|
157
|
+
runningLabel: u,
|
|
158
|
+
failedLabel: d
|
|
171
159
|
})
|
|
172
160
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text",
|
|
175
|
-
children: /* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ _("span", {
|
|
162
|
+
className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", L.stageName, y && L.stageNameFailed, h && L.monoName),
|
|
163
|
+
children: /* @__PURE__ */ _(c, { text: m || e.status || "" })
|
|
176
164
|
}),
|
|
177
|
-
e.tag && /* @__PURE__ */
|
|
178
|
-
className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text",
|
|
165
|
+
e.tag && /* @__PURE__ */ _("span", {
|
|
166
|
+
className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text", L.tag),
|
|
179
167
|
children: e.tag
|
|
180
168
|
}),
|
|
181
|
-
|
|
182
|
-
className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text",
|
|
183
|
-
children:
|
|
184
|
-
}),
|
|
185
|
-
E && /* @__PURE__ */ C("span", {
|
|
186
|
-
className: i("flex-none", V.iconSecondary),
|
|
187
|
-
children: u ? /* @__PURE__ */ C(m, {
|
|
188
|
-
size: a.SM,
|
|
189
|
-
"aria-hidden": !0,
|
|
190
|
-
stroke: o
|
|
191
|
-
}) : /* @__PURE__ */ C(h, {
|
|
192
|
-
size: a.SM,
|
|
193
|
-
className: "rtl:scale-x-[-1]",
|
|
194
|
-
"aria-hidden": !0,
|
|
195
|
-
stroke: o
|
|
196
|
-
})
|
|
197
|
-
})
|
|
198
|
-
] }), O = i("flex w-full items-center gap-2 px-2 py-1.5", V.row);
|
|
199
|
-
return E ? /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
|
|
200
|
-
className: O,
|
|
201
|
-
children: /* @__PURE__ */ C("button", {
|
|
202
|
-
type: "button",
|
|
203
|
-
onClick: () => d((e) => !e),
|
|
204
|
-
"aria-expanded": u,
|
|
205
|
-
className: "flex min-w-0 flex-1 cursor-pointer items-center gap-2 text-start",
|
|
206
|
-
children: D
|
|
169
|
+
p && /* @__PURE__ */ _("span", {
|
|
170
|
+
className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", L.duration),
|
|
171
|
+
children: p
|
|
207
172
|
})
|
|
208
|
-
})
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
className: "
|
|
212
|
-
children:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
173
|
+
] });
|
|
174
|
+
return b ? /* @__PURE__ */ _(a, {
|
|
175
|
+
title: /* @__PURE__ */ _("span", {
|
|
176
|
+
className: "flex min-w-0 items-center gap-2",
|
|
177
|
+
children: x
|
|
178
|
+
}),
|
|
179
|
+
className: P,
|
|
180
|
+
headerClassName: i(F, L.row, L.stageHeader),
|
|
181
|
+
contentClassName: i("-mt-1 flex flex-col gap-3 px-0 py-1 ps-8", L.stageRegion),
|
|
182
|
+
children: /* @__PURE__ */ _("div", {
|
|
183
|
+
className: "max-h-[300px] overflow-y-auto",
|
|
184
|
+
children: /* @__PURE__ */ _(B, {
|
|
185
|
+
content: e.content ?? "",
|
|
186
|
+
typography: r,
|
|
187
|
+
copyAriaLabel: l
|
|
222
188
|
})
|
|
223
189
|
})
|
|
224
|
-
})
|
|
225
|
-
className:
|
|
226
|
-
children:
|
|
190
|
+
}) : /* @__PURE__ */ _("div", {
|
|
191
|
+
className: i("flex w-full items-center gap-2 px-2 py-1.5", L.row),
|
|
192
|
+
children: x
|
|
227
193
|
});
|
|
228
|
-
},
|
|
229
|
-
let { runningAriaLabel:
|
|
230
|
-
return /* @__PURE__ */
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
194
|
+
}, H = ({ row: e, isLive: t, typography: r, labels: o }) => {
|
|
195
|
+
let { runningAriaLabel: s, failedAriaLabel: l, attemptLabel: u = (e) => `Attempt ${e}` } = o ?? {}, d = e.attempts?.some((e) => e.status == null) ?? !1, f = e.attempts?.some((e) => e.status === n.Failed), p = d ? null : f ? n.Failed : n.Completed, m = M((e.attempts || []).map((e) => e.name)), h = m > 0 ? A(m) : void 0;
|
|
196
|
+
return /* @__PURE__ */ _(a, {
|
|
197
|
+
title: /* @__PURE__ */ v("span", {
|
|
198
|
+
className: "flex min-w-0 items-center gap-2",
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ _("span", {
|
|
201
|
+
className: "flex flex-none items-center",
|
|
202
|
+
children: /* @__PURE__ */ _(R, {
|
|
203
|
+
status: p,
|
|
204
|
+
isLive: t,
|
|
205
|
+
runningLabel: s,
|
|
206
|
+
failedLabel: l
|
|
207
|
+
})
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ _("span", {
|
|
210
|
+
className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", L.stageName, f && L.stageNameFailed),
|
|
211
|
+
children: /* @__PURE__ */ _(c, { text: e.name })
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ v("span", {
|
|
214
|
+
className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", L.count),
|
|
215
|
+
children: ["×", e.attempts?.length ?? 0]
|
|
216
|
+
}),
|
|
217
|
+
h && /* @__PURE__ */ _("span", {
|
|
218
|
+
className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", L.duration),
|
|
219
|
+
children: h
|
|
243
220
|
})
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
size: a.SM,
|
|
261
|
-
"aria-hidden": !0,
|
|
262
|
-
stroke: o
|
|
263
|
-
}) : /* @__PURE__ */ C(h, {
|
|
264
|
-
size: a.SM,
|
|
265
|
-
className: "rtl:scale-x-[-1]",
|
|
266
|
-
"aria-hidden": !0,
|
|
267
|
-
stroke: o
|
|
221
|
+
]
|
|
222
|
+
}),
|
|
223
|
+
className: P,
|
|
224
|
+
headerClassName: i(F, L.collapseButton, L.row, L.stageHeader),
|
|
225
|
+
contentClassName: i("-mt-2 px-0 ps-6", L.stageRegion),
|
|
226
|
+
children: /* @__PURE__ */ _("ul", {
|
|
227
|
+
role: "list",
|
|
228
|
+
className: "flex flex-col gap-0.5",
|
|
229
|
+
children: e.attempts?.map((e, n) => /* @__PURE__ */ _("li", {
|
|
230
|
+
role: "listitem",
|
|
231
|
+
children: /* @__PURE__ */ _(V, {
|
|
232
|
+
stage: e,
|
|
233
|
+
nameOverride: u(n + 1),
|
|
234
|
+
isLive: t && e.status == null,
|
|
235
|
+
typography: r,
|
|
236
|
+
labels: o
|
|
268
237
|
})
|
|
269
|
-
})
|
|
270
|
-
]
|
|
271
|
-
}), /* @__PURE__ */ C("div", {
|
|
272
|
-
className: i("grid overflow-hidden transition-[grid-template-rows] duration-[250ms] ease-in-out", f ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
|
|
273
|
-
children: /* @__PURE__ */ C("div", {
|
|
274
|
-
className: "overflow-hidden",
|
|
275
|
-
children: /* @__PURE__ */ C("ul", {
|
|
276
|
-
role: "list",
|
|
277
|
-
className: "mt-1 flex flex-col gap-0.5 ps-6",
|
|
278
|
-
children: e.attempts?.map((e, t) => /* @__PURE__ */ C("li", {
|
|
279
|
-
role: "listitem",
|
|
280
|
-
children: /* @__PURE__ */ C(G, {
|
|
281
|
-
stage: e,
|
|
282
|
-
nameOverride: d(t + 1),
|
|
283
|
-
isLive: n && e.status == null,
|
|
284
|
-
typography: r,
|
|
285
|
-
labels: s
|
|
286
|
-
})
|
|
287
|
-
}, e.index))
|
|
288
|
-
})
|
|
238
|
+
}, e.index))
|
|
289
239
|
})
|
|
290
|
-
})
|
|
291
|
-
},
|
|
292
|
-
let { colors: s, typography: c } = a ?? {}, l =
|
|
240
|
+
});
|
|
241
|
+
}, U = ({ stages: e, isStreaming: t, className: n, styles: a, labels: o }) => {
|
|
242
|
+
let { colors: s, typography: c } = a ?? {}, l = r({
|
|
293
243
|
"--cs-text": s?.text,
|
|
294
244
|
"--cs-row-hover": s?.rowHoverColor,
|
|
295
245
|
"--cs-button-bg": s?.collapsedButtonBg,
|
|
@@ -305,24 +255,24 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
305
255
|
"--cs-code-border": s?.codeBorderColor,
|
|
306
256
|
"--cs-code-text": s?.codeTextColor,
|
|
307
257
|
"--cs-border": s?.borderColor
|
|
308
|
-
}), u =
|
|
309
|
-
return /* @__PURE__ */
|
|
258
|
+
}), u = I(e);
|
|
259
|
+
return /* @__PURE__ */ _("div", {
|
|
310
260
|
style: l,
|
|
311
|
-
className: i("w-full",
|
|
312
|
-
children: /* @__PURE__ */
|
|
261
|
+
className: i("w-full", L.panel, n, y.panel),
|
|
262
|
+
children: /* @__PURE__ */ _("ul", {
|
|
313
263
|
role: "list",
|
|
314
264
|
className: "flex w-full flex-col gap-0.5 ps-5",
|
|
315
|
-
children: u.map((e) => e.stage ? /* @__PURE__ */
|
|
265
|
+
children: u.map((e) => e.stage ? /* @__PURE__ */ _("li", {
|
|
316
266
|
role: "listitem",
|
|
317
|
-
children: /* @__PURE__ */
|
|
267
|
+
children: /* @__PURE__ */ _(V, {
|
|
318
268
|
stage: e.stage,
|
|
319
269
|
isLive: t && e.stage.status == null,
|
|
320
270
|
typography: c,
|
|
321
271
|
labels: o
|
|
322
272
|
})
|
|
323
|
-
}, e.key) : /* @__PURE__ */
|
|
273
|
+
}, e.key) : /* @__PURE__ */ _("li", {
|
|
324
274
|
role: "listitem",
|
|
325
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ _(H, {
|
|
326
276
|
row: e,
|
|
327
277
|
isLive: t && (e.attempts?.some((e) => e.status == null) ?? !1),
|
|
328
278
|
typography: c,
|
|
@@ -331,168 +281,148 @@ var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{
|
|
|
331
281
|
}, e.key))
|
|
332
282
|
})
|
|
333
283
|
});
|
|
334
|
-
},
|
|
335
|
-
toggleButton: "
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
"--cs-cg-label
|
|
349
|
-
"--cs-cg-
|
|
350
|
-
"--cs-cg-
|
|
351
|
-
"--cs-cg-
|
|
352
|
-
"--cs-
|
|
353
|
-
"--cs-
|
|
354
|
-
"--cs-
|
|
355
|
-
"--cs-
|
|
356
|
-
"--cs-
|
|
357
|
-
"--cs-
|
|
358
|
-
"--cs-
|
|
359
|
-
"--cs-
|
|
360
|
-
"--cs-
|
|
361
|
-
"--cs-icon-
|
|
362
|
-
"--cs-icon-
|
|
363
|
-
"--cs-
|
|
364
|
-
"--cs-code-
|
|
365
|
-
"--cs-code-
|
|
366
|
-
"--cs-
|
|
284
|
+
}, W = {
|
|
285
|
+
toggleButton: "_toggleButton_1kyyc_7",
|
|
286
|
+
groupRegion: "_groupRegion_1kyyc_28",
|
|
287
|
+
executedLabel: "_executedLabel_1kyyc_32",
|
|
288
|
+
stepsCount: "_stepsCount_1kyyc_36",
|
|
289
|
+
doneIcon: "_doneIcon_1kyyc_41",
|
|
290
|
+
failedText: "_failedText_1kyyc_45",
|
|
291
|
+
liveName: "_liveName_1kyyc_49"
|
|
292
|
+
}, G = ({ stages: e, isStreaming: t, labels: u, className: f, styles: g }) => {
|
|
293
|
+
let { executedLabel: b = "Executed", stepsLabel: x = () => "steps", failedCountLabel: S = (e) => `${e} failed`, runningAriaLabel: C = "Running", copyAriaLabel: w, failedAriaLabel: T, attemptLabel: E } = u ?? {}, [D, k] = h(t), j = m(t);
|
|
294
|
+
p(() => {
|
|
295
|
+
j.current && !t && k(!1), j.current = t;
|
|
296
|
+
}, [t]);
|
|
297
|
+
let { colors: P, panel: F } = g ?? {}, I = g?.typography ?? { fontClassName: "dial-small-text" }, L = r({
|
|
298
|
+
"--cs-cg-label": P?.labelColor,
|
|
299
|
+
"--cs-cg-label-hover": P?.labelHoverColor,
|
|
300
|
+
"--cs-cg-steps-count": P?.stepsCountColor,
|
|
301
|
+
"--cs-cg-done": P?.doneColor,
|
|
302
|
+
"--cs-cg-failed": P?.failedColor,
|
|
303
|
+
"--cs-text": F?.text,
|
|
304
|
+
"--cs-row-hover": F?.rowHoverColor,
|
|
305
|
+
"--cs-button-bg": F?.collapsedButtonBg,
|
|
306
|
+
"--cs-stage-text": F?.stageTextColor,
|
|
307
|
+
"--cs-failed-text": F?.failedColor,
|
|
308
|
+
"--cs-tag-text": F?.tagTextColor,
|
|
309
|
+
"--cs-count-text": F?.countTextColor,
|
|
310
|
+
"--cs-duration-text": F?.durationTextColor,
|
|
311
|
+
"--cs-icon-secondary": F?.iconSecondaryColor,
|
|
312
|
+
"--cs-icon-completed": F?.iconCompletedColor,
|
|
313
|
+
"--cs-icon-error": F?.iconErrorColor,
|
|
314
|
+
"--cs-code-bg": F?.codeBg,
|
|
315
|
+
"--cs-code-border": F?.codeBorderColor,
|
|
316
|
+
"--cs-code-text": F?.codeTextColor,
|
|
317
|
+
"--cs-border": F?.borderColor
|
|
367
318
|
});
|
|
368
319
|
if (e.length === 0) return null;
|
|
369
|
-
let
|
|
370
|
-
copyAriaLabel:
|
|
371
|
-
runningAriaLabel:
|
|
372
|
-
failedAriaLabel:
|
|
373
|
-
attemptLabel:
|
|
320
|
+
let R = {
|
|
321
|
+
copyAriaLabel: w,
|
|
322
|
+
runningAriaLabel: C,
|
|
323
|
+
failedAriaLabel: T,
|
|
324
|
+
attemptLabel: E
|
|
374
325
|
};
|
|
375
|
-
if (e.length === 1) return /* @__PURE__ */
|
|
326
|
+
if (e.length === 1) return /* @__PURE__ */ _(U, {
|
|
376
327
|
stages: e,
|
|
377
|
-
isStreaming:
|
|
378
|
-
className:
|
|
328
|
+
isStreaming: t,
|
|
329
|
+
className: f,
|
|
379
330
|
styles: {
|
|
380
|
-
colors:
|
|
381
|
-
typography:
|
|
331
|
+
colors: F,
|
|
332
|
+
typography: g?.typography
|
|
382
333
|
},
|
|
383
|
-
labels:
|
|
334
|
+
labels: R
|
|
384
335
|
});
|
|
385
|
-
let
|
|
386
|
-
if (
|
|
387
|
-
let t =
|
|
388
|
-
|
|
336
|
+
let z = e.some((e) => e.status === n.Failed), B = M(e.map((e) => e.name)), V = B > 0 ? A(B) : void 0, H;
|
|
337
|
+
if (t) {
|
|
338
|
+
let t = O((N(e) ?? e[e.length - 1]).name).name;
|
|
339
|
+
H = /* @__PURE__ */ v("span", {
|
|
389
340
|
role: "status",
|
|
390
341
|
"aria-live": "polite",
|
|
391
342
|
className: "flex min-w-0 items-center gap-2",
|
|
392
|
-
children: [
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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 })
|
|
343
|
+
children: [/* @__PURE__ */ _("span", {
|
|
344
|
+
className: "flex flex-none items-center",
|
|
345
|
+
children: /* @__PURE__ */ _(l, {
|
|
346
|
+
size: 14,
|
|
347
|
+
ariaLabel: C
|
|
407
348
|
})
|
|
408
|
-
|
|
349
|
+
}), t && /* @__PURE__ */ _("span", {
|
|
350
|
+
className: i("min-w-0 max-w-[22rem] truncate", I.fontClassName, W.liveName),
|
|
351
|
+
children: /* @__PURE__ */ _(c, { text: t })
|
|
352
|
+
})]
|
|
409
353
|
});
|
|
410
|
-
} else if (
|
|
411
|
-
let
|
|
412
|
-
|
|
354
|
+
} else if (z) {
|
|
355
|
+
let t = e.filter((e) => e.status === n.Failed).length;
|
|
356
|
+
H = /* @__PURE__ */ v("span", {
|
|
413
357
|
className: "inline-flex items-center gap-1",
|
|
414
358
|
children: [
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
className: i(I.fontClassName,
|
|
359
|
+
/* @__PURE__ */ v("span", {
|
|
360
|
+
className: i(I.fontClassName, W.executedLabel),
|
|
417
361
|
children: [
|
|
418
|
-
|
|
362
|
+
b,
|
|
419
363
|
" ",
|
|
420
364
|
e.length,
|
|
421
365
|
" ",
|
|
422
|
-
|
|
366
|
+
x(e.length)
|
|
423
367
|
]
|
|
424
368
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
className: i(I.fontClassName,
|
|
427
|
-
children:
|
|
369
|
+
/* @__PURE__ */ _("span", {
|
|
370
|
+
className: i(I.fontClassName, W.failedText),
|
|
371
|
+
children: S(t)
|
|
428
372
|
}),
|
|
429
|
-
|
|
430
|
-
className: i(I.fontClassName,
|
|
431
|
-
children:
|
|
373
|
+
V && /* @__PURE__ */ _("span", {
|
|
374
|
+
className: i(I.fontClassName, W.stepsCount),
|
|
375
|
+
children: V
|
|
432
376
|
})
|
|
433
377
|
]
|
|
434
378
|
});
|
|
435
|
-
} else
|
|
379
|
+
} else H = /* @__PURE__ */ v("span", {
|
|
436
380
|
className: "inline-flex items-center gap-1",
|
|
437
381
|
children: [
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
size:
|
|
440
|
-
className:
|
|
382
|
+
/* @__PURE__ */ _(d, {
|
|
383
|
+
size: o.SM,
|
|
384
|
+
className: W.doneIcon,
|
|
441
385
|
"aria-hidden": !0,
|
|
442
|
-
stroke:
|
|
386
|
+
stroke: s
|
|
443
387
|
}),
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
-
className: i(I.fontClassName,
|
|
388
|
+
/* @__PURE__ */ v("span", {
|
|
389
|
+
className: i(I.fontClassName, W.executedLabel),
|
|
446
390
|
children: [
|
|
447
|
-
|
|
391
|
+
b,
|
|
448
392
|
" ",
|
|
449
393
|
e.length,
|
|
450
394
|
" ",
|
|
451
|
-
|
|
395
|
+
x(e.length)
|
|
452
396
|
]
|
|
453
397
|
}),
|
|
454
|
-
|
|
455
|
-
className: i(I.fontClassName,
|
|
456
|
-
children:
|
|
398
|
+
V && /* @__PURE__ */ _("span", {
|
|
399
|
+
className: i(I.fontClassName, W.stepsCount),
|
|
400
|
+
children: V
|
|
457
401
|
})
|
|
458
402
|
]
|
|
459
403
|
});
|
|
460
|
-
return /* @__PURE__ */
|
|
461
|
-
style:
|
|
462
|
-
className: i("flex w-full flex-col gap-1",
|
|
463
|
-
children:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
"
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}), /* @__PURE__ */ C("div", {
|
|
480
|
-
className: i("grid transition-[grid-template-rows] duration-300 ease-in-out", k ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
|
|
481
|
-
children: /* @__PURE__ */ C("div", {
|
|
482
|
-
className: "overflow-hidden",
|
|
483
|
-
children: /* @__PURE__ */ C(q, {
|
|
484
|
-
stages: e,
|
|
485
|
-
isStreaming: r,
|
|
486
|
-
styles: {
|
|
487
|
-
colors: P,
|
|
488
|
-
typography: f?.typography
|
|
489
|
-
},
|
|
490
|
-
labels: V,
|
|
491
|
-
className: "pt-1"
|
|
492
|
-
})
|
|
404
|
+
return /* @__PURE__ */ _("div", {
|
|
405
|
+
style: L,
|
|
406
|
+
className: i("flex w-full flex-col gap-1", f, y.group),
|
|
407
|
+
children: /* @__PURE__ */ _(a, {
|
|
408
|
+
title: H,
|
|
409
|
+
expanded: D,
|
|
410
|
+
onToggle: k,
|
|
411
|
+
className: "overflow-visible py-0",
|
|
412
|
+
headerClassName: i("justify-start gap-1 rounded-none px-0", W.toggleButton, y.groupToggle),
|
|
413
|
+
contentClassName: i("-mt-2 px-0", W.groupRegion),
|
|
414
|
+
children: /* @__PURE__ */ _(U, {
|
|
415
|
+
stages: e,
|
|
416
|
+
isStreaming: t,
|
|
417
|
+
styles: {
|
|
418
|
+
colors: F,
|
|
419
|
+
typography: g?.typography
|
|
420
|
+
},
|
|
421
|
+
labels: R,
|
|
422
|
+
className: "pt-1"
|
|
493
423
|
})
|
|
494
|
-
})
|
|
424
|
+
})
|
|
495
425
|
});
|
|
496
426
|
};
|
|
497
427
|
//#endregion
|
|
498
|
-
export {
|
|
428
|
+
export { y as CONVERSATION_STAGES_CLASS, G as CollapsedGroup, U 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,
|
|
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/models/stages-props.d.ts
CHANGED
|
@@ -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
|
|
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,EAAE,MAAM,CAAC;IACzB,kIAAkI;IAClI,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oGAAoG;IACpG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,
|
|
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,uFAAuF;IACvF,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,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAC;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.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.201",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^19.2.8",
|
|
24
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
25
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
24
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.201",
|
|
25
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.23"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
@@ -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
|
|
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"}
|