@depict-ai/ui 4.7.17 → 4.7.19

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
@@ -19,6 +19,7 @@ function $parcel$interopDefault(a) {
19
19
  return a && a.__esModule ? a.default : a;
20
20
  }
21
21
  $parcel$export(module.exports, "useProductCardIsVisible", () => $a52942afacbced93$export$80bb7300ce6a8be3);
22
+ $parcel$export(module.exports, "CurrentlyIntersectingContext", () => $a52942afacbced93$export$f223d69ed12f5fb7);
22
23
  $parcel$export(module.exports, "useExpandingContainerReactive", () => $d6d51b09cb2116a6$export$5bad61ecde080b1f);
23
24
  $parcel$export(module.exports, "LooksSliderOrGrid", () => $e57cd46536ad992e$export$2c9f9bf2092486aa);
24
25
  $parcel$export(module.exports, "LookCard", () => $47e3c3102c78121b$export$44809a8a3e867e30);
@@ -105,7 +106,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
105
106
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
106
107
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
107
108
  /*! Depict.ai search and product listing SDK */
108
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.17";
109
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.19";
109
110
 
110
111
  /**
111
112
  * Gets product_id (the thing we key the rendering on) from a display
@@ -347,7 +348,7 @@ function $76012c4468a53d1f$var$deep_equal(obj1, obj2) {
347
348
  }
348
349
  return true;
349
350
  }
350
- const $a52942afacbced93$var$CurrentlyIntersectingContext = /*@__PURE__*/$52FdA$solidjs.createContext();
351
+ const $a52942afacbced93$export$f223d69ed12f5fb7 = /*@__PURE__*/$52FdA$solidjs.createContext();
351
352
  function $a52942afacbced93$export$4a14175d33d81a96(_ref) {
352
353
  let {
353
354
  displays_by_key_: displays_by_key_,
@@ -355,20 +356,22 @@ function $a52942afacbced93$export$4a14175d33d81a96(_ref) {
355
356
  content_blocks_: content_blocks_,
356
357
  alwaysObserveCards_: alwaysObserveCards_
357
358
  } = _ref;
359
+ const targetToIndexMap_ = new Map();
360
+ const indexToTargetMap_ = new Map();
361
+ const [listenersForIntersecting, setListenersForIntersecting] = $52FdA$solidjs.createSignal(0);
362
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $52FdA$solidjs.createSignal(new Set(), {
363
+ equals: false
364
+ });
358
365
  if (0, $52FdA$solidjsweb.isServer) return {
359
366
  renderedDisplays_: $76012c4468a53d1f$export$43f0fb951fcb0c54({
360
367
  displays_by_key_: displays_by_key_,
361
368
  product_card_template_: product_card_template_,
362
369
  content_blocks_: content_blocks_
363
- })
370
+ }),
371
+ indexToTargetMap_: indexToTargetMap_,
372
+ currentlyIntersecting: currentlyIntersecting
364
373
  };
365
374
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
366
- const targetToIndexMap_ = new Map();
367
- const indexToTargetMap_ = new Map();
368
- const [listenersForIntersecting, setListenersForIntersecting] = $52FdA$solidjs.createSignal(0);
369
- const [currentlyIntersecting, setCurrentlyIntersecting] = $52FdA$solidjs.createSignal(new Set(), {
370
- equals: false
371
- });
372
375
  const shouldObserve = $52FdA$solidjs.createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
373
376
  const intersection_observer = new IntersectionObserver($52FdA$depictaiutilishared.catchify(records => {
374
377
  const intersectingValue = currentlyIntersecting();
@@ -387,7 +390,7 @@ function $a52942afacbced93$export$4a14175d33d81a96(_ref) {
387
390
  }
388
391
  setCurrentlyIntersecting(intersectingValue);
389
392
  }, "renderDisplays IO failed"));
