@rhinestone/deposit-modal 0.3.0-alpha.8 → 0.3.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 (39) hide show
  1. package/README.md +76 -0
  2. package/dist/{DepositModalReown-TYHATVOM.mjs → DepositModalReown-6SUEC5IU.mjs} +4 -4
  3. package/dist/{DepositModalReown-LWGABUOF.cjs → DepositModalReown-DNW4GH6L.cjs} +7 -7
  4. package/dist/{QRCode-SMMYPUQC.cjs → QRCode-5DXFNKI2.cjs} +2 -2
  5. package/dist/{QRCode-YMQTKSSK.mjs → QRCode-WUC652SH.mjs} +2 -2
  6. package/dist/{WithdrawModalReown-H7HA3JP3.mjs → WithdrawModalReown-7UAGSOSU.mjs} +4 -4
  7. package/dist/{WithdrawModalReown-FCWED55P.cjs → WithdrawModalReown-OUWBSKSM.cjs} +7 -7
  8. package/dist/{constants-DqVn968d.d.cts → caip-CrQ2KKU-.d.cts} +11 -1
  9. package/dist/{constants-DqVn968d.d.ts → caip-CrQ2KKU-.d.ts} +11 -1
  10. package/dist/{chunk-U3OLJZBT.cjs → chunk-2SMS542Q.cjs} +109 -102
  11. package/dist/{chunk-PKD7W5JG.cjs → chunk-33H6O5UU.cjs} +6 -16
  12. package/dist/{chunk-SZIYS42B.mjs → chunk-6YRDD462.mjs} +63 -3
  13. package/dist/{chunk-E46WOBZQ.mjs → chunk-GPSBM66J.mjs} +2 -12
  14. package/dist/{chunk-5ZS4ZJPW.mjs → chunk-KAWJABTW.mjs} +1071 -543
  15. package/dist/{chunk-H7QMSMM5.mjs → chunk-KJ2RR2D4.mjs} +1834 -586
  16. package/dist/{chunk-7JIDIX27.cjs → chunk-MILJQWPT.cjs} +73 -13
  17. package/dist/{chunk-UELVNPGE.cjs → chunk-RABZINV3.cjs} +1056 -528
  18. package/dist/{chunk-DW276H63.mjs → chunk-TKQYTBU6.mjs} +21 -14
  19. package/dist/{chunk-GBFOGYMH.cjs → chunk-VVJAIMKB.cjs} +1885 -637
  20. package/dist/constants.cjs +6 -2
  21. package/dist/constants.d.cts +1 -1
  22. package/dist/constants.d.ts +1 -1
  23. package/dist/constants.mjs +5 -1
  24. package/dist/deposit.cjs +4 -4
  25. package/dist/deposit.d.cts +2 -2
  26. package/dist/deposit.d.ts +2 -2
  27. package/dist/deposit.mjs +3 -3
  28. package/dist/index.cjs +19 -6
  29. package/dist/index.d.cts +2 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.mjs +20 -7
  32. package/dist/styles.css +685 -75
  33. package/dist/{types-D8Q4TMk7.d.cts → types-BMcGO5k_.d.cts} +56 -2
  34. package/dist/{types-D8Q4TMk7.d.ts → types-BMcGO5k_.d.ts} +56 -2
  35. package/dist/withdraw.cjs +4 -4
  36. package/dist/withdraw.d.cts +2 -2
  37. package/dist/withdraw.d.ts +2 -2
  38. package/dist/withdraw.mjs +3 -3
  39. package/package.json +41 -17
@@ -29,9 +29,8 @@ import {
29
29
  isNativeAsset,
30
30
  loadSessionOwnerFromStorage,
31
31
  saveSessionOwnerToStorage,
32
- toEvmCaip2,
33
32
  useLatestRef
34
- } from "./chunk-5ZS4ZJPW.mjs";
33
+ } from "./chunk-KAWJABTW.mjs";
35
34
  import {
36
35
  DEFAULT_BACKEND_URL,
37
36
  DEFAULT_SIGNER_ADDRESS,
@@ -43,8 +42,9 @@ import {
43
42
  getSupportedTargetTokens,
44
43
  getTokenDecimalsByAddress,
45
44
  getTokenIcon,
46
- getTokenSymbol
47
- } from "./chunk-SZIYS42B.mjs";
45
+ getTokenSymbol,
46
+ toEvmCaip2
47
+ } from "./chunk-6YRDD462.mjs";
48
48
 
49
49
  // src/WithdrawModal.tsx
