@depict-ai/ui 4.8.9 → 4.8.11

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.9";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.11";
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);
@@ -10217,7 +10217,7 @@ function $a162c9a08dc208c2$export$b288c38ae3fddb56(_ref) {
10217
10217
  var _sources, _sources$find;
10218
10218
  const owner = $52FdA$solidjs.getOwner();
10219
10219
  const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
10220
- if (executions > 30) {
10220
+ if (executions > 50) {
10221
10221
  var _signal$observers, _signal$observers$map;
10222
10222
  // We're probably in an infinite loop, let's just stop
10223
10223
  $52FdA$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
@@ -11620,10 +11620,12 @@ function $d6ed4dbb6507996d$export$b3ad617e9036868(_ref, input_field, alignment,
11620
11620
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
11621
11621
  const addToLeftValue = alignment & $d6ed4dbb6507996d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
11622
11622
  const leftWithoutScroll = rect.left + addToLeftValue;
11623
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
11623
11624
  setModalBodyStyle(old_value => ({
11624
11625
  ...old_value,
11626
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
11625
11627
  ...(alignment & $d6ed4dbb6507996d$export$3f238c96c45e6cc6 ? {
11626
- top: "".concat(rect.top + (includeScroll ? scrollY : 0), "px")
11628
+ top: "".concat(topValue >= 0 ? topValue : 0, "px")
11627
11629
  } : {}),
11628
11630
  ...(alignment & $d6ed4dbb6507996d$export$7895aadd1956b1c7 ? {
11629
11631
  left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
@@ -16075,7 +16077,10 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
16075
16077
  href: link_
16076
16078
  }, {
16077
16079
  get children() {
16078
- return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Switch), {
16080
+ return [$52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
16081
+ width: "100%",
16082
+ height: "100%"
16083
+ }), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Switch), {
16079
16084
  get children() {
16080
16085
  return [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Match), {
16081
16086
  when: isImage,
@@ -16114,7 +16119,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
16114
16119
  }
16115
16120
  })];
16116
16121
  }
16117
- });
16122
+ })];
16118
16123
  }
16119
16124
  }));
16120
16125
  }
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.9";
14
+ export const version = "4.8.11";
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.9";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.11";
14
14
  function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
15
15
  const [width, setWidth] = $8tj43$createSignal(0);
16
16
  const [height, setHeight] = $8tj43$createSignal(0);
