@depict-ai/ui 4.10.17 → 4.10.19

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
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.17";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.19";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $52FdA$solidjs.createSignal(false);
121
121
  $52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -8252,7 +8252,9 @@ async function $8e8c89c02c16dc7b$export$5d2f6cd705125cd3() {
8252
8252
  $8e8c89c02c16dc7b$var$cachedHlsModule = hlsModule;
8253
8253
  return hlsModule;
8254
8254
  }
8255
- var $c19709057a32b2e7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<video class=d-standard-content>`);
8255
+ var $c19709057a32b2e7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<video class=d-standard-content>`),
8256
+ $c19709057a32b2e7$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=d-standard-content-text-group><span class=d-standard-content-text></span><span class=d-standard-content-cta>`),
8257
+ $c19709057a32b2e7$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=d-standard-content-text>`);
8256
8258
  function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8257
8259
  let {
8258
8260
  link_: link_,
@@ -8261,7 +8263,10 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8261
8263
  setAspectRatioWas_: setAspectRatioWas_,
8262
8264
  mediaUrl_: mediaUrl_,
8263
8265
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
8264
- imageResizer_: imageResizer_
8266
+ imageResizer_: imageResizer_,
8267
+ text_: text_,
8268
+ textPosition_: textPosition_,
8269
+ cta_: cta_
8265
8270
  } = _ref;
8266
8271
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
8267
8272
  const [wrapperSize, setWrapperSize] = $52FdA$solidjs.createSignal();
@@ -8365,10 +8370,47 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8365
8370
  }
8366
8371
  })];
8367
8372
  }
8373
+ }), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
8374
+ when: text_,
8375
+ get children() {
8376
+ return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
8377
+ when: cta_,
8378
+ get fallback() {
8379
+ return (() => {
8380
+ var _el$5 = $52FdA$solidjsweb.getNextElement($c19709057a32b2e7$var$_tmpl$3);
8381
+ $52FdA$solidjsweb.setAttribute(_el$5, "data-position", textPosition_ || "bottom-center");
8382
+ $52FdA$solidjsweb.insert(_el$5, text_);
8383
+ return _el$5;
8384
+ })();
8385
+ },
8386
+ get children() {
8387
+ var _el$2 = $52FdA$solidjsweb.getNextElement($c19709057a32b2e7$var$_tmpl$2),
8388
+ _el$3 = _el$2.firstChild,
8389
+ _el$4 = _el$3.nextSibling;
8390
+ $52FdA$solidjsweb.setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
8391
+ $52FdA$solidjsweb.setAttribute(_el$3, "data-position", textPosition_ || "bottom-center");
8392
+ $52FdA$solidjsweb.insert(_el$3, text_);
8393
+ $52FdA$solidjsweb.setAttribute(_el$4, "data-position", textPosition_ || "bottom-center");
8394
+ $52FdA$solidjsweb.insert(_el$4, cta_);
8395
+ return _el$2;
8396
+ }
8397
+ });
8398
+ }
8368
8399
  })];
8369
8400
  }
8370
8401
  }));
8371
8402
  }
8403
+ const $0c035bbe7e30b438$export$af2c67164f68e9e9 = content => {
8404
+ const {
8405
+ link: link,
8406
+ type: type,
8407
+ url: url,
8408
+ text: text,
8409
+ text_position: text_position,
8410
+ cta: cta
8411
+ } = content;
8412
+ return JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null, cta !== null && cta !== void 0 ? cta : null]);
8413
+ };
8372
8414
  function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
8373
8415
  let hasSeenContentBlock = false;
8374
8416
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -8404,13 +8446,15 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
8404
8446
  content: {
8405
8447
  link: link,
8406
8448
  type: type,
8407
- url: url
8449
+ url: url,
8450
+ text: text,
8451
+ text_position: text_position,
8452
+ cta: cta
8408
8453
  }
8409
8454
  } = row;
8410
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
8411
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
8412
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
8413
- const componentCacheKey = JSON.stringify([link, type, url]);
8455
+ const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content);
8456
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
8457
+ const mediaCacheKey = JSON.stringify([link, type, url]);
8414
8458
  let component = contentComponents.get(componentCacheKey);
8415
8459
  if (!component) {
8416
8460
  component = () => $52FdA$solidjsweb.createComponent((0, $c19709057a32b2e7$export$780a853d15174484), {
@@ -8418,15 +8462,18 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
8418
8462
  type_: type,
8419
8463
  mediaUrl_: url,
8420
8464
  router_: router_,
8421
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
8465
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
8422
8466
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
8423
8467
  ...prev,
8424
8468
  aspectRatios: {
8425
8469
  ...prev.aspectRatios,
8426
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
8470
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
8427
8471
  }
8428
8472
  })),
