@depict-ai/ui 1.4.20 → 1.4.22

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.
@@ -1,6 +1,5 @@
1
1
  var $5vyXB$depictaiutilishared = require("@depict-ai/utilishared/latest");
2
2
  var $5vyXB$solidjsweb = require("solid-js/web");
3
- var $5vyXB$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest/latest");
4
3
  var $5vyXB$solidjs = require("solid-js");
5
4
  require("../../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
6
5
  function $parcel$export(e, n, v, s) {
@@ -59,10 +58,10 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
59
58
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
60
59
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
61
60
  /*! Depict.ai search and product listing SDK */
62
- const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.20";
61
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.22";
63
62
  function $19950faaac026e09$export$e6fffe67d4cdd848(whatToWatch) {
64
63
  const [size, setSize] = $5vyXB$solidjs.createSignal(0);
65
- const resizeObserver = new ResizeObserver($5vyXB$depictaiutilisharedlatest.catchify(records => {
64
+ const resizeObserver = new ResizeObserver($5vyXB$depictaiutilishared.catchify(records => {
66
65
  for (let j = 0; j < records.length; j++) {
67
66
  const {
68
67
  width: width
@@ -2804,6 +2803,7 @@ function $3f08fe2992a2a8ca$export$5e4aed86c12acdd9({
2804
2803
  last_loaded = +new Date();
2805
2804
  is_first_load = true;
2806
2805
  });
2806
+ // percentage_in_view_ has equals: false so it should update even when set to the same value. That is to make sure that if the user bounces around below the "viewport" of our product listing we still start fetching as soon as is_loading_more becomes false again and we get IntersectionObserverEntries
2807
2807
  $5vyXB$solidjs.createEffect($5vyXB$depictaiutilishared.catchify(async () => {
2808
2808
  const be_above_percentage = is_first_load ? 50 : 75; // if first load, load earlier
2809
2809
  if (percentage_in_view_() < be_above_percentage || is_loading_more) return;
@@ -2875,6 +2875,8 @@ function $4117463e2939f5f4$export$63dd0350f8559dda({
2875
2875
  // No product card in view and not after last card, assume first card
2876
2876
  return 0;
2877
2877
  return last / displays_by_key_().size * 100;
2878
+ }, undefined, {
2879
+ equals: false
2878
2880
  });
2879
2881
  }
2880
2882
 
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "1.4.20";
10
+ export const version = "1.4.22";
11
11
  /**
12
12
  * Returns an accessor that will update when the size of the provided element changes, to be used with ResponsiveImg
13
13
  */