@depict-ai/ui 4.10.18 → 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.18";
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 => {
@@ -8253,7 +8253,8 @@ async function $8e8c89c02c16dc7b$export$5d2f6cd705125cd3() {
8253
8253
  return hlsModule;
8254
8254
  }
8255
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
+ $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>`);
8257
8258
  function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8258
8259
  let {
8259
8260
  link_: link_,
@@ -8264,7 +8265,8 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8264
8265
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
8265
8266
  imageResizer_: imageResizer_,
8266
8267
  text_: text_,
8267
- textPosition_: textPosition_
8268
+ textPosition_: textPosition_,
8269
+ cta_: cta_
8268
8270
  } = _ref;
8269
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
8270
8272
  const [wrapperSize, setWrapperSize] = $52FdA$solidjs.createSignal();
@@ -8371,15 +8373,44 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
8371
8373
  }), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
8372
8374
  when: text_,
8373
8375
  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;
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
+ });
8378
8398
  }
8379
8399
  })];
8380
8400
  }
8381
8401
  }));
8382
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
+ };
8383
8414
  function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
8384
8415
  let hasSeenContentBlock = false;
8385
8416
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -8417,13 +8448,11 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
8417
8448
  type: type,
8418
8449
  url: url,
8419
8450
  text: text,
8420
- text_position: text_position
8451
+ text_position: text_position,
8452
+ cta: cta
8421
8453
  }
8422
8454
  } = row;
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
8424
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
8425
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
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]);
8455
+ const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content);
8427
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
8428
8457
  const mediaCacheKey = JSON.stringify([link, type, url]);
8429
8458
  let component = contentComponents.get(componentCacheKey);
@@ -8443,7 +8472,8 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
8443
8472
  })),
8444
8473
  imageResizer_: imageResizer_,
8445
8474
  text_: text,
8446
- textPosition_: text_position
8475
+ textPosition_: text_position,
8476
+ cta_: cta
8447
8477
  });
8448
8478
  contentComponents.set(componentCacheKey, component);
8449
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.18";
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.18";
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 => {
@@ -8148,7 +8148,8 @@ async function $e92c154db502596d$export$5d2f6cd705125cd3() {
8148
8148
  return hlsModule;
8149
8149
  }
8150
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
+ $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>`);
8152
8153
  function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8153
8154
  let {
8154
8155
  link_: link_,
@@ -8159,7 +8160,8 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8159
8160
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
8160
8161
  imageResizer_: imageResizer_,
8161
8162
  text_: text_,
8162
- textPosition_: textPosition_
8163
+ textPosition_: textPosition_,
8164
+ cta_: cta_
8163
8165
  } = _ref;
8164
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
8165
8167
  const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
@@ -8266,15 +8268,44 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
8266
8268
  }), $8tj43$createComponent((0, $8tj43$Show), {
8267
8269
  when: text_,
8268
8270
  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;
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
+ });
8273
8293
  }
8274
8294
  })];
8275
8295
  }
8276
8296
  }));
8277
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
+ };
8278
8309
  function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
8279
8310
  let hasSeenContentBlock = false;
8280
8311
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -8312,13 +8343,11 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
8312
8343
  type: type,
8313
8344
  url: url,
8314
8345
  text: text,
8315
- text_position: text_position
8346
+ text_position: text_position,
8347
+ cta: cta
8316
8348
  }
8317
8349
  } = row;
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
8319
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
8320
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
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]);
8350
+ const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content);
8322
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
8323
8352
  const mediaCacheKey = JSON.stringify([link, type, url]);
8324
8353
  let component = contentComponents.get(componentCacheKey);
@@ -8338,7 +8367,8 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
8338
8367
  })),
8339
8368
  imageResizer_: imageResizer_,
8340
8369
  text_: text,
8341
- textPosition_: text_position
8370
+ textPosition_: text_position,
8371
+ cta_: cta
8342
8372
  });
8343
8373
  contentComponents.set(componentCacheKey, component);
