@cowprotocol/widget-react 0.14.6 → 1.0.5
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 +243 -0
- package/LICENSE +674 -0
- package/README.md +0 -4
- package/jest.config.ts +11 -0
- package/package.json +14 -20
- package/project.json +42 -0
- package/src/index.ts +2 -0
- package/src/lib/CowSwapWidget.spec.tsx +7 -0
- package/src/lib/CowSwapWidget.tsx +125 -0
- package/tsconfig.json +21 -0
- package/tsconfig.lib.json +10 -0
- package/tsconfig.spec.json +20 -0
- package/index.d.ts +0 -2
- package/index.js +0 -1
- package/index.mjs +0 -533
- package/lib/CowSwapWidget.d.ts +0 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.5](https://github.com/cowprotocol/cowswap/compare/widget-react-v1.0.4...widget-react-v1.0.5) (2026-02-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @cowprotocol/events bumped to 3.2.0
|
|
11
|
+
* @cowprotocol/types bumped to 3.2.0
|
|
12
|
+
* @cowprotocol/widget-lib bumped to 1.1.2
|
|
13
|
+
|
|
14
|
+
## [1.0.4](https://github.com/cowprotocol/cowswap/compare/widget-react-v1.0.3...widget-react-v1.0.4) (2026-02-10)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Dependencies
|
|
18
|
+
|
|
19
|
+
* The following workspace dependencies were updated
|
|
20
|
+
* dependencies
|
|
21
|
+
* @cowprotocol/widget-lib bumped to 1.1.1
|
|
22
|
+
|
|
23
|
+
## [1.0.3](https://github.com/cowprotocol/cowswap/compare/widget-react-v1.0.2...widget-react-v1.0.3) (2026-02-09)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### 🐛 Bug Fixes
|
|
27
|
+
|
|
28
|
+
* clean up widget-react lib code ([#6982](https://github.com/cowprotocol/cowswap/issues/6982)) ([2283aba](https://github.com/cowprotocol/cowswap/commit/2283aba8ea22ba219d7ddd8059478a524e50915e))
|
|
29
|
+
|
|
30
|
+
## [1.0.2](https://github.com/cowprotocol/cowswap/compare/widget-react-v1.0.1...widget-react-v1.0.2) (2026-02-05)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @cowprotocol/events bumped to 3.1.0
|
|
38
|
+
* @cowprotocol/types bumped to 3.1.0
|
|
39
|
+
* @cowprotocol/widget-lib bumped to 1.1.0
|
|
40
|
+
|
|
41
|
+
## [1.0.1](https://github.com/cowprotocol/cowswap/compare/widget-react-v1.0.0...widget-react-v1.0.1) (2026-02-02)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Dependencies
|
|
45
|
+
|
|
46
|
+
* The following workspace dependencies were updated
|
|
47
|
+
* dependencies
|
|
48
|
+
* @cowprotocol/events bumped to 3.0.1
|
|
49
|
+
* @cowprotocol/types bumped to 3.0.1
|
|
50
|
+
* @cowprotocol/widget-lib bumped to 1.0.1
|
|
51
|
+
|
|
52
|
+
## [1.0.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.14.6...widget-react-v1.0.0) (2026-01-28)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### ⚠ BREAKING CHANGES
|
|
56
|
+
|
|
57
|
+
* migrate from yarn to pnpm ([#6847](https://github.com/cowprotocol/cowswap/issues/6847))
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* migrate from yarn to pnpm ([#6847](https://github.com/cowprotocol/cowswap/issues/6847)) ([1c5d115](https://github.com/cowprotocol/cowswap/commit/1c5d11516d0ddb997b0ebbb4eee4adcb491204a4))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Dependencies
|
|
65
|
+
|
|
66
|
+
* The following workspace dependencies were updated
|
|
67
|
+
* dependencies
|
|
68
|
+
* @cowprotocol/events bumped to 3.0.0
|
|
69
|
+
* @cowprotocol/types bumped to 3.0.0
|
|
70
|
+
* @cowprotocol/widget-lib bumped to 1.0.0
|
|
71
|
+
|
|
72
|
+
## [0.14.6](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.14.5...widget-react-v0.14.6) (2026-01-26)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Dependencies
|
|
76
|
+
|
|
77
|
+
* The following workspace dependencies were updated
|
|
78
|
+
* dependencies
|
|
79
|
+
* @cowprotocol/widget-lib bumped from ^0.22.2 to ^0.22.3
|
|
80
|
+
|
|
81
|
+
## [0.14.5](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.14.4...widget-react-v0.14.5) (2026-01-26)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Dependencies
|
|
85
|
+
|
|
86
|
+
* The following workspace dependencies were updated
|
|
87
|
+
* dependencies
|
|
88
|
+
* @cowprotocol/widget-lib bumped from ^0.22.1 to ^0.22.2
|
|
89
|
+
|
|
90
|
+
## [0.14.4](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.14.3...widget-react-v0.14.4) (2025-12-24)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Dependencies
|
|
94
|
+
|
|
95
|
+
* The following workspace dependencies were updated
|
|
96
|
+
* dependencies
|
|
97
|
+
* @cowprotocol/widget-lib bumped from ^0.22.0 to ^0.22.1
|
|
98
|
+
|
|
99
|
+
## [0.14.3](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.14.2...widget-react-v0.14.3) (2025-12-22)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Dependencies
|
|
103
|
+
|
|
104
|
+
* The following workspace dependencies were updated
|
|
105
|
+
* dependencies
|
|
106
|
+
* @cowprotocol/widget-lib bumped from ^0.21.1 to ^0.22.0
|
|
107
|
+
|
|
108
|
+
## [0.14.2](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.14.1...widget-react-v0.14.2) (2025-12-16)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Dependencies
|
|
112
|
+
|
|
113
|
+
* The following workspace dependencies were updated
|
|
114
|
+
* dependencies
|
|
115
|
+
* @cowprotocol/widget-lib bumped from ^0.21.0 to ^0.21.1
|
|
116
|
+
|
|
117
|
+
## [0.14.1](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.11.2...widget-react-v0.14.1) (2025-11-24)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Dependencies
|
|
121
|
+
|
|
122
|
+
* The following workspace dependencies were updated
|
|
123
|
+
* dependencies
|
|
124
|
+
* @cowprotocol/widget-lib bumped from ^0.20.0 to ^0.21.0
|
|
125
|
+
|
|
126
|
+
## [0.11.2](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.11.1...widget-react-v0.11.2) (2025-06-18)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Bug Fixes
|
|
130
|
+
|
|
131
|
+
* make order progress bar UI more stable ([#5834](https://github.com/cowprotocol/cowswap/issues/5834)) ([80cebd1](https://github.com/cowprotocol/cowswap/commit/80cebd1104a0a2e30e12ce8a4b3d62c212559cec))
|
|
132
|
+
|
|
133
|
+
## [0.11.1](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.11.0...widget-react-v0.11.1) (2025-05-19)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* **dev-deps-update:** bump the dev-deps group with 76 updates ([#5663](https://github.com/cowprotocol/cowswap/issues/5663)) ([552b349](https://github.com/cowprotocol/cowswap/commit/552b349f53762a01ccf008e9a2083248424cbafa))
|
|
139
|
+
|
|
140
|
+
## [0.11.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.10.2...widget-react-v0.11.0) (2024-09-30)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Features
|
|
144
|
+
|
|
145
|
+
* **hooks-store:** support iframe hook-dapps ([#4885](https://github.com/cowprotocol/cowswap/issues/4885)) ([5116f29](https://github.com/cowprotocol/cowswap/commit/5116f296a0e4866d0a51a806b7abe55e809d26e9))
|
|
146
|
+
|
|
147
|
+
## [0.10.2](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.10.1...widget-react-v0.10.2) (2024-09-17)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Bug Fixes
|
|
151
|
+
|
|
152
|
+
* **libs:** fix import error on multiple libs ([#4869](https://github.com/cowprotocol/cowswap/issues/4869)) ([8cfd70b](https://github.com/cowprotocol/cowswap/commit/8cfd70b6000a1a021b76ad1f924829cb42cb2bcd))
|
|
153
|
+
|
|
154
|
+
## [0.10.1](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.10.0...widget-react-v0.10.1) (2024-09-05)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Bug Fixes
|
|
158
|
+
|
|
159
|
+
* **widget-react:** fix @cowprotocol/widget-lib build export path ([#4839](https://github.com/cowprotocol/cowswap/issues/4839)) ([2b56673](https://github.com/cowprotocol/cowswap/commit/2b566737e603aeca7f278c059c892f6cc6fe539d))
|
|
160
|
+
|
|
161
|
+
## [0.10.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.9.0...widget-react-v0.10.0) (2024-08-28)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Features
|
|
165
|
+
|
|
166
|
+
* **widget-react:** bump widget-lib version to 0.14.0 ([468e780](https://github.com/cowprotocol/cowswap/commit/468e78047acaf577b66a22798bcf2298d5ed426a))
|
|
167
|
+
|
|
168
|
+
## [0.9.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.8.2...widget-react-v0.9.0) (2024-05-01)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Features
|
|
172
|
+
|
|
173
|
+
* allow to specify your own fee label and tooltip ([#4350](https://github.com/cowprotocol/cowswap/issues/4350)) ([e5955d4](https://github.com/cowprotocol/cowswap/commit/e5955d479e099f6e1f68ec0531d57fe26a59f63d))
|
|
174
|
+
|
|
175
|
+
## [0.8.2](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.8.1...widget-react-v0.8.2) (2024-04-23)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### Bug Fixes
|
|
179
|
+
|
|
180
|
+
* update widget-lib version ([#4294](https://github.com/cowprotocol/cowswap/issues/4294)) ([84e5d41](https://github.com/cowprotocol/cowswap/commit/84e5d41f40475d108e53975290c571631b430f02))
|
|
181
|
+
|
|
182
|
+
## [0.8.1](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.8.0...widget-react-v0.8.1) (2024-04-18)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Bug Fixes
|
|
186
|
+
|
|
187
|
+
* rearrange widget imports ([b297608](https://github.com/cowprotocol/cowswap/commit/b297608ff3005295322cbd58a19d3fb7c00f5653))
|
|
188
|
+
* cleanup widget to prevent memory leaks ([#4262][https://github.com/cowprotocol/cowswap/pull/4262])
|
|
189
|
+
|
|
190
|
+
## [0.8.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.7.0...widget-react-v0.8.0) (2024-04-15)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### Features
|
|
194
|
+
|
|
195
|
+
* make widget to use all space ([#4197](https://github.com/cowprotocol/cowswap/issues/4197)) ([3ab6cb9](https://github.com/cowprotocol/cowswap/commit/3ab6cb98f03e571670031248af9419f301bbdaf8))
|
|
196
|
+
* up widget-lib version ([#4085](https://github.com/cowprotocol/cowswap/issues/4085)) ([a64efee](https://github.com/cowprotocol/cowswap/commit/a64efeec97ef3309431c19653c3e35d085bc27ff))
|
|
197
|
+
* **widget-react:** update widget-lib ([#3674](https://github.com/cowprotocol/cowswap/issues/3674)) ([26b4776](https://github.com/cowprotocol/cowswap/commit/26b477659a157e3c04ccac0e62907f95ad901559))
|
|
198
|
+
* **widget:** add error handling for React widget ([#3823](https://github.com/cowprotocol/cowswap/issues/3823)) ([dfc3e4c](https://github.com/cowprotocol/cowswap/commit/dfc3e4c8848b8d47a3858f3415959cc80972baed))
|
|
199
|
+
* **widget:** implement all listeners and fix types ([#3817](https://github.com/cowprotocol/cowswap/issues/3817)) ([11a7226](https://github.com/cowprotocol/cowswap/commit/11a7226a5d3811139e784fe668ee2eebf2167a38))
|
|
200
|
+
* **widget:** misc to address issues and comments ([#3827](https://github.com/cowprotocol/cowswap/issues/3827)) ([ef83a5a](https://github.com/cowprotocol/cowswap/commit/ef83a5ad520d072ebf4f2cccde5fcfd0c1d88cd2))
|
|
201
|
+
* **widget:** optimise widget updates ([#3822](https://github.com/cowprotocol/cowswap/issues/3822)) ([d1a1e7d](https://github.com/cowprotocol/cowswap/commit/d1a1e7d05a1fed94dece9afbbc65f43af1a4f748))
|
|
202
|
+
* **widget:** subscribe to cow events (from iframe) ([#3816](https://github.com/cowprotocol/cowswap/issues/3816)) ([c3b8104](https://github.com/cowprotocol/cowswap/commit/c3b810435a6e64b12d28aac12cf785eef52f6531))
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Bug Fixes
|
|
206
|
+
|
|
207
|
+
* connect wallet not working ([#3863](https://github.com/cowprotocol/cowswap/issues/3863)) ([b3e4eb7](https://github.com/cowprotocol/cowswap/commit/b3e4eb7b32ff946f529b08ac853da6ec094f6a19))
|
|
208
|
+
* minimal widget-react changes to force release-please bump ([#3776](https://github.com/cowprotocol/cowswap/issues/3776)) ([8d3d9d6](https://github.com/cowprotocol/cowswap/commit/8d3d9d691232c7cba67dbcb6f22f4581e73d012a))
|
|
209
|
+
* **widget:** solve issues arising when changing the provider ([#3825](https://github.com/cowprotocol/cowswap/issues/3825)) ([2f81380](https://github.com/cowprotocol/cowswap/commit/2f81380d3e2a49a63c9da4e5fedb11e378fb3c8c))
|
|
210
|
+
|
|
211
|
+
## [0.7.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.5.0...widget-react-v0.7.0) (2024-04-11)
|
|
212
|
+
|
|
213
|
+
### Features
|
|
214
|
+
|
|
215
|
+
- make widget to use all space ([#4197](https://github.com/cowprotocol/cowswap/issues/4197)) ([3ab6cb9](https://github.com/cowprotocol/cowswap/commit/3ab6cb98f03e571670031248af9419f301bbdaf8))
|
|
216
|
+
|
|
217
|
+
## [0.5.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.4.0...widget-react-v0.5.0) (2024-03-22)
|
|
218
|
+
|
|
219
|
+
### Features
|
|
220
|
+
|
|
221
|
+
- up widget-lib version ([#4085](https://github.com/cowprotocol/cowswap/issues/4085)) ([a64efee](https://github.com/cowprotocol/cowswap/commit/a64efeec97ef3309431c19653c3e35d085bc27ff))
|
|
222
|
+
|
|
223
|
+
## [0.4.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.3.0...widget-react-v0.4.0) (2024-02-22)
|
|
224
|
+
|
|
225
|
+
### Features
|
|
226
|
+
|
|
227
|
+
- **widget:** add error handling for React widget ([#3823](https://github.com/cowprotocol/cowswap/issues/3823)) ([dfc3e4c](https://github.com/cowprotocol/cowswap/commit/dfc3e4c8848b8d47a3858f3415959cc80972baed))
|
|
228
|
+
- **widget:** implement all listeners and fix types ([#3817](https://github.com/cowprotocol/cowswap/issues/3817)) ([11a7226](https://github.com/cowprotocol/cowswap/commit/11a7226a5d3811139e784fe668ee2eebf2167a38))
|
|
229
|
+
- **widget:** misc to address issues and comments ([#3827](https://github.com/cowprotocol/cowswap/issues/3827)) ([ef83a5a](https://github.com/cowprotocol/cowswap/commit/ef83a5ad520d072ebf4f2cccde5fcfd0c1d88cd2))
|
|
230
|
+
- **widget:** optimise widget updates ([#3822](https://github.com/cowprotocol/cowswap/issues/3822)) ([d1a1e7d](https://github.com/cowprotocol/cowswap/commit/d1a1e7d05a1fed94dece9afbbc65f43af1a4f748))
|
|
231
|
+
- **widget:** subscribe to cow events (from iframe) ([#3816](https://github.com/cowprotocol/cowswap/issues/3816)) ([c3b8104](https://github.com/cowprotocol/cowswap/commit/c3b810435a6e64b12d28aac12cf785eef52f6531))
|
|
232
|
+
|
|
233
|
+
### Bug Fixes
|
|
234
|
+
|
|
235
|
+
- connect wallet not working ([#3863](https://github.com/cowprotocol/cowswap/issues/3863)) ([b3e4eb7](https://github.com/cowprotocol/cowswap/commit/b3e4eb7b32ff946f529b08ac853da6ec094f6a19))
|
|
236
|
+
- minimal widget-react changes to force release-please bump ([#3776](https://github.com/cowprotocol/cowswap/issues/3776)) ([8d3d9d6](https://github.com/cowprotocol/cowswap/commit/8d3d9d691232c7cba67dbcb6f22f4581e73d012a))
|
|
237
|
+
- **widget:** solve issues arising when changing the provider ([#3825](https://github.com/cowprotocol/cowswap/issues/3825)) ([2f81380](https://github.com/cowprotocol/cowswap/commit/2f81380d3e2a49a63c9da4e5fedb11e378fb3c8c))
|
|
238
|
+
|
|
239
|
+
## [0.3.0](https://github.com/cowprotocol/cowswap/compare/widget-react-v0.2.3...widget-react-v0.3.0) (2024-01-17)
|
|
240
|
+
|
|
241
|
+
### Features
|
|
242
|
+
|
|
243
|
+
- **widget-react:** update widget-lib ([#3674](https://github.com/cowprotocol/cowswap/issues/3674)) ([26b4776](https://github.com/cowprotocol/cowswap/commit/26b477659a157e3c04ccac0e62907f95ad901559))
|