8429
- imageResizer_: imageResizer_
8473
+ imageResizer_: imageResizer_,
8474
+ text_: text,
8475
+ textPosition_: text_position,
8476
+ cta_: cta
8430
8477
  });
8431
8478
  contentComponents.set(componentCacheKey, component);
8432
8479
  }
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.10.17";
14
+ export const version = "4.10.19";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
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.10.17";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.19";
14
14
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
15
15
  const signal = $8tj43$createSignal(false);
16
16
  $8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
@@ -8147,7 +8147,9 @@ async function $e92c154db502596d$export$5d2f6cd705125cd3() {
8147
8147
  $e92c154db502596d$var$cachedHlsModule = hlsModule;
8148
8148
  return hlsModule;
8149
8149
  }
8150
- var $3b772ef9a35560fe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<video class=d-standard-content>`);
8150
+ var $3b772ef9a35560fe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<video class=d-standard-content>`),
8151
+ $3b772ef9a35560fe$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=d-standard-content-text-group><span class=d-standard-content-text></span><span class=d-standard-content-cta>`),
8152
+ $3b772ef9a35560fe$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<span class=d-standard-content-text>`);
8151
8153
  function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8152
8154
  let {
8153
8155
  link_: link_,
@@ -8156,7 +8158,10 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8156
8158
  setAspectRatioWas_: setAspectRatioWas_,
8157
8159
  mediaUrl_: mediaUrl_,
8158
8160
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
8159
- imageResizer_: imageResizer_
8161
+ imageResizer_: imageResizer_,
8162
+ text_: text_,
8163
+ textPosition_: textPosition_,
8164
+ cta_: cta_
8160
8165
  } = _ref;
8161
8166
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
8162
8167
  const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
@@ -8260,10 +8265,47 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8260
8265
  }
8261
8266
  })];
8262
8267
  }
8268
+ }), $8tj43$createComponent((0, $8tj43$Show), {
8269
+ when: text_,
8270
+ get children() {
8271
+ return $8tj43$createComponent((0, $8tj43$Show), {
8272
+ when: cta_,
8273
+ get fallback() {
8274
+ return (() => {
8275
+ var _el$5 = $8tj43$getNextElement($3b772ef9a35560fe$var$_tmpl$3);
8276
+ $8tj43$setAttribute(_el$5, "data-position", textPosition_ || "bottom-center");
8277
+ $8tj43$insert(_el$5, text_);
8278
+ return _el$5;
8279
+ })();
8280
+ },
8281
+ get children() {
8282
+ var _el$2 = $8tj43$getNextElement($3b772ef9a35560fe$var$_tmpl$2),
8283
+ _el$3 = _el$2.firstChild,
8284
+ _el$4 = _el$3.nextSibling;
8285
+ $8tj43$setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
8286
+ $8tj43$setAttribute(_el$3, "data-position", textPosition_ || "bottom-center");
8287
+ $8tj43$insert(_el$3, text_);
8288
+ $8tj43$setAttribute(_el$4, "data-position", textPosition_ || "bottom-center");
8289
+ $8tj43$insert(_el$4, cta_);
8290
+ return _el$2;
8291
+ }
8292
+ });
8293
+ }
8263
8294
  })];
8264
8295
  }
8265
8296
  }));
8266
8297
  }
8298
+ const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = content => {
8299
+ const {
8300
+ link: link,
8301
+ type: type,
8302
+ url: url,
8303
+ text: text,
8304
+ text_position: text_position,
8305
+ cta: cta
8306
+ } = content;
8307
+ return JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null, cta !== null && cta !== void 0 ? cta : null]);
8308
+ };
8267
8309
  function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
8268
8310
  let hasSeenContentBlock = false;
8269
8311
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -8299,13 +8341,15 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
8299
8341
  content: {
8300
8342
  link: link,
8301
8343
  type: type,
8302
- url: url
8344
+ url: url,
8345
+ text: text,
8346
+ text_position: text_position,
8347
+ cta: cta
8303
8348
  }
8304
8349
  } = row;
8305
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
8306
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
8307
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
8308
- const componentCacheKey = JSON.stringify([link, type, url]);
8350
+ const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content);
8351
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
8352
+ const mediaCacheKey = JSON.stringify([link, type, url]);
8309
8353
  let component = contentComponents.get(componentCacheKey);
8310
8354
  if (!component) {
8311
8355
  component = () => $8tj43$createComponent((0, $3b772ef9a35560fe$export$780a853d15174484), {
@@ -8313,15 +8357,18 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
8313
8357
  type_: type,
8314
8358
  mediaUrl_: url,
8315
8359
  router_: router_,
8316
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
8360
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
8317
8361
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
8318
8362
  ...prev,
8319
8363
  aspectRatios: {
8320
8364
  ...prev.aspectRatios,
8321
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
8365
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
8322
8366
  }
8323
8367
  })),
