@epam/ai-dial-conversation-input 1.1.0-dev.162 → 1.1.0-dev.168
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/Input/Input.d.ts.map +1 -1
- package/components/VoiceBar/VoiceBar.d.ts +1 -5
- package/components/VoiceBar/VoiceBar.d.ts.map +1 -1
- package/hooks/useVoiceRecorder.d.ts +0 -2
- package/hooks/useVoiceRecorder.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +413 -425
- package/models/ConversationInput.d.ts +0 -2
- package/models/ConversationInput.d.ts.map +1 -1
- package/models/Input.d.ts +0 -2
- package/models/Input.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAeA,OAAO,EAGL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAWrD,wIAAwI;AACxI,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAeA,OAAO,EAGL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAWrD,wIAAwI;AACxI,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA6ehC,CAAC"}
|
|
@@ -6,8 +6,6 @@ export interface VoiceBarProps {
|
|
|
6
6
|
state: VoiceRecorderState;
|
|
7
7
|
/** Stable ref to the live `AnalyserNode` during recording; `.current` is `null` when idle. */
|
|
8
8
|
analyserNodeRef: RefObject<AnalyserNode | null>;
|
|
9
|
-
/** Elapsed recording time in whole seconds. */
|
|
10
|
-
elapsedSeconds: number;
|
|
11
9
|
/** Error message in `error` state; `null` otherwise. */
|
|
12
10
|
errorMessage: string | null;
|
|
13
11
|
/** Called when the user clicks the stop button to finish recording. */
|
|
@@ -18,13 +16,11 @@ export interface VoiceBarProps {
|
|
|
18
16
|
stopLabel?: string;
|
|
19
17
|
/** Accessible label for the discard / cancel button. Defaults to `'Discard recording'`. */
|
|
20
18
|
discardLabel?: string;
|
|
21
|
-
/** Accessible label for the recording timer region. Defaults to `'Recording time'`. */
|
|
22
|
-
timerLabel?: string;
|
|
23
19
|
/** CSS custom properties forwarded from the parent (e.g. `--ci-bg`, `--ci-border`). */
|
|
24
20
|
style?: CSSProperties;
|
|
25
21
|
/** Extra class names applied to the root element. */
|
|
26
22
|
className?: string;
|
|
27
23
|
}
|
|
28
|
-
/** Voice recording bar:
|
|
24
|
+
/** Voice recording bar: scrolling waveform, stop and discard controls. */
|
|
29
25
|
export declare const VoiceBar: FC<VoiceBarProps>;
|
|
30
26
|
//# sourceMappingURL=VoiceBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceBar.d.ts","sourceRoot":"","sources":["../../../src/components/VoiceBar/VoiceBar.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,EACP,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"VoiceBar.d.ts","sourceRoot":"","sources":["../../../src/components/VoiceBar/VoiceBar.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,EACP,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AASlE,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,8FAA8F;IAC9F,eAAe,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAChD,wDAAwD;IACxD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kEAAkE;IAClE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,sFAAsF;IACtF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uFAAuF;IACvF,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0EAA0E;AAC1E,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA0LtC,CAAC"}
|
|
@@ -21,8 +21,6 @@ export interface UseVoiceRecorderResult {
|
|
|
21
21
|
* Passed to `VoiceBar` for waveform rendering.
|
|
22
22
|
*/
|
|
23
23
|
analyserNodeRef: React.RefObject<AnalyserNode | null>;
|
|
24
|
-
/** Elapsed recording time in whole seconds. Resets to `0` when transitioning to `idle`. */
|
|
25
|
-
elapsedSeconds: number;
|
|
26
24
|
/** Human-readable error message in `error` state, otherwise `null`. */
|
|
27
25
|
errorMessage: string | null;
|
|
28
26
|
/** Requests microphone access and starts recording. No-op unless `state === 'idle'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceRecorder.d.ts","sourceRoot":"","sources":["../../src/hooks/useVoiceRecorder.ts"],"names":[],"mappings":"AAEA,uDAAuD;AACvD,oBAAY,kBAAkB;IAC5B,0DAA0D;IAC1D,IAAI,SAAS;IACb,sDAAsD;IACtD,SAAS,cAAc;IACvB,2EAA2E;IAC3E,KAAK,UAAU;CAChB;AAED,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,uGAAuG;IACvG,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACrC;AAED,0CAA0C;AAC1C,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IACtD,
|
|
1
|
+
{"version":3,"file":"useVoiceRecorder.d.ts","sourceRoot":"","sources":["../../src/hooks/useVoiceRecorder.ts"],"names":[],"mappings":"AAEA,uDAAuD;AACvD,oBAAY,kBAAkB;IAC5B,0DAA0D;IAC1D,IAAI,SAAS;IACb,sDAAsD;IACtD,SAAS,cAAc;IACvB,2EAA2E;IAC3E,KAAK,UAAU;CAChB;AAED,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,uGAAuG;IACvG,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACrC;AAED,0CAA0C;AAC1C,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IACtD,uEAAuE;IACvE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wFAAwF;IACxF,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B;;;OAGG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,0FAA0F;IAC1F,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAYD,yDAAyD;AACzD,eAAO,MAAM,gBAAgB,GAAI,oBAE9B,uBAAuB,KAAG,sBAoH5B,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@keyframes _slide-up_1d50f_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._backdrop_1d50f_9{background:var(--ci-backdrop,var(--bg-backdrop,#161b2d4d))}._sheet_1d50f_13{background:var(--ci-sheet-bg,var(--bg-layer-raised,#fcfcfc));animation:.3s cubic-bezier(.32,.72,0,1) _slide-up_1d50f_1}._title_1d50f_18{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._divider_1d50f_22{background:var(--ci-sheet-divider,var(--stroke-tertiary,#e0e6f0))}._item_5iycw_1{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_5iycw_1:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_5iycw_1:active{background:var(--ci-sheet-item-active,var(--bg-layer-4,#d1dbea))}._itemIcon_5iycw_11{color:var(--ci-sheet-icon,var(--text-secondary,#57647a))}._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_1fv6z_1{color:var(--tbs-icon-text,var(--text-secondary,#57647a))}._selectedIcon_1fv6z_5{color:var(--tbs-selected-icon-text,var(--text-accent,#1d4ed8))}._selectedToolIcon_r268y_1{color:var(--aab-selected-tool-icon,var(--text-accent,#1d4ed8))}._toolIcon_r268y_5{color:var(--aab-tool-icon,var(--text-secondary,#57647a))}._chevronIcon_r268y_9{color:var(--aab-chevron-icon,var(--text-secondary,#57647a))}._chip_1gu87_1{background:var(--ci-chip-bg,var(--bg-layer-base,#f5f7fa));border-color:var(--ci-chip-border,var(--stroke-secondary,#d1dbea))}._chipIcon_1gu87_6{color:var(--ci-chip-icon,var(--text-secondary,#57647a))}._chipText_1gu87_10{color:var(--ci-chip-text,var(--text-primary,#161b2d))}._chipClose_1gu87_14{color:var(--ci-chip-close,var(--text-secondary,#57647a))}._chipClose_1gu87_14:hover,._chipClose_1gu87_14:focus-visible{color:var(--ci-chip-close-hover,var(--text-primary,#161b2d))}._wrapper_teqwe_1{background:var(--ci-bg,var(--bg-control-neutral,#fcfcfc));border-color:var(--ci-border,var(--stroke-tertiary,#e0e6f0))}._wrapper_teqwe_1:focus-within,._wrapper_teqwe_1:active{outline-color:var(--ci-border-focus,var(--stroke-focus-blue,#6785fb))}._wrapper_teqwe_1._wrapperDisabled_teqwe_8{color:var(--ci-text-disabled,var(--text-control-disable-beta,#848e9c));cursor:not-allowed}._textarea_teqwe_13{color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_teqwe_13::placeholder{color:var(--ci-placeholder,var(--text-secondary,#57647a))}._textarea_teqwe_13:disabled{color:var(--ci-text-disabled,var(--text-control-disable-beta,#848e9c));cursor:not-allowed}._modelSelectorButton_teqwe_24 ._modelSelectorCaret_teqwe_24{color:var(--ci-model-selector-caret-color,var(--text-primary,#161b2d))}._modelSelectorButton_teqwe_24:hover{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._modelSelectorButton_teqwe_24:active{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-active,#2764d933))}._modelSelectorButton_teqwe_24._modelSelectorButtonDisabled_teqwe_33{opacity:.5}._modelSelectorButton_teqwe_24._modelSelectorButtonDisabled_teqwe_33 ._modelSelectorCaret_teqwe_24{color:var(--ci-model-selector-disabled-color,var(--text-control-disable-beta,#848e9c))}.
|
|
1
|
+
@keyframes _slide-up_1d50f_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._backdrop_1d50f_9{background:var(--ci-backdrop,var(--bg-backdrop,#161b2d4d))}._sheet_1d50f_13{background:var(--ci-sheet-bg,var(--bg-layer-raised,#fcfcfc));animation:.3s cubic-bezier(.32,.72,0,1) _slide-up_1d50f_1}._title_1d50f_18{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._divider_1d50f_22{background:var(--ci-sheet-divider,var(--stroke-tertiary,#e0e6f0))}._item_5iycw_1{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_5iycw_1:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_5iycw_1:active{background:var(--ci-sheet-item-active,var(--bg-layer-4,#d1dbea))}._itemIcon_5iycw_11{color:var(--ci-sheet-icon,var(--text-secondary,#57647a))}._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_1fv6z_1{color:var(--tbs-icon-text,var(--text-secondary,#57647a))}._selectedIcon_1fv6z_5{color:var(--tbs-selected-icon-text,var(--text-accent,#1d4ed8))}._selectedToolIcon_r268y_1{color:var(--aab-selected-tool-icon,var(--text-accent,#1d4ed8))}._toolIcon_r268y_5{color:var(--aab-tool-icon,var(--text-secondary,#57647a))}._chevronIcon_r268y_9{color:var(--aab-chevron-icon,var(--text-secondary,#57647a))}._chip_1gu87_1{background:var(--ci-chip-bg,var(--bg-layer-base,#f5f7fa));border-color:var(--ci-chip-border,var(--stroke-secondary,#d1dbea))}._chipIcon_1gu87_6{color:var(--ci-chip-icon,var(--text-secondary,#57647a))}._chipText_1gu87_10{color:var(--ci-chip-text,var(--text-primary,#161b2d))}._chipClose_1gu87_14{color:var(--ci-chip-close,var(--text-secondary,#57647a))}._chipClose_1gu87_14:hover,._chipClose_1gu87_14:focus-visible{color:var(--ci-chip-close-hover,var(--text-primary,#161b2d))}._wrapper_teqwe_1{background:var(--ci-bg,var(--bg-control-neutral,#fcfcfc));border-color:var(--ci-border,var(--stroke-tertiary,#e0e6f0))}._wrapper_teqwe_1:focus-within,._wrapper_teqwe_1:active{outline-color:var(--ci-border-focus,var(--stroke-focus-blue,#6785fb))}._wrapper_teqwe_1._wrapperDisabled_teqwe_8{color:var(--ci-text-disabled,var(--text-control-disable-beta,#848e9c));cursor:not-allowed}._textarea_teqwe_13{color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_teqwe_13::placeholder{color:var(--ci-placeholder,var(--text-secondary,#57647a))}._textarea_teqwe_13:disabled{color:var(--ci-text-disabled,var(--text-control-disable-beta,#848e9c));cursor:not-allowed}._modelSelectorButton_teqwe_24 ._modelSelectorCaret_teqwe_24{color:var(--ci-model-selector-caret-color,var(--text-primary,#161b2d))}._modelSelectorButton_teqwe_24:hover{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._modelSelectorButton_teqwe_24:active{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-active,#2764d933))}._modelSelectorButton_teqwe_24._modelSelectorButtonDisabled_teqwe_33{opacity:.5}._modelSelectorButton_teqwe_24._modelSelectorButtonDisabled_teqwe_33 ._modelSelectorCaret_teqwe_24{color:var(--ci-model-selector-disabled-color,var(--text-control-disable-beta,#848e9c))}._wrapperError_129ri_1{border-color:var(--ci-voice-error,var(--stroke-error,#ae2f2f))}._waveformCanvas_129ri_5{color:var(--ci-voice-waveform,var(--text-primary,#161b2d))}@keyframes _recording-pulse_129ri_1{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.8)}}._recordingDot_129ri_19{background:var(--ci-voice-accent,var(--text-error,#ae2f2f));animation:1.2s ease-in-out infinite _recording-pulse_129ri_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_s5khb_1{background:var(--ci-sheet-divider,var(--bg-layer-4,#d1dbea))}._item_s5khb_5{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_s5khb_5:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_s5khb_5:active{background:var(--ci-sheet-item-active,var(--bg-layer-4,#d1dbea))}._itemIcon_s5khb_15{color:var(--ci-sheet-icon,var(--text-secondary,#57647a))}._checkIcon_s5khb_19{color:var(--ci-check-icon,var(--text-accent,#1d4ed8))}._stateLabel_s5khb_23{color:var(--ci-sheet-text,var(--text-secondary,#57647a))}._welcome_n2ph8_1{color:var(--ci-welcome-color,var(--text-primary,#161b2d))}
|
|
2
2
|
/*$vite$:1*/
|