@rhinestone/deposit-modal 0.3.0-alpha.11 → 0.3.0-alpha.13

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.
@@ -153,6 +153,16 @@ interface RouteConfig {
153
153
  sourceChains?: number[];
154
154
  sourceTokens?: string[];
155
155
  }
156
+ interface FiatPaymentMethodOption {
157
+ /** Swapped's payment-method slug (e.g. `creditcard`, `applepay`, `bank-transfer`). */
158
+ method: string;
159
+ /** Row label shown in ConnectStep. */
160
+ label: string;
161
+ /** Optional sublabel under the row. */
162
+ sublabel?: string;
163
+ /** Optional icon name: `card` | `apple` | `bank`. Defaults to `card`. */
164
+ icon?: "card" | "apple" | "bank";
165
+ }
156
166
  interface DepositModalProps {
157
167
  dappWalletClient?: WalletClient | null;
158
168
  dappPublicClient?: PublicClient | null;
@@ -197,6 +207,21 @@ interface DepositModalProps {
197
207
  * entry screen.
198
208
  */
199
209
  dappImports?: DappImportsConfig;
210
+ /** Show fiat on-ramp option(s) that embed Swapped's iframe. Default: false. */
211
+ enableFiatOnramp?: boolean;
212
+ /** Show the Transfer Crypto / QR row. Default: true. */
213
+ enableQrTransfer?: boolean;
214
+ /**
215
+ * One row per Swapped payment method (Pay with Card / Apple Pay / Bank
216
+ * Transfer). When set, replaces the generic "Pay with Card" row.
217
+ */
218
+ fiatOnrampMethods?: FiatPaymentMethodOption[];
219
+ /**
220
+ * Show a "Fund from Exchange" row that opens Swapped Connect — the user
221
+ * picks their CEX (Coinbase, Binance, Kraken…) or wallet inside the iframe
222
+ * and Swapped pulls the crypto on-chain to the smart account. Default: false.
223
+ */
224
+ enableExchangeConnect?: boolean;
200
225
  onRequestConnect?: () => void;
201
226
  theme?: DepositModalTheme;
202
227
  uiConfig?: DepositModalUIConfig;
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYI63OMXNcjs = require('./chunk-YI63OMXN.cjs');
4
- require('./chunk-2TWQGPPB.cjs');
3
+ var _chunk6RCOF3XUcjs = require('./chunk-6RCOF3XU.cjs');
4
+ require('./chunk-DZNXG5JK.cjs');
5
5
  require('./chunk-7JIDIX27.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkYI63OMXNcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunk6RCOF3XUcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { n as WithdrawModalProps } from './types-D6wrO4Ow.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-D6wrO4Ow.cjs';
2
+ import { n as WithdrawModalProps } from './types-C8i2ebY1.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-C8i2ebY1.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { n as WithdrawModalProps } from './types-D6wrO4Ow.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-D6wrO4Ow.js';
2
+ import { n as WithdrawModalProps } from './types-C8i2ebY1.js';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-C8i2ebY1.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-7MZNQ4C2.mjs";
4
- import "./chunk-WVE3JN3C.mjs";
3
+ } from "./chunk-EC63ZHY4.mjs";
4
+ import "./chunk-6K4JHM2D.mjs";
5
5
  import "./chunk-SZIYS42B.mjs";
6
6
  export {
7
7
  WithdrawModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.3.0-alpha.11",
3
+ "version": "0.3.0-alpha.13",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {
@@ -110,7 +110,7 @@
110
110
  {
111
111
  "name": "Total Bundle (Everything)",
112
112
  "path": "dist/index.mjs",
113
- "limit": "52 kB",
113
+ "limit": "65 kB",
114
114
  "ignore": [
115
115
  "react",
116
116
  "react-dom",
@@ -130,7 +130,7 @@
130
130
  "name": "Deposit & Withdraw Modals Only",
131
131
  "path": "dist/index.mjs",
132
132
  "import": "{ DepositModal, WithdrawModal }",
133
- "limit": "52 kB",
133
+ "limit": "64 kB",
134
134
  "ignore": [
135
135
  "react",
136
136
  "react-dom",