8324
- imageResizer_: imageResizer_
8368
+ imageResizer_: imageResizer_,
8369
+ text_: text,
8370
+ textPosition_: text_position,
8371
+ cta_: cta
8325
8372
  });
8326
8373
  contentComponents.set(componentCacheKey, component);
8327
8374
  }
package/latest/index.cjs CHANGED
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.17";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.19";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $gVhhF$solidjs.createSignal(false);
115
115
  $gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
@@ -7815,7 +7815,9 @@ async function $20ff40266d725403$export$5d2f6cd705125cd3() {
7815
7815
  $20ff40266d725403$var$cachedHlsModule = hlsModule;
7816
7816
  return hlsModule;
7817
7817
  }
7818
- var $32c662f618f5d80d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<video class=d-standard-content>`);
7818
+ var $32c662f618f5d80d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<video class=d-standard-content>`),
7819
+ $32c662f618f5d80d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=d-standard-content-text-group><span class=d-standard-content-text></span><span class=d-standard-content-cta>`),
7820
+ $32c662f618f5d80d$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=d-standard-content-text>`);
7819
7821
  function $32c662f618f5d80d$export$780a853d15174484({
7820
7822
  link_: link_,
7821
7823
  type_: type_,
@@ -7823,7 +7825,10 @@ function $32c662f618f5d80d$export$780a853d15174484({
7823
7825
  setAspectRatioWas_: setAspectRatioWas_,
7824
7826
  mediaUrl_: mediaUrl_,
7825
7827
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
7826
- imageResizer_: imageResizer_
7828
+ imageResizer_: imageResizer_,
7829
+ text_: text_,
7830
+ textPosition_: textPosition_,
7831
+ cta_: cta_
7827
7832
  }) {
7828
7833
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
7829
7834
  const [wrapperSize, setWrapperSize] = $gVhhF$solidjs.createSignal();
@@ -7921,10 +7926,47 @@ function $32c662f618f5d80d$export$780a853d15174484({
7921
7926
  }
7922
7927
  })];
7923
7928
  }
7929
+ }), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
7930
+ when: text_,
7931
+ get children() {
7932
+ return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
7933
+ when: cta_,
7934
+ get fallback() {
7935
+ return (() => {
7936
+ var _el$5 = $gVhhF$solidjsweb.getNextElement($32c662f618f5d80d$var$_tmpl$3);
7937
+ $gVhhF$solidjsweb.setAttribute(_el$5, "data-position", textPosition_ || "bottom-center");
7938
+ $gVhhF$solidjsweb.insert(_el$5, text_);
7939
+ return _el$5;
7940
+ })();
7941
+ },
7942
+ get children() {
7943
+ var _el$2 = $gVhhF$solidjsweb.getNextElement($32c662f618f5d80d$var$_tmpl$2),
7944
+ _el$3 = _el$2.firstChild,
7945
+ _el$4 = _el$3.nextSibling;
7946
+ $gVhhF$solidjsweb.setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
7947
+ $gVhhF$solidjsweb.setAttribute(_el$3, "data-position", textPosition_ || "bottom-center");
7948
+ $gVhhF$solidjsweb.insert(_el$3, text_);
7949
+ $gVhhF$solidjsweb.setAttribute(_el$4, "data-position", textPosition_ || "bottom-center");
7950
+ $gVhhF$solidjsweb.insert(_el$4, cta_);
7951
+ return _el$2;
7952
+ }
7953
+ });
7954
+ }
7924
7955
  })];
7925
7956
  }
7926
7957
  }));
7927
7958
  }
7959
+ const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = content => {
7960
+ const {
7961
+ link: link,
7962
+ type: type,
7963
+ url: url,
7964
+ text: text,
7965
+ text_position: text_position,
7966
+ cta: cta
7967
+ } = content;
7968
+ return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
7969
+ };
7928
7970
  function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
7929
7971
  let hasSeenContentBlock = false;
7930
7972
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -7959,13 +8001,15 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
7959
8001
  content: {
7960
8002
  link: link,
7961
8003
  type: type,
7962
- url: url
8004
+ url: url,
8005
+ text: text,
8006
+ text_position: text_position,
8007
+ cta: cta
7963
8008
  }
7964
8009
  } = row;
7965
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
7966
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
7967
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
7968
- const componentCacheKey = JSON.stringify([link, type, url]);
8010
+ const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content);
8011
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
8012
+ const mediaCacheKey = JSON.stringify([link, type, url]);
7969
8013
  let component = contentComponents.get(componentCacheKey);
