@liberfi.io/ui-predict 0.1.54 → 0.1.55

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.
@@ -1 +1 @@
1
- export { aR as BasePredictClient, aU as DflowPredictClient, aV as DflowPredictWsClient, aU as PredictClient, P as PredictClientV2, aV as PredictWsClient, c as V2Event, V as V2EventSortField, e as V2EventStatus, k as V2ListEventsParams, d as V2Market, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, l as V2Page, b0 as V2ProviderMeta, b as V2ProviderSource, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from '../index-DIcC-37S.mjs';
1
+ export { aR as BasePredictClient, aU as DflowPredictClient, aV as DflowPredictWsClient, aU as PredictClient, P as PredictClientV2, aV as PredictWsClient, c as V2Event, V as V2EventSortField, e as V2EventStatus, l as V2ListEventsParams, d as V2Market, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, j as V2Page, b0 as V2ProviderMeta, b as V2ProviderSource, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from '../index-DcarFHcQ.mjs';
@@ -1 +1 @@
1
- export { aR as BasePredictClient, aU as DflowPredictClient, aV as DflowPredictWsClient, aU as PredictClient, P as PredictClientV2, aV as PredictWsClient, c as V2Event, V as V2EventSortField, e as V2EventStatus, k as V2ListEventsParams, d as V2Market, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, l as V2Page, b0 as V2ProviderMeta, b as V2ProviderSource, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from '../index-DIcC-37S.js';
1
+ export { aR as BasePredictClient, aU as DflowPredictClient, aV as DflowPredictWsClient, aU as PredictClient, P as PredictClientV2, aV as PredictWsClient, c as V2Event, V as V2EventSortField, e as V2EventStatus, l as V2ListEventsParams, d as V2Market, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, j as V2Page, b0 as V2ProviderMeta, b as V2ProviderSource, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from '../index-DcarFHcQ.js';
@@ -1601,4 +1601,4 @@ declare class DflowPredictWsClient implements IPredictWsClient {
1601
1601
  */
1602
1602
  declare function createDflowPredictWsClient(config: WsClientConfig): DflowPredictWsClient;
1603
1603
 
1604
- export { type QuoteResponse as $, type LiveDataByEventQueryParams as A, type LiveDataByMintQueryParams as B, type CandlesticksResponse as C, type SeriesQueryParams as D, type EventQueryParams as E, type ForecastPercentileHistoryQueryParams as F, type SeriesListResponse as G, type TagsByCategoriesResponse as H, type IPredictClient as I, type FiltersBySportsResponse as J, type SearchQueryParams as K, type LiveDataQueryParams as L, type MarketQueryParams as M, type SearchResponse as N, type OrderResponse as O, PredictClientV2 as P, type PositionsByWalletQueryParams as Q, type WalletPositionsResponse as R, type StandardEvent as S, type TradesQueryParams as T, type OutcomeMintsQueryParams as U, type V2EventSortField as V, type WalletPositionItem as W, type OutcomeMintsResponse as X, type FilterOutcomeMintsRequest as Y, type FilterOutcomeMintsResponse as Z, type QuoteQueryParams as _, type StandardMarket as a, type V2Outcome as a$, type SwapRequestBody as a0, type SwapResponse as a1, type SwapInstructionsResponse as a2, type OrderQueryParams as a3, type OrderStatusQueryParams as a4, type IntentQuoteQueryParams as a5, type IntentQuoteResponse as a6, type IntentSwapRequestBody as a7, type IntentSwapResponse as a8, type PredictionMarketInitQueryParams as a9, type RoutePlanLeg as aA, type PlatformFee as aB, type ComputeBudgetInfo as aC, type PrioritizationType as aD, type AccountMetaResponse as aE, type InstructionResponse as aF, type BlockhashWithMetadata as aG, type OrderFill as aH, type OrderRevert as aI, type IntentExpiry as aJ, type TokenWithDecimals as aK, type OrderbookQueryParams as aL, type PrioritizationFeeLamports as aM, type DestinationTokenAccountParam as aN, type CreateFeeAccountParams as aO, type PositiveSlippageParams as aP, type WsSubscribeOptions as aQ, BasePredictClient as aR, buildQuery as aS, toRecord as aT, DflowPredictClient as aU, DflowPredictWsClient as aV, createDflowPredictWsClient as aW, type WsClientConfig as aX, createPredictClientV2 as aY, type V2MarketResult as aZ, type V2MarketStatus as a_, type PredictionMarketInitResponse as aa, type TokenListResponse as ab, type TokenListWithDecimalsResponse as ac, type VenueListResponse as ad, type WsConnectionStatus as ae, type WsPriceUpdate as af, type WsTradeUpdate as ag, type WsOrderbookUpdate as ah, type ProviderType as ai, type MarketStatus as aj, type SortField as ak, type SortOrder as al, type OrderStatus as am, type PlatformFeeMode as an, type SlippageTolerance as ao, type PriorityLevel as ap, type ExecutionMode as aq, type SettlementSource as ar, type MarketAccountInfo as as, type OnchainTrade as at, type OnchainTradeSortBy as au, type OnchainTradesBaseQueryParams as av, type CandlestickOHLC as aw, type CandlestickDataPoint as ax, type ForecastPercentileDataPoint as ay, type SeriesSettlementSource as az, type V2ProviderSource as b, type V2ProviderMeta as b0, type V2SettlementSource as b1, type V2Tag as b2, type V2Event as c, type V2Market as d, type V2EventStatus as e, type OrderStatusResponse as f, type SeriesResponse as g, type OrderbookLevel as h, type SingleTradeResponse as i, type IPredictWsClient as j, type V2ListEventsParams as k, type V2Page as l, type StandardEventsResponse as m, type StandardMarketsResponse as n, type MarketsBatchRequest as o, type OrderbookResponse as p, type MultiTradeResponse as q, type TradesByMintQueryParams as r, type OnchainTradesByWalletQueryParams as s, type MultiOnchainTradeResponse as t, type OnchainTradesByEventQueryParams as u, type OnchainTradesByMarketQueryParams as v, type CandlesticksQueryParams as w, type ForecastPercentileHistoryResponse as x, type ForecastPercentileHistoryByMintQueryParams as y, type LiveDataResponse as z };
1604
+ export { type QuoteResponse as $, type LiveDataByEventQueryParams as A, type LiveDataByMintQueryParams as B, type CandlesticksResponse as C, type SeriesQueryParams as D, type EventQueryParams as E, type ForecastPercentileHistoryQueryParams as F, type SeriesListResponse as G, type TagsByCategoriesResponse as H, type IPredictClient as I, type FiltersBySportsResponse as J, type SearchQueryParams as K, type LiveDataQueryParams as L, type MarketQueryParams as M, type SearchResponse as N, type OrderResponse as O, PredictClientV2 as P, type PositionsByWalletQueryParams as Q, type WalletPositionsResponse as R, type StandardEvent as S, type TradesQueryParams as T, type OutcomeMintsQueryParams as U, type V2EventSortField as V, type WalletPositionItem as W, type OutcomeMintsResponse as X, type FilterOutcomeMintsRequest as Y, type FilterOutcomeMintsResponse as Z, type QuoteQueryParams as _, type StandardMarket as a, type V2Outcome as a$, type SwapRequestBody as a0, type SwapResponse as a1, type SwapInstructionsResponse as a2, type OrderQueryParams as a3, type OrderStatusQueryParams as a4, type IntentQuoteQueryParams as a5, type IntentQuoteResponse as a6, type IntentSwapRequestBody as a7, type IntentSwapResponse as a8, type PredictionMarketInitQueryParams as a9, type RoutePlanLeg as aA, type PlatformFee as aB, type ComputeBudgetInfo as aC, type PrioritizationType as aD, type AccountMetaResponse as aE, type InstructionResponse as aF, type BlockhashWithMetadata as aG, type OrderFill as aH, type OrderRevert as aI, type IntentExpiry as aJ, type TokenWithDecimals as aK, type OrderbookQueryParams as aL, type PrioritizationFeeLamports as aM, type DestinationTokenAccountParam as aN, type CreateFeeAccountParams as aO, type PositiveSlippageParams as aP, type WsSubscribeOptions as aQ, BasePredictClient as aR, buildQuery as aS, toRecord as aT, DflowPredictClient as aU, DflowPredictWsClient as aV, createDflowPredictWsClient as aW, type WsClientConfig as aX, createPredictClientV2 as aY, type V2MarketResult as aZ, type V2MarketStatus as a_, type PredictionMarketInitResponse as aa, type TokenListResponse as ab, type TokenListWithDecimalsResponse as ac, type VenueListResponse as ad, type WsConnectionStatus as ae, type WsPriceUpdate as af, type WsTradeUpdate as ag, type WsOrderbookUpdate as ah, type ProviderType as ai, type MarketStatus as aj, type SortField as ak, type SortOrder as al, type OrderStatus as am, type PlatformFeeMode as an, type SlippageTolerance as ao, type PriorityLevel as ap, type ExecutionMode as aq, type SettlementSource as ar, type MarketAccountInfo as as, type OnchainTrade as at, type OnchainTradeSortBy as au, type OnchainTradesBaseQueryParams as av, type CandlestickOHLC as aw, type CandlestickDataPoint as ax, type ForecastPercentileDataPoint as ay, type SeriesSettlementSource as az, type V2ProviderSource as b, type V2ProviderMeta as b0, type V2SettlementSource as b1, type V2Tag as b2, type V2Event as c, type V2Market as d, type V2EventStatus as e, type OrderStatusResponse as f, type SeriesResponse as g, type OrderbookLevel as h, type SingleTradeResponse as i, type V2Page as j, type IPredictWsClient as k, type V2ListEventsParams as l, type StandardEventsResponse as m, type StandardMarketsResponse as n, type MarketsBatchRequest as o, type OrderbookResponse as p, type MultiTradeResponse as q, type TradesByMintQueryParams as r, type OnchainTradesByWalletQueryParams as s, type MultiOnchainTradeResponse as t, type OnchainTradesByEventQueryParams as u, type OnchainTradesByMarketQueryParams as v, type CandlesticksQueryParams as w, type ForecastPercentileHistoryResponse as x, type ForecastPercentileHistoryByMintQueryParams as y, type LiveDataResponse as z };
@@ -1601,4 +1601,4 @@ declare class DflowPredictWsClient implements IPredictWsClient {
1601
1601
  */
1602
1602
  declare function createDflowPredictWsClient(config: WsClientConfig): DflowPredictWsClient;
1603
1603
 
1604
- export { type QuoteResponse as $, type LiveDataByEventQueryParams as A, type LiveDataByMintQueryParams as B, type CandlesticksResponse as C, type SeriesQueryParams as D, type EventQueryParams as E, type ForecastPercentileHistoryQueryParams as F, type SeriesListResponse as G, type TagsByCategoriesResponse as H, type IPredictClient as I, type FiltersBySportsResponse as J, type SearchQueryParams as K, type LiveDataQueryParams as L, type MarketQueryParams as M, type SearchResponse as N, type OrderResponse as O, PredictClientV2 as P, type PositionsByWalletQueryParams as Q, type WalletPositionsResponse as R, type StandardEvent as S, type TradesQueryParams as T, type OutcomeMintsQueryParams as U, type V2EventSortField as V, type WalletPositionItem as W, type OutcomeMintsResponse as X, type FilterOutcomeMintsRequest as Y, type FilterOutcomeMintsResponse as Z, type QuoteQueryParams as _, type StandardMarket as a, type V2Outcome as a$, type SwapRequestBody as a0, type SwapResponse as a1, type SwapInstructionsResponse as a2, type OrderQueryParams as a3, type OrderStatusQueryParams as a4, type IntentQuoteQueryParams as a5, type IntentQuoteResponse as a6, type IntentSwapRequestBody as a7, type IntentSwapResponse as a8, type PredictionMarketInitQueryParams as a9, type RoutePlanLeg as aA, type PlatformFee as aB, type ComputeBudgetInfo as aC, type PrioritizationType as aD, type AccountMetaResponse as aE, type InstructionResponse as aF, type BlockhashWithMetadata as aG, type OrderFill as aH, type OrderRevert as aI, type IntentExpiry as aJ, type TokenWithDecimals as aK, type OrderbookQueryParams as aL, type PrioritizationFeeLamports as aM, type DestinationTokenAccountParam as aN, type CreateFeeAccountParams as aO, type PositiveSlippageParams as aP, type WsSubscribeOptions as aQ, BasePredictClient as aR, buildQuery as aS, toRecord as aT, DflowPredictClient as aU, DflowPredictWsClient as aV, createDflowPredictWsClient as aW, type WsClientConfig as aX, createPredictClientV2 as aY, type V2MarketResult as aZ, type V2MarketStatus as a_, type PredictionMarketInitResponse as aa, type TokenListResponse as ab, type TokenListWithDecimalsResponse as ac, type VenueListResponse as ad, type WsConnectionStatus as ae, type WsPriceUpdate as af, type WsTradeUpdate as ag, type WsOrderbookUpdate as ah, type ProviderType as ai, type MarketStatus as aj, type SortField as ak, type SortOrder as al, type OrderStatus as am, type PlatformFeeMode as an, type SlippageTolerance as ao, type PriorityLevel as ap, type ExecutionMode as aq, type SettlementSource as ar, type MarketAccountInfo as as, type OnchainTrade as at, type OnchainTradeSortBy as au, type OnchainTradesBaseQueryParams as av, type CandlestickOHLC as aw, type CandlestickDataPoint as ax, type ForecastPercentileDataPoint as ay, type SeriesSettlementSource as az, type V2ProviderSource as b, type V2ProviderMeta as b0, type V2SettlementSource as b1, type V2Tag as b2, type V2Event as c, type V2Market as d, type V2EventStatus as e, type OrderStatusResponse as f, type SeriesResponse as g, type OrderbookLevel as h, type SingleTradeResponse as i, type IPredictWsClient as j, type V2ListEventsParams as k, type V2Page as l, type StandardEventsResponse as m, type StandardMarketsResponse as n, type MarketsBatchRequest as o, type OrderbookResponse as p, type MultiTradeResponse as q, type TradesByMintQueryParams as r, type OnchainTradesByWalletQueryParams as s, type MultiOnchainTradeResponse as t, type OnchainTradesByEventQueryParams as u, type OnchainTradesByMarketQueryParams as v, type CandlesticksQueryParams as w, type ForecastPercentileHistoryResponse as x, type ForecastPercentileHistoryByMintQueryParams as y, type LiveDataResponse as z };
1604
+ export { type QuoteResponse as $, type LiveDataByEventQueryParams as A, type LiveDataByMintQueryParams as B, type CandlesticksResponse as C, type SeriesQueryParams as D, type EventQueryParams as E, type ForecastPercentileHistoryQueryParams as F, type SeriesListResponse as G, type TagsByCategoriesResponse as H, type IPredictClient as I, type FiltersBySportsResponse as J, type SearchQueryParams as K, type LiveDataQueryParams as L, type MarketQueryParams as M, type SearchResponse as N, type OrderResponse as O, PredictClientV2 as P, type PositionsByWalletQueryParams as Q, type WalletPositionsResponse as R, type StandardEvent as S, type TradesQueryParams as T, type OutcomeMintsQueryParams as U, type V2EventSortField as V, type WalletPositionItem as W, type OutcomeMintsResponse as X, type FilterOutcomeMintsRequest as Y, type FilterOutcomeMintsResponse as Z, type QuoteQueryParams as _, type StandardMarket as a, type V2Outcome as a$, type SwapRequestBody as a0, type SwapResponse as a1, type SwapInstructionsResponse as a2, type OrderQueryParams as a3, type OrderStatusQueryParams as a4, type IntentQuoteQueryParams as a5, type IntentQuoteResponse as a6, type IntentSwapRequestBody as a7, type IntentSwapResponse as a8, type PredictionMarketInitQueryParams as a9, type RoutePlanLeg as aA, type PlatformFee as aB, type ComputeBudgetInfo as aC, type PrioritizationType as aD, type AccountMetaResponse as aE, type InstructionResponse as aF, type BlockhashWithMetadata as aG, type OrderFill as aH, type OrderRevert as aI, type IntentExpiry as aJ, type TokenWithDecimals as aK, type OrderbookQueryParams as aL, type PrioritizationFeeLamports as aM, type DestinationTokenAccountParam as aN, type CreateFeeAccountParams as aO, type PositiveSlippageParams as aP, type WsSubscribeOptions as aQ, BasePredictClient as aR, buildQuery as aS, toRecord as aT, DflowPredictClient as aU, DflowPredictWsClient as aV, createDflowPredictWsClient as aW, type WsClientConfig as aX, createPredictClientV2 as aY, type V2MarketResult as aZ, type V2MarketStatus as a_, type PredictionMarketInitResponse as aa, type TokenListResponse as ab, type TokenListWithDecimalsResponse as ac, type VenueListResponse as ad, type WsConnectionStatus as ae, type WsPriceUpdate as af, type WsTradeUpdate as ag, type WsOrderbookUpdate as ah, type ProviderType as ai, type MarketStatus as aj, type SortField as ak, type SortOrder as al, type OrderStatus as am, type PlatformFeeMode as an, type SlippageTolerance as ao, type PriorityLevel as ap, type ExecutionMode as aq, type SettlementSource as ar, type MarketAccountInfo as as, type OnchainTrade as at, type OnchainTradeSortBy as au, type OnchainTradesBaseQueryParams as av, type CandlestickOHLC as aw, type CandlestickDataPoint as ax, type ForecastPercentileDataPoint as ay, type SeriesSettlementSource as az, type V2ProviderSource as b, type V2ProviderMeta as b0, type V2SettlementSource as b1, type V2Tag as b2, type V2Event as c, type V2Market as d, type V2EventStatus as e, type OrderStatusResponse as f, type SeriesResponse as g, type OrderbookLevel as h, type SingleTradeResponse as i, type V2Page as j, type IPredictWsClient as k, type V2ListEventsParams as l, type StandardEventsResponse as m, type StandardMarketsResponse as n, type MarketsBatchRequest as o, type OrderbookResponse as p, type MultiTradeResponse as q, type TradesByMintQueryParams as r, type OnchainTradesByWalletQueryParams as s, type MultiOnchainTradeResponse as t, type OnchainTradesByEventQueryParams as u, type OnchainTradesByMarketQueryParams as v, type CandlesticksQueryParams as w, type ForecastPercentileHistoryResponse as x, type ForecastPercentileHistoryByMintQueryParams as y, type LiveDataResponse as z };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, V as V2EventSortField, b as V2ProviderSource, c as V2Event, d as V2Market, e as V2EventStatus, O as OrderResponse, f as OrderStatusResponse, g as SeriesResponse, C as CandlesticksResponse, h as OrderbookLevel, i as SingleTradeResponse, I as IPredictClient, j as IPredictWsClient, W as WalletPositionItem, P as PredictClientV2, k as V2ListEventsParams, l as V2Page, m as StandardEventsResponse, M as MarketQueryParams, n as StandardMarketsResponse, o as MarketsBatchRequest, p as OrderbookResponse, T as TradesQueryParams, q as MultiTradeResponse, r as TradesByMintQueryParams, s as OnchainTradesByWalletQueryParams, t as MultiOnchainTradeResponse, u as OnchainTradesByEventQueryParams, v as OnchainTradesByMarketQueryParams, w as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams, x as ForecastPercentileHistoryResponse, y as ForecastPercentileHistoryByMintQueryParams, L as LiveDataQueryParams, z as LiveDataResponse, A as LiveDataByEventQueryParams, B as LiveDataByMintQueryParams, D as SeriesQueryParams, G as SeriesListResponse, H as TagsByCategoriesResponse, J as FiltersBySportsResponse, K as SearchQueryParams, N as SearchResponse, Q as PositionsByWalletQueryParams, R as WalletPositionsResponse, U as OutcomeMintsQueryParams, X as OutcomeMintsResponse, Y as FilterOutcomeMintsRequest, Z as FilterOutcomeMintsResponse, _ as QuoteQueryParams, $ as QuoteResponse, a0 as SwapRequestBody, a1 as SwapResponse, a2 as SwapInstructionsResponse, a3 as OrderQueryParams, a4 as OrderStatusQueryParams, a5 as IntentQuoteQueryParams, a6 as IntentQuoteResponse, a7 as IntentSwapRequestBody, a8 as IntentSwapResponse, a9 as PredictionMarketInitQueryParams, aa as PredictionMarketInitResponse, ab as TokenListResponse, ac as TokenListWithDecimalsResponse, ad as VenueListResponse, ae as WsConnectionStatus, af as WsPriceUpdate, ag as WsTradeUpdate, ah as WsOrderbookUpdate } from './index-DIcC-37S.mjs';
3
- export { aE as AccountMetaResponse, aR as BasePredictClient, aG as BlockhashWithMetadata, ax as CandlestickDataPoint, aw as CandlestickOHLC, aC as ComputeBudgetInfo, aO as CreateFeeAccountParams, aN as DestinationTokenAccountParam, aU as DflowPredictClient, aV as DflowPredictWsClient, aq as ExecutionMode, ay as ForecastPercentileDataPoint, aF as InstructionResponse, aJ as IntentExpiry, as as MarketAccountInfo, aj as MarketStatus, at as OnchainTrade, au as OnchainTradeSortBy, av as OnchainTradesBaseQueryParams, aH as OrderFill, aI as OrderRevert, am as OrderStatus, aL as OrderbookQueryParams, aB as PlatformFee, an as PlatformFeeMode, aP as PositiveSlippageParams, aU as PredictClient, aV as PredictWsClient, aM as PrioritizationFeeLamports, aD as PrioritizationType, ap as PriorityLevel, ai as ProviderType, aA as RoutePlanLeg, az as SeriesSettlementSource, ar as SettlementSource, ao as SlippageTolerance, ak as SortField, al as SortOrder, aK as TokenWithDecimals, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, b0 as V2ProviderMeta, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aQ as WsSubscribeOptions, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from './index-DIcC-37S.mjs';
2
+ import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, V as V2EventSortField, b as V2ProviderSource, c as V2Event, d as V2Market, e as V2EventStatus, O as OrderResponse, f as OrderStatusResponse, g as SeriesResponse, C as CandlesticksResponse, h as OrderbookLevel, i as SingleTradeResponse, j as V2Page, I as IPredictClient, k as IPredictWsClient, W as WalletPositionItem, P as PredictClientV2, l as V2ListEventsParams, m as StandardEventsResponse, M as MarketQueryParams, n as StandardMarketsResponse, o as MarketsBatchRequest, p as OrderbookResponse, T as TradesQueryParams, q as MultiTradeResponse, r as TradesByMintQueryParams, s as OnchainTradesByWalletQueryParams, t as MultiOnchainTradeResponse, u as OnchainTradesByEventQueryParams, v as OnchainTradesByMarketQueryParams, w as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams, x as ForecastPercentileHistoryResponse, y as ForecastPercentileHistoryByMintQueryParams, L as LiveDataQueryParams, z as LiveDataResponse, A as LiveDataByEventQueryParams, B as LiveDataByMintQueryParams, D as SeriesQueryParams, G as SeriesListResponse, H as TagsByCategoriesResponse, J as FiltersBySportsResponse, K as SearchQueryParams, N as SearchResponse, Q as PositionsByWalletQueryParams, R as WalletPositionsResponse, U as OutcomeMintsQueryParams, X as OutcomeMintsResponse, Y as FilterOutcomeMintsRequest, Z as FilterOutcomeMintsResponse, _ as QuoteQueryParams, $ as QuoteResponse, a0 as SwapRequestBody, a1 as SwapResponse, a2 as SwapInstructionsResponse, a3 as OrderQueryParams, a4 as OrderStatusQueryParams, a5 as IntentQuoteQueryParams, a6 as IntentQuoteResponse, a7 as IntentSwapRequestBody, a8 as IntentSwapResponse, a9 as PredictionMarketInitQueryParams, aa as PredictionMarketInitResponse, ab as TokenListResponse, ac as TokenListWithDecimalsResponse, ad as VenueListResponse, ae as WsConnectionStatus, af as WsPriceUpdate, ag as WsTradeUpdate, ah as WsOrderbookUpdate } from './index-DcarFHcQ.mjs';
3
+ export { aE as AccountMetaResponse, aR as BasePredictClient, aG as BlockhashWithMetadata, ax as CandlestickDataPoint, aw as CandlestickOHLC, aC as ComputeBudgetInfo, aO as CreateFeeAccountParams, aN as DestinationTokenAccountParam, aU as DflowPredictClient, aV as DflowPredictWsClient, aq as ExecutionMode, ay as ForecastPercentileDataPoint, aF as InstructionResponse, aJ as IntentExpiry, as as MarketAccountInfo, aj as MarketStatus, at as OnchainTrade, au as OnchainTradeSortBy, av as OnchainTradesBaseQueryParams, aH as OrderFill, aI as OrderRevert, am as OrderStatus, aL as OrderbookQueryParams, aB as PlatformFee, an as PlatformFeeMode, aP as PositiveSlippageParams, aU as PredictClient, aV as PredictWsClient, aM as PrioritizationFeeLamports, aD as PrioritizationType, ap as PriorityLevel, ai as ProviderType, aA as RoutePlanLeg, az as SeriesSettlementSource, ar as SettlementSource, ao as SlippageTolerance, ak as SortField, al as SortOrder, aK as TokenWithDecimals, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, b0 as V2ProviderMeta, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aQ as WsSubscribeOptions, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from './index-DcarFHcQ.mjs';
4
4
  import { LinkComponentType } from '@liberfi.io/ui';
5
- import * as react from 'react';
6
- import { PropsWithChildren } from 'react';
7
5
  import * as _tanstack_react_query from '@tanstack/react-query';
8
6
  import { UseQueryOptions, UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
7
+ import * as react from 'react';
8
+ import { PropsWithChildren } from 'react';
9
9
 
10
10
  declare global {
11
11
  interface Window {
@@ -14,7 +14,7 @@ declare global {
14
14
  };
15
15
  }
16
16
  }
17
- declare const _default: "0.1.54";
17
+ declare const _default: "0.1.55";
18
18
 
19
19
  interface EventsPageProps {
20
20
  /** Callback when an event is selected */
@@ -969,6 +969,128 @@ interface CategoriesWidgetV2Props {
969
969
  }
970
970
  declare function CategoriesWidgetV2({ onSelect, trailing, className, }: CategoriesWidgetV2Props): react_jsx_runtime.JSX.Element;
971
971
 
972
+ type PredictSearchModalParams = {
973
+ /** Generate href for each event row. When set, rows render as links. */
974
+ getEventHref?: (event: V2Event) => string;
975
+ /** Custom link component (e.g. next/link). */
976
+ LinkComponent?: LinkComponentType;
977
+ /** Called when a row is hovered (for data prefetching). */
978
+ onHover?: (event: V2Event) => void;
979
+ };
980
+ type PredictSearchModalResult = V2Event;
981
+ declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
982
+ declare function PredictSearchModal({ id, }: {
983
+ id?: string;
984
+ }): react_jsx_runtime.JSX.Element;
985
+
986
+ type SearchEventsButtonProps = {
987
+ /** Callback when an event is selected from the search modal */
988
+ onSelectEvent?: (event: V2Event) => void;
989
+ /** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
990
+ modalParams?: Omit<PredictSearchModalParams, never>;
991
+ className?: string;
992
+ };
993
+ declare function SearchEventsButton({ onSelectEvent, modalParams, className, }: SearchEventsButtonProps): react_jsx_runtime.JSX.Element;
994
+
995
+ declare function usePredictSearchHistory(): {
996
+ histories: string[];
997
+ addHistory: (keyword: string) => void;
998
+ clearHistories: () => void;
999
+ };
1000
+
1001
+ type SearchHistoryUIProps = {
1002
+ histories: string[];
1003
+ onSelect?: (keyword: string) => void;
1004
+ onClear?: () => void;
1005
+ className?: string;
1006
+ };
1007
+ declare function SearchHistoryUI({ histories, onSelect, onClear, className, }: SearchHistoryUIProps): react_jsx_runtime.JSX.Element | null;
1008
+
1009
+ type SearchHistoryWidgetProps = {
1010
+ /** Callback when a history keyword is selected */
1011
+ onSelect?: (keyword: string) => void;
1012
+ className?: string;
1013
+ };
1014
+ declare function SearchHistoryWidget({ onSelect, className, }: SearchHistoryWidgetProps): react_jsx_runtime.JSX.Element;
1015
+
1016
+ type SearchInputUIProps = {
1017
+ /** Controlled input value */
1018
+ value: string;
1019
+ /** Called on every keystroke */
1020
+ onValueChange: (value: string) => void;
1021
+ /** Called when clear button is pressed */
1022
+ onClear?: () => void;
1023
+ /** Called when Esc button is pressed */
1024
+ onEscape?: () => void;
1025
+ className?: string;
1026
+ };
1027
+ declare function SearchInputUI({ value, onValueChange, onClear, onEscape, className, }: SearchInputUIProps): react_jsx_runtime.JSX.Element;
1028
+
1029
+ type SearchResultItemUIProps = {
1030
+ event: V2Event;
1031
+ /** URL for the detail page. When set, the row renders as a link via Linkable. */
1032
+ href?: string;
1033
+ /** Custom link component (e.g. next/link). */
1034
+ LinkComponent?: LinkComponentType;
1035
+ onSelect?: (event: V2Event) => void;
1036
+ /** Called when the row is hovered (for data prefetching). */
1037
+ onHover?: (event: V2Event) => void;
1038
+ className?: string;
1039
+ };
1040
+ declare function SearchResultItemUI({ event, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
1041
+
1042
+ interface UseSearchResultListScriptParams {
1043
+ keyword: string;
1044
+ limit?: number;
1045
+ }
1046
+ declare function useSearchResultListScript({ keyword, limit, }: UseSearchResultListScriptParams): {
1047
+ events: V2Event[];
1048
+ isLoading: boolean;
1049
+ isFetchingNextPage: boolean;
1050
+ hasNextPage: boolean;
1051
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<V2Page<V2Event>, unknown>, Error>>;
1052
+ };
1053
+
1054
+ type SearchResultListWidgetProps = {
1055
+ onSelect?: (event: V2Event) => void;
1056
+ /** Generate href for each event row. When set, rows render as links. */
1057
+ getEventHref?: (event: V2Event) => string;
1058
+ /** Custom link component (e.g. next/link). */
1059
+ LinkComponent?: LinkComponentType;
1060
+ /** Called when a row is hovered (for data prefetching). */
1061
+ onHover?: (event: V2Event) => void;
1062
+ className?: string;
1063
+ } & UseSearchResultListScriptParams;
1064
+ declare function SearchResultListWidget({ onSelect, getEventHref, LinkComponent, onHover, className, ...scriptParams }: SearchResultListWidgetProps): react_jsx_runtime.JSX.Element;
1065
+
1066
+ interface UseSearchScriptParams {
1067
+ /** Callback when the debounced keyword changes */
1068
+ onKeywordChange?: (keyword: string) => void;
1069
+ }
1070
+ declare function useSearchScript({ onKeywordChange }: UseSearchScriptParams): {
1071
+ text: string;
1072
+ keyword: string;
1073
+ setText: (v: string) => void;
1074
+ setKeyword: (value: string) => void;
1075
+ clearKeyword: () => void;
1076
+ };
1077
+
1078
+ type SearchWidgetProps = {
1079
+ /** Callback when the debounced keyword changes */
1080
+ onKeywordChange?: (keyword: string) => void;
1081
+ /** Callback when an event is selected */
1082
+ onSelectEvent?: (event: V2Event) => void;
1083
+ /** Generate href for each event row. When set, rows render as links. */
1084
+ getEventHref?: (event: V2Event) => string;
1085
+ /** Custom link component (e.g. next/link). */
1086
+ LinkComponent?: LinkComponentType;
1087
+ /** Called when a row is hovered (for data prefetching). */
1088
+ onHover?: (event: V2Event) => void;
1089
+ /** Called when the Esc button / key is pressed. */
1090
+ onEscape?: () => void;
1091
+ };
1092
+ declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1093
+
972
1094
  interface PredictContextValue {
973
1095
  /** The predict API client instance */
974
1096
  client: IPredictClient;
@@ -1114,6 +1236,33 @@ interface UseEventV2QueryParams {
1114
1236
  */
1115
1237
  declare function useEventV2Query(params: UseEventV2QueryParams, queryOptions?: Omit<UseQueryOptions<V2Event, Error, V2Event, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<V2Event, Error>;
1116
1238
 
1239
+ interface UseSearchEventsInfiniteQueryParams {
1240
+ /** Search keyword */
1241
+ keyword: string;
1242
+ /** Page size (default: 20) */
1243
+ limit?: number;
1244
+ /** Event status filter (default: "open") */
1245
+ status?: V2EventStatus;
1246
+ /** Include nested markets (default: false for lighter search payloads) */
1247
+ with_markets?: boolean;
1248
+ }
1249
+ /**
1250
+ * Infinite query hook for searching prediction events via the V2 `listEvents`
1251
+ * endpoint with a `search` parameter.
1252
+ *
1253
+ * Designed to be consumed by component-level scripts that flatten the paginated
1254
+ * data for rendering.
1255
+ *
1256
+ * @example
1257
+ * ```tsx
1258
+ * const { data, isLoading, hasNextPage, fetchNextPage } =
1259
+ * useSearchEventsInfiniteQuery({ keyword: "trump" });
1260
+ * ```
1261
+ */
1262
+ declare function useSearchEventsInfiniteQuery(params: UseSearchEventsInfiniteQueryParams, queryOptions?: {
1263
+ enabled?: boolean;
1264
+ }): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<V2Page<V2Event>, unknown>, Error>;
1265
+
1117
1266
  declare function usePredictContext(): PredictContextValue;
1118
1267
 
1119
1268
  declare function usePredictClient(): IPredictClient;
@@ -1453,4 +1602,4 @@ interface UseOrderbookSubscriptionResult {
1453
1602
  */
1454
1603
  declare function useOrderbookSubscription({ client, all, tickers, enabled, onUpdate, }: UseOrderbookSubscriptionParams): UseOrderbookSubscriptionResult;
1455
1604
 
1456
- export { CATEGORIES_V2, CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItemV2, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchQueryParams, SearchResponse, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventV2QueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEventV2, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchQuery, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
1605
+ export { CATEGORIES_V2, CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItemV2, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PREDICT_SEARCH_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchQueryParams, SearchResponse, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseSearchEventsInfiniteQueryParams, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventV2QueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEventV2, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictSearchHistory, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchEventsInfiniteQuery, useSearchQuery, useSearchResultListScript, useSearchScript, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, V as V2EventSortField, b as V2ProviderSource, c as V2Event, d as V2Market, e as V2EventStatus, O as OrderResponse, f as OrderStatusResponse, g as SeriesResponse, C as CandlesticksResponse, h as OrderbookLevel, i as SingleTradeResponse, I as IPredictClient, j as IPredictWsClient, W as WalletPositionItem, P as PredictClientV2, k as V2ListEventsParams, l as V2Page, m as StandardEventsResponse, M as MarketQueryParams, n as StandardMarketsResponse, o as MarketsBatchRequest, p as OrderbookResponse, T as TradesQueryParams, q as MultiTradeResponse, r as TradesByMintQueryParams, s as OnchainTradesByWalletQueryParams, t as MultiOnchainTradeResponse, u as OnchainTradesByEventQueryParams, v as OnchainTradesByMarketQueryParams, w as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams, x as ForecastPercentileHistoryResponse, y as ForecastPercentileHistoryByMintQueryParams, L as LiveDataQueryParams, z as LiveDataResponse, A as LiveDataByEventQueryParams, B as LiveDataByMintQueryParams, D as SeriesQueryParams, G as SeriesListResponse, H as TagsByCategoriesResponse, J as FiltersBySportsResponse, K as SearchQueryParams, N as SearchResponse, Q as PositionsByWalletQueryParams, R as WalletPositionsResponse, U as OutcomeMintsQueryParams, X as OutcomeMintsResponse, Y as FilterOutcomeMintsRequest, Z as FilterOutcomeMintsResponse, _ as QuoteQueryParams, $ as QuoteResponse, a0 as SwapRequestBody, a1 as SwapResponse, a2 as SwapInstructionsResponse, a3 as OrderQueryParams, a4 as OrderStatusQueryParams, a5 as IntentQuoteQueryParams, a6 as IntentQuoteResponse, a7 as IntentSwapRequestBody, a8 as IntentSwapResponse, a9 as PredictionMarketInitQueryParams, aa as PredictionMarketInitResponse, ab as TokenListResponse, ac as TokenListWithDecimalsResponse, ad as VenueListResponse, ae as WsConnectionStatus, af as WsPriceUpdate, ag as WsTradeUpdate, ah as WsOrderbookUpdate } from './index-DIcC-37S.js';
3
- export { aE as AccountMetaResponse, aR as BasePredictClient, aG as BlockhashWithMetadata, ax as CandlestickDataPoint, aw as CandlestickOHLC, aC as ComputeBudgetInfo, aO as CreateFeeAccountParams, aN as DestinationTokenAccountParam, aU as DflowPredictClient, aV as DflowPredictWsClient, aq as ExecutionMode, ay as ForecastPercentileDataPoint, aF as InstructionResponse, aJ as IntentExpiry, as as MarketAccountInfo, aj as MarketStatus, at as OnchainTrade, au as OnchainTradeSortBy, av as OnchainTradesBaseQueryParams, aH as OrderFill, aI as OrderRevert, am as OrderStatus, aL as OrderbookQueryParams, aB as PlatformFee, an as PlatformFeeMode, aP as PositiveSlippageParams, aU as PredictClient, aV as PredictWsClient, aM as PrioritizationFeeLamports, aD as PrioritizationType, ap as PriorityLevel, ai as ProviderType, aA as RoutePlanLeg, az as SeriesSettlementSource, ar as SettlementSource, ao as SlippageTolerance, ak as SortField, al as SortOrder, aK as TokenWithDecimals, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, b0 as V2ProviderMeta, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aQ as WsSubscribeOptions, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from './index-DIcC-37S.js';
2
+ import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, V as V2EventSortField, b as V2ProviderSource, c as V2Event, d as V2Market, e as V2EventStatus, O as OrderResponse, f as OrderStatusResponse, g as SeriesResponse, C as CandlesticksResponse, h as OrderbookLevel, i as SingleTradeResponse, j as V2Page, I as IPredictClient, k as IPredictWsClient, W as WalletPositionItem, P as PredictClientV2, l as V2ListEventsParams, m as StandardEventsResponse, M as MarketQueryParams, n as StandardMarketsResponse, o as MarketsBatchRequest, p as OrderbookResponse, T as TradesQueryParams, q as MultiTradeResponse, r as TradesByMintQueryParams, s as OnchainTradesByWalletQueryParams, t as MultiOnchainTradeResponse, u as OnchainTradesByEventQueryParams, v as OnchainTradesByMarketQueryParams, w as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams, x as ForecastPercentileHistoryResponse, y as ForecastPercentileHistoryByMintQueryParams, L as LiveDataQueryParams, z as LiveDataResponse, A as LiveDataByEventQueryParams, B as LiveDataByMintQueryParams, D as SeriesQueryParams, G as SeriesListResponse, H as TagsByCategoriesResponse, J as FiltersBySportsResponse, K as SearchQueryParams, N as SearchResponse, Q as PositionsByWalletQueryParams, R as WalletPositionsResponse, U as OutcomeMintsQueryParams, X as OutcomeMintsResponse, Y as FilterOutcomeMintsRequest, Z as FilterOutcomeMintsResponse, _ as QuoteQueryParams, $ as QuoteResponse, a0 as SwapRequestBody, a1 as SwapResponse, a2 as SwapInstructionsResponse, a3 as OrderQueryParams, a4 as OrderStatusQueryParams, a5 as IntentQuoteQueryParams, a6 as IntentQuoteResponse, a7 as IntentSwapRequestBody, a8 as IntentSwapResponse, a9 as PredictionMarketInitQueryParams, aa as PredictionMarketInitResponse, ab as TokenListResponse, ac as TokenListWithDecimalsResponse, ad as VenueListResponse, ae as WsConnectionStatus, af as WsPriceUpdate, ag as WsTradeUpdate, ah as WsOrderbookUpdate } from './index-DcarFHcQ.js';
3
+ export { aE as AccountMetaResponse, aR as BasePredictClient, aG as BlockhashWithMetadata, ax as CandlestickDataPoint, aw as CandlestickOHLC, aC as ComputeBudgetInfo, aO as CreateFeeAccountParams, aN as DestinationTokenAccountParam, aU as DflowPredictClient, aV as DflowPredictWsClient, aq as ExecutionMode, ay as ForecastPercentileDataPoint, aF as InstructionResponse, aJ as IntentExpiry, as as MarketAccountInfo, aj as MarketStatus, at as OnchainTrade, au as OnchainTradeSortBy, av as OnchainTradesBaseQueryParams, aH as OrderFill, aI as OrderRevert, am as OrderStatus, aL as OrderbookQueryParams, aB as PlatformFee, an as PlatformFeeMode, aP as PositiveSlippageParams, aU as PredictClient, aV as PredictWsClient, aM as PrioritizationFeeLamports, aD as PrioritizationType, ap as PriorityLevel, ai as ProviderType, aA as RoutePlanLeg, az as SeriesSettlementSource, ar as SettlementSource, ao as SlippageTolerance, ak as SortField, al as SortOrder, aK as TokenWithDecimals, aZ as V2MarketResult, a_ as V2MarketStatus, a$ as V2Outcome, b0 as V2ProviderMeta, b1 as V2SettlementSource, b2 as V2Tag, aX as WsClientConfig, aQ as WsSubscribeOptions, aS as buildQuery, aW as createDflowPredictWsClient, aY as createPredictClientV2, aW as createPredictWsClient, aT as toRecord } from './index-DcarFHcQ.js';
4
4
  import { LinkComponentType } from '@liberfi.io/ui';
5
- import * as react from 'react';
6
- import { PropsWithChildren } from 'react';
7
5
  import * as _tanstack_react_query from '@tanstack/react-query';
8
6
  import { UseQueryOptions, UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
7
+ import * as react from 'react';
8
+ import { PropsWithChildren } from 'react';
9
9
 
10
10
  declare global {
11
11
  interface Window {
@@ -14,7 +14,7 @@ declare global {
14
14
  };
15
15
  }
16
16
  }
17
- declare const _default: "0.1.54";
17
+ declare const _default: "0.1.55";
18
18
 
19
19
  interface EventsPageProps {
20
20
  /** Callback when an event is selected */
@@ -969,6 +969,128 @@ interface CategoriesWidgetV2Props {
969
969
  }
970
970
  declare function CategoriesWidgetV2({ onSelect, trailing, className, }: CategoriesWidgetV2Props): react_jsx_runtime.JSX.Element;
971
971
 
972
+ type PredictSearchModalParams = {
973
+ /** Generate href for each event row. When set, rows render as links. */
974
+ getEventHref?: (event: V2Event) => string;
975
+ /** Custom link component (e.g. next/link). */
976
+ LinkComponent?: LinkComponentType;
977
+ /** Called when a row is hovered (for data prefetching). */
978
+ onHover?: (event: V2Event) => void;
979
+ };
980
+ type PredictSearchModalResult = V2Event;
981
+ declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
982
+ declare function PredictSearchModal({ id, }: {
983
+ id?: string;
984
+ }): react_jsx_runtime.JSX.Element;
985
+
986
+ type SearchEventsButtonProps = {
987
+ /** Callback when an event is selected from the search modal */
988
+ onSelectEvent?: (event: V2Event) => void;
989
+ /** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
990
+ modalParams?: Omit<PredictSearchModalParams, never>;
991
+ className?: string;
992
+ };
993
+ declare function SearchEventsButton({ onSelectEvent, modalParams, className, }: SearchEventsButtonProps): react_jsx_runtime.JSX.Element;
994
+
995
+ declare function usePredictSearchHistory(): {
996
+ histories: string[];
997
+ addHistory: (keyword: string) => void;
998
+ clearHistories: () => void;
999
+ };
1000
+
1001
+ type SearchHistoryUIProps = {
1002
+ histories: string[];
1003
+ onSelect?: (keyword: string) => void;
1004
+ onClear?: () => void;
1005
+ className?: string;
1006
+ };
1007
+ declare function SearchHistoryUI({ histories, onSelect, onClear, className, }: SearchHistoryUIProps): react_jsx_runtime.JSX.Element | null;
1008
+
1009
+ type SearchHistoryWidgetProps = {
1010
+ /** Callback when a history keyword is selected */
1011
+ onSelect?: (keyword: string) => void;
1012
+ className?: string;
1013
+ };
1014
+ declare function SearchHistoryWidget({ onSelect, className, }: SearchHistoryWidgetProps): react_jsx_runtime.JSX.Element;
1015
+
1016
+ type SearchInputUIProps = {
1017
+ /** Controlled input value */
1018
+ value: string;
1019
+ /** Called on every keystroke */
1020
+ onValueChange: (value: string) => void;
1021
+ /** Called when clear button is pressed */
1022
+ onClear?: () => void;
1023
+ /** Called when Esc button is pressed */
1024
+ onEscape?: () => void;
1025
+ className?: string;
1026
+ };
1027
+ declare function SearchInputUI({ value, onValueChange, onClear, onEscape, className, }: SearchInputUIProps): react_jsx_runtime.JSX.Element;
1028
+
1029
+ type SearchResultItemUIProps = {
1030
+ event: V2Event;
1031
+ /** URL for the detail page. When set, the row renders as a link via Linkable. */
1032
+ href?: string;
1033
+ /** Custom link component (e.g. next/link). */
1034
+ LinkComponent?: LinkComponentType;
1035
+ onSelect?: (event: V2Event) => void;
1036
+ /** Called when the row is hovered (for data prefetching). */
1037
+ onHover?: (event: V2Event) => void;
1038
+ className?: string;
1039
+ };
1040
+ declare function SearchResultItemUI({ event, href, LinkComponent, onSelect, onHover, className, }: SearchResultItemUIProps): react_jsx_runtime.JSX.Element;
1041
+
1042
+ interface UseSearchResultListScriptParams {
1043
+ keyword: string;
1044
+ limit?: number;
1045
+ }
1046
+ declare function useSearchResultListScript({ keyword, limit, }: UseSearchResultListScriptParams): {
1047
+ events: V2Event[];
1048
+ isLoading: boolean;
1049
+ isFetchingNextPage: boolean;
1050
+ hasNextPage: boolean;
1051
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<V2Page<V2Event>, unknown>, Error>>;
1052
+ };
1053
+
1054
+ type SearchResultListWidgetProps = {
1055
+ onSelect?: (event: V2Event) => void;
1056
+ /** Generate href for each event row. When set, rows render as links. */
1057
+ getEventHref?: (event: V2Event) => string;
1058
+ /** Custom link component (e.g. next/link). */
1059
+ LinkComponent?: LinkComponentType;
1060
+ /** Called when a row is hovered (for data prefetching). */
1061
+ onHover?: (event: V2Event) => void;
1062
+ className?: string;
1063
+ } & UseSearchResultListScriptParams;
1064
+ declare function SearchResultListWidget({ onSelect, getEventHref, LinkComponent, onHover, className, ...scriptParams }: SearchResultListWidgetProps): react_jsx_runtime.JSX.Element;
1065
+
1066
+ interface UseSearchScriptParams {
1067
+ /** Callback when the debounced keyword changes */
1068
+ onKeywordChange?: (keyword: string) => void;
1069
+ }
1070
+ declare function useSearchScript({ onKeywordChange }: UseSearchScriptParams): {
1071
+ text: string;
1072
+ keyword: string;
1073
+ setText: (v: string) => void;
1074
+ setKeyword: (value: string) => void;
1075
+ clearKeyword: () => void;
1076
+ };
1077
+
1078
+ type SearchWidgetProps = {
1079
+ /** Callback when the debounced keyword changes */
1080
+ onKeywordChange?: (keyword: string) => void;
1081
+ /** Callback when an event is selected */
1082
+ onSelectEvent?: (event: V2Event) => void;
1083
+ /** Generate href for each event row. When set, rows render as links. */
1084
+ getEventHref?: (event: V2Event) => string;
1085
+ /** Custom link component (e.g. next/link). */
1086
+ LinkComponent?: LinkComponentType;
1087
+ /** Called when a row is hovered (for data prefetching). */
1088
+ onHover?: (event: V2Event) => void;
1089
+ /** Called when the Esc button / key is pressed. */
1090
+ onEscape?: () => void;
1091
+ };
1092
+ declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1093
+
972
1094
  interface PredictContextValue {
973
1095
  /** The predict API client instance */
974
1096
  client: IPredictClient;
@@ -1114,6 +1236,33 @@ interface UseEventV2QueryParams {
1114
1236
  */
1115
1237
  declare function useEventV2Query(params: UseEventV2QueryParams, queryOptions?: Omit<UseQueryOptions<V2Event, Error, V2Event, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<V2Event, Error>;
1116
1238
 
1239
+ interface UseSearchEventsInfiniteQueryParams {
1240
+ /** Search keyword */
1241
+ keyword: string;
1242
+ /** Page size (default: 20) */
1243
+ limit?: number;
1244
+ /** Event status filter (default: "open") */
1245
+ status?: V2EventStatus;
1246
+ /** Include nested markets (default: false for lighter search payloads) */
1247
+ with_markets?: boolean;
1248
+ }
1249
+ /**
1250
+ * Infinite query hook for searching prediction events via the V2 `listEvents`
1251
+ * endpoint with a `search` parameter.
1252
+ *
1253
+ * Designed to be consumed by component-level scripts that flatten the paginated
1254
+ * data for rendering.
1255
+ *
1256
+ * @example
1257
+ * ```tsx
1258
+ * const { data, isLoading, hasNextPage, fetchNextPage } =
1259
+ * useSearchEventsInfiniteQuery({ keyword: "trump" });
1260
+ * ```
1261
+ */
1262
+ declare function useSearchEventsInfiniteQuery(params: UseSearchEventsInfiniteQueryParams, queryOptions?: {
1263
+ enabled?: boolean;
1264
+ }): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<V2Page<V2Event>, unknown>, Error>;
1265
+
1117
1266
  declare function usePredictContext(): PredictContextValue;
1118
1267
 
1119
1268
  declare function usePredictClient(): IPredictClient;
@@ -1453,4 +1602,4 @@ interface UseOrderbookSubscriptionResult {
1453
1602
  */
1454
1603
  declare function useOrderbookSubscription({ client, all, tickers, enabled, onUpdate, }: UseOrderbookSubscriptionParams): UseOrderbookSubscriptionResult;
1455
1604
 
1456
- export { CATEGORIES_V2, CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItemV2, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchQueryParams, SearchResponse, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventV2QueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEventV2, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchQuery, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
1605
+ export { CATEGORIES_V2, CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, CategoriesWidgetV2, type CategoriesWidgetV2Props, type CategoryItemV2, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventItemV2UI, type EventItemV2UIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, type EventsFilterState, EventsFilterV2UI, type EventsFilterV2UIProps, EventsPage, type EventsPageProps, EventsPageV2, type EventsPageV2Props, EventsSkeleton, type EventsSkeletonProps, EventsToolbarV2UI, type EventsToolbarV2UIProps, EventsUI, type EventsUIProps, EventsV2UI, type EventsV2UIProps, EventsWidget, type EventsWidgetProps, EventsWidgetV2, type EventsWidgetV2Props, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PREDICT_SEARCH_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictClientV2, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictV2Context, type PredictV2ContextValue, PredictV2Provider, type PredictV2ProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SORT_PRESETS, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchQueryParams, SearchResponse, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, type SortPreset, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, type TagItemV2, type TagSlugSelection, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventV2QueryParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseEventsV2Params, type UseEventsV2Result, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseSearchEventsInfiniteQueryParams, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, V2Event, V2EventSortField, V2EventStatus, V2ListEventsParams, V2Market, V2Page, V2ProviderSource, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, countActiveFilters, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventV2QueryKey, eventsInfiniteQueryKey, eventsQueryKey, eventsV2QueryKey, fetchEventById, fetchEventCandlesticks, fetchEventV2, fetchEvents, fetchEventsV2, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEventV2Query, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useEventsV2, useEventsV2Query, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePredictSearchHistory, usePredictV2Client, usePredictV2Context, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchEventsInfiniteQuery, useSearchQuery, useSearchResultListScript, useSearchScript, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };