@depict-ai/ui 4.10.29 → 4.10.31

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/latest/index.cjs CHANGED
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.29";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.31";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $gVhhF$solidjs.createSignal(false);
115
115
  $gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
@@ -9887,6 +9887,32 @@ function $deaaf04362a1bc71$export$f50b88e2a00918b5(fn) {
9887
9887
  }
9888
9888
  };
9889
9889
  }
9890
+ var $b84056ffaebb3f3f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
9891
+ $b84056ffaebb3f3f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=no-exact-matches role=status>`);
9892
+ function $b84056ffaebb3f3f$export$cff209a01196ea2a(response) {
9893
+ return response?.is_fallback === true && !!response.displays?.length;
9894
+ }
9895
+ function $b84056ffaebb3f3f$export$6011f3c8b3c691cd({
9896
+ get_search_query_: get_search_query_,
9897
+ i18n_: i18n_,
9898
+ is_fallback_: is_fallback_
9899
+ }) {
9900
+ const contents = $gVhhF$solidjs.createMemo($gVhhF$depictaiutilishared.catchify(() => i18n_.get_no_exact_matches_?.()?.((() => {
9901
+ var _el$ = $gVhhF$solidjsweb.getNextElement($b84056ffaebb3f3f$var$_tmpl$);
9902
+ $gVhhF$solidjsweb.insert(_el$, get_search_query_);
9903
+ return _el$;
9904
+ })())));
9905
+ return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
9906
+ get when() {
9907
+ return $gVhhF$solidjsweb.memo(() => !!(is_fallback_() && get_search_query_().trim() !== ""))() && contents();
9908
+ },
9909
+ get children() {
9910
+ var _el$2 = $gVhhF$solidjsweb.getNextElement($b84056ffaebb3f3f$var$_tmpl$2);
9911
+ $gVhhF$solidjsweb.insert(_el$2, contents);
9912
+ return _el$2;
9913
+ }
9914
+ });
9915
+ }
9890
9916
  function $f144ea315d9e4caa$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
9891
9917
  const isSelected = $gVhhF$solidjs.createMemo(() => {
9892
9918
  const selectedValue = selectedIndex();
@@ -10101,6 +10127,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
10101
10127
  i18n_: i18n_,
10102
10128
  router_: router_,
10103
10129
  set_modal_search_results_: set_modal_search_results_,
10130
+ set_instant_query_: set_instant_query_,
10104
10131
  InstantCardImageComponent_: InstantCardImageComponent_,
10105
10132
  itemIndex_: itemIndex_,
10106
10133
  selected_index_: selected_index_,
@@ -10136,6 +10163,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
10136
10163
  // Maybe we should move this createResource out of this component, on the other hand it bloats the parent component and if it fails it takes more than needed with it, so I think writing the content results from here is better
10137
10164
  // This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
10138
10165
  set_modal_search_results_(() => search_results);
10166
+ if (set_instant_query_) $gVhhF$solidjs.createComputed(() => set_instant_query_(read_current_instant_query()));
10139
10167
  $gVhhF$solidjs.onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
10140
10168
  if (itemIndex_) {
10141
10169
  const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
@@ -11390,6 +11418,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
11390
11418
  body_: bodyAlignmentSignal = $gVhhF$solidjs.createSignal({})
11391
11419
  } = alignmentSignals_ || {};
11392
11420
  const [bodyAlignmentStyle] = bodyAlignmentSignal;
11421
+ const [get_instant_query_, set_instant_query_] = $gVhhF$solidjs.createSignal("");
11393
11422
  const [get_modal_search_results, set_modal_search_results_] = $gVhhF$solidjs.createSignal();
11394
11423
  const close_on_escape_handler = $gVhhF$depictaiutilishared.catchify(({
11395
11424
  key: key
@@ -11544,7 +11573,14 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
11544
11573
  get children() {
11545
11574
  return $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
11546
11575
  get children() {
11547
- return $6ae556e536054e87$export$62f101a8aa597bf8({
11576
+ return [$gVhhF$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
11577
+ get_search_query_: get_instant_query_,
11578
+ i18n_: i18n_,
11579
+ is_fallback_: () => {
11580
+ const results = get_modal_search_results();
11581
+ return !!results && !results.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(results());
11582
+ }
11583
+ }), $gVhhF$solidjsweb.memo(() => $6ae556e536054e87$export$62f101a8aa597bf8({
11548
11584
  search_field_value_: search_field_value_,
11549
11585
  depict_api_: depict_api_,
11550
11586
  merchant_: merchant_,
@@ -11552,6 +11588,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
11552
11588
  market_: market_,
11553
11589
  router_: router_,
11554
11590
  set_modal_search_results_: set_modal_search_results_,
11591
+ set_instant_query_: set_instant_query_,
11555
11592
  InstantCardImageComponent_: props => $gVhhF$solidjs.createMemo(() => $gVhhF$depictaiutilishared.ContainedImage({
11556
11593
  loading: "lazy",
11557
11594
  aspect_ratio: 1,
@@ -11564,7 +11601,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
11564
11601
  sizes: "0px"
11565
11602
  })),
11566
11603
  ...instant_results_options_
11567
- });
11604
+ }))];
11568
11605
  }
11569
11606
  });
11570
11607
  }
@@ -12159,7 +12196,7 @@ function $3b9f2020814c7876$export$66d1697a0f27069c(modalLayoutStacked) {
12159
12196
  instantResultsIndex_: instantResultsIndex_
12160
12197
  };
12161
12198
  }
12162
- var $11597ae03e703a47$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2><!$><!/>`),
12199
+ var $11597ae03e703a47$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2><!$><!/><!$><!/>`),
12163
12200
  $11597ae03e703a47$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
12164
12201
  $11597ae03e703a47$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<dialog>`),