7970
8014
  if (!component) {
7971
8015
  component = () => $gVhhF$solidjsweb.createComponent((0, $32c662f618f5d80d$export$780a853d15174484), {
@@ -7973,15 +8017,18 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
7973
8017
  type_: type,
7974
8018
  mediaUrl_: url,
7975
8019
  router_: router_,
7976
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
8020
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
7977
8021
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
7978
8022
  ...prev,
7979
8023
  aspectRatios: {
7980
8024
  ...prev.aspectRatios,
7981
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
8025
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
7982
8026
  }
7983
8027
  })),
7984
- imageResizer_: imageResizer_
8028
+ imageResizer_: imageResizer_,
8029
+ text_: text,
8030
+ textPosition_: text_position,
8031
+ cta_: cta
7985
8032
  });
7986
8033
  contentComponents.set(componentCacheKey, component);
7987
8034
  }
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.10.17";
14
+ export const version = "4.10.19";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
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.10.17";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.19";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $9HbP8$createSignal(false);
13
13
  $9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
@@ -7713,7 +7713,9 @@ async function $e422ea9eccb7892b$export$5d2f6cd705125cd3() {
7713
7713
  $e422ea9eccb7892b$var$cachedHlsModule = hlsModule;
7714
7714
  return hlsModule;
7715
7715
  }
7716
- var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<video class=d-standard-content>`);
7716
+ var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<video class=d-standard-content>`),
7717
+ $f916989c4b1be9f7$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=d-standard-content-text-group><span class=d-standard-content-text></span><span class=d-standard-content-cta>`),
7718
+ $f916989c4b1be9f7$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<span class=d-standard-content-text>`);
7717
7719
  function $f916989c4b1be9f7$export$780a853d15174484({
7718
7720
  link_: link_,
7719
7721
  type_: type_,
@@ -7721,7 +7723,10 @@ function $f916989c4b1be9f7$export$780a853d15174484({
7721
7723
  setAspectRatioWas_: setAspectRatioWas_,
7722
7724
  mediaUrl_: mediaUrl_,
7723
7725
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
7724
- imageResizer_: imageResizer_
7726
+ imageResizer_: imageResizer_,
7727
+ text_: text_,
7728
+ textPosition_: textPosition_,
7729
+ cta_: cta_
7725
7730
  }) {
7726
7731
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
7727
7732
  const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
@@ -7819,10 +7824,47 @@ function $f916989c4b1be9f7$export$780a853d15174484({
7819
7824
  }
7820
7825
  })];
7821
7826
  }
7827
+ }), $9HbP8$createComponent((0, $9HbP8$Show), {
7828
+ when: text_,
7829
+ get children() {
7830
+ return $9HbP8$createComponent((0, $9HbP8$Show), {
7831
+ when: cta_,
7832
+ get fallback() {
7833
+ return (() => {
7834
+ var _el$5 = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$3);
7835
+ $9HbP8$setAttribute(_el$5, "data-position", textPosition_ || "bottom-center");
7836
+ $9HbP8$insert(_el$5, text_);
7837
+ return _el$5;
7838
+ })();
7839
+ },
7840
+ get children() {
7841
+ var _el$2 = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$2),
7842
+ _el$3 = _el$2.firstChild,
7843
+ _el$4 = _el$3.nextSibling;
7844
+ $9HbP8$setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
7845
+ $9HbP8$setAttribute(_el$3, "data-position", textPosition_ || "bottom-center");
7846
+ $9HbP8$insert(_el$3, text_);
7847
+ $9HbP8$setAttribute(_el$4, "data-position", textPosition_ || "bottom-center");
7848
+ $9HbP8$insert(_el$4, cta_);
7849
+ return _el$2;
7850
+ }
7851
+ });
7852
+ }
7822
7853
  })];
7823
7854
  }
7824
7855
  }));
7825
7856
  }
7857
+ const $486360b09f0d5729$export$af2c67164f68e9e9 = content => {
7858
+ const {
7859
+ link: link,
7860
+ type: type,
7861
+ url: url,
7862
+ text: text,
7863
+ text_position: text_position,
7864
+ cta: cta
7865
+ } = content;
7866
+ return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
7867
+ };
7826
7868
  function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
7827
7869
  let hasSeenContentBlock = false;
7828
7870
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -7857,13 +7899,15 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
7857
7899
  content: {
7858
7900
  link: link,
7859
7901
  type: type,
7860
- url: url
7902
+ url: url,
7903
+ text: text,
7904
+ text_position: text_position,
7905
+ cta: cta
7861
7906
  }
7862
7907
  } = row;
7863
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
7864
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
7865
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
7866
- const componentCacheKey = JSON.stringify([link, type, url]);
7908
+ const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content);
7909
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
7910
+ const mediaCacheKey = JSON.stringify([link, type, url]);
7867
7911
  let component = contentComponents.get(componentCacheKey);
