@depict-ai/ui 1.0.5 → 1.0.7

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # Depict Search SDK
1
+ # Depict UI base package
2
2
 
3
- https://docs.depict.ai/docs/getting-started-with-the-depict-search-sdk-dssdk
3
+ You're most likely for https://www.npmjs.com/package/@depict-ai/js-ui or https://www.npmjs.com/package/@depict-ai/react-ui
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { SearchSuggestionsResponse, CategorySuggestion } from "@depict-ai/types/
7
7
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
8
8
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
9
9
  import { ProductListingResponse } from "@depict-ai/types/api/ProductListingResponse";
10
- export const version = "1.0.5";
10
+ export const version = "1.0.7";
11
11
  export type OnNavigation = ((options: {
12
12
  is_replace: boolean;
13
13
  new_url: URL;
@@ -350,7 +350,7 @@ export class DepictSearch<T extends Display> {
350
350
  set merchant(tenant: string);
351
351
  get market(): string;
352
352
  set market(market: string);
353
- fetchSearchResults(query: string, filters?: SearchFilter[]): Promise<T[]>;
353
+ fetchSearchResults(query: string, filters?: SearchFilter[], limit?: number): Promise<T[]>;
354
354
  }
355
355
  export function SearchPage<T extends Display>({ depict_search, include_input_field, grid_spacing, cols_at_size, product_card_template, extra_depict_options, }: {
356
356
  depict_search: DepictSearch<T>;
@@ -533,4 +533,10 @@ export class PageReplacer extends EventTarget {
533
533
  * makes so that links to the previous page close the search instead of closing the search and reloading the page (to be used with non-spas)
534
534
  */
535
535
  export function setup_fast_leave(pr: PageReplacer): void;
536
+ export const defaultColsAtSize: SDKColsAtSize;
537
+ export const defaultGridSpacing = "2%";
538
+ export const defaultCategoryTitlePlugin: ({ category_title_, product_count_, }: {
539
+ category_title_: import("solid-js").Accessor<string | undefined>;
540
+ product_count_: import("solid-js").JSX.Element;
541
+ }) => HTMLElement;
536
542
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequest";