@swype-org/react-sdk 0.1.67 → 0.1.68

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
@@ -1610,6 +1610,9 @@ function resolvePostAuthStep(state) {
1610
1610
  return { step: "create-passkey", clearPersistedFlow: false };
1611
1611
  }
1612
1612
  if (state.persistedMobileFlow) {
1613
+ if (state.persistedMobileFlow.isSetup && hasActiveWallet(state.accounts)) {
1614
+ return { step: "deposit", clearPersistedFlow: true };
1615
+ }
1613
1616
  return { step: "open-wallet", clearPersistedFlow: false };
1614
1617
  }
1615
1618
  if ((state.accounts.length === 0 || !hasActiveWallet(state.accounts)) && !state.connectingNewAccount) {
@@ -1627,6 +1630,9 @@ function resolveRestoredMobileFlow(transferStatus, isSetup) {
1627
1630
  if (transferStatus === "FAILED") {
1628
1631
  return { kind: "resume-failed", step: "success", clearPersistedFlow: true };
1629
1632
  }
1633
+ if (isSetup) {
1634
+ return { kind: "resume-stale-setup", step: "wallet-picker", clearPersistedFlow: true };
1635
+ }
1630
1636
  return { kind: "resume-open-wallet", step: "open-wallet", clearPersistedFlow: false };
1631
1637
  }
1632
1638
  var FOOTER_CSS = `
@@ -4679,6 +4685,11 @@ function SwypePaymentInner({
4679
4685
  setStep("success");
4680
4686
  return;
4681
4687
  }
4688
+ if (mobileResolution.kind === "resume-stale-setup") {
4689
+ clearMobileFlowState();
4690
+ if (!cancelled) setStep("wallet-picker");
4691
+ return;
4692
+ }
4682
4693
  } catch (err) {
4683
4694
  if (cancelled) return;
4684
4695
  enterPersistedMobileFlow(