@depict-ai/ui 2.0.24 → 2.0.25
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 +107 -80
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +107 -80
- package/latest/index.cjs +105 -78
- package/latest/index.d.ts +1 -1
- package/latest/index.js +105 -78
- package/package.json +1 -1
- package/server/ES10/index.cjs +67 -41
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +67 -41
- package/server/latest/index.cjs +65 -39
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +65 -39
package/ES10/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
75
75
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
76
76
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
77
77
|
/*! Depict.ai search and product listing SDK */
|
|
78
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.
|
|
78
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.25";
|
|
79
79
|
const $a68b73fd7ba0853f$var$fallback_operator = "in";
|
|
80
80
|
const $a68b73fd7ba0853f$var$fallback_token = "";
|
|
81
81
|
const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
|
|
@@ -3630,8 +3630,7 @@ function $164d474fea221d77$export$3f1a388cc0d8fed7(props) {
|
|
|
3630
3630
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
3631
3631
|
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
3632
3632
|
get when() {
|
|
3633
|
-
|
|
3634
|
-
return (_props$available_filt = props.available_filters_()) === null || _props$available_filt === void 0 ? void 0 : _props$available_filt.length;
|
|
3633
|
+
return props.available_filters_();
|
|
3635
3634
|
},
|
|
3636
3635
|
get fallback() {
|
|
3637
3636
|
return Array.from({
|
|
@@ -5411,6 +5410,15 @@ const $9bde34303b3e9ace$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<s
|
|
|
5411
5410
|
function $9bde34303b3e9ace$export$28f6150e232898de() {
|
|
5412
5411
|
return $52FdA$solidjsweb.getNextElement($9bde34303b3e9ace$var$_tmpl$);
|
|
5413
5412
|
}
|
|
5413
|
+
|
|
5414
|
+
/**
|
|
5415
|
+
* Returns true when we have an array of filters that's an array but empty and no selected filters.
|
|
5416
|
+
* Used for hiding the filter button, filter section is from sort/filter modal and desktop filters
|
|
5417
|
+
*/
|
|
5418
|
+
function $8b9c2fa4593b29df$export$50f68cc9882e36a4(args_for_filtering) {
|
|
5419
|
+
var _args_for_filtering$a, _args_for_filtering$s;
|
|
5420
|
+
return ((_args_for_filtering$a = args_for_filtering.available_filters_()) === null || _args_for_filtering$a === void 0 ? void 0 : _args_for_filtering$a.length) === 0 && !((_args_for_filtering$s = args_for_filtering.selected_filters_[0]()) !== null && _args_for_filtering$s !== void 0 && _args_for_filtering$s.length);
|
|
5421
|
+
}
|
|
5414
5422
|
const $685149df41127abd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear minor"></button>`, 2),
|
|
5415
5423
|
$685149df41127abd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp" id="depict-filter-sort-mobile-modal-container"><div class="depict-filter-sort-modal-backdrop"></div><button class="dismiss-modal"></button><div class="filter-sort-modal"><div class="body"><!#><!/><!#><!/></div><div class="bottom-row"><!#><!/><button class="show-results major"></button></div></div></div>`, 20),
|
|
5416
5424
|
$685149df41127abd$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class="sorting"></details>`, 2),
|
|
@@ -5652,38 +5660,45 @@ function $685149df41127abd$export$9bf11afa910f536e(_ref) {
|
|
|
5652
5660
|
})();
|
|
5653
5661
|
}
|
|
5654
5662
|
}), _el$7, _co$);
|
|
5655
|
-
$52FdA$solidjsweb.insert(_el$5, $52FdA$solidjsweb.createComponent((0, $
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
return $52FdA$solidjsweb.getNextElement($685149df41127abd$var$_tmpl$6);
|
|
5659
|
-
},
|
|
5660
|
-
get summary_() {
|
|
5661
|
-
return (() => {
|
|
5662
|
-
const _el$26 = $52FdA$solidjsweb.getNextElement($685149df41127abd$var$_tmpl$4),
|
|
5663
|
-
_el$27 = _el$26.firstChild,
|
|
5664
|
-
_el$28 = _el$27.firstChild,
|
|
5665
|
-
_el$30 = _el$28.firstChild,
|
|
5666
|
-
[_el$31, _co$6] = $52FdA$solidjsweb.getNextMarker(_el$30.nextSibling),
|
|
5667
|
-
_el$29 = _el$31.nextSibling,
|
|
5668
|
-
_el$32 = _el$28.nextSibling,
|
|
5669
|
-
[_el$33, _co$7] = $52FdA$solidjsweb.getNextMarker(_el$32.nextSibling);
|
|
5670
|
-
$52FdA$solidjsweb.insert(_el$28, $52FdA$solidjsweb.createComponent((0, $9bde34303b3e9ace$export$28f6150e232898de), {}), _el$31, _co$6);
|
|
5671
|
-
$52FdA$solidjsweb.insert(_el$29, () => i18n_.filters_());
|
|
5672
|
-
$52FdA$solidjsweb.insert(_el$27, $52FdA$solidjsweb.createComponent((0, $ac040bdfeed58ee4$export$e5c2828934226505), {
|
|
5673
|
-
expanded_: filters_expanded,
|
|
5674
|
-
i18n_: i18n_
|
|
5675
|
-
}), _el$33, _co$7);
|
|
5676
|
-
return _el$26;
|
|
5677
|
-
})();
|
|
5663
|
+
$52FdA$solidjsweb.insert(_el$5, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
5664
|
+
get when() {
|
|
5665
|
+
return !$8b9c2fa4593b29df$export$50f68cc9882e36a4(args_for_filtering_);
|
|
5678
5666
|
},
|
|
5679
5667
|
get children() {
|
|
5680
|
-
return (()
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
}
|
|
5685
|
-
|
|
5686
|
-
|
|
5668
|
+
return $52FdA$solidjsweb.createComponent((0, $4cfe8400ed3f92c4$export$6c6d7a51fa9aa15d), {
|
|
5669
|
+
is_open_: [filters_expanded, set_filters_expanded],
|
|
5670
|
+
get details_() {
|
|
5671
|
+
return $52FdA$solidjsweb.getNextElement($685149df41127abd$var$_tmpl$6);
|
|
5672
|
+
},
|
|
5673
|
+
get summary_() {
|
|
5674
|
+
return (() => {
|
|
5675
|
+
const _el$26 = $52FdA$solidjsweb.getNextElement($685149df41127abd$var$_tmpl$4),
|
|
5676
|
+
_el$27 = _el$26.firstChild,
|
|
5677
|
+
_el$28 = _el$27.firstChild,
|
|
5678
|
+
_el$30 = _el$28.firstChild,
|
|
5679
|
+
[_el$31, _co$6] = $52FdA$solidjsweb.getNextMarker(_el$30.nextSibling),
|
|
5680
|
+
_el$29 = _el$31.nextSibling,
|
|
5681
|
+
_el$32 = _el$28.nextSibling,
|
|
5682
|
+
[_el$33, _co$7] = $52FdA$solidjsweb.getNextMarker(_el$32.nextSibling);
|
|
5683
|
+
$52FdA$solidjsweb.insert(_el$28, $52FdA$solidjsweb.createComponent((0, $9bde34303b3e9ace$export$28f6150e232898de), {}), _el$31, _co$6);
|
|
5684
|
+
$52FdA$solidjsweb.insert(_el$29, () => i18n_.filters_());
|
|
5685
|
+
$52FdA$solidjsweb.insert(_el$27, $52FdA$solidjsweb.createComponent((0, $ac040bdfeed58ee4$export$e5c2828934226505), {
|
|
5686
|
+
expanded_: filters_expanded,
|
|
5687
|
+
i18n_: i18n_
|
|
5688
|
+
}), _el$33, _co$7);
|
|
5689
|
+
return _el$26;
|
|
5690
|
+
})();
|
|
5691
|
+
},
|
|
5692
|
+
get children() {
|
|
5693
|
+
return (() => {
|
|
5694
|
+
const _el$34 = $52FdA$solidjsweb.getNextElement($685149df41127abd$var$_tmpl$5);
|
|
5695
|
+
$52FdA$solidjsweb.insert(_el$34, $52FdA$solidjsweb.createComponent((0, $164d474fea221d77$export$3f1a388cc0d8fed7), $52FdA$solidjsweb.mergeProps(args_for_filtering_, {
|
|
5696
|
+
are_in_modal_: true
|
|
5697
|
+
})));
|
|
5698
|
+
return _el$34;
|
|
5699
|
+
})();
|
|
5700
|
+
}
|
|
5701
|
+
});
|
|
5687
5702
|
}
|
|
5688
5703
|
}), _el$9, _co$2);
|
|
5689
5704
|
$52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
@@ -5796,6 +5811,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5796
5811
|
selected_filters_: selected_filters_,
|
|
5797
5812
|
i18n_: i18n_
|
|
5798
5813
|
};
|
|
5814
|
+
const hide_filters = $52FdA$solidjs.createMemo(() => $8b9c2fa4593b29df$export$50f68cc9882e36a4(filter_options));
|
|
5799
5815
|
const sorting_options = {
|
|
5800
5816
|
current_sorting_: current_sorting_,
|
|
5801
5817
|
available_sortings_: available_sortings_,
|
|
@@ -5810,7 +5826,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5810
5826
|
search_filters_open_: search_filters_open_,
|
|
5811
5827
|
search_sorting_open_: search_sorting_open_,
|
|
5812
5828
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
5813
|
-
filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
|
|
5829
|
+
filter_button_width_: adhere_to_width ? filter_button_width_ : undefined,
|
|
5830
|
+
hide_button_: hide_filters
|
|
5814
5831
|
});
|
|
5815
5832
|
};
|
|
5816
5833
|
const make_open_sorting_button = function () {
|
|
@@ -5862,12 +5879,17 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5862
5879
|
} else {
|
|
5863
5880
|
var _close_modal_2;
|
|
5864
5881
|
(_close_modal_2 = close_modal_) === null || _close_modal_2 === void 0 || _close_modal_2();
|
|
5865
|
-
if (filters_open()) set_extra_els_in_results_container_((
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5882
|
+
if (filters_open()) set_extra_els_in_results_container_(() => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
5883
|
+
get when() {
|
|
5884
|
+
return !hide_filters();
|
|
5885
|
+
},
|
|
5886
|
+
get children() {
|
|
5887
|
+
const _el$ = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$),
|
|
5888
|
+
_el$2 = _el$.firstChild;
|
|
5889
|
+
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $164d474fea221d77$export$3f1a388cc0d8fed7), filter_options));
|
|
5890
|
+
return _el$;
|
|
5891
|
+
}
|
|
5892
|
+
}));else set_extra_els_in_results_container_((() => {
|
|
5871
5893
|
const _el$3 = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$2),
|
|
5872
5894
|
_el$4 = _el$3.firstChild;
|
|
5873
5895
|
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent((0, $3bd211c857f81dfd$export$1f1775a58da589b5), sorting_options));
|
|
@@ -5933,7 +5955,8 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
5933
5955
|
search_sorting_open_: search_sorting_open_,
|
|
5934
5956
|
filter_button_width_: filter_button_width_,
|
|
5935
5957
|
tabindex_: tabindex_,
|
|
5936
|
-
number_of_rendered_selected_filters_items_: [num_selected_filters]
|
|
5958
|
+
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
5959
|
+
hide_button_: hide_button_
|
|
5937
5960
|
} = _ref3;
|
|
5938
5961
|
const filters_closed = $52FdA$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
5939
5962
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
@@ -5979,22 +6002,27 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
5979
6002
|
}), _el$19, _co$4);
|
|
5980
6003
|
$52FdA$solidjsweb.insert(_el$17, () => i18n_.filter_text_());
|
|
5981
6004
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
5982
|
-
const _v$ =
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
_v$
|
|
6005
|
+
const _v$ = hide_button_() ? {
|
|
6006
|
+
display: "none"
|
|
6007
|
+
} : {},
|
|
6008
|
+
_v$2 = !filters_closed(),
|
|
6009
|
+
_v$3 = !!filters_closed(),
|
|
6010
|
+
_v$4 = (filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(),
|
|
6011
|
+
_v$5 = filter_button_width_ !== null && filter_button_width_ !== void 0 && filter_button_width_() ? {
|
|
5986
6012
|
width: filter_button_width_() + "px"
|
|
5987
6013
|
} : {};
|
|
5988
|
-
|
|
5989
|
-
_v$2 !== _p$._v$2 && _el$16.classList.toggle("
|
|
5990
|
-
_v$3 !== _p$._v$3 && $
|
|
5991
|
-
_p$._v$4
|
|
6014
|
+
_p$._v$ = $52FdA$solidjsweb.style(_el$14, _v$, _p$._v$);
|
|
6015
|
+
_v$2 !== _p$._v$2 && _el$16.classList.toggle("major", _p$._v$2 = _v$2);
|
|
6016
|
+
_v$3 !== _p$._v$3 && _el$16.classList.toggle("minor", _p$._v$3 = _v$3);
|
|
6017
|
+
_v$4 !== _p$._v$4 && $52FdA$solidjsweb.setAttribute(_el$16, "aria-label", _p$._v$4 = _v$4);
|
|
6018
|
+
_p$._v$5 = $52FdA$solidjsweb.style(_el$16, _v$5, _p$._v$5);
|
|
5992
6019
|
return _p$;
|
|
5993
6020
|
}, {
|
|
5994
6021
|
_v$: undefined,
|
|
5995
6022
|
_v$2: undefined,
|
|
5996
6023
|
_v$3: undefined,
|
|
5997
|
-
_v$4: undefined
|
|
6024
|
+
_v$4: undefined,
|
|
6025
|
+
_v$5: undefined
|
|
5998
6026
|
});
|
|
5999
6027
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
6000
6028
|
return _el$14;
|
|
@@ -6054,22 +6082,22 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
6054
6082
|
}
|
|
6055
6083
|
}), _el$25, _co$6);
|
|
6056
6084
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
6057
|
-
const _v$
|
|
6058
|
-
_v$
|
|
6059
|
-
_v$
|
|
6060
|
-
_v$
|
|
6085
|
+
const _v$6 = !sorting_closed(),
|
|
6086
|
+
_v$7 = !!sorting_closed(),
|
|
6087
|
+
_v$8 = (sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(),
|
|
6088
|
+
_v$9 = sort_button_width_ !== null && sort_button_width_ !== void 0 && sort_button_width_() ? {
|
|
6061
6089
|
width: sort_button_width_() + "px"
|
|
6062
6090
|
} : {};
|
|
6063
|
-
_v$
|
|
6064
|
-
_v$
|
|
6065
|
-
_v$
|
|
6066
|
-
_p$._v$
|
|
6091
|
+
_v$6 !== _p$._v$6 && _el$22.classList.toggle("major", _p$._v$6 = _v$6);
|
|
6092
|
+
_v$7 !== _p$._v$7 && _el$22.classList.toggle("minor", _p$._v$7 = _v$7);
|
|
6093
|
+
_v$8 !== _p$._v$8 && $52FdA$solidjsweb.setAttribute(_el$22, "aria-label", _p$._v$8 = _v$8);
|
|
6094
|
+
_p$._v$9 = $52FdA$solidjsweb.style(_el$22, _v$9, _p$._v$9);
|
|
6067
6095
|
return _p$;
|
|
6068
6096
|
}, {
|
|
6069
|
-
_v$5: undefined,
|
|
6070
6097
|
_v$6: undefined,
|
|
6071
6098
|
_v$7: undefined,
|
|
6072
|
-
_v$8: undefined
|
|
6099
|
+
_v$8: undefined,
|
|
6100
|
+
_v$9: undefined
|
|
6073
6101
|
});
|
|
6074
6102
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
6075
6103
|
return _el$22;
|
|
@@ -9456,7 +9484,8 @@ function $4d9996ee79548b4b$export$af0124069c150252(_ref) {
|
|
|
9456
9484
|
get_modal_search_results_: get_modal_search_results_,
|
|
9457
9485
|
read_suggestion_signal_: read_suggestion_signal_,
|
|
9458
9486
|
router_: router_,
|
|
9459
|
-
content_results_: content_results_
|
|
9487
|
+
content_results_: content_results_,
|
|
9488
|
+
has_previous_searches_matching_query_: has_previous_searches_matching_query_
|
|
9460
9489
|
} = _ref;
|
|
9461
9490
|
const [get_autocomplete_wants_override_function, set_autocomplete_wants_override_function] = $52FdA$solidjs.createSignal(() => false);
|
|
9462
9491
|
$52FdA$solidjs.createComputed(() => {
|
|
@@ -9465,7 +9494,7 @@ function $4d9996ee79548b4b$export$af0124069c150252(_ref) {
|
|
|
9465
9494
|
const search_results = (_get_modal_search_res = get_modal_search_results_()) === null || _get_modal_search_res === void 0 ? void 0 : _get_modal_search_res();
|
|
9466
9495
|
const content_results = content_results_();
|
|
9467
9496
|
// If we only have one content result and nothing else, go there when pressing enter
|
|
9468
|
-
if (!suggestions.length && !(search_results !== null && search_results !== void 0 && (_search_results$displ = search_results.displays) !== null && _search_results$displ !== void 0 && _search_results$displ.length) && (content_results === null || content_results === void 0 ? void 0 : content_results.length) === 1) {
|
|
9497
|
+
if (!suggestions.length && !(search_results !== null && search_results !== void 0 && (_search_results$displ = search_results.displays) !== null && _search_results$displ !== void 0 && _search_results$displ.length) && (content_results === null || content_results === void 0 ? void 0 : content_results.length) === 1 && !has_previous_searches_matching_query_()) {
|
|
9469
9498
|
const [{
|
|
9470
9499
|
page_url: page_url
|
|
9471
9500
|
}] = content_results;
|
|
@@ -9490,7 +9519,7 @@ function $ce079d50d380ee11$export$2f2b9559550c7bbc(_ref) {
|
|
|
9490
9519
|
search_field_value_: search_field_value_,
|
|
9491
9520
|
get_search_query_: get_search_query_,
|
|
9492
9521
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
9493
|
-
previous_searches_: unfiltered_previous_searches,
|
|
9522
|
+
previous_searches_: [unfiltered_previous_searches, set_unfiltered_previous_searches_],
|
|
9494
9523
|
previous_searches_text_: previous_searches_text_,
|
|
9495
9524
|
depict_api_: depict_api_,
|
|
9496
9525
|
tenant_: tenant_,
|
|
@@ -9512,7 +9541,16 @@ function $ce079d50d380ee11$export$2f2b9559550c7bbc(_ref) {
|
|
|
9512
9541
|
const [read_search_field_value] = search_field_value_;
|
|
9513
9542
|
const updating_blocked = $52FdA$solidjs.createSignal(false);
|
|
9514
9543
|
const [read_suggestion_signal_, write_suggestion_signal] = $52FdA$solidjs.createSignal([]);
|
|
9515
|
-
const
|
|
9544
|
+
const previous_searches_without_current_query = $52FdA$solidjs.createMemo(() => [...unfiltered_previous_searches()].reverse().filter(q => q !== get_search_query_()));
|
|
9545
|
+
const previous_searches_matching_query = $52FdA$solidjs.createMemo(() => {
|
|
9546
|
+
return previous_searches_without_current_query().filter(cs_search => {
|
|
9547
|
+
var _searching_for_value;
|
|
9548
|
+
const search = cs_search.toLowerCase();
|
|
9549
|
+
const value = (_searching_for_value = searching_for_value()) === null || _searching_for_value === void 0 ? void 0 : _searching_for_value.toLowerCase();
|
|
9550
|
+
if (!value) return false;
|
|
9551
|
+
return search.includes(value) || value.includes(search);
|
|
9552
|
+
}).slice(0, 2);
|
|
9553
|
+
});
|
|
9516
9554
|
const deparallelized_fn = $52FdA$depictaiutilishared.deparallelize_no_drop(async request_obj => {
|
|
9517
9555
|
var _api_response$suggest;
|
|
9518
9556
|
const api_response = await depict_api_.suggest(request_obj);
|
|
@@ -9554,7 +9592,8 @@ function $ce079d50d380ee11$export$2f2b9559550c7bbc(_ref) {
|
|
|
9554
9592
|
get_modal_search_results_: get_modal_search_results_,
|
|
9555
9593
|
read_suggestion_signal_: read_suggestion_signal_,
|
|
9556
9594
|
router_: router_,
|
|
9557
|
-
content_results_: get_content_results_
|
|
9595
|
+
content_results_: get_content_results_,
|
|
9596
|
+
has_previous_searches_matching_query_: $52FdA$solidjs.createMemo(() => previous_searches_matching_query().length > 0)
|
|
9558
9597
|
});
|
|
9559
9598
|
$52FdA$solidjs.createComputed(() => {
|
|
9560
9599
|
const field_value = read_search_field_value();
|
|
@@ -9591,13 +9630,11 @@ function $ce079d50d380ee11$export$2f2b9559550c7bbc(_ref) {
|
|
|
9591
9630
|
get children() {
|
|
9592
9631
|
return $52FdA$solidjsweb.createComponent((0, $4edbc04f5c5a1843$export$a146ac6fa8346a25), {
|
|
9593
9632
|
i18n_: i18n_,
|
|
9594
|
-
|
|
9595
|
-
return unfiltered_previous_searches[1];
|
|
9596
|
-
},
|
|
9633
|
+
set_unfiltered_previous_searches_: set_unfiltered_previous_searches_,
|
|
9597
9634
|
search_query_param_name_: search_query_url_param_name_,
|
|
9598
9635
|
text_: previous_searches_text_,
|
|
9599
9636
|
get previous_searches_() {
|
|
9600
|
-
return $52FdA$solidjs.createMemo(() =>
|
|
9637
|
+
return $52FdA$solidjs.createMemo(() => previous_searches_without_current_query().slice(0, 3));
|
|
9601
9638
|
},
|
|
9602
9639
|
selected_index_: selected_index_,
|
|
9603
9640
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -9606,17 +9643,7 @@ function $ce079d50d380ee11$export$2f2b9559550c7bbc(_ref) {
|
|
|
9606
9643
|
});
|
|
9607
9644
|
}
|
|
9608
9645
|
}), $52FdA$solidjsweb.createComponent((0, $0677d509ad208e22$export$e872e2339fb04a7f), {
|
|
9609
|
-
|
|
9610
|
-
return $52FdA$solidjs.createMemo(() => {
|
|
9611
|
-
return filtered_previous_searches().filter(cs_search => {
|
|
9612
|
-
var _searching_for_value;
|
|
9613
|
-
const search = cs_search.toLowerCase();
|
|
9614
|
-
const value = (_searching_for_value = searching_for_value()) === null || _searching_for_value === void 0 ? void 0 : _searching_for_value.toLowerCase();
|
|
9615
|
-
if (!value) return false;
|
|
9616
|
-
return search.includes(value) || value.includes(search);
|
|
9617
|
-
}).slice(0, 2);
|
|
9618
|
-
});
|
|
9619
|
-
},
|
|
9646
|
+
filtered_previous_searches_: previous_searches_matching_query,
|
|
9620
9647
|
on_previous_searches_page_: show_previous_searches_component,
|
|
9621
9648
|
i18n_: i18n_,
|
|
9622
9649
|
get_content_results_: get_content_results_,
|
package/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.25";
|
|
11
11
|
export type SDKGridSpacing = string | {
|
|
12
12
|
horizontal: string;
|
|
13
13
|
vertical: string;
|