@cowprotocol/widget-lib 4.14.0 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/types.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/widget-lib",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"description": "CoW Swap Widget Library. Allows you to easily embed a CoW Swap widget on your website.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@cowprotocol/cow-sdk": "9.3.3",
|
|
19
|
-
"@cowprotocol/events": "^4.18.
|
|
20
|
-
"@cowprotocol/iframe-transport": "^2.3.
|
|
19
|
+
"@cowprotocol/events": "^4.18.1",
|
|
20
|
+
"@cowprotocol/iframe-transport": "^2.3.15"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"csstype": "3.1.3"
|
package/types.d.ts
CHANGED
|
@@ -342,6 +342,12 @@ export interface CowSwapWidgetParams {
|
|
|
342
342
|
* Defaults to false.
|
|
343
343
|
*/
|
|
344
344
|
disablePriceChart?: boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Hides the post-swap take-profit banner (price percentage shortcuts that open a limit order).
|
|
347
|
+
* Automatically treated as `true` when Limit is not included in `enabledTradeTypes`.
|
|
348
|
+
* Defaults to false.
|
|
349
|
+
*/
|
|
350
|
+
disablePricePercentageShortcuts?: boolean;
|
|
345
351
|
/**
|
|
346
352
|
* Disable setting custom recipient for all trading widgets (swap,limit,twap)
|
|
347
353
|
* Important! Cross-chain swaps are based on custom recipient functionality!
|