@liberfi.io/ui-tokens 3.0.90 → 3.0.92
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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -13
package/dist/index.d.mts
CHANGED
|
@@ -1727,6 +1727,8 @@ interface TokenListProps {
|
|
|
1727
1727
|
onSortChange?: (sortDirections: TokenListSortDirections) => void | Promise<void>;
|
|
1728
1728
|
/** callback function when the virtualized list scroll state changes */
|
|
1729
1729
|
onScrollingChange?: (isScrolling: boolean) => void;
|
|
1730
|
+
/** callback after the visible token range settles */
|
|
1731
|
+
onVisibleTokensChange?: (tokens: Array<Token>) => void;
|
|
1730
1732
|
/**
|
|
1731
1733
|
* list container height, required for virtualized list.
|
|
1732
1734
|
* you can use useResizeObserver hook to get the container's height.
|
|
@@ -1743,7 +1745,7 @@ interface TokenListProps {
|
|
|
1743
1745
|
/**
|
|
1744
1746
|
* Token List UI Component
|
|
1745
1747
|
*/
|
|
1746
|
-
declare function TokenList({ tokens, resolution, isLoading, ActionsComponent, onSelectToken, sortDirections, onSortChange, onScrollingChange, height, itemHeight, itemHeightMobile, className, }: TokenListProps): react_jsx_runtime.JSX.Element;
|
|
1748
|
+
declare function TokenList({ tokens, resolution, isLoading, ActionsComponent, onSelectToken, sortDirections, onSortChange, onScrollingChange, onVisibleTokensChange, height, itemHeight, itemHeightMobile, className, }: TokenListProps): react_jsx_runtime.JSX.Element;
|
|
1747
1749
|
|
|
1748
1750
|
interface TokenCellProps {
|
|
1749
1751
|
token: Token;
|
|
@@ -1799,6 +1801,8 @@ type UseNewTokensScriptParams = {
|
|
|
1799
1801
|
resolution: TokenListResolution;
|
|
1800
1802
|
/** local display options */
|
|
1801
1803
|
options?: GetTokenListOptions;
|
|
1804
|
+
/** tokens whose detail subscriptions should be retained */
|
|
1805
|
+
subscriptionTokens?: Array<Token>;
|
|
1802
1806
|
/** defer websocket updates while the list is actively scrolling */
|
|
1803
1807
|
deferUpdates?: boolean;
|
|
1804
1808
|
/** minimum interval for batched websocket updates */
|
|
@@ -1810,7 +1814,7 @@ type UseNewTokensScriptResult = {
|
|
|
1810
1814
|
/** tokens */
|
|
1811
1815
|
tokens: Array<Token>;
|
|
1812
1816
|
};
|
|
1813
|
-
declare function useNewTokensScript({ chain, options, deferUpdates, updateFlushInterval, }: UseNewTokensScriptParams): UseNewTokensScriptResult;
|
|
1817
|
+
declare function useNewTokensScript({ chain, options, subscriptionTokens, deferUpdates, updateFlushInterval, }: UseNewTokensScriptParams): UseNewTokensScriptResult;
|
|
1814
1818
|
|
|
1815
1819
|
type NewTokenListWidgetProps = {
|
|
1816
1820
|
/** chain id */
|
package/dist/index.d.ts
CHANGED
|
@@ -1727,6 +1727,8 @@ interface TokenListProps {
|
|
|
1727
1727
|
onSortChange?: (sortDirections: TokenListSortDirections) => void | Promise<void>;
|
|
1728
1728
|
/** callback function when the virtualized list scroll state changes */
|
|
1729
1729
|
onScrollingChange?: (isScrolling: boolean) => void;
|
|
1730
|
+
/** callback after the visible token range settles */
|
|
1731
|
+
onVisibleTokensChange?: (tokens: Array<Token>) => void;
|
|
1730
1732
|
/**
|
|
1731
1733
|
* list container height, required for virtualized list.
|
|
1732
1734
|
* you can use useResizeObserver hook to get the container's height.
|
|
@@ -1743,7 +1745,7 @@ interface TokenListProps {
|
|
|
1743
1745
|
/**
|
|
1744
1746
|
* Token List UI Component
|
|
1745
1747
|
*/
|
|
1746
|
-
declare function TokenList({ tokens, resolution, isLoading, ActionsComponent, onSelectToken, sortDirections, onSortChange, onScrollingChange, height, itemHeight, itemHeightMobile, className, }: TokenListProps): react_jsx_runtime.JSX.Element;
|
|
1748
|
+
declare function TokenList({ tokens, resolution, isLoading, ActionsComponent, onSelectToken, sortDirections, onSortChange, onScrollingChange, onVisibleTokensChange, height, itemHeight, itemHeightMobile, className, }: TokenListProps): react_jsx_runtime.JSX.Element;
|
|
1747
1749
|
|
|
1748
1750
|
interface TokenCellProps {
|
|
1749
1751
|
token: Token;
|
|
@@ -1799,6 +1801,8 @@ type UseNewTokensScriptParams = {
|
|
|
1799
1801
|
resolution: TokenListResolution;
|
|
1800
1802
|
/** local display options */
|
|
1801
1803
|
options?: GetTokenListOptions;
|
|
1804
|
+
/** tokens whose detail subscriptions should be retained */
|
|
1805
|
+
subscriptionTokens?: Array<Token>;
|
|
1802
1806
|
/** defer websocket updates while the list is actively scrolling */
|
|
1803
1807
|
deferUpdates?: boolean;
|
|
1804
1808
|
/** minimum interval for batched websocket updates */
|
|
@@ -1810,7 +1814,7 @@ type UseNewTokensScriptResult = {
|
|
|
1810
1814
|
/** tokens */
|
|
1811
1815
|
tokens: Array<Token>;
|
|
1812
1816
|
};
|
|
1813
|
-
declare function useNewTokensScript({ chain, options, deferUpdates, updateFlushInterval, }: UseNewTokensScriptParams): UseNewTokensScriptResult;
|
|
1817
|
+
declare function useNewTokensScript({ chain, options, subscriptionTokens, deferUpdates, updateFlushInterval, }: UseNewTokensScriptParams): UseNewTokensScriptResult;
|
|
1814
1818
|
|
|
1815
1819
|
type NewTokenListWidgetProps = {
|
|
1816
1820
|
/** chain id */
|