50
50
  import {
@@ -60,7 +60,7 @@ import {
60
60
  // src/WithdrawFlow.tsx
61
61
  import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo2, useRef as useRef2, useState as useState3 } from "react";
62
62
 
63
- // src/store/withdraw.tsx
63
+ // src/store/withdraw.ts
64
64
  import { createContext, createElement, useContext } from "react";
65
65
  import { useStore } from "zustand";
66
66
  import { createStore } from "zustand/vanilla";
@@ -398,11 +398,19 @@ function WithdrawFormStep({
398
398
  /* @__PURE__ */ jsxs("div", { className: "rs-screen-body", children: [
399
399
  /* @__PURE__ */ jsx(BodyHeader, { icon: /* @__PURE__ */ jsx(CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
400
400
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-section", children: [
401
- /* @__PURE__ */ jsx("label", { className: "rs-withdraw-label", children: "Recipient address" }),
401
+ /* @__PURE__ */ jsx(
402
+ "label",
403
+ {
404
+ className: "rs-withdraw-label",
405
+ htmlFor: "rs-withdraw-recipient",
406
+ children: "Recipient address"
407
+ }
408
+ ),
402
409
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-input-row", children: [
403
410
  /* @__PURE__ */ jsx(
404
411
  "input",
405
412
  {
413
+ id: "rs-withdraw-recipient",
406
414
  type: "text",
407
415
  className: "rs-withdraw-input rs-withdraw-input--address",
408
416
  placeholder: "0x...",
@@ -442,11 +450,12 @@ function WithdrawFormStep({
442
450
  ] })
443
451
  ] }),
444
452
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-section", children: [
445
- /* @__PURE__ */ jsx("label", { className: "rs-withdraw-label", children: "Amount" }),
453
+ /* @__PURE__ */ jsx("label", { className: "rs-withdraw-label", htmlFor: "rs-withdraw-amount", children: "Amount" }),
446
454
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-input-row", children: [
447
455
  /* @__PURE__ */ jsx(
448
456
  "input",
449
457
  {
458
+ id: "rs-withdraw-amount",
450
459
  type: "text",
451
460
  inputMode: "decimal",
452
461
  className: "rs-withdraw-input rs-withdraw-input--amount",
@@ -484,7 +493,7 @@ function WithdrawFormStep({
484
493
  ] }),
485
494
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-receive-row", children: [
486
495
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-receive-col", children: [
487
- /* @__PURE__ */ jsx("label", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive chain" }),
496
+ /* @__PURE__ */ jsx("span", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive chain" }),
488
497
  /* @__PURE__ */ jsxs(
489
498
  "div",
490
499
  {
@@ -495,6 +504,7 @@ function WithdrawFormStep({
495
504
  "button",
496
505
  {
497
506
  type: "button",
507
+ "aria-label": "Receive chain",
498
508
  className: "rs-withdraw-dropdown",
499
509
  onClick: () => {
500
510
  setShowChainDropdown(!showChainDropdown);
@@ -552,7 +562,7 @@ function WithdrawFormStep({
552
562
  )
553
563
  ] }),
554
564
  /* @__PURE__ */ jsxs("div", { className: "rs-withdraw-receive-col", children: [
555
- /* @__PURE__ */ jsx("label", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive token" }),
565
+ /* @__PURE__ */ jsx("span", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive token" }),
556
566
  /* @__PURE__ */ jsxs(
557
567
  "div",
558
568
  {
@@ -563,6 +573,7 @@ function WithdrawFormStep({
563
573
  "button",
564
574
  {
565
575
  type: "button",
576
+ "aria-label": "Receive token",
566
577
  className: "rs-withdraw-dropdown",
567
578
  onClick: () => {
568
579
  setShowTokenDropdown(!showTokenDropdown);
@@ -793,7 +804,6 @@ function WithdrawFlow({
793
804
  signerAddress = DEFAULT_SIGNER_ADDRESS,
794
805
  sessionChainIds,
795
806
  forceRegister = false,
796
- waitForFinalTx = true,
797
807
  reownWallet,
798
808
  onConnect,
799
809
  onDisconnect,
@@ -1461,7 +1471,6 @@ function WithdrawFlow({
1461
1471
  targetToken,
1462
1472
  amount: storeApi.getState().amount ?? "0",
1463
1473
  directTransfer: isSameRoute,
1464
- waitForFinalTx,
1465
1474
  service,
1466
1475
  flowLabel: "withdraw",
1467
1476
  onClose,
@@ -1485,7 +1494,7 @@ function deriveStepView(step, _registration) {
1485
1494
  // src/WithdrawModal.tsx
1486
1495
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1487
1496
  var ReownWithdrawInner = lazy(
1488
- () => import("./WithdrawModalReown-H7HA3JP3.mjs").then((m) => ({
1497
+ () => import("./WithdrawModalReown-7UAGSOSU.mjs").then((m) => ({
1489
1498
  default: m.WithdrawModalReown
1490
1499
  }))
1491
1500
  );
@@ -1517,7 +1526,6 @@ function WithdrawModalInner({
1517
1526
  signerAddress = DEFAULT_SIGNER_ADDRESS,
1518
1527
  sessionChainIds,
1519
1528
  forceRegister = false,
1520
- waitForFinalTx = true,
1521
1529
  reownWallet,
1522
1530
  onConnect,
1523
1531
  onDisconnect,
@@ -1622,7 +1630,6 @@ function WithdrawModalInner({
1622
1630
  signerAddress,
1623
1631
  sessionChainIds,
1624
1632
  forceRegister,
1625
- waitForFinalTx,
1626
1633
  reownWallet,
1627
1634
  onConnect,
1628
1635
  onDisconnect,