@spicenet-io/spiceflow-ui 1.9.1 → 1.9.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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import React, { useEffect, useState, useCallback } from 'react';
4
- import { c as createTheme, B as Button } from './Button-aWXByNBC.js';
4
+ import { c as createTheme, B as Button } from './Button-CWjGZdAM.js';
5
5
  import { useDynamicContext, useConnectWithOtp } from '@dynamic-labs/sdk-react-core';
6
6
 
7
7
  const Input = ({
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { useState, useEffect } from 'react';
4
- import { B as Button, c as createTheme } from './Button-aWXByNBC.js';
4
+ import { B as Button, c as createTheme } from './Button-CWjGZdAM.js';
5
5
  import { usePrivy, useLogin, useLogout } from '@privy-io/react-auth';
6
6
 
7
7
  const PrivyLogin = ({
@@ -1,5 +1,25 @@
1
1
  import React from "react";
2
- interface CrossChainDepositModalProps {
2
+ export interface Asset {
3
+ address: string;
4
+ symbol: string;
5
+ name: string;
6
+ decimals: number;
7
+ isNative: boolean;
8
+ chainId: number;
9
+ balance?: bigint;
10
+ balanceFormatted?: number;
11
+ }
12
+ export interface SelectedAssetWithAmount {
13
+ asset: Asset;
14
+ amount: string;
15
+ }
16
+ export interface DepositResult {
17
+ asset: Asset;
18
+ txHash: string;
19
+ success: boolean;
20
+ error?: string;
21
+ }
22
+ export interface CrossChainDepositModalProps {
3
23
  isOpen: boolean;
4
24
  onClose: () => void;
5
25
  onComplete: () => void;
@@ -16,4 +36,3 @@ interface CrossChainDepositModalProps {
16
36
  }>;
17
37
  }
18
38
  export declare const CrossChainDepositModal: React.FC<CrossChainDepositModalProps>;
19
- export {};
@@ -2,3 +2,5 @@ export { DepositWidget } from "./DepositWidget";
2
2
  export { DepositWidgetModal } from "./DepositWidgetModal";
3
3
  export type { DepositWidgetProps } from "../../types/deposit";
4
4
  export type { DepositWidgetModalProps } from "./DepositWidgetModal";
5
+ export { CrossChainDepositModal } from "./CrossChainDepositModal";
6
+ export type { CrossChainDepositModalProps } from "./CrossChainDepositModal";