@liberfi.io/ui-tokens 3.0.17 → 3.0.19

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.
package/dist/index.d.mts CHANGED
@@ -1771,8 +1771,10 @@ type UseStockTokensScriptParams = {
1771
1771
  chain: Chain;
1772
1772
  /** resolution */
1773
1773
  resolution: TokenListResolution;
1774
- /** fetch tokens options */
1775
- options?: GetTokenListOptions;
1774
+ /** local display filters */
1775
+ filters?: TokenListFiltersType;
1776
+ /** local display sort state */
1777
+ sortDirections?: TokenListSortDirections;
1776
1778
  /** refetch tokens interval */
1777
1779
  refetchInterval?: number;
1778
1780
  /** defer websocket updates while the list is actively scrolling */
@@ -1786,14 +1788,14 @@ type UseStockTokensScriptResult = {
1786
1788
  /** tokens */
1787
1789
  tokens: Array<Token>;
1788
1790
  };
1789
- declare function useStockTokensScript({ chain, resolution, options, refetchInterval, deferUpdates, updateFlushInterval, }: UseStockTokensScriptParams): UseStockTokensScriptResult;
1791
+ declare function useStockTokensScript({ chain, filters, sortDirections, refetchInterval, deferUpdates, updateFlushInterval, }: UseStockTokensScriptParams): UseStockTokensScriptResult;
1790
1792
 
1791
1793
  type StockTokenListWidgetProps = {
1792
1794
  /** chain id */
1793
1795
  chain: Chain;
1794
1796
  /** resolution of the token prices */
1795
1797
  resolution: TokenListResolution;
1796
- /** fetch tokens filters */
1798
+ /** local display filters */
1797
1799
  filters?: TokenListFiltersType;
1798
1800
  /** custom token actions component */
1799
1801
  ActionsComponent?: TokenListActionsComponent;
@@ -1819,8 +1821,10 @@ type UseTrendingTokensScriptParams = {
1819
1821
  chain: Chain;
1820
1822
  /** resolution */
1821
1823
  resolution: TokenListResolution;
1822
- /** fetch tokens options */
1823
- options?: GetTokenListOptions;
1824
+ /** local display filters */
1825
+ filters?: TokenListFiltersType;
1826
+ /** local display sort state */
1827
+ sortDirections?: TokenListSortDirections;
1824
1828
  /** refetch tokens interval */
1825
1829
  refetchInterval?: number;
1826
1830
  /** defer websocket updates while the list is actively scrolling */
@@ -1834,14 +1838,14 @@ type UseTrendingTokensScriptResult = {
1834
1838
  /** tokens */
1835
1839
  tokens: Array<Token>;
1836
1840
  };
1837
- declare function useTrendingTokensScript({ chain, resolution, options, refetchInterval, deferUpdates, updateFlushInterval, }: UseTrendingTokensScriptParams): UseTrendingTokensScriptResult;
1841
+ declare function useTrendingTokensScript({ chain, resolution, filters, sortDirections, refetchInterval, deferUpdates, updateFlushInterval, }: UseTrendingTokensScriptParams): UseTrendingTokensScriptResult;
1838
1842
 
1839
1843
  type TrendingTokenListWidgetProps = {
1840
1844
  /** chain id */
1841
1845
  chain: Chain;
1842
1846
  /** resolution of the token prices */
1843
1847
  resolution: TokenListResolution;
1844
- /** fetch tokens filters */
1848
+ /** local display filters */
1845
1849
  filters?: TokenListFiltersType;
1846
1850
  /** custom token actions component */
1847
1851
  ActionsComponent?: TokenListActionsComponent;
package/dist/index.d.ts CHANGED
@@ -1771,8 +1771,10 @@ type UseStockTokensScriptParams = {
1771
1771
  chain: Chain;
1772
1772
  /** resolution */
1773
1773
  resolution: TokenListResolution;
1774
- /** fetch tokens options */
1775
- options?: GetTokenListOptions;
1774
+ /** local display filters */
1775
+ filters?: TokenListFiltersType;
1776
+ /** local display sort state */
1777
+ sortDirections?: TokenListSortDirections;
1776
1778
  /** refetch tokens interval */
1777
1779
  refetchInterval?: number;
1778
1780
  /** defer websocket updates while the list is actively scrolling */
@@ -1786,14 +1788,14 @@ type UseStockTokensScriptResult = {
1786
1788
  /** tokens */
1787
1789
  tokens: Array<Token>;
1788
1790
  };
1789
- declare function useStockTokensScript({ chain, resolution, options, refetchInterval, deferUpdates, updateFlushInterval, }: UseStockTokensScriptParams): UseStockTokensScriptResult;
1791
+ declare function useStockTokensScript({ chain, filters, sortDirections, refetchInterval, deferUpdates, updateFlushInterval, }: UseStockTokensScriptParams): UseStockTokensScriptResult;
1790
1792
 
1791
1793
  type StockTokenListWidgetProps = {
1792
1794
  /** chain id */
1793
1795
  chain: Chain;
1794
1796
  /** resolution of the token prices */
1795
1797
  resolution: TokenListResolution;
1796
- /** fetch tokens filters */
1798
+ /** local display filters */
1797
1799
  filters?: TokenListFiltersType;
1798
1800
  /** custom token actions component */
1799
1801
  ActionsComponent?: TokenListActionsComponent;
@@ -1819,8 +1821,10 @@ type UseTrendingTokensScriptParams = {
1819
1821
  chain: Chain;
1820
1822
  /** resolution */
1821
1823
  resolution: TokenListResolution;
1822
- /** fetch tokens options */
1823
- options?: GetTokenListOptions;
1824
+ /** local display filters */
1825
+ filters?: TokenListFiltersType;
1826
+ /** local display sort state */
1827
+ sortDirections?: TokenListSortDirections;
1824
1828
  /** refetch tokens interval */
1825
1829
  refetchInterval?: number;
1826
1830
  /** defer websocket updates while the list is actively scrolling */
@@ -1834,14 +1838,14 @@ type UseTrendingTokensScriptResult = {
1834
1838
  /** tokens */
1835
1839
  tokens: Array<Token>;
1836
1840
  };
1837
- declare function useTrendingTokensScript({ chain, resolution, options, refetchInterval, deferUpdates, updateFlushInterval, }: UseTrendingTokensScriptParams): UseTrendingTokensScriptResult;
1841
+ declare function useTrendingTokensScript({ chain, resolution, filters, sortDirections, refetchInterval, deferUpdates, updateFlushInterval, }: UseTrendingTokensScriptParams): UseTrendingTokensScriptResult;
1838
1842
 
1839
1843
  type TrendingTokenListWidgetProps = {
1840
1844
  /** chain id */
1841
1845
  chain: Chain;
1842
1846
  /** resolution of the token prices */
1843
1847
  resolution: TokenListResolution;
1844
- /** fetch tokens filters */
1848
+ /** local display filters */
1845
1849
  filters?: TokenListFiltersType;
1846
1850
  /** custom token actions component */
1847
1851
  ActionsComponent?: TokenListActionsComponent;