@rhinestone/deposit-modal 0.1.66 → 0.1.68

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-RXIVPSEE.mjs → DepositModalReown-RYCOXWMH.mjs} +3 -3
  2. package/dist/{DepositModalReown-WFXQKZDH.cjs → DepositModalReown-WXFTSZSK.cjs} +4 -4
  3. package/dist/{WithdrawModalReown-MME7VSKX.mjs → WithdrawModalReown-6VYKKKJN.mjs} +3 -3
  4. package/dist/{WithdrawModalReown-PXS44GZO.cjs → WithdrawModalReown-WHPQDJJJ.cjs} +4 -4
  5. package/dist/{chunk-CULXRW6U.mjs → chunk-5FDIQNJJ.mjs} +22 -19
  6. package/dist/{chunk-JZWCK7C3.cjs → chunk-FLVSQDP4.cjs} +98 -91
  7. package/dist/{chunk-FWGLRTWF.mjs → chunk-IUW3SJQT.mjs} +61 -54
  8. package/dist/{chunk-5GN4QU67.cjs → chunk-J7ILKS5N.cjs} +1059 -447
  9. package/dist/{chunk-75LRORPO.cjs → chunk-LTLFJPHO.cjs} +106 -103
  10. package/dist/{chunk-R6U6BHCV.cjs → chunk-MUWVDVY4.cjs} +13 -1
  11. package/dist/{chunk-JDO7QPPH.mjs → chunk-OEB25YZ4.mjs} +1132 -520
  12. package/dist/{chunk-CIXHTOO3.mjs → chunk-SDZKKUCJ.mjs} +13 -1
  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 +456 -32
  28. package/dist/{types-ymKENnUK.d.ts → types-DGQzvl6v.d.ts} +11 -1
  29. package/dist/{types-DjaZ9sa8.d.cts → types-DJ1fzNC7.d.cts} +11 -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
package/dist/styles.css CHANGED
@@ -293,6 +293,7 @@
293
293
  flex-direction: column;
294
294
  min-height: 280px;
295
295
  overflow-y: auto;
296
+ overscroll-behavior: none;
296
297
  }
297
298
 
298
299
  .rs-modal-body::-webkit-scrollbar {
@@ -1189,7 +1190,7 @@
1189
1190
  flex-direction: column;
1190
1191
  align-items: center;
1191
1192
  justify-content: center;
1192
- padding: 40px 12px;
1193
+ padding: 24px 12px 16px;
1193
1194
  gap: 6px;
1194
1195
  }
1195
1196
 
@@ -1215,6 +1216,25 @@
1215
1216
  border-radius: 6px;
1216
1217
  }
1217
1218
 
1219
+ .rs-empty-disconnect {
1220
+ margin-top: 8px;
1221
+ padding: 0;
1222
+ font-size: 11px;
1223
+ font-weight: 400;
1224
+ color: var(--rs-muted-foreground);
1225
+ background: transparent;
1226
+ border: none;
1227
+ cursor: pointer;
1228
+ transition: color 0.15s;
1229
+ font-family: inherit;
1230
+ text-decoration: underline;
1231
+ text-underline-offset: 2px;
1232
+ }
1233
+
1234
+ .rs-empty-disconnect:hover {
1235
+ color: var(--rs-foreground);
1236
+ }
1237
+
1218
1238
  /* =============================================================================
1219
1239
  Link Styles
1220
1240
  ============================================================================= */
@@ -1350,17 +1370,17 @@
1350
1370
  width: 100%;
1351
1371
  display: flex;
1352
1372
  flex-direction: column;
1353
- gap: 8px;
1373
+ gap: 6px;
1354
1374
  }
1355
1375
 
1356
1376
  .rs-connect-wallet-row {
1357
1377
  display: flex;
1358
1378
  align-items: center;
1359
- gap: 12px;
1379
+ gap: 10px;
1360
1380
  width: 100%;
1361
- padding: 10px 12px;
1381
+ padding: 12px 14px;
1362
1382
  border: 1px solid var(--rs-border-surface);
1363
- border-radius: var(--rs-radius-md);
1383
+ border-radius: var(--rs-radius-lg);
1364
1384
  background: var(--rs-background-secondary);
1365
1385
  color: inherit;
1366
1386
  cursor: pointer;
@@ -1388,9 +1408,9 @@
1388
1408
  display: flex;
1389
1409
  align-items: center;
1390
1410
  justify-content: center;
1391
- width: 36px;
1392
- height: 36px;
1393
- min-width: 36px;
1411
+ width: 32px;
1412
+ height: 32px;
1413
+ min-width: 32px;
1394
1414
  border-radius: 50%;
1395
1415
  background: var(--rs-surface);
1396
1416
  color: var(--rs-muted);
@@ -1400,8 +1420,8 @@
1400
1420
  }