390
- const renderedDisplays_ = $52FdA$solidjsweb.createComponent($a52942afacbced93$var$CurrentlyIntersectingContext.Provider, {
393
+ const renderedDisplays_ = $52FdA$solidjsweb.createComponent($a52942afacbced93$export$f223d69ed12f5fb7.Provider, {
391
394
  value: {
392
395
  currentlyIntersecting_: currentlyIntersecting,
393
396
  setIsListening_: setListenersForIntersecting
@@ -432,7 +435,7 @@ function $a52942afacbced93$export$80bb7300ce6a8be3() {
432
435
  const {
433
436
  setIsListening_: setIsListening_,
434
437
  currentlyIntersecting_: currentlyIntersecting_
435
- } = $52FdA$solidjs.useContext($a52942afacbced93$var$CurrentlyIntersectingContext) || {};
438
+ } = $52FdA$solidjs.useContext($a52942afacbced93$export$f223d69ed12f5fb7) || {};
436
439
  const getOurIndex = $b54645378dfc7280$export$e3faf4d95300054f();
437
440
  const isVisible = $52FdA$solidjs.createMemo(() => currentlyIntersecting_ === null || currentlyIntersecting_ === void 0 ? void 0 : currentlyIntersecting_().has(getOurIndex === null || getOurIndex === void 0 ? void 0 : getOurIndex()));
438
441
  setIsListening_ === null || setIsListening_ === void 0 || setIsListening_(prev => prev + 1);
package/ES10/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSX, Accessor, Signal, Setter } from "solid-js";
1
+ import { JSX, Accessor, Setter, Signal } from "solid-js";
2
2
  import { Display, useExpandingContainer, ColsAtSize, report, Amazing_Slider, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/ES10";
3
3
  import { SearchFilter, SearchRequestV3, SortModel } from "@depict-ai/types/api/SearchRequestV3";
4
4
  import { ContentLink, SearchResponse, SearchFilter as _SearchFilter1 } from "@depict-ai/types/api/SearchResponse";
@@ -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.7.17";
14
+ export const version = "4.7.19";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -52,6 +52,10 @@ export function useProductCardIndex(): Accessor<number> | undefined;
52
52
  * @param obj Anything to clone
53
53
  */
54
54
  export function promiseSafeStructuredClone<T>(obj: T): T;
55
+ export const CurrentlyIntersectingContext: import("solid-js").Context<{
56
+ currentlyIntersecting_: Accessor<Set<number>>;
57
+ setIsListening_: Setter<number>;
58
+ } | undefined>;
55
59
  /**
56
60
  * Returns an accessor that says if said product card is in the viewport or not, when ran within a product card. Throws if not ran within a product card.
57
61
  */
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
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.7.17";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.19";
14
14
 
15
15
  /**
16
16
  * Gets product_id (the thing we key the rendering on) from a display
@@ -252,7 +252,7 @@ function $2d7bad8684bc7f44$var$deep_equal(obj1, obj2) {
252
252
  }
253
253
  return true;
254
254
  }
255
- const $618bd53ea0a41cd4$var$CurrentlyIntersectingContext = /*@__PURE__*/$8tj43$createContext();
255
+ const $618bd53ea0a41cd4$export$f223d69ed12f5fb7 = /*@__PURE__*/$8tj43$createContext();
256
256
  function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
257
257
  let {
258
258
  displays_by_key_: displays_by_key_,
@@ -260,20 +260,22 @@ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
260
260
  content_blocks_: content_blocks_,
261
261
  alwaysObserveCards_: alwaysObserveCards_
262
262
  } = _ref;
263
+ const targetToIndexMap_ = new Map();
264
+ const indexToTargetMap_ = new Map();
265
+ const [listenersForIntersecting, setListenersForIntersecting] = $8tj43$createSignal(0);
266
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $8tj43$createSignal(new Set(), {
267
+ equals: false
268
+ });
263
269
  if (0, $8tj43$isServer) return {
264
270
  renderedDisplays_: $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
265
271
  displays_by_key_: displays_by_key_,
266
272
  product_card_template_: product_card_template_,
267
273
  content_blocks_: content_blocks_
268
- })
274
+ }),
275
+ indexToTargetMap_: indexToTargetMap_,
276
+ currentlyIntersecting: currentlyIntersecting
269
277
  };
270
278
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
271
- const targetToIndexMap_ = new Map();
272
- const indexToTargetMap_ = new Map();
273
- const [listenersForIntersecting, setListenersForIntersecting] = $8tj43$createSignal(0);
274
- const [currentlyIntersecting, setCurrentlyIntersecting] = $8tj43$createSignal(new Set(), {
275
- equals: false
276
- });
277
279
  const shouldObserve = $8tj43$createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
278
280
  const intersection_observer = new IntersectionObserver($8tj43$catchify(records => {
279
281
  const intersectingValue = currentlyIntersecting();
@@ -292,7 +294,7 @@ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
292
294
  }
293
295
  setCurrentlyIntersecting(intersectingValue);
294
296
  }, "renderDisplays IO failed"));
