@rhinestone/deposit-modal 0.3.0-alpha.12 → 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.
- package/README.md +59 -0
- package/dist/{DepositModalReown-EC4DJ3EC.cjs → DepositModalReown-CXPRZRXL.cjs} +6 -6
- package/dist/{DepositModalReown-QOTUF4JC.mjs → DepositModalReown-HBAWSK6K.mjs} +3 -3
- package/dist/{WithdrawModalReown-QEQPCSWT.mjs → WithdrawModalReown-EEWQRENY.mjs} +3 -3
- package/dist/{WithdrawModalReown-Z5JVENP6.cjs → WithdrawModalReown-T3TPJIME.cjs} +6 -6
- package/dist/{chunk-WVE3JN3C.mjs → chunk-6K4JHM2D.mjs} +343 -50
- package/dist/{chunk-YI63OMXN.cjs → chunk-6RCOF3XU.cjs} +57 -57
- package/dist/{chunk-2TWQGPPB.cjs → chunk-DZNXG5JK.cjs} +372 -79
- package/dist/{chunk-7MZNQ4C2.mjs → chunk-EC63ZHY4.mjs} +2 -2
- package/dist/{chunk-HR6BABPX.mjs → chunk-HZBO2SIZ.mjs} +1389 -393
- package/dist/{chunk-FGVSNARE.cjs → chunk-PWV2UJP3.cjs} +2 -2
- package/dist/{chunk-I5G5ULRP.cjs → chunk-SEOQ66FW.cjs} +1281 -285
- package/dist/{chunk-QXIJLRKC.mjs → chunk-YB3JPWJW.mjs} +1 -1
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/styles.css +465 -1
- package/dist/{types-D6wrO4Ow.d.cts → types-C8i2ebY1.d.cts} +25 -0
- package/dist/{types-D6wrO4Ow.d.ts → types-C8i2ebY1.d.ts} +25 -0
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +2 -2
- package/package.json +3 -3
|
@@ -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
|
|
4
|
-
require('./chunk-
|
|
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 =
|
|
8
|
+
exports.WithdrawModal = _chunk6RCOF3XUcjs.WithdrawModal;
|
package/dist/withdraw.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { n as WithdrawModalProps } from './types-
|
|
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-
|
|
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;
|
package/dist/withdraw.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { n as WithdrawModalProps } from './types-
|
|
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-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhinestone/deposit-modal",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
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": "
|
|
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": "
|
|
133
|
+
"limit": "64 kB",
|
|
134
134
|
"ignore": [
|
|
135
135
|
"react",
|
|
136
136
|
"react-dom",
|