@dynamic-labs/wagmi-connector 0.15.0-RC.9 → 0.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,151 @@
1
+ ## [0.15.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.14.31...v0.15.0) (2023-03-01)
2
+
3
+
4
+ We are excited to release V0.15.0 as part of our public beta announcement.
5
+ v0.14 release.
6
+ You can read more about it in our announcement [blog post](https://www.dynamic.xyz/blog/public-beta-release)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+ As always we try to introduce as few breaking changes as possible, if you have any issue with the changes below please don't hesitate to reach out.
10
+
11
+ * Based on your feedback, our team has been hard at work to completely redesign our SDK UI and move it to ShadowDom. Now in addition, to the default customizations that we provide in the our admin dashboard, you have full control and ability to customize any element in the Dynamic's SDK to your liking. If you previously used any CSS Classes to override our previous SDK modal you will need to update them to the current CSS classes.
12
+
13
+ For more info see: [Custom CSS](https://docs.dynamic.xyz/docs/custom-css).
14
+
15
+ * As we introduced more callbacks, we now require all the callbacks to be nested under `eventsCallbacks` see: [Callbacks](https://docs.dynamic.xyz/docs/onauthflowclose)
16
+
17
+ * We removed `user.walletPublicKey`, instead please use `primaryWallet.address`.
18
+
19
+ ### Highlights
20
+ * A Complete rewrite of our SDK UI and design configurations (see: [Custom CSS](https://docs.dynamic.xyz/docs/custom-css))
21
+ * Support for Email Verification + and Sign in with Email.
22
+ * Integration with magic.link.
23
+ * New and improved network selector experience
24
+ * Support for Wallet Connect V2
25
+ * Multi-wallet support for Flow + Lilico
26
+ * Multiple Bug Fixes + reduction in our package size
27
+
28
+ ## [0.15.0-RC.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.15...v0.15.0-RC.16) (2023-03-01)
29
+
30
+
31
+ ### Features
32
+
33
+ * **DYN-1637:** update linking, transfering and unlinking logic for login with email ([91c7fcf](https://github.com/dynamic-labs/DynamicAuth/commit/91c7fcf766af9096f4682f1126103d33eed38184))
34
+ * **DYN-1637:** update widget ui for non-wallet users ([d988c9a](https://github.com/dynamic-labs/DynamicAuth/commit/d988c9a0c01ec29739205d9df14218ad949a9153))
35
+ * **DYN-1638:** create CollectUserDataViewLoginWithEmail ([5272025](https://github.com/dynamic-labs/DynamicAuth/commit/527202544bd0dbe4473b65cca4cbeee72ce26c17))
36
+ * **DYN-1638:** remove checkIfThirdRequired last ([319e763](https://github.com/dynamic-labs/DynamicAuth/commit/319e763db4b3bf16674a1f0c3a405d9cfb4d3a63))
37
+ * **DYN-1638:** use missingFields from jwt ([fdf52dd](https://github.com/dynamic-labs/DynamicAuth/commit/fdf52ddd01b39d214acbe09aa5f470dd28568634))
38
+ * export DynamicWidgetContextProvider ([25fc164](https://github.com/dynamic-labs/DynamicAuth/commit/25fc1649395cdbe29f01858e4ae5f168a1d29b9d))
39
+
40
+ ## [0.15.0-RC.15](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.14...v0.15.0-RC.15) (2023-03-01)
41
+
42
+
43
+ ### Features
44
+
45
+ * add EmailConnectorPendingSignModalContent ([c31b791](https://github.com/dynamic-labs/DynamicAuth/commit/c31b791c21e6c1ec2385e60d1a1cc101df582fd2))
46
+ * add getEnabledProviders ([d8d5cb1](https://github.com/dynamic-labs/DynamicAuth/commit/d8d5cb1a1f99e097cde5e633c3b98bd52b7f5f16))
47
+ * add new signatures/types for Magic Link ([61065e9](https://github.com/dynamic-labs/DynamicAuth/commit/61065e92ea59f205e69ab97ac3aecb0f36be2f56))
48
+ * **display_order:** use display order from api ([074f5bb](https://github.com/dynamic-labs/DynamicAuth/commit/074f5bb4b06855e5c40463471811ba5e42bbe70c))
49
+ * implement isEmailWalletConnector ([e7f0527](https://github.com/dynamic-labs/DynamicAuth/commit/e7f05275103f43a914f266b8dc6ec1f6a82b51b8))
50
+ * Implement Magic Link connector ([dd4e5f6](https://github.com/dynamic-labs/DynamicAuth/commit/dd4e5f6a536d37adfba7111764caf3e521f6514f))
51
+ * integrate Magic Link with email flow ([dca5f07](https://github.com/dynamic-labs/DynamicAuth/commit/dca5f078ef781dc0bffb6d4fbbb473e4b9e06f25))
52
+ * UI, modals and utils for Magic Link ([76accbd](https://github.com/dynamic-labs/DynamicAuth/commit/76accbd657f342d9abe9a49508f43261b8398857))
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * **email_confirmation:** go to correct view when clicking edit email ([29af782](https://github.com/dynamic-labs/DynamicAuth/commit/29af78292b4a6088443606b8b79533fefe68d3f3))
58
+ * init magic's SDK only during the login process ([a6e5615](https://github.com/dynamic-labs/DynamicAuth/commit/a6e5615af1edc8dd6d1dd31e8f2af83b7f4e5fb0))
59
+ * NetworkPicker is cut in widget ([883b3b6](https://github.com/dynamic-labs/DynamicAuth/commit/883b3b65908d6614021713e3e6e3c56211799947))
60
+ * Tooltip has lower z-index than auth flow ([0a111e5](https://github.com/dynamic-labs/DynamicAuth/commit/0a111e5a0ba918dc66454114f7899cc81b747a56))
61
+
62
+ ## [0.15.0-RC.14](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.13...v0.15.0-RC.14) (2023-02-27)
63
+
64
+ ## [0.15.0-RC.13](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.12...v0.15.0-RC.13) (2023-02-27)
65
+
66
+
67
+ ### ⚠ BREAKING CHANGES
68
+
69
+ * it removes user.walletPublicKey, instead use primaryWallet.address
70
+
71
+ ### Features
72
+
73
+ * **DYN-1943:** Granular control over widget ([0255408](https://github.com/dynamic-labs/DynamicAuth/commit/02554084abb1cc0090dbe1722a611f061597ca22))
74
+
75
+
76
+ ### Bug Fixes
77
+
78
+ * **dynamic_context:** update email view state when settings is loaded ([0860090](https://github.com/dynamic-labs/DynamicAuth/commit/086009033078c69fc4b01d9a856164946ac14920))
79
+ * **KYC:** remove wallet icon next to ens name ([6f7b7ed](https://github.com/dynamic-labs/DynamicAuth/commit/6f7b7ed6d35d0adc62a75fe4bf7541b19608ed99))
80
+ * Tooltip position is not updated after view change ([3a3f616](https://github.com/dynamic-labs/DynamicAuth/commit/3a3f6161a05fd90a60588593161f67cd11a1cdbd))
81
+
82
+
83
+ * remove user walletpublickey prop ([a016aab](https://github.com/dynamic-labs/DynamicAuth/commit/a016aab1b6aa438900fda45283ce909ff521b47b))
84
+
85
+ ## [0.15.0-RC.12](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.11...v0.15.0-RC.12) (2023-02-24)
86
+
87
+
88
+ ### ⚠ BREAKING CHANGES
89
+
90
+ * remove deprecated callbacks
91
+
92
+ ### Features
93
+
94
+ * add auto theme mode to switch theme depending on system ([94f13a0](https://github.com/dynamic-labs/DynamicAuth/commit/94f13a0d3a411902db35c1238375341099ec75cd))
95
+ * **DYN-1916:** Add verified email tooltip & icon ([2b6742d](https://github.com/dynamic-labs/DynamicAuth/commit/2b6742d4089863e39fb87eeaf06007cc032f4028))
96
+ * **DYN-1968:** reset ErrorContext state on modal close/open ([a5ca73e](https://github.com/dynamic-labs/DynamicAuth/commit/a5ca73e2bad70f7496fc1a446a3c05349cf3fbc5))
97
+ * **DYN-1975:** move user to main screen on failed retry attempt ([77edfd7](https://github.com/dynamic-labs/DynamicAuth/commit/77edfd77ad674f94001697045a6f5536d9ad57e2))
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * **DYN-1975:** wrong error message on too many login attempts ([07f191a](https://github.com/dynamic-labs/DynamicAuth/commit/07f191a24beee65c9e4235514e3c4fe71d53fa1e))
103
+ * **email-field:** add id to email field so label focus on correct element ([d8696f7](https://github.com/dynamic-labs/DynamicAuth/commit/d8696f7395cb7462ee7062dce6ce45a02856345c))
104
+ * fallback to wc v1 when projectId is not present ([049cd45](https://github.com/dynamic-labs/DynamicAuth/commit/049cd45d85e37c45fcd6175042346eb7e31db21d))
105
+
106
+
107
+ * remove deprecated callbacks ([4d77083](https://github.com/dynamic-labs/DynamicAuth/commit/4d770836d86bccf0a01db7284483e91231d48894))
108
+
109
+ ## [0.15.0-RC.11](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.10...v0.15.0-RC.11) (2023-02-22)
110
+
111
+ ## [0.15.0-RC.10](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.9...v0.15.0-RC.10) (2023-02-21)
112
+
113
+
114
+ ### Features
115
+
116
+ * **DYN-1637:** add logInWithEmail to walletListBuilder ([b812851](https://github.com/dynamic-labs/DynamicAuth/commit/b81285147416403bd9a00ae6a23f3147c687cab5))
117
+ * **DYN-1637:** add new api call ([bad0ce0](https://github.com/dynamic-labs/DynamicAuth/commit/bad0ce0433acb95bc81689d3903094cd997f4559))
118
+ * **DYN-1637:** create and add two new switches to the Toolkit ([733fb34](https://github.com/dynamic-labs/DynamicAuth/commit/733fb34d093a80432c34999b39671cba735442fa))
119
+ * **DYN-1637:** create Divider component ([babf5b6](https://github.com/dynamic-labs/DynamicAuth/commit/babf5b65365b7f1ef6651ae2adcd86770b8d9f1c))
120
+ * **DYN-1637:** create LoginWithEmailView ([9f049b7](https://github.com/dynamic-labs/DynamicAuth/commit/9f049b7f73cafa65004b2dfe504a6ae9818f06ae))
121
+ * **DYN-1637:** create LoginWithEmailView components ([beebab2](https://github.com/dynamic-labs/DynamicAuth/commit/beebab2ffbcd9b3c2231329ae961a5e58586afac))
122
+ * **DYN-1637:** it adds new variables to useInternalDynamicContext ([ada34c9](https://github.com/dynamic-labs/DynamicAuth/commit/ada34c9869b59947f6954692b95929480c9c213f))
123
+ * **DYN-1637:** update DynamicConnectButton to display email login view based on the props ([9adc119](https://github.com/dynamic-labs/DynamicAuth/commit/9adc119938295b8ce3c384c566f46e72450dbfdc))
124
+ * **DYN-1637:** update EmailVerification component, so that it can call different methods and looks different based on the view ([6c55cd6](https://github.com/dynamic-labs/DynamicAuth/commit/6c55cd6848c076cb7c897dfeeedba32a5634bd46))
125
+ * **DYN-1637:** update Main component to show new views ([243fafc](https://github.com/dynamic-labs/DynamicAuth/commit/243fafc72a62d2ab40ba992bed75b0f9f933c4ec))
126
+ * **DYN-1637:** update ModalHeader, Portal and DynamicAuthLayout ([7631c48](https://github.com/dynamic-labs/DynamicAuth/commit/7631c4853b54f0451525aafa4dfc812d8eb2e896))
127
+ * **DYN-1637:** update sdk-api ([cdf8fbd](https://github.com/dynamic-labs/DynamicAuth/commit/cdf8fbd2f490bfe3a4f9ad97e7f417e6e9280edb))
128
+ * **DYN-1637:** update tos and pp ([82304be](https://github.com/dynamic-labs/DynamicAuth/commit/82304be1c9ad7f69bfbd41d6631f7ee0e5385a41))
129
+ * **DYN-1836:** user profile multiple improvments ([2316177](https://github.com/dynamic-labs/DynamicAuth/commit/2316177142bcb083966e307e16bfb27f061508cc))
130
+ * **DYN-1837:** move UserDataForm to hook ([224c031](https://github.com/dynamic-labs/DynamicAuth/commit/224c03119d9f050b6447edde76acbc1427979230))
131
+ * **DYN-1840:** show ENS profile pic & name in dynamic widget ([f4bcde9](https://github.com/dynamic-labs/DynamicAuth/commit/f4bcde97ce9d1d031b4c3bfb7273d908b3b802bc))
132
+ * **DYN-1892:** Update SingleWallet popup unline with designs; Show user details in it ([7d3a314](https://github.com/dynamic-labs/DynamicAuth/commit/7d3a314975c8847f1e262f1f41abe28e961afc85))
133
+ * **DYN-1923:** Unify widget experience ([a287259](https://github.com/dynamic-labs/DynamicAuth/commit/a28725951fe5d5ad5c2c42d4a8aca4a83203423d))
134
+ * **DYN-1937:** Add onUserProfileUpdate ([3dd6e9e](https://github.com/dynamic-labs/DynamicAuth/commit/3dd6e9e78a9e9101f645f146ea6cd8fed1de9ad6))
135
+ * **EmptyWallets:** update copy ([ee9c210](https://github.com/dynamic-labs/DynamicAuth/commit/ee9c210743a108d49a553549e461907fa1303720))
136
+ * use dropdown variant in e2e tests ([ec39bf1](https://github.com/dynamic-labs/DynamicAuth/commit/ec39bf1c757cf842cde1d550ee0084f6b6e8fc66))
137
+ * **UserProfile:** add edit view with form ([1f2d1a3](https://github.com/dynamic-labs/DynamicAuth/commit/1f2d1a36987aed38265a05ac0f357653054730df))
138
+ * **UserProfile:** multiple improvments after review ([a881d03](https://github.com/dynamic-labs/DynamicAuth/commit/a881d03463dd47453104de971f0084390646559e))
139
+ * **UserProfile:** show ens name in AccountControl ([c657152](https://github.com/dynamic-labs/DynamicAuth/commit/c65715279d5475f469fc9f623a372da1b423a570))
140
+ * **UserProfile:** update test coverage ([e2bb398](https://github.com/dynamic-labs/DynamicAuth/commit/e2bb3989629c7dbbaae1e1fece2feb0047201afb))
141
+
142
+
143
+ ### Bug Fixes
144
+
145
+ * **UserProfile:** apply border to dynamic widget card ([30802ba](https://github.com/dynamic-labs/DynamicAuth/commit/30802ba8df6244deb17d373c28d3355a9548a936))
146
+ * **UserProfile:** multiple improvments for userProfile ([3f79c9b](https://github.com/dynamic-labs/DynamicAuth/commit/3f79c9b1a0f115d155a79ee4a833c7750ae7413e))
147
+ * **UserProfile:** show DotsMenu in proper position ([577ccab](https://github.com/dynamic-labs/DynamicAuth/commit/577ccabb1b8096c6299044fc556b4e581292910b))
148
+ * **UserProfile:** update DynamicWidgetCard radius inline with DynamicAuthLayout radius ([de3447f](https://github.com/dynamic-labs/DynamicAuth/commit/de3447f0974384ba19023945ac24d9cb011f1f36))
1
149
 
2
150
  ## [0.15.0-RC.9](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.0-RC.8...v0.15.0-RC.9) (2023-02-21)
3
151
 
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
- # wagmi-connector
1
+ <img width="1578" alt="Wagmi20" src="https://user-images.githubusercontent.com/1596208/221365027-89155991-a8d1-4815-a3a9-43d2e22cef2e.png">
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ # Dynamic Wagmi Connector
4
+
5
+ If you're already using or would like to use Wagmi, not to worry, because Dynamic works alongside Wagmi!
6
+
7
+ You can read our full guide to getting started with [WAGMI](https://wagmi.sh/) and Dynamic [here](https://docs.dynamic.xyz/docs/wagmi-v2)
8
+
9
+ Also, read our full announcement [here](https://www.dynamic.xyz/blog/dynamic-wagmi)
4
10
 
5
11
  ## Running unit tests
6
12
 
package/index.cjs CHANGED
@@ -176,6 +176,7 @@ var toIndexedObject$5 = function (it) {
176
176
  var documentAll$2 = typeof document == 'object' && document.all;
177
177
 
178
178
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
179
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
179
180
  var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
180
181
 
181
182
  var documentAll_1 = {
@@ -365,10 +366,10 @@ var store$2 = sharedStore;
365
366
  (shared$3.exports = function (key, value) {
366
367
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
367
368
  })('versions', []).push({
368
- version: '3.26.1',
369
+ version: '3.27.0',
369
370
  mode: 'global',
370
371
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
371
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
372
+ license: 'https://github.com/zloirock/core-js/blob/v3.27.0/LICENSE',
372
373
  source: 'https://github.com/zloirock/core-js'
373
374
  });
374
375
 
package/index.js CHANGED
@@ -149,6 +149,7 @@ var toIndexedObject$5 = function (it) {
149
149
  var documentAll$2 = typeof document == 'object' && document.all;
150
150
 
151
151
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
152
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
152
153
  var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
153
154
 
154
155
  var documentAll_1 = {
@@ -338,10 +339,10 @@ var store$2 = sharedStore;
338
339
  (shared$3.exports = function (key, value) {
339
340
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
340
341
  })('versions', []).push({
341
- version: '3.26.1',
342
+ version: '3.27.0',
342
343
  mode: 'global',
343
344
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
344
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
345
+ license: 'https://github.com/zloirock/core-js/blob/v3.27.0/LICENSE',
345
346
  source: 'https://github.com/zloirock/core-js'
346
347
  });
347
348
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wagmi-connector",
3
- "version": "0.15.0-RC.9",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,8 +12,8 @@
12
12
  "react": "^17.0.2 || ^18.0.0",
13
13
  "ethers": "^5.7.2",
14
14
  "wagmi": "~0.10.3",
15
- "@dynamic-labs/sdk-react": "0.15.0-RC.9",
16
- "@dynamic-labs/multi-wallet": "0.15.0-RC.9"
15
+ "@dynamic-labs/sdk-react": "0.15.0",
16
+ "@dynamic-labs/multi-wallet": "0.15.0"
17
17
  },
18
18
  "license": "MIT",
19
19
  "module": "./index.js",