@depict-ai/ui 4.8.11 → 4.8.12

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
@@ -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.11";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.12";
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);
@@ -16053,6 +16053,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
16053
16053
  } = _ref;
16054
16054
  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
16055
16055
  const [wrapperSize, setWrapperSize] = $52FdA$solidjs.createSignal();
16056
+ const [hasLoaded, setHasLoaded] = $52FdA$solidjs.createSignal(false);
16056
16057
  const isImage = type_ === "image";
16057
16058
  const setAspectRatio = aspectRatio => {
16058
16059
  if (wroteAspectRatioToContainer) return;
@@ -16077,9 +16078,16 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
16077
16078
  href: link_
16078
16079
  }, {
16079
16080
  get children() {
16080
- return [$52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
16081
- width: "100%",
16082
- height: "100%"
16081
+ return [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
16082
+ get when() {
16083
+ return !hasLoaded();
16084
+ },
16085
+ get children() {
16086
+ return $52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
16087
+ width: "100%",
16088
+ height: "100%"
16089
+ });
16090
+ }
16083
16091
  }), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Switch), {
16084
16092
  get children() {
16085
16093
  return [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Match), {
@@ -16096,7 +16104,10 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
16096
16104
  },
16097
16105
  src: mediaUrl_,
16098
16106
  "class": "d-standard-content",
16099
- ref: el => el.addEventListener("load", $52FdA$depictaiutilisharedlatest.catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
16107
+ ref: el => el.addEventListener("load", $52FdA$depictaiutilisharedlatest.catchify(() => {
16108
+ setAspectRatio(el.naturalWidth / el.naturalHeight);
16109
+ setHasLoaded(true);
16110
+ }))
16100
16111
  });
16101
16112
  }
16102
16113
  }), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Match), {
@@ -16110,6 +16121,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
16110
16121
  if (pageVisible()) element.play().catch(e => $52FdA$depictaiutilishared.dlog("Failed to play", e));else element.pause();
16111
16122
  });
16112
16123
  }, _el$);
16124
+ _el$.addEventListener("playing", () => setHasLoaded(true));
16113
16125
  $52FdA$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
16114
16126
  $52FdA$solidjsweb.setProperty(_el$, "controls", false);
16115
16127
  $52FdA$solidjsweb.setProperty(_el$, "muted", true);
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.11";
14
+ export const version = "4.8.12";
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.11";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.12";
14
14
  function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
15
15
  const [width, setWidth] = $8tj43$createSignal(0);
16
16
  const [height, setHeight] = $8tj43$createSignal(0);
@@ -15949,6 +15949,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
15949
15949
  } = _ref;
15950
15950
  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
15951
15951
  const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
15952
+ const [hasLoaded, setHasLoaded] = $8tj43$createSignal(false);
15952
15953
  const isImage = type_ === "image";
15953
15954
  const setAspectRatio = aspectRatio => {
15954
15955
  if (wroteAspectRatioToContainer) return;
@@ -15973,9 +15974,16 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
15973
15974
  href: link_
15974
15975
  }, {
15975
15976
  get children() {
15976
- return [$8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
15977
- width: "100%",
15978
- height: "100%"
15977
+ return [$8tj43$createComponent((0, $8tj43$Show), {
15978
+ get when() {
15979
+ return !hasLoaded();
15980
+ },
15981
+ get children() {
15982
+ return $8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
15983
+ width: "100%",
15984
+ height: "100%"
15985
+ });
15986
+ }
15979
15987
  }), $8tj43$createComponent((0, $8tj43$Switch), {
15980
15988
  get children() {
15981
15989
  return [$8tj43$createComponent((0, $8tj43$Match), {
@@ -15992,7 +16000,10 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
15992
16000
  },
15993
16001
  src: mediaUrl_,
15994
16002
  "class": "d-standard-content",
15995
- ref: el => el.addEventListener("load", $8tj43$catchify1(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
16003
+ ref: el => el.addEventListener("load", $8tj43$catchify1(() => {
16004
+ setAspectRatio(el.naturalWidth / el.naturalHeight);
16005
+ setHasLoaded(true);
16006
+ }))
15996
16007
  });
15997
16008
  }
15998
16009
  }), $8tj43$createComponent((0, $8tj43$Match), {
@@ -16006,6 +16017,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
16006
16017
  if (pageVisible()) element.play().catch(e => $8tj43$dlog1("Failed to play", e));else element.pause();
16007
16018
  });
16008
16019
  }, _el$);
16020
+ _el$.addEventListener("playing", () => setHasLoaded(true));
16009
16021
  $8tj43$setAttribute(_el$, "src", mediaUrl_);
16010
16022
  $8tj43$setProperty(_el$, "controls", false);
16011
16023
  $8tj43$setProperty(_el$, "muted", true);
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.11";
111
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.12";
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);
@@ -15006,6 +15006,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
15006
15006
  }) {
15007
15007
  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
15008
15008
  const [wrapperSize, setWrapperSize] = $gVhhF$solidjs.createSignal();
15009
+ const [hasLoaded, setHasLoaded] = $gVhhF$solidjs.createSignal(false);
15009
15010
  const isImage = type_ === "image";
15010
15011
  const setAspectRatio = aspectRatio => {
15011
15012
  if (wroteAspectRatioToContainer) return;
@@ -15030,9 +15031,16 @@ function $32c662f618f5d80d$export$780a853d15174484({
15030
15031
  href: link_
15031
15032
  }, {
15032
15033
  get children() {
15033
- return [$gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
15034
- width: "100%",
15035
- height: "100%"
15034
+ return [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
15035
+ get when() {
15036
+ return !hasLoaded();
15037
+ },
15038
+ get children() {
15039
+ return $gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
15040
+ width: "100%",
15041
+ height: "100%"
15042
+ });
15043
+ }
15036
15044
  }), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Switch), {
15037
15045
  get children() {
15038
15046
  return [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Match), {
@@ -15043,7 +15051,10 @@ function $32c662f618f5d80d$export$780a853d15174484({
15043
15051
  sizeHeight: () => wrapperSize()?.[1]?.() || 0,
15044
15052
  src: mediaUrl_,
15045
15053
  "class": "d-standard-content",
15046
- ref: el => el.addEventListener("load", $gVhhF$depictaiutilisharedlatest.catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
15054
+ ref: el => el.addEventListener("load", $gVhhF$depictaiutilisharedlatest.catchify(() => {
15055
+ setAspectRatio(el.naturalWidth / el.naturalHeight);
15056
+ setHasLoaded(true);
15057
+ }))
15047
15058
  });
15048
15059
  }
15049
15060
  }), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Match), {
@@ -15057,6 +15068,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
15057
15068
  if (pageVisible()) element.play().catch(e => $gVhhF$depictaiutilishared.dlog("Failed to play", e));else element.pause();
15058
15069
  });
15059
15070
  }, _el$);
