@depict-ai/ui 4.10.26 → 4.10.28
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 +21 -14
- package/ES10/index.d.ts +2 -1
- package/ES10/index.js +21 -14
- package/latest/index.cjs +21 -14
- package/latest/index.d.ts +2 -1
- package/latest/index.js +21 -14
- package/package.json +4 -4
- package/server/ES10/index.cjs +18 -6
- package/server/ES10/index.d.ts +2 -1
- package/server/ES10/index.js +18 -6
- package/server/latest/index.cjs +18 -6
- package/server/latest/index.d.ts +2 -1
- package/server/latest/index.js +18 -6
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.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.28";
|
|
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 => {
|
|
@@ -1858,25 +1858,27 @@ function $f8f375d6245ffff2$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1858
1858
|
var _v$ = row(),
|
|
1859
1859
|
_v$2 = !!final_spans().spans_whole_row,
|
|
1860
1860
|
_v$3 = !!final_spans().spans_multiple_rows,
|
|
1861
|
-
_v$4 =
|
|
1861
|
+
_v$4 = !!(block.aspect_ratio === 1.5),
|
|
1862
|
+
_v$5 = {
|
|
1863
|
+
"grid-column": "span ".concat(final_span_columns()),
|
|
1864
|
+
"grid-row": "span ".concat(final_span_rows()),
|
|
1865
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1866
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1867
|
+
}),
|
|
1862
1868
|
[(0, $830518481649feb1$export$c500183c31c2b22e)]: final_span_columns()
|
|
1863
|
-
}
|
|
1864
|
-
_v$5 = "span ".concat(final_span_columns()),
|
|
1865
|
-
_v$6 = "span ".concat(final_span_rows());
|
|
1869
|
+
};
|
|
1866
1870
|
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$, "data-content-block-row", _p$.e = _v$);
|
|
1867
1871
|
_v$2 !== _p$.t && _el$.classList.toggle("spans-whole-row", _p$.t = _v$2);
|
|
1868
1872
|
_v$3 !== _p$.a && _el$.classList.toggle("spans-multiple-rows", _p$.a = _v$3);
|
|
1869
|
-
_p$.o
|
|
1870
|
-
|
|
1871
|
-
_v$6 !== _p$.n && ((_p$.n = _v$6) != null ? _el$.style.setProperty("grid-row", _v$6) : _el$.style.removeProperty("grid-row"));
|
|
1873
|
+
_v$4 !== _p$.o && _el$.classList.toggle("has-explicit-aspect-ratio", _p$.o = _v$4);
|
|
1874
|
+
_p$.i = $52FdA$solidjsweb.style(_el$, _v$5, _p$.i);
|
|
1872
1875
|
return _p$;
|
|
1873
1876
|
}, {
|
|
1874
1877
|
e: undefined,
|
|
1875
1878
|
t: undefined,
|
|
1876
1879
|
a: undefined,
|
|
1877
1880
|
o: undefined,
|
|
1878
|
-
i: undefined
|
|
1879
|
-
n: undefined
|
|
1881
|
+
i: undefined
|
|
1880
1882
|
});
|
|
1881
1883
|
return _el$;
|
|
1882
1884
|
}
|
|
@@ -8451,6 +8453,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8451
8453
|
router_: router_,
|
|
8452
8454
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
8453
8455
|
mediaUrl_: mediaUrl_,
|
|
8456
|
+
aspectRatio_: aspectRatio_,
|
|
8454
8457
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
8455
8458
|
imageResizer_: imageResizer_,
|
|
8456
8459
|
text_: text_,
|
|
@@ -8470,7 +8473,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8470
8473
|
component: link_ ? "a" : "div",
|
|
8471
8474
|
"class": "d-standard-content-wrapper",
|
|
8472
8475
|
get style() {
|
|
8473
|
-
return
|
|
8476
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? "--media-aspect-ratio: ".concat(aspectRatioWhenAloneInRow_()) : "";
|
|
8474
8477
|
},
|
|
8475
8478
|
ref: el => isImage && setWrapperSize(() => $054b1113e4897051$export$54c6d6ff54e72743(el)),
|
|
8476
8479
|
get onClick() {
|
|
@@ -8589,7 +8592,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8589
8592
|
}
|
|
8590
8593
|
}));
|
|
8591
8594
|
}
|
|
8592
|
-
const $0c035bbe7e30b438$export$af2c67164f68e9e9 = content => {
|
|
8595
|
+
const $0c035bbe7e30b438$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8593
8596
|
const {
|
|
8594
8597
|
link: link,
|
|
8595
8598
|
type: type,
|
|
@@ -8598,7 +8601,7 @@ const $0c035bbe7e30b438$export$af2c67164f68e9e9 = content => {
|
|
|
8598
8601
|
text_position: text_position,
|
|
8599
8602
|
cta: cta
|
|
8600
8603
|
} = content;
|
|
8601
|
-
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]);
|
|
8604
|
+
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, aspectRatio !== null && aspectRatio !== void 0 ? aspectRatio : null]);
|
|
8602
8605
|
};
|
|
8603
8606
|
function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
8604
8607
|
let hasSeenContentBlock = false;
|
|
@@ -8641,7 +8644,7 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8641
8644
|
cta: cta
|
|
8642
8645
|
}
|
|
8643
8646
|
} = row;
|
|
8644
|
-
const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content);
|
|
8647
|
+
const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
8645
8648
|
// 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
|
|
8646
8649
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
8647
8650
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -8652,6 +8655,9 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8652
8655
|
mediaUrl_: url,
|
|
8653
8656
|
router_: router_,
|
|
8654
8657
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
8658
|
+
get aspectRatio_() {
|
|
8659
|
+
return row.aspect_ratio;
|
|
8660
|
+
},
|
|
8655
8661
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
8656
8662
|
...prev,
|
|
8657
8663
|
aspectRatios: {
|
|
@@ -8669,6 +8675,7 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8669
8675
|
const contentBlock = {
|
|
8670
8676
|
span_columns: row.span_columns,
|
|
8671
8677
|
span_rows: row.span_rows,
|
|
8678
|
+
aspect_ratio: row.aspect_ratio,
|
|
8672
8679
|
position: row.position,
|
|
8673
8680
|
content: component
|
|
8674
8681
|
};
|
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.
|
|
14
|
+
export const version = "4.10.28";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -393,6 +393,7 @@ export function ImagePlaceholder(props: ImagePlaceholderBaseOptions & (ImagePlac
|
|
|
393
393
|
export type ContentBlock = {
|
|
394
394
|
span_columns: number;
|
|
395
395
|
span_rows: number;
|
|
396
|
+
aspect_ratio?: 1.5;
|
|
396
397
|
position: "left" | "center" | "right";
|
|
397
398
|
content: () => JSX.Element | Promise<JSX.Element>;
|
|
398
399
|
};
|
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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.28";
|
|
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 => {
|
|
@@ -1753,25 +1753,27 @@ function $ff7feae4dddd6073$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1753
1753
|
var _v$ = row(),
|
|
1754
1754
|
_v$2 = !!final_spans().spans_whole_row,
|
|
1755
1755
|
_v$3 = !!final_spans().spans_multiple_rows,
|
|
1756
|
-
_v$4 =
|
|
1756
|
+
_v$4 = !!(block.aspect_ratio === 1.5),
|
|
1757
|
+
_v$5 = {
|
|
1758
|
+
"grid-column": "span ".concat(final_span_columns()),
|
|
1759
|
+
"grid-row": "span ".concat(final_span_rows()),
|
|
1760
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1761
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1762
|
+
}),
|
|
1757
1763
|
[(0, $64d94dcaa058dc7b$export$c500183c31c2b22e)]: final_span_columns()
|
|
1758
|
-
}
|
|
1759
|
-
_v$5 = "span ".concat(final_span_columns()),
|
|
1760
|
-
_v$6 = "span ".concat(final_span_rows());
|
|
1764
|
+
};
|
|
1761
1765
|
_v$ !== _p$.e && $8tj43$setAttribute(_el$, "data-content-block-row", _p$.e = _v$);
|
|
1762
1766
|
_v$2 !== _p$.t && _el$.classList.toggle("spans-whole-row", _p$.t = _v$2);
|
|
1763
1767
|
_v$3 !== _p$.a && _el$.classList.toggle("spans-multiple-rows", _p$.a = _v$3);
|
|
1764
|
-
_p$.o
|
|
1765
|
-
|
|
1766
|
-
_v$6 !== _p$.n && ((_p$.n = _v$6) != null ? _el$.style.setProperty("grid-row", _v$6) : _el$.style.removeProperty("grid-row"));
|
|
1768
|
+
_v$4 !== _p$.o && _el$.classList.toggle("has-explicit-aspect-ratio", _p$.o = _v$4);
|
|
1769
|
+
_p$.i = $8tj43$style(_el$, _v$5, _p$.i);
|
|
1767
1770
|
return _p$;
|
|
1768
1771
|
}, {
|
|
1769
1772
|
e: undefined,
|
|
1770
1773
|
t: undefined,
|
|
1771
1774
|
a: undefined,
|
|
1772
1775
|
o: undefined,
|
|
1773
|
-
i: undefined
|
|
1774
|
-
n: undefined
|
|
1776
|
+
i: undefined
|
|
1775
1777
|
});
|
|
1776
1778
|
return _el$;
|
|
1777
1779
|
}
|
|
@@ -8346,6 +8348,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8346
8348
|
router_: router_,
|
|
8347
8349
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
8348
8350
|
mediaUrl_: mediaUrl_,
|
|
8351
|
+
aspectRatio_: aspectRatio_,
|
|
8349
8352
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
8350
8353
|
imageResizer_: imageResizer_,
|
|
8351
8354
|
text_: text_,
|
|
@@ -8365,7 +8368,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8365
8368
|
component: link_ ? "a" : "div",
|
|
8366
8369
|
"class": "d-standard-content-wrapper",
|
|
8367
8370
|
get style() {
|
|
8368
|
-
return
|
|
8371
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? "--media-aspect-ratio: ".concat(aspectRatioWhenAloneInRow_()) : "";
|
|
8369
8372
|
},
|
|
8370
8373
|
ref: el => isImage && setWrapperSize(() => $4be619ec2cd7bba3$export$54c6d6ff54e72743(el)),
|
|
8371
8374
|
get onClick() {
|
|
@@ -8484,7 +8487,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8484
8487
|
}
|
|
8485
8488
|
}));
|
|
8486
8489
|
}
|
|
8487
|
-
const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = content => {
|
|
8490
|
+
const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8488
8491
|
const {
|
|
8489
8492
|
link: link,
|
|
8490
8493
|
type: type,
|
|
@@ -8493,7 +8496,7 @@ const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = content => {
|
|
|
8493
8496
|
text_position: text_position,
|
|
8494
8497
|
cta: cta
|
|
8495
8498
|
} = content;
|
|
8496
|
-
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]);
|
|
8499
|
+
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, aspectRatio !== null && aspectRatio !== void 0 ? aspectRatio : null]);
|
|
8497
8500
|
};
|
|
8498
8501
|
function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
8499
8502
|
let hasSeenContentBlock = false;
|
|
@@ -8536,7 +8539,7 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8536
8539
|
cta: cta
|
|
8537
8540
|
}
|
|
8538
8541
|
} = row;
|
|
8539
|
-
const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content);
|
|
8542
|
+
const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
8540
8543
|
// 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
|
|
8541
8544
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
8542
8545
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -8547,6 +8550,9 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8547
8550
|
mediaUrl_: url,
|
|
8548
8551
|
router_: router_,
|
|
8549
8552
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
8553
|
+
get aspectRatio_() {
|
|
8554
|
+
return row.aspect_ratio;
|
|
8555
|
+
},
|
|
8550
8556
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
8551
8557
|
...prev,
|
|
8552
8558
|
aspectRatios: {
|
|
@@ -8564,6 +8570,7 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8564
8570
|
const contentBlock = {
|
|
8565
8571
|
span_columns: row.span_columns,
|
|
8566
8572
|
span_rows: row.span_rows,
|
|
8573
|
+
aspect_ratio: row.aspect_ratio,
|
|
8567
8574
|
position: row.position,
|
|
8568
8575
|
content: component
|
|
8569
8576
|
};
|
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.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.28";
|
|
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, ({
|
|
@@ -1769,25 +1769,27 @@ function $d92f338ba8f9da9b$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1769
1769
|
var _v$ = row(),
|
|
1770
1770
|
_v$2 = !!final_spans().spans_whole_row,
|
|
1771
1771
|
_v$3 = !!final_spans().spans_multiple_rows,
|
|
1772
|
-
_v$4 =
|
|
1772
|
+
_v$4 = !!(block.aspect_ratio === 1.5),
|
|
1773
|
+
_v$5 = {
|
|
1774
|
+
"grid-column": `span ${final_span_columns()}`,
|
|
1775
|
+
"grid-row": `span ${final_span_rows()}`,
|
|
1776
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1777
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1778
|
+
}),
|
|
1773
1779
|
[(0, $75777da1687ba3f6$export$c500183c31c2b22e)]: final_span_columns()
|
|
1774
|
-
}
|
|
1775
|
-
_v$5 = `span ${final_span_columns()}`,
|
|
1776
|
-
_v$6 = `span ${final_span_rows()}`;
|
|
1780
|
+
};
|
|
1777
1781
|
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "data-content-block-row", _p$.e = _v$);
|
|
1778
1782
|
_v$2 !== _p$.t && _el$.classList.toggle("spans-whole-row", _p$.t = _v$2);
|
|
1779
1783
|
_v$3 !== _p$.a && _el$.classList.toggle("spans-multiple-rows", _p$.a = _v$3);
|
|
1780
|
-
_p$.o
|
|
1781
|
-
|
|
1782
|
-
_v$6 !== _p$.n && ((_p$.n = _v$6) != null ? _el$.style.setProperty("grid-row", _v$6) : _el$.style.removeProperty("grid-row"));
|
|
1784
|
+
_v$4 !== _p$.o && _el$.classList.toggle("has-explicit-aspect-ratio", _p$.o = _v$4);
|
|
1785
|
+
_p$.i = $gVhhF$solidjsweb.style(_el$, _v$5, _p$.i);
|
|
1783
1786
|
return _p$;
|
|
1784
1787
|
}, {
|
|
1785
1788
|
e: undefined,
|
|
1786
1789
|
t: undefined,
|
|
1787
1790
|
a: undefined,
|
|
1788
1791
|
o: undefined,
|
|
1789
|
-
i: undefined
|
|
1790
|
-
n: undefined
|
|
1792
|
+
i: undefined
|
|
1791
1793
|
});
|
|
1792
1794
|
return _el$;
|
|
1793
1795
|
}
|
|
@@ -8004,6 +8006,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
8004
8006
|
router_: router_,
|
|
8005
8007
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
8006
8008
|
mediaUrl_: mediaUrl_,
|
|
8009
|
+
aspectRatio_: aspectRatio_,
|
|
8007
8010
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
8008
8011
|
imageResizer_: imageResizer_,
|
|
8009
8012
|
text_: text_,
|
|
@@ -8023,7 +8026,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
8023
8026
|
component: link_ ? "a" : "div",
|
|
8024
8027
|
"class": "d-standard-content-wrapper",
|
|
8025
8028
|
get style() {
|
|
8026
|
-
return
|
|
8029
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? `--media-aspect-ratio: ${aspectRatioWhenAloneInRow_()}` : "";
|
|
8027
8030
|
},
|
|
8028
8031
|
ref: el => isImage && setWrapperSize(() => $128302ab61dab8f1$export$54c6d6ff54e72743(el)),
|
|
8029
8032
|
get onClick() {
|
|
@@ -8136,7 +8139,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
8136
8139
|
}
|
|
8137
8140
|
}));
|
|
8138
8141
|
}
|
|
8139
|
-
const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = content => {
|
|
8142
|
+
const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8140
8143
|
const {
|
|
8141
8144
|
link: link,
|
|
8142
8145
|
type: type,
|
|
@@ -8145,7 +8148,7 @@ const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = content => {
|
|
|
8145
8148
|
text_position: text_position,
|
|
8146
8149
|
cta: cta
|
|
8147
8150
|
} = content;
|
|
8148
|
-
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
|
|
8151
|
+
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null, aspectRatio ?? null]);
|
|
8149
8152
|
};
|
|
8150
8153
|
function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
8151
8154
|
let hasSeenContentBlock = false;
|
|
@@ -8187,7 +8190,7 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8187
8190
|
cta: cta
|
|
8188
8191
|
}
|
|
8189
8192
|
} = row;
|
|
8190
|
-
const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content);
|
|
8193
|
+
const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
8191
8194
|
// 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
|
|
8192
8195
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
8193
8196
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -8198,6 +8201,9 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8198
8201
|
mediaUrl_: url,
|
|
8199
8202
|
router_: router_,
|
|
8200
8203
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
8204
|
+
get aspectRatio_() {
|
|
8205
|
+
return row.aspect_ratio;
|
|
8206
|
+
},
|
|
8201
8207
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
8202
8208
|
...prev,
|
|
8203
8209
|
aspectRatios: {
|
|
@@ -8215,6 +8221,7 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8215
8221
|
const contentBlock = {
|
|
8216
8222
|
span_columns: row.span_columns,
|
|
8217
8223
|
span_rows: row.span_rows,
|
|
8224
|
+
aspect_ratio: row.aspect_ratio,
|
|
8218
8225
|
position: row.position,
|
|
8219
8226
|
content: component
|
|
8220
8227
|
};
|
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.
|
|
14
|
+
export const version = "4.10.28";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -393,6 +393,7 @@ export function ImagePlaceholder(props: ImagePlaceholderBaseOptions & (ImagePlac
|
|
|
393
393
|
export type ContentBlock = {
|
|
394
394
|
span_columns: number;
|
|
395
395
|
span_rows: number;
|
|
396
|
+
aspect_ratio?: 1.5;
|
|
396
397
|
position: "left" | "center" | "right";
|
|
397
398
|
content: () => JSX.Element | Promise<JSX.Element>;
|
|
398
399
|
};
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.28";
|
|
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, ({
|
|
@@ -1667,25 +1667,27 @@ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1667
1667
|
var _v$ = row(),
|
|
1668
1668
|
_v$2 = !!final_spans().spans_whole_row,
|
|
1669
1669
|
_v$3 = !!final_spans().spans_multiple_rows,
|
|
1670
|
-
_v$4 =
|
|
1670
|
+
_v$4 = !!(block.aspect_ratio === 1.5),
|
|
1671
|
+
_v$5 = {
|
|
1672
|
+
"grid-column": `span ${final_span_columns()}`,
|
|
1673
|
+
"grid-row": `span ${final_span_rows()}`,
|
|
1674
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1675
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1676
|
+
}),
|
|
1671
1677
|
[(0, $6dee9211e57ac31a$export$c500183c31c2b22e)]: final_span_columns()
|
|
1672
|
-
}
|
|
1673
|
-
_v$5 = `span ${final_span_columns()}`,
|
|
1674
|
-
_v$6 = `span ${final_span_rows()}`;
|
|
1678
|
+
};
|
|
1675
1679
|
_v$ !== _p$.e && $9HbP8$setAttribute(_el$, "data-content-block-row", _p$.e = _v$);
|
|
1676
1680
|
_v$2 !== _p$.t && _el$.classList.toggle("spans-whole-row", _p$.t = _v$2);
|
|
1677
1681
|
_v$3 !== _p$.a && _el$.classList.toggle("spans-multiple-rows", _p$.a = _v$3);
|
|
1678
|
-
_p$.o
|
|
1679
|
-
|
|
1680
|
-
_v$6 !== _p$.n && ((_p$.n = _v$6) != null ? _el$.style.setProperty("grid-row", _v$6) : _el$.style.removeProperty("grid-row"));
|
|
1682
|
+
_v$4 !== _p$.o && _el$.classList.toggle("has-explicit-aspect-ratio", _p$.o = _v$4);
|
|
1683
|
+
_p$.i = $9HbP8$style(_el$, _v$5, _p$.i);
|
|
1681
1684
|
return _p$;
|
|
1682
1685
|
}, {
|
|
1683
1686
|
e: undefined,
|
|
1684
1687
|
t: undefined,
|
|
1685
1688
|
a: undefined,
|
|
1686
1689
|
o: undefined,
|
|
1687
|
-
i: undefined
|
|
1688
|
-
n: undefined
|
|
1690
|
+
i: undefined
|
|
1689
1691
|
});
|
|
1690
1692
|
return _el$;
|
|
1691
1693
|
}
|
|
@@ -7902,6 +7904,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7902
7904
|
router_: router_,
|
|
7903
7905
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
7904
7906
|
mediaUrl_: mediaUrl_,
|
|
7907
|
+
aspectRatio_: aspectRatio_,
|
|
7905
7908
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
7906
7909
|
imageResizer_: imageResizer_,
|
|
7907
7910
|
text_: text_,
|
|
@@ -7921,7 +7924,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7921
7924
|
component: link_ ? "a" : "div",
|
|
7922
7925
|
"class": "d-standard-content-wrapper",
|
|
7923
7926
|
get style() {
|
|
7924
|
-
return
|
|
7927
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? `--media-aspect-ratio: ${aspectRatioWhenAloneInRow_()}` : "";
|
|
7925
7928
|
},
|
|
7926
7929
|
ref: el => isImage && setWrapperSize(() => $a444a52bafa0dacc$export$54c6d6ff54e72743(el)),
|
|
7927
7930
|
get onClick() {
|
|
@@ -8034,7 +8037,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
8034
8037
|
}
|
|
8035
8038
|
}));
|
|
8036
8039
|
}
|
|
8037
|
-
const $486360b09f0d5729$export$af2c67164f68e9e9 = content => {
|
|
8040
|
+
const $486360b09f0d5729$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8038
8041
|
const {
|
|
8039
8042
|
link: link,
|
|
8040
8043
|
type: type,
|
|
@@ -8043,7 +8046,7 @@ const $486360b09f0d5729$export$af2c67164f68e9e9 = content => {
|
|
|
8043
8046
|
text_position: text_position,
|
|
8044
8047
|
cta: cta
|
|
8045
8048
|
} = content;
|
|
8046
|
-
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
|
|
8049
|
+
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null, aspectRatio ?? null]);
|
|
8047
8050
|
};
|
|
8048
8051
|
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
8049
8052
|
let hasSeenContentBlock = false;
|
|
@@ -8085,7 +8088,7 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8085
8088
|
cta: cta
|
|
8086
8089
|
}
|
|
8087
8090
|
} = row;
|
|
8088
|
-
const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content);
|
|
8091
|
+
const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
8089
8092
|
// 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
|
|
8090
8093
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
8091
8094
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -8096,6 +8099,9 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8096
8099
|
mediaUrl_: url,
|
|
8097
8100
|
router_: router_,
|
|
8098
8101
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
8102
|
+
get aspectRatio_() {
|
|
8103
|
+
return row.aspect_ratio;
|
|
8104
|
+
},
|
|
8099
8105
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
8100
8106
|
...prev,
|
|
8101
8107
|
aspectRatios: {
|
|
@@ -8113,6 +8119,7 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8113
8119
|
const contentBlock = {
|
|
8114
8120
|
span_columns: row.span_columns,
|
|
8115
8121
|
span_rows: row.span_rows,
|
|
8122
|
+
aspect_ratio: row.aspect_ratio,
|
|
8116
8123
|
position: row.position,
|
|
8117
8124
|
content: component
|
|
8118
8125
|
};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/depict-org/depict-ui.git",
|
|
6
6
|
"directory": "browser-tags-v2/packages/ui"
|
|
7
7
|
},
|
|
8
|
-
"version": "4.10.
|
|
8
|
+
"version": "4.10.28",
|
|
9
9
|
"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.",
|
|
10
10
|
"packageManager": "yarn@3.2.2",
|
|
11
11
|
"sass": "styles.scss",
|
|
@@ -241,9 +241,9 @@
|
|
|
241
241
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
242
242
|
"@babel/runtime": "^7.22.6",
|
|
243
243
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
244
|
-
"@depict-ai/plp-styling": "^4.6.
|
|
245
|
-
"@depict-ai/types": "^5.6.
|
|
246
|
-
"@depict-ai/utilishared": "^2.6.
|
|
244
|
+
"@depict-ai/plp-styling": "^4.6.19",
|
|
245
|
+
"@depict-ai/types": "^5.6.17",
|
|
246
|
+
"@depict-ai/utilishared": "^2.6.17",
|
|
247
247
|
"solid-js": "^1.9.10"
|
|
248
248
|
},
|
|
249
249
|
"type": "module",
|
package/server/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.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.28";
|
|
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 => {
|
|
@@ -1555,7 +1555,14 @@ function $f8f375d6245ffff2$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1555
1555
|
return !rendering_delayed();
|
|
1556
1556
|
},
|
|
1557
1557
|
get children() {
|
|
1558
|
-
return $3hooq$solidjsweb.ssr($f8f375d6245ffff2$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "content-block-wrapper ".concat(final_spans().spans_whole_row ? "spans-whole-row" : "", " ").concat(final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""
|
|
1558
|
+
return $3hooq$solidjsweb.ssr($f8f375d6245ffff2$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "content-block-wrapper ".concat(final_spans().spans_whole_row ? "spans-whole-row" : "", " ").concat(final_spans().spans_multiple_rows ? "spans-multiple-rows" : "", " ").concat(block.aspect_ratio === 1.5 ? "has-explicit-aspect-ratio" : ""), $3hooq$solidjsweb.ssrAttribute("data-content-block-row", $3hooq$solidjsweb.escape(row(), true), false), $3hooq$solidjsweb.ssrStyle({
|
|
1559
|
+
"grid-column": "span ".concat(final_span_columns()),
|
|
1560
|
+
"grid-row": "span ".concat(final_span_rows()),
|
|
1561
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1562
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1563
|
+
}),
|
|
1564
|
+
[(0, $830518481649feb1$export$c500183c31c2b22e)]: final_span_columns()
|
|
1565
|
+
}), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent($f8f375d6245ffff2$var$RenderContent, {
|
|
1559
1566
|
get content() {
|
|
1560
1567
|
return block.content;
|
|
1561
1568
|
}
|
|
@@ -6936,6 +6943,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
6936
6943
|
router_: router_,
|
|
6937
6944
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
6938
6945
|
mediaUrl_: mediaUrl_,
|
|
6946
|
+
aspectRatio_: aspectRatio_,
|
|
6939
6947
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
6940
6948
|
imageResizer_: imageResizer_,
|
|
6941
6949
|
text_: text_,
|
|
@@ -6955,7 +6963,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
6955
6963
|
component: link_ ? "a" : "div",
|
|
6956
6964
|
"class": "d-standard-content-wrapper",
|
|
6957
6965
|
get style() {
|
|
6958
|
-
return aspectRatioWhenAloneInRow_() ? "--media-aspect-ratio: ".concat(aspectRatioWhenAloneInRow_()) : "";
|
|
6966
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? "--media-aspect-ratio: ".concat(aspectRatioWhenAloneInRow_()) : "";
|
|
6959
6967
|
},
|
|
6960
6968
|
get onClick() {
|
|
6961
6969
|
return $3hooq$depictaiutilisharedlatest.catchify(ev => link_ && router_.navigate_.go_to_({
|
|
@@ -7022,7 +7030,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
7022
7030
|
}
|
|
7023
7031
|
}));
|
|
7024
7032
|
}
|
|
7025
|
-
const $0c035bbe7e30b438$export$af2c67164f68e9e9 = content => {
|
|
7033
|
+
const $0c035bbe7e30b438$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
7026
7034
|
const {
|
|
7027
7035
|
link: link,
|
|
7028
7036
|
type: type,
|
|
@@ -7031,7 +7039,7 @@ const $0c035bbe7e30b438$export$af2c67164f68e9e9 = content => {
|
|
|
7031
7039
|
text_position: text_position,
|
|
7032
7040
|
cta: cta
|
|
7033
7041
|
} = content;
|
|
7034
|
-
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]);
|
|
7042
|
+
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, aspectRatio !== null && aspectRatio !== void 0 ? aspectRatio : null]);
|
|
7035
7043
|
};
|
|
7036
7044
|
function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
7037
7045
|
let hasSeenContentBlock = false;
|
|
@@ -7074,7 +7082,7 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
7074
7082
|
cta: cta
|
|
7075
7083
|
}
|
|
7076
7084
|
} = row;
|
|
7077
|
-
const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content);
|
|
7085
|
+
const componentCacheKey = $0c035bbe7e30b438$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
7078
7086
|
// 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
|
|
7079
7087
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
7080
7088
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -7085,6 +7093,9 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
7085
7093
|
mediaUrl_: url,
|
|
7086
7094
|
router_: router_,
|
|
7087
7095
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
7096
|
+
get aspectRatio_() {
|
|
7097
|
+
return row.aspect_ratio;
|
|
7098
|
+
},
|
|
7088
7099
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
7089
7100
|
...prev,
|
|
7090
7101
|
aspectRatios: {
|
|
@@ -7102,6 +7113,7 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
7102
7113
|
const contentBlock = {
|
|
7103
7114
|
span_columns: row.span_columns,
|
|
7104
7115
|
span_rows: row.span_rows,
|
|
7116
|
+
aspect_ratio: row.aspect_ratio,
|
|
7105
7117
|
position: row.position,
|
|
7106
7118
|
content: component
|
|
7107
7119
|
};
|
package/server/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.
|
|
14
|
+
export const version = "4.10.28";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -393,6 +393,7 @@ export function ImagePlaceholder(props: ImagePlaceholderBaseOptions & (ImagePlac
|
|
|
393
393
|
export type ContentBlock = {
|
|
394
394
|
span_columns: number;
|
|
395
395
|
span_rows: number;
|
|
396
|
+
aspect_ratio?: 1.5;
|
|
396
397
|
position: "left" | "center" | "right";
|
|
397
398
|
content: () => JSX.Element | Promise<JSX.Element>;
|
|
398
399
|
};
|
package/server/ES10/index.js
CHANGED
|
@@ -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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.28";
|
|
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 => {
|
|
@@ -1450,7 +1450,14 @@ function $ff7feae4dddd6073$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1450
1450
|
return !rendering_delayed();
|
|
1451
1451
|
},
|
|
1452
1452
|
get children() {
|
|
1453
|
-
return $b8hua$ssr($ff7feae4dddd6073$var$_tmpl$, $b8hua$ssrHydrationKey(), "content-block-wrapper ".concat(final_spans().spans_whole_row ? "spans-whole-row" : "", " ").concat(final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""
|
|
1453
|
+
return $b8hua$ssr($ff7feae4dddd6073$var$_tmpl$, $b8hua$ssrHydrationKey(), "content-block-wrapper ".concat(final_spans().spans_whole_row ? "spans-whole-row" : "", " ").concat(final_spans().spans_multiple_rows ? "spans-multiple-rows" : "", " ").concat(block.aspect_ratio === 1.5 ? "has-explicit-aspect-ratio" : ""), $b8hua$ssrAttribute("data-content-block-row", $b8hua$escape(row(), true), false), $b8hua$ssrStyle({
|
|
1454
|
+
"grid-column": "span ".concat(final_span_columns()),
|
|
1455
|
+
"grid-row": "span ".concat(final_span_rows()),
|
|
1456
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1457
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1458
|
+
}),
|
|
1459
|
+
[(0, $64d94dcaa058dc7b$export$c500183c31c2b22e)]: final_span_columns()
|
|
1460
|
+
}), $b8hua$escape($b8hua$createComponent($ff7feae4dddd6073$var$RenderContent, {
|
|
1454
1461
|
get content() {
|
|
1455
1462
|
return block.content;
|
|
1456
1463
|
}
|
|
@@ -6831,6 +6838,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6831
6838
|
router_: router_,
|
|
6832
6839
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
6833
6840
|
mediaUrl_: mediaUrl_,
|
|
6841
|
+
aspectRatio_: aspectRatio_,
|
|
6834
6842
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
6835
6843
|
imageResizer_: imageResizer_,
|
|
6836
6844
|
text_: text_,
|
|
@@ -6850,7 +6858,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6850
6858
|
component: link_ ? "a" : "div",
|
|
6851
6859
|
"class": "d-standard-content-wrapper",
|
|
6852
6860
|
get style() {
|
|
6853
|
-
return aspectRatioWhenAloneInRow_() ? "--media-aspect-ratio: ".concat(aspectRatioWhenAloneInRow_()) : "";
|
|
6861
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? "--media-aspect-ratio: ".concat(aspectRatioWhenAloneInRow_()) : "";
|
|
6854
6862
|
},
|
|
6855
6863
|
get onClick() {
|
|
6856
6864
|
return $b8hua$catchify(ev => link_ && router_.navigate_.go_to_({
|
|
@@ -6917,7 +6925,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6917
6925
|
}
|
|
6918
6926
|
}));
|
|
6919
6927
|
}
|
|
6920
|
-
const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = content => {
|
|
6928
|
+
const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
6921
6929
|
const {
|
|
6922
6930
|
link: link,
|
|
6923
6931
|
type: type,
|
|
@@ -6926,7 +6934,7 @@ const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = content => {
|
|
|
6926
6934
|
text_position: text_position,
|
|
6927
6935
|
cta: cta
|
|
6928
6936
|
} = content;
|
|
6929
|
-
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]);
|
|
6937
|
+
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, aspectRatio !== null && aspectRatio !== void 0 ? aspectRatio : null]);
|
|
6930
6938
|
};
|
|
6931
6939
|
function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
6932
6940
|
let hasSeenContentBlock = false;
|
|
@@ -6969,7 +6977,7 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6969
6977
|
cta: cta
|
|
6970
6978
|
}
|
|
6971
6979
|
} = row;
|
|
6972
|
-
const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content);
|
|
6980
|
+
const componentCacheKey = $12ff24fdc4b26d88$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
6973
6981
|
// 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
|
|
6974
6982
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
6975
6983
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -6980,6 +6988,9 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6980
6988
|
mediaUrl_: url,
|
|
6981
6989
|
router_: router_,
|
|
6982
6990
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
6991
|
+
get aspectRatio_() {
|
|
6992
|
+
return row.aspect_ratio;
|
|
6993
|
+
},
|
|
6983
6994
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
6984
6995
|
...prev,
|
|
6985
6996
|
aspectRatios: {
|
|
@@ -6997,6 +7008,7 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6997
7008
|
const contentBlock = {
|
|
6998
7009
|
span_columns: row.span_columns,
|
|
6999
7010
|
span_rows: row.span_rows,
|
|
7011
|
+
aspect_ratio: row.aspect_ratio,
|
|
7000
7012
|
position: row.position,
|
|
7001
7013
|
content: component
|
|
7002
7014
|
};
|
package/server/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.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.28";
|
|
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, ({
|
|
@@ -1479,7 +1479,14 @@ function $d92f338ba8f9da9b$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1479
1479
|
return !rendering_delayed();
|
|
1480
1480
|
},
|
|
1481
1481
|
get children() {
|
|
1482
|
-
return $5vyXB$solidjsweb.ssr($d92f338ba8f9da9b$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `content-block-wrapper ${final_spans().spans_whole_row ? "spans-whole-row" : ""} ${final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""}
|
|
1482
|
+
return $5vyXB$solidjsweb.ssr($d92f338ba8f9da9b$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `content-block-wrapper ${final_spans().spans_whole_row ? "spans-whole-row" : ""} ${final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""} ${block.aspect_ratio === 1.5 ? "has-explicit-aspect-ratio" : ""}`, $5vyXB$solidjsweb.ssrAttribute("data-content-block-row", $5vyXB$solidjsweb.escape(row(), true), false), $5vyXB$solidjsweb.ssrStyle({
|
|
1483
|
+
"grid-column": `span ${final_span_columns()}`,
|
|
1484
|
+
"grid-row": `span ${final_span_rows()}`,
|
|
1485
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1486
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1487
|
+
}),
|
|
1488
|
+
[(0, $75777da1687ba3f6$export$c500183c31c2b22e)]: final_span_columns()
|
|
1489
|
+
}), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent($d92f338ba8f9da9b$var$RenderContent, {
|
|
1483
1490
|
get content() {
|
|
1484
1491
|
return block.content;
|
|
1485
1492
|
}
|
|
@@ -6545,6 +6552,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
6545
6552
|
router_: router_,
|
|
6546
6553
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
6547
6554
|
mediaUrl_: mediaUrl_,
|
|
6555
|
+
aspectRatio_: aspectRatio_,
|
|
6548
6556
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
6549
6557
|
imageResizer_: imageResizer_,
|
|
6550
6558
|
text_: text_,
|
|
@@ -6564,7 +6572,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
6564
6572
|
component: link_ ? "a" : "div",
|
|
6565
6573
|
"class": "d-standard-content-wrapper",
|
|
6566
6574
|
get style() {
|
|
6567
|
-
return aspectRatioWhenAloneInRow_() ? `--media-aspect-ratio: ${aspectRatioWhenAloneInRow_()}` : "";
|
|
6575
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? `--media-aspect-ratio: ${aspectRatioWhenAloneInRow_()}` : "";
|
|
6568
6576
|
},
|
|
6569
6577
|
get onClick() {
|
|
6570
6578
|
return $5vyXB$depictaiutilisharedlatest.catchify(ev => link_ && router_.navigate_.go_to_({
|
|
@@ -6625,7 +6633,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
6625
6633
|
}
|
|
6626
6634
|
}));
|
|
6627
6635
|
}
|
|
6628
|
-
const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = content => {
|
|
6636
|
+
const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
6629
6637
|
const {
|
|
6630
6638
|
link: link,
|
|
6631
6639
|
type: type,
|
|
@@ -6634,7 +6642,7 @@ const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = content => {
|
|
|
6634
6642
|
text_position: text_position,
|
|
6635
6643
|
cta: cta
|
|
6636
6644
|
} = content;
|
|
6637
|
-
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
|
|
6645
|
+
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null, aspectRatio ?? null]);
|
|
6638
6646
|
};
|
|
6639
6647
|
function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
6640
6648
|
let hasSeenContentBlock = false;
|
|
@@ -6676,7 +6684,7 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6676
6684
|
cta: cta
|
|
6677
6685
|
}
|
|
6678
6686
|
} = row;
|
|
6679
|
-
const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content);
|
|
6687
|
+
const componentCacheKey = $0a80939bf0a1e9cc$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
6680
6688
|
// 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
|
|
6681
6689
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
6682
6690
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -6687,6 +6695,9 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6687
6695
|
mediaUrl_: url,
|
|
6688
6696
|
router_: router_,
|
|
6689
6697
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
6698
|
+
get aspectRatio_() {
|
|
6699
|
+
return row.aspect_ratio;
|
|
6700
|
+
},
|
|
6690
6701
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
6691
6702
|
...prev,
|
|
6692
6703
|
aspectRatios: {
|
|
@@ -6704,6 +6715,7 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6704
6715
|
const contentBlock = {
|
|
6705
6716
|
span_columns: row.span_columns,
|
|
6706
6717
|
span_rows: row.span_rows,
|
|
6718
|
+
aspect_ratio: row.aspect_ratio,
|
|
6707
6719
|
position: row.position,
|
|
6708
6720
|
content: component
|
|
6709
6721
|
};
|
package/server/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.
|
|
14
|
+
export const version = "4.10.28";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -393,6 +393,7 @@ export function ImagePlaceholder(props: ImagePlaceholderBaseOptions & (ImagePlac
|
|
|
393
393
|
export type ContentBlock = {
|
|
394
394
|
span_columns: number;
|
|
395
395
|
span_rows: number;
|
|
396
|
+
aspect_ratio?: 1.5;
|
|
396
397
|
position: "left" | "center" | "right";
|
|
397
398
|
content: () => JSX.Element | Promise<JSX.Element>;
|
|
398
399
|
};
|
package/server/latest/index.js
CHANGED
|
@@ -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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.28";
|
|
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, ({
|
|
@@ -1377,7 +1377,14 @@ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
1377
1377
|
return !rendering_delayed();
|
|
1378
1378
|
},
|
|
1379
1379
|
get children() {
|
|
1380
|
-
return $i7OB2$ssr($e7a7eb102ddc0c79$var$_tmpl$, $i7OB2$ssrHydrationKey(), `content-block-wrapper ${final_spans().spans_whole_row ? "spans-whole-row" : ""} ${final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""}
|
|
1380
|
+
return $i7OB2$ssr($e7a7eb102ddc0c79$var$_tmpl$, $i7OB2$ssrHydrationKey(), `content-block-wrapper ${final_spans().spans_whole_row ? "spans-whole-row" : ""} ${final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""} ${block.aspect_ratio === 1.5 ? "has-explicit-aspect-ratio" : ""}`, $i7OB2$ssrAttribute("data-content-block-row", $i7OB2$escape(row(), true), false), $i7OB2$ssrStyle({
|
|
1381
|
+
"grid-column": `span ${final_span_columns()}`,
|
|
1382
|
+
"grid-row": `span ${final_span_rows()}`,
|
|
1383
|
+
...(block.aspect_ratio === 1.5 && {
|
|
1384
|
+
"--content-block-aspect-ratio": block.aspect_ratio
|
|
1385
|
+
}),
|
|
1386
|
+
[(0, $6dee9211e57ac31a$export$c500183c31c2b22e)]: final_span_columns()
|
|
1387
|
+
}), $i7OB2$escape($i7OB2$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
|
|
1381
1388
|
get content() {
|
|
1382
1389
|
return block.content;
|
|
1383
1390
|
}
|
|
@@ -6443,6 +6450,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6443
6450
|
router_: router_,
|
|
6444
6451
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
6445
6452
|
mediaUrl_: mediaUrl_,
|
|
6453
|
+
aspectRatio_: aspectRatio_,
|
|
6446
6454
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
6447
6455
|
imageResizer_: imageResizer_,
|
|
6448
6456
|
text_: text_,
|
|
@@ -6462,7 +6470,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6462
6470
|
component: link_ ? "a" : "div",
|
|
6463
6471
|
"class": "d-standard-content-wrapper",
|
|
6464
6472
|
get style() {
|
|
6465
|
-
return aspectRatioWhenAloneInRow_() ? `--media-aspect-ratio: ${aspectRatioWhenAloneInRow_()}` : "";
|
|
6473
|
+
return aspectRatio_ === 1.5 ? "--media-aspect-ratio: 1.5" : aspectRatioWhenAloneInRow_() ? `--media-aspect-ratio: ${aspectRatioWhenAloneInRow_()}` : "";
|
|
6466
6474
|
},
|
|
6467
6475
|
get onClick() {
|
|
6468
6476
|
return $i7OB2$catchify(ev => link_ && router_.navigate_.go_to_({
|
|
@@ -6523,7 +6531,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6523
6531
|
}
|
|
6524
6532
|
}));
|
|
6525
6533
|
}
|
|
6526
|
-
const $486360b09f0d5729$export$af2c67164f68e9e9 = content => {
|
|
6534
|
+
const $486360b09f0d5729$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
6527
6535
|
const {
|
|
6528
6536
|
link: link,
|
|
6529
6537
|
type: type,
|
|
@@ -6532,7 +6540,7 @@ const $486360b09f0d5729$export$af2c67164f68e9e9 = content => {
|
|
|
6532
6540
|
text_position: text_position,
|
|
6533
6541
|
cta: cta
|
|
6534
6542
|
} = content;
|
|
6535
|
-
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null]);
|
|
6543
|
+
return JSON.stringify([link, type, url, text ?? null, text_position ?? null, cta ?? null, aspectRatio ?? null]);
|
|
6536
6544
|
};
|
|
6537
6545
|
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
6538
6546
|
let hasSeenContentBlock = false;
|
|
@@ -6574,7 +6582,7 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6574
6582
|
cta: cta
|
|
6575
6583
|
}
|
|
6576
6584
|
} = row;
|
|
6577
|
-
const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content);
|
|
6585
|
+
const componentCacheKey = $486360b09f0d5729$export$af2c67164f68e9e9(row.content, row.aspect_ratio);
|
|
6578
6586
|
// 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
|
|
6579
6587
|
const mediaCacheKey = JSON.stringify([link, type, url]);
|
|
6580
6588
|
let component = contentComponents.get(componentCacheKey);
|
|
@@ -6585,6 +6593,9 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6585
6593
|
mediaUrl_: url,
|
|
6586
6594
|
router_: router_,
|
|
6587
6595
|
aspectRatioWhenAloneInRow_: () => historyContentBlocks().aspectRatios[mediaCacheKey],
|
|
6596
|
+
get aspectRatio_() {
|
|
6597
|
+
return row.aspect_ratio;
|
|
6598
|
+
},
|
|
6588
6599
|
setAspectRatioWas_: aspectRatio => setHistoryContentBlocks(prev => ({
|
|
6589
6600
|
...prev,
|
|
6590
6601
|
aspectRatios: {
|
|
@@ -6602,6 +6613,7 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6602
6613
|
const contentBlock = {
|
|
6603
6614
|
span_columns: row.span_columns,
|
|
6604
6615
|
span_rows: row.span_rows,
|
|
6616
|
+
aspect_ratio: row.aspect_ratio,
|
|
6605
6617
|
position: row.position,
|
|
6606
6618
|
content: component
|
|
6607
6619
|
};
|