@depict-ai/ui 4.4.3 → 4.4.4
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/ES10/index.cjs +30 -13
- package/ES10/index.d.ts +3 -1
- package/ES10/index.js +30 -13
- package/latest/index.cjs +29 -13
- package/latest/index.d.ts +3 -1
- package/latest/index.js +29 -13
- package/package.json +4 -4
- package/server/ES10/index.cjs +13 -8
- package/server/ES10/index.d.ts +3 -1
- package/server/ES10/index.js +13 -8
- package/server/latest/index.cjs +12 -8
- package/server/latest/index.d.ts +3 -1
- package/server/latest/index.js +12 -8
package/ES10/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
100
100
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
101
101
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
102
102
|
/*! Depict.ai search and product listing SDK */
|
|
103
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.4.
|
|
103
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.4.4";
|
|
104
104
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
105
105
|
const cols_at_size = [];
|
|
106
106
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -115,8 +115,9 @@ const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
|
115
115
|
return cols_at_size;
|
|
116
116
|
};
|
|
117
117
|
const $5401a6698b0c0658$export$6daf8749b65a1b77 = cols_at_size => {
|
|
118
|
+
var _cols_at_size$every;
|
|
118
119
|
// Check that every element is an array
|
|
119
|
-
const are_arrays = cols_at_size.every(element => Array.isArray(element));
|
|
120
|
+
const are_arrays = cols_at_size === null || cols_at_size === void 0 ? void 0 : (_cols_at_size$every = cols_at_size.every) === null || _cols_at_size$every === void 0 ? void 0 : _cols_at_size$every.call(cols_at_size, element => Array.isArray(element));
|
|
120
121
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
121
122
|
// Check width duplicates
|
|
122
123
|
const widths = cols_at_size.map(_ref => {
|
|
@@ -3614,7 +3615,7 @@ var $29e5dbeb69da7a36$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<but
|
|
|
3614
3615
|
$29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button type=button class=clear>`),
|
|
3615
3616
|
$29e5dbeb69da7a36$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=spacer>`),
|
|
3616
3617
|
$29e5dbeb69da7a36$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="submit major"type=button>`),
|
|
3617
|
-
$29e5dbeb69da7a36$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div
|
|
3618
|
+
$29e5dbeb69da7a36$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
|
|
3618
3619
|
function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
3619
3620
|
let {
|
|
3620
3621
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
@@ -3628,7 +3629,8 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3628
3629
|
i18n_: i18n_,
|
|
3629
3630
|
after_focusing_: after_focusing_,
|
|
3630
3631
|
BackIcon_: BackIcon_,
|
|
3631
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
3632
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
3633
|
+
class_: class_
|
|
3632
3634
|
} = _ref;
|
|
3633
3635
|
let input_element;
|
|
3634
3636
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -3837,14 +3839,17 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3837
3839
|
}
|
|
3838
3840
|
}), _el$19, _co$6);
|
|
3839
3841
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
3840
|
-
var _v$ =
|
|
3841
|
-
_v$2 = i18n_.
|
|
3842
|
-
|
|
3843
|
-
_v$
|
|
3842
|
+
var _v$ = "search-field".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat(class_()) : ""),
|
|
3843
|
+
_v$2 = i18n_.search_field_field_aria_label_(),
|
|
3844
|
+
_v$3 = i18n_.placeholder_text_();
|
|
3845
|
+
_v$ !== _p$.e && $52FdA$solidjsweb.className(_el$3, _p$.e = _v$);
|
|
3846
|
+
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$6, "aria-label", _p$.t = _v$2);
|
|
3847
|
+
_v$3 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$6, "placeholder", _p$.a = _v$3);
|
|
3844
3848
|
return _p$;
|
|
3845
3849
|
}, {
|
|
3846
3850
|
e: undefined,
|
|
3847
|
-
t: undefined
|
|
3851
|
+
t: undefined,
|
|
3852
|
+
a: undefined
|
|
3848
3853
|
});
|
|
3849
3854
|
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$6, "value", searchFieldValue()));
|
|
3850
3855
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
@@ -13768,7 +13773,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
13768
13773
|
});
|
|
13769
13774
|
}
|
|
13770
13775
|
var $739c927cbecd26b0$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
13771
|
-
$739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div
|
|
13776
|
+
$739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
13772
13777
|
function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
13773
13778
|
let {
|
|
13774
13779
|
depict_api_: depict_api_,
|
|
@@ -13803,7 +13808,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13803
13808
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13804
13809
|
modalVersionUsed_: modalVersionUsed_,
|
|
13805
13810
|
BackIcon_: BackIcon_,
|
|
13806
|
-
filterModalParent_: filterModalParent_
|
|
13811
|
+
filterModalParent_: filterModalParent_,
|
|
13812
|
+
class_: class_
|
|
13807
13813
|
} = _ref;
|
|
13808
13814
|
const [get_sorting] = current_sorting_;
|
|
13809
13815
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -14222,7 +14228,16 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14222
14228
|
});
|
|
14223
14229
|
}
|
|
14224
14230
|
}), _el$25, _co$11);
|
|
14225
|
-
$52FdA$solidjsweb.effect(
|
|
14231
|
+
$52FdA$solidjsweb.effect(_p$ => {
|
|
14232
|
+
var _v$ = (0, $c95c6dd9e93acd82$export$44dad306455dddf).SEARCH_PAGE,
|
|
14233
|
+
_v$2 = "depict plp search".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat(class_()) : "");
|
|
14234
|
+
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$6, "id", _p$.e = _v$);
|
|
14235
|
+
_v$2 !== _p$.t && $52FdA$solidjsweb.className(_el$6, _p$.t = _v$2);
|
|
14236
|
+
return _p$;
|
|
14237
|
+
}, {
|
|
14238
|
+
e: undefined,
|
|
14239
|
+
t: undefined
|
|
14240
|
+
});
|
|
14226
14241
|
return _el$6;
|
|
14227
14242
|
})()];
|
|
14228
14243
|
}
|
|
@@ -14688,7 +14703,8 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
14688
14703
|
...grid_spacing_override()
|
|
14689
14704
|
})),
|
|
14690
14705
|
filterModalParent_: $52FdA$solidjs.untrack(() => props.filterModalParent_),
|
|
14691
|
-
product_card_template_: product_card_template
|
|
14706
|
+
product_card_template_: product_card_template,
|
|
14707
|
+
class_: () => props.class
|
|
14692
14708
|
});
|
|
14693
14709
|
}, "Entire SearchPage failed");
|
|
14694
14710
|
}
|
|
@@ -15080,6 +15096,7 @@ function $98aef9965764903d$export$316f6f283ae64765(props) {
|
|
|
15080
15096
|
let input_element;
|
|
15081
15097
|
let buttonInField;
|
|
15082
15098
|
const search_field = $52FdA$solidjsweb.createComponent((0, $29e5dbeb69da7a36$export$b94867ecbd698f21), {
|
|
15099
|
+
class_: () => props.class,
|
|
15083
15100
|
get BackIcon_() {
|
|
15084
15101
|
return shared_properties.BackIcon_;
|
|
15085
15102
|
},
|
package/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.4.
|
|
13
|
+
export const version = "4.4.4";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1360,6 +1360,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1360
1360
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1361
1361
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1362
1362
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1363
|
+
class?: string;
|
|
1363
1364
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1364
1365
|
/**
|
|
1365
1366
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1445,6 +1446,7 @@ interface SearchFieldParams {
|
|
|
1445
1446
|
modal_dispose_handler?: VoidFunction;
|
|
1446
1447
|
click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
|
|
1447
1448
|
aligner_ref?: HTMLElement | null;
|
|
1449
|
+
class?: string;
|
|
1448
1450
|
}
|
|
1449
1451
|
/**
|
|
1450
1452
|
* Returns a SearchField that will open a modal aligned to it when clicked.
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.4.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.4.4";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -25,8 +25,9 @@ const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
|
25
25
|
return cols_at_size;
|
|
26
26
|
};
|
|
27
27
|
const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
|
|
28
|
+
var _cols_at_size$every;
|
|
28
29
|
// Check that every element is an array
|
|
29
|
-
const are_arrays = cols_at_size.every(element => Array.isArray(element));
|
|
30
|
+
const are_arrays = cols_at_size === null || cols_at_size === void 0 ? void 0 : (_cols_at_size$every = cols_at_size.every) === null || _cols_at_size$every === void 0 ? void 0 : _cols_at_size$every.call(cols_at_size, element => Array.isArray(element));
|
|
30
31
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
31
32
|
// Check width duplicates
|
|
32
33
|
const widths = cols_at_size.map(_ref => {
|
|
@@ -3524,7 +3525,7 @@ var $584c06c09cf4609d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class=b
|
|
|
3524
3525
|
$584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button type=button class=clear>`),
|
|
3525
3526
|
$584c06c09cf4609d$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=spacer>`),
|
|
3526
3527
|
$584c06c09cf4609d$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<button class="submit major"type=button>`),
|
|
3527
|
-
$584c06c09cf4609d$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div
|
|
3528
|
+
$584c06c09cf4609d$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
|
|
3528
3529
|
function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
3529
3530
|
let {
|
|
3530
3531
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
@@ -3538,7 +3539,8 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
3538
3539
|
i18n_: i18n_,
|
|
3539
3540
|
after_focusing_: after_focusing_,
|
|
3540
3541
|
BackIcon_: BackIcon_,
|
|
3541
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
3542
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
3543
|
+
class_: class_
|
|
3542
3544
|
} = _ref;
|
|
3543
3545
|
let input_element;
|
|
3544
3546
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -3747,14 +3749,17 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
3747
3749
|
}
|
|
3748
3750
|
}), _el$19, _co$6);
|
|
3749
3751
|
$8tj43$effect(_p$ => {
|
|
3750
|
-
var _v$ =
|
|
3751
|
-
_v$2 = i18n_.
|
|
3752
|
-
|
|
3753
|
-
_v$
|
|
3752
|
+
var _v$ = "search-field".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat(class_()) : ""),
|
|
3753
|
+
_v$2 = i18n_.search_field_field_aria_label_(),
|
|
3754
|
+
_v$3 = i18n_.placeholder_text_();
|
|
3755
|
+
_v$ !== _p$.e && $8tj43$className(_el$3, _p$.e = _v$);
|
|
3756
|
+
_v$2 !== _p$.t && $8tj43$setAttribute(_el$6, "aria-label", _p$.t = _v$2);
|
|
3757
|
+
_v$3 !== _p$.a && $8tj43$setAttribute(_el$6, "placeholder", _p$.a = _v$3);
|
|
3754
3758
|
return _p$;
|
|
3755
3759
|
}, {
|
|
3756
3760
|
e: undefined,
|
|
3757
|
-
t: undefined
|
|
3761
|
+
t: undefined,
|
|
3762
|
+
a: undefined
|
|
3758
3763
|
});
|
|
3759
3764
|
$8tj43$effect(() => $8tj43$setProperty(_el$6, "value", searchFieldValue()));
|
|
3760
3765
|
$8tj43$runHydrationEvents();
|
|
@@ -13678,7 +13683,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
13678
13683
|
});
|
|
13679
13684
|
}
|
|
13680
13685
|
var $da279c5a540c6846$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
13681
|
-
$da279c5a540c6846$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div
|
|
13686
|
+
$da279c5a540c6846$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
13682
13687
|
function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
13683
13688
|
let {
|
|
13684
13689
|
depict_api_: depict_api_,
|
|
@@ -13713,7 +13718,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13713
13718
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13714
13719
|
modalVersionUsed_: modalVersionUsed_,
|
|
13715
13720
|
BackIcon_: BackIcon_,
|
|
13716
|
-
filterModalParent_: filterModalParent_
|
|
13721
|
+
filterModalParent_: filterModalParent_,
|
|
13722
|
+
class_: class_
|
|
13717
13723
|
} = _ref;
|
|
13718
13724
|
const [get_sorting] = current_sorting_;
|
|
13719
13725
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -14132,7 +14138,16 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14132
14138
|
});
|
|
14133
14139
|
}
|
|
14134
14140
|
}), _el$25, _co$11);
|
|
14135
|
-
$8tj43$effect(
|
|
14141
|
+
$8tj43$effect(_p$ => {
|
|
14142
|
+
var _v$ = (0, $c3820807ac1e6fd7$export$44dad306455dddf).SEARCH_PAGE,
|
|
14143
|
+
_v$2 = "depict plp search".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat(class_()) : "");
|
|
14144
|
+
_v$ !== _p$.e && $8tj43$setAttribute(_el$6, "id", _p$.e = _v$);
|
|
14145
|
+
_v$2 !== _p$.t && $8tj43$className(_el$6, _p$.t = _v$2);
|
|
14146
|
+
return _p$;
|
|
14147
|
+
}, {
|
|
14148
|
+
e: undefined,
|
|
14149
|
+
t: undefined
|
|
14150
|
+
});
|
|
14136
14151
|
return _el$6;
|
|
14137
14152
|
})()];
|
|
14138
14153
|
}
|
|
@@ -14598,7 +14613,8 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
14598
14613
|
...grid_spacing_override()
|
|
14599
14614
|
})),
|
|
14600
14615
|
filterModalParent_: $8tj43$untrack(() => props.filterModalParent_),
|
|
14601
|
-
product_card_template_: product_card_template
|
|
14616
|
+
product_card_template_: product_card_template,
|
|
14617
|
+
class_: () => props.class
|
|
14602
14618
|
});
|
|
14603
14619
|
}, "Entire SearchPage failed");
|
|
14604
14620
|
}
|
|
@@ -14990,6 +15006,7 @@ function $a3026fb727bc7550$export$316f6f283ae64765(props) {
|
|
|
14990
15006
|
let input_element;
|
|
14991
15007
|
let buttonInField;
|
|
14992
15008
|
const search_field = $8tj43$createComponent((0, $584c06c09cf4609d$export$b94867ecbd698f21), {
|
|
15009
|
+
class_: () => props.class,
|
|
14993
15010
|
get BackIcon_() {
|
|
14994
15011
|
return shared_properties.BackIcon_;
|
|
14995
15012
|
},
|
package/latest/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
94
94
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
95
95
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.4.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.4.4";
|
|
98
98
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
99
99
|
const cols_at_size = [];
|
|
100
100
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -109,7 +109,7 @@ const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
|
109
109
|
};
|
|
110
110
|
const $4e04be41243c3d80$export$6daf8749b65a1b77 = cols_at_size => {
|
|
111
111
|
// Check that every element is an array
|
|
112
|
-
const are_arrays = cols_at_size
|
|
112
|
+
const are_arrays = cols_at_size?.every?.(element => Array.isArray(element));
|
|
113
113
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
114
114
|
// Check width duplicates
|
|
115
115
|
const widths = cols_at_size.map(([_, width]) => width);
|
|
@@ -3423,7 +3423,7 @@ var $66b8b9a9613c141d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<but
|
|
|
3423
3423
|
$66b8b9a9613c141d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button type=button class=clear>`),
|
|
3424
3424
|
$66b8b9a9613c141d$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=spacer>`),
|
|
3425
3425
|
$66b8b9a9613c141d$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="submit major"type=button>`),
|
|
3426
|
-
$66b8b9a9613c141d$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
3426
|
+
$66b8b9a9613c141d$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
|
|
3427
3427
|
function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
3428
3428
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
3429
3429
|
input_field_ref_: input_field_ref_,
|
|
@@ -3436,7 +3436,8 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
3436
3436
|
i18n_: i18n_,
|
|
3437
3437
|
after_focusing_: after_focusing_,
|
|
3438
3438
|
BackIcon_: BackIcon_,
|
|
3439
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
3439
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
3440
|
+
class_: class_
|
|
3440
3441
|
}) {
|
|
3441
3442
|
let input_element;
|
|
3442
3443
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -3639,14 +3640,17 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
3639
3640
|
}
|
|
3640
3641
|
}), _el$19, _co$6);
|
|
3641
3642
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
3642
|
-
var _v$ =
|
|
3643
|
-
_v$2 = i18n_.
|
|
3644
|
-
|
|
3645
|
-
_v$
|
|
3643
|
+
var _v$ = `search-field${class_?.() ? ` ${class_()}` : ""}`,
|
|
3644
|
+
_v$2 = i18n_.search_field_field_aria_label_(),
|
|
3645
|
+
_v$3 = i18n_.placeholder_text_();
|
|
3646
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.className(_el$3, _p$.e = _v$);
|
|
3647
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$6, "aria-label", _p$.t = _v$2);
|
|
3648
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$6, "placeholder", _p$.a = _v$3);
|
|
3646
3649
|
return _p$;
|
|
3647
3650
|
}, {
|
|
3648
3651
|
e: undefined,
|
|
3649
|
-
t: undefined
|
|
3652
|
+
t: undefined,
|
|
3653
|
+
a: undefined
|
|
3650
3654
|
});
|
|
3651
3655
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$6, "value", searchFieldValue()));
|
|
3652
3656
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -12973,7 +12977,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12973
12977
|
});
|
|
12974
12978
|
}
|
|
12975
12979
|
var $f1d7cb69f839a526$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
12976
|
-
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
12980
|
+
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
12977
12981
|
function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
12978
12982
|
depict_api_: depict_api_,
|
|
12979
12983
|
search_field_value_: search_field_value_,
|
|
@@ -13007,7 +13011,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13007
13011
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13008
13012
|
modalVersionUsed_: modalVersionUsed_,
|
|
13009
13013
|
BackIcon_: BackIcon_,
|
|
13010
|
-
filterModalParent_: filterModalParent_
|
|
13014
|
+
filterModalParent_: filterModalParent_,
|
|
13015
|
+
class_: class_
|
|
13011
13016
|
}) {
|
|
13012
13017
|
const [get_sorting] = current_sorting_;
|
|
13013
13018
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -13403,7 +13408,16 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13403
13408
|
});
|
|
13404
13409
|
}
|
|
13405
13410
|
}), _el$25, _co$11);
|
|
13406
|
-
$gVhhF$solidjsweb.effect(
|
|
13411
|
+
$gVhhF$solidjsweb.effect(_p$ => {
|
|
13412
|
+
var _v$ = (0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_PAGE,
|
|
13413
|
+
_v$2 = `depict plp search${class_?.() ? ` ${class_()}` : ""}`;
|
|
13414
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$6, "id", _p$.e = _v$);
|
|
13415
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.className(_el$6, _p$.t = _v$2);
|
|
13416
|
+
return _p$;
|
|
13417
|
+
}, {
|
|
13418
|
+
e: undefined,
|
|
13419
|
+
t: undefined
|
|
13420
|
+
});
|
|
13407
13421
|
return _el$6;
|
|
13408
13422
|
})()];
|
|
13409
13423
|
}
|
|
@@ -13782,7 +13796,8 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
13782
13796
|
...grid_spacing_override()
|
|
13783
13797
|
})),
|
|
13784
13798
|
filterModalParent_: $gVhhF$solidjs.untrack(() => props.filterModalParent_),
|
|
13785
|
-
product_card_template_: product_card_template
|
|
13799
|
+
product_card_template_: product_card_template,
|
|
13800
|
+
class_: () => props.class
|
|
13786
13801
|
});
|
|
13787
13802
|
}, "Entire SearchPage failed");
|
|
13788
13803
|
}
|
|
@@ -14081,6 +14096,7 @@ function $c0a0659cf97e8eb2$export$316f6f283ae64765(props) {
|
|
|
14081
14096
|
let input_element;
|
|
14082
14097
|
let buttonInField;
|
|
14083
14098
|
const search_field = $gVhhF$solidjsweb.createComponent((0, $66b8b9a9613c141d$export$b94867ecbd698f21), {
|
|
14099
|
+
class_: () => props.class,
|
|
14084
14100
|
get BackIcon_() {
|
|
14085
14101
|
return shared_properties.BackIcon_;
|
|
14086
14102
|
},
|
package/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.4.
|
|
13
|
+
export const version = "4.4.4";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1360,6 +1360,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1360
1360
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1361
1361
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1362
1362
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1363
|
+
class?: string;
|
|
1363
1364
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1364
1365
|
/**
|
|
1365
1366
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1445,6 +1446,7 @@ interface SearchFieldParams {
|
|
|
1445
1446
|
modal_dispose_handler?: VoidFunction;
|
|
1446
1447
|
click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
|
|
1447
1448
|
aligner_ref?: HTMLElement | null;
|
|
1449
|
+
class?: string;
|
|
1448
1450
|
}
|
|
1449
1451
|
/**
|
|
1450
1452
|
* Returns a SearchField that will open a modal aligned to it when clicked.
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.4.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.4.4";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -22,7 +22,7 @@ const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
|
22
22
|
};
|
|
23
23
|
const $b5cccc8ee7d24677$export$6daf8749b65a1b77 = cols_at_size => {
|
|
24
24
|
// Check that every element is an array
|
|
25
|
-
const are_arrays = cols_at_size
|
|
25
|
+
const are_arrays = cols_at_size?.every?.(element => Array.isArray(element));
|
|
26
26
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
27
27
|
// Check width duplicates
|
|
28
28
|
const widths = cols_at_size.map(([_, width]) => width);
|
|
@@ -3336,7 +3336,7 @@ var $5285d2814d0fac0c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class=b
|
|
|
3336
3336
|
$5285d2814d0fac0c$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button type=button class=clear>`),
|
|
3337
3337
|
$5285d2814d0fac0c$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=spacer>`),
|
|
3338
3338
|
$5285d2814d0fac0c$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<button class="submit major"type=button>`),
|
|
3339
|
-
$5285d2814d0fac0c$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div
|
|
3339
|
+
$5285d2814d0fac0c$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
|
|
3340
3340
|
function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
3341
3341
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
3342
3342
|
input_field_ref_: input_field_ref_,
|
|
@@ -3349,7 +3349,8 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
3349
3349
|
i18n_: i18n_,
|
|
3350
3350
|
after_focusing_: after_focusing_,
|
|
3351
3351
|
BackIcon_: BackIcon_,
|
|
3352
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
3352
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
3353
|
+
class_: class_
|
|
3353
3354
|
}) {
|
|
3354
3355
|
let input_element;
|
|
3355
3356
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -3552,14 +3553,17 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
3552
3553
|
}
|
|
3553
3554
|
}), _el$19, _co$6);
|
|
3554
3555
|
$9HbP8$effect(_p$ => {
|
|
3555
|
-
var _v$ =
|
|
3556
|
-
_v$2 = i18n_.
|
|
3557
|
-
|
|
3558
|
-
_v$
|
|
3556
|
+
var _v$ = `search-field${class_?.() ? ` ${class_()}` : ""}`,
|
|
3557
|
+
_v$2 = i18n_.search_field_field_aria_label_(),
|
|
3558
|
+
_v$3 = i18n_.placeholder_text_();
|
|
3559
|
+
_v$ !== _p$.e && $9HbP8$className(_el$3, _p$.e = _v$);
|
|
3560
|
+
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$6, "aria-label", _p$.t = _v$2);
|
|
3561
|
+
_v$3 !== _p$.a && $9HbP8$setAttribute(_el$6, "placeholder", _p$.a = _v$3);
|
|
3559
3562
|
return _p$;
|
|
3560
3563
|
}, {
|
|
3561
3564
|
e: undefined,
|
|
3562
|
-
t: undefined
|
|
3565
|
+
t: undefined,
|
|
3566
|
+
a: undefined
|
|
3563
3567
|
});
|
|
3564
3568
|
$9HbP8$effect(() => $9HbP8$setProperty(_el$6, "value", searchFieldValue()));
|
|
3565
3569
|
$9HbP8$runHydrationEvents();
|
|
@@ -12886,7 +12890,7 @@ function $0e562a5b247b1fc2$export$44f738469d5570cf({
|
|
|
12886
12890
|
});
|
|
12887
12891
|
}
|
|
12888
12892
|
var $7097477c78a89208$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
12889
|
-
$7097477c78a89208$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div
|
|
12893
|
+
$7097477c78a89208$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
12890
12894
|
function $7097477c78a89208$export$a54ec244c8863715({
|
|
12891
12895
|
depict_api_: depict_api_,
|
|
12892
12896
|
search_field_value_: search_field_value_,
|
|
@@ -12920,7 +12924,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12920
12924
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12921
12925
|
modalVersionUsed_: modalVersionUsed_,
|
|
12922
12926
|
BackIcon_: BackIcon_,
|
|
12923
|
-
filterModalParent_: filterModalParent_
|
|
12927
|
+
filterModalParent_: filterModalParent_,
|
|
12928
|
+
class_: class_
|
|
12924
12929
|
}) {
|
|
12925
12930
|
const [get_sorting] = current_sorting_;
|
|
12926
12931
|
const all_products_loaded_ = $9HbP8$createSignal(false);
|
|
@@ -13316,7 +13321,16 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13316
13321
|
});
|
|
13317
13322
|
}
|
|
13318
13323
|
}), _el$25, _co$11);
|
|
13319
|
-
$9HbP8$effect(
|
|
13324
|
+
$9HbP8$effect(_p$ => {
|
|
13325
|
+
var _v$ = (0, $f86ba724282f6690$export$44dad306455dddf).SEARCH_PAGE,
|
|
13326
|
+
_v$2 = `depict plp search${class_?.() ? ` ${class_()}` : ""}`;
|
|
13327
|
+
_v$ !== _p$.e && $9HbP8$setAttribute(_el$6, "id", _p$.e = _v$);
|
|
13328
|
+
_v$2 !== _p$.t && $9HbP8$className(_el$6, _p$.t = _v$2);
|
|
13329
|
+
return _p$;
|
|
13330
|
+
}, {
|
|
13331
|
+
e: undefined,
|
|
13332
|
+
t: undefined
|
|
13333
|
+
});
|
|
13320
13334
|
return _el$6;
|
|
13321
13335
|
})()];
|
|
13322
13336
|
}
|
|
@@ -13695,7 +13709,8 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
13695
13709
|
...grid_spacing_override()
|
|
13696
13710
|
})),
|
|
13697
13711
|
filterModalParent_: $9HbP8$untrack(() => props.filterModalParent_),
|
|
13698
|
-
product_card_template_: product_card_template
|
|
13712
|
+
product_card_template_: product_card_template,
|
|
13713
|
+
class_: () => props.class
|
|
13699
13714
|
});
|
|
13700
13715
|
}, "Entire SearchPage failed");
|
|
13701
13716
|
}
|
|
@@ -13994,6 +14009,7 @@ function $58b3487626e85ece$export$316f6f283ae64765(props) {
|
|
|
13994
14009
|
let input_element;
|
|
13995
14010
|
let buttonInField;
|
|
13996
14011
|
const search_field = $9HbP8$createComponent((0, $5285d2814d0fac0c$export$b94867ecbd698f21), {
|
|
14012
|
+
class_: () => props.class,
|
|
13997
14013
|
get BackIcon_() {
|
|
13998
14014
|
return shared_properties.BackIcon_;
|
|
13999
14015
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.1.
|
|
240
|
-
"@depict-ai/types": "^5.1.
|
|
241
|
-
"@depict-ai/utilishared": "^2.1.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.1.4",
|
|
240
|
+
"@depict-ai/types": "^5.1.4",
|
|
241
|
+
"@depict-ai/utilishared": "^2.1.4",
|
|
242
242
|
"solid-js": "^1.8.12"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
100
100
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
101
101
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
102
102
|
/*! Depict.ai search and product listing SDK */
|
|
103
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.4.
|
|
103
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.4.4";
|
|
104
104
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
105
105
|
const cols_at_size = [];
|
|
106
106
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -115,8 +115,9 @@ const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
|
115
115
|
return cols_at_size;
|
|
116
116
|
};
|
|
117
117
|
const $5401a6698b0c0658$export$6daf8749b65a1b77 = cols_at_size => {
|
|
118
|
+
var _cols_at_size$every;
|
|
118
119
|
// Check that every element is an array
|
|
119
|
-
const are_arrays = cols_at_size.every(element => Array.isArray(element));
|
|
120
|
+
const are_arrays = cols_at_size === null || cols_at_size === void 0 ? void 0 : (_cols_at_size$every = cols_at_size.every) === null || _cols_at_size$every === void 0 ? void 0 : _cols_at_size$every.call(cols_at_size, element => Array.isArray(element));
|
|
120
121
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
121
122
|
// Check width duplicates
|
|
122
123
|
const widths = cols_at_size.map(_ref => {
|
|
@@ -3082,7 +3083,8 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3082
3083
|
i18n_: i18n_,
|
|
3083
3084
|
after_focusing_: after_focusing_,
|
|
3084
3085
|
BackIcon_: BackIcon_,
|
|
3085
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
3086
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
3087
|
+
class_: class_
|
|
3086
3088
|
} = _ref;
|
|
3087
3089
|
let input_element;
|
|
3088
3090
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -3142,7 +3144,7 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3142
3144
|
return $3hooq$solidjsweb.createComponent(BackIcon_, {});
|
|
3143
3145
|
}
|
|
3144
3146
|
})) : $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $083b2336093176cf$export$3b621d86b1566b2), {})), true);
|
|
3145
|
-
return $3hooq$solidjsweb.ssr($29e5dbeb69da7a36$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), "search-field ".concat(!!on_back_ ? "in-modal" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
3147
|
+
return $3hooq$solidjsweb.ssr($29e5dbeb69da7a36$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), "".concat("search-field".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat($3hooq$solidjsweb.escape(class_(), true)) : "") || "", " ").concat(!!on_back_ ? "in-modal" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
3146
3148
|
get when() {
|
|
3147
3149
|
return getBackButtonWidth() !== undefined && on_back_;
|
|
3148
3150
|
},
|
|
@@ -11315,7 +11317,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
11315
11317
|
});
|
|
11316
11318
|
}
|
|
11317
11319
|
var $739c927cbecd26b0$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
11318
|
-
$739c927cbecd26b0$var$_tmpl$2 = ["<div", ' class="
|
|
11320
|
+
$739c927cbecd26b0$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
11319
11321
|
function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
11320
11322
|
let {
|
|
11321
11323
|
depict_api_: depict_api_,
|
|
@@ -11350,7 +11352,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11350
11352
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11351
11353
|
modalVersionUsed_: modalVersionUsed_,
|
|
11352
11354
|
BackIcon_: BackIcon_,
|
|
11353
|
-
filterModalParent_: filterModalParent_
|
|
11355
|
+
filterModalParent_: filterModalParent_,
|
|
11356
|
+
class_: class_
|
|
11354
11357
|
} = _ref;
|
|
11355
11358
|
const [get_sorting] = current_sorting_;
|
|
11356
11359
|
const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
|
|
@@ -11594,7 +11597,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11594
11597
|
alignmentSignals_: alignmentSignals_
|
|
11595
11598
|
});
|
|
11596
11599
|
});
|
|
11597
|
-
return [(0, $3hooq$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $3hooq$solidjsweb.ssr($739c927cbecd26b0$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey() + $3hooq$solidjsweb.ssrAttribute("id", $3hooq$solidjsweb.escape((0, $c95c6dd9e93acd82$export$44dad306455dddf).SEARCH_PAGE, true), false), $3hooq$solidjsweb.escape(get_search_field_elements()), make_category_suggestion_card_ ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
11600
|
+
return [(0, $3hooq$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $3hooq$solidjsweb.ssr($739c927cbecd26b0$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey() + $3hooq$solidjsweb.ssrAttribute("id", $3hooq$solidjsweb.escape((0, $c95c6dd9e93acd82$export$44dad306455dddf).SEARCH_PAGE, true), false), "depict plp search".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat($3hooq$solidjsweb.escape(class_(), true)) : ""), $3hooq$solidjsweb.escape(get_search_field_elements()), make_category_suggestion_card_ ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
11598
11601
|
severity_: "error",
|
|
11599
11602
|
message_: "Category suggestions failed",
|
|
11600
11603
|
get children() {
|
|
@@ -12194,7 +12197,8 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
12194
12197
|
...grid_spacing_override()
|
|
12195
12198
|
})),
|
|
12196
12199
|
filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
|
|
12197
|
-
product_card_template_: product_card_template
|
|
12200
|
+
product_card_template_: product_card_template,
|
|
12201
|
+
class_: () => props.class
|
|
12198
12202
|
});
|
|
12199
12203
|
}, "Entire SearchPage failed");
|
|
12200
12204
|
}
|
|
@@ -12586,6 +12590,7 @@ function $98aef9965764903d$export$316f6f283ae64765(props) {
|
|
|
12586
12590
|
let input_element;
|
|
12587
12591
|
let buttonInField;
|
|
12588
12592
|
const search_field = $3hooq$solidjsweb.createComponent((0, $29e5dbeb69da7a36$export$b94867ecbd698f21), {
|
|
12593
|
+
class_: () => props.class,
|
|
12589
12594
|
get BackIcon_() {
|
|
12590
12595
|
return shared_properties.BackIcon_;
|
|
12591
12596
|
},
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.4.
|
|
13
|
+
export const version = "4.4.4";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1360,6 +1360,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1360
1360
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1361
1361
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1362
1362
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1363
|
+
class?: string;
|
|
1363
1364
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1364
1365
|
/**
|
|
1365
1366
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1445,6 +1446,7 @@ interface SearchFieldParams {
|
|
|
1445
1446
|
modal_dispose_handler?: VoidFunction;
|
|
1446
1447
|
click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
|
|
1447
1448
|
aligner_ref?: HTMLElement | null;
|
|
1449
|
+
class?: string;
|
|
1448
1450
|
}
|
|
1449
1451
|
/**
|
|
1450
1452
|
* Returns a SearchField that will open a modal aligned to it when clicked.
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.4.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.4.4";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -25,8 +25,9 @@ const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
|
25
25
|
return cols_at_size;
|
|
26
26
|
};
|
|
27
27
|
const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
|
|
28
|
+
var _cols_at_size$every;
|
|
28
29
|
// Check that every element is an array
|
|
29
|
-
const are_arrays = cols_at_size.every(element => Array.isArray(element));
|
|
30
|
+
const are_arrays = cols_at_size === null || cols_at_size === void 0 ? void 0 : (_cols_at_size$every = cols_at_size.every) === null || _cols_at_size$every === void 0 ? void 0 : _cols_at_size$every.call(cols_at_size, element => Array.isArray(element));
|
|
30
31
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
31
32
|
// Check width duplicates
|
|
32
33
|
const widths = cols_at_size.map(_ref => {
|
|
@@ -2992,7 +2993,8 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
2992
2993
|
i18n_: i18n_,
|
|
2993
2994
|
after_focusing_: after_focusing_,
|
|
2994
2995
|
BackIcon_: BackIcon_,
|
|
2995
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
2996
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
2997
|
+
class_: class_
|
|
2996
2998
|
} = _ref;
|
|
2997
2999
|
let input_element;
|
|
2998
3000
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -3052,7 +3054,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
3052
3054
|
return $b8hua$createComponent(BackIcon_, {});
|
|
3053
3055
|
}
|
|
3054
3056
|
})) : $b8hua$escape($b8hua$createComponent((0, $9783d437ad61594c$export$3b621d86b1566b2), {})), true);
|
|
3055
|
-
return $b8hua$ssr($584c06c09cf4609d$var$_tmpl$3, $b8hua$ssrHydrationKey(), "search-field ".concat(!!on_back_ ? "in-modal" : ""), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
3057
|
+
return $b8hua$ssr($584c06c09cf4609d$var$_tmpl$3, $b8hua$ssrHydrationKey(), "".concat("search-field".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat($b8hua$escape(class_(), true)) : "") || "", " ").concat(!!on_back_ ? "in-modal" : ""), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
3056
3058
|
get when() {
|
|
3057
3059
|
return getBackButtonWidth() !== undefined && on_back_;
|
|
3058
3060
|
},
|
|
@@ -11225,7 +11227,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
11225
11227
|
});
|
|
11226
11228
|
}
|
|
11227
11229
|
var $da279c5a540c6846$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
11228
|
-
$da279c5a540c6846$var$_tmpl$2 = ["<div", ' class="
|
|
11230
|
+
$da279c5a540c6846$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
11229
11231
|
function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
11230
11232
|
let {
|
|
11231
11233
|
depict_api_: depict_api_,
|
|
@@ -11260,7 +11262,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11260
11262
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11261
11263
|
modalVersionUsed_: modalVersionUsed_,
|
|
11262
11264
|
BackIcon_: BackIcon_,
|
|
11263
|
-
filterModalParent_: filterModalParent_
|
|
11265
|
+
filterModalParent_: filterModalParent_,
|
|
11266
|
+
class_: class_
|
|
11264
11267
|
} = _ref;
|
|
11265
11268
|
const [get_sorting] = current_sorting_;
|
|
11266
11269
|
const all_products_loaded_ = $b8hua$createSignal(false);
|
|
@@ -11504,7 +11507,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11504
11507
|
alignmentSignals_: alignmentSignals_
|
|
11505
11508
|
});
|
|
11506
11509
|
});
|
|
11507
|
-
return [(0, $b8hua$isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $b8hua$ssr($da279c5a540c6846$var$_tmpl$2, $b8hua$ssrHydrationKey() + $b8hua$ssrAttribute("id", $b8hua$escape((0, $c3820807ac1e6fd7$export$44dad306455dddf).SEARCH_PAGE, true), false), $b8hua$escape(get_search_field_elements()), make_category_suggestion_card_ ? $b8hua$escape($b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
11510
|
+
return [(0, $b8hua$isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $b8hua$ssr($da279c5a540c6846$var$_tmpl$2, $b8hua$ssrHydrationKey() + $b8hua$ssrAttribute("id", $b8hua$escape((0, $c3820807ac1e6fd7$export$44dad306455dddf).SEARCH_PAGE, true), false), "depict plp search".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat($b8hua$escape(class_(), true)) : ""), $b8hua$escape(get_search_field_elements()), make_category_suggestion_card_ ? $b8hua$escape($b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
11508
11511
|
severity_: "error",
|
|
11509
11512
|
message_: "Category suggestions failed",
|
|
11510
11513
|
get children() {
|
|
@@ -12104,7 +12107,8 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
12104
12107
|
...grid_spacing_override()
|
|
12105
12108
|
})),
|
|
12106
12109
|
filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
|
|
12107
|
-
product_card_template_: product_card_template
|
|
12110
|
+
product_card_template_: product_card_template,
|
|
12111
|
+
class_: () => props.class
|
|
12108
12112
|
});
|
|
12109
12113
|
}, "Entire SearchPage failed");
|
|
12110
12114
|
}
|
|
@@ -12496,6 +12500,7 @@ function $a3026fb727bc7550$export$316f6f283ae64765(props) {
|
|
|
12496
12500
|
let input_element;
|
|
12497
12501
|
let buttonInField;
|
|
12498
12502
|
const search_field = $b8hua$createComponent((0, $584c06c09cf4609d$export$b94867ecbd698f21), {
|
|
12503
|
+
class_: () => props.class,
|
|
12499
12504
|
get BackIcon_() {
|
|
12500
12505
|
return shared_properties.BackIcon_;
|
|
12501
12506
|
},
|
package/server/latest/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
94
94
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
95
95
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.4.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.4.4";
|
|
98
98
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
99
99
|
const cols_at_size = [];
|
|
100
100
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -109,7 +109,7 @@ const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
|
109
109
|
};
|
|
110
110
|
const $4e04be41243c3d80$export$6daf8749b65a1b77 = cols_at_size => {
|
|
111
111
|
// Check that every element is an array
|
|
112
|
-
const are_arrays = cols_at_size
|
|
112
|
+
const are_arrays = cols_at_size?.every?.(element => Array.isArray(element));
|
|
113
113
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
114
114
|
// Check width duplicates
|
|
115
115
|
const widths = cols_at_size.map(([_, width]) => width);
|
|
@@ -2910,7 +2910,8 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
2910
2910
|
i18n_: i18n_,
|
|
2911
2911
|
after_focusing_: after_focusing_,
|
|
2912
2912
|
BackIcon_: BackIcon_,
|
|
2913
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
2913
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
2914
|
+
class_: class_
|
|
2914
2915
|
}) {
|
|
2915
2916
|
let input_element;
|
|
2916
2917
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -2967,7 +2968,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
2967
2968
|
return $5vyXB$solidjsweb.createComponent(BackIcon_, {});
|
|
2968
2969
|
}
|
|
2969
2970
|
})) : $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})), true);
|
|
2970
|
-
return $5vyXB$solidjsweb.ssr($66b8b9a9613c141d$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), `search-field ${!!on_back_ ? "in-modal" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
2971
|
+
return $5vyXB$solidjsweb.ssr($66b8b9a9613c141d$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), `${`search-field${class_?.() ? ` ${$5vyXB$solidjsweb.escape(class_(), true)}` : ""}` || ""} ${!!on_back_ ? "in-modal" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
2971
2972
|
get when() {
|
|
2972
2973
|
return getBackButtonWidth() !== undefined && on_back_;
|
|
2973
2974
|
},
|
|
@@ -10591,7 +10592,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
10591
10592
|
});
|
|
10592
10593
|
}
|
|
10593
10594
|
var $f1d7cb69f839a526$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
10594
|
-
$f1d7cb69f839a526$var$_tmpl$2 = ["<div", ' class="
|
|
10595
|
+
$f1d7cb69f839a526$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
10595
10596
|
function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
10596
10597
|
depict_api_: depict_api_,
|
|
10597
10598
|
search_field_value_: search_field_value_,
|
|
@@ -10625,7 +10626,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10625
10626
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10626
10627
|
modalVersionUsed_: modalVersionUsed_,
|
|
10627
10628
|
BackIcon_: BackIcon_,
|
|
10628
|
-
filterModalParent_: filterModalParent_
|
|
10629
|
+
filterModalParent_: filterModalParent_,
|
|
10630
|
+
class_: class_
|
|
10629
10631
|
}) {
|
|
10630
10632
|
const [get_sorting] = current_sorting_;
|
|
10631
10633
|
const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
|
|
@@ -10850,7 +10852,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10850
10852
|
alignmentSignals_: alignmentSignals_
|
|
10851
10853
|
});
|
|
10852
10854
|
});
|
|
10853
|
-
return [(0, $5vyXB$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $5vyXB$solidjsweb.ssr($f1d7cb69f839a526$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey() + $5vyXB$solidjsweb.ssrAttribute("id", $5vyXB$solidjsweb.escape((0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_PAGE, true), false), $5vyXB$solidjsweb.escape(get_search_field_elements()), make_category_suggestion_card_ ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
10855
|
+
return [(0, $5vyXB$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $5vyXB$solidjsweb.ssr($f1d7cb69f839a526$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey() + $5vyXB$solidjsweb.ssrAttribute("id", $5vyXB$solidjsweb.escape((0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_PAGE, true), false), `depict plp search${class_?.() ? ` ${$5vyXB$solidjsweb.escape(class_(), true)}` : ""}`, $5vyXB$solidjsweb.escape(get_search_field_elements()), make_category_suggestion_card_ ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
10854
10856
|
severity_: "error",
|
|
10855
10857
|
message_: "Category suggestions failed",
|
|
10856
10858
|
get children() {
|
|
@@ -11359,7 +11361,8 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
11359
11361
|
...grid_spacing_override()
|
|
11360
11362
|
})),
|
|
11361
11363
|
filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
|
|
11362
|
-
product_card_template_: product_card_template
|
|
11364
|
+
product_card_template_: product_card_template,
|
|
11365
|
+
class_: () => props.class
|
|
11363
11366
|
});
|
|
11364
11367
|
}, "Entire SearchPage failed");
|
|
11365
11368
|
}
|
|
@@ -11658,6 +11661,7 @@ function $c0a0659cf97e8eb2$export$316f6f283ae64765(props) {
|
|
|
11658
11661
|
let input_element;
|
|
11659
11662
|
let buttonInField;
|
|
11660
11663
|
const search_field = $5vyXB$solidjsweb.createComponent((0, $66b8b9a9613c141d$export$b94867ecbd698f21), {
|
|
11664
|
+
class_: () => props.class,
|
|
11661
11665
|
get BackIcon_() {
|
|
11662
11666
|
return shared_properties.BackIcon_;
|
|
11663
11667
|
},
|
package/server/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.4.
|
|
13
|
+
export const version = "4.4.4";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1360,6 +1360,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1360
1360
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1361
1361
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1362
1362
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1363
|
+
class?: string;
|
|
1363
1364
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1364
1365
|
/**
|
|
1365
1366
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1445,6 +1446,7 @@ interface SearchFieldParams {
|
|
|
1445
1446
|
modal_dispose_handler?: VoidFunction;
|
|
1446
1447
|
click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
|
|
1447
1448
|
aligner_ref?: HTMLElement | null;
|
|
1449
|
+
class?: string;
|
|
1448
1450
|
}
|
|
1449
1451
|
/**
|
|
1450
1452
|
* Returns a SearchField that will open a modal aligned to it when clicked.
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.4.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.4.4";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -22,7 +22,7 @@ const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
|
22
22
|
};
|
|
23
23
|
const $b5cccc8ee7d24677$export$6daf8749b65a1b77 = cols_at_size => {
|
|
24
24
|
// Check that every element is an array
|
|
25
|
-
const are_arrays = cols_at_size
|
|
25
|
+
const are_arrays = cols_at_size?.every?.(element => Array.isArray(element));
|
|
26
26
|
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
27
27
|
// Check width duplicates
|
|
28
28
|
const widths = cols_at_size.map(([_, width]) => width);
|
|
@@ -2823,7 +2823,8 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
2823
2823
|
i18n_: i18n_,
|
|
2824
2824
|
after_focusing_: after_focusing_,
|
|
2825
2825
|
BackIcon_: BackIcon_,
|
|
2826
|
-
buttonInFieldRef_: buttonInFieldRef_
|
|
2826
|
+
buttonInFieldRef_: buttonInFieldRef_,
|
|
2827
|
+
class_: class_
|
|
2827
2828
|
}) {
|
|
2828
2829
|
let input_element;
|
|
2829
2830
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -2880,7 +2881,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
2880
2881
|
return $i7OB2$createComponent(BackIcon_, {});
|
|
2881
2882
|
}
|
|
2882
2883
|
})) : $i7OB2$escape($i7OB2$createComponent((0, $19976a74d273070d$export$3b621d86b1566b2), {})), true);
|
|
2883
|
-
return $i7OB2$ssr($5285d2814d0fac0c$var$_tmpl$3, $i7OB2$ssrHydrationKey(), `search-field ${!!on_back_ ? "in-modal" : ""}`, $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
2884
|
+
return $i7OB2$ssr($5285d2814d0fac0c$var$_tmpl$3, $i7OB2$ssrHydrationKey(), `${`search-field${class_?.() ? ` ${$i7OB2$escape(class_(), true)}` : ""}` || ""} ${!!on_back_ ? "in-modal" : ""}`, $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
2884
2885
|
get when() {
|
|
2885
2886
|
return getBackButtonWidth() !== undefined && on_back_;
|
|
2886
2887
|
},
|
|
@@ -10504,7 +10505,7 @@ function $0e562a5b247b1fc2$export$44f738469d5570cf({
|
|
|
10504
10505
|
});
|
|
10505
10506
|
}
|
|
10506
10507
|
var $7097477c78a89208$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
10507
|
-
$7097477c78a89208$var$_tmpl$2 = ["<div", ' class="
|
|
10508
|
+
$7097477c78a89208$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
10508
10509
|
function $7097477c78a89208$export$a54ec244c8863715({
|
|
10509
10510
|
depict_api_: depict_api_,
|
|
10510
10511
|
search_field_value_: search_field_value_,
|
|
@@ -10538,7 +10539,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10538
10539
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10539
10540
|
modalVersionUsed_: modalVersionUsed_,
|
|
10540
10541
|
BackIcon_: BackIcon_,
|
|
10541
|
-
filterModalParent_: filterModalParent_
|
|
10542
|
+
filterModalParent_: filterModalParent_,
|
|
10543
|
+
class_: class_
|
|
10542
10544
|
}) {
|
|
10543
10545
|
const [get_sorting] = current_sorting_;
|
|
10544
10546
|
const all_products_loaded_ = $i7OB2$createSignal(false);
|
|
@@ -10763,7 +10765,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10763
10765
|
alignmentSignals_: alignmentSignals_
|
|
10764
10766
|
});
|
|
10765
10767
|
});
|
|
10766
|
-
return [(0, $i7OB2$isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $i7OB2$ssr($7097477c78a89208$var$_tmpl$2, $i7OB2$ssrHydrationKey() + $i7OB2$ssrAttribute("id", $i7OB2$escape((0, $f86ba724282f6690$export$44dad306455dddf).SEARCH_PAGE, true), false), $i7OB2$escape(get_search_field_elements()), make_category_suggestion_card_ ? $i7OB2$escape($i7OB2$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
10768
|
+
return [(0, $i7OB2$isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), $i7OB2$ssr($7097477c78a89208$var$_tmpl$2, $i7OB2$ssrHydrationKey() + $i7OB2$ssrAttribute("id", $i7OB2$escape((0, $f86ba724282f6690$export$44dad306455dddf).SEARCH_PAGE, true), false), `depict plp search${class_?.() ? ` ${$i7OB2$escape(class_(), true)}` : ""}`, $i7OB2$escape(get_search_field_elements()), make_category_suggestion_card_ ? $i7OB2$escape($i7OB2$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
10767
10769
|
severity_: "error",
|
|
10768
10770
|
message_: "Category suggestions failed",
|
|
10769
10771
|
get children() {
|
|
@@ -11272,7 +11274,8 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
11272
11274
|
...grid_spacing_override()
|
|
11273
11275
|
})),
|
|
11274
11276
|
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
11275
|
-
product_card_template_: product_card_template
|
|
11277
|
+
product_card_template_: product_card_template,
|
|
11278
|
+
class_: () => props.class
|
|
11276
11279
|
});
|
|
11277
11280
|
}, "Entire SearchPage failed");
|
|
11278
11281
|
}
|
|
@@ -11571,6 +11574,7 @@ function $58b3487626e85ece$export$316f6f283ae64765(props) {
|
|
|
11571
11574
|
let input_element;
|
|
11572
11575
|
let buttonInField;
|
|
11573
11576
|
const search_field = $i7OB2$createComponent((0, $5285d2814d0fac0c$export$b94867ecbd698f21), {
|
|
11577
|
+
class_: () => props.class,
|
|
11574
11578
|
get BackIcon_() {
|
|
11575
11579
|
return shared_properties.BackIcon_;
|
|
11576
11580
|
},
|