@depict-ai/ui 4.7.34 → 4.7.35

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
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de03
114
114
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
115
115
  $parcel$export(module.exports, "makeSizeAccessors", () => $054b1113e4897051$export$54c6d6ff54e72743);
116
116
  /*! Depict.ai search and product listing SDK */
117
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.34";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.35";
118
118
  const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$52FdA$solidjs.createContext();
119
119
  function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
120
120
  const our_object = {};
@@ -284,7 +284,7 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
284
284
  img.addEventListener("load", $52FdA$depictaiutilishared.catchify(() => {
285
285
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
286
286
  if (srcJustChanged)
287
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
287
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
288
288
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
289
289
  srcJustChanged = false;
290
290
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -16037,9 +16037,12 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
16037
16037
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
16038
16038
  });
16039
16039
  const contentBlocksByRow = $52FdA$solidjs.createMemo(() => {
16040
- if (content_blocks_by_row_()) return content_blocks_by_row_();
16040
+ const developerProvided = content_blocks_by_row_();
16041
+ const fromHistory = historyContentBlocks();
16042
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
16043
+ if (developerProvided || !fromHistory.length) return developerProvided;
16041
16044
  const content = [];
16042
- historyContentBlocks().forEach(row => {
16045
+ fromHistory.forEach(row => {
16043
16046
  const contentBlock = {
16044
16047
  span_columns: row.span_columns,
16045
16048
  span_rows: row.span_rows,
package/ES10/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.34";
14
+ export const version = "4.7.35";
15
15
  /**
16
16
  * Provider to wrap every listing (group of products) in
17
17
  * Used for example for deduplicating ResizeObservers for responsive images
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.7.34";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.35";
14
14
  const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$8tj43$createContext();
15
15
  function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
16
16
  const our_object = {};
@@ -180,7 +180,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
180
180
  img.addEventListener("load", $8tj43$catchify(() => {
181
181
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
182
182
  if (srcJustChanged)
183
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
183
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
184
184
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
185
185
  srcJustChanged = false;
186
186
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -15933,9 +15933,12 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
15933
15933
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
15934
15934
  });
15935
15935
  const contentBlocksByRow = $8tj43$createMemo(() => {
15936
- if (content_blocks_by_row_()) return content_blocks_by_row_();
15936
+ const developerProvided = content_blocks_by_row_();
15937
+ const fromHistory = historyContentBlocks();
15938
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
15939
+ if (developerProvided || !fromHistory.length) return developerProvided;
15937
15940
  const content = [];
15938
- historyContentBlocks().forEach(row => {
15941
+ fromHistory.forEach(row => {
15939
15942
  const contentBlock = {
15940
15943
  span_columns: row.span_columns,
15941
15944
  span_rows: row.span_rows,
package/latest/index.cjs CHANGED
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de03
108
108
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
109
109
  $parcel$export(module.exports, "makeSizeAccessors", () => $128302ab61dab8f1$export$54c6d6ff54e72743);
110
110
  /*! Depict.ai search and product listing SDK */
111
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.34";
111
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.35";
112
112
  const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
113
113
  function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
114
114
  const our_object = {};
@@ -276,7 +276,7 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
276
276
  img.addEventListener("load", $gVhhF$depictaiutilishared.catchify(() => {
277
277
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
278
278
  if (srcJustChanged)
279
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
279
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
280
280
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
281
281
  srcJustChanged = false;
282
282
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -14987,9 +14987,12 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
14987
14987
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
14988
14988
  });
14989
14989
  const contentBlocksByRow = $gVhhF$solidjs.createMemo(() => {
14990
- if (content_blocks_by_row_()) return content_blocks_by_row_();
14990
+ const developerProvided = content_blocks_by_row_();
14991
+ const fromHistory = historyContentBlocks();
14992
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
14993
+ if (developerProvided || !fromHistory.length) return developerProvided;
14991
14994
  const content = [];
14992
- historyContentBlocks().forEach(row => {
14995
+ fromHistory.forEach(row => {
14993
14996
  const contentBlock = {
14994
14997
  span_columns: row.span_columns,
14995
14998
  span_rows: row.span_rows,
package/latest/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.34";
14
+ export const version = "4.7.35";
15
15
  /**
16
16
  * Provider to wrap every listing (group of products) in
17
17
  * Used for example for deduplicating ResizeObservers for responsive images
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify1, ListenableSet as $9H
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.7.34";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.35";
11
11
  const $011607bdf658f807$var$ListingContext = /*@__PURE__*/$9HbP8$createContext();
12
12
  function $011607bdf658f807$export$e68cff63f76bd15b(props) {
13
13
  const our_object = {};
@@ -175,7 +175,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
175
175
  img.addEventListener("load", $9HbP8$catchify(() => {
176
176
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
177
177
  if (srcJustChanged)
178
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
178
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
179
179
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
180
180
  srcJustChanged = false;
181
181
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -14886,9 +14886,12 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
14886
14886
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
14887
14887
  });
14888
14888
  const contentBlocksByRow = $9HbP8$createMemo(() => {
14889
- if (content_blocks_by_row_()) return content_blocks_by_row_();
14889
+ const developerProvided = content_blocks_by_row_();
14890
+ const fromHistory = historyContentBlocks();
14891
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
14892
+ if (developerProvided || !fromHistory.length) return developerProvided;
14890
14893
  const content = [];
14891
- historyContentBlocks().forEach(row => {
14894
+ fromHistory.forEach(row => {
14892
14895
  const contentBlock = {
14893
14896
  span_columns: row.span_columns,
14894
14897
  span_rows: row.span_rows,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.7.34",
3
+ "version": "4.7.35",
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,7 +236,7 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "latest",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^4.4.8",
239
+ "@depict-ai/plp-styling": "^4.4.9",
240
240
  "@depict-ai/types": "^5.4.2",
241
241
  "@depict-ai/utilishared": "^2.4.4",
242
242
  "solid-js": "^1.8.12"
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de03
114
114
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
115
115
  $parcel$export(module.exports, "makeSizeAccessors", () => $054b1113e4897051$export$54c6d6ff54e72743);
116
116
  /*! Depict.ai search and product listing SDK */
117
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.34";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.35";
118
118
  const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$3hooq$solidjs.createContext();
119
119
  function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
120
120
  const our_object = {};
@@ -270,7 +270,7 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
270
270
  img.addEventListener("load", $3hooq$depictaiutilishared.catchify(() => {
271
271
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
272
272
  if (srcJustChanged)
273
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
273
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
274
274
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
275
275
  srcJustChanged = false;
276
276
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -13384,9 +13384,12 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
13384
13384
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
13385
13385
  });
13386
13386
  const contentBlocksByRow = $3hooq$solidjs.createMemo(() => {
13387
- if (content_blocks_by_row_()) return content_blocks_by_row_();
13387
+ const developerProvided = content_blocks_by_row_();
13388
+ const fromHistory = historyContentBlocks();
13389
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
13390
+ if (developerProvided || !fromHistory.length) return developerProvided;
13388
13391
  const content = [];
13389
- historyContentBlocks().forEach(row => {
13392
+ fromHistory.forEach(row => {
13390
13393
  const contentBlock = {
13391
13394
  span_columns: row.span_columns,
13392
13395
  span_rows: row.span_rows,
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.34";
14
+ export const version = "4.7.35";
15
15
  /**
16
16
  * Provider to wrap every listing (group of products) in
17
17
  * Used for example for deduplicating ResizeObservers for responsive images
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.7.34";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.35";
14
14
  const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$b8hua$createContext();
15
15
  function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
16
16
  const our_object = {};
@@ -166,7 +166,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
166
166
  img.addEventListener("load", $b8hua$catchify(() => {
167
167
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
168
168
  if (srcJustChanged)
169
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
169
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
170
170
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
171
171
  srcJustChanged = false;
172
172
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -13280,9 +13280,12 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
13280
13280
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
13281
13281
  });
13282
13282
  const contentBlocksByRow = $b8hua$createMemo(() => {
13283
- if (content_blocks_by_row_()) return content_blocks_by_row_();
13283
+ const developerProvided = content_blocks_by_row_();
13284
+ const fromHistory = historyContentBlocks();
13285
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
13286
+ if (developerProvided || !fromHistory.length) return developerProvided;
13284
13287
  const content = [];
13285
- historyContentBlocks().forEach(row => {
13288
+ fromHistory.forEach(row => {
13286
13289
  const contentBlock = {
13287
13290
  span_columns: row.span_columns,
13288
13291
  span_rows: row.span_rows,
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de03
108
108
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
109
109
  $parcel$export(module.exports, "makeSizeAccessors", () => $128302ab61dab8f1$export$54c6d6ff54e72743);
110
110
  /*! Depict.ai search and product listing SDK */
111
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.34";
111
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.35";
112
112
  const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$5vyXB$solidjs.createContext();
113
113
  function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
114
114
  const our_object = {};
@@ -262,7 +262,7 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
262
262
  img.addEventListener("load", $5vyXB$depictaiutilishared.catchify(() => {
263
263
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
264
264
  if (srcJustChanged)
265
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
265
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
266
266
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
267
267
  srcJustChanged = false;
268
268
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -12410,9 +12410,12 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
12410
12410
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
12411
12411
  });
12412
12412
  const contentBlocksByRow = $5vyXB$solidjs.createMemo(() => {
12413
- if (content_blocks_by_row_()) return content_blocks_by_row_();
12413
+ const developerProvided = content_blocks_by_row_();
12414
+ const fromHistory = historyContentBlocks();
12415
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
12416
+ if (developerProvided || !fromHistory.length) return developerProvided;
12414
12417
  const content = [];
12415
- historyContentBlocks().forEach(row => {
12418
+ fromHistory.forEach(row => {
12416
12419
  const contentBlock = {
12417
12420
  span_columns: row.span_columns,
12418
12421
  span_rows: row.span_rows,
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.34";
14
+ export const version = "4.7.35";
15
15
  /**
16
16
  * Provider to wrap every listing (group of products) in
17
17
  * Used for example for deduplicating ResizeObservers for responsive images
@@ -7,7 +7,7 @@ import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify1, ListenableSet as $i7
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.7.34";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.35";
11
11
  const $011607bdf658f807$var$ListingContext = /*@__PURE__*/$i7OB2$createContext();
12
12
  function $011607bdf658f807$export$e68cff63f76bd15b(props) {
13
13
  const our_object = {};
@@ -161,7 +161,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
161
161
  img.addEventListener("load", $i7OB2$catchify(() => {
162
162
  const aspectRatio_ = img.naturalWidth / img.naturalHeight;
163
163
  if (srcJustChanged)
164
- // Always key object-fit-cover compensation to avoid loading-different-images-infinite-loop
164
+ // Always key object-fit-cover compensation to one src, to avoid loading-different-images-infinite-loop
165
165
  setOurRatioKeyed(aspectRatio_);else if (props.keyRatioUpdating) return;
166
166
  srcJustChanged = false;
167
167
  // Save our aspect ratio whenever it changes, so that we can base the containers on the most dominant aspect ratio, used in SearchModalV2 and LookItem
@@ -12309,9 +12309,12 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
12309
12309
  if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
12310
12310
  });
12311
12311
  const contentBlocksByRow = $i7OB2$createMemo(() => {
12312
- if (content_blocks_by_row_()) return content_blocks_by_row_();
12312
+ const developerProvided = content_blocks_by_row_();
12313
+ const fromHistory = historyContentBlocks();
12314
+ // If none come from backend/History, fall back to developer provided/what usually is undefined. layout="slider" and layout="slider-without-filters" is only supported if content blocks is undefined, so if we don't do that those layouts are broken.
12315
+ if (developerProvided || !fromHistory.length) return developerProvided;
12313
12316
  const content = [];
12314
- historyContentBlocks().forEach(row => {
12317
+ fromHistory.forEach(row => {
12315
12318
  const contentBlock = {
12316
12319
  span_columns: row.span_columns,
12317
12320
  span_rows: row.span_rows,