@skip-go/widget 0.0.1-beta.1 → 0.0.1-beta.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.
- package/build/chains/types.d.ts +2 -2
- package/build/hooks/use-assets.d.ts +2 -2
- package/build/hooks/use-auto-set-address.d.ts +4 -4
- package/build/hooks/use-balances-by-chain.d.ts +1 -1
- package/build/hooks/use-bridges.d.ts +2 -2
- package/build/hooks/use-broadcasted-txs.d.ts +2 -2
- package/build/hooks/use-chains.d.ts +2 -2
- package/build/hooks/use-route.d.ts +1 -1
- package/build/hooks/use-skip-client.d.ts +3 -3
- package/build/hooks/use-swap-widget.d.ts +4 -4
- package/build/hooks/use-usd-value.d.ts +2 -2
- package/build/index.es.js +19 -11
- package/build/index.es.js.map +1 -1
- package/build/lib/wagmi.d.ts +3136 -3136
- package/build/provider/skip-provider.d.ts +2 -2
- package/build/provider/wallet/solana.d.ts +1 -0
- package/build/store/disclosures.d.ts +1 -1
- package/build/store/settings.d.ts +1 -1
- package/build/store/swap-widget.d.ts +2 -2
- package/build/store/track-wallet.d.ts +1 -1
- package/build/store/tx-history.d.ts +1 -1
- package/build/ui/Button/HistoryButton.d.ts +1 -1
- package/build/ui/Button/SettingsButton.d.ts +1 -1
- package/build/ui/ChainSelect/ChainSelectTrigger.d.ts +1 -0
- package/build/ui/HistoryDialog/DescriptionList.d.ts +4 -4
- package/build/ui/PreviewRoute/AlertCollapse.d.ts +5 -5
- package/build/ui/PreviewRoute/ChainStep.d.ts +2 -2
- package/build/ui/PreviewRoute/index.d.ts +9 -2
- package/build/ui/PreviewRoute/make-step-state.d.ts +1 -1
- package/build/ui/UsdValue.d.ts +1 -1
- package/build/ui/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -2,8 +2,8 @@ import { SkipRouter, SkipRouterOptions } from '@skip-router/core';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export declare const SkipContext: import("react").Context<{
|
|
4
4
|
skipClient: SkipRouter;
|
|
5
|
-
apiURL?: string;
|
|
6
|
-
endpointOptions?: SkipRouterOptions[
|
|
5
|
+
apiURL?: string | undefined;
|
|
6
|
+
endpointOptions?: SkipRouterOptions['endpointOptions'];
|
|
7
7
|
} | undefined>;
|
|
8
8
|
export declare function SkipProvider({ children, apiURL, endpointOptions, }: {
|
|
9
9
|
children: ReactNode;
|
|
@@ -34,7 +34,7 @@ export declare function useDisclosureKey(key: DisclosureKey): readonly [boolean,
|
|
|
34
34
|
set: (value: boolean) => void;
|
|
35
35
|
}];
|
|
36
36
|
export declare function useJsonDisclosure(): readonly [{
|
|
37
|
-
title?: string;
|
|
37
|
+
title?: string | undefined;
|
|
38
38
|
data: unknown;
|
|
39
39
|
} | undefined, {
|
|
40
40
|
open: (json: NonNullable<DisclosureStore["json"]>) => void;
|
|
@@ -7,7 +7,7 @@ export declare const useSettingsStore: import("zustand").UseBoundStore<Omit<impo
|
|
|
7
7
|
persist: {
|
|
8
8
|
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<SettingsStore, SettingsStore>>) => void;
|
|
9
9
|
clearStorage: () => void;
|
|
10
|
-
rehydrate: () =>
|
|
10
|
+
rehydrate: () => void | Promise<void>;
|
|
11
11
|
hasHydrated: () => boolean;
|
|
12
12
|
onHydrate: (fn: (state: SettingsStore) => void) => () => void;
|
|
13
13
|
onFinishHydration: (fn: (state: SettingsStore) => void) => () => void;
|
|
@@ -15,14 +15,14 @@ export declare const useSwapWidgetUIStore: import("zustand").UseBoundStore<Omit<
|
|
|
15
15
|
(listener: (selectedState: SwapWidgetStore, previousSelectedState: SwapWidgetStore) => void): () => void;
|
|
16
16
|
<U>(selector: (state: SwapWidgetStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
17
17
|
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
18
|
-
fireImmediately?: boolean;
|
|
18
|
+
fireImmediately?: boolean | undefined;
|
|
19
19
|
} | undefined): () => void;
|
|
20
20
|
};
|
|
21
21
|
}, "persist"> & {
|
|
22
22
|
persist: {
|
|
23
23
|
setOptions: (options: Partial<PersistOptions<SwapWidgetStore, Pick<SwapWidgetStore, "defaultRoute">>>) => void;
|
|
24
24
|
clearStorage: () => void;
|
|
25
|
-
rehydrate: () =>
|
|
25
|
+
rehydrate: () => void | Promise<void>;
|
|
26
26
|
hasHydrated: () => boolean;
|
|
27
27
|
onHydrate: (fn: (state: SwapWidgetStore) => void) => () => void;
|
|
28
28
|
onFinishHydration: (fn: (state: SwapWidgetStore) => void) => () => void;
|
|
@@ -16,7 +16,7 @@ export declare const trackWallet: {
|
|
|
16
16
|
(listener: (selectedState: TrackWalletStore, previousSelectedState: TrackWalletStore) => void): () => void;
|
|
17
17
|
<U>(selector: (state: TrackWalletStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
18
18
|
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
19
|
-
fireImmediately?: boolean;
|
|
19
|
+
fireImmediately?: boolean | undefined;
|
|
20
20
|
} | undefined): () => void;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -17,7 +17,7 @@ export declare const useTxHistory: import("zustand").UseBoundStore<Omit<import("
|
|
|
17
17
|
persist: {
|
|
18
18
|
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<TxHistoryState, TxHistoryState>>) => void;
|
|
19
19
|
clearStorage: () => void;
|
|
20
|
-
rehydrate: () =>
|
|
20
|
+
rehydrate: () => void | Promise<void>;
|
|
21
21
|
hasHydrated: () => boolean;
|
|
22
22
|
onHydrate: (fn: (state: TxHistoryState) => void) => () => void;
|
|
23
23
|
onFinishHydration: (fn: (state: TxHistoryState) => void) => () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export declare const HistoryButton: ({ className, ...props }: ComponentProps<
|
|
2
|
+
export declare const HistoryButton: ({ className, ...props }: ComponentProps<'button'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export declare const SettingsButton: ({ className, ...props }: ComponentProps<
|
|
2
|
+
export declare const SettingsButton: ({ className, ...props }: ComponentProps<'button'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export declare const Root: ({ className, ...props }: ComponentProps<
|
|
3
|
-
export declare const Row: ({ className, ...props }: ComponentProps<
|
|
4
|
-
export declare const Dt: ({ className, ...props }: ComponentProps<
|
|
5
|
-
export declare const Dd: ({ className, ...props }: ComponentProps<
|
|
2
|
+
export declare const Root: ({ className, ...props }: ComponentProps<'dl'>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Row: ({ className, ...props }: ComponentProps<'div'>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Dt: ({ className, ...props }: ComponentProps<'dt'>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const Dd: ({ className, ...props }: ComponentProps<'dd'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,10 +4,10 @@ interface ContextType {
|
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
toggle: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const Root: ({ className, type, initialOpen, ...props }:
|
|
8
|
-
type?:
|
|
9
|
-
initialOpen?: boolean;
|
|
7
|
+
export declare const Root: ({ className, type, initialOpen, ...props }: import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
type?: "error" | "warning" | "info" | "success" | undefined;
|
|
9
|
+
initialOpen?: boolean | undefined;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const Trigger: ({ className, children, onClick, ...props }: ComponentProps<
|
|
12
|
-
export declare const Content: ({ className, ...props }: ComponentProps<
|
|
11
|
+
export declare const Trigger: ({ className, children, onClick, ...props }: ComponentProps<'button'>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Content: ({ className, ...props }: ComponentProps<'div'>) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -6,8 +6,8 @@ import { BroadcastedTx, ChainAddresses, SetChainAddressesParam } from './types';
|
|
|
6
6
|
export declare const ChainStep: ({ chainID, index, transferAction, swapAction, route, chainIDsWithAction, isOpen, broadcastedTxs, mutationStatus, setShowLedgerWarning, isSetAddressDialogOpen, setIsAddressDialogOpen, isExpanded, setIsExpanded, chainAddresses, setChainAddresses, }: {
|
|
7
7
|
chainID: string;
|
|
8
8
|
index: number;
|
|
9
|
-
transferAction?: TransferAction;
|
|
10
|
-
swapAction?: SwapAction;
|
|
9
|
+
transferAction?: TransferAction | undefined;
|
|
10
|
+
swapAction?: SwapAction | undefined;
|
|
11
11
|
route: RouteResponse;
|
|
12
12
|
chainIDsWithAction: ChainIDWithAction[];
|
|
13
13
|
isOpen: boolean;
|
|
@@ -13,6 +13,13 @@ export interface Wallet {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const PreviewRoute: ({ route, disclosure, isAmountError, }: {
|
|
15
15
|
route: RouteResponse;
|
|
16
|
-
disclosure:
|
|
17
|
-
|
|
16
|
+
disclosure: readonly [boolean, {
|
|
17
|
+
open: ({ closeAll }?: {
|
|
18
|
+
closeAll?: boolean | undefined;
|
|
19
|
+
}) => void;
|
|
20
|
+
close: () => void;
|
|
21
|
+
toggle: () => void;
|
|
22
|
+
set: (value: boolean) => void;
|
|
23
|
+
}];
|
|
24
|
+
isAmountError?: string | boolean | undefined;
|
|
18
25
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ export declare const makeStepState: (props: Props) => {
|
|
|
8
8
|
isSuccess: boolean;
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
isError: boolean;
|
|
11
|
-
state: import("@skip-router/core").TransferState | undefined;
|
|
11
|
+
state: import("@skip-router/core/dist/types").TransferState | undefined;
|
|
12
12
|
explorerLink: {
|
|
13
13
|
link: string;
|
|
14
14
|
shorthand: string;
|
package/build/ui/UsdValue.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const UsdDiff: {
|
|
|
21
21
|
Provider: ({ children }: {
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
Value: (props: Omit<UsdDiffValueProps,
|
|
24
|
+
Value: (props: Omit<UsdDiffValueProps, 'src' | 'dest'>) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
};
|
|
26
26
|
export declare const useUsdDiffReset: () => () => void;
|
|
27
27
|
export {};
|
package/build/ui/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.2",
|
|
5
5
|
"repository": "https://github.com/skip-mev/widget",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tailwindcss": "^3.4.3",
|
|
45
45
|
"tailwindcss-animate": "^1.0.7",
|
|
46
46
|
"typed-query-selector": "^2.11.2",
|
|
47
|
-
"typescript": "
|
|
47
|
+
"typescript": "5.2.x"
|
|
48
48
|
},
|
|
49
49
|
"resolutions": {
|
|
50
50
|
"@cosmos-kit/cosmostation-extension": "^2.7.10",
|