7868
7912
  if (!component) {
7869
7913
  component = () => $9HbP8$createComponent((0, $f916989c4b1be9f7$export$780a853d15174484), {
@@ -7871,15 +7915,18 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
7871
7915
  type_: type,
7872
7916
  mediaUrl_: url,
7873
7917
  router_: router_,
7874
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
7918
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
7875
7919
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
7876
7920
  ...prev,
7877
7921
  aspectRatios: {
7878
7922
  ...prev.aspectRatios,
7879
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
7923
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
7880
7924
  }
7881
7925
  })),
7882
- imageResizer_: imageResizer_
7926
+ imageResizer_: imageResizer_,
7927
+ text_: text,
7928
+ textPosition_: text_position,
7929
+ cta_: cta
7883
7930
  });
7884
7931
  contentComponents.set(componentCacheKey, component);
7885
7932
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.10.17",
3
+ "version": "4.10.19",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -236,9 +236,9 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "^7.22.6",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^4.6.9",
240
- "@depict-ai/types": "^5.6.7",
241
- "@depict-ai/utilishared": "^2.6.7",
239
+ "@depict-ai/plp-styling": "^4.6.11",
240
+ "@depict-ai/types": "^5.6.9",
241
+ "@depict-ai/utilishared": "^2.6.9",
242
242
  "solid-js": "^1.9.10"
243
243
  },
244
244
  "type": "module",
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.17";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.19";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $3hooq$solidjs.createSignal(false);
121
121
  $3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -6743,7 +6743,9 @@ function $f3db423dc84bc35d$export$140423fa4bfb6d63(props) {
6743
6743
  }
6744
6744
  }));
6745
6745
  }
6746
- var $c19709057a32b2e7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
6746
+ var $c19709057a32b2e7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'],
6747
+ $c19709057a32b2e7$var$_tmpl$2 = ["<div", ' class="d-standard-content-text-group"', '><span class="d-standard-content-text"', ">", '</span><span class="d-standard-content-cta"', ">", "</span></div>"],
6748
+ $c19709057a32b2e7$var$_tmpl$3 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6747
6749
  function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6748
6750
  let {
6749
6751
  link_: link_,
@@ -6752,7 +6754,10 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6752
6754
  setAspectRatioWas_: setAspectRatioWas_,
6753
6755
  mediaUrl_: mediaUrl_,
6754
6756
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6755
- imageResizer_: imageResizer_
6757
+ imageResizer_: imageResizer_,
6758
+ text_: text_,
6759
+ textPosition_: textPosition_,
6760
+ cta_: cta_
6756
6761
  } = _ref;
6757
6762
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
6758
6763
  const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
@@ -6817,10 +6822,34 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6817
6822
  }
6818
6823
  })];
6819
6824
  }
6825
+ }), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
6826
+ when: text_,
6827
+ get children() {
6828
+ return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
6829
+ when: cta_,
6830
+ get fallback() {
6831
+ return $3hooq$solidjsweb.ssr($c19709057a32b2e7$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("data-position", $3hooq$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $3hooq$solidjsweb.escape(text_));
6832
+ },
6833
+ get children() {
6834
+ return $3hooq$solidjsweb.ssr($c19709057a32b2e7$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("data-position", $3hooq$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $3hooq$solidjsweb.ssrAttribute("data-position", $3hooq$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $3hooq$solidjsweb.escape(text_), $3hooq$solidjsweb.ssrAttribute("data-position", $3hooq$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $3hooq$solidjsweb.escape(cta_));
6835
+ }
6836
+ });
6837
+ }
6820
6838
  })];
6821
6839
  }
6822
6840
  }));
6823
6841
  }
6842
+ const $0c035bbe7e30b438$export$af2c67164f68e9e9 = content => {
6843
+ const {
6844
+ link: link,
6845
+ type: type,
6846
+ url: url,
6847
+ text: text,
6848
+ text_position: text_position,
6849
+ cta: cta
6850
+ } = content;
6851
+ return JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null, cta !== null && cta !== void 0 ? cta : null]);
6852
+ };
6824
6853
  function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6825
6854
  let hasSeenContentBlock = false;
6826
6855
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6856,13 +6885,15 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
6856
6885
  content: {
6857
6886
  link: link,
6858
6887
  type: type,
6859
- url: url
6888
+ url: url,
6889
+ text: text,
6890
+ text_position: text_position,
6891
+ cta: cta
6860
6892
  }
6861
6893
  } = row;
6862
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
6863
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6864
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
6865
- const componentCacheKey = JSON.stringify([link, type, url]);
6894
+ const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content);
6895
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
6896
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6866
6897
  let component = contentComponents.get(componentCacheKey);
