@unifold/connect-react-native 0.1.10 → 0.1.12

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/index.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { ThemeMode } from '@unifold/ui-react-native';
4
- export { AllowedCountryResult, ThemeMode, setDevApiUrl, useAllowedCountry } from '@unifold/ui-react-native';
5
-
6
- interface UnifoldConnectProviderConfig {
7
- publishableKey: string;
8
- config?: {
9
- modalTitle?: string;
10
- hideDepositTracker?: boolean;
11
- /** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
12
- appearance?: ThemeMode | "auto";
13
- };
14
- }
15
- interface DepositResult {
16
- message: string;
17
- transaction?: unknown;
18
- executionId?: string;
19
- }
20
- interface DepositError {
21
- message: string;
22
- error?: unknown;
23
- code?: string;
24
- }
25
- interface DepositConfig {
26
- externalUserId: string;
27
- destinationChainType?: "ethereum" | "solana" | "bitcoin";
28
- destinationChainId?: string;
29
- destinationTokenAddress?: string;
30
- destinationTokenSymbol?: string;
31
- recipientAddress?: string;
32
- onSuccess?: (data: DepositResult) => void;
33
- onError?: (error: DepositError) => void;
34
- }
35
- interface ConnectContextValue {
36
- publishableKey: string;
37
- beginDeposit: (config: DepositConfig) => Promise<DepositResult>;
38
- closeDeposit: () => void;
39
- }
40
- interface UnifoldProviderProps {
41
- children: ReactNode;
42
- publishableKey: string;
43
- config?: UnifoldConnectProviderConfig["config"];
44
- }
45
- declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
46
- declare function useUnifold(): ConnectContextValue;
47
-
48
- export { type DepositConfig, type DepositError, type DepositResult, type UnifoldConnectProviderConfig, UnifoldProvider, type UnifoldProviderProps, useUnifold };