@epam/ai-dial-conversation-stages 1.2.0-dev.21 → 1.2.0-dev.213
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 +3 -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 +687 -371
- package/models/collapsed-group.d.ts +5 -3
- package/models/collapsed-group.d.ts.map +1 -1
- package/models/stages-props.d.ts +6 -2
- package/models/stages-props.d.ts.map +1 -1
- package/package.json +5 -4
- package/utils/stage-attachments.d.ts +11 -0
- package/utils/stage-attachments.d.ts.map +1 -0
- 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,CA2NlD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Stage } from '@epam/ai-dial-chat-shared';
|
|
1
|
+
import { DisplayAttachment, Stage } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { StagesPanelLabels, StageTypography } from '../../models/stages-props';
|
|
4
4
|
/** Props for {@link StageItem}. */
|
|
@@ -13,6 +13,8 @@ export interface StageItemProps {
|
|
|
13
13
|
labels?: StagesPanelLabels;
|
|
14
14
|
/** Overrides the displayed name; used to relabel individual attempts (e.g. `'Attempt 2'`) inside a `×N` group. */
|
|
15
15
|
nameOverride?: string;
|
|
16
|
+
/** Called when a stage attachment tile is clicked/activated. Receives the mapped display attachment. */
|
|
17
|
+
onAttachmentClick?: (attachment: DisplayAttachment) => void;
|
|
16
18
|
}
|
|
17
19
|
/** Renders a single stage row, optionally expandable to show its content. */
|
|
18
20
|
export declare const StageItem: FC<StageItemProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StageItem.d.ts","sourceRoot":"","sources":["../../../src/components/StageItem/StageItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAOnC,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;IACtB,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D;AAyCD,6EAA6E;AAC7E,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAuHxC,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;AA4HnC,+FAA+F;AAC/F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,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}.flex-wrap{flex-wrap:wrap}.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"}
|