@rhinestone/deposit-modal 0.8.0 → 0.8.1

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 (30) hide show
  1. package/dist/{DepositModalReown-RZ6VSMKP.mjs → DepositModalReown-4BSHOQ5Y.mjs} +6 -6
  2. package/dist/{DepositModalReown-J5YFZKFS.cjs → DepositModalReown-UND3DEJH.cjs} +9 -9
  3. package/dist/{WithdrawModalReown-4YUV2WWV.mjs → WithdrawModalReown-FVXSSGY5.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-B6BGY52S.cjs → WithdrawModalReown-TVZWJKQI.cjs} +8 -8
  5. package/dist/{chunk-LXTAAHPC.mjs → chunk-2JPB3PLB.mjs} +2 -2
  6. package/dist/{chunk-4IOQIWDY.cjs → chunk-4NN7UTWQ.cjs} +4 -4
  7. package/dist/{chunk-5S5BQ2GM.mjs → chunk-7KHEIMWD.mjs} +24 -11
  8. package/dist/{chunk-IRI34U6N.cjs → chunk-7OKA6GNA.cjs} +255 -137
  9. package/dist/{chunk-XLXJW44N.cjs → chunk-D3Y7ZBED.cjs} +349 -336
  10. package/dist/{chunk-YLIPI3NU.mjs → chunk-DABKCJVL.mjs} +1 -1
  11. package/dist/{chunk-JRFPKFL6.cjs → chunk-HQWZCOMS.cjs} +105 -98
  12. package/dist/{chunk-RXWJ267K.mjs → chunk-NASHLEVQ.mjs} +165 -47
  13. package/dist/{chunk-SX52FXKH.mjs → chunk-O5OKA27M.mjs} +7 -0
  14. package/dist/{chunk-VURI4G2Z.cjs → chunk-Q3W53BKR.cjs} +7 -7
  15. package/dist/{chunk-7JJ4EFDY.mjs → chunk-T43VUEJH.mjs} +12 -5
  16. package/dist/{chunk-PUMTR35E.cjs → chunk-U7SVYWVD.cjs} +8 -1
  17. package/dist/{chunk-TYB6AA6D.mjs → chunk-WK5AFRSP.mjs} +1 -1
  18. package/dist/{chunk-WL7AXYQ4.cjs → chunk-XRWQMIBY.cjs} +3 -3
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.mjs +1 -1
  21. package/dist/deposit.cjs +6 -6
  22. package/dist/deposit.mjs +5 -5
  23. package/dist/index.cjs +7 -7
  24. package/dist/index.mjs +6 -6
  25. package/dist/polymarket.cjs +6 -6
  26. package/dist/polymarket.mjs +3 -3
  27. package/dist/styles.css +29 -0
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-5S5BQ2GM.mjs";
4
- import "./chunk-YLIPI3NU.mjs";
3
+ } from "./chunk-7KHEIMWD.mjs";
4
+ import "./chunk-DABKCJVL.mjs";
5
5
  import {
6
6
  WithdrawModal
7
- } from "./chunk-7JJ4EFDY.mjs";
8
- import "./chunk-RXWJ267K.mjs";
9
- import "./chunk-TYB6AA6D.mjs";
7
+ } from "./chunk-T43VUEJH.mjs";
8
+ import "./chunk-NASHLEVQ.mjs";
9
+ import "./chunk-WK5AFRSP.mjs";
10
10
  import {
11
11
  CHAIN_BY_ID,
12
12
  DEFAULT_BACKEND_URL,
@@ -40,7 +40,7 @@ import {
40
40
  getUsdcDecimals,
41
41
  isSupportedTokenAddressForChain,
42
42
  tokenIconUrl
43
- } from "./chunk-SX52FXKH.mjs";
43
+ } from "./chunk-O5OKA27M.mjs";
44
44
 
45
45
  // src/core/reown-disconnect.ts
46
46
  import { modal } from "@reown/appkit/react";
@@ -2,9 +2,9 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
6
- require('./chunk-WL7AXYQ4.cjs');
7
- require('./chunk-PUMTR35E.cjs');
5
+ var _chunk4NN7UTWQcjs = require('./chunk-4NN7UTWQ.cjs');
6
+ require('./chunk-XRWQMIBY.cjs');
7
+ require('./chunk-U7SVYWVD.cjs');
8
8
 
9
9
  // src/core/dapp-imports/polymarket/account.ts
10
10
 
