@epam/ai-dial-conversation-stages 1.2.0-dev.20 → 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.
@@ -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":"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;AAQvD,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,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,CA+HxC,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 `<pre>` block. Defaults to `'dial-code-text'`. */
7
+ /** Typography class applied to the fenced code block. Defaults to `'dial-code-text'`. */
8
8
  blockClassName?: string;
9
9
  /** Accessible label for the copy button. */
10
10
  copyAriaLabel: string;
11
11
  }
12
- /** Code block with an inline copy button in the top-end corner. */
12
+ /** Adapts stage markdown code blocks to the shared markdown code-block UI. */
13
13
  export declare const StageCodeBlock: FC<Props>;
14
14
  export {};
15
15
  //# sourceMappingURL=StageCodeBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageCodeBlock.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAGf,UAAU,KAAK;IACb,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,mEAAmE;AACnE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CA4DpC,CAAC"}
1
+ {"version":3,"file":"StageCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageCodeBlock.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhD,UAAU,KAAK;IACb,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,8EAA8E;AAC9E,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAoBpC,CAAC"}
@@ -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;AA6InC,+FAA+F;AAC/F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA+D5C,CAAC"}
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
- ._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*/
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 { MarkdownRenderer as e, StageStatus as t, buildCssVars as n, copyToClipboard as r, mergeClasses as i } from "@epam/ai-dial-chat-shared";
2
- import { DIAL_ICON_SIZE as a, DIAL_KIT_ICON_STROKE as o, ElementSize as s, EllipsisTooltip as c, GhostIconButton as l, LinkButton as u, Spinner as d } from "@epam/ai-dial-ui-kit";
3
- import { IconAlertCircle as f, IconCheck as p, IconChevronDown as m, IconChevronRight as h, IconCopy as g } from "@tabler/icons-react";
4
- import { memo as _, useCallback as v, useEffect as y, useRef as b, useState as x } from "react";
5
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
6
- //#region src/utils/stage-name.ts
7
- var T = /[([][^()[\]]*[)\]]/g, E = /(\d+(?:\.\d+)?)\s*s\b/, D = /\bStart:\s*(\d{1,2}):([0-5]\d):([0-5]\d(?:\.\d+)?)\b/i, O = (e) => {
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
- }, k = 1440 * 60, A = k / 2, j = (e) => {
11
- let t = D.exec(e);
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
- }, M = (e) => {
16
- T.lastIndex = 0;
19
+ }, D = (e) => {
20
+ b.lastIndex = 0;
17
21
  let t;
18
- for (; t = T.exec(e);) {
19
- let e = t[0].slice(1, -1), n = E.exec(e);
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: j(e)
28
+ startTimeSeconds: E(e)
25
29
  };
26
30
  }