12165
12202
  $11597ae03e703a47$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
@@ -12233,6 +12270,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12233
12270
  const [unfiltered_previous_searches] = previous_searches_;
12234
12271
  const random_classname_body = $gVhhF$depictaiutilishared.make_random_classname();
12235
12272
  const backdropRandomClassname = $gVhhF$depictaiutilishared.make_random_classname();
12273
+ const [get_instant_query_, set_instant_query_] = $gVhhF$solidjs.createSignal("");
12236
12274
  const [get_modal_search_results_, set_modal_search_results_] = $gVhhF$solidjs.createSignal();
12237
12275
  const close_on_escape_handler = $gVhhF$depictaiutilishared.catchify(evt => {
12238
12276
  if (evt.key === "Escape") {
@@ -12390,8 +12428,18 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12390
12428
  var _el$ = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$),
12391
12429
  _el$2 = _el$.firstChild,
12392
12430
  _el$3 = _el$2.nextSibling,
12393
- [_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling);
12431
+ [_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
12432
+ _el$5 = _el$4.nextSibling,
12433
+ [_el$6, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling);
12394
12434
  $gVhhF$solidjsweb.insert(_el$2, () => i18n_.products_());
12435
+ $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
12436
+ get_search_query_: get_instant_query_,
12437
+ i18n_: i18n_,
12438
+ is_fallback_: () => {
12439
+ const results = get_modal_search_results_();
12440
+ return !!results && !results.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(results());
12441
+ }
12442
+ }), _el$4, _co$);
12395
12443
  $gVhhF$solidjsweb.insert(_el$, () => $6ae556e536054e87$export$62f101a8aa597bf8({
12396
12444
  search_field_value_: search_field_value_,
12397
12445
  depict_api_: depict_api_,
@@ -12400,6 +12448,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12400
12448
  market_: market_,
12401
12449
  router_: router_,
12402
12450
  set_modal_search_results_: set_modal_search_results_,
12451
+ set_instant_query_: set_instant_query_,
12403
12452
  itemIndex_: itemIndexes.instantResultsIndex_,
12404
12453
  selected_index_: selected_index_,
12405
12454
  currently_showing_suggestions_: currently_showing_suggestions_,
@@ -12420,7 +12469,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12420
12469
  imageResizer_: imageResizer_
12421
12470
  }),
12422
12471
  ...instant_results_options_
12423
- }), _el$4, _co$);
12472
+ }), _el$6, _co$2);
12424
12473
  $gVhhF$solidjsweb.effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
12425
12474
  return _el$;
12426
12475
  }
@@ -12459,25 +12508,25 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12459
12508
  })]);
