@liberfi.io/ui-predict 0.1.86 → 0.1.87
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 +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const _default: "0.1.
|
|
15
|
+
declare const _default: "0.1.87";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A single category entry in the static navigation model.
|
|
@@ -147,6 +147,15 @@ interface EventsWidgetProps {
|
|
|
147
147
|
source?: ProviderSource;
|
|
148
148
|
/** Include nested markets in the response (default: true) */
|
|
149
149
|
with_markets?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Client-side time-remaining filter. Keeps only events whose `end_at` is
|
|
152
|
+
* within the given window: "1d" = < 24 h, "7d" = < 7 days, "30d" = < 30 days.
|
|
153
|
+
*/
|
|
154
|
+
timeRemaining?: string;
|
|
155
|
+
/** Client-side minimum volume filter (USD string, e.g. "1000"). */
|
|
156
|
+
minVolume?: string;
|
|
157
|
+
/** Client-side minimum liquidity filter (USD string, e.g. "10000"). */
|
|
158
|
+
minLiquidity?: string;
|
|
150
159
|
/** Callback when an event card is selected */
|
|
151
160
|
onSelect?: (event: PredictEvent) => void;
|
|
152
161
|
/** Callback when an outcome button (yes/no) is pressed */
|
|
@@ -158,7 +167,7 @@ interface EventsWidgetProps {
|
|
|
158
167
|
/** Called when a card is hovered (for data prefetching). */
|
|
159
168
|
onHover?: (event: PredictEvent) => void;
|
|
160
169
|
}
|
|
161
|
-
declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
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;
|
|
162
171
|
|
|
163
172
|
/** Parameters for useEventsInfinite */
|
|
164
173
|
type UseEventsInfiniteParams = ResolveEventsParamsInput;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const _default: "0.1.
|
|
15
|
+
declare const _default: "0.1.87";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A single category entry in the static navigation model.
|
|
@@ -147,6 +147,15 @@ interface EventsWidgetProps {
|
|
|
147
147
|
source?: ProviderSource;
|
|
148
148
|
/** Include nested markets in the response (default: true) */
|
|
149
149
|
with_markets?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Client-side time-remaining filter. Keeps only events whose `end_at` is
|
|
152
|
+
* within the given window: "1d" = < 24 h, "7d" = < 7 days, "30d" = < 30 days.
|
|
153
|
+
*/
|
|
154
|
+
timeRemaining?: string;
|
|
155
|
+
/** Client-side minimum volume filter (USD string, e.g. "1000"). */
|
|
156
|
+
minVolume?: string;
|
|
157
|
+
/** Client-side minimum liquidity filter (USD string, e.g. "10000"). */
|
|
158
|
+
minLiquidity?: string;
|
|
150
159
|
/** Callback when an event card is selected */
|
|
151
160
|
onSelect?: (event: PredictEvent) => void;
|
|
152
161
|
/** Callback when an outcome button (yes/no) is pressed */
|
|
@@ -158,7 +167,7 @@ interface EventsWidgetProps {
|
|
|
158
167
|
/** Called when a card is hovered (for data prefetching). */
|
|
159
168
|
onHover?: (event: PredictEvent) => void;
|
|
160
169
|
}
|
|
161
|
-
declare function EventsWidget({ tagSlugSelection, limit, status, sort_by, sort_asc, source, with_markets, onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
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;
|
|
162
171
|
|
|
163
172
|
/** Parameters for useEventsInfinite */
|
|
164
173
|
type UseEventsInfiniteParams = ResolveEventsParamsInput;
|