@liberfi.io/ui-predict 4.0.66 → 4.0.68

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
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, EventStats, ListCandlesticksParams, Candlestick, PredictComment, PredictPosition, PredictPage, MatchMarketFlat, MatchLeg, MatchSortField, MatchGroup, PolymarketWalletKind } from '@liberfi.io/react-predict';
3
- 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, PredictTag, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, eventStatsQueryKey, fetchMatchMarketsPage, fetchMatchesPage, matchMarketsQueryKey, matchQueryKey, matchesQueryKey, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrders, usePositionValue, usePositionValueMulti, usePositions, usePredictClient, usePriceHistory, useRedeemPosition, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
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';
@@ -533,10 +534,12 @@ type CandlestickPeriodType = (typeof CandlestickPeriod)[keyof typeof Candlestick
533
534
  * Chart range options (the user-facing time range selector)
534
535
  */
535
536
  declare const ChartRange: {
537
+ /** 1 hour */
538
+ readonly ONE_HOUR: "1h";
539
+ /** 6 hours */
540
+ readonly SIX_HOURS: "6h";
536
541
  /** 1 day */
537
542
  readonly ONE_DAY: "1d";
538
- /** 1 week */
539
- readonly ONE_WEEK: "1w";
540
543
  /** 1 month */
541
544
  readonly ONE_MONTH: "1m";
542
545
  /** All time */
@@ -545,12 +548,14 @@ declare const ChartRange: {
545
548
  type ChartRangeType = (typeof ChartRange)[keyof typeof ChartRange];
546
549
  /** Default chart range */
547
550
  declare const DEFAULT_CHART_RANGE: "all";
548
- /** Candlestick granularity derived from chart range (1D → minute, 1W/1M → hourly, ALL → daily) */
551
+ /** Candlestick granularity derived from chart range. */
549
552
  declare const CHART_RANGE_PERIOD: Record<ChartRangeType, CandlestickPeriodType>;
550
- /** Chart sampling interval in seconds (used to downsample candlestick data for display) */
553
+ /** Minimum chart sampling interval in seconds. Long ranges may be coarsened by actual window span. */
551
554
  declare const CHART_RANGE_SAMPLE_INTERVAL: Record<ChartRangeType, number>;
552
555
  /** Duration in seconds for each chart range (null = all time) */
553
556
  declare const CHART_RANGE_DURATION: Record<ChartRangeType, number | null>;
557
+ /** Minimum Polymarket-compatible price-history fidelity in minutes for each chart range. */
558
+ declare const CHART_RANGE_FIDELITY_MINUTES: Record<ChartRangeType, number>;
554
559
  /** Minimum order quantity (contracts / shares for sell) */
555
560
  declare const ORDER_MIN_QUANTITY = 1;
556
561
  /** Minimum marketable BUY order in USDC (applies to Polymarket & Kalshi) */
@@ -1131,24 +1136,24 @@ declare function CategoriesSkeleton({ count }: {
1131
1136
  }): react_jsx_runtime.JSX.Element;
1132
1137
 
1133
1138
  type PredictSearchModalParams = {
1134
- /** Generate href for each event row. When set, rows render as links. */
1135
- getEventHref?: (event: PredictEvent) => string;
1139
+ /** @deprecated Mixed search rows use `detail_url` from the API response. */
1140
+ getEventHref?: (result: PredictSearchResult) => string;
1136
1141
  /** Custom link component (e.g. next/link). */
1137
1142
  LinkComponent?: LinkComponentType;
1138
1143
  /** Called when a row is hovered (for data prefetching). */
1139
- onHover?: (event: PredictEvent) => void;
1144
+ onHover?: (result: PredictSearchResult) => void;
1140
1145
  /** Filter by upstream provider. When set, only events from that provider are returned. */
1141
1146
  source?: ProviderSource;
1142
1147
  };
1143
- type PredictSearchModalResult = PredictEvent;
1148
+ type PredictSearchModalResult = PredictSearchResult;
1144
1149
  declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
1145
1150
  declare function PredictSearchModal({ id, }: {
1146
1151
  id?: string;
1147
1152
  }): react_jsx_runtime.JSX.Element;
1148
1153
 
1149
1154
  type SearchEventsButtonProps = {
1150
- /** Callback when an event is selected from the search modal */
1151
- onSelectEvent?: (event: PredictEvent) => void;
1155
+ /** Callback when a mixed search result is selected from the search modal */
1156
+ onSelectEvent?: (result: PredictSearchResult) => void;
1152
1157
  /** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
1153
1158
  modalParams?: Omit<PredictSearchModalParams, never>;
1154
1159
  className?: string;
@@ -1190,17 +1195,17 @@ type SearchInputUIProps = {
1190
1195
  declare function SearchInputUI({ value, onValueChange, onClear, onEscape, className, }: SearchInputUIProps): react_jsx_runtime.JSX.Element;
1191
1196
 
1192
1197
  type SearchResultItemUIProps = {
1193
- event: PredictEvent;
1198
+ result: PredictSearchResult;
1194
1199
  /** URL for the detail page. When set, the row renders as a link via Linkable. */
1195
1200
  href?: string;
1196
1201
  /** Custom link component (e.g. next/link). */
1197
1202
  LinkComponent?: LinkComponentType;
1198
- onSelect?: (event: PredictEvent) => void;
1203
+ onSelect?: (result: PredictSearchResult) => void;
1199
1204
  /** Called when the row is hovered (for data prefetching). */
1200
- onHover?: (event: PredictEvent) => void;
1205
+ onHover?: (result: PredictSearchResult) => void;
1201
1206
  className?: string;
1202
1207
  };
1203
- declare function SearchResultItemUI({ event, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
1208
+ declare function SearchResultItemUI({ result, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
1204
1209
 
1205
1210
  interface UseSearchResultListScriptParams {
1206
1211
  keyword?: string;
@@ -1209,21 +1214,21 @@ interface UseSearchResultListScriptParams {
1209
1214
  source?: ProviderSource;
1210
1215
  }
1211
1216
  declare function useSearchResultListScript({ keyword, limit, source, }: UseSearchResultListScriptParams): {
1212
- events: PredictEvent[];
1217
+ results: PredictSearchResult[];
1213
1218
  isLoading: boolean;
1214
1219
  isFetchingNextPage: boolean;
1215
1220
  hasNextPage: boolean;
1216
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PredictPage<PredictEvent>, unknown>, Error>>;
1221
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_liberfi_io_react_predict.PredictSearchResponse, unknown>, Error>>;
1217
1222
  };
1218
1223
 
1219
1224
  type SearchResultListWidgetProps = {
1220
- onSelect?: (event: PredictEvent) => void;
1221
- /** Generate href for each event row. When set, rows render as links. */
1222
- getEventHref?: (event: PredictEvent) => string;
1225
+ onSelect?: (result: PredictSearchResult) => void;
1226
+ /** @deprecated Mixed search rows use `detail_url` from the API response. */
1227
+ getEventHref?: (result: PredictSearchResult) => string;
1223
1228
  /** Custom link component (e.g. next/link). */
1224
1229
  LinkComponent?: LinkComponentType;
1225
1230
  /** Called when a row is hovered (for data prefetching). */
1226
- onHover?: (event: PredictEvent) => void;
1231
+ onHover?: (result: PredictSearchResult) => void;
1227
1232
  className?: string;
1228
1233
  } & UseSearchResultListScriptParams;
1229
1234
  declare function SearchResultListWidget({ onSelect, getEventHref, LinkComponent, onHover, className, ...scriptParams }: SearchResultListWidgetProps): react_jsx_runtime.JSX.Element;
@@ -1243,20 +1248,20 @@ declare function useSearchScript({ onKeywordChange }: UseSearchScriptParams): {
1243
1248
  type SearchWidgetProps = {
1244
1249
  /** Callback when the debounced keyword changes */
1245
1250
  onKeywordChange?: (keyword: string) => void;
1246
- /** Callback when an event is selected */
1247
- onSelectEvent?: (event: PredictEvent) => void;
1248
- /** Generate href for each event row. When set, rows render as links. */
1249
- getEventHref?: (event: PredictEvent) => string;
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;
1250
1255
  /** Custom link component (e.g. next/link). */
1251
1256
  LinkComponent?: LinkComponentType;
1252
1257
  /** Called when a row is hovered (for data prefetching). */
1253
- onHover?: (event: PredictEvent) => void;
1258
+ onHover?: (result: PredictSearchResult) => void;
1254
1259
  /** Called when the Esc button / key is pressed. */
1255
1260
  onEscape?: () => void;
1256
1261
  /** Filter by upstream provider. When set, only events from that provider are returned. */
1257
1262
  source?: ProviderSource;
1258
1263
  };
1259
- declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1264
+ declare function SearchWidget({ onKeywordChange, onSelectResult, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1260
1265
 
1261
1266
  interface MatchesPageProps {
1262
1267
  /** v1.1: invoked when the user clicks the card body (internal pair detail). */
@@ -1532,4 +1537,4 @@ type PredictWalletProviderProps = PropsWithChildren<{
1532
1537
  }>;
1533
1538
  declare function PredictWalletProvider({ pollingInterval, enabled, enableKalshi, children, }: PredictWalletProviderProps): react_jsx_runtime.JSX.Element;
1534
1539
 
1535
- export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, CommentItemUI, type CommentItemUIProps, type ComputeMaxBuyAmountParams, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, type DurationUnit, type EstimatePolymarketBuyFeeParams, type EstimatePolymarketSellFeeParams, EventCommentsWidget, type EventCommentsWidgetProps, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsHero, type EventsHeroProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, type ExpirationPreset, KycModal, type KycModalProps, MAX_PRICE_HISTORY_MARKETS, MatchGroupCard, type MatchGroupCardProps, MatchMarketCard, type MatchMarketCardProps, MatchesFilterBar, type MatchesFilterBarProps, MatchesHero, type MatchesHeroProps, type MatchesHeroStats, MatchesPage, type MatchesPageProps, MatchesStatsBar, type MatchesStatsBarProps, MatchesWidget, type MatchesWidgetProps, type MatchesWidgetRef, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_MIN_USDC, ORDER_PRICE_STEP, type OddsFormatter, type OrderType, POLYMARKET_BUILDER_TAKER_FEE_BPS, POLYMARKET_SPORTS_TAKER_FEE_BPS, PREDICT_REDEEM_MODAL_ID, PREDICT_SEARCH_MODAL_ID, PREDICT_SELL_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictRedeemModal, type PredictRedeemModalParams, type PredictRedeemModalResult, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictSellModal, type PredictSellModalParams, type PredictSellModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, PriceHistoryInterval, type PriceHistoryIntervalType, ProfilePage, type ProfilePageProps, RedeemFormWidget, type RedeemFormWidgetProps, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SellFormUI, type SellFormUIProps, SellFormWidget, type SellFormWidgetProps, SetupModal, type SetupModalProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, SourceBadge, type SourceBadgeProps, SpreadIndicator, type SpreadIndicatorProps, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeResultToastController, type TradeResultToastMessages, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseSellFormParams, type UseSellFormResult, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, computeMaxBuyAmount, countActiveFilters, createTradeResultToast, estimatePolymarketBuyFee, estimatePolymarketSellFee, fireCelebration, floorToDecimals, formatKMB, formatShares, getSourceMeta, parsePolymarketError, polymarketFeeFactor, resolveExpiration, resolvePolymarketDisplayFeeRateBps, roundToTickSize, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useSellForm, useTradeForm };
1540
+ export { CHART_RANGE_DURATION, CHART_RANGE_FIDELITY_MINUTES, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, CommentItemUI, type CommentItemUIProps, type ComputeMaxBuyAmountParams, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, type DurationUnit, type EstimatePolymarketBuyFeeParams, type EstimatePolymarketSellFeeParams, EventCommentsWidget, type EventCommentsWidgetProps, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsHero, type EventsHeroProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, type ExpirationPreset, KycModal, type KycModalProps, MAX_PRICE_HISTORY_MARKETS, MatchGroupCard, type MatchGroupCardProps, MatchMarketCard, type MatchMarketCardProps, MatchesFilterBar, type MatchesFilterBarProps, MatchesHero, type MatchesHeroProps, type MatchesHeroStats, MatchesPage, type MatchesPageProps, MatchesStatsBar, type MatchesStatsBarProps, MatchesWidget, type MatchesWidgetProps, type MatchesWidgetRef, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_MIN_USDC, ORDER_PRICE_STEP, type OddsFormatter, type OrderType, POLYMARKET_BUILDER_TAKER_FEE_BPS, POLYMARKET_SPORTS_TAKER_FEE_BPS, PREDICT_REDEEM_MODAL_ID, PREDICT_SEARCH_MODAL_ID, PREDICT_SELL_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictRedeemModal, type PredictRedeemModalParams, type PredictRedeemModalResult, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictSellModal, type PredictSellModalParams, type PredictSellModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, PriceHistoryInterval, type PriceHistoryIntervalType, ProfilePage, type ProfilePageProps, RedeemFormWidget, type RedeemFormWidgetProps, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SellFormUI, type SellFormUIProps, SellFormWidget, type SellFormWidgetProps, SetupModal, type SetupModalProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, SourceBadge, type SourceBadgeProps, SpreadIndicator, type SpreadIndicatorProps, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeResultToastController, type TradeResultToastMessages, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseSellFormParams, type UseSellFormResult, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, computeMaxBuyAmount, countActiveFilters, createTradeResultToast, estimatePolymarketBuyFee, estimatePolymarketSellFee, fireCelebration, floorToDecimals, formatKMB, formatShares, getSourceMeta, parsePolymarketError, polymarketFeeFactor, resolveExpiration, resolvePolymarketDisplayFeeRateBps, roundToTickSize, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useSellForm, useTradeForm };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, EventStats, ListCandlesticksParams, Candlestick, PredictComment, PredictPosition, PredictPage, MatchMarketFlat, MatchLeg, MatchSortField, MatchGroup, PolymarketWalletKind } from '@liberfi.io/react-predict';
3
- 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, PredictTag, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, eventStatsQueryKey, fetchMatchMarketsPage, fetchMatchesPage, matchMarketsQueryKey, matchQueryKey, matchesQueryKey, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrders, usePositionValue, usePositionValueMulti, usePositions, usePredictClient, usePriceHistory, useRedeemPosition, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
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';
@@ -533,10 +534,12 @@ type CandlestickPeriodType = (typeof CandlestickPeriod)[keyof typeof Candlestick
533
534
  * Chart range options (the user-facing time range selector)
534
535
  */
535
536
  declare const ChartRange: {
537
+ /** 1 hour */
538
+ readonly ONE_HOUR: "1h";
539
+ /** 6 hours */
540
+ readonly SIX_HOURS: "6h";
536
541
  /** 1 day */
537
542
  readonly ONE_DAY: "1d";
538
- /** 1 week */
539
- readonly ONE_WEEK: "1w";
540
543
  /** 1 month */
541
544
  readonly ONE_MONTH: "1m";
542
545
  /** All time */
@@ -545,12 +548,14 @@ declare const ChartRange: {
545
548
  type ChartRangeType = (typeof ChartRange)[keyof typeof ChartRange];
546
549
  /** Default chart range */
547
550
  declare const DEFAULT_CHART_RANGE: "all";
548
- /** Candlestick granularity derived from chart range (1D → minute, 1W/1M → hourly, ALL → daily) */
551
+ /** Candlestick granularity derived from chart range. */
549
552
  declare const CHART_RANGE_PERIOD: Record<ChartRangeType, CandlestickPeriodType>;
550
- /** Chart sampling interval in seconds (used to downsample candlestick data for display) */
553
+ /** Minimum chart sampling interval in seconds. Long ranges may be coarsened by actual window span. */
551
554
  declare const CHART_RANGE_SAMPLE_INTERVAL: Record<ChartRangeType, number>;
552
555
  /** Duration in seconds for each chart range (null = all time) */
553
556
  declare const CHART_RANGE_DURATION: Record<ChartRangeType, number | null>;
557
+ /** Minimum Polymarket-compatible price-history fidelity in minutes for each chart range. */
558
+ declare const CHART_RANGE_FIDELITY_MINUTES: Record<ChartRangeType, number>;
554
559
  /** Minimum order quantity (contracts / shares for sell) */
555
560
  declare const ORDER_MIN_QUANTITY = 1;
556
561
  /** Minimum marketable BUY order in USDC (applies to Polymarket & Kalshi) */
@@ -1131,24 +1136,24 @@ declare function CategoriesSkeleton({ count }: {
1131
1136
  }): react_jsx_runtime.JSX.Element;
1132
1137
 
1133
1138
  type PredictSearchModalParams = {
1134
- /** Generate href for each event row. When set, rows render as links. */
1135
- getEventHref?: (event: PredictEvent) => string;
1139
+ /** @deprecated Mixed search rows use `detail_url` from the API response. */
1140
+ getEventHref?: (result: PredictSearchResult) => string;
1136
1141
  /** Custom link component (e.g. next/link). */
1137
1142
  LinkComponent?: LinkComponentType;
1138
1143
  /** Called when a row is hovered (for data prefetching). */
1139
- onHover?: (event: PredictEvent) => void;
1144
+ onHover?: (result: PredictSearchResult) => void;
1140
1145
  /** Filter by upstream provider. When set, only events from that provider are returned. */
1141
1146
  source?: ProviderSource;
1142
1147
  };
1143
- type PredictSearchModalResult = PredictEvent;
1148
+ type PredictSearchModalResult = PredictSearchResult;
1144
1149
  declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
1145
1150
  declare function PredictSearchModal({ id, }: {
1146
1151
  id?: string;
1147
1152
  }): react_jsx_runtime.JSX.Element;
1148
1153
 
1149
1154
  type SearchEventsButtonProps = {
1150
- /** Callback when an event is selected from the search modal */
1151
- onSelectEvent?: (event: PredictEvent) => void;
1155
+ /** Callback when a mixed search result is selected from the search modal */
1156
+ onSelectEvent?: (result: PredictSearchResult) => void;
1152
1157
  /** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
1153
1158
  modalParams?: Omit<PredictSearchModalParams, never>;
1154
1159
  className?: string;
@@ -1190,17 +1195,17 @@ type SearchInputUIProps = {
1190
1195
  declare function SearchInputUI({ value, onValueChange, onClear, onEscape, className, }: SearchInputUIProps): react_jsx_runtime.JSX.Element;
1191
1196
 
1192
1197
  type SearchResultItemUIProps = {
1193
- event: PredictEvent;
1198
+ result: PredictSearchResult;
1194
1199
  /** URL for the detail page. When set, the row renders as a link via Linkable. */
1195
1200
  href?: string;
1196
1201
  /** Custom link component (e.g. next/link). */
1197
1202
  LinkComponent?: LinkComponentType;
1198
- onSelect?: (event: PredictEvent) => void;
1203
+ onSelect?: (result: PredictSearchResult) => void;
1199
1204
  /** Called when the row is hovered (for data prefetching). */
1200
- onHover?: (event: PredictEvent) => void;
1205
+ onHover?: (result: PredictSearchResult) => void;
1201
1206
  className?: string;
1202
1207
  };
1203
- declare function SearchResultItemUI({ event, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
1208
+ declare function SearchResultItemUI({ result, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
1204
1209
 
1205
1210
  interface UseSearchResultListScriptParams {
1206
1211
  keyword?: string;
@@ -1209,21 +1214,21 @@ interface UseSearchResultListScriptParams {
1209
1214
  source?: ProviderSource;
1210
1215
  }
1211
1216
  declare function useSearchResultListScript({ keyword, limit, source, }: UseSearchResultListScriptParams): {
1212
- events: PredictEvent[];
1217
+ results: PredictSearchResult[];
1213
1218
  isLoading: boolean;
1214
1219
  isFetchingNextPage: boolean;
1215
1220
  hasNextPage: boolean;
1216
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PredictPage<PredictEvent>, unknown>, Error>>;
1221
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_liberfi_io_react_predict.PredictSearchResponse, unknown>, Error>>;
1217
1222
  };
1218
1223
 
1219
1224
  type SearchResultListWidgetProps = {
1220
- onSelect?: (event: PredictEvent) => void;
1221
- /** Generate href for each event row. When set, rows render as links. */
1222
- getEventHref?: (event: PredictEvent) => string;
1225
+ onSelect?: (result: PredictSearchResult) => void;
1226
+ /** @deprecated Mixed search rows use `detail_url` from the API response. */
1227
+ getEventHref?: (result: PredictSearchResult) => string;
1223
1228
  /** Custom link component (e.g. next/link). */
1224
1229
  LinkComponent?: LinkComponentType;
1225
1230
  /** Called when a row is hovered (for data prefetching). */
1226
- onHover?: (event: PredictEvent) => void;
1231
+ onHover?: (result: PredictSearchResult) => void;
1227
1232
  className?: string;
1228
1233
  } & UseSearchResultListScriptParams;
1229
1234
  declare function SearchResultListWidget({ onSelect, getEventHref, LinkComponent, onHover, className, ...scriptParams }: SearchResultListWidgetProps): react_jsx_runtime.JSX.Element;
@@ -1243,20 +1248,20 @@ declare function useSearchScript({ onKeywordChange }: UseSearchScriptParams): {
1243
1248
  type SearchWidgetProps = {
1244
1249
  /** Callback when the debounced keyword changes */
1245
1250
  onKeywordChange?: (keyword: string) => void;
1246
- /** Callback when an event is selected */
1247
- onSelectEvent?: (event: PredictEvent) => void;
1248
- /** Generate href for each event row. When set, rows render as links. */
1249
- getEventHref?: (event: PredictEvent) => string;
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;
1250
1255
  /** Custom link component (e.g. next/link). */
1251
1256
  LinkComponent?: LinkComponentType;
1252
1257
  /** Called when a row is hovered (for data prefetching). */
1253
- onHover?: (event: PredictEvent) => void;
1258
+ onHover?: (result: PredictSearchResult) => void;
1254
1259
  /** Called when the Esc button / key is pressed. */
1255
1260
  onEscape?: () => void;
1256
1261
  /** Filter by upstream provider. When set, only events from that provider are returned. */
1257
1262
  source?: ProviderSource;
1258
1263
  };
1259
- declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1264
+ declare function SearchWidget({ onKeywordChange, onSelectResult, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1260
1265
 
1261
1266
  interface MatchesPageProps {
1262
1267
  /** v1.1: invoked when the user clicks the card body (internal pair detail). */
@@ -1532,4 +1537,4 @@ type PredictWalletProviderProps = PropsWithChildren<{
1532
1537
  }>;
1533
1538
  declare function PredictWalletProvider({ pollingInterval, enabled, enableKalshi, children, }: PredictWalletProviderProps): react_jsx_runtime.JSX.Element;
1534
1539
 
1535
- export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, CommentItemUI, type CommentItemUIProps, type ComputeMaxBuyAmountParams, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, type DurationUnit, type EstimatePolymarketBuyFeeParams, type EstimatePolymarketSellFeeParams, EventCommentsWidget, type EventCommentsWidgetProps, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsHero, type EventsHeroProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, type ExpirationPreset, KycModal, type KycModalProps, MAX_PRICE_HISTORY_MARKETS, MatchGroupCard, type MatchGroupCardProps, MatchMarketCard, type MatchMarketCardProps, MatchesFilterBar, type MatchesFilterBarProps, MatchesHero, type MatchesHeroProps, type MatchesHeroStats, MatchesPage, type MatchesPageProps, MatchesStatsBar, type MatchesStatsBarProps, MatchesWidget, type MatchesWidgetProps, type MatchesWidgetRef, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_MIN_USDC, ORDER_PRICE_STEP, type OddsFormatter, type OrderType, POLYMARKET_BUILDER_TAKER_FEE_BPS, POLYMARKET_SPORTS_TAKER_FEE_BPS, PREDICT_REDEEM_MODAL_ID, PREDICT_SEARCH_MODAL_ID, PREDICT_SELL_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictRedeemModal, type PredictRedeemModalParams, type PredictRedeemModalResult, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictSellModal, type PredictSellModalParams, type PredictSellModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, PriceHistoryInterval, type PriceHistoryIntervalType, ProfilePage, type ProfilePageProps, RedeemFormWidget, type RedeemFormWidgetProps, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SellFormUI, type SellFormUIProps, SellFormWidget, type SellFormWidgetProps, SetupModal, type SetupModalProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, SourceBadge, type SourceBadgeProps, SpreadIndicator, type SpreadIndicatorProps, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeResultToastController, type TradeResultToastMessages, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseSellFormParams, type UseSellFormResult, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, computeMaxBuyAmount, countActiveFilters, createTradeResultToast, estimatePolymarketBuyFee, estimatePolymarketSellFee, fireCelebration, floorToDecimals, formatKMB, formatShares, getSourceMeta, parsePolymarketError, polymarketFeeFactor, resolveExpiration, resolvePolymarketDisplayFeeRateBps, roundToTickSize, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useSellForm, useTradeForm };
1540
+ export { CHART_RANGE_DURATION, CHART_RANGE_FIDELITY_MINUTES, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, CommentItemUI, type CommentItemUIProps, type ComputeMaxBuyAmountParams, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, type DurationUnit, type EstimatePolymarketBuyFeeParams, type EstimatePolymarketSellFeeParams, EventCommentsWidget, type EventCommentsWidgetProps, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsHero, type EventsHeroProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, type ExpirationPreset, KycModal, type KycModalProps, MAX_PRICE_HISTORY_MARKETS, MatchGroupCard, type MatchGroupCardProps, MatchMarketCard, type MatchMarketCardProps, MatchesFilterBar, type MatchesFilterBarProps, MatchesHero, type MatchesHeroProps, type MatchesHeroStats, MatchesPage, type MatchesPageProps, MatchesStatsBar, type MatchesStatsBarProps, MatchesWidget, type MatchesWidgetProps, type MatchesWidgetRef, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_MIN_USDC, ORDER_PRICE_STEP, type OddsFormatter, type OrderType, POLYMARKET_BUILDER_TAKER_FEE_BPS, POLYMARKET_SPORTS_TAKER_FEE_BPS, PREDICT_REDEEM_MODAL_ID, PREDICT_SEARCH_MODAL_ID, PREDICT_SELL_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictRedeemModal, type PredictRedeemModalParams, type PredictRedeemModalResult, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictSellModal, type PredictSellModalParams, type PredictSellModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, PriceHistoryInterval, type PriceHistoryIntervalType, ProfilePage, type ProfilePageProps, RedeemFormWidget, type RedeemFormWidgetProps, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SellFormUI, type SellFormUIProps, SellFormWidget, type SellFormWidgetProps, SetupModal, type SetupModalProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, SourceBadge, type SourceBadgeProps, SpreadIndicator, type SpreadIndicatorProps, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeResultToastController, type TradeResultToastMessages, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseSellFormParams, type UseSellFormResult, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, computeMaxBuyAmount, countActiveFilters, createTradeResultToast, estimatePolymarketBuyFee, estimatePolymarketSellFee, fireCelebration, floorToDecimals, formatKMB, formatShares, getSourceMeta, parsePolymarketError, polymarketFeeFactor, resolveExpiration, resolvePolymarketDisplayFeeRateBps, roundToTickSize, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useSellForm, useTradeForm };