12460
12509
  const DialogElement = props => {
12461
12510
  if (forceUseDiv_) return (() => {
12462
- var _el$5 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$2);
12463
- $gVhhF$solidjsweb.spread(_el$5, props, false, true);
12464
- $gVhhF$solidjsweb.insert(_el$5, () => props.children);
12511
+ var _el$7 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$2);
12512
+ $gVhhF$solidjsweb.spread(_el$7, props, false, true);
12513
+ $gVhhF$solidjsweb.insert(_el$7, () => props.children);
12465
12514
  $gVhhF$solidjsweb.runHydrationEvents();
12466
- return _el$5;
12515
+ return _el$7;
12467
12516
  })();
12468
12517
  return (() => {
12469
- var _el$6 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$3);
12470
- $gVhhF$solidjsweb.spread(_el$6, props, false, true);
12471
- $gVhhF$solidjsweb.insert(_el$6, () => props.children);
12518
+ var _el$8 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$3);
12519
+ $gVhhF$solidjsweb.spread(_el$8, props, false, true);
12520
+ $gVhhF$solidjsweb.insert(_el$8, () => props.children);
12472
12521
  $gVhhF$solidjsweb.runHydrationEvents();
12473
- return _el$6;
12522
+ return _el$8;
12474
12523
  })();
12475
12524
  };
12476
12525
  const discoverMoreSection = (() => {
12477
- var _el$7 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$4),
12478
- _el$8 = _el$7.firstChild;
12479
- $gVhhF$solidjsweb.addEventListener(_el$8, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
12480
- $gVhhF$solidjsweb.insert(_el$8, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
12526
+ var _el$9 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$4),
12527
+ _el$10 = _el$9.firstChild;
12528
+ $gVhhF$solidjsweb.addEventListener(_el$10, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
12529
+ $gVhhF$solidjsweb.insert(_el$10, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
12481
12530
  get when() {
12482
12531
  return get_search_field_value_();
12483
12532
  },
@@ -12494,16 +12543,16 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12494
12543
  },
12495
12544
  get children() {
12496
12545
  return i18n_.modal_view_all_results_()((() => {
12497
- var _el$9 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$5);
12498
- $gVhhF$solidjsweb.insert(_el$9, formattedTotalNumberResults);
12499
- return _el$9;
12546
+ var _el$11 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$5);
12547
+ $gVhhF$solidjsweb.insert(_el$11, formattedTotalNumberResults);
12548
+ return _el$11;
12500
12549
  })());
12501
12550
  }
12502
12551
  });
12503
12552
  }
12504
12553
  }));
12505
12554
  $gVhhF$solidjsweb.runHydrationEvents();
12506
- return _el$7;
12555
+ return _el$9;
12507
12556
  })();
