@depict-ai/ui 2.1.10 → 2.1.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
@@ -76,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
76
76
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
77
77
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
78
78
  /*! Depict.ai search and product listing SDK */
79
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.10";
79
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.12";
80
80
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
81
81
  const $a68b73fd7ba0853f$var$fallback_token = "";
82
82
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -342,12 +342,12 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
342
342
  if (listingContext) listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol] = newStack;
343
343
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
344
344
  const start = performance.now();
345
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
345
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
346
346
  for (const fn of newStack) {
347
347
  newStack.delete(fn);
348
348
  fn();
349
349
  const timeTaken = performance.now() - start;
350
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
350
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
351
351
  // There's still work to be done but no time, so schedule another idle callback
352
352
  processStackWhenIdle();
353
353
  return;
@@ -356,8 +356,8 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
356
356
  // Stack is empty
357
357
  if (listingContext) delete listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol];
358
358
  }, {
359
- timeout: 5000
360
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
359
+ timeout: 15000
360
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
361
361
  );
362
362
 
363
363
  processStackWhenIdle();
@@ -853,11 +853,10 @@ class $95e4006e1dcb5b72$export$aa14a9f43128f61f extends $95e4006e1dcb5b72$export
853
853
  });
854
854
  }
855
855
  }
856
- const $1b3cf201cdd38687$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
856
+ const $1b3cf201cdd38687$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><!$><!/><!$><!/>`);
857
857
  function $1b3cf201cdd38687$export$b69d0d92862de18b(props) {
858
858
  return $52FdA$solidjs.ErrorBoundary({
859
859
  fallback(err, retry) {
860
- var _props$on_error_;
861
860
  const {
862
861
  message_: message_,
863
862
  severity_: severity_
@@ -867,10 +866,17 @@ function $1b3cf201cdd38687$export$b69d0d92862de18b(props) {
867
866
  console.error(err.cause);
868
867
  message = "".concat(message, ": ").concat(err.message);
869
868
  } else $52FdA$depictaiutilishared.report([err, message_], severity_);
870
- (_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 || _props$on_error_.call(props, retry);
871
869
  return (() => {
872
- const _el$ = $52FdA$solidjsweb.getNextElement($1b3cf201cdd38687$var$_tmpl$);
873
- $52FdA$solidjsweb.insert(_el$, message);
870
+ const _el$ = $52FdA$solidjsweb.getNextElement($1b3cf201cdd38687$var$_tmpl$),
871
+ _el$2 = _el$.firstChild,
872
+ [_el$3, _co$] = $52FdA$solidjsweb.getNextMarker(_el$2.nextSibling),
873
+ _el$4 = _el$3.nextSibling,
874
+ [_el$5, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$4.nextSibling);
875
+ $52FdA$solidjsweb.insert(_el$, message, _el$3, _co$);
876
+ $52FdA$solidjsweb.insert(_el$, () => {
877
+ var _props$on_error_;
878
+ return (_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 ? void 0 : _props$on_error_.call(props, retry);
879
+ }, _el$5, _co$2);
874
880
  $52FdA$solidjsweb.effect(_$p => {
875
881
  var _props$class_list_;
876
882
  return $52FdA$solidjsweb.classList(_el$, Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || []), _$p);
package/ES10/index.d.ts CHANGED
@@ -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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.12";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
@@ -20,7 +20,7 @@ export function SentryErrorBoundary(props: {
20
20
  children: JSX.Element;
21
21
  message_: string;
22
22
  severity_: Parameters<typeof report>[1];
23
- on_error_?: (retry: VoidFunction) => void;
23
+ on_error_?: (retry: VoidFunction) => JSX.Element | void;
24
24
  class_list_?: string[];
25
25
  }): JSX.Element;
26
26
  /**
package/ES10/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { add_to_version_info as $8tj43$add_to_version_info, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, dlog as $8tj43$dlog, queueMacroTask as $8tj43$queueMacroTask, catchify as $8tj43$catchify, is_safari as $8tj43$is_safari, observer as $8tj43$observer, dwarn as $8tj43$dwarn, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, slider_fading_factory as $8tj43$slider_fading_factory, slider_fractional_factory as $8tj43$slider_fractional_factory, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, useExpandingContainer as $8tj43$useExpandingContainer, standard_price_format as $8tj43$standard_price_format, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, fetch_recs as $8tj43$fetch_recs, snakeCasifyObject as $8tj43$snakeCasifyObject, instant_exec_on_suspect_history_change as $8tj43$instant_exec_on_suspect_history_change, base_url as $8tj43$base_url, get_depict_id as $8tj43$get_depict_id, get_user_id as $8tj43$get_user_id, get_session_id as $8tj43$get_session_id, make_url_with_query_params as $8tj43$make_url_with_query_params, fetch_retry as $8tj43$fetch_retry, add_version_query_params as $8tj43$add_version_query_params, sort_obj as $8tj43$sort_obj, edit_current_page_meta_tags as $8tj43$edit_current_page_meta_tags, javascript_media_query as $8tj43$javascript_media_query, use_href_accessor as $8tj43$use_href_accessor, is_debug as $8tj43$is_debug, make_asyncIterable_exiter as $8tj43$make_asyncIterable_exiter, href_change_ipns as $8tj43$href_change_ipns, ContainedImage as $8tj43$ContainedImage, buildThresholdList as $8tj43$buildThresholdList, deparallelize_no_drop as $8tj43$deparallelize_no_drop, ListenableSet as $8tj43$ListenableSet, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
- import { createComponent as $8tj43$createComponent, insert as $8tj43$insert, template as $8tj43$template, getNextElement as $8tj43$getNextElement, effect as $8tj43$effect, style as $8tj43$style, spread as $8tj43$spread, setAttribute as $8tj43$setAttribute, mergeProps as $8tj43$mergeProps1, isServer as $8tj43$isServer, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, className as $8tj43$className, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, classList as $8tj43$classList, getNextMarker as $8tj43$getNextMarker, Dynamic as $8tj43$Dynamic, use as $8tj43$use, setProperty as $8tj43$setProperty } from "solid-js/web";
2
+ import { createComponent as $8tj43$createComponent, insert as $8tj43$insert, template as $8tj43$template, getNextElement as $8tj43$getNextElement, effect as $8tj43$effect, style as $8tj43$style, spread as $8tj43$spread, setAttribute as $8tj43$setAttribute, mergeProps as $8tj43$mergeProps1, isServer as $8tj43$isServer, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, className as $8tj43$className, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, getNextMarker as $8tj43$getNextMarker, classList as $8tj43$classList, Dynamic as $8tj43$Dynamic, use as $8tj43$use, setProperty as $8tj43$setProperty } from "solid-js/web";
3
3
  import { createSignal as $8tj43$createSignal, getOwner as $8tj43$getOwner, createEffect as $8tj43$createEffect, runWithOwner as $8tj43$runWithOwner, onCleanup as $8tj43$onCleanup, createMemo as $8tj43$createMemo, createContext as $8tj43$createContext, useContext as $8tj43$useContext, mergeProps as $8tj43$mergeProps, Show as $8tj43$Show, createResource as $8tj43$createResource, Suspense as $8tj43$Suspense, untrack as $8tj43$untrack, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, For as $8tj43$For, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, on as $8tj43$on, batch as $8tj43$batch, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray } from "solid-js";
4
4
  import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
5
5
  import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
@@ -9,7 +9,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
9
9
  /*! Depict.ai search and product listing SDK */
10
10
  import { register_es_version } from "../multi_import_deduplicator.mjs";
11
11
  register_es_version("ui", "ES10");
12
- const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.10";
12
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.12";
13
13
  const $2855bffe06ef7a03$var$fallback_operator = "in";
14
14
  const $2855bffe06ef7a03$var$fallback_token = "";
15
15
  const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
@@ -275,12 +275,12 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
275
275
  if (listingContext) listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol] = newStack;
276
276
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
277
277
  const start = performance.now();
278
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
278
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
279
279
  for (const fn of newStack) {
280
280
  newStack.delete(fn);
281
281
  fn();
282
282
  const timeTaken = performance.now() - start;
283
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
283
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
284
284
  // There's still work to be done but no time, so schedule another idle callback
285
285
  processStackWhenIdle();
286
286
  return;
@@ -289,8 +289,8 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
289
289
  // Stack is empty
290
290
  if (listingContext) delete listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol];
291
291
  }, {
292
- timeout: 5000
293
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
292
+ timeout: 15000
293
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
294
294
  );
295
295
 
296
296
  processStackWhenIdle();
@@ -786,11 +786,10 @@ class $f3b7124b76123e44$export$aa14a9f43128f61f extends $f3b7124b76123e44$export
786
786
  });
787
787
  }
788
788
  }
789
- const $74777e8fe65b3dcb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
789
+ const $74777e8fe65b3dcb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div><!$><!/><!$><!/>`);
790
790
  function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
