@rhinestone/deposit-modal 0.1.65 → 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-Y4M3RA73.mjs → DepositModalReown-EYIV6APK.mjs} +3 -3
  2. package/dist/{DepositModalReown-6ZMLUWWD.cjs → DepositModalReown-UPYZN2XA.cjs} +4 -4
  3. package/dist/{WithdrawModalReown-HVBMAUPM.mjs → WithdrawModalReown-6VYKKKJN.mjs} +3 -3
  4. package/dist/{WithdrawModalReown-WJ5SHBV4.cjs → WithdrawModalReown-WHPQDJJJ.cjs} +4 -4
  5. package/dist/{chunk-RKRF7ANK.mjs → chunk-5FDIQNJJ.mjs} +22 -19
  6. package/dist/{chunk-4CZ7W3RS.cjs → chunk-FLVSQDP4.cjs} +181 -132
  7. package/dist/{chunk-GAHX5RAT.mjs → chunk-IUW3SJQT.mjs} +103 -54
  8. package/dist/{chunk-MGV75YLV.cjs → chunk-LTLFJPHO.cjs} +106 -103
  9. package/dist/{chunk-R6U6BHCV.cjs → chunk-MUWVDVY4.cjs} +13 -1
  10. package/dist/{chunk-IYZGLNY6.mjs → chunk-NFE5ZLD3.mjs} +1171 -374
  11. package/dist/{chunk-CIXHTOO3.mjs → chunk-SDZKKUCJ.mjs} +13 -1
  12. package/dist/{chunk-OWV4KVBM.cjs → chunk-UDKZWFCM.cjs} +1251 -454
  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 +696 -34
  28. package/dist/{types-BLIqLF0c.d.ts → types-DGQzvl6v.d.ts} +12 -1
  29. package/dist/{types-7IoN8k-P.d.cts → types-DJ1fzNC7.d.cts} +12 -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
@@ -17,6 +17,7 @@ interface DepositModalUIConfig {
17
17
  showLogo?: boolean;
18
18
  showStepper?: boolean;
19
19
  showBackButton?: boolean;
20
+ showHistoryButton?: boolean;
20
21
  balance?: {
21
22
  title: string;
22
23
  amount?: string;
@@ -73,6 +74,14 @@ interface ErrorEventData {
73
74
  message: string;
74
75
  code?: string;
75
76
  }
77
+ interface OutputTokenRule {
78
+ match: {
79
+ chain?: string;
80
+ token?: string;
81
+ symbol?: string;
82
+ };
83
+ outputToken: string;
84
+ }
76
85
  interface RouteConfig {
77
86
  sourceChains?: number[];
78
87
  sourceTokens?: string[];
@@ -92,6 +101,8 @@ interface DepositModalProps {
92
101
  defaultAmount?: string;
93
102
  recipient: Address;
94
103
  postBridgeActions?: PostBridgeAction[];
104
+ outputTokenRules?: OutputTokenRule[];
105
+ rejectUnmapped?: boolean;
95
106
  backendUrl?: string;
96
107
  solanaRpcUrl?: string;
97
108
  rhinestoneApiKey?: string;
@@ -223,4 +234,4 @@ type WithdrawEvent = {
223
234
  };
224
235
  type ModalEvent = DepositEvent | WithdrawEvent;
225
236
 
226
- 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 };
@@ -17,6 +17,7 @@ interface DepositModalUIConfig {
17
17
  showLogo?: boolean;
18
18
  showStepper?: boolean;
19
19
  showBackButton?: boolean;
20
+ showHistoryButton?: boolean;
20
21
  balance?: {
21
22
  title: string;
22
23
  amount?: string;
@@ -73,6 +74,14 @@ interface ErrorEventData {
73
74
  message: string;
74
75
  code?: string;
75
76
  }
77
+ interface OutputTokenRule {
78
+ match: {
79
+ chain?: string;
80
+ token?: string;
81
+ symbol?: string;
82
+ };
83
+ outputToken: string;
84
+ }
76
85
  interface RouteConfig {
77
86
  sourceChains?: number[];
78
87
  sourceTokens?: string[];
@@ -92,6 +101,8 @@ interface DepositModalProps {
92
101
  defaultAmount?: string;
93
102
  recipient: Address;
94
103
  postBridgeActions?: PostBridgeAction[];
104
+ outputTokenRules?: OutputTokenRule[];
105
+ rejectUnmapped?: boolean;
95
106
  backendUrl?: string;
96
107
  solanaRpcUrl?: string;
97
108
  rhinestoneApiKey?: string;
@@ -223,4 +234,4 @@ type WithdrawEvent = {
223
234
  };
224
235
  type ModalEvent = DepositEvent | WithdrawEvent;
225
236
 
226
- 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 _chunkMGV75YLVcjs = require('./chunk-MGV75YLV.cjs');
4
- require('./chunk-4CZ7W3RS.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 = _chunkMGV75YLVcjs.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-7IoN8k-P.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, l as WithdrawSubmittedEventData } from './types-7IoN8k-P.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-BLIqLF0c.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, l as WithdrawSubmittedEventData } from './types-BLIqLF0c.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-RKRF7ANK.mjs";
4
- import "./chunk-GAHX5RAT.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.65",
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",