12508
12557
  const search_field = $66b8b9a9613c141d$export$b94867ecbd698f21({
12509
12558
  BackIcon_: (0, $b8660a70353e03cf$export$11e9f390c90a537f),
@@ -12551,22 +12600,22 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12551
12600
  },
12552
12601
  get children() {
12553
12602
  return [(() => {
12554
- var _el$10 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$6);
12555
- $gVhhF$solidjsweb.addEventListener(_el$10, "click", close_modal_, true);
12556
- $gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.classList(_el$10, {
12603
+ var _el$12 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$6);
12604
+ $gVhhF$solidjsweb.addEventListener(_el$12, "click", close_modal_, true);
12605
+ $gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.classList(_el$12, {
12557
12606
  [backdropRandomClassname]: true
12558
12607
  }, _$p));
12559
12608
  $gVhhF$solidjsweb.runHydrationEvents();
12560
- return _el$10;
12609
+ return _el$12;
12561
12610
  })(), (() => {
12562
- var _el$11 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$7),
12563
- _el$12 = _el$11.firstChild,
12564
- _el$14 = _el$12.firstChild,
12565
- [_el$15, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$14.nextSibling),
12566
- _el$13 = _el$15.nextSibling,
12567
- _el$16 = _el$12.nextSibling,
12568
- [_el$17, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$16.nextSibling);
12569
- $gVhhF$solidjsweb.addEventListener(_el$11, "click", $gVhhF$depictaiutilishared.catchify(({
12611
+ var _el$13 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$7),
12612
+ _el$14 = _el$13.firstChild,
12613
+ _el$16 = _el$14.firstChild,
12614
+ [_el$17, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$16.nextSibling),
12615
+ _el$15 = _el$17.nextSibling,
12616
+ _el$18 = _el$14.nextSibling,
12617
+ [_el$19, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$18.nextSibling);
12618
+ $gVhhF$solidjsweb.addEventListener(_el$13, "click", $gVhhF$depictaiutilishared.catchify(({
12570
12619
  target: target,
12571
12620
  currentTarget: currentTarget
12572
12621
  }) => {
@@ -12577,8 +12626,8 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12577
12626
  const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => setModalBodyWidth(records.at(-1).contentRect.width)));
12578
12627
  resizeObserver.observe(element);
12579
12628
  $gVhhF$solidjs.onCleanup(() => resizeObserver.disconnect());
12580
- }, _el$12);
12581
- $gVhhF$solidjsweb.insert(_el$12, search_field, _el$15, _co$2);
12629
+ }, _el$14);
12630
+ $gVhhF$solidjsweb.insert(_el$14, search_field, _el$17, _co$3);
12582
12631
  $gVhhF$solidjsweb.use(el => {
12583
12632
  $gVhhF$depictaiutilishared.catchify((0, $7b98f0cf558884f7$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_ || (() => 0.03 // 3% under SearchModalV2 by default
12584
12633
  ));
@@ -12593,28 +12642,28 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12593
12642
  return;
12594
12643
  }
12595
12644
  el.replaceChildren(...[(() => {
12596
- var _el$18 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$8);
12597
- $gVhhF$solidjsweb.insert(_el$18, renderedTextSuggestions);
12598
- return _el$18;
12645
+ var _el$20 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$8);
12646
+ $gVhhF$solidjsweb.insert(_el$20, renderedTextSuggestions);
12647
+ return _el$20;
12599
12648
  })(), (() => {
12600
- var _el$19 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$9);
12601
- $gVhhF$solidjsweb.insert(_el$19, renderedVisualSuggestions);
12602
- return _el$19;
12649
+ var _el$21 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$9);
12650
+ $gVhhF$solidjsweb.insert(_el$21, renderedVisualSuggestions);
12651
+ return _el$21;
12603
12652
  })(), discoverMoreSection]);
12604
12653
  });
12605
- }, _el$13);
12606
- $gVhhF$solidjsweb.insert(_el$11, $gVhhF$solidjsweb.createComponent((0, $b776f25acdda22eb$export$f021bdedd3ec901a), {
12654
+ }, _el$15);
12655
+ $gVhhF$solidjsweb.insert(_el$13, $gVhhF$solidjsweb.createComponent((0, $b776f25acdda22eb$export$f021bdedd3ec901a), {
12607
12656
  styles: mergedCssObject
12608
- }), _el$17, _co$3);
12657
+ }), _el$19, _co$4);
12609
12658
  $gVhhF$solidjsweb.effect(_p$ => {
12610
12659
  var _v$ = !!modalLayoutStacked_(),
12611
12660
  _v$2 = {
12612
12661
  [random_classname_body]: true
12613
12662
  },
12614
12663
  _v$3 = !!noResults();
12615
- _v$ !== _p$.e && _el$11.classList.toggle("stacked", _p$.e = _v$);
12616
- _p$.t = $gVhhF$solidjsweb.classList(_el$12, _v$2, _p$.t);
12617
- _v$3 !== _p$.a && _el$13.classList.toggle("no-results", _p$.a = _v$3);
12664
+ _v$ !== _p$.e && _el$13.classList.toggle("stacked", _p$.e = _v$);
12665
+ _p$.t = $gVhhF$solidjsweb.classList(_el$14, _v$2, _p$.t);
12666
+ _v$3 !== _p$.a && _el$15.classList.toggle("no-results", _p$.a = _v$3);
12618
12667
  return _p$;
12619
12668
  }, {
12620
12669
  e: undefined,
@@ -12622,7 +12671,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
12622
12671
  a: undefined
12623
12672
  });
12624
12673
  $gVhhF$solidjsweb.runHydrationEvents();
12625
- return _el$11;
12674
+ return _el$13;
12626
12675
  })()];
12627
12676
  }
12628
12677
  })];
@@ -15121,7 +15170,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
15121
15170
  });
15122
15171
  }
15123
15172
  var $f1d7cb69f839a526$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
