@getpara/react-sdk-lite 2.4.0 → 2.5.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.
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-MMUBH76A.js";
3
3
  const DEFAULTS = {
4
4
  LOGGIN_POLLING_DELAY_MS: 5e3,
5
- POLLING_INTERVAL_MS: 2e3,
5
+ POLLING_INTERVAL_MS: 1e3,
6
6
  ANIMATION_DURATION: 0.15
7
7
  };
8
8
  export {
@@ -99,7 +99,7 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
99
99
  if (!isConfigType(paraClientConfig) && !isParaWeb(paraClientConfig)) {
100
100
  throw new Error("Invalid Para config");
101
101
  }
102
- const newClient = isParaWeb(paraClientConfig) ? paraClientConfig : new ParaWeb(paraClientConfig.env, paraClientConfig.apiKey, paraClientConfig.opts);
102
+ const newClient = isParaWeb(paraClientConfig) ? paraClientConfig : paraClientConfig.env ? new ParaWeb(paraClientConfig.env, paraClientConfig.apiKey, paraClientConfig.opts) : new ParaWeb(paraClientConfig.apiKey, paraClientConfig.opts);
103
103
  newClient.setModalError = setModalError;
104
104
  newClient.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
105
105
  if (newClient.isReady) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk-lite",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
7
7
  "dependencies": {
8
- "@getpara/react-common": "2.4.0",
9
- "@getpara/react-components": "2.4.0",
10
- "@getpara/web-sdk": "2.4.0",
8
+ "@getpara/react-common": "2.5.0",
9
+ "@getpara/react-components": "2.5.0",
10
+ "@getpara/web-sdk": "2.5.0",
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.4.0",
20
- "@getpara/evm-wallet-connectors": "2.4.0",
21
- "@getpara/solana-wallet-connectors": "2.4.0",
19
+ "@getpara/cosmos-wallet-connectors": "2.5.0",
20
+ "@getpara/evm-wallet-connectors": "2.5.0",
21
+ "@getpara/solana-wallet-connectors": "2.5.0",
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": "971eba7723b162809178c742f9a3651a35d51fd3",
41
+ "gitHead": "b987686a1c70684b3b656fe52d02a9074487dcb7",
42
42
  "main": "dist/index.js",
43
43
  "peerDependencies": {
44
44
  "@tanstack/react-query": ">=5.0.0",