@depict-ai/ui 4.3.9 → 4.3.11

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 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.3.9";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1393,6 +1393,10 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1393
1393
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
1394
1394
  });
1395
1395
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1396
+ const title = $52FdA$solidjs.createMemo(() => {
1397
+ var _variantToUse5;
1398
+ return (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title;
1399
+ });
1396
1400
  return (() => {
1397
1401
  var _el$ = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$4),
1398
1402
  _el$12 = _el$.firstChild,
@@ -1503,9 +1507,12 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1503
1507
  disconnector();
1504
1508
  }));
1505
1509
  }, _el$3);
1510
+ $52FdA$solidjsweb.spread(_el$5, $52FdA$solidjsweb.mergeProps(() => title() && {
1511
+ title: title()
1512
+ }), false, true);
1506
1513
  $52FdA$solidjsweb.insert(_el$5, () => {
1507
- var _variantToUse$title, _variantToUse5;
1508
- return (_variantToUse$title = (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title) !== null && _variantToUse$title !== void 0 ? _variantToUse$title : $52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1514
+ var _title;
1515
+ return (_title = title()) !== null && _title !== void 0 ? _title : $52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1509
1516
  height: "1em",
1510
1517
  width: "20ch"
1511
1518
  });
@@ -1584,6 +1591,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1584
1591
  }
1585
1592
  }), _el$11, _co$2);
1586
1593
  $52FdA$solidjsweb.effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
1594
+ $52FdA$solidjsweb.runHydrationEvents();
1587
1595
  return _el$3;
1588
1596
  }
1589
1597
  }), _el$15, _co$4);
@@ -2089,6 +2097,9 @@ function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
2089
2097
  const {
2090
2098
  listings: listings
2091
2099
  } = decoded;
2100
+ if (!listings)
2101
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
2102
+ return [];
2092
2103
  const baseData = {
2093
2104
  merchant: merchant,
2094
2105
  market: market,
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.3.9";
13
+ export const version = "4.3.11";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -873,7 +873,7 @@ export function LooksSliderOrGrid(props: {
873
873
  locale_: string;
874
874
  imagePlaceholderAspectRatio_: number | string;
875
875
  title_?: JSX.Element;
876
- class_: string;
876
+ class_?: string;
877
877
  FavoriteButton_?: (props: {
878
878
  display_: Accessor<ModernDisplay | null | undefined>;
879
879
  }) => JSX.Element;
@@ -1398,7 +1398,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1398
1398
  * Open the modal with support for alignment.
1399
1399
  * @returns {void}
1400
1400
  */
1401
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1401
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1402
1402
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1403
1403
  export interface PageReplacer {
1404
1404
  readonly render_: () => Node_Array;
@@ -1476,5 +1476,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1476
1476
  content_blocks_by_row?: ContentBlocksByRow;
1477
1477
  layout?: PossibleLayout;
1478
1478
  filterModalParent_?: HTMLElement | ShadowRoot;
1479
- }): import("@depict-ai/utilishared/latest").Node_Array;
1479
+ }): import("@depict-ai/utilishared").Node_Array;
1480
1480
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
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.3.9";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1303,6 +1303,10 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1303
1303
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
1304
1304
  });
1305
1305
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1306
+ const title = $8tj43$createMemo(() => {
1307
+ var _variantToUse5;
1308
+ return (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title;
1309
+ });
1306
1310
  return (() => {
1307
1311
  var _el$ = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$4),
1308
1312
  _el$12 = _el$.firstChild,
@@ -1413,9 +1417,12 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1413
1417
  disconnector();
1414
1418
  }));
1415
1419
  }, _el$3);
1420
+ $8tj43$spread(_el$5, $8tj43$mergeProps(() => title() && {
1421
+ title: title()
1422
+ }), false, true);
1416
1423
  $8tj43$insert(_el$5, () => {
1417
- var _variantToUse$title, _variantToUse5;
1418
- return (_variantToUse$title = (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title) !== null && _variantToUse$title !== void 0 ? _variantToUse$title : $8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
1424
+ var _title;
1425
+ return (_title = title()) !== null && _title !== void 0 ? _title : $8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
1419
1426
  height: "1em",
1420
1427
  width: "20ch"
1421
1428
  });
@@ -1494,6 +1501,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1494
1501
  }
