@b3dotfun/sdk 0.0.89-alpha.0 → 0.0.89-alpha.1

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.
@@ -151,7 +151,7 @@ function AnySpendCustomInner({ loadOrder, mode = "modal", activeTab: activeTabPr
151
151
  const searchParams = (0, react_2.useSearchParamsSSR)();
152
152
  const router = (0, react_2.useRouter)();
153
153
  const [activePanel, setActivePanel] = (0, react_5.useState)(loadOrder ? PanelView.ORDER_DETAILS : PanelView.CONFIRM_ORDER);
154
- const [activeTab, setActiveTab] = (0, react_5.useState)(activeTabProps);
154
+ const [activeTab, setActiveTab] = (0, react_5.useState)(forceFiatPayment ? "fiat" : activeTabProps);
155
155
  // Payment method state with dual-state system (auto + explicit user selection)
156
156
  // Note: AnySpendCustom doesn't use auto-selection, only explicit user selection
157
157
  const { setSelectedCryptoPaymentMethod, effectiveCryptoPaymentMethod, resetPaymentMethods } = (0, useCryptoPaymentMethodState_1.useCryptoPaymentMethodState)();
@@ -112,7 +112,7 @@ function AnySpendCustomInner({ loadOrder, mode = "modal", activeTab: activeTabPr
112
112
  const searchParams = useSearchParamsSSR();
113
113
  const router = useRouter();
114
114
  const [activePanel, setActivePanel] = useState(loadOrder ? PanelView.ORDER_DETAILS : PanelView.CONFIRM_ORDER);
115
- const [activeTab, setActiveTab] = useState(activeTabProps);
115
+ const [activeTab, setActiveTab] = useState(forceFiatPayment ? "fiat" : activeTabProps);
116
116
  // Payment method state with dual-state system (auto + explicit user selection)
117
117
  // Note: AnySpendCustom doesn't use auto-selection, only explicit user selection
118
118
  const { setSelectedCryptoPaymentMethod, effectiveCryptoPaymentMethod, resetPaymentMethods } = useCryptoPaymentMethodState();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.89-alpha.0",
3
+ "version": "0.0.89-alpha.1",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -253,7 +253,7 @@ function AnySpendCustomInner({
253
253
  const [activePanel, setActivePanel] = useState<PanelView>(
254
254
  loadOrder ? PanelView.ORDER_DETAILS : PanelView.CONFIRM_ORDER,
255
255
  );
256
- const [activeTab, setActiveTab] = useState<"crypto" | "fiat">(activeTabProps);
256
+ const [activeTab, setActiveTab] = useState<"crypto" | "fiat">(forceFiatPayment ? "fiat" : activeTabProps);
257
257
 
258
258
  // Payment method state with dual-state system (auto + explicit user selection)
259
259
  // Note: AnySpendCustom doesn't use auto-selection, only explicit user selection