8344
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.18";
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, ({
@@ -7816,7 +7816,8 @@ async function $20ff40266d725403$export$5d2f6cd705125cd3() {
7816
7816
  return hlsModule;
7817
7817
  }
7818
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
+ $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>`);
7820
7821
  function $32c662f618f5d80d$export$780a853d15174484({
7821
7822
  link_: link_,
7822
7823
  type_: type_,
@@ -7826,7 +7827,8 @@ function $32c662f618f5d80d$export$780a853d15174484({
7826
7827
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
7827
7828
  imageResizer_: imageResizer_,
7828
7829
  text_: text_,
7829
- textPosition_: textPosition_
7830
+ textPosition_: textPosition_,
7831
+ cta_: cta_
7830
7832
  }) {
7831
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
7832
7834
  const [wrapperSize, setWrapperSize] = $gVhhF$solidjs.createSignal();
@@ -7927,15 +7929,44 @@ function $32c662f618f5d80d$export$780a853d15174484({
7927
7929
  }), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
7928
7930
  when: text_,
7929
7931
  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;
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
+ });
7934
7954
  }
7935
7955
  })];
7936
7956
  }
7937
7957
  }));
7938
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
+ };
7939
7970
  function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
7940
7971
  let hasSeenContentBlock = false;
7941
7972
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -7972,13 +8003,11 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
7972
8003
  type: type,
7973
8004
  url: url,
7974
8005
  text: text,
7975
- text_position: text_position
8006
+ text_position: text_position,
8007
+ cta: cta
7976
8008
  }
7977
8009
  } = row;
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
7979
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
7980
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
7981
- const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
8010
+ const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content);
7982
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
7983
8012
  const mediaCacheKey = JSON.stringify([link, type, url]);
7984
8013
  let component = contentComponents.get(componentCacheKey);
@@ -7998,7 +8027,8 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
7998
8027
  })),
7999
8028
  imageResizer_: imageResizer_,
8000
8029
  text_: text,
8001
- textPosition_: text_position
8030
+ textPosition_: text_position,
8031
+ cta_: cta
8002
8032
  });
8003
8033
  contentComponents.set(componentCacheKey, component);
8004
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.18";
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.18";
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, ({
@@ -7714,7 +7714,8 @@ async function $e422ea9eccb7892b$export$5d2f6cd705125cd3() {
7714
7714
  return hlsModule;
7715
7715
  }
7716
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
+ $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>`);
7718
7719
  function $f916989c4b1be9f7$export$780a853d15174484({
7719
7720
  link_: link_,
7720
7721
  type_: type_,
@@ -7724,7 +7725,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
7724
7725
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
7725
7726
  imageResizer_: imageResizer_,
7726
7727
  text_: text_,
7727
- textPosition_: textPosition_
7728
+ textPosition_: textPosition_,
7729
+ cta_: cta_
7728
7730
  }) {
7729
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
7730
7732
  const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
@@ -7825,15 +7827,44 @@ function $f916989c4b1be9f7$export$780a853d15174484({
7825
7827
  }), $9HbP8$createComponent((0, $9HbP8$Show), {
7826
7828
  when: text_,
7827
7829
  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;
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
+ });
7832
7852
  }
7833
7853
  })];
7834
7854
  }
7835
7855
  }));
7836
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
+ };
7837
7868
  function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
7838
7869
  let hasSeenContentBlock = false;
7839
7870
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -7870,13 +7901,11 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
7870
7901
  type: type,
7871
7902
  url: url,
7872
7903
  text: text,
7873
- text_position: text_position
7904
+ text_position: text_position,
7905
+ cta: cta
7874
7906
  }
7875
7907
  } = row;
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
7877
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
7878
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
7879
- const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
7908
+ const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content);
7880
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
7881
7910
  const mediaCacheKey = JSON.stringify([link, type, url]);
7882
7911
  let component = contentComponents.get(componentCacheKey);
@@ -7896,7 +7925,8 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
7896
7925
  })),
7897
7926
  imageResizer_: imageResizer_,
7898
7927
  text_: text,
7899
- textPosition_: text_position
7928
+ textPosition_: text_position,
7929
+ cta_: cta
7900
7930
  });
7901
7931
  contentComponents.set(componentCacheKey, component);