6867
6898
  if (!component) {
6868
6899
  component = () => $3hooq$solidjsweb.createComponent((0, $c19709057a32b2e7$export$780a853d15174484), {
@@ -6870,15 +6901,18 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
6870
6901
  type_: type,
6871
6902
  mediaUrl_: url,
6872
6903
  router_: router_,
6873
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6904
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6874
6905
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6875
6906
  ...prev,
6876
6907
  aspectRatios: {
6877
6908
  ...prev.aspectRatios,
6878
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6909
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6879
6910
  }
6880
6911
  })),
6881
- imageResizer_: imageResizer_
6912
+ imageResizer_: imageResizer_,
6913
+ text_: text,
6914
+ textPosition_: text_position,
6915
+ cta_: cta
6882
6916
  });
6883
6917
  contentComponents.set(componentCacheKey, component);
6884
6918
  }
@@ -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.10.17";
14
+ export const version = "4.10.19";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -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.10.17";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.19";
14
14
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
15
15
  const signal = $b8hua$createSignal(false);
16
16
  $b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
@@ -6638,7 +6638,9 @@ function $98688279b9059f50$export$140423fa4bfb6d63(props) {
6638
6638
  }
6639
6639
  }));
6640
6640
  }
6641
- var $3b772ef9a35560fe$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
6641
+ var $3b772ef9a35560fe$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'],
6642
+ $3b772ef9a35560fe$var$_tmpl$2 = ["<div", ' class="d-standard-content-text-group"', '><span class="d-standard-content-text"', ">", '</span><span class="d-standard-content-cta"', ">", "</span></div>"],
6643
+ $3b772ef9a35560fe$var$_tmpl$3 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6642
6644
  function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6643
6645
  let {
6644
6646
  link_: link_,
@@ -6647,7 +6649,10 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6647
6649
  setAspectRatioWas_: setAspectRatioWas_,
6648
6650
  mediaUrl_: mediaUrl_,
6649
6651
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6650
- imageResizer_: imageResizer_
6652
+ imageResizer_: imageResizer_,
6653
+ text_: text_,
6654
+ textPosition_: textPosition_,
6655
+ cta_: cta_
6651
6656
  } = _ref;
6652
6657
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
6653
6658
  const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
@@ -6712,10 +6717,34 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6712
6717
  }
6713
6718
  })];
6714
6719
  }
6720
+ }), $b8hua$createComponent((0, $b8hua$Show), {
6721
+ when: text_,
6722
+ get children() {
6723
+ return $b8hua$createComponent((0, $b8hua$Show), {
6724
+ when: cta_,
6725
+ get fallback() {
6726
+ return $b8hua$ssr($3b772ef9a35560fe$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("data-position", $b8hua$escape(textPosition_, true) || "bottom-center", false), $b8hua$escape(text_));
6727
+ },
6728
+ get children() {
6729
+ return $b8hua$ssr($3b772ef9a35560fe$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("data-position", $b8hua$escape(textPosition_, true) || "bottom-center", false), $b8hua$ssrAttribute("data-position", $b8hua$escape(textPosition_, true) || "bottom-center", false), $b8hua$escape(text_), $b8hua$ssrAttribute("data-position", $b8hua$escape(textPosition_, true) || "bottom-center", false), $b8hua$escape(cta_));
6730
+ }
6731
+ });
6732
+ }
6715
6733
  })];
6716
6734
  }
6717
6735
  }));
6718
6736
  }
6737
+ const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = content => {
6738
+ const {
6739
+ link: link,
6740
+ type: type,
6741
+ url: url,
6742
+ text: text,
6743
+ text_position: text_position,
6744
+ cta: cta
6745
+ } = content;
6746
+ return JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null, cta !== null && cta !== void 0 ? cta : null]);
6747
+ };
6719
6748
  function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6720
6749
  let hasSeenContentBlock = false;
6721
6750
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6751,13 +6780,15 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
6751
6780
  content: {
6752
6781
  link: link,
6753
6782
  type: type,
6754
- url: url
6783
+ url: url,
6784
+ text: text,
6785
+ text_position: text_position,
6786
+ cta: cta
6755
6787
  }
6756
6788
  } = row;
6757
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
6758
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6759
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
6760
- const componentCacheKey = JSON.stringify([link, type, url]);
6789
+ const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content);
6790
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
6791
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6761
6792
  let component = contentComponents.get(componentCacheKey);
6762
6793
  if (!component) {
6763
6794
  component = () => $b8hua$createComponent((0, $3b772ef9a35560fe$export$780a853d15174484), {
@@ -6765,15 +6796,18 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
6765
6796
  type_: type,
6766
6797
  mediaUrl_: url,
6767
6798
  router_: router_,
6768
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6799
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6769
6800
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6770
6801
  ...prev,
6771
6802
  aspectRatios: {
6772
6803
  ...prev.aspectRatios,
6773
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6804
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6774
6805
  }
6775
6806
  })),
