@rango-dev/widget-embedded 0.30.1-next.9 → 0.31.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 (55) hide show
  1. package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
  2. package/dist/components/FilterSelector/FilterSelector.d.ts +4 -0
  3. package/dist/components/FilterSelector/FilterSelector.d.ts.map +1 -0
  4. package/dist/components/FilterSelector/FilterSelector.style.d.ts +962 -0
  5. package/dist/components/FilterSelector/FilterSelector.style.d.ts.map +1 -0
  6. package/dist/components/FilterSelector/FilterSelector.type.d.ts +14 -0
  7. package/dist/components/FilterSelector/FilterSelector.type.d.ts.map +1 -0
  8. package/dist/components/FilterSelector/FilterSelectorContent.d.ts +4 -0
  9. package/dist/components/FilterSelector/FilterSelectorContent.d.ts.map +1 -0
  10. package/dist/components/FilterSelector/index.d.ts +2 -0
  11. package/dist/components/FilterSelector/index.d.ts.map +1 -0
  12. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  13. package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
  14. package/dist/components/TokenList/TokenList.d.ts.map +1 -1
  15. package/dist/containers/Inputs/Inputs.d.ts.map +1 -1
  16. package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -1
  17. package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +5 -1
  18. package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -1
  19. package/dist/hooks/useObserveBalanceChanges/index.d.ts +2 -0
  20. package/dist/hooks/useObserveBalanceChanges/index.d.ts.map +1 -0
  21. package/dist/hooks/useObserveBalanceChanges/useObserveBalanceChanges.d.ts +4 -0
  22. package/dist/hooks/useObserveBalanceChanges/useObserveBalanceChanges.d.ts.map +1 -0
  23. package/dist/hooks/useUpdateQuoteInputs/index.d.ts +2 -0
  24. package/dist/hooks/useUpdateQuoteInputs/index.d.ts.map +1 -0
  25. package/dist/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.d.ts +3 -0
  26. package/dist/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.d.ts.map +1 -0
  27. package/dist/index.js +2 -2
  28. package/dist/index.js.map +4 -4
  29. package/dist/pages/HistoryPage.d.ts.map +1 -1
  30. package/dist/pages/WalletsPage.d.ts.map +1 -1
  31. package/dist/types/quote.d.ts +9 -1
  32. package/dist/types/quote.d.ts.map +1 -1
  33. package/dist/widget-embedded.build.json +1 -1
  34. package/package.json +10 -10
  35. package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +2 -1
  36. package/src/components/FilterSelector/FilterSelector.style.ts +95 -0
  37. package/src/components/FilterSelector/FilterSelector.tsx +42 -0
  38. package/src/components/FilterSelector/FilterSelector.type.ts +15 -0
  39. package/src/components/FilterSelector/FilterSelectorContent.tsx +60 -0
  40. package/src/components/FilterSelector/index.ts +1 -0
  41. package/src/components/SearchInput/SearchInput.tsx +2 -0
  42. package/src/components/SwapDetails/SwapDetails.tsx +1 -7
  43. package/src/components/TokenList/TokenList.tsx +8 -2
  44. package/src/containers/Inputs/Inputs.tsx +1 -0
  45. package/src/containers/WidgetInfo/WidgetInfo.tsx +26 -0
  46. package/src/containers/WidgetInfo/WidgetInfo.types.ts +5 -1
  47. package/src/hooks/useObserveBalanceChanges/index.ts +1 -0
  48. package/src/hooks/useObserveBalanceChanges/useObserveBalanceChanges.ts +68 -0
  49. package/src/hooks/useUpdateQuoteInputs/index.ts +1 -0
  50. package/src/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.ts +50 -0
  51. package/src/pages/HistoryPage.tsx +180 -26
  52. package/src/pages/WalletsPage.tsx +4 -2
  53. package/src/store/quote.ts +1 -1
  54. package/src/store/slices/data.ts +1 -1
  55. package/src/types/quote.ts +11 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterSelector.style.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/FilterSelector.style.ts"],"names":[],"mappings":";AAEA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQrB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type PropTypes = {
2
+ filterBy: string;
3
+ onClickItem: (id: string) => void;
4
+ list: Array<FilterItem>;
5
+ };
6
+ export type FilterItem = {
7
+ id: string;
8
+ title: string;
9
+ };
10
+ export type FilterSelectorPropTypes = PropTypes & {
11
+ open: boolean;
12
+ onOpenChange: (open: boolean) => void;
13
+ };
14
+ //# sourceMappingURL=FilterSelector.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterSelector.type.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/FilterSelector.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PropTypes } from './FilterSelector.type';
2
+ import React from 'react';
3
+ export declare function FilterSelectorContent(props: PropTypes): React.JSX.Element;
4
+ //# sourceMappingURL=FilterSelectorContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterSelectorContent.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/FilterSelectorContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,qBAwCrD"}
@@ -0,0 +1,2 @@
1
+ export { FilterSelector } from './FilterSelector';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBA2C3C"}
1
+ {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBA6C3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwapDetails.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAyB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyD3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBA0ZlD"}
1
+ {"version":3,"file":"SwapDetails.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAyB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyD3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBAoZlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAgBpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AA2EnD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBAyKzC"}
1
+ {"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAgBpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AA4EnD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA8KzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../src/containers/Inputs/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,qBAuItC"}
1
+ {"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../src/containers/Inputs/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,qBAwItC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAoC,MAAM,OAAO,CAAC;AAYzD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,qBAiDxD;AAED,wBAAgB,SAAS,IAAI,0BAA0B,CAQtD"}
1
+ {"version":3,"file":"WidgetInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAoC,MAAM,OAAO,CAAC;AAazD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,qBA0ExD;AAED,wBAAgB,SAAS,IAAI,0BAA0B,CAQtD"}
@@ -1,7 +1,7 @@
1
1
  import type { WidgetHistory } from './WidgetInfo.helpers';
2
2
  import type { FetchStatus, FindToken } from '../../store/slices/data';
3
3
  import type { ConnectedWallet } from '../../store/wallets';
4
- import type { Wallet } from '../../types';
4
+ import type { QuoteInputs, UpdateQuoteInputs, Wallet } from '../../types';
5
5
  import type { Notification } from '../../types/notification';
6
6
  import type { BlockchainMeta, SwapperMeta, Token } from 'rango-sdk';
7
7
  export interface WidgetInfoContextInterface {
@@ -26,5 +26,9 @@ export interface WidgetInfoContextInterface {
26
26
  list: Notification[];
27
27
  clearAll: () => void;
28
28
  };
29
+ quote: {
30
+ quoteInputs: QuoteInputs;
31
+ updateQuoteInputs: UpdateQuoteInputs;
32
+ };
29
33
  }
30
34
  //# sourceMappingURL=WidgetInfo.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetInfo.types.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA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oot":"","sources":["../../../src/hooks/useObserveBalanceChanges/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function useObserveBalanceChanges(selectedBlockchain?: string): {
2
+ balanceKey: number;
3
+ };
4
+ //# sourceMappingURL=useObserveBalanceChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useObserveBalanceChanges.d.ts","sourceRoot":"","sources":["../../../src/hooks/useObserveBalanceChanges/useObserveBalanceChanges.ts"],"names":[],"mappings":"AAUA,wBAAgB,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,MAAM;;EAyDnE"}
@@ -0,0 +1,2 @@
1
+ export { useUpdateQuoteInputs } from './useUpdateQuoteInputs';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUpdateQuoteInputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { UpdateQuoteInputs } from '../../types';
2
+ export declare function useUpdateQuoteInputs(): UpdateQuoteInputs;
3
+ //# sourceMappingURL=useUpdateQuoteInputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdateQuoteInputs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMrD,wBAAgB,oBAAoB,sBA2CnC"}