@cowprotocol/widget-lib 0.13.1 → 0.14.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/index.iife.js +1 -91
- package/index.js +1 -91
- package/index.mjs +185 -102083
- package/package.json +1 -1
- package/types.d.ts +9 -1
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CowEventListeners, CowEventPayloadMap, CowEvents } from '../../events/src/index.ts';
|
|
2
2
|
import { SupportedChainId } from '@cowprotocol/cow-sdk';
|
|
3
3
|
|
|
4
|
-
export { SupportedChainId } from '@cowprotocol/cow-sdk';
|
|
4
|
+
export type { SupportedChainId } from '@cowprotocol/cow-sdk';
|
|
5
5
|
export type PerTradeTypeConfig<T> = Partial<Record<TradeType, T>>;
|
|
6
6
|
export type PerNetworkConfig<T> = Partial<Record<SupportedChainId, T>>;
|
|
7
7
|
export type FlexibleConfig<T> = T | PerNetworkConfig<T> | PerTradeTypeConfig<T> | PerTradeTypeConfig<PerNetworkConfig<T>> | PerNetworkConfig<PerTradeTypeConfig<T>>;
|
|
@@ -201,6 +201,14 @@ export interface CowSwapWidgetParams {
|
|
|
201
201
|
* Defaults to false.
|
|
202
202
|
*/
|
|
203
203
|
disablePostedOrderConfirmationModal?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Disables showing the progress bar after a SWAP order is placed.
|
|
206
|
+
* The SWAP progress bar offers a transparent view into CoW Protocol's unique solution finding mechanism.
|
|
207
|
+
* If you wish to not show it, set `disableProgressBar` to `true`.
|
|
208
|
+
*
|
|
209
|
+
* Defaults to false.
|
|
210
|
+
*/
|
|
211
|
+
disableProgressBar?: boolean;
|
|
204
212
|
/**
|
|
205
213
|
* Disables showing the toast messages.
|
|
206
214
|
* Some UI might want to disable it and subscribe to WidgetMethodsEmit.ON_TOAST_MESSAGE event to handle the toast messages itself.
|