@rhinestone/deposit-modal 0.1.66 → 0.1.67

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.
Files changed (34) hide show
  1. package/dist/{DepositModalReown-RXIVPSEE.mjs → DepositModalReown-EYIV6APK.mjs} +3 -3
  2. package/dist/{DepositModalReown-WFXQKZDH.cjs → DepositModalReown-UPYZN2XA.cjs} +4 -4
  3. package/dist/{WithdrawModalReown-MME7VSKX.mjs → WithdrawModalReown-6VYKKKJN.mjs} +3 -3
  4. package/dist/{WithdrawModalReown-PXS44GZO.cjs → WithdrawModalReown-WHPQDJJJ.cjs} +4 -4
  5. package/dist/{chunk-CULXRW6U.mjs → chunk-5FDIQNJJ.mjs} +22 -19
  6. package/dist/{chunk-JZWCK7C3.cjs → chunk-FLVSQDP4.cjs} +98 -91
  7. package/dist/{chunk-FWGLRTWF.mjs → chunk-IUW3SJQT.mjs} +61 -54
  8. package/dist/{chunk-75LRORPO.cjs → chunk-LTLFJPHO.cjs} +106 -103
  9. package/dist/{chunk-R6U6BHCV.cjs → chunk-MUWVDVY4.cjs} +13 -1
  10. package/dist/{chunk-JDO7QPPH.mjs → chunk-NFE5ZLD3.mjs} +786 -392
  11. package/dist/{chunk-CIXHTOO3.mjs → chunk-SDZKKUCJ.mjs} +13 -1
  12. package/dist/{chunk-5GN4QU67.cjs → chunk-UDKZWFCM.cjs} +842 -448
  13. package/dist/constants.cjs +2 -2
  14. package/dist/constants.mjs +1 -1
  15. package/dist/deposit.cjs +4 -4
  16. package/dist/deposit.d.cts +2 -2
  17. package/dist/deposit.d.ts +2 -2
  18. package/dist/deposit.mjs +3 -3
  19. package/dist/index.cjs +5 -5
  20. package/dist/index.d.cts +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.mjs +4 -4
  23. package/dist/reown.cjs +5 -5
  24. package/dist/reown.d.cts +1 -1
  25. package/dist/reown.d.ts +1 -1
  26. package/dist/reown.mjs +4 -4
  27. package/dist/styles.css +264 -33
  28. package/dist/{types-ymKENnUK.d.ts → types-DGQzvl6v.d.ts} +11 -1
  29. package/dist/{types-DjaZ9sa8.d.cts → types-DJ1fzNC7.d.cts} +11 -1
  30. package/dist/withdraw.cjs +4 -4
  31. package/dist/withdraw.d.cts +2 -2
  32. package/dist/withdraw.d.ts +2 -2
  33. package/dist/withdraw.mjs +3 -3
  34. package/package.json +5 -5
@@ -74,6 +74,14 @@ interface ErrorEventData {
74
74
  message: string;
75
75
  code?: string;
76
76
  }
