@epam/ai-dial-conversation-input 1.1.0-dev.124 → 1.1.0-dev.126
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/index.js +60 -60
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AttachmentErrorReason as e, AttachmentType as t, DeploymentIcon as n, RequestStatus as r, ResponseFormat as i, buildCssVars as a, mergeClasses as o, useIsMobile as s } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import { BASE_ICON_SIZE as c, Button as l, DIAL_ICON_SIZE as u, DialCloseButton as d, DialDropdown as f, DialDropdownIcon as p, DialErrorText as m,
|
|
2
|
+
import { BASE_ICON_SIZE as c, Button as l, DIAL_ICON_SIZE as u, DialCloseButton as d, DialDropdown as f, DialDropdownIcon as p, DialErrorText as m, DialPopup as h, DialRadioGroup as g, DialSearch as _, DialSkeleton as v, DialSkeletonVariant as y, DialSlider as b, DialTooltip as x, ElementSize as S, GhostIconButton as C, Highlight as w, Input as T, NeutralButton as E, PopupSize as D, PrimaryButton as O, PrimaryIconButton as k, RadioGroupOrientation as A, StaticIconButton as j } from "@epam/ai-dial-ui-kit";
|
|
3
3
|
import { IconArrowLeft as M, IconArrowNarrowRight as N, IconCheck as P, IconChevronDown as ee, IconChevronRight as F, IconFile as te, IconMicrophone as ne, IconPaperclip as re, IconPlayerStopFilled as ie, IconPlaystationSquare as ae, IconPlus as oe, IconSettings as se, IconTool as ce, IconX as le } from "@tabler/icons-react";
|
|
4
4
|
import { createPortal as ue } from "react-dom";
|
|
5
5
|
import { createElement as de, memo as fe, useCallback as I, useEffect as L, useImperativeHandle as pe, useLayoutEffect as R, useMemo as z, useRef as B, useState as V } from "react";
|
|
@@ -51,7 +51,7 @@ var Ce = (e, t) => {
|
|
|
51
51
|
children: [
|
|
52
52
|
i && /* @__PURE__ */ U("div", {
|
|
53
53
|
className: "absolute start-4",
|
|
54
|
-
children: /* @__PURE__ */ U(
|
|
54
|
+
children: /* @__PURE__ */ U(C, {
|
|
55
55
|
icon: /* @__PURE__ */ U(M, {
|
|
56
56
|
size: u.LG,
|
|
57
57
|
stroke: 1.5,
|
|
@@ -434,19 +434,19 @@ var Ce = (e, t) => {
|
|
|
434
434
|
a
|
|
435
435
|
])
|
|
436
436
|
};
|
|
437
|
-
}, Be = { label: "_label_14i7c_1" }, Ve = ({ features: e, responseFormat: t, systemPrompt: n, temperature: r, onResponseFormatChange: s, onSystemPromptChange: c, onTemperatureChange: l, responseFormatLabel: u = "Response format", responseFormatHint: d = "Applies to new and existing messages", responseFormatMarkdownLabel: f = "Markdown", responseFormatPlainTextLabel: p = "Plain text", systemPromptLabel: m = "System prompt", systemPromptTooltip:
|
|
437
|
+
}, Be = { label: "_label_14i7c_1" }, Ve = ({ features: e, responseFormat: t, systemPrompt: n, temperature: r, onResponseFormatChange: s, onSystemPromptChange: c, onTemperatureChange: l, responseFormatLabel: u = "Response format", responseFormatHint: d = "Applies to new and existing messages", responseFormatMarkdownLabel: f = "Markdown", responseFormatPlainTextLabel: p = "Plain text", systemPromptLabel: m = "System prompt", systemPromptTooltip: h = "Enter a prompt", temperatureLabel: _ = "Temperature", temperatureLabels: v = [
|
|
438
438
|
"Precise",
|
|
439
439
|
"Neutral",
|
|
440
440
|
"Creative"
|
|
441
|
-
], temperatureHint:
|
|
442
|
-
let
|
|
441
|
+
], temperatureHint: y, labelClassName: x = "!dial-small-semi-text", colors: S }) => {
|
|
442
|
+
let C = a({ "--csf-label-text": S?.labelText }), w = o(x, Be.label, "gap-1");
|
|
443
443
|
return /* @__PURE__ */ W("div", {
|
|
444
444
|
className: "flex flex-col gap-4 px-6 py-3",
|
|
445
|
-
style:
|
|
445
|
+
style: C,
|
|
446
446
|
children: [
|
|
447
|
-
e.responseFormat && /* @__PURE__ */ U(
|
|
447
|
+
e.responseFormat && /* @__PURE__ */ U(g, {
|
|
448
448
|
fieldTitle: u,
|
|
449
|
-
labelClassName:
|
|
449
|
+
labelClassName: w,
|
|
450
450
|
elementId: "response-format",
|
|
451
451
|
orientation: A.Column,
|
|
452
452
|
activeRadioButton: t ?? i.Markdown,
|
|
@@ -460,31 +460,31 @@ var Ce = (e, t) => {
|
|
|
460
460
|
}],
|
|
461
461
|
onChange: (e) => s(e)
|
|
462
462
|
}),
|
|
463
|
-
e.systemPrompt && /* @__PURE__ */ U(
|
|
463
|
+
e.systemPrompt && /* @__PURE__ */ U(T, {
|
|
464
464
|
value: n,
|
|
465
|
-
placeholder:
|
|
465
|
+
placeholder: h,
|
|
466
466
|
labelProps: {
|
|
467
|
-
className:
|
|
467
|
+
className: w,
|
|
468
468
|
label: m
|
|
469
469
|
},
|
|
470
470
|
onChange: (e) => c(e ?? "")
|
|
471
471
|
}),
|
|
472
|
-
e.temperature && /* @__PURE__ */ U(
|
|
472
|
+
e.temperature && /* @__PURE__ */ U(b, {
|
|
473
473
|
labelProps: {
|
|
474
|
-
label:
|
|
475
|
-
className:
|
|
476
|
-
caption:
|
|
474
|
+
label: _,
|
|
475
|
+
className: w,
|
|
476
|
+
caption: y
|
|
477
477
|
},
|
|
478
478
|
value: r,
|
|
479
479
|
min: 0,
|
|
480
480
|
max: 1,
|
|
481
481
|
step: .1,
|
|
482
|
-
labels:
|
|
482
|
+
labels: v,
|
|
483
483
|
onChange: l
|
|
484
484
|
})
|
|
485
485
|
]
|
|
486
486
|
});
|
|
487
|
-
}, He = ({ isOpen: e, onBack: t, backLabel: n, onClose: r, closeLabel: i, style: a, features: s, initialResponseFormat: c, initialSystemPrompt: l, initialTemperature: u, onSave: d, title: f = "Chat settings", responseFormatLabel: p, responseFormatHint: m, responseFormatMarkdownLabel: h, responseFormatPlainTextLabel: g, systemPromptLabel: _, systemPromptTooltip: v, temperatureLabel: y, temperatureLabels: b, temperatureHint:
|
|
487
|
+
}, He = ({ isOpen: e, onBack: t, backLabel: n, onClose: r, closeLabel: i, style: a, features: s, initialResponseFormat: c, initialSystemPrompt: l, initialTemperature: u, onSave: d, title: f = "Chat settings", responseFormatLabel: p, responseFormatHint: m, responseFormatMarkdownLabel: h, responseFormatPlainTextLabel: g, systemPromptLabel: _, systemPromptTooltip: v, temperatureLabel: y, temperatureLabels: b, temperatureHint: S, saveLabel: C = "Apply changes", saveDisabledTooltip: w }) => {
|
|
488
488
|
let { responseFormat: T, systemPrompt: E, temperature: D, canSubmit: k, setResponseFormat: A, setSystemPrompt: j, setTemperature: M, handleSubmit: N } = ze({
|
|
489
489
|
isOpen: e,
|
|
490
490
|
features: s,
|
|
@@ -518,10 +518,10 @@ var Ce = (e, t) => {
|
|
|
518
518
|
systemPromptTooltip: v,
|
|
519
519
|
temperatureLabel: y,
|
|
520
520
|
temperatureLabels: b,
|
|
521
|
-
temperatureHint:
|
|
521
|
+
temperatureHint: S
|
|
522
522
|
}), /* @__PURE__ */ U("div", {
|
|
523
523
|
className: o("px-6 py-4 mobile:pb-8"),
|
|
524
|
-
children: /* @__PURE__ */ U(
|
|
524
|
+
children: /* @__PURE__ */ U(x, {
|
|
525
525
|
tooltip: w,
|
|
526
526
|
hideTooltip: k || !w,
|
|
527
527
|
triggerClassName: "w-full",
|
|
@@ -534,8 +534,8 @@ var Ce = (e, t) => {
|
|
|
534
534
|
})
|
|
535
535
|
})]
|
|
536
536
|
});
|
|
537
|
-
}, Ue = { modal: "_modal_od073_1" }, We = ({ features: e, initialResponseFormat: t, initialSystemPrompt: n, initialTemperature: r, onSave: i, onClose: a, title: o = "Chat settings", responseFormatLabel: s, responseFormatHint: c, responseFormatMarkdownLabel: l, responseFormatPlainTextLabel: u, systemPromptLabel: d, systemPromptTooltip: f, temperatureLabel: p, temperatureLabels: m, temperatureHint:
|
|
538
|
-
let { responseFormat: b, systemPrompt:
|
|
537
|
+
}, Ue = { modal: "_modal_od073_1" }, We = ({ features: e, initialResponseFormat: t, initialSystemPrompt: n, initialTemperature: r, onSave: i, onClose: a, title: o = "Chat settings", responseFormatLabel: s, responseFormatHint: c, responseFormatMarkdownLabel: l, responseFormatPlainTextLabel: u, systemPromptLabel: d, systemPromptTooltip: f, temperatureLabel: p, temperatureLabels: m, temperatureHint: g, saveLabel: _ = "Apply changes", saveDisabledTooltip: v, backgroundClassName: y = Ue.modal }) => {
|
|
538
|
+
let { responseFormat: b, systemPrompt: S, temperature: C, canSubmit: w, setResponseFormat: T, setSystemPrompt: E, setTemperature: k, handleSubmit: A } = ze({
|
|
539
539
|
features: e,
|
|
540
540
|
initialResponseFormat: t,
|
|
541
541
|
initialSystemPrompt: n,
|
|
@@ -543,7 +543,7 @@ var Ce = (e, t) => {
|
|
|
543
543
|
onSave: i,
|
|
544
544
|
onClose: a
|
|
545
545
|
});
|
|
546
|
-
return /* @__PURE__ */ U(
|
|
546
|
+
return /* @__PURE__ */ U(h, {
|
|
547
547
|
open: !0,
|
|
548
548
|
header: o,
|
|
549
549
|
size: D.Sm,
|
|
@@ -551,7 +551,7 @@ var Ce = (e, t) => {
|
|
|
551
551
|
className: y,
|
|
552
552
|
footer: /* @__PURE__ */ U("div", {
|
|
553
553
|
className: "flex justify-end px-6 py-4",
|
|
554
|
-
children: /* @__PURE__ */ U(
|
|
554
|
+
children: /* @__PURE__ */ U(x, {
|
|
555
555
|
tooltip: v,
|
|
556
556
|
hideTooltip: w || !v,
|
|
557
557
|
children: /* @__PURE__ */ U(O, {
|
|
@@ -564,7 +564,7 @@ var Ce = (e, t) => {
|
|
|
564
564
|
children: /* @__PURE__ */ U(Ve, {
|
|
565
565
|
features: e,
|
|
566
566
|
responseFormat: b,
|
|
567
|
-
systemPrompt:
|
|
567
|
+
systemPrompt: S,
|
|
568
568
|
temperature: C,
|
|
569
569
|
onResponseFormatChange: T,
|
|
570
570
|
onSystemPromptChange: E,
|
|
@@ -577,7 +577,7 @@ var Ce = (e, t) => {
|
|
|
577
577
|
systemPromptTooltip: f,
|
|
578
578
|
temperatureLabel: p,
|
|
579
579
|
temperatureLabels: m,
|
|
580
|
-
temperatureHint:
|
|
580
|
+
temperatureHint: g
|
|
581
581
|
})
|
|
582
582
|
});
|
|
583
583
|
};
|
|
@@ -631,7 +631,7 @@ var Ge = {
|
|
|
631
631
|
toolIcon: "_toolIcon_r268y_5",
|
|
632
632
|
chevronIcon: "_chevronIcon_r268y_9"
|
|
633
633
|
}, qe = ({ onAttachClick: e, attachLabel: t, addMenuTitle: n, menuTitle: r, menuCloseLabel: l, style: d, listClassName: p = "cp-dropdown-overlay !w-[240px]", isDisabled: m = !1, chatSettings: h, extraMenuItems: g, toolsMenuItems: _ = [], onToolToggle: v, toolsMenuTitle: y = "Tools", toolsBackLabel: b = "Back", colors: x }) => {
|
|
634
|
-
let
|
|
634
|
+
let w = s(), [T, E] = V(!1), [D, O] = V(!1), [k, A] = V(!1), j = z(() => a({
|
|
635
635
|
"--aab-selected-tool-icon": x?.selectedToolIcon,
|
|
636
636
|
"--aab-tool-icon": x?.toolIcon,
|
|
637
637
|
"--aab-chevron-icon": x?.chevronIcon
|
|
@@ -681,10 +681,10 @@ var Ge = {
|
|
|
681
681
|
size: c,
|
|
682
682
|
"aria-hidden": !0
|
|
683
683
|
}),
|
|
684
|
-
onClick:
|
|
684
|
+
onClick: w ? () => {
|
|
685
685
|
A(!0), E(!1);
|
|
686
686
|
} : () => void 0,
|
|
687
|
-
...
|
|
687
|
+
...w ? { iconAfter: /* @__PURE__ */ U(F, {
|
|
688
688
|
size: c,
|
|
689
689
|
stroke: 1.5,
|
|
690
690
|
style: j,
|
|
@@ -699,7 +699,7 @@ var Ge = {
|
|
|
699
699
|
size: c,
|
|
700
700
|
"aria-hidden": !0
|
|
701
701
|
}),
|
|
702
|
-
iconAfter:
|
|
702
|
+
iconAfter: w ? /* @__PURE__ */ U(F, {
|
|
703
703
|
size: c,
|
|
704
704
|
stroke: 1.5,
|
|
705
705
|
style: j,
|
|
@@ -713,20 +713,20 @@ var Ge = {
|
|
|
713
713
|
e,
|
|
714
714
|
h,
|
|
715
715
|
g,
|
|
716
|
-
|
|
716
|
+
w,
|
|
717
717
|
M,
|
|
718
718
|
y,
|
|
719
719
|
N,
|
|
720
720
|
j
|
|
721
721
|
]);
|
|
722
|
-
return ee.length === 0 ? null : /* @__PURE__ */ U(H, { children:
|
|
723
|
-
/* @__PURE__ */ U(
|
|
722
|
+
return ee.length === 0 ? null : /* @__PURE__ */ U(H, { children: w ? /* @__PURE__ */ W(H, { children: [
|
|
723
|
+
/* @__PURE__ */ U(C, {
|
|
724
724
|
icon: /* @__PURE__ */ U(oe, {
|
|
725
725
|
size: u.LG,
|
|
726
726
|
"aria-hidden": !0
|
|
727
727
|
}),
|
|
728
728
|
"aria-label": n,
|
|
729
|
-
size:
|
|
729
|
+
size: S.Large,
|
|
730
730
|
tooltipProps: { tooltip: n },
|
|
731
731
|
disabled: m,
|
|
732
732
|
onClick: () => E(!0)
|
|
@@ -786,7 +786,7 @@ var Ge = {
|
|
|
786
786
|
placement: "bottom-start",
|
|
787
787
|
listClassName: p,
|
|
788
788
|
items: ee,
|
|
789
|
-
children: /* @__PURE__ */ U(
|
|
789
|
+
children: /* @__PURE__ */ U(C, {
|
|
790
790
|
icon: /* @__PURE__ */ U(oe, {
|
|
791
791
|
size: u.LG,
|
|
792
792
|
"aria-hidden": !0
|
|
@@ -947,7 +947,7 @@ var Ge = {
|
|
|
947
947
|
}, [b]);
|
|
948
948
|
let x = /* @__PURE__ */ W("div", {
|
|
949
949
|
className: "flex flex-shrink-0 items-center justify-end gap-1",
|
|
950
|
-
children: [/* @__PURE__ */ U(
|
|
950
|
+
children: [/* @__PURE__ */ U(C, {
|
|
951
951
|
icon: /* @__PURE__ */ U(le, {
|
|
952
952
|
size: u.LG,
|
|
953
953
|
"aria-hidden": !0
|
|
@@ -1001,15 +1001,15 @@ var Ge = {
|
|
|
1001
1001
|
icon: /* @__PURE__ */ U(ae, { size: u.LG }),
|
|
1002
1002
|
onClick: () => e?.(),
|
|
1003
1003
|
"aria-label": t
|
|
1004
|
-
}), nt = ({ size: e = 20 }) => /* @__PURE__ */ U(
|
|
1005
|
-
variant:
|
|
1004
|
+
}), nt = ({ size: e = 20 }) => /* @__PURE__ */ U(v, {
|
|
1005
|
+
variant: y.Circular,
|
|
1006
1006
|
width: e,
|
|
1007
1007
|
height: e,
|
|
1008
1008
|
active: !0
|
|
1009
1009
|
}), rt = ({ loadingLabel: e }) => /* @__PURE__ */ W("span", {
|
|
1010
1010
|
className: "flex min-w-0 flex-1 items-center",
|
|
1011
|
-
children: [/* @__PURE__ */ U(
|
|
1012
|
-
variant:
|
|
1011
|
+
children: [/* @__PURE__ */ U(v, {
|
|
1012
|
+
variant: y.Text,
|
|
1013
1013
|
width: "100%",
|
|
1014
1014
|
height: 16,
|
|
1015
1015
|
active: !0
|
|
@@ -1065,7 +1065,7 @@ var Ge = {
|
|
|
1065
1065
|
label: /* @__PURE__ */ W("span", {
|
|
1066
1066
|
className: "flex w-full items-center justify-between gap-2",
|
|
1067
1067
|
style: a({ "--ms-selected-item-check": l?.selectedItemCheck }),
|
|
1068
|
-
children: [/* @__PURE__ */ U(
|
|
1068
|
+
children: [/* @__PURE__ */ U(w, {
|
|
1069
1069
|
text: at(e),
|
|
1070
1070
|
query: d,
|
|
1071
1071
|
maxLines: 1
|
|
@@ -1095,10 +1095,10 @@ var Ge = {
|
|
|
1095
1095
|
menuHeader: z(() => !m && e && e.length > 0 ? /* @__PURE__ */ U("div", {
|
|
1096
1096
|
style: a({ "--ms-search-header-bg": l?.searchHeaderBackground }),
|
|
1097
1097
|
className: o("sticky top-0 z-10 pb-1 pe-2 pt-2", i),
|
|
1098
|
-
children: /* @__PURE__ */ U(
|
|
1098
|
+
children: /* @__PURE__ */ U(_, {
|
|
1099
1099
|
value: d,
|
|
1100
1100
|
placeholder: r?.searchPlaceholder ?? "Search",
|
|
1101
|
-
size:
|
|
1101
|
+
size: S.Small,
|
|
1102
1102
|
wrapperClassName: "border-0",
|
|
1103
1103
|
onChange: f
|
|
1104
1104
|
})
|
|
@@ -1577,7 +1577,7 @@ var kt = {
|
|
|
1577
1577
|
}),
|
|
1578
1578
|
label: /* @__PURE__ */ W("span", {
|
|
1579
1579
|
className: "flex flex-1 items-center justify-between gap-2",
|
|
1580
|
-
children: [/* @__PURE__ */ U(
|
|
1580
|
+
children: [/* @__PURE__ */ U(w, {
|
|
1581
1581
|
text: d.displayName ?? d.id,
|
|
1582
1582
|
query: s,
|
|
1583
1583
|
maxLines: 1,
|
|
@@ -1592,11 +1592,11 @@ var kt = {
|
|
|
1592
1592
|
})
|
|
1593
1593
|
});
|
|
1594
1594
|
}, Nt = ({ isOpen: e, title: t, closeLabel: n, searchPlaceholder: r = "Search", onClose: i, deployments: s, selectedDeploymentId: c, onSelect: l, loadingLabel: u, errorLabel: d, emptyLabel: f, style: p, titleClassName: m = "dial-body-semi-text", labelClassName: h = "dial-small-text", colors: g }) => {
|
|
1595
|
-
let [
|
|
1595
|
+
let [v, y] = V("");
|
|
1596
1596
|
L(() => {
|
|
1597
1597
|
e || y("");
|
|
1598
1598
|
}, [e]);
|
|
1599
|
-
let b = s && s.length > 0, x = u !== void 0,
|
|
1599
|
+
let b = s && s.length > 0, x = u !== void 0, C = !b && !x ? d ?? f : void 0, w = b ? ot(s, v) : [], T = (e) => {
|
|
1600
1600
|
l(e), i();
|
|
1601
1601
|
}, E = a({
|
|
1602
1602
|
"--ci-sheet-divider": g?.divider,
|
|
@@ -1620,16 +1620,16 @@ var kt = {
|
|
|
1620
1620
|
style: E,
|
|
1621
1621
|
children: [b && !x && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U("div", {
|
|
1622
1622
|
className: "flex-shrink-0 px-4 py-[10px]",
|
|
1623
|
-
children: /* @__PURE__ */ U(
|
|
1624
|
-
value:
|
|
1623
|
+
children: /* @__PURE__ */ U(_, {
|
|
1624
|
+
value: v,
|
|
1625
1625
|
placeholder: r,
|
|
1626
|
-
size:
|
|
1626
|
+
size: S.Standard,
|
|
1627
1627
|
onChange: y
|
|
1628
1628
|
})
|
|
1629
|
-
}), /* @__PURE__ */ U("div", { className: o(kt.divider, "h-px flex-shrink-0") })] }), x ? /* @__PURE__ */ U(it, { loadingLabel: u }) :
|
|
1629
|
+
}), /* @__PURE__ */ U("div", { className: o(kt.divider, "h-px flex-shrink-0") })] }), x ? /* @__PURE__ */ U(it, { loadingLabel: u }) : C ? /* @__PURE__ */ U("div", {
|
|
1630
1630
|
role: "list",
|
|
1631
1631
|
className: o(kt.stateLabel, h, "px-4 py-4"),
|
|
1632
|
-
children:
|
|
1632
|
+
children: C
|
|
1633
1633
|
}) : /* @__PURE__ */ U(Ot, {
|
|
1634
1634
|
role: "list",
|
|
1635
1635
|
className: "overflow-y-auto",
|
|
@@ -1641,14 +1641,14 @@ var kt = {
|
|
|
1641
1641
|
items: w,
|
|
1642
1642
|
selectedDeploymentId: c,
|
|
1643
1643
|
labelClassName: h,
|
|
1644
|
-
query:
|
|
1644
|
+
query: v,
|
|
1645
1645
|
onSelect: T
|
|
1646
1646
|
}
|
|
1647
1647
|
})]
|
|
1648
1648
|
})
|
|
1649
1649
|
});
|
|
1650
1650
|
}, Pt = ({ deployments: e, selectedDeploymentId: t, onDeploymentChange: n, modelSelectorLabels: r, isStreaming: i, isMobile: a, isInputDisabled: s = !1, isDisabled: c = !1, style: l, modelPickerOverlay: d, isPickerOpen: m, onPickerToggle: h, onPickerOpenChange: g }) => {
|
|
1651
|
-
let [_, v] = V(!1), { selectorIcon: y, selectorAriaLabel: b, selectedLabel:
|
|
1651
|
+
let [_, v] = V(!1), { selectorIcon: y, selectorAriaLabel: b, selectedLabel: w, menuItems: T, menuHeader: E, onOpenChange: D } = lt({
|
|
1652
1652
|
deployments: e,
|
|
1653
1653
|
selectedDeploymentId: t,
|
|
1654
1654
|
onDeploymentChange: n,
|
|
@@ -1660,9 +1660,9 @@ var kt = {
|
|
|
1660
1660
|
className: Y.modelSelectorCaret,
|
|
1661
1661
|
"aria-hidden": !0
|
|
1662
1662
|
});
|
|
1663
|
-
return a ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(
|
|
1664
|
-
tooltip:
|
|
1665
|
-
children: /* @__PURE__ */ U(
|
|
1663
|
+
return a ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(x, {
|
|
1664
|
+
tooltip: w,
|
|
1665
|
+
children: /* @__PURE__ */ U(C, {
|
|
1666
1666
|
icon: /* @__PURE__ */ W("div", {
|
|
1667
1667
|
className: "flex items-center gap-1",
|
|
1668
1668
|
children: [y, k]
|
|
@@ -1702,8 +1702,8 @@ var kt = {
|
|
|
1702
1702
|
outsideClosable: !0,
|
|
1703
1703
|
renderOverlay: () => d(() => g?.(!1)),
|
|
1704
1704
|
listClassName: "cp-dropdown-overlay !w-[320px]",
|
|
1705
|
-
children: /* @__PURE__ */ U(
|
|
1706
|
-
tooltip:
|
|
1705
|
+
children: /* @__PURE__ */ U(x, {
|
|
1706
|
+
tooltip: w,
|
|
1707
1707
|
children: /* @__PURE__ */ W("button", {
|
|
1708
1708
|
type: "button",
|
|
1709
1709
|
"aria-label": b,
|
|
@@ -1717,8 +1717,8 @@ var kt = {
|
|
|
1717
1717
|
}) : /* @__PURE__ */ U("div", {
|
|
1718
1718
|
className: o(c && O),
|
|
1719
1719
|
"aria-disabled": c || void 0,
|
|
1720
|
-
children: /* @__PURE__ */ U(
|
|
1721
|
-
tooltip:
|
|
1720
|
+
children: /* @__PURE__ */ U(x, {
|
|
1721
|
+
tooltip: w,
|
|
1722
1722
|
children: /* @__PURE__ */ U(p, {
|
|
1723
1723
|
icon: y,
|
|
1724
1724
|
ariaLabel: b,
|
|
@@ -1728,7 +1728,7 @@ var kt = {
|
|
|
1728
1728
|
matchReferenceWidth: !1,
|
|
1729
1729
|
listClassName: "cp-dropdown-overlay !w-[240px] !max-h-80",
|
|
1730
1730
|
onOpenChange: c ? void 0 : D,
|
|
1731
|
-
size:
|
|
1731
|
+
size: S.Standard,
|
|
1732
1732
|
caretIcon: k,
|
|
1733
1733
|
iconClassName: s || c ? O : void 0,
|
|
1734
1734
|
buttonClassName: o("bg-transparent", Y.modelSelectorButton, (s || c) && O && Y.modelSelectorButtonDisabled)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-conversation-input",
|
|
3
3
|
"description": "Conversation message input with model selection, attachments, voice input, and edit mode",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.126",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@epam/ai-dial-attachment-input": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
20
|
+
"@epam/ai-dial-attachment-input": "1.1.0-dev.126",
|
|
21
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.126",
|
|
22
22
|
"@tabler/icons-react": "^3.44.0",
|
|
23
23
|
"react": "^19.0.0",
|
|
24
24
|
"react-dom": "^19.2.6",
|