791
791
  return $8tj43$ErrorBoundary({
792
792
  fallback(err, retry) {
793
- var _props$on_error_;
794
793
  const {
795
794
  message_: message_,
796
795
  severity_: severity_
@@ -800,10 +799,17 @@ function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
800
799
  console.error(err.cause);
801
800
  message = "".concat(message, ": ").concat(err.message);
802
801
  } else $8tj43$report([err, message_], severity_);
803
- (_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 || _props$on_error_.call(props, retry);
804
802
  return (() => {
805
- const _el$ = $8tj43$getNextElement($74777e8fe65b3dcb$var$_tmpl$);
806
- $8tj43$insert(_el$, message);
803
+ const _el$ = $8tj43$getNextElement($74777e8fe65b3dcb$var$_tmpl$),
804
+ _el$2 = _el$.firstChild,
805
+ [_el$3, _co$] = $8tj43$getNextMarker(_el$2.nextSibling),
806
+ _el$4 = _el$3.nextSibling,
807
+ [_el$5, _co$2] = $8tj43$getNextMarker(_el$4.nextSibling);
808
+ $8tj43$insert(_el$, message, _el$3, _co$);
809
+ $8tj43$insert(_el$, () => {
810
+ var _props$on_error_;
811
+ return (_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 ? void 0 : _props$on_error_.call(props, retry);
812
+ }, _el$5, _co$2);
807
813
  $8tj43$effect(_$p => {
808
814
  var _props$class_list_;
809
815
  return $8tj43$classList(_el$, Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || []), _$p);
package/latest/index.cjs CHANGED
@@ -70,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
70
70
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
71
71
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
72
72
  /*! Depict.ai search and product listing SDK */
73
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.10";
73
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.12";
74
74
  const $1ab22f2cd39b3061$var$fallback_operator = "in";
75
75
  const $1ab22f2cd39b3061$var$fallback_token = "";
76
76
  const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
@@ -328,12 +328,12 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
328
328
  if (listingContext) listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol] = newStack;
329
329
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
330
330
  const start = performance.now();
331
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
331
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
332
332
  for (const fn of newStack) {
333
333
  newStack.delete(fn);
334
334
  fn();
335
335
  const timeTaken = performance.now() - start;
336
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
336
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
337
337
  // There's still work to be done but no time, so schedule another idle callback
338
338
  processStackWhenIdle();
339
339
  return;
@@ -342,8 +342,8 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
342
342
  // Stack is empty
343
343
  if (listingContext) delete listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol];
344
344
  }, {
345
- timeout: 5000
346
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
345
+ timeout: 15000
346
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
347
347
  );
348
348
 
349
349
  processStackWhenIdle();
@@ -811,7 +811,7 @@ class $7dd1edb2ee2b43ad$export$aa14a9f43128f61f extends $7dd1edb2ee2b43ad$export
811
811
  });
812
812
  }
813
813
  }
814
- const $edafe91daf3091d7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
814
+ const $edafe91daf3091d7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><!$><!/><!$><!/>`);
815
815
  function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
816
816
  return $gVhhF$solidjs.ErrorBoundary({
817
817
  fallback(err, retry) {
@@ -824,10 +824,14 @@ function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
824
824
  console.error(err.cause);
825
825
  message = `${message}: ${err.message}`;
826
826
  } else $gVhhF$depictaiutilishared.report([err, message_], severity_);
827
- props.on_error_?.(retry);
828
827
  return (() => {
829
- const _el$ = $gVhhF$solidjsweb.getNextElement($edafe91daf3091d7$var$_tmpl$);
830
- $gVhhF$solidjsweb.insert(_el$, message);
828
+ const _el$ = $gVhhF$solidjsweb.getNextElement($edafe91daf3091d7$var$_tmpl$),
829
+ _el$2 = _el$.firstChild,
830
+ [_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
831
+ _el$4 = _el$3.nextSibling,
832
+ [_el$5, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling);
833
+ $gVhhF$solidjsweb.insert(_el$, message, _el$3, _co$);
834
+ $gVhhF$solidjsweb.insert(_el$, () => props.on_error_?.(retry), _el$5, _co$2);
831
835
  $gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.classList(_el$, Object.fromEntries(props.class_list_?.map(c => [c, true]) || []), _$p));
832
836
  return _el$;
833
837
  })();
package/latest/index.d.ts CHANGED
@@ -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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.12";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
@@ -20,7 +20,7 @@ export function SentryErrorBoundary(props: {
20
20
  children: JSX.Element;
21
21
  message_: string;
22
22
  severity_: Parameters<typeof report>[1];
23
- on_error_?: (retry: VoidFunction) => void;
23
+ on_error_?: (retry: VoidFunction) => JSX.Element | void;
24
24
  class_list_?: string[];
25
25
  }): JSX.Element;
26
26
  /**
package/latest/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { add_to_version_info as $9HbP8$add_to_version_info, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, dlog as $9HbP8$dlog, queueMacroTask as $9HbP8$queueMacroTask, catchify as $9HbP8$catchify, is_safari as $9HbP8$is_safari, observer as $9HbP8$observer, dwarn as $9HbP8$dwarn, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, slider_fading_factory as $9HbP8$slider_fading_factory, slider_fractional_factory as $9HbP8$slider_fractional_factory, camelCasifyObject as $9HbP8$camelCasifyObject, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $9HbP8$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $9HbP8$layout_get_total_rec_amount_for_row, layout_media_query_header as $9HbP8$layout_media_query_header, report as $9HbP8$report, useExpandingContainer as $9HbP8$useExpandingContainer, standard_price_format as $9HbP8$standard_price_format, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, fetch_recs as $9HbP8$fetch_recs, snakeCasifyObject as $9HbP8$snakeCasifyObject, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, base_url as $9HbP8$base_url, get_depict_id as $9HbP8$get_depict_id, get_user_id as $9HbP8$get_user_id, get_session_id as $9HbP8$get_session_id, sort_obj as $9HbP8$sort_obj, fetch_retry as $9HbP8$fetch_retry, add_version_query_params as $9HbP8$add_version_query_params, make_url_with_query_params as $9HbP8$make_url_with_query_params, edit_current_page_meta_tags as $9HbP8$edit_current_page_meta_tags, javascript_media_query as $9HbP8$javascript_media_query, use_href_accessor as $9HbP8$use_href_accessor, is_debug as $9HbP8$is_debug, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ListenableSet as $9HbP8$ListenableSet, insert_surfaces as $9HbP8$insert_surfaces } from "@depict-ai/utilishared/latest";
2
- import { createComponent as $9HbP8$createComponent, insert as $9HbP8$insert, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, effect as $9HbP8$effect, style as $9HbP8$style, spread as $9HbP8$spread, setAttribute as $9HbP8$setAttribute, mergeProps as $9HbP8$mergeProps1, isServer as $9HbP8$isServer, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, classList as $9HbP8$classList, getNextMarker as $9HbP8$getNextMarker, Dynamic as $9HbP8$Dynamic, use as $9HbP8$use, setProperty as $9HbP8$setProperty } from "solid-js/web";
2
+ import { createComponent as $9HbP8$createComponent, insert as $9HbP8$insert, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, effect as $9HbP8$effect, style as $9HbP8$style, spread as $9HbP8$spread, setAttribute as $9HbP8$setAttribute, mergeProps as $9HbP8$mergeProps1, isServer as $9HbP8$isServer, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, classList as $9HbP8$classList, Dynamic as $9HbP8$Dynamic, use as $9HbP8$use, setProperty as $9HbP8$setProperty } from "solid-js/web";
3
3
  import { createSignal as $9HbP8$createSignal, getOwner as $9HbP8$getOwner, createEffect as $9HbP8$createEffect, runWithOwner as $9HbP8$runWithOwner, onCleanup as $9HbP8$onCleanup, createMemo as $9HbP8$createMemo, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, mergeProps as $9HbP8$mergeProps, Show as $9HbP8$Show, createResource as $9HbP8$createResource, Suspense as $9HbP8$Suspense, untrack as $9HbP8$untrack, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, createRoot as $9HbP8$createRoot, For as $9HbP8$For, createUniqueId as $9HbP8$createUniqueId, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, on as $9HbP8$on, batch as $9HbP8$batch, createReaction as $9HbP8$createReaction, mapArray as $9HbP8$mapArray } from "solid-js";
4
4
  import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
5
5
 
6
6
  /*! Depict.ai search and product listing SDK */
7
7
  import { register_es_version } from "../multi_import_deduplicator.mjs";
8
8
  register_es_version("ui", "latest");
9
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.10";
9
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.12";
10
10
  const $4147651646da990a$var$fallback_operator = "in";
11
11
  const $4147651646da990a$var$fallback_token = "";
12
12
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -264,12 +264,12 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
264
264
  if (listingContext) listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol] = newStack;
265
265
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
266
266
  const start = performance.now();
267
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
267
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
268
268
  for (const fn of newStack) {
269
269
  newStack.delete(fn);
270
270
  fn();
271
271
  const timeTaken = performance.now() - start;
272
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
272
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
273
273
  // There's still work to be done but no time, so schedule another idle callback
274
274
  processStackWhenIdle();
275
275
  return;
@@ -278,8 +278,8 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
278
278
  // Stack is empty
279
279
  if (listingContext) delete listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol];
280
280
  }, {
281
- timeout: 5000
282
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
281
+ timeout: 15000
282
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
283
283
  );
284
284
 
285
285
  processStackWhenIdle();
@@ -747,7 +747,7 @@ class $4fd48cb976bf1789$export$aa14a9f43128f61f extends $4fd48cb976bf1789$export
747
747
  });
748
748
  }
749
749
  }
750
- const $b7436a6d1fd64e3b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
750
+ const $b7436a6d1fd64e3b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div><!$><!/><!$><!/>`);
751
751
  function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
752
752
  return $9HbP8$ErrorBoundary({
753
753
  fallback(err, retry) {
@@ -760,10 +760,14 @@ function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
760
760
  console.error(err.cause);
761
761
  message = `${message}: ${err.message}`;
762
762
  } else $9HbP8$report([err, message_], severity_);
763
- props.on_error_?.(retry);
764
763
  return (() => {
765
- const _el$ = $9HbP8$getNextElement($b7436a6d1fd64e3b$var$_tmpl$);
766
- $9HbP8$insert(_el$, message);
764
+ const _el$ = $9HbP8$getNextElement($b7436a6d1fd64e3b$var$_tmpl$),
765
+ _el$2 = _el$.firstChild,
766
+ [_el$3, _co$] = $9HbP8$getNextMarker(_el$2.nextSibling),
767
+ _el$4 = _el$3.nextSibling,
768
+ [_el$5, _co$2] = $9HbP8$getNextMarker(_el$4.nextSibling);
769
+ $9HbP8$insert(_el$, message, _el$3, _co$);
770
+ $9HbP8$insert(_el$, () => props.on_error_?.(retry), _el$5, _co$2);
767
771
  $9HbP8$effect(_$p => $9HbP8$classList(_el$, Object.fromEntries(props.class_list_?.map(c => [c, true]) || []), _$p));
768
772
  return _el$;
769
773
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "2.1.10",
3
+ "version": "2.1.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",
@@ -238,7 +238,7 @@
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
239
  "@depict-ai/plp-styling": "^1.2.6",
240
240
  "@depict-ai/types": "^1.0.39",
241
- "@depict-ai/utilishared": "^1.0.47",
241
+ "@depict-ai/utilishared": "^1.0.48",
242
242
  "solid-js": "^1.8.1"
243
243
  },
244
244
  "type": "module",
@@ -76,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
76
76
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
77
77
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
78
78
  /*! Depict.ai search and product listing SDK */
79
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.10";
79
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.12";
80
80
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
81
81
  const $a68b73fd7ba0853f$var$fallback_token = "";
82
82
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -338,12 +338,12 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
338
338
  if (listingContext) listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol] = newStack;
339
339
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
340
340
  const start = performance.now();
341
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
341
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
342
342
  for (const fn of newStack) {
343
343
  newStack.delete(fn);
344
344
  fn();
345
345
  const timeTaken = performance.now() - start;
346
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
346
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
347
347
  // There's still work to be done but no time, so schedule another idle callback
348
348
  processStackWhenIdle();
349
349
  return;
@@ -352,8 +352,8 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
352
352
  // Stack is empty
353
353
  if (listingContext) delete listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol];
354
354
  }, {
355
- timeout: 5000
356
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
355
+ timeout: 15000
356
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
357
357
  );
358
358
 
359
359
  processStackWhenIdle();
@@ -828,11 +828,11 @@ class $95e4006e1dcb5b72$export$aa14a9f43128f61f extends $95e4006e1dcb5b72$export
828
828
  });
