@spicenet-io/spiceflow-ui 1.9.41 → 1.10.1
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/DepositWidget/index.d.ts +0 -2
- package/dist/components/{DepositWidget/DepositStatusPanel.d.ts → StatusDisplay/StatusPanel.d.ts} +7 -6
- package/dist/components/WithdrawWidget/WithdrawWidget.d.ts +3 -0
- package/dist/components/WithdrawWidget/WithdrawWidgetModal.d.ts +10 -0
- package/dist/components/WithdrawWidget/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/useAssetInput/index.d.ts +5 -0
- package/dist/index.cjs.js +16 -16
- package/dist/index.d.ts +5 -2
- package/dist/index.js +16 -16
- package/dist/types/deposit.d.ts +3 -3
- package/dist/types/withdraw.d.ts +33 -1
- package/package.json +1 -1
- package/dist/hooks/useDepositInput/index.d.ts +0 -5
|
@@ -6,5 +6,3 @@ export { CrossChainDepositModal } from "./CrossChainDepositModal";
|
|
|
6
6
|
export type { CrossChainDepositModalProps } from "./CrossChainDepositModal";
|
|
7
7
|
export { AssetInput } from "./AssetInput";
|
|
8
8
|
export type { AssetInputProps, AssetInputAsset } from "./AssetInput";
|
|
9
|
-
export { DepositStatusPanel } from "./DepositStatusPanel";
|
|
10
|
-
export type { DepositStatusPanelProps, DepositResultItem, } from "./DepositStatusPanel";
|
package/dist/components/{DepositWidget/DepositStatusPanel.d.ts → StatusDisplay/StatusPanel.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Theme, CustomStyles } from "../../types/theme";
|
|
3
3
|
import { IntentStatus } from "../../types/status";
|
|
4
|
-
export interface
|
|
4
|
+
export interface StatusResultItem {
|
|
5
5
|
asset: {
|
|
6
6
|
symbol: string;
|
|
7
7
|
address: string;
|
|
@@ -11,20 +11,21 @@ export interface DepositResultItem {
|
|
|
11
11
|
error?: string;
|
|
12
12
|
amount?: string;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface StatusPanelProps {
|
|
15
15
|
isOpen?: boolean;
|
|
16
16
|
onClose: () => void;
|
|
17
17
|
onComplete?: () => void;
|
|
18
|
-
|
|
18
|
+
type: "deposit" | "withdraw";
|
|
19
|
+
results?: StatusResultItem[];
|
|
19
20
|
chainName?: string;
|
|
20
21
|
explorerUrl?: string;
|
|
21
22
|
theme?: Theme;
|
|
22
23
|
styles?: CustomStyles;
|
|
23
24
|
intentStatus?: IntentStatus | null;
|
|
24
25
|
onRetry?: () => void;
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
onNewTx?: () => void;
|
|
27
|
+
onRetryTx?: () => void;
|
|
27
28
|
asOverlay?: boolean;
|
|
28
29
|
isProcessing?: boolean;
|
|
29
30
|
}
|
|
30
|
-
export declare const
|
|
31
|
+
export declare const StatusPanel: React.FC<StatusPanelProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WithdrawWidgetProps } from "../../types/withdraw";
|
|
3
|
+
export interface WithdrawWidgetModalProps extends WithdrawWidgetProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
maxWidth?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const WithdrawWidgetModal: React.FC<WithdrawWidgetModalProps>;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export { useFromInput } from "./useFromInput";
|
|
|
6
6
|
export type { UseFromInputReturn } from "./useFromInput";
|
|
7
7
|
export { useToInputUpdate } from "./useToInputUpdate";
|
|
8
8
|
export type { UseToInputUpdateReturn } from "./useToInputUpdate";
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
9
|
+
export { useAssetInput } from "./useAssetInput";
|
|
10
|
+
export type { UseAssetInputReturn } from "./useAssetInput";
|
|
11
11
|
export { useWallet } from "./useWallet";
|
|
12
12
|
export type { UseWalletReturn, WalletState, WalletActions } from "./useWallet";
|
|
13
13
|
export { useEmbeddedWalletAddress } from "./useEmbeddedWalletAddress";
|