1495
1502
  }), _el$11, _co$2);
1496
1503
  $8tj43$effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
1504
+ $8tj43$runHydrationEvents();
1497
1505
  return _el$3;
1498
1506
  }
1499
1507
  }), _el$15, _co$4);
@@ -1999,6 +2007,9 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
1999
2007
  const {
2000
2008
  listings: listings
2001
2009
  } = decoded;
2010
+ if (!listings)
2011
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
2012
+ return [];
2002
2013
  const baseData = {
2003
2014
  merchant: merchant,
2004
2015
  market: market,
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.3.9";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1315,6 +1315,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1315
1315
  const enableLink = $gVhhF$solidjs.createMemo(() => userWantsExpanded() && !animationIsRunning());
1316
1316
  const href = $gVhhF$solidjs.createMemo(() => variantToUse()?.page_url);
1317
1317
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1318
+ const title = $gVhhF$solidjs.createMemo(() => variantToUse()?.title);
1318
1319
  return (() => {
1319
1320
  var _el$ = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$4),
1320
1321
  _el$12 = _el$.firstChild,
@@ -1424,7 +1425,10 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1424
1425
  disconnector();
1425
1426
  }));
1426
1427
  }, _el$3);
1427
- $gVhhF$solidjsweb.insert(_el$5, () => variantToUse()?.title ?? $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
1428
+ $gVhhF$solidjsweb.spread(_el$5, $gVhhF$solidjsweb.mergeProps(() => title() && {
1429
+ title: title()
1430
+ }), false, true);
1431
+ $gVhhF$solidjsweb.insert(_el$5, () => title() ?? $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
1428
1432
  height: "1em",
1429
1433
  width: "20ch"
1430
1434
  }));
@@ -1502,6 +1506,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1502
1506
  }
1503
1507
  }), _el$11, _co$2);
1504
1508
  $gVhhF$solidjsweb.effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
1509
+ $gVhhF$solidjsweb.runHydrationEvents();
1505
1510
  return _el$3;
1506
1511
  }
1507
1512
  }), _el$15, _co$4);
@@ -1984,6 +1989,9 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
1984
1989
  const {
1985
1990
  listings: listings
1986
1991
  } = decoded;
1992
+ if (!listings)
1993
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
1994
+ return [];
1987
1995
  const baseData = {
1988
1996
  merchant: merchant,
1989
1997
  market: market,
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.3.9";
13
+ export const version = "4.3.11";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -873,7 +873,7 @@ export function LooksSliderOrGrid(props: {
873
873
  locale_: string;
874
874
  imagePlaceholderAspectRatio_: number | string;
875
875
  title_?: JSX.Element;
876
- class_: string;
876
+ class_?: string;
877
877
  FavoriteButton_?: (props: {
878
878
  display_: Accessor<ModernDisplay | null | undefined>;
879
879
  }) => JSX.Element;
@@ -1398,7 +1398,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1398
1398
  * Open the modal with support for alignment.
1399
1399
  * @returns {void}
1400
1400
  */
1401
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1401
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1402
1402
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1403
1403
  export interface PageReplacer {
1404
1404
  readonly render_: () => Node_Array;
@@ -1476,5 +1476,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1476
1476
  content_blocks_by_row?: ContentBlocksByRow;
1477
1477
  layout?: PossibleLayout;
1478
1478
  filterModalParent_?: HTMLElement | ShadowRoot;
1479
- }): import("@depict-ai/utilishared/latest").Node_Array;
1479
+ }): import("@depict-ai/utilishared").Node_Array;
1480
1480
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
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.3.9";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1228,6 +1228,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1228
1228
  const enableLink = $9HbP8$createMemo(() => userWantsExpanded() && !animationIsRunning());
1229
1229
  const href = $9HbP8$createMemo(() => variantToUse()?.page_url);
1230
1230
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1231
+ const title = $9HbP8$createMemo(() => variantToUse()?.title);
1231
1232
  return (() => {
1232
1233
  var _el$ = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$4),
1233
1234
  _el$12 = _el$.firstChild,
@@ -1337,7 +1338,10 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1337
1338
  disconnector();
1338
1339
  }));
1339
1340
  }, _el$3);
