@epam/ai-dial-conversation-stages 0.0.0-dev.0

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.
@@ -0,0 +1,46 @@
1
+ import { DisplayAttachment, Stage } from '@epam/ai-dial-chat-shared';
2
+ /** Color overrides for the `CollapsedGroup` component applied as CSS custom properties. */
3
+ export interface CollapsedGroupColors {
4
+ /** Color of the toggle button label and icon. Defaults to `var(--text-secondary, #575F73)`. */
5
+ labelColor?: string;
6
+ /** Color of the toggle button label and icon on hover. Defaults to `var(--text-primary, #161B2D)`. */
7
+ labelHoverColor?: string;
8
+ /** Color of the steps count. Defaults to `var(--text-primary, #161B2D)`. */
9
+ stepsCountColor?: string;
10
+ /** Border color of the completed-stages content box. Defaults to `var(--stroke-secondary, #242c42)`. */
11
+ contentBorderColor?: string;
12
+ }
13
+ /** Typography configuration for the toggle button label text. */
14
+ export interface CollapsedGroupTypography {
15
+ /** CSS utility class applied to the toggle button label. Defaults to `'dial-tiny-text'`. */
16
+ fontClassName?: string;
17
+ /** Font family applied to the panel root via CSS custom property. */
18
+ fontFamily?: string;
19
+ }
20
+ /** Combined style overrides (colors and typography) for the `CollapsedGroup` component. */
21
+ export interface CollapsedGroupStyles {
22
+ /** Color overrides applied as CSS custom properties. */
23
+ colors?: CollapsedGroupColors;
24
+ /** Typography for the toggle button label. Defaults to `{ fontClassName: 'dial-tiny-text' }`. */
25
+ typography?: CollapsedGroupTypography;
26
+ }
27
+ /** Props accepted by the `CollapsedGroup` component. */
28
+ export interface CollapsedGroupProps {
29
+ /** Ordered list of stages to display. */
30
+ stages: Stage[];
31
+ /** When `true` the component renders all stages directly via `StagesPanel` without collapsing. */
32
+ isStreaming: boolean;
33
+ /** Label shown before the steps count on the toggle button. Defaults to `'Executed'`. */
34
+ executedLabel?: string;
35
+ /** Returns the pluralized label for the steps count. Receives the count so callers can handle any plural rule. Defaults to `() => 'steps'`. */
36
+ stepsLabel?: (count: number) => string;
37
+ /** Extra class name(s) merged onto the outer wrapper. */
38
+ className?: string;
39
+ /** Color and typography overrides applied as CSS custom properties. */
40
+ styles?: CollapsedGroupStyles;
41
+ /** Minimum number of stages required to activate the collapse behaviour. Defaults to `7`. */
42
+ collapseThreshold?: number;
43
+ /** Called when the user clicks an attachment card inside a stage. */
44
+ onAttachmentClick?: (attachment: DisplayAttachment) => void;
45
+ }
46
+ //# sourceMappingURL=collapsed-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsed-group.d.ts","sourceRoot":"","sources":["../../src/models/collapsed-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAE1E,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sGAAsG;IACtG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wGAAwG;IACxG,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,iEAAiE;AACjE,MAAM,WAAW,wBAAwB;IACvC,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,iGAAiG;IACjG,UAAU,CAAC,EAAE,wBAAwB,CAAC;CACvC;AAED,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,kGAAkG;IAClG,WAAW,EAAE,OAAO,CAAC;IACrB,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+IAA+I;IAC/I,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D"}
@@ -0,0 +1,59 @@
1
+ import { DisplayAttachment, Stage } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * Typography configuration for stage content text.
4
+ * Use either `fontClassName` (a CSS utility class) or the explicit CSS property fields — not both.
5
+ * When `fontClassName` is provided, the individual CSS-property fields are ignored.
6
+ */
7
+ export interface StageTypography {
8
+ /** CSS utility class applied to stage text elements (`p`, `ul`, `ol`). */
9
+ fontClassName?: string;
10
+ /** CSS utility class applied to inline code elements. Defaults to `'font-mono text-sm'`. */
11
+ codeClassName?: string;
12
+ /** Font family applied to the panel root via CSS custom property. */
13
+ fontFamily?: string;
14
+ }
15
+ /** Color overrides for the `StagesPanel` component applied as CSS custom properties. */
16
+ export interface StagesPanelColors {
17
+ /** Background color of the panel surface. */
18
+ background?: string;
19
+ /** Border color of the panel. */
20
+ border?: string;
21
+ /** General text color (header label, count badge). */
22
+ text?: string;
23
+ /**
24
+ * Text color applied to each stage name row.
25
+ * Defaults to the app's `--text-secondary` theme variable (`#9fa6bd`).
26
+ */
27
+ stageTextColor?: string;
28
+ /** Icon / text color for a running stage. */
29
+ runningColor?: string;
30
+ /** Icon / text color for a completed stage. */
31
+ completedColor?: string;
32
+ /** Icon / text color for a failed or errored stage. */
33
+ failedColor?: string;
34
+ /** Background color of the collapsible stage button. Defaults to `transparent`. */
35
+ buttonBackground?: string;
36
+ }
37
+ /** Combined style overrides (colors and typography) for the `StagesPanel` component. */
38
+ export interface StagesPanelStyles {
39
+ /** Color overrides applied as CSS custom properties. */
40
+ colors?: StagesPanelColors;
41
+ /** Typography applied to stage content text. Defaults to `{ fontClassName: 'dial-small-text' }`. */
42
+ typography?: StageTypography;
43
+ }
44
+ /** Props accepted by the `StagesPanel` component. */
45
+ export interface StagesPanelProps {
46
+ /** Ordered list of stages to display. */
47
+ stages: Stage[];
48
+ /** When `true` the last stage with `status: null` shows a live spinner. */
49
+ isStreaming: boolean;
50
+ /** Extra class name(s) merged onto the outer wrapper. */
51
+ className?: string;
52
+ /** Color and typography overrides applied as CSS custom properties. */
53
+ styles?: StagesPanelStyles;
54
+ /** Accessible label for the copy button on each stage's content. Defaults to `'Copy'`. */
55
+ copyAriaLabel?: string;
56
+ /** Called when the user clicks an attachment card inside a stage. */
57
+ onAttachmentClick?: (attachment: DisplayAttachment) => void;
58
+ }
59
+ //# sourceMappingURL=stages-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stages-props.d.ts","sourceRoot":"","sources":["../../src/models/stages-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wFAAwF;AACxF,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wFAAwF;AACxF,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,oGAAoG;IACpG,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,2EAA2E;IAC3E,WAAW,EAAE,OAAO,CAAC;IACrB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D"}
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@epam/ai-dial-conversation-stages",
3
+ "version": "0.0.0-dev.0",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "module": "./index.js",
8
+ "types": "./index.d.ts",
9
+ "exports": {
10
+ "./package.json": "./package.json",
11
+ "./styles.css": "./style.css",
12
+ ".": {
13
+ "types": "./index.d.ts",
14
+ "import": "./index.js",
15
+ "default": "./index.js"
16
+ }
17
+ },
18
+ "peerDependencies": {
19
+ "react": "^19.0.0",
20
+ "@tabler/icons-react": "^3.0.0",
21
+ "@epam/ai-dial-chat-shared": "0.0.0-dev.0",
22
+ "@epam/ai-dial-ui-kit": "0.12.0-dev.21",
23
+ "@epam/ai-dial-conversation-input": "0.0.0-dev.0"
24
+ }
25
+ }