@unifold/ui-react 0.1.27 → 0.1.29
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.mts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +2452 -1300
- package/dist/index.mjs +2422 -1263
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AutoSwapResponse, Wallet, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork } from '@unifold/core';
|
|
2
|
+
import { AutoSwapResponse, ChainType, Wallet, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork } from '@unifold/core';
|
|
3
|
+
export { ChainType } from '@unifold/core';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -52,7 +53,7 @@ interface DepositModalProps {
|
|
|
52
53
|
modalTitle?: string;
|
|
53
54
|
destinationTokenSymbol?: string;
|
|
54
55
|
recipientAddress?: string;
|
|
55
|
-
destinationChainType?:
|
|
56
|
+
destinationChainType?: ChainType;
|
|
56
57
|
destinationChainId?: string;
|
|
57
58
|
destinationTokenAddress?: string;
|
|
58
59
|
hideDepositTracker?: boolean;
|
|
@@ -68,6 +69,8 @@ interface DepositModalProps {
|
|
|
68
69
|
depositConfirmationMode?: DepositConfirmationMode;
|
|
69
70
|
/** Enable browser wallet connection option. Defaults to false */
|
|
70
71
|
enableConnectWallet?: boolean;
|
|
72
|
+
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
73
|
+
enablePayWithExchange?: boolean;
|
|
71
74
|
onDepositSuccess?: (data: {
|
|
72
75
|
message: string;
|
|
73
76
|
transaction?: unknown;
|
|
@@ -80,7 +83,7 @@ interface DepositModalProps {
|
|
|
80
83
|
}) => void;
|
|
81
84
|
theme?: "light" | "dark" | "auto";
|
|
82
85
|
}
|
|
83
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, enablePayWithExchange, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
84
87
|
|
|
85
88
|
interface DepositHeaderProps {
|
|
86
89
|
title: string;
|
|
@@ -107,7 +110,7 @@ interface TransferCryptoSingleInputProps {
|
|
|
107
110
|
userId: string;
|
|
108
111
|
publishableKey: string;
|
|
109
112
|
recipientAddress?: string;
|
|
110
|
-
destinationChainType?:
|
|
113
|
+
destinationChainType?: ChainType;
|
|
111
114
|
destinationChainId?: string;
|
|
112
115
|
destinationTokenAddress?: string;
|
|
113
116
|
/** Controls when polling starts and whether a waiting UI is shown.
|
|
@@ -135,7 +138,7 @@ interface TransferCryptoDoubleInputProps {
|
|
|
135
138
|
userId: string;
|
|
136
139
|
publishableKey: string;
|
|
137
140
|
recipientAddress?: string;
|
|
138
|
-
destinationChainType?:
|
|
141
|
+
destinationChainType?: ChainType;
|
|
139
142
|
destinationChainId?: string;
|
|
140
143
|
destinationTokenAddress?: string;
|
|
141
144
|
/** Controls when polling starts and whether a waiting UI is shown.
|
|
@@ -168,7 +171,7 @@ interface BuyWithCardProps {
|
|
|
168
171
|
accentColor?: string;
|
|
169
172
|
destinationTokenSymbol?: string;
|
|
170
173
|
recipientAddress?: string;
|
|
171
|
-
destinationChainType?:
|
|
174
|
+
destinationChainType?: ChainType;
|
|
172
175
|
destinationChainId?: string;
|
|
173
176
|
destinationTokenAddress?: string;
|
|
174
177
|
onDepositSuccess?: (data: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AutoSwapResponse, Wallet, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork } from '@unifold/core';
|
|
2
|
+
import { AutoSwapResponse, ChainType, Wallet, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork } from '@unifold/core';
|
|
3
|
+
export { ChainType } from '@unifold/core';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -52,7 +53,7 @@ interface DepositModalProps {
|
|
|
52
53
|
modalTitle?: string;
|
|
53
54
|
destinationTokenSymbol?: string;
|
|
54
55
|
recipientAddress?: string;
|
|
55
|
-
destinationChainType?:
|
|
56
|
+
destinationChainType?: ChainType;
|
|
56
57
|
destinationChainId?: string;
|
|
57
58
|
destinationTokenAddress?: string;
|
|
58
59
|
hideDepositTracker?: boolean;
|
|
@@ -68,6 +69,8 @@ interface DepositModalProps {
|
|
|
68
69
|
depositConfirmationMode?: DepositConfirmationMode;
|
|
69
70
|
/** Enable browser wallet connection option. Defaults to false */
|
|
70
71
|
enableConnectWallet?: boolean;
|
|
72
|
+
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
73
|
+
enablePayWithExchange?: boolean;
|
|
71
74
|
onDepositSuccess?: (data: {
|
|
72
75
|
message: string;
|
|
73
76
|
transaction?: unknown;
|
|
@@ -80,7 +83,7 @@ interface DepositModalProps {
|
|
|
80
83
|
}) => void;
|
|
81
84
|
theme?: "light" | "dark" | "auto";
|
|
82
85
|
}
|
|
83
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, enablePayWithExchange, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
84
87
|
|
|
85
88
|
interface DepositHeaderProps {
|
|
86
89
|
title: string;
|
|
@@ -107,7 +110,7 @@ interface TransferCryptoSingleInputProps {
|
|
|
107
110
|
userId: string;
|
|
108
111
|
publishableKey: string;
|
|
109
112
|
recipientAddress?: string;
|
|
110
|
-
destinationChainType?:
|
|
113
|
+
destinationChainType?: ChainType;
|
|
111
114
|
destinationChainId?: string;
|
|
112
115
|
destinationTokenAddress?: string;
|
|
113
116
|
/** Controls when polling starts and whether a waiting UI is shown.
|
|
@@ -135,7 +138,7 @@ interface TransferCryptoDoubleInputProps {
|
|
|
135
138
|
userId: string;
|
|
136
139
|
publishableKey: string;
|
|
137
140
|
recipientAddress?: string;
|
|
138
|
-
destinationChainType?:
|
|
141
|
+
destinationChainType?: ChainType;
|
|
139
142
|
destinationChainId?: string;
|
|
140
143
|
destinationTokenAddress?: string;
|
|
141
144
|
/** Controls when polling starts and whether a waiting UI is shown.
|
|
@@ -168,7 +171,7 @@ interface BuyWithCardProps {
|
|
|
168
171
|
accentColor?: string;
|
|
169
172
|
destinationTokenSymbol?: string;
|
|
170
173
|
recipientAddress?: string;
|
|
171
|
-
destinationChainType?:
|
|
174
|
+
destinationChainType?: ChainType;
|
|
172
175
|
destinationChainId?: string;
|
|
173
176
|
destinationTokenAddress?: string;
|
|
174
177
|
onDepositSuccess?: (data: {
|