@rango-dev/widget-embedded 0.28.2 → 0.28.3-next.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 (74) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/components/BlockchainList/BlockchainList.helpers.d.ts +1 -2
  3. package/dist/components/BlockchainList/BlockchainList.helpers.d.ts.map +1 -1
  4. package/dist/components/HeaderButtons/HeaderButtons.d.ts.map +1 -1
  5. package/dist/components/HeaderButtons/NotificationsBadge.d.ts +3 -0
  6. package/dist/components/HeaderButtons/NotificationsBadge.d.ts.map +1 -0
  7. package/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
  8. package/dist/components/NotificationContent/NotificationContent.styles.d.ts +769 -0
  9. package/dist/components/NotificationContent/NotificationContent.styles.d.ts.map +1 -1
  10. package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
  11. package/dist/constants/fonts.d.ts +5 -0
  12. package/dist/constants/fonts.d.ts.map +1 -1
  13. package/dist/containers/WidgetProvider/WidgetProvider.d.ts.map +1 -1
  14. package/dist/globalStyles.d.ts.map +1 -1
  15. package/dist/hooks/useBootstrap/useBootstrap.d.ts.map +1 -1
  16. package/dist/hooks/useFontLoader.d.ts +5 -0
  17. package/dist/hooks/useFontLoader.d.ts.map +1 -0
  18. package/dist/hooks/useSyncNotifications/index.d.ts +2 -0
  19. package/dist/hooks/useSyncNotifications/index.d.ts.map +1 -0
  20. package/dist/hooks/useSyncNotifications/useSyncNotifications.d.ts +2 -0
  21. package/dist/hooks/useSyncNotifications/useSyncNotifications.d.ts.map +1 -0
  22. package/dist/hooks/useTheme.d.ts.map +1 -1
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +2 -2
  26. package/dist/index.js.map +4 -4
  27. package/dist/pages/WalletsPage.d.ts.map +1 -1
  28. package/dist/store/notification.d.ts +27 -7
  29. package/dist/store/notification.d.ts.map +1 -1
  30. package/dist/types/config.d.ts +5 -1
  31. package/dist/types/config.d.ts.map +1 -1
  32. package/dist/types/notification.d.ts +0 -1
  33. package/dist/types/notification.d.ts.map +1 -1
  34. package/dist/utils/common.d.ts +3 -0
  35. package/dist/utils/common.d.ts.map +1 -1
  36. package/dist/utils/configs.d.ts +0 -1
  37. package/dist/utils/configs.d.ts.map +1 -1
  38. package/dist/utils/swap.d.ts +2 -0
  39. package/dist/utils/swap.d.ts.map +1 -1
  40. package/dist/utils/wallets.d.ts +2 -0
  41. package/dist/utils/wallets.d.ts.map +1 -1
  42. package/dist/widget-embedded.build.json +1 -0
  43. package/package.json +9 -8
  44. package/src/components/BlockchainList/BlockchainList.helpers.ts +6 -25
  45. package/src/components/ConfirmWalletsModal/ConfirmWallets.styles.ts +4 -4
  46. package/src/components/HeaderButtons/HeaderButtons.styles.ts +1 -1
  47. package/src/components/HeaderButtons/HeaderButtons.tsx +3 -2
  48. package/src/components/HeaderButtons/{UnreadNotificationsBadge.tsx → NotificationsBadge.tsx} +3 -3
  49. package/src/components/NotificationContent/NotificationContent.styles.ts +17 -2
  50. package/src/components/NotificationContent/NotificationContent.tsx +28 -3
  51. package/src/components/Quote/Quote.styles.ts +1 -1
  52. package/src/components/Slippage/Slippage.tsx +1 -1
  53. package/src/components/SwapDetails/SwapDetails.tsx +5 -6
  54. package/src/constants/fonts.ts +84 -0
  55. package/src/containers/WidgetInfo/WidgetInfo.tsx +1 -1
  56. package/src/containers/WidgetProvider/WidgetProvider.tsx +20 -2
  57. package/src/globalStyles.ts +1 -3
  58. package/src/hooks/useBootstrap/useBootstrap.ts +3 -1
  59. package/src/hooks/useFontLoader.ts +40 -0
  60. package/src/hooks/useSyncNotifications/index.ts +1 -0
  61. package/src/hooks/useSyncNotifications/useSyncNotifications.ts +25 -0
  62. package/src/hooks/useTheme.ts +1 -1
  63. package/src/index.ts +2 -0
  64. package/src/pages/SelectBlockchainPage.tsx +3 -3
  65. package/src/pages/WalletsPage.tsx +34 -2
  66. package/src/store/notification.ts +62 -17
  67. package/src/types/config.ts +6 -1
  68. package/src/types/notification.ts +0 -1
  69. package/src/utils/common.ts +29 -0
  70. package/src/utils/configs.ts +0 -1
  71. package/src/utils/swap.ts +12 -0
  72. package/src/utils/wallets.ts +53 -2
  73. package/dist/components/HeaderButtons/UnreadNotificationsBadge.d.ts +0 -3
  74. package/dist/components/HeaderButtons/UnreadNotificationsBadge.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.28.2](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.28.1...widget-embedded@0.28.2) (2024-05-26)
2
+
3
+
4
+
1
5
  ## [0.28.1](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.28.0...widget-embedded@0.28.1) (2024-05-25)
2
6
 
3
7
 
@@ -1,4 +1,3 @@
1
1
  import { type BlockchainMeta } from 'rango-sdk';
2
- export declare const filterByType: (blockchain: BlockchainMeta, type: string) => boolean;
3
- export declare const filterBlockchains: (list: BlockchainMeta[], searchedFor: string, blockchainType: string) => BlockchainMeta[];
2
+ export declare const filterBlockchains: (list: BlockchainMeta[], searchedFor: string, blockchainCategory: string) => BlockchainMeta[];
4
3
  //# sourceMappingURL=BlockchainList.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockchainList.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainList/BlockchainList.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,WAAW,CAAC;AAIjE,eAAO,MAAM,YAAY,eACX,cAAc,QACpB,MAAM,KACX,OAeF,CAAC;AAEF,eAAO,MAAM,iBAAiB,SACtB,cAAc,EAAE,eACT,MAAM,kBACH,MAAM,qBAQnB,CAAC"}
1
+ {"version":3,"file":"BlockchainList.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainList/BlockchainList.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,iBAAiB,SACtB,cAAc,EAAE,eACT,MAAM,sBACC,MAAM,qBAUvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderButtons.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderButtons/HeaderButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAUpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,wBAAgB,aAAa,CAAC,KAAK,EAAE,sBAAsB,qBAuE1D"}
1
+ {"version":3,"file":"HeaderButtons.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderButtons/HeaderButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAUpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,wBAAgB,aAAa,CAAC,KAAK,EAAE,sBAAsB,qBAwE1D"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare function NotificationsBadge(): React.JSX.Element | null;
3
+ //# sourceMappingURL=NotificationsBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsBadge.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderButtons/NotificationsBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,kBAAkB,6BAmBjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,wBAAgB,mBAAmB,sBAwFlC"}
1
+ {"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,wBAAgB,mBAAmB,sBA8GlC"}