@depict-ai/ui 0.0.52 → 0.0.54
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 +56 -1
- package/dist/main.js +3 -3
- package/dist/module.js +3 -3
- package/package.json +3 -3
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.54";
|
|
13
13
|
type ExclusiveId = {
|
|
14
14
|
categoryId: string;
|
|
15
15
|
productId?: undefined;
|
|
@@ -349,6 +349,61 @@ interface SearchFieldParams {
|
|
|
349
349
|
aligner_ref?: HTMLElement | null;
|
|
350
350
|
}
|
|
351
351
|
export function SearchField({ depict_search, modal_dispose_handler, click_handler, aligner_ref, }: SearchFieldParams): Node_Array;
|
|
352
|
+
export type DepictBaseConfig = {
|
|
353
|
+
/**
|
|
354
|
+
* The merchant to use for the search.
|
|
355
|
+
* @example "YOUR_MERCHANT", "stronger"
|
|
356
|
+
*/
|
|
357
|
+
merchant: string;
|
|
358
|
+
/**
|
|
359
|
+
* The market to use for the search.
|
|
360
|
+
* @example "YOUR_MARKET", "no", "en-de"
|
|
361
|
+
*/
|
|
362
|
+
market: string;
|
|
363
|
+
};
|
|
364
|
+
export type DepictSearchConfig = {
|
|
365
|
+
/**
|
|
366
|
+
* The path to the search page.
|
|
367
|
+
* @example "/search", "/sok"
|
|
368
|
+
*/
|
|
369
|
+
searchPagePath: string;
|
|
370
|
+
/**
|
|
371
|
+
* The name of the url parameter that will be used for the search query.
|
|
372
|
+
* @example "q", "search_query"
|
|
373
|
+
* @default "search_query"
|
|
374
|
+
*/
|
|
375
|
+
urlParamName?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Whether to enable category suggestions in the search modal and search page.
|
|
378
|
+
* @default false
|
|
379
|
+
*/
|
|
380
|
+
enableCategorySuggestions?: boolean;
|
|
381
|
+
};
|
|
382
|
+
export interface BaseSearchPageConfig extends BasePLPConfig {
|
|
383
|
+
/**
|
|
384
|
+
* Whether to show the search input field in the search page.
|
|
385
|
+
* @default true
|
|
386
|
+
*/
|
|
387
|
+
includeInputField?: boolean;
|
|
388
|
+
}
|
|
389
|
+
export interface BasePLPConfig {
|
|
390
|
+
/**
|
|
391
|
+
* How many columns to show at each media size.
|
|
392
|
+
* @default
|
|
393
|
+
* [[2, 901], [3, 1024], [4]]
|
|
394
|
+
* @example
|
|
395
|
+
* [[2, 901], [3, 1024], [4]]
|
|
396
|
+
* means 2 columns at sizes up to 901px, 3 columns at sizes up to 1024px and after that 4 columns at any viewport size.
|
|
397
|
+
*/
|
|
398
|
+
columnsAtSize?: SDKColsAtSize;
|
|
399
|
+
/**
|
|
400
|
+
* The spacing between products.
|
|
401
|
+
* @default "2%"
|
|
402
|
+
* @example
|
|
403
|
+
* "2%", "10px", "1rem", {horizontal: "1%", vertical: "5px"}
|
|
404
|
+
*/
|
|
405
|
+
gridSpacing?: SDKGridSpacing;
|
|
406
|
+
}
|
|
352
407
|
type CenteredLocation = {
|
|
353
408
|
location?: "centered";
|
|
354
409
|
};
|
package/dist/main.js
CHANGED
|
@@ -33,7 +33,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
33
33
|
$parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
|
|
34
34
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
35
35
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
36
|
-
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
36
|
+
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.54";
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -5074,7 +5074,7 @@ function $068a627cc18f7bb6$var$get_shared_properties(depict_category) {
|
|
|
5074
5074
|
|
|
5075
5075
|
|
|
5076
5076
|
|
|
5077
|
-
const $853f821e60bd06ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-title"><
|
|
5077
|
+
const $853f821e60bd06ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-title"><h1 class="title"></h1><span class="explanation"> — </span></div>`, 6);
|
|
5078
5078
|
const $853f821e60bd06ea$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
5079
5079
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
5080
5080
|
return (()=>{
|
|
@@ -7670,7 +7670,7 @@ function $79fbf145b15af988$export$316f6f283ae64765({ depict_search: depict_searc
|
|
|
7670
7670
|
position: "fixed"
|
|
7671
7671
|
});
|
|
7672
7672
|
const defaultHandler = (0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7673
|
-
const { cleanup: cleanup } = $79fbf145b15af988$var$align_field_modal(style_props_,
|
|
7673
|
+
const { cleanup: cleanup } = $79fbf145b15af988$var$align_field_modal(style_props_, input, aligner_ref);
|
|
7674
7674
|
const complete_modal_dispose_handler = ()=>{
|
|
7675
7675
|
modal_dispose_handler?.();
|
|
7676
7676
|
cleanup();
|
package/dist/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$
|
|
|
2
2
|
import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$effect, setAttribute as $g9l4l$setAttribute, createComponent as $g9l4l$createComponent, use as $g9l4l$use, addEventListener as $g9l4l$addEventListener, delegateEvents as $g9l4l$delegateEvents, spread as $g9l4l$spread, memo as $g9l4l$memo, style as $g9l4l$style, mergeProps as $g9l4l$mergeProps, classList as $g9l4l$classList, className as $g9l4l$className} from "solid-js/web";
|
|
3
3
|
import {createSignal as $g9l4l$createSignal, onCleanup as $g9l4l$onCleanup, createComputed as $g9l4l$createComputed, createEffect as $g9l4l$createEffect, untrack as $g9l4l$untrack, batch as $g9l4l$batch, createResource as $g9l4l$createResource, createMemo as $g9l4l$createMemo, Show as $g9l4l$Show, createRenderEffect as $g9l4l$createRenderEffect, runWithOwner as $g9l4l$runWithOwner, createRoot as $g9l4l$createRoot, getOwner as $g9l4l$getOwner, on as $g9l4l$on, Index as $g9l4l$Index, For as $g9l4l$For, ErrorBoundary as $g9l4l$ErrorBoundary} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.54";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -5043,7 +5043,7 @@ function $ec52ef1e6c117813$var$get_shared_properties(depict_category) {
|
|
|
5043
5043
|
|
|
5044
5044
|
|
|
5045
5045
|
|
|
5046
|
-
const $6340962f8bafd049$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="category-title"><
|
|
5046
|
+
const $6340962f8bafd049$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="category-title"><h1 class="title"></h1><span class="explanation"> — </span></div>`, 6);
|
|
5047
5047
|
const $6340962f8bafd049$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
5048
5048
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
5049
5049
|
return (()=>{
|
|
@@ -7639,7 +7639,7 @@ function $540e930c58500cbe$export$316f6f283ae64765({ depict_search: depict_searc
|
|
|
7639
7639
|
position: "fixed"
|
|
7640
7640
|
});
|
|
7641
7641
|
const defaultHandler = (0, $g9l4l$catchify)(()=>{
|
|
7642
|
-
const { cleanup: cleanup } = $540e930c58500cbe$var$align_field_modal(style_props_,
|
|
7642
|
+
const { cleanup: cleanup } = $540e930c58500cbe$var$align_field_modal(style_props_, input, aligner_ref);
|
|
7643
7643
|
const complete_modal_dispose_handler = ()=>{
|
|
7644
7644
|
modal_dispose_handler?.();
|
|
7645
7645
|
cleanup();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.54",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": [
|
|
6
6
|
"src/index.ts",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"ts-jest": "^29.0.3"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@depict-ai/types": "^0.0.
|
|
85
|
-
"@depict-ai/utilishared": "^0.0.
|
|
84
|
+
"@depict-ai/types": "^0.0.6",
|
|
85
|
+
"@depict-ai/utilishared": "^0.0.51",
|
|
86
86
|
"solid-js": "^1.6.2"
|
|
87
87
|
},
|
|
88
88
|
"types": "dist/index.d.ts"
|