@liberfi.io/ui-predict 0.1.67 → 0.1.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 +62 -12
- package/dist/index.d.ts +62 -12
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -18,7 +18,7 @@ declare global {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
declare const _default: "0.1.
|
|
21
|
+
declare const _default: "0.1.69";
|
|
22
22
|
|
|
23
23
|
interface EventsPageProps {
|
|
24
24
|
/** Callback when an event is selected */
|
|
@@ -120,6 +120,7 @@ type EventsSkeletonProps = {
|
|
|
120
120
|
count?: number;
|
|
121
121
|
};
|
|
122
122
|
declare function EventsSkeleton({ count }: EventsSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function EventsPageSkeleton(): react_jsx_runtime.JSX.Element;
|
|
123
124
|
|
|
124
125
|
type EventItemUIProps = {
|
|
125
126
|
event: StandardEvent;
|
|
@@ -148,6 +149,8 @@ interface TagItemV2 {
|
|
|
148
149
|
slug: string;
|
|
149
150
|
/** Display label */
|
|
150
151
|
label: string;
|
|
152
|
+
/** Optional Phosphor icon class name (e.g. "ph--basketball-bold") */
|
|
153
|
+
icon?: string;
|
|
151
154
|
}
|
|
152
155
|
/**
|
|
153
156
|
* Sorted category list derived from the static DFlow API snapshot.
|
|
@@ -168,20 +171,19 @@ interface TagSlugSelection {
|
|
|
168
171
|
tagSlug: string | null;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
type SortPreset = "
|
|
174
|
+
type SortPreset = "start_time" | "volume" | "liquidity" | "ending_soon";
|
|
172
175
|
declare const SORT_PRESETS: Record<SortPreset, {
|
|
173
176
|
sort_by: V2EventSortField;
|
|
174
|
-
sort_asc: boolean;
|
|
175
177
|
}>;
|
|
176
178
|
interface EventsToolbarV2UIProps {
|
|
177
|
-
/** Currently active platform source */
|
|
178
|
-
source?: V2ProviderSource;
|
|
179
|
-
/** Callback when the user picks a different platform */
|
|
180
|
-
onSourceChange: (source?: V2ProviderSource) => void;
|
|
181
179
|
/** Currently active sort preset */
|
|
182
180
|
sortPreset: SortPreset;
|
|
183
181
|
/** Callback when the user picks a different sort preset */
|
|
184
182
|
onSortChange: (preset: SortPreset) => void;
|
|
183
|
+
/** Current sort direction: true = ascending, false = descending */
|
|
184
|
+
sortAsc: boolean;
|
|
185
|
+
/** Callback when the user toggles the sort direction */
|
|
186
|
+
onSortAscChange: (asc: boolean) => void;
|
|
185
187
|
/** Callback when the filter button is pressed */
|
|
186
188
|
onFilterPress: () => void;
|
|
187
189
|
/** Number of currently active filters (shown as badge count) */
|
|
@@ -189,10 +191,11 @@ interface EventsToolbarV2UIProps {
|
|
|
189
191
|
/** Optional class name for the root element */
|
|
190
192
|
className?: string;
|
|
191
193
|
}
|
|
192
|
-
declare function EventsToolbarV2UI({
|
|
194
|
+
declare function EventsToolbarV2UI({ sortPreset, onSortChange, sortAsc, onSortAscChange, onFilterPress, filterCount, className, }: EventsToolbarV2UIProps): react_jsx_runtime.JSX.Element;
|
|
193
195
|
|
|
194
196
|
interface EventsFilterState {
|
|
195
197
|
sortPreset: SortPreset;
|
|
198
|
+
sortAsc: boolean;
|
|
196
199
|
source?: V2ProviderSource;
|
|
197
200
|
timeRemaining?: string;
|
|
198
201
|
minVolume?: string;
|
|
@@ -577,6 +580,12 @@ declare const useEventDetailV2: (params: UseEventDetailV2Params) => {
|
|
|
577
580
|
candlestickErrors: Map<string, Error>;
|
|
578
581
|
};
|
|
579
582
|
|
|
583
|
+
interface EventPriceChartV2Props {
|
|
584
|
+
event: V2Event;
|
|
585
|
+
isLoading?: boolean;
|
|
586
|
+
}
|
|
587
|
+
declare function EventPriceChartV2({ event, isLoading, }: EventPriceChartV2Props): react_jsx_runtime.JSX.Element;
|
|
588
|
+
|
|
580
589
|
interface TradeFormUIProps {
|
|
581
590
|
/** Event data */
|
|
582
591
|
event?: StandardEvent;
|
|
@@ -920,25 +929,38 @@ interface UseEventsCategoriesResult {
|
|
|
920
929
|
*/
|
|
921
930
|
declare function useEventsCategories(): UseEventsCategoriesResult;
|
|
922
931
|
|
|
932
|
+
interface CategoryItem {
|
|
933
|
+
category: string;
|
|
934
|
+
tags: string[];
|
|
935
|
+
/** Optional badge text displayed above the tab (e.g. "New", "Hot") */
|
|
936
|
+
badge?: string;
|
|
937
|
+
}
|
|
938
|
+
interface TagItem {
|
|
939
|
+
label: string;
|
|
940
|
+
/** Optional Phosphor icon class name (e.g. "ph--basketball-bold") */
|
|
941
|
+
icon?: string;
|
|
942
|
+
}
|
|
923
943
|
interface CategoriesUIProps {
|
|
924
944
|
/** List of categories to display */
|
|
925
|
-
categories:
|
|
945
|
+
categories: CategoryItem[];
|
|
926
946
|
/** Currently selected category name (null = "Trending") */
|
|
927
947
|
selectedCategory: string | null;
|
|
928
948
|
/** Currently selected tag within the category (null = all tags) */
|
|
929
949
|
selectedTag: string | null;
|
|
930
950
|
/** Tags of the currently selected category */
|
|
931
|
-
activeTags:
|
|
951
|
+
activeTags: TagItem[];
|
|
932
952
|
/** Callback when a category is selected (null = "Trending") */
|
|
933
953
|
onCategorySelect: (category: string | null) => void;
|
|
934
954
|
/** Callback when a tag is selected (null = deselect) */
|
|
935
955
|
onTagSelect: (tag: string | null) => void;
|
|
936
956
|
/** Content rendered at the end of the primary chip row (e.g. sort/filter controls) */
|
|
937
957
|
trailing?: React.ReactNode;
|
|
958
|
+
/** Name of the tab that shows a pulsing dot (default: "Trending") */
|
|
959
|
+
pulsingTab?: string;
|
|
938
960
|
/** Optional class name for the root element */
|
|
939
961
|
className?: string;
|
|
940
962
|
}
|
|
941
|
-
declare function CategoriesUI({ categories, selectedCategory, selectedTag, activeTags, onCategorySelect, onTagSelect, trailing, className, }: CategoriesUIProps): react_jsx_runtime.JSX.Element;
|
|
963
|
+
declare function CategoriesUI({ categories, selectedCategory, selectedTag, activeTags, onCategorySelect, onTagSelect, trailing, pulsingTab, className, }: CategoriesUIProps): react_jsx_runtime.JSX.Element;
|
|
942
964
|
declare function CategoriesSkeleton({ count }: {
|
|
943
965
|
count?: number;
|
|
944
966
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1321,6 +1343,34 @@ interface UseMarketV2QueryParams {
|
|
|
1321
1343
|
*/
|
|
1322
1344
|
declare function useMarketV2Query(params: UseMarketV2QueryParams, queryOptions?: Omit<UseQueryOptions<V2Market, Error, V2Market, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<V2Market, Error>;
|
|
1323
1345
|
|
|
1346
|
+
interface MarketHistoryPoint {
|
|
1347
|
+
/** Unix timestamp in milliseconds. */
|
|
1348
|
+
timestamp: number;
|
|
1349
|
+
/** Implied probability [0, 1]. */
|
|
1350
|
+
price: number;
|
|
1351
|
+
}
|
|
1352
|
+
interface MarketHistorySeries {
|
|
1353
|
+
marketSlug: string;
|
|
1354
|
+
label: string;
|
|
1355
|
+
/** Chronologically ordered price history. */
|
|
1356
|
+
data: MarketHistoryPoint[];
|
|
1357
|
+
}
|
|
1358
|
+
interface UseMarketHistoryV2Result {
|
|
1359
|
+
series: MarketHistorySeries[];
|
|
1360
|
+
isLoading: boolean;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Returns price history series for the provided V2Markets.
|
|
1364
|
+
*
|
|
1365
|
+
* Currently uses mock data generated via a seeded random walk so the chart
|
|
1366
|
+
* looks realistic without a backend. Replace the `useMemo` body with a
|
|
1367
|
+
* `useQuery` call when the history endpoint is ready.
|
|
1368
|
+
*
|
|
1369
|
+
* @param markets - Markets to generate history for.
|
|
1370
|
+
* @param range - Chart time range (controls data density and look-back window).
|
|
1371
|
+
*/
|
|
1372
|
+
declare function useMarketHistoryV2(markets: V2Market[], range?: ChartRangeType): UseMarketHistoryV2Result;
|
|
1373
|
+
|
|
1324
1374
|
declare function usePredictContext(): PredictContextValue;
|
|
1325
1375
|
|
|
1326
1376
|
declare function usePredictClient(): IPredictClient;
|
|
@@ -1660,4 +1710,4 @@ interface UseOrderbookSubscriptionResult {
|
|
|
1660
1710
|
*/
|
|
1661
1711
|
declare function useOrderbookSubscription({ client, all, tickers, enabled, onUpdate, }: UseOrderbookSubscriptionParams): UseOrderbookSubscriptionResult;
|
|
1662
1712
|
|
|
1663
|
-
export { CATEGORIES_V2, CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItemV2, type CategorySelection, ChartRangeType, DEFAULT_FILTER_STATE, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailPageV2, type EventDetailPageV2Props, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailV2UI, type EventDetailV2UIProps, EventDetailWidget, type EventDetailWidgetProps, EventDetailWidgetV2, type EventDetailWidgetV2Props, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PREDICT_SEARCH_MODAL_ID, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchQueryParams, SearchResponse, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventDetailV2Params, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseMarketV2QueryParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseSearchEventsInfiniteQueryParams, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarketV2, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketV2QueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventDetailV2, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2InfiniteQuery, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketV2Query, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictSearchHistory, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchEventsInfiniteQuery, useSearchQuery, useSearchResultListScript, useSearchScript, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|
|
1713
|
+
export { CATEGORIES_V2, CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItem, type CategoryItemV2, type CategorySelection, ChartRangeType, DEFAULT_FILTER_STATE, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailPageV2, type EventDetailPageV2Props, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailV2UI, type EventDetailV2UIProps, EventDetailWidget, type EventDetailWidgetProps, EventDetailWidgetV2, type EventDetailWidgetV2Props, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChartV2, type EventPriceChartV2Props, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageSkeleton, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, type MarketHistoryPoint, type MarketHistorySeries, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PREDICT_SEARCH_MODAL_ID, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchQueryParams, SearchResponse, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItem, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventDetailV2Params, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseMarketHistoryV2Result, type UseMarketV2QueryParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseSearchEventsInfiniteQueryParams, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarketV2, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketV2QueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventDetailV2, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2InfiniteQuery, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketHistoryV2, useMarketPositions, useMarketV2Query, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictSearchHistory, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchEventsInfiniteQuery, useSearchQuery, useSearchResultListScript, useSearchScript, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare global {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
declare const _default: "0.1.
|
|
21
|
+
declare const _default: "0.1.69";
|
|
22
22
|
|
|
23
23
|
interface EventsPageProps {
|
|
24
24
|
/** Callback when an event is selected */
|
|
@@ -120,6 +120,7 @@ type EventsSkeletonProps = {
|
|
|
120
120
|
count?: number;
|
|
121
121
|
};
|
|
122
122
|
declare function EventsSkeleton({ count }: EventsSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function EventsPageSkeleton(): react_jsx_runtime.JSX.Element;
|
|
123
124
|
|
|
124
125
|
type EventItemUIProps = {
|
|
125
126
|
event: StandardEvent;
|
|
@@ -148,6 +149,8 @@ interface TagItemV2 {
|
|
|
148
149
|
slug: string;
|
|
149
150
|
/** Display label */
|
|
150
151
|
label: string;
|
|
152
|
+
/** Optional Phosphor icon class name (e.g. "ph--basketball-bold") */
|
|
153
|
+
icon?: string;
|
|
151
154
|
}
|
|
152
155
|
/**
|
|
153
156
|
* Sorted category list derived from the static DFlow API snapshot.
|
|
@@ -168,20 +171,19 @@ interface TagSlugSelection {
|
|
|
168
171
|
tagSlug: string | null;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
type SortPreset = "
|
|
174
|
+
type SortPreset = "start_time" | "volume" | "liquidity" | "ending_soon";
|
|
172
175
|
declare const SORT_PRESETS: Record<SortPreset, {
|
|
173
176
|
sort_by: V2EventSortField;
|
|
174
|
-
sort_asc: boolean;
|
|
175
177
|
}>;
|
|
176
178
|
interface EventsToolbarV2UIProps {
|
|
177
|
-
/** Currently active platform source */
|
|
178
|
-
source?: V2ProviderSource;
|
|
179
|
-
/** Callback when the user picks a different platform */
|
|
180
|
-
onSourceChange: (source?: V2ProviderSource) => void;
|
|
181
179
|
/** Currently active sort preset */
|
|
182
180
|
sortPreset: SortPreset;
|
|
183
181
|
/** Callback when the user picks a different sort preset */
|
|
184
182
|
onSortChange: (preset: SortPreset) => void;
|
|
183
|
+
/** Current sort direction: true = ascending, false = descending */
|
|
184
|
+
sortAsc: boolean;
|
|
185
|
+
/** Callback when the user toggles the sort direction */
|
|
186
|
+
onSortAscChange: (asc: boolean) => void;
|
|
185
187
|
/** Callback when the filter button is pressed */
|
|
186
188
|
onFilterPress: () => void;
|
|
187
189
|
/** Number of currently active filters (shown as badge count) */
|
|
@@ -189,10 +191,11 @@ interface EventsToolbarV2UIProps {
|
|
|
189
191
|
/** Optional class name for the root element */
|
|
190
192
|
className?: string;
|
|
191
193
|
}
|
|
192
|
-
declare function EventsToolbarV2UI({
|
|
194
|
+
declare function EventsToolbarV2UI({ sortPreset, onSortChange, sortAsc, onSortAscChange, onFilterPress, filterCount, className, }: EventsToolbarV2UIProps): react_jsx_runtime.JSX.Element;
|
|
193
195
|
|
|
194
196
|
interface EventsFilterState {
|
|
195
197
|
sortPreset: SortPreset;
|
|
198
|
+
sortAsc: boolean;
|
|
196
199
|
source?: V2ProviderSource;
|
|
197
200
|
timeRemaining?: string;
|
|
198
201
|
minVolume?: string;
|
|
@@ -577,6 +580,12 @@ declare const useEventDetailV2: (params: UseEventDetailV2Params) => {
|
|
|
577
580
|
candlestickErrors: Map<string, Error>;
|
|
578
581
|
};
|
|
579
582
|
|
|
583
|
+
interface EventPriceChartV2Props {
|
|
584
|
+
event: V2Event;
|
|
585
|
+
isLoading?: boolean;
|
|
586
|
+
}
|
|
587
|
+
declare function EventPriceChartV2({ event, isLoading, }: EventPriceChartV2Props): react_jsx_runtime.JSX.Element;
|
|
588
|
+
|
|
580
589
|
interface TradeFormUIProps {
|
|
581
590
|
/** Event data */
|
|
582
591
|
event?: StandardEvent;
|
|
@@ -920,25 +929,38 @@ interface UseEventsCategoriesResult {
|
|
|
920
929
|
*/
|
|
921
930
|
declare function useEventsCategories(): UseEventsCategoriesResult;
|
|
922
931
|
|
|
932
|
+
interface CategoryItem {
|
|
933
|
+
category: string;
|
|
934
|
+
tags: string[];
|
|
935
|
+
/** Optional badge text displayed above the tab (e.g. "New", "Hot") */
|
|
936
|
+
badge?: string;
|
|
937
|
+
}
|
|
938
|
+
interface TagItem {
|
|
939
|
+
label: string;
|
|
940
|
+
/** Optional Phosphor icon class name (e.g. "ph--basketball-bold") */
|
|
941
|
+
icon?: string;
|
|
942
|
+
}
|
|
923
943
|
interface CategoriesUIProps {
|
|
924
944
|
/** List of categories to display */
|
|
925
|
-
categories:
|
|
945
|
+
categories: CategoryItem[];
|
|
926
946
|
/** Currently selected category name (null = "Trending") */
|
|
927
947
|
selectedCategory: string | null;
|
|
928
948
|
/** Currently selected tag within the category (null = all tags) */
|
|
929
949
|
selectedTag: string | null;
|
|
930
950
|
/** Tags of the currently selected category */
|
|
931
|
-
activeTags:
|
|
951
|
+
activeTags: TagItem[];
|
|
932
952
|
/** Callback when a category is selected (null = "Trending") */
|
|
933
953
|
onCategorySelect: (category: string | null) => void;
|
|
934
954
|
/** Callback when a tag is selected (null = deselect) */
|
|
935
955
|
onTagSelect: (tag: string | null) => void;
|
|
936
956
|
/** Content rendered at the end of the primary chip row (e.g. sort/filter controls) */
|
|
937
957
|
trailing?: React.ReactNode;
|
|
958
|
+
/** Name of the tab that shows a pulsing dot (default: "Trending") */
|
|
959
|
+
pulsingTab?: string;
|
|
938
960
|
/** Optional class name for the root element */
|
|
939
961
|
className?: string;
|
|
940
962
|
}
|
|
941
|
-
declare function CategoriesUI({ categories, selectedCategory, selectedTag, activeTags, onCategorySelect, onTagSelect, trailing, className, }: CategoriesUIProps): react_jsx_runtime.JSX.Element;
|
|
963
|
+
declare function CategoriesUI({ categories, selectedCategory, selectedTag, activeTags, onCategorySelect, onTagSelect, trailing, pulsingTab, className, }: CategoriesUIProps): react_jsx_runtime.JSX.Element;
|
|
942
964
|
declare function CategoriesSkeleton({ count }: {
|
|
943
965
|
count?: number;
|
|
944
966
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1321,6 +1343,34 @@ interface UseMarketV2QueryParams {
|
|
|
1321
1343
|
*/
|
|
1322
1344
|
declare function useMarketV2Query(params: UseMarketV2QueryParams, queryOptions?: Omit<UseQueryOptions<V2Market, Error, V2Market, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<V2Market, Error>;
|
|
1323
1345
|
|
|
1346
|
+
interface MarketHistoryPoint {
|
|
1347
|
+
/** Unix timestamp in milliseconds. */
|
|
1348
|
+
timestamp: number;
|
|
1349
|
+
/** Implied probability [0, 1]. */
|
|
1350
|
+
price: number;
|
|
1351
|
+
}
|
|
1352
|
+
interface MarketHistorySeries {
|
|
1353
|
+
marketSlug: string;
|
|
1354
|
+
label: string;
|
|
1355
|
+
/** Chronologically ordered price history. */
|
|
1356
|
+
data: MarketHistoryPoint[];
|
|
1357
|
+
}
|
|
1358
|
+
interface UseMarketHistoryV2Result {
|
|
1359
|
+
series: MarketHistorySeries[];
|
|
1360
|
+
isLoading: boolean;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Returns price history series for the provided V2Markets.
|
|
1364
|
+
*
|
|
1365
|
+
* Currently uses mock data generated via a seeded random walk so the chart
|
|
1366
|
+
* looks realistic without a backend. Replace the `useMemo` body with a
|
|
1367
|
+
* `useQuery` call when the history endpoint is ready.
|
|
1368
|
+
*
|
|
1369
|
+
* @param markets - Markets to generate history for.
|
|
1370
|
+
* @param range - Chart time range (controls data density and look-back window).
|
|
1371
|
+
*/
|
|
1372
|
+
declare function useMarketHistoryV2(markets: V2Market[], range?: ChartRangeType): UseMarketHistoryV2Result;
|
|
1373
|
+
|
|
1324
1374
|
declare function usePredictContext(): PredictContextValue;
|
|
1325
1375
|
|
|
1326
1376
|
declare function usePredictClient(): IPredictClient;
|
|
@@ -1660,4 +1710,4 @@ interface UseOrderbookSubscriptionResult {
|
|
|
1660
1710
|
*/
|
|
1661
1711
|
declare function useOrderbookSubscription({ client, all, tickers, enabled, onUpdate, }: UseOrderbookSubscriptionParams): UseOrderbookSubscriptionResult;
|
|
1662
1712
|
|
|
1663
|
-
export { CATEGORIES_V2, CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItemV2, type CategorySelection, ChartRangeType, DEFAULT_FILTER_STATE, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailPageV2, type EventDetailPageV2Props, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailV2UI, type EventDetailV2UIProps, EventDetailWidget, type EventDetailWidgetProps, EventDetailWidgetV2, type EventDetailWidgetV2Props, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PREDICT_SEARCH_MODAL_ID, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchQueryParams, SearchResponse, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventDetailV2Params, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseMarketV2QueryParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseSearchEventsInfiniteQueryParams, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarketV2, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketV2QueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventDetailV2, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2InfiniteQuery, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketV2Query, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictSearchHistory, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchEventsInfiniteQuery, useSearchQuery, useSearchResultListScript, useSearchScript, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|
|
1713
|
+
export { CATEGORIES_V2, CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItem, type CategoryItemV2, type CategorySelection, ChartRangeType, DEFAULT_FILTER_STATE, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailPageV2, type EventDetailPageV2Props, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailV2UI, type EventDetailV2UIProps, EventDetailWidget, type EventDetailWidgetProps, EventDetailWidgetV2, type EventDetailWidgetV2Props, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChartV2, type EventPriceChartV2Props, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageSkeleton, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, type MarketHistoryPoint, type MarketHistorySeries, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PREDICT_SEARCH_MODAL_ID, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchQueryParams, SearchResponse, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItem, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventDetailV2Params, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseMarketHistoryV2Result, type UseMarketV2QueryParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseSearchEventsInfiniteQueryParams, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarketV2, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketV2QueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventDetailV2, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2InfiniteQuery, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketHistoryV2, useMarketPositions, useMarketV2Query, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictSearchHistory, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchEventsInfiniteQuery, useSearchQuery, useSearchResultListScript, useSearchScript, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|