@unifold/connect-react 0.1.68-beta.1 → 0.1.68
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 +14 -9
- package/dist/index.d.ts +14 -9
- package/dist/index.js +2454 -1584
- package/dist/index.mjs +2163 -1293
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -110,14 +110,21 @@ interface DepositConfig {
|
|
|
110
110
|
/** Address that receives the deposited funds. */
|
|
111
111
|
recipientAddress: string;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
113
|
+
* The host platform's signed-in user. Currently used to pre-fill and pre-trust
|
|
114
|
+
* the user's email across onramp flows:
|
|
115
|
+
*
|
|
116
|
+
* - **Stripe Link / other onramp providers (Banxa, etc.):** `user.email` pre-fills
|
|
117
|
+
* the email screen and auto-submits, skipping manual entry.
|
|
118
|
+
* - **Apple Pay (headless Coinbase):** `user.email` is treated as a pre-trusted
|
|
119
|
+
* address — the flow skips both the localStorage email check and the email-OTP
|
|
120
|
+
* screen (it passes `email_already_verified: true` and uses this address
|
|
121
|
+
* directly). Phone OTP is still required (Coinbase mandates phone
|
|
122
|
+
* re-verification every 60 days).
|
|
119
123
|
*/
|
|
120
|
-
|
|
124
|
+
user?: {
|
|
125
|
+
/** User's email address. Pre-fills Stripe Link / onramp flows and acts as the pre-trusted email for Apple Pay (headless Coinbase). */
|
|
126
|
+
email?: string;
|
|
127
|
+
};
|
|
121
128
|
/**
|
|
122
129
|
* Array of contract calls to execute on the destination chain when delivering funds.
|
|
123
130
|
* Each entry specifies a target contract address, hex-encoded data, and optional value in wei (defaults to "0").
|
|
@@ -139,8 +146,6 @@ interface DepositConfig {
|
|
|
139
146
|
defaultSourceSymbol?: string;
|
|
140
147
|
/** How to confirm deposit: 'auto_ui' (default), 'auto_silent', or 'manual' */
|
|
141
148
|
depositConfirmationMode?: DepositConfirmationMode;
|
|
142
|
-
/** User's email address — used to pre-fill onramp provider flows (Stripe Link, Banxa, etc.) */
|
|
143
|
-
email?: string;
|
|
144
149
|
onSuccess?: (data: DepositResult) => void;
|
|
145
150
|
onError?: (error: DepositError) => void;
|
|
146
151
|
/** Called when the user dismisses the deposit dialog (X button, Escape key, or programmatic close) */
|
package/dist/index.d.ts
CHANGED
|
@@ -110,14 +110,21 @@ interface DepositConfig {
|
|
|
110
110
|
/** Address that receives the deposited funds. */
|
|
111
111
|
recipientAddress: string;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
113
|
+
* The host platform's signed-in user. Currently used to pre-fill and pre-trust
|
|
114
|
+
* the user's email across onramp flows:
|
|
115
|
+
*
|
|
116
|
+
* - **Stripe Link / other onramp providers (Banxa, etc.):** `user.email` pre-fills
|
|
117
|
+
* the email screen and auto-submits, skipping manual entry.
|
|
118
|
+
* - **Apple Pay (headless Coinbase):** `user.email` is treated as a pre-trusted
|
|
119
|
+
* address — the flow skips both the localStorage email check and the email-OTP
|
|
120
|
+
* screen (it passes `email_already_verified: true` and uses this address
|
|
121
|
+
* directly). Phone OTP is still required (Coinbase mandates phone
|
|
122
|
+
* re-verification every 60 days).
|
|
119
123
|
*/
|
|
120
|
-
|
|
124
|
+
user?: {
|
|
125
|
+
/** User's email address. Pre-fills Stripe Link / onramp flows and acts as the pre-trusted email for Apple Pay (headless Coinbase). */
|
|
126
|
+
email?: string;
|
|
127
|
+
};
|
|
121
128
|
/**
|
|
122
129
|
* Array of contract calls to execute on the destination chain when delivering funds.
|
|
123
130
|
* Each entry specifies a target contract address, hex-encoded data, and optional value in wei (defaults to "0").
|
|
@@ -139,8 +146,6 @@ interface DepositConfig {
|
|
|
139
146
|
defaultSourceSymbol?: string;
|
|
140
147
|
/** How to confirm deposit: 'auto_ui' (default), 'auto_silent', or 'manual' */
|
|
141
148
|
depositConfirmationMode?: DepositConfirmationMode;
|
|
142
|
-
/** User's email address — used to pre-fill onramp provider flows (Stripe Link, Banxa, etc.) */
|
|
143
|
-
email?: string;
|
|
144
149
|
onSuccess?: (data: DepositResult) => void;
|
|
145
150
|
onError?: (error: DepositError) => void;
|
|
146
151
|
/** Called when the user dismisses the deposit dialog (X button, Escape key, or programmatic close) */
|