829
829
  }
830
830
  }
831
- const $1b3cf201cdd38687$var$_tmpl$ = ["<div", ' class="', '">', "</div>"];
831
+ const $1b3cf201cdd38687$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
832
832
  function $1b3cf201cdd38687$export$b69d0d92862de18b(props) {
833
833
  return $3hooq$solidjs.ErrorBoundary({
834
834
  fallback(err, retry) {
835
- var _props$on_error_, _props$class_list_;
835
+ var _props$class_list_, _props$on_error_;
836
836
  const {
837
837
  message_: message_,
838
838
  severity_: severity_
@@ -842,8 +842,7 @@ function $1b3cf201cdd38687$export$b69d0d92862de18b(props) {
842
842
  console.error(err.cause);
843
843
  message = "".concat(message, ": ").concat(err.message);
844
844
  } else $3hooq$depictaiutilishared.report([err, message_], severity_);
845
- (_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 || _props$on_error_.call(props, retry);
846
- return $3hooq$solidjsweb.ssr($1b3cf201cdd38687$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrClassList(Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || [])), $3hooq$solidjsweb.escape(message));
845
+ return $3hooq$solidjsweb.ssr($1b3cf201cdd38687$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrClassList(Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || [])), $3hooq$solidjsweb.escape(message), $3hooq$solidjsweb.escape((_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 ? void 0 : _props$on_error_.call(props, retry)));
847
846
  },
848
847
  get children() {
849
848
  return props.children;
@@ -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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.12";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
@@ -20,7 +20,7 @@ export function SentryErrorBoundary(props: {
20
20
  children: JSX.Element;
21
21
  message_: string;
22
22
  severity_: Parameters<typeof report>[1];
23
- on_error_?: (retry: VoidFunction) => void;
23
+ on_error_?: (retry: VoidFunction) => JSX.Element | void;
24
24
  class_list_?: string[];
25
25
  }): JSX.Element;
26
26
  /**
@@ -9,7 +9,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
9
9
  /*! Depict.ai search and product listing SDK */
10
10
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
11
11
  register_es_version("ui", "ES10");
12
- const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.10";
12
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.12";
13
13
  const $2855bffe06ef7a03$var$fallback_operator = "in";
14
14
  const $2855bffe06ef7a03$var$fallback_token = "";
15
15
  const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
@@ -271,12 +271,12 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
271
271
  if (listingContext) listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol] = newStack;
272
272
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
273
273
  const start = performance.now();
274
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
274
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
275
275
  for (const fn of newStack) {
276
276
  newStack.delete(fn);
277
277
  fn();
278
278
  const timeTaken = performance.now() - start;
279
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
279
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
280
280
  // There's still work to be done but no time, so schedule another idle callback
281
281
  processStackWhenIdle();
282
282
  return;
@@ -285,8 +285,8 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
285
285
  // Stack is empty
286
286
  if (listingContext) delete listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol];
287
287
  }, {
288
- timeout: 5000
289
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
288
+ timeout: 15000
289
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
290
290
  );
291
291
 
292
292
  processStackWhenIdle();
@@ -761,11 +761,11 @@ class $f3b7124b76123e44$export$aa14a9f43128f61f extends $f3b7124b76123e44$export
761
761
  });
762
762
  }
