@skip-go/widget 3.0.4 → 3.0.6

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/build/index.d.ts CHANGED
@@ -1,11 +1,8 @@
1
- import { BridgeType } from '@skip-go/client';
2
1
  import { ChainAffiliates } from '@skip-go/client';
3
- import { ExperimentalFeature } from '@skip-go/client';
4
2
  import { JSX as JSX_2 } from 'react/jsx-runtime';
5
3
  import { ReactElement } from 'react';
4
+ import { RouteConfig } from '@skip-go/client';
6
5
  import { SkipClientOptions } from '@skip-go/client';
7
- import { SmartSwapOptions } from '@skip-go/client';
8
- import { SwapVenueRequest } from '@skip-go/client';
9
6
 
10
7
  declare type ChainFilter = {
11
8
  source?: Record<string, string[] | undefined>;
@@ -101,15 +98,6 @@ declare type NewSwapVenueRequest = {
101
98
 
102
99
  declare type PartialTheme = Partial<Theme> | undefined;
103
100
 
104
- declare type RouteConfig = {
105
- experimentalFeatures?: ExperimentalFeature[];
106
- allowMultiTx?: boolean;
107
- allowUnsafe?: boolean;
108
- bridges?: BridgeType[];
109
- swapVenues?: SwapVenueRequest[];
110
- smartSwapOptions?: SmartSwapOptions;
111
- };
112
-
113
101
  declare type ShowSwapWidget = {
114
102
  button?: ReactElement;
115
103
  } & WidgetProps;
@@ -169,12 +157,15 @@ export declare type WidgetProps = {
169
157
  */
170
158
  customGasAmount?: number;
171
159
  };
172
- routeConfig?: Omit<RouteConfig, "swapVenues"> & {
173
- swapVenues?: NewSwapVenueRequest[];
174
- };
160
+ routeConfig?: WidgetRouteConfig;
175
161
  filter?: ChainFilter;
176
162
  } & NewSkipClientOptions;
177
163
 
164
+ declare type WidgetRouteConfig = Omit<RouteConfig, "swapVenues" | "swapVenue"> & {
165
+ swapVenues?: NewSwapVenueRequest[];
166
+ swapVenue?: NewSwapVenueRequest;
167
+ };
168
+
178
169
  export { }
179
170
 
180
171