@skip-go/widget 2.4.1-alpha.0 → 2.4.2

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.
@@ -3,7 +3,9 @@ import { ChainAffiliates, SkipClientOptions } from '@skip-go/client';
3
3
  import { DefaultRouteConfig } from '../hooks/use-swap-widget';
4
4
  import { RouteConfig } from '../hooks/use-route';
5
5
  import { MinimalWallet } from '../hooks/use-make-wallets';
6
+ import { Config } from 'wagmi';
6
7
  interface WalletProviderProps {
8
+ wagmiConfig?: Config;
7
9
  children: React.ReactNode;
8
10
  }
9
11
  export interface WidgetConfig {
@@ -11,6 +13,7 @@ export interface WidgetConfig {
11
13
  routeConfig?: RouteConfig;
12
14
  }
13
15
  export interface SwapWidgetProviderProps extends SkipAPIProviderProps {
16
+ wagmiConfig?: Config;
14
17
  children: React.ReactNode;
15
18
  }
16
19
  export interface SkipAPIProviderProps {
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
+ import { Config } from 'wagmi';
2
3
  interface EVMProviderProps {
3
4
  children: React.ReactNode;
5
+ wagmiConfig?: Config;
4
6
  }
5
7
  export declare const EVMProvider: React.FC<EVMProviderProps>;
6
8
  export {};
@@ -3,6 +3,7 @@ export declare function useTotalWallets(): number;
3
3
  type Props = ComponentProps<'div'> & {
4
4
  chainType: string;
5
5
  walletName: string;
6
+ walletChainType: 'evm' | 'cosmos' | 'svm';
6
7
  };
7
- export declare const WalletListItem: ({ children, chainType, walletName, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const WalletListItem: ({ children, chainType, walletName, walletChainType, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/widget",
3
3
  "description": "Swap widget",
4
- "version": "2.4.1-alpha.0",
4
+ "version": "2.4.2",
5
5
  "repository": "https://github.com/skip-mev/widget",
6
6
  "type": "module",
7
7
  "exports": {
@@ -1,7 +0,0 @@
1
- export declare const penumbraBech32ChainIDs: string[];
2
- export declare const getPenumbraCompatibleAddress: ({ chainID, address, }: {
3
- chainID?: string | undefined;
4
- address: {
5
- inner: Uint8Array;
6
- };
7
- }) => string;