@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,9 @@
1
+ import { FC } from 'react';
2
+ import { CollapsedGroupProps } from '../../models/collapsed-group';
3
+ /**
4
+ * Shows all stages when there are fewer than `collapseThreshold`. When there are `collapseThreshold` or more,
5
+ * completed stages are collapsed behind an expandable toggle while active
6
+ * stages remain always visible.
7
+ */
8
+ export declare const CollapsedGroup: FC<CollapsedGroupProps>;
9
+ //# sourceMappingURL=CollapsedGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsedGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsedGroup/CollapsedGroup.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxE;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuHlD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Stage } from '@epam/ai-dial-chat-shared';
2
+ import { FC } from 'react';
3
+ interface Props {
4
+ /** The stage status value; `null` means the stage is pending or running. */
5
+ status: Stage['status'];
6
+ /** Whether this stage is the currently executing (live) stage. */
7
+ isLive: boolean;
8
+ }
9
+ /** Maps a stage status to the appropriate icon element. */
10
+ export declare const StageIcon: FC<Props>;
11
+ export {};
12
+ //# sourceMappingURL=StageIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/StageIcon/StageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIvD,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,UAAU,KAAK;IACb,4EAA4E;IAC5E,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxB,kEAAkE;IAClE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,2DAA2D;AAC3D,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CA2B/B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { DisplayAttachment, Stage } from '@epam/ai-dial-chat-shared';
2
+ import { FC } from 'react';
3
+ import { StageTypography } from '../../models/stages-props';
4
+ interface Props {
5
+ /** The stage data to render. */
6
+ stage: Stage;
7
+ /** Whether this stage is the currently executing (live) stage. */
8
+ isLive: boolean;
9
+ /** Typography configuration applied to stage text elements. */
10
+ typography: StageTypography;
11
+ /** Accessible label for the copy button inside stage content. */
12
+ copyAriaLabel?: string;
13
+ /** Accessible label for the attachments tray. Defaults to `'Stage attachments'`. */
14
+ attachmentsAriaLabel?: string;
15
+ /** Called when the user clicks an attachment card. */
16
+ onAttachmentClick?: (attachment: DisplayAttachment) => void;
17
+ }
18
+ /** A single stage row — plain when no content, collapsible when content or attachments are present. */
19
+ export declare const StageItem: FC<Props>;
20
+ export {};
21
+ //# sourceMappingURL=StageItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAQ1E,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAKjE,UAAU,KAAK;IACb,gCAAgC;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,kEAAkE;IAClE,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,UAAU,EAAE,eAAe,CAAC;IAC5B,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D;AAED,uGAAuG;AACvG,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CAuF/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ /** Raw code text to copy. */
4
+ children: ReactNode;
5
+ /** Language class from react-markdown (e.g. `language-json`). */
6
+ codeClassName?: string;
7
+ /** Accessible label for the copy button. */
8
+ copyAriaLabel: string;
9
+ }
10
+ /** Code block with an inline copy button in the top-right corner. */
11
+ export declare const StageCodeBlock: FC<Props>;
12
+ export {};
13
+ //# sourceMappingURL=StageCodeBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageCodeBlock.tsx"],"names":[],"mappings":"AAOA,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,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qEAAqE;AACrE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAwDpC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { StageTypography } from '../../models/stages-props';
3
+ /** Props for the {@link StageMarkdownContent} markdown renderer used in stage content areas. */
4
+ interface Props {
5
+ /** Raw markdown string to render. */
6
+ content: string;
7
+ /** Typography configuration applied to text elements (`p`, `ul`, `ol`). */
8
+ typography: StageTypography;
9
+ /** Accessible label for the copy button inside code blocks. Defaults to `'Copy'`. */
10
+ copyAriaLabel?: string;
11
+ }
12
+ /** Renders stage content as formatted markdown, styled via CSS custom properties. */
13
+ export declare const StageMarkdownContent: FC<Props>;
14
+ export {};
15
+ //# sourceMappingURL=StageMarkdownContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageMarkdownContent.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageMarkdownContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAwB,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAIjE,gGAAgG;AAChG,UAAU,KAAK;IACb,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,UAAU,EAAE,eAAe,CAAC;IAC5B,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAgD1C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { StagesPanelProps } from '../../models/stages-props';
3
+ /**
4
+ * Displays an agent's accumulated stages as a collapsible list.
5
+ * Renders above the assistant message bubble during and after streaming.
6
+ */
7
+ export declare const StagesPanel: FC<StagesPanelProps>;
8
+ //# sourceMappingURL=StagesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsD5C,CAAC"}
package/index.css ADDED
@@ -0,0 +1,2 @@
1
+ ._panel_1yr1w_1{background:var(--cs-bg,transparent);border-color:var(--cs-border,transparent);color:var(--cs-text,var(--text-primary,#161b2d))}._collapseButton_1yr1w_7{background:var(--cs-button-bg,transparent)}._stageName_1yr1w_11{color:var(--cs-stage-text,var(--text-secondary,#575f73))}._iconSecondary_1yr1w_15{color:var(--cs-icon-secondary,var(--text-secondary,#575f73))}._stageContent_1yr1w_19{color:var(--cs-stage-text,var(--text-secondary,#575f73))}._codeBlock_1yr1w_23{background:var(--cs-code-bg,var(--bg-layer-0,#fcfcfc));border-color:var(--cs-code-border,var(--stroke-secondary,#d1dbea));color:var(--cs-code-text,var(--text-primary,#161b2d))}._codeInline_1yr1w_29{background:var(--cs-code-bg,var(--bg-layer-0,#fcfcfc));color:var(--cs-code-text,var(--text-primary,#161b2d))}._blockquote_1yr1w_34{border-color:var(--cs-stage-text,var(--text-secondary,#575f73));color:var(--cs-stage-text,var(--text-secondary,#575f73))}._tableCell_1yr1w_39{border-color:var(--cs-border,var(--stroke-secondary,#d1dbea));color:var(--cs-stage-text,var(--text-secondary,#575f73))}._tableHeader_1yr1w_44{background:var(--cs-code-bg,var(--bg-layer-0,#fcfcfc))}._toggleButton_1rkek_1{color:var(--cs-cg-label,var(--text-secondary,#575f73))}._toggleButton_1rkek_1:hover{color:var(--cs-cg-label-hover,var(--text-primary,#161b2d))}._stepsCount_1rkek_8{color:var(--cs-cg-steps-count,var(--text-primary,#161b2d))}._contentBox_1rkek_12{border-color:var(--cs-cg-border,var(--stroke-secondary,#d1dbea))}
2
+ /*$vite$:1*/
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { CollapsedGroup } from './components/CollapsedGroup/CollapsedGroup';
2
+ export { StagesPanel } from './components/StagesPanel/StagesPanel';
3
+ export type { CollapsedGroupColors, CollapsedGroupProps, CollapsedGroupStyles, CollapsedGroupTypography, } from './models/collapsed-group';
4
+ export type { StagesPanelColors, StagesPanelProps, StagesPanelStyles, StageTypography, } from './models/stages-props';
5
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +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,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,uBAAuB,CAAC"}