@rango-dev/widget-embedded 0.14.1-next.2 → 0.14.1-next.21

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 (167) hide show
  1. package/dist/Widget.d.ts.map +1 -1
  2. package/dist/components/BlockchainList/BlockchainList.styles.d.ts +8 -0
  3. package/dist/components/BlockchainList/BlockchainList.styles.d.ts.map +1 -1
  4. package/dist/components/BlockchainsSection/BlockchainsSection.d.ts.map +1 -1
  5. package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts +4 -0
  6. package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts.map +1 -1
  7. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +60 -0
  8. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts.map +1 -1
  9. package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
  10. package/dist/components/ConfirmWalletsModal/WalletList.d.ts.map +1 -1
  11. package/dist/components/ConfirmWalletsModal/WalletList.styles.d.ts +12 -0
  12. package/dist/components/ConfirmWalletsModal/WalletList.styles.d.ts.map +1 -1
  13. package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts +16 -0
  14. package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts.map +1 -1
  15. package/dist/components/Layout/Layout.styles.d.ts +12 -0
  16. package/dist/components/Layout/Layout.styles.d.ts.map +1 -1
  17. package/dist/components/LoadingLiquiditySourceList/LoadingLiquiditySourceList.styles.d.ts +4 -0
  18. package/dist/components/LoadingLiquiditySourceList/LoadingLiquiditySourceList.styles.d.ts.map +1 -1
  19. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +12 -0
  20. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts.map +1 -1
  21. package/dist/components/NoRoutes/NoRoutes.styles.d.ts +12 -0
  22. package/dist/components/NoRoutes/NoRoutes.styles.d.ts.map +1 -1
  23. package/dist/components/NotificationContent/NotificationContent.styles.d.ts +16 -0
  24. package/dist/components/NotificationContent/NotificationContent.styles.d.ts.map +1 -1
  25. package/dist/components/RouteErrors/RouteErrors.styles.d.ts +16 -0
  26. package/dist/components/RouteErrors/RouteErrors.styles.d.ts.map +1 -1
  27. package/dist/components/SearchInput/SearchInput.styles.d.ts +4 -0
  28. package/dist/components/SearchInput/SearchInput.styles.d.ts.map +1 -1
  29. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts +16 -0
  30. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts.map +1 -1
  31. package/dist/components/Slippage/Slippage.styles.d.ts +16 -0
  32. package/dist/components/Slippage/Slippage.styles.d.ts.map +1 -1
  33. package/dist/components/SwapDetails/SwapDetails.Placeholder.d.ts.map +1 -1
  34. package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
  35. package/dist/components/SwapDetails/SwapDetails.styles.d.ts +24 -0
  36. package/dist/components/SwapDetails/SwapDetails.styles.d.ts.map +1 -1
  37. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.styles.d.ts +4 -0
  38. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.styles.d.ts.map +1 -1
  39. package/dist/components/SwapDetailsModal/SwapDetailsModal.styles.d.ts +4 -0
  40. package/dist/components/SwapDetailsModal/SwapDetailsModal.styles.d.ts.map +1 -1
  41. package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts +16 -0
  42. package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts.map +1 -1
  43. package/dist/components/TokenList/TokenList.styles.d.ts +40 -0
  44. package/dist/components/TokenList/TokenList.styles.d.ts.map +1 -1
  45. package/dist/components/WalletModal/WalletModalContent.styles.d.ts +16 -0
  46. package/dist/components/WalletModal/WalletModalContent.styles.d.ts.map +1 -1
  47. package/dist/constants/configs.d.ts +2 -0
  48. package/dist/constants/configs.d.ts.map +1 -0
  49. package/dist/constants/errors.d.ts +1 -1
  50. package/dist/constants/errors.d.ts.map +1 -1
  51. package/dist/constants/fonts.d.ts +2 -0
  52. package/dist/constants/fonts.d.ts.map +1 -0
  53. package/dist/{constants.d.ts → constants/index.d.ts} +1 -1
  54. package/dist/constants/index.d.ts.map +1 -0
  55. package/dist/constants/languages.d.ts +11 -0
  56. package/dist/constants/languages.d.ts.map +1 -0
  57. package/dist/constants/messages.d.ts +1 -1
  58. package/dist/constants/messages.d.ts.map +1 -1
  59. package/dist/hooks/useLanguage.d.ts +11 -0
  60. package/dist/hooks/useLanguage.d.ts.map +1 -0
  61. package/dist/hooks/usePrepareBlockchainList/index.d.ts +2 -0
  62. package/dist/hooks/usePrepareBlockchainList/index.d.ts.map +1 -0
  63. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.d.ts +2 -0
  64. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.d.ts.map +1 -0
  65. package/dist/hooks/{usePrepareBlockchainList.d.ts → usePrepareBlockchainList/usePrepareBlockchainList.d.ts} +1 -9
  66. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.d.ts.map +1 -0
  67. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +10 -0
  68. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts.map +1 -0
  69. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts +3 -0
  70. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts.map +1 -0
  71. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.d.ts +2 -0
  72. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.d.ts.map +1 -0
  73. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts +11 -0
  74. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts.map +1 -0
  75. package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
  76. package/dist/hooks/useTheme.d.ts +2 -2
  77. package/dist/hooks/useTheme.d.ts.map +1 -1
  78. package/dist/index.d.ts +9 -6
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +1 -1
  81. package/dist/index.js.map +4 -4
  82. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  83. package/dist/pages/Home.d.ts.map +1 -1
  84. package/dist/pages/LanguagePage.d.ts.map +1 -1
  85. package/dist/store/bestRoute.d.ts.map +1 -1
  86. package/dist/store/settings.d.ts +15 -6
  87. package/dist/store/settings.d.ts.map +1 -1
  88. package/dist/types/config.d.ts +11 -13
  89. package/dist/types/config.d.ts.map +1 -1
  90. package/dist/utils/colors.d.ts +11 -0
  91. package/dist/utils/colors.d.ts.map +1 -0
  92. package/dist/utils/common.d.ts +0 -4
  93. package/dist/utils/common.d.ts.map +1 -1
  94. package/dist/utils/configs.d.ts +2 -0
  95. package/dist/utils/configs.d.ts.map +1 -1
  96. package/dist/utils/hash.d.ts +2 -0
  97. package/dist/utils/hash.d.ts.map +1 -0
  98. package/dist/utils/meta.d.ts +3 -1
  99. package/dist/utils/meta.d.ts.map +1 -1
  100. package/dist/utils/routing.d.ts +8 -1
  101. package/dist/utils/routing.d.ts.map +1 -1
  102. package/dist/utils/swap.d.ts.map +1 -1
  103. package/dist/utils/time.d.ts.map +1 -1
  104. package/dist/utils/ui.d.ts +13 -0
  105. package/dist/utils/ui.d.ts.map +1 -0
  106. package/dist/utils/wallets.d.ts +0 -1
  107. package/dist/utils/wallets.d.ts.map +1 -1
  108. package/package.json +6 -6
  109. package/src/Widget.tsx +15 -3
  110. package/src/components/BlockchainsSection/BlockchainsSection.tsx +21 -6
  111. package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +5 -11
  112. package/src/components/ConfirmWalletsModal/WalletList.tsx +35 -24
  113. package/src/components/Layout/Layout.styles.ts +7 -2
  114. package/src/components/LoadingSwapDetails/LoadingSwapDetails.styles.ts +1 -1
  115. package/src/components/NoRoutes/NoRoutes.helper.ts +4 -4
  116. package/src/components/NoRoutes/NoRoutes.tsx +2 -2
  117. package/src/components/NotificationContent/NotificationContent.tsx +1 -1
  118. package/src/components/NotificationContent/NotificationNotFound.tsx +1 -1
  119. package/src/components/RouteErrors/RouteErrors.tsx +2 -2
  120. package/src/components/RouteErrors/RouteErrorsModal.tsx +6 -6
  121. package/src/components/RouteErrors/RouteErrorsModalItem.tsx +1 -1
  122. package/src/components/Slippage/SlippageTooltipContent.tsx +1 -1
  123. package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +5 -6
  124. package/src/components/SwapDetails/SwapDetails.tsx +6 -10
  125. package/src/components/SwapDetailsModal/SwapDetailsCompleteModal.tsx +1 -1
  126. package/src/components/SwapsGroup/SwapsGroup.tsx +2 -2
  127. package/src/components/TokenList/TokenList.styles.ts +1 -1
  128. package/src/components/TokenList/TokenList.tsx +2 -2
  129. package/src/constants/configs.ts +1 -0
  130. package/src/constants/errors.ts +44 -41
  131. package/src/constants/fonts.ts +1 -0
  132. package/src/constants/languages.ts +19 -0
  133. package/src/constants/messages.ts +7 -5
  134. package/src/hooks/useConfirmSwap.ts +1 -1
  135. package/src/hooks/useLanguage.ts +27 -0
  136. package/src/hooks/usePrepareBlockchainList/index.ts +1 -0
  137. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.ts +1 -0
  138. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.ts +108 -0
  139. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.ts +3101 -0
  140. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.ts +273 -0
  141. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.ts +38 -0
  142. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.ts +12 -0
  143. package/src/hooks/useSyncStoresWithConfig.ts +49 -1
  144. package/src/hooks/useTheme.ts +44 -26
  145. package/src/index.ts +33 -26
  146. package/src/pages/ConfirmSwapPage.tsx +9 -18
  147. package/src/pages/Home.tsx +6 -7
  148. package/src/pages/LanguagePage.tsx +16 -39
  149. package/src/pages/SettingsPage.tsx +1 -1
  150. package/src/store/bestRoute.ts +12 -38
  151. package/src/store/settings.ts +46 -4
  152. package/src/types/config.ts +10 -12
  153. package/src/utils/colors.ts +109 -0
  154. package/src/utils/common.ts +0 -49
  155. package/src/utils/configs.ts +3 -0
  156. package/src/utils/hash.ts +27 -0
  157. package/src/utils/meta.ts +11 -1
  158. package/src/utils/routing.ts +58 -0
  159. package/src/utils/settings.ts +1 -1
  160. package/src/utils/swap.ts +15 -20
  161. package/src/utils/time.ts +2 -4
  162. package/src/utils/ui.ts +72 -0
  163. package/src/utils/wallets.ts +4 -25
  164. package/dist/constants.d.ts.map +0 -1
  165. package/dist/hooks/usePrepareBlockchainList.d.ts.map +0 -1
  166. package/src/hooks/usePrepareBlockchainList.ts +0 -125
  167. /package/src/{constants.ts → constants/index.ts} +0 -0