7902
7932
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.10.18",
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.10",
240
- "@depict-ai/types": "^5.6.8",
241
- "@depict-ai/utilishared": "^2.6.8",
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.18";
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 => {
@@ -6744,7 +6744,8 @@ function $f3db423dc84bc35d$export$140423fa4bfb6d63(props) {
6744
6744
  }));
6745
6745
  }
6746
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
+ $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>"];
6748
6749
  function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6749
6750
  let {
6750
6751
  link_: link_,
@@ -6755,7 +6756,8 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6755
6756
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6756
6757
  imageResizer_: imageResizer_,
6757
6758
  text_: text_,
6758
- textPosition_: textPosition_
6759
+ textPosition_: textPosition_,
6760
+ cta_: cta_
6759
6761
  } = _ref;
6760
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
6761
6763
  const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
@@ -6823,12 +6825,31 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
6823
6825
  }), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
6824
6826
  when: text_,
6825
6827
  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_));
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
+ });
6827
6837
  }
6828
6838
  })];
6829
6839
  }
6830
6840
  }));
6831
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
+ };
6832
6853
  function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6833
6854
  let hasSeenContentBlock = false;
6834
6855
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6866,13 +6887,11 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
6866
6887
  type: type,
6867
6888
  url: url,
6868
6889
  text: text,
6869
- text_position: text_position
6890
+ text_position: text_position,
6891
+ cta: cta
6870
6892
  }
6871
6893
  } = row;
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
6873
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6874
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
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]);
6894
+ const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content);
6876
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
6877
6896
  const mediaCacheKey = JSON.stringify([link, type, url]);
6878
6897
  let component = contentComponents.get(componentCacheKey);
@@ -6892,7 +6911,8 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
6892
6911
  })),
6893
6912
  imageResizer_: imageResizer_,
6894
6913
  text_: text,
6895
- textPosition_: text_position
6914
+ textPosition_: text_position,
6915
+ cta_: cta
6896
6916
  });
6897
6917
  contentComponents.set(componentCacheKey, component);
6898
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.18";
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.18";
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 => {
@@ -6639,7 +6639,8 @@ function $98688279b9059f50$export$140423fa4bfb6d63(props) {
6639
6639
  }));
6640
6640
  }
6641
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
+ $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>"];
6643
6644
  function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6644
6645
  let {
6645
6646
  link_: link_,
@@ -6650,7 +6651,8 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6650
6651
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6651
6652
  imageResizer_: imageResizer_,
6652
6653
  text_: text_,
6653
- textPosition_: textPosition_
6654
+ textPosition_: textPosition_,
6655
+ cta_: cta_
6654
6656
  } = _ref;
6655
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
6656
6658
  const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
@@ -6718,12 +6720,31 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
6718
6720
  }), $b8hua$createComponent((0, $b8hua$Show), {
6719
6721
  when: text_,
6720
6722
  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_));
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
+ });
6722
6732
  }
6723
6733
  })];
6724
6734
  }
6725
6735
  }));
6726
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
+ };
6727
6748
  function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6728
6749
  let hasSeenContentBlock = false;
6729
6750
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6761,13 +6782,11 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
6761
6782
  type: type,
6762
6783
  url: url,
6763
6784
  text: text,
6764
- text_position: text_position
6785
+ text_position: text_position,
6786
+ cta: cta
6765
6787
  }
6766
6788
  } = row;
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
6768
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6769
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
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]);
6789
+ const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content);
6771
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
6772
6791
  const mediaCacheKey = JSON.stringify([link, type, url]);
6773
6792
  let component = contentComponents.get(componentCacheKey);
@@ -6787,7 +6806,8 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
6787
6806
  })),
6788
6807
  imageResizer_: imageResizer_,
6789
6808
  text_: text,
6790
- textPosition_: text_position
6809
+ textPosition_: text_position,
6810
+ cta_: cta
6791
6811
  });
6792
6812
  contentComponents.set(componentCacheKey, component);
6793
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.18";
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, ({
@@ -6363,7 +6363,8 @@ function $d212a67662c5cf38$export$140423fa4bfb6d63(props) {
6363
6363
  }));
6364
6364
  }
