@depict-ai/ui 0.0.34 → 0.0.36
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 +64 -6
- package/dist/main.js +89 -76
- package/dist/module.js +82 -70
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Display, Elem, InfoForProcessing, Node_Array, RR_PostProcessor, RR_PreProcessor } from "@depict-ai/utilishared";
|
|
1
2
|
import { Accessor, JSX, Setter, Signal } from "solid-js";
|
|
2
|
-
import { Elem, Display, InfoForProcessing, Node_Array, RR_PostProcessor, RR_PreProcessor } from "@depict-ai/utilishared";
|
|
3
3
|
import { search_i18n as _search_i18n1 } from "../../../locales";
|
|
4
4
|
import { SearchResponse } from "@depict-ai/types/api/SearchResponse";
|
|
5
5
|
import { SearchRequest, SearchFilter } from "@depict-ai/types/api/SearchRequest";
|
|
@@ -9,7 +9,65 @@ 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.36";
|
|
13
|
+
type ExclusiveId = {
|
|
14
|
+
categoryId: string;
|
|
15
|
+
productId?: undefined;
|
|
16
|
+
productIds?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
categoryId?: undefined;
|
|
19
|
+
productId: string;
|
|
20
|
+
productIds?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
categoryId?: undefined;
|
|
23
|
+
productId?: undefined;
|
|
24
|
+
productIds: string[];
|
|
25
|
+
} | {
|
|
26
|
+
categoryId?: undefined;
|
|
27
|
+
productId?: undefined;
|
|
28
|
+
productIds?: undefined;
|
|
29
|
+
};
|
|
30
|
+
type RecsAPIWrapperOptions = {
|
|
31
|
+
type: string;
|
|
32
|
+
merchant: string;
|
|
33
|
+
market: string;
|
|
34
|
+
headers?: HeadersInit;
|
|
35
|
+
} & ExclusiveId;
|
|
36
|
+
/**
|
|
37
|
+
* Fetches recommendations from Depict's API.
|
|
38
|
+
* ## It is important that you make the correct choice out of: no id, `categoryId`, `productId` and `productIds` (choose ONE) so read the documentation carefully.
|
|
39
|
+
*
|
|
40
|
+
* @param merchant The name of the merchant (e.g. "acme")
|
|
41
|
+
* @param market The market to fetch recs for. Depict will provide this to you. (Example: "sv" or "sv-se".)
|
|
42
|
+
* @param type The type of the recommendations, e.g. `front_page`, `after_basket, `related`, etc. Ask Depict for this.
|
|
43
|
+
* @param categoryId When requesting recommendations for a category page, pass the id of the category page as `categoryId`.
|
|
44
|
+
* @param productId When requesting recommendations for a single product, e.g. on a product detail page, pass the id of the product as `productId`.
|
|
45
|
+
* @param productIds When requesting recommendations that should take multiple products into account, i.e. the contents of the basket/cart, pass an array of product ids as `productIds`
|
|
46
|
+
* @param headers Optional headers to send to the Depict API. This could be authentication for example. 99% of integrations can leave this unset.
|
|
47
|
+
* When no id is provided (none out of `categoryId`, `productId` and `productIds`) general recommendations will be fetched. This is for, for example, the frontpage where generally popular products get returned.
|
|
48
|
+
*
|
|
49
|
+
* @note If you only get recommendations when specifying the wrong id type (i.e. you only get basket recommendations if you provide a single product id while the recommendations should be based on everything in the basket) please ask Depict to re-configure the endpoint for you.
|
|
50
|
+
*
|
|
51
|
+
* @example Fetching frontpage recommendations
|
|
52
|
+
* ```
|
|
53
|
+
* const front_page_recs = await fetchDepictRecommendations({
|
|
54
|
+
* merchant: "oscarjacobson",
|
|
55
|
+
* market: "sv-se",
|
|
56
|
+
* type: "front_page",
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
* @example Fetching recommendations for a product page
|
|
60
|
+
* ```
|
|
61
|
+
* const product_page_recs = await fetchDepictRecommendations({
|
|
62
|
+
* merchant: "stronger",
|
|
63
|
+
* market: "se",
|
|
64
|
+
* type: "product_normal",
|
|
65
|
+
* productId: "hero-sports-bra-luna",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
* @return This function is guaranteed to return an array of Displays. If anything fails, you will get an empty array.
|
|
69
|
+
*/
|
|
70
|
+
export function fetchDepictRecommendations<T = Display>({ merchant, market, headers, ...fetch_recs_options }: RecsAPIWrapperOptions): Promise<T[]>;
|
|
13
71
|
/**
|
|
14
72
|
* Like standard_price_format except that the price and the formatting are reactive accessors
|
|
15
73
|
*/
|
|
@@ -131,6 +189,10 @@ export function media_query_to_accessor(media_query: string): import("solid-js")
|
|
|
131
189
|
export type WithRequired<T, K extends keyof T> = T & {
|
|
132
190
|
[P in K]-?: T[P];
|
|
133
191
|
};
|
|
192
|
+
type SDKGridSpacing = string | {
|
|
193
|
+
horizontal: string;
|
|
194
|
+
vertical: string;
|
|
195
|
+
};
|
|
134
196
|
export function show_toast({ children, on_close_, close_after_, ...more_attributes }: {
|
|
135
197
|
children?: JSX.Element;
|
|
136
198
|
close_after_: number;
|
|
@@ -168,10 +230,6 @@ export const embedded_num_products: ({ make_product_count_, set_observed_results
|
|
|
168
230
|
middle_elements_: Accessor<JSX.Element>;
|
|
169
231
|
on_filters_constructed_: () => void;
|
|
170
232
|
};
|
|
171
|
-
type SDKGridSpacing = string | {
|
|
172
|
-
horizontal: string;
|
|
173
|
-
vertical: string;
|
|
174
|
-
};
|
|
175
233
|
type SDKColsAtSize = [number, number?][];
|
|
176
234
|
type DepictCategoryConstructorOptions = {
|
|
177
235
|
market: string;
|
package/dist/main.js
CHANGED
|
@@ -6,17 +6,18 @@ function $parcel$export(e, n, v, s) {
|
|
|
6
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
$parcel$export(module.exports, "
|
|
10
|
-
$parcel$export(module.exports, "
|
|
9
|
+
$parcel$export(module.exports, "fetchDepictRecommendations", () => $8c4e48a4bf96b284$export$58e808b1db15d3bc);
|
|
10
|
+
$parcel$export(module.exports, "QuickLinks", () => $068a627cc18f7bb6$export$de035477d6fef996);
|
|
11
|
+
$parcel$export(module.exports, "BreadCrumbs", () => $068a627cc18f7bb6$export$5b7c3ce0ebe51f86);
|
|
11
12
|
$parcel$export(module.exports, "CategoryTitle", () => $853f821e60bd06ea$export$b91cec6bdc6b32a1);
|
|
12
13
|
$parcel$export(module.exports, "embedded_num_products", () => $1a89c0064ad43e0d$export$824dde41348efed1);
|
|
13
14
|
$parcel$export(module.exports, "get_categories", () => $bfd8f91b5a75050a$export$643598a327b5833e);
|
|
14
|
-
$parcel$export(module.exports, "DepictCategory", () => $
|
|
15
|
-
$parcel$export(module.exports, "CategoryPage", () => $
|
|
16
|
-
$parcel$export(module.exports, "DepictSearch", () => $
|
|
17
|
-
$parcel$export(module.exports, "get_search_query_updating_blocked_signal", () => $
|
|
18
|
-
$parcel$export(module.exports, "SearchPage", () => $
|
|
19
|
-
$parcel$export(module.exports, "SearchField", () => $
|
|
15
|
+
$parcel$export(module.exports, "DepictCategory", () => $068a627cc18f7bb6$export$f34314aa9505732e);
|
|
16
|
+
$parcel$export(module.exports, "CategoryPage", () => $068a627cc18f7bb6$export$e2bf8ce7779e827e);
|
|
17
|
+
$parcel$export(module.exports, "DepictSearch", () => $79fbf145b15af988$export$ac6237957a15b3f0);
|
|
18
|
+
$parcel$export(module.exports, "get_search_query_updating_blocked_signal", () => $79fbf145b15af988$export$bde3eb976dfded9);
|
|
19
|
+
$parcel$export(module.exports, "SearchPage", () => $79fbf145b15af988$export$f2dc7e4e4aa11abb);
|
|
20
|
+
$parcel$export(module.exports, "SearchField", () => $79fbf145b15af988$export$b94867ecbd698f21);
|
|
20
21
|
$parcel$export(module.exports, "DefaultInstantCardPlaceholder", () => $17c49340edfdbb31$export$ee1733d9a8495996);
|
|
21
22
|
$parcel$export(module.exports, "align_field", () => $67b60b572b7b7059$export$b3ad617e9036868);
|
|
22
23
|
$parcel$export(module.exports, "styles_to_valid_css_string", () => $d3c94b3b96557917$export$1233ca167bf71f9a);
|
|
@@ -32,7 +33,16 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
32
33
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
33
34
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
34
35
|
/*! Depict.ai search and product listing SDK */
|
|
35
|
-
const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
36
|
+
const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.36";
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
async function $8c4e48a4bf96b284$export$58e808b1db15d3bc({ merchant: merchant , market: market , headers: headers , ...fetch_recs_options }) {
|
|
41
|
+
return await (0, $46MJV$depictaiutilishared.fetch_recs)({
|
|
42
|
+
tenant: merchant,
|
|
43
|
+
market: market
|
|
44
|
+
}, (0, $46MJV$depictaiutilishared.snakeCasifyObject)(fetch_recs_options), headers);
|
|
45
|
+
}
|
|
36
46
|
|
|
37
47
|
|
|
38
48
|
|
|
@@ -222,12 +232,15 @@ class $9ce64f69303c371e$export$e015ed2f2950f2e3 {
|
|
|
222
232
|
}
|
|
223
233
|
}
|
|
224
234
|
function $9ce64f69303c371e$var$get_version_headers() {
|
|
235
|
+
// We can't use any header name or the browser will make an OPTIONS request which will slow down search a lot
|
|
236
|
+
const version_object = {
|
|
237
|
+
...(0, $72835d7ac907c037$export$89a2f5e6eb5005b6),
|
|
238
|
+
"@depict-ai/utilishared": (0, $46MJV$depictaiutilishared.version),
|
|
239
|
+
"@depict-ai/ui": (0, $ae93561d5649a847$export$83d89fbfd8236492)
|
|
240
|
+
};
|
|
225
241
|
return {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
"@depict-ai/utilishared": (0, $46MJV$depictaiutilishared.version),
|
|
229
|
-
"@depict-ai/ui": (0, $ae93561d5649a847$export$83d89fbfd8236492)
|
|
230
|
-
})
|
|
242
|
+
"Accept": Object.entries(version_object)// No special characters allowed: https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_request_header
|
|
243
|
+
.map(([pkg, version])=>`${pkg.replaceAll("@", "")}=${version}`).join(",")
|
|
231
244
|
};
|
|
232
245
|
}
|
|
233
246
|
|
|
@@ -4873,7 +4886,22 @@ const $7958d3dbd96a4f87$export$6daf8749b65a1b77 = (cols_at_size)=>{
|
|
|
4873
4886
|
|
|
4874
4887
|
|
|
4875
4888
|
|
|
4876
|
-
|
|
4889
|
+
|
|
4890
|
+
function $623202ae203e9e59$export$f091cbac892643a4(obj) {
|
|
4891
|
+
const mapfn = (key)=>[
|
|
4892
|
+
key,
|
|
4893
|
+
(0, $46MJV$solidjs.createMemo)(()=>obj()[key])
|
|
4894
|
+
];
|
|
4895
|
+
const keys = Object.keys((0, $46MJV$solidjs.untrack)(()=>obj()));
|
|
4896
|
+
const mapped_stuff = keys.map(mapfn);
|
|
4897
|
+
return Object.fromEntries(mapped_stuff); // FUCK TYPESCRIPT, WHY CAN'T YOU DO THIS CORRECTLY???
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
|
|
4901
|
+
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
function $f27b0b326e0a87e2$export$23fca46f3143581f(component, error_message) {
|
|
4877
4905
|
const component_in_error_boundary = (do_with_elements)=>{
|
|
4878
4906
|
return (0, $0f2f58dd60b11888$export$b69d0d92862de18b)({
|
|
4879
4907
|
severity_: "error",
|
|
@@ -4898,31 +4926,16 @@ function $b0e2c3c5b04d40cd$export$23fca46f3143581f(component, error_message) {
|
|
|
4898
4926
|
}
|
|
4899
4927
|
|
|
4900
4928
|
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
const mapfn = (key)=>[
|
|
4907
|
-
key,
|
|
4908
|
-
(0, $46MJV$solidjs.createMemo)(()=>obj()[key])
|
|
4909
|
-
];
|
|
4910
|
-
const keys = Object.keys((0, $46MJV$solidjs.untrack)(()=>obj()));
|
|
4911
|
-
const mapped_stuff = keys.map(mapfn);
|
|
4912
|
-
return Object.fromEntries(mapped_stuff); // FUCK TYPESCRIPT, WHY CAN'T YOU DO THIS CORRECTLY???
|
|
4913
|
-
}
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
const $b5bcdaaacb8b81f2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"></div>`, 2);
|
|
4917
|
-
const $b5bcdaaacb8b81f2$var$min_products_to_fetch_ = 20;
|
|
4918
|
-
const $b5bcdaaacb8b81f2$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4919
|
-
const $b5bcdaaacb8b81f2$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
4920
|
-
const _el$ = $b5bcdaaacb8b81f2$var$_tmpl$.cloneNode(true);
|
|
4929
|
+
const $068a627cc18f7bb6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"></div>`, 2);
|
|
4930
|
+
const $068a627cc18f7bb6$var$min_products_to_fetch_ = 20;
|
|
4931
|
+
const $068a627cc18f7bb6$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4932
|
+
const $068a627cc18f7bb6$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
4933
|
+
const _el$ = $068a627cc18f7bb6$var$_tmpl$.cloneNode(true);
|
|
4921
4934
|
(0, $46MJV$solidjsweb.insert)(_el$, children);
|
|
4922
4935
|
(0, $46MJV$solidjsweb.effect)(()=>(0, $46MJV$solidjsweb.setAttribute)(_el$, "id", (0, $29b757e2ae26852c$export$44dad306455dddf).PLP_CATEGORY));
|
|
4923
4936
|
return _el$;
|
|
4924
4937
|
})();
|
|
4925
|
-
class $
|
|
4938
|
+
class $068a627cc18f7bb6$export$f34314aa9505732e {
|
|
4926
4939
|
#locale_signal = (0, $46MJV$solidjs.createSignal)();
|
|
4927
4940
|
#merchant_signal = (0, $46MJV$solidjs.createSignal)();
|
|
4928
4941
|
#market_signal = (0, $46MJV$solidjs.createSignal)();
|
|
@@ -4954,8 +4967,8 @@ class $b5bcdaaacb8b81f2$export$f34314aa9505732e {
|
|
|
4954
4967
|
this.#market_signal[1](market);
|
|
4955
4968
|
}
|
|
4956
4969
|
constructor({ api: api , on_navigation: on_navigation , ...props_on_class }){
|
|
4957
|
-
if ($
|
|
4958
|
-
$
|
|
4970
|
+
if ($068a627cc18f7bb6$export$f34314aa9505732e.#has_been_constructed) throw new Error("You can only have one instance of DepictCategory due to state limitations");
|
|
4971
|
+
$068a627cc18f7bb6$export$f34314aa9505732e.#has_been_constructed = true;
|
|
4959
4972
|
Object.assign(this, props_on_class); // set initial signal values
|
|
4960
4973
|
(0, $33815c5a406b6cc0$export$5162a71f252e6122)();
|
|
4961
4974
|
const [reset_history_state_, state_] = (0, $0de081f67b6d15b5$export$9862539c89138352)(()=>({
|
|
@@ -4983,7 +4996,7 @@ class $b5bcdaaacb8b81f2$export$f34314aa9505732e {
|
|
|
4983
4996
|
});
|
|
4984
4997
|
}
|
|
4985
4998
|
});
|
|
4986
|
-
$
|
|
4999
|
+
$068a627cc18f7bb6$var$privately_shared_properties.set(this, {
|
|
4987
5000
|
state_: state_,
|
|
4988
5001
|
breadcrumb_signal_: (0, $46MJV$solidjs.createSignal)(),
|
|
4989
5002
|
quicklinks_signal_: (0, $46MJV$solidjs.createSignal)(),
|
|
@@ -4998,22 +5011,22 @@ class $b5bcdaaacb8b81f2$export$f34314aa9505732e {
|
|
|
4998
5011
|
});
|
|
4999
5012
|
}
|
|
5000
5013
|
}
|
|
5001
|
-
function $
|
|
5002
|
-
const shared_properties = $
|
|
5014
|
+
function $068a627cc18f7bb6$export$e2bf8ce7779e827e({ depict_category: depict_category , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id , show_breadcrumbs: show_breadcrumbs = true , show_quicklinks: show_quicklinks = true , category_title: category_title }) {
|
|
5015
|
+
const shared_properties = $068a627cc18f7bb6$var$get_shared_properties(depict_category);
|
|
5003
5016
|
const grid_spacing_override = typeof grid_spacing === "string" ? {
|
|
5004
5017
|
grid_spacing: grid_spacing
|
|
5005
5018
|
} : {
|
|
5006
5019
|
override_vertical_spacing: grid_spacing.vertical,
|
|
5007
5020
|
grid_spacing: grid_spacing.horizontal
|
|
5008
5021
|
};
|
|
5009
|
-
return (0, $
|
|
5022
|
+
return (0, $f27b0b326e0a87e2$export$23fca46f3143581f)(()=>{
|
|
5010
5023
|
const { state_: { category_local_filter_cache: local_filter_cache_ , category_sorting: current_sorting_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_selected_filters: selected_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , on_category_link_click_: on_category_link_click_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ , slider_arrow_button_: slider_arrow_button_ } = shared_properties;
|
|
5011
5024
|
(0, $46MJV$solidjs.onCleanup)(reset_history_state_);
|
|
5012
5025
|
return (0, $671632478f2a7ce7$export$f7d2f673fc2f091d)({
|
|
5013
5026
|
tenant_: ()=>depict_category.merchant,
|
|
5014
5027
|
market_: ()=>depict_category.market,
|
|
5015
5028
|
depict_api_: depict_api_,
|
|
5016
|
-
min_products_to_fetch_: $
|
|
5029
|
+
min_products_to_fetch_: $068a627cc18f7bb6$var$min_products_to_fetch_,
|
|
5017
5030
|
local_filter_cache_: local_filter_cache_,
|
|
5018
5031
|
query_id_: ()=>depict_category.category_id,
|
|
5019
5032
|
i18n_: i18n_,
|
|
@@ -5042,9 +5055,9 @@ function $b5bcdaaacb8b81f2$export$e2bf8ce7779e827e({ depict_category: depict_cat
|
|
|
5042
5055
|
});
|
|
5043
5056
|
}, "Entire CategoryPage failed");
|
|
5044
5057
|
}
|
|
5045
|
-
function $
|
|
5046
|
-
const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , on_category_link_click_: on_crumb_click_ } = $
|
|
5047
|
-
return (0, $46MJV$solidjsweb.createComponent)($
|
|
5058
|
+
function $068a627cc18f7bb6$export$5b7c3ce0ebe51f86({ depict_category: depict_category }) {
|
|
5059
|
+
const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , on_category_link_click_: on_crumb_click_ } = $068a627cc18f7bb6$var$get_shared_properties(depict_category);
|
|
5060
|
+
return (0, $46MJV$solidjsweb.createComponent)($068a627cc18f7bb6$var$InExternalAreaDiv, {
|
|
5048
5061
|
get children () {
|
|
5049
5062
|
return (0, $495e9998757c5d32$export$5646050d516e06bc)({
|
|
5050
5063
|
i18n_: i18n_,
|
|
@@ -5054,9 +5067,9 @@ function $b5bcdaaacb8b81f2$export$5b7c3ce0ebe51f86({ depict_category: depict_cat
|
|
|
5054
5067
|
}
|
|
5055
5068
|
});
|
|
5056
5069
|
}
|
|
5057
|
-
function $
|
|
5058
|
-
const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , on_category_link_click_: on_link_click_ , slider_arrow_button_: slider_arrow_button_ } = $
|
|
5059
|
-
return (0, $46MJV$solidjsweb.createComponent)($
|
|
5070
|
+
function $068a627cc18f7bb6$export$de035477d6fef996({ depict_category: depict_category }) {
|
|
5071
|
+
const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , on_category_link_click_: on_link_click_ , slider_arrow_button_: slider_arrow_button_ } = $068a627cc18f7bb6$var$get_shared_properties(depict_category);
|
|
5072
|
+
return (0, $46MJV$solidjsweb.createComponent)($068a627cc18f7bb6$var$InExternalAreaDiv, {
|
|
5060
5073
|
get children () {
|
|
5061
5074
|
return (0, $cdc2c00c0a7da86e$export$466cdc317043f6cb)({
|
|
5062
5075
|
i18n_: i18n_,
|
|
@@ -5069,8 +5082,8 @@ function $b5bcdaaacb8b81f2$export$de035477d6fef996({ depict_category: depict_cat
|
|
|
5069
5082
|
}
|
|
5070
5083
|
});
|
|
5071
5084
|
}
|
|
5072
|
-
function $
|
|
5073
|
-
const shared_properties = $
|
|
5085
|
+
function $068a627cc18f7bb6$var$get_shared_properties(depict_category) {
|
|
5086
|
+
const shared_properties = $068a627cc18f7bb6$var$privately_shared_properties.get(depict_category);
|
|
5074
5087
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
5075
5088
|
return shared_properties;
|
|
5076
5089
|
}
|
|
@@ -7329,13 +7342,13 @@ function $93779a41dce11249$export$a54ec244c8863715(opts) {
|
|
|
7329
7342
|
|
|
7330
7343
|
|
|
7331
7344
|
|
|
7332
|
-
const $
|
|
7345
|
+
const $79fbf145b15af988$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"></div>`, 2);
|
|
7333
7346
|
/**
|
|
7334
7347
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
7335
|
-
*/ const $
|
|
7336
|
-
const $
|
|
7337
|
-
const $
|
|
7338
|
-
class $
|
|
7348
|
+
*/ const $79fbf145b15af988$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
7349
|
+
const $79fbf145b15af988$var$min_products_to_fetch_ = 20;
|
|
7350
|
+
const $79fbf145b15af988$export$bde3eb976dfded9 = (depict_search)=>$79fbf145b15af988$var$privately_shared_properties.get(depict_search)?.search_query_updating_blocked_;
|
|
7351
|
+
class $79fbf145b15af988$export$ac6237957a15b3f0 {
|
|
7339
7352
|
#locale_signal = (0, $46MJV$solidjs.createSignal)();
|
|
7340
7353
|
#merchant_signal = (0, $46MJV$solidjs.createSignal)();
|
|
7341
7354
|
#market_signal = (0, $46MJV$solidjs.createSignal)();
|
|
@@ -7343,7 +7356,7 @@ class $2267618dcbb65a94$export$ac6237957a15b3f0 {
|
|
|
7343
7356
|
static #has_been_constructed = false;
|
|
7344
7357
|
constructor({ search_query_url_param_name: search_query_url_param_name = "search_query" , url_transformer: url_transformer , on_navigation: raw_on_navigation , enable_category_suggestions: enable_category_suggestions = true , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
7345
7358
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal_: bottom_distance_under_modal_ , render_instant_card: render_instant_card , ...props_on_class }){
|
|
7346
|
-
if ($
|
|
7359
|
+
if ($79fbf145b15af988$export$ac6237957a15b3f0.#has_been_constructed) throw new Error("You can only have one instance of DepictSearch");
|
|
7347
7360
|
Object.assign(this, props_on_class);
|
|
7348
7361
|
const on_navigation = raw_on_navigation && ((href)=>{
|
|
7349
7362
|
// make sure that we don't accidentally catchify if the SDK consumer has fucked up
|
|
@@ -7408,7 +7421,7 @@ class $2267618dcbb65a94$export$ac6237957a15b3f0 {
|
|
|
7408
7421
|
const [, set_search_query_signal] = search_query_signal_; // this signal won't get written from anywhere, see url_params_to_signals JSDoc
|
|
7409
7422
|
if (!get_search_query_updating_blocked()) set_search_query_signal(get_raw_search_query_signal());
|
|
7410
7423
|
});
|
|
7411
|
-
$
|
|
7424
|
+
$79fbf145b15af988$var$privately_shared_properties.set(this, {
|
|
7412
7425
|
search_query_url_param_name_: search_query_url_param_name,
|
|
7413
7426
|
reset_history_state_: reset_history_state_,
|
|
7414
7427
|
state_: state_,
|
|
@@ -7444,7 +7457,7 @@ class $2267618dcbb65a94$export$ac6237957a15b3f0 {
|
|
|
7444
7457
|
navigate_page_to_href_: on_navigation,
|
|
7445
7458
|
on_submit_with_unchanged_value_: on_submit_with_unchanged_value_,
|
|
7446
7459
|
instant_results_options_: {
|
|
7447
|
-
min_products_to_fetch_: $
|
|
7460
|
+
min_products_to_fetch_: $79fbf145b15af988$var$min_products_to_fetch_,
|
|
7448
7461
|
render_instant_card_: render_instant_card,
|
|
7449
7462
|
render_instant_card_placeholder_: (0, $17c49340edfdbb31$export$ee1733d9a8495996),
|
|
7450
7463
|
has_sort_or_filters_: (0, $46MJV$solidjs.createMemo)(()=>!!(Object.keys(state_.search_selected_filters[0]())?.length || state_.search_sorting[0]()))
|
|
@@ -7464,7 +7477,7 @@ class $2267618dcbb65a94$export$ac6237957a15b3f0 {
|
|
|
7464
7477
|
close_modal_();
|
|
7465
7478
|
return;
|
|
7466
7479
|
}
|
|
7467
|
-
const { search_page_aligned_modal_body_style_signal_: search_page_aligned_modal_body_style_signal_ } = $
|
|
7480
|
+
const { search_page_aligned_modal_body_style_signal_: search_page_aligned_modal_body_style_signal_ } = $79fbf145b15af988$var$privately_shared_properties.get(this);
|
|
7468
7481
|
if (signal_value_is_options && open_signal_value[0]?.style_props_) {
|
|
7469
7482
|
// They know what they're doing, just call the modal with the provided options
|
|
7470
7483
|
open_modal_(...open_signal_value);
|
|
@@ -7512,9 +7525,9 @@ class $2267618dcbb65a94$export$ac6237957a15b3f0 {
|
|
|
7512
7525
|
});
|
|
7513
7526
|
};
|
|
7514
7527
|
if (owner != null) (0, $46MJV$solidjs.runWithOwner)(owner, ()=>(0, $46MJV$solidjs.createComputed)(computation));
|
|
7515
|
-
else
|
|
7528
|
+
else (0, $46MJV$solidjs.createComputed)(computation);
|
|
7516
7529
|
})();
|
|
7517
|
-
$
|
|
7530
|
+
$79fbf145b15af988$export$ac6237957a15b3f0.#has_been_constructed = true;
|
|
7518
7531
|
}
|
|
7519
7532
|
get localization() {
|
|
7520
7533
|
// allow reactive access
|
|
@@ -7542,20 +7555,20 @@ class $2267618dcbb65a94$export$ac6237957a15b3f0 {
|
|
|
7542
7555
|
this.#market_signal[1](market);
|
|
7543
7556
|
}
|
|
7544
7557
|
}
|
|
7545
|
-
function $
|
|
7546
|
-
const shared_properties = $
|
|
7558
|
+
function $79fbf145b15af988$var$get_shared_properties(depict_search) {
|
|
7559
|
+
const shared_properties = $79fbf145b15af988$var$privately_shared_properties.get(depict_search);
|
|
7547
7560
|
if (!shared_properties) throw new Error("Can't connect to provided DepictSearch instance");
|
|
7548
7561
|
return shared_properties;
|
|
7549
7562
|
}
|
|
7550
|
-
function $
|
|
7551
|
-
const shared_properties = $
|
|
7563
|
+
function $79fbf145b15af988$export$f2dc7e4e4aa11abb({ depict_search: depict_search , include_input_field: include_input_field , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id = (0, $46MJV$depictaiutilishared.normal_get_product_id) , extra_depict_options: extra_depict_options }) {
|
|
7564
|
+
const shared_properties = $79fbf145b15af988$var$get_shared_properties(depict_search);
|
|
7552
7565
|
const grid_spacing_override = typeof grid_spacing === "string" ? {
|
|
7553
7566
|
grid_spacing: grid_spacing
|
|
7554
7567
|
} : {
|
|
7555
7568
|
override_vertical_spacing: grid_spacing.vertical,
|
|
7556
7569
|
grid_spacing: grid_spacing.horizontal
|
|
7557
7570
|
};
|
|
7558
|
-
return (0, $
|
|
7571
|
+
return (0, $f27b0b326e0a87e2$export$23fca46f3143581f)(()=>{
|
|
7559
7572
|
const { state_: state_ } = shared_properties;
|
|
7560
7573
|
(0, $46MJV$solidjs.onCleanup)(shared_properties.reset_history_state_);
|
|
7561
7574
|
return (0, $93779a41dce11249$export$a54ec244c8863715)({
|
|
@@ -7563,7 +7576,7 @@ function $2267618dcbb65a94$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7563
7576
|
tenant_: ()=>depict_search.merchant,
|
|
7564
7577
|
market_: ()=>depict_search.market,
|
|
7565
7578
|
depict_api_: shared_properties.depict_api_,
|
|
7566
|
-
min_products_to_fetch_: $
|
|
7579
|
+
min_products_to_fetch_: $79fbf145b15af988$var$min_products_to_fetch_,
|
|
7567
7580
|
local_filter_cache_: state_.search_local_filter_cache,
|
|
7568
7581
|
search_field_value_: state_.search_field_value,
|
|
7569
7582
|
search_query_: shared_properties.search_query_signal_,
|
|
@@ -7572,16 +7585,16 @@ function $2267618dcbb65a94$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7572
7585
|
submit_query_: shared_properties.configured_submit_query_,
|
|
7573
7586
|
i18n_: shared_properties.i18n_,
|
|
7574
7587
|
modal_body_style_ref_: (style)=>{
|
|
7575
|
-
const shared_info_right_now = $
|
|
7588
|
+
const shared_info_right_now = $79fbf145b15af988$var$privately_shared_properties.get(depict_search);
|
|
7576
7589
|
if (!shared_info_right_now) return;
|
|
7577
|
-
$
|
|
7590
|
+
$79fbf145b15af988$var$privately_shared_properties.set(depict_search, {
|
|
7578
7591
|
...shared_info_right_now,
|
|
7579
7592
|
search_page_aligned_modal_body_style_signal_: style
|
|
7580
7593
|
});
|
|
7581
7594
|
(0, $46MJV$solidjs.onCleanup)(()=>{
|
|
7582
|
-
const shared_info_right_now = $
|
|
7595
|
+
const shared_info_right_now = $79fbf145b15af988$var$privately_shared_properties.get(depict_search);
|
|
7583
7596
|
if (!shared_info_right_now || shared_info_right_now.search_page_aligned_modal_body_style_signal_ !== style) return;
|
|
7584
|
-
$
|
|
7597
|
+
$79fbf145b15af988$var$privately_shared_properties.set(depict_search, {
|
|
7585
7598
|
...shared_info_right_now,
|
|
7586
7599
|
search_page_aligned_modal_body_style_signal_: undefined
|
|
7587
7600
|
});
|
|
@@ -7623,9 +7636,9 @@ function $2267618dcbb65a94$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7623
7636
|
});
|
|
7624
7637
|
}, "Entire SearchPage failed");
|
|
7625
7638
|
}
|
|
7626
|
-
function $
|
|
7627
|
-
const shared_properties = $
|
|
7628
|
-
return (0, $
|
|
7639
|
+
function $79fbf145b15af988$export$b94867ecbd698f21({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler }) {
|
|
7640
|
+
const shared_properties = $79fbf145b15af988$var$get_shared_properties(depict_search);
|
|
7641
|
+
return (0, $f27b0b326e0a87e2$export$23fca46f3143581f)(()=>{
|
|
7629
7642
|
const input = (0, $46MJV$solidjsweb.createComponent)((0, $231c39725f8fde87$export$ff21851bb5d30e15), {
|
|
7630
7643
|
get search_query_ () {
|
|
7631
7644
|
return shared_properties.search_query_signal_;
|
|
@@ -7662,7 +7675,7 @@ function $2267618dcbb65a94$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7662
7675
|
(0, $67b60b572b7b7059$export$b3ad617e9036868)(style_props_, input);
|
|
7663
7676
|
return [
|
|
7664
7677
|
(()=>{
|
|
7665
|
-
const _el$ = $
|
|
7678
|
+
const _el$ = $79fbf145b15af988$var$_tmpl$.cloneNode(true);
|
|
7666
7679
|
(0, $46MJV$solidjsweb.insert)(_el$, input);
|
|
7667
7680
|
(0, $46MJV$solidjsweb.effect)(()=>(0, $46MJV$solidjsweb.setAttribute)(_el$, "id", (0, $29b757e2ae26852c$export$44dad306455dddf).SEARCH_MODAL));
|
|
7668
7681
|
return _el$;
|
package/dist/module.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {dlog as $g9l4l$dlog, GenericSliderArrowButton as $g9l4l$GenericSliderArrowButton, catchify as $g9l4l$catchify, base_url as $g9l4l$base_url, get_depict_id as $g9l4l$get_depict_id, get_user_id as $g9l4l$get_user_id, get_session_id as $g9l4l$get_session_id, make_url_with_query_params as $g9l4l$make_url_with_query_params, fetch_retry as $g9l4l$fetch_retry, sort_obj as $g9l4l$sort_obj, version as $g9l4l$version, Tenant as $g9l4l$Tenant, Placeholder as $g9l4l$Placeholder, report as $g9l4l$report, javascript_media_query as $g9l4l$javascript_media_query, standard_price_format as $g9l4l$standard_price_format, deparallelize_no_drop as $g9l4l$deparallelize_no_drop, default_rr as $g9l4l$default_rr, make_random_classname as $g9l4l$make_random_classname, n_col_styling_with_dist as $g9l4l$n_col_styling_with_dist, observer as $g9l4l$observer, Lazyfier as $g9l4l$Lazyfier, queueMacroTask as $g9l4l$queueMacroTask, deparallelize as $g9l4l$deparallelize, Rec_Renderer as $g9l4l$Rec_Renderer, CrossIcon as $g9l4l$CrossIcon, useExpandingContainer as $g9l4l$useExpandingContainer, Amazing_Slider as $g9l4l$Amazing_Slider, slider_snap_css as $g9l4l$slider_snap_css, slider_fading_factory as $g9l4l$slider_fading_factory, MinusIcon as $g9l4l$MinusIcon, FilterIcon as $g9l4l$FilterIcon, SortIconAsc as $g9l4l$SortIconAsc, SortIconDesc as $g9l4l$SortIconDesc, PlusIcon as $g9l4l$PlusIcon, TickIcon as $g9l4l$TickIcon, ArrowUp as $g9l4l$ArrowUp, normal_get_product_id as $g9l4l$normal_get_product_id, ContainedPlaceholderImage as $g9l4l$ContainedPlaceholderImage, BackIcon as $g9l4l$BackIcon, SearchIcon as $g9l4l$SearchIcon, Layout as $g9l4l$Layout, make_placeholder_rr as $g9l4l$make_placeholder_rr, async_iterable_ipns as $g9l4l$async_iterable_ipns, make_asyncIterable_exiter as $g9l4l$make_asyncIterable_exiter, href_change_ipns as $g9l4l$href_change_ipns, depict_click as $g9l4l$depict_click, impression_track_element as $g9l4l$impression_track_element, add_new_tab_listener as $g9l4l$add_new_tab_listener, ContainedImage as $g9l4l$ContainedImage, buildThresholdList as $g9l4l$buildThresholdList, PreviousSearchIcon as $g9l4l$PreviousSearchIcon, insert_surfaces as $g9l4l$insert_surfaces} from "@depict-ai/utilishared";
|
|
1
|
+
import {dlog as $g9l4l$dlog, fetch_recs as $g9l4l$fetch_recs, snakeCasifyObject as $g9l4l$snakeCasifyObject, GenericSliderArrowButton as $g9l4l$GenericSliderArrowButton, catchify as $g9l4l$catchify, base_url as $g9l4l$base_url, get_depict_id as $g9l4l$get_depict_id, get_user_id as $g9l4l$get_user_id, get_session_id as $g9l4l$get_session_id, make_url_with_query_params as $g9l4l$make_url_with_query_params, fetch_retry as $g9l4l$fetch_retry, sort_obj as $g9l4l$sort_obj, version as $g9l4l$version, Tenant as $g9l4l$Tenant, Placeholder as $g9l4l$Placeholder, report as $g9l4l$report, javascript_media_query as $g9l4l$javascript_media_query, standard_price_format as $g9l4l$standard_price_format, deparallelize_no_drop as $g9l4l$deparallelize_no_drop, default_rr as $g9l4l$default_rr, make_random_classname as $g9l4l$make_random_classname, n_col_styling_with_dist as $g9l4l$n_col_styling_with_dist, observer as $g9l4l$observer, Lazyfier as $g9l4l$Lazyfier, queueMacroTask as $g9l4l$queueMacroTask, deparallelize as $g9l4l$deparallelize, Rec_Renderer as $g9l4l$Rec_Renderer, CrossIcon as $g9l4l$CrossIcon, useExpandingContainer as $g9l4l$useExpandingContainer, Amazing_Slider as $g9l4l$Amazing_Slider, slider_snap_css as $g9l4l$slider_snap_css, slider_fading_factory as $g9l4l$slider_fading_factory, MinusIcon as $g9l4l$MinusIcon, FilterIcon as $g9l4l$FilterIcon, SortIconAsc as $g9l4l$SortIconAsc, SortIconDesc as $g9l4l$SortIconDesc, PlusIcon as $g9l4l$PlusIcon, TickIcon as $g9l4l$TickIcon, ArrowUp as $g9l4l$ArrowUp, normal_get_product_id as $g9l4l$normal_get_product_id, ContainedPlaceholderImage as $g9l4l$ContainedPlaceholderImage, BackIcon as $g9l4l$BackIcon, SearchIcon as $g9l4l$SearchIcon, Layout as $g9l4l$Layout, make_placeholder_rr as $g9l4l$make_placeholder_rr, async_iterable_ipns as $g9l4l$async_iterable_ipns, make_asyncIterable_exiter as $g9l4l$make_asyncIterable_exiter, href_change_ipns as $g9l4l$href_change_ipns, depict_click as $g9l4l$depict_click, impression_track_element as $g9l4l$impression_track_element, add_new_tab_listener as $g9l4l$add_new_tab_listener, ContainedImage as $g9l4l$ContainedImage, buildThresholdList as $g9l4l$buildThresholdList, PreviousSearchIcon as $g9l4l$PreviousSearchIcon, insert_surfaces as $g9l4l$insert_surfaces} from "@depict-ai/utilishared";
|
|
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
5
|
/*! Depict.ai search and product listing SDK */
|
|
6
|
-
const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
6
|
+
const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.36";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
async function $e95f1855a5e3864f$export$58e808b1db15d3bc({ merchant: merchant , market: market , headers: headers , ...fetch_recs_options }) {
|
|
11
|
+
return await (0, $g9l4l$fetch_recs)({
|
|
12
|
+
tenant: merchant,
|
|
13
|
+
market: market
|
|
14
|
+
}, (0, $g9l4l$snakeCasifyObject)(fetch_recs_options), headers);
|
|
15
|
+
}
|
|
7
16
|
|
|
8
17
|
|
|
9
18
|
|
|
@@ -193,12 +202,15 @@ class $3846bb34098c738f$export$e015ed2f2950f2e3 {
|
|
|
193
202
|
}
|
|
194
203
|
}
|
|
195
204
|
function $3846bb34098c738f$var$get_version_headers() {
|
|
205
|
+
// We can't use any header name or the browser will make an OPTIONS request which will slow down search a lot
|
|
206
|
+
const version_object = {
|
|
207
|
+
...(0, $f22123a20b6b80b3$export$89a2f5e6eb5005b6),
|
|
208
|
+
"@depict-ai/utilishared": (0, $g9l4l$version),
|
|
209
|
+
"@depict-ai/ui": (0, $18bf1d29fb889cca$export$83d89fbfd8236492)
|
|
210
|
+
};
|
|
196
211
|
return {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"@depict-ai/utilishared": (0, $g9l4l$version),
|
|
200
|
-
"@depict-ai/ui": (0, $18bf1d29fb889cca$export$83d89fbfd8236492)
|
|
201
|
-
})
|
|
212
|
+
"Accept": Object.entries(version_object)// No special characters allowed: https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_request_header
|
|
213
|
+
.map(([pkg, version])=>`${pkg.replaceAll("@", "")}=${version}`).join(",")
|
|
202
214
|
};
|
|
203
215
|
}
|
|
204
216
|
|
|
@@ -4844,7 +4856,22 @@ const $b4e6a093ae83373b$export$6daf8749b65a1b77 = (cols_at_size)=>{
|
|
|
4844
4856
|
|
|
4845
4857
|
|
|
4846
4858
|
|
|
4847
|
-
|
|
4859
|
+
|
|
4860
|
+
function $0466953901b38f18$export$f091cbac892643a4(obj) {
|
|
4861
|
+
const mapfn = (key)=>[
|
|
4862
|
+
key,
|
|
4863
|
+
(0, $g9l4l$createMemo)(()=>obj()[key])
|
|
4864
|
+
];
|
|
4865
|
+
const keys = Object.keys((0, $g9l4l$untrack)(()=>obj()));
|
|
4866
|
+
const mapped_stuff = keys.map(mapfn);
|
|
4867
|
+
return Object.fromEntries(mapped_stuff); // FUCK TYPESCRIPT, WHY CAN'T YOU DO THIS CORRECTLY???
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
|
|
4871
|
+
|
|
4872
|
+
|
|
4873
|
+
|
|
4874
|
+
function $c7f938ac40924f3b$export$23fca46f3143581f(component, error_message) {
|
|
4848
4875
|
const component_in_error_boundary = (do_with_elements)=>{
|
|
4849
4876
|
return (0, $a406ebe9523f192f$export$b69d0d92862de18b)({
|
|
4850
4877
|
severity_: "error",
|
|
@@ -4869,31 +4896,16 @@ function $4ed1c7ad68252512$export$23fca46f3143581f(component, error_message) {
|
|
|
4869
4896
|
}
|
|
4870
4897
|
|
|
4871
4898
|
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
const mapfn = (key)=>[
|
|
4878
|
-
key,
|
|
4879
|
-
(0, $g9l4l$createMemo)(()=>obj()[key])
|
|
4880
|
-
];
|
|
4881
|
-
const keys = Object.keys((0, $g9l4l$untrack)(()=>obj()));
|
|
4882
|
-
const mapped_stuff = keys.map(mapfn);
|
|
4883
|
-
return Object.fromEntries(mapped_stuff); // FUCK TYPESCRIPT, WHY CAN'T YOU DO THIS CORRECTLY???
|
|
4884
|
-
}
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
const $a45c51e5e7aeb7f1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"></div>`, 2);
|
|
4888
|
-
const $a45c51e5e7aeb7f1$var$min_products_to_fetch_ = 20;
|
|
4889
|
-
const $a45c51e5e7aeb7f1$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4890
|
-
const $a45c51e5e7aeb7f1$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
4891
|
-
const _el$ = $a45c51e5e7aeb7f1$var$_tmpl$.cloneNode(true);
|
|
4899
|
+
const $ec52ef1e6c117813$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"></div>`, 2);
|
|
4900
|
+
const $ec52ef1e6c117813$var$min_products_to_fetch_ = 20;
|
|
4901
|
+
const $ec52ef1e6c117813$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4902
|
+
const $ec52ef1e6c117813$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
4903
|
+
const _el$ = $ec52ef1e6c117813$var$_tmpl$.cloneNode(true);
|
|
4892
4904
|
(0, $g9l4l$insert)(_el$, children);
|
|
4893
4905
|
(0, $g9l4l$effect)(()=>(0, $g9l4l$setAttribute)(_el$, "id", (0, $01115659405f3c64$export$44dad306455dddf).PLP_CATEGORY));
|
|
4894
4906
|
return _el$;
|
|
4895
4907
|
})();
|
|
4896
|
-
class $
|
|
4908
|
+
class $ec52ef1e6c117813$export$f34314aa9505732e {
|
|
4897
4909
|
#locale_signal = (0, $g9l4l$createSignal)();
|
|
4898
4910
|
#merchant_signal = (0, $g9l4l$createSignal)();
|
|
4899
4911
|
#market_signal = (0, $g9l4l$createSignal)();
|
|
@@ -4925,8 +4937,8 @@ class $a45c51e5e7aeb7f1$export$f34314aa9505732e {
|
|
|
4925
4937
|
this.#market_signal[1](market);
|
|
4926
4938
|
}
|
|
4927
4939
|
constructor({ api: api , on_navigation: on_navigation , ...props_on_class }){
|
|
4928
|
-
if ($
|
|
4929
|
-
$
|
|
4940
|
+
if ($ec52ef1e6c117813$export$f34314aa9505732e.#has_been_constructed) throw new Error("You can only have one instance of DepictCategory due to state limitations");
|
|
4941
|
+
$ec52ef1e6c117813$export$f34314aa9505732e.#has_been_constructed = true;
|
|
4930
4942
|
Object.assign(this, props_on_class); // set initial signal values
|
|
4931
4943
|
(0, $2864fd26f57ff474$export$5162a71f252e6122)();
|
|
4932
4944
|
const [reset_history_state_, state_] = (0, $3075a4497054bec6$export$9862539c89138352)(()=>({
|
|
@@ -4954,7 +4966,7 @@ class $a45c51e5e7aeb7f1$export$f34314aa9505732e {
|
|
|
4954
4966
|
});
|
|
4955
4967
|
}
|
|
4956
4968
|
});
|
|
4957
|
-
$
|
|
4969
|
+
$ec52ef1e6c117813$var$privately_shared_properties.set(this, {
|
|
4958
4970
|
state_: state_,
|
|
4959
4971
|
breadcrumb_signal_: (0, $g9l4l$createSignal)(),
|
|
4960
4972
|
quicklinks_signal_: (0, $g9l4l$createSignal)(),
|
|
@@ -4969,22 +4981,22 @@ class $a45c51e5e7aeb7f1$export$f34314aa9505732e {
|
|
|
4969
4981
|
});
|
|
4970
4982
|
}
|
|
4971
4983
|
}
|
|
4972
|
-
function $
|
|
4973
|
-
const shared_properties = $
|
|
4984
|
+
function $ec52ef1e6c117813$export$e2bf8ce7779e827e({ depict_category: depict_category , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id , show_breadcrumbs: show_breadcrumbs = true , show_quicklinks: show_quicklinks = true , category_title: category_title }) {
|
|
4985
|
+
const shared_properties = $ec52ef1e6c117813$var$get_shared_properties(depict_category);
|
|
4974
4986
|
const grid_spacing_override = typeof grid_spacing === "string" ? {
|
|
4975
4987
|
grid_spacing: grid_spacing
|
|
4976
4988
|
} : {
|
|
4977
4989
|
override_vertical_spacing: grid_spacing.vertical,
|
|
4978
4990
|
grid_spacing: grid_spacing.horizontal
|
|
4979
4991
|
};
|
|
4980
|
-
return (0, $
|
|
4992
|
+
return (0, $c7f938ac40924f3b$export$23fca46f3143581f)(()=>{
|
|
4981
4993
|
const { state_: { category_local_filter_cache: local_filter_cache_ , category_sorting: current_sorting_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_selected_filters: selected_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , on_category_link_click_: on_category_link_click_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ , slider_arrow_button_: slider_arrow_button_ } = shared_properties;
|
|
4982
4994
|
(0, $g9l4l$onCleanup)(reset_history_state_);
|
|
4983
4995
|
return (0, $1ae892b13d7746ab$export$f7d2f673fc2f091d)({
|
|
4984
4996
|
tenant_: ()=>depict_category.merchant,
|
|
4985
4997
|
market_: ()=>depict_category.market,
|
|
4986
4998
|
depict_api_: depict_api_,
|
|
4987
|
-
min_products_to_fetch_: $
|
|
4999
|
+
min_products_to_fetch_: $ec52ef1e6c117813$var$min_products_to_fetch_,
|
|
4988
5000
|
local_filter_cache_: local_filter_cache_,
|
|
4989
5001
|
query_id_: ()=>depict_category.category_id,
|
|
4990
5002
|
i18n_: i18n_,
|
|
@@ -5013,9 +5025,9 @@ function $a45c51e5e7aeb7f1$export$e2bf8ce7779e827e({ depict_category: depict_cat
|
|
|
5013
5025
|
});
|
|
5014
5026
|
}, "Entire CategoryPage failed");
|
|
5015
5027
|
}
|
|
5016
|
-
function $
|
|
5017
|
-
const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , on_category_link_click_: on_crumb_click_ } = $
|
|
5018
|
-
return (0, $g9l4l$createComponent)($
|
|
5028
|
+
function $ec52ef1e6c117813$export$5b7c3ce0ebe51f86({ depict_category: depict_category }) {
|
|
5029
|
+
const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , on_category_link_click_: on_crumb_click_ } = $ec52ef1e6c117813$var$get_shared_properties(depict_category);
|
|
5030
|
+
return (0, $g9l4l$createComponent)($ec52ef1e6c117813$var$InExternalAreaDiv, {
|
|
5019
5031
|
get children () {
|
|
5020
5032
|
return (0, $1b5a927e48d892a1$export$5646050d516e06bc)({
|
|
5021
5033
|
i18n_: i18n_,
|
|
@@ -5025,9 +5037,9 @@ function $a45c51e5e7aeb7f1$export$5b7c3ce0ebe51f86({ depict_category: depict_cat
|
|
|
5025
5037
|
}
|
|
5026
5038
|
});
|
|
5027
5039
|
}
|
|
5028
|
-
function $
|
|
5029
|
-
const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , on_category_link_click_: on_link_click_ , slider_arrow_button_: slider_arrow_button_ } = $
|
|
5030
|
-
return (0, $g9l4l$createComponent)($
|
|
5040
|
+
function $ec52ef1e6c117813$export$de035477d6fef996({ depict_category: depict_category }) {
|
|
5041
|
+
const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , on_category_link_click_: on_link_click_ , slider_arrow_button_: slider_arrow_button_ } = $ec52ef1e6c117813$var$get_shared_properties(depict_category);
|
|
5042
|
+
return (0, $g9l4l$createComponent)($ec52ef1e6c117813$var$InExternalAreaDiv, {
|
|
5031
5043
|
get children () {
|
|
5032
5044
|
return (0, $6af87e1502f04aa3$export$466cdc317043f6cb)({
|
|
5033
5045
|
i18n_: i18n_,
|
|
@@ -5040,8 +5052,8 @@ function $a45c51e5e7aeb7f1$export$de035477d6fef996({ depict_category: depict_cat
|
|
|
5040
5052
|
}
|
|
5041
5053
|
});
|
|
5042
5054
|
}
|
|
5043
|
-
function $
|
|
5044
|
-
const shared_properties = $
|
|
5055
|
+
function $ec52ef1e6c117813$var$get_shared_properties(depict_category) {
|
|
5056
|
+
const shared_properties = $ec52ef1e6c117813$var$privately_shared_properties.get(depict_category);
|
|
5045
5057
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
5046
5058
|
return shared_properties;
|
|
5047
5059
|
}
|
|
@@ -7300,13 +7312,13 @@ function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
|
7300
7312
|
|
|
7301
7313
|
|
|
7302
7314
|
|
|
7303
|
-
const $
|
|
7315
|
+
const $540e930c58500cbe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"></div>`, 2);
|
|
7304
7316
|
/**
|
|
7305
7317
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
7306
|
-
*/ const $
|
|
7307
|
-
const $
|
|
7308
|
-
const $
|
|
7309
|
-
class $
|
|
7318
|
+
*/ const $540e930c58500cbe$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
7319
|
+
const $540e930c58500cbe$var$min_products_to_fetch_ = 20;
|
|
7320
|
+
const $540e930c58500cbe$export$bde3eb976dfded9 = (depict_search)=>$540e930c58500cbe$var$privately_shared_properties.get(depict_search)?.search_query_updating_blocked_;
|
|
7321
|
+
class $540e930c58500cbe$export$ac6237957a15b3f0 {
|
|
7310
7322
|
#locale_signal = (0, $g9l4l$createSignal)();
|
|
7311
7323
|
#merchant_signal = (0, $g9l4l$createSignal)();
|
|
7312
7324
|
#market_signal = (0, $g9l4l$createSignal)();
|
|
@@ -7314,7 +7326,7 @@ class $082017ac4cf9f917$export$ac6237957a15b3f0 {
|
|
|
7314
7326
|
static #has_been_constructed = false;
|
|
7315
7327
|
constructor({ search_query_url_param_name: search_query_url_param_name = "search_query" , url_transformer: url_transformer , on_navigation: raw_on_navigation , enable_category_suggestions: enable_category_suggestions = true , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
7316
7328
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal_: bottom_distance_under_modal_ , render_instant_card: render_instant_card , ...props_on_class }){
|
|
7317
|
-
if ($
|
|
7329
|
+
if ($540e930c58500cbe$export$ac6237957a15b3f0.#has_been_constructed) throw new Error("You can only have one instance of DepictSearch");
|
|
7318
7330
|
Object.assign(this, props_on_class);
|
|
7319
7331
|
const on_navigation = raw_on_navigation && ((href)=>{
|
|
7320
7332
|
// make sure that we don't accidentally catchify if the SDK consumer has fucked up
|
|
@@ -7379,7 +7391,7 @@ class $082017ac4cf9f917$export$ac6237957a15b3f0 {
|
|
|
7379
7391
|
const [, set_search_query_signal] = search_query_signal_; // this signal won't get written from anywhere, see url_params_to_signals JSDoc
|
|
7380
7392
|
if (!get_search_query_updating_blocked()) set_search_query_signal(get_raw_search_query_signal());
|
|
7381
7393
|
});
|
|
7382
|
-
$
|
|
7394
|
+
$540e930c58500cbe$var$privately_shared_properties.set(this, {
|
|
7383
7395
|
search_query_url_param_name_: search_query_url_param_name,
|
|
7384
7396
|
reset_history_state_: reset_history_state_,
|
|
7385
7397
|
state_: state_,
|
|
@@ -7415,7 +7427,7 @@ class $082017ac4cf9f917$export$ac6237957a15b3f0 {
|
|
|
7415
7427
|
navigate_page_to_href_: on_navigation,
|
|
7416
7428
|
on_submit_with_unchanged_value_: on_submit_with_unchanged_value_,
|
|
7417
7429
|
instant_results_options_: {
|
|
7418
|
-
min_products_to_fetch_: $
|
|
7430
|
+
min_products_to_fetch_: $540e930c58500cbe$var$min_products_to_fetch_,
|
|
7419
7431
|
render_instant_card_: render_instant_card,
|
|
7420
7432
|
render_instant_card_placeholder_: (0, $aaacfac0064e97d9$export$ee1733d9a8495996),
|
|
7421
7433
|
has_sort_or_filters_: (0, $g9l4l$createMemo)(()=>!!(Object.keys(state_.search_selected_filters[0]())?.length || state_.search_sorting[0]()))
|
|
@@ -7435,7 +7447,7 @@ class $082017ac4cf9f917$export$ac6237957a15b3f0 {
|
|
|
7435
7447
|
close_modal_();
|
|
7436
7448
|
return;
|
|
7437
7449
|
}
|
|
7438
|
-
const { search_page_aligned_modal_body_style_signal_: search_page_aligned_modal_body_style_signal_ } = $
|
|
7450
|
+
const { search_page_aligned_modal_body_style_signal_: search_page_aligned_modal_body_style_signal_ } = $540e930c58500cbe$var$privately_shared_properties.get(this);
|
|
7439
7451
|
if (signal_value_is_options && open_signal_value[0]?.style_props_) {
|
|
7440
7452
|
// They know what they're doing, just call the modal with the provided options
|
|
7441
7453
|
open_modal_(...open_signal_value);
|
|
@@ -7483,9 +7495,9 @@ class $082017ac4cf9f917$export$ac6237957a15b3f0 {
|
|
|
7483
7495
|
});
|
|
7484
7496
|
};
|
|
7485
7497
|
if (owner != null) (0, $g9l4l$runWithOwner)(owner, ()=>(0, $g9l4l$createComputed)(computation));
|
|
7486
|
-
else
|
|
7498
|
+
else (0, $g9l4l$createComputed)(computation);
|
|
7487
7499
|
})();
|
|
7488
|
-
$
|
|
7500
|
+
$540e930c58500cbe$export$ac6237957a15b3f0.#has_been_constructed = true;
|
|
7489
7501
|
}
|
|
7490
7502
|
get localization() {
|
|
7491
7503
|
// allow reactive access
|
|
@@ -7513,20 +7525,20 @@ class $082017ac4cf9f917$export$ac6237957a15b3f0 {
|
|
|
7513
7525
|
this.#market_signal[1](market);
|
|
7514
7526
|
}
|
|
7515
7527
|
}
|
|
7516
|
-
function $
|
|
7517
|
-
const shared_properties = $
|
|
7528
|
+
function $540e930c58500cbe$var$get_shared_properties(depict_search) {
|
|
7529
|
+
const shared_properties = $540e930c58500cbe$var$privately_shared_properties.get(depict_search);
|
|
7518
7530
|
if (!shared_properties) throw new Error("Can't connect to provided DepictSearch instance");
|
|
7519
7531
|
return shared_properties;
|
|
7520
7532
|
}
|
|
7521
|
-
function $
|
|
7522
|
-
const shared_properties = $
|
|
7533
|
+
function $540e930c58500cbe$export$f2dc7e4e4aa11abb({ depict_search: depict_search , include_input_field: include_input_field , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id = (0, $g9l4l$normal_get_product_id) , extra_depict_options: extra_depict_options }) {
|
|
7534
|
+
const shared_properties = $540e930c58500cbe$var$get_shared_properties(depict_search);
|
|
7523
7535
|
const grid_spacing_override = typeof grid_spacing === "string" ? {
|
|
7524
7536
|
grid_spacing: grid_spacing
|
|
7525
7537
|
} : {
|
|
7526
7538
|
override_vertical_spacing: grid_spacing.vertical,
|
|
7527
7539
|
grid_spacing: grid_spacing.horizontal
|
|
7528
7540
|
};
|
|
7529
|
-
return (0, $
|
|
7541
|
+
return (0, $c7f938ac40924f3b$export$23fca46f3143581f)(()=>{
|
|
7530
7542
|
const { state_: state_ } = shared_properties;
|
|
7531
7543
|
(0, $g9l4l$onCleanup)(shared_properties.reset_history_state_);
|
|
7532
7544
|
return (0, $b76e8f62b1f313ef$export$a54ec244c8863715)({
|
|
@@ -7534,7 +7546,7 @@ function $082017ac4cf9f917$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7534
7546
|
tenant_: ()=>depict_search.merchant,
|
|
7535
7547
|
market_: ()=>depict_search.market,
|
|
7536
7548
|
depict_api_: shared_properties.depict_api_,
|
|
7537
|
-
min_products_to_fetch_: $
|
|
7549
|
+
min_products_to_fetch_: $540e930c58500cbe$var$min_products_to_fetch_,
|
|
7538
7550
|
local_filter_cache_: state_.search_local_filter_cache,
|
|
7539
7551
|
search_field_value_: state_.search_field_value,
|
|
7540
7552
|
search_query_: shared_properties.search_query_signal_,
|
|
@@ -7543,16 +7555,16 @@ function $082017ac4cf9f917$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7543
7555
|
submit_query_: shared_properties.configured_submit_query_,
|
|
7544
7556
|
i18n_: shared_properties.i18n_,
|
|
7545
7557
|
modal_body_style_ref_: (style)=>{
|
|
7546
|
-
const shared_info_right_now = $
|
|
7558
|
+
const shared_info_right_now = $540e930c58500cbe$var$privately_shared_properties.get(depict_search);
|
|
7547
7559
|
if (!shared_info_right_now) return;
|
|
7548
|
-
$
|
|
7560
|
+
$540e930c58500cbe$var$privately_shared_properties.set(depict_search, {
|
|
7549
7561
|
...shared_info_right_now,
|
|
7550
7562
|
search_page_aligned_modal_body_style_signal_: style
|
|
7551
7563
|
});
|
|
7552
7564
|
(0, $g9l4l$onCleanup)(()=>{
|
|
7553
|
-
const shared_info_right_now = $
|
|
7565
|
+
const shared_info_right_now = $540e930c58500cbe$var$privately_shared_properties.get(depict_search);
|
|
7554
7566
|
if (!shared_info_right_now || shared_info_right_now.search_page_aligned_modal_body_style_signal_ !== style) return;
|
|
7555
|
-
$
|
|
7567
|
+
$540e930c58500cbe$var$privately_shared_properties.set(depict_search, {
|
|
7556
7568
|
...shared_info_right_now,
|
|
7557
7569
|
search_page_aligned_modal_body_style_signal_: undefined
|
|
7558
7570
|
});
|
|
@@ -7594,9 +7606,9 @@ function $082017ac4cf9f917$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7594
7606
|
});
|
|
7595
7607
|
}, "Entire SearchPage failed");
|
|
7596
7608
|
}
|
|
7597
|
-
function $
|
|
7598
|
-
const shared_properties = $
|
|
7599
|
-
return (0, $
|
|
7609
|
+
function $540e930c58500cbe$export$b94867ecbd698f21({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler }) {
|
|
7610
|
+
const shared_properties = $540e930c58500cbe$var$get_shared_properties(depict_search);
|
|
7611
|
+
return (0, $c7f938ac40924f3b$export$23fca46f3143581f)(()=>{
|
|
7600
7612
|
const input = (0, $g9l4l$createComponent)((0, $3a2af5e36c43cf2f$export$ff21851bb5d30e15), {
|
|
7601
7613
|
get search_query_ () {
|
|
7602
7614
|
return shared_properties.search_query_signal_;
|
|
@@ -7633,7 +7645,7 @@ function $082017ac4cf9f917$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7633
7645
|
(0, $079defea521d5e2a$export$b3ad617e9036868)(style_props_, input);
|
|
7634
7646
|
return [
|
|
7635
7647
|
(()=>{
|
|
7636
|
-
const _el$ = $
|
|
7648
|
+
const _el$ = $540e930c58500cbe$var$_tmpl$.cloneNode(true);
|
|
7637
7649
|
(0, $g9l4l$insert)(_el$, input);
|
|
7638
7650
|
(0, $g9l4l$effect)(()=>(0, $g9l4l$setAttribute)(_el$, "id", (0, $01115659405f3c64$export$44dad306455dddf).SEARCH_MODAL));
|
|
7639
7651
|
return _el$;
|
|
@@ -7801,4 +7813,4 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7801
7813
|
(0, $g9l4l$dlog)("@depict-ai/ui version", (0, $18bf1d29fb889cca$export$83d89fbfd8236492));
|
|
7802
7814
|
|
|
7803
7815
|
|
|
7804
|
-
export {$
|
|
7816
|
+
export {$e95f1855a5e3864f$export$58e808b1db15d3bc as fetchDepictRecommendations, $ec52ef1e6c117813$export$de035477d6fef996 as QuickLinks, $ec52ef1e6c117813$export$5b7c3ce0ebe51f86 as BreadCrumbs, $6340962f8bafd049$export$b91cec6bdc6b32a1 as CategoryTitle, $9b693ea3ff420de6$export$824dde41348efed1 as embedded_num_products, $80a49d3809ecb080$export$643598a327b5833e as get_categories, $ec52ef1e6c117813$export$f34314aa9505732e as DepictCategory, $ec52ef1e6c117813$export$e2bf8ce7779e827e as CategoryPage, $540e930c58500cbe$export$ac6237957a15b3f0 as DepictSearch, $540e930c58500cbe$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $540e930c58500cbe$export$f2dc7e4e4aa11abb as SearchPage, $540e930c58500cbe$export$b94867ecbd698f21 as SearchField, $aaacfac0064e97d9$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $079defea521d5e2a$export$b3ad617e9036868 as align_field, $246aa49a8f85c7f3$export$1233ca167bf71f9a as styles_to_valid_css_string, $a1123c5ed9b0ee29$export$fe334901e8bebd57 as disable_scrolling, $a3e81b85527bc866$export$d0596b5cae35ad4 as open_search_with_shift_slash, $972ebf2641490830$export$26df08e242fe83a3 as push_state_with_query_param_value, $3846bb34098c738f$export$e015ed2f2950f2e3 as DepictAPI, $f22123a20b6b80b3$export$2cefb7e61fcbae00 as add_to_version_info, $fefe7683325039b3$export$d9f36cf74e24d595 as media_query_to_accessor, $36316d7b4c897a03$export$689e204eadb33baf as setup_fast_leave, $886fa987db4f3805$export$5196e4c01fa56fcb as show_toast, $5178263ed1e394ca$export$469c7af753d08925 as solid_format_price, $ba6c9609228edf6b$export$3ccaa27d81dd8556 as PageReplacer, $18bf1d29fb889cca$export$83d89fbfd8236492 as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": [
|
|
6
6
|
"src/index.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"ts-jest": "^29.0.3"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@depict-ai/utilishared": "^0.0.
|
|
85
|
+
"@depict-ai/utilishared": "^0.0.34",
|
|
86
86
|
"solid-js": "^1.6.2"
|
|
87
87
|
},
|
|
88
88
|
"types": "dist/index.d.ts"
|