@depict-ai/ui 4.10.17 → 4.10.18

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.18";
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,8 @@ 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(`<span class=d-standard-content-text>`);
8256
8257
  function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8257
8258
  let {
8258
8259
  link_: link_,
@@ -8261,7 +8262,9 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8261
8262
  setAspectRatioWas_: setAspectRatioWas_,
8262
8263
  mediaUrl_: mediaUrl_,
8263
8264
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
8264
- imageResizer_: imageResizer_
8265
+ imageResizer_: imageResizer_,
8266
+ text_: text_,
8267
+ textPosition_: textPosition_
8265
8268
  } = _ref;
8266
8269
  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
8270
  const [wrapperSize, setWrapperSize] = $52FdA$solidjs.createSignal();
@@ -8365,6 +8368,14 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8365
8368
  }
8366
8369
  })];
8367
8370
  }
8371
+ }), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
8372
+ when: text_,
8373
+ get children() {
8374
+ var _el$2 = $52FdA$solidjsweb.getNextElement($c19709057a32b2e7$var$_tmpl$2);
8375
+ $52FdA$solidjsweb.setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
8376
+ $52FdA$solidjsweb.insert(_el$2, text_);
8377
+ return _el$2;
8378
+ }
8368
8379
  })];
8369
8380
  }
8370
8381
  }));
@@ -8404,13 +8415,17 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
8404
8415
  content: {
8405
8416
  link: link,
8406
8417
  type: type,
8407
- url: url
8418
+ url: url,
8419
+ text: text,
8420
+ text_position: text_position
8408
8421
  }
8409
8422
  } = 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
8423
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
8411
8424
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
8412
8425
  // 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]);
8426
+ const componentCacheKey = JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null]);
8427
+ // 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
8428
+ const mediaCacheKey = JSON.stringify([link, type, url]);
8414
8429
  let component = contentComponents.get(componentCacheKey);
8415
8430
  if (!component) {
8416
8431
  component = () => $52FdA$solidjsweb.createComponent((0, $c19709057a32b2e7$export$780a853d15174484), {
@@ -8418,15 +8433,17 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
8418
8433
  type_: type,
8419
8434
  mediaUrl_: url,
8420
8435
  router_: router_,
8421
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
8436
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
8422
8437
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
8423
8438
  ...prev,
8424
8439
  aspectRatios: {
8425
8440
  ...prev.aspectRatios,
8426
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
8441
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
8427
8442
  }
8428
8443
  })),
8429
- imageResizer_: imageResizer_
8444
+ imageResizer_: imageResizer_,
8445
+ text_: text,
8446
+ textPosition_: text_position
8430
8447
  });
8431
8448
  contentComponents.set(componentCacheKey, component);
8432
8449
  }
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.18";
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.18";
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,8 @@ 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(`<span class=d-standard-content-text>`);
8151
8152
  function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8152
8153
  let {
8153
8154
  link_: link_,
@@ -8156,7 +8157,9 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8156
8157
  setAspectRatioWas_: setAspectRatioWas_,
8157
8158
  mediaUrl_: mediaUrl_,
8158
8159
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
8159
- imageResizer_: imageResizer_
8160
+ imageResizer_: imageResizer_,
8161
+ text_: text_,
8162
+ textPosition_: textPosition_
8160
8163
  } = _ref;
8161
8164
  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
8165
  const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
@@ -8260,6 +8263,14 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8260
8263
  }
8261
8264
  })];
8262
8265
  }
8266
+ }), $8tj43$createComponent((0, $8tj43$Show), {
8267
+ when: text_,
8268
+ get children() {
8269
+ var _el$2 = $8tj43$getNextElement($3b772ef9a35560fe$var$_tmpl$2);
8270
+ $8tj43$setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
8271
+ $8tj43$insert(_el$2, text_);
8272
+ return _el$2;
8273
+ }
8263
8274
  })];
8264
8275
  }
8265
8276
  }));
@@ -8299,13 +8310,17 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
8299
8310
  content: {
8300
8311
  link: link,
8301
8312
  type: type,
8302
- url: url
8313
+ url: url,
8314
+ text: text,
8315
+ text_position: text_position
8303
8316
  }
8304
8317
  } = 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
8318
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
8306
8319
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
8307
8320
  // 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]);
8321
+ const componentCacheKey = JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null]);
8322
+ // 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
8323
+ const mediaCacheKey = JSON.stringify([link, type, url]);
8309
8324
  let component = contentComponents.get(componentCacheKey);
8310
8325
  if (!component) {
8311
8326
  component = () => $8tj43$createComponent((0, $3b772ef9a35560fe$export$780a853d15174484), {
@@ -8313,15 +8328,17 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
8313
8328
  type_: type,
8314
8329
  mediaUrl_: url,
8315
8330
  router_: router_,
8316
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
8331
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
8317
8332
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
8318
8333
  ...prev,
8319
8334
  aspectRatios: {
8320
8335
  ...prev.aspectRatios,
8321
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
8336
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
8322
8337
  }
8323
8338
  })),
8324
- imageResizer_: imageResizer_
8339
+ imageResizer_: imageResizer_,
8340
+ text_: text,
8341
+ textPosition_: text_position
8325
8342
  });
8326
8343
  contentComponents.set(componentCacheKey, component);
8327
8344
  }
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.18";
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,8 @@ 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(`<span class=d-standard-content-text>`);
7819
7820
  function $32c662f618f5d80d$export$780a853d15174484({
7820
7821
  link_: link_,
7821
7822
  type_: type_,
@@ -7823,7 +7824,9 @@ function $32c662f618f5d80d$export$780a853d15174484({
7823
7824
  setAspectRatioWas_: setAspectRatioWas_,
7824
7825
  mediaUrl_: mediaUrl_,
7825
7826
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
7826
- imageResizer_: imageResizer_
7827
+ imageResizer_: imageResizer_,
7828
+ text_: text_,
7829
+ textPosition_: textPosition_
7827
7830
  }) {
7828
7831
  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
7832
  const [wrapperSize, setWrapperSize] = $gVhhF$solidjs.createSignal();
@@ -7921,6 +7924,14 @@ function $32c662f618f5d80d$export$780a853d15174484({
7921
7924
  }
7922
7925
  })];
7923
7926
  }
7927
+ }), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
7928
+ when: text_,
7929
+ get children() {
7930
+ var _el$2 = $gVhhF$solidjsweb.getNextElement($32c662f618f5d80d$var$_tmpl$2);
7931
+ $gVhhF$solidjsweb.setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
7932
+ $gVhhF$solidjsweb.insert(_el$2, text_);
7933
+ return _el$2;
7934
+ }
7924
7935
  })];
7925
7936
  }
7926
7937
  }));
@@ -7959,13 +7970,17 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
7959
7970
  content: {
7960
7971
  link: link,
7961
7972
  type: type,
7962
- url: url
7973
+ url: url,
7974
+ text: text,
7975
+ text_position: text_position
7963
7976
  }
7964
7977
  } = 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
7978
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
7966
7979
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
7967
7980
  // 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]);
7981
+ const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
7982
+ // 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
7983
+ const mediaCacheKey = JSON.stringify([link, type, url]);
7969
7984
  let component = contentComponents.get(componentCacheKey);
7970
7985
  if (!component) {
7971
7986
  component = () => $gVhhF$solidjsweb.createComponent((0, $32c662f618f5d80d$export$780a853d15174484), {
@@ -7973,15 +7988,17 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
7973
7988
  type_: type,
7974
7989
  mediaUrl_: url,
7975
7990
  router_: router_,
7976
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
7991
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
7977
7992
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
7978
7993
  ...prev,
7979
7994
  aspectRatios: {
7980
7995
  ...prev.aspectRatios,
7981
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
7996
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
7982
7997
  }
7983
7998
  })),
7984
- imageResizer_: imageResizer_
7999
+ imageResizer_: imageResizer_,
8000
+ text_: text,
8001
+ textPosition_: text_position
7985
8002
  });
7986
8003
  contentComponents.set(componentCacheKey, component);
