@dynamic-labs/multi-wallet 0.19.0-alpha.7 → 0.19.0-alpha.8

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/CHANGELOG.md CHANGED
@@ -1,4 +1,28 @@
1
1
 
2
+ ## [0.19.0-alpha.8](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.7...v0.19.0-alpha.8) (2023-09-11)
3
+
4
+
5
+ ### Features
6
+
7
+ * add onSignedMessage callback ([#3118](https://github.com/dynamic-labs/DynamicAuth/issues/3118)) ([acc36f6](https://github.com/dynamic-labs/DynamicAuth/commit/acc36f6cf584eb05a019027475a6e2e413fd6bd5))
8
+ * add social sign-in without embedded wallet ([#3172](https://github.com/dynamic-labs/DynamicAuth/issues/3172)) ([ff1acc6](https://github.com/dynamic-labs/DynamicAuth/commit/ff1acc6d9753ba745ac01c5ef6d26f2e4291b752))
9
+ * show default wallet icon when image breaks ([#3234](https://github.com/dynamic-labs/DynamicAuth/issues/3234)) ([657e6bb](https://github.com/dynamic-labs/DynamicAuth/commit/657e6bbc1cdcd840562d25194a827ea833237c1a))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * catch error sending sdkSettings and log warning ([#3274](https://github.com/dynamic-labs/DynamicAuth/issues/3274)) ([fcbe01b](https://github.com/dynamic-labs/DynamicAuth/commit/fcbe01bc733a73f38aebd6ffb0969b040dd2f781))
15
+ * detect if oauth popup is blocked and throw error ([#3250](https://github.com/dynamic-labs/DynamicAuth/issues/3250)) ([b87ddf3](https://github.com/dynamic-labs/DynamicAuth/commit/b87ddf399104e29c56566abbbecab6ff947992d6))
16
+ * display error message to user if social account already exits ([#3258](https://github.com/dynamic-labs/DynamicAuth/issues/3258)) ([bb52cb4](https://github.com/dynamic-labs/DynamicAuth/commit/bb52cb4ae42d89310d435584ed4ece126f9b6a4a))
17
+ * don't call callbacks if window closed due to oauth process complete ([#3252](https://github.com/dynamic-labs/DynamicAuth/issues/3252)) ([09a3c73](https://github.com/dynamic-labs/DynamicAuth/commit/09a3c73446aa337f24e0875cd4a0af617ea8ca84))
18
+ * issue where unexpected token would occur when bundlers defined process.env ([#3283](https://github.com/dynamic-labs/DynamicAuth/issues/3283)) ([d31d0a4](https://github.com/dynamic-labs/DynamicAuth/commit/d31d0a4011256f59cb3760acdc2c3dfe6c5b504a))
19
+ * login view layout updates ([#3231](https://github.com/dynamic-labs/DynamicAuth/issues/3231)) ([7762d06](https://github.com/dynamic-labs/DynamicAuth/commit/7762d067bdd4b3f313a15308262f18dac0b961ab))
20
+ * **MagicWalletConnector:** remove async from getWeb3Provider method ([#3230](https://github.com/dynamic-labs/DynamicAuth/issues/3230)) ([69356e9](https://github.com/dynamic-labs/DynamicAuth/commit/69356e9b0bd1800acdf24fc96c72b094b595eaa7))
21
+ * remove react component props from sending to sdk api ([#3282](https://github.com/dynamic-labs/DynamicAuth/issues/3282)) ([b0d8f2b](https://github.com/dynamic-labs/DynamicAuth/commit/b0d8f2b9dd0856a5a7bd862f6c3499b65ec29f64))
22
+ * seprate ls checks for dynamiccontext and wagmi settings ([#3275](https://github.com/dynamic-labs/DynamicAuth/issues/3275)) ([aa4e756](https://github.com/dynamic-labs/DynamicAuth/commit/aa4e756a10310ce216b5942d0d6845f7092a89a2))
23
+ * use context to handle social sign-in and display message while processing ([#3216](https://github.com/dynamic-labs/DynamicAuth/issues/3216)) ([0e3ce73](https://github.com/dynamic-labs/DynamicAuth/commit/0e3ce73eafbb8d5725377c9a8cbd86a82d6c525f))
24
+ * **wallet-connect-v2:** use appropriate default chain id with WC v2 ([#3218](https://github.com/dynamic-labs/DynamicAuth/issues/3218)) ([2e6e7be](https://github.com/dynamic-labs/DynamicAuth/commit/2e6e7beb801ea5a8dc7429970bcd1e705610d605))
25
+
2
26
  ## [0.19.0-alpha.7](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.6...v0.19.0-alpha.7) (2023-08-31)
3
27
 
4
28
 
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "0.19.0-alpha.7",
3
+ "version": "0.19.0-alpha.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
7
7
  "directory": "packages/multi-wallet"
8
8
  },
9
9
  "dependencies": {
10
- "@dynamic-labs/sdk-api": "0.0.270",
10
+ "@dynamic-labs/sdk-api": "0.0.272",
11
11
  "ethers": "5.7.2",
12
12
  "tslib": "2.4.1",
13
- "@dynamic-labs/rpc-providers": "0.19.0-alpha.7",
14
- "@dynamic-labs/types": "0.19.0-alpha.7",
15
- "@dynamic-labs/utils": "0.19.0-alpha.7",
16
- "@dynamic-labs/wallet-book": "0.19.0-alpha.7",
17
- "@dynamic-labs/wallet-connector-core": "0.19.0-alpha.7"
13
+ "@dynamic-labs/rpc-providers": "0.19.0-alpha.8",
14
+ "@dynamic-labs/types": "0.19.0-alpha.8",
15
+ "@dynamic-labs/utils": "0.19.0-alpha.8",
16
+ "@dynamic-labs/wallet-book": "0.19.0-alpha.8",
17
+ "@dynamic-labs/wallet-connector-core": "0.19.0-alpha.8"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@walletconnect/types": "2.4.2"
@@ -58,14 +58,14 @@ const getSupportedWallets = (args) => {
58
58
  return wallets;
59
59
  };
60
60
  const applyLinksOverrides = (walletBook$1, wallets) => wallets.map((wallet) => {
61
- const metadata = walletBook.getWalletBookWallet(walletBook$1, wallet.name);
61
+ const metadata = walletBook.getWalletBookWallet(walletBook$1, wallet.key);
62
62
  if (metadata.switchNetworkOnlyFromWallet !== undefined) {
63
63
  wallet.switchNetworkOnlyFromWallet = metadata.switchNetworkOnlyFromWallet;
64
64
  }
65
65
  return wallet;
66
66
  });
67
67
  const filterWalletsForPlatform = (walletBook$1, wallets) => wallets.filter((wallet) => {
68
- const metadata = walletBook.getWalletBookWallet(walletBook$1, wallet.name);
68
+ const metadata = walletBook.getWalletBookWallet(walletBook$1, wallet.key);
69
69
  if (wallet.isInstalledOnBrowser()) {
70
70
  return true;
71
71
  }
@@ -79,10 +79,10 @@ const filterWalletsForPlatform = (walletBook$1, wallets) => wallets.filter((wall
79
79
  return true;
80
80
  }
81
81
  else {
82
- return handleMobileWalletFilter(walletBook$1, wallet.name, metadata);
82
+ return handleMobileWalletFilter(walletBook$1, wallet.key, metadata);
83
83
  }
84
84
  });
85
- const handleMobileWalletFilter = (walletBook$1, walletName, metadata) => {
85
+ const handleMobileWalletFilter = (walletBook$1, walletKey, metadata) => {
86
86
  if (!metadata.mobile)
87
87
  return false;
88
88
  /**
@@ -94,13 +94,13 @@ const handleMobileWalletFilter = (walletBook$1, walletName, metadata) => {
94
94
  const hasWalletConnectLink = Boolean(metadata.mobile.universal) || Boolean(metadata.mobile.native);
95
95
  const isWalletConnectWallet = metadata.walletConnect !== undefined;
96
96
  if (utils.isIPad() || utils.isIPhone()) {
97
- const hasIOSLink = Boolean(walletBook.getWalletLinks(walletBook$1, walletName).ios);
97
+ const hasIOSLink = Boolean(walletBook.getWalletLinks(walletBook$1, walletKey).ios);
98
98
  return !isWalletConnectWallet
99
99
  ? hasIOSLink
100
100
  : hasIOSLink && hasWalletConnectLink;
101
101
  }
102
102
  else {
103
- const hasAndroidLink = Boolean(walletBook.getWalletLinks(walletBook$1, walletName).android);
103
+ const hasAndroidLink = Boolean(walletBook.getWalletLinks(walletBook$1, walletKey).android);
104
104
  return !isWalletConnectWallet
105
105
  ? hasAndroidLink
106
106
  : hasAndroidLink && hasWalletConnectLink;
@@ -112,7 +112,7 @@ const chainStringToChains = {
112
112
  };
113
113
  const getSupportedChainsForWalletConnector = (walletBook$1, walletConnector) => {
114
114
  var _a;
115
- const metadata = walletBook.getWalletBookWallet(walletBook$1, walletConnector.name);
115
+ const metadata = walletBook.getWalletBookWallet(walletBook$1, walletConnector.key);
116
116
  /**
117
117
  * chains could contain multiple eth networks eg
118
118
  * "eip155:1",
@@ -54,14 +54,14 @@ const getSupportedWallets = (args) => {
54
54
  return wallets;
55
55
  };
56
56
  const applyLinksOverrides = (walletBook, wallets) => wallets.map((wallet) => {
57
- const metadata = getWalletBookWallet(walletBook, wallet.name);
57
+ const metadata = getWalletBookWallet(walletBook, wallet.key);
58
58
  if (metadata.switchNetworkOnlyFromWallet !== undefined) {
59
59
  wallet.switchNetworkOnlyFromWallet = metadata.switchNetworkOnlyFromWallet;
60
60
  }
61
61
  return wallet;
62
62
  });
63
63
  const filterWalletsForPlatform = (walletBook, wallets) => wallets.filter((wallet) => {
64
- const metadata = getWalletBookWallet(walletBook, wallet.name);
64
+ const metadata = getWalletBookWallet(walletBook, wallet.key);
65
65
  if (wallet.isInstalledOnBrowser()) {
66
66
  return true;
67
67
  }
@@ -75,10 +75,10 @@ const filterWalletsForPlatform = (walletBook, wallets) => wallets.filter((wallet
75
75
  return true;
76
76
  }
77
77
  else {
78
- return handleMobileWalletFilter(walletBook, wallet.name, metadata);
78
+ return handleMobileWalletFilter(walletBook, wallet.key, metadata);
79
79
  }
80
80
  });
81
- const handleMobileWalletFilter = (walletBook, walletName, metadata) => {
81
+ const handleMobileWalletFilter = (walletBook, walletKey, metadata) => {
82
82
  if (!metadata.mobile)
83
83
  return false;
84
84
  /**
@@ -90,13 +90,13 @@ const handleMobileWalletFilter = (walletBook, walletName, metadata) => {
90
90
  const hasWalletConnectLink = Boolean(metadata.mobile.universal) || Boolean(metadata.mobile.native);
91
91
  const isWalletConnectWallet = metadata.walletConnect !== undefined;
92
92
  if (isIPad() || isIPhone()) {
93
- const hasIOSLink = Boolean(getWalletLinks(walletBook, walletName).ios);
93
+ const hasIOSLink = Boolean(getWalletLinks(walletBook, walletKey).ios);
94
94
  return !isWalletConnectWallet
95
95
  ? hasIOSLink
96
96
  : hasIOSLink && hasWalletConnectLink;
97
97
  }
98
98
  else {
99
- const hasAndroidLink = Boolean(getWalletLinks(walletBook, walletName).android);
99
+ const hasAndroidLink = Boolean(getWalletLinks(walletBook, walletKey).android);
100
100
  return !isWalletConnectWallet
101
101
  ? hasAndroidLink
102
102
  : hasAndroidLink && hasWalletConnectLink;
@@ -108,7 +108,7 @@ const chainStringToChains = {
108
108
  };
109
109
  const getSupportedChainsForWalletConnector = (walletBook, walletConnector) => {
110
110
  var _a;
111
- const metadata = getWalletBookWallet(walletBook, walletConnector.name);
111
+ const metadata = getWalletBookWallet(walletBook, walletConnector.key);
112
112
  /**
113
113
  * chains could contain multiple eth networks eg
114
114
  * "eip155:1",