@dynamic-labs/types 0.19.0-alpha.9 → 0.19.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,303 @@
1
1
 
2
+ ### [0.19.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0...v0.19.1) (2023-11-03)
3
+
4
+
5
+ ### Features
6
+
7
+ * adding editable copies as typed data ([#3773](https://github.com/dynamic-labs/DynamicAuth/issues/3773)) ([#3793](https://github.com/dynamic-labs/DynamicAuth/issues/3793)) ([f2a4135](https://github.com/dynamic-labs/DynamicAuth/commit/f2a41356686aeb8381ee3f4ec3d1f52b7e2f6dcd))
8
+
9
+ ## [0.19.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.28...v0.19.0) (2023-10-31)
10
+
11
+
12
+ ### ⚠ BREAKING CHANGES
13
+
14
+ * rename onConnectSuccess to onConnect (#3744)
15
+
16
+ ### Features
17
+
18
+ * adding editable copy for sdk views ([#3749](https://github.com/dynamic-labs/DynamicAuth/issues/3749)) ([8e745b7](https://github.com/dynamic-labs/DynamicAuth/commit/8e745b7d937f08156dd74229393e57647427c278))
19
+ * rename onConnectSuccess to onConnect ([#3744](https://github.com/dynamic-labs/DynamicAuth/issues/3744)) ([d5403c0](https://github.com/dynamic-labs/DynamicAuth/commit/d5403c0d07c3528376d69e406a3a1d13a012a8de))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * never show default social provider duplicated ([#3768](https://github.com/dynamic-labs/DynamicAuth/issues/3768)) ([524e97e](https://github.com/dynamic-labs/DynamicAuth/commit/524e97e02d31b626040dff76235e5f9d1bf95c49))
25
+ * properly interpolate string in translation for countdown ([#3763](https://github.com/dynamic-labs/DynamicAuth/issues/3763)) ([272a45d](https://github.com/dynamic-labs/DynamicAuth/commit/272a45da89dd8af5043f014f1353b88fbd220a02))
26
+ * **send-balance:** remove transaction type and let viem set it ([#3747](https://github.com/dynamic-labs/DynamicAuth/issues/3747)) ([43d0831](https://github.com/dynamic-labs/DynamicAuth/commit/43d0831f3111c3d4992ac92f0a0f68f10fab1120))
27
+ * set global loading to false on logout ([#3774](https://github.com/dynamic-labs/DynamicAuth/issues/3774)) ([3e99675](https://github.com/dynamic-labs/DynamicAuth/commit/3e99675911809ec0c7a19693a9e67dad19a1ad68))
28
+ * **sign-message:** handle collection in sign typed data ([#3748](https://github.com/dynamic-labs/DynamicAuth/issues/3748)) ([bd6bdf7](https://github.com/dynamic-labs/DynamicAuth/commit/bd6bdf7cef3fbdcfa5fea31bc3a013f7cbf41ba7))
29
+ * **turnkey:** use transporter to request use confirmation ([#3758](https://github.com/dynamic-labs/DynamicAuth/issues/3758)) ([afc5636](https://github.com/dynamic-labs/DynamicAuth/commit/afc56363c6a237907bdf48d2309c72a531e3a316))
30
+
31
+ ## [0.19.0-alpha.28](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.27...v0.19.0-alpha.28) (2023-10-26)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * do not pass TransactionType for zksync transactions in Sendbalance view due to RPC errors ([#3745](https://github.com/dynamic-labs/DynamicAuth/issues/3745)) ([27f8aa1](https://github.com/dynamic-labs/DynamicAuth/commit/27f8aa1c7c790fa24a5e6b5e4400bd9415b3c3ce))
37
+
38
+ ## [0.19.0-alpha.27](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.26...v0.19.0-alpha.27) (2023-10-26)
39
+
40
+
41
+ ### ⚠ BREAKING CHANGES
42
+
43
+ * **useDynamicContext:** make internalEvents private (#3709)
44
+
45
+ ### Features
46
+
47
+ * add option to show continue button instead of inline submit ([#3720](https://github.com/dynamic-labs/DynamicAuth/issues/3720)) ([35e6172](https://github.com/dynamic-labs/DynamicAuth/commit/35e6172ebd692c9e5c0a96cbf97b4a3b8cea428b))
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * **demo:** login view sections ([#3737](https://github.com/dynamic-labs/DynamicAuth/issues/3737)) ([7387cf7](https://github.com/dynamic-labs/DynamicAuth/commit/7387cf7d0834f349e11be55a7271a67e2cc3ba83))
53
+ * don't set secondaryWallets if not on multi-wallet or bridge ([#3728](https://github.com/dynamic-labs/DynamicAuth/issues/3728)) ([dcfa845](https://github.com/dynamic-labs/DynamicAuth/commit/dcfa8452304f485ed5fa64e4b82687bee63a6af4))
54
+ * **network-picker:** update the networks when connector changes ([#3725](https://github.com/dynamic-labs/DynamicAuth/issues/3725)) ([786a33d](https://github.com/dynamic-labs/DynamicAuth/commit/786a33dc9172a9f0fca0604bb84d2fd3cad064f2))
55
+ * reset view on logout ([#3717](https://github.com/dynamic-labs/DynamicAuth/issues/3717)) ([78df3cf](https://github.com/dynamic-labs/DynamicAuth/commit/78df3cf642440d30ecfc51990020eaf3cbb20de9))
56
+ * state check for twitter happens in backend ([#3740](https://github.com/dynamic-labs/DynamicAuth/issues/3740)) ([95c3353](https://github.com/dynamic-labs/DynamicAuth/commit/95c3353d47dedd13c6d2d807be908426384fec04))
57
+ * **windows:** handle origin_check message from authWindow ([#3730](https://github.com/dynamic-labs/DynamicAuth/issues/3730)) ([dcd7875](https://github.com/dynamic-labs/DynamicAuth/commit/dcd787540db2aff38246cf5b1567765a0c3696f5))
58
+
59
+
60
+ * **useDynamicContext:** make internalEvents private ([#3709](https://github.com/dynamic-labs/DynamicAuth/issues/3709)) ([750bc61](https://github.com/dynamic-labs/DynamicAuth/commit/750bc6165ee0b4ef87958988ea3ca55dc1f9f279))
61
+
62
+ ## [0.19.0-alpha.26](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.25...v0.19.0-alpha.26) (2023-10-25)
63
+
64
+
65
+ ### Features
66
+
67
+ * allow filtering social providers for Dynamic Social with socialProvidersFilter ([#3707](https://github.com/dynamic-labs/DynamicAuth/issues/3707)) ([e4c16f3](https://github.com/dynamic-labs/DynamicAuth/commit/e4c16f359946e278a372cb8153242946d4887dcc))
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * only create embedded wallet if user have no wallet ([#3715](https://github.com/dynamic-labs/DynamicAuth/issues/3715)) ([728e01a](https://github.com/dynamic-labs/DynamicAuth/commit/728e01ab8b5931eaa6fb7877c23847ac85947f52))
73
+ * Revert "fix(use-wallet-event-listener): handle switching wallet … ([#3699](https://github.com/dynamic-labs/DynamicAuth/issues/3699)) ([9b94737](https://github.com/dynamic-labs/DynamicAuth/commit/9b94737ecfa72cd047964254d806403b342433a1)), closes [#3626](https://github.com/dynamic-labs/DynamicAuth/issues/3626)
74
+ * undefined network edge case ([#3667](https://github.com/dynamic-labs/DynamicAuth/issues/3667)) ([12d4236](https://github.com/dynamic-labs/DynamicAuth/commit/12d42363f69b1dfd5babe05142bd03c501f62e5f))
75
+ * **useOnClickOutside:** prevent opening element on click while already open ([#3714](https://github.com/dynamic-labs/DynamicAuth/issues/3714)) ([1999dc5](https://github.com/dynamic-labs/DynamicAuth/commit/1999dc50b6e82eb5ee8d0919118e9dfbc39c2b67))
76
+
77
+ ## [0.19.0-alpha.25](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.24...v0.19.0-alpha.25) (2023-10-25)
78
+
79
+
80
+ ### Features
81
+
82
+ * reduce screen flickering ([#3674](https://github.com/dynamic-labs/DynamicAuth/issues/3674)) ([bc3f89f](https://github.com/dynamic-labs/DynamicAuth/commit/bc3f89f5c1fe80294b60869be4a1e26daffb5553))
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * **demo:** updated sign-in methods section ([#3670](https://github.com/dynamic-labs/DynamicAuth/issues/3670)) ([8d10863](https://github.com/dynamic-labs/DynamicAuth/commit/8d10863872952587d889f5491da4c1df35cbef86))
88
+ * don't auto-create passkey on social sign-in and onboarding if disabled ([#3696](https://github.com/dynamic-labs/DynamicAuth/issues/3696)) ([866e305](https://github.com/dynamic-labs/DynamicAuth/commit/866e3051cdd710d7e702562a7db14fc08d9ff275))
89
+ * hide auth flow when completing email verification if passkey if disabled ([#3684](https://github.com/dynamic-labs/DynamicAuth/issues/3684)) ([b3f4b56](https://github.com/dynamic-labs/DynamicAuth/commit/b3f4b56feaeed33a8f34a1c7376eb889dbc85655))
90
+ * hide wallet view when filter returns empty ([#3688](https://github.com/dynamic-labs/DynamicAuth/issues/3688)) ([e98d957](https://github.com/dynamic-labs/DynamicAuth/commit/e98d957de123a481e31db04297a467a64de109af))
91
+ * **use-wallet-event-listener:** handle switching wallet when multi-wallet is disabled ([#3626](https://github.com/dynamic-labs/DynamicAuth/issues/3626)) ([e3c5899](https://github.com/dynamic-labs/DynamicAuth/commit/e3c58999b3dcfd3818778da458a34097e6b957d9))
92
+
93
+ ## [0.19.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.23...v0.19.0-alpha.24) (2023-10-24)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * check state from message receiver is same as generated oauth state ([#3675](https://github.com/dynamic-labs/DynamicAuth/issues/3675)) ([2407b6c](https://github.com/dynamic-labs/DynamicAuth/commit/2407b6cff09985bbd5b044e44ab600540a4c69cb))
99
+
100
+ ## [0.19.0-alpha.23](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.22...v0.19.0-alpha.23) (2023-10-24)
101
+
102
+
103
+ ### Bug Fixes
104
+
105
+ * better handling of CB wallet disconnect + upgrade to 3.7.2 ([#3659](https://github.com/dynamic-labs/DynamicAuth/issues/3659)) ([42a0857](https://github.com/dynamic-labs/DynamicAuth/commit/42a0857c66101cde901661e844c66ba324ff641b))
106
+ * calculate the settings override in real time ([#3671](https://github.com/dynamic-labs/DynamicAuth/issues/3671)) ([06cf28d](https://github.com/dynamic-labs/DynamicAuth/commit/06cf28d4dc29dda21312691985ed1b903d3120cc))
107
+ * handle rp.id edgecases for private domains due to webauthn restrictions on scoping to them ([#3658](https://github.com/dynamic-labs/DynamicAuth/issues/3658)) ([7067bc5](https://github.com/dynamic-labs/DynamicAuth/commit/7067bc5110afb8a010f13c2b2e0170faaa840995))
108
+ * twitter origin check should also look for current window location origin ([#3676](https://github.com/dynamic-labs/DynamicAuth/issues/3676)) ([6c30989](https://github.com/dynamic-labs/DynamicAuth/commit/6c30989d4cde3516a177f6290b5376c5d4c61cbc))
109
+
110
+ ## [0.19.0-alpha.22](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.21...v0.19.0-alpha.22) (2023-10-23)
111
+
112
+
113
+ ### ⚠ BREAKING CHANGES
114
+
115
+ * rename unlinkConnectedWallet to disconnectWallet (#3595)
116
+
117
+ ### Features
118
+
119
+ * rename unlinkConnectedWallet to disconnectWallet ([#3595](https://github.com/dynamic-labs/DynamicAuth/issues/3595)) ([ac4a59e](https://github.com/dynamic-labs/DynamicAuth/commit/ac4a59ee5e50814fdb4190f07f5905b0c1499c7d))
120
+
121
+
122
+ ### Bug Fixes
123
+
124
+ * add support for apple oauth ([#3568](https://github.com/dynamic-labs/DynamicAuth/issues/3568)) ([10455fd](https://github.com/dynamic-labs/DynamicAuth/commit/10455fd74f22c6a1d66409fc01650d6ec68c2156))
125
+ * only process oauth message coming from the expected origin ([#3653](https://github.com/dynamic-labs/DynamicAuth/issues/3653)) ([3bf48d4](https://github.com/dynamic-labs/DynamicAuth/commit/3bf48d4a61fa624c30ff11861e6f5db4c33ef5c3))
126
+ * **SignMessagePreview:** safely render message to sign ([#3655](https://github.com/dynamic-labs/DynamicAuth/issues/3655)) ([02b520a](https://github.com/dynamic-labs/DynamicAuth/commit/02b520a2ddb6ba4042bf630de4cf80259c4fac37))
127
+
128
+ ## [0.19.0-alpha.21](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.20...v0.19.0-alpha.21) (2023-10-23)
129
+
130
+
131
+ ### ⚠ BREAKING CHANGES
132
+
133
+ * Restructure the SDK packages (#3623)
134
+
135
+ ### Features
136
+
137
+ * add support for overriding views ([#3649](https://github.com/dynamic-labs/DynamicAuth/issues/3649)) ([a722a1e](https://github.com/dynamic-labs/DynamicAuth/commit/a722a1e48d71373939e5f692bf215985959e1f0b))
138
+
139
+
140
+ * Restructure the SDK packages ([#3623](https://github.com/dynamic-labs/DynamicAuth/issues/3623)) ([aff5342](https://github.com/dynamic-labs/DynamicAuth/commit/aff5342f469a91b9092128daf74396c3af47f698))
141
+
142
+ ## [0.19.0-alpha.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.19...v0.19.0-alpha.20) (2023-10-23)
143
+
144
+
145
+ ### Bug Fixes
146
+
147
+ * consider logged in on connect-and-sign only if there's a user ([#3643](https://github.com/dynamic-labs/DynamicAuth/issues/3643)) ([85d0f37](https://github.com/dynamic-labs/DynamicAuth/commit/85d0f37e98a6727bb8749fcd725d8f598c59f728))
148
+
149
+ ## [0.19.0-alpha.19](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.18...v0.19.0-alpha.19) (2023-10-20)
150
+
151
+ ## [0.19.0-alpha.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.17...v0.19.0-alpha.18) (2023-10-20)
152
+
153
+
154
+ ### Bug Fixes
155
+
156
+ * allow overriding contracts on Wagmi Chains ([#3106](https://github.com/dynamic-labs/DynamicAuth/issues/3106)) ([1a809f3](https://github.com/dynamic-labs/DynamicAuth/commit/1a809f3c2880b6581b58fb277188eac3a39da89a))
157
+ * await createEmbeddedWallet in useSocialAuth ([#3636](https://github.com/dynamic-labs/DynamicAuth/issues/3636)) ([6d5a6a6](https://github.com/dynamic-labs/DynamicAuth/commit/6d5a6a68c9adb79914fee4d4d17a47a3c79eec6d))
158
+ * disconnect wallet if not able to query address ([#3304](https://github.com/dynamic-labs/DynamicAuth/issues/3304)) ([d6fe979](https://github.com/dynamic-labs/DynamicAuth/commit/d6fe97931e35d9d38cf8525b44fc78326780b9a7))
159
+ * don't show user profile when reconnecting a primary social wallet ([#3614](https://github.com/dynamic-labs/DynamicAuth/issues/3614)) ([802243d](https://github.com/dynamic-labs/DynamicAuth/commit/802243d37963ca95d04373989e97d66e1753d8be))
160
+ * dynamic widget showing connect when in connect-only and signing with email/social ([#3632](https://github.com/dynamic-labs/DynamicAuth/issues/3632)) ([850a229](https://github.com/dynamic-labs/DynamicAuth/commit/850a229a72669b0e16154feafaec9618c820a036))
161
+
162
+ ## [0.19.0-alpha.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.16...v0.19.0-alpha.17) (2023-10-19)
163
+
164
+
165
+ ### Bug Fixes
166
+
167
+ * memoize createEmbeddedWallet so sync passkey is not called multiple times ([#3612](https://github.com/dynamic-labs/DynamicAuth/issues/3612)) ([11d53e9](https://github.com/dynamic-labs/DynamicAuth/commit/11d53e9bf3e7c4ceb4be7dede96e6facd07a6767))
168
+ * revert any changes of the form of the wallet connector key ([#3608](https://github.com/dynamic-labs/DynamicAuth/issues/3608)) ([f0e2a89](https://github.com/dynamic-labs/DynamicAuth/commit/f0e2a8988047e7533cbfc52eee06d6752c5aa9c4))
169
+
170
+ ## [0.19.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.15...v0.19.0-alpha.16) (2023-10-17)
171
+
172
+
173
+ ### ⚠ BREAKING CHANGES
174
+
175
+ * ethers extension integration and rename provider methods (#3573)
176
+
177
+ ### Features
178
+
179
+ * add onDisconnect ([#3572](https://github.com/dynamic-labs/DynamicAuth/issues/3572)) ([3e612f7](https://github.com/dynamic-labs/DynamicAuth/commit/3e612f72540781b9246a47ac12a7c979fb6c0d88))
180
+ * user callback on passkey creation complete ([#3591](https://github.com/dynamic-labs/DynamicAuth/issues/3591)) ([92d5f7d](https://github.com/dynamic-labs/DynamicAuth/commit/92d5f7df2ac1cc06338f7e9e75125f7bb71455ab))
181
+
182
+
183
+ ### Bug Fixes
184
+
185
+ * argentX in-browser wallet ([#3588](https://github.com/dynamic-labs/DynamicAuth/issues/3588)) ([7f3b22d](https://github.com/dynamic-labs/DynamicAuth/commit/7f3b22d003182aa0d84406086a313fc4de25e4a8))
186
+ * display a better message when transaction amount decimals are invalid ([#3577](https://github.com/dynamic-labs/DynamicAuth/issues/3577)) ([0238d9b](https://github.com/dynamic-labs/DynamicAuth/commit/0238d9b7712d6a52aec89193c751224dd8fd8b17))
187
+ * remove passkey success view ([#3536](https://github.com/dynamic-labs/DynamicAuth/issues/3536)) ([b559de9](https://github.com/dynamic-labs/DynamicAuth/commit/b559de9c83096ed98e9f073b998ac08f876af24e))
188
+ * **wagmi-connector:** use wallets list to sync wagmi client ([#3563](https://github.com/dynamic-labs/DynamicAuth/issues/3563)) ([1d551b9](https://github.com/dynamic-labs/DynamicAuth/commit/1d551b933aefe0c535285d68c2e6f819cd321e62))
189
+
190
+
191
+ * ethers extension integration and rename provider methods ([#3573](https://github.com/dynamic-labs/DynamicAuth/issues/3573)) ([efd73c3](https://github.com/dynamic-labs/DynamicAuth/commit/efd73c3b8121df9a7d4ec8c1fb6c4fd76ecce6df))
192
+
193
+ ## [0.19.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.14...v0.19.0-alpha.15) (2023-10-11)
194
+
195
+ ## [0.19.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.13...v0.19.0-alpha.14) (2023-10-10)
196
+
197
+
198
+ ### ⚠ BREAKING CHANGES
199
+
200
+ * remove numberOfWallets (#3521)
201
+
202
+ ### Features
203
+
204
+ * add embedded widget components ([#3533](https://github.com/dynamic-labs/DynamicAuth/issues/3533)) ([513cba8](https://github.com/dynamic-labs/DynamicAuth/commit/513cba8e7694544122ff9cce3aa1aea0a0c23986))
205
+ * add ethers extension support to wallet-connectors ([#3544](https://github.com/dynamic-labs/DynamicAuth/issues/3544)) ([3c09ba5](https://github.com/dynamic-labs/DynamicAuth/commit/3c09ba58b0f2c745df60a87b1820abbbfc1b95b7))
206
+ * add switch network for turnkey wallets ([#3539](https://github.com/dynamic-labs/DynamicAuth/issues/3539)) ([1bcbbb2](https://github.com/dynamic-labs/DynamicAuth/commit/1bcbbb2bd4e333d47ce4c93d4bd4b1f29a80c1f4))
207
+ * editable copy for switch network view ([#3561](https://github.com/dynamic-labs/DynamicAuth/issues/3561)) ([4dea2f1](https://github.com/dynamic-labs/DynamicAuth/commit/4dea2f159ee0675d5b9ba1cb412d75e5e211b3d1))
208
+
209
+
210
+ ### Bug Fixes
211
+
212
+ * always call connectSucess callback after successfully connecting wallet ([#3562](https://github.com/dynamic-labs/DynamicAuth/issues/3562)) ([2587ff8](https://github.com/dynamic-labs/DynamicAuth/commit/2587ff8a915f61793b15bfa1289689514344fc75))
213
+ * don't let user update email if they have an embedded wallet ([#3552](https://github.com/dynamic-labs/DynamicAuth/issues/3552)) ([c710cce](https://github.com/dynamic-labs/DynamicAuth/commit/c710cce22c7a54004f56c8fc68f8c4075f5f9e51))
214
+ * embedded widget rerender bug ([#3545](https://github.com/dynamic-labs/DynamicAuth/issues/3545)) ([27ed979](https://github.com/dynamic-labs/DynamicAuth/commit/27ed979618ac7d9e912381faebbf61ec9e9e839c))
215
+ * sync passkey should not throw error ([#3535](https://github.com/dynamic-labs/DynamicAuth/issues/3535)) ([0336ba6](https://github.com/dynamic-labs/DynamicAuth/commit/0336ba65bf1cc4394e4f005f273baea26326784a))
216
+ * wrap eth wallet connector rpc calls in retry function ([#3497](https://github.com/dynamic-labs/DynamicAuth/issues/3497)) ([7800b45](https://github.com/dynamic-labs/DynamicAuth/commit/7800b45dc93f20731ee643e89e84d57765387778))
217
+
218
+
219
+ * remove numberOfWallets ([#3521](https://github.com/dynamic-labs/DynamicAuth/issues/3521)) ([0174297](https://github.com/dynamic-labs/DynamicAuth/commit/017429745d08b7b1edc23bc4da43bc01b4ef1cd4))
220
+
221
+ ## [0.19.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.12...v0.19.0-alpha.13) (2023-10-04)
222
+
223
+
224
+ ### Features
225
+
226
+ * add ethers 5/6 util methods for converting connectors to ethers classes ([#3435](https://github.com/dynamic-labs/DynamicAuth/issues/3435)) ([5f4da48](https://github.com/dynamic-labs/DynamicAuth/commit/5f4da48526dbce4be2d437fc93f4cc8ddded73c5))
227
+ * show goerli icon on network button and a warning message ([#3494](https://github.com/dynamic-labs/DynamicAuth/issues/3494)) ([64851a3](https://github.com/dynamic-labs/DynamicAuth/commit/64851a3d60ba19dd164690dcb26056cad2d22e61))
228
+
229
+
230
+ ### Bug Fixes
231
+
232
+ * fix broken test ([#3520](https://github.com/dynamic-labs/DynamicAuth/issues/3520)) ([d7a3bd4](https://github.com/dynamic-labs/DynamicAuth/commit/d7a3bd4c71309a2df8106cae3f8f03f4aaedaa56))
233
+ * **handleWalletsToConnect:** require wallet connector in the props ([#3512](https://github.com/dynamic-labs/DynamicAuth/issues/3512)) ([ddc0d19](https://github.com/dynamic-labs/DynamicAuth/commit/ddc0d19c9996f4fd52d19aad837fdf1e632d1b3d))
234
+ * use providers redirect url in getOauthLoginUrl function ([#3519](https://github.com/dynamic-labs/DynamicAuth/issues/3519)) ([3f8601d](https://github.com/dynamic-labs/DynamicAuth/commit/3f8601d47d2fc6aa65f3a6890b1b9a4b93c9e9f6))
235
+ * **wagmi-connector:** set websocket rpc to wagmi client ([#3474](https://github.com/dynamic-labs/DynamicAuth/issues/3474)) ([c94a43e](https://github.com/dynamic-labs/DynamicAuth/commit/c94a43ea9be11352313eafb2cd42c5f4941562a3))
236
+
237
+ ## [0.19.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.11...v0.19.0-alpha.12) (2023-10-03)
238
+
239
+
240
+ ### Features
241
+
242
+ * filter wallet list for wallets which have not been connected ([#3499](https://github.com/dynamic-labs/DynamicAuth/issues/3499)) ([10e531f](https://github.com/dynamic-labs/DynamicAuth/commit/10e531f0836b029ab43713b9b2c7ecf273a4018c))
243
+ * passkey flow copies should be fully editable ([#3504](https://github.com/dynamic-labs/DynamicAuth/issues/3504)) ([390392c](https://github.com/dynamic-labs/DynamicAuth/commit/390392cc5c95afd0226f29a72560c295fa2be391))
244
+
245
+
246
+ ### Bug Fixes
247
+
248
+ * remove useEffect in useSetWalletConnectorVerifiedCredentials to avoid race conditions ([#3495](https://github.com/dynamic-labs/DynamicAuth/issues/3495)) ([aa17676](https://github.com/dynamic-labs/DynamicAuth/commit/aa176761f324806000317db1f683d545ec642619))
249
+ * show android touch id icon for those with it available on passkey intro ([#3503](https://github.com/dynamic-labs/DynamicAuth/issues/3503)) ([4017f16](https://github.com/dynamic-labs/DynamicAuth/commit/4017f16fe0b0ceeb03f064ac9e9d34b71764b242))
250
+
251
+ ## [0.19.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.10...v0.19.0-alpha.11) (2023-10-02)
252
+
253
+
254
+ ### Bug Fixes
255
+
256
+ * **AuthProviderIcon:** ensure social icon shows up ([#3439](https://github.com/dynamic-labs/DynamicAuth/issues/3439)) ([5064f28](https://github.com/dynamic-labs/DynamicAuth/commit/5064f28af9125699c8e23597812c6c526bb8a213))
257
+ * fix passkey on Windows ([#3440](https://github.com/dynamic-labs/DynamicAuth/issues/3440)) ([c0da96c](https://github.com/dynamic-labs/DynamicAuth/commit/c0da96c17c6c10a736fb394b6b1e6be3ccd616b2))
258
+ * missing popper provider ([#3488](https://github.com/dynamic-labs/DynamicAuth/issues/3488)) ([d7ca76e](https://github.com/dynamic-labs/DynamicAuth/commit/d7ca76e21dc5e842c316a654cb20d9dd115d7204))
259
+ * passkey intro view should have a logout button ([#3466](https://github.com/dynamic-labs/DynamicAuth/issues/3466)) ([7ae626f](https://github.com/dynamic-labs/DynamicAuth/commit/7ae626fd2b2b6f685e48257c38ed00dae95d06e4))
260
+ * passkey intro view should not be closed until user create wallet ([#3458](https://github.com/dynamic-labs/DynamicAuth/issues/3458)) ([651459b](https://github.com/dynamic-labs/DynamicAuth/commit/651459b8d8a4ad131381ed8de52c9ef0c42191df))
261
+ * removing weird passkey intro logout button hover background ([#3490](https://github.com/dynamic-labs/DynamicAuth/issues/3490)) ([1adedfa](https://github.com/dynamic-labs/DynamicAuth/commit/1adedfaf87e6fd01e8528ff43ccf75fcb020ef65))
262
+ * resolve promise if there's no error, even if result is falsy ([#3477](https://github.com/dynamic-labs/DynamicAuth/issues/3477)) ([1b570dc](https://github.com/dynamic-labs/DynamicAuth/commit/1b570dc8ae6b104567790d93ebb57efed032ba1c))
263
+ * return promise from createEmbeddedWallet ([#3476](https://github.com/dynamic-labs/DynamicAuth/issues/3476)) ([5a9591e](https://github.com/dynamic-labs/DynamicAuth/commit/5a9591e0808d5d16fb886901902d763eabd8ec61))
264
+ * utilize the wallet connector key when looking up the wallet in localstorage during getWalletConnectorByKey ([#3386](https://github.com/dynamic-labs/DynamicAuth/issues/3386)) ([13a8ef4](https://github.com/dynamic-labs/DynamicAuth/commit/13a8ef4581e7799cc467bddb7cd1435dc4ab4de5))
265
+
266
+ ## [0.19.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.9...v0.19.0-alpha.10) (2023-09-28)
267
+
268
+
269
+ ### ⚠ BREAKING CHANGES
270
+
271
+ * change magic walletProvider from custodialService to embeddedWallet (#3429)
272
+
273
+ ### Features
274
+
275
+ * allow passkey setup after social sign in ([#3410](https://github.com/dynamic-labs/DynamicAuth/issues/3410)) ([d225a63](https://github.com/dynamic-labs/DynamicAuth/commit/d225a63544284422589990c4e872430f7eb88f07))
276
+ * create useEmbeddedWallet hook to trigger embedded wallet creation ([#3437](https://github.com/dynamic-labs/DynamicAuth/issues/3437)) ([d79c558](https://github.com/dynamic-labs/DynamicAuth/commit/d79c558d31deacb293823c2fe42d006d0645b470))
277
+ * **passkey:** direct user to passkey intro view when enabled ([#3393](https://github.com/dynamic-labs/DynamicAuth/issues/3393)) ([e02e0dc](https://github.com/dynamic-labs/DynamicAuth/commit/e02e0dcaa87dbbd56665868ff637156cea23f574))
278
+ * **wcv2:** add support for dynamic network configuration to wallet connect ([#3332](https://github.com/dynamic-labs/DynamicAuth/issues/3332)) ([a285360](https://github.com/dynamic-labs/DynamicAuth/commit/a2853606e1065a252cab37fa693db1c51cd3ac55))
279
+
280
+
281
+ ### Bug Fixes
282
+
283
+ * don't filter out disabled providers in settings so we can access their data ([#3407](https://github.com/dynamic-labs/DynamicAuth/issues/3407)) ([0f68e88](https://github.com/dynamic-labs/DynamicAuth/commit/0f68e887fed40777c8e539b20e9598edf76e612b))
284
+ * don't show error until passkey enabled check promise is fulfilled ([#3446](https://github.com/dynamic-labs/DynamicAuth/issues/3446)) ([101ac98](https://github.com/dynamic-labs/DynamicAuth/commit/101ac980aa56a1cd3d3fdda68ddac6ad7779727e))
285
+ * **DYN-2732:** wait for networks to fetch ([#3431](https://github.com/dynamic-labs/DynamicAuth/issues/3431)) ([e66e86c](https://github.com/dynamic-labs/DynamicAuth/commit/e66e86cefd826b04dcde3474e0ed169b41f7b715))
286
+ * error handling for non-supported devices ([#3397](https://github.com/dynamic-labs/DynamicAuth/issues/3397)) ([e5cc7e6](https://github.com/dynamic-labs/DynamicAuth/commit/e5cc7e65c05da132c325c57cf06e33cac86440f9))
287
+ * error handling when creating passkey ([#3416](https://github.com/dynamic-labs/DynamicAuth/issues/3416)) ([3274df4](https://github.com/dynamic-labs/DynamicAuth/commit/3274df4f7bd2a00ad0776392f55a8493c9bc2b60))
288
+ * passkey icon breaks line into 2 on mobile ([#3426](https://github.com/dynamic-labs/DynamicAuth/issues/3426)) ([2dd045b](https://github.com/dynamic-labs/DynamicAuth/commit/2dd045b04d4cc4806e653c10a22412d8a5c3b9fc))
289
+ * set primary wallet id when passkey is already set up ([#3419](https://github.com/dynamic-labs/DynamicAuth/issues/3419)) ([496555f](https://github.com/dynamic-labs/DynamicAuth/commit/496555fd8e239601880a3fcd38519d09b3c35bd5))
290
+ * signing messages with backpack ([#3398](https://github.com/dynamic-labs/DynamicAuth/issues/3398)) ([a68d3da](https://github.com/dynamic-labs/DynamicAuth/commit/a68d3da97e2b2c8f555d9126e0ab400343d7bec1))
291
+ * social signing icon loading after logout ([#3417](https://github.com/dynamic-labs/DynamicAuth/issues/3417)) ([3ac0f19](https://github.com/dynamic-labs/DynamicAuth/commit/3ac0f194f9a55795718fb6ca6f44ab2fe87eeb06))
292
+ * trigger passkey flow after email kyc verification ([#3434](https://github.com/dynamic-labs/DynamicAuth/issues/3434)) ([a6fc353](https://github.com/dynamic-labs/DynamicAuth/commit/a6fc353f6dfe9fd5ee67139a8fae6c37c947cd14))
293
+ * trigger passkey flow after onboarding ([#3428](https://github.com/dynamic-labs/DynamicAuth/issues/3428)) ([fa81643](https://github.com/dynamic-labs/DynamicAuth/commit/fa81643575c0fe6174e6521810fcdf139dc259e6))
294
+ * **turnkey:** sign message with viem and current address ([#3433](https://github.com/dynamic-labs/DynamicAuth/issues/3433)) ([025ffac](https://github.com/dynamic-labs/DynamicAuth/commit/025ffac4a9bf1e4526894f242c1cd882c0e10b45))
295
+ * use correct authenticator type in passkey creation params ([#3411](https://github.com/dynamic-labs/DynamicAuth/issues/3411)) ([eefbf01](https://github.com/dynamic-labs/DynamicAuth/commit/eefbf01aa7962e95db80ff19676fa582da756d11))
296
+ * **use-element-by-id:** include pointer events style rule to ensure modal is interactive ([#3396](https://github.com/dynamic-labs/DynamicAuth/issues/3396)) ([15077d4](https://github.com/dynamic-labs/DynamicAuth/commit/15077d4752379924f35ff889b05f03bdf6c051bf))
297
+
298
+
299
+ * change magic walletProvider from custodialService to embeddedWallet ([#3429](https://github.com/dynamic-labs/DynamicAuth/issues/3429)) ([c617439](https://github.com/dynamic-labs/DynamicAuth/commit/c617439d745cff81d415a042d2187a98b29318da))
300
+
2
301
  ## [0.19.0-alpha.9](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.8...v0.19.0-alpha.9) (2023-09-21)
3
302
 
4
303
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/types",
3
- "version": "0.19.0-alpha.9",
3
+ "version": "0.19.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,7 +26,9 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api": "0.0.279",
30
- "ethers": "5.7.2"
29
+ "@dynamic-labs/sdk-api": "0.0.292"
30
+ },
31
+ "peerDependencies": {
32
+ "viem": "^1.1.0"
31
33
  }
32
34
  }
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ProviderEnum } from '@dynamic-labs/sdk-api';
2
- export * from './networks';
3
- export * from './ethers';
4
- export * from './oauth';
1
+ export { ProviderEnum } from '@dynamic-labs/sdk-api';
2
+ export * from './networks';
3
+ export * from './viem';
4
+ export * from './oauth';
package/src/networks.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { type NetworkConfiguration } from '@dynamic-labs/sdk-api';
2
- export type GenericNetwork = Omit<NetworkConfiguration, 'chainId' | 'networkId' | 'shortName' | 'chain'> & {
3
- chainId: number | string;
4
- networkId: number | string;
5
- };
6
- export type EvmNetwork = Omit<GenericNetwork, 'chainId'> & {
7
- chainId: number;
8
- };
9
- export type NetworkConfigurationMap = {
10
- [key: string]: GenericNetwork[] | undefined;
11
- };
1
+ import { type NetworkConfiguration } from '@dynamic-labs/sdk-api';
2
+ export type GenericNetwork = Omit<NetworkConfiguration, 'chainId' | 'networkId' | 'shortName' | 'chain'> & {
3
+ chainId: number | string;
4
+ networkId: number | string;
5
+ };
6
+ export type EvmNetwork = Omit<GenericNetwork, 'chainId'> & {
7
+ chainId: number;
8
+ };
9
+ export type NetworkConfigurationMap = {
10
+ [key: string]: GenericNetwork[] | undefined;
11
+ };
@@ -2,24 +2,24 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- exports.SocialOAuthErrorCode = void 0;
6
- (function (SocialOAuthErrorCode) {
7
- SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED"] = "account_already_linked";
8
- SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE"] = "account_already_linked_to_different_profile";
9
- SocialOAuthErrorCode["INVALID_PROVIDER"] = "invalid_provider";
10
- SocialOAuthErrorCode["NO_ACCOUNT_LINKED"] = "no_account_linked";
11
- SocialOAuthErrorCode["NO_AUTH_CODE"] = "no_auth_code";
12
- SocialOAuthErrorCode["NO_OAUTH_URL"] = "no_oauth_url";
13
- SocialOAuthErrorCode["NO_PROVIDER"] = "no_provider";
14
- SocialOAuthErrorCode["OAUTH_ERROR"] = "oauth_error";
15
- SocialOAuthErrorCode["OAUTH_WINDOW_BLOCKED"] = "oauth_window_blocked";
16
- SocialOAuthErrorCode["OAUTH_WINDOW_CLOSED"] = "oauth_window_closed";
17
- SocialOAuthErrorCode["OAUTH_WINDOW_TIMEOUT"] = "oauth_window_timeout";
18
- SocialOAuthErrorCode["PROVIDER_NOT_ENABLED"] = "provider_not_enabled";
19
- SocialOAuthErrorCode["SESSION_TIMEOUT"] = "session_timeout";
20
- SocialOAuthErrorCode["SIGNIN_ERROR"] = "signin_error";
21
- SocialOAuthErrorCode["SOCIAL_LINKING_NOT_ENABLED"] = "social_linking_not_enabled";
22
- SocialOAuthErrorCode["UNLINK_ERROR"] = "unlink_error";
23
- SocialOAuthErrorCode["VERIFICATION_ERROR"] = "verification_error";
24
- SocialOAuthErrorCode["GENERAL_ERROR"] = "general_error";
5
+ exports.SocialOAuthErrorCode = void 0;
6
+ (function (SocialOAuthErrorCode) {
7
+ SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED"] = "account_already_linked";
8
+ SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE"] = "account_already_linked_to_different_profile";
9
+ SocialOAuthErrorCode["INVALID_PROVIDER"] = "invalid_provider";
10
+ SocialOAuthErrorCode["NO_ACCOUNT_LINKED"] = "no_account_linked";
11
+ SocialOAuthErrorCode["NO_AUTH_CODE"] = "no_auth_code";
12
+ SocialOAuthErrorCode["NO_OAUTH_URL"] = "no_oauth_url";
13
+ SocialOAuthErrorCode["NO_PROVIDER"] = "no_provider";
14
+ SocialOAuthErrorCode["OAUTH_ERROR"] = "oauth_error";
15
+ SocialOAuthErrorCode["OAUTH_WINDOW_BLOCKED"] = "oauth_window_blocked";
16
+ SocialOAuthErrorCode["OAUTH_WINDOW_CLOSED"] = "oauth_window_closed";
17
+ SocialOAuthErrorCode["OAUTH_WINDOW_TIMEOUT"] = "oauth_window_timeout";
18
+ SocialOAuthErrorCode["PROVIDER_NOT_ENABLED"] = "provider_not_enabled";
19
+ SocialOAuthErrorCode["SESSION_TIMEOUT"] = "session_timeout";
20
+ SocialOAuthErrorCode["SIGNIN_ERROR"] = "signin_error";
21
+ SocialOAuthErrorCode["SOCIAL_LINKING_NOT_ENABLED"] = "social_linking_not_enabled";
22
+ SocialOAuthErrorCode["UNLINK_ERROR"] = "unlink_error";
23
+ SocialOAuthErrorCode["VERIFICATION_ERROR"] = "verification_error";
24
+ SocialOAuthErrorCode["GENERAL_ERROR"] = "general_error";
25
25
  })(exports.SocialOAuthErrorCode || (exports.SocialOAuthErrorCode = {}));
@@ -1,36 +1,36 @@
1
- import { ProviderEnum, SocialSignInProviderEnum } from '@dynamic-labs/sdk-api';
2
- export type SocialProviderFilter = (providers: SocialSignInProviderEnum[]) => SocialSignInProviderEnum[];
3
- export type SocialAccountInformation = {
4
- accountId?: string;
5
- avatar?: string;
6
- displayName?: string;
7
- email?: string;
8
- id: string;
9
- provider?: ProviderEnum;
10
- publicIdentifier?: string;
11
- username?: string;
12
- };
13
- export declare enum SocialOAuthErrorCode {
14
- ACCOUNT_ALREADY_LINKED = "account_already_linked",
15
- ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE = "account_already_linked_to_different_profile",
16
- INVALID_PROVIDER = "invalid_provider",
17
- NO_ACCOUNT_LINKED = "no_account_linked",
18
- NO_AUTH_CODE = "no_auth_code",
19
- NO_OAUTH_URL = "no_oauth_url",
20
- NO_PROVIDER = "no_provider",
21
- OAUTH_ERROR = "oauth_error",
22
- OAUTH_WINDOW_BLOCKED = "oauth_window_blocked",
23
- OAUTH_WINDOW_CLOSED = "oauth_window_closed",
24
- OAUTH_WINDOW_TIMEOUT = "oauth_window_timeout",
25
- PROVIDER_NOT_ENABLED = "provider_not_enabled",
26
- SESSION_TIMEOUT = "session_timeout",
27
- SIGNIN_ERROR = "signin_error",
28
- SOCIAL_LINKING_NOT_ENABLED = "social_linking_not_enabled",
29
- UNLINK_ERROR = "unlink_error",
30
- VERIFICATION_ERROR = "verification_error",
31
- GENERAL_ERROR = "general_error"
32
- }
33
- export type SocialOAuthError = {
34
- code: SocialOAuthErrorCode;
35
- message: string;
36
- };
1
+ import { ProviderEnum, SocialSignInProviderEnum } from '@dynamic-labs/sdk-api';
2
+ export type SocialProviderFilter = (providers: SocialSignInProviderEnum[]) => SocialSignInProviderEnum[];
3
+ export type SocialAccountInformation = {
4
+ accountId?: string;
5
+ avatar?: string;
6
+ displayName?: string;
7
+ email?: string;
8
+ id: string;
9
+ provider?: ProviderEnum;
10
+ publicIdentifier?: string;
11
+ username?: string;
12
+ };
13
+ export declare enum SocialOAuthErrorCode {
14
+ ACCOUNT_ALREADY_LINKED = "account_already_linked",
15
+ ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE = "account_already_linked_to_different_profile",
16
+ INVALID_PROVIDER = "invalid_provider",
17
+ NO_ACCOUNT_LINKED = "no_account_linked",
18
+ NO_AUTH_CODE = "no_auth_code",
19
+ NO_OAUTH_URL = "no_oauth_url",
20
+ NO_PROVIDER = "no_provider",
21
+ OAUTH_ERROR = "oauth_error",
22
+ OAUTH_WINDOW_BLOCKED = "oauth_window_blocked",
23
+ OAUTH_WINDOW_CLOSED = "oauth_window_closed",
24
+ OAUTH_WINDOW_TIMEOUT = "oauth_window_timeout",
25
+ PROVIDER_NOT_ENABLED = "provider_not_enabled",
26
+ SESSION_TIMEOUT = "session_timeout",
27
+ SIGNIN_ERROR = "signin_error",
28
+ SOCIAL_LINKING_NOT_ENABLED = "social_linking_not_enabled",
29
+ UNLINK_ERROR = "unlink_error",
30
+ VERIFICATION_ERROR = "verification_error",
31
+ GENERAL_ERROR = "general_error"
32
+ }
33
+ export type SocialOAuthError = {
34
+ code: SocialOAuthErrorCode;
35
+ message: string;
36
+ };
@@ -1,23 +1,23 @@
1
- var SocialOAuthErrorCode;
2
- (function (SocialOAuthErrorCode) {
3
- SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED"] = "account_already_linked";
4
- SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE"] = "account_already_linked_to_different_profile";
5
- SocialOAuthErrorCode["INVALID_PROVIDER"] = "invalid_provider";
6
- SocialOAuthErrorCode["NO_ACCOUNT_LINKED"] = "no_account_linked";
7
- SocialOAuthErrorCode["NO_AUTH_CODE"] = "no_auth_code";
8
- SocialOAuthErrorCode["NO_OAUTH_URL"] = "no_oauth_url";
9
- SocialOAuthErrorCode["NO_PROVIDER"] = "no_provider";
10
- SocialOAuthErrorCode["OAUTH_ERROR"] = "oauth_error";
11
- SocialOAuthErrorCode["OAUTH_WINDOW_BLOCKED"] = "oauth_window_blocked";
12
- SocialOAuthErrorCode["OAUTH_WINDOW_CLOSED"] = "oauth_window_closed";
13
- SocialOAuthErrorCode["OAUTH_WINDOW_TIMEOUT"] = "oauth_window_timeout";
14
- SocialOAuthErrorCode["PROVIDER_NOT_ENABLED"] = "provider_not_enabled";
15
- SocialOAuthErrorCode["SESSION_TIMEOUT"] = "session_timeout";
16
- SocialOAuthErrorCode["SIGNIN_ERROR"] = "signin_error";
17
- SocialOAuthErrorCode["SOCIAL_LINKING_NOT_ENABLED"] = "social_linking_not_enabled";
18
- SocialOAuthErrorCode["UNLINK_ERROR"] = "unlink_error";
19
- SocialOAuthErrorCode["VERIFICATION_ERROR"] = "verification_error";
20
- SocialOAuthErrorCode["GENERAL_ERROR"] = "general_error";
1
+ var SocialOAuthErrorCode;
2
+ (function (SocialOAuthErrorCode) {
3
+ SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED"] = "account_already_linked";
4
+ SocialOAuthErrorCode["ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE"] = "account_already_linked_to_different_profile";
5
+ SocialOAuthErrorCode["INVALID_PROVIDER"] = "invalid_provider";
6
+ SocialOAuthErrorCode["NO_ACCOUNT_LINKED"] = "no_account_linked";
7
+ SocialOAuthErrorCode["NO_AUTH_CODE"] = "no_auth_code";
8
+ SocialOAuthErrorCode["NO_OAUTH_URL"] = "no_oauth_url";
9
+ SocialOAuthErrorCode["NO_PROVIDER"] = "no_provider";
10
+ SocialOAuthErrorCode["OAUTH_ERROR"] = "oauth_error";
11
+ SocialOAuthErrorCode["OAUTH_WINDOW_BLOCKED"] = "oauth_window_blocked";
12
+ SocialOAuthErrorCode["OAUTH_WINDOW_CLOSED"] = "oauth_window_closed";
13
+ SocialOAuthErrorCode["OAUTH_WINDOW_TIMEOUT"] = "oauth_window_timeout";
14
+ SocialOAuthErrorCode["PROVIDER_NOT_ENABLED"] = "provider_not_enabled";
15
+ SocialOAuthErrorCode["SESSION_TIMEOUT"] = "session_timeout";
16
+ SocialOAuthErrorCode["SIGNIN_ERROR"] = "signin_error";
17
+ SocialOAuthErrorCode["SOCIAL_LINKING_NOT_ENABLED"] = "social_linking_not_enabled";
18
+ SocialOAuthErrorCode["UNLINK_ERROR"] = "unlink_error";
19
+ SocialOAuthErrorCode["VERIFICATION_ERROR"] = "verification_error";
20
+ SocialOAuthErrorCode["GENERAL_ERROR"] = "general_error";
21
21
  })(SocialOAuthErrorCode || (SocialOAuthErrorCode = {}));
22
22
 
23
23
  export { SocialOAuthErrorCode };
@@ -0,0 +1,16 @@
1
+ import { TransactionRequest, PublicClient, Address } from 'viem';
2
+ export type WalletUiUtils<TConnector> = {
3
+ disabledConfirmationOnce: () => void;
4
+ sendTransaction: (props: {
5
+ connector: TConnector;
6
+ handler: (transaction: TransactionRequest) => Promise<Address>;
7
+ transaction: TransactionRequest;
8
+ provider: PublicClient;
9
+ }) => Promise<Address>;
10
+ signMessage: (props: {
11
+ connector: TConnector;
12
+ handler: () => Promise<string>;
13
+ message: string | ArrayLike<number>;
14
+ provider: PublicClient;
15
+ }) => Promise<string>;
16
+ };
@@ -1,15 +0,0 @@
1
- import { type ethers } from 'ethers';
2
- export type WalletUiUtils<TConnector> = {
3
- disabledConfirmationOnce: () => void;
4
- sendTransaction: (props: {
5
- connector: TConnector;
6
- handler: (transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>) => Promise<ethers.providers.TransactionResponse>;
7
- provider: ethers.providers.Web3Provider;
8
- transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>;
9
- }) => Promise<ethers.providers.TransactionResponse>;
10
- signMessage: (props: {
11
- connector: TConnector;
12
- handler: (message: string | ethers.utils.Bytes) => Promise<string>;
13
- message: string | ethers.utils.Bytes;
14
- }) => Promise<string>;
15
- };