1340
- $9HbP8$insert(_el$5, () => variantToUse()?.title ?? $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
1341
+ $9HbP8$spread(_el$5, $9HbP8$mergeProps(() => title() && {
1342
+ title: title()
1343
+ }), false, true);
1344
+ $9HbP8$insert(_el$5, () => title() ?? $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
1341
1345
  height: "1em",
1342
1346
  width: "20ch"
1343
1347
  }));
@@ -1415,6 +1419,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1415
1419
  }
1416
1420
  }), _el$11, _co$2);
1417
1421
  $9HbP8$effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
1422
+ $9HbP8$runHydrationEvents();
1418
1423
  return _el$3;
1419
1424
  }
1420
1425
  }), _el$15, _co$4);
@@ -1897,6 +1902,9 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
1897
1902
  const {
1898
1903
  listings: listings
1899
1904
  } = decoded;
1905
+ if (!listings)
1906
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
1907
+ return [];
1900
1908
  const baseData = {
1901
1909
  merchant: merchant,
1902
1910
  market: market,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.3.9",
3
+ "version": "4.3.11",
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",
@@ -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.3.9";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1242,7 +1242,7 @@ function $f38f2e64ebe2da86$export$a71e92cfbb498adc(props) {
1242
1242
  }
1243
1243
  var $d66c35b5a6d6d926$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1244
1244
  $d66c35b5a6d6d926$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1245
- $d66c35b5a6d6d926$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1245
+ $d66c35b5a6d6d926$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container">', '<span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1246
1246
  function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1247
1247
  let {
1248
1248
  display_: display_,
@@ -1280,6 +1280,10 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1280
1280
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
1281
1281
  });
1282
1282
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1283
+ const title = $3hooq$solidjs.createMemo(() => {
1284
+ var _variantToUse5;
1285
+ return (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title;
1286
+ });
1283
1287
  return $3hooq$solidjsweb.ssrElement("a", $3hooq$solidjsweb.mergeProps({
1284
1288
  "class": "look-item"
1285
1289
  }, () => enableLink() ? {
@@ -1324,11 +1328,17 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1324
1328
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1325
1329
  },
1326
1330
  get children() {
1327
- var _$escape2, _variantToUse5;
1328
- return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), (_$escape2 = $3hooq$solidjsweb.escape((_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title)) !== null && _$escape2 !== void 0 ? _$escape2 : $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1329
- height: "1em",
1330
- width: "20ch"
1331
- })), "d-price ".concat(isOnSale() ? "sale" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1331
+ return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrElement("span", $3hooq$solidjsweb.mergeProps({
1332
+ "class": "d-title line-clamp"
1333
+ }, () => title() && {
1334
+ title: title()
1335
+ }), () => {
1336
+ var _$escape2;
1337
+ return (_$escape2 = $3hooq$solidjsweb.escape(title())) !== null && _$escape2 !== void 0 ? _$escape2 : $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1338
+ height: "1em",
1339
+ width: "20ch"
1340
+ }));
1341
+ }, false), "d-price ".concat(isOnSale() ? "sale" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1332
1342
  get when() {
1333
1343
  return variantToUse() && !salePrice.loading;
1334
1344
  },
@@ -1844,6 +1854,9 @@ function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
1844
1854
  const {
1845
1855
  listings: listings
1846
1856
  } = decoded;
1857
+ if (!listings)
1858
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
1859
+ return [];
1847
1860
  const baseData = {
1848
1861
  merchant: merchant,
1849
1862
  market: market,
@@ -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.3.9";
13
+ export const version = "4.3.11";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -873,7 +873,7 @@ export function LooksSliderOrGrid(props: {
873
873
  locale_: string;
874
874
  imagePlaceholderAspectRatio_: number | string;
875
875
  title_?: JSX.Element;
876
- class_: string;
876
+ class_?: string;
877
877
  FavoriteButton_?: (props: {
878
878
  display_: Accessor<ModernDisplay | null | undefined>;
879
879
  }) => JSX.Element;
@@ -1398,7 +1398,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1398
1398
  * Open the modal with support for alignment.
1399
1399
  * @returns {void}
1400
1400
  */
1401
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1401
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1402
1402
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1403
1403
  export interface PageReplacer {
1404
1404
  readonly render_: () => Node_Array;
@@ -1476,5 +1476,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1476
1476
  content_blocks_by_row?: ContentBlocksByRow;
1477
1477
  layout?: PossibleLayout;
1478
1478
  filterModalParent_?: HTMLElement | ShadowRoot;
1479
- }): import("@depict-ai/utilishared/latest").Node_Array;
1479
+ }): import("@depict-ai/utilishared").Node_Array;
1480
1480
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -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.3.9";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1152,7 +1152,7 @@ function $60ec7a29849d81db$export$a71e92cfbb498adc(props) {
1152
1152
  }
