@liberfi.io/ui-predict 4.0.65 → 4.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -488,12 +488,18 @@ interface UseTradeFormResult {
488
488
  }
489
489
  declare function useTradeForm({ market, initialOutcome, slippageBps, onInsufficientBalance, }: UseTradeFormParams): UseTradeFormResult;
490
490
 
491
+ interface EventOrderbookQuote {
492
+ bestAsk?: number;
493
+ bestBid?: number;
494
+ }
495
+
491
496
  interface EventDetailUIProps {
492
497
  event: PredictEvent;
498
+ orderbookQuotes?: Map<string, EventOrderbookQuote>;
493
499
  /** Callback when a trade action is triggered */
494
500
  onTradeAction?: (market: PredictMarket, outcome: TradeOutcome, side: TradeSide) => void;
495
501
  }
496
- declare function EventDetailUI({ event, onTradeAction }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
502
+ declare function EventDetailUI({ event, orderbookQuotes, onTradeAction, }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
497
503
 
498
504
  interface EventDetailWidgetProps {
499
505
  /** Event slug (canonical business key). */
@@ -628,6 +634,8 @@ interface EventPriceChartProps {
628
634
  * equal-height row layouts. Defaults to false (fixed 300px).
629
635
  */
630
636
  fillHeight?: boolean;
637
+ /** Live orderbook quotes keyed by `marketSlug:outcome`, used to align latest prices. */
638
+ orderbookQuotes?: Map<string, EventOrderbookQuote>;
631
639
  }
632
640
  declare function EventPriceChart(props: EventPriceChartProps): react_jsx_runtime.JSX.Element;
633
641
 
package/dist/index.d.ts CHANGED
@@ -488,12 +488,18 @@ interface UseTradeFormResult {
488
488
  }
489
489
  declare function useTradeForm({ market, initialOutcome, slippageBps, onInsufficientBalance, }: UseTradeFormParams): UseTradeFormResult;
490
490
 
491
+ interface EventOrderbookQuote {
492
+ bestAsk?: number;
493
+ bestBid?: number;
494
+ }
495
+
491
496
  interface EventDetailUIProps {
492
497
  event: PredictEvent;
498
+ orderbookQuotes?: Map<string, EventOrderbookQuote>;
493
499
  /** Callback when a trade action is triggered */
494
500
  onTradeAction?: (market: PredictMarket, outcome: TradeOutcome, side: TradeSide) => void;
495
501
  }
496
- declare function EventDetailUI({ event, onTradeAction }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
502
+ declare function EventDetailUI({ event, orderbookQuotes, onTradeAction, }: EventDetailUIProps): react_jsx_runtime.JSX.Element;
497
503
 
498
504
  interface EventDetailWidgetProps {
499
505
  /** Event slug (canonical business key). */
@@ -628,6 +634,8 @@ interface EventPriceChartProps {
628
634
  * equal-height row layouts. Defaults to false (fixed 300px).
629
635
  */
630
636
  fillHeight?: boolean;
637
+ /** Live orderbook quotes keyed by `marketSlug:outcome`, used to align latest prices. */
638
+ orderbookQuotes?: Map<string, EventOrderbookQuote>;
631
639
  }
632
640
  declare function EventPriceChart(props: EventPriceChartProps): react_jsx_runtime.JSX.Element;
633
641