@paymanai/payman-ask-sdk 1.2.10 → 1.2.11
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/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -19
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +3 -16
- package/dist/index.native.js.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -56,7 +56,6 @@ function ChatInput({
|
|
|
56
56
|
value,
|
|
57
57
|
onChange,
|
|
58
58
|
onSend,
|
|
59
|
-
onPause,
|
|
60
59
|
disabled = false,
|
|
61
60
|
placeholder = "Type your message...",
|
|
62
61
|
isWaitingForResponse = false,
|
|
@@ -88,7 +87,6 @@ function ChatInput({
|
|
|
88
87
|
}
|
|
89
88
|
};
|
|
90
89
|
const isInputDisabled = disabled || isWaitingForResponse;
|
|
91
|
-
const showPauseButton = isWaitingForResponse && onPause;
|
|
92
90
|
const showVoiceButton = enableVoice && onVoicePress != null;
|
|
93
91
|
const isVoiceButtonDisabled = isWaitingForResponse || !voiceAvailable || !isSessionParamsConfigured;
|
|
94
92
|
const canSend = !isInputDisabled && !!value.trim();
|
|
@@ -169,22 +167,7 @@ function ChatInput({
|
|
|
169
167
|
]
|
|
170
168
|
}
|
|
171
169
|
),
|
|
172
|
-
|
|
173
|
-
"button",
|
|
174
|
-
{
|
|
175
|
-
type: "button",
|
|
176
|
-
onClick: onPause,
|
|
177
|
-
className: cn(
|
|
178
|
-
"flex items-center justify-center",
|
|
179
|
-
"w-8 h-8 rounded-full",
|
|
180
|
-
"payman-chat-input-btn-pause",
|
|
181
|
-
"hover:opacity-90 active:scale-95",
|
|
182
|
-
"transition-all duration-150"
|
|
183
|
-
),
|
|
184
|
-
"aria-label": "Stop response",
|
|
185
|
-
children: /* @__PURE__ */ jsx(Square, { className: "w-3.5 h-3.5", fill: "currentColor" })
|
|
186
|
-
}
|
|
187
|
-
) : /* @__PURE__ */ jsx(
|
|
170
|
+
/* @__PURE__ */ jsx(
|
|
188
171
|
"button",
|
|
189
172
|
{
|
|
190
173
|
type: "button",
|
|
@@ -1567,7 +1550,6 @@ function PaymanChat({
|
|
|
1567
1550
|
value: inputValue,
|
|
1568
1551
|
onChange: setInputValue,
|
|
1569
1552
|
onSend: handleSend,
|
|
1570
|
-
onPause: cancelStream,
|
|
1571
1553
|
disabled: isInputDisabled,
|
|
1572
1554
|
placeholder: isRecording ? "Listening..." : placeholder,
|
|
1573
1555
|
isWaitingForResponse,
|