@epam/ai-dial-conversation-input 1.1.0-dev.113 → 1.1.0-dev.114
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/ChatSettingsModal/ChatSettingsModal.d.ts +6 -1
- package/components/ChatSettingsModal/ChatSettingsModal.d.ts.map +1 -1
- package/hooks/useModelSelector.d.ts +19 -2
- package/hooks/useModelSelector.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +502 -541
- package/package.json +3 -4
- package/utils/concurrency.d.ts +0 -2
- package/utils/concurrency.d.ts.map +1 -1
|
@@ -39,7 +39,12 @@ export interface ChatSettingsModalProps {
|
|
|
39
39
|
saveLabel?: string;
|
|
40
40
|
/** Tooltip shown on the save button when it is disabled (e.g. no response format selected). */
|
|
41
41
|
saveDisabledTooltip?: string;
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* CSS class applied for the modal background. Defaults to a
|
|
44
|
+
* `--bg-layer-sunken` background. `DialPopup` renders through a portal and
|
|
45
|
+
* accepts no `style`, so this class (or setting `--csm-bg` at theme level) is
|
|
46
|
+
* the only way to override the surface color — there is no `colors` prop.
|
|
47
|
+
*/
|
|
43
48
|
backgroundClassName?: string;
|
|
44
49
|
}
|
|
45
50
|
/** Desktop modal for chat settings (system prompt, temperature, response format). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSettingsModal.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSettingsModal/ChatSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO3D,OAAO,EAAQ,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI7D,iDAAiD;AACjD,MAAM,WAAW,sBAAsB;IACrC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,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAiFxD,CAAC;;AAEF,wBAAuC"}
|
|
@@ -14,8 +14,25 @@ export interface UseModelSelectorOptions {
|
|
|
14
14
|
modelSelectorLabels?: ModelSelectorLabels;
|
|
15
15
|
/** Class applied to the sticky search header wrapper for theming. Defaults to a `--bg-layer-raised` background. */
|
|
16
16
|
searchHeaderClassName?: string;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Class applied to the currently selected menu item. Defaults to a
|
|
19
|
+
* `--bg-accent-primary-alpha` background. The dropdown item is owned by the
|
|
20
|
+
* ui-kit and takes no `style`, so its background can only be overridden
|
|
21
|
+
* through this class or by setting `--ms-selected-item-bg` at theme level —
|
|
22
|
+
* unlike the other two, it has no entry in {@link ModelSelectorColors}.
|
|
23
|
+
*/
|
|
18
24
|
selectedItemClassName?: string;
|
|
25
|
+
/** Class applied to the checkmark icon on the currently selected menu item. Defaults to a `--text-accent` color. */
|
|
26
|
+
selectedItemCheckClassName?: string;
|
|
27
|
+
/** Color overrides applied as CSS custom properties. */
|
|
28
|
+
colors?: ModelSelectorColors;
|
|
29
|
+
}
|
|
30
|
+
/** Color overrides for the model-selector menu, applied as CSS custom properties. */
|
|
31
|
+
export interface ModelSelectorColors {
|
|
32
|
+
/** Sticky search header background. Fallback: `--bg-layer-raised`. */
|
|
33
|
+
searchHeaderBackground?: string;
|
|
34
|
+
/** Checkmark icon color on the selected row. Fallback: `--text-accent`. */
|
|
35
|
+
selectedItemCheck?: string;
|
|
19
36
|
}
|
|
20
37
|
/** Values returned by `useModelSelector`. */
|
|
21
38
|
export interface UseModelSelectorResult {
|
|
@@ -33,5 +50,5 @@ export interface UseModelSelectorResult {
|
|
|
33
50
|
onOpenChange: (isOpen: boolean) => void;
|
|
34
51
|
}
|
|
35
52
|
/** Encapsulates model selector state, filtering, and menu construction. */
|
|
36
|
-
export declare const useModelSelector: ({ deployments, selectedDeploymentId, onDeploymentChange, modelSelectorLabels, searchHeaderClassName, selectedItemClassName, }: UseModelSelectorOptions) => UseModelSelectorResult;
|
|
53
|
+
export declare const useModelSelector: ({ deployments, selectedDeploymentId, onDeploymentChange, modelSelectorLabels, searchHeaderClassName, selectedItemClassName, selectedItemCheckClassName, colors, }: UseModelSelectorOptions) => UseModelSelectorResult;
|
|
37
54
|
//# sourceMappingURL=useModelSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModelSelector.d.ts","sourceRoot":"","sources":["../../src/hooks/useModelSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useModelSelector.d.ts","sourceRoot":"","sources":["../../src/hooks/useModelSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAM1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAQ3D,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,gIAAgI;IAChI,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,wCAAwC;IACxC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,yDAAyD;IACzD,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,+CAA+C;IAC/C,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mHAAmH;IACnH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oHAAoH;IACpH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,qFAAqF;AACrF,MAAM,WAAW,mBAAmB;IAClC,sEAAsE;IACtE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,6CAA6C;AAC7C,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,YAAY,EAAE,SAAS,CAAC;IACxB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0GAA0G;IAC1G,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,8CAA8C;IAC9C,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,0DAA0D;IAC1D,UAAU,EAAE,SAAS,CAAC;IACtB,wFAAwF;IACxF,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,GAAI,mKAS9B,uBAAuB,KAAG,sBAkJ5B,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@keyframes _slide-up_1yh0r_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._backdrop_1yh0r_9{background:var(--ci-backdrop,var(--bg-backdrop,#161b2d4d))}._sheet_1yh0r_13{background:var(--ci-sheet-bg,var(--bg-layer-raised,#fcfcfc));animation:.3s cubic-bezier(.32,.72,0,1) _slide-up_1yh0r_1}._title_1yh0r_18{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._divider_1yh0r_22{background:var(--ci-sheet-divider,var(--bg-layer-4,#d1dbea))}._item_p5aqh_1{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_p5aqh_1:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_p5aqh_1:active{background:var(--ci-sheet-item-active,var(--bg-layer-4,#d1dbea))}._itemIcon_p5aqh_11{color:var(--ci-sheet-icon,var(--text-secondary,#6b7280))}._label_14i7c_1{color:var(--csf-label-text,var(--text-primary,#161b2d))!important}.
|
|
1
|
+
@keyframes _slide-up_1yh0r_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._backdrop_1yh0r_9{background:var(--ci-backdrop,var(--bg-backdrop,#161b2d4d))}._sheet_1yh0r_13{background:var(--ci-sheet-bg,var(--bg-layer-raised,#fcfcfc));animation:.3s cubic-bezier(.32,.72,0,1) _slide-up_1yh0r_1}._title_1yh0r_18{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._divider_1yh0r_22{background:var(--ci-sheet-divider,var(--bg-layer-4,#d1dbea))}._item_p5aqh_1{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_p5aqh_1:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_p5aqh_1:active{background:var(--ci-sheet-item-active,var(--bg-layer-4,#d1dbea))}._itemIcon_p5aqh_11{color:var(--ci-sheet-icon,var(--text-secondary,#6b7280))}._label_14i7c_1{color:var(--csf-label-text,var(--text-primary,#161b2d))!important}._modal_od073_1{background:var(--csm-bg,var(--bg-layer-sunken,#eef1f7))!important}._icon_1oz9i_1{color:var(--tbs-icon-text,var(--text-secondary,#6b7280))}._selectedIcon_1oz9i_5{color:var(--tbs-selected-icon-text,var(--text-accent,#1d4ed8))}._selectedToolIcon_1lz31_1{color:var(--aab-selected-tool-icon,var(--text-accent,#1d4ed8))}._toolIcon_1lz31_5{color:var(--aab-tool-icon,var(--text-secondary,#6b7280))}._chevronIcon_1lz31_9{color:var(--aab-chevron-icon,var(--text-secondary,#6b7280))}._chip_16mrh_1{background:var(--ci-chip-bg,var(--bg-layer-base,#f5f7fa));border-color:var(--ci-chip-border,var(--stroke-secondary,#d1dbea))}._chipIcon_16mrh_6{color:var(--ci-chip-icon,var(--text-secondary,#6b7280))}._chipText_16mrh_10{color:var(--ci-chip-text,var(--text-primary,#161b2d))}._chipClose_16mrh_14{color:var(--ci-chip-close,var(--text-secondary,#6b7280))}._chipClose_16mrh_14:hover,._chipClose_16mrh_14:focus-visible{color:var(--ci-chip-close-hover,var(--text-primary,#161b2d))}._wrapper_4e8i8_1{background:var(--ci-bg,var(--bg-control-neutral,#fcfcfc));border-color:var(--ci-border,var(--stroke-tertiary,#e0e6f0))}._wrapper_4e8i8_1:focus-within,._wrapper_4e8i8_1:active{border-color:var(--ci-border-focus,var(--stroke-info,#124ace))}._wrapper_4e8i8_1._wrapperDisabled_4e8i8_8{color:var(--ci-text-disabled,var(--text-control-disable,#6b7280));cursor:not-allowed}._textarea_4e8i8_13{color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_4e8i8_13::placeholder{color:var(--ci-placeholder,var(--text-secondary,#6b7280))}._textarea_4e8i8_13:disabled{color:var(--ci-text-disabled,var(--text-control-disable,#6b7280));cursor:not-allowed}._modelSelectorButton_4e8i8_24 ._modelSelectorCaret_4e8i8_24{color:var(--ci-model-selector-caret-color,var(--text-primary,#161b2d))}._modelSelectorButton_4e8i8_24:hover{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._modelSelectorButton_4e8i8_24:active{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-active,#2764d933))}._modelSelectorButton_4e8i8_24._modelSelectorButtonDisabled_4e8i8_33{opacity:.5}._modelSelectorButton_4e8i8_24._modelSelectorButtonDisabled_4e8i8_33 ._modelSelectorCaret_4e8i8_24{color:var(--ci-model-selector-disabled-color,var(--text-control-disable,#6b7280))}._wrapperError_fbvnl_1{border-color:var(--ci-voice-error,var(--stroke-error,#ae2f2f))}._waveformCanvas_fbvnl_5{color:var(--ci-voice-waveform,var(--text-primary,#161b2d))}._timer_fbvnl_9{color:var(--ci-voice-waveform,var(--text-primary,#161b2d));font-variant-numeric:tabular-nums;white-space:nowrap}@keyframes _recording-pulse_fbvnl_1{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.8)}}._recordingDot_fbvnl_25{background:var(--ci-voice-accent,var(--text-error,#ae2f2f));animation:1.2s ease-in-out infinite _recording-pulse_fbvnl_1}._searchHeader_ibyso_1{background:var(--ms-search-header-bg,var(--bg-layer-raised,#fcfcfc))}._selectedItem_ibyso_5{background:var(--ms-selected-item-bg,var(--bg-accent-primary-alpha,#7da4ff2e))}._selectedItemCheck_ibyso_9{color:var(--ms-selected-item-check,var(--text-accent,#1d4ed8))}._divider_f1dq4_1{background:var(--ci-sheet-divider,var(--bg-layer-4,#d1dbea))}._item_f1dq4_5{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_f1dq4_5:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_f1dq4_5:active{background:var(--ci-sheet-item-active,var(--bg-layer-4,#d1dbea))}._itemIcon_f1dq4_15{color:var(--ci-sheet-icon,var(--text-secondary,#6b7280))}._checkIcon_f1dq4_19{color:var(--ci-check-icon,var(--text-accent,#1d4ed8))}._stateLabel_f1dq4_23{color:var(--ci-sheet-text,var(--text-secondary,#6b7280))}._welcome_n2ph8_1{color:var(--ci-welcome-color,var(--text-primary,#161b2d))}
|
|
2
2
|
/*$vite$:1*/
|