763
763
  }
764
- const $74777e8fe65b3dcb$var$_tmpl$ = ["<div", ' class="', '">', "</div>"];
764
+ const $74777e8fe65b3dcb$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
765
765
  function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
766
766
  return $b8hua$ErrorBoundary({
767
767
  fallback(err, retry) {
768
- var _props$on_error_, _props$class_list_;
768
+ var _props$class_list_, _props$on_error_;
769
769
  const {
770
770
  message_: message_,
771
771
  severity_: severity_
@@ -775,8 +775,7 @@ function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
775
775
  console.error(err.cause);
776
776
  message = "".concat(message, ": ").concat(err.message);
777
777
  } else $b8hua$report([err, message_], severity_);
778
- (_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 || _props$on_error_.call(props, retry);
779
- return $b8hua$ssr($74777e8fe65b3dcb$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrClassList(Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || [])), $b8hua$escape(message));
778
+ return $b8hua$ssr($74777e8fe65b3dcb$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrClassList(Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || [])), $b8hua$escape(message), $b8hua$escape((_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 ? void 0 : _props$on_error_.call(props, retry)));
780
779
  },
781
780
  get children() {
782
781
  return props.children;
@@ -70,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
70
70
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
71
71
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
72
72
  /*! Depict.ai search and product listing SDK */
73
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.10";
73
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.12";
74
74
  const $1ab22f2cd39b3061$var$fallback_operator = "in";
75
75
  const $1ab22f2cd39b3061$var$fallback_token = "";
76
76
  const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
@@ -324,12 +324,12 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
324
324
  if (listingContext) listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol] = newStack;
325
325
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
326
326
  const start = performance.now();
327
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
327
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
328
328
  for (const fn of newStack) {
329
329
  newStack.delete(fn);
330
330
  fn();
331
331
  const timeTaken = performance.now() - start;
332
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
332
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
333
333
  // There's still work to be done but no time, so schedule another idle callback
334
334
  processStackWhenIdle();
335
335
  return;
@@ -338,8 +338,8 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
338
338
  // Stack is empty
339
339
  if (listingContext) delete listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol];
340
340
  }, {
341
- timeout: 5000
342
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
341
+ timeout: 15000
342
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
343
343
  );
344
344
 
345
345
  processStackWhenIdle();
@@ -786,7 +786,7 @@ class $7dd1edb2ee2b43ad$export$aa14a9f43128f61f extends $7dd1edb2ee2b43ad$export
786
786
  });
