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