@getpara/react-sdk 2.0.0-dev.3 → 2.0.0-fc.1

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.
package/dist/cli/cli.mjs CHANGED
@@ -8,12 +8,12 @@ const PACKAGES_TO_STUB = [
8
8
  '@getpara/evm-wallet-connectors',
9
9
  '@getpara/cosmos-wallet-connectors',
10
10
  '@getpara/solana-wallet-connectors',
11
- '@farcaster/miniapp-sdk',
12
- '@farcaster/miniapp-wagmi-connector',
13
11
  ];
14
12
 
15
13
  const checkForPackages = async () => {
16
- const pathToNodeModules = path.resolve('node_modules');
14
+ const pathToParaPackages = require.resolve('@getpara/react-sdk');
15
+
16
+ const pathToNodeModules = path.resolve(pathToParaPackages, '../../node_modules');
17
17
 
18
18
  for (let i = 0; i < PACKAGES_TO_STUB.length; i++) {
19
19
  const packageName = PACKAGES_TO_STUB[i];
@@ -22,24 +22,11 @@ const checkForPackages = async () => {
22
22
  } catch (err) {
23
23
  if (err.code === 'ERR_MODULE_NOT_FOUND') {
24
24
  const packageJsonContent = { name: packageName, main: './index.js' };
25
-
26
25
  await fs.mkdir(path.join(pathToNodeModules, packageName), { recursive: true });
27
- const indexPath = path.join(pathToNodeModules, packageName, 'index.js');
28
- const packageJsonPath = path.join(pathToNodeModules, packageName, 'package.json');
29
-
30
- try {
31
- await fs.access(indexPath);
32
- } catch {
33
- await fs.writeFile(indexPath, '//STUB');
34
- }
35
-
36
- try {
37
- await fs.access(packageJsonPath);
38
- } catch {
39
- await fs.writeFile(packageJsonPath, JSON.stringify(packageJsonContent), {
40
- encoding: 'utf-8',
41
- });
42
- }
26
+ await fs.writeFile(path.join(pathToNodeModules, packageName, 'index.js'), '//STUB');
27
+ await fs.writeFile(path.join(pathToNodeModules, packageName, 'package.json'), JSON.stringify(packageJsonContent), {
28
+ encoding: 'utf-8',
29
+ });
43
30
  }
44
31
  }
45
32
  }
@@ -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-dev.0";
124
+ const SDK_VERSION = "2.0.0-alpha.29";
125
125
  export {
126
126
  BODY_MOTION_VARIANTS,
127
127
  BODY_TRANSITION,
@@ -532,7 +532,7 @@ function ExternalWalletProvider({ children }) {
532
532
  });
533
533
  }
534
534
  loginFarcasterMiniApp();
535
- }, [para.isReady, para.isFarcasterMiniApp, evmFarcasterStatus]);
535
+ }, [para.isReady, para.isFarcasterMiniApp]);
536
536
  return /* @__PURE__ */ jsx(
537
537
  ExternalWalletContext.Provider,
538
538
  {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk",
3
- "version": "2.0.0-dev.3",
3
+ "version": "2.0.0-fc.1",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
7
7
  "dependencies": {
8
- "@getpara/react-common": "2.0.0-dev.3",
9
- "@getpara/react-components": "2.0.0-dev.3",
10
- "@getpara/web-sdk": "2.0.0-dev.3",
8
+ "@getpara/react-common": "2.0.0-fc.1",
9
+ "@getpara/react-components": "2.0.0-fc.1",
10
+ "@getpara/web-sdk": "2.0.0-fc.1",
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-dev.3",
20
- "@getpara/evm-wallet-connectors": "2.0.0-dev.3",
21
- "@getpara/solana-wallet-connectors": "2.0.0-dev.3",
19
+ "@getpara/cosmos-wallet-connectors": "2.0.0-fc.1",
20
+ "@getpara/evm-wallet-connectors": "2.0.0-fc.1",
21
+ "@getpara/solana-wallet-connectors": "2.0.0-fc.1",
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": "ffe34f7d8df2dd3c2327ca1f35bcc9764e0a68a2",
41
+ "gitHead": "1d69e4964329304db3faf32a93c0f213732d8dff",
42
42
  "main": "dist/index.js",
43
43
  "peerDependencies": {
44
44
  "@getpara/cosmos-wallet-connectors": "^2.0.0-alpha.26",