27
- }, N = (e) => {
28
- let t = e ?? "", n = M(t);
31
+ }, O = (e) => {
32
+ let t = e ?? "", n = D(t);
29
33
  return {
30
- name: O(n ? t.slice(0, n.groupIndex) + t.slice(n.groupIndex + n.groupLength) : t).trim().replace(/ {2,}/g, " "),
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
- }, P = (e) => e.length > 0 && !/\s/.test(e) && e.includes("_"), F = (e) => e >= 60 ? `${Math.floor(e / 60)}m ${Math.round(e % 60)}s` : `${e.toFixed(1)}s`, I = (e) => {
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
- }, L = (e) => {
41
+ }, M = (e) => {
38
42
  let t = e.flatMap((e) => {
39
- let t = M(e ?? ""), n = I(t?.durationLabel);
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 > A && (n += k, i += k), 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
- }, R = (e) => [...e].reverse().find((e) => e.status == null), z = (e, t) => e.findIndex((e) => e.index === t.index) + 1, B = (e) => {
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 = N(r.name).name, a = n + 1;
61
- for (; a < e.length && N(e[a].name).name === i;) a += 1;
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
- }, V = {
74
- panel: "_panel_vd48n_1",
75
- row: "_row_vd48n_5",
76
- collapseButton: "_collapseButton_vd48n_9",
77
- stageName: "_stageName_vd48n_13",
78
- stageNameFailed: "_stageNameFailed_vd48n_17",
79
- monoName: "_monoName_vd48n_21",
80
- tag: "_tag_vd48n_25",
81
- count: "_count_vd48n_29",
82
- duration: "_duration_vd48n_34",
83
- iconSecondary: "_iconSecondary_vd48n_39",
84
- iconCompleted: "_iconCompleted_vd48n_44",
85
- iconError: "_iconError_vd48n_48",
86
- stageContent: "_stageContent_vd48n_52",
87
- codeBlock: "_codeBlock_vd48n_56",
88
- codeInline: "_codeInline_vd48n_62",
89
- blockquote: "_blockquote_vd48n_68",
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, {
92
- size: a.MD,
93
- className: V.iconError,
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: o
96
- }), /* @__PURE__ */ C("span", {
101
+ stroke: s
102
+ }), /* @__PURE__ */ _("span", {
97
103
  className: "sr-only",
98
104
  children: i
99
- })] }) : e === t.Completed ? /* @__PURE__ */ C(p, {
100
- size: a.SM,
101
- className: V.iconCompleted,
105
+ })] }) : e === n.Completed ? /* @__PURE__ */ _(d, {
106
+ size: o.SM,
107
+ className: L.iconCompleted,
102
108
  "aria-hidden": !0,
103
- stroke: o
104
- }) : n ? /* @__PURE__ */ C(d, {
109
+ stroke: s
110
+ }) : t ? /* @__PURE__ */ _(l, {
105
111
  size: 16,
106
112
  ariaLabel: r
107
- }) : null, U = ({ children: e, codeClassName: t, blockClassName: n = "dial-code-text", copyAriaLabel: c }) => {
108
- let [u, d] = x(!1), f = b(null);
109
- y(() => () => {
110
- f.current != null && clearTimeout(f.current);
111
- }, []);
112
- let m = v(() => {
113
- r(typeof e == "string" ? e : String(e ?? "")), f.current && clearTimeout(f.current), d(!0), f.current = setTimeout(() => d(!1), 2e3);
114
- }, [e]);
115
- return /* @__PURE__ */ w("pre", {
116
- className: i("relative max-h-[300px] overflow-auto rounded border p-3", n, V.codeBlock),
117
- children: [/* @__PURE__ */ C(l, {
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", 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)
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__ */ C(U, {
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__ */ C("code", {
158
- className: i("inline-block px-1.5 py-1", n?.codeClassName ?? "dial-code-text rounded-md", V.codeInline),
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
- }), G = ({ stage: e, isLive: n, typography: r, labels: s, nameOverride: l }) => {
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
- /* @__PURE__ */ C("span", {
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__ */ C(H, {
154
+ children: /* @__PURE__ */ _(R, {
167
155
  status: e.status,
168
- isLive: n,
169
- runningLabel: p,
170
- failedLabel: g
156
+ isLive: t,
157
+ runningLabel: u,
158
+ failedLabel: d
171
159
  })
172
160
  }),
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),
175
- children: /* @__PURE__ */ C(c, { text: y || e.status || "" })
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__ */ C("span", {
178
- className: i("flex-none", r?.tagClassName ?? "dial-tiny-lead-text", V.tag),
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
- v && /* @__PURE__ */ C("span", {
182
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
183
- children: v
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
- }), /* @__PURE__ */ C("div", {
209
- className: i("grid overflow-hidden transition-[grid-template-rows] duration-[250ms] ease-in-out", u ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
210
- children: /* @__PURE__ */ C("div", {
211
- className: "overflow-hidden",
212
- children: /* @__PURE__ */ C("div", {
213
- className: "mt-2 flex flex-col gap-3 py-1 ps-8",
214
- children: e.content && /* @__PURE__ */ C("div", {
215
- className: "max-h-[300px] overflow-y-auto",
216
- children: /* @__PURE__ */ C(W, {
217
- content: e.content,
218
- typography: r,
219
- copyAriaLabel: f
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
- })] }) : /* @__PURE__ */ C("div", {
225
- className: O,
226
- children: D
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
- }, K = ({ row: e, isLive: n, typography: r, labels: s }) => {
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
- return /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("button", {
231
- type: "button",
232
- onClick: () => p((e) => !e),
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),
235
- children: [
236
- /* @__PURE__ */ C("span", {
237
- className: "flex flex-none items-center",
238
- children: /* @__PURE__ */ C(H, {
239
- status: v,
240
- isLive: n,
241
- runningLabel: l,
242
- failedLabel: u
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
- /* @__PURE__ */ C("span", {
246
- className: i("min-w-0 max-w-[22rem] truncate", r?.fontClassName ?? "dial-small-text", V.stageName, _ && V.stageNameFailed),
247
- children: /* @__PURE__ */ C(c, { text: e.name })
248
- }),
249
- /* @__PURE__ */ w("span", {
250
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.count),
251
- children: ["×", e.attempts?.length ?? 0]
252
- }),
253
- b && /* @__PURE__ */ C("span", {
254
- className: i("flex-none", r?.countFontClassName ?? "dial-tiny-text", V.duration),
255
- children: b
256
- }),
257
- /* @__PURE__ */ C("span", {
258
- className: i("flex-none", V.iconSecondary),
259
- children: f ? /* @__PURE__ */ C(m, {
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
- }, q = ({ stages: e, isStreaming: t, className: r, styles: a, labels: o }) => {
292
- let { colors: s, typography: c } = a ?? {}, l = n({
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 = B(e);
309
- return /* @__PURE__ */ C("div", {
258
+ }), u = I(e);
259
+ return /* @__PURE__ */ _("div", {
310
260
  style: l,
311
- className: i("w-full", V.panel, r),
312
- children: /* @__PURE__ */ C("ul", {
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__ */ C("li", {
265
+ children: u.map((e) => e.stage ? /* @__PURE__ */ _("li", {
316
266
  role: "listitem",
317
- children: /* @__PURE__ */ C(G, {
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__ */ C("li", {
273
+ }, e.key) : /* @__PURE__ */ _("li", {
324
274
  role: "listitem",
325
- children: /* @__PURE__ */ C(K, {
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
- }, J = {
335
- toggleButton: "_toggleButton_1sa5v_1",
336
- executedLabel: "_executedLabel_1sa5v_13",
337
- stepsCount: "_stepsCount_1sa5v_17",
338
- doneIcon: "_doneIcon_1sa5v_22",
339
- failedText: "_failedText_1sa5v_26",
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);
343
- y(() => {
344
- j.current && !r && A(!1), j.current = r;
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
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 V = {
370
- copyAriaLabel: E,
371
- runningAriaLabel: T,
372
- failedAriaLabel: D,
373
- attemptLabel: O
320
+ let R = {
321
+ copyAriaLabel: w,
322
+ runningAriaLabel: C,
323
+ failedAriaLabel: T,
324
+ attemptLabel: E
374
325
  };
375
- if (e.length === 1) return /* @__PURE__ */ C(q, {
326
+ if (e.length === 1) return /* @__PURE__ */ _(U, {
376
327
  stages: e,
377
- isStreaming: r,
378
- className: l,
328
+ isStreaming: t,
329
+ className: f,
379
330
  styles: {
380
- colors: P,
381
- typography: f?.typography
331
+ colors: F,
332
+ typography: g?.typography
382
333
  },
383
- labels: V
334
+ labels: R
384
335
  });
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;
386
- if (r) {
387
- let t = G ? z(e, G) : e.length, n = G ? N(G.name).name : "";
388
- K = /* @__PURE__ */ w("span", {
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
- /* @__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 })
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 (H) {
411
- let n = e.filter((e) => e.status === t.Failed).length;
412
- K = /* @__PURE__ */ w("span", {
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__ */ w("span", {
416
- className: i(I.fontClassName, J.executedLabel),
359
+ /* @__PURE__ */ v("span", {
360
+ className: i(I.fontClassName, W.executedLabel),
417
361
  children: [
418
- g,
362
+ b,
419
363
  " ",
420
364
  e.length,
421
365
  " ",
422
- _(e.length)
366
+ x(e.length)
423
367
  ]
424
368
  }),
425
- /* @__PURE__ */ C("span", {
426
- className: i(I.fontClassName, J.failedText),
427
- children: v(n)
369
+ /* @__PURE__ */ _("span", {
370
+ className: i(I.fontClassName, W.failedText),
371
+ children: S(t)
428
372
  }),
429
- W && /* @__PURE__ */ C("span", {
430
- className: i(I.fontClassName, J.stepsCount),
431
- children: W
373
+ V && /* @__PURE__ */ _("span", {
374
+ className: i(I.fontClassName, W.stepsCount),
375
+ children: V
432
376
  })
433
377
  ]
434
378
  });
435
- } else K = /* @__PURE__ */ w("span", {
379
+ } else H = /* @__PURE__ */ v("span", {
436
380
  className: "inline-flex items-center gap-1",
437
381
  children: [
438
- /* @__PURE__ */ C(p, {
439
- size: a.SM,
440
- className: J.doneIcon,
382
+ /* @__PURE__ */ _(d, {
383
+ size: o.SM,
384
+ className: W.doneIcon,
441
385
  "aria-hidden": !0,
442
- stroke: o
386
+ stroke: s
443
387
  }),
444
- /* @__PURE__ */ w("span", {
445
- className: i(I.fontClassName, J.executedLabel),
388
+ /* @__PURE__ */ v("span", {
389
+ className: i(I.fontClassName, W.executedLabel),
446
390
  children: [
447
- g,
391
+ b,
448
392
  " ",
449
393
  e.length,
450
394
  " ",
451
- _(e.length)
395
+ x(e.length)
452
396
  ]
453
397
  }),
454
- W && /* @__PURE__ */ C("span", {
455
- className: i(I.fontClassName, J.stepsCount),
456
- children: W
398
+ V && /* @__PURE__ */ _("span", {
399
+ className: i(I.fontClassName, W.stepsCount),
400
+ children: V
457
401
  })
458
402
  ]
459
403
  });
460
- return /* @__PURE__ */ w("div", {
461
- style: B,
462
- className: i("flex w-full flex-col gap-1", l),
463
- children: [/* @__PURE__ */ C(u, {
464
- className: J.toggleButton,
465
- textClassName: "min-w-0",
466
- onClick: () => A((e) => !e),
467
- "aria-expanded": k,
468
- iconAfter: k ? /* @__PURE__ */ C(m, {
469
- size: 12,
470
- "aria-hidden": !0,
471
- stroke: o
472
- }) : /* @__PURE__ */ C(h, {
473
- size: 12,
474
- className: "rtl:scale-x-[-1]",
475
- "aria-hidden": !0,
476
- stroke: o
477
- }),
478
- label: K
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 { Y as CollapsedGroup, q as StagesPanel };
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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C3B;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"}
@@ -11,7 +11,7 @@ export interface StageTypography {
11
11
  headingClassName?: string;
12
12
  /** CSS utility class applied to inline code elements. Defaults to `'dial-code-text rounded-md'`. */
13
13
  codeClassName?: string;
14
- /** CSS utility class applied to fenced code blocks (`<pre>`). Defaults to `'dial-code-text'`. */
14
+ /** CSS utility class applied to fenced code blocks. Defaults to `'dial-code-text'`. */
15
15
  codeBlockClassName?: string;
16
16
  /** CSS utility class applied to count badges (e.g. `×N` collapsed group). Defaults to `'dial-tiny-text'`. */
17
17
  countFontClassName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"stages-props.d.ts","sourceRoot":"","sources":["../../src/models/stages-props.ts"],"names":[],"mappings":"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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.20",
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.20",
25
- "@epam/ai-dial-ui-kit": "^0.14.2"
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;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"}