@@ -9,8 +9,10 @@ export declare const Container: import("@stitches/react/types/styled-component")
9
9
  lg: string;
10
10
  }, {
11
11
  colors: {
12
+ primary: string;
12
13
  primary500: string;
13
14
  primary600: string;
15
+ secondary: string;
14
16
  secondary100: string;
15
17
  secondary200: string;
16
18
  secondary300: string;
@@ -20,6 +22,7 @@ export declare const Container: import("@stitches/react/types/styled-component")
20
22
  secondary700: string;
21
23
  secondary800: string;
22
24
  secondary900: string;
25
+ neutral: string;
23
26
  neutral100: string;
24
27
  neutral200: string;
25
28
  neutral300: string;
@@ -39,6 +42,7 @@ export declare const Container: import("@stitches/react/types/styled-component")
39
42
  warning500: string;
40
43
  warning600: string;
41
44
  warning700: string;
45
+ info: string;
42
46
  info100: string;
43
47
  info300: string;
44
48
  info500: string;
@@ -162,8 +166,10 @@ export declare const Title: import("@stitches/react/types/styled-component").Sty
162
166
  lg: string;
163
167
  }, {
164
168
  colors: {
169
+ primary: string;
165
170
  primary500: string;
166
171
  primary600: string;
172
+ secondary: string;
167
173
  secondary100: string;
168
174
  secondary200: string;
169
175
  secondary300: string;
@@ -173,6 +179,7 @@ export declare const Title: import("@stitches/react/types/styled-component").Sty
173
179
  secondary700: string;
174
180
  secondary800: string;
175
181
  secondary900: string;
182
+ neutral: string;
176
183
  neutral100: string;
177
184
  neutral200: string;
178
185
  neutral300: string;
@@ -192,6 +199,7 @@ export declare const Title: import("@stitches/react/types/styled-component").Sty
192
199
  warning500: string;
193
200
  warning600: string;
194
201
  warning700: string;
202
+ info: string;
195
203
  info100: string;
196
204
  info300: string;
197
205
  info500: string;
@@ -315,8 +323,10 @@ export declare const List: import("@stitches/react/types/styled-component").Styl
315
323
  lg: string;
316
324
  }, {
317
325
  colors: {
326
+ primary: string;
318
327
  primary500: string;
319
328
  primary600: string;
329
+ secondary: string;
320
330
  secondary100: string;
321
331
  secondary200: string;
322
332
  secondary300: string;
@@ -326,6 +336,7 @@ export declare const List: import("@stitches/react/types/styled-component").Styl
326
336
  secondary700: string;
327
337
  secondary800: string;
328
338
  secondary900: string;
339
+ neutral: string;
329
340
  neutral100: string;
330
341
  neutral200: string;
331
342
  neutral300: string;
@@ -345,6 +356,7 @@ export declare const List: import("@stitches/react/types/styled-component").Styl
345
356
  warning500: string;
346
357
  warning600: string;
347
358
  warning700: string;
359
+ info: string;
348
360
  info100: string;
349
361
  info300: string;
350
362
  info500: string;
@@ -468,8 +480,10 @@ export declare const Tag: import("@stitches/react/types/styled-component").Style
468
480
  lg: string;
469
481
  }, {
470
482
  colors: {
483
+ primary: string;
471
484
  primary500: string;
472
485
  primary600: string;
486
+ secondary: string;
473
487
  secondary100: string;
474
488
  secondary200: string;
475
489
  secondary300: string;
@@ -479,6 +493,7 @@ export declare const Tag: import("@stitches/react/types/styled-component").Style
479
493
  secondary700: string;
480
494
  secondary800: string;
481
495
  secondary900: string;
496
+ neutral: string;
482
497
  neutral100: string;
483
498
  neutral200: string;
484
499
  neutral300: string;
@@ -498,6 +513,7 @@ export declare const Tag: import("@stitches/react/types/styled-component").Style
498
513
  warning500: string;
499
514
  warning600: string;
500
515
  warning700: string;
516
+ info: string;
501
517
  info100: string;
502
518
  info300: string;
503
519
  info500: string;
@@ -621,8 +637,10 @@ export declare const TagTitle: import("@stitches/react/types/styled-component").
621
637
  lg: string;
622
638
  }, {
623
639
  colors: {
640
+ primary: string;
624
641
  primary500: string;
625
642
  primary600: string;
643
+ secondary: string;
626
644
  secondary100: string;
627
645
  secondary200: string;
628
646
  secondary300: string;
@@ -632,6 +650,7 @@ export declare const TagTitle: import("@stitches/react/types/styled-component").
632
650
  secondary700: string;
633
651
  secondary800: string;
634
652
  secondary900: string;
653
+ neutral: string;
635
654
  neutral100: string;
636
655
  neutral200: string;
637
656
  neutral300: string;
@@ -651,6 +670,7 @@ export declare const TagTitle: import("@stitches/react/types/styled-component").
651
670
  warning500: string;
652
671
  warning600: string;
653
672
  warning700: string;
673
+ info: string;
654
674
  info100: string;
655
675
  info300: string;
656
676
  info500: string;
@@ -774,8 +794,10 @@ export declare const BalanceContainer: import("@stitches/react/types/styled-comp
774
794
  lg: string;
775
795
  }, {
776
796
  colors: {
797
+ primary: string;
777
798
  primary500: string;
778
799
  primary600: string;
800
+ secondary: string;
779
801
  secondary100: string;
780
802
  secondary200: string;
781
803
  secondary300: string;
@@ -785,6 +807,7 @@ export declare const BalanceContainer: import("@stitches/react/types/styled-comp
785
807
  secondary700: string;
786
808
  secondary800: string;
787
809
  secondary900: string;
810
+ neutral: string;
788
811
  neutral100: string;
789
812
  neutral200: string;
790
813
  neutral300: string;
@@ -804,6 +827,7 @@ export declare const BalanceContainer: import("@stitches/react/types/styled-comp
804
827
  warning500: string;
805
828
  warning600: string;
806
829
  warning700: string;
830
+ info: string;
807
831
  info100: string;
808
832
  info300: string;
809
833
  info500: string;
@@ -927,8 +951,10 @@ export declare const End: import("@stitches/react/types/styled-component").Style
927
951
  lg: string;
928
952
  }, {
929
953
  colors: {
954
+ primary: string;
930
955
  primary500: string;
931
956
  primary600: string;
957
+ secondary: string;
932
958
  secondary100: string;
933
959
  secondary200: string;
934
960
  secondary300: string;
@@ -938,6 +964,7 @@ export declare const End: import("@stitches/react/types/styled-component").Style
938
964
  secondary700: string;
939
965
  secondary800: string;
940
966
  secondary900: string;
967
+ neutral: string;
941
968
  neutral100: string;
942
969
  neutral200: string;
943
970
  neutral300: string;
@@ -957,6 +984,7 @@ export declare const End: import("@stitches/react/types/styled-component").Style
957
984
  warning500: string;
958
985
  warning600: string;
959
986
  warning700: string;
987
+ info: string;
960
988
  info100: string;
961
989
  info300: string;
962
990
  info500: string;
@@ -1080,8 +1108,10 @@ export declare const Description: import("@stitches/react/types/styled-component
1080
1108
  lg: string;
1081
1109
  }, {
1082
1110
  colors: {
1111
+ primary: string;
1083
1112
  primary500: string;
1084
1113
  primary600: string;
1114
+ secondary: string;
1085
1115
  secondary100: string;
1086
1116
  secondary200: string;
1087
1117
  secondary300: string;
@@ -1091,6 +1121,7 @@ export declare const Description: import("@stitches/react/types/styled-component
1091
1121
  secondary700: string;
1092
1122
  secondary800: string;
1093
1123
  secondary900: string;
1124
+ neutral: string;
1094
1125
  neutral100: string;
1095
1126
  neutral200: string;
1096
1127
  neutral300: string;
@@ -1110,6 +1141,7 @@ export declare const Description: import("@stitches/react/types/styled-component
1110
1141
  warning500: string;
1111
1142
  warning600: string;
1112
1143
  warning700: string;
1144
+ info: string;
1113
1145
  info100: string;
1114
1146
  info300: string;
1115
1147
  info500: string;
@@ -1233,8 +1265,10 @@ export declare const ImageSection: import("@stitches/react/types/styled-componen
1233
1265
  lg: string;
1234
1266
  }, {
1235
1267
  colors: {
1268
+ primary: string;
1236
1269
  primary500: string;
1237
1270
  primary600: string;
1271
+ secondary: string;
1238
1272
  secondary100: string;
1239
1273
  secondary200: string;
1240
1274
  secondary300: string;
@@ -1244,6 +1278,7 @@ export declare const ImageSection: import("@stitches/react/types/styled-componen
1244
1278
  secondary700: string;
1245
1279
  secondary800: string;
1246
1280
  secondary900: string;
1281
+ neutral: string;
1247
1282
  neutral100: string;
1248
1283
  neutral200: string;
1249
1284
  neutral300: string;
@@ -1263,6 +1298,7 @@ export declare const ImageSection: import("@stitches/react/types/styled-componen
1263
1298
  warning500: string;
1264
1299
  warning600: string;
1265
1300
  warning700: string;
1301
+ info: string;
1266
1302
  info100: string;
1267
1303
  info300: string;
1268
1304
  info500: string;
@@ -1386,8 +1422,10 @@ export declare const Pin: import("@stitches/react/types/styled-component").Style
1386
1422
  lg: string;
1387
1423
  }, {
1388
1424
  colors: {
1425
+ primary: string;
1389
1426
  primary500: string;
1390
1427
  primary600: string;
1428
+ secondary: string;
1391
1429
  secondary100: string;
1392
1430
  secondary200: string;
1393
1431
  secondary300: string;
@@ -1397,6 +1435,7 @@ export declare const Pin: import("@stitches/react/types/styled-component").Style
1397
1435
  secondary700: string;
1398
1436
  secondary800: string;
1399
1437
  secondary900: string;
1438
+ neutral: string;
1400
1439
  neutral100: string;
1401
1440
  neutral200: string;
1402
1441
  neutral300: string;
@@ -1416,6 +1455,7 @@ export declare const Pin: import("@stitches/react/types/styled-component").Style
1416
1455
  warning500: string;
1417
1456
  warning600: string;
1418
1457
  warning700: string;
1458
+ info: string;
1419
1459
  info100: string;
1420
1460
  info300: string;
1421
1461
  info500: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TokenList.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,UAAU,EAAE,MAAM,eAAe,CAAC;AAEnD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIpB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGtB,CAAC;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMvB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAOd,CAAC"}
@@ -8,8 +8,10 @@ export declare const IconContainer: import("@stitches/react/types/styled-compone
8
8
  lg: string;
9
9
  }, {
10
10
  colors: {
11
+ primary: string;
11
12
  primary500: string;
12
13
  primary600: string;
14
+ secondary: string;
13
15
  secondary100: string;
14
16
  secondary200: string;
15
17
  secondary300: string;
@@ -19,6 +21,7 @@ export declare const IconContainer: import("@stitches/react/types/styled-compone
19
21
  secondary700: string;
20
22
  secondary800: string;
21
23
  secondary900: string;
24
+ neutral: string;
22
25
  neutral100: string;
23
26
  neutral200: string;
24
27
  neutral300: string;
@@ -38,6 +41,7 @@ export declare const IconContainer: import("@stitches/react/types/styled-compone
38
41
  warning500: string;
39
42
  warning600: string;
40
43
  warning700: string;
44
+ info: string;
41
45
  info100: string;
42
46
  info300: string;
43
47
  info500: string;
@@ -161,8 +165,10 @@ export declare const LogoContainer: import("@stitches/react/types/styled-compone
161
165
  lg: string;
162
166
  }, {
163
167
  colors: {
168
+ primary: string;
164
169
  primary500: string;
165
170
  primary600: string;
171
+ secondary: string;
166
172
  secondary100: string;
167
173
  secondary200: string;
168
174
  secondary300: string;
@@ -172,6 +178,7 @@ export declare const LogoContainer: import("@stitches/react/types/styled-compone
172
178
  secondary700: string;
173
179
  secondary800: string;
174
180
  secondary900: string;
181
+ neutral: string;
175
182
  neutral100: string;
176
183
  neutral200: string;
177
184
  neutral300: string;
@@ -191,6 +198,7 @@ export declare const LogoContainer: import("@stitches/react/types/styled-compone
191
198
  warning500: string;
192
199
  warning600: string;
193
200
  warning700: string;
201
+ info: string;
194
202
  info100: string;
195
203
  info300: string;
196
204
  info500: string;
@@ -314,8 +322,10 @@ export declare const Spinner: import("@stitches/react/types/styled-component").S
314
322
  lg: string;
315
323
  }, {
316
324
  colors: {
325
+ primary: string;
317
326
  primary500: string;
318
327
  primary600: string;
328
+ secondary: string;
319
329
  secondary100: string;
320
330
  secondary200: string;
321
331
  secondary300: string;
@@ -325,6 +335,7 @@ export declare const Spinner: import("@stitches/react/types/styled-component").S
325
335
  secondary700: string;
326
336
  secondary800: string;
327
337
  secondary900: string;
338
+ neutral: string;
328
339
  neutral100: string;
329
340
  neutral200: string;
330
341
  neutral300: string;
@@ -344,6 +355,7 @@ export declare const Spinner: import("@stitches/react/types/styled-component").S
344
355
  warning500: string;
345
356
  warning600: string;
346
357
  warning700: string;
358
+ info: string;
347
359
  info100: string;
348
360
  info300: string;
349
361
  info500: string;
@@ -467,8 +479,10 @@ export declare const WalletImageContainer: import("@stitches/react/types/styled-
467
479
  lg: string;
468
480
  }, {
469
481
  colors: {
482
+ primary: string;
470
483
  primary500: string;
471
484
  primary600: string;
485
+ secondary: string;
472
486
  secondary100: string;
473
487
  secondary200: string;
474
488
  secondary300: string;
@@ -478,6 +492,7 @@ export declare const WalletImageContainer: import("@stitches/react/types/styled-
478
492
  secondary700: string;
479
493
  secondary800: string;
480
494
  secondary900: string;
495
+ neutral: string;
481
496
  neutral100: string;
482
497
  neutral200: string;
483
498
  neutral300: string;
@@ -497,6 +512,7 @@ export declare const WalletImageContainer: import("@stitches/react/types/styled-
497
512
  warning500: string;
498
513
  warning600: string;
499
514
  warning700: string;
515
+ info: string;
500
516
  info100: string;
501
517
  info300: string;
502
518
  info500: string;
@@ -1 +1 @@
1
- {"version":3,"file":"WalletModalContent.styles.d.ts","sourceRoot":"","sources":["../../../src/components/WalletModal/WalletModalContent.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQxB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAExB,CAAC;AAWH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAYlB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAI/B,CAAC"}
1
+ {"version":3,"file":"WalletModalContent.styles.d.ts","sourceRoot":"","sources":["../../../src/components/WalletModal/WalletModalContent.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQxB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAExB,CAAC;AAWH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAYlB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAI/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const BLOCKCHAIN_LIST_SIZE = 10;
2
+ //# sourceMappingURL=configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../src/constants/configs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,KAAK,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ConfirmSwapError } from '../types';
2
- export declare const errorMessages: {
2
+ export declare const errorMessages: () => {
3
3
  genericServerError: string;
4
4
  liquiditySourcesError: {
5
5
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCzB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,UAWjE"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCzB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,UAWjE"}
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_FONT_FAMILY = "Roboto";
2
+ //# sourceMappingURL=fonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/constants/fonts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,WAAW,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export declare const RANGO_PUBLIC_API_KEY = "c6381a79-2817-4602-83bf-6a641a409e32";
2
- //# sourceMappingURL=constants.d.ts.map
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,yCAAyC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { FlagPropTypes, Language } from '@rango-dev/ui';
3
+ export type LanguageItem = {
4
+ title: string;
5
+ label: string;
6
+ local: Language;
7
+ SVGFlag: React.ComponentType<FlagPropTypes>;
8
+ };
9
+ export declare const LANGUAGES: LanguageItem[];
10
+ export declare const DEFAULT_LANGUAGE = "en";
11
+ //# sourceMappingURL=languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/constants/languages.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI7D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,YAAY,EAKnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAO,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const swapButtonTitles: {
1
+ export declare const swapButtonTitles: () => {
2
2
  connectWallet: string;
3
3
  swap: string;
4
4
  swapAnyway: string;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;CAO5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { LanguageItem } from '../constants/languages';
2
+ import { type Language } from '@rango-dev/ui';
3
+ interface UseLanguage {
4
+ languages: LanguageItem[];
5
+ defaultLanguage: Language;
6
+ activeLanguage: Language;
7
+ changeLanguage: (language: Language) => void;
8
+ }
9
+ export declare function useLanguage(): UseLanguage;
10
+ export {};
11
+ //# sourceMappingURL=useLanguage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK9C,UAAU,WAAW;IACnB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,QAAQ,CAAC;IAC1B,cAAc,EAAE,QAAQ,CAAC;IACzB,cAAc,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,WAAW,IAAI,WAAW,CAYzC"}
@@ -0,0 +1,2 @@
1
+ export { usePrepareBlockchainList } from './usePrepareBlockchainList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MOST_USED_BLOCKChAINS: string[];
2
+ //# sourceMappingURL=usePrepareBlockchainList.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrepareBlockchainList.constants.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAA+B,CAAC"}
@@ -1,12 +1,5 @@
1
+ import type { PrepareListOptions, PrepareListOutput } from './usePrepareBlockchainList.types';
1
2
  import type { BlockchainMeta } from 'rango-sdk';
2
- interface PrepareListOptions {
3
- limit?: number;
4
- selected?: string;
5
- }
6
- interface PrepareListOutput {
7
- list: BlockchainMeta[];
8
- more: BlockchainMeta[];
9
- }
10
3
  /**
11
4
  *
12
5
  * UI needs some specific logics like limiting the list and sorting,
@@ -14,5 +7,4 @@ interface PrepareListOutput {
14
7
  *
15
8
  */
16
9
  export declare function usePrepareBlockchainList(blockchains: BlockchainMeta[], options?: PrepareListOptions): PrepareListOutput;
17
- export {};
18
10
  //# sourceMappingURL=usePrepareBlockchainList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrepareBlockchainList.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,cAAc,EAAE,EAC7B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,iBAAiB,CAgBnB"}
@@ -0,0 +1,10 @@
1
+ import type { PrepareListOptions } from './usePrepareBlockchainList.types';
2
+ import type { BlockchainMeta } from 'rango-sdk';
3
+ export declare function prepare(blockchains: BlockchainMeta[], preferredBlockchains: string[], options?: PrepareListOptions): {
4
+ list: BlockchainMeta[];
5
+ more: BlockchainMeta[];
6
+ };
7
+ /** There is a hardcoded list of blockchains that we want to show them first in the list. */
8
+ export declare function sortByMostUsedBlockchains(a: BlockchainMeta, b: BlockchainMeta): 0 | 1 | -1;
9
+ export declare function generateSortByPreferredBlockchainsFor(preferredBlockchains: string[]): (a: BlockchainMeta, b: BlockchainMeta) => 0 | 1 | -1;
10
+ //# sourceMappingURL=usePrepareBlockchainList.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrepareBlockchainList.helpers.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,wBAAgB,OAAO,CACrB,WAAW,EAAE,cAAc,EAAE,EAC7B,oBAAoB,EAAE,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,kBAAkB;;;EA4C7B;AAED,4FAA4F;AAC5F,wBAAgB,yBAAyB,CACvC,CAAC,EAAE,cAAc,EACjB,CAAC,EAAE,cAAc,cAqBlB;AAED,wBAAgB,qCAAqC,CACnD,oBAAoB,EAAE,MAAM,EAAE,OAEK,cAAc,KAAK,cAAc,gBAwBrE"}
@@ -0,0 +1,3 @@
1
+ import type { BlockchainMeta } from 'rango-sdk';
2
+ export declare const sampleBlockchains: BlockchainMeta[];
3
+ //# sourceMappingURL=usePrepareBlockchainList.mock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrepareBlockchainList.mock.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAwhG7C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=usePrepareBlockchainList.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrepareBlockchainList.test.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { BlockchainMeta } from 'rango-sdk';
2
+ export interface PrepareListOptions {
3
+ limit?: number;
4
+ selected?: string;
5
+ }
6
+ export interface PrepareListOutput {
7
+ list: BlockchainMeta[];
8
+ more: BlockchainMeta[];
9
+ history: string[];
10
+ }
11
+ //# sourceMappingURL=usePrepareBlockchainList.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrepareBlockchainList.types.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAU7C,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,QA2FvE"}
1
+ {"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAU7C,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,QA2IvE"}
@@ -1,5 +1,5 @@
1
1
  import type { WidgetTheme } from '../types';
2
- export declare function useTheme({ fontFamily, borderRadius, secondaryBorderRadius, mode, }: WidgetTheme): {
3
- activeTheme: string;
2
+ export declare function useTheme(props: WidgetTheme): {
3
+ activeTheme: () => string;
4
4
  };
5
5
  //# sourceMappingURL=useTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAY5C,wBAAgB,QAAQ,CAAC,EAEvB,UAAqB,EACrB,YAAqC,EACrC,qBAAgD,EAChD,IAAa,GACd,EAAE,WAAW;;EAgEb"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAiB5C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW;;EAkF1C"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
- import { WidgetTheme, WidgetConfig, WidgetColors, BlockchainAndTokenConfig } from './types';
2
- import { WidgetProps, Widget } from './Widget';
3
- import { WalletType } from '@rango-dev/wallets-shared';
1
+ import type { BlockchainAndTokenConfig, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme } from './types';
2
+ import type { WidgetProps } from './Widget';
3
+ import type { Route, RouteEvent, RouteFailedEvent, RouteStartedEvent, RouteSucceededEvent, Step, StepApprovalTxSucceededEvent, StepCheckStatusEvent, StepEvent, StepFailedEvent, StepOutputRevealedEvent, StepStartedEvent, StepSucceededEvent, StepTxExecutionBlockedEvent, StepTxExecutionUpdatedEvent } from '@rango-dev/queue-manager-rango-preset';
4
+ import type { EventHandler as HandleWalletsUpdate, ProviderInterface } from '@rango-dev/wallets-react';
5
+ import type { WalletType } from '@rango-dev/wallets-shared';
6
+ import { MainEvents, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus, useEvents as useWidgetEvents } from '@rango-dev/queue-manager-rango-preset';
7
+ import { useWallets } from '@rango-dev/wallets-react';
4
8
  import { WidgetWallets } from './Wallets';
5
- import { useWallets, ProviderInterface, EventHandler as HandleWalletsUpdate } from '@rango-dev/wallets-react';
6
- import { useEvents as useWidgetEvents, MainEvents, RouteEvent, StepEvent, Route, Step, RouteStartedEvent, RouteSucceededEvent, RouteFailedEvent, RouteEventType, StepStartedEvent, StepSucceededEvent, StepFailedEvent, StepTxExecutionUpdatedEvent, StepTxExecutionBlockedEvent, StepCheckStatusEvent, StepApprovalTxSucceededEvent, StepOutputRevealedEvent, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus } from '@rango-dev/queue-manager-rango-preset';
7
- export type { WidgetConfig, WalletType, WidgetTheme, WidgetColors, ProviderInterface, BlockchainAndTokenConfig, WidgetProps, RouteEvent, StepEvent, Route, Step, RouteStartedEvent, RouteSucceededEvent, RouteFailedEvent, StepStartedEvent, StepSucceededEvent, StepFailedEvent, StepTxExecutionUpdatedEvent, StepTxExecutionBlockedEvent, StepCheckStatusEvent, StepApprovalTxSucceededEvent, StepOutputRevealedEvent, HandleWalletsUpdate, };
9
+ import { Widget } from './Widget';
10
+ export type { WidgetConfig, WalletType, WidgetTheme, WidgetColors, WidgetColorsKeys, ProviderInterface, BlockchainAndTokenConfig, WidgetProps, RouteEvent, StepEvent, Route, Step, RouteStartedEvent, RouteSucceededEvent, RouteFailedEvent, StepStartedEvent, StepSucceededEvent, StepFailedEvent, StepTxExecutionUpdatedEvent, StepTxExecutionBlockedEvent, StepCheckStatusEvent, StepApprovalTxSucceededEvent, StepOutputRevealedEvent, HandleWalletsUpdate, };
8
11
  export { Widget, WidgetWallets, useWallets, useWidgetEvents, MainEvents, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, };
9
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACzB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,YAAY,IAAI,mBAAmB,EACpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,SAAS,IAAI,eAAe,EAC5B,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,IAAI,EACJ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,aAAa,EACb,wBAAwB,EACxB,+BAA+B,EAChC,MAAM,uCAAuC,CAAC;AAE/C,YAAY,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,wBAAwB,EACxB,WAAW,EACX,UAAU,EACV,SAAS,EACT,KAAK,EACL,IAAI,EACJ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,GACpB,CAAC;AACF,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,wBAAwB,EACxB,+BAA+B,GAChC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EACV,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACJ,4BAA4B,EAC5B,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,YAAY,IAAI,mBAAmB,EACnC,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,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