@liberfi.io/ui-predict 0.1.122 → 0.1.124

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.122";
16
+ declare const _default: "0.1.124";
17
17
 
18
18
  /**
19
19
  * A single category entry in the static navigation model.
@@ -159,6 +159,8 @@ interface EventsWidgetProps {
159
159
  minVolume?: string;
160
160
  /** Client-side minimum liquidity filter (USD string, e.g. "10000"). */
161
161
  minLiquidity?: string;
162
+ /** Max markets per event (sorted by volume DESC). Default: 3. */
163
+ markets_limit?: number;
162
164
  /** Callback when an event card is selected */
163
165
  onSelect?: (event: PredictEvent) => void;
164
166
  /** Callback when an outcome button (yes/no) is pressed */
@@ -170,7 +172,7 @@ interface EventsWidgetProps {
170
172
  /** Called when a card is hovered (for data prefetching). */
171
173
  onHover?: (event: PredictEvent) => void;
172
174
  }
173
- declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
175
+ declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, markets_limit, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
174
176
 
175
177
  /** Parameters for useEventsInfinite */
176
178
  type UseEventsInfiniteParams = ResolveEventsParamsInput;
@@ -791,7 +793,7 @@ interface SetupModalProps {
791
793
  declare function SetupModal({ isOpen, onClose, safeDeployed, tokenApproved, onDeployAndApprove, }: SetupModalProps): react_jsx_runtime.JSX.Element;
792
794
 
793
795
  /** Default page size for list queries */
794
- declare const DEFAULT_PAGE_SIZE = 48;
796
+ declare const DEFAULT_PAGE_SIZE = 24;
795
797
  /** Maximum number of markets to display in price history chart */
796
798
  declare const MAX_PRICE_HISTORY_MARKETS = 4;
797
799
  /**
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ declare global {
13
13
  };
14
14
  }
15
15
  }
16
- declare const _default: "0.1.122";
16
+ declare const _default: "0.1.124";
17
17
 
18
18
  /**
19
19
  * A single category entry in the static navigation model.
@@ -159,6 +159,8 @@ interface EventsWidgetProps {
159
159
  minVolume?: string;
160
160
  /** Client-side minimum liquidity filter (USD string, e.g. "10000"). */
161
161
  minLiquidity?: string;
162
+ /** Max markets per event (sorted by volume DESC). Default: 3. */
163
+ markets_limit?: number;
162
164
  /** Callback when an event card is selected */
163
165
  onSelect?: (event: PredictEvent) => void;
164
166
  /** Callback when an outcome button (yes/no) is pressed */
@@ -170,7 +172,7 @@ interface EventsWidgetProps {
170
172
  /** Called when a card is hovered (for data prefetching). */
171
173
  onHover?: (event: PredictEvent) => void;
172
174
  }
173
- declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
175
+ declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, timeRemaining, minVolume, minLiquidity, markets_limit, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
174
176
 
175
177
  /** Parameters for useEventsInfinite */
176
178
  type UseEventsInfiniteParams = ResolveEventsParamsInput;
@@ -791,7 +793,7 @@ interface SetupModalProps {
791
793
  declare function SetupModal({ isOpen, onClose, safeDeployed, tokenApproved, onDeployAndApprove, }: SetupModalProps): react_jsx_runtime.JSX.Element;
792
794
 
793
795
  /** Default page size for list queries */
794
- declare const DEFAULT_PAGE_SIZE = 48;
796
+ declare const DEFAULT_PAGE_SIZE = 24;
795
797
  /** Maximum number of markets to display in price history chart */
796
798
  declare const MAX_PRICE_HISTORY_MARKETS = 4;
797
799
  /**