@depict-ai/ui 4.0.25 → 4.0.27
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 +16 -12
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +16 -12
- package/latest/index.cjs +8 -2
- package/latest/index.d.ts +1 -1
- package/latest/index.js +8 -2
- package/package.json +4 -4
- package/server/ES10/index.cjs +16 -12
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +16 -12
- package/server/latest/index.cjs +8 -2
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +8 -2
package/ES10/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
|
|
|
98
98
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
99
99
|
$parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.
|
|
101
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.27";
|
|
102
102
|
const $cfcd56242923775d$export$3064e1e8c6513da3 = new Set();
|
|
103
103
|
let $cfcd56242923775d$var$has_ran = false;
|
|
104
104
|
function $cfcd56242923775d$export$5162a71f252e6122() {
|
|
@@ -10835,9 +10835,13 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10835
10835
|
});
|
|
10836
10836
|
const meta_of_currently_selected_sorting_ = $52FdA$solidjs.createMemo(() => {
|
|
10837
10837
|
var _available_sortings_, _available_sortings_$, _available_sortings_$2;
|
|
10838
|
-
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_,
|
|
10839
|
-
|
|
10840
|
-
|
|
10838
|
+
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_, _ref2 => {
|
|
10839
|
+
let {
|
|
10840
|
+
field: field,
|
|
10841
|
+
order: order
|
|
10842
|
+
} = _ref2;
|
|
10843
|
+
const current = get_current_sorting_();
|
|
10844
|
+
return (current === null || current === void 0 ? void 0 : current.field) === field && (current === null || current === void 0 ? void 0 : current.order) === order;
|
|
10841
10845
|
})) === null || _available_sortings_$2 === void 0 ? void 0 : _available_sortings_$2.meta;
|
|
10842
10846
|
});
|
|
10843
10847
|
const filter_options = {
|
|
@@ -10949,10 +10953,10 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10949
10953
|
}));
|
|
10950
10954
|
const {
|
|
10951
10955
|
remove: remove
|
|
10952
|
-
} = $52FdA$depictaiutilishared.javascript_media_query("(max-width:651px)",
|
|
10956
|
+
} = $52FdA$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
10953
10957
|
let {
|
|
10954
10958
|
matches: matches
|
|
10955
|
-
} =
|
|
10959
|
+
} = _ref3;
|
|
10956
10960
|
return set_is_small(matches);
|
|
10957
10961
|
});
|
|
10958
10962
|
cleanup_promise.then(remove);
|
|
@@ -10997,7 +11001,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10997
11001
|
}
|
|
10998
11002
|
});
|
|
10999
11003
|
}
|
|
11000
|
-
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(
|
|
11004
|
+
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref4) {
|
|
11001
11005
|
let {
|
|
11002
11006
|
i18n_: i18n_,
|
|
11003
11007
|
search_filters_open_: search_filters_open_,
|
|
@@ -11006,7 +11010,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
11006
11010
|
tabindex_: tabindex_,
|
|
11007
11011
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
11008
11012
|
hide_button_: hide_button_
|
|
11009
|
-
} =
|
|
11013
|
+
} = _ref4;
|
|
11010
11014
|
const filters_closed = $52FdA$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
11011
11015
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
11012
11016
|
return (() => {
|
|
@@ -11077,7 +11081,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
11077
11081
|
return _el$14;
|
|
11078
11082
|
})();
|
|
11079
11083
|
}
|
|
11080
|
-
function $f70cc6dfcadf0fd5$var$OpenSortingButton(
|
|
11084
|
+
function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref5) {
|
|
11081
11085
|
let {
|
|
11082
11086
|
i18n_: i18n_,
|
|
11083
11087
|
get_current_sorting_: get_current_sorting_,
|
|
@@ -11087,7 +11091,7 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
11087
11091
|
sort_button_width_: sort_button_width_,
|
|
11088
11092
|
tabindex_: tabindex_,
|
|
11089
11093
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
11090
|
-
} =
|
|
11094
|
+
} = _ref5;
|
|
11091
11095
|
const sorting_closed = $52FdA$solidjs.createMemo(() => !search_sorting_open_[0]());
|
|
11092
11096
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
11093
11097
|
return (() => {
|
|
@@ -11125,8 +11129,8 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
11125
11129
|
},
|
|
11126
11130
|
get children() {
|
|
11127
11131
|
return $52FdA$solidjsweb.memo(() => {
|
|
11128
|
-
var
|
|
11129
|
-
return ((
|
|
11132
|
+
var _get_current_sorting_;
|
|
11133
|
+
return ((_get_current_sorting_ = get_current_sorting_()) === null || _get_current_sorting_ === void 0 ? void 0 : _get_current_sorting_.order) === "asc";
|
|
11130
11134
|
})() ? $52FdA$solidjsweb.createComponent((0, $0b45ba458cbff67a$export$da32f7add8a22e86), {}) : $52FdA$solidjsweb.createComponent((0, $549632402b57d811$export$d10e63059ddb9fd4), {});
|
|
11131
11135
|
}
|
|
11132
11136
|
}), _el$25, _co$6);
|
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.0.
|
|
13
|
+
export const version = "4.0.27";
|
|
14
14
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
15
15
|
/**
|
|
16
16
|
* Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
|
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.0.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.27";
|
|
14
14
|
const $68e6625c8d51f847$export$3064e1e8c6513da3 = new Set();
|
|
15
15
|
let $68e6625c8d51f847$var$has_ran = false;
|
|
16
16
|
function $68e6625c8d51f847$export$5162a71f252e6122() {
|
|
@@ -10747,9 +10747,13 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10747
10747
|
});
|
|
10748
10748
|
const meta_of_currently_selected_sorting_ = $8tj43$createMemo(() => {
|
|
10749
10749
|
var _available_sortings_, _available_sortings_$, _available_sortings_$2;
|
|
10750
|
-
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_,
|
|
10751
|
-
|
|
10752
|
-
|
|
10750
|
+
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_, _ref2 => {
|
|
10751
|
+
let {
|
|
10752
|
+
field: field,
|
|
10753
|
+
order: order
|
|
10754
|
+
} = _ref2;
|
|
10755
|
+
const current = get_current_sorting_();
|
|
10756
|
+
return (current === null || current === void 0 ? void 0 : current.field) === field && (current === null || current === void 0 ? void 0 : current.order) === order;
|
|
10753
10757
|
})) === null || _available_sortings_$2 === void 0 ? void 0 : _available_sortings_$2.meta;
|
|
10754
10758
|
});
|
|
10755
10759
|
const filter_options = {
|
|
@@ -10861,10 +10865,10 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10861
10865
|
}));
|
|
10862
10866
|
const {
|
|
10863
10867
|
remove: remove
|
|
10864
|
-
} = $8tj43$javascript_media_query("(max-width:651px)",
|
|
10868
|
+
} = $8tj43$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
10865
10869
|
let {
|
|
10866
10870
|
matches: matches
|
|
10867
|
-
} =
|
|
10871
|
+
} = _ref3;
|
|
10868
10872
|
return set_is_small(matches);
|
|
10869
10873
|
});
|
|
10870
10874
|
cleanup_promise.then(remove);
|
|
@@ -10909,7 +10913,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10909
10913
|
}
|
|
10910
10914
|
});
|
|
10911
10915
|
}
|
|
10912
|
-
function $7396052a1484264f$var$OpenFiltersButton(
|
|
10916
|
+
function $7396052a1484264f$var$OpenFiltersButton(_ref4) {
|
|
10913
10917
|
let {
|
|
10914
10918
|
i18n_: i18n_,
|
|
10915
10919
|
search_filters_open_: search_filters_open_,
|
|
@@ -10918,7 +10922,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref3) {
|
|
|
10918
10922
|
tabindex_: tabindex_,
|
|
10919
10923
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
10920
10924
|
hide_button_: hide_button_
|
|
10921
|
-
} =
|
|
10925
|
+
} = _ref4;
|
|
10922
10926
|
const filters_closed = $8tj43$createMemo(() => !search_filters_open_[0]());
|
|
10923
10927
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
10924
10928
|
return (() => {
|
|
@@ -10989,7 +10993,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref3) {
|
|
|
10989
10993
|
return _el$14;
|
|
10990
10994
|
})();
|
|
10991
10995
|
}
|
|
10992
|
-
function $7396052a1484264f$var$OpenSortingButton(
|
|
10996
|
+
function $7396052a1484264f$var$OpenSortingButton(_ref5) {
|
|
10993
10997
|
let {
|
|
10994
10998
|
i18n_: i18n_,
|
|
10995
10999
|
get_current_sorting_: get_current_sorting_,
|
|
@@ -10999,7 +11003,7 @@ function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
|
10999
11003
|
sort_button_width_: sort_button_width_,
|
|
11000
11004
|
tabindex_: tabindex_,
|
|
11001
11005
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
11002
|
-
} =
|
|
11006
|
+
} = _ref5;
|
|
11003
11007
|
const sorting_closed = $8tj43$createMemo(() => !search_sorting_open_[0]());
|
|
11004
11008
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
11005
11009
|
return (() => {
|
|
@@ -11037,8 +11041,8 @@ function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
|
11037
11041
|
},
|
|
11038
11042
|
get children() {
|
|
11039
11043
|
return $8tj43$memo(() => {
|
|
11040
|
-
var
|
|
11041
|
-
return ((
|
|
11044
|
+
var _get_current_sorting_;
|
|
11045
|
+
return ((_get_current_sorting_ = get_current_sorting_()) === null || _get_current_sorting_ === void 0 ? void 0 : _get_current_sorting_.order) === "asc";
|
|
11042
11046
|
})() ? $8tj43$createComponent((0, $79af35736fe8e5c8$export$da32f7add8a22e86), {}) : $8tj43$createComponent((0, $73e3c96bc365e0e9$export$d10e63059ddb9fd4), {});
|
|
11043
11047
|
}
|
|
11044
11048
|
}), _el$25, _co$6);
|
package/latest/index.cjs
CHANGED
|
@@ -92,7 +92,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
|
|
|
92
92
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
93
93
|
$parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
|
|
94
94
|
/*! Depict.ai search and product listing SDK */
|
|
95
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.
|
|
95
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.27";
|
|
96
96
|
const $d84fe647b84b5dc5$export$3064e1e8c6513da3 = new Set();
|
|
97
97
|
let $d84fe647b84b5dc5$var$has_ran = false;
|
|
98
98
|
function $d84fe647b84b5dc5$export$5162a71f252e6122() {
|
|
@@ -10245,7 +10245,13 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
10245
10245
|
set_filters_open(false);
|
|
10246
10246
|
set_sorting_open(false);
|
|
10247
10247
|
});
|
|
10248
|
-
const meta_of_currently_selected_sorting_ = $gVhhF$solidjs.createMemo(() => available_sortings_()?.find?.(
|
|
10248
|
+
const meta_of_currently_selected_sorting_ = $gVhhF$solidjs.createMemo(() => available_sortings_()?.find?.(({
|
|
10249
|
+
field: field,
|
|
10250
|
+
order: order
|
|
10251
|
+
}) => {
|
|
10252
|
+
const current = get_current_sorting_();
|
|
10253
|
+
return current?.field === field && current?.order === order;
|
|
10254
|
+
})?.meta);
|
|
10249
10255
|
const filter_options = {
|
|
10250
10256
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10251
10257
|
local_filter_cache_: local_filter_cache_,
|
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.0.
|
|
13
|
+
export const version = "4.0.27";
|
|
14
14
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
15
15
|
/**
|
|
16
16
|
* Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
|
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.0.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.27";
|
|
11
11
|
const $90980bd87c9960f9$export$3064e1e8c6513da3 = new Set();
|
|
12
12
|
let $90980bd87c9960f9$var$has_ran = false;
|
|
13
13
|
function $90980bd87c9960f9$export$5162a71f252e6122() {
|
|
@@ -10160,7 +10160,13 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
10160
10160
|
set_filters_open(false);
|
|
10161
10161
|
set_sorting_open(false);
|
|
10162
10162
|
});
|
|
10163
|
-
const meta_of_currently_selected_sorting_ = $9HbP8$createMemo(() => available_sortings_()?.find?.(
|
|
10163
|
+
const meta_of_currently_selected_sorting_ = $9HbP8$createMemo(() => available_sortings_()?.find?.(({
|
|
10164
|
+
field: field,
|
|
10165
|
+
order: order
|
|
10166
|
+
}) => {
|
|
10167
|
+
const current = get_current_sorting_();
|
|
10168
|
+
return current?.field === field && current?.order === order;
|
|
10169
|
+
})?.meta);
|
|
10164
10170
|
const filter_options = {
|
|
10165
10171
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10166
10172
|
local_filter_cache_: local_filter_cache_,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.27",
|
|
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": "^3.0.
|
|
240
|
-
"@depict-ai/types": "^5.0.
|
|
241
|
-
"@depict-ai/utilishared": "^2.0.
|
|
239
|
+
"@depict-ai/plp-styling": "^3.0.14",
|
|
240
|
+
"@depict-ai/types": "^5.0.6",
|
|
241
|
+
"@depict-ai/utilishared": "^2.0.16",
|
|
242
242
|
"solid-js": "^1.8.12"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
|
|
|
98
98
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
99
99
|
$parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.
|
|
101
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.27";
|
|
102
102
|
const $cfcd56242923775d$export$3064e1e8c6513da3 = new Set();
|
|
103
103
|
let $cfcd56242923775d$var$has_ran = false;
|
|
104
104
|
function $cfcd56242923775d$export$5162a71f252e6122() {
|
|
@@ -8662,9 +8662,13 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
8662
8662
|
});
|
|
8663
8663
|
const meta_of_currently_selected_sorting_ = $3hooq$solidjs.createMemo(() => {
|
|
8664
8664
|
var _available_sortings_, _available_sortings_$, _available_sortings_$2;
|
|
8665
|
-
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_,
|
|
8666
|
-
|
|
8667
|
-
|
|
8665
|
+
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_, _ref2 => {
|
|
8666
|
+
let {
|
|
8667
|
+
field: field,
|
|
8668
|
+
order: order
|
|
8669
|
+
} = _ref2;
|
|
8670
|
+
const current = get_current_sorting_();
|
|
8671
|
+
return (current === null || current === void 0 ? void 0 : current.field) === field && (current === null || current === void 0 ? void 0 : current.order) === order;
|
|
8668
8672
|
})) === null || _available_sortings_$2 === void 0 ? void 0 : _available_sortings_$2.meta;
|
|
8669
8673
|
});
|
|
8670
8674
|
const filter_options = {
|
|
@@ -8768,10 +8772,10 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
8768
8772
|
}));
|
|
8769
8773
|
const {
|
|
8770
8774
|
remove: remove
|
|
8771
|
-
} = $3hooq$depictaiutilishared.javascript_media_query("(max-width:651px)",
|
|
8775
|
+
} = $3hooq$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
8772
8776
|
let {
|
|
8773
8777
|
matches: matches
|
|
8774
|
-
} =
|
|
8778
|
+
} = _ref3;
|
|
8775
8779
|
return set_is_small(matches);
|
|
8776
8780
|
});
|
|
8777
8781
|
cleanup_promise.then(remove);
|
|
@@ -8802,7 +8806,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
8802
8806
|
}
|
|
8803
8807
|
});
|
|
8804
8808
|
}
|
|
8805
|
-
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(
|
|
8809
|
+
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref4) {
|
|
8806
8810
|
let {
|
|
8807
8811
|
i18n_: i18n_,
|
|
8808
8812
|
search_filters_open_: search_filters_open_,
|
|
@@ -8811,7 +8815,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
8811
8815
|
tabindex_: tabindex_,
|
|
8812
8816
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
8813
8817
|
hide_button_: hide_button_
|
|
8814
|
-
} =
|
|
8818
|
+
} = _ref4;
|
|
8815
8819
|
const filters_closed = $3hooq$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
8816
8820
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
8817
8821
|
return $3hooq$solidjsweb.ssr($f70cc6dfcadf0fd5$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle(hide_button_() ? {
|
|
@@ -8837,7 +8841,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
8837
8841
|
}
|
|
8838
8842
|
})), $3hooq$solidjsweb.escape(i18n_.filter_text_()));
|
|
8839
8843
|
}
|
|
8840
|
-
function $f70cc6dfcadf0fd5$var$OpenSortingButton(
|
|
8844
|
+
function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref5) {
|
|
8841
8845
|
var _meta_of_currently_se;
|
|
8842
8846
|
let {
|
|
8843
8847
|
i18n_: i18n_,
|
|
@@ -8848,7 +8852,7 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
8848
8852
|
sort_button_width_: sort_button_width_,
|
|
8849
8853
|
tabindex_: tabindex_,
|
|
8850
8854
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
8851
|
-
} =
|
|
8855
|
+
} = _ref5;
|
|
8852
8856
|
const sorting_closed = $3hooq$solidjs.createMemo(() => !search_sorting_open_[0]());
|
|
8853
8857
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
8854
8858
|
return $3hooq$solidjsweb.ssr($f70cc6dfcadf0fd5$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), "".concat(!sorting_closed() ? "major" : "", " ").concat(sorting_closed() ? "minor" : "", " toggle-button for-sorting major-minor-transition"), $3hooq$solidjsweb.ssrAttribute("tabindex", $3hooq$solidjsweb.escape(tabindex_, true), false) + $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape((sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(), true), false), $3hooq$solidjsweb.ssrStyle(sort_button_width_ !== null && sort_button_width_ !== void 0 && sort_button_width_() ? {
|
|
@@ -8865,8 +8869,8 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
8865
8869
|
return $3hooq$solidjsweb.createComponent((0, $ae261a5687fe84f4$export$cb808a3c41736d8e), {});
|
|
8866
8870
|
},
|
|
8867
8871
|
get children() {
|
|
8868
|
-
var
|
|
8869
|
-
return ((
|
|
8872
|
+
var _get_current_sorting_;
|
|
8873
|
+
return ((_get_current_sorting_ = get_current_sorting_()) === null || _get_current_sorting_ === void 0 ? void 0 : _get_current_sorting_.order) === "asc" ? $3hooq$solidjsweb.createComponent((0, $0b45ba458cbff67a$export$da32f7add8a22e86), {}) : $3hooq$solidjsweb.createComponent((0, $549632402b57d811$export$d10e63059ddb9fd4), {});
|
|
8870
8874
|
}
|
|
8871
8875
|
})));
|
|
8872
8876
|
}
|
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.0.
|
|
13
|
+
export const version = "4.0.27";
|
|
14
14
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
15
15
|
/**
|
|
16
16
|
* Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
|
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.0.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.27";
|
|
14
14
|
const $68e6625c8d51f847$export$3064e1e8c6513da3 = new Set();
|
|
15
15
|
let $68e6625c8d51f847$var$has_ran = false;
|
|
16
16
|
function $68e6625c8d51f847$export$5162a71f252e6122() {
|
|
@@ -8574,9 +8574,13 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
8574
8574
|
});
|
|
8575
8575
|
const meta_of_currently_selected_sorting_ = $b8hua$createMemo(() => {
|
|
8576
8576
|
var _available_sortings_, _available_sortings_$, _available_sortings_$2;
|
|
8577
|
-
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_,
|
|
8578
|
-
|
|
8579
|
-
|
|
8577
|
+
return (_available_sortings_ = available_sortings_()) === null || _available_sortings_ === void 0 ? void 0 : (_available_sortings_$ = _available_sortings_.find) === null || _available_sortings_$ === void 0 ? void 0 : (_available_sortings_$2 = _available_sortings_$.call(_available_sortings_, _ref2 => {
|
|
8578
|
+
let {
|
|
8579
|
+
field: field,
|
|
8580
|
+
order: order
|
|
8581
|
+
} = _ref2;
|
|
8582
|
+
const current = get_current_sorting_();
|
|
8583
|
+
return (current === null || current === void 0 ? void 0 : current.field) === field && (current === null || current === void 0 ? void 0 : current.order) === order;
|
|
8580
8584
|
})) === null || _available_sortings_$2 === void 0 ? void 0 : _available_sortings_$2.meta;
|
|
8581
8585
|
});
|
|
8582
8586
|
const filter_options = {
|
|
@@ -8680,10 +8684,10 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
8680
8684
|
}));
|
|
8681
8685
|
const {
|
|
8682
8686
|
remove: remove
|
|
8683
|
-
} = $b8hua$javascript_media_query("(max-width:651px)",
|
|
8687
|
+
} = $b8hua$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
8684
8688
|
let {
|
|
8685
8689
|
matches: matches
|
|
8686
|
-
} =
|
|
8690
|
+
} = _ref3;
|
|
8687
8691
|
return set_is_small(matches);
|
|
8688
8692
|
});
|
|
8689
8693
|
cleanup_promise.then(remove);
|
|
@@ -8714,7 +8718,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
8714
8718
|
}
|
|
8715
8719
|
});
|
|
8716
8720
|
}
|
|
8717
|
-
function $7396052a1484264f$var$OpenFiltersButton(
|
|
8721
|
+
function $7396052a1484264f$var$OpenFiltersButton(_ref4) {
|
|
8718
8722
|
let {
|
|
8719
8723
|
i18n_: i18n_,
|
|
8720
8724
|
search_filters_open_: search_filters_open_,
|
|
@@ -8723,7 +8727,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref3) {
|
|
|
8723
8727
|
tabindex_: tabindex_,
|
|
8724
8728
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
8725
8729
|
hide_button_: hide_button_
|
|
8726
|
-
} =
|
|
8730
|
+
} = _ref4;
|
|
8727
8731
|
const filters_closed = $b8hua$createMemo(() => !search_filters_open_[0]());
|
|
8728
8732
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
8729
8733
|
return $b8hua$ssr($7396052a1484264f$var$_tmpl$5, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle(hide_button_() ? {
|
|
@@ -8749,7 +8753,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref3) {
|
|
|
8749
8753
|
}
|
|
8750
8754
|
})), $b8hua$escape(i18n_.filter_text_()));
|
|
8751
8755
|
}
|
|
8752
|
-
function $7396052a1484264f$var$OpenSortingButton(
|
|
8756
|
+
function $7396052a1484264f$var$OpenSortingButton(_ref5) {
|
|
8753
8757
|
var _meta_of_currently_se;
|
|
8754
8758
|
let {
|
|
8755
8759
|
i18n_: i18n_,
|
|
@@ -8760,7 +8764,7 @@ function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
|
8760
8764
|
sort_button_width_: sort_button_width_,
|
|
8761
8765
|
tabindex_: tabindex_,
|
|
8762
8766
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
8763
|
-
} =
|
|
8767
|
+
} = _ref5;
|
|
8764
8768
|
const sorting_closed = $b8hua$createMemo(() => !search_sorting_open_[0]());
|
|
8765
8769
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
8766
8770
|
return $b8hua$ssr($7396052a1484264f$var$_tmpl$6, $b8hua$ssrHydrationKey(), "".concat(!sorting_closed() ? "major" : "", " ").concat(sorting_closed() ? "minor" : "", " toggle-button for-sorting major-minor-transition"), $b8hua$ssrAttribute("tabindex", $b8hua$escape(tabindex_, true), false) + $b8hua$ssrAttribute("aria-label", $b8hua$escape((sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(), true), false), $b8hua$ssrStyle(sort_button_width_ !== null && sort_button_width_ !== void 0 && sort_button_width_() ? {
|
|
@@ -8777,8 +8781,8 @@ function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
|
8777
8781
|
return $b8hua$createComponent((0, $bce10e104a1dd893$export$cb808a3c41736d8e), {});
|
|
8778
8782
|
},
|
|
8779
8783
|
get children() {
|
|
8780
|
-
var
|
|
8781
|
-
return ((
|
|
8784
|
+
var _get_current_sorting_;
|
|
8785
|
+
return ((_get_current_sorting_ = get_current_sorting_()) === null || _get_current_sorting_ === void 0 ? void 0 : _get_current_sorting_.order) === "asc" ? $b8hua$createComponent((0, $79af35736fe8e5c8$export$da32f7add8a22e86), {}) : $b8hua$createComponent((0, $73e3c96bc365e0e9$export$d10e63059ddb9fd4), {});
|
|
8782
8786
|
}
|
|
8783
8787
|
})));
|
|
8784
8788
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -92,7 +92,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
|
|
|
92
92
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
93
93
|
$parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
|
|
94
94
|
/*! Depict.ai search and product listing SDK */
|
|
95
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.
|
|
95
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.27";
|
|
96
96
|
const $d84fe647b84b5dc5$export$3064e1e8c6513da3 = new Set();
|
|
97
97
|
let $d84fe647b84b5dc5$var$has_ran = false;
|
|
98
98
|
function $d84fe647b84b5dc5$export$5162a71f252e6122() {
|
|
@@ -8132,7 +8132,13 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
8132
8132
|
set_filters_open(false);
|
|
8133
8133
|
set_sorting_open(false);
|
|
8134
8134
|
});
|
|
8135
|
-
const meta_of_currently_selected_sorting_ = $5vyXB$solidjs.createMemo(() => available_sortings_()?.find?.(
|
|
8135
|
+
const meta_of_currently_selected_sorting_ = $5vyXB$solidjs.createMemo(() => available_sortings_()?.find?.(({
|
|
8136
|
+
field: field,
|
|
8137
|
+
order: order
|
|
8138
|
+
}) => {
|
|
8139
|
+
const current = get_current_sorting_();
|
|
8140
|
+
return current?.field === field && current?.order === order;
|
|
8141
|
+
})?.meta);
|
|
8136
8142
|
const filter_options = {
|
|
8137
8143
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8138
8144
|
local_filter_cache_: local_filter_cache_,
|
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.0.
|
|
13
|
+
export const version = "4.0.27";
|
|
14
14
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
15
15
|
/**
|
|
16
16
|
* Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
|
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.0.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.27";
|
|
11
11
|
const $90980bd87c9960f9$export$3064e1e8c6513da3 = new Set();
|
|
12
12
|
let $90980bd87c9960f9$var$has_ran = false;
|
|
13
13
|
function $90980bd87c9960f9$export$5162a71f252e6122() {
|
|
@@ -8047,7 +8047,13 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
8047
8047
|
set_filters_open(false);
|
|
8048
8048
|
set_sorting_open(false);
|
|
8049
8049
|
});
|
|
8050
|
-
const meta_of_currently_selected_sorting_ = $i7OB2$createMemo(() => available_sortings_()?.find?.(
|
|
8050
|
+
const meta_of_currently_selected_sorting_ = $i7OB2$createMemo(() => available_sortings_()?.find?.(({
|
|
8051
|
+
field: field,
|
|
8052
|
+
order: order
|
|
8053
|
+
}) => {
|
|
8054
|
+
const current = get_current_sorting_();
|
|
8055
|
+
return current?.field === field && current?.order === order;
|
|
8056
|
+
})?.meta);
|
|
8051
8057
|
const filter_options = {
|
|
8052
8058
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8053
8059
|
local_filter_cache_: local_filter_cache_,
|