7987
8004
  }
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.18";
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.18";
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,8 @@ 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(`<span class=d-standard-content-text>`);
7717
7718
  function $f916989c4b1be9f7$export$780a853d15174484({
7718
7719
  link_: link_,
7719
7720
  type_: type_,
@@ -7721,7 +7722,9 @@ function $f916989c4b1be9f7$export$780a853d15174484({
7721
7722
  setAspectRatioWas_: setAspectRatioWas_,
7722
7723
  mediaUrl_: mediaUrl_,
7723
7724
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
7724
- imageResizer_: imageResizer_
7725
+ imageResizer_: imageResizer_,
7726
+ text_: text_,
7727
+ textPosition_: textPosition_
7725
7728
  }) {
7726
7729
  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
7730
  const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
@@ -7819,6 +7822,14 @@ function $f916989c4b1be9f7$export$780a853d15174484({
7819
7822
  }
7820
7823
  })];
7821
7824
  }
7825
+ }), $9HbP8$createComponent((0, $9HbP8$Show), {
7826
+ when: text_,
7827
+ get children() {
7828
+ var _el$2 = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$2);
7829
+ $9HbP8$setAttribute(_el$2, "data-position", textPosition_ || "bottom-center");
7830
+ $9HbP8$insert(_el$2, text_);
7831
+ return _el$2;
7832
+ }
7822
7833
  })];
7823
7834
  }
7824
7835
  }));
@@ -7857,13 +7868,17 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
7857
7868
  content: {
7858
7869
  link: link,
7859
7870
  type: type,
7860
- url: url
7871
+ url: url,
7872
+ text: text,
7873
+ text_position: text_position
7861
7874
  }
7862
7875
  } = 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
7876
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
7864
7877
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
7865
7878
  // 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]);
7879
+ const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
7880
+ // 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
7881
+ const mediaCacheKey = JSON.stringify([link, type, url]);
7867
7882
  let component = contentComponents.get(componentCacheKey);
7868
7883
  if (!component) {
7869
7884
  component = () => $9HbP8$createComponent((0, $f916989c4b1be9f7$export$780a853d15174484), {
@@ -7871,15 +7886,17 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
7871
7886
  type_: type,
7872
7887
  mediaUrl_: url,
7873
7888
  router_: router_,
7874
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
7889
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
7875
7890
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
7876
7891
  ...prev,
7877
7892
  aspectRatios: {
7878
7893
  ...prev.aspectRatios,
7879
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
7894
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
7880
7895
  }
7881
7896
  })),
7882
- imageResizer_: imageResizer_
7897
+ imageResizer_: imageResizer_,
7898
+ text_: text,
7899
+ textPosition_: text_position
7883
7900
  });
7884
7901
  contentComponents.set(componentCacheKey, component);
7885
7902
  }
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.18",
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.10",
240
+ "@depict-ai/types": "^5.6.8",
241
+ "@depict-ai/utilishared": "^2.6.8",
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.18";
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,8 @@ 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 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6747
6748
  function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6748
6749
  let {
6749
6750
  link_: link_,
@@ -6752,7 +6753,9 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6752
6753
  setAspectRatioWas_: setAspectRatioWas_,
6753
6754
  mediaUrl_: mediaUrl_,
6754
6755
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6755
- imageResizer_: imageResizer_
6756
+ imageResizer_: imageResizer_,
6757
+ text_: text_,
6758
+ textPosition_: textPosition_
6756
6759
  } = _ref;
6757
6760
  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
6761
  const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
@@ -6817,6 +6820,11 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6817
6820
  }
6818
6821
  })];
6819
6822
  }
6823
+ }), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
6824
+ when: text_,
6825
+ get children() {
6826
+ 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.escape(text_));
6827
+ }
6820
6828
  })];
6821
6829
  }
6822
6830
  }));
@@ -6856,13 +6864,17 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
6856
6864
  content: {
6857
6865
  link: link,
6858
6866
  type: type,
6859
- url: url
6867
+ url: url,
6868
+ text: text,
6869
+ text_position: text_position
6860
6870
  }
6861
6871
  } = 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
6872
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
6863
6873
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6864
6874
  // 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]);
6875
+ const componentCacheKey = JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null]);
6876
+ // 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
6877
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6866
6878
  let component = contentComponents.get(componentCacheKey);
