@swype-org/react-sdk 0.1.281 → 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 +219 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +219 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2088,21 +2088,24 @@ function resolvePhase(state) {
|
|
|
2088
2088
|
const branchCompleted = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && transferCompleted && !state.verificationTarget && !needsPasskeyBootstrap;
|
|
2089
2089
|
const branchFailed = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && state.transfer?.status === "FAILED";
|
|
2090
2090
|
const branchProcessing = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && (state.creatingTransfer || isTransferAwaitingCompletion(state.transfer));
|
|
2091
|
-
const
|
|
2092
|
-
const
|
|
2093
|
-
const
|
|
2094
|
-
const
|
|
2095
|
-
const
|
|
2096
|
-
const
|
|
2097
|
-
const
|
|
2098
|
-
const
|
|
2099
|
-
const
|
|
2100
|
-
const
|
|
2101
|
-
const
|
|
2102
|
-
const
|
|
2103
|
-
const
|
|
2104
|
-
const
|
|
2105
|
-
const
|
|
2091
|
+
const branchStandardDesktopInlineOpenWallet = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && state.standardDesktopInlineOpenWallet && state.privyAuthenticated && state.activeCredentialId != null && state.selectedAccountId != null && !state.loginRequested && !state.guestPreauthorizing;
|
|
2092
|
+
const branchKeepFundingSubflow = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchStandardDesktopInlineOpenWallet && isFundingSourceSubflow;
|
|
2093
|
+
const branchMobileWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchStandardDesktopInlineOpenWallet && state.mobileFlow && state.deeplinkUri != null;
|
|
2094
|
+
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;
|
|
2095
|
+
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;
|
|
2096
|
+
const branchGuestTokenPicker = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && guestTokenPickerEligible;
|
|
2097
|
+
const branchKeepWalletPickerSwitch = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && walletPickerSwitchEligible;
|
|
2098
|
+
const branchInitializingPrivy = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !state.privyReady;
|
|
2099
|
+
const branchInitializingPasskeyConfig = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && state.privyAuthenticated && !state.activeCredentialId && !state.passkeyConfigLoaded;
|
|
2100
|
+
const branchOtpVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && state.verificationTarget != null && !state.privyAuthenticated;
|
|
2101
|
+
const branchLoginRequested = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && state.loginRequested;
|
|
2102
|
+
const branchPasskeyVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && shouldPromptPasskeyVerification;
|
|
2103
|
+
const branchPasskeyCreate = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && missingActivePasskeyCredential;
|
|
2104
|
+
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;
|
|
2105
|
+
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);
|
|
2106
|
+
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;
|
|
2107
|
+
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;
|
|
2108
|
+
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;
|
|
2106
2109
|
const exclusiveBranchFlags = [
|
|
2107
2110
|
branchGuestSetupComplete,
|
|
2108
2111
|
branchKeepGuestPreauthPin,
|
|
@@ -2110,8 +2113,10 @@ function resolvePhase(state) {
|
|
|
2110
2113
|
branchCompleted,
|
|
2111
2114
|
branchFailed,
|
|
2112
2115
|
branchProcessing,
|
|
2116
|
+
branchStandardDesktopInlineOpenWallet,
|
|
2113
2117
|
branchKeepFundingSubflow,
|
|
2114
2118
|
branchMobileWalletSetup,
|
|
2119
|
+
branchKeepGuestPreauthDesktopOpenWallet,
|
|
2115
2120
|
branchKeepGuestWalletSetup,
|
|
2116
2121
|
branchGuestTokenPicker,
|
|
2117
2122
|
branchKeepWalletPickerSwitch,
|
|
@@ -2121,6 +2126,7 @@ function resolvePhase(state) {
|
|
|
2121
2126
|
branchLoginRequested,
|
|
2122
2127
|
branchPasskeyVerify,
|
|
2123
2128
|
branchPasskeyCreate,
|
|
2129
|
+
branchGuestPreauthClaiming,
|
|
2124
2130
|
branchDataLoading,
|
|
2125
2131
|
branchWalletPickerLink,
|
|
2126
2132
|
branchDeposit,
|
|
@@ -2136,8 +2142,10 @@ function resolvePhase(state) {
|
|
|
2136
2142
|
branchCompleted,
|
|
2137
2143
|
branchFailed,
|
|
2138
2144
|
branchProcessing,
|
|
2145
|
+
branchStandardDesktopInlineOpenWallet,
|
|
2139
2146
|
branchKeepFundingSubflow,
|
|
2140
2147
|
branchMobileWalletSetup,
|
|
2148
|
+
branchKeepGuestPreauthDesktopOpenWallet,
|
|
2141
2149
|
branchKeepGuestWalletSetup,
|
|
2142
2150
|
branchGuestTokenPicker,
|
|
2143
2151
|
branchKeepWalletPickerSwitch,
|
|
@@ -2147,6 +2155,7 @@ function resolvePhase(state) {
|
|
|
2147
2155
|
branchLoginRequested,
|
|
2148
2156
|
branchPasskeyVerify,
|
|
2149
2157
|
branchPasskeyCreate,
|
|
2158
|
+
branchGuestPreauthClaiming,
|
|
2150
2159
|
branchDataLoading,
|
|
2151
2160
|
branchWalletPickerLink,
|
|
2152
2161
|
branchDeposit,
|
|
@@ -2171,6 +2180,13 @@ function resolvePhase(state) {
|
|
|
2171
2180
|
};
|
|
2172
2181
|
} else if (branchProcessing) {
|
|
2173
2182
|
nextPhase = { step: "processing", transfer: state.transfer };
|
|
2183
|
+
} else if (branchStandardDesktopInlineOpenWallet) {
|
|
2184
|
+
nextPhase = {
|
|
2185
|
+
step: "wallet-setup",
|
|
2186
|
+
mobile: null,
|
|
2187
|
+
accountId: state.selectedAccountId,
|
|
2188
|
+
guestDesktopExtension: true
|
|
2189
|
+
};
|
|
2174
2190
|
} else if (branchKeepFundingSubflow) {
|
|
2175
2191
|
nextPhase = currentPhase;
|
|
2176
2192
|
} else if (branchMobileWalletSetup) {
|
|
@@ -2179,6 +2195,8 @@ function resolvePhase(state) {
|
|
|
2179
2195
|
mobile: { deeplinkUri: state.deeplinkUri, providerId: state.selectedProviderId },
|
|
2180
2196
|
accountId: null
|
|
2181
2197
|
};
|
|
2198
|
+
} else if (branchKeepGuestPreauthDesktopOpenWallet) {
|
|
2199
|
+
nextPhase = currentPhase;
|
|
2182
2200
|
} else if (branchKeepGuestWalletSetup) {
|
|
2183
2201
|
nextPhase = currentPhase;
|
|
2184
2202
|
} else if (branchGuestTokenPicker) {
|
|
@@ -2197,6 +2215,8 @@ function resolvePhase(state) {
|
|
|
2197
2215
|
nextPhase = { step: "passkey-verify" };
|
|
2198
2216
|
} else if (branchPasskeyCreate) {
|
|
2199
2217
|
nextPhase = { step: "passkey-create", popupFallback: state.passkeyPopupNeeded };
|
|
2218
|
+
} else if (branchGuestPreauthClaiming) {
|
|
2219
|
+
nextPhase = { step: "guest-preauth-linking" };
|
|
2200
2220
|
} else if (branchDataLoading) {
|
|
2201
2221
|
nextPhase = { step: "data-loading" };
|
|
2202
2222
|
} else if (branchWalletPickerLink) {
|
|
@@ -2275,6 +2295,7 @@ function createInitialState(config) {
|
|
|
2275
2295
|
activePublicKey: null,
|
|
2276
2296
|
loginRequested: false,
|
|
2277
2297
|
guestPreauthorizing: false,
|
|
2298
|
+
standardDesktopInlineOpenWallet: false,
|
|
2278
2299
|
guestPreauthSetupCompletePending: false,
|
|
2279
2300
|
privyReady: false,
|
|
2280
2301
|
privyAuthenticated: false
|
|
@@ -2644,6 +2665,12 @@ function applyAction(state, action) {
|
|
|
2644
2665
|
// ── User intent & error ──────────────────────────────────────
|
|
2645
2666
|
case "SET_USER_INTENT":
|
|
2646
2667
|
return { ...state, phase: action.intent };
|
|
2668
|
+
case "GUEST_PREAUTH_CLEAR_TRANSFER":
|
|
2669
|
+
return {
|
|
2670
|
+
...state,
|
|
2671
|
+
transfer: null,
|
|
2672
|
+
creatingTransfer: false
|
|
2673
|
+
};
|
|
2647
2674
|
case "REQUEST_LOGIN":
|
|
2648
2675
|
return {
|
|
2649
2676
|
...state,
|
|
@@ -2655,6 +2682,8 @@ function applyAction(state, action) {
|
|
|
2655
2682
|
return { ...state, error: action.error };
|
|
2656
2683
|
case "SET_ONE_TAP_LIMIT_SAVED_DURING_SETUP":
|
|
2657
2684
|
return { ...state, oneTapLimitSavedDuringSetup: action.saved };
|
|
2685
|
+
case "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET":
|
|
2686
|
+
return { ...state, standardDesktopInlineOpenWallet: action.value };
|
|
2658
2687
|
// ── Lifecycle ────────────────────────────────────────────────
|
|
2659
2688
|
case "NEW_PAYMENT":
|
|
2660
2689
|
return {
|
|
@@ -2676,7 +2705,8 @@ function applyAction(state, action) {
|
|
|
2676
2705
|
loginRequested: false,
|
|
2677
2706
|
oneTapLimitSavedDuringSetup: false,
|
|
2678
2707
|
guestPreauthorizing: false,
|
|
2679
|
-
guestPreauthSetupCompletePending: false
|
|
2708
|
+
guestPreauthSetupCompletePending: false,
|
|
2709
|
+
standardDesktopInlineOpenWallet: false
|
|
2680
2710
|
};
|
|
2681
2711
|
case "LOGOUT":
|
|
2682
2712
|
return {
|
|
@@ -2784,6 +2814,8 @@ function screenForPhase(phase) {
|
|
|
2784
2814
|
return "success";
|
|
2785
2815
|
case "guest-setup-complete":
|
|
2786
2816
|
return "guest-setup-complete";
|
|
2817
|
+
case "guest-preauth-linking":
|
|
2818
|
+
return "guest-preauth-linking";
|
|
2787
2819
|
}
|
|
2788
2820
|
}
|
|
2789
2821
|
var MUTED = "#7fa4b0";
|
|
@@ -4969,14 +5001,10 @@ function SuccessScreen({
|
|
|
4969
5001
|
ScreenLayout,
|
|
4970
5002
|
{
|
|
4971
5003
|
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4972
|
-
/* @__PURE__ */
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
onClick: onPreauthorize,
|
|
4977
|
-
children: "Preauthorize future transfers"
|
|
4978
|
-
}
|
|
4979
|
-
),
|
|
5004
|
+
succeeded && onPreauthorize ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5005
|
+
/* @__PURE__ */ jsx(PrimaryButton, { onClick: onPreauthorize, children: "Preauthorize future transfers" }),
|
|
5006
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: onDone, style: skipButtonStyle(tokens.textMuted), children: "Skip this time" })
|
|
5007
|
+
] }) : /* @__PURE__ */ jsx(PrimaryButton, { onClick: onDone, children: succeeded ? "Done" : "Try again" }),
|
|
4980
5008
|
onManageAccount && /* @__PURE__ */ jsx("button", { type: "button", onClick: onManageAccount, style: manageStyle(tokens.textMuted), children: "Manage Blink account \u2192" }),
|
|
4981
5009
|
/* @__PURE__ */ jsx(PoweredByFooter, {})
|
|
4982
5010
|
] }),
|
|
@@ -5114,6 +5142,17 @@ var manageStyle = (color) => ({
|
|
|
5114
5142
|
textAlign: "center",
|
|
5115
5143
|
padding: "12px 0 0"
|
|
5116
5144
|
});
|
|
5145
|
+
var skipButtonStyle = (color) => ({
|
|
5146
|
+
background: "none",
|
|
5147
|
+
border: "none",
|
|
5148
|
+
color,
|
|
5149
|
+
fontSize: "0.85rem",
|
|
5150
|
+
cursor: "pointer",
|
|
5151
|
+
padding: "8px 16px",
|
|
5152
|
+
textDecoration: "underline",
|
|
5153
|
+
fontFamily: "inherit",
|
|
5154
|
+
width: "100%"
|
|
5155
|
+
});
|
|
5117
5156
|
function SelectSourceScreen({
|
|
5118
5157
|
choices,
|
|
5119
5158
|
selectedChainName,
|
|
@@ -5122,6 +5161,7 @@ function SelectSourceScreen({
|
|
|
5122
5161
|
onChainChange,
|
|
5123
5162
|
onTokenChange,
|
|
5124
5163
|
onConfirm,
|
|
5164
|
+
confirmLabel = "Confirm source",
|
|
5125
5165
|
onBack,
|
|
5126
5166
|
onLogout
|
|
5127
5167
|
}) {
|
|
@@ -5133,7 +5173,7 @@ function SelectSourceScreen({
|
|
|
5133
5173
|
ScreenLayout,
|
|
5134
5174
|
{
|
|
5135
5175
|
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5136
|
-
/* @__PURE__ */ jsx(PrimaryButton, { onClick: onConfirm, disabled: !canConfirm, children:
|
|
5176
|
+
/* @__PURE__ */ jsx(PrimaryButton, { onClick: onConfirm, disabled: !canConfirm, children: confirmLabel }),
|
|
5137
5177
|
/* @__PURE__ */ jsx(PoweredByFooter, {})
|
|
5138
5178
|
] }),
|
|
5139
5179
|
children: [
|
|
@@ -6292,6 +6332,46 @@ function subtitleStyle10(color) {
|
|
|
6292
6332
|
maxWidth: 320
|
|
6293
6333
|
};
|
|
6294
6334
|
}
|
|
6335
|
+
function GuestPreauthLinkingScreen({ onLogout }) {
|
|
6336
|
+
const { tokens } = useBlinkConfig();
|
|
6337
|
+
return /* @__PURE__ */ jsxs(ScreenLayout, { children: [
|
|
6338
|
+
/* @__PURE__ */ jsx(ScreenHeader, { onLogout }),
|
|
6339
|
+
/* @__PURE__ */ jsxs("div", { style: contentStyle10, children: [
|
|
6340
|
+
/* @__PURE__ */ jsx(Spinner, { size: 48 }),
|
|
6341
|
+
/* @__PURE__ */ jsx("h2", { style: headingStyle13(tokens.text), children: "Setting up your account..." }),
|
|
6342
|
+
/* @__PURE__ */ jsx("p", { style: subtitleStyle11(tokens.textSecondary), children: "Linking your wallet to your Blink account. This usually takes a few seconds." })
|
|
6343
|
+
] })
|
|
6344
|
+
] });
|
|
6345
|
+
}
|
|
6346
|
+
var contentStyle10 = {
|
|
6347
|
+
flex: 1,
|
|
6348
|
+
display: "flex",
|
|
6349
|
+
flexDirection: "column",
|
|
6350
|
+
alignItems: "center",
|
|
6351
|
+
justifyContent: "center",
|
|
6352
|
+
textAlign: "center",
|
|
6353
|
+
padding: "0 24px 32px"
|
|
6354
|
+
};
|
|
6355
|
+
function headingStyle13(color) {
|
|
6356
|
+
return {
|
|
6357
|
+
margin: "20px 0 8px",
|
|
6358
|
+
fontSize: "1.45rem",
|
|
6359
|
+
fontWeight: 700,
|
|
6360
|
+
letterSpacing: "-0.02em",
|
|
6361
|
+
color
|
|
6362
|
+
};
|
|
6363
|
+
}
|
|
6364
|
+
function subtitleStyle11(color) {
|
|
6365
|
+
return {
|
|
6366
|
+
margin: 0,
|
|
6367
|
+
fontSize: "0.9rem",
|
|
6368
|
+
lineHeight: 1.5,
|
|
6369
|
+
color,
|
|
6370
|
+
maxWidth: 280
|
|
6371
|
+
};
|
|
6372
|
+
}
|
|
6373
|
+
|
|
6374
|
+
// src/stepHeaderFlowPhase.ts
|
|
6295
6375
|
var LINK_SCREENS = /* @__PURE__ */ new Set([
|
|
6296
6376
|
"create-passkey",
|
|
6297
6377
|
"verify-passkey",
|
|
@@ -6306,7 +6386,6 @@ var DEPOSIT_SCREENS = /* @__PURE__ */ new Set([
|
|
|
6306
6386
|
"processing",
|
|
6307
6387
|
"success"
|
|
6308
6388
|
]);
|
|
6309
|
-
var DEFAULT_MIN_DEPOSIT_USD = 0.25;
|
|
6310
6389
|
function getFlowPhase(screen, phase) {
|
|
6311
6390
|
if (LINK_SCREENS.has(screen)) return "link";
|
|
6312
6391
|
if (DEPOSIT_SCREENS.has(screen)) return "deposit";
|
|
@@ -6315,9 +6394,19 @@ function getFlowPhase(screen, phase) {
|
|
|
6315
6394
|
}
|
|
6316
6395
|
return null;
|
|
6317
6396
|
}
|
|
6397
|
+
function resolveHeaderFlowPhase(screen, phase, authenticated) {
|
|
6398
|
+
const raw = getFlowPhase(screen, phase);
|
|
6399
|
+
if (raw === "link" && !authenticated) return null;
|
|
6400
|
+
return raw;
|
|
6401
|
+
}
|
|
6402
|
+
var DEFAULT_MIN_DEPOSIT_USD = 0.25;
|
|
6318
6403
|
function StepRenderer(props) {
|
|
6319
6404
|
const screen = screenForPhase(props.flow.state.phase);
|
|
6320
|
-
const flowPhase =
|
|
6405
|
+
const flowPhase = resolveHeaderFlowPhase(
|
|
6406
|
+
screen,
|
|
6407
|
+
props.flow.state.phase,
|
|
6408
|
+
props.flow.authenticated
|
|
6409
|
+
);
|
|
6321
6410
|
return /* @__PURE__ */ jsx(FlowPhaseProvider, { phase: flowPhase, children: /* @__PURE__ */ jsx(StepRendererContent, { ...props, screen }) });
|
|
6322
6411
|
}
|
|
6323
6412
|
function StepRendererContent({
|
|
@@ -6343,6 +6432,7 @@ function StepRendererContent({
|
|
|
6343
6432
|
pollingError,
|
|
6344
6433
|
guestAccountPollingError,
|
|
6345
6434
|
authExecutorError,
|
|
6435
|
+
authExecutorExecuting,
|
|
6346
6436
|
transferSigningSigning,
|
|
6347
6437
|
transferSigningError,
|
|
6348
6438
|
pendingSelectSource
|
|
@@ -6374,6 +6464,8 @@ function StepRendererContent({
|
|
|
6374
6464
|
switch (screen) {
|
|
6375
6465
|
case "loading":
|
|
6376
6466
|
return /* @__PURE__ */ jsx(BlinkLoadingScreen, {});
|
|
6467
|
+
case "guest-preauth-linking":
|
|
6468
|
+
return /* @__PURE__ */ jsx(GuestPreauthLinkingScreen, { onLogout: handlers.onLogout });
|
|
6377
6469
|
case "login":
|
|
6378
6470
|
return /* @__PURE__ */ jsx(
|
|
6379
6471
|
LoginScreen,
|
|
@@ -6455,7 +6547,7 @@ function StepRendererContent({
|
|
|
6455
6547
|
{
|
|
6456
6548
|
walletName: providerName,
|
|
6457
6549
|
deeplinkUri: state.deeplinkUri ?? "",
|
|
6458
|
-
loading: !isDesktop ? state.creatingTransfer || !state.deeplinkUri : state.creatingTransfer,
|
|
6550
|
+
loading: !isDesktop ? state.creatingTransfer || !state.deeplinkUri : state.creatingTransfer || authExecutorExecuting,
|
|
6459
6551
|
useDeeplink: !isDesktop,
|
|
6460
6552
|
error: state.error || guestAccountPollingError || (!isDesktop ? pollingError : authExecutorError),
|
|
6461
6553
|
onRetryStatus: !isDesktop ? handlers.onRetryMobileStatus : void 0,
|
|
@@ -6557,7 +6649,12 @@ function StepRendererContent({
|
|
|
6557
6649
|
recommended: selectSourceRecommended,
|
|
6558
6650
|
onChainChange: handlers.onSelectSourceChainChange,
|
|
6559
6651
|
onTokenChange: handlers.onSetSelectSourceTokenSymbol,
|
|
6560
|
-
onConfirm: handlers.
|
|
6652
|
+
onConfirm: isDesktop ? () => handlers.onSetPhase({
|
|
6653
|
+
step: "select-source",
|
|
6654
|
+
action: pendingSelectSource,
|
|
6655
|
+
isDesktop
|
|
6656
|
+
}) : handlers.onConfirmSelectSource,
|
|
6657
|
+
confirmLabel: isDesktop ? "Done" : void 0,
|
|
6561
6658
|
onBack: () => handlers.onSetPhase({
|
|
6562
6659
|
step: "select-source",
|
|
6563
6660
|
action: pendingSelectSource,
|
|
@@ -6650,7 +6747,7 @@ function StepRendererContent({
|
|
|
6650
6747
|
return limit > displayAmount ? limit - displayAmount : 0;
|
|
6651
6748
|
})() : void 0,
|
|
6652
6749
|
onDone: onDismiss ?? handlers.onNewPayment,
|
|
6653
|
-
onLogout: handlers.onLogout,
|
|
6750
|
+
onLogout: authenticated ? handlers.onLogout : void 0,
|
|
6654
6751
|
onPreauthorize: state.isGuestFlow ? handlers.onPreauthorize : void 0
|
|
6655
6752
|
}
|
|
6656
6753
|
);
|
|
@@ -6698,7 +6795,7 @@ var PaymentErrorBoundary = class extends Component {
|
|
|
6698
6795
|
/* @__PURE__ */ jsx("path", { d: "M12 8v5", stroke: "#ef4444", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
6699
6796
|
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "16", r: "0.75", fill: "#ef4444" })
|
|
6700
6797
|
] }) }),
|
|
6701
|
-
/* @__PURE__ */ jsx("h2", { style:
|
|
6798
|
+
/* @__PURE__ */ jsx("h2", { style: headingStyle14, children: "Something went wrong" }),
|
|
6702
6799
|
/* @__PURE__ */ jsx("p", { style: messageStyle, children: "An unexpected error occurred. Please try again." }),
|
|
6703
6800
|
/* @__PURE__ */ jsx("button", { type: "button", onClick: this.handleReset, style: buttonStyle3, children: "Try again" })
|
|
6704
6801
|
] });
|
|
@@ -6718,7 +6815,7 @@ var containerStyle9 = {
|
|
|
6718
6815
|
var iconStyle3 = {
|
|
6719
6816
|
marginBottom: 20
|
|
6720
6817
|
};
|
|
6721
|
-
var
|
|
6818
|
+
var headingStyle14 = {
|
|
6722
6819
|
fontSize: "1.25rem",
|
|
6723
6820
|
fontWeight: 700,
|
|
6724
6821
|
color: "#1a1a1a",
|
|
@@ -7221,15 +7318,10 @@ function useSourceSelectionHandlers(dispatch, authExecutor, options) {
|
|
|
7221
7318
|
const handleConfirmSelectSource = useCallback(() => {
|
|
7222
7319
|
const guestPostPayPreauth = !!options?.guestPreauthSessionId && !!options?.isGuestFlow || !!options?.guestPreauthorizing && !!options?.isDesktop;
|
|
7223
7320
|
if (guestPostPayPreauth) {
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
mobile: null,
|
|
7229
|
-
accountId: options.guestPreauthAccountId,
|
|
7230
|
-
guestDesktopExtension: true
|
|
7231
|
-
};
|
|
7232
|
-
dispatch({ type: "SET_USER_INTENT", intent });
|
|
7321
|
+
if (options?.guestPreauthorizing && options?.isDesktop) {
|
|
7322
|
+
dispatch({ type: "GUEST_PREAUTH_CLEAR_TRANSFER" });
|
|
7323
|
+
} else {
|
|
7324
|
+
dispatch({ type: "REQUEST_LOGIN" });
|
|
7233
7325
|
}
|
|
7234
7326
|
}
|
|
7235
7327
|
authExecutor.resolveSelectSource({
|
|
@@ -7240,7 +7332,6 @@ function useSourceSelectionHandlers(dispatch, authExecutor, options) {
|
|
|
7240
7332
|
authExecutor,
|
|
7241
7333
|
dispatch,
|
|
7242
7334
|
options?.guestPreauthSessionId,
|
|
7243
|
-
options?.guestPreauthAccountId,
|
|
7244
7335
|
options?.guestPreauthorizing,
|
|
7245
7336
|
options?.isDesktop,
|
|
7246
7337
|
options?.isGuestFlow,
|
|
@@ -8123,7 +8214,7 @@ function useOneTapSetupHandlers(deps) {
|
|
|
8123
8214
|
selectSourceTokenSymbol,
|
|
8124
8215
|
authorizationSessionIdForGuest,
|
|
8125
8216
|
guestPostPayPreauth,
|
|
8126
|
-
|
|
8217
|
+
deferGuestPreauthLogin = false
|
|
8127
8218
|
} = deps;
|
|
8128
8219
|
const [savingOneTapLimit, setSavingOneTapLimit] = useState(false);
|
|
8129
8220
|
const handleSetupOneTap = useCallback(async (limit) => {
|
|
@@ -8142,15 +8233,10 @@ function useOneTapSetupHandlers(deps) {
|
|
|
8142
8233
|
}
|
|
8143
8234
|
const willResolveSession = authExecutor.pendingSelectSource != null || authExecutor.pendingOneTapSetup != null;
|
|
8144
8235
|
if (guestPostPayPreauth && willResolveSession) {
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
mobile: null,
|
|
8150
|
-
accountId: guestPreauthAccountId,
|
|
8151
|
-
guestDesktopExtension: true
|
|
8152
|
-
};
|
|
8153
|
-
dispatch({ type: "SET_USER_INTENT", intent });
|
|
8236
|
+
if (deferGuestPreauthLogin) {
|
|
8237
|
+
dispatch({ type: "GUEST_PREAUTH_CLEAR_TRANSFER" });
|
|
8238
|
+
} else {
|
|
8239
|
+
dispatch({ type: "REQUEST_LOGIN" });
|
|
8154
8240
|
}
|
|
8155
8241
|
}
|
|
8156
8242
|
if (authExecutor.pendingSelectSource) {
|
|
@@ -8172,7 +8258,7 @@ function useOneTapSetupHandlers(deps) {
|
|
|
8172
8258
|
} else if (authExecutor.pendingOneTapSetup) {
|
|
8173
8259
|
authExecutor.resolveOneTapSetup();
|
|
8174
8260
|
}
|
|
8175
|
-
if (!
|
|
8261
|
+
if (!willResolveSession) {
|
|
8176
8262
|
dispatch({ type: "SET_USER_INTENT", intent: { step: "deposit" } });
|
|
8177
8263
|
}
|
|
8178
8264
|
} catch (err) {
|
|
@@ -8193,7 +8279,7 @@ function useOneTapSetupHandlers(deps) {
|
|
|
8193
8279
|
selectSourceTokenSymbol,
|
|
8194
8280
|
authorizationSessionIdForGuest,
|
|
8195
8281
|
guestPostPayPreauth,
|
|
8196
|
-
|
|
8282
|
+
deferGuestPreauthLogin
|
|
8197
8283
|
]);
|
|
8198
8284
|
return {
|
|
8199
8285
|
handleSetupOneTap,
|
|
@@ -9168,7 +9254,7 @@ function useGuestPreauthEffect(deps) {
|
|
|
9168
9254
|
]);
|
|
9169
9255
|
}
|
|
9170
9256
|
function useGuestDesktopPreauthSessionEffect(deps) {
|
|
9171
|
-
const { state, authExecutor, reloadAccounts, dispatch, desktopGuestPreauth } = deps;
|
|
9257
|
+
const { state, authExecutor, reloadAccounts, dispatch, desktopGuestPreauth, privyAuthenticatedRef } = deps;
|
|
9172
9258
|
const preauthExecutingRef = useRef(false);
|
|
9173
9259
|
useEffect(() => {
|
|
9174
9260
|
if (!desktopGuestPreauth) return;
|
|
@@ -9183,6 +9269,9 @@ function useGuestDesktopPreauthSessionEffect(deps) {
|
|
|
9183
9269
|
} finally {
|
|
9184
9270
|
preauthExecutingRef.current = false;
|
|
9185
9271
|
dispatch({ type: "GUEST_PREAUTH_END" });
|
|
9272
|
+
if (!privyAuthenticatedRef.current) {
|
|
9273
|
+
dispatch({ type: "REQUEST_LOGIN" });
|
|
9274
|
+
}
|
|
9186
9275
|
}
|
|
9187
9276
|
};
|
|
9188
9277
|
void runPreauthSession();
|
|
@@ -9192,11 +9281,12 @@ function useGuestDesktopPreauthSessionEffect(deps) {
|
|
|
9192
9281
|
state.guestPreauthSessionId,
|
|
9193
9282
|
authExecutor,
|
|
9194
9283
|
reloadAccounts,
|
|
9195
|
-
dispatch
|
|
9284
|
+
dispatch,
|
|
9285
|
+
privyAuthenticatedRef
|
|
9196
9286
|
]);
|
|
9197
9287
|
}
|
|
9198
9288
|
function useGuestPreauthPhaseSyncEffect(deps) {
|
|
9199
|
-
const { state, dispatch, authExecutor, isDesktop } = deps;
|
|
9289
|
+
const { state, dispatch, authExecutor, isDesktop, privyAuthenticated } = deps;
|
|
9200
9290
|
useEffect(() => {
|
|
9201
9291
|
if (!state.guestPreauthorizing || !isDesktop) return;
|
|
9202
9292
|
const pending = authExecutor.pendingSelectSource;
|
|
@@ -9215,6 +9305,30 @@ function useGuestPreauthPhaseSyncEffect(deps) {
|
|
|
9215
9305
|
dispatch({ type: "SET_USER_INTENT", intent });
|
|
9216
9306
|
return;
|
|
9217
9307
|
}
|
|
9308
|
+
if (authExecutor.pendingOneTapSetup) {
|
|
9309
|
+
if (state.phase.step === "one-tap-setup") {
|
|
9310
|
+
return;
|
|
9311
|
+
}
|
|
9312
|
+
dispatch({ type: "SET_USER_INTENT", intent: { step: "one-tap-setup", action: null } });
|
|
9313
|
+
return;
|
|
9314
|
+
}
|
|
9315
|
+
if (!privyAuthenticated && authExecutor.executing && state.guestPreauthAccountId) {
|
|
9316
|
+
const accountId = state.guestPreauthAccountId;
|
|
9317
|
+
const p = state.phase;
|
|
9318
|
+
if (p.step === "wallet-setup" && p.mobile == null && p.guestDesktopExtension && p.accountId === accountId) {
|
|
9319
|
+
return;
|
|
9320
|
+
}
|
|
9321
|
+
dispatch({
|
|
9322
|
+
type: "SET_USER_INTENT",
|
|
9323
|
+
intent: {
|
|
9324
|
+
step: "wallet-setup",
|
|
9325
|
+
mobile: null,
|
|
9326
|
+
accountId,
|
|
9327
|
+
guestDesktopExtension: true
|
|
9328
|
+
}
|
|
9329
|
+
});
|
|
9330
|
+
return;
|
|
9331
|
+
}
|
|
9218
9332
|
if (state.phase.step === "select-source") {
|
|
9219
9333
|
dispatch({ type: "SET_USER_INTENT", intent: { step: "one-tap-setup", action: null } });
|
|
9220
9334
|
return;
|
|
@@ -9225,8 +9339,12 @@ function useGuestPreauthPhaseSyncEffect(deps) {
|
|
|
9225
9339
|
}, [
|
|
9226
9340
|
state.guestPreauthorizing,
|
|
9227
9341
|
state.phase,
|
|
9342
|
+
state.guestPreauthAccountId,
|
|
9228
9343
|
isDesktop,
|
|
9344
|
+
privyAuthenticated,
|
|
9229
9345
|
authExecutor.pendingSelectSource,
|
|
9346
|
+
authExecutor.pendingOneTapSetup,
|
|
9347
|
+
authExecutor.executing,
|
|
9230
9348
|
dispatch
|
|
9231
9349
|
]);
|
|
9232
9350
|
}
|
|
@@ -9235,6 +9353,7 @@ function useGuestPreauthWalletSetupEffect(deps) {
|
|
|
9235
9353
|
useEffect(() => {
|
|
9236
9354
|
if (!isDesktop || !state.guestPreauthorizing || !state.guestPreauthSessionId) return;
|
|
9237
9355
|
if (!state.guestPreauthAccountId) return;
|
|
9356
|
+
if (!state.privyAuthenticated || state.activeCredentialId == null) return;
|
|
9238
9357
|
if (!authExecutor.executing || authExecutor.pendingSelectSource) return;
|
|
9239
9358
|
if (state.verificationTarget) return;
|
|
9240
9359
|
const p = state.phase;
|
|
@@ -9255,6 +9374,8 @@ function useGuestPreauthWalletSetupEffect(deps) {
|
|
|
9255
9374
|
state.guestPreauthorizing,
|
|
9256
9375
|
state.guestPreauthSessionId,
|
|
9257
9376
|
state.guestPreauthAccountId,
|
|
9377
|
+
state.privyAuthenticated,
|
|
9378
|
+
state.activeCredentialId,
|
|
9258
9379
|
state.verificationTarget,
|
|
9259
9380
|
state.phase,
|
|
9260
9381
|
authExecutor.executing,
|
|
@@ -9262,6 +9383,32 @@ function useGuestPreauthWalletSetupEffect(deps) {
|
|
|
9262
9383
|
dispatch
|
|
9263
9384
|
]);
|
|
9264
9385
|
}
|
|
9386
|
+
function useStandardDesktopInlineOpenWalletEffect(deps) {
|
|
9387
|
+
const { isDesktop, state, dispatch, authExecutor } = deps;
|
|
9388
|
+
useEffect(() => {
|
|
9389
|
+
if (!isDesktop || state.guestPreauthorizing) return;
|
|
9390
|
+
if (!state.privyAuthenticated || !state.activeCredentialId || !state.selectedAccountId) return;
|
|
9391
|
+
const shouldPin = authExecutor.executing && !authExecutor.pendingSelectSource && !authExecutor.pendingOneTapSetup;
|
|
9392
|
+
if (shouldPin && !state.standardDesktopInlineOpenWallet) {
|
|
9393
|
+
dispatch({ type: "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET", value: true });
|
|
9394
|
+
return;
|
|
9395
|
+
}
|
|
9396
|
+
if (!shouldPin && state.standardDesktopInlineOpenWallet) {
|
|
9397
|
+
dispatch({ type: "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET", value: false });
|
|
9398
|
+
}
|
|
9399
|
+
}, [
|
|
9400
|
+
isDesktop,
|
|
9401
|
+
state.guestPreauthorizing,
|
|
9402
|
+
state.privyAuthenticated,
|
|
9403
|
+
state.activeCredentialId,
|
|
9404
|
+
state.selectedAccountId,
|
|
9405
|
+
state.standardDesktopInlineOpenWallet,
|
|
9406
|
+
authExecutor.executing,
|
|
9407
|
+
authExecutor.pendingSelectSource,
|
|
9408
|
+
authExecutor.pendingOneTapSetup,
|
|
9409
|
+
dispatch
|
|
9410
|
+
]);
|
|
9411
|
+
}
|
|
9265
9412
|
function useGuestAccountAutoPollingEffect(deps) {
|
|
9266
9413
|
const {
|
|
9267
9414
|
mobileFlow,
|
|
@@ -9427,6 +9574,8 @@ function BlinkPaymentInner({
|
|
|
9427
9574
|
const { apiBaseUrl, depositAmount } = useBlinkConfig();
|
|
9428
9575
|
const { ready, authenticated, logout, getAccessToken } = usePrivy();
|
|
9429
9576
|
useLoginWithOAuth();
|
|
9577
|
+
const privyAuthenticatedRef = useRef(false);
|
|
9578
|
+
privyAuthenticatedRef.current = authenticated;
|
|
9430
9579
|
const isDesktop = shouldUseWalletConnector({
|
|
9431
9580
|
useWalletConnector: useWalletConnectorProp,
|
|
9432
9581
|
userAgent: typeof navigator === "undefined" ? void 0 : navigator.userAgent
|
|
@@ -9497,7 +9646,6 @@ function BlinkPaymentInner({
|
|
|
9497
9646
|
);
|
|
9498
9647
|
const sourceSelection = useSourceSelectionHandlers(dispatch, authExecutor, {
|
|
9499
9648
|
guestPreauthSessionId: state.guestPreauthSessionId,
|
|
9500
|
-
guestPreauthAccountId: state.guestPreauthAccountId,
|
|
9501
9649
|
isGuestFlow: state.isGuestFlow,
|
|
9502
9650
|
guestPreauthorizing: state.guestPreauthorizing,
|
|
9503
9651
|
isDesktop
|
|
@@ -9540,6 +9688,7 @@ function BlinkPaymentInner({
|
|
|
9540
9688
|
isDesktop
|
|
9541
9689
|
]
|
|
9542
9690
|
);
|
|
9691
|
+
const deferGuestPreauthLogin = state.guestPreauthorizing && isDesktop;
|
|
9543
9692
|
const oneTapSetup = useOneTapSetupHandlers({
|
|
9544
9693
|
dispatch,
|
|
9545
9694
|
getAccessToken,
|
|
@@ -9549,7 +9698,7 @@ function BlinkPaymentInner({
|
|
|
9549
9698
|
selectSourceTokenSymbol: sourceSelection.selectSourceTokenSymbol,
|
|
9550
9699
|
authorizationSessionIdForGuest: state.guestPreauthSessionId,
|
|
9551
9700
|
guestPostPayPreauth,
|
|
9552
|
-
|
|
9701
|
+
deferGuestPreauthLogin
|
|
9553
9702
|
});
|
|
9554
9703
|
const guestTransfer = useGuestTransferHandlers({
|
|
9555
9704
|
dispatch,
|
|
@@ -9742,14 +9891,16 @@ function BlinkPaymentInner({
|
|
|
9742
9891
|
state,
|
|
9743
9892
|
dispatch,
|
|
9744
9893
|
authExecutor,
|
|
9745
|
-
isDesktop
|
|
9894
|
+
isDesktop,
|
|
9895
|
+
privyAuthenticated: authenticated
|
|
9746
9896
|
});
|
|
9747
9897
|
useGuestDesktopPreauthSessionEffect({
|
|
9748
9898
|
state,
|
|
9749
9899
|
authExecutor,
|
|
9750
9900
|
reloadAccounts: transfer.reloadAccounts,
|
|
9751
9901
|
dispatch,
|
|
9752
|
-
desktopGuestPreauth: isDesktop
|
|
9902
|
+
desktopGuestPreauth: isDesktop,
|
|
9903
|
+
privyAuthenticatedRef
|
|
9753
9904
|
});
|
|
9754
9905
|
useGuestPreauthWalletSetupEffect({
|
|
9755
9906
|
state,
|
|
@@ -9757,6 +9908,12 @@ function BlinkPaymentInner({
|
|
|
9757
9908
|
authExecutor,
|
|
9758
9909
|
isDesktop
|
|
9759
9910
|
});
|
|
9911
|
+
useStandardDesktopInlineOpenWalletEffect({
|
|
9912
|
+
isDesktop,
|
|
9913
|
+
state,
|
|
9914
|
+
dispatch,
|
|
9915
|
+
authExecutor
|
|
9916
|
+
});
|
|
9760
9917
|
const handlers = useMemo(() => ({
|
|
9761
9918
|
onSendLoginCode: auth.handleSendLoginCode,
|
|
9762
9919
|
onVerifyLoginCode: auth.handleVerifyLoginCode,
|
|
@@ -9832,6 +9989,7 @@ function BlinkPaymentInner({
|
|
|
9832
9989
|
pollingError: polling.error,
|
|
9833
9990
|
guestAccountPollingError: guestAccountPolling.error,
|
|
9834
9991
|
authExecutorError: authExecutor.error,
|
|
9992
|
+
authExecutorExecuting: authExecutor.executing,
|
|
9835
9993
|
transferSigningSigning: transferSigning.signing,
|
|
9836
9994
|
transferSigningError: transferSigning.error,
|
|
9837
9995
|
pendingSelectSource: authExecutor.pendingSelectSource,
|