@spicenet-io/spiceflow-ui 1.16.4 → 1.17.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/dist/components/AccountDisplay/AccountActions.d.ts +11 -0
- package/dist/components/AccountDisplay/AccountCustomSection.d.ts +8 -0
- package/dist/components/AccountDisplay/AccountDisplay.d.ts +3 -0
- package/dist/components/AccountDisplay/AccountHeader.d.ts +12 -0
- package/dist/components/AccountDisplay/AccountIdleBalances.d.ts +9 -0
- package/dist/components/AccountDisplay/AccountPanel.d.ts +22 -0
- package/dist/components/AccountDisplay/AccountPendingDeposits.d.ts +9 -0
- package/dist/components/AccountDisplay/index.d.ts +2 -0
- package/dist/hooks/useAssets/index.d.ts +2 -2
- package/dist/hooks/useGaslessExecution/index.d.ts +2 -1
- package/dist/index.cjs.js +35 -24
- package/dist/index.d.ts +2 -0
- package/dist/index.js +35 -24
- package/dist/types/account.d.ts +52 -0
- package/dist/types/lock.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AccountActionsProps {
|
|
3
|
+
onDepositClick?: () => void;
|
|
4
|
+
onWithdrawClick?: () => void;
|
|
5
|
+
depositDisabled?: boolean;
|
|
6
|
+
withdrawDisabled?: boolean;
|
|
7
|
+
primaryColor?: string;
|
|
8
|
+
dark?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const AccountActions: React.FC<AccountActionsProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AccountHeaderProps {
|
|
3
|
+
appName: string;
|
|
4
|
+
status: 'active' | 'inactive';
|
|
5
|
+
statusLabel?: string;
|
|
6
|
+
totalUsdValue: number;
|
|
7
|
+
breakdownSubtitle: string;
|
|
8
|
+
address?: string;
|
|
9
|
+
dark?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const AccountHeader: React.FC<AccountHeaderProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpiceAsset } from '../../types/account';
|
|
3
|
+
interface AccountIdleBalancesProps {
|
|
4
|
+
spiceAssets: SpiceAsset[];
|
|
5
|
+
loading: boolean;
|
|
6
|
+
dark?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const AccountIdleBalances: React.FC<AccountIdleBalancesProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpiceAsset, CustomSection } from '../../types/account';
|
|
3
|
+
import { VerifiedPendingDeposit } from '../../hooks/usePendingDeposit';
|
|
4
|
+
interface AccountPanelProps {
|
|
5
|
+
appName: string;
|
|
6
|
+
status: 'active' | 'inactive';
|
|
7
|
+
statusLabel?: string;
|
|
8
|
+
totalUsdValue: number;
|
|
9
|
+
breakdownSubtitle: string;
|
|
10
|
+
address?: string;
|
|
11
|
+
spiceAssets: SpiceAsset[];
|
|
12
|
+
spiceAssetsLoading: boolean;
|
|
13
|
+
pendingDeposits: VerifiedPendingDeposit[];
|
|
14
|
+
customSections: CustomSection[];
|
|
15
|
+
onDepositClick?: () => void;
|
|
16
|
+
onWithdrawClick?: () => void;
|
|
17
|
+
onCompleteDeposit?: (deposit: VerifiedPendingDeposit) => void;
|
|
18
|
+
primaryColor?: string;
|
|
19
|
+
dark?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const AccountPanel: React.FC<AccountPanelProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VerifiedPendingDeposit } from '../../hooks/usePendingDeposit';
|
|
3
|
+
interface AccountPendingDepositsProps {
|
|
4
|
+
pendingDeposits: VerifiedPendingDeposit[];
|
|
5
|
+
onCompleteDeposit?: (deposit: VerifiedPendingDeposit) => void;
|
|
6
|
+
dark?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const AccountPendingDeposits: React.FC<AccountPendingDepositsProps>;
|
|
9
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Address } from "viem";
|
|
2
2
|
import { Asset, MultiChainBalances } from "../../types/assets";
|
|
3
|
-
export declare const fetchBalances: (walletAddress: Address) => Promise<MultiChainBalances>;
|
|
3
|
+
export declare const fetchBalances: (walletAddress: Address, supportedChains?: number[]) => Promise<MultiChainBalances>;
|
|
4
4
|
export interface UseAssetsConfig {
|
|
5
5
|
address?: Address;
|
|
6
6
|
supportedChains: number[];
|
|
7
|
-
fetchBalances: (address: Address) => Promise<MultiChainBalances>;
|
|
7
|
+
fetchBalances: (address: Address, supportedChains?: number[]) => Promise<MultiChainBalances>;
|
|
8
8
|
refreshInterval?: number;
|
|
9
9
|
}
|
|
10
10
|
export interface UseAssetsReturn {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address } from "viem";
|
|
2
|
-
import { ChainBatch } from "../../types/authorization";
|
|
2
|
+
import { ChainBatch, Call } from "../../types/authorization";
|
|
3
|
+
export type { Call, ChainBatch };
|
|
3
4
|
export type GaslessStep = "idle" | "building" | "signing-delegation" | "signing-intent" | "submitting" | "executing" | "success" | "error";
|
|
4
5
|
export interface GaslessProgress {
|
|
5
6
|
step: GaslessStep;
|