1153
1153
  var $0c5b1686f971e5e7$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1154
1154
  $0c5b1686f971e5e7$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1155
- $0c5b1686f971e5e7$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1155
+ $0c5b1686f971e5e7$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container">', '<span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1156
1156
  function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1157
1157
  let {
1158
1158
  display_: display_,
@@ -1190,6 +1190,10 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1190
1190
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
1191
1191
  });
1192
1192
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1193
+ const title = $b8hua$createMemo(() => {
1194
+ var _variantToUse5;
1195
+ return (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title;
1196
+ });
1193
1197
  return $b8hua$ssrElement("a", $b8hua$mergeProps({
1194
1198
  "class": "look-item"
1195
1199
  }, () => enableLink() ? {
@@ -1234,11 +1238,17 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1234
1238
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1235
1239
  },
1236
1240
  get children() {
1237
- var _$escape2, _variantToUse5;
1238
- return $b8hua$ssr($0c5b1686f971e5e7$var$_tmpl$3, $b8hua$ssrHydrationKey(), (_$escape2 = $b8hua$escape((_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title)) !== null && _$escape2 !== void 0 ? _$escape2 : $b8hua$escape($b8hua$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
1239
- height: "1em",
1240
- width: "20ch"
1241
- })), "d-price ".concat(isOnSale() ? "sale" : ""), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1241
+ return $b8hua$ssr($0c5b1686f971e5e7$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrElement("span", $b8hua$mergeProps({
1242
+ "class": "d-title line-clamp"
1243
+ }, () => title() && {
1244
+ title: title()
1245
+ }), () => {
1246
+ var _$escape2;
1247
+ return (_$escape2 = $b8hua$escape(title())) !== null && _$escape2 !== void 0 ? _$escape2 : $b8hua$escape($b8hua$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
1248
+ height: "1em",
1249
+ width: "20ch"
1250
+ }));
1251
+ }, false), "d-price ".concat(isOnSale() ? "sale" : ""), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1242
1252
  get when() {
1243
1253
  return variantToUse() && !salePrice.loading;
1244
1254
  },
@@ -1754,6 +1764,9 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
1754
1764
  const {
1755
1765
  listings: listings
1756
1766
  } = decoded;
1767
+ if (!listings)
1768
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
1769
+ return [];
1757
1770
  const baseData = {
1758
1771
  merchant: merchant,
1759
1772
  market: market,
@@ -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.3.9";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1188,7 +1188,7 @@ function $d659702496cb72ea$export$a71e92cfbb498adc(props) {
1188
1188
  }
1189
1189
  var $1ae437d7d388a66e$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1190
1190
  $1ae437d7d388a66e$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1191
- $1ae437d7d388a66e$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1191
+ $1ae437d7d388a66e$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container">', '<span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1192
1192
  function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1193
1193
  display_: display_,
1194
1194
  FavoriteButton_: FavoriteButton_,
@@ -1213,6 +1213,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1213
1213
  const enableLink = $5vyXB$solidjs.createMemo(() => userWantsExpanded() && !animationIsRunning());
1214
1214
  const href = $5vyXB$solidjs.createMemo(() => variantToUse()?.page_url);
1215
1215
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1216
+ const title = $5vyXB$solidjs.createMemo(() => variantToUse()?.title);
1216
1217
  return $5vyXB$solidjsweb.ssrElement("a", $5vyXB$solidjsweb.mergeProps({
1217
1218
  "class": "look-item"
1218
1219
  }, () => enableLink() ? {
@@ -1257,10 +1258,14 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1257
1258
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1258
1259
  },
1259
1260
  get children() {
1260
- return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(variantToUse()?.title) ?? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
1261
+ return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrElement("span", $5vyXB$solidjsweb.mergeProps({
1262
+ "class": "d-title line-clamp"
1263
+ }, () => title() && {
1264
+ title: title()
1265
+ }), () => $5vyXB$solidjsweb.escape(title()) ?? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
1261
1266
  height: "1em",
1262
1267
  width: "20ch"
1263
- })), `d-price ${isOnSale() ? "sale" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
1268
+ })), false), `d-price ${isOnSale() ? "sale" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
1264
1269
  get when() {
1265
1270
  return variantToUse() && !salePrice.loading;
1266
1271
  },
@@ -1754,6 +1759,9 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
1754
1759
  const {
1755
1760
  listings: listings
1756
1761
  } = decoded;
1762
+ if (!listings)
1763
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
1764
+ return [];
1757
1765
  const baseData = {
1758
1766
  merchant: merchant,
1759
1767
  market: market,
@@ -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.3.9";
13
+ export const version = "4.3.11";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -873,7 +873,7 @@ export function LooksSliderOrGrid(props: {
873
873
  locale_: string;
874
874
  imagePlaceholderAspectRatio_: number | string;
875
875
  title_?: JSX.Element;
876
- class_: string;
876
+ class_?: string;
877
877
  FavoriteButton_?: (props: {
878
878
  display_: Accessor<ModernDisplay | null | undefined>;
879
879
  }) => JSX.Element;
@@ -1398,7 +1398,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1398
1398
  * Open the modal with support for alignment.
1399
1399
  * @returns {void}
1400
1400
  */
1401
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1401
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1402
1402
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1403
1403
  export interface PageReplacer {
1404
1404
  readonly render_: () => Node_Array;
@@ -1476,5 +1476,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1476
1476
  content_blocks_by_row?: ContentBlocksByRow;
1477
1477
  layout?: PossibleLayout;
1478
1478
  filterModalParent_?: HTMLElement | ShadowRoot;
1479
- }): import("@depict-ai/utilishared/latest").Node_Array;
1479
+ }): import("@depict-ai/utilishared").Node_Array;
1480
1480
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -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.3.9";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.11";
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++) {
@@ -1101,7 +1101,7 @@ function $8c0f86cb3e266eeb$export$a71e92cfbb498adc(props) {
1101
1101
  }
1102
1102
  var $5a6c386e1bde5665$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1103
1103
  $5a6c386e1bde5665$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1104
- $5a6c386e1bde5665$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1104
+ $5a6c386e1bde5665$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container">', '<span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1105
1105
  function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1106
1106
  display_: display_,
1107
1107
  FavoriteButton_: FavoriteButton_,
@@ -1126,6 +1126,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1126
1126
  const enableLink = $i7OB2$createMemo(() => userWantsExpanded() && !animationIsRunning());
1127
1127
  const href = $i7OB2$createMemo(() => variantToUse()?.page_url);
1128
1128
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1129
+ const title = $i7OB2$createMemo(() => variantToUse()?.title);
1129
1130
  return $i7OB2$ssrElement("a", $i7OB2$mergeProps({
1130
1131
  "class": "look-item"
1131
1132
  }, () => enableLink() ? {
@@ -1170,10 +1171,14 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1170
1171
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1171
1172
  },
1172
1173
  get children() {
1173
- return $i7OB2$ssr($5a6c386e1bde5665$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape(variantToUse()?.title) ?? $i7OB2$escape($i7OB2$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
1174
+ return $i7OB2$ssr($5a6c386e1bde5665$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("span", $i7OB2$mergeProps({
1175
+ "class": "d-title line-clamp"
1176
+ }, () => title() && {
1177
+ title: title()
1178
+ }), () => $i7OB2$escape(title()) ?? $i7OB2$escape($i7OB2$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
1174
1179
  height: "1em",
1175
1180
  width: "20ch"
1176
- })), `d-price ${isOnSale() ? "sale" : ""}`, $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
1181
+ })), false), `d-price ${isOnSale() ? "sale" : ""}`, $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
1177
1182
  get when() {
1178
1183
  return variantToUse() && !salePrice.loading;
1179
1184
  },
@@ -1667,6 +1672,9 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
1667
1672
  const {
1668
1673
  listings: listings
1669
1674
  } = decoded;
1675
+ if (!listings)
1676
+ // Sometimes backend returns a JSON containing an error instead, bail in that case
1677
+ return [];
1670
1678
  const baseData = {
1671
1679
  merchant: merchant,
1672
1680
  market: market,