6867
6879
  if (!component) {
6868
6880
  component = () => $3hooq$solidjsweb.createComponent((0, $c19709057a32b2e7$export$780a853d15174484), {
@@ -6870,15 +6882,17 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
6870
6882
  type_: type,
6871
6883
  mediaUrl_: url,
6872
6884
  router_: router_,
6873
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6885
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6874
6886
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6875
6887
  ...prev,
6876
6888
  aspectRatios: {
6877
6889
  ...prev.aspectRatios,
6878
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6890
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6879
6891
  }
6880
6892
  })),
6881
- imageResizer_: imageResizer_
6893
+ imageResizer_: imageResizer_,
6894
+ text_: text,
6895
+ textPosition_: text_position
6882
6896
  });
6883
6897
  contentComponents.set(componentCacheKey, component);
6884
6898
  }
@@ -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.18";
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.18";
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,8 @@ 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 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6642
6643
  function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6643
6644
  let {
6644
6645
  link_: link_,
@@ -6647,7 +6648,9 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6647
6648
  setAspectRatioWas_: setAspectRatioWas_,
6648
6649
  mediaUrl_: mediaUrl_,
6649
6650
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6650
- imageResizer_: imageResizer_
6651
+ imageResizer_: imageResizer_,
6652
+ text_: text_,
6653
+ textPosition_: textPosition_
6651
6654
  } = _ref;
6652
6655
  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
6656
  const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
@@ -6712,6 +6715,11 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6712
6715
  }
6713
6716
  })];
6714
6717
  }
6718
+ }), $b8hua$createComponent((0, $b8hua$Show), {
6719
+ when: text_,
6720
+ get children() {
6721
+ return $b8hua$ssr($3b772ef9a35560fe$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("data-position", $b8hua$escape(textPosition_, true) || "bottom-center", false), $b8hua$escape(text_));
6722
+ }
6715
6723
  })];
6716
6724
  }
6717
6725
  }));
@@ -6751,13 +6759,17 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
6751
6759
  content: {
6752
6760
  link: link,
6753
6761
  type: type,
6754
- url: url
6762
+ url: url,
6763
+ text: text,
6764
+ text_position: text_position
6755
6765
  }
6756
6766
  } = 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
6767
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
6758
6768
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6759
6769
  // 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]);
6770
+ const componentCacheKey = JSON.stringify([link, type, url, text !== null && text !== void 0 ? text : null, text_position !== null && text_position !== void 0 ? text_position : null]);
6771
+ // 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
6772
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6761
6773
  let component = contentComponents.get(componentCacheKey);
6762
6774
  if (!component) {
6763
6775
  component = () => $b8hua$createComponent((0, $3b772ef9a35560fe$export$780a853d15174484), {
@@ -6765,15 +6777,17 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
6765
6777
  type_: type,
6766
6778
  mediaUrl_: url,
6767
6779
  router_: router_,
6768
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6780
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6769
6781
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6770
6782
  ...prev,
6771
6783
  aspectRatios: {
6772
6784
  ...prev.aspectRatios,
6773
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6785
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6774
6786
  }
6775
6787
  })),
6776
- imageResizer_: imageResizer_
6788
+ imageResizer_: imageResizer_,
6789
+ text_: text,
6790
+ textPosition_: text_position
6777
6791
  });
6778
6792
  contentComponents.set(componentCacheKey, component);
6779
6793
  }
@@ -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.18";
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,8 @@ 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 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6366
6367
  function $32c662f618f5d80d$export$780a853d15174484({
6367
6368
  link_: link_,
6368
6369
  type_: type_,
@@ -6370,7 +6371,9 @@ function $32c662f618f5d80d$export$780a853d15174484({
6370
6371
  setAspectRatioWas_: setAspectRatioWas_,
6371
6372
  mediaUrl_: mediaUrl_,
6372
6373
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6373
- imageResizer_: imageResizer_
6374
+ imageResizer_: imageResizer_,
6375
+ text_: text_,
6376
+ textPosition_: textPosition_
6374
6377
  }) {
6375
6378
  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
6379
  const [wrapperSize, setWrapperSize] = $5vyXB$solidjs.createSignal();
@@ -6429,6 +6432,11 @@ function $32c662f618f5d80d$export$780a853d15174484({
6429
6432
  }
6430
6433
  })];
6431
6434
  }
6435
+ }), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
6436
+ when: text_,
6437
+ get children() {
6438
+ 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.escape(text_));
6439
+ }
6432
6440
  })];
