@cowprotocol/widget-lib
Advanced tools
Comparing version
{ | ||
"name": "@cowprotocol/widget-lib", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "description": "CoW Swap Widget Library. Allows you to easily embed a CoW Swap widget on your website.", |
@@ -66,2 +66,3 @@ import { SupportedChainId } from '@cowprotocol/cow-sdk'; | ||
} | ||
export type ForcedOrderDeadline = FlexibleConfig<number>; | ||
export declare enum TradeType { | ||
@@ -190,2 +191,10 @@ SWAP = "swap", | ||
/** | ||
* Forced order deadline in minutes. When set, user's won't be able to edit the deadline. | ||
* | ||
* Either a single value applied to each individual order type accordingly or an optional individual value per order type. | ||
* | ||
* The app will use the appropriated min/max value per order type. | ||
*/ | ||
forcedOrderDeadline?: ForcedOrderDeadline; | ||
/** | ||
* Enables the ability to switch between trade types in the widget. | ||
@@ -228,5 +237,15 @@ */ | ||
/** | ||
* Option to hide bridge info | ||
*/ | ||
hideBridgeInfo?: boolean; | ||
/** | ||
* Option to hide orders table on LIMIT and TWAP forms. | ||
* | ||
* Warning! When `true`, users won't be able to see their LIMIT/TWAP order status or history, neither they'll be able to cancel active orders. | ||
*/ | ||
hideOrdersTable?: boolean; | ||
/** | ||
* Defines the widget mode. | ||
* - `true` (standalone mode): The widget is standalone, so it will use its own Ethereum provider. The user can connect from within the widget. | ||
* - `false` (dapp mode): The widget is embedded in a dapp which is responsible of providing the Ethereum provider. Therefore, there won't be a connect button in the widget as this should happen in the host app. | ||
* - `false` (dapp mode): The widget is embedded in a dapp which is responsible for providing the Ethereum provider. Therefore, there won't be a connect button in the widget as this should happen in the host app. | ||
* | ||
@@ -233,0 +252,0 @@ * Defaults to standalone. |
54350
1.44%944
2.05%