787
787
  }
788
788
  }
789
- const $edafe91daf3091d7$var$_tmpl$ = ["<div", ' class="', '">', "</div>"];
789
+ const $edafe91daf3091d7$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
790
790
  function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
791
791
  return $5vyXB$solidjs.ErrorBoundary({
792
792
  fallback(err, retry) {
@@ -799,8 +799,7 @@ function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
799
799
  console.error(err.cause);
800
800
  message = `${message}: ${err.message}`;
801
801
  } else $5vyXB$depictaiutilishared.report([err, message_], severity_);
802
- props.on_error_?.(retry);
803
- return $5vyXB$solidjsweb.ssr($edafe91daf3091d7$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrClassList(Object.fromEntries(props.class_list_?.map(c => [c, true]) || [])), $5vyXB$solidjsweb.escape(message));
802
+ return $5vyXB$solidjsweb.ssr($edafe91daf3091d7$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrClassList(Object.fromEntries(props.class_list_?.map(c => [c, true]) || [])), $5vyXB$solidjsweb.escape(message), $5vyXB$solidjsweb.escape(props.on_error_?.(retry)));
804
803
  },
805
804
  get children() {
806
805
  return props.children;
@@ -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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.12";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
@@ -20,7 +20,7 @@ export function SentryErrorBoundary(props: {
20
20
  children: JSX.Element;
21
21
  message_: string;
22
22
  severity_: Parameters<typeof report>[1];
23
- on_error_?: (retry: VoidFunction) => void;
23
+ on_error_?: (retry: VoidFunction) => JSX.Element | void;
24
24
  class_list_?: string[];
25
25
  }): JSX.Element;
26
26
  /**
@@ -6,7 +6,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
6
6
  /*! Depict.ai search and product listing SDK */
7
7
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
8
8
  register_es_version("ui", "latest");
9
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.10";
9
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.12";
10
10
  const $4147651646da990a$var$fallback_operator = "in";
11
11
  const $4147651646da990a$var$fallback_token = "";
12
12
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -260,12 +260,12 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
260
260
  if (listingContext) listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol] = newStack;
261
261
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
262
262
  const start = performance.now();
263
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
263
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
264
264
  for (const fn of newStack) {
265
265
  newStack.delete(fn);
266
266
  fn();
267
267
  const timeTaken = performance.now() - start;
268
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
268
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
269
269
  // There's still work to be done but no time, so schedule another idle callback
270
270
  processStackWhenIdle();
271
271
  return;
@@ -274,8 +274,8 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
274
274
  // Stack is empty
275
275
  if (listingContext) delete listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol];
276
276
  }, {
277
- timeout: 5000
278
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
277
+ timeout: 15000
278
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
279
279
  );
