@cowprotocol/widget-lib 4.11.0 → 4.12.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/types.d.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/widget-lib",
3
- "version": "4.11.0",
3
+ "version": "4.12.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",
@@ -15,9 +15,9 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@cowprotocol/cow-sdk": "9.2.21",
19
- "@cowprotocol/events": "^4.17.0",
20
- "@cowprotocol/iframe-transport": "^2.3.11"
18
+ "@cowprotocol/cow-sdk": "9.2.22",
19
+ "@cowprotocol/events": "^4.17.1",
20
+ "@cowprotocol/iframe-transport": "^2.3.12"
21
21
  },
22
22
  "devDependencies": {
23
23
  "csstype": "3.1.3"
package/types.d.ts CHANGED
@@ -307,6 +307,11 @@ export interface CowSwapWidgetParams {
307
307
  * Defaults to false.
308
308
  */
309
309
  disableCrossChainSwap?: boolean;
310
+ /**
311
+ * Hides the price chart and its controls.
312
+ * Defaults to false.
313
+ */
314
+ disablePriceChart?: boolean;
310
315
  /**
311
316
  * Disable setting custom recipient for all trading widgets (swap,limit,twap)
312
317
  * Important! Cross-chain swaps are based on custom recipient functionality!
@@ -388,6 +393,10 @@ export interface CowSwapWidgetParams {
388
393
  * Option to hide bridge info
389
394
  */
390
395
  hideBridgeInfo?: boolean;
396
+ /**
397
+ * Option to hide the banner suggesting to wrap the native token (e.g. ETH -> WETH) when selling it.
398
+ */
399
+ hideWrapBanner?: boolean;
391
400
  /**
392
401
  * Option to hide orders table on LIMIT and TWAP forms.
393
402
  *