@nexus-cross/dapp-ui 1.3.10-beta.6 → 1.3.10-beta.8
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.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2191,6 +2191,14 @@ interface RelayDepositProps extends RelayWalletProps {
|
|
|
2191
2191
|
/** Controlled recipient; when provided the recipient input is hidden and no wallet
|
|
2192
2192
|
* connection is required to fetch a deposit address. Defaults to `walletAddress`. */
|
|
2193
2193
|
recipient?: string;
|
|
2194
|
+
/** Require a valid connected wallet before the deposit flow can issue an
|
|
2195
|
+
* address, quote an amount, or start live order/recovery reads. When enabled,
|
|
2196
|
+
* the recipient is pinned to `walletAddress`; a controlled `recipient` cannot
|
|
2197
|
+
* redirect the connected user's deposit. Defaults to `true` when
|
|
2198
|
+
* `showRecipientInput` is explicitly `false`, otherwise `false` for the
|
|
2199
|
+
* low-level public-address integration. `CrossRelayDeposit` always enables
|
|
2200
|
+
* this guard. */
|
|
2201
|
+
requireWalletConnection?: boolean;
|
|
2194
2202
|
/** Hide the editable recipient input even when `recipient` is NOT controlled
|
|
2195
2203
|
* (default `true` = original behavior). Hosts that lock the recipient to the
|
|
2196
2204
|
* connected wallet set this `false` so a disconnected user sees a connect
|
|
@@ -2232,10 +2240,9 @@ interface RelayDepositProps extends RelayWalletProps {
|
|
|
2232
2240
|
onDeposited?: (txHash: string) => void;
|
|
2233
2241
|
onError?: (error: Error) => void;
|
|
2234
2242
|
/** Called by the `Connect Wallet` CTA under the locked card that stands in for the QR
|
|
2235
|
-
* while
|
|
2236
|
-
*
|
|
2237
|
-
*
|
|
2238
|
-
* wallet-free path to a deposit address. */
|
|
2243
|
+
* while the required connected wallet (or, in low-level public-address mode,
|
|
2244
|
+
* a usable recipient) is absent. Omitted — the locked card renders as text
|
|
2245
|
+
* only, with no button. */
|
|
2239
2246
|
onRequestConnect?: () => void;
|
|
2240
2247
|
/** @deprecated The Deposit footer entry was removed. Retained as a no-op
|
|
2241
2248
|
* compatibility prop so existing hosts do not need an immediate migration. */
|
|
@@ -2282,9 +2289,10 @@ interface RelayRecoveryProps extends RelayWalletProps {
|
|
|
2282
2289
|
*/
|
|
2283
2290
|
environment?: Environment;
|
|
2284
2291
|
/**
|
|
2285
|
-
*
|
|
2286
|
-
*
|
|
2287
|
-
*
|
|
2292
|
+
* Optional assertion of whose forwarder to check/recover. Recovery is always
|
|
2293
|
+
* pinned to the valid connected `walletAddress`; when this value is supplied
|
|
2294
|
+
* it must match that wallet. A missing/invalid wallet or mismatch renders a
|
|
2295
|
+
* short note and makes ZERO requests (no catalog, no recovery lookup).
|
|
2288
2296
|
*/
|
|
2289
2297
|
recipient?: string;
|
|
2290
2298
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2191,6 +2191,14 @@ interface RelayDepositProps extends RelayWalletProps {
|
|
|
2191
2191
|
/** Controlled recipient; when provided the recipient input is hidden and no wallet
|
|
2192
2192
|
* connection is required to fetch a deposit address. Defaults to `walletAddress`. */
|
|
2193
2193
|
recipient?: string;
|
|
2194
|
+
/** Require a valid connected wallet before the deposit flow can issue an
|
|
2195
|
+
* address, quote an amount, or start live order/recovery reads. When enabled,
|
|
2196
|
+
* the recipient is pinned to `walletAddress`; a controlled `recipient` cannot
|
|
2197
|
+
* redirect the connected user's deposit. Defaults to `true` when
|
|
2198
|
+
* `showRecipientInput` is explicitly `false`, otherwise `false` for the
|
|
2199
|
+
* low-level public-address integration. `CrossRelayDeposit` always enables
|
|
2200
|
+
* this guard. */
|
|
2201
|
+
requireWalletConnection?: boolean;
|
|
2194
2202
|
/** Hide the editable recipient input even when `recipient` is NOT controlled
|
|
2195
2203
|
* (default `true` = original behavior). Hosts that lock the recipient to the
|
|
2196
2204
|
* connected wallet set this `false` so a disconnected user sees a connect
|
|
@@ -2232,10 +2240,9 @@ interface RelayDepositProps extends RelayWalletProps {
|
|
|
2232
2240
|
onDeposited?: (txHash: string) => void;
|
|
2233
2241
|
onError?: (error: Error) => void;
|
|
2234
2242
|
/** Called by the `Connect Wallet` CTA under the locked card that stands in for the QR
|
|
2235
|
-
* while
|
|
2236
|
-
*
|
|
2237
|
-
*
|
|
2238
|
-
* wallet-free path to a deposit address. */
|
|
2243
|
+
* while the required connected wallet (or, in low-level public-address mode,
|
|
2244
|
+
* a usable recipient) is absent. Omitted — the locked card renders as text
|
|
2245
|
+
* only, with no button. */
|
|
2239
2246
|
onRequestConnect?: () => void;
|
|
2240
2247
|
/** @deprecated The Deposit footer entry was removed. Retained as a no-op
|
|
2241
2248
|
* compatibility prop so existing hosts do not need an immediate migration. */
|
|
@@ -2282,9 +2289,10 @@ interface RelayRecoveryProps extends RelayWalletProps {
|
|
|
2282
2289
|
*/
|
|
2283
2290
|
environment?: Environment;
|
|
2284
2291
|
/**
|
|
2285
|
-
*
|
|
2286
|
-
*
|
|
2287
|
-
*
|
|
2292
|
+
* Optional assertion of whose forwarder to check/recover. Recovery is always
|
|
2293
|
+
* pinned to the valid connected `walletAddress`; when this value is supplied
|
|
2294
|
+
* it must match that wallet. A missing/invalid wallet or mismatch renders a
|
|
2295
|
+
* short note and makes ZERO requests (no catalog, no recovery lookup).
|
|
2288
2296
|
*/
|
|
2289
2297
|
recipient?: string;
|
|
2290
2298
|
/**
|