@skip-go/widget 3.0.17 → 3.0.18

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,8 +1,10 @@
1
1
  import { ChainAffiliates } from '@skip-go/client';
2
- import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+ import { JSX as JSX_2 } from 'react';
3
3
  import { ReactElement } from 'react';
4
4
  import { RouteConfig } from '@skip-go/client';
5
+ import { SignClientTypes } from '@walletconnect/types';
5
6
  import { SkipClientOptions } from '@skip-go/client';
7
+ import { WalletConnectModalConfig } from '@walletconnect/modal';
6
8
 
7
9
  declare type ChainFilter = {
8
10
  source?: Record<string, string[] | undefined>;
@@ -138,6 +140,11 @@ declare type Theme = {
138
140
  };
139
141
  };
140
142
 
143
+ declare type WalletConnect = {
144
+ options: Pick<SignClientTypes.Options, "projectId" | "name"> | null;
145
+ walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
146
+ };
147
+
141
148
  export declare const Widget: (props: WidgetProps) => JSX_2.Element;
142
149
 
143
150
  export declare type WidgetProps = {
@@ -159,6 +166,7 @@ export declare type WidgetProps = {
159
166
  };
160
167
  routeConfig?: WidgetRouteConfig;
161
168
  filter?: ChainFilter;
169
+ walletConnect?: WalletConnect;
162
170
  } & Pick<NewSkipClientOptions, "apiUrl" | "chainIdsToAffiliates" | "endpointOptions">;
163
171
 
164
172
  declare type WidgetRouteConfig = Omit<RouteConfig, "swapVenues" | "swapVenue"> & {