1401
1421
 
1402
1422
  .rs-connect-wallet-icon svg {
1403
- width: 18px;
1404
- height: 18px;
1423
+ width: 20px;
1424
+ height: 20px;
1405
1425
  }
1406
1426
 
1407
1427
  .rs-connect-wallet-icon--selected {
@@ -1448,14 +1468,14 @@
1448
1468
  }
1449
1469
 
1450
1470
  .rs-connect-wallet-label {
1451
- font-size: 12px;
1452
- color: var(--rs-muted);
1471
+ font-size: 14px;
1472
+ font-weight: 600;
1473
+ color: var(--rs-foreground);
1453
1474
  }
1454
1475
 
1455
1476
  .rs-connect-wallet-address {
1456
- font-size: 13px;
1457
- font-weight: 600;
1458
- color: var(--rs-foreground);
1477
+ font-size: 12px;
1478
+ color: var(--rs-muted);
1459
1479
  }
1460
1480
 
1461
1481
  .rs-connect-wallet-manage {
@@ -2515,9 +2535,203 @@
2515
2535
 
2516
2536
  .rs-deposit-address-dropdown-label {
2517
2537
  font-size: 11px;
2518
- color: var(--rs-muted-foreground);
2538
+ color: var(--rs-foreground);
2519
2539
  margin-bottom: 4px;
2520
2540
  font-weight: 500;
2541
+ opacity: 0.65;
2542
+ }
2543
+
2544
+ .rs-deposit-address-dropdown-label--with-min {
2545
+ display: flex;
2546
+ align-items: center;
2547
+ justify-content: space-between;
2548
+ gap: 6px;
2549
+ }
2550
+
2551
+ .rs-deposit-address-min {
2552
+ display: inline-flex;
2553
+ align-items: center;
2554
+ gap: 3px;
2555
+ }
2556
+
2557
+ .rs-deposit-address-min-icon {
2558
+ width: 12px;
2559
+ height: 12px;
2560
+ flex-shrink: 0;
2561
+ }
2562
+
2563
+ .rs-price-impact {
2564
+ width: 100%;
2565
+ margin-top: 10px;
2566
+ border-radius: var(--rs-radius-md);
2567
+ background: var(--color-gray2);
2568
+ overflow: hidden;
2569
+ }
2570
+
2571
+ .rs-price-impact-header {
2572
+ display: flex;
2573
+ align-items: center;
2574
+ gap: 8px;
2575
+ width: 100%;
2576
+ padding: 10px 14px;
2577
+ background: transparent;
2578
+ border: none;
2579
+ cursor: pointer;
2580
+ font-family: inherit;
2581
+ color: var(--rs-foreground);
2582
+ text-align: left;
2583
+ transition: background-color 0.15s;
2584
+ }
2585
+
2586
+ .rs-price-impact-header:hover {
2587
+ background: var(--rs-surface);
2588
+ }
2589
+
2590
+ .rs-price-impact-row-icon {
2591
+ display: inline-flex;
2592
+ align-items: center;
2593
+ justify-content: center;
2594
+ width: 18px;
2595
+ height: 18px;
2596
+ color: var(--rs-muted-foreground);
2597
+ flex-shrink: 0;
2598
+ }
2599
+
2600
+ .rs-price-impact-row-icon svg {
2601
+ width: 18px;
2602
+ height: 18px;
2603
+ }
2604
+
2605
+ .rs-price-impact-label {
2606
+ font-size: 13px;
2607
+ color: var(--rs-muted-foreground);
2608
+ font-weight: 500;
2609
+ }
2610
+
2611
+ .rs-price-impact-label strong {
2612
+ color: var(--rs-foreground);
2613
+ font-weight: 600;
2614
+ }
2615
+
2616
+ .rs-price-impact-info {
2617
+ color: var(--rs-muted-foreground);
2618
+ }
2619
+
2620
+ .rs-price-impact-info .rs-tooltip-trigger svg {
2621
+ width: 13px;
2622
+ height: 13px;
2623
+ display: block;
2624
+ }
2625
+
2626
+ .rs-price-impact-chevron {
2627
+ width: 14px;
2628
+ height: 14px;
2629
+ margin-left: auto;
2630
+ color: var(--rs-muted-foreground);
2631
+ flex-shrink: 0;
2632
+ transition: transform 0.2s ease;
2633
+ }
2634
+
2635
+ .rs-price-impact--open .rs-price-impact-chevron {
2636
+ transform: rotate(180deg);
2637
+ }
2638
+
2639
+ .rs-price-impact-panel {
2640
+ display: grid;
2641
+ grid-template-rows: 0fr;
2642
+ transition: grid-template-rows 0.25s ease;
2643
+ }
2644
+
2645
+ .rs-price-impact--open .rs-price-impact-panel {
2646
+ grid-template-rows: 1fr;
2647
+ }
2648
+
2649
+ .rs-price-impact-panel-inner {
2650
+ overflow: hidden;
2651
+ min-height: 0;
2652
+ }
2653
+
2654
+ .rs-price-impact-row {
2655
+ display: flex;
2656
+ align-items: center;
2657
+ gap: 8px;
2658
+ padding: 6px 14px 10px;
2659
+ font-size: 13px;
2660
+ }
2661
+
2662
+ .rs-price-impact-row:last-child {
2663
+ padding-bottom: 12px;
2664
+ }
2665
+
2666
+ /* =============================================================================
2667
+ Tooltip
2668
+ ============================================================================= */
2669
+
2670
+ .rs-tooltip {
2671
+ position: relative;
2672
+ display: inline-flex;
2673
+ align-items: center;
2674
+ justify-content: center;
2675
+ }
2676
+
2677
+ .rs-tooltip-trigger {
2678
+ display: inline-flex;
2679
+ align-items: center;
2680
+ justify-content: center;
2681
+ cursor: pointer;
2682
+ color: inherit;
2683
+ outline: none;
2684
+ border-radius: 50%;
2685
+ }
2686
+
2687
+ .rs-tooltip-trigger:focus-visible {
2688
+ box-shadow: 0 0 0 2px var(--rs-primary-tint);
2689
+ }
2690
+
2691
+ .rs-tooltip-bubble {
2692
+ position: fixed;
2693
+ z-index: 2147483000;
2694
+ transform: translate(-50%, calc(-100% - 8px));
2695
+ min-width: 120px;
2696
+ max-width: 220px;
2697
+ padding: 6px 8px;
2698
+ background: #202020;
2699
+ color: #fcfcfc;
2700
+ border-radius: 6px;
2701
+ font-size: 10.5px;
2702
+ line-height: 1.35;
2703
+ font-weight: 500;
2704
+ text-align: center;
2705
+ font-family:
2706
+ -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
2707
+ sans-serif;
2708
+ box-shadow:
2709
+ 0 4px 12px rgba(0, 0, 0, 0.18),
2710
+ 0 1px 3px rgba(0, 0, 0, 0.12);
2711
+ pointer-events: none;
2712
+ white-space: normal;
2713
+ animation: rs-tooltip-in 0.12s ease-out;
2714
+ }
2715
+
2716
+ .rs-tooltip-bubble::after {
2717
+ content: "";
2718
+ position: absolute;
2719
+ top: 100%;
2720
+ left: 50%;
2721
+ transform: translateX(-50%);
2722
+ border: 5px solid transparent;
2723
+ border-top-color: #202020;
2724
+ }
2725
+
2726
+ @keyframes rs-tooltip-in {
2727
+ from {
2728
+ opacity: 0;
2729
+ transform: translate(-50%, calc(-100% - 6px));
2730
+ }
2731
+ to {
2732
+ opacity: 1;
2733
+ transform: translate(-50%, calc(-100% - 8px));
2734
+ }
2521
2735
  }
2522
2736
 
2523
2737
  .rs-deposit-address-dropdown-trigger {
@@ -2576,6 +2790,7 @@
2576
2790
  gap: 2px;
2577
2791
  max-height: 200px;
2578
2792
  overflow-y: auto;
2793
+ overscroll-behavior: none;
2579
2794
  animation: rs-dropdown-in 0.12s ease-out;
2580
2795
  }
2581
2796
 
@@ -2610,28 +2825,30 @@
2610
2825
  display: flex;
2611
2826
  align-items: center;
2612
2827
  justify-content: center;
2613
- padding: 16px;
2828
+ padding: 4px;
2614
2829
  background: var(--rs-surface);
2615
- border-radius: var(--rs-radius-lg);
2830
+ border-radius: var(--rs-radius-md);
2616
2831
  margin: 4px 0;
2617
2832
  }
