@depict-ai/ui 1.3.1 → 1.3.3

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
@@ -7,7 +7,7 @@ import { SearchRequest, SearchFilter } from "@depict-ai/types/api/SearchRequest"
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "1.3.1";
10
+ export const version = "1.3.3";
11
11
  type PageURLCreatorAlwaysThereData = {
12
12
  merchant: string;
13
13
  market: string;
@@ -26,7 +26,7 @@ export type ModernDisplayWithPageUrl<T extends ModernDisplay> = {
26
26
  page_url: string;
27
27
  })[] : T[K];
28
28
  };
29
- type PageURLCreatorOptions<InputDisplay extends ModernDisplay> = (PageURLCreatorAlwaysThereData & PageURLCreatorCategoryData) | (PageURLCreatorAlwaysThereData & PageURLCreatorProductData<InputDisplay>);
29
+ type PageURLCreatorOptions<InputDisplay extends ModernDisplay> = (PageURLCreatorAlwaysThereData & (PageURLCreatorCategoryData | PageURLCreatorProductData<InputDisplay>));
30
30
  /**
31
31
  * PageUrlCreator is, in its most basic form, a function that takes in a list of categories or products and returns a list of page_urls for the provided categories or products.
32
32
  * It's main use case is to allow for the creation of links to the product or category pages on the merchant's site.
@@ -407,7 +407,7 @@ export class DepictCategory<InputDisplay extends Display, OutputDisplay extends
407
407
  set on_navigation(new_function: OnNavigation);
408
408
  constructor({ api, on_navigation, page_url_creator, ...props_on_class }: DepictCategoryConstructorOptions<InputDisplay, OutputDisplay>);
409
409
  }
410
- export function CategoryPage<OriginalDisplay extends Display, OutputDisplay extends ModernDisplay | never>({ depict_category, grid_spacing, cols_at_size, product_card_template, show_breadcrumbs, show_quicklinks, category_title, }: {
410
+ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay extends ModernDisplay | never>(props: {
411
411
  depict_category: DepictCategory<OriginalDisplay, OutputDisplay>;
412
412
  grid_spacing: SDKGridSpacing;
413
413
  cols_at_size: SDKColsAtSize;
@@ -545,7 +545,7 @@ interface SearchFieldParams {
545
545
  click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
546
546
  aligner_ref?: HTMLElement | null;
547
547
  }
548
- export function SearchField({ depict_search, modal_dispose_handler, click_handler, aligner_ref, }: SearchFieldParams): import("@depict-ai/utilishared").Node_Array;
548
+ export function SearchField(props: SearchFieldParams): import("@depict-ai/utilishared").Node_Array;
549
549
  export type BaseProviderConfig<InputDisplay extends Display, PossibleTransformedDisplay extends ModernDisplay | never> = {
550
550
  /**
551
551
  * The merchant to use for the search.