@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.
@@ -99,7 +99,6 @@ function ChatInput({
99
99
  value,
100
100
  onChange,
101
101
  onSend,
102
- onPause,
103
102
  disabled = false,
104
103
  placeholder = "Chat with Claude",
105
104
  isWaitingForResponse = false,
@@ -118,7 +117,6 @@ function ChatInput({
118
117
  transcribedText
119
118
  }) {
120
119
  const isInputDisabled = disabled || isWaitingForResponse;
121
- const showPauseButton = isWaitingForResponse && onPause;
122
120
  const showVoiceButton = enableVoice && onVoicePress != null;
123
121
  const isVoiceButtonDisabled = isWaitingForResponse || !voiceAvailable || !isSessionParamsConfigured;
124
122
  const canSend = !isInputDisabled && value.trim().length > 0;
@@ -304,17 +302,7 @@ function ChatInput({
304
302
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: s.iconBtnInner, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReactNative.Mic, { size: 22, color: "#6B7280", strokeWidth: 2 }) })
305
303
  }
306
304
  ),
307
- showPauseButton ? /* @__PURE__ */ jsxRuntime.jsx(
308
- reactNative.Pressable,
309
- {
310
- onPress: onPause,
311
- style: ({ pressed }) => [
312
- s.sendBtn,
313
- pressed && s.btnPressed
314
- ],
315
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: s.sendBtnInner, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReactNative.Pause, { size: 18, color: "#FFFFFF" }) })
316
- }
317
- ) : /* @__PURE__ */ jsxRuntime.jsx(
305
+ /* @__PURE__ */ jsxRuntime.jsx(
318
306
  reactNative.Pressable,
319
307
  {
320
308
  onPress: onSend,
@@ -1899,7 +1887,7 @@ function PaymanChat({
1899
1887
  const approveUserAction = chat.approveUserAction ?? NOOP_ASYNC;
1900
1888
  const rejectUserAction = chat.rejectUserAction ?? NOOP_ASYNC;
1901
1889
  const resendOtp = chat.resendOtp ?? NOOP_ASYNC;
1902
- typeof chat.approveUserAction === "function" && typeof chat.rejectUserAction === "function" && typeof chat.resendOtp === "function";
1890
+ const isUserActionSupported = typeof chat.approveUserAction === "function" && typeof chat.rejectUserAction === "function" && typeof chat.resendOtp === "function";
1903
1891
  const {
1904
1892
  voiceState,
1905
1893
  transcribedText,
@@ -2077,7 +2065,6 @@ function PaymanChat({
2077
2065
  value: inputValue,
2078
2066
  onChange: setInputValue,
2079
2067
  onSend: handleSend,
2080
- onPause: cancelStream,
2081
2068
  disabled: isInputDisabled,
2082
2069
  placeholder,
2083
2070
  isWaitingForResponse,
@@ -2098,7 +2085,7 @@ function PaymanChat({
2098
2085
  /* @__PURE__ */ jsxRuntime.jsx(
2099
2086
  UserActionModal,
2100
2087
  {
2101
- isOpen: true,
2088
+ isOpen: isUserActionSupported && userActionState.request !== null,
2102
2089
  userActionRequest: userActionState.request,
2103
2090
  onApprove: approveUserAction,
2104
2091
  onReject: rejectUserAction,