2618
2833
 
2834
+ .rs-deposit-address-qr canvas,
2619
2835
  .rs-deposit-address-qr svg {
2620
- border-radius: var(--rs-radius-sm);
2836
+ display: block;
2837
+ border-radius: var(--rs-radius-md);
2621
2838
  }
2622
2839
 
2623
2840
  .rs-deposit-address-info {
2624
2841
  display: flex;
2625
2842
  flex-direction: column;
2626
- align-items: center;
2627
- gap: 8px;
2843
+ gap: 0;
2628
2844
  width: 100%;
2629
2845
  }
2630
2846
 
2631
2847
  .rs-deposit-address-label {
2632
2848
  font-size: 13px;
2633
- font-weight: 500;
2634
- color: var(--rs-muted-foreground);
2849
+ font-weight: 600;
2850
+ color: var(--rs-muted);
2851
+ margin-bottom: 8px;
2635
2852
  }
2636
2853
 
2637
2854
  .rs-deposit-address-value {
@@ -2641,31 +2858,35 @@
2641
2858
  monospace;
2642
2859
  color: var(--rs-foreground);
2643
2860
  word-break: break-all;
2644
- text-align: center;
2645
- padding: 10px 12px;
2646
- background: var(--rs-surface);
2861
+ text-align: left;
2862
+ padding: 8px 12px;
2863
+ background: transparent;
2647
2864
  border: 1px solid var(--rs-border-surface);
2648
- border-radius: var(--rs-radius-sm);
2865
+ border-radius: var(--rs-radius-sm) var(--rs-radius-sm) 0 0;
2866
+ border-bottom: none;
2649
2867
  width: 100%;
2650
2868
  }
