@dynamic-labs/wagmi-connector 1.0.0-alpha.9 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,4 +1,56 @@
1
1
 
2
+ ### [1.0.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0...v1.0.1) (2023-12-14)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * update wagmi to v1.4.12 ([#4171](https://github.com/dynamic-labs/DynamicAuth/issues/4171)) ([a741989](https://github.com/dynamic-labs/DynamicAuth/commit/a74198978f4708e96b12743b2f1f372b23940020))
8
+
9
+ ## [1.0.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.14...v1.0.0) (2023-12-12)
10
+
11
+ Changelog: https://docs.dynamic.xyz/changelog/v1
12
+ Upgrade guide: https://docs.dynamic.xyz/react-sdk/upgrade
13
+
14
+
15
+ ## [1.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2023-12-12)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add user_media scope to instagram ([#4144](https://github.com/dynamic-labs/DynamicAuth/issues/4144)) ([57b9140](https://github.com/dynamic-labs/DynamicAuth/commit/57b91400cae7287157988cd6dfe7f30aeced10de))
21
+ * enable buy button onramp even with pregenerated wallets ([#4135](https://github.com/dynamic-labs/DynamicAuth/issues/4135)) ([fd94ecd](https://github.com/dynamic-labs/DynamicAuth/commit/fd94ecdcbe7190dc9abeb829cdcd933561afdd77))
22
+ * make the pin input fields responsive ([#4140](https://github.com/dynamic-labs/DynamicAuth/issues/4140)) ([4244744](https://github.com/dynamic-labs/DynamicAuth/commit/42447445ec32a3bca48a48d001c24dcd5b5cf004))
23
+
24
+ ## [1.0.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2023-12-12)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * embedded wallet connected flag not picking up ([#4128](https://github.com/dynamic-labs/DynamicAuth/issues/4128)) ([c6fbb1d](https://github.com/dynamic-labs/DynamicAuth/commit/c6fbb1de2027b186a4277a75545fd66d0d11ba95))
30
+
31
+ ## [1.0.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2023-12-11)
32
+
33
+
34
+ ### Features
35
+
36
+ * add useFunding hook ([#4098](https://github.com/dynamic-labs/DynamicAuth/issues/4098)) ([27424ab](https://github.com/dynamic-labs/DynamicAuth/commit/27424ab1a15202ee2b7c73c8a19f11e480e1794a))
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * add primary color to the secure wallet text ([#4127](https://github.com/dynamic-labs/DynamicAuth/issues/4127)) ([7c642d0](https://github.com/dynamic-labs/DynamicAuth/commit/7c642d0385112289df52874bc5dd2eaa0e6cdf50))
42
+
43
+ ## [1.0.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2023-12-11)
44
+
45
+ ## [1.0.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2023-12-08)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * allow transaction error to read from viem error ([#4101](https://github.com/dynamic-labs/DynamicAuth/issues/4101)) ([0f46cbe](https://github.com/dynamic-labs/DynamicAuth/commit/0f46cbea1eb260c2efdeee9b62f669fb3cf4ab93))
51
+ * trigger claim flow for unclaimed embedded smart contract wallet signer ([#4108](https://github.com/dynamic-labs/DynamicAuth/issues/4108)) ([37c9013](https://github.com/dynamic-labs/DynamicAuth/commit/37c9013109f2d6a37bde041da9072c5f5fa2df67))
52
+ * WalletConnect v2 connector with non active chains ([#4085](https://github.com/dynamic-labs/DynamicAuth/issues/4085)) ([f69cbe9](https://github.com/dynamic-labs/DynamicAuth/commit/f69cbe96012563f71e89939c96f2a46926e7b394))
53
+
2
54
  ## [1.0.0-alpha.9](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2023-12-07)
3
55
 
4
56
 
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wagmi-connector",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
7
7
  "directory": "packages/wagmi-connector"
8
8
  },
9
9
  "peerDependencies": {
10
- "@wagmi/core": "^1.3.0",
11
10
  "react": "^17.0.2 || ^18.0.0",
12
11
  "viem": "^1.1.0",
13
- "wagmi": "^1.2.0",
14
- "@dynamic-labs/rpc-providers": "1.0.0-alpha.9",
15
- "@dynamic-labs/sdk-react-core": "1.0.0-alpha.9",
16
- "@dynamic-labs/types": "1.0.0-alpha.9",
17
- "@dynamic-labs/wallet-connector-core": "1.0.0-alpha.9",
12
+ "wagmi": "^1.4.12",
13
+ "@dynamic-labs/rpc-providers": "1.0.1",
14
+ "@dynamic-labs/sdk-react-core": "1.0.1",
15
+ "@dynamic-labs/types": "1.0.1",
16
+ "@dynamic-labs/wallet-connector-core": "1.0.1",
18
17
  "eventemitter3": "5.0.1"
19
18
  },
20
19
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import React, { useRef, useEffect, useMemo } from 'react';
2
2
  import { configureChains, mainnet, createConfig, WagmiConfig } from 'wagmi';
3
3
  import { publicProvider } from 'wagmi/providers/public';
4
- import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
4
+ import { useDynamicContext, useUserWallets } from '@dynamic-labs/sdk-react-core';
5
5
  import { Connector } from './Connector.js';
6
6
  import { getConnector } from './getConnector.js';
7
7
  import { getWagmiChainsFromDynamicChains } from './getWagmiChainsFromDynamicChains.js';
@@ -14,18 +14,13 @@ const config = createConfig({
14
14
  publicClient,
15
15
  });
16
16
  const DynamicWagmiConnector = ({ evmNetworks: customerSuppliedEvmNetworks, children, }) => {
17
- const { networkConfigurations, handleLogOut, connectedWallets, linkedWallets, authMode, sendWagmiSettings, } = useDynamicContext();
17
+ const { networkConfigurations, handleLogOut, sendWagmiSettings } = useDynamicContext();
18
18
  /**
19
19
  * This will prevent the wagmi Connector from calling handleLogOut when we are the ones calling disconnect
20
20
  * as a result of a handleLogOut call (see SyncDynamicWagmi), but will preserve the existing behavior for customers.
21
21
  */
22
22
  const preventWagmiSyncFromCallingLogout = useRef(false);
23
- /**
24
- * Linked wallets are only available on connect-and-sign mode and the connected wallets
25
- * are only available on connect-only mode, the wallet const represents the current available
26
- * wallets to be used when creating an wagmi connector
27
- */
28
- const wallets = authMode === 'connect-and-sign' ? linkedWallets : connectedWallets;
23
+ const wallets = useUserWallets();
29
24
  useEffect(() => {
30
25
  // only send wagmi settings once, when the first time DynamicWagmiConnector renders
31
26
  sendWagmiSettings({