@getpara/react-sdk-lite 2.0.0-alpha.36 → 2.0.0-alpha.37

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.
@@ -121,7 +121,7 @@ const BODY_MOTION_VARIANTS = {
121
121
  const BODY_TRANSITION = {
122
122
  duration: 0.2
123
123
  };
124
- const SDK_VERSION = "2.0.0-alpha.36";
124
+ const SDK_VERSION = "2.0.0-alpha.37";
125
125
  export {
126
126
  BODY_MOTION_VARIANTS,
127
127
  BODY_TRANSITION,
@@ -171,7 +171,7 @@ const SignUpPreviousStep = {
171
171
  ["ADD_FUNDS_AWAITING" /* ADD_FUNDS_AWAITING */]: "ADD_FUNDS_BUY" /* ADD_FUNDS_BUY */,
172
172
  ["ADD_FUNDS_SUCCESS" /* ADD_FUNDS_SUCCESS */]: void 0,
173
173
  ["ADD_FUNDS_FAILURE" /* ADD_FUNDS_FAILURE */]: void 0,
174
- ["AWAITING_IFRAME" /* AWAITING_IFRAME */]: "BIOMETRIC_CREATION" /* BIOMETRIC_CREATION */
174
+ ["AWAITING_IFRAME" /* AWAITING_IFRAME */]: "AUTH_MAIN" /* AUTH_MAIN */
175
175
  };
176
176
  const GuestPreviousStep = Object.fromEntries([
177
177
  ...Object.entries(SignUpPreviousStep).map(([key, value]) => {
@@ -237,7 +237,7 @@ const LoginPreviousStep = {
237
237
  ["ADD_FUNDS_AWAITING" /* ADD_FUNDS_AWAITING */]: "ADD_FUNDS_BUY" /* ADD_FUNDS_BUY */,
238
238
  ["ADD_FUNDS_SUCCESS" /* ADD_FUNDS_SUCCESS */]: void 0,
239
239
  ["ADD_FUNDS_FAILURE" /* ADD_FUNDS_FAILURE */]: void 0,
240
- ["AWAITING_IFRAME" /* AWAITING_IFRAME */]: "BIOMETRIC_LOGIN" /* BIOMETRIC_LOGIN */
240
+ ["AWAITING_IFRAME" /* AWAITING_IFRAME */]: "AUTH_MAIN" /* AUTH_MAIN */
241
241
  };
242
242
  const getStepHasFooter = (step) => {
243
243
  switch (step) {
@@ -172,8 +172,10 @@ function AuthProvider({
172
172
  }
173
173
  },
174
174
  onError: () => {
175
- if (refs.currentStep.current && [ModalStep.AWAITING_BIOMETRIC_CREATION, ModalStep.PASSWORD_CREATION].includes(refs.currentStep.current)) {
176
- setStep(ModalStep.BIOMETRIC_CREATION);
175
+ if (refs.currentStep.current && [ModalStep.AWAITING_BIOMETRIC_CREATION, ModalStep.PASSWORD_CREATION, ModalStep.AWAITING_IFRAME].includes(
176
+ refs.currentStep.current
177
+ )) {
178
+ goBack();
177
179
  }
178
180
  },
179
181
  onSettled: () => {
@@ -116,9 +116,9 @@ function ExternalWalletProvider({ children }) {
116
116
  const [isSigningMessage, setIsSigningMessage] = useState(false);
117
117
  const allWallets = [...evmWallets, ...solanaWallets, ...cosmosWallets];
118
118
  let wallets = allWallets.filter(
119
- (w) => (w.internalId !== "FARCASTER" || (para == null ? void 0 : para.isFarcasterMiniApp)) && externalWallets.includes(w.id.toUpperCase())
119
+ (w) => (w.internalId !== "FARCASTER" || (para == null ? void 0 : para.isFarcasterMiniApp)) && externalWallets.includes(w.internalId)
120
120
  ).sort(
121
- (a, b) => externalWallets.indexOf(a.id.toUpperCase()) - externalWallets.indexOf(b.id.toUpperCase())
121
+ (a, b) => externalWallets.indexOf(a.internalId) - externalWallets.indexOf(b.internalId)
122
122
  ).sort((a, b) => a.installed === b.installed ? 0 : a.installed ? -1 : 1);
123
123
  const injectedWallets = allWallets.filter(
124
124
  (w) => (w == null ? void 0 : w.id) !== "Para" && !wallets.some((wallet2) => wallet2.id === w.id) && w.installed
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk-lite",
3
- "version": "2.0.0-alpha.36",
3
+ "version": "2.0.0-alpha.37",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
7
7
  "dependencies": {
8
- "@getpara/react-common": "2.0.0-alpha.36",
9
- "@getpara/react-components": "2.0.0-alpha.36",
10
- "@getpara/web-sdk": "2.0.0-alpha.36",
8
+ "@getpara/react-common": "2.0.0-alpha.37",
9
+ "@getpara/react-components": "2.0.0-alpha.37",
10
+ "@getpara/web-sdk": "2.0.0-alpha.37",
11
11
  "date-fns": "^3.6.0",
12
12
  "framer-motion": "^11.3.31",
13
13
  "libphonenumber-js": "^1.11.7",
@@ -16,9 +16,9 @@
16
16
  "zustand-sync-tabs": "^0.2.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.36",
20
- "@getpara/evm-wallet-connectors": "2.0.0-alpha.36",
21
- "@getpara/solana-wallet-connectors": "2.0.0-alpha.36",
19
+ "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.37",
20
+ "@getpara/evm-wallet-connectors": "2.0.0-alpha.37",
21
+ "@getpara/solana-wallet-connectors": "2.0.0-alpha.37",
22
22
  "@tanstack/react-query": "^5.74.0",
23
23
  "@testing-library/dom": "^10.4.0",
24
24
  "@testing-library/react": "^16.3.0",
@@ -38,7 +38,7 @@
38
38
  "package.json",
39
39
  "styles.css"
40
40
  ],
41
- "gitHead": "2f05b64622b5813679e11282e5ed5c78c9a00e6c",
41
+ "gitHead": "7386ccd1590142e086a1f7608e02eef55be75a12",
42
42
  "main": "dist/index.js",
43
43
  "peerDependencies": {
44
44
  "@tanstack/react-query": ">=5.0.0",