@rhinestone/deposit-modal 0.19.0 → 0.20.0

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 (83) hide show
  1. package/README.md +151 -61
  2. package/dist/BankOnrampStep-JG32OCM2.mjs +435 -0
  3. package/dist/BankOnrampStep-NPGXAA7U.cjs +435 -0
  4. package/dist/{DepositModalReown-XBNY6QCI.mjs → DepositModalReown-3FGTPER6.mjs} +6 -5
  5. package/dist/{DepositModalReown-UITYXJ6W.cjs → DepositModalReown-ALVWADG7.cjs} +21 -20
  6. package/dist/WithdrawModal-5YWFJSYY.cjs +12 -0
  7. package/dist/WithdrawModal-LL4Z5WZP.mjs +12 -0
  8. package/dist/{bearer-transport-CVHNBgoV.d.cts → bearer-transport-DZyeDG64.d.cts} +5 -1
  9. package/dist/{bearer-transport-CVHNBgoV.d.ts → bearer-transport-DZyeDG64.d.ts} +5 -1
  10. package/dist/{caip-BMi-9t09.d.cts → caip-nwFFL46o.d.cts} +2 -2
  11. package/dist/{caip-BMi-9t09.d.ts → caip-nwFFL46o.d.ts} +2 -2
  12. package/dist/{chunk-NITKDXHR.mjs → chunk-247GJH57.mjs} +480 -272
  13. package/dist/{chunk-FTWKAJGN.mjs → chunk-2FOPO4N5.mjs} +1 -1
  14. package/dist/{chunk-5NWLS5BQ.mjs → chunk-32ERBFMO.mjs} +1432 -961
  15. package/dist/chunk-5QUWEFD4.mjs +19 -0
  16. package/dist/chunk-6CTJFR3T.mjs +113 -0
  17. package/dist/{chunk-X6N2XPTO.mjs → chunk-B2LZQIGB.mjs} +1 -1
  18. package/dist/{chunk-EG4H7OMC.cjs → chunk-BTEG2VNZ.cjs} +171 -130
  19. package/dist/{chunk-HMUGY66O.cjs → chunk-CXRH5MKO.cjs} +1502 -1031
  20. package/dist/chunk-E7IMWVMN.mjs +346 -0
  21. package/dist/{chunk-PYOC6K24.cjs → chunk-EKFXUF5A.cjs} +1 -1
  22. package/dist/chunk-FKJ6EJHH.cjs +346 -0
  23. package/dist/chunk-FMUSY563.cjs +19 -0
  24. package/dist/{chunk-LVCD6RHF.cjs → chunk-FVJKUTHF.cjs} +2 -2
  25. package/dist/chunk-G264OM23.cjs +224 -0
  26. package/dist/{chunk-BIL4ENC3.mjs → chunk-HP7S7AD6.mjs} +73 -32
  27. package/dist/{chunk-ISLVD5HQ.cjs → chunk-OPT5EW6L.cjs} +10 -5
  28. package/dist/chunk-PYRXOP2Y.cjs +113 -0
  29. package/dist/{chunk-ZGHVJ2XM.mjs → chunk-XBJCZYBX.mjs} +8 -3
  30. package/dist/chunk-YY4ZOAH5.mjs +224 -0
  31. package/dist/{chunk-OCWSMLOP.cjs → chunk-Z4RBTNKX.cjs} +980 -772
  32. package/dist/compliance.cjs +4 -7
  33. package/dist/compliance.d.cts +26 -3
  34. package/dist/compliance.d.ts +26 -3
  35. package/dist/compliance.mjs +6 -9
  36. package/dist/constants-BQDxVNgr.d.cts +29 -0
  37. package/dist/constants-DjGQW5N5.d.ts +29 -0
  38. package/dist/constants.cjs +3 -37
  39. package/dist/constants.d.cts +4 -20
  40. package/dist/constants.d.ts +4 -20
  41. package/dist/constants.mjs +4 -38
  42. package/dist/deposit.cjs +7 -6
  43. package/dist/deposit.d.cts +5 -3
  44. package/dist/deposit.d.ts +5 -3
  45. package/dist/deposit.mjs +6 -5
  46. package/dist/embed.cjs +21 -20
  47. package/dist/embed.d.cts +3 -2
  48. package/dist/embed.d.ts +3 -2
  49. package/dist/embed.mjs +7 -6
  50. package/dist/index.cjs +8 -35
  51. package/dist/index.d.cts +5 -3
  52. package/dist/index.d.ts +5 -3
  53. package/dist/index.mjs +9 -36
  54. package/dist/onramp.cjs +4 -33
  55. package/dist/onramp.d.cts +51 -33
  56. package/dist/onramp.d.ts +51 -33
  57. package/dist/onramp.mjs +5 -34
  58. package/dist/polymarket.cjs +6 -6
  59. package/dist/polymarket.mjs +2 -2
  60. package/dist/ramp-types-HYWd7CW0.d.cts +108 -0
  61. package/dist/ramp-types-HYWd7CW0.d.ts +108 -0
  62. package/dist/styles.css +255 -0
  63. package/dist/{types-BShYNpvO.d.cts → types-BxSrazbq.d.ts} +20 -2
  64. package/dist/{types-BOxa1DE-.d.ts → types-CixUBhrM.d.cts} +20 -2
  65. package/dist/withdraw.cjs +6 -5
  66. package/dist/withdraw.d.cts +4 -3
  67. package/dist/withdraw.d.ts +4 -3
  68. package/dist/withdraw.mjs +5 -4
  69. package/package.json +9 -17
  70. package/dist/WithdrawModal-DY6A55OA.mjs +0 -11
  71. package/dist/WithdrawModal-V42OK7L3.cjs +0 -11
  72. package/dist/chunk-ADEWTBSN.cjs +0 -19
  73. package/dist/chunk-EAGMY3QE.mjs +0 -962
  74. package/dist/chunk-OY5N3E6L.cjs +0 -962
  75. package/dist/chunk-PP4QE32S.mjs +0 -19
  76. package/dist/constants-BT4ctuHo.d.cts +0 -64
  77. package/dist/constants-D21ZdNOP.d.ts +0 -64
  78. package/dist/offramp.cjs +0 -25
  79. package/dist/offramp.d.cts +0 -28
  80. package/dist/offramp.d.ts +0 -28
  81. package/dist/offramp.mjs +0 -25
  82. package/dist/ramp-types-C6aUz4SZ.d.cts +0 -43
  83. package/dist/ramp-types-C6aUz4SZ.d.ts +0 -43
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.19.0",
4
- "description": "React modal component for Rhinestone cross-chain deposits",
5
- "author": "Rhinestone <dev@rhinestone.wtf>",
3
+ "version": "0.20.0",
4
+ "description": "React modal for Rhinestone Deposits and withdrawals",
5
+ "author": "Rhinestone <gm@rhinestone.dev>",
6
+ "homepage": "https://docs.rhinestone.dev/deposits/overview/widget/quickstart",
6
7
  "bugs": {
7
8
  "url": "https://github.com/rhinestonewtf/deposit-modal/issues"
8
9
  },
