@getpara/react-sdk-lite 2.13.0 → 2.15.0

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.
@@ -99,7 +99,7 @@ const ParaModal = forwardRef((props, ref) => {
99
99
  onClose,
100
100
  defaultAuthIdentifier
101
101
  }), rest),
102
- reactSdkVersion: "2.13.0"
102
+ reactSdkVersion: "2.15.0"
103
103
  });
104
104
  } catch (e) {
105
105
  }
@@ -19,6 +19,10 @@ const WalletCreationDone = ({ onClose }) => {
19
19
  var _a;
20
20
  return (_a = state.modalConfig) == null ? void 0 : _a.bareModal;
21
21
  });
22
+ const disableAddFundsPrompt = useStore((state) => {
23
+ var _a;
24
+ return (_a = state.modalConfig) == null ? void 0 : _a.disableAddFundsPrompt;
25
+ });
22
26
  const onRampConfig = useStore((state) => state.onRampConfig);
23
27
  const twoFactorAuthUri = useStore((state) => state.twoFactorAuthUri);
24
28
  const setHasCreatedWallets = useStore((state) => state.setHasCreatedWallets);
@@ -42,7 +46,7 @@ const WalletCreationDone = ({ onClose }) => {
42
46
  /* @__PURE__ */ jsx(HeroIcon, { icon: "checkCircleFilled" }),
43
47
  /* @__PURE__ */ jsx(CpslText, { variant: "bodyM", color: "secondary", weight: "medium", style: { marginTop: "16px" }, children: "Your account has been created." })
44
48
  ] }) : /* @__PURE__ */ jsx(WalletCards, { "data-testid": "para-wallet-card", children: para.currentWalletIdsArray.map(([id, type]) => {
45
- return /* @__PURE__ */ jsx(WalletCard, { id, type, showAddFunds: isOnRampConfigured }, id);
49
+ return /* @__PURE__ */ jsx(WalletCard, { id, type, showAddFunds: isOnRampConfigured && !disableAddFundsPrompt }, id);
46
50
  }) }) }),
47
51
  /* @__PURE__ */ jsx(InnerStepContainer, { children: /* @__PURE__ */ jsx(CpslButton, { fullWidth: true, onClick: handleNext, disabled: isWaiting, "data-testid": "para-done-button", children: isTwoFactorAuthEnabled ? "Continue" : "Done" }) })
48
52
  ] });
@@ -142,4 +142,10 @@ export interface ParaModalProps {
142
142
  * Configuration for the profile balances displayed in the Para Modal.
143
143
  */
144
144
  balances?: BalancesConfig;
145
+ /**
146
+ * Whether to hide the "Add Funds" prompt shown on the wallet creation screen after signup.
147
+ * This does not affect the Add Funds button in the main account view.
148
+ * Defaults to `false`.
149
+ */
150
+ disableAddFundsPrompt?: boolean;
145
151
  }
@@ -17,8 +17,8 @@ const PROVIDER_LIMITS = {
17
17
  [OnRampPurchaseType.SELL]: { min: 0.5, max: null }
18
18
  },
19
19
  [OnRampProvider.RAMP]: {
20
- [OnRampPurchaseType.BUY]: { min: null, max: null },
21
- [OnRampPurchaseType.SELL]: { min: null, max: null }
20
+ [OnRampPurchaseType.BUY]: { min: 5, max: null },
21
+ [OnRampPurchaseType.SELL]: { min: 5, max: null }
22
22
  }
23
23
  };
24
24
  function checkHasProviders({ providers }) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk-lite",
3
- "version": "2.13.0",
3
+ "version": "2.15.0",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
7
7
  "dependencies": {
8
- "@getpara/react-common": "2.13.0",
9
- "@getpara/react-components": "2.13.0",
10
- "@getpara/web-sdk": "2.13.0",
8
+ "@getpara/react-common": "2.15.0",
9
+ "@getpara/react-components": "2.15.0",
10
+ "@getpara/web-sdk": "2.15.0",
11
11
  "date-fns": "^3.6.0",
12
12
  "framer-motion": "^11.3.31",
13
13
  "libphonenumber-js": "^1.11.7",
@@ -17,9 +17,9 @@
17
17
  "zustand-sync-tabs": "^0.2.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@getpara/cosmos-wallet-connectors": "2.13.0",
21
- "@getpara/evm-wallet-connectors": "2.13.0",
22
- "@getpara/solana-wallet-connectors": "2.13.0",
20
+ "@getpara/cosmos-wallet-connectors": "2.15.0",
21
+ "@getpara/evm-wallet-connectors": "2.15.0",
22
+ "@getpara/solana-wallet-connectors": "2.15.0",
23
23
  "@tanstack/react-query": "^5.74.0",
24
24
  "@testing-library/dom": "^10.4.0",
25
25
  "@testing-library/react": "^16.3.0",
@@ -39,7 +39,7 @@
39
39
  "package.json",
40
40
  "styles.css"
41
41
  ],
42
- "gitHead": "75ac5d1ebe87366c23bb4e485481deb1b593e299",
42
+ "gitHead": "9cecc178e975a44d8ed4b03f46aeb57ddcb7a152",
43
43
  "main": "dist/index.js",
44
44
  "peerDependencies": {
45
45
  "@tanstack/react-query": ">=5.0.0",