From babc9954af1756e639112548cde870bede44a2bd Mon Sep 17 00:00:00 2001 From: shoom3301 Date: Mon, 22 Dec 2025 15:44:34 +0500 Subject: [PATCH] feat(widget): parameter to disable cross-chain swaps --- docs/cow-protocol/tutorials/widget/widget.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/cow-protocol/tutorials/widget/widget.md b/docs/cow-protocol/tutorials/widget/widget.md index c3b181c7b..9ceb3a9c0 100644 --- a/docs/cow-protocol/tutorials/widget/widget.md +++ b/docs/cow-protocol/tutorials/widget/widget.md @@ -343,7 +343,7 @@ createCowSwapWidget(document.getElementById('cowswap-widget'), { > All params are optional | Parameter | Type | Default | Description | -| ------------------------------------- | ---------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ------------------------------------- | ---------------------- | ---------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `width` | `string` | 400px | The width of the widget in css values (px, vh, etc.). | | `height` | `string` | 600px | The height of the widget in css values (px, vh, etc.). | | `maxHeight` | `number` | --- | The widget automatically adjusts its height depending on the content. By default, the maximum height is `body.offsetHeight`, but it might be customized using the `maxHeight` parameter. | @@ -363,6 +363,7 @@ createCowSwapWidget(document.getElementById('cowswap-widget'), { | `disableToastMessages` | `boolean` | false | CoW Swap displays a pop-up notification when certain events occur, for example: an order has been filled. You may want to handle these events yourself and disable the display of notifications in the widget, to do this you need to enable this option. See [Events handling](#events-handling) section for more details. | | `disablePostedOrderConfirmationModal` | `boolean` | false | Disables showing the confirmation modal after posting an order. | | `disableProgressBar` | `boolean` | false | Disables showing the progress bar after a SWAP order is placed. | +| `disableCrossChainSwap` | `boolean` | false | Disables cross-chain swaps (aka Swap and Bridge) feature. | | `standaloneMode` | `boolean` | false | When this option is enabled, the widget will use its own Ethereum provider and the user will be able to connect a wallet from within the widget. | | `hideNetworkSelector` | `boolean` | false | Disables an opportunity to change the network from the widget UI. | | `hideLogo` | `boolean` | false | Hides the logo in the widget. |