@depict-ai/ui 0.0.7 → 0.0.9

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.ts CHANGED
@@ -34,6 +34,10 @@ export const embedded_num_products: ({ make_product_count_, set_observed_results
34
34
  middle_elements_: Accessor<JSX.Element>;
35
35
  on_filters_constructed_: () => void;
36
36
  };
37
+ export const version = "0.0.9";
38
+ export function add_to_version_info(stuff_to_add: {
39
+ [key: string]: string;
40
+ }): void;
37
41
  export class DepictAPI {
38
42
  #private;
39
43
  constructor(get_metadata?: () => Promise<{
@@ -1225,6 +1229,12 @@ export type RenderCategorySuggestion = (category_suggestion: Accessor<CategorySu
1225
1229
  op: WithRequired<SearchFilter, "op">["op"];
1226
1230
  data: WithRequired<SearchFilter, "data">["data"];
1227
1231
  }[]>) => JSX.Element;
1232
+ type InstantCard = (display: unknown, context: {
1233
+ index: number;
1234
+ i18n: search_i18n;
1235
+ merchant: string;
1236
+ market: string;
1237
+ }) => JSX.Element;
1228
1238
  type SDKColsAtSize = [number, number?][];
1229
1239
  type _ConstructorOptions1 = {
1230
1240
  search_query_url_param_name?: string;
@@ -1239,6 +1249,7 @@ type _ConstructorOptions1 = {
1239
1249
  disable_scrolling_during_modal?: boolean;
1240
1250
  api?: DepictAPI;
1241
1251
  bottom_distance_under_modal_?: Accessor<number | undefined>;
1252
+ render_instant_card?: InstantCard;
1242
1253
  };
1243
1254
  type OpenModalArguments = [
1244
1255
  options_for_modal?: {
@@ -1255,7 +1266,7 @@ type SDKGridSpacing = string | {
1255
1266
  export const get_search_query_updating_blocked_signal: (depict_search: DepictSearch) => Signal<boolean> | undefined;
1256
1267
  export class DepictSearch {
1257
1268
  #private;
1258
- constructor({ search_query_url_param_name, url_transformer, on_navigation, enable_category_suggestions, disable_scrolling_during_modal, api, bottom_distance_under_modal_, ...props_on_class }: _ConstructorOptions1);
1269
+ constructor({ search_query_url_param_name, url_transformer, on_navigation, enable_category_suggestions, disable_scrolling_during_modal, api, bottom_distance_under_modal_, render_instant_card, ...props_on_class }: _ConstructorOptions1);
1259
1270
  get localization(): {
1260
1271
  [K in keyof search_i18n]: ReturnType<search_i18n[K]>;
1261
1272
  };