2651
2869
 
2652
2870
  .rs-deposit-address-copy {
2653
2871
  display: flex;
2654
2872
  align-items: center;
2873
+ justify-content: center;
2655
2874
  gap: 6px;
2875
+ width: 100%;
2656
2876
  padding: 8px 16px;
2657
- border: none;
2658
- background: transparent;
2659
- color: var(--rs-muted-foreground);
2877
+ border: 1px solid var(--rs-border-surface);
2878
+ border-radius: 0 0 var(--rs-radius-sm) var(--rs-radius-sm);
2879
+ background: var(--color-gray2);
2880
+ color: var(--rs-foreground);
2660
2881
  font-size: 13px;
2661
2882
  font-weight: 500;
2662
2883
  cursor: pointer;
2663
- transition: color 0.15s;
2884
+ transition: background 0.15s;
2664
2885
  font-family: inherit;
2665
2886
  }
2666
2887
 
2667
2888
  .rs-deposit-address-copy:hover {
2668
- color: var(--rs-foreground);
2889
+ background: var(--rs-surface);
2669
2890
  }
2670
2891
 
2671
2892
  .rs-deposit-address-balance {
@@ -2744,6 +2965,209 @@
2744
2965
  color: var(--rs-foreground);
2745
2966
  }
2746
2967
 
