@liberfi.io/ui-predict 0.1.118 → 0.1.120

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
@@ -13,7 +13,7 @@ declare global {
13
13
  };
14
14
  }
15
15
  }
16
- declare const _default: "0.1.118";
16
+ declare const _default: "0.1.120";
17
17
 
18
18
  /**
19
19
  * A single category entry in the static navigation model.
@@ -244,10 +244,12 @@ interface EventDetailPageProps {
244
244
  walletAddress?: string;
245
245
  /** Callback when a similar event card is clicked. Receives the clicked event. */
246
246
  onSimilarEventClick?: (event: PredictEvent) => void;
247
+ /** Called when a similar event card is hovered (for data prefetching). */
248
+ onSimilarEventHover?: (event: PredictEvent) => void;
247
249
  /** Navigation callback — if provided, a "Back" button is shown at the top. */
248
250
  onBack?: () => void;
249
251
  }
250
- declare function EventDetailPage({ eventSlug, source, chain, walletAddress, onSimilarEventClick, onBack, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
252
+ declare function EventDetailPage({ eventSlug, source, chain, walletAddress, onSimilarEventClick, onSimilarEventHover, onBack, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
251
253
 
252
254
  type TradeOutcome = "yes" | "no";
253
255
  type TradeSide = "buy" | "sell";
@@ -377,13 +379,17 @@ interface SimilarEventsSectionProps {
377
379
  /** Number of similar events to fetch (default: 4). */
378
380
  limit?: number;
379
381
  onEventClick?: (event: PredictEvent) => void;
382
+ /** Called when a card is hovered (for data prefetching). */
383
+ onEventHover?: (event: PredictEvent) => void;
380
384
  }
381
385
  interface SimilarEventCardProps {
382
386
  event: PredictEvent;
383
387
  onClick?: (event: PredictEvent) => void;
388
+ /** Called when the card is hovered (for data prefetching). */
389
+ onHover?: (event: PredictEvent) => void;
384
390
  }
385
- declare function SimilarEventsSection({ eventSlug, source, limit, onEventClick, }: SimilarEventsSectionProps): react_jsx_runtime.JSX.Element | null;
386
- declare function SimilarEventCard({ event, onClick }: SimilarEventCardProps): react_jsx_runtime.JSX.Element;
391
+ declare function SimilarEventsSection({ eventSlug, source, limit, onEventClick, onEventHover, }: SimilarEventsSectionProps): react_jsx_runtime.JSX.Element | null;
392
+ declare function SimilarEventCard({ event, onClick, onHover, }: SimilarEventCardProps): react_jsx_runtime.JSX.Element;
387
393
 
388
394
  interface DepthLevel {
389
395
  price: number;
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ declare global {
13
13
  };
14
14
  }
15
15
  }
16
- declare const _default: "0.1.118";
16
+ declare const _default: "0.1.120";
17
17
 
18
18
  /**
19
19
  * A single category entry in the static navigation model.
@@ -244,10 +244,12 @@ interface EventDetailPageProps {
244
244
  walletAddress?: string;
245
245
  /** Callback when a similar event card is clicked. Receives the clicked event. */
246
246
  onSimilarEventClick?: (event: PredictEvent) => void;
247
+ /** Called when a similar event card is hovered (for data prefetching). */
248
+ onSimilarEventHover?: (event: PredictEvent) => void;
247
249
  /** Navigation callback — if provided, a "Back" button is shown at the top. */
248
250
  onBack?: () => void;
249
251
  }
250
- declare function EventDetailPage({ eventSlug, source, chain, walletAddress, onSimilarEventClick, onBack, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
252
+ declare function EventDetailPage({ eventSlug, source, chain, walletAddress, onSimilarEventClick, onSimilarEventHover, onBack, }: EventDetailPageProps): react_jsx_runtime.JSX.Element;
251
253
 
252
254
  type TradeOutcome = "yes" | "no";
253
255
  type TradeSide = "buy" | "sell";
@@ -377,13 +379,17 @@ interface SimilarEventsSectionProps {
377
379
  /** Number of similar events to fetch (default: 4). */
378
380
  limit?: number;
379
381
  onEventClick?: (event: PredictEvent) => void;
382
+ /** Called when a card is hovered (for data prefetching). */
383
+ onEventHover?: (event: PredictEvent) => void;
380
384
  }
381
385
  interface SimilarEventCardProps {
382
386
  event: PredictEvent;
383
387
  onClick?: (event: PredictEvent) => void;
388
+ /** Called when the card is hovered (for data prefetching). */
389
+ onHover?: (event: PredictEvent) => void;
384
390
  }
385
- declare function SimilarEventsSection({ eventSlug, source, limit, onEventClick, }: SimilarEventsSectionProps): react_jsx_runtime.JSX.Element | null;
386
- declare function SimilarEventCard({ event, onClick }: SimilarEventCardProps): react_jsx_runtime.JSX.Element;
391
+ declare function SimilarEventsSection({ eventSlug, source, limit, onEventClick, onEventHover, }: SimilarEventsSectionProps): react_jsx_runtime.JSX.Element | null;
392
+ declare function SimilarEventCard({ event, onClick, onHover, }: SimilarEventCardProps): react_jsx_runtime.JSX.Element;
387
393
 
388
394
  interface DepthLevel {
389
395
  price: number;