6776
- imageResizer_: imageResizer_
6807
+ imageResizer_: imageResizer_,
6808
+ text_: text,
6809
+ textPosition_: text_position,
6810
+ cta_: cta
6777
6811
  });
6778
6812
  contentComponents.set(componentCacheKey, component);
6779
6813
  }
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.17";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.19";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $5vyXB$solidjs.createSignal(false);
115
115
  $5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
@@ -6362,7 +6362,9 @@ function $d212a67662c5cf38$export$140423fa4bfb6d63(props) {
6362
6362
  }
6363
6363
  }));
6364
6364
  }
6365
- var $32c662f618f5d80d$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
6365
+ var $32c662f618f5d80d$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'],
6366
+ $32c662f618f5d80d$var$_tmpl$2 = ["<div", ' class="d-standard-content-text-group"', '><span class="d-standard-content-text"', ">", '</span><span class="d-standard-content-cta"', ">", "</span></div>"],
6367
+ $32c662f618f5d80d$var$_tmpl$3 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6366
6368
  function $32c662f618f5d80d$export$780a853d15174484({
6367
6369
  link_: link_,
6368
6370
  type_: type_,
@@ -6370,7 +6372,10 @@ function $32c662f618f5d80d$export$780a853d15174484({
6370
6372
  setAspectRatioWas_: setAspectRatioWas_,
6371
6373
  mediaUrl_: mediaUrl_,
6372
6374
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6373
- imageResizer_: imageResizer_
6375
+ imageResizer_: imageResizer_,
6376
+ text_: text_,
6377
+ textPosition_: textPosition_,
6378
+ cta_: cta_
6374
6379
  }) {
6375
6380
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
6376
6381
  const [wrapperSize, setWrapperSize] = $5vyXB$solidjs.createSignal();
@@ -6429,10 +6434,34 @@ function $32c662f618f5d80d$export$780a853d15174484({
6429
6434
  }
6430
6435
  })];
6431
6436
  }
6437
+ }), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
6438
+ when: text_,
6439
+ get children() {
6440
+ return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
6441
+ when: cta_,
6442
+ get fallback() {
6443
+ return $5vyXB$solidjsweb.ssr($32c662f618f5d80d$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("data-position", $5vyXB$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $5vyXB$solidjsweb.escape(text_));
6444
+ },
6445
+ get children() {
6446
+ return $5vyXB$solidjsweb.ssr($32c662f618f5d80d$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("data-position", $5vyXB$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $5vyXB$solidjsweb.ssrAttribute("data-position", $5vyXB$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $5vyXB$solidjsweb.escape(text_), $5vyXB$solidjsweb.ssrAttribute("data-position", $5vyXB$solidjsweb.escape(textPosition_, true) || "bottom-center", false), $5vyXB$solidjsweb.escape(cta_));
6447
+ }
6448
+ });
6449
+ }
6432
6450
  })];
6433
6451
  }
6434
6452
  }));
6435
6453
  }
6454
+ const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = content => {
6455
+ const {
6456
+ link: link,
6457
+ type: type,
6458
+ url: url,
6459
+ text: text,
6460
+ text_position: text_position,
6461
+ cta: cta
6462
+ } = content;
6463
+ return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
6464
+ };
6436
6465
  function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6437
6466
  let hasSeenContentBlock = false;
6438
6467
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6467,13 +6496,15 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
6467
6496
  content: {
6468
6497
  link: link,
6469
6498
  type: type,
6470
- url: url
6499
+ url: url,
6500
+ text: text,
6501
+ text_position: text_position,
6502
+ cta: cta
6471
6503
  }
6472
6504
  } = row;
6473
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
6474
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6475
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
6476
- const componentCacheKey = JSON.stringify([link, type, url]);
6505
+ const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content);
6506
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
6507
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6477
6508
  let component = contentComponents.get(componentCacheKey);
6478
6509
  if (!component) {
6479
6510
  component = () => $5vyXB$solidjsweb.createComponent((0, $32c662f618f5d80d$export$780a853d15174484), {
@@ -6481,15 +6512,18 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
6481
6512
  type_: type,
6482
6513
  mediaUrl_: url,
6483
6514
  router_: router_,
6484
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6515
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6485
6516
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6486
6517
  ...prev,
6487
6518
  aspectRatios: {
6488
6519
  ...prev.aspectRatios,
6489
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6520
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6490
6521
  }
6491
6522
  })),
6492
- imageResizer_: imageResizer_
6523
+ imageResizer_: imageResizer_,
6524
+ text_: text,
6525
+ textPosition_: text_position,
6526
+ cta_: cta
6493
6527
  });
