@swype-org/react-sdk 0.1.222 → 0.1.223
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 +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -571,6 +571,7 @@ async function createTransfer(apiBaseUrl, token, params) {
|
|
|
571
571
|
throw new Error("merchantAuthorization is required for transfer creation.");
|
|
572
572
|
}
|
|
573
573
|
const body = {
|
|
574
|
+
type: "standard",
|
|
574
575
|
id: params.id ?? crypto.randomUUID(),
|
|
575
576
|
credentialId: params.credentialId,
|
|
576
577
|
merchantAuthorization: params.merchantAuthorization,
|
|
@@ -5909,6 +5910,9 @@ function StepRendererContent({
|
|
|
5909
5910
|
);
|
|
5910
5911
|
}
|
|
5911
5912
|
if (step === "wallet-picker") {
|
|
5913
|
+
if (state.isGuestFlow && state.selectedProviderId && state.activeCredentialId) {
|
|
5914
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlinkLoadingScreen, {});
|
|
5915
|
+
}
|
|
5912
5916
|
const isEntryPoint = !state.isGuestFlow && !authenticated;
|
|
5913
5917
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5914
5918
|
WalletPickerScreen,
|
|
@@ -8563,6 +8567,21 @@ function BlinkPaymentInner({
|
|
|
8563
8567
|
oneTapLimitSavedDuringSetupRef: oneTapSetup.oneTapLimitSavedDuringSetupRef,
|
|
8564
8568
|
handleAuthorizedMobileReturn: mobileFlow.handleAuthorizedMobileReturn
|
|
8565
8569
|
});
|
|
8570
|
+
const autoSelectingRef = react.useRef(false);
|
|
8571
|
+
react.useEffect(() => {
|
|
8572
|
+
if (state.step !== "wallet-picker" || !state.isGuestFlow || !state.selectedProviderId || !state.activeCredentialId || !authenticated || autoSelectingRef.current) return;
|
|
8573
|
+
autoSelectingRef.current = true;
|
|
8574
|
+
provider.handleSelectProvider(state.selectedProviderId).finally(() => {
|
|
8575
|
+
autoSelectingRef.current = false;
|
|
8576
|
+
});
|
|
8577
|
+
}, [
|
|
8578
|
+
state.step,
|
|
8579
|
+
state.isGuestFlow,
|
|
8580
|
+
state.selectedProviderId,
|
|
8581
|
+
state.activeCredentialId,
|
|
8582
|
+
authenticated,
|
|
8583
|
+
provider
|
|
8584
|
+
]);
|
|
8566
8585
|
const handlers = react.useMemo(() => ({
|
|
8567
8586
|
onSendLoginCode: auth.handleSendLoginCode,
|
|
8568
8587
|
onVerifyLoginCode: auth.handleVerifyLoginCode,
|