@@ -10113,7 +10113,7 @@ function $44aa24b1bb793549$export$b288c38ae3fddb56(_ref) {
10113
10113
  var _sources, _sources$find;
10114
10114
  const owner = $8tj43$getOwner();
10115
10115
  const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
10116
- if (executions > 30) {
10116
+ if (executions > 50) {
10117
10117
  var _signal$observers, _signal$observers$map;
10118
10118
  // We're probably in an infinite loop, let's just stop
10119
10119
  $8tj43$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
@@ -11516,10 +11516,12 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(_ref, input_field, alignment,
11516
11516
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
11517
11517
  const addToLeftValue = alignment & $1308a7816c3d4f2d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
11518
11518
  const leftWithoutScroll = rect.left + addToLeftValue;
11519
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
11519
11520
  setModalBodyStyle(old_value => ({
11520
11521
  ...old_value,
11522
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
11521
11523
  ...(alignment & $1308a7816c3d4f2d$export$3f238c96c45e6cc6 ? {
11522
- top: "".concat(rect.top + (includeScroll ? scrollY : 0), "px")
11524
+ top: "".concat(topValue >= 0 ? topValue : 0, "px")
11523
11525
  } : {}),
11524
11526
  ...(alignment & $1308a7816c3d4f2d$export$7895aadd1956b1c7 ? {
11525
11527
  left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
@@ -15971,7 +15973,10 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
15971
15973
  href: link_
15972
15974
  }, {
15973
15975
  get children() {
15974
- return $8tj43$createComponent((0, $8tj43$Switch), {
15976
+ return [$8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
15977
+ width: "100%",
15978
+ height: "100%"
15979
+ }), $8tj43$createComponent((0, $8tj43$Switch), {
15975
15980
  get children() {
15976
15981
  return [$8tj43$createComponent((0, $8tj43$Match), {
15977
15982
  when: isImage,
@@ -16010,7 +16015,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
16010
16015
  }
16011
16016
  })];
16012
16017
  }
16013
- });
16018
+ })];
16014
16019
  }
16015
16020
  }));
16016
16021
  }
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.9";
111
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.11";
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);
@@ -9691,7 +9691,7 @@ function $70482f04605572e2$export$b288c38ae3fddb56({
9691
9691
  JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
9692
9692
  const owner = $gVhhF$solidjs.getOwner();
9693
9693
  const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
9694
- if (executions > 30) {
9694
+ if (executions > 50) {
9695
9695
  // We're probably in an infinite loop, let's just stop
9696
9696
  $gVhhF$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
9697
9697
  executions: executions,
@@ -10935,10 +10935,12 @@ function $fd463ff0edb29915$export$b3ad617e9036868({
10935
10935
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
10936
10936
  const addToLeftValue = alignment & $fd463ff0edb29915$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
10937
10937
  const leftWithoutScroll = rect.left + addToLeftValue;
10938
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
10938
10939
  setModalBodyStyle(old_value => ({
10939
10940
  ...old_value,
10941
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
10940
10942
  ...(alignment & $fd463ff0edb29915$export$3f238c96c45e6cc6 ? {
10941
- top: `${rect.top + (includeScroll ? scrollY : 0)}px`
10943
+ top: `${topValue >= 0 ? topValue : 0}px`
10942
10944
  } : {}),
10943
10945
  ...(alignment & $fd463ff0edb29915$export$7895aadd1956b1c7 ? {
10944
10946
  left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
@@ -15028,7 +15030,10 @@ function $32c662f618f5d80d$export$780a853d15174484({
15028
15030
  href: link_
15029
15031
  }, {
15030
15032
  get children() {
15031
- return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Switch), {
15033
+ return [$gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
15034
+ width: "100%",
15035
+ height: "100%"
15036
+ }), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Switch), {
15032
15037
  get children() {
15033
15038
  return [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Match), {
15034
15039
  when: isImage,
@@ -15061,7 +15066,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
15061
15066
  }
15062
15067
  })];
15063
15068
  }
15064
- });
15069
+ })];
15065
15070
  }
15066
15071
  }));
15067
15072
  }
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.9";
14
+ export const version = "4.8.11";
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.9";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.11";
11
11
  function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
12
12
  const [width, setWidth] = $9HbP8$createSignal(0);
13
13
  const [height, setHeight] = $9HbP8$createSignal(0);
@@ -9590,7 +9590,7 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({
9590
9590
  JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
9591
9591
  const owner = $9HbP8$getOwner();
9592
9592
  const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
9593
- if (executions > 30) {
9593
+ if (executions > 50) {
9594
9594
  // We're probably in an infinite loop, let's just stop
9595
9595
  $9HbP8$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
9596
9596
  executions: executions,
@@ -10834,10 +10834,12 @@ function $b6d5529b253681aa$export$b3ad617e9036868({
10834
10834
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
10835
10835
  const addToLeftValue = alignment & $b6d5529b253681aa$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
10836
10836
  const leftWithoutScroll = rect.left + addToLeftValue;
10837
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
10837
10838
  setModalBodyStyle(old_value => ({
10838
10839
  ...old_value,
10840
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
10839
10841
  ...(alignment & $b6d5529b253681aa$export$3f238c96c45e6cc6 ? {
10840
- top: `${rect.top + (includeScroll ? scrollY : 0)}px`
10842
+ top: `${topValue >= 0 ? topValue : 0}px`
10841
10843
  } : {}),
10842
10844
  ...(alignment & $b6d5529b253681aa$export$7895aadd1956b1c7 ? {
10843
10845
  left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
@@ -14927,7 +14929,10 @@ function $f916989c4b1be9f7$export$780a853d15174484({
14927
14929
  href: link_
14928
14930
  }, {
14929
14931
  get children() {
14930
- return $9HbP8$createComponent((0, $9HbP8$Switch), {
14932
+ return [$9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
14933
+ width: "100%",
14934
+ height: "100%"
14935
+ }), $9HbP8$createComponent((0, $9HbP8$Switch), {
14931
14936
  get children() {
14932
14937
  return [$9HbP8$createComponent((0, $9HbP8$Match), {
14933
14938
  when: isImage,
@@ -14960,7 +14965,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
14960
14965
  }
14961
14966
  })];
14962
14967
  }
14963
- });
14968
+ })];
14964
14969
  }
14965
14970
  }));
14966
14971
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.8.9",
3
+ "version": "4.8.11",
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.9";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.11";
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);
@@ -8056,7 +8056,7 @@ function $a162c9a08dc208c2$export$b288c38ae3fddb56(_ref) {
8056
8056
  var _sources, _sources$find;
8057
8057
  const owner = $3hooq$solidjs.getOwner();
8058
8058
  const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
8059
- if (executions > 30) {
8059
+ if (executions > 50) {
8060
8060
  var _signal$observers, _signal$observers$map;
8061
8061
  // We're probably in an infinite loop, let's just stop
8062
8062
  $3hooq$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
@@ -9567,10 +9567,12 @@ function $d6ed4dbb6507996d$export$b3ad617e9036868(_ref, input_field, alignment,
9567
9567
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
9568
9568
  const addToLeftValue = alignment & $d6ed4dbb6507996d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
9569
9569
  const leftWithoutScroll = rect.left + addToLeftValue;
9570
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
9570
9571
  setModalBodyStyle(old_value => ({
9571
9572
  ...old_value,
9573
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
9572
9574
  ...(alignment & $d6ed4dbb6507996d$export$3f238c96c45e6cc6 ? {
9573
- top: "".concat(rect.top + (includeScroll ? scrollY : 0), "px")
9575
+ top: "".concat(topValue >= 0 ? topValue : 0, "px")
9574
9576
  } : {}),
9575
9577
  ...(alignment & $d6ed4dbb6507996d$export$7895aadd1956b1c7 ? {
9576
9578
  left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
@@ -13435,7 +13437,10 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
13435
13437
  href: link_
13436
13438
  }, {
13437
13439
  get children() {
13438
- return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Switch), {
13440
+ return [$3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
13441
+ width: "100%",
13442
+ height: "100%"
13443
+ }), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Switch), {
13439
13444
  get children() {
13440
13445
  return [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Match), {
13441
13446
  when: isImage,
@@ -13460,7 +13465,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
13460
13465
  }
13461
13466
  })];
13462
13467
  }
13463
- });
13468
+ })];
13464
13469
  }
13465
13470
  }));
13466
13471
  }
@@ -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.9";
14
+ export const version = "4.8.11";
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.9";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.11";
14
14
  function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
15
15
  const [width, setWidth] = $b8hua$createSignal(0);
16
16
  const [height, setHeight] = $b8hua$createSignal(0);
@@ -7952,7 +7952,7 @@ function $44aa24b1bb793549$export$b288c38ae3fddb56(_ref) {
7952
7952
  var _sources, _sources$find;
7953
7953
  const owner = $b8hua$getOwner();
7954
7954
  const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
7955
- if (executions > 30) {
7955
+ if (executions > 50) {
7956
7956
  var _signal$observers, _signal$observers$map;
7957
7957
  // We're probably in an infinite loop, let's just stop
7958
7958
  $b8hua$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
@@ -9463,10 +9463,12 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(_ref, input_field, alignment,
9463
9463
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
9464
9464
  const addToLeftValue = alignment & $1308a7816c3d4f2d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
9465
9465
  const leftWithoutScroll = rect.left + addToLeftValue;
9466
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
9466
9467
  setModalBodyStyle(old_value => ({
9467
9468
  ...old_value,
9469
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
9468
9470
  ...(alignment & $1308a7816c3d4f2d$export$3f238c96c45e6cc6 ? {
9469
- top: "".concat(rect.top + (includeScroll ? scrollY : 0), "px")
9471
+ top: "".concat(topValue >= 0 ? topValue : 0, "px")
9470
9472
  } : {}),
9471
9473
  ...(alignment & $1308a7816c3d4f2d$export$7895aadd1956b1c7 ? {
9472
9474
  left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
@@ -13331,7 +13333,10 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
13331
13333
  href: link_
13332
13334
  }, {
13333
13335
  get children() {
13334
- return $b8hua$createComponent((0, $b8hua$Switch), {
13336
+ return [$b8hua$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
13337
+ width: "100%",
13338
+ height: "100%"
13339
+ }), $b8hua$createComponent((0, $b8hua$Switch), {
13335
13340
  get children() {
13336
13341
  return [$b8hua$createComponent((0, $b8hua$Match), {
13337
13342
  when: isImage,
@@ -13356,7 +13361,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
13356
13361
  }
13357
13362
  })];
13358
13363
  }
13359
- });
13364
+ })];
13360
13365
  }
13361
13366
  }));
13362
13367
  }
@@ -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.9";
111
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.11";
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);
@@ -7597,7 +7597,7 @@ function $70482f04605572e2$export$b288c38ae3fddb56({
7597
7597
  JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
7598
7598
  const owner = $5vyXB$solidjs.getOwner();
7599
7599
  const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
7600
- if (executions > 30) {
7600
+ if (executions > 50) {
7601
7601
  // We're probably in an infinite loop, let's just stop
7602
7602
  $5vyXB$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
7603
7603
  executions: executions,
@@ -8947,10 +8947,12 @@ function $fd463ff0edb29915$export$b3ad617e9036868({
8947
8947
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
8948
8948
  const addToLeftValue = alignment & $fd463ff0edb29915$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
8949
8949
  const leftWithoutScroll = rect.left + addToLeftValue;
8950
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
8950
8951
  setModalBodyStyle(old_value => ({
8951
8952
  ...old_value,
8953
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
8952
8954
  ...(alignment & $fd463ff0edb29915$export$3f238c96c45e6cc6 ? {
8953
- top: `${rect.top + (includeScroll ? scrollY : 0)}px`
8955
+ top: `${topValue >= 0 ? topValue : 0}px`
8954
8956
  } : {}),
8955
8957
  ...(alignment & $fd463ff0edb29915$export$7895aadd1956b1c7 ? {
8956
8958
  left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
@@ -12469,7 +12471,10 @@ function $32c662f618f5d80d$export$780a853d15174484({
12469
12471
  href: link_
12470
12472
  }, {
12471
12473
  get children() {
12472
- return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Switch), {
12474
+ return [$5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
12475
+ width: "100%",
12476
+ height: "100%"
12477
+ }), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Switch), {
12473
12478
  get children() {
12474
12479
  return [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Match), {
12475
12480
  when: isImage,
@@ -12488,7 +12493,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
12488
12493
  }
12489
12494
  })];
12490
12495
  }
12491
- });
12496
+ })];
12492
12497
  }
12493
12498
  }));
12494
12499
  }
@@ -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.9";
14
+ export const version = "4.8.11";
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.9";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.11";
11
11
  function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
12
12
  const [width, setWidth] = $i7OB2$createSignal(0);
13
13
  const [height, setHeight] = $i7OB2$createSignal(0);
@@ -7496,7 +7496,7 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({
7496
7496
  JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
7497
7497
  const owner = $i7OB2$getOwner();
7498
7498
  const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
7499
- if (executions > 30) {
7499
+ if (executions > 50) {
7500
7500
  // We're probably in an infinite loop, let's just stop
7501
7501
  $i7OB2$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
7502
7502
  executions: executions,
@@ -8846,10 +8846,12 @@ function $b6d5529b253681aa$export$b3ad617e9036868({
8846
8846
  const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
8847
8847
  const addToLeftValue = alignment & $b6d5529b253681aa$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
8848
8848
  const leftWithoutScroll = rect.left + addToLeftValue;
8849
+ const topValue = rect.top + (includeScroll ? scrollY : 0);
8849
8850
  setModalBodyStyle(old_value => ({
8850
8851
  ...old_value,
8852
+ // Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
8851
8853
  ...(alignment & $b6d5529b253681aa$export$3f238c96c45e6cc6 ? {
8852
- top: `${rect.top + (includeScroll ? scrollY : 0)}px`
8854
+ top: `${topValue >= 0 ? topValue : 0}px`
8853
8855
  } : {}),
8854
8856
  ...(alignment & $b6d5529b253681aa$export$7895aadd1956b1c7 ? {
8855
8857
  left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
@@ -12368,7 +12370,10 @@ function $f916989c4b1be9f7$export$780a853d15174484({
12368
12370
  href: link_
12369
12371
  }, {
12370
12372
  get children() {
12371
- return $i7OB2$createComponent((0, $i7OB2$Switch), {
12373
+ return [$i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
12374
+ width: "100%",
12375
+ height: "100%"
12376
+ }), $i7OB2$createComponent((0, $i7OB2$Switch), {
12372
12377
  get children() {
12373
12378
  return [$i7OB2$createComponent((0, $i7OB2$Match), {
12374
12379
  when: isImage,
@@ -12387,7 +12392,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
12387
12392
  }
12388
12393
  })];
12389
12394
  }
12390
- });
12395
+ })];
12391
12396
  }
12392
12397
  }));
12393
12398
  }