2968
+ /* =============================================================================
2969
+ Deposit Notifications (QR flow toast cards)
2970
+ ============================================================================= */
2971
+
2972
+ .rs-step--with-notifications {
2973
+ position: relative;
2974
+ }
2975
+
2976
+ .rs-deposit-notifications {
2977
+ position: absolute;
2978
+ bottom: 12px;
2979
+ left: 12px;
2980
+ right: 12px;
2981
+ z-index: 10;
2982
+ display: flex;
2983
+ flex-direction: column;
2984
+ gap: 8px;
2985
+ pointer-events: none;
2986
+ }
2987
+
2988
+ .rs-deposit-notification {
2989
+ pointer-events: auto;
2990
+ background: var(--rs-background);
2991
+ border: 1px solid var(--rs-border);
2992
+ border-radius: var(--rs-radius-lg);
2993
+ overflow: hidden;
2994
+ box-shadow:
2995
+ 0 -4px 20px rgba(0, 0, 0, 0.10),
2996
+ 0 -1px 6px rgba(0, 0, 0, 0.06);
2997
+ animation: rs-notification-slide-up 0.3s ease-out;
2998
+ }
2999
+
3000
+ @keyframes rs-notification-slide-up {
3001
+ from {
3002
+ opacity: 0;
3003
+ transform: translateY(16px);
3004
+ }
3005
+ to {
3006
+ opacity: 1;
3007
+ transform: translateY(0);
3008
+ }
3009
+ }
3010
+
3011
+ .rs-deposit-notification-header {
3012
+ display: flex;
3013
+ align-items: flex-start;
3014
+ gap: 10px;
3015
+ padding: 14px 14px 0;
3016
+ }
3017
+
3018
+ .rs-deposit-notification-icon {
3019
+ flex-shrink: 0;
3020
+ padding-top: 1px;
3021
+ }
3022
+
3023
+ .rs-deposit-notification-badge {
3024
+ width: 32px;
3025
+ height: 32px;
3026
+ border-radius: 50%;
3027
+ display: flex;
3028
+ align-items: center;
3029
+ justify-content: center;
3030
+ }
3031
+
3032
+ .rs-deposit-notification-badge svg {
3033
+ width: 14px;
3034
+ height: 14px;
3035
+ }
3036
+
3037
+ .rs-deposit-notification-badge .rs-spinner {
3038
+ width: 16px;
3039
+ height: 16px;
3040
+ }
3041
+
3042
+ .rs-deposit-notification-badge--complete {
3043
+ background-color: var(--rs-success-tint);
3044
+ color: var(--rs-success);
3045
+ }
3046
+
3047
+ .rs-deposit-notification-badge--failed {
3048
+ background-color: var(--rs-error-tint);
3049
+ color: var(--rs-error);
3050
+ }
3051
+
3052
+ .rs-deposit-notification-badge--processing {
3053
+ background-color: var(--rs-primary-tint);
3054
+ color: var(--rs-primary);
3055
+ }
3056
+
3057
+ .rs-deposit-notification-content {
3058
+ flex: 1;
3059
+ min-width: 0;
3060
+ }
3061
+
3062
+ .rs-deposit-notification-title {
3063
+ font-size: 14px;
3064
+ font-weight: 600;
3065
+ color: var(--rs-foreground);
3066
+ line-height: 1.3;
3067
+ }
3068
+
3069
+ .rs-deposit-notification-subtitle {
3070
+ font-size: 12px;
3071
+ color: var(--rs-muted-foreground);
3072
+ line-height: 1.4;
3073
+ margin-top: 2px;
3074
+ }
3075
+
3076
+ .rs-deposit-notification-close {
3077
+ flex-shrink: 0;
3078
+ width: 24px;
3079
+ height: 24px;
3080
+ display: flex;
3081
+ align-items: center;
3082
+ justify-content: center;
3083
+ border: none;
3084
+ background: transparent;
3085
+ color: var(--rs-muted-foreground);
3086
+ cursor: pointer;
3087
+ border-radius: 4px;
3088
+ padding: 0;
3089
+ transition: color 0.15s, background 0.15s;
3090
+ }
3091
+
3092
+ .rs-deposit-notification-close:hover {
3093
+ color: var(--rs-foreground);
3094
+ background: var(--rs-surface);
3095
+ }
3096
+
3097
+ .rs-deposit-notification-close svg {
3098
+ width: 16px;
3099
+ height: 16px;
3100
+ }
3101
+
3102
+ .rs-deposit-notification-details {
3103
+ margin: 10px 14px 0;
3104
+ padding: 8px 10px;
3105
+ background: var(--rs-surface);
3106
+ border-radius: var(--rs-radius-sm);
3107
+ }
3108
+
3109
+ .rs-deposit-notification-row {
3110
+ display: flex;
3111
+ align-items: center;
3112
+ justify-content: space-between;
3113
+ padding: 5px 0;
3114
+ }
3115
+
3116
+ .rs-deposit-notification-row + .rs-deposit-notification-row {
3117
+ border-top: 1px solid var(--rs-border-surface);
3118
+ }
3119
+
3120
+ .rs-deposit-notification-label {
3121
+ font-size: 12px;
3122
+ color: var(--rs-muted-foreground);
3123
+ }
3124
+
3125
+ .rs-deposit-notification-value {
3126
+ font-size: 12px;
3127
+ font-weight: 500;
3128
+ color: var(--rs-muted);
3129
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
3130
+ }
3131
+
3132
+ .rs-deposit-notification-link {
3133
+ display: inline-flex;
3134
+ align-items: center;
3135
+ gap: 3px;
3136
+ color: var(--rs-muted);
3137
+ text-decoration: none;
3138
+ transition: color 0.15s;
3139
+ }
3140
+
3141
+ .rs-deposit-notification-link:hover {
3142
+ color: var(--rs-foreground);
3143
+ }
3144
+
3145
+ .rs-deposit-notification-link-icon {
3146
+ width: 10px;
3147
+ height: 10px;
3148
+ }
3149
+
3150
+ .rs-deposit-notification-toggle {
3151
+ display: flex;
3152
+ align-items: center;
3153
+ justify-content: center;
3154
+ width: 100%;
3155
+ padding: 10px 0;
3156
+ border: none;
3157
+ border-top: 1px solid var(--rs-border-surface);
3158
+ background: transparent;
3159
+ color: var(--rs-muted-foreground);
3160
+ font-size: 12px;
3161
+ font-weight: 500;
3162
+ cursor: pointer;
3163
+ transition: color 0.15s;
3164
+ margin-top: 10px;
3165
+ }
3166
+
3167
+ .rs-deposit-notification-toggle:hover {
3168
+ color: var(--rs-foreground);
3169
+ }
3170
+
2747
3171
  /* =============================================================================
2748
3172
  Step Indicator (numbered circles with dotted line)
2749
3173
  ============================================================================= */
