@getpara/react-sdk-lite 2.0.0-alpha.51 → 2.0.0-alpha.52
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.
|
@@ -17,6 +17,7 @@ import { AnimatePresence } from "framer-motion";
|
|
|
17
17
|
import { AddFundsSettings } from "./AddFundsSettings.js";
|
|
18
18
|
import { WalletSelectOld } from "../WalletSelectOld/WalletSelectOld.js";
|
|
19
19
|
const AddFunds = () => {
|
|
20
|
+
var _a;
|
|
20
21
|
const step = useModalStore((state) => state.step);
|
|
21
22
|
const onRampConfig = useModalStore((state) => state.onRampConfig);
|
|
22
23
|
const onRampStep = useModalStore((state) => state.onRampStep);
|
|
@@ -29,7 +30,7 @@ const AddFunds = () => {
|
|
|
29
30
|
const tabs = TABS.filter(
|
|
30
31
|
([enabledFlow, key]) => !!(onRampConfig == null ? void 0 : onRampConfig[key]) && (!isGuestMode || enabledFlow === EnabledFlow.RECEIVE)
|
|
31
32
|
);
|
|
32
|
-
const tab = storedTab != null ? storedTab : tabs[0][0];
|
|
33
|
+
const tab = storedTab != null ? storedTab : (_a = tabs[0]) == null ? void 0 : _a[0];
|
|
33
34
|
const isMultiFlow = (tab === EnabledFlow.BUY || tab === EnabledFlow.RECEIVE) && (onRampConfig == null ? void 0 : onRampConfig.isBuyEnabled) && (onRampConfig == null ? void 0 : onRampConfig.isReceiveEnabled);
|
|
34
35
|
const onSetTab = (event) => {
|
|
35
36
|
setModalStep(getAddFundsStep(event.detail.tab));
|
|
@@ -52,7 +53,7 @@ const AddFunds = () => {
|
|
|
52
53
|
useEffect(() => {
|
|
53
54
|
setOnRampPurchase(void 0);
|
|
54
55
|
}, []);
|
|
55
|
-
if (!onRampConfig || !activeWallet) {
|
|
56
|
+
if (!onRampConfig || !activeWallet || !tab) {
|
|
56
57
|
return /* @__PURE__ */ jsx(SpinnerContainer, { children: /* @__PURE__ */ jsx(CpslSpinner, {}) });
|
|
57
58
|
}
|
|
58
59
|
return /* @__PURE__ */ jsxs(StepContainer, { children: [
|
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.52",
|
|
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.52",
|
|
9
|
+
"@getpara/react-components": "2.0.0-alpha.52",
|
|
10
|
+
"@getpara/web-sdk": "2.0.0-alpha.52",
|
|
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.52",
|
|
20
|
+
"@getpara/evm-wallet-connectors": "2.0.0-alpha.52",
|
|
21
|
+
"@getpara/solana-wallet-connectors": "2.0.0-alpha.52",
|
|
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": "a63dba8c230e9ff2d73b275d3e40091b93aecf1c",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@tanstack/react-query": ">=5.0.0",
|