@cowprotocol/widget-lib 0.10.1 → 0.11.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/package.json +1 -1
- package/types.d.ts +8 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -138,6 +138,10 @@ export interface CowSwapWidgetBanners {
|
|
|
138
138
|
*/
|
|
139
139
|
hideSafeWebAppBanner?: boolean;
|
|
140
140
|
}
|
|
141
|
+
export interface CowSwapWidgetContent {
|
|
142
|
+
feeLabel?: string;
|
|
143
|
+
feeTooltipMarkdown?: string;
|
|
144
|
+
}
|
|
141
145
|
export interface CowSwapWidgetParams {
|
|
142
146
|
/**
|
|
143
147
|
* The unique identifier of the widget consumer.
|
|
@@ -235,6 +239,10 @@ export interface CowSwapWidgetParams {
|
|
|
235
239
|
* In case when widget does not support some tokens, you can provide a list of tokens to be used in the widget
|
|
236
240
|
*/
|
|
237
241
|
customTokens?: TokenInfo[];
|
|
242
|
+
/**
|
|
243
|
+
* Customizable labels and content for the widget.
|
|
244
|
+
*/
|
|
245
|
+
content?: CowSwapWidgetContent;
|
|
238
246
|
}
|
|
239
247
|
export interface WidgetMethodsEmitPayloadMap {
|
|
240
248
|
[WidgetMethodsEmit.ACTIVATE]: void;
|