@depict-ai/ui 0.0.78 → 0.0.80

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
@@ -1,5 +1,5 @@
1
1
  import { Display, Elem, ColsAtSize, InfoForProcessing, Node_Array, RR_PostProcessor, RR_PreProcessor } from "@depict-ai/utilishared";
2
- import { Accessor, JSX, Setter, Signal } from "solid-js";
2
+ import { JSX, Accessor, Setter, Signal } from "solid-js";
3
3
  import { SearchResponse } from "@depict-ai/types/api/SearchResponse";
4
4
  import { SearchRequest, SearchFilter } from "@depict-ai/types/api/SearchRequest";
5
5
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
@@ -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 = "0.0.78";
10
+ export const version = "0.0.80";
11
11
  export type OnNavigation = ((options: {
12
12
  is_replace: boolean;
13
13
  new_url: URL;
@@ -73,16 +73,16 @@ export function fetchDepictRecommendations<T extends Display = Display>({ mercha
73
73
  /**
74
74
  * Like standard_price_format except that the price and the formatting are reactive accessors
75
75
  */
76
- export function solid_format_price({ price_, price_formatting_, }: {
77
- price_: Accessor<number>;
78
- price_formatting_: Accessor<{
76
+ export function SolidFormatPrice(props: {
77
+ price_: number;
78
+ price_formatting_: {
79
79
  pre_: string;
80
80
  post_: string;
81
81
  decimal_places_delimiter_: string;
82
82
  thousands_delimiter_: string;
83
83
  places_after_comma_: number | "auto";
84
- }>;
85
- }): Accessor<string>;
84
+ };
85
+ }): JSX.Element;
86
86
  /**
87
87
  * PLP internationalisation shared between search and category listing
88
88
  */
@@ -309,7 +309,7 @@ type ConstructorOptions<T extends Display> = {
309
309
  enable_category_suggestions?: boolean;
310
310
  disable_scrolling_during_modal?: boolean;
311
311
  api?: DepictAPI;
312
- bottom_distance_under_modal_?: Accessor<number | undefined>;
312
+ bottom_distance_under_modal?: Accessor<number | undefined>;
313
313
  render_instant_card?: InstantCard<T>;
314
314
  };
315
315
  export type OpenModalArguments = [
@@ -325,7 +325,7 @@ export type OpenModalArguments = [
325
325
  export const get_search_query_updating_blocked_signal: (depict_search: DepictSearch<any>) => Signal<boolean> | undefined;
326
326
  export class DepictSearch<T extends Display> {
327
327
  #private;
328
- 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 }: ConstructorOptions<T>);
328
+ constructor({ search_query_url_param_name: 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 }: ConstructorOptions<T>);
329
329
  get on_navigation(): OnNavigation;
330
330
  set on_navigation(new_function: OnNavigation);
331
331
  get localization(): search_i18n;