@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.
|
@@ -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 */]: "
|
|
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 */]: "
|
|
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(
|
|
176
|
-
|
|
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.
|
|
119
|
+
(w) => (w.internalId !== "FARCASTER" || (para == null ? void 0 : para.isFarcasterMiniApp)) && externalWallets.includes(w.internalId)
|
|
120
120
|
).sort(
|
|
121
|
-
(a, b) => externalWallets.indexOf(a.
|
|
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.
|
|
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.
|
|
9
|
-
"@getpara/react-components": "2.0.0-alpha.
|
|
10
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
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.
|
|
20
|
-
"@getpara/evm-wallet-connectors": "2.0.0-alpha.
|
|
21
|
-
"@getpara/solana-wallet-connectors": "2.0.0-alpha.
|
|
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": "
|
|
41
|
+
"gitHead": "7386ccd1590142e086a1f7608e02eef55be75a12",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@tanstack/react-query": ">=5.0.0",
|