@dynamic-labs/flow 0.19.0-alpha.8 → 0.19.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,4 +1,325 @@
1
1
 
2
+ ## [0.19.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.28...v0.19.0) (2023-10-31)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * rename onConnectSuccess to onConnect (#3744)
8
+
9
+ ### Features
10
+
11
+ * adding editable copy for sdk views ([#3749](https://github.com/dynamic-labs/DynamicAuth/issues/3749)) ([8e745b7](https://github.com/dynamic-labs/DynamicAuth/commit/8e745b7d937f08156dd74229393e57647427c278))
12
+ * rename onConnectSuccess to onConnect ([#3744](https://github.com/dynamic-labs/DynamicAuth/issues/3744)) ([d5403c0](https://github.com/dynamic-labs/DynamicAuth/commit/d5403c0d07c3528376d69e406a3a1d13a012a8de))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * never show default social provider duplicated ([#3768](https://github.com/dynamic-labs/DynamicAuth/issues/3768)) ([524e97e](https://github.com/dynamic-labs/DynamicAuth/commit/524e97e02d31b626040dff76235e5f9d1bf95c49))
18
+ * 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))
19
+ * **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))
20
+ * 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))
21
+ * **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))
22
+ * **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))
23
+
24
+ ## [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)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * 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))
30
+
31
+ ## [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)
32
+
33
+
34
+ ### ⚠ BREAKING CHANGES
35
+
36
+ * **useDynamicContext:** make internalEvents private (#3709)
37
+
38
+ ### Features
39
+
40
+ * 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))
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **demo:** login view sections ([#3737](https://github.com/dynamic-labs/DynamicAuth/issues/3737)) ([7387cf7](https://github.com/dynamic-labs/DynamicAuth/commit/7387cf7d0834f349e11be55a7271a67e2cc3ba83))
46
+ * 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))
47
+ * **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))
48
+ * reset view on logout ([#3717](https://github.com/dynamic-labs/DynamicAuth/issues/3717)) ([78df3cf](https://github.com/dynamic-labs/DynamicAuth/commit/78df3cf642440d30ecfc51990020eaf3cbb20de9))
49
+ * 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))
50
+ * **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))
51
+
52
+
53
+ * **useDynamicContext:** make internalEvents private ([#3709](https://github.com/dynamic-labs/DynamicAuth/issues/3709)) ([750bc61](https://github.com/dynamic-labs/DynamicAuth/commit/750bc6165ee0b4ef87958988ea3ca55dc1f9f279))
54
+
55
+ ## [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)
56
+
57
+
58
+ ### Features
59
+
60
+ * 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))
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * 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))
66
+ * 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)
67
+ * undefined network edge case ([#3667](https://github.com/dynamic-labs/DynamicAuth/issues/3667)) ([12d4236](https://github.com/dynamic-labs/DynamicAuth/commit/12d42363f69b1dfd5babe05142bd03c501f62e5f))
68
+ * **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))
69
+
70
+ ## [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)
71
+
72
+
73
+ ### Features
74
+
75
+ * reduce screen flickering ([#3674](https://github.com/dynamic-labs/DynamicAuth/issues/3674)) ([bc3f89f](https://github.com/dynamic-labs/DynamicAuth/commit/bc3f89f5c1fe80294b60869be4a1e26daffb5553))
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * **demo:** updated sign-in methods section ([#3670](https://github.com/dynamic-labs/DynamicAuth/issues/3670)) ([8d10863](https://github.com/dynamic-labs/DynamicAuth/commit/8d10863872952587d889f5491da4c1df35cbef86))
81
+ * 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))
82
+ * 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))
83
+ * 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))
84
+ * **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))
85
+
86
+ ## [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)
87
+
88
+
89
+ ### Bug Fixes
90
+
91
+ * 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))
92
+
93
+ ## [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)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * 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))
99
+ * 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))
100
+ * 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))
101
+ * 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))
102
+
103
+ ## [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)
104
+
105
+
106
+ ### ⚠ BREAKING CHANGES
107
+
108
+ * rename unlinkConnectedWallet to disconnectWallet (#3595)
109
+
110
+ ### Features
111
+
112
+ * rename unlinkConnectedWallet to disconnectWallet ([#3595](https://github.com/dynamic-labs/DynamicAuth/issues/3595)) ([ac4a59e](https://github.com/dynamic-labs/DynamicAuth/commit/ac4a59ee5e50814fdb4190f07f5905b0c1499c7d))
113
+
114
+
115
+ ### Bug Fixes
116
+
117
+ * add support for apple oauth ([#3568](https://github.com/dynamic-labs/DynamicAuth/issues/3568)) ([10455fd](https://github.com/dynamic-labs/DynamicAuth/commit/10455fd74f22c6a1d66409fc01650d6ec68c2156))
118
+ * 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))
119
+ * **SignMessagePreview:** safely render message to sign ([#3655](https://github.com/dynamic-labs/DynamicAuth/issues/3655)) ([02b520a](https://github.com/dynamic-labs/DynamicAuth/commit/02b520a2ddb6ba4042bf630de4cf80259c4fac37))
120
+
121
+ ## [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)
122
+
123
+
124
+ ### ⚠ BREAKING CHANGES
125
+
126
+ * Restructure the SDK packages (#3623)
127
+
128
+ ### Features
129
+
130
+ * add support for overriding views ([#3649](https://github.com/dynamic-labs/DynamicAuth/issues/3649)) ([a722a1e](https://github.com/dynamic-labs/DynamicAuth/commit/a722a1e48d71373939e5f692bf215985959e1f0b))
131
+
132
+
133
+ * Restructure the SDK packages ([#3623](https://github.com/dynamic-labs/DynamicAuth/issues/3623)) ([aff5342](https://github.com/dynamic-labs/DynamicAuth/commit/aff5342f469a91b9092128daf74396c3af47f698))
134
+
135
+ ## [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)
136
+
137
+
138
+ ### Bug Fixes
139
+
140
+ * 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))
141
+
142
+ ## [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)
143
+
144
+ ## [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)
145
+
146
+
147
+ ### Bug Fixes
148
+
149
+ * allow overriding contracts on Wagmi Chains ([#3106](https://github.com/dynamic-labs/DynamicAuth/issues/3106)) ([1a809f3](https://github.com/dynamic-labs/DynamicAuth/commit/1a809f3c2880b6581b58fb277188eac3a39da89a))
150
+ * await createEmbeddedWallet in useSocialAuth ([#3636](https://github.com/dynamic-labs/DynamicAuth/issues/3636)) ([6d5a6a6](https://github.com/dynamic-labs/DynamicAuth/commit/6d5a6a68c9adb79914fee4d4d17a47a3c79eec6d))
151
+ * 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))
152
+ * 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))
153
+ * 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))
154
+
155
+ ## [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)
156
+
157
+
158
+ ### Bug Fixes
159
+
160
+ * 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))
161
+ * 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))
162
+
163
+ ## [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)
164
+
165
+
166
+ ### ⚠ BREAKING CHANGES
167
+
168
+ * ethers extension integration and rename provider methods (#3573)
169
+
170
+ ### Features
171
+
172
+ * add onDisconnect ([#3572](https://github.com/dynamic-labs/DynamicAuth/issues/3572)) ([3e612f7](https://github.com/dynamic-labs/DynamicAuth/commit/3e612f72540781b9246a47ac12a7c979fb6c0d88))
173
+ * user callback on passkey creation complete ([#3591](https://github.com/dynamic-labs/DynamicAuth/issues/3591)) ([92d5f7d](https://github.com/dynamic-labs/DynamicAuth/commit/92d5f7df2ac1cc06338f7e9e75125f7bb71455ab))
174
+
175
+
176
+ ### Bug Fixes
177
+
178
+ * argentX in-browser wallet ([#3588](https://github.com/dynamic-labs/DynamicAuth/issues/3588)) ([7f3b22d](https://github.com/dynamic-labs/DynamicAuth/commit/7f3b22d003182aa0d84406086a313fc4de25e4a8))
179
+ * 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))
180
+ * remove passkey success view ([#3536](https://github.com/dynamic-labs/DynamicAuth/issues/3536)) ([b559de9](https://github.com/dynamic-labs/DynamicAuth/commit/b559de9c83096ed98e9f073b998ac08f876af24e))
181
+ * **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))
182
+
183
+
184
+ * 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))
185
+
186
+ ## [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)
187
+
188
+ ## [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)
189
+
190
+
191
+ ### ⚠ BREAKING CHANGES
192
+
193
+ * remove numberOfWallets (#3521)
194
+
195
+ ### Features
196
+
197
+ * add embedded widget components ([#3533](https://github.com/dynamic-labs/DynamicAuth/issues/3533)) ([513cba8](https://github.com/dynamic-labs/DynamicAuth/commit/513cba8e7694544122ff9cce3aa1aea0a0c23986))
198
+ * 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))
199
+ * add switch network for turnkey wallets ([#3539](https://github.com/dynamic-labs/DynamicAuth/issues/3539)) ([1bcbbb2](https://github.com/dynamic-labs/DynamicAuth/commit/1bcbbb2bd4e333d47ce4c93d4bd4b1f29a80c1f4))
200
+ * editable copy for switch network view ([#3561](https://github.com/dynamic-labs/DynamicAuth/issues/3561)) ([4dea2f1](https://github.com/dynamic-labs/DynamicAuth/commit/4dea2f159ee0675d5b9ba1cb412d75e5e211b3d1))
201
+
202
+
203
+ ### Bug Fixes
204
+
205
+ * 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))
206
+ * 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))
207
+ * embedded widget rerender bug ([#3545](https://github.com/dynamic-labs/DynamicAuth/issues/3545)) ([27ed979](https://github.com/dynamic-labs/DynamicAuth/commit/27ed979618ac7d9e912381faebbf61ec9e9e839c))
208
+ * sync passkey should not throw error ([#3535](https://github.com/dynamic-labs/DynamicAuth/issues/3535)) ([0336ba6](https://github.com/dynamic-labs/DynamicAuth/commit/0336ba65bf1cc4394e4f005f273baea26326784a))
209
+ * 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))
210
+
211
+
212
+ * remove numberOfWallets ([#3521](https://github.com/dynamic-labs/DynamicAuth/issues/3521)) ([0174297](https://github.com/dynamic-labs/DynamicAuth/commit/017429745d08b7b1edc23bc4da43bc01b4ef1cd4))
213
+
214
+ ## [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)
215
+
216
+
217
+ ### Features
218
+
219
+ * 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))
220
+ * 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))
221
+
222
+
223
+ ### Bug Fixes
224
+
225
+ * fix broken test ([#3520](https://github.com/dynamic-labs/DynamicAuth/issues/3520)) ([d7a3bd4](https://github.com/dynamic-labs/DynamicAuth/commit/d7a3bd4c71309a2df8106cae3f8f03f4aaedaa56))
226
+ * **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))
227
+ * 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))
228
+ * **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))
229
+
230
+ ## [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)
231
+
232
+
233
+ ### Features
234
+
235
+ * 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))
236
+ * 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))
237
+
238
+
239
+ ### Bug Fixes
240
+
241
+ * 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))
242
+ * 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))
243
+
244
+ ## [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)
245
+
246
+
247
+ ### Bug Fixes
248
+
249
+ * **AuthProviderIcon:** ensure social icon shows up ([#3439](https://github.com/dynamic-labs/DynamicAuth/issues/3439)) ([5064f28](https://github.com/dynamic-labs/DynamicAuth/commit/5064f28af9125699c8e23597812c6c526bb8a213))
250
+ * fix passkey on Windows ([#3440](https://github.com/dynamic-labs/DynamicAuth/issues/3440)) ([c0da96c](https://github.com/dynamic-labs/DynamicAuth/commit/c0da96c17c6c10a736fb394b6b1e6be3ccd616b2))
251
+ * missing popper provider ([#3488](https://github.com/dynamic-labs/DynamicAuth/issues/3488)) ([d7ca76e](https://github.com/dynamic-labs/DynamicAuth/commit/d7ca76e21dc5e842c316a654cb20d9dd115d7204))
252
+ * 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))
253
+ * 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))
254
+ * 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))
255
+ * 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))
256
+ * return promise from createEmbeddedWallet ([#3476](https://github.com/dynamic-labs/DynamicAuth/issues/3476)) ([5a9591e](https://github.com/dynamic-labs/DynamicAuth/commit/5a9591e0808d5d16fb886901902d763eabd8ec61))
257
+ * 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))
258
+
259
+ ## [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)
260
+
261
+
262
+ ### ⚠ BREAKING CHANGES
263
+
264
+ * change magic walletProvider from custodialService to embeddedWallet (#3429)
265
+
266
+ ### Features
267
+
268
+ * 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))
269
+ * 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))
270
+ * **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))
271
+ * **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))
272
+
273
+
274
+ ### Bug Fixes
275
+
276
+ * 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))
277
+ * 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))
278
+ * **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))
279
+ * error handling for non-supported devices ([#3397](https://github.com/dynamic-labs/DynamicAuth/issues/3397)) ([e5cc7e6](https://github.com/dynamic-labs/DynamicAuth/commit/e5cc7e65c05da132c325c57cf06e33cac86440f9))
280
+ * error handling when creating passkey ([#3416](https://github.com/dynamic-labs/DynamicAuth/issues/3416)) ([3274df4](https://github.com/dynamic-labs/DynamicAuth/commit/3274df4f7bd2a00ad0776392f55a8493c9bc2b60))
281
+ * 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))
282
+ * 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))
283
+ * signing messages with backpack ([#3398](https://github.com/dynamic-labs/DynamicAuth/issues/3398)) ([a68d3da](https://github.com/dynamic-labs/DynamicAuth/commit/a68d3da97e2b2c8f555d9126e0ab400343d7bec1))
284
+ * social signing icon loading after logout ([#3417](https://github.com/dynamic-labs/DynamicAuth/issues/3417)) ([3ac0f19](https://github.com/dynamic-labs/DynamicAuth/commit/3ac0f194f9a55795718fb6ca6f44ab2fe87eeb06))
285
+ * 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))
286
+ * trigger passkey flow after onboarding ([#3428](https://github.com/dynamic-labs/DynamicAuth/issues/3428)) ([fa81643](https://github.com/dynamic-labs/DynamicAuth/commit/fa81643575c0fe6174e6521810fcdf139dc259e6))
287
+ * **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))
288
+ * 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))
289
+ * **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))
290
+
291
+
292
+ * 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))
293
+
294
+ ## [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)
295
+
296
+
297
+ ### Features
298
+
299
+ * allow enabling multi wallet in connect-only mode ([#3367](https://github.com/dynamic-labs/DynamicAuth/issues/3367)) ([8ef68a2](https://github.com/dynamic-labs/DynamicAuth/commit/8ef68a295738db5353fcddc54985744313a5474b))
300
+ * move injected wallets configuration to the cdn ([#3077](https://github.com/dynamic-labs/DynamicAuth/issues/3077)) ([291183b](https://github.com/dynamic-labs/DynamicAuth/commit/291183b8daf124577d1049152a2556b6f2a85758))
301
+ * passkey setup completed view ([#3358](https://github.com/dynamic-labs/DynamicAuth/issues/3358)) ([020faf6](https://github.com/dynamic-labs/DynamicAuth/commit/020faf63815e232c64ac8626f747b2997adbaa02))
302
+ * **rohithv/gvty-326:** check if email is real before sending ([#3361](https://github.com/dynamic-labs/DynamicAuth/issues/3361)) ([db554f3](https://github.com/dynamic-labs/DynamicAuth/commit/db554f344707e3c3701012ecc09b67be2aaebba4))
303
+ * safe guard wrong locale override keys ([#3329](https://github.com/dynamic-labs/DynamicAuth/issues/3329)) ([b2cf96b](https://github.com/dynamic-labs/DynamicAuth/commit/b2cf96b55fdd2705335ad942fe8e1c1109bf4134))
304
+ * secure account with passkey view ([#3356](https://github.com/dynamic-labs/DynamicAuth/issues/3356)) ([9d58c44](https://github.com/dynamic-labs/DynamicAuth/commit/9d58c4472f1967ff5201bae6556c7d88a33d6276))
305
+
306
+
307
+ ### Bug Fixes
308
+
309
+ * better handling of window opener to mitigate window opener for social linking ([#3379](https://github.com/dynamic-labs/DynamicAuth/issues/3379)) ([e784061](https://github.com/dynamic-labs/DynamicAuth/commit/e784061ab190d314976213e321516bbb256627e7))
310
+ * change buttom copy when cannot link a wallet ([#3364](https://github.com/dynamic-labs/DynamicAuth/issues/3364)) ([5428a60](https://github.com/dynamic-labs/DynamicAuth/commit/5428a60abcbbd9c47e9227a53610ee5975bac379))
311
+ * **DynamicWidget:** goToInitialView when closing send balance ([#3333](https://github.com/dynamic-labs/DynamicAuth/issues/3333)) ([7ea40ec](https://github.com/dynamic-labs/DynamicAuth/commit/7ea40ec3827c40e3340e5ecfa2153e59c05a79f1))
312
+ * **EmailMagicWalletConnector:** to only cancel the verification if user clicks back ([#3374](https://github.com/dynamic-labs/DynamicAuth/issues/3374)) ([1111a18](https://github.com/dynamic-labs/DynamicAuth/commit/1111a186b7b84066e89d385c0bd9c064d0326eae))
313
+ * **embedded-wallet:** display sign typed data message ([#3316](https://github.com/dynamic-labs/DynamicAuth/issues/3316)) ([0014c8b](https://github.com/dynamic-labs/DynamicAuth/commit/0014c8b4250cf9db92b554f02b4e46f3aba2d943))
314
+ * missing translation keys ([#3325](https://github.com/dynamic-labs/DynamicAuth/issues/3325)) ([0e7c383](https://github.com/dynamic-labs/DynamicAuth/commit/0e7c3838a0eb8b49298e59b2919e16994a2d6b19))
315
+ * only set scope/prompt in oauth query params when they're defined ([#3324](https://github.com/dynamic-labs/DynamicAuth/issues/3324)) ([9e8aa2d](https://github.com/dynamic-labs/DynamicAuth/commit/9e8aa2d186fff563607dc836017b918af79718ce))
316
+ * pass the network param on wallet transfers ([#3307](https://github.com/dynamic-labs/DynamicAuth/issues/3307)) ([faf89fd](https://github.com/dynamic-labs/DynamicAuth/commit/faf89fdbfa690a87ae91d7f09c3647b4160b53ad))
317
+ * send primaryWalletId when available to unlinkOauth ([#3342](https://github.com/dynamic-labs/DynamicAuth/issues/3342)) ([0da0ae2](https://github.com/dynamic-labs/DynamicAuth/commit/0da0ae23040f7683000223109446a516c6d7b212))
318
+ * twitter sign-in with dynamic ([#3313](https://github.com/dynamic-labs/DynamicAuth/issues/3313)) ([c77dae4](https://github.com/dynamic-labs/DynamicAuth/commit/c77dae41dbdc02c84f3d3f5f3338136efd5766f9))
319
+ * use social profile photo for profile icon whenever available ([#3298](https://github.com/dynamic-labs/DynamicAuth/issues/3298)) ([143303b](https://github.com/dynamic-labs/DynamicAuth/commit/143303ba5e24d16aaa362f1888e3942bdef59602))
320
+ * wallet transition in the bridge ([#3270](https://github.com/dynamic-labs/DynamicAuth/issues/3270)) ([143cf47](https://github.com/dynamic-labs/DynamicAuth/commit/143cf47e0cd4806780f5b3f527ace2d6c0208534)), closes [#3268](https://github.com/dynamic-labs/DynamicAuth/issues/3268) [#3243](https://github.com/dynamic-labs/DynamicAuth/issues/3243)
321
+ * **wallet-connect:** prevent connector from connecting after logout ([#3345](https://github.com/dynamic-labs/DynamicAuth/issues/3345)) ([9bada77](https://github.com/dynamic-labs/DynamicAuth/commit/9bada7775c5ac7a4fdb5ad8d4d21691335e06936))
322
+
2
323
  ## [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
324
 
4
325
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/flow",
3
- "version": "0.19.0-alpha.8",
3
+ "version": "0.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@onflow/fcl": "1.4.1",
30
- "@dynamic-labs/utils": "0.19.0-alpha.8",
31
- "@dynamic-labs/wallet-book": "0.19.0-alpha.8",
32
- "@dynamic-labs/wallet-connector-core": "0.19.0-alpha.8"
30
+ "@dynamic-labs/utils": "0.19.0",
31
+ "@dynamic-labs/wallet-book": "0.19.0",
32
+ "@dynamic-labs/wallet-connector-core": "0.19.0"
33
33
  },
34
34
  "peerDependencies": {}
35
35
  }
@@ -7,133 +7,133 @@ var fcl = require('@onflow/fcl');
7
7
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
8
8
  var utils = require('@dynamic-labs/utils');
9
9
 
10
- class FlowWalletConnector extends walletConnectorCore.WalletConnectorBase {
11
- constructor(opts) {
12
- var _a;
13
- super(opts);
14
- this.connectedChain = 'FLOW';
15
- this.supportedChains = ['FLOW'];
16
- this.appName = opts.appName;
17
- this.appLogoUrl = opts.appLogoUrl;
18
- this.network = (_a = opts.flowNetwork) !== null && _a !== void 0 ? _a : 'mainnet';
19
- }
20
- connect() {
21
- return _tslib.__awaiter(this, void 0, void 0, function* () {
22
- yield this.setupConfig();
23
- const { addr } = yield fcl.currentUser().authenticate();
24
- if (addr) {
25
- this.emit('accountChange', { accounts: [addr] });
26
- }
27
- });
28
- }
29
- getNetwork() {
30
- return _tslib.__awaiter(this, void 0, void 0, function* () {
31
- return this.network;
32
- });
33
- }
34
- setupConfig() {
35
- return _tslib.__awaiter(this, void 0, void 0, function* () {
36
- yield fcl.config()
37
- .put('app.detail.title', this.appName)
38
- .put('app.detail.icon', this.appLogoUrl)
39
- .put('accessNode.api', this.network === 'testnet'
40
- ? 'https://rest-testnet.onflow.org'
41
- : 'https://rest-mainnet.onflow.org')
42
- .put('flow.network', this.network);
43
- });
44
- }
45
- fetchPublicAddress() {
46
- return _tslib.__awaiter(this, void 0, void 0, function* () {
47
- try {
48
- yield this.connect();
49
- const user = yield fcl.currentUser().snapshot();
50
- return user.addr;
51
- }
52
- catch (error) {
53
- walletConnectorCore.logger.error(error);
54
- return undefined;
55
- }
56
- });
57
- }
58
- proveOwnership(messageToSign) {
59
- return _tslib.__awaiter(this, void 0, void 0, function* () {
60
- try {
61
- yield this.connect();
62
- yield this.signDelay();
63
- const signedMessage = yield this.signMessage(messageToSign);
64
- if (!signedMessage) {
65
- return undefined;
66
- }
67
- const data = {
68
- appName: this.appName,
69
- signedMessage: JSON.parse(signedMessage),
70
- };
71
- return JSON.stringify(data);
72
- }
73
- catch (error) {
74
- walletConnectorCore.logger.error(error);
75
- return undefined;
76
- }
77
- });
78
- }
79
- signMessage(messageToSign) {
80
- return _tslib.__awaiter(this, void 0, void 0, function* () {
81
- const message = Buffer.from(messageToSign).toString('hex');
82
- const signedMessage = yield fcl.currentUser().signUserMessage(message);
83
- if (signedMessage.includes('Declined')) {
84
- throw new utils.DynamicError('User declined the signature');
85
- }
86
- return JSON.stringify(signedMessage);
87
- });
88
- }
89
- getBalance() {
90
- return _tslib.__awaiter(this, void 0, void 0, function* () {
91
- yield this.setupConfig();
92
- const address = yield this.fetchPublicAddress();
93
- if (address) {
10
+ class FlowWalletConnector extends walletConnectorCore.WalletConnectorBase {
11
+ constructor(opts) {
12
+ var _a;
13
+ super(opts);
14
+ this.connectedChain = 'FLOW';
15
+ this.supportedChains = ['FLOW'];
16
+ this.appName = opts.appName;
17
+ this.appLogoUrl = opts.appLogoUrl;
18
+ this.network = (_a = opts.flowNetwork) !== null && _a !== void 0 ? _a : 'mainnet';
19
+ }
20
+ connect() {
21
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
22
+ yield this.setupConfig();
23
+ const { addr } = yield fcl.currentUser().authenticate();
24
+ if (addr) {
25
+ this.emit('accountChange', { accounts: [addr] });
26
+ }
27
+ });
28
+ }
29
+ getNetwork() {
30
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
31
+ return this.network;
32
+ });
33
+ }
34
+ setupConfig() {
35
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
36
+ yield fcl.config()
37
+ .put('app.detail.title', this.appName)
38
+ .put('app.detail.icon', this.appLogoUrl)
39
+ .put('accessNode.api', this.network === 'testnet'
40
+ ? 'https://rest-testnet.onflow.org'
41
+ : 'https://rest-mainnet.onflow.org')
42
+ .put('flow.network', this.network);
43
+ });
44
+ }
45
+ fetchPublicAddress() {
46
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
47
+ try {
48
+ yield this.connect();
49
+ const user = yield fcl.currentUser().snapshot();
50
+ return user.addr;
51
+ }
52
+ catch (error) {
53
+ walletConnectorCore.logger.error(error);
54
+ return undefined;
55
+ }
56
+ });
57
+ }
58
+ proveOwnership(messageToSign) {
59
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
60
+ try {
61
+ yield this.connect();
62
+ yield this.signDelay();
63
+ const signedMessage = yield this.signMessage(messageToSign);
64
+ if (!signedMessage) {
65
+ return undefined;
66
+ }
67
+ const data = {
68
+ appName: this.appName,
69
+ signedMessage: JSON.parse(signedMessage),
70
+ };
71
+ return JSON.stringify(data);
72
+ }
73
+ catch (error) {
74
+ walletConnectorCore.logger.error(error);
75
+ return undefined;
76
+ }
77
+ });
78
+ }
79
+ signMessage(messageToSign) {
80
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
81
+ const message = Buffer.from(messageToSign).toString('hex');
82
+ const signedMessage = yield fcl.currentUser().signUserMessage(message);
83
+ if (signedMessage.includes('Declined')) {
84
+ throw new utils.DynamicError('User declined the signature');
85
+ }
86
+ return JSON.stringify(signedMessage);
87
+ });
88
+ }
89
+ getBalance() {
90
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
91
+ yield this.setupConfig();
92
+ const address = yield this.fetchPublicAddress();
93
+ if (address) {
94
94
  const code = `
95
95
  pub fun main(): UFix64 {
96
96
  let account = getAccount(${address});
97
97
  return account.balance;
98
98
  }
99
- `;
100
- try {
101
- return yield fcl.send([fcl.script(code)]).then(fcl.decode);
102
- }
103
- catch (error) {
104
- walletConnectorCore.logger.error(error);
105
- return undefined;
106
- }
107
- }
108
- else {
109
- return undefined;
110
- }
111
- });
112
- }
113
- endSession() {
114
- return _tslib.__awaiter(this, void 0, void 0, function* () {
115
- fcl.currentUser().unauthenticate();
116
- });
117
- }
118
- switchNetwork() {
119
- return _tslib.__awaiter(this, void 0, void 0, function* () {
120
- throw new utils.DynamicError('Not supported');
121
- });
122
- }
123
- getConnectedAccounts() {
124
- return _tslib.__awaiter(this, void 0, void 0, function* () {
125
- const user = yield fcl.currentUser().snapshot();
126
- if (user.addr) {
127
- return [user.addr];
128
- }
129
- return [];
130
- });
131
- }
132
- signDelay() {
133
- return _tslib.__awaiter(this, void 0, void 0, function* () {
134
- return Promise.resolve();
135
- });
136
- }
99
+ `;
100
+ try {
101
+ return yield fcl.send([fcl.script(code)]).then(fcl.decode);
102
+ }
103
+ catch (error) {
104
+ walletConnectorCore.logger.error(error);
105
+ return undefined;
106
+ }
107
+ }
108
+ else {
109
+ return undefined;
110
+ }
111
+ });
112
+ }
113
+ endSession() {
114
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
115
+ fcl.currentUser().unauthenticate();
116
+ });
117
+ }
118
+ switchNetwork() {
119
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
120
+ throw new utils.DynamicError('Not supported');
121
+ });
122
+ }
123
+ getConnectedAccounts() {
124
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
125
+ const user = yield fcl.currentUser().snapshot();
126
+ if (user.addr) {
127
+ return [user.addr];
128
+ }
129
+ return [];
130
+ });
131
+ }
132
+ signDelay() {
133
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
134
+ return Promise.resolve();
135
+ });
136
+ }
137
137
  }
138
138
 
139
139
  exports.FlowWalletConnector = FlowWalletConnector;