77
+ interface OutputTokenRule {
78
+ match: {
79
+ chain?: string;
80
+ token?: string;
81
+ symbol?: string;
82
+ };
83
+ outputToken: string;
84
+ }
77
85
  interface RouteConfig {
78
86
  sourceChains?: number[];
79
87
  sourceTokens?: string[];
@@ -93,6 +101,8 @@ interface DepositModalProps {
93
101
  defaultAmount?: string;
94
102
  recipient: Address;
95
103
  postBridgeActions?: PostBridgeAction[];
104
+ outputTokenRules?: OutputTokenRule[];
105
+ rejectUnmapped?: boolean;
96
106
  backendUrl?: string;
97
107
  solanaRpcUrl?: string;
98
108
  rhinestoneApiKey?: string;
@@ -224,4 +234,4 @@ type WithdrawEvent = {
224
234
  };
225
235
  type ModalEvent = DepositEvent | WithdrawEvent;
226
236
 
227
- export type { AssetOption as A, ChainId as C, DepositCompleteEventData as D, ErrorEventData as E, ModalEvent as M, OrderBookSwapAction as O, PostBridgeAction as P, RouteConfig as R, WithdrawCompleteEventData as W, ConnectedEventData as a, DepositEvent as b, DepositFailedEventData as c, DepositModalBranding as d, DepositModalProps as e, DepositModalTheme as f, DepositModalUIConfig as g, DepositSubmittedEventData as h, WithdrawEvent as i, WithdrawFailedEventData as j, WithdrawModalProps as k, WithdrawSubmittedEventData as l };
237
+ export type { AssetOption as A, ChainId as C, DepositCompleteEventData as D, ErrorEventData as E, ModalEvent as M, OrderBookSwapAction as O, PostBridgeAction as P, RouteConfig as R, WithdrawCompleteEventData as W, ConnectedEventData as a, DepositEvent as b, DepositFailedEventData as c, DepositModalBranding as d, DepositModalProps as e, DepositModalTheme as f, DepositModalUIConfig as g, DepositSubmittedEventData as h, OutputTokenRule as i, WithdrawEvent as j, WithdrawFailedEventData as k, WithdrawModalProps as l, WithdrawSubmittedEventData as m };
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk75LRORPOcjs = require('./chunk-75LRORPO.cjs');
4
- require('./chunk-JZWCK7C3.cjs');
5
- require('./chunk-R6U6BHCV.cjs');
3
+ var _chunkLTLFJPHOcjs = require('./chunk-LTLFJPHO.cjs');
4
+ require('./chunk-FLVSQDP4.cjs');
5
+ require('./chunk-MUWVDVY4.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunk75LRORPOcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkLTLFJPHOcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { k as WithdrawModalProps } from './types-DjaZ9sa8.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, l as WithdrawSubmittedEventData } from './types-DjaZ9sa8.cjs';
2
+ import { l as WithdrawModalProps } from './types-DJ1fzNC7.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, m as WithdrawSubmittedEventData } from './types-DJ1fzNC7.cjs';
4
4
  export { SafeTransactionRequest } from './safe.cjs';
5
5
  import 'viem';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { k as WithdrawModalProps } from './types-ymKENnUK.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, l as WithdrawSubmittedEventData } from './types-ymKENnUK.js';
2
+ import { l as WithdrawModalProps } from './types-DGQzvl6v.js';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, m as WithdrawSubmittedEventData } from './types-DGQzvl6v.js';
4
4
  export { SafeTransactionRequest } from './safe.js';
5
5
  import 'viem';
6
6
 
package/dist/withdraw.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-CULXRW6U.mjs";
4
- import "./chunk-FWGLRTWF.mjs";
5
- import "./chunk-CIXHTOO3.mjs";
3
+ } from "./chunk-5FDIQNJJ.mjs";
4
+ import "./chunk-IUW3SJQT.mjs";
5
+ import "./chunk-SDZKKUCJ.mjs";
6
6
  export {
7
7
  WithdrawModal
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.1.66",
3
+ "version": "0.1.67",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {
@@ -84,7 +84,7 @@
84
84
  }
85
85
  },
86
86
  "dependencies": {
87
- "qrcode-generator": "^2.0.4"
87
+ "react-qrcode-logo": "^4.0.0"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@reown/appkit": "1.8.19",
@@ -102,14 +102,14 @@
102
102
  "size-limit": "^12.0.0",
103
103
  "tsup": "^8.0.0",
104
104
  "typescript": "^5.5.0",
105
- "viem": "^2.0.0",
105
+ "viem": "^2.47.12",
106
106
  "wagmi": "^3.4.2"
107
107
  },
108
108
  "size-limit": [
109
109
  {
110
110
  "name": "Total Bundle (Everything)",
111
111
  "path": "dist/index.mjs",
112
- "limit": "50 kB",
112
+ "limit": "52 kB",
113
113
  "ignore": [
114
114
  "react",
115
115
  "react-dom",
@@ -129,7 +129,7 @@
129
129
  "name": "Deposit & Withdraw Modals Only",
130
130
  "path": "dist/index.mjs",
131
131
  "import": "{ DepositModal, WithdrawModal }",
132
- "limit": "50 kB",
132
+ "limit": "52 kB",
133
133
  "ignore": [
134
134
  "react",
135
135
  "react-dom",