@liberfi.io/ui-predict 4.0.67 → 4.0.69
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 +25 -24
- package/dist/index.d.ts +25 -24
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -17
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import * as _liberfi_io_react_predict from '@liberfi.io/react-predict';
|
|
3
|
+
import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, EventStats, ListCandlesticksParams, Candlestick, PredictComment, PredictPosition, PredictSearchResult, MatchMarketFlat, MatchLeg, MatchSortField, MatchGroup, PolymarketWalletKind } from '@liberfi.io/react-predict';
|
|
4
|
+
export { BalanceResponse, CancelOrderResult, Candlestick, CreateOrderInput, DFlowKYCStatus, DFlowOrderContext, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStats, EventStatus, EventSummary, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, MarketOutcome, MarketResult, MarketStatus, MarketSummary, MatchConfidenceTier, MatchGroup, MatchGroupEntry, MatchGroupMarket, MatchGroupPage, MatchMarketFlat, MatchMarketPage, MatchMarketParams, MatchSortField, MatchStatus, MatchesParams, MatchesStats, OrderSide, OrderStatus, Orderbook, OrderbookLevel, PolymarketOrderType, PolymarketRedeemInput, PolymarketRedeemResponse, PositionValue, PositionValueError, PositionValueResponse, PositionsResponse, PredictClient, PredictContext, PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictPosition, PredictProvider, PredictProviderProps, PredictSearchParams, PredictSearchResponse, PredictSearchResult, PredictSearchResultType, PredictTag, PredictTrade, PredictWsClient, PriceHistoryParams, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, eventStatsQueryKey, fetchMatchMarketsPage, fetchMatchesPage, fetchPredictSearch, matchMarketsQueryKey, matchQueryKey, matchesQueryKey, predictSearchQueryKey, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfinitePredictSearch, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrders, usePositionValue, usePositionValueMulti, usePositions, usePredictClient, usePredictSearch, usePriceHistory, useRedeemPosition, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
|
|
4
5
|
import { LinkComponentType } from '@liberfi.io/ui';
|
|
5
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
7
|
import * as react from 'react';
|
|
@@ -1135,24 +1136,24 @@ declare function CategoriesSkeleton({ count }: {
|
|
|
1135
1136
|
}): react_jsx_runtime.JSX.Element;
|
|
1136
1137
|
|
|
1137
1138
|
type PredictSearchModalParams = {
|
|
1138
|
-
/**
|
|
1139
|
-
getEventHref?: (
|
|
1139
|
+
/** @deprecated Mixed search rows use `detail_url` from the API response. */
|
|
1140
|
+
getEventHref?: (result: PredictSearchResult) => string;
|
|
1140
1141
|
/** Custom link component (e.g. next/link). */
|
|
1141
1142
|
LinkComponent?: LinkComponentType;
|
|
1142
1143
|
/** Called when a row is hovered (for data prefetching). */
|
|
1143
|
-
onHover?: (
|
|
1144
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1144
1145
|
/** Filter by upstream provider. When set, only events from that provider are returned. */
|
|
1145
1146
|
source?: ProviderSource;
|
|
1146
1147
|
};
|
|
1147
|
-
type PredictSearchModalResult =
|
|
1148
|
+
type PredictSearchModalResult = PredictSearchResult;
|
|
1148
1149
|
declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
|
|
1149
1150
|
declare function PredictSearchModal({ id, }: {
|
|
1150
1151
|
id?: string;
|
|
1151
1152
|
}): react_jsx_runtime.JSX.Element;
|
|
1152
1153
|
|
|
1153
1154
|
type SearchEventsButtonProps = {
|
|
1154
|
-
/** Callback when
|
|
1155
|
-
onSelectEvent?: (
|
|
1155
|
+
/** Callback when a mixed search result is selected from the search modal */
|
|
1156
|
+
onSelectEvent?: (result: PredictSearchResult) => void;
|
|
1156
1157
|
/** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
|
|
1157
1158
|
modalParams?: Omit<PredictSearchModalParams, never>;
|
|
1158
1159
|
className?: string;
|
|
@@ -1194,17 +1195,17 @@ type SearchInputUIProps = {
|
|
|
1194
1195
|
declare function SearchInputUI({ value, onValueChange, onClear, onEscape, className, }: SearchInputUIProps): react_jsx_runtime.JSX.Element;
|
|
1195
1196
|
|
|
1196
1197
|
type SearchResultItemUIProps = {
|
|
1197
|
-
|
|
1198
|
+
result: PredictSearchResult;
|
|
1198
1199
|
/** URL for the detail page. When set, the row renders as a link via Linkable. */
|
|
1199
1200
|
href?: string;
|
|
1200
1201
|
/** Custom link component (e.g. next/link). */
|
|
1201
1202
|
LinkComponent?: LinkComponentType;
|
|
1202
|
-
onSelect?: (
|
|
1203
|
+
onSelect?: (result: PredictSearchResult) => void;
|
|
1203
1204
|
/** Called when the row is hovered (for data prefetching). */
|
|
1204
|
-
onHover?: (
|
|
1205
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1205
1206
|
className?: string;
|
|
1206
1207
|
};
|
|
1207
|
-
declare function SearchResultItemUI({
|
|
1208
|
+
declare function SearchResultItemUI({ result, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
|
|
1208
1209
|
|
|
1209
1210
|
interface UseSearchResultListScriptParams {
|
|
1210
1211
|
keyword?: string;
|
|
@@ -1213,21 +1214,21 @@ interface UseSearchResultListScriptParams {
|
|
|
1213
1214
|
source?: ProviderSource;
|
|
1214
1215
|
}
|
|
1215
1216
|
declare function useSearchResultListScript({ keyword, limit, source, }: UseSearchResultListScriptParams): {
|
|
1216
|
-
|
|
1217
|
+
results: PredictSearchResult[];
|
|
1217
1218
|
isLoading: boolean;
|
|
1218
1219
|
isFetchingNextPage: boolean;
|
|
1219
1220
|
hasNextPage: boolean;
|
|
1220
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<
|
|
1221
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_liberfi_io_react_predict.PredictSearchResponse, unknown>, Error>>;
|
|
1221
1222
|
};
|
|
1222
1223
|
|
|
1223
1224
|
type SearchResultListWidgetProps = {
|
|
1224
|
-
onSelect?: (
|
|
1225
|
-
/**
|
|
1226
|
-
getEventHref?: (
|
|
1225
|
+
onSelect?: (result: PredictSearchResult) => void;
|
|
1226
|
+
/** @deprecated Mixed search rows use `detail_url` from the API response. */
|
|
1227
|
+
getEventHref?: (result: PredictSearchResult) => string;
|
|
1227
1228
|
/** Custom link component (e.g. next/link). */
|
|
1228
1229
|
LinkComponent?: LinkComponentType;
|
|
1229
1230
|
/** Called when a row is hovered (for data prefetching). */
|
|
1230
|
-
onHover?: (
|
|
1231
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1231
1232
|
className?: string;
|
|
1232
1233
|
} & UseSearchResultListScriptParams;
|
|
1233
1234
|
declare function SearchResultListWidget({ onSelect, getEventHref, LinkComponent, onHover, className, ...scriptParams }: SearchResultListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1247,20 +1248,20 @@ declare function useSearchScript({ onKeywordChange }: UseSearchScriptParams): {
|
|
|
1247
1248
|
type SearchWidgetProps = {
|
|
1248
1249
|
/** Callback when the debounced keyword changes */
|
|
1249
1250
|
onKeywordChange?: (keyword: string) => void;
|
|
1250
|
-
/** Callback when
|
|
1251
|
-
|
|
1252
|
-
/**
|
|
1253
|
-
getEventHref?: (
|
|
1251
|
+
/** Callback when a mixed search result is selected */
|
|
1252
|
+
onSelectResult?: (result: PredictSearchResult) => void;
|
|
1253
|
+
/** @deprecated Mixed search rows use `detail_url` from the API response. */
|
|
1254
|
+
getEventHref?: (result: PredictSearchResult) => string;
|
|
1254
1255
|
/** Custom link component (e.g. next/link). */
|
|
1255
1256
|
LinkComponent?: LinkComponentType;
|
|
1256
1257
|
/** Called when a row is hovered (for data prefetching). */
|
|
1257
|
-
onHover?: (
|
|
1258
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1258
1259
|
/** Called when the Esc button / key is pressed. */
|
|
1259
1260
|
onEscape?: () => void;
|
|
1260
1261
|
/** Filter by upstream provider. When set, only events from that provider are returned. */
|
|
1261
1262
|
source?: ProviderSource;
|
|
1262
1263
|
};
|
|
1263
|
-
declare function SearchWidget({ onKeywordChange,
|
|
1264
|
+
declare function SearchWidget({ onKeywordChange, onSelectResult, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1264
1265
|
|
|
1265
1266
|
interface MatchesPageProps {
|
|
1266
1267
|
/** v1.1: invoked when the user clicks the card body (internal pair detail). */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import * as _liberfi_io_react_predict from '@liberfi.io/react-predict';
|
|
3
|
+
import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, EventStats, ListCandlesticksParams, Candlestick, PredictComment, PredictPosition, PredictSearchResult, MatchMarketFlat, MatchLeg, MatchSortField, MatchGroup, PolymarketWalletKind } from '@liberfi.io/react-predict';
|
|
4
|
+
export { BalanceResponse, CancelOrderResult, Candlestick, CreateOrderInput, DFlowKYCStatus, DFlowOrderContext, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStats, EventStatus, EventSummary, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, MarketOutcome, MarketResult, MarketStatus, MarketSummary, MatchConfidenceTier, MatchGroup, MatchGroupEntry, MatchGroupMarket, MatchGroupPage, MatchMarketFlat, MatchMarketPage, MatchMarketParams, MatchSortField, MatchStatus, MatchesParams, MatchesStats, OrderSide, OrderStatus, Orderbook, OrderbookLevel, PolymarketOrderType, PolymarketRedeemInput, PolymarketRedeemResponse, PositionValue, PositionValueError, PositionValueResponse, PositionsResponse, PredictClient, PredictContext, PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictPosition, PredictProvider, PredictProviderProps, PredictSearchParams, PredictSearchResponse, PredictSearchResult, PredictSearchResultType, PredictTag, PredictTrade, PredictWsClient, PriceHistoryParams, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, eventStatsQueryKey, fetchMatchMarketsPage, fetchMatchesPage, fetchPredictSearch, matchMarketsQueryKey, matchQueryKey, matchesQueryKey, predictSearchQueryKey, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfinitePredictSearch, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrders, usePositionValue, usePositionValueMulti, usePositions, usePredictClient, usePredictSearch, usePriceHistory, useRedeemPosition, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
|
|
4
5
|
import { LinkComponentType } from '@liberfi.io/ui';
|
|
5
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
7
|
import * as react from 'react';
|
|
@@ -1135,24 +1136,24 @@ declare function CategoriesSkeleton({ count }: {
|
|
|
1135
1136
|
}): react_jsx_runtime.JSX.Element;
|
|
1136
1137
|
|
|
1137
1138
|
type PredictSearchModalParams = {
|
|
1138
|
-
/**
|
|
1139
|
-
getEventHref?: (
|
|
1139
|
+
/** @deprecated Mixed search rows use `detail_url` from the API response. */
|
|
1140
|
+
getEventHref?: (result: PredictSearchResult) => string;
|
|
1140
1141
|
/** Custom link component (e.g. next/link). */
|
|
1141
1142
|
LinkComponent?: LinkComponentType;
|
|
1142
1143
|
/** Called when a row is hovered (for data prefetching). */
|
|
1143
|
-
onHover?: (
|
|
1144
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1144
1145
|
/** Filter by upstream provider. When set, only events from that provider are returned. */
|
|
1145
1146
|
source?: ProviderSource;
|
|
1146
1147
|
};
|
|
1147
|
-
type PredictSearchModalResult =
|
|
1148
|
+
type PredictSearchModalResult = PredictSearchResult;
|
|
1148
1149
|
declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
|
|
1149
1150
|
declare function PredictSearchModal({ id, }: {
|
|
1150
1151
|
id?: string;
|
|
1151
1152
|
}): react_jsx_runtime.JSX.Element;
|
|
1152
1153
|
|
|
1153
1154
|
type SearchEventsButtonProps = {
|
|
1154
|
-
/** Callback when
|
|
1155
|
-
onSelectEvent?: (
|
|
1155
|
+
/** Callback when a mixed search result is selected from the search modal */
|
|
1156
|
+
onSelectEvent?: (result: PredictSearchResult) => void;
|
|
1156
1157
|
/** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
|
|
1157
1158
|
modalParams?: Omit<PredictSearchModalParams, never>;
|
|
1158
1159
|
className?: string;
|
|
@@ -1194,17 +1195,17 @@ type SearchInputUIProps = {
|
|
|
1194
1195
|
declare function SearchInputUI({ value, onValueChange, onClear, onEscape, className, }: SearchInputUIProps): react_jsx_runtime.JSX.Element;
|
|
1195
1196
|
|
|
1196
1197
|
type SearchResultItemUIProps = {
|
|
1197
|
-
|
|
1198
|
+
result: PredictSearchResult;
|
|
1198
1199
|
/** URL for the detail page. When set, the row renders as a link via Linkable. */
|
|
1199
1200
|
href?: string;
|
|
1200
1201
|
/** Custom link component (e.g. next/link). */
|
|
1201
1202
|
LinkComponent?: LinkComponentType;
|
|
1202
|
-
onSelect?: (
|
|
1203
|
+
onSelect?: (result: PredictSearchResult) => void;
|
|
1203
1204
|
/** Called when the row is hovered (for data prefetching). */
|
|
1204
|
-
onHover?: (
|
|
1205
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1205
1206
|
className?: string;
|
|
1206
1207
|
};
|
|
1207
|
-
declare function SearchResultItemUI({
|
|
1208
|
+
declare function SearchResultItemUI({ result, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
|
|
1208
1209
|
|
|
1209
1210
|
interface UseSearchResultListScriptParams {
|
|
1210
1211
|
keyword?: string;
|
|
@@ -1213,21 +1214,21 @@ interface UseSearchResultListScriptParams {
|
|
|
1213
1214
|
source?: ProviderSource;
|
|
1214
1215
|
}
|
|
1215
1216
|
declare function useSearchResultListScript({ keyword, limit, source, }: UseSearchResultListScriptParams): {
|
|
1216
|
-
|
|
1217
|
+
results: PredictSearchResult[];
|
|
1217
1218
|
isLoading: boolean;
|
|
1218
1219
|
isFetchingNextPage: boolean;
|
|
1219
1220
|
hasNextPage: boolean;
|
|
1220
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<
|
|
1221
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_liberfi_io_react_predict.PredictSearchResponse, unknown>, Error>>;
|
|
1221
1222
|
};
|
|
1222
1223
|
|
|
1223
1224
|
type SearchResultListWidgetProps = {
|
|
1224
|
-
onSelect?: (
|
|
1225
|
-
/**
|
|
1226
|
-
getEventHref?: (
|
|
1225
|
+
onSelect?: (result: PredictSearchResult) => void;
|
|
1226
|
+
/** @deprecated Mixed search rows use `detail_url` from the API response. */
|
|
1227
|
+
getEventHref?: (result: PredictSearchResult) => string;
|
|
1227
1228
|
/** Custom link component (e.g. next/link). */
|
|
1228
1229
|
LinkComponent?: LinkComponentType;
|
|
1229
1230
|
/** Called when a row is hovered (for data prefetching). */
|
|
1230
|
-
onHover?: (
|
|
1231
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1231
1232
|
className?: string;
|
|
1232
1233
|
} & UseSearchResultListScriptParams;
|
|
1233
1234
|
declare function SearchResultListWidget({ onSelect, getEventHref, LinkComponent, onHover, className, ...scriptParams }: SearchResultListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1247,20 +1248,20 @@ declare function useSearchScript({ onKeywordChange }: UseSearchScriptParams): {
|
|
|
1247
1248
|
type SearchWidgetProps = {
|
|
1248
1249
|
/** Callback when the debounced keyword changes */
|
|
1249
1250
|
onKeywordChange?: (keyword: string) => void;
|
|
1250
|
-
/** Callback when
|
|
1251
|
-
|
|
1252
|
-
/**
|
|
1253
|
-
getEventHref?: (
|
|
1251
|
+
/** Callback when a mixed search result is selected */
|
|
1252
|
+
onSelectResult?: (result: PredictSearchResult) => void;
|
|
1253
|
+
/** @deprecated Mixed search rows use `detail_url` from the API response. */
|
|
1254
|
+
getEventHref?: (result: PredictSearchResult) => string;
|
|
1254
1255
|
/** Custom link component (e.g. next/link). */
|
|
1255
1256
|
LinkComponent?: LinkComponentType;
|
|
1256
1257
|
/** Called when a row is hovered (for data prefetching). */
|
|
1257
|
-
onHover?: (
|
|
1258
|
+
onHover?: (result: PredictSearchResult) => void;
|
|
1258
1259
|
/** Called when the Esc button / key is pressed. */
|
|
1259
1260
|
onEscape?: () => void;
|
|
1260
1261
|
/** Filter by upstream provider. When set, only events from that provider are returned. */
|
|
1261
1262
|
source?: ProviderSource;
|
|
1262
1263
|
};
|
|
1263
|
-
declare function SearchWidget({ onKeywordChange,
|
|
1264
|
+
declare function SearchWidget({ onKeywordChange, onSelectResult, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1264
1265
|
|
|
1265
1266
|
interface MatchesPageProps {
|
|
1266
1267
|
/** v1.1: invoked when the user clicks the card body (internal pair detail). */
|