@rhinestone/deposit-modal 0.1.27 → 0.1.29

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/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
3
  export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, h as WithdrawModalProps, i as WithdrawSubmittedEventData } from './types-CgXyx46m.js';
4
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
4
+ export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
5
  export { SafeTransactionRequest } from './safe.js';
6
- export { chainRegistry } from '@rhinestone/shared-configs';
7
6
  import 'react/jsx-runtime';
8
7
  import 'viem';
9
8
  import 'viem/chains';
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-AJALMXW4.mjs";
3
+ } from "./chunk-XTTTHW3W.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-QCRZCGAE.mjs";
7
- import "./chunk-YOFGP4FV.mjs";
6
+ } from "./chunk-K6YG3I6O.mjs";
7
+ import "./chunk-N6T4TKXI.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,
@@ -33,7 +33,7 @@ import {
33
33
  getUsdcAddress,
34
34
  getUsdcDecimals,
35
35
  isSupportedTokenAddressForChain
36
- } from "./chunk-A6QLADED.mjs";
36
+ } from "./chunk-CSQRKM4Y.mjs";
37
37
  export {
38
38
  CHAIN_BY_ID,
39
39
  DEFAULT_BACKEND_URL,
package/dist/reown.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk7MQU2SR7cjs = require('./chunk-7MQU2SR7.cjs');
3
+ var _chunk5QJNOPNFcjs = require('./chunk-5QJNOPNF.cjs');
4
4
 
5
5
 
6
- var _chunkXIS33BZ6cjs = require('./chunk-XIS33BZ6.cjs');
7
- require('./chunk-QWYZJL3L.cjs');
8
- require('./chunk-CEIWN53N.cjs');
6
+ var _chunkCPIQJR47cjs = require('./chunk-CPIQJR47.cjs');
7
+ require('./chunk-7ZCUANBT.cjs');
8
+ require('./chunk-DLYVHOME.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.DepositModal = _chunk7MQU2SR7cjs.DepositModal; exports.WithdrawModal = _chunkXIS33BZ6cjs.WithdrawModal;
12
+ exports.DepositModal = _chunk5QJNOPNFcjs.DepositModal; exports.WithdrawModal = _chunkCPIQJR47cjs.WithdrawModal;
package/dist/reown.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-AJALMXW4.mjs";
3
+ } from "./chunk-XTTTHW3W.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-QCRZCGAE.mjs";
7
- import "./chunk-YOFGP4FV.mjs";
8
- import "./chunk-A6QLADED.mjs";
6
+ } from "./chunk-K6YG3I6O.mjs";
7
+ import "./chunk-N6T4TKXI.mjs";
8
+ import "./chunk-CSQRKM4Y.mjs";
9
9
  export {
10
10
  DepositModal,
11
11
  WithdrawModal
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXIS33BZ6cjs = require('./chunk-XIS33BZ6.cjs');
4
- require('./chunk-QWYZJL3L.cjs');
5
- require('./chunk-CEIWN53N.cjs');
3
+ var _chunkCPIQJR47cjs = require('./chunk-CPIQJR47.cjs');
4
+ require('./chunk-7ZCUANBT.cjs');
5
+ require('./chunk-DLYVHOME.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkXIS33BZ6cjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkCPIQJR47cjs.WithdrawModal;
package/dist/withdraw.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-QCRZCGAE.mjs";
4
- import "./chunk-YOFGP4FV.mjs";
5
- import "./chunk-A6QLADED.mjs";
3
+ } from "./chunk-K6YG3I6O.mjs";
4
+ import "./chunk-N6T4TKXI.mjs";
5
+ import "./chunk-CSQRKM4Y.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.27",
3
+ "version": "0.1.29",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {
@@ -54,6 +54,7 @@
54
54
  "*.css"
55
55
  ],
56
56
  "scripts": {
57
+ "size": "size-limit",
57
58
  "build": "tsup && bun run scripts/postbuild.ts",
58
59
  "clean": "rm -rf dist",
59
60
  "typecheck": "tsc --noEmit",
@@ -62,26 +63,72 @@
62
63
  "peerDependencies": {
63
64
  "react": ">=18",
64
65
  "react-dom": ">=18",
65
- "viem": ">=2"
66
+ "viem": ">=2",
67
+ "wagmi": ">=3",
68
+ "@reown/appkit": ">=1",
69
+ "@reown/appkit-adapter-wagmi": ">=1",
70
+ "@tanstack/react-query": ">=5"
66
71
  },
67
72
  "dependencies": {
68
- "@rhinestone/shared-configs": "^1.4.93",
69
- "@reown/appkit": "^1.8.17",
70
- "@reown/appkit-adapter-wagmi": "^1.8.17",
71
- "qrcode-generator": "^2.0.4",
72
- "wagmi": "^3.4.2",
73
- "@tanstack/react-query": "^5.0.0"
73
+ "qrcode-generator": "^2.0.4"
74
74
  },
75
75
  "devDependencies": {
76
+ "@reown/appkit": "^1.8.17",
77
+ "@reown/appkit-adapter-wagmi": "^1.8.17",
78
+ "@size-limit/preset-small-lib": "^12.0.0",
79
+ "@tanstack/react-query": "^5.0.0",
76
80
  "@types/react": "^19.0.0",
77
81
  "@types/react-dom": "^19.0.0",
78
82
  "bun-types": "^1.3.8",
79
83
  "react": "^19.0.0",
80
84
  "react-dom": "^19.0.0",
85
+ "size-limit": "^12.0.0",
81
86
  "tsup": "^8.0.0",
82
87
  "typescript": "^5.5.0",
83
- "viem": "^2.0.0"
88
+ "viem": "^2.0.0",
89
+ "wagmi": "^3.4.2"
84
90
  },
91
+ "size-limit": [
92
+ {
93
+ "name": "Total Bundle (Everything)",
94
+ "path": "dist/index.mjs",
95
+ "limit": "50 kB",
96
+ "ignore": [
97
+ "react",
98
+ "react-dom",
99
+ "viem",
100
+ "wagmi",
101
+ "@tanstack/react-query",
102
+ "@reown/appkit",
103
+ "@reown/appkit-adapter-wagmi",
104
+ "@walletconnect/ethereum-provider",
105
+ "@coinbase/wallet-sdk",
106
+ "@metamask/sdk",
107
+ "porto",
108
+ "porto/internal"
109
+ ]
110
+ },
111
+ {
112
+ "name": "Deposit & Withdraw Modals Only",
113
+ "path": "dist/index.mjs",
114
+ "import": "{ DepositModal, WithdrawModal }",
115
+ "limit": "50 kB",
116
+ "ignore": [
117
+ "react",
118
+ "react-dom",
119
+ "viem",
120
+ "wagmi",
121
+ "@tanstack/react-query",
122
+ "@reown/appkit",
123
+ "@reown/appkit-adapter-wagmi",
124
+ "@walletconnect/ethereum-provider",
125
+ "@coinbase/wallet-sdk",
126
+ "@metamask/sdk",
127
+ "porto",
128
+ "porto/internal"
129
+ ]
130
+ }
131
+ ],
85
132
  "keywords": [
86
133
  "rhinestone",
87
134
  "deposit",