@depict-ai/ui 1.4.8 → 1.4.9
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 +29 -7
- package/ES10/index.d.ts +9 -1
- package/ES10/index.js +30 -8
- package/latest/index.cjs +18 -1
- package/latest/index.d.ts +9 -1
- package/latest/index.js +19 -2
- package/locales/require.cjs +1167 -0
- package/locales/require.js +1154 -0
- package/package.json +2 -2
- package/server/ES10/index.cjs +29 -7
- package/server/ES10/index.d.ts +9 -1
- package/server/ES10/index.js +30 -8
- package/server/latest/index.cjs +18 -1
- package/server/latest/index.d.ts +9 -1
- package/server/latest/index.js +19 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
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",
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
239
|
"@depict-ai/plp-styling": "^1.0.33",
|
|
240
240
|
"@depict-ai/types": "^1.0.34",
|
|
241
|
-
"@depict-ai/utilishared": "^1.0.
|
|
241
|
+
"@depict-ai/utilishared": "^1.0.31",
|
|
242
242
|
"solid-js": "^1.7.3"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -60,7 +60,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
60
60
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
61
61
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
62
62
|
/*! Depict.ai search and product listing SDK */
|
|
63
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.
|
|
63
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.9";
|
|
64
64
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
65
65
|
const {
|
|
66
66
|
collapse: collapse,
|
|
@@ -4846,6 +4846,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
4846
4846
|
depict_api_: depict_api_,
|
|
4847
4847
|
query_id_: query_id_,
|
|
4848
4848
|
listing_type_: listing_type_,
|
|
4849
|
+
meta_title_suffix_: meta_title_suffix_,
|
|
4849
4850
|
current_sorting_: current_sorting_,
|
|
4850
4851
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4851
4852
|
category_filters_open_: category_filters_open_,
|
|
@@ -4939,12 +4940,21 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
4939
4940
|
var _plp_results_4;
|
|
4940
4941
|
return (_plp_results_4 = plp_results_()) === null || _plp_results_4 === void 0 ? void 0 : _plp_results_4.quick_links;
|
|
4941
4942
|
});
|
|
4943
|
+
const meta_tag_data_ = (0, $3hooq$solidjs.createMemo)(() => {
|
|
4944
|
+
var _plp_results_5, _plp_results_5$metada, _plp_results_6, _plp_results_6$metada, _plp_results_7, _plp_results_7$metada;
|
|
4945
|
+
meta_title_suffix_();
|
|
4946
|
+
return (_plp_results_5 = plp_results_()) !== null && _plp_results_5 !== void 0 && (_plp_results_5$metada = _plp_results_5.metadata) !== null && _plp_results_5$metada !== void 0 && _plp_results_5$metada.replace_meta_tags ? {
|
|
4947
|
+
title: ((_plp_results_6 = plp_results_()) === null || _plp_results_6 === void 0 ? void 0 : (_plp_results_6$metada = _plp_results_6.metadata) === null || _plp_results_6$metada === void 0 ? void 0 : _plp_results_6$metada.title) + (meta_title_suffix_() || ""),
|
|
4948
|
+
description: (_plp_results_7 = plp_results_()) === null || _plp_results_7 === void 0 ? void 0 : (_plp_results_7$metada = _plp_results_7.metadata) === null || _plp_results_7$metada === void 0 ? void 0 : _plp_results_7$metada.description
|
|
4949
|
+
} : null;
|
|
4950
|
+
});
|
|
4951
|
+
(0, $3hooq$depictaiutilishared.edit_current_page_meta_tags)(meta_tag_data_);
|
|
4942
4952
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = (0, $3hooq$solidjs.createSignal)(false);
|
|
4943
4953
|
const [desktop_filter_elements_, set_desktop_filter_elements] = (0, $3hooq$solidjs.createSignal)();
|
|
4944
4954
|
const formatted_number_of_results_ = (0, $068bde7fa83ac02c$export$92f2da32c6e7e7ee)({
|
|
4945
4955
|
number_: (0, $3hooq$solidjs.createMemo)(() => {
|
|
4946
|
-
var
|
|
4947
|
-
return (
|
|
4956
|
+
var _plp_results_8;
|
|
4957
|
+
return (_plp_results_8 = plp_results_()) === null || _plp_results_8 === void 0 ? void 0 : _plp_results_8.n_hits;
|
|
4948
4958
|
}),
|
|
4949
4959
|
i18n_: i18n_
|
|
4950
4960
|
});
|
|
@@ -4968,8 +4978,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
4968
4978
|
}
|
|
4969
4979
|
})), (0, $3hooq$solidjsweb.escape)((0, $3hooq$solidjsweb.createComponent)((0, $3hooq$solidjs.Show), {
|
|
4970
4980
|
get when() {
|
|
4971
|
-
var
|
|
4972
|
-
return ((
|
|
4981
|
+
var _plp_results_9;
|
|
4982
|
+
return ((_plp_results_9 = plp_results_()) === null || _plp_results_9 === void 0 ? void 0 : _plp_results_9.n_hits) === 1;
|
|
4973
4983
|
},
|
|
4974
4984
|
get fallback() {
|
|
4975
4985
|
return i18n_.products_();
|
|
@@ -5151,8 +5161,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
5151
5161
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
5152
5162
|
i18n_: i18n_,
|
|
5153
5163
|
number_of_results_: (0, $3hooq$solidjs.createMemo)(() => {
|
|
5154
|
-
var
|
|
5155
|
-
return (
|
|
5164
|
+
var _plp_results_10;
|
|
5165
|
+
return (_plp_results_10 = plp_results_()) === null || _plp_results_10 === void 0 ? void 0 : _plp_results_10.n_hits;
|
|
5156
5166
|
})
|
|
5157
5167
|
});
|
|
5158
5168
|
}
|
|
@@ -5547,6 +5557,7 @@ var $9cbefc32b9dab36d$var$_locale_signal = /*#__PURE__*/new WeakMap();
|
|
|
5547
5557
|
var $9cbefc32b9dab36d$var$_merchant_signal = /*#__PURE__*/new WeakMap();
|
|
5548
5558
|
var $9cbefc32b9dab36d$var$_market_signal = /*#__PURE__*/new WeakMap();
|
|
5549
5559
|
var $9cbefc32b9dab36d$var$_query_id_signal = /*#__PURE__*/new WeakMap();
|
|
5560
|
+
var $9cbefc32b9dab36d$var$_meta_title_suffix_ = /*#__PURE__*/new WeakMap();
|
|
5550
5561
|
var $9cbefc32b9dab36d$var$_listing_type_signal = /*#__PURE__*/new WeakMap();
|
|
5551
5562
|
class $9cbefc32b9dab36d$export$f34314aa9505732e {
|
|
5552
5563
|
get localization() {
|
|
@@ -5580,6 +5591,12 @@ class $9cbefc32b9dab36d$export$f34314aa9505732e {
|
|
|
5580
5591
|
set listing_type(listing_type) {
|
|
5581
5592
|
(0, $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet))(this, $9cbefc32b9dab36d$var$_listing_type_signal)[1](listing_type);
|
|
5582
5593
|
}
|
|
5594
|
+
get meta_title_suffix() {
|
|
5595
|
+
return (0, $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet))(this, $9cbefc32b9dab36d$var$_meta_title_suffix_)[0]();
|
|
5596
|
+
}
|
|
5597
|
+
set meta_title_suffix(new_suffix) {
|
|
5598
|
+
(0, $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet))(this, $9cbefc32b9dab36d$var$_meta_title_suffix_)[1](new_suffix);
|
|
5599
|
+
}
|
|
5583
5600
|
get on_navigation() {
|
|
5584
5601
|
// The only non-reactive public property on the class (I don't see it making sense to have it reactive)
|
|
5585
5602
|
return (0, $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet))(this, $9cbefc32b9dab36d$var$_router).on_navigation_;
|
|
@@ -5617,6 +5634,10 @@ class $9cbefc32b9dab36d$export$f34314aa9505732e {
|
|
|
5617
5634
|
writable: true,
|
|
5618
5635
|
value: (0, $3hooq$solidjs.createSignal)("")
|
|
5619
5636
|
});
|
|
5637
|
+
$9cbefc32b9dab36d$var$_classPrivateFieldInitSpec(this, $9cbefc32b9dab36d$var$_meta_title_suffix_, {
|
|
5638
|
+
writable: true,
|
|
5639
|
+
value: (0, $3hooq$solidjs.createSignal)()
|
|
5640
|
+
});
|
|
5620
5641
|
$9cbefc32b9dab36d$var$_classPrivateFieldInitSpec(this, $9cbefc32b9dab36d$var$_listing_type_signal, {
|
|
5621
5642
|
writable: true,
|
|
5622
5643
|
value: (0, $3hooq$solidjs.createSignal)()
|
|
@@ -5736,6 +5757,7 @@ function $9cbefc32b9dab36d$export$e2bf8ce7779e827e(props) {
|
|
|
5736
5757
|
depict_api_: depict_api_,
|
|
5737
5758
|
min_products_to_fetch_: $9cbefc32b9dab36d$var$min_products_to_fetch_,
|
|
5738
5759
|
local_filter_cache_: local_filter_cache_,
|
|
5760
|
+
meta_title_suffix_: () => depict_category.meta_title_suffix,
|
|
5739
5761
|
query_id_: () => depict_category.category_id,
|
|
5740
5762
|
listing_type_: () => depict_category.listing_type,
|
|
5741
5763
|
i18n_: i18n_,
|
package/server/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 = "1.4.
|
|
10
|
+
export const version = "1.4.9";
|
|
11
11
|
export function ExpandingDetails(props: {
|
|
12
12
|
details_: HTMLDetailsElement;
|
|
13
13
|
summary_: HTMLElement;
|
|
@@ -548,6 +548,8 @@ export class DepictCategory<InputDisplay extends Display, OutputDisplay extends
|
|
|
548
548
|
set market(market: string);
|
|
549
549
|
get listing_type(): ListingType | undefined;
|
|
550
550
|
set listing_type(listing_type: ListingType | undefined);
|
|
551
|
+
get meta_title_suffix(): string | undefined;
|
|
552
|
+
set meta_title_suffix(new_suffix: string | undefined);
|
|
551
553
|
get on_navigation(): OnNavigation;
|
|
552
554
|
set on_navigation(new_function: OnNavigation);
|
|
553
555
|
constructor({
|
|
@@ -815,6 +817,12 @@ export type BaseSearchProviderConfig = {
|
|
|
815
817
|
*/
|
|
816
818
|
enableContentSearch?: boolean;
|
|
817
819
|
};
|
|
820
|
+
export type BaseCategoryProviderConfig = {
|
|
821
|
+
/**
|
|
822
|
+
* Currently used for SEO long tail only. Example: {generatedTitle} + {metaTitleSuffix}
|
|
823
|
+
*/
|
|
824
|
+
metaTitleSuffix?: string;
|
|
825
|
+
};
|
|
818
826
|
export interface BaseProductListingConfig {
|
|
819
827
|
/**
|
|
820
828
|
* How many columns to show at each media size.
|
package/server/ES10/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add_to_version_info as $b8hua$add_to_version_info, observer as $b8hua$observer, catchify as $b8hua$catchify, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, make_random_classname as $b8hua$make_random_classname, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, report as $b8hua$report, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
1
|
+
import { add_to_version_info as $b8hua$add_to_version_info, observer as $b8hua$observer, catchify as $b8hua$catchify, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, make_random_classname as $b8hua$make_random_classname, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, report as $b8hua$report, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
2
2
|
import { insert as $b8hua$insert, createComponent as $b8hua$createComponent, ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, ssrAttribute as $b8hua$ssrAttribute, ssrElement as $b8hua$ssrElement, Dynamic as $b8hua$Dynamic, ssrStyle as $b8hua$ssrStyle, ssrClassList as $b8hua$ssrClassList, isServer as $b8hua$isServer, mergeProps as $b8hua$mergeProps } from "solid-js/web";
|
|
3
3
|
import { createSignal as $b8hua$createSignal, createMemo as $b8hua$createMemo, untrack as $b8hua$untrack, createEffect as $b8hua$createEffect, getOwner as $b8hua$getOwner, Show as $b8hua$Show, Index as $b8hua$Index, onCleanup as $b8hua$onCleanup, For as $b8hua$For, createRenderEffect as $b8hua$createRenderEffect, createComputed as $b8hua$createComputed, on as $b8hua$on, batch as $b8hua$batch, ErrorBoundary as $b8hua$ErrorBoundary, createRoot as $b8hua$createRoot, runWithOwner as $b8hua$runWithOwner, createResource as $b8hua$createResource, createReaction as $b8hua$createReaction, Suspense as $b8hua$Suspense } from "solid-js";
|
|
4
4
|
import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
@@ -8,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
|
|
|
8
8
|
/*! Depict.ai search and product listing SDK */
|
|
9
9
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
10
10
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.
|
|
11
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.9";
|
|
12
12
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
13
13
|
const {
|
|
14
14
|
collapse: collapse,
|
|
@@ -4794,6 +4794,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
4794
4794
|
depict_api_: depict_api_,
|
|
4795
4795
|
query_id_: query_id_,
|
|
4796
4796
|
listing_type_: listing_type_,
|
|
4797
|
+
meta_title_suffix_: meta_title_suffix_,
|
|
4797
4798
|
current_sorting_: current_sorting_,
|
|
4798
4799
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4799
4800
|
category_filters_open_: category_filters_open_,
|
|
@@ -4887,12 +4888,21 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
4887
4888
|
var _plp_results_4;
|
|
4888
4889
|
return (_plp_results_4 = plp_results_()) === null || _plp_results_4 === void 0 ? void 0 : _plp_results_4.quick_links;
|
|
4889
4890
|
});
|
|
4891
|
+
const meta_tag_data_ = (0, $b8hua$createMemo)(() => {
|
|
4892
|
+
var _plp_results_5, _plp_results_5$metada, _plp_results_6, _plp_results_6$metada, _plp_results_7, _plp_results_7$metada;
|
|
4893
|
+
meta_title_suffix_();
|
|
4894
|
+
return (_plp_results_5 = plp_results_()) !== null && _plp_results_5 !== void 0 && (_plp_results_5$metada = _plp_results_5.metadata) !== null && _plp_results_5$metada !== void 0 && _plp_results_5$metada.replace_meta_tags ? {
|
|
4895
|
+
title: ((_plp_results_6 = plp_results_()) === null || _plp_results_6 === void 0 ? void 0 : (_plp_results_6$metada = _plp_results_6.metadata) === null || _plp_results_6$metada === void 0 ? void 0 : _plp_results_6$metada.title) + (meta_title_suffix_() || ""),
|
|
4896
|
+
description: (_plp_results_7 = plp_results_()) === null || _plp_results_7 === void 0 ? void 0 : (_plp_results_7$metada = _plp_results_7.metadata) === null || _plp_results_7$metada === void 0 ? void 0 : _plp_results_7$metada.description
|
|
4897
|
+
} : null;
|
|
4898
|
+
});
|
|
4899
|
+
(0, $b8hua$edit_current_page_meta_tags)(meta_tag_data_);
|
|
4890
4900
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = (0, $b8hua$createSignal)(false);
|
|
4891
4901
|
const [desktop_filter_elements_, set_desktop_filter_elements] = (0, $b8hua$createSignal)();
|
|
4892
4902
|
const formatted_number_of_results_ = (0, $43fbdca0f726a34b$export$92f2da32c6e7e7ee)({
|
|
4893
4903
|
number_: (0, $b8hua$createMemo)(() => {
|
|
4894
|
-
var
|
|
4895
|
-
return (
|
|
4904
|
+
var _plp_results_8;
|
|
4905
|
+
return (_plp_results_8 = plp_results_()) === null || _plp_results_8 === void 0 ? void 0 : _plp_results_8.n_hits;
|
|
4896
4906
|
}),
|
|
4897
4907
|
i18n_: i18n_
|
|
4898
4908
|
});
|
|
@@ -4916,8 +4926,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
4916
4926
|
}
|
|
4917
4927
|
})), (0, $b8hua$escape)((0, $b8hua$createComponent)((0, $b8hua$Show), {
|
|
4918
4928
|
get when() {
|
|
4919
|
-
var
|
|
4920
|
-
return ((
|
|
4929
|
+
var _plp_results_9;
|
|
4930
|
+
return ((_plp_results_9 = plp_results_()) === null || _plp_results_9 === void 0 ? void 0 : _plp_results_9.n_hits) === 1;
|
|
4921
4931
|
},
|
|
4922
4932
|
get fallback() {
|
|
4923
4933
|
return i18n_.products_();
|
|
@@ -5099,8 +5109,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
5099
5109
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
5100
5110
|
i18n_: i18n_,
|
|
5101
5111
|
number_of_results_: (0, $b8hua$createMemo)(() => {
|
|
5102
|
-
var
|
|
5103
|
-
return (
|
|
5112
|
+
var _plp_results_10;
|
|
5113
|
+
return (_plp_results_10 = plp_results_()) === null || _plp_results_10 === void 0 ? void 0 : _plp_results_10.n_hits;
|
|
5104
5114
|
})
|
|
5105
5115
|
});
|
|
5106
5116
|
}
|
|
@@ -5495,6 +5505,7 @@ var $f5f54892fd0c7d9f$var$_locale_signal = /*#__PURE__*/new WeakMap();
|
|
|
5495
5505
|
var $f5f54892fd0c7d9f$var$_merchant_signal = /*#__PURE__*/new WeakMap();
|
|
5496
5506
|
var $f5f54892fd0c7d9f$var$_market_signal = /*#__PURE__*/new WeakMap();
|
|
5497
5507
|
var $f5f54892fd0c7d9f$var$_query_id_signal = /*#__PURE__*/new WeakMap();
|
|
5508
|
+
var $f5f54892fd0c7d9f$var$_meta_title_suffix_ = /*#__PURE__*/new WeakMap();
|
|
5498
5509
|
var $f5f54892fd0c7d9f$var$_listing_type_signal = /*#__PURE__*/new WeakMap();
|
|
5499
5510
|
class $f5f54892fd0c7d9f$export$f34314aa9505732e {
|
|
5500
5511
|
get localization() {
|
|
@@ -5528,6 +5539,12 @@ class $f5f54892fd0c7d9f$export$f34314aa9505732e {
|
|
|
5528
5539
|
set listing_type(listing_type) {
|
|
5529
5540
|
(0, $b8hua$babelruntimehelpersclassPrivateFieldGet)(this, $f5f54892fd0c7d9f$var$_listing_type_signal)[1](listing_type);
|
|
5530
5541
|
}
|
|
5542
|
+
get meta_title_suffix() {
|
|
5543
|
+
return (0, $b8hua$babelruntimehelpersclassPrivateFieldGet)(this, $f5f54892fd0c7d9f$var$_meta_title_suffix_)[0]();
|
|
5544
|
+
}
|
|
5545
|
+
set meta_title_suffix(new_suffix) {
|
|
5546
|
+
(0, $b8hua$babelruntimehelpersclassPrivateFieldGet)(this, $f5f54892fd0c7d9f$var$_meta_title_suffix_)[1](new_suffix);
|
|
5547
|
+
}
|
|
5531
5548
|
get on_navigation() {
|
|
5532
5549
|
// The only non-reactive public property on the class (I don't see it making sense to have it reactive)
|
|
5533
5550
|
return (0, $b8hua$babelruntimehelpersclassPrivateFieldGet)(this, $f5f54892fd0c7d9f$var$_router).on_navigation_;
|
|
@@ -5565,6 +5582,10 @@ class $f5f54892fd0c7d9f$export$f34314aa9505732e {
|
|
|
5565
5582
|
writable: true,
|
|
5566
5583
|
value: (0, $b8hua$createSignal)("")
|
|
5567
5584
|
});
|
|
5585
|
+
$f5f54892fd0c7d9f$var$_classPrivateFieldInitSpec(this, $f5f54892fd0c7d9f$var$_meta_title_suffix_, {
|
|
5586
|
+
writable: true,
|
|
5587
|
+
value: (0, $b8hua$createSignal)()
|
|
5588
|
+
});
|
|
5568
5589
|
$f5f54892fd0c7d9f$var$_classPrivateFieldInitSpec(this, $f5f54892fd0c7d9f$var$_listing_type_signal, {
|
|
5569
5590
|
writable: true,
|
|
5570
5591
|
value: (0, $b8hua$createSignal)()
|
|
@@ -5684,6 +5705,7 @@ function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
|
5684
5705
|
depict_api_: depict_api_,
|
|
5685
5706
|
min_products_to_fetch_: $f5f54892fd0c7d9f$var$min_products_to_fetch_,
|
|
5686
5707
|
local_filter_cache_: local_filter_cache_,
|
|
5708
|
+
meta_title_suffix_: () => depict_category.meta_title_suffix,
|
|
5687
5709
|
query_id_: () => depict_category.category_id,
|
|
5688
5710
|
listing_type_: () => depict_category.listing_type,
|
|
5689
5711
|
i18n_: i18n_,
|
package/server/latest/index.cjs
CHANGED
|
@@ -54,7 +54,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
54
54
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
55
55
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
56
56
|
/*! Depict.ai search and product listing SDK */
|
|
57
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.
|
|
57
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.9";
|
|
58
58
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
59
59
|
const {
|
|
60
60
|
collapse: collapse,
|
|
@@ -4482,6 +4482,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
4482
4482
|
depict_api_: depict_api_,
|
|
4483
4483
|
query_id_: query_id_,
|
|
4484
4484
|
listing_type_: listing_type_,
|
|
4485
|
+
meta_title_suffix_: meta_title_suffix_,
|
|
4485
4486
|
current_sorting_: current_sorting_,
|
|
4486
4487
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4487
4488
|
category_filters_open_: category_filters_open_,
|
|
@@ -4560,6 +4561,14 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
4560
4561
|
const available_filters_ = (0, $5vyXB$solidjs.createMemo)(() => plp_results_()?.filters);
|
|
4561
4562
|
const crumb_data_ = (0, $5vyXB$solidjs.createMemo)(() => plp_results_()?.breadcrumb);
|
|
4562
4563
|
const quicklinks_data_ = (0, $5vyXB$solidjs.createMemo)(() => plp_results_()?.quick_links);
|
|
4564
|
+
const meta_tag_data_ = (0, $5vyXB$solidjs.createMemo)(() => {
|
|
4565
|
+
meta_title_suffix_();
|
|
4566
|
+
return plp_results_()?.metadata?.replace_meta_tags ? {
|
|
4567
|
+
title: plp_results_()?.metadata?.title + (meta_title_suffix_() || ""),
|
|
4568
|
+
description: plp_results_()?.metadata?.description
|
|
4569
|
+
} : null;
|
|
4570
|
+
});
|
|
4571
|
+
(0, $5vyXB$depictaiutilishared.edit_current_page_meta_tags)(meta_tag_data_);
|
|
4563
4572
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = (0, $5vyXB$solidjs.createSignal)(false);
|
|
4564
4573
|
const [desktop_filter_elements_, set_desktop_filter_elements] = (0, $5vyXB$solidjs.createSignal)();
|
|
4565
4574
|
const formatted_number_of_results_ = (0, $0f400c3f7248d5f1$export$92f2da32c6e7e7ee)({
|
|
@@ -5096,6 +5105,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
5096
5105
|
#merchant_signal = (0, $5vyXB$solidjs.createSignal)();
|
|
5097
5106
|
#market_signal = (0, $5vyXB$solidjs.createSignal)();
|
|
5098
5107
|
#query_id_signal = (0, $5vyXB$solidjs.createSignal)("");
|
|
5108
|
+
#meta_title_suffix_ = (0, $5vyXB$solidjs.createSignal)();
|
|
5099
5109
|
#listing_type_signal = (0, $5vyXB$solidjs.createSignal)();
|
|
5100
5110
|
static #keys_constructed_with = new Set();
|
|
5101
5111
|
get localization() {
|
|
@@ -5129,6 +5139,12 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
5129
5139
|
set listing_type(listing_type) {
|
|
5130
5140
|
this.#listing_type_signal[1](listing_type);
|
|
5131
5141
|
}
|
|
5142
|
+
get meta_title_suffix() {
|
|
5143
|
+
return this.#meta_title_suffix_[0]();
|
|
5144
|
+
}
|
|
5145
|
+
set meta_title_suffix(new_suffix) {
|
|
5146
|
+
this.#meta_title_suffix_[1](new_suffix);
|
|
5147
|
+
}
|
|
5132
5148
|
get on_navigation() {
|
|
5133
5149
|
// The only non-reactive public property on the class (I don't see it making sense to have it reactive)
|
|
5134
5150
|
return this.#router.on_navigation_;
|
|
@@ -5256,6 +5272,7 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
|
|
|
5256
5272
|
depict_api_: depict_api_,
|
|
5257
5273
|
min_products_to_fetch_: $48567ac5b39bac56$var$min_products_to_fetch_,
|
|
5258
5274
|
local_filter_cache_: local_filter_cache_,
|
|
5275
|
+
meta_title_suffix_: () => depict_category.meta_title_suffix,
|
|
5259
5276
|
query_id_: () => depict_category.category_id,
|
|
5260
5277
|
listing_type_: () => depict_category.listing_type,
|
|
5261
5278
|
i18n_: i18n_,
|
package/server/latest/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 = "1.4.
|
|
10
|
+
export const version = "1.4.9";
|
|
11
11
|
export function ExpandingDetails(props: {
|
|
12
12
|
details_: HTMLDetailsElement;
|
|
13
13
|
summary_: HTMLElement;
|
|
@@ -548,6 +548,8 @@ export class DepictCategory<InputDisplay extends Display, OutputDisplay extends
|
|
|
548
548
|
set market(market: string);
|
|
549
549
|
get listing_type(): ListingType | undefined;
|
|
550
550
|
set listing_type(listing_type: ListingType | undefined);
|
|
551
|
+
get meta_title_suffix(): string | undefined;
|
|
552
|
+
set meta_title_suffix(new_suffix: string | undefined);
|
|
551
553
|
get on_navigation(): OnNavigation;
|
|
552
554
|
set on_navigation(new_function: OnNavigation);
|
|
553
555
|
constructor({
|
|
@@ -815,6 +817,12 @@ export type BaseSearchProviderConfig = {
|
|
|
815
817
|
*/
|
|
816
818
|
enableContentSearch?: boolean;
|
|
817
819
|
};
|
|
820
|
+
export type BaseCategoryProviderConfig = {
|
|
821
|
+
/**
|
|
822
|
+
* Currently used for SEO long tail only. Example: {generatedTitle} + {metaTitleSuffix}
|
|
823
|
+
*/
|
|
824
|
+
metaTitleSuffix?: string;
|
|
825
|
+
};
|
|
818
826
|
export interface BaseProductListingConfig {
|
|
819
827
|
/**
|
|
820
828
|
* How many columns to show at each media size.
|
package/server/latest/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { add_to_version_info as $i7OB2$add_to_version_info, observer as $i7OB2$observer, catchify as $i7OB2$catchify, useExpandingContainer as $i7OB2$useExpandingContainer, standard_price_format as $i7OB2$standard_price_format, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, slider_fading_factory as $i7OB2$slider_fading_factory, make_random_classname as $i7OB2$make_random_classname, dlog as $i7OB2$dlog, hex_to_rgb as $i7OB2$hex_to_rgb, report as $i7OB2$report, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, javascript_media_query as $i7OB2$javascript_media_query, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, fetch_recs as $i7OB2$fetch_recs, snakeCasifyObject as $i7OB2$snakeCasifyObject, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, base_url as $i7OB2$base_url, get_depict_id as $i7OB2$get_depict_id, get_user_id as $i7OB2$get_user_id, get_session_id as $i7OB2$get_session_id, sort_obj as $i7OB2$sort_obj, fetch_retry as $i7OB2$fetch_retry, add_version_query_params as $i7OB2$add_version_query_params, dwarn as $i7OB2$dwarn, make_url_with_query_params as $i7OB2$make_url_with_query_params, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, queueMacroTask as $i7OB2$queueMacroTask, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, ContainedImage as $i7OB2$ContainedImage, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
|
|
1
|
+
import { add_to_version_info as $i7OB2$add_to_version_info, observer as $i7OB2$observer, catchify as $i7OB2$catchify, useExpandingContainer as $i7OB2$useExpandingContainer, standard_price_format as $i7OB2$standard_price_format, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, slider_fading_factory as $i7OB2$slider_fading_factory, make_random_classname as $i7OB2$make_random_classname, dlog as $i7OB2$dlog, hex_to_rgb as $i7OB2$hex_to_rgb, report as $i7OB2$report, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, javascript_media_query as $i7OB2$javascript_media_query, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, fetch_recs as $i7OB2$fetch_recs, snakeCasifyObject as $i7OB2$snakeCasifyObject, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, base_url as $i7OB2$base_url, get_depict_id as $i7OB2$get_depict_id, get_user_id as $i7OB2$get_user_id, get_session_id as $i7OB2$get_session_id, sort_obj as $i7OB2$sort_obj, fetch_retry as $i7OB2$fetch_retry, add_version_query_params as $i7OB2$add_version_query_params, dwarn as $i7OB2$dwarn, make_url_with_query_params as $i7OB2$make_url_with_query_params, edit_current_page_meta_tags as $i7OB2$edit_current_page_meta_tags, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, queueMacroTask as $i7OB2$queueMacroTask, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, ContainedImage as $i7OB2$ContainedImage, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
|
|
2
2
|
import { insert as $i7OB2$insert, createComponent as $i7OB2$createComponent, ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, ssrAttribute as $i7OB2$ssrAttribute, ssrElement as $i7OB2$ssrElement, Dynamic as $i7OB2$Dynamic, ssrStyle as $i7OB2$ssrStyle, ssrClassList as $i7OB2$ssrClassList, isServer as $i7OB2$isServer, mergeProps as $i7OB2$mergeProps } from "solid-js/web";
|
|
3
3
|
import { createSignal as $i7OB2$createSignal, createMemo as $i7OB2$createMemo, untrack as $i7OB2$untrack, createEffect as $i7OB2$createEffect, getOwner as $i7OB2$getOwner, Show as $i7OB2$Show, Index as $i7OB2$Index, onCleanup as $i7OB2$onCleanup, For as $i7OB2$For, createRenderEffect as $i7OB2$createRenderEffect, createComputed as $i7OB2$createComputed, on as $i7OB2$on, batch as $i7OB2$batch, ErrorBoundary as $i7OB2$ErrorBoundary, createRoot as $i7OB2$createRoot, runWithOwner as $i7OB2$runWithOwner, createResource as $i7OB2$createResource, createReaction as $i7OB2$createReaction, Suspense as $i7OB2$Suspense } from "solid-js";
|
|
4
4
|
|
|
5
5
|
/*! Depict.ai search and product listing SDK */
|
|
6
6
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("ui", "latest");
|
|
8
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.
|
|
8
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.9";
|
|
9
9
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
10
10
|
const {
|
|
11
11
|
collapse: collapse,
|
|
@@ -4433,6 +4433,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
4433
4433
|
depict_api_: depict_api_,
|
|
4434
4434
|
query_id_: query_id_,
|
|
4435
4435
|
listing_type_: listing_type_,
|
|
4436
|
+
meta_title_suffix_: meta_title_suffix_,
|
|
4436
4437
|
current_sorting_: current_sorting_,
|
|
4437
4438
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4438
4439
|
category_filters_open_: category_filters_open_,
|
|
@@ -4511,6 +4512,14 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
4511
4512
|
const available_filters_ = (0, $i7OB2$createMemo)(() => plp_results_()?.filters);
|
|
4512
4513
|
const crumb_data_ = (0, $i7OB2$createMemo)(() => plp_results_()?.breadcrumb);
|
|
4513
4514
|
const quicklinks_data_ = (0, $i7OB2$createMemo)(() => plp_results_()?.quick_links);
|
|
4515
|
+
const meta_tag_data_ = (0, $i7OB2$createMemo)(() => {
|
|
4516
|
+
meta_title_suffix_();
|
|
4517
|
+
return plp_results_()?.metadata?.replace_meta_tags ? {
|
|
4518
|
+
title: plp_results_()?.metadata?.title + (meta_title_suffix_() || ""),
|
|
4519
|
+
description: plp_results_()?.metadata?.description
|
|
4520
|
+
} : null;
|
|
4521
|
+
});
|
|
4522
|
+
(0, $i7OB2$edit_current_page_meta_tags)(meta_tag_data_);
|
|
4514
4523
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = (0, $i7OB2$createSignal)(false);
|
|
4515
4524
|
const [desktop_filter_elements_, set_desktop_filter_elements] = (0, $i7OB2$createSignal)();
|
|
4516
4525
|
const formatted_number_of_results_ = (0, $511cc0abd9a64ce8$export$92f2da32c6e7e7ee)({
|
|
@@ -5047,6 +5056,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5047
5056
|
#merchant_signal = (0, $i7OB2$createSignal)();
|
|
5048
5057
|
#market_signal = (0, $i7OB2$createSignal)();
|
|
5049
5058
|
#query_id_signal = (0, $i7OB2$createSignal)("");
|
|
5059
|
+
#meta_title_suffix_ = (0, $i7OB2$createSignal)();
|
|
5050
5060
|
#listing_type_signal = (0, $i7OB2$createSignal)();
|
|
5051
5061
|
static #keys_constructed_with = new Set();
|
|
5052
5062
|
get localization() {
|
|
@@ -5080,6 +5090,12 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5080
5090
|
set listing_type(listing_type) {
|
|
5081
5091
|
this.#listing_type_signal[1](listing_type);
|
|
5082
5092
|
}
|
|
5093
|
+
get meta_title_suffix() {
|
|
5094
|
+
return this.#meta_title_suffix_[0]();
|
|
5095
|
+
}
|
|
5096
|
+
set meta_title_suffix(new_suffix) {
|
|
5097
|
+
this.#meta_title_suffix_[1](new_suffix);
|
|
5098
|
+
}
|
|
5083
5099
|
get on_navigation() {
|
|
5084
5100
|
// The only non-reactive public property on the class (I don't see it making sense to have it reactive)
|
|
5085
5101
|
return this.#router.on_navigation_;
|
|
@@ -5207,6 +5223,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
|
|
|
5207
5223
|
depict_api_: depict_api_,
|
|
5208
5224
|
min_products_to_fetch_: $961b5c64bef4662f$var$min_products_to_fetch_,
|
|
5209
5225
|
local_filter_cache_: local_filter_cache_,
|
|
5226
|
+
meta_title_suffix_: () => depict_category.meta_title_suffix,
|
|
5210
5227
|
query_id_: () => depict_category.category_id,
|
|
5211
5228
|
listing_type_: () => depict_category.listing_type,
|
|
5212
5229
|
i18n_: i18n_,
|