@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 CHANGED
@@ -171,8 +171,6 @@ type ChatInputProps = {
171
171
  onChange: (value: string) => void;
172
172
  /** On send handler */
173
173
  onSend: () => void;
174
- /** On pause/cancel handler */
175
- onPause?: () => void;
176
174
  /** Disabled state */
177
175
  disabled?: boolean;
178
176
  /** Placeholder text */
package/dist/index.d.ts CHANGED
@@ -171,8 +171,6 @@ type ChatInputProps = {
171
171
  onChange: (value: string) => void;
172
172
  /** On send handler */
173
173
  onSend: () => void;
174
- /** On pause/cancel handler */
175
- onPause?: () => void;
176
174
  /** Disabled state */
177
175
  disabled?: boolean;
178
176
  /** Placeholder text */
package/dist/index.js CHANGED
@@ -62,7 +62,6 @@ function ChatInput({
62
62
  value,
63
63
  onChange,
64
64
  onSend,
65
- onPause,
66
65
  disabled = false,
67
66
  placeholder = "Type your message...",
68
67
  isWaitingForResponse = false,
@@ -94,7 +93,6 @@ function ChatInput({
94
93
  }
95
94
  };
96
95
  const isInputDisabled = disabled || isWaitingForResponse;
97
- const showPauseButton = isWaitingForResponse && onPause;
98
96
  const showVoiceButton = enableVoice && onVoicePress != null;
99
97
  const isVoiceButtonDisabled = isWaitingForResponse || !voiceAvailable || !isSessionParamsConfigured;
100
98
  const canSend = !isInputDisabled && !!value.trim();
@@ -175,22 +173,7 @@ function ChatInput({
175
173
  ]
176
174
  }
177
175
  ),
178
- showPauseButton ? /* @__PURE__ */ jsxRuntime.jsx(
179
- "button",
180
- {
181
- type: "button",
182
- onClick: onPause,
183
- className: cn(
184
- "flex items-center justify-center",
185
- "w-8 h-8 rounded-full",
186
- "payman-chat-input-btn-pause",
187
- "hover:opacity-90 active:scale-95",
188
- "transition-all duration-150"
189
- ),
190
- "aria-label": "Stop response",
191
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "w-3.5 h-3.5", fill: "currentColor" })
192
- }
193
- ) : /* @__PURE__ */ jsxRuntime.jsx(
176
+ /* @__PURE__ */ jsxRuntime.jsx(
194
177
  "button",
195
178
  {
196
179
  type: "button",
@@ -1573,7 +1556,6 @@ function PaymanChat({
1573
1556
  value: inputValue,
1574
1557
  onChange: setInputValue,
1575
1558
  onSend: handleSend,
1576
- onPause: cancelStream,
1577
1559
  disabled: isInputDisabled,
1578
1560
  placeholder: isRecording ? "Listening..." : placeholder,
1579
1561
  isWaitingForResponse,