@depict-ai/ui 0.0.33 → 0.0.35
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 +7 -3
- package/dist/main.js +290 -100
- package/dist/module.js +290 -101
- package/package.json +5 -5
- package/dist/typescript_schema/BaseSearchRequest.d.ts +0 -197
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +0 -14
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +0 -10
- package/dist/typescript_schema/ProductListingRequest.d.ts +0 -221
- package/dist/typescript_schema/ProductListingResponse.d.ts +0 -232
- package/dist/typescript_schema/RecommendResponse.d.ts +0 -15
- package/dist/typescript_schema/SearchRequest.d.ts +0 -213
- package/dist/typescript_schema/SearchResponse.d.ts +0 -192
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +0 -18
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +0 -182
- package/dist/typescript_schema/TrackV2Request.d.ts +0 -115
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestions
|
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
10
|
import { ProductListingResponse, BaseCategoryDisplay } from "@depict-ai/types/api/ProductListingResponse";
|
|
11
11
|
import { JSX as _JSX1 } from "solid-js/types/jsx";
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.35";
|
|
13
13
|
/**
|
|
14
14
|
* Like standard_price_format except that the price and the formatting are reactive accessors
|
|
15
15
|
*/
|
|
@@ -196,7 +196,7 @@ export function CategoryPage({ depict_category, grid_spacing, cols_at_size, prod
|
|
|
196
196
|
depict_category: DepictCategory;
|
|
197
197
|
grid_spacing: SDKGridSpacing;
|
|
198
198
|
cols_at_size: SDKColsAtSize;
|
|
199
|
-
product_card_template: (display: Display, info: InfoForProcessing) => Promise<Node_Array> | Node_Array;
|
|
199
|
+
product_card_template: (display: Display | null, info: InfoForProcessing) => Promise<Node_Array> | Node_Array;
|
|
200
200
|
get_product_id: (url?: string) => string | Promise<string>;
|
|
201
201
|
show_quicklinks?: boolean;
|
|
202
202
|
show_breadcrumbs?: boolean;
|
|
@@ -224,6 +224,10 @@ export function align_field(modal_body_style: Signal<_JSX1.CSSProperties>, input
|
|
|
224
224
|
* Calls history.pushState wiht the current url BUT the query parameter with name url_param_name has been set to value (or deleted if no value is provided) and url_transformer has been executed on the URL object that we're pushing
|
|
225
225
|
*/
|
|
226
226
|
export function push_state_with_query_param_value(url_param_name: string, value?: string, url_transformer?: (url_object: URL) => unknown): void;
|
|
227
|
+
interface Styles {
|
|
228
|
+
[selector: string]: _JSX1.CSSProperties;
|
|
229
|
+
}
|
|
230
|
+
export const styles_to_valid_css_string: (styles: Styles) => string;
|
|
227
231
|
/** A function that renders category suggestion cards. Set to false to disable category suggestions. */
|
|
228
232
|
export type RenderCategorySuggestion = (category_suggestion: Accessor<CategorySuggestion>, index: number, selected_filters_: Signal<{
|
|
229
233
|
field: WithRequired<SearchFilter, "field">["field"];
|
|
@@ -272,7 +276,7 @@ export function SearchPage({ depict_search, include_input_field, grid_spacing, c
|
|
|
272
276
|
};
|
|
273
277
|
grid_spacing: SDKGridSpacing;
|
|
274
278
|
cols_at_size: SDKColsAtSize;
|
|
275
|
-
product_card_template: (display: Display, info: InfoForProcessing) => Promise<Node_Array> | Node_Array;
|
|
279
|
+
product_card_template: (display: Display | null, info: InfoForProcessing) => Promise<Node_Array> | Node_Array;
|
|
276
280
|
get_product_id: (url?: string) => string | Promise<string>;
|
|
277
281
|
extra_depict_options?: {
|
|
278
282
|
pre_processors?: RR_PreProcessor[];
|