@@ -71,16 +72,6 @@
71
72
  "default": "./dist/onramp.cjs"
72
73
  }
73
74
  },
74
- "./offramp": {
75
- "import": {
76
- "types": "./dist/offramp.d.ts",
77
- "default": "./dist/offramp.mjs"
78
- },
79
- "require": {
80
- "types": "./dist/offramp.d.cts",
81
- "default": "./dist/offramp.cjs"
82
- }
83
- },
84
75
  "./compliance": {
85
76
  "import": {
86
77
  "types": "./dist/compliance.d.ts",
@@ -182,6 +173,7 @@
182
173
  "@testing-library/jest-dom": "^6",
183
174
  "@testing-library/react": "^16",
184
175
  "@testing-library/user-event": "^14",
176
+ "@types/node": "^22.20.4",
185
177
  "@types/react": "^19.0.0",
186
178
  "@types/react-dom": "^19.0.0",
187
179
  "@vitest/coverage-v8": "^4.0.10",
@@ -201,7 +193,7 @@
201
193
  {
202
194
  "name": "Total Bundle (Everything)",
203
195
  "path": "dist/index.mjs",
204
- "limit": "100.5 kB",
196
+ "limit": "107 kB",
205
197
  "ignore": [
206
198
  "react",
207
199
  "react-dom",
@@ -220,7 +212,7 @@
220
212
  {
221
213
  "name": "Native Embed (deposit & withdraw)",
222
214
  "path": "dist/embed.mjs",
223
- "limit": "107 kB",
215
+ "limit": "113.5 kB",
224
216
  "ignore": [
225
217
  "react",
226
218
  "react-dom",
@@ -240,7 +232,7 @@
240
232
  "name": "Deposit & Withdraw Modals Only",
241
233
  "path": "dist/index.mjs",
242
234
  "import": "{ DepositModal, WithdrawModal }",
243
- "limit": "100 kB",
235
+ "limit": "106.5 kB",
244
236
  "ignore": [
245
237
  "react",
246
238
  "react-dom",
@@ -259,7 +251,7 @@
259
251
  {
260
252
  "name": "Withdraw Modal Only",
261
253
  "path": "dist/withdraw.mjs",
262
- "limit": "47.1 kB",
254
+ "limit": "49.5 kB",
263
255
  "ignore": [
264
256
  "react",
265
257
  "react-dom",
@@ -1,11 +0,0 @@
1
- import {
2
- WithdrawModal,
3
- buildWithdrawAnalyticsSessionProperties
4
- } from "./chunk-BIL4ENC3.mjs";
5
- import "./chunk-5NWLS5BQ.mjs";
6
- import "./chunk-EAGMY3QE.mjs";
7
- import "./chunk-X6N2XPTO.mjs";
8
- export {
9
- WithdrawModal,
10
- buildWithdrawAnalyticsSessionProperties
11
- };
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkEG4H7OMCcjs = require('./chunk-EG4H7OMC.cjs');
5
- require('./chunk-HMUGY66O.cjs');
6
- require('./chunk-OY5N3E6L.cjs');
7
- require('./chunk-PYOC6K24.cjs');
8
-
9
-
10
-
11
- exports.WithdrawModal = _chunkEG4H7OMCcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkEG4H7OMCcjs.buildWithdrawAnalyticsSessionProperties;
@@ -1,19 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/ramp-utils.ts
2
- function rampQuery(value) {
3
- return new URLSearchParams(
4
- Object.entries(value).filter(([, value2]) => value2 !== void 0).map(([key, value2]) => [key, String(value2)])
5
- ).toString();
6
- }
7
- function rampResourceId(value) {
8
- if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(
9
- value
10
- )) {
11
- throw new Error("Invalid ramp resource ID");
12
- }
13
- return value;
14
- }
15
-
16
-
17
-
18
-
19
- exports.rampQuery = rampQuery; exports.rampResourceId = rampResourceId;