@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.js CHANGED
@@ -568,6 +568,7 @@ async function createTransfer(apiBaseUrl, token, params) {
568
568
  throw new Error("merchantAuthorization is required for transfer creation.");
569
569
  }
570
570
  const body = {
571
+ type: "standard",
571
572
  id: params.id ?? crypto.randomUUID(),
572
573
  credentialId: params.credentialId,
573
574
  merchantAuthorization: params.merchantAuthorization,
@@ -5906,6 +5907,9 @@ function StepRendererContent({
5906
5907
  );
5907
5908
  }
5908
5909
  if (step === "wallet-picker") {
5910
+ if (state.isGuestFlow && state.selectedProviderId && state.activeCredentialId) {
5911
+ return /* @__PURE__ */ jsx(BlinkLoadingScreen, {});
5912
+ }
5909
5913
  const isEntryPoint = !state.isGuestFlow && !authenticated;
5910
5914
  return /* @__PURE__ */ jsx(
5911
5915
  WalletPickerScreen,
@@ -8560,6 +8564,21 @@ function BlinkPaymentInner({
8560
8564
  oneTapLimitSavedDuringSetupRef: oneTapSetup.oneTapLimitSavedDuringSetupRef,
8561
8565
  handleAuthorizedMobileReturn: mobileFlow.handleAuthorizedMobileReturn
8562
8566
  });
8567
+ const autoSelectingRef = useRef(false);
8568
+ useEffect(() => {
8569
+ if (state.step !== "wallet-picker" || !state.isGuestFlow || !state.selectedProviderId || !state.activeCredentialId || !authenticated || autoSelectingRef.current) return;
8570
+ autoSelectingRef.current = true;
8571
+ provider.handleSelectProvider(state.selectedProviderId).finally(() => {
8572
+ autoSelectingRef.current = false;
8573
+ });
8574
+ }, [
8575
+ state.step,
8576
+ state.isGuestFlow,
8577
+ state.selectedProviderId,
8578
+ state.activeCredentialId,
8579
+ authenticated,
8580
+ provider
8581
+ ]);
8563
8582
  const handlers = useMemo(() => ({
8564
8583
  onSendLoginCode: auth.handleSendLoginCode,
8565
8584
  onVerifyLoginCode: auth.handleVerifyLoginCode,