@depict-ai/ui 0.0.54 → 0.0.55
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 +22 -10
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- 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.55";
|
|
13
13
|
type ExclusiveId = {
|
|
14
14
|
categoryId: string;
|
|
15
15
|
productId?: undefined;
|
|
@@ -349,7 +349,7 @@ 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
|
|
352
|
+
export type BaseProviderConfig = {
|
|
353
353
|
/**
|
|
354
354
|
* The merchant to use for the search.
|
|
355
355
|
* @example "YOUR_MERCHANT", "stronger"
|
|
@@ -361,7 +361,7 @@ export type DepictBaseConfig = {
|
|
|
361
361
|
*/
|
|
362
362
|
market: string;
|
|
363
363
|
};
|
|
364
|
-
export type
|
|
364
|
+
export type BaseSearchProviderConfig = {
|
|
365
365
|
/**
|
|
366
366
|
* The path to the search page.
|
|
367
367
|
* @example "/search", "/sok"
|
|
@@ -379,13 +379,6 @@ export type DepictSearchConfig = {
|
|
|
379
379
|
*/
|
|
380
380
|
enableCategorySuggestions?: boolean;
|
|
381
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
382
|
export interface BasePLPConfig {
|
|
390
383
|
/**
|
|
391
384
|
* How many columns to show at each media size.
|
|
@@ -404,6 +397,25 @@ export interface BasePLPConfig {
|
|
|
404
397
|
*/
|
|
405
398
|
gridSpacing?: SDKGridSpacing;
|
|
406
399
|
}
|
|
400
|
+
export interface BaseSearchPageConfig extends BasePLPConfig {
|
|
401
|
+
/**
|
|
402
|
+
* Whether to show the search input field in the search page.
|
|
403
|
+
* @default true
|
|
404
|
+
*/
|
|
405
|
+
includeInputField?: boolean;
|
|
406
|
+
}
|
|
407
|
+
export interface BaseCategoryPageConfig extends BasePLPConfig {
|
|
408
|
+
/**
|
|
409
|
+
* Whether to show the breadcrumbs in the category page.
|
|
410
|
+
* @default true
|
|
411
|
+
*/
|
|
412
|
+
showBreadcrumbs?: boolean;
|
|
413
|
+
/**
|
|
414
|
+
* Whether to show the quicklinks in the category page.
|
|
415
|
+
* @default true
|
|
416
|
+
*/
|
|
417
|
+
showQuicklinks?: boolean;
|
|
418
|
+
}
|
|
407
419
|
type CenteredLocation = {
|
|
408
420
|
location?: "centered";
|
|
409
421
|
};
|
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.55";
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
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.55";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
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.7",
|
|
85
|
+
"@depict-ai/utilishared": "^0.0.52",
|
|
86
86
|
"solid-js": "^1.6.2"
|
|
87
87
|
},
|
|
88
88
|
"types": "dist/index.d.ts"
|