@unifold/connect-react 0.1.61 → 0.1.62
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/README.md +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +372 -359
- package/dist/index.mjs +530 -517
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ Launches the deposit modal with the specified configuration. **Returns a Promise
|
|
|
138
138
|
| `defaultSourceSymbol` | string | - | Source token symbol (e.g. `"USDC"`). Paired with chain type + chain ID. |
|
|
139
139
|
| `onSuccess` | function | - | Success callback (fired immediately) |
|
|
140
140
|
| `onError` | function | - | Error callback (fired immediately) |
|
|
141
|
-
| `initialScreen` | `'main' \| 'transfer' \| 'card' \| 'tracker'` | - | `main` (default) = deposit menu. `transfer` / `card` use the **same geo/validation gates** as the menu. `tracker` opens the list **without** those gates. If not `main`, the header **back** is hidden (standalone); from `main`, back returns to the menu.
|
|
141
|
+
| `initialScreen` | `'main' \| 'transfer' \| 'card' \| 'cashapp' \| 'tracker' \| 'pay_with_exchange' \| 'exchange_connect' \| 'wallet_connect'` | - | `main` (default) = deposit menu. `transfer` / `card` use the **same geo/validation gates** as the menu. `tracker` opens the list **without** those gates. `cashapp`, `pay_with_exchange`, `exchange_connect`, `wallet_connect` open their respective flows and **fall back to `main`** when the matching feature flag (`enableCashApp`, `enablePayWithExchange`, `enableConnectExchange`, `enableConnectWallet`) is disabled. If not `main`, the header **back** is hidden at the flow root (standalone); from `main`, back returns to the menu. Inner steps (card quotes/onramp, tracker detail, exchange pending, cashapp payment) still show back. |
|
|
142
142
|
|
|
143
143
|
**Returns:** `Promise<DepositResult>`
|
|
144
144
|
|
package/dist/index.d.mts
CHANGED
|
@@ -113,10 +113,14 @@ interface DepositConfig {
|
|
|
113
113
|
/** Called when deposit lifecycle events occur. Use {@link DepositEventType} to narrow the event type. See {@link DepositEvent} for the full union. */
|
|
114
114
|
onEvent?: (event: DepositEvent) => void;
|
|
115
115
|
/**
|
|
116
|
-
* Which screen opens first:
|
|
116
|
+
* Which screen opens first. One of: `main` (menu, default), `transfer`, `card`, `cashapp`,
|
|
117
|
+
* `tracker`, `pay_with_exchange` (Pay with Exchange), `exchange_connect` (Connect Exchange), or
|
|
118
|
+
* `wallet_connect` (Connect Wallet).
|
|
117
119
|
* `transfer` and `card` run the same geo / recipient checks as the menu before the flow. `tracker` does not
|
|
118
|
-
* (deposit history is always reachable).
|
|
119
|
-
*
|
|
120
|
+
* (deposit history is always reachable). A screen falls back to `main` when its feature flag is disabled
|
|
121
|
+
* (e.g. `cashapp` without `enableCashApp`, `exchange_connect` without `enableConnectExchange`).
|
|
122
|
+
* If not `main`, the header back control is hidden at the flow's root (nothing to return to); inner steps
|
|
123
|
+
* (card quotes/onramp, tracker detail, exchange pending, cashapp payment, etc.) still show back for inner navigation.
|
|
120
124
|
*/
|
|
121
125
|
initialScreen?: DepositModalInitialScreen;
|
|
122
126
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -113,10 +113,14 @@ interface DepositConfig {
|
|
|
113
113
|
/** Called when deposit lifecycle events occur. Use {@link DepositEventType} to narrow the event type. See {@link DepositEvent} for the full union. */
|
|
114
114
|
onEvent?: (event: DepositEvent) => void;
|
|
115
115
|
/**
|
|
116
|
-
* Which screen opens first:
|
|
116
|
+
* Which screen opens first. One of: `main` (menu, default), `transfer`, `card`, `cashapp`,
|
|
117
|
+
* `tracker`, `pay_with_exchange` (Pay with Exchange), `exchange_connect` (Connect Exchange), or
|
|
118
|
+
* `wallet_connect` (Connect Wallet).
|
|
117
119
|
* `transfer` and `card` run the same geo / recipient checks as the menu before the flow. `tracker` does not
|
|
118
|
-
* (deposit history is always reachable).
|
|
119
|
-
*
|
|
120
|
+
* (deposit history is always reachable). A screen falls back to `main` when its feature flag is disabled
|
|
121
|
+
* (e.g. `cashapp` without `enableCashApp`, `exchange_connect` without `enableConnectExchange`).
|
|
122
|
+
* If not `main`, the header back control is hidden at the flow's root (nothing to return to); inner steps
|
|
123
|
+
* (card quotes/onramp, tracker detail, exchange pending, cashapp payment, etc.) still show back for inner navigation.
|
|
120
124
|
*/
|
|
121
125
|
initialScreen?: DepositModalInitialScreen;
|
|
122
126
|
}
|