6433
6441
  }
6434
6442
  }));
@@ -6467,13 +6475,17 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
6467
6475
  content: {
6468
6476
  link: link,
6469
6477
  type: type,
6470
- url: url
6478
+ url: url,
6479
+ text: text,
6480
+ text_position: text_position
6471
6481
  }
6472
6482
  } = 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
6483
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
6474
6484
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6475
6485
  // 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]);
6486
+ const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
6487
+ // 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
6488
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6477
6489
  let component = contentComponents.get(componentCacheKey);
6478
6490
  if (!component) {
6479
6491
  component = () => $5vyXB$solidjsweb.createComponent((0, $32c662f618f5d80d$export$780a853d15174484), {
@@ -6481,15 +6493,17 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
6481
6493
  type_: type,
6482
6494
  mediaUrl_: url,
6483
6495
  router_: router_,
6484
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6496
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6485
6497
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6486
6498
  ...prev,
6487
6499
  aspectRatios: {
6488
6500
  ...prev.aspectRatios,
6489
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6501
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6490
6502
  }
6491
6503
  })),
6492
- imageResizer_: imageResizer_
6504
+ imageResizer_: imageResizer_,
6505
+ text_: text,
6506
+ textPosition_: text_position
6493
6507
  });
6494
6508
  contentComponents.set(componentCacheKey, component);
6495
6509
  }
@@ -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.18";
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.18";
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,8 @@ 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 = ["<span", ' class="d-standard-content-text"', ">", "</span>"];
6264
6265
  function $f916989c4b1be9f7$export$780a853d15174484({
6265
6266
  link_: link_,
6266
6267
  type_: type_,
@@ -6268,7 +6269,9 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6268
6269
  setAspectRatioWas_: setAspectRatioWas_,
6269
6270
  mediaUrl_: mediaUrl_,
6270
6271
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6271
- imageResizer_: imageResizer_
6272
+ imageResizer_: imageResizer_,
6273
+ text_: text_,
6274
+ textPosition_: textPosition_
6272
6275
  }) {
6273
6276
  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
6277
  const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
@@ -6327,6 +6330,11 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6327
6330
  }
6328
6331
  })];
6329
6332
  }
6333
+ }), $i7OB2$createComponent((0, $i7OB2$Show), {
6334
+ when: text_,
6335
+ get children() {
6336
+ return $i7OB2$ssr($f916989c4b1be9f7$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("data-position", $i7OB2$escape(textPosition_, true) || "bottom-center", false), $i7OB2$escape(text_));
6337
+ }
6330
6338
  })];
6331
6339
  }
6332
6340
  }));
@@ -6365,13 +6373,17 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6365
6373
  content: {
6366
6374
  link: link,
6367
6375
  type: type,
6368
- url: url
6376
+ url: url,
6377
+ text: text,
6378
+ text_position: text_position
6369
6379
  }
6370
6380
  } = 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
6381
+ // Key the "content"-component by its rendered inputs, so we can reuse the component (and later downstream the block elements) if it's the same
6372
6382
  // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6373
6383
  // 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]);
6384
+ const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
6385
+ // 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
6386
+ const mediaCacheKey = JSON.stringify([link, type, url]);
6375
6387
  let component = contentComponents.get(componentCacheKey);
6376
6388
  if (!component) {
6377
6389
  component = () => $i7OB2$createComponent((0, $f916989c4b1be9f7$export$780a853d15174484), {
@@ -6379,15 +6391,17 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6379
6391
  type_: type,
6380
6392
  mediaUrl_: url,
6381
6393
  router_: router_,
6382
- aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[componentCacheKey],
6394
+ aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
6383
6395
  setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
6384
6396
  ...prev,
6385
6397
  aspectRatios: {
6386
6398
  ...prev.aspectRatios,
6387
- [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6399
+ [mediaCacheKey]: Math.round(aspectRatio * 100) / 100
6388
6400
  }
6389
6401
  })),
6390
- imageResizer_: imageResizer_
6402
+ imageResizer_: imageResizer_,
6403
+ text_: text,
6404
+ textPosition_: text_position
6391
6405
  });
6392
6406
  contentComponents.set(componentCacheKey, component);
6393
6407
  }