New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cowprotocol/widget-lib

Package Overview
Dependencies
Maintainers
5
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cowprotocol/widget-lib - npm Package Compare versions

Comparing version

to
0.16.0

2

package.json
{
"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.