15071
+ _el$.addEventListener("playing", () => setHasLoaded(true));
15060
15072
  $gVhhF$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
15061
15073
  $gVhhF$solidjsweb.setProperty(_el$, "controls", false);
15062
15074
  $gVhhF$solidjsweb.setProperty(_el$, "muted", true);
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.11";
14
+ export const version = "4.8.12";
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.11";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.12";
11
11
  function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
12
12
  const [width, setWidth] = $9HbP8$createSignal(0);
13
13
  const [height, setHeight] = $9HbP8$createSignal(0);
@@ -14905,6 +14905,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
14905
14905
  }) {
14906
14906
  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
14907
14907
  const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
14908
+ const [hasLoaded, setHasLoaded] = $9HbP8$createSignal(false);
14908
14909
  const isImage = type_ === "image";
14909
14910
  const setAspectRatio = aspectRatio => {
14910
14911
  if (wroteAspectRatioToContainer) return;
@@ -14929,9 +14930,16 @@ function $f916989c4b1be9f7$export$780a853d15174484({
14929
14930
  href: link_
14930
14931
  }, {
14931
14932
  get children() {
14932
- return [$9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
14933
- width: "100%",
14934
- height: "100%"
14933
+ return [$9HbP8$createComponent((0, $9HbP8$Show), {
14934
+ get when() {
14935
+ return !hasLoaded();
14936
+ },
14937
+ get children() {
14938
+ return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
14939
+ width: "100%",
14940
+ height: "100%"
14941
+ });
14942
+ }
14935
14943
  }), $9HbP8$createComponent((0, $9HbP8$Switch), {
14936
14944
  get children() {
14937
14945
  return [$9HbP8$createComponent((0, $9HbP8$Match), {
@@ -14942,7 +14950,10 @@ function $f916989c4b1be9f7$export$780a853d15174484({
14942
14950
  sizeHeight: () => wrapperSize()?.[1]?.() || 0,
14943
14951
  src: mediaUrl_,
14944
14952
  "class": "d-standard-content",
14945
- ref: el => el.addEventListener("load", $9HbP8$catchify1(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
14953
+ ref: el => el.addEventListener("load", $9HbP8$catchify1(() => {
14954
+ setAspectRatio(el.naturalWidth / el.naturalHeight);
14955
+ setHasLoaded(true);
14956
+ }))
14946
14957
  });
14947
14958
  }
14948
14959
  }), $9HbP8$createComponent((0, $9HbP8$Match), {
@@ -14956,6 +14967,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
14956
14967
  if (pageVisible()) element.play().catch(e => $9HbP8$dlog1("Failed to play", e));else element.pause();
14957
14968
  });
14958
14969
  }, _el$);
14970
+ _el$.addEventListener("playing", () => setHasLoaded(true));
14959
14971
  $9HbP8$setAttribute(_el$, "src", mediaUrl_);
14960
14972
  $9HbP8$setProperty(_el$, "controls", false);
14961
14973
  $9HbP8$setProperty(_el$, "muted", true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.8.11",
3
+ "version": "4.8.12",
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",
@@ -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.11";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.12";
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);
@@ -13414,6 +13414,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
13414
13414
  } = _ref;
13415
13415
  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
13416
13416
  const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
13417
+ const [hasLoaded, setHasLoaded] = $3hooq$solidjs.createSignal(false);
13417
13418
  const isImage = type_ === "image";
13418
13419
  const setAspectRatio = aspectRatio => {
13419
13420
  if (wroteAspectRatioToContainer) return;
@@ -13437,9 +13438,16 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
13437
13438
  href: link_
13438
13439
  }, {
13439
13440
  get children() {
13440
- return [$3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
13441
- width: "100%",
13442
- height: "100%"
13441
+ return [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
13442
+ get when() {
13443
+ return !hasLoaded();
13444
+ },
13445
+ get children() {
13446
+ return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
13447
+ width: "100%",
13448
+ height: "100%"
13449
+ });
13450
+ }
13443
13451
  }), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Switch), {
13444
13452
  get children() {
13445
13453
  return [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Match), {
@@ -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.11";
14
+ export const version = "4.8.12";
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
  */
@@ -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.11";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.12";
14
14
  function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
15
15
  const [width, setWidth] = $b8hua$createSignal(0);
16
16
  const [height, setHeight] = $b8hua$createSignal(0);
@@ -13310,6 +13310,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
13310
13310
  } = _ref;
13311
13311
  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
13312
13312
  const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
13313
+ const [hasLoaded, setHasLoaded] = $b8hua$createSignal(false);
13313
13314
  const isImage = type_ === "image";
13314
13315
  const setAspectRatio = aspectRatio => {
13315
13316
  if (wroteAspectRatioToContainer) return;
@@ -13333,9 +13334,16 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
13333
13334
  href: link_
13334
13335
  }, {
13335
13336
  get children() {
13336
- return [$b8hua$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
13337
- width: "100%",
13338
- height: "100%"
13337
+ return [$b8hua$createComponent((0, $b8hua$Show), {
13338
+ get when() {
13339
+ return !hasLoaded();
13340
+ },
13341
+ get children() {
13342
+ return $b8hua$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
13343
+ width: "100%",
13344
+ height: "100%"
13345
+ });
13346
+ }
13339
13347
  }), $b8hua$createComponent((0, $b8hua$Switch), {
13340
13348
  get children() {
13341
13349
  return [$b8hua$createComponent((0, $b8hua$Match), {
@@ -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.11";
111
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.12";
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);
@@ -12448,6 +12448,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
12448
12448
  }) {
12449
12449
  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
12450
12450
  const [wrapperSize, setWrapperSize] = $5vyXB$solidjs.createSignal();
12451
+ const [hasLoaded, setHasLoaded] = $5vyXB$solidjs.createSignal(false);
12451
12452
  const isImage = type_ === "image";
12452
12453
  const setAspectRatio = aspectRatio => {
12453
12454
  if (wroteAspectRatioToContainer) return;
@@ -12471,9 +12472,16 @@ function $32c662f618f5d80d$export$780a853d15174484({
12471
12472
  href: link_
12472
12473
  }, {
12473
12474
  get children() {
12474
- return [$5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
12475
- width: "100%",
12476
- height: "100%"
12475
+ return [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
12476
+ get when() {
12477
+ return !hasLoaded();
12478
+ },
12479
+ get children() {
12480
+ return $5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
12481
+ width: "100%",
12482
+ height: "100%"
12483
+ });
12484
+ }
12477
12485
  }), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Switch), {
12478
12486
  get children() {
12479
12487
  return [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Match), {
@@ -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.11";
14
+ export const version = "4.8.12";
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
  */
@@ -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.11";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.12";
11
11
  function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
12
12
  const [width, setWidth] = $i7OB2$createSignal(0);
13
13
  const [height, setHeight] = $i7OB2$createSignal(0);
@@ -12347,6 +12347,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
12347
12347
  }) {
12348
12348
  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
12349
12349
  const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
12350
+ const [hasLoaded, setHasLoaded] = $i7OB2$createSignal(false);
12350
12351
  const isImage = type_ === "image";
12351
12352
  const setAspectRatio = aspectRatio => {
12352
12353
  if (wroteAspectRatioToContainer) return;
@@ -12370,9 +12371,16 @@ function $f916989c4b1be9f7$export$780a853d15174484({
12370
12371
  href: link_
12371
12372
  }, {
12372
12373
  get children() {
12373
- return [$i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
12374
- width: "100%",
12375
- height: "100%"
12374
+ return [$i7OB2$createComponent((0, $i7OB2$Show), {
12375
+ get when() {
12376
+ return !hasLoaded();
12377
+ },
12378
+ get children() {
12379
+ return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
12380
+ width: "100%",
12381
+ height: "100%"
12382
+ });
12383
+ }
12376
12384
  }), $i7OB2$createComponent((0, $i7OB2$Switch), {
12377
12385
  get children() {
12378
12386
  return [$i7OB2$createComponent((0, $i7OB2$Match), {