15124
- $f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
15173
+ $f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
15125
15174
  function $f1d7cb69f839a526$export$a54ec244c8863715({
15126
15175
  depict_api_: depict_api_,
15127
15176
  search_field_value_: search_field_value_,
@@ -15417,10 +15466,12 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15417
15466
  [_el$19, _co$8] = $gVhhF$solidjsweb.getNextMarker(_el$18.nextSibling),
15418
15467
  _el$20 = _el$19.nextSibling,
15419
15468
  [_el$21, _co$9] = $gVhhF$solidjsweb.getNextMarker(_el$20.nextSibling),
15420
- _el$22 = _el$7.nextSibling,
15469
+ _el$22 = _el$21.nextSibling,
15421
15470
  [_el$23, _co$10] = $gVhhF$solidjsweb.getNextMarker(_el$22.nextSibling),
15422
- _el$24 = _el$23.nextSibling,
15423
- [_el$25, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling);
15471
+ _el$24 = _el$7.nextSibling,
15472
+ [_el$25, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling),
15473
+ _el$26 = _el$25.nextSibling,
15474
+ [_el$27, _co$12] = $gVhhF$solidjsweb.getNextMarker(_el$26.nextSibling);
15424
15475
  $gVhhF$solidjsweb.insert(_el$7, get_search_field_elements, _el$9, _co$3);
15425
15476
  $gVhhF$solidjsweb.insert(_el$7, make_category_suggestion_card_ ? $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
15426
15477
  severity_: "error",
@@ -15459,6 +15510,11 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15459
15510
  }
15460
15511
  }), _el$13, _co$5);
15461
15512
  $gVhhF$solidjsweb.insert(_el$7, () => results_filters[0](), _el$15, _co$6);
15513
+ $gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
15514
+ get_search_query_: get_search_query_,
15515
+ i18n_: i18n_,
15516
+ is_fallback_: () => !search_results_.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(search_results_())
15517
+ }), _el$17, _co$7);
15462
15518
  $gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
15463
15519
  get when() {
15464
15520
  return selected_filters_[0]()?.length;
@@ -15481,7 +15537,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15481
15537
  }
15482
15538
  });
15483
15539
  }
15484
- }), _el$17, _co$7);
15540
+ }), _el$19, _co$8);
15485
15541
  $gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
15486
15542
  severity_: "error",
15487
15543
  message_: "Search results failed",
@@ -15518,7 +15574,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15518
15574
  }
15519
15575
  });
15520
15576
  }
15521
- }), _el$19, _co$8);
15577
+ }), _el$21, _co$9);
15522
15578
  $gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
15523
15579
  severity_: "error",
15524
15580
  message_: "Search recommendations failed",
@@ -15537,7 +15593,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15537
15593
  }
15538
15594
  });
15539
15595
  }
15540
- }), _el$21, _co$9);
15596
+ }), _el$23, _co$10);
15541
15597
  $gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
15542
15598
  message_: "Scroll status failed",
15543
15599
  severity_: "error",
@@ -15550,7 +15606,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15550
15606
  number_of_results_: countOfProductsForUI
15551
15607
  });
15552
15608
  }
15553
- }), _el$23, _co$10);
15609
+ }), _el$25, _co$11);
15554
15610
  $gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
15555
15611
  message_: "Floating buttons failed",
15556
15612
  severity_: "error",
@@ -15563,7 +15619,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
15563
15619
  i18n_: i18n_
15564
15620
  });
15565
15621
  }
15566
- }), _el$25, _co$11);
15622
+ }), _el$27, _co$12);
15567
15623
  $gVhhF$solidjsweb.effect(_p$ => {
15568
15624
  var _v$ = (0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_PAGE,
15569
15625
  _v$2 = `depict plp search${class_?.() ? ` ${class_()}` : ""}`;
package/latest/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.10.29";
14
+ export const version = "4.10.31";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -111,6 +111,11 @@ interface search_i18n extends plp_shared_i18n {
111
111
  popular_: string;
112
112
  products_: string;
113
113
  modal_view_all_no_results_: string;
114
+ /**
115
+ * Shown above the results when no product matched the query and search shows similar products.
116
+ * Optional: a custom locale without it shows no notice.
117
+ */
118
+ get_no_exact_matches_?: (query: HTMLElement) => Elem[];
114
119
  }
115
120
  /**
116
121
  * Category internationalisation