@@ -74,6 +74,14 @@ interface ErrorEventData {
74
74
  message: string;
75
75
  code?: string;
76
76
  }
77
+ interface OutputTokenRule {
78
+ match: {
79
+ chain?: string;
80
+ token?: string;
81
+ symbol?: string;
82
+ };
83
+ outputToken: string;
84
+ }
77
85
  interface RouteConfig {
78
86
  sourceChains?: number[];
79
87
  sourceTokens?: string[];
@@ -93,6 +101,8 @@ interface DepositModalProps {
93
101
  defaultAmount?: string;
94
102
  recipient: Address;
95
103
  postBridgeActions?: PostBridgeAction[];
104
+ outputTokenRules?: OutputTokenRule[];
105
+ rejectUnmapped?: boolean;
96
106
  backendUrl?: string;
97
107
  solanaRpcUrl?: string;
98
108
  rhinestoneApiKey?: string;
@@ -224,4 +234,4 @@ type WithdrawEvent = {
224
234
  };
225
235
  type ModalEvent = DepositEvent | WithdrawEvent;
226
236
 
227
- 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 };
@@ -74,6 +74,14 @@ interface ErrorEventData {
74
74
  message: string;
75
75
  code?: string;
76
76
  }
77
+ interface OutputTokenRule {
78
+ match: {
79
+ chain?: string;
80
+ token?: string;
81
+ symbol?: string;
82
+ };
83
+ outputToken: string;
84
+ }
77
85
  interface RouteConfig {
78
86
  sourceChains?: number[];
79
87
  sourceTokens?: string[];
@@ -93,6 +101,8 @@ interface DepositModalProps {
93
101
  defaultAmount?: string;
94
102
  recipient: Address;
95
103
  postBridgeActions?: PostBridgeAction[];
104
+ outputTokenRules?: OutputTokenRule[];
105
+ rejectUnmapped?: boolean;
96
106
  backendUrl?: string;
97
107
  solanaRpcUrl?: string;
98
108
  rhinestoneApiKey?: string;
@@ -224,4 +234,4 @@ type WithdrawEvent = {
224
234
  };
225
235
  type ModalEvent = DepositEvent | WithdrawEvent;
226
236
 
227
- 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 _chunk75LRORPOcjs = require('./chunk-75LRORPO.cjs');
4
- require('./chunk-JZWCK7C3.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 = _chunk75LRORPOcjs.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-DjaZ9sa8.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, l as WithdrawSubmittedEventData } from './types-DjaZ9sa8.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-ymKENnUK.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, j as WithdrawFailedEventData, l as WithdrawSubmittedEventData } from './types-ymKENnUK.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-CULXRW6U.mjs";
4
- import "./chunk-FWGLRTWF.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
  };