6494
6528
  contentComponents.set(componentCacheKey, component);
6495
6529
  }
@@ -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.10.17";
14
+ export const version = "4.10.19";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -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.10.17";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.19";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $i7OB2$createSignal(false);
13
13
  $i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
@@ -6260,7 +6260,9 @@ function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
6260
6260
  }
6261
6261
  }));
6262
6262
  }
6263
- var $f916989c4b1be9f7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
6263
+ var $f916989c4b1be9f7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'],
6264
+ $f916989c4b1be9f7$var$_tmpl$2 = ["<div", ' class="d-standard-content-text-group"', '><span class="d-standard-content-text"', ">", '</span><span class="d-standard-content-cta"', ">", "</span></div>"],
6265
+ $f916989c4b1be9f7$var$_tmpl$3 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6264
6266
  function $f916989c4b1be9f7$export$780a853d15174484({
6265
6267
  link_: link_,
6266
6268
  type_: type_,
@@ -6268,7 +6270,10 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6268
6270
  setAspectRatioWas_: setAspectRatioWas_,
6269
6271
  mediaUrl_: mediaUrl_,
6270
6272
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6271
- imageResizer_: imageResizer_
6273
+ imageResizer_: imageResizer_,
6274
+ text_: text_,
6275
+ textPosition_: textPosition_,
6276
+ cta_: cta_
6272
6277
  }) {
6273
6278
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
6274
6279
  const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
@@ -6327,10 +6332,34 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6327
6332
  }
6328
6333
  })];
6329
6334
  }
6335
+ }), $i7OB2$createComponent((0, $i7OB2$Show), {
6336
+ when: text_,
6337
+ get children() {
6338
+ return $i7OB2$createComponent((0, $i7OB2$Show), {
6339
+ when: cta_,
6340
+ get fallback() {
6341
+ return $i7OB2$ssr($f916989c4b1be9f7$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("data-position", $i7OB2$escape(textPosition_, true) || "bottom-center", false), $i7OB2$escape(text_));
6342
+ },
6343
+ get children() {
6344
+ return $i7OB2$ssr($f916989c4b1be9f7$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("data-position", $i7OB2$escape(textPosition_, true) || "bottom-center", false), $i7OB2$ssrAttribute("data-position", $i7OB2$escape(textPosition_, true) || "bottom-center", false), $i7OB2$escape(text_), $i7OB2$ssrAttribute("data-position", $i7OB2$escape(textPosition_, true) || "bottom-center", false), $i7OB2$escape(cta_));
6345
+ }
6346
+ });
6347
+ }
6330
6348
  })];
6331
6349
  }
6332
6350
  }));
6333
6351
  }
6352
+ const $486360b09f0d5729$export$af2c67164f68e9e9 = content => {
6353
+ const {
6354
+ link: link,
6355
+ type: type,
6356
+ url: url,
6357
+ text: text,
6358
+ text_position: text_position,
6359
+ cta: cta
6360
+ } = content;
6361
+ return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
6362
+ };
6334
6363
  function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6335
6364
  let hasSeenContentBlock = false;
6336
6365
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6365,13 +6394,15 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6365
6394
  content: {
6366
6395
  link: link,
6367
6396
  type: type,
6368
- url: url
6397
+ url: url,
6398
+ text: text,
6399
+ text_position: text_position,
6400
+ cta: cta
6369
6401
  }
6370
6402
  } = row;
6371
- // Key the "content"-component by the link, type and url, so we can reuse the component (and later downstream the block elements) if it's the same
6372
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6373
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
6374
- const componentCacheKey = JSON.stringify([link, type, url]);
6403
+ const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content);
6404
+ // The aspect ratio depends only on the media, so its history key must stay the pre-text 3-element shape — widening it would orphan every ratio already persisted in history.state
6405
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6375
6406
  let component = contentComponents.get(componentCacheKey);
6376
6407
  if (!component) {
6377
6408
  component = () => $i7OB2$createComponent((0, $f916989c4b1be9f7$export$780a853d15174484), {
@@ -6379,15 +6410,18 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6379
6410
  type_: type,
6380
6411
  mediaUrl_: url,
6381
6412
  router_: router_,
6382
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6413
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6383
6414
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6384
6415
  ...prev,
6385
6416
  aspectRatios: {
6386
6417
  ...prev.aspectRatios,
6387
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6418
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6388
6419
  }
6389
6420
  })),
6390
- imageResizer_: imageResizer_
6421
+ imageResizer_: imageResizer_,
6422
+ text_: text,
6423
+ textPosition_: text_position,
6424
+ cta_: cta
6391
6425
  });
6392
6426
  contentComponents.set(componentCacheKey, component);
6393
6427
  }