280
280
 
281
281
  processStackWhenIdle();
@@ -722,7 +722,7 @@ class $4fd48cb976bf1789$export$aa14a9f43128f61f extends $4fd48cb976bf1789$export
722
722
  });
723
723
  }
724
724
  }
725
- const $b7436a6d1fd64e3b$var$_tmpl$ = ["<div", ' class="', '">', "</div>"];
725
+ const $b7436a6d1fd64e3b$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
726
726
  function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
727
727
  return $i7OB2$ErrorBoundary({
728
728
  fallback(err, retry) {
@@ -735,8 +735,7 @@ function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
735
735
  console.error(err.cause);
736
736
  message = `${message}: ${err.message}`;
737
737
  } else $i7OB2$report([err, message_], severity_);
738
- props.on_error_?.(retry);
739
- return $i7OB2$ssr($b7436a6d1fd64e3b$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrClassList(Object.fromEntries(props.class_list_?.map(c => [c, true]) || [])), $i7OB2$escape(message));
738
+ return $i7OB2$ssr($b7436a6d1fd64e3b$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrClassList(Object.fromEntries(props.class_list_?.map(c => [c, true]) || [])), $i7OB2$escape(message), $i7OB2$escape(props.on_error_?.(retry)));
740
739
  },
741
740
  get children() {
742
741
  return props.children;