6365
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
+ $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>"];
6367
6368
  function $32c662f618f5d80d$export$780a853d15174484({
6368
6369
  link_: link_,
6369
6370
  type_: type_,
@@ -6373,7 +6374,8 @@ function $32c662f618f5d80d$export$780a853d15174484({
6373
6374
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6374
6375
  imageResizer_: imageResizer_,
6375
6376
  text_: text_,
6376
- textPosition_: textPosition_
6377
+ textPosition_: textPosition_,
6378
+ cta_: cta_
6377
6379
  }) {
6378
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
6379
6381
  const [wrapperSize, setWrapperSize] = $5vyXB$solidjs.createSignal();
@@ -6435,12 +6437,31 @@ function $32c662f618f5d80d$export$780a853d15174484({
6435
6437
  }), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
6436
6438
  when: text_,
6437
6439
  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_));
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
+ });
6439
6449
  }
6440
6450
  })];
6441
6451
  }
6442
6452
  }));
6443
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
+ };
6444
6465
  function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6445
6466
  let hasSeenContentBlock = false;
6446
6467
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6477,13 +6498,11 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
6477
6498
  type: type,
6478
6499
  url: url,
6479
6500
  text: text,
6480
- text_position: text_position
6501
+ text_position: text_position,
6502
+ cta: cta
6481
6503
  }
6482
6504
  } = row;
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
6484
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6485
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
6486
- const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
6505
+ const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content);
6487
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
6488
6507
  const mediaCacheKey = JSON.stringify([link, type, url]);
6489
6508
  let component = contentComponents.get(componentCacheKey);
@@ -6503,7 +6522,8 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
6503
6522
  })),
6504
6523
  imageResizer_: imageResizer_,
6505
6524
  text_: text,
6506
- textPosition_: text_position
6525
+ textPosition_: text_position,
6526
+ cta_: cta
6507
6527
  });
6508
6528
  contentComponents.set(componentCacheKey, component);
6509
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.18";
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.18";
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, ({
@@ -6261,7 +6261,8 @@ function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
6261
6261
  }));
6262
6262
  }
6263
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
+ $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>"];
6265
6266
  function $f916989c4b1be9f7$export$780a853d15174484({
6266
6267
  link_: link_,
6267
6268
  type_: type_,
@@ -6271,7 +6272,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6271
6272
  aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6272
6273
  imageResizer_: imageResizer_,
6273
6274
  text_: text_,
6274
- textPosition_: textPosition_
6275
+ textPosition_: textPosition_,
6276
+ cta_: cta_
6275
6277
  }) {
6276
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
6277
6279
  const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
@@ -6333,12 +6335,31 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6333
6335
  }), $i7OB2$createComponent((0, $i7OB2$Show), {
6334
6336
  when: text_,
6335
6337
  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_));
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
+ });
6337
6347
  }
6338
6348
  })];
6339
6349
  }
6340
6350
  }));
6341
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
+ };
6342
6363
  function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6343
6364
  let hasSeenContentBlock = false;
6344
6365
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
@@ -6375,13 +6396,11 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6375
6396
  type: type,
6376
6397
  url: url,
6377
6398
  text: text,
6378
- text_position: text_position
6399
+ text_position: text_position,
6400
+ cta: cta
6379
6401
  }
6380
6402
  } = row;
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
6382
- // This makes the block not flicker when going backwards/forwards if the content is the same on both pages
6383
- // Also it lets us rewrite the blocks state in the history based on the block aspect ratio without infinite looping
6384
- const componentCacheKey = JSON.stringify([link, type, url, text ?? null, text_position ?? null]);
6403
+ const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content);
6385
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
6386
6405
  const mediaCacheKey = JSON.stringify([link, type, url]);
6387
6406
  let component = contentComponents.get(componentCacheKey);
@@ -6401,7 +6420,8 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6401
6420
  })),
6402
6421
  imageResizer_: imageResizer_,
6403
6422
  text_: text,
6404
- textPosition_: text_position
6423
+ textPosition_: text_position,
6424
+ cta_: cta
6405
6425
  });
6406
6426
  contentComponents.set(componentCacheKey, component);
6407
6427
  }