@depict-ai/ui 4.8.6 → 4.8.8
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 +9 -3
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +9 -3
- package/latest/index.cjs +9 -3
- package/latest/index.d.ts +1 -1
- package/latest/index.js +9 -3
- package/package.json +1 -1
- package/server/ES10/index.cjs +7 -1
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +7 -1
- package/server/latest/index.cjs +7 -1
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +7 -1
package/ES10/index.cjs
CHANGED
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.8";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $52FdA$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $52FdA$solidjs.createSignal(0);
|
|
@@ -16045,8 +16045,14 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16045
16045
|
mediaUrl_: mediaUrl_,
|
|
16046
16046
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
16047
16047
|
} = _ref;
|
|
16048
|
+
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
|
|
16048
16049
|
const [wrapperSize, setWrapperSize] = $52FdA$solidjs.createSignal();
|
|
16049
16050
|
const isImage = type_ === "image";
|
|
16051
|
+
const setAspectRatio = aspectRatio => {
|
|
16052
|
+
if (wroteAspectRatioToContainer) return;
|
|
16053
|
+
wroteAspectRatioToContainer = true;
|
|
16054
|
+
setAspectRatioWas_(aspectRatio);
|
|
16055
|
+
};
|
|
16050
16056
|
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjsweb.Dynamic), $52FdA$solidjsweb.mergeProps({
|
|
16051
16057
|
component: link_ ? "a" : "div",
|
|
16052
16058
|
"class": "d-standard-content-wrapper",
|
|
@@ -16081,7 +16087,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16081
16087
|
},
|
|
16082
16088
|
src: mediaUrl_,
|
|
16083
16089
|
"class": "d-standard-content",
|
|
16084
|
-
ref: el => el.addEventListener("load", $52FdA$depictaiutilisharedlatest.catchify(() =>
|
|
16090
|
+
ref: el => el.addEventListener("load", $52FdA$depictaiutilisharedlatest.catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
|
|
16085
16091
|
});
|
|
16086
16092
|
}
|
|
16087
16093
|
}), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Match), {
|
|
@@ -16090,7 +16096,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16090
16096
|
var _el$ = $52FdA$solidjsweb.getNextElement($c19709057a32b2e7$var$_tmpl$);
|
|
16091
16097
|
$52FdA$solidjsweb.use(element => {
|
|
16092
16098
|
const pageVisible = $e7a7d2fe8a8217d8$export$54299a3c81f5425();
|
|
16093
|
-
element.addEventListener("loadedmetadata", $52FdA$depictaiutilisharedlatest.catchify(() =>
|
|
16099
|
+
element.addEventListener("loadedmetadata", $52FdA$depictaiutilisharedlatest.catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
16094
16100
|
$52FdA$solidjs.createEffect(() => {
|
|
16095
16101
|
if (pageVisible()) element.play().catch(e => $52FdA$depictaiutilishared.dlog("Failed to play", e));else element.pause();
|
|
16096
16102
|
});
|
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.8.
|
|
14
|
+
export const version = "4.8.8";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
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.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.8";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $8tj43$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $8tj43$createSignal(0);
|
|
@@ -15941,8 +15941,14 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
15941
15941
|
mediaUrl_: mediaUrl_,
|
|
15942
15942
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
15943
15943
|
} = _ref;
|
|
15944
|
+
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
|
|
15944
15945
|
const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
|
|
15945
15946
|
const isImage = type_ === "image";
|
|
15947
|
+
const setAspectRatio = aspectRatio => {
|
|
15948
|
+
if (wroteAspectRatioToContainer) return;
|
|
15949
|
+
wroteAspectRatioToContainer = true;
|
|
15950
|
+
setAspectRatioWas_(aspectRatio);
|
|
15951
|
+
};
|
|
15946
15952
|
return $8tj43$createComponent((0, $8tj43$Dynamic), $8tj43$mergeProps({
|
|
15947
15953
|
component: link_ ? "a" : "div",
|
|
15948
15954
|
"class": "d-standard-content-wrapper",
|
|
@@ -15977,7 +15983,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
15977
15983
|
},
|
|
15978
15984
|
src: mediaUrl_,
|
|
15979
15985
|
"class": "d-standard-content",
|
|
15980
|
-
ref: el => el.addEventListener("load", $8tj43$catchify1(() =>
|
|
15986
|
+
ref: el => el.addEventListener("load", $8tj43$catchify1(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
|
|
15981
15987
|
});
|
|
15982
15988
|
}
|
|
15983
15989
|
}), $8tj43$createComponent((0, $8tj43$Match), {
|
|
@@ -15986,7 +15992,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
15986
15992
|
var _el$ = $8tj43$getNextElement($3b772ef9a35560fe$var$_tmpl$);
|
|
15987
15993
|
$8tj43$use(element => {
|
|
15988
15994
|
const pageVisible = $a35e6f680c5bbc60$export$54299a3c81f5425();
|
|
15989
|
-
element.addEventListener("loadedmetadata", $8tj43$catchify1(() =>
|
|
15995
|
+
element.addEventListener("loadedmetadata", $8tj43$catchify1(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
15990
15996
|
$8tj43$createEffect(() => {
|
|
15991
15997
|
if (pageVisible()) element.play().catch(e => $8tj43$dlog1("Failed to play", e));else element.pause();
|
|
15992
15998
|
});
|
package/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.8";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $gVhhF$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $gVhhF$solidjs.createSignal(0);
|
|
@@ -14998,8 +14998,14 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
14998
14998
|
mediaUrl_: mediaUrl_,
|
|
14999
14999
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
15000
15000
|
}) {
|
|
15001
|
+
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
|
|
15001
15002
|
const [wrapperSize, setWrapperSize] = $gVhhF$solidjs.createSignal();
|
|
15002
15003
|
const isImage = type_ === "image";
|
|
15004
|
+
const setAspectRatio = aspectRatio => {
|
|
15005
|
+
if (wroteAspectRatioToContainer) return;
|
|
15006
|
+
wroteAspectRatioToContainer = true;
|
|
15007
|
+
setAspectRatioWas_(aspectRatio);
|
|
15008
|
+
};
|
|
15003
15009
|
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjsweb.Dynamic), $gVhhF$solidjsweb.mergeProps({
|
|
15004
15010
|
component: link_ ? "a" : "div",
|
|
15005
15011
|
"class": "d-standard-content-wrapper",
|
|
@@ -15028,7 +15034,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15028
15034
|
sizeHeight: () => wrapperSize()?.[1]?.() || 0,
|
|
15029
15035
|
src: mediaUrl_,
|
|
15030
15036
|
"class": "d-standard-content",
|
|
15031
|
-
ref: el => el.addEventListener("load", $gVhhF$depictaiutilisharedlatest.catchify(() =>
|
|
15037
|
+
ref: el => el.addEventListener("load", $gVhhF$depictaiutilisharedlatest.catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
|
|
15032
15038
|
});
|
|
15033
15039
|
}
|
|
15034
15040
|
}), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Match), {
|
|
@@ -15037,7 +15043,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15037
15043
|
var _el$ = $gVhhF$solidjsweb.getNextElement($32c662f618f5d80d$var$_tmpl$);
|
|
15038
15044
|
$gVhhF$solidjsweb.use(element => {
|
|
15039
15045
|
const pageVisible = $55cbacb79d3e0cea$export$54299a3c81f5425();
|
|
15040
|
-
element.addEventListener("loadedmetadata", $gVhhF$depictaiutilisharedlatest.catchify(() =>
|
|
15046
|
+
element.addEventListener("loadedmetadata", $gVhhF$depictaiutilisharedlatest.catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
15041
15047
|
$gVhhF$solidjs.createEffect(() => {
|
|
15042
15048
|
if (pageVisible()) element.play().catch(e => $gVhhF$depictaiutilishared.dlog("Failed to play", e));else element.pause();
|
|
15043
15049
|
});
|
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.8.
|
|
14
|
+
export const version = "4.8.8";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify1, ListenableSet as $9H
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.8";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $9HbP8$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $9HbP8$createSignal(0);
|
|
@@ -14897,8 +14897,14 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14897
14897
|
mediaUrl_: mediaUrl_,
|
|
14898
14898
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
14899
14899
|
}) {
|
|
14900
|
+
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
|
|
14900
14901
|
const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
|
|
14901
14902
|
const isImage = type_ === "image";
|
|
14903
|
+
const setAspectRatio = aspectRatio => {
|
|
14904
|
+
if (wroteAspectRatioToContainer) return;
|
|
14905
|
+
wroteAspectRatioToContainer = true;
|
|
14906
|
+
setAspectRatioWas_(aspectRatio);
|
|
14907
|
+
};
|
|
14902
14908
|
return $9HbP8$createComponent((0, $9HbP8$Dynamic), $9HbP8$mergeProps({
|
|
14903
14909
|
component: link_ ? "a" : "div",
|
|
14904
14910
|
"class": "d-standard-content-wrapper",
|
|
@@ -14927,7 +14933,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14927
14933
|
sizeHeight: () => wrapperSize()?.[1]?.() || 0,
|
|
14928
14934
|
src: mediaUrl_,
|
|
14929
14935
|
"class": "d-standard-content",
|
|
14930
|
-
ref: el => el.addEventListener("load", $9HbP8$catchify1(() =>
|
|
14936
|
+
ref: el => el.addEventListener("load", $9HbP8$catchify1(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
|
|
14931
14937
|
});
|
|
14932
14938
|
}
|
|
14933
14939
|
}), $9HbP8$createComponent((0, $9HbP8$Match), {
|
|
@@ -14936,7 +14942,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14936
14942
|
var _el$ = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$);
|
|
14937
14943
|
$9HbP8$use(element => {
|
|
14938
14944
|
const pageVisible = $5e3d278ef4c80cd7$export$54299a3c81f5425();
|
|
14939
|
-
element.addEventListener("loadedmetadata", $9HbP8$catchify1(() =>
|
|
14945
|
+
element.addEventListener("loadedmetadata", $9HbP8$catchify1(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
14940
14946
|
$9HbP8$createEffect(() => {
|
|
14941
14947
|
if (pageVisible()) element.play().catch(e => $9HbP8$dlog1("Failed to play", e));else element.pause();
|
|
14942
14948
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.8",
|
|
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",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.8";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $3hooq$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $3hooq$solidjs.createSignal(0);
|
|
@@ -13406,8 +13406,14 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
13406
13406
|
mediaUrl_: mediaUrl_,
|
|
13407
13407
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
13408
13408
|
} = _ref;
|
|
13409
|
+
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
|
|
13409
13410
|
const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
|
|
13410
13411
|
const isImage = type_ === "image";
|
|
13412
|
+
const setAspectRatio = aspectRatio => {
|
|
13413
|
+
if (wroteAspectRatioToContainer) return;
|
|
13414
|
+
wroteAspectRatioToContainer = true;
|
|
13415
|
+
setAspectRatioWas_(aspectRatio);
|
|
13416
|
+
};
|
|
13411
13417
|
return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjsweb.Dynamic), $3hooq$solidjsweb.mergeProps({
|
|
13412
13418
|
component: link_ ? "a" : "div",
|
|
13413
13419
|
"class": "d-standard-content-wrapper",
|
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.8.
|
|
14
|
+
export const version = "4.8.8";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
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.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.8";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $b8hua$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $b8hua$createSignal(0);
|
|
@@ -13302,8 +13302,14 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
13302
13302
|
mediaUrl_: mediaUrl_,
|
|
13303
13303
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
13304
13304
|
} = _ref;
|
|
13305
|
+
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
|
|
13305
13306
|
const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
|
|
13306
13307
|
const isImage = type_ === "image";
|
|
13308
|
+
const setAspectRatio = aspectRatio => {
|
|
13309
|
+
if (wroteAspectRatioToContainer) return;
|
|
13310
|
+
wroteAspectRatioToContainer = true;
|
|
13311
|
+
setAspectRatioWas_(aspectRatio);
|
|
13312
|
+
};
|
|
13307
13313
|
return $b8hua$createComponent((0, $b8hua$Dynamic), $b8hua$mergeProps({
|
|
13308
13314
|
component: link_ ? "a" : "div",
|
|
13309
13315
|
"class": "d-standard-content-wrapper",
|
package/server/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.8";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $5vyXB$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $5vyXB$solidjs.createSignal(0);
|
|
@@ -12440,8 +12440,14 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
12440
12440
|
mediaUrl_: mediaUrl_,
|
|
12441
12441
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
12442
12442
|
}) {
|
|
12443
|
+
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
|
|
12443
12444
|
const [wrapperSize, setWrapperSize] = $5vyXB$solidjs.createSignal();
|
|
12444
12445
|
const isImage = type_ === "image";
|
|
12446
|
+
const setAspectRatio = aspectRatio => {
|
|
12447
|
+
if (wroteAspectRatioToContainer) return;
|
|
12448
|
+
wroteAspectRatioToContainer = true;
|
|
12449
|
+
setAspectRatioWas_(aspectRatio);
|
|
12450
|
+
};
|
|
12445
12451
|
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjsweb.Dynamic), $5vyXB$solidjsweb.mergeProps({
|
|
12446
12452
|
component: link_ ? "a" : "div",
|
|
12447
12453
|
"class": "d-standard-content-wrapper",
|
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.8.
|
|
14
|
+
export const version = "4.8.8";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify1, ListenableSet as $i7
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.8";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $i7OB2$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $i7OB2$createSignal(0);
|
|
@@ -12339,8 +12339,14 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
12339
12339
|
mediaUrl_: mediaUrl_,
|
|
12340
12340
|
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
12341
12341
|
}) {
|
|
12342
|
+
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
|
|
12342
12343
|
const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
|
|
12343
12344
|
const isImage = type_ === "image";
|
|
12345
|
+
const setAspectRatio = aspectRatio => {
|
|
12346
|
+
if (wroteAspectRatioToContainer) return;
|
|
12347
|
+
wroteAspectRatioToContainer = true;
|
|
12348
|
+
setAspectRatioWas_(aspectRatio);
|
|
12349
|
+
};
|
|
12344
12350
|
return $i7OB2$createComponent((0, $i7OB2$Dynamic), $i7OB2$mergeProps({
|
|
12345
12351
|
component: link_ ? "a" : "div",
|
|
12346
12352
|
"class": "d-standard-content-wrapper",
|