@liberfi.io/ui-predict 0.1.55 → 0.1.58

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
@@ -14,7 +14,7 @@ declare global {
14
14
  };
15
15
  }
16
16
  }
17
- declare const _default: "0.1.55";
17
+ declare const _default: "0.1.58";
18
18
 
19
19
  interface EventsPageProps {
20
20
  /** Callback when an event is selected */
@@ -976,6 +976,8 @@ type PredictSearchModalParams = {
976
976
  LinkComponent?: LinkComponentType;
977
977
  /** Called when a row is hovered (for data prefetching). */
978
978
  onHover?: (event: V2Event) => void;
979
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
980
+ source?: V2ProviderSource;
979
981
  };
980
982
  type PredictSearchModalResult = V2Event;
981
983
  declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
@@ -1042,8 +1044,10 @@ declare function SearchResultItemUI({ event, href, LinkComponent, onSelect, onHo
1042
1044
  interface UseSearchResultListScriptParams {
1043
1045
  keyword: string;
1044
1046
  limit?: number;
1047
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
1048
+ source?: V2ProviderSource;
1045
1049
  }
1046
- declare function useSearchResultListScript({ keyword, limit, }: UseSearchResultListScriptParams): {
1050
+ declare function useSearchResultListScript({ keyword, limit, source, }: UseSearchResultListScriptParams): {
1047
1051
  events: V2Event[];
1048
1052
  isLoading: boolean;
1049
1053
  isFetchingNextPage: boolean;
@@ -1088,8 +1092,10 @@ type SearchWidgetProps = {
1088
1092
  onHover?: (event: V2Event) => void;
1089
1093
  /** Called when the Esc button / key is pressed. */
1090
1094
  onEscape?: () => void;
1095
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
1096
+ source?: V2ProviderSource;
1091
1097
  };
1092
- declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1098
+ declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1093
1099
 
1094
1100
  interface PredictContextValue {
1095
1101
  /** The predict API client instance */
@@ -1243,6 +1249,8 @@ interface UseSearchEventsInfiniteQueryParams {
1243
1249
  limit?: number;
1244
1250
  /** Event status filter (default: "open") */
1245
1251
  status?: V2EventStatus;
1252
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
1253
+ source?: V2ProviderSource;
1246
1254
  /** Include nested markets (default: false for lighter search payloads) */
1247
1255
  with_markets?: boolean;
1248
1256
  }
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ declare global {
14
14
  };
15
15
  }
16
16
  }
17
- declare const _default: "0.1.55";
17
+ declare const _default: "0.1.58";
18
18
 
19
19
  interface EventsPageProps {
20
20
  /** Callback when an event is selected */
@@ -976,6 +976,8 @@ type PredictSearchModalParams = {
976
976
  LinkComponent?: LinkComponentType;
977
977
  /** Called when a row is hovered (for data prefetching). */
978
978
  onHover?: (event: V2Event) => void;
979
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
980
+ source?: V2ProviderSource;
979
981
  };
980
982
  type PredictSearchModalResult = V2Event;
981
983
  declare const PREDICT_SEARCH_MODAL_ID = "predict-search";
@@ -1042,8 +1044,10 @@ declare function SearchResultItemUI({ event, href, LinkComponent, onSelect, onHo
1042
1044
  interface UseSearchResultListScriptParams {
1043
1045
  keyword: string;
1044
1046
  limit?: number;
1047
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
1048
+ source?: V2ProviderSource;
1045
1049
  }
1046
- declare function useSearchResultListScript({ keyword, limit, }: UseSearchResultListScriptParams): {
1050
+ declare function useSearchResultListScript({ keyword, limit, source, }: UseSearchResultListScriptParams): {
1047
1051
  events: V2Event[];
1048
1052
  isLoading: boolean;
1049
1053
  isFetchingNextPage: boolean;
@@ -1088,8 +1092,10 @@ type SearchWidgetProps = {
1088
1092
  onHover?: (event: V2Event) => void;
1089
1093
  /** Called when the Esc button / key is pressed. */
1090
1094
  onEscape?: () => void;
1095
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
1096
+ source?: V2ProviderSource;
1091
1097
  };
1092
- declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1098
+ declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
1093
1099
 
1094
1100
  interface PredictContextValue {
1095
1101
  /** The predict API client instance */
@@ -1243,6 +1249,8 @@ interface UseSearchEventsInfiniteQueryParams {
1243
1249
  limit?: number;
1244
1250
  /** Event status filter (default: "open") */
1245
1251
  status?: V2EventStatus;
1252
+ /** Filter by upstream provider. When set, only events from that provider are returned. */
1253
+ source?: V2ProviderSource;
1246
1254
  /** Include nested markets (default: false for lighter search payloads) */
1247
1255
  with_markets?: boolean;
1248
1256
  }