@swype-org/react-sdk 0.1.285 → 0.1.287

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.cjs CHANGED
@@ -2091,23 +2091,24 @@ function resolvePhase(state) {
2091
2091
  const branchCompleted = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && transferCompleted && !state.verificationTarget && !needsPasskeyBootstrap;
2092
2092
  const branchFailed = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && state.transfer?.status === "FAILED";
2093
2093
  const branchProcessing = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && (state.creatingTransfer || isTransferAwaitingCompletion(state.transfer));
2094
- const branchKeepFundingSubflow = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && isFundingSourceSubflow;
2095
- const branchMobileWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && state.mobileFlow && state.deeplinkUri != null;
2096
- const branchKeepGuestPreauthDesktopOpenWallet = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && currentPhase.guestDesktopExtension === true && state.guestPreauthorizing && !state.privyAuthenticated && !state.loginRequested;
2097
- const branchKeepGuestWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && state.guestPreauthorizing && state.privyAuthenticated && state.activeCredentialId != null;
2098
- const branchGuestTokenPicker = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && guestTokenPickerEligible;
2099
- const branchKeepWalletPickerSwitch = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && walletPickerSwitchEligible;
2100
- const branchInitializingPrivy = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !state.privyReady;
2101
- const branchInitializingPasskeyConfig = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && state.privyAuthenticated && !state.activeCredentialId && !state.passkeyConfigLoaded;
2102
- const branchOtpVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && state.verificationTarget != null && !state.privyAuthenticated;
2103
- const branchLoginRequested = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && state.loginRequested;
2104
- const branchPasskeyVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && shouldPromptPasskeyVerification;
2105
- const branchPasskeyCreate = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && missingActivePasskeyCredential;
2106
- const branchGuestPreauthClaiming = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && state.guestPreauthAccountId != null && state.guestSessionToken != null && state.privyAuthenticated && state.activeCredentialId != null && !state.guestPreauthSetupCompletePending && !state.error;
2107
- const branchDataLoading = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && state.loadingData && state.activeCredentialId != null && hasActiveWallet(state.accounts);
2108
- const branchWalletPickerLink = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && state.activeCredentialId != null && !hasActiveWallet(state.accounts) && !state.mobileFlow;
2109
- const branchDeposit = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && !branchWalletPickerLink && state.activeCredentialId != null && hasActiveWallet(state.accounts) && !state.loadingData;
2110
- const branchWalletPickerGuestEntry = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && !branchWalletPickerLink && !branchDeposit && state.isGuestFlow;
2094
+ const branchStandardDesktopInlineOpenWallet = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && state.standardDesktopInlineOpenWallet && state.privyAuthenticated && state.activeCredentialId != null && state.selectedAccountId != null && !state.loginRequested && !state.guestPreauthorizing;
2095
+ const branchKeepFundingSubflow = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchStandardDesktopInlineOpenWallet && isFundingSourceSubflow;
2096
+ const branchMobileWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchStandardDesktopInlineOpenWallet && state.mobileFlow && state.deeplinkUri != null;
2097
+ const branchKeepGuestPreauthDesktopOpenWallet = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchStandardDesktopInlineOpenWallet && !branchMobileWalletSetup && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && currentPhase.guestDesktopExtension === true && state.guestPreauthorizing && !state.privyAuthenticated && !state.loginRequested;
2098
+ const branchKeepGuestWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && state.guestPreauthorizing && state.privyAuthenticated && state.activeCredentialId != null;
2099
+ const branchGuestTokenPicker = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && guestTokenPickerEligible;
2100
+ const branchKeepWalletPickerSwitch = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && walletPickerSwitchEligible;
2101
+ const branchInitializingPrivy = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !state.privyReady;
2102
+ const branchInitializingPasskeyConfig = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && state.privyAuthenticated && !state.activeCredentialId && !state.passkeyConfigLoaded;
2103
+ const branchOtpVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && state.verificationTarget != null && !state.privyAuthenticated;
2104
+ const branchLoginRequested = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && state.loginRequested;
2105
+ const branchPasskeyVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && shouldPromptPasskeyVerification;
2106
+ const branchPasskeyCreate = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && missingActivePasskeyCredential;
2107
+ const branchGuestPreauthClaiming = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && state.guestPreauthAccountId != null && state.guestSessionToken != null && state.privyAuthenticated && state.activeCredentialId != null && !state.guestPreauthSetupCompletePending && !state.error;
2108
+ const branchDataLoading = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && state.loadingData && state.activeCredentialId != null && hasActiveWallet(state.accounts);
2109
+ const branchWalletPickerLink = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && state.activeCredentialId != null && !hasActiveWallet(state.accounts) && !state.mobileFlow;
2110
+ const branchDeposit = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && !branchWalletPickerLink && state.activeCredentialId != null && hasActiveWallet(state.accounts) && !state.loadingData;
2111
+ const branchWalletPickerGuestEntry = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && !branchWalletPickerLink && !branchDeposit && state.isGuestFlow;
2111
2112
  const exclusiveBranchFlags = [
2112
2113
  branchGuestSetupComplete,
2113
2114
  branchKeepGuestPreauthPin,
@@ -2115,6 +2116,7 @@ function resolvePhase(state) {
2115
2116
  branchCompleted,
2116
2117
  branchFailed,
2117
2118
  branchProcessing,
2119
+ branchStandardDesktopInlineOpenWallet,
2118
2120
  branchKeepFundingSubflow,
2119
2121
  branchMobileWalletSetup,
2120
2122
  branchKeepGuestPreauthDesktopOpenWallet,
@@ -2143,6 +2145,7 @@ function resolvePhase(state) {
2143
2145
  branchCompleted,
2144
2146
  branchFailed,
2145
2147
  branchProcessing,
2148
+ branchStandardDesktopInlineOpenWallet,
2146
2149
  branchKeepFundingSubflow,
2147
2150
  branchMobileWalletSetup,
2148
2151
  branchKeepGuestPreauthDesktopOpenWallet,
@@ -2180,6 +2183,13 @@ function resolvePhase(state) {
2180
2183
  };
2181
2184
  } else if (branchProcessing) {
2182
2185
  nextPhase = { step: "processing", transfer: state.transfer };
2186
+ } else if (branchStandardDesktopInlineOpenWallet) {
2187
+ nextPhase = {
2188
+ step: "wallet-setup",
2189
+ mobile: null,
2190
+ accountId: state.selectedAccountId,
2191
+ guestDesktopExtension: true
2192
+ };
2183
2193
  } else if (branchKeepFundingSubflow) {
2184
2194
  nextPhase = currentPhase;
2185
2195
  } else if (branchMobileWalletSetup) {
@@ -2288,6 +2298,7 @@ function createInitialState(config) {
2288
2298
  activePublicKey: null,
2289
2299
  loginRequested: false,
2290
2300
  guestPreauthorizing: false,
2301
+ standardDesktopInlineOpenWallet: false,
2291
2302
  guestPreauthSetupCompletePending: false,
2292
2303
  privyReady: false,
2293
2304
  privyAuthenticated: false
@@ -2674,6 +2685,8 @@ function applyAction(state, action) {
2674
2685
  return { ...state, error: action.error };
2675
2686
  case "SET_ONE_TAP_LIMIT_SAVED_DURING_SETUP":
2676
2687
  return { ...state, oneTapLimitSavedDuringSetup: action.saved };
2688
+ case "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET":
2689
+ return { ...state, standardDesktopInlineOpenWallet: action.value };
2677
2690
  // ── Lifecycle ────────────────────────────────────────────────
2678
2691
  case "NEW_PAYMENT":
2679
2692
  return {
@@ -2695,7 +2708,8 @@ function applyAction(state, action) {
2695
2708
  loginRequested: false,
2696
2709
  oneTapLimitSavedDuringSetup: false,
2697
2710
  guestPreauthorizing: false,
2698
- guestPreauthSetupCompletePending: false
2711
+ guestPreauthSetupCompletePending: false,
2712
+ standardDesktopInlineOpenWallet: false
2699
2713
  };
2700
2714
  case "LOGOUT":
2701
2715
  return {
@@ -6359,6 +6373,8 @@ function subtitleStyle11(color) {
6359
6373
  maxWidth: 280
6360
6374
  };
6361
6375
  }
6376
+
6377
+ // src/stepHeaderFlowPhase.ts
6362
6378
  var LINK_SCREENS = /* @__PURE__ */ new Set([
6363
6379
  "create-passkey",
6364
6380
  "verify-passkey",
@@ -6373,7 +6389,6 @@ var DEPOSIT_SCREENS = /* @__PURE__ */ new Set([
6373
6389
  "processing",
6374
6390
  "success"
6375
6391
  ]);
6376
- var DEFAULT_MIN_DEPOSIT_USD = 0.25;
6377
6392
  function getFlowPhase(screen, phase) {
6378
6393
  if (LINK_SCREENS.has(screen)) return "link";
6379
6394
  if (DEPOSIT_SCREENS.has(screen)) return "deposit";
@@ -6382,9 +6397,19 @@ function getFlowPhase(screen, phase) {
6382
6397
  }
6383
6398
  return null;
6384
6399
  }
6400
+ function resolveHeaderFlowPhase(screen, phase, authenticated) {
6401
+ const raw = getFlowPhase(screen, phase);
6402
+ if (raw === "link" && !authenticated) return null;
6403
+ return raw;
6404
+ }
6405
+ var DEFAULT_MIN_DEPOSIT_USD = 0.25;
6385
6406
  function StepRenderer(props) {
6386
6407
  const screen = screenForPhase(props.flow.state.phase);
6387
- const flowPhase = getFlowPhase(screen, props.flow.state.phase);
6408
+ const flowPhase = resolveHeaderFlowPhase(
6409
+ screen,
6410
+ props.flow.state.phase,
6411
+ props.flow.authenticated
6412
+ );
6388
6413
  return /* @__PURE__ */ jsxRuntime.jsx(FlowPhaseProvider, { phase: flowPhase, children: /* @__PURE__ */ jsxRuntime.jsx(StepRendererContent, { ...props, screen }) });
6389
6414
  }
6390
6415
  function StepRendererContent({
@@ -6410,6 +6435,7 @@ function StepRendererContent({
6410
6435
  pollingError,
6411
6436
  guestAccountPollingError,
6412
6437
  authExecutorError,
6438
+ authExecutorExecuting,
6413
6439
  transferSigningSigning,
6414
6440
  transferSigningError,
6415
6441
  pendingSelectSource
@@ -6524,7 +6550,7 @@ function StepRendererContent({
6524
6550
  {
6525
6551
  walletName: providerName,
6526
6552
  deeplinkUri: state.deeplinkUri ?? "",
6527
- loading: !isDesktop ? state.creatingTransfer || !state.deeplinkUri : state.creatingTransfer,
6553
+ loading: !isDesktop ? state.creatingTransfer || !state.deeplinkUri : state.creatingTransfer || authExecutorExecuting,
6528
6554
  useDeeplink: !isDesktop,
6529
6555
  error: state.error || guestAccountPollingError || (!isDesktop ? pollingError : authExecutorError),
6530
6556
  onRetryStatus: !isDesktop ? handlers.onRetryMobileStatus : void 0,
@@ -8235,7 +8261,7 @@ function useOneTapSetupHandlers(deps) {
8235
8261
  } else if (authExecutor.pendingOneTapSetup) {
8236
8262
  authExecutor.resolveOneTapSetup();
8237
8263
  }
8238
- if (!guestPostPayPreauth || !willResolveSession) {
8264
+ if (!willResolveSession) {
8239
8265
  dispatch({ type: "SET_USER_INTENT", intent: { step: "deposit" } });
8240
8266
  }
8241
8267
  } catch (err) {
@@ -9360,6 +9386,32 @@ function useGuestPreauthWalletSetupEffect(deps) {
9360
9386
  dispatch
9361
9387
  ]);
9362
9388
  }
9389
+ function useStandardDesktopInlineOpenWalletEffect(deps) {
9390
+ const { isDesktop, state, dispatch, authExecutor } = deps;
9391
+ react.useEffect(() => {
9392
+ if (!isDesktop || state.guestPreauthorizing) return;
9393
+ if (!state.privyAuthenticated || !state.activeCredentialId || !state.selectedAccountId) return;
9394
+ const shouldPin = authExecutor.executing && !authExecutor.pendingSelectSource && !authExecutor.pendingOneTapSetup;
9395
+ if (shouldPin && !state.standardDesktopInlineOpenWallet) {
9396
+ dispatch({ type: "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET", value: true });
9397
+ return;
9398
+ }
9399
+ if (!shouldPin && state.standardDesktopInlineOpenWallet) {
9400
+ dispatch({ type: "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET", value: false });
9401
+ }
9402
+ }, [
9403
+ isDesktop,
9404
+ state.guestPreauthorizing,
9405
+ state.privyAuthenticated,
9406
+ state.activeCredentialId,
9407
+ state.selectedAccountId,
9408
+ state.standardDesktopInlineOpenWallet,
9409
+ authExecutor.executing,
9410
+ authExecutor.pendingSelectSource,
9411
+ authExecutor.pendingOneTapSetup,
9412
+ dispatch
9413
+ ]);
9414
+ }
9363
9415
  function useGuestAccountAutoPollingEffect(deps) {
9364
9416
  const {
9365
9417
  mobileFlow,
@@ -9859,6 +9911,12 @@ function BlinkPaymentInner({
9859
9911
  authExecutor,
9860
9912
  isDesktop
9861
9913
  });
9914
+ useStandardDesktopInlineOpenWalletEffect({
9915
+ isDesktop,
9916
+ state,
9917
+ dispatch,
9918
+ authExecutor
9919
+ });
9862
9920
  const handlers = react.useMemo(() => ({
9863
9921
  onSendLoginCode: auth.handleSendLoginCode,
9864
9922
  onVerifyLoginCode: auth.handleVerifyLoginCode,
@@ -9934,6 +9992,7 @@ function BlinkPaymentInner({
9934
9992
  pollingError: polling.error,
9935
9993
  guestAccountPollingError: guestAccountPolling.error,
9936
9994
  authExecutorError: authExecutor.error,
9995
+ authExecutorExecuting: authExecutor.executing,
9937
9996
  transferSigningSigning: transferSigning.signing,
9938
9997
  transferSigningError: transferSigning.error,
9939
9998
  pendingSelectSource: authExecutor.pendingSelectSource,