@epam/ai-dial-conversation-stages 1.3.0-dev.142 → 1.3.0-dev.147
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 +2 -0
- package/components/StageItem/StageItem.d.ts.map +1 -1
- package/components/StageList/StageList.d.ts +2 -0
- package/components/StageList/StageList.d.ts.map +1 -1
- package/components/StageMarkdownContent/StageMarkdownContent.d.ts +3 -1
- package/components/StageMarkdownContent/StageMarkdownContent.d.ts.map +1 -1
- package/components/StagesPanel/StagesPanel.d.ts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +174 -158
- package/models/collapsed-group.d.ts +3 -1
- package/models/collapsed-group.d.ts.map +1 -1
- package/models/stages-props.d.ts +5 -0
- package/models/stages-props.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
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;AAGxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAMxE,gJAAgJ;AAChJ,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,
|
|
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;AAGxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAMxE,gJAAgJ;AAChJ,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0NlD,CAAC"}
|
|
@@ -17,6 +17,8 @@ export interface StageItemProps {
|
|
|
17
17
|
onAttachmentClick?: (attachment: DisplayAttachment) => void;
|
|
18
18
|
/** Host-owned URL resolvers applied when mapping this stage's attachments. See {@link StagesPanelProps.attachmentDisplayResolvers}. */
|
|
19
19
|
attachmentDisplayResolvers?: StagesPanelProps['attachmentDisplayResolvers'];
|
|
20
|
+
/** Host-owned renderer for `<cit>` elements in this stage's content. See {@link StagesPanelProps.renderCitation}. */
|
|
21
|
+
renderCitation?: StagesPanelProps['renderCitation'];
|
|
20
22
|
/** Nested list of this stage's child stages, rendered after its own markdown and attachments. Makes the row expandable on its own. */
|
|
21
23
|
childList?: ReactNode;
|
|
22
24
|
/** Controlled expanded state of the disclosure; uncontrolled (initially collapsed) when omitted. The body mounts only while expanded. */
|
|
@@ -1 +1 @@
|
|
|
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,EAAE,SAAS,EAAkC,MAAM,OAAO,CAAC;AAKtE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,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;IAC5D,uIAAuI;IACvI,0BAA0B,CAAC,EAAE,gBAAgB,CAAC,4BAA4B,CAAC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,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAyCD,8FAA8F;AAC9F,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA2JxC,CAAC"}
|
|
@@ -15,6 +15,8 @@ interface StageLevelProps {
|
|
|
15
15
|
onAttachmentClick?: StagesPanelProps['onAttachmentClick'];
|
|
16
16
|
/** Host-owned URL resolvers for stage attachment tiles. See {@link StagesPanelProps.attachmentDisplayResolvers}. */
|
|
17
17
|
attachmentDisplayResolvers?: StagesPanelProps['attachmentDisplayResolvers'];
|
|
18
|
+
/** Host-owned renderer for `<cit>` elements in stage content. See {@link StagesPanelProps.renderCitation}. */
|
|
19
|
+
renderCitation?: StagesPanelProps['renderCitation'];
|
|
18
20
|
}
|
|
19
21
|
/** Props for {@link StageList}. */
|
|
20
22
|
export interface StageListProps extends StageLevelProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageList.d.ts","sourceRoot":"","sources":["../../../src/components/StageList/StageList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAO3B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAUnC,+DAA+D;AAC/D,UAAU,eAAe;IACvB,iFAAiF;IACjF,WAAW,EAAE,OAAO,CAAC;IACrB,4DAA4D;IAC5D,SAAS,EAAE,cAAc,CAAC;IAC1B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,gHAAgH;IAChH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC1D,oHAAoH;IACpH,0BAA0B,CAAC,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"StageList.d.ts","sourceRoot":"","sources":["../../../src/components/StageList/StageList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAO3B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAUnC,+DAA+D;AAC/D,UAAU,eAAe;IACvB,iFAAiF;IACjF,WAAW,EAAE,OAAO,CAAC;IACrB,4DAA4D;IAC5D,SAAS,EAAE,cAAc,CAAC;IAC1B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,gHAAgH;IAChH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC1D,oHAAoH;IACpH,0BAA0B,CAAC,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;IAC5E,8GAA8G;IAC9G,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;CACrD;AAED,mCAAmC;AACnC,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,mDAAmD;IACnD,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkLD,mGAAmG;AACnG,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAoBxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { StageTypography } from '../../models/stages-props';
|
|
2
|
+
import { StageCitationRenderer, StageTypography } from '../../models/stages-props';
|
|
3
3
|
/** Props for the {@link StageMarkdownContent} markdown renderer used in stage content areas. */
|
|
4
4
|
interface Props {
|
|
5
5
|
/** Raw markdown string to render. */
|
|
@@ -14,6 +14,8 @@ interface Props {
|
|
|
14
14
|
tableScrollRegionAriaLabel?: string;
|
|
15
15
|
/** Accessible label for a block formula's scrollable region. Defaults to `'Scrollable formula'`. */
|
|
16
16
|
mathScrollRegionAriaLabel?: string;
|
|
17
|
+
/** Renders `<cit data-id="…">` elements; without it they render as literal text. */
|
|
18
|
+
renderCitation?: StageCitationRenderer;
|
|
17
19
|
}
|
|
18
20
|
/** Renders stage content as formatted markdown, styled via CSS custom properties. */
|
|
19
21
|
export declare const StageMarkdownContent: FC<Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageMarkdownContent.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageMarkdownContent.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"StageMarkdownContent.d.ts","sourceRoot":"","sources":["../../../src/components/StageMarkdownContent/StageMarkdownContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAAE,EAIR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAMnC,gGAAgG;AAChG,UAAU,KAAK;IACb,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,oGAAoG;IACpG,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oFAAoF;IACpF,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC;AAED,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CA2H1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAKlE,yCAAyC;AACzC,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,8FAA8F;IAC9F,SAAS,EAAE,cAAc,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"StagesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/StagesPanel/StagesPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAKlE,yCAAyC;AACzC,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,8FAA8F;IAC9F,SAAS,EAAE,cAAc,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAyDpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAG5C,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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
|
-
export type { StagesPanelColors, StagesPanelLabels, StagesPanelProps, StagesPanelStyles, StageTypography, } from './models/stages-props';
|
|
4
|
+
export type { StageCitationRenderer, StagesPanelColors, StagesPanelLabels, StagesPanelProps, StagesPanelStyles, StageTypography, } from './models/stages-props';
|
|
5
5
|
export { CONVERSATION_STAGES_CLASS } from './constants/public-class-names';
|
|
6
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;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,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,qBAAqB,EACrB,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
|
@@ -512,38 +512,47 @@ var ve = {
|
|
|
512
512
|
copiedLabel: a,
|
|
513
513
|
hideDownload: !0
|
|
514
514
|
});
|
|
515
|
-
}, it = me(({ content: e, typography: t, copyAriaLabel: n = "Copy", copiedLabel: r, tableScrollRegionAriaLabel: a, mathScrollRegionAriaLabel: o }) => {
|
|
516
|
-
let
|
|
515
|
+
}, it = me(({ content: e, typography: t, copyAriaLabel: n = "Copy", copiedLabel: r, tableScrollRegionAriaLabel: a, mathScrollRegionAriaLabel: o, renderCitation: s }) => {
|
|
516
|
+
let l = "mb-1.5 last:mb-0", u = c(t?.headingClassName ?? "dial-small-semi-text", X.stageContent, l), d = K(() => ({
|
|
517
|
+
code: ({ children: e, className: i }) => i?.includes("language-") ? /* @__PURE__ */ J(rt, {
|
|
518
|
+
codeClassName: i,
|
|
519
|
+
blockClassName: t?.codeBlockClassName,
|
|
520
|
+
copyAriaLabel: n,
|
|
521
|
+
copiedLabel: r,
|
|
522
|
+
children: e
|
|
523
|
+
}) : /* @__PURE__ */ J("code", {
|
|
524
|
+
className: c("px-1 py-0.5", t?.codeClassName ?? "dial-tiny-text rounded-md", X.codeInline),
|
|
525
|
+
children: e
|
|
526
|
+
}),
|
|
527
|
+
...s != null && { cit: (e) => s(e["data-id"], e.children) }
|
|
528
|
+
}), [
|
|
529
|
+
t?.codeClassName,
|
|
530
|
+
t?.codeBlockClassName,
|
|
531
|
+
n,
|
|
532
|
+
r,
|
|
533
|
+
s
|
|
534
|
+
]);
|
|
517
535
|
return /* @__PURE__ */ J(i, {
|
|
518
536
|
content: e,
|
|
519
537
|
tableScrollRegionAriaLabel: a,
|
|
520
538
|
mathScrollRegionAriaLabel: o,
|
|
521
539
|
classNames: {
|
|
522
|
-
h1:
|
|
523
|
-
h2:
|
|
524
|
-
h3:
|
|
525
|
-
h4:
|
|
526
|
-
h5:
|
|
527
|
-
h6:
|
|
540
|
+
h1: u,
|
|
541
|
+
h2: u,
|
|
542
|
+
h3: u,
|
|
543
|
+
h4: u,
|
|
544
|
+
h5: u,
|
|
545
|
+
h6: u,
|
|
528
546
|
p: c(t?.contentClassName ?? "dial-tiny-text", X.stageContent, "mb-1.5"),
|
|
529
|
-
ul: c(t?.contentClassName ?? "dial-tiny-text", X.stageContent,
|
|
530
|
-
ol: c(t?.contentClassName ?? "dial-tiny-text", X.stageContent,
|
|
547
|
+
ul: c(t?.contentClassName ?? "dial-tiny-text", X.stageContent, l),
|
|
548
|
+
ol: c(t?.contentClassName ?? "dial-tiny-text", X.stageContent, l),
|
|
531
549
|
strong: c(t?.strongClassName ?? t?.contentClassName ?? "dial-tiny-text", X.stageContent),
|
|
532
550
|
codeInline: X.codeInline,
|
|
533
|
-
blockquote: c(t?.contentClassName ?? "dial-tiny-text", X.blockquote,
|
|
551
|
+
blockquote: c(t?.contentClassName ?? "dial-tiny-text", X.blockquote, l),
|
|
534
552
|
link: c(t?.contentClassName ?? "dial-tiny-text", X.stageContent),
|
|
535
553
|
tableCell: c(t?.contentClassName ?? "dial-tiny-text", X.tableCell)
|
|
536
554
|
},
|
|
537
|
-
components:
|
|
538
|
-
codeClassName: i,
|
|
539
|
-
blockClassName: t?.codeBlockClassName,
|
|
540
|
-
copyAriaLabel: n,
|
|
541
|
-
copiedLabel: r,
|
|
542
|
-
children: e
|
|
543
|
-
}) : /* @__PURE__ */ J("code", {
|
|
544
|
-
className: c("px-1 py-0.5", t?.codeClassName ?? "dial-tiny-text rounded-md", X.codeInline),
|
|
545
|
-
children: e
|
|
546
|
-
}) }
|
|
555
|
+
components: d
|
|
547
556
|
});
|
|
548
557
|
}), at = ({ attachments: e, clickLabel: t, onAttachmentClick: n }) => {
|
|
549
558
|
let r = W((t) => {
|
|
@@ -562,66 +571,67 @@ var ve = {
|
|
|
562
571
|
})
|
|
563
572
|
}, e.id))
|
|
564
573
|
});
|
|
565
|
-
}, ot = ({ stage: e, isLive: t, typography: n, labels: r, nameOverride: i, onAttachmentClick: a, attachmentDisplayResolvers: s,
|
|
566
|
-
let [
|
|
567
|
-
|
|
568
|
-
}, [
|
|
574
|
+
}, ot = ({ stage: e, isLive: t, typography: n, labels: r, nameOverride: i, onAttachmentClick: a, attachmentDisplayResolvers: s, renderCitation: l, childList: u, isExpanded: f, onToggle: p }) => {
|
|
575
|
+
let [m, h] = q(!1), _ = f ?? m, v = W((e) => {
|
|
576
|
+
f === void 0 && h(e), p?.(e);
|
|
577
|
+
}, [f, p]), { copyAriaLabel: y = "Copy stage content", codeBlockCopiedLabel: b, tableScrollRegionAriaLabel: x, mathScrollRegionAriaLabel: S, runningAriaLabel: C, failedAriaLabel: w, attachmentClickLabel: T = "Preview search result" } = r ?? {}, E = K(() => nt(e.attachments, s), [e.attachments, s]), { name: D, durationLabel: O } = we(e.name), k = i ?? D, A = !i && Te(D), j = e.status === o.Failed, M = !!e.content || !!e.attachments?.length, N = M || u != null, P = /* @__PURE__ */ Y(_e, { children: [
|
|
569
578
|
/* @__PURE__ */ J("span", {
|
|
570
579
|
className: "flex flex-none items-center",
|
|
571
580
|
children: /* @__PURE__ */ J(Pe, {
|
|
572
581
|
status: e.status,
|
|
573
582
|
isLive: t,
|
|
574
|
-
runningLabel:
|
|
575
|
-
failedLabel:
|
|
583
|
+
runningLabel: C,
|
|
584
|
+
failedLabel: w
|
|
576
585
|
})
|
|
577
586
|
}),
|
|
578
587
|
/* @__PURE__ */ J("span", {
|
|
579
|
-
className: c("max-w-[22rem] min-w-0 truncate", n?.fontClassName ?? "dial-small-text", X.stageName,
|
|
580
|
-
children: /* @__PURE__ */ J(g, { text:
|
|
588
|
+
className: c("max-w-[22rem] min-w-0 truncate", n?.fontClassName ?? "dial-small-text", X.stageName, j && X.stageNameFailed, A && X.monoName),
|
|
589
|
+
children: /* @__PURE__ */ J(g, { text: k || e.status || "" })
|
|
581
590
|
}),
|
|
582
591
|
e.tag && /* @__PURE__ */ J("span", {
|
|
583
592
|
className: c("flex-none", n?.tagClassName ?? "dial-tiny-lead-text", X.tag),
|
|
584
593
|
children: e.tag
|
|
585
594
|
}),
|
|
586
|
-
|
|
595
|
+
O && /* @__PURE__ */ J("span", {
|
|
587
596
|
className: c("flex-none", n?.countFontClassName ?? "dial-tiny-text", X.duration),
|
|
588
|
-
children:
|
|
597
|
+
children: O
|
|
589
598
|
})
|
|
590
599
|
] });
|
|
591
|
-
return
|
|
592
|
-
expanded:
|
|
593
|
-
onToggle:
|
|
600
|
+
return N ? /* @__PURE__ */ Y(d, {
|
|
601
|
+
expanded: _,
|
|
602
|
+
onToggle: v,
|
|
594
603
|
title: /* @__PURE__ */ J("span", {
|
|
595
604
|
className: "flex min-w-0 items-center gap-2",
|
|
596
|
-
children:
|
|
605
|
+
children: P
|
|
597
606
|
}),
|
|
598
607
|
className: je,
|
|
599
608
|
headerClassName: c(Me, X.row, X.stageHeader),
|
|
600
609
|
contentClassName: c("-mt-1 flex min-w-0 flex-col gap-3 px-0 py-1", X.stageRegion),
|
|
601
|
-
children: [
|
|
610
|
+
children: [_ && M && /* @__PURE__ */ Y("div", {
|
|
602
611
|
className: "flex min-w-0 flex-col gap-3 ps-8",
|
|
603
612
|
children: [e.content && /* @__PURE__ */ J("div", {
|
|
604
613
|
className: "max-h-[300px] min-w-0 overflow-y-auto",
|
|
605
614
|
children: /* @__PURE__ */ J(it, {
|
|
606
615
|
content: e.content,
|
|
607
616
|
typography: n,
|
|
608
|
-
copyAriaLabel:
|
|
609
|
-
copiedLabel:
|
|
610
|
-
tableScrollRegionAriaLabel:
|
|
611
|
-
mathScrollRegionAriaLabel:
|
|
617
|
+
copyAriaLabel: y,
|
|
618
|
+
copiedLabel: b,
|
|
619
|
+
tableScrollRegionAriaLabel: x,
|
|
620
|
+
mathScrollRegionAriaLabel: S,
|
|
621
|
+
renderCitation: l
|
|
612
622
|
})
|
|
613
|
-
}),
|
|
614
|
-
attachments:
|
|
615
|
-
clickLabel:
|
|
623
|
+
}), E.length > 0 && /* @__PURE__ */ J(at, {
|
|
624
|
+
attachments: E,
|
|
625
|
+
clickLabel: T,
|
|
616
626
|
onAttachmentClick: a
|
|
617
627
|
})]
|
|
618
|
-
}),
|
|
628
|
+
}), _ && u]
|
|
619
629
|
}) : /* @__PURE__ */ J("div", {
|
|
620
630
|
className: c("flex w-full items-center gap-2 px-2 py-1.5", X.row),
|
|
621
|
-
children:
|
|
631
|
+
children: P
|
|
622
632
|
});
|
|
623
|
-
}, st = (e) => e <= 3 ? "ps-4" : "ps-0", ct = (e) => e <= 3 ? "ps-6" : "ps-0", lt = ({ node: e, depth: t, nameOverride: n, isStreaming: r, expansion: i, typography: a, labels: o, onAttachmentClick: s, attachmentDisplayResolvers: c }) => {
|
|
624
|
-
let
|
|
633
|
+
}, st = (e) => e <= 3 ? "ps-4" : "ps-0", ct = (e) => e <= 3 ? "ps-6" : "ps-0", lt = ({ node: e, depth: t, nameOverride: n, isStreaming: r, expansion: i, typography: a, labels: o, onAttachmentClick: s, attachmentDisplayResolvers: c, renderCitation: l }) => {
|
|
634
|
+
let u = ke(e.stage.index), d = t + 1;
|
|
625
635
|
return /* @__PURE__ */ J(ot, {
|
|
626
636
|
stage: e.stage,
|
|
627
637
|
nameOverride: n,
|
|
@@ -630,68 +640,71 @@ var ve = {
|
|
|
630
640
|
labels: o,
|
|
631
641
|
onAttachmentClick: s,
|
|
632
642
|
attachmentDisplayResolvers: c,
|
|
633
|
-
|
|
634
|
-
|
|
643
|
+
renderCitation: l,
|
|
644
|
+
isExpanded: i.isExpanded(u),
|
|
645
|
+
onToggle: (e) => i.onToggle(u, e),
|
|
635
646
|
childList: e.children.length > 0 ? /* @__PURE__ */ J(dt, {
|
|
636
647
|
nodes: e.children,
|
|
637
|
-
depth:
|
|
638
|
-
className: st(
|
|
648
|
+
depth: d,
|
|
649
|
+
className: st(d),
|
|
639
650
|
isStreaming: r,
|
|
640
651
|
expansion: i,
|
|
641
652
|
typography: a,
|
|
642
653
|
labels: o,
|
|
643
654
|
onAttachmentClick: s,
|
|
644
|
-
attachmentDisplayResolvers: c
|
|
655
|
+
attachmentDisplayResolvers: c,
|
|
656
|
+
renderCitation: l
|
|
645
657
|
}) : void 0
|
|
646
658
|
});
|
|
647
|
-
}, ut = ({ row: e, depth: t, isStreaming: n, expansion: r, typography: i, labels: a, onAttachmentClick: s, attachmentDisplayResolvers: l }) => {
|
|
648
|
-
let { runningAriaLabel:
|
|
649
|
-
|
|
650
|
-
let
|
|
659
|
+
}, ut = ({ row: e, depth: t, isStreaming: n, expansion: r, typography: i, labels: a, onAttachmentClick: s, attachmentDisplayResolvers: l, renderCitation: u }) => {
|
|
660
|
+
let { runningAriaLabel: f, failedAriaLabel: p, attemptLabel: m = (e) => `Attempt ${e}` } = a ?? {}, h = e.attempts ?? [], _ = h.some((e) => e.stage.status == null), v = h.some((e) => e.stage.status === o.Failed), y = o.Completed;
|
|
661
|
+
_ ? y = null : v && (y = o.Failed);
|
|
662
|
+
let b = Ae(e.key), x = r.isExpanded(b), S = t + 1, C = /* @__PURE__ */ Y("span", {
|
|
651
663
|
className: "flex min-w-0 items-center gap-2",
|
|
652
664
|
children: [
|
|
653
665
|
/* @__PURE__ */ J("span", {
|
|
654
666
|
className: "flex flex-none items-center",
|
|
655
667
|
children: /* @__PURE__ */ J(Pe, {
|
|
656
|
-
status:
|
|
657
|
-
isLive: n &&
|
|
658
|
-
runningLabel:
|
|
659
|
-
failedLabel:
|
|
668
|
+
status: y,
|
|
669
|
+
isLive: n && _,
|
|
670
|
+
runningLabel: f,
|
|
671
|
+
failedLabel: p
|
|
660
672
|
})
|
|
661
673
|
}),
|
|
662
674
|
/* @__PURE__ */ J("span", {
|
|
663
|
-
className: c("max-w-[22rem] min-w-0 truncate", i?.fontClassName ?? "dial-small-text", X.stageName,
|
|
675
|
+
className: c("max-w-[22rem] min-w-0 truncate", i?.fontClassName ?? "dial-small-text", X.stageName, v && X.stageNameFailed),
|
|
664
676
|
children: /* @__PURE__ */ J(g, { text: e.name })
|
|
665
677
|
}),
|
|
666
678
|
/* @__PURE__ */ Y("span", {
|
|
667
679
|
className: c("flex-none", i?.countFontClassName ?? "dial-tiny-text", X.count),
|
|
668
|
-
children: ["×",
|
|
680
|
+
children: ["×", h.length]
|
|
669
681
|
})
|
|
670
682
|
]
|
|
671
683
|
});
|
|
672
684
|
return /* @__PURE__ */ J(d, {
|
|
673
|
-
title:
|
|
674
|
-
expanded:
|
|
675
|
-
onToggle: (e) => r.onToggle(
|
|
685
|
+
title: C,
|
|
686
|
+
expanded: x,
|
|
687
|
+
onToggle: (e) => r.onToggle(b, e),
|
|
676
688
|
className: je,
|
|
677
689
|
headerClassName: c(Me, X.collapseButton, X.row, X.stageHeader),
|
|
678
|
-
contentClassName: c("-mt-2 min-w-0 px-0", ct(
|
|
690
|
+
contentClassName: c("-mt-2 min-w-0 px-0", ct(S), X.stageRegion),
|
|
679
691
|
children: /* @__PURE__ */ J("ul", {
|
|
680
692
|
role: "list",
|
|
681
693
|
className: "flex min-w-0 flex-col gap-0.5",
|
|
682
|
-
children:
|
|
694
|
+
children: x && h.map((e, t) => /* @__PURE__ */ J("li", {
|
|
683
695
|
role: "listitem",
|
|
684
696
|
className: "min-w-0",
|
|
685
697
|
children: /* @__PURE__ */ J(lt, {
|
|
686
698
|
node: e,
|
|
687
|
-
depth:
|
|
688
|
-
nameOverride:
|
|
699
|
+
depth: S,
|
|
700
|
+
nameOverride: m(t + 1),
|
|
689
701
|
isStreaming: n,
|
|
690
702
|
expansion: r,
|
|
691
703
|
typography: i,
|
|
692
704
|
labels: a,
|
|
693
705
|
onAttachmentClick: s,
|
|
694
|
-
attachmentDisplayResolvers: l
|
|
706
|
+
attachmentDisplayResolvers: l,
|
|
707
|
+
renderCitation: u
|
|
695
708
|
})
|
|
696
709
|
}, e.stage.index))
|
|
697
710
|
})
|
|
@@ -712,37 +725,38 @@ var ve = {
|
|
|
712
725
|
...r
|
|
713
726
|
})
|
|
714
727
|
}, e.key))
|
|
715
|
-
}), ft = ({ stages: e, isStreaming: t, className: n, styles: r, labels: i, onAttachmentClick: a, attachmentDisplayResolvers: o,
|
|
716
|
-
let { colors:
|
|
717
|
-
"--cs-text":
|
|
718
|
-
"--cs-row-hover":
|
|
719
|
-
"--cs-button-bg":
|
|
720
|
-
"--cs-stage-text":
|
|
721
|
-
"--cs-failed-text":
|
|
722
|
-
"--cs-tag-text":
|
|
723
|
-
"--cs-count-text":
|
|
724
|
-
"--cs-duration-text":
|
|
725
|
-
"--cs-icon-secondary":
|
|
726
|
-
"--cs-icon-completed":
|
|
727
|
-
"--cs-icon-error":
|
|
728
|
-
"--cs-code-bg":
|
|
729
|
-
"--cs-code-border":
|
|
730
|
-
"--cs-code-text":
|
|
731
|
-
"--cs-border":
|
|
732
|
-
}),
|
|
728
|
+
}), ft = ({ stages: e, isStreaming: t, className: n, styles: r, labels: i, onAttachmentClick: a, attachmentDisplayResolvers: o, renderCitation: l, expansion: u }) => {
|
|
729
|
+
let { colors: d, typography: f } = r ?? {}, p = s({
|
|
730
|
+
"--cs-text": d?.text,
|
|
731
|
+
"--cs-row-hover": d?.rowHoverColor,
|
|
732
|
+
"--cs-button-bg": d?.collapsedButtonBg,
|
|
733
|
+
"--cs-stage-text": d?.stageTextColor,
|
|
734
|
+
"--cs-failed-text": d?.failedColor,
|
|
735
|
+
"--cs-tag-text": d?.tagTextColor,
|
|
736
|
+
"--cs-count-text": d?.countTextColor,
|
|
737
|
+
"--cs-duration-text": d?.durationTextColor,
|
|
738
|
+
"--cs-icon-secondary": d?.iconSecondaryColor,
|
|
739
|
+
"--cs-icon-completed": d?.iconCompletedColor,
|
|
740
|
+
"--cs-icon-error": d?.iconErrorColor,
|
|
741
|
+
"--cs-code-bg": d?.codeBg,
|
|
742
|
+
"--cs-code-border": d?.codeBorderColor,
|
|
743
|
+
"--cs-code-text": d?.codeTextColor,
|
|
744
|
+
"--cs-border": d?.borderColor
|
|
745
|
+
}), m = K(() => Oe(e), [e]);
|
|
733
746
|
return /* @__PURE__ */ J("div", {
|
|
734
|
-
style:
|
|
747
|
+
style: p,
|
|
735
748
|
className: c("w-full min-w-0", X.panel, n, ve.panel),
|
|
736
749
|
children: /* @__PURE__ */ J(dt, {
|
|
737
|
-
nodes:
|
|
750
|
+
nodes: m,
|
|
738
751
|
depth: 0,
|
|
739
752
|
className: "w-full ps-5",
|
|
740
753
|
isStreaming: t,
|
|
741
|
-
expansion:
|
|
742
|
-
typography:
|
|
754
|
+
expansion: u,
|
|
755
|
+
typography: f,
|
|
743
756
|
labels: i,
|
|
744
757
|
onAttachmentClick: a,
|
|
745
|
-
attachmentDisplayResolvers: o
|
|
758
|
+
attachmentDisplayResolvers: o,
|
|
759
|
+
renderCitation: l
|
|
746
760
|
})
|
|
747
761
|
});
|
|
748
762
|
}, pt = (e) => {
|
|
@@ -758,68 +772,69 @@ var ve = {
|
|
|
758
772
|
doneIcon: "_doneIcon_16fae_36",
|
|
759
773
|
failedText: "_failedText_16fae_40",
|
|
760
774
|
liveName: "_liveName_16fae_44"
|
|
761
|
-
}, mt = ({ stages: e, isStreaming: t, labels: n, className: r, styles: i, onAttachmentClick: a, attachmentDisplayResolvers: l }) => {
|
|
762
|
-
let { executedLabel:
|
|
775
|
+
}, mt = ({ stages: e, isStreaming: t, labels: n, className: r, styles: i, onAttachmentClick: a, attachmentDisplayResolvers: l, renderCitation: u }) => {
|
|
776
|
+
let { executedLabel: m = "Executed", stepsLabel: h = () => "steps", failedCountLabel: _ = (e) => `${e} failed`, runningAriaLabel: v = "Running", copyAriaLabel: y, codeBlockCopiedLabel: b, tableScrollRegionAriaLabel: S, mathScrollRegionAriaLabel: C, failedAriaLabel: T, attemptLabel: E, attachmentClickLabel: D } = n ?? {}, [O, k] = q(t), A = ye(), { reset: j } = A, M = e.length > 1;
|
|
763
777
|
G(() => {
|
|
764
|
-
|
|
778
|
+
M && !O && j();
|
|
765
779
|
}, [
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
780
|
+
M,
|
|
781
|
+
O,
|
|
782
|
+
j
|
|
769
783
|
]);
|
|
770
|
-
let
|
|
784
|
+
let N = ge(t);
|
|
771
785
|
G(() => {
|
|
772
|
-
|
|
786
|
+
N.current && !t && k(!1), N.current = t;
|
|
773
787
|
}, [t]);
|
|
774
|
-
let { colors:
|
|
775
|
-
"--cs-cg-label":
|
|
776
|
-
"--cs-cg-label-hover":
|
|
777
|
-
"--cs-cg-done":
|
|
778
|
-
"--cs-cg-failed":
|
|
779
|
-
"--cs-text":
|
|
780
|
-
"--cs-row-hover":
|
|
781
|
-
"--cs-button-bg":
|
|
782
|
-
"--cs-stage-text":
|
|
783
|
-
"--cs-failed-text":
|
|
784
|
-
"--cs-tag-text":
|
|
785
|
-
"--cs-count-text":
|
|
786
|
-
"--cs-duration-text":
|
|
787
|
-
"--cs-icon-secondary":
|
|
788
|
-
"--cs-icon-completed":
|
|
789
|
-
"--cs-icon-error":
|
|
790
|
-
"--cs-code-bg":
|
|
791
|
-
"--cs-code-border":
|
|
792
|
-
"--cs-code-text":
|
|
793
|
-
"--cs-border":
|
|
788
|
+
let { colors: P, panel: F } = i ?? {}, I = i?.typography ?? { fontClassName: "dial-small-text" }, L = s({
|
|
789
|
+
"--cs-cg-label": P?.labelColor,
|
|
790
|
+
"--cs-cg-label-hover": P?.labelHoverColor,
|
|
791
|
+
"--cs-cg-done": P?.doneColor,
|
|
792
|
+
"--cs-cg-failed": P?.failedColor,
|
|
793
|
+
"--cs-text": F?.text,
|
|
794
|
+
"--cs-row-hover": F?.rowHoverColor,
|
|
795
|
+
"--cs-button-bg": F?.collapsedButtonBg,
|
|
796
|
+
"--cs-stage-text": F?.stageTextColor,
|
|
797
|
+
"--cs-failed-text": F?.failedColor,
|
|
798
|
+
"--cs-tag-text": F?.tagTextColor,
|
|
799
|
+
"--cs-count-text": F?.countTextColor,
|
|
800
|
+
"--cs-duration-text": F?.durationTextColor,
|
|
801
|
+
"--cs-icon-secondary": F?.iconSecondaryColor,
|
|
802
|
+
"--cs-icon-completed": F?.iconCompletedColor,
|
|
803
|
+
"--cs-icon-error": F?.iconErrorColor,
|
|
804
|
+
"--cs-code-bg": F?.codeBg,
|
|
805
|
+
"--cs-code-border": F?.codeBorderColor,
|
|
806
|
+
"--cs-code-text": F?.codeTextColor,
|
|
807
|
+
"--cs-border": F?.borderColor
|
|
794
808
|
});
|
|
795
809
|
if (e.length === 0) return null;
|
|
796
|
-
let
|
|
797
|
-
copyAriaLabel:
|
|
798
|
-
codeBlockCopiedLabel:
|
|
799
|
-
tableScrollRegionAriaLabel:
|
|
800
|
-
mathScrollRegionAriaLabel:
|
|
801
|
-
runningAriaLabel:
|
|
802
|
-
failedAriaLabel:
|
|
803
|
-
attemptLabel:
|
|
804
|
-
attachmentClickLabel:
|
|
810
|
+
let R = {
|
|
811
|
+
copyAriaLabel: y,
|
|
812
|
+
codeBlockCopiedLabel: b,
|
|
813
|
+
tableScrollRegionAriaLabel: S,
|
|
814
|
+
mathScrollRegionAriaLabel: C,
|
|
815
|
+
runningAriaLabel: v,
|
|
816
|
+
failedAriaLabel: T,
|
|
817
|
+
attemptLabel: E,
|
|
818
|
+
attachmentClickLabel: D
|
|
805
819
|
};
|
|
806
820
|
if (e.length === 1) return /* @__PURE__ */ J(ft, {
|
|
807
821
|
stages: e,
|
|
808
822
|
isStreaming: t,
|
|
809
|
-
expansion:
|
|
823
|
+
expansion: A,
|
|
810
824
|
className: r,
|
|
811
825
|
styles: {
|
|
812
|
-
colors:
|
|
826
|
+
colors: F,
|
|
813
827
|
typography: i?.typography
|
|
814
828
|
},
|
|
815
|
-
labels:
|
|
829
|
+
labels: R,
|
|
816
830
|
onAttachmentClick: a,
|
|
817
|
-
attachmentDisplayResolvers: l
|
|
831
|
+
attachmentDisplayResolvers: l,
|
|
832
|
+
renderCitation: u
|
|
818
833
|
});
|
|
819
|
-
let
|
|
834
|
+
let z = e.some((e) => e.status === o.Failed), B;
|
|
820
835
|
if (t) {
|
|
821
836
|
let t = we((Ee(e) ?? e[e.length - 1]).name).name;
|
|
822
|
-
|
|
837
|
+
B = /* @__PURE__ */ Y("span", {
|
|
823
838
|
role: "status",
|
|
824
839
|
"aria-live": "polite",
|
|
825
840
|
className: "flex min-w-0 items-center gap-2",
|
|
@@ -827,32 +842,32 @@ var ve = {
|
|
|
827
842
|
className: "flex flex-none items-center",
|
|
828
843
|
children: /* @__PURE__ */ J(x, {
|
|
829
844
|
size: 14,
|
|
830
|
-
ariaLabel:
|
|
845
|
+
ariaLabel: v
|
|
831
846
|
})
|
|
832
847
|
}), t && /* @__PURE__ */ J("span", {
|
|
833
|
-
className: c("max-w-[22rem] min-w-0 truncate",
|
|
848
|
+
className: c("max-w-[22rem] min-w-0 truncate", I.fontClassName, $.liveName),
|
|
834
849
|
children: /* @__PURE__ */ J(g, { text: t })
|
|
835
850
|
})]
|
|
836
851
|
});
|
|
837
|
-
} else if (
|
|
852
|
+
} else if (z) {
|
|
838
853
|
let t = e.filter((e) => e.status === o.Failed).length;
|
|
839
|
-
|
|
854
|
+
B = /* @__PURE__ */ Y("span", {
|
|
840
855
|
className: "inline-flex items-center gap-1",
|
|
841
856
|
children: [/* @__PURE__ */ Y("span", {
|
|
842
|
-
className: c(
|
|
857
|
+
className: c(I.fontClassName, $.executedLabel),
|
|
843
858
|
children: [
|
|
844
|
-
|
|
859
|
+
m,
|
|
845
860
|
" ",
|
|
846
861
|
e.length,
|
|
847
862
|
" ",
|
|
848
|
-
|
|
863
|
+
h(e.length)
|
|
849
864
|
]
|
|
850
865
|
}), /* @__PURE__ */ J("span", {
|
|
851
|
-
className: c(
|
|
852
|
-
children:
|
|
866
|
+
className: c(I.fontClassName, $.failedText),
|
|
867
|
+
children: _(t)
|
|
853
868
|
})]
|
|
854
869
|
});
|
|
855
|
-
} else
|
|
870
|
+
} else B = /* @__PURE__ */ Y("span", {
|
|
856
871
|
className: "inline-flex items-center gap-1",
|
|
857
872
|
children: [/* @__PURE__ */ J(w, {
|
|
858
873
|
size: f.SM,
|
|
@@ -860,38 +875,39 @@ var ve = {
|
|
|
860
875
|
"aria-hidden": !0,
|
|
861
876
|
stroke: p
|
|
862
877
|
}), /* @__PURE__ */ Y("span", {
|
|
863
|
-
className: c(
|
|
878
|
+
className: c(I.fontClassName, $.executedLabel),
|
|
864
879
|
children: [
|
|
865
|
-
|
|
880
|
+
m,
|
|
866
881
|
" ",
|
|
867
882
|
e.length,
|
|
868
883
|
" ",
|
|
869
|
-
|
|
884
|
+
h(e.length)
|
|
870
885
|
]
|
|
871
886
|
})]
|
|
872
887
|
});
|
|
873
888
|
return /* @__PURE__ */ J("div", {
|
|
874
|
-
style:
|
|
889
|
+
style: L,
|
|
875
890
|
className: c("flex w-full flex-col gap-1", r, ve.group),
|
|
876
891
|
children: /* @__PURE__ */ J(d, {
|
|
877
|
-
title:
|
|
878
|
-
expanded:
|
|
879
|
-
onToggle:
|
|
892
|
+
title: B,
|
|
893
|
+
expanded: O,
|
|
894
|
+
onToggle: k,
|
|
880
895
|
className: "overflow-visible py-0",
|
|
881
896
|
headerClassName: c("justify-start gap-1 rounded-none px-0", $.toggleButton, ve.groupToggle),
|
|
882
897
|
contentClassName: c("-mt-2 px-0", $.groupRegion),
|
|
883
|
-
children:
|
|
898
|
+
children: O && /* @__PURE__ */ J(ft, {
|
|
884
899
|
stages: e,
|
|
885
900
|
isStreaming: t,
|
|
886
|
-
expansion:
|
|
901
|
+
expansion: A,
|
|
887
902
|
styles: {
|
|
888
|
-
colors:
|
|
903
|
+
colors: F,
|
|
889
904
|
typography: i?.typography
|
|
890
905
|
},
|
|
891
|
-
labels:
|
|
906
|
+
labels: R,
|
|
892
907
|
className: "pt-1",
|
|
893
908
|
onAttachmentClick: a,
|
|
894
|
-
attachmentDisplayResolvers: l
|
|
909
|
+
attachmentDisplayResolvers: l,
|
|
910
|
+
renderCitation: u
|
|
895
911
|
})
|
|
896
912
|
})
|
|
897
913
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AttachmentDisplayResolvers, DisplayAttachment, Stage } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
import { StagesPanelColors } from './stages-props';
|
|
2
|
+
import { StageCitationRenderer, StagesPanelColors } from './stages-props';
|
|
3
3
|
/** Color overrides for the `CollapsedGroup` component applied as CSS custom properties. */
|
|
4
4
|
export interface CollapsedGroupColors {
|
|
5
5
|
/** Color of the toggle button label and icon. */
|
|
@@ -66,5 +66,7 @@ export interface CollapsedGroupProps {
|
|
|
66
66
|
onAttachmentClick?: (attachment: DisplayAttachment) => void;
|
|
67
67
|
/** Host-owned URL resolvers for stage attachment tiles. Forwarded unchanged to the inner `StagesPanel`. */
|
|
68
68
|
attachmentDisplayResolvers?: AttachmentDisplayResolvers;
|
|
69
|
+
/** Host-owned renderer for `<cit data-id="…">` elements in stage content. Forwarded unchanged to the inner `StagesPanel`. */
|
|
70
|
+
renderCitation?: StageCitationRenderer;
|
|
69
71
|
}
|
|
70
72
|
//# sourceMappingURL=collapsed-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsed-group.d.ts","sourceRoot":"","sources":["../../src/models/collapsed-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,KAAK,EACN,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"collapsed-group.d.ts","sourceRoot":"","sources":["../../src/models/collapsed-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,KAAK,EACN,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,M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,kDAAkD;IAClD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,gHAAgH;IAChH,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5D,2GAA2G;IAC3G,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,6HAA6H;IAC7H,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC"}
|
package/models/stages-props.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AttachmentDisplayResolvers, DisplayAttachment, Stage } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/** Renders a `<cit data-id="…">` element found in stage content, given its `data-id` value and children. */
|
|
4
|
+
export type StageCitationRenderer = (dataId: string | undefined, children: ReactNode) => ReactNode;
|
|
2
5
|
/** Typography class overrides for stage name and expanded content elements in `StagesPanel`. */
|
|
3
6
|
export interface StageTypography {
|
|
4
7
|
/** CSS utility class applied to the stage/step name. Defaults to `'dial-small-text'`. */
|
|
@@ -93,5 +96,7 @@ export interface StagesPanelProps {
|
|
|
93
96
|
onAttachmentClick?: (attachment: DisplayAttachment) => void;
|
|
94
97
|
/** Host-owned URL resolvers applied when mapping stage attachments; without them an image tile previews its raw `url`. */
|
|
95
98
|
attachmentDisplayResolvers?: AttachmentDisplayResolvers;
|
|
99
|
+
/** Host-owned renderer for `<cit data-id="…">` elements in stage content; without it they render as literal text. */
|
|
100
|
+
renderCitation?: StageCitationRenderer;
|
|
96
101
|
}
|
|
97
102
|
//# sourceMappingURL=stages-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stages-props.d.ts","sourceRoot":"","sources":["../../src/models/stages-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA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zE,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;IAC3B,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5D,0HAA0H;IAC1H,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,qHAAqH;IACrH,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC"}
|
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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.147",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-attachment-input": "1.3.0-dev.
|
|
21
|
+
"@epam/ai-dial-attachment-input": "1.3.0-dev.147"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^19.2.8",
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.147",
|
|
26
26
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.22"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|