@liberfi.io/ui-predict 4.0.69 → 4.0.71
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 +86 -54
- package/dist/index.d.ts +86 -54
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
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';
|
|
3
|
+
import { EventSortField, ProviderSource, PredictEvent, PredictMarket, MarketDataCapability, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, EventStats, Orderbook, ListCandlesticksParams, Candlestick, PredictComment, PredictPosition, PredictSearchResult, MatchMarketFlat, MatchLeg, MatchSortField, MatchGroup, PolymarketWalletKind } from '@liberfi.io/react-predict';
|
|
4
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';
|
|
5
5
|
import { LinkComponentType } from '@liberfi.io/ui';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -149,8 +149,10 @@ interface EventsPageProps {
|
|
|
149
149
|
enableKalshi?: boolean;
|
|
150
150
|
/** Resolved API language for localized event payloads. */
|
|
151
151
|
lang?: string;
|
|
152
|
+
marketDataCapability?: MarketDataCapability;
|
|
153
|
+
getMarketDataEvent?: (event: PredictEvent) => PredictEvent | undefined;
|
|
152
154
|
}
|
|
153
|
-
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc: _bgImageSrc, onInsufficientBalance, enableKalshi, lang, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc: _bgImageSrc, onInsufficientBalance, enableKalshi, lang, marketDataCapability, getMarketDataEvent, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
154
156
|
|
|
155
157
|
interface EventsWidgetProps {
|
|
156
158
|
/** Category / tag selection from the categories widget. */
|
|
@@ -190,8 +192,10 @@ interface EventsWidgetProps {
|
|
|
190
192
|
LinkComponent?: LinkComponentType;
|
|
191
193
|
/** Called when a card is hovered (for data prefetching). */
|
|
192
194
|
onHover?: (event: PredictEvent) => void;
|
|
195
|
+
marketDataCapability?: MarketDataCapability;
|
|
196
|
+
getMarketDataEvent?: (event: PredictEvent) => PredictEvent | undefined;
|
|
193
197
|
}
|
|
194
|
-
declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, markets_limit, lang, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, markets_limit, lang, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, marketDataCapability, getMarketDataEvent, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
195
199
|
|
|
196
200
|
/** Parameters for useEventsInfinite */
|
|
197
201
|
type UseEventsInfiniteParams = ResolveEventsParamsInput;
|
|
@@ -225,8 +229,10 @@ type EventsUIProps = {
|
|
|
225
229
|
getEventHref?: (event: PredictEvent) => string;
|
|
226
230
|
LinkComponent?: LinkComponentType;
|
|
227
231
|
onHover?: (event: PredictEvent) => void;
|
|
232
|
+
marketDataCapability?: MarketDataCapability;
|
|
233
|
+
getMarketDataEvent?: (event: PredictEvent) => PredictEvent | undefined;
|
|
228
234
|
};
|
|
229
|
-
declare function EventsUI({ events, hasMore, isFetchingMore, onFetchMore, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsUIProps): react_jsx_runtime.JSX.Element;
|
|
235
|
+
declare function EventsUI({ events, hasMore, isFetchingMore, onFetchMore, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, marketDataCapability, getMarketDataEvent, }: EventsUIProps): react_jsx_runtime.JSX.Element;
|
|
230
236
|
|
|
231
237
|
interface EventsSkeletonProps {
|
|
232
238
|
count?: number;
|
|
@@ -251,54 +257,10 @@ type EventItemProps = {
|
|
|
251
257
|
onSelectOutcome?: (event: PredictEvent, market: PredictMarket, side: "yes" | "no") => void;
|
|
252
258
|
/** Called when the card is hovered (for data prefetching). */
|
|
253
259
|
onHover?: (event: PredictEvent) => void;
|
|
260
|
+
marketDataCapability?: MarketDataCapability;
|
|
261
|
+
marketDataEvent?: PredictEvent;
|
|
254
262
|
};
|
|
255
|
-
declare function EventItem({ event, href, LinkComponent, onSelect, onSelectOutcome, onHover, }: EventItemProps): react_jsx_runtime.JSX.Element;
|
|
256
|
-
|
|
257
|
-
interface EventDetailPageProps {
|
|
258
|
-
/** Event slug (canonical business key). */
|
|
259
|
-
eventSlug: string;
|
|
260
|
-
/** Upstream provider (`"kalshi"` or `"polymarket"`). Required by prediction-server. */
|
|
261
|
-
source?: ProviderSource;
|
|
262
|
-
/** Chain network for trading (default: 'solana'). */
|
|
263
|
-
chain?: string;
|
|
264
|
-
/** Resolved API language for localized event payloads. */
|
|
265
|
-
lang?: string;
|
|
266
|
-
/** Connected wallet address for user activity (positions/orders/trades). */
|
|
267
|
-
walletAddress?: string;
|
|
268
|
-
/** Callback when a similar event card is clicked. Receives the clicked event. */
|
|
269
|
-
onSimilarEventClick?: (event: PredictEvent) => void;
|
|
270
|
-
/** Called when a similar event card is hovered (for data prefetching). */
|
|
271
|
-
onSimilarEventHover?: (event: PredictEvent) => void;
|
|
272
|
-
/** Navigation callback — if provided, a "Back" button is shown at the top. */
|
|
273
|
-
onBack?: () => void;
|
|
274
|
-
/**
|
|
275
|
-
* Custom render for the user activity section (positions / orders / history).
|
|
276
|
-
* When provided, replaces the built-in `UserActivitySection`.
|
|
277
|
-
*/
|
|
278
|
-
renderActivitySection?: (props: {
|
|
279
|
-
event: PredictEvent;
|
|
280
|
-
walletAddress?: string;
|
|
281
|
-
}) => React.ReactNode;
|
|
282
|
-
/**
|
|
283
|
-
* Forwarded to the inline TradeFormWidget and the mobile trade modal:
|
|
284
|
-
* invoked when the user attempts to buy with an amount exceeding the
|
|
285
|
-
* available USDC balance for the market's source. Use this to open a Fund
|
|
286
|
-
* Wallet / deposit flow.
|
|
287
|
-
*/
|
|
288
|
-
onInsufficientBalance?: (source: ProviderSource) => void;
|
|
289
|
-
/**
|
|
290
|
-
* Forwarded to the inline SellFormWidget and the mobile sell modal: invoked
|
|
291
|
-
* when the user attempts to sell while the Polymarket account still needs
|
|
292
|
-
* setup (deploy + approve). Use this to open the account setup modal.
|
|
293
|
-
*/
|
|
294
|
-
onSetupRequired?: () => void;
|
|
295
|
-
/**
|
|
296
|
-
* Maximum tolerated slippage for market orders, in basis points
|
|
297
|
-
* (100 = 1%). Forwarded to both buy and sell forms. Defaults to 100 bps.
|
|
298
|
-
*/
|
|
299
|
-
slippageBps?: number;
|
|
300
|
-
}
|
|
301
|
-
declare function EventDetailPage({ eventSlug, source, chain, lang, walletAddress, onSimilarEventClick, onSimilarEventHover, onBack, renderActivitySection, onInsufficientBalance, onSetupRequired, slippageBps, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
263
|
+
declare function EventItem({ event, href, LinkComponent, onSelect, onSelectOutcome, onHover, marketDataCapability, marketDataEvent, }: EventItemProps): react_jsx_runtime.JSX.Element;
|
|
302
264
|
|
|
303
265
|
type TradeOutcome = "yes" | "no";
|
|
304
266
|
type TradeSide = "buy" | "sell";
|
|
@@ -400,6 +362,65 @@ declare function parsePolymarketError(raw: string, t: (...args: any[]) => string
|
|
|
400
362
|
declare function formatShares(size: number, maxDecimals?: number): string;
|
|
401
363
|
declare function fireCelebration(): void;
|
|
402
364
|
|
|
365
|
+
interface EventMarketDataBookSelection {
|
|
366
|
+
marketSlug: string;
|
|
367
|
+
outcomeKey: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface EventDetailPageProps {
|
|
371
|
+
/** Event slug (canonical business key). */
|
|
372
|
+
eventSlug: string;
|
|
373
|
+
/** Upstream provider (`"kalshi"` or `"polymarket"`). Required by prediction-server. */
|
|
374
|
+
source?: ProviderSource;
|
|
375
|
+
/** Chain network for trading (default: 'solana'). */
|
|
376
|
+
chain?: string;
|
|
377
|
+
/** Resolved API language for localized event payloads. */
|
|
378
|
+
lang?: string;
|
|
379
|
+
/** Connected wallet address for user activity (positions/orders/trades). */
|
|
380
|
+
walletAddress?: string;
|
|
381
|
+
/** Callback when a similar event card is clicked. Receives the clicked event. */
|
|
382
|
+
onSimilarEventClick?: (event: PredictEvent) => void;
|
|
383
|
+
/** Called when a similar event card is hovered (for data prefetching). */
|
|
384
|
+
onSimilarEventHover?: (event: PredictEvent) => void;
|
|
385
|
+
/** Navigation callback — if provided, a "Back" button is shown at the top. */
|
|
386
|
+
onBack?: () => void;
|
|
387
|
+
/**
|
|
388
|
+
* Custom render for the user activity section (positions / orders / history).
|
|
389
|
+
* When provided, replaces the built-in `UserActivitySection`.
|
|
390
|
+
*/
|
|
391
|
+
renderActivitySection?: (props: {
|
|
392
|
+
event: PredictEvent;
|
|
393
|
+
walletAddress?: string;
|
|
394
|
+
}) => React.ReactNode;
|
|
395
|
+
/**
|
|
396
|
+
* Forwarded to the inline TradeFormWidget and the mobile trade modal:
|
|
397
|
+
* invoked when the user attempts to buy with an amount exceeding the
|
|
398
|
+
* available USDC balance for the market's source. Use this to open a Fund
|
|
399
|
+
* Wallet / deposit flow.
|
|
400
|
+
*/
|
|
401
|
+
onInsufficientBalance?: (source: ProviderSource) => void;
|
|
402
|
+
/**
|
|
403
|
+
* Forwarded to the inline SellFormWidget and the mobile sell modal: invoked
|
|
404
|
+
* when the user attempts to sell while the Polymarket account still needs
|
|
405
|
+
* setup (deploy + approve). Use this to open the account setup modal.
|
|
406
|
+
*/
|
|
407
|
+
onSetupRequired?: () => void;
|
|
408
|
+
/**
|
|
409
|
+
* Maximum tolerated slippage for market orders, in basis points
|
|
410
|
+
* (100 = 1%). Forwarded to both buy and sell forms. Defaults to 100 bps.
|
|
411
|
+
*/
|
|
412
|
+
slippageBps?: number;
|
|
413
|
+
/** Explicitly selects the mutually exclusive market-data-v1 UI branch. */
|
|
414
|
+
marketDataCapability?: MarketDataCapability;
|
|
415
|
+
/** Event with validated Initial Quote/live components merged by the SDK owner. */
|
|
416
|
+
marketDataEvent?: PredictEvent;
|
|
417
|
+
/** Provider-neutral plural/live books keyed by `${marketSlug}:${outcome}`. */
|
|
418
|
+
marketDataOrderbooks?: ReadonlyMap<string, Orderbook | null>;
|
|
419
|
+
/** Requests atomic replacement of the optional detail Book subscription. */
|
|
420
|
+
onMarketDataBookSelectionChange?: (selection: EventMarketDataBookSelection | null) => void;
|
|
421
|
+
}
|
|
422
|
+
declare function EventDetailPage({ eventSlug, source, chain, lang, walletAddress, onSimilarEventClick, onSimilarEventHover, onBack, renderActivitySection, onInsufficientBalance, onSetupRequired, slippageBps, marketDataCapability, marketDataEvent, marketDataOrderbooks, onMarketDataBookSelectionChange, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
403
424
|
interface UseTradeFormParams {
|
|
404
425
|
market: PredictMarket;
|
|
405
426
|
chain?: string;
|
|
@@ -496,11 +517,14 @@ interface EventOrderbookQuote {
|
|
|
496
517
|
|
|
497
518
|
interface EventDetailUIProps {
|
|
498
519
|
event: PredictEvent;
|
|
520
|
+
marketDataEnabled?: boolean;
|
|
521
|
+
marketDataOrderbooks?: ReadonlyMap<string, Orderbook | null>;
|
|
522
|
+
onMarketDataBookSelectionChange?: (selection: EventMarketDataBookSelection | null) => void;
|
|
499
523
|
orderbookQuotes?: Map<string, EventOrderbookQuote>;
|
|
500
524
|
/** Callback when a trade action is triggered */
|
|
501
525
|
onTradeAction?: (market: PredictMarket, outcome: TradeOutcome, side: TradeSide) => void;
|
|
502
526
|
}
|
|
503
|
-
declare function EventDetailUI({ event, orderbookQuotes, onTradeAction, }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
|
|
527
|
+
declare function EventDetailUI({ event, marketDataEnabled, marketDataOrderbooks, onMarketDataBookSelectionChange, orderbookQuotes, onTradeAction, }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
|
|
504
528
|
|
|
505
529
|
interface EventDetailWidgetProps {
|
|
506
530
|
/** Event slug (canonical business key). */
|
|
@@ -623,11 +647,19 @@ interface EventMarketDetailWidgetProps {
|
|
|
623
647
|
className?: string;
|
|
624
648
|
/** Optional formatter for display-only orderbook price labels. */
|
|
625
649
|
oddsFormatter?: OddsFormatter;
|
|
650
|
+
/** Disables the legacy orderbook request and subscription when false. */
|
|
651
|
+
enabled?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Provider-neutral market-data-v1 book. `undefined` uses the legacy hook,
|
|
654
|
+
* while `null` renders an explicitly unavailable book.
|
|
655
|
+
*/
|
|
656
|
+
orderbook?: Orderbook | null;
|
|
626
657
|
}
|
|
627
|
-
declare function EventMarketDetailWidget({ market, outcome, onTradeAction, initialViewMode, className, oddsFormatter, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
658
|
+
declare function EventMarketDetailWidget({ market, outcome, onTradeAction, initialViewMode, className, oddsFormatter, enabled, orderbook: suppliedOrderbook, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
628
659
|
|
|
629
660
|
interface EventPriceChartProps {
|
|
630
661
|
event: PredictEvent;
|
|
662
|
+
marketDataEnabled?: boolean;
|
|
631
663
|
isLoading?: boolean;
|
|
632
664
|
/** Optional CSS class for the outer container */
|
|
633
665
|
className?: string;
|
|
@@ -1537,4 +1569,4 @@ type PredictWalletProviderProps = PropsWithChildren<{
|
|
|
1537
1569
|
}>;
|
|
1538
1570
|
declare function PredictWalletProvider({ pollingInterval, enabled, enableKalshi, children, }: PredictWalletProviderProps): react_jsx_runtime.JSX.Element;
|
|
1539
1571
|
|
|
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 };
|
|
1572
|
+
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, type EventMarketDataBookSelection, 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,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
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';
|
|
3
|
+
import { EventSortField, ProviderSource, PredictEvent, PredictMarket, MarketDataCapability, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, EventStats, Orderbook, ListCandlesticksParams, Candlestick, PredictComment, PredictPosition, PredictSearchResult, MatchMarketFlat, MatchLeg, MatchSortField, MatchGroup, PolymarketWalletKind } from '@liberfi.io/react-predict';
|
|
4
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';
|
|
5
5
|
import { LinkComponentType } from '@liberfi.io/ui';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -149,8 +149,10 @@ interface EventsPageProps {
|
|
|
149
149
|
enableKalshi?: boolean;
|
|
150
150
|
/** Resolved API language for localized event payloads. */
|
|
151
151
|
lang?: string;
|
|
152
|
+
marketDataCapability?: MarketDataCapability;
|
|
153
|
+
getMarketDataEvent?: (event: PredictEvent) => PredictEvent | undefined;
|
|
152
154
|
}
|
|
153
|
-
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc: _bgImageSrc, onInsufficientBalance, enableKalshi, lang, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc: _bgImageSrc, onInsufficientBalance, enableKalshi, lang, marketDataCapability, getMarketDataEvent, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
154
156
|
|
|
155
157
|
interface EventsWidgetProps {
|
|
156
158
|
/** Category / tag selection from the categories widget. */
|
|
@@ -190,8 +192,10 @@ interface EventsWidgetProps {
|
|
|
190
192
|
LinkComponent?: LinkComponentType;
|
|
191
193
|
/** Called when a card is hovered (for data prefetching). */
|
|
192
194
|
onHover?: (event: PredictEvent) => void;
|
|
195
|
+
marketDataCapability?: MarketDataCapability;
|
|
196
|
+
getMarketDataEvent?: (event: PredictEvent) => PredictEvent | undefined;
|
|
193
197
|
}
|
|
194
|
-
declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, markets_limit, lang, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, markets_limit, lang, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, marketDataCapability, getMarketDataEvent, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
195
199
|
|
|
196
200
|
/** Parameters for useEventsInfinite */
|
|
197
201
|
type UseEventsInfiniteParams = ResolveEventsParamsInput;
|
|
@@ -225,8 +229,10 @@ type EventsUIProps = {
|
|
|
225
229
|
getEventHref?: (event: PredictEvent) => string;
|
|
226
230
|
LinkComponent?: LinkComponentType;
|
|
227
231
|
onHover?: (event: PredictEvent) => void;
|
|
232
|
+
marketDataCapability?: MarketDataCapability;
|
|
233
|
+
getMarketDataEvent?: (event: PredictEvent) => PredictEvent | undefined;
|
|
228
234
|
};
|
|
229
|
-
declare function EventsUI({ events, hasMore, isFetchingMore, onFetchMore, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsUIProps): react_jsx_runtime.JSX.Element;
|
|
235
|
+
declare function EventsUI({ events, hasMore, isFetchingMore, onFetchMore, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, marketDataCapability, getMarketDataEvent, }: EventsUIProps): react_jsx_runtime.JSX.Element;
|
|
230
236
|
|
|
231
237
|
interface EventsSkeletonProps {
|
|
232
238
|
count?: number;
|
|
@@ -251,54 +257,10 @@ type EventItemProps = {
|
|
|
251
257
|
onSelectOutcome?: (event: PredictEvent, market: PredictMarket, side: "yes" | "no") => void;
|
|
252
258
|
/** Called when the card is hovered (for data prefetching). */
|
|
253
259
|
onHover?: (event: PredictEvent) => void;
|
|
260
|
+
marketDataCapability?: MarketDataCapability;
|
|
261
|
+
marketDataEvent?: PredictEvent;
|
|
254
262
|
};
|
|
255
|
-
declare function EventItem({ event, href, LinkComponent, onSelect, onSelectOutcome, onHover, }: EventItemProps): react_jsx_runtime.JSX.Element;
|
|
256
|
-
|
|
257
|
-
interface EventDetailPageProps {
|
|
258
|
-
/** Event slug (canonical business key). */
|
|
259
|
-
eventSlug: string;
|
|
260
|
-
/** Upstream provider (`"kalshi"` or `"polymarket"`). Required by prediction-server. */
|
|
261
|
-
source?: ProviderSource;
|
|
262
|
-
/** Chain network for trading (default: 'solana'). */
|
|
263
|
-
chain?: string;
|
|
264
|
-
/** Resolved API language for localized event payloads. */
|
|
265
|
-
lang?: string;
|
|
266
|
-
/** Connected wallet address for user activity (positions/orders/trades). */
|
|
267
|
-
walletAddress?: string;
|
|
268
|
-
/** Callback when a similar event card is clicked. Receives the clicked event. */
|
|
269
|
-
onSimilarEventClick?: (event: PredictEvent) => void;
|
|
270
|
-
/** Called when a similar event card is hovered (for data prefetching). */
|
|
271
|
-
onSimilarEventHover?: (event: PredictEvent) => void;
|
|
272
|
-
/** Navigation callback — if provided, a "Back" button is shown at the top. */
|
|
273
|
-
onBack?: () => void;
|
|
274
|
-
/**
|
|
275
|
-
* Custom render for the user activity section (positions / orders / history).
|
|
276
|
-
* When provided, replaces the built-in `UserActivitySection`.
|
|
277
|
-
*/
|
|
278
|
-
renderActivitySection?: (props: {
|
|
279
|
-
event: PredictEvent;
|
|
280
|
-
walletAddress?: string;
|
|
281
|
-
}) => React.ReactNode;
|
|
282
|
-
/**
|
|
283
|
-
* Forwarded to the inline TradeFormWidget and the mobile trade modal:
|
|
284
|
-
* invoked when the user attempts to buy with an amount exceeding the
|
|
285
|
-
* available USDC balance for the market's source. Use this to open a Fund
|
|
286
|
-
* Wallet / deposit flow.
|
|
287
|
-
*/
|
|
288
|
-
onInsufficientBalance?: (source: ProviderSource) => void;
|
|
289
|
-
/**
|
|
290
|
-
* Forwarded to the inline SellFormWidget and the mobile sell modal: invoked
|
|
291
|
-
* when the user attempts to sell while the Polymarket account still needs
|
|
292
|
-
* setup (deploy + approve). Use this to open the account setup modal.
|
|
293
|
-
*/
|
|
294
|
-
onSetupRequired?: () => void;
|
|
295
|
-
/**
|
|
296
|
-
* Maximum tolerated slippage for market orders, in basis points
|
|
297
|
-
* (100 = 1%). Forwarded to both buy and sell forms. Defaults to 100 bps.
|
|
298
|
-
*/
|
|
299
|
-
slippageBps?: number;
|
|
300
|
-
}
|
|
301
|
-
declare function EventDetailPage({ eventSlug, source, chain, lang, walletAddress, onSimilarEventClick, onSimilarEventHover, onBack, renderActivitySection, onInsufficientBalance, onSetupRequired, slippageBps, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
263
|
+
declare function EventItem({ event, href, LinkComponent, onSelect, onSelectOutcome, onHover, marketDataCapability, marketDataEvent, }: EventItemProps): react_jsx_runtime.JSX.Element;
|
|
302
264
|
|
|
303
265
|
type TradeOutcome = "yes" | "no";
|
|
304
266
|
type TradeSide = "buy" | "sell";
|
|
@@ -400,6 +362,65 @@ declare function parsePolymarketError(raw: string, t: (...args: any[]) => string
|
|
|
400
362
|
declare function formatShares(size: number, maxDecimals?: number): string;
|
|
401
363
|
declare function fireCelebration(): void;
|
|
402
364
|
|
|
365
|
+
interface EventMarketDataBookSelection {
|
|
366
|
+
marketSlug: string;
|
|
367
|
+
outcomeKey: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface EventDetailPageProps {
|
|
371
|
+
/** Event slug (canonical business key). */
|
|
372
|
+
eventSlug: string;
|
|
373
|
+
/** Upstream provider (`"kalshi"` or `"polymarket"`). Required by prediction-server. */
|
|
374
|
+
source?: ProviderSource;
|
|
375
|
+
/** Chain network for trading (default: 'solana'). */
|
|
376
|
+
chain?: string;
|
|
377
|
+
/** Resolved API language for localized event payloads. */
|
|
378
|
+
lang?: string;
|
|
379
|
+
/** Connected wallet address for user activity (positions/orders/trades). */
|
|
380
|
+
walletAddress?: string;
|
|
381
|
+
/** Callback when a similar event card is clicked. Receives the clicked event. */
|
|
382
|
+
onSimilarEventClick?: (event: PredictEvent) => void;
|
|
383
|
+
/** Called when a similar event card is hovered (for data prefetching). */
|
|
384
|
+
onSimilarEventHover?: (event: PredictEvent) => void;
|
|
385
|
+
/** Navigation callback — if provided, a "Back" button is shown at the top. */
|
|
386
|
+
onBack?: () => void;
|
|
387
|
+
/**
|
|
388
|
+
* Custom render for the user activity section (positions / orders / history).
|
|
389
|
+
* When provided, replaces the built-in `UserActivitySection`.
|
|
390
|
+
*/
|
|
391
|
+
renderActivitySection?: (props: {
|
|
392
|
+
event: PredictEvent;
|
|
393
|
+
walletAddress?: string;
|
|
394
|
+
}) => React.ReactNode;
|
|
395
|
+
/**
|
|
396
|
+
* Forwarded to the inline TradeFormWidget and the mobile trade modal:
|
|
397
|
+
* invoked when the user attempts to buy with an amount exceeding the
|
|
398
|
+
* available USDC balance for the market's source. Use this to open a Fund
|
|
399
|
+
* Wallet / deposit flow.
|
|
400
|
+
*/
|
|
401
|
+
onInsufficientBalance?: (source: ProviderSource) => void;
|
|
402
|
+
/**
|
|
403
|
+
* Forwarded to the inline SellFormWidget and the mobile sell modal: invoked
|
|
404
|
+
* when the user attempts to sell while the Polymarket account still needs
|
|
405
|
+
* setup (deploy + approve). Use this to open the account setup modal.
|
|
406
|
+
*/
|
|
407
|
+
onSetupRequired?: () => void;
|
|
408
|
+
/**
|
|
409
|
+
* Maximum tolerated slippage for market orders, in basis points
|
|
410
|
+
* (100 = 1%). Forwarded to both buy and sell forms. Defaults to 100 bps.
|
|
411
|
+
*/
|
|
412
|
+
slippageBps?: number;
|
|
413
|
+
/** Explicitly selects the mutually exclusive market-data-v1 UI branch. */
|
|
414
|
+
marketDataCapability?: MarketDataCapability;
|
|
415
|
+
/** Event with validated Initial Quote/live components merged by the SDK owner. */
|
|
416
|
+
marketDataEvent?: PredictEvent;
|
|
417
|
+
/** Provider-neutral plural/live books keyed by `${marketSlug}:${outcome}`. */
|
|
418
|
+
marketDataOrderbooks?: ReadonlyMap<string, Orderbook | null>;
|
|
419
|
+
/** Requests atomic replacement of the optional detail Book subscription. */
|
|
420
|
+
onMarketDataBookSelectionChange?: (selection: EventMarketDataBookSelection | null) => void;
|
|
421
|
+
}
|
|
422
|
+
declare function EventDetailPage({ eventSlug, source, chain, lang, walletAddress, onSimilarEventClick, onSimilarEventHover, onBack, renderActivitySection, onInsufficientBalance, onSetupRequired, slippageBps, marketDataCapability, marketDataEvent, marketDataOrderbooks, onMarketDataBookSelectionChange, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
403
424
|
interface UseTradeFormParams {
|
|
404
425
|
market: PredictMarket;
|
|
405
426
|
chain?: string;
|
|
@@ -496,11 +517,14 @@ interface EventOrderbookQuote {
|
|
|
496
517
|
|
|
497
518
|
interface EventDetailUIProps {
|
|
498
519
|
event: PredictEvent;
|
|
520
|
+
marketDataEnabled?: boolean;
|
|
521
|
+
marketDataOrderbooks?: ReadonlyMap<string, Orderbook | null>;
|
|
522
|
+
onMarketDataBookSelectionChange?: (selection: EventMarketDataBookSelection | null) => void;
|
|
499
523
|
orderbookQuotes?: Map<string, EventOrderbookQuote>;
|
|
500
524
|
/** Callback when a trade action is triggered */
|
|
501
525
|
onTradeAction?: (market: PredictMarket, outcome: TradeOutcome, side: TradeSide) => void;
|
|
502
526
|
}
|
|
503
|
-
declare function EventDetailUI({ event, orderbookQuotes, onTradeAction, }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
|
|
527
|
+
declare function EventDetailUI({ event, marketDataEnabled, marketDataOrderbooks, onMarketDataBookSelectionChange, orderbookQuotes, onTradeAction, }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
|
|
504
528
|
|
|
505
529
|
interface EventDetailWidgetProps {
|
|
506
530
|
/** Event slug (canonical business key). */
|
|
@@ -623,11 +647,19 @@ interface EventMarketDetailWidgetProps {
|
|
|
623
647
|
className?: string;
|
|
624
648
|
/** Optional formatter for display-only orderbook price labels. */
|
|
625
649
|
oddsFormatter?: OddsFormatter;
|
|
650
|
+
/** Disables the legacy orderbook request and subscription when false. */
|
|
651
|
+
enabled?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Provider-neutral market-data-v1 book. `undefined` uses the legacy hook,
|
|
654
|
+
* while `null` renders an explicitly unavailable book.
|
|
655
|
+
*/
|
|
656
|
+
orderbook?: Orderbook | null;
|
|
626
657
|
}
|
|
627
|
-
declare function EventMarketDetailWidget({ market, outcome, onTradeAction, initialViewMode, className, oddsFormatter, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
658
|
+
declare function EventMarketDetailWidget({ market, outcome, onTradeAction, initialViewMode, className, oddsFormatter, enabled, orderbook: suppliedOrderbook, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
628
659
|
|
|
629
660
|
interface EventPriceChartProps {
|
|
630
661
|
event: PredictEvent;
|
|
662
|
+
marketDataEnabled?: boolean;
|
|
631
663
|
isLoading?: boolean;
|
|
632
664
|
/** Optional CSS class for the outer container */
|
|
633
665
|
className?: string;
|
|
@@ -1537,4 +1569,4 @@ type PredictWalletProviderProps = PropsWithChildren<{
|
|
|
1537
1569
|
}>;
|
|
1538
1570
|
declare function PredictWalletProvider({ pollingInterval, enabled, enableKalshi, children, }: PredictWalletProviderProps): react_jsx_runtime.JSX.Element;
|
|
1539
1571
|
|
|
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 };
|
|
1572
|
+
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, type EventMarketDataBookSelection, 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 };
|