295
- const renderedDisplays_ = $8tj43$createComponent($618bd53ea0a41cd4$var$CurrentlyIntersectingContext.Provider, {
297
+ const renderedDisplays_ = $8tj43$createComponent($618bd53ea0a41cd4$export$f223d69ed12f5fb7.Provider, {
296
298
  value: {
297
299
  currentlyIntersecting_: currentlyIntersecting,
298
300
  setIsListening_: setListenersForIntersecting
@@ -337,7 +339,7 @@ function $618bd53ea0a41cd4$export$80bb7300ce6a8be3() {
337
339
  const {
338
340
  setIsListening_: setIsListening_,
339
341
  currentlyIntersecting_: currentlyIntersecting_
340
- } = $8tj43$useContext($618bd53ea0a41cd4$var$CurrentlyIntersectingContext) || {};
342
+ } = $8tj43$useContext($618bd53ea0a41cd4$export$f223d69ed12f5fb7) || {};
341
343
  const getOurIndex = $1e69163caedaab4e$export$e3faf4d95300054f();
342
344
  const isVisible = $8tj43$createMemo(() => currentlyIntersecting_ === null || currentlyIntersecting_ === void 0 ? void 0 : currentlyIntersecting_().has(getOurIndex === null || getOurIndex === void 0 ? void 0 : getOurIndex()));
343
345
  setIsListening_ === null || setIsListening_ === void 0 || setIsListening_(prev => prev + 1);
@@ -16268,4 +16270,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
16268
16270
  }, "Entire CategoryPage failed");
16269
16271
  }
16270
16272
  $8tj43$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
16271
- export { $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $697d8713dc82b9ab$export$44809a8a3e867e30 as LookCard, $ac571292d606f30b$export$7e1297a3a19f10d8 as PseudoRouter, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
16273
+ export { $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $618bd53ea0a41cd4$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $697d8713dc82b9ab$export$44809a8a3e867e30 as LookCard, $ac571292d606f30b$export$7e1297a3a19f10d8 as PseudoRouter, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
package/latest/index.cjs CHANGED
@@ -13,6 +13,7 @@ function $parcel$export(e, n, v, s) {
13
13
  });
14
14
  }
15
15
  $parcel$export(module.exports, "useProductCardIsVisible", () => $67155e1aeb7073f6$export$80bb7300ce6a8be3);
16
+ $parcel$export(module.exports, "CurrentlyIntersectingContext", () => $67155e1aeb7073f6$export$f223d69ed12f5fb7);
16
17
  $parcel$export(module.exports, "useExpandingContainerReactive", () => $4b455f60dadde8b8$export$5bad61ecde080b1f);
17
18
  $parcel$export(module.exports, "LooksSliderOrGrid", () => $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa);
18
19
  $parcel$export(module.exports, "LookCard", () => $ad882bbe664dbd53$export$44809a8a3e867e30);
@@ -99,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
99
100
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
100
101
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
101
102
  /*! Depict.ai search and product listing SDK */
102
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.17";
103
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.19";
103
104
 
104
105
  /**
105
106
  * Gets product_id (the thing we key the rendering on) from a display
@@ -337,27 +338,29 @@ function $a73063cc642f3e5f$var$deep_equal(obj1, obj2) {
337
338
  }
338
339
  return true;
339
340
  }
340
- const $67155e1aeb7073f6$var$CurrentlyIntersectingContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
341
+ const $67155e1aeb7073f6$export$f223d69ed12f5fb7 = /*@__PURE__*/$gVhhF$solidjs.createContext();
341
342
  function $67155e1aeb7073f6$export$4a14175d33d81a96({
342
343
  displays_by_key_: displays_by_key_,
343
344
  product_card_template_: product_card_template_,
344
345
  content_blocks_: content_blocks_,
345
346
  alwaysObserveCards_: alwaysObserveCards_
346
347
  }) {
348
+ const targetToIndexMap_ = new Map();
349
+ const indexToTargetMap_ = new Map();
350
+ const [listenersForIntersecting, setListenersForIntersecting] = $gVhhF$solidjs.createSignal(0);
351
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $gVhhF$solidjs.createSignal(new Set(), {
352
+ equals: false
353
+ });
347
354
  if (0, $gVhhF$solidjsweb.isServer) return {
348
355
  renderedDisplays_: $a73063cc642f3e5f$export$43f0fb951fcb0c54({
349
356
  displays_by_key_: displays_by_key_,
350
357
  product_card_template_: product_card_template_,
351
358
  content_blocks_: content_blocks_
352
- })
359
+ }),
360
+ indexToTargetMap_: indexToTargetMap_,
361
+ currentlyIntersecting: currentlyIntersecting
353
362
  };
354
363
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
355
- const targetToIndexMap_ = new Map();
356
- const indexToTargetMap_ = new Map();
357
- const [listenersForIntersecting, setListenersForIntersecting] = $gVhhF$solidjs.createSignal(0);
358
- const [currentlyIntersecting, setCurrentlyIntersecting] = $gVhhF$solidjs.createSignal(new Set(), {
359
- equals: false
360
- });
361
364
  const shouldObserve = $gVhhF$solidjs.createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
362
365
  const intersection_observer = new IntersectionObserver($gVhhF$depictaiutilishared.catchify(records => {
363
366
  const intersectingValue = currentlyIntersecting();
@@ -376,7 +379,7 @@ function $67155e1aeb7073f6$export$4a14175d33d81a96({
376
379
  }
377
380
  setCurrentlyIntersecting(intersectingValue);
378
381
  }, "renderDisplays IO failed"));
379
- const renderedDisplays_ = $gVhhF$solidjsweb.createComponent($67155e1aeb7073f6$var$CurrentlyIntersectingContext.Provider, {
382
+ const renderedDisplays_ = $gVhhF$solidjsweb.createComponent($67155e1aeb7073f6$export$f223d69ed12f5fb7.Provider, {
380
383
  value: {
381
384
  currentlyIntersecting_: currentlyIntersecting,
382
385
  setIsListening_: setListenersForIntersecting
@@ -421,7 +424,7 @@ function $67155e1aeb7073f6$export$80bb7300ce6a8be3() {
421
424
  const {
422
425
  setIsListening_: setIsListening_,
423
426
  currentlyIntersecting_: currentlyIntersecting_
424
- } = $gVhhF$solidjs.useContext($67155e1aeb7073f6$var$CurrentlyIntersectingContext) || {};
427
+ } = $gVhhF$solidjs.useContext($67155e1aeb7073f6$export$f223d69ed12f5fb7) || {};
425
428
  const getOurIndex = $129b9b9c010039d0$export$e3faf4d95300054f();
426
429
  const isVisible = $gVhhF$solidjs.createMemo(() => currentlyIntersecting_?.().has(getOurIndex?.()));
427
430
  setIsListening_?.(prev => prev + 1);
package/latest/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSX, Accessor, Signal, Setter } from "solid-js";
1
+ import { JSX, Accessor, Setter, Signal } from "solid-js";
2
2
  import { Display, useExpandingContainer, ColsAtSize, report, Amazing_Slider, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/latest";
3
3
  import { SearchFilter, SearchRequestV3, SortModel } from "@depict-ai/types/api/SearchRequestV3";
4
4
  import { ContentLink, SearchResponse, SearchFilter as _SearchFilter1 } from "@depict-ai/types/api/SearchResponse";
@@ -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.7.17";
14
+ export const version = "4.7.19";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -52,6 +52,10 @@ export function useProductCardIndex(): Accessor<number> | undefined;
52
52
  * @param obj Anything to clone
53
53
  */
54
54
  export function promiseSafeStructuredClone<T>(obj: T): T;
55
+ export const CurrentlyIntersectingContext: import("solid-js").Context<{
56
+ currentlyIntersecting_: Accessor<Set<number>>;
57
+ setIsListening_: Setter<number>;
58
+ } | undefined>;
55
59
  /**
56
60
  * Returns an accessor that says if said product card is in the viewport or not, when ran within a product card. Throws if not ran within a product card.
57
61
  */
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.7.17";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.19";
11
11
 
12
12
  /**
13
13
  * Gets product_id (the thing we key the rendering on) from a display
@@ -245,27 +245,29 @@ function $29ec7cddbe1d3484$var$deep_equal(obj1, obj2) {
245
245
  }
246
246
  return true;
247
247
  }
248
- const $f091294da861020c$var$CurrentlyIntersectingContext = /*@__PURE__*/$9HbP8$createContext();
248
+ const $f091294da861020c$export$f223d69ed12f5fb7 = /*@__PURE__*/$9HbP8$createContext();
249
249
  function $f091294da861020c$export$4a14175d33d81a96({
250
250
  displays_by_key_: displays_by_key_,
251
251
  product_card_template_: product_card_template_,
252
252
  content_blocks_: content_blocks_,
253
253
  alwaysObserveCards_: alwaysObserveCards_
254
254
  }) {
255
+ const targetToIndexMap_ = new Map();
256
+ const indexToTargetMap_ = new Map();
257
+ const [listenersForIntersecting, setListenersForIntersecting] = $9HbP8$createSignal(0);
258
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $9HbP8$createSignal(new Set(), {
259
+ equals: false
260
+ });
255
261
  if (0, $9HbP8$isServer) return {
256
262
  renderedDisplays_: $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
257
263
  displays_by_key_: displays_by_key_,
258
264
  product_card_template_: product_card_template_,
259
265
  content_blocks_: content_blocks_
260
- })
266
+ }),
267
+ indexToTargetMap_: indexToTargetMap_,
268
+ currentlyIntersecting: currentlyIntersecting
261
269
  };
262
270
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
263
- const targetToIndexMap_ = new Map();
264
- const indexToTargetMap_ = new Map();
265
- const [listenersForIntersecting, setListenersForIntersecting] = $9HbP8$createSignal(0);
266
- const [currentlyIntersecting, setCurrentlyIntersecting] = $9HbP8$createSignal(new Set(), {
267
- equals: false
268
- });
269
271
  const shouldObserve = $9HbP8$createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
270
272
  const intersection_observer = new IntersectionObserver($9HbP8$catchify(records => {
271
273
  const intersectingValue = currentlyIntersecting();
@@ -284,7 +286,7 @@ function $f091294da861020c$export$4a14175d33d81a96({
284
286
  }
285
287
  setCurrentlyIntersecting(intersectingValue);
286
288
  }, "renderDisplays IO failed"));
287
- const renderedDisplays_ = $9HbP8$createComponent($f091294da861020c$var$CurrentlyIntersectingContext.Provider, {
289
+ const renderedDisplays_ = $9HbP8$createComponent($f091294da861020c$export$f223d69ed12f5fb7.Provider, {
288
290
  value: {
289
291
  currentlyIntersecting_: currentlyIntersecting,
290
292
  setIsListening_: setListenersForIntersecting
@@ -329,7 +331,7 @@ function $f091294da861020c$export$80bb7300ce6a8be3() {
329
331
  const {
330
332
  setIsListening_: setIsListening_,
331
333
  currentlyIntersecting_: currentlyIntersecting_
332
- } = $9HbP8$useContext($f091294da861020c$var$CurrentlyIntersectingContext) || {};
334
+ } = $9HbP8$useContext($f091294da861020c$export$f223d69ed12f5fb7) || {};
333
335
  const getOurIndex = $b6440e72ed83671a$export$e3faf4d95300054f();
334
336
  const isVisible = $9HbP8$createMemo(() => currentlyIntersecting_?.().has(getOurIndex?.()));
335
337
  setIsListening_?.(prev => prev + 1);
@@ -15198,4 +15200,4 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
15198
15200
  }, "Entire CategoryPage failed");
15199
15201
  }
15200
15202
  $9HbP8$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
15201
- export { $f091294da861020c$export$80bb7300ce6a8be3 as useProductCardIsVisible, $24e27fab9c821b86$export$5bad61ecde080b1f as useExpandingContainerReactive, $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSliderOrGrid, $28ee4f7db3cc44b8$export$44809a8a3e867e30 as LookCard, $4fd2ba03703a7d92$export$7e1297a3a19f10d8 as PseudoRouter, $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $70bb27cc6be01fc7$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $b7436a6d1fd64e3b$export$240ecf5363d76c0f as ExtraSentryContextProvider, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField, $feffae76d8dc0135$export$5b7c3ce0ebe51f86 as BreadCrumbs, $feffae76d8dc0135$export$de035477d6fef996 as QuickLinks, $442f32a4d80abbde$export$e2bf8ce7779e827e as CategoryPage };
15203
+ export { $f091294da861020c$export$80bb7300ce6a8be3 as useProductCardIsVisible, $f091294da861020c$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $24e27fab9c821b86$export$5bad61ecde080b1f as useExpandingContainerReactive, $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSliderOrGrid, $28ee4f7db3cc44b8$export$44809a8a3e867e30 as LookCard, $4fd2ba03703a7d92$export$7e1297a3a19f10d8 as PseudoRouter, $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $70bb27cc6be01fc7$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $b7436a6d1fd64e3b$export$240ecf5363d76c0f as ExtraSentryContextProvider, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField, $feffae76d8dc0135$export$5b7c3ce0ebe51f86 as BreadCrumbs, $feffae76d8dc0135$export$de035477d6fef996 as QuickLinks, $442f32a4d80abbde$export$e2bf8ce7779e827e as CategoryPage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.7.17",
3
+ "version": "4.7.19",
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",
@@ -105,7 +105,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
105
105
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
106
106
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
107
107
  /*! Depict.ai search and product listing SDK */
108
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.17";
108
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.18";
109
109
 
110
110
  /**
111
111
  * Gets product_id (the thing we key the rendering on) from a display
@@ -355,20 +355,22 @@ function $a52942afacbced93$export$4a14175d33d81a96(_ref) {
355
355
  content_blocks_: content_blocks_,
356
356
  alwaysObserveCards_: alwaysObserveCards_
357
357
  } = _ref;
358
+ const targetToIndexMap_ = new Map();
359
+ const indexToTargetMap_ = new Map();
360
+ const [listenersForIntersecting, setListenersForIntersecting] = $3hooq$solidjs.createSignal(0);
361
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $3hooq$solidjs.createSignal(new Set(), {
362
+ equals: false
363
+ });
358
364
  if (0, $3hooq$solidjsweb.isServer) return {
359
365
  renderedDisplays_: $76012c4468a53d1f$export$43f0fb951fcb0c54({
360
366
  displays_by_key_: displays_by_key_,
361
367
  product_card_template_: product_card_template_,
362
368
  content_blocks_: content_blocks_
363
- })
369
+ }),
370
+ indexToTargetMap_: indexToTargetMap_,
371
+ currentlyIntersecting: currentlyIntersecting
364
372
  };
365
373
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
366
- const targetToIndexMap_ = new Map();
367
- const indexToTargetMap_ = new Map();
368
- const [listenersForIntersecting, setListenersForIntersecting] = $3hooq$solidjs.createSignal(0);
369
- const [currentlyIntersecting, setCurrentlyIntersecting] = $3hooq$solidjs.createSignal(new Set(), {
370
- equals: false
371
- });
372
374
  const shouldObserve = $3hooq$solidjs.createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
373
375
  const intersection_observer = new IntersectionObserver($3hooq$depictaiutilishared.catchify(records => {
374
376
  const intersectingValue = currentlyIntersecting();
@@ -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.7.17";
14
+ export const version = "4.7.18";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
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.7.17";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.18";
14
14
 
15
15
  /**
16
16
  * Gets product_id (the thing we key the rendering on) from a display
@@ -260,20 +260,22 @@ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
260
260
  content_blocks_: content_blocks_,
261
261
  alwaysObserveCards_: alwaysObserveCards_
262
262
  } = _ref;
263
+ const targetToIndexMap_ = new Map();
264
+ const indexToTargetMap_ = new Map();
265
+ const [listenersForIntersecting, setListenersForIntersecting] = $b8hua$createSignal(0);
266
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $b8hua$createSignal(new Set(), {
267
+ equals: false
268
+ });
263
269
  if (0, $b8hua$isServer) return {
264
270
  renderedDisplays_: $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
265
271
  displays_by_key_: displays_by_key_,
266
272
  product_card_template_: product_card_template_,
267
273
  content_blocks_: content_blocks_
268
- })
274
+ }),
275
+ indexToTargetMap_: indexToTargetMap_,
276
+ currentlyIntersecting: currentlyIntersecting
269
277
  };
270
278
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
271
- const targetToIndexMap_ = new Map();
272
- const indexToTargetMap_ = new Map();
273
- const [listenersForIntersecting, setListenersForIntersecting] = $b8hua$createSignal(0);
274
- const [currentlyIntersecting, setCurrentlyIntersecting] = $b8hua$createSignal(new Set(), {
275
- equals: false
276
- });
277
279
  const shouldObserve = $b8hua$createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
278
280
  const intersection_observer = new IntersectionObserver($b8hua$catchify(records => {
279
281
  const intersectingValue = currentlyIntersecting();
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
99
99
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
100
100
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.17";
102
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.18";
103
103
 
104
104
  /**
105
105
  * Gets product_id (the thing we key the rendering on) from a display
@@ -344,20 +344,22 @@ function $67155e1aeb7073f6$export$4a14175d33d81a96({
344
344
  content_blocks_: content_blocks_,
345
345
  alwaysObserveCards_: alwaysObserveCards_
346
346
  }) {
347
+ const targetToIndexMap_ = new Map();
348
+ const indexToTargetMap_ = new Map();
349
+ const [listenersForIntersecting, setListenersForIntersecting] = $5vyXB$solidjs.createSignal(0);
350
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $5vyXB$solidjs.createSignal(new Set(), {
351
+ equals: false
352
+ });
347
353
  if (0, $5vyXB$solidjsweb.isServer) return {
348
354
  renderedDisplays_: $a73063cc642f3e5f$export$43f0fb951fcb0c54({
349
355
  displays_by_key_: displays_by_key_,
350
356
  product_card_template_: product_card_template_,
351
357
  content_blocks_: content_blocks_
352
- })
358
+ }),
359
+ indexToTargetMap_: indexToTargetMap_,
360
+ currentlyIntersecting: currentlyIntersecting
353
361
  };
354
362
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
355
- const targetToIndexMap_ = new Map();
356
- const indexToTargetMap_ = new Map();
357
- const [listenersForIntersecting, setListenersForIntersecting] = $5vyXB$solidjs.createSignal(0);
358
- const [currentlyIntersecting, setCurrentlyIntersecting] = $5vyXB$solidjs.createSignal(new Set(), {
359
- equals: false
360
- });
361
363
  const shouldObserve = $5vyXB$solidjs.createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
362
364
  const intersection_observer = new IntersectionObserver($5vyXB$depictaiutilishared.catchify(records => {
363
365
  const intersectingValue = currentlyIntersecting();
@@ -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.7.17";
14
+ export const version = "4.7.18";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -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.7.17";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.18";
11
11
 
12
12
  /**
13
13
  * Gets product_id (the thing we key the rendering on) from a display
@@ -252,20 +252,22 @@ function $f091294da861020c$export$4a14175d33d81a96({
252
252
  content_blocks_: content_blocks_,
253
253
  alwaysObserveCards_: alwaysObserveCards_
254
254
  }) {
255
+ const targetToIndexMap_ = new Map();
256
+ const indexToTargetMap_ = new Map();
257
+ const [listenersForIntersecting, setListenersForIntersecting] = $i7OB2$createSignal(0);
258
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $i7OB2$createSignal(new Set(), {
259
+ equals: false
260
+ });
255
261
  if (0, $i7OB2$isServer) return {
256
262
  renderedDisplays_: $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
257
263
  displays_by_key_: displays_by_key_,
258
264
  product_card_template_: product_card_template_,
259
265
  content_blocks_: content_blocks_
260
- })
266
+ }),
267
+ indexToTargetMap_: indexToTargetMap_,
268
+ currentlyIntersecting: currentlyIntersecting
261
269
  };
262
270
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
263
- const targetToIndexMap_ = new Map();
264
- const indexToTargetMap_ = new Map();
265
- const [listenersForIntersecting, setListenersForIntersecting] = $i7OB2$createSignal(0);
266
- const [currentlyIntersecting, setCurrentlyIntersecting] = $i7OB2$createSignal(new Set(), {
267
- equals: false
268
- });
269
271
  const shouldObserve = $i7OB2$createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
270
272
  const intersection_observer = new IntersectionObserver($i7OB2$catchify(records => {
271
273
  const intersectingValue = currentlyIntersecting();