@@ -23,12 +23,12 @@ async function getPolymarketAccount(params) {
23
23
  );
24
24
  }
25
25
  const eoa = _viem.getAddress.call(void 0, params.eoa);
26
- const proxyWallet = await _chunk4IOQIWDYcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
26
+ const proxyWallet = await _chunk4NN7UTWQcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
27
27
  if (!proxyWallet) return null;
28
28
  throwIfAborted(signal);
29
29
  let balances = { pusd: 0n, usdce: 0n };
30
30
  try {
31
- balances = await _chunk4IOQIWDYcjs.readPolymarketBalances.call(void 0, {
31
+ balances = await _chunk4NN7UTWQcjs.readPolymarketBalances.call(void 0, {
32
32
  publicClient: polygonClient(rpcUrl),
33
33
  proxyWallet
34
34
  });
@@ -40,7 +40,7 @@ async function getPolymarketAccount(params) {
40
40
  return {
41
41
  eoa,
42
42
  proxyWallet,
43
- chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
43
+ chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
44
44
  pusd,
45
45
  usdce,
46
46
  totalUsd: pusd.usd + usdce.usd
@@ -2,9 +2,9 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-YLIPI3NU.mjs";
6
- import "./chunk-TYB6AA6D.mjs";
7
- import "./chunk-SX52FXKH.mjs";
5
+ } from "./chunk-DABKCJVL.mjs";
6
+ import "./chunk-WK5AFRSP.mjs";
7
+ import "./chunk-O5OKA27M.mjs";
8
8
 
9
9
  // src/core/dapp-imports/polymarket/account.ts
10
10
  import {
package/dist/styles.css CHANGED
@@ -2547,6 +2547,35 @@
2547
2547
  color: var(--rs-callout-warning-text);
2548
2548
  }
2549
2549
 
2550
+ /* =============================================================================
2551
+ Token icon (CDN-backed) — skeleton while the image loads
2552
+ ============================================================================= */
2553
+
2554
+ /* `.rs-token-icon` is added to every CDN-backed token <img> (TokenIcon). While
2555
+ the image is loading (`data-loading`), show a muted pulsing placeholder so the
2556
+ first paint isn't a blank/broken-image flash; it inherits the caller's size
2557
+ and border-radius, so there's no layout shift when the icon paints in. */
2558
+ .rs-token-icon[data-loading] {
2559
+ background-color: var(--rs-muted);
2560
+ animation: rs-token-icon-pulse 1.2s ease-in-out infinite;
2561
+ }
2562
+
2563
+ @keyframes rs-token-icon-pulse {
2564
+ 0%,
2565
+ 100% {
2566
+ opacity: 1;
2567
+ }
2568
+ 50% {
2569
+ opacity: 0.55;
2570
+ }
2571
+ }
2572
+
2573
+ @media (prefers-reduced-motion: reduce) {
2574
+ .rs-token-icon[data-loading] {
2575
+ animation: none;
2576
+ }
2577
+ }
2578
+
2550
2579
  /* =============================================================================
2551
2580
  Confirm Step Redesign (Polymarket Style)
2552
2581
  ============================================================================= */
package/dist/withdraw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJRFPKFL6cjs = require('./chunk-JRFPKFL6.cjs');
4
- require('./chunk-IRI34U6N.cjs');
5
- require('./chunk-WL7AXYQ4.cjs');
6
- require('./chunk-PUMTR35E.cjs');
3
+ var _chunkHQWZCOMScjs = require('./chunk-HQWZCOMS.cjs');
4
+ require('./chunk-7OKA6GNA.cjs');
5
+ require('./chunk-XRWQMIBY.cjs');
6
+ require('./chunk-U7SVYWVD.cjs');
7
7
 
8
8
 
9
- exports.WithdrawModal = _chunkJRFPKFL6cjs.WithdrawModal;
9
+ exports.WithdrawModal = _chunkHQWZCOMScjs.WithdrawModal;
package/dist/withdraw.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-7JJ4EFDY.mjs";
4
- import "./chunk-RXWJ267K.mjs";
5
- import "./chunk-TYB6AA6D.mjs";
6
- import "./chunk-SX52FXKH.mjs";
3
+ } from "./chunk-T43VUEJH.mjs";
4
+ import "./chunk-NASHLEVQ.mjs";
5
+ import "./chunk-WK5AFRSP.mjs";
6
+ import "./chunk-O5OKA27M.mjs";
7
7
  export {
8
8
  WithdrawModal
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {