@depict-ai/ui 1.4.23 → 1.4.25

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
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
66
66
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
67
67
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
68
68
  /*! Depict.ai search and product listing SDK */
69
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.23";
69
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.25";
70
70
  const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
71
71
  const cols_at_size = [];
72
72
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -521,7 +521,8 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
521
521
  children: children,
522
522
  slider_ref_: slider_ref_,
523
523
  faded_opacity_ = 0.7,
524
- mutation_plugins_ = []
524
+ mutation_plugins_ = [],
525
+ disable_fading_: disable_fading_
525
526
  } = _ref;
526
527
  const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
527
528
  button_contents: {
@@ -537,10 +538,10 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
537
538
  })()]
538
539
  },
539
540
  constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css().constructor_plugin],
540
- mutation_plugins: [$52FdA$depictaiutilishared.slider_fading_factory({
541
+ mutation_plugins: [...(disable_fading_ ? [] : [$52FdA$depictaiutilishared.slider_fading_factory({
541
542
  threshold_: 0.96,
542
543
  faded_opacity_: faded_opacity_
543
- }).mutation_plugin_, ...mutation_plugins_]
544
+ }).mutation_plugin_]), ...mutation_plugins_]
544
545
  });
545
546
  $52FdA$solidjsweb.insert(slider.insert_here, children);
546
547
  $52FdA$solidjs.onCleanup(() => slider.observer.disconnect());
@@ -561,14 +562,19 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
561
562
  });
562
563
  const num_placeholders_ = () => 20;
563
564
  const slider = $52FdA$solidjsweb.createComponent((0, $ad8ec7729fffeb9c$export$6649caad96ef8870), {
565
+ disable_fading_: true,
564
566
  slider_ref_: slider => {
565
- const Layout = props => $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, slider.insert_here, true);
567
+ const {
568
+ insert_here: insert_here
569
+ } = slider;
570
+ const Layout = props => $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, insert_here, true);
566
571
  // Do like this, so we don't have to call mergeProps ourselves
567
572
  $52FdA$solidjsweb.createComponent(Layout, $52FdA$solidjsweb.mergeProps({
568
573
  rows: "all",
569
574
  layout: "slider"
570
575
  }, layout_options_));
571
- slider.insert_here.before($8edd3cf30d1fd8b4$export$a2cc176055f8f08());
576
+ $52FdA$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
577
+ insert_here.before($8edd3cf30d1fd8b4$export$a2cc176055f8f08());
572
578
  },
573
579
  get children() {
574
580
  return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
@@ -600,7 +606,7 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
600
606
  children: slider
601
607
  });
602
608
  }
603
- const $2badc30d7c6610e1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp"></div>`, 2);
609
+ const $2badc30d7c6610e1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict recommendations"></div>`, 2);
604
610
  function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
605
611
  const grid_spacing_override = $52FdA$solidjs.createMemo(() => {
606
612
  const {
@@ -694,7 +700,7 @@ function $2c920813c92d6987$export$7da560f849543dff(_ref) {
694
700
  });
695
701
  }
696
702
  const $41227f10ad680afd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major" type="button"></button>`, 2),
697
- $41227f10ad680afd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp"></div>`, 2);
703
+ $41227f10ad680afd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp recommendations"></div>`, 2);
698
704
  function $41227f10ad680afd$export$9756467d34d91cdb(props) {
699
705
  const rows_object_ = $52FdA$solidjs.createMemo(() => {
700
706
  const view_more_button = props.view_more_button;
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 { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "1.4.23";
10
+ export const version = "1.4.25";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
package/ES10/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { add_to_version_info as $8tj43$add_to_version_info, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, catchify as $8tj43$catchify, 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, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, slider_fading_factory as $8tj43$slider_fading_factory, is_safari as $8tj43$is_safari, observer as $8tj43$observer, useExpandingContainer as $8tj43$useExpandingContainer, standard_price_format as $8tj43$standard_price_format, dlog as $8tj43$dlog, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, javascript_media_query as $8tj43$javascript_media_query, 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, dwarn as $8tj43$dwarn, sort_obj as $8tj43$sort_obj, edit_current_page_meta_tags as $8tj43$edit_current_page_meta_tags, use_href_accessor as $8tj43$use_href_accessor, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, queueMacroTask as $8tj43$queueMacroTask, 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, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
1
+ import { add_to_version_info as $8tj43$add_to_version_info, slider_fractional_factory as $8tj43$slider_fractional_factory, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, catchify as $8tj43$catchify, 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, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, slider_fading_factory as $8tj43$slider_fading_factory, is_safari as $8tj43$is_safari, observer as $8tj43$observer, useExpandingContainer as $8tj43$useExpandingContainer, standard_price_format as $8tj43$standard_price_format, dlog as $8tj43$dlog, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, javascript_media_query as $8tj43$javascript_media_query, 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, dwarn as $8tj43$dwarn, sort_obj as $8tj43$sort_obj, edit_current_page_meta_tags as $8tj43$edit_current_page_meta_tags, use_href_accessor as $8tj43$use_href_accessor, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, queueMacroTask as $8tj43$queueMacroTask, 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, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
2
  import { template as $8tj43$template, getNextElement as $8tj43$getNextElement, insert as $8tj43$insert, createComponent as $8tj43$createComponent, mergeProps as $8tj43$mergeProps, isServer as $8tj43$isServer, spread as $8tj43$spread, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, className as $8tj43$className, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, effect as $8tj43$effect, classList as $8tj43$classList, setAttribute as $8tj43$setAttribute, getNextMarker as $8tj43$getNextMarker, style as $8tj43$style, Dynamic as $8tj43$Dynamic, use as $8tj43$use } from "solid-js/web";
3
3
  import { createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, Suspense as $8tj43$Suspense, Show as $8tj43$Show, createSignal as $8tj43$createSignal, createRenderEffect as $8tj43$createRenderEffect, createRoot as $8tj43$createRoot, onCleanup as $8tj43$onCleanup, For as $8tj43$For, getOwner as $8tj43$getOwner, runWithOwner as $8tj43$runWithOwner, createEffect as $8tj43$createEffect, untrack as $8tj43$untrack, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, Index as $8tj43$Index, on as $8tj43$on, batch as $8tj43$batch, createReaction as $8tj43$createReaction } from "solid-js";
4
4
  import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
@@ -8,7 +8,7 @@ import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
8
8
  /*! Depict.ai search and product listing SDK */
9
9
  import { register_es_version } from "../multi_import_deduplicator.mjs";
10
10
  register_es_version("ui", "ES10");
11
- const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.23";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.25";
12
12
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
13
13
  const cols_at_size = [];
14
14
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -463,7 +463,8 @@ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
463
463
  children: children,
464
464
  slider_ref_: slider_ref_,
465
465
  faded_opacity_ = 0.7,
466
- mutation_plugins_ = []
466
+ mutation_plugins_ = [],
467
+ disable_fading_: disable_fading_
467
468
  } = _ref;
468
469
  const slider = new (0, $8tj43$Amazing_Slider)({
469
470
  button_contents: {
@@ -479,10 +480,10 @@ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
479
480
  })()]
480
481
  },
481
482
  constructor_plugins: [$8tj43$slider_snap_css().constructor_plugin],
482
- mutation_plugins: [$8tj43$slider_fading_factory({
483
+ mutation_plugins: [...(disable_fading_ ? [] : [$8tj43$slider_fading_factory({
483
484
  threshold_: 0.96,
484
485
  faded_opacity_: faded_opacity_
485
- }).mutation_plugin_, ...mutation_plugins_]
486
+ }).mutation_plugin_]), ...mutation_plugins_]
486
487
  });
487
488
  $8tj43$insert(slider.insert_here, children);
488
489
  $8tj43$onCleanup(() => slider.observer.disconnect());
@@ -503,14 +504,19 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
503
504
  });
504
505
  const num_placeholders_ = () => 20;
505
506
  const slider = $8tj43$createComponent((0, $002f09d00aac50b2$export$6649caad96ef8870), {
507
+ disable_fading_: true,
506
508
  slider_ref_: slider => {
507
- const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, slider.insert_here, true);
509
+ const {
510
+ insert_here: insert_here
511
+ } = slider;
512
+ const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, insert_here, true);
508
513
  // Do like this, so we don't have to call mergeProps ourselves
509
514
  $8tj43$createComponent(Layout, $8tj43$mergeProps({
510
515
  rows: "all",
511
516
  layout: "slider"
512
517
  }, layout_options_));
513
- slider.insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
518
+ $8tj43$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
519
+ insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
514
520
  },
515
521
  get children() {
516
522
  return $8tj43$createComponent((0, $8tj43$Suspense), {
@@ -542,7 +548,7 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
542
548
  children: slider
543
549
  });
544
550
  }
545
- const $d5d7e58c5c9d8db0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict plp"></div>`, 2);
551
+ const $d5d7e58c5c9d8db0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict recommendations"></div>`, 2);
546
552
  function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
547
553
  const grid_spacing_override = $8tj43$createMemo(() => {
548
554
  const {
@@ -636,7 +642,7 @@ function $e3efeb558d952696$export$7da560f849543dff(_ref) {
636
642
  });
637
643
  }
638
644
  const $b432b11321ad4c97$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="show-more major" type="button"></button>`, 2),
639
- $b432b11321ad4c97$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp"></div>`, 2);
645
+ $b432b11321ad4c97$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp recommendations"></div>`, 2);
640
646
  function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
641
647
  const rows_object_ = $8tj43$createMemo(() => {
642
648
  const view_more_button = props.view_more_button;
package/latest/index.cjs CHANGED
@@ -60,7 +60,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
60
60
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
61
61
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
62
62
  /*! Depict.ai search and product listing SDK */
63
- const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.23";
63
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.25";
64
64
  const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
65
65
  const cols_at_size = [];
66
66
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -476,7 +476,8 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
476
476
  children: children,
477
477
  slider_ref_: slider_ref_,
478
478
  faded_opacity_ = 0.7,
479
- mutation_plugins_ = []
479
+ mutation_plugins_ = [],
480
+ disable_fading_: disable_fading_
480
481
  }) {
481
482
  const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
482
483
  button_contents: {
@@ -492,10 +493,10 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
492
493
  })()]
493
494
  },
494
495
  constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css().constructor_plugin],
495
- mutation_plugins: [$gVhhF$depictaiutilishared.slider_fading_factory({
496
+ mutation_plugins: [...(disable_fading_ ? [] : [$gVhhF$depictaiutilishared.slider_fading_factory({
496
497
  threshold_: 0.96,
497
498
  faded_opacity_: faded_opacity_
498
- }).mutation_plugin_, ...mutation_plugins_]
499
+ }).mutation_plugin_]), ...mutation_plugins_]
499
500
  });
500
501
  $gVhhF$solidjsweb.insert(slider.insert_here, children);
501
502
  $gVhhF$solidjs.onCleanup(() => slider.observer.disconnect());
@@ -512,14 +513,19 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
512
513
  const is_showing_something = $gVhhF$solidjs.createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
513
514
  const num_placeholders_ = () => 20;
514
515
  const slider = $gVhhF$solidjsweb.createComponent((0, $a0e53f99354809d9$export$6649caad96ef8870), {
516
+ disable_fading_: true,
515
517
  slider_ref_: slider => {
516
- const Layout = props => $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, slider.insert_here, true);
518
+ const {
519
+ insert_here: insert_here
520
+ } = slider;
521
+ const Layout = props => $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, insert_here, true);
517
522
  // Do like this, so we don't have to call mergeProps ourselves
518
523
  $gVhhF$solidjsweb.createComponent(Layout, $gVhhF$solidjsweb.mergeProps({
519
524
  rows: "all",
520
525
  layout: "slider"
521
526
  }, layout_options_));
522
- slider.insert_here.before($fc23d7668ae0011d$export$a2cc176055f8f08());
527
+ $gVhhF$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
528
+ insert_here.before($fc23d7668ae0011d$export$a2cc176055f8f08());
523
529
  },
524
530
  get children() {
525
531
  return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
@@ -551,7 +557,7 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
551
557
  children: slider
552
558
  });
553
559
  }
554
- const $72f96c4782db0b1b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp"></div>`, 2);
560
+ const $72f96c4782db0b1b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict recommendations"></div>`, 2);
555
561
  function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
556
562
  const grid_spacing_override = $gVhhF$solidjs.createMemo(() => {
557
563
  const {
@@ -639,7 +645,7 @@ function $b8e79813f4f7ebe4$export$7da560f849543dff({
639
645
  });
640
646
  }
641
647
  const $1f8dbf7e28b3eff2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major" type="button"></button>`, 2),
642
- $1f8dbf7e28b3eff2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp"></div>`, 2);
648
+ $1f8dbf7e28b3eff2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp recommendations"></div>`, 2);
643
649
  function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
644
650
  const rows_object_ = $gVhhF$solidjs.createMemo(() => {
645
651
  const view_more_button = props.view_more_button;
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 { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "1.4.23";
10
+ export const version = "1.4.25";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
package/latest/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { add_to_version_info as $9HbP8$add_to_version_info, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, catchify as $9HbP8$catchify, 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, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, slider_fading_factory as $9HbP8$slider_fading_factory, is_safari as $9HbP8$is_safari, observer as $9HbP8$observer, useExpandingContainer as $9HbP8$useExpandingContainer, standard_price_format as $9HbP8$standard_price_format, dlog as $9HbP8$dlog, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, javascript_media_query as $9HbP8$javascript_media_query, 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, dwarn as $9HbP8$dwarn, make_url_with_query_params as $9HbP8$make_url_with_query_params, edit_current_page_meta_tags as $9HbP8$edit_current_page_meta_tags, use_href_accessor as $9HbP8$use_href_accessor, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, queueMacroTask as $9HbP8$queueMacroTask, 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, insert_surfaces as $9HbP8$insert_surfaces } from "@depict-ai/utilishared/latest";
1
+ import { add_to_version_info as $9HbP8$add_to_version_info, slider_fractional_factory as $9HbP8$slider_fractional_factory, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, catchify as $9HbP8$catchify, 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, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, slider_fading_factory as $9HbP8$slider_fading_factory, is_safari as $9HbP8$is_safari, observer as $9HbP8$observer, useExpandingContainer as $9HbP8$useExpandingContainer, standard_price_format as $9HbP8$standard_price_format, dlog as $9HbP8$dlog, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, javascript_media_query as $9HbP8$javascript_media_query, 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, dwarn as $9HbP8$dwarn, make_url_with_query_params as $9HbP8$make_url_with_query_params, edit_current_page_meta_tags as $9HbP8$edit_current_page_meta_tags, use_href_accessor as $9HbP8$use_href_accessor, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, queueMacroTask as $9HbP8$queueMacroTask, 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, insert_surfaces as $9HbP8$insert_surfaces } from "@depict-ai/utilishared/latest";
2
2
  import { template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, insert as $9HbP8$insert, createComponent as $9HbP8$createComponent, mergeProps as $9HbP8$mergeProps, isServer as $9HbP8$isServer, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, effect as $9HbP8$effect, classList as $9HbP8$classList, setAttribute as $9HbP8$setAttribute, getNextMarker as $9HbP8$getNextMarker, style as $9HbP8$style, Dynamic as $9HbP8$Dynamic, use as $9HbP8$use } from "solid-js/web";
3
3
  import { createMemo as $9HbP8$createMemo, createResource as $9HbP8$createResource, Suspense as $9HbP8$Suspense, Show as $9HbP8$Show, createSignal as $9HbP8$createSignal, createRenderEffect as $9HbP8$createRenderEffect, createRoot as $9HbP8$createRoot, onCleanup as $9HbP8$onCleanup, For as $9HbP8$For, getOwner as $9HbP8$getOwner, runWithOwner as $9HbP8$runWithOwner, createEffect as $9HbP8$createEffect, untrack as $9HbP8$untrack, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, Index as $9HbP8$Index, on as $9HbP8$on, batch as $9HbP8$batch, createReaction as $9HbP8$createReaction } from "solid-js";
4
4
 
5
5
  /*! Depict.ai search and product listing SDK */
6
6
  import { register_es_version } from "../multi_import_deduplicator.mjs";
7
7
  register_es_version("ui", "latest");
8
- const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.23";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.25";
9
9
  const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
10
10
  const cols_at_size = [];
11
11
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -421,7 +421,8 @@ function $f32e14878e75af51$export$6649caad96ef8870({
421
421
  children: children,
422
422
  slider_ref_: slider_ref_,
423
423
  faded_opacity_ = 0.7,
424
- mutation_plugins_ = []
424
+ mutation_plugins_ = [],
425
+ disable_fading_: disable_fading_
425
426
  }) {
426
427
  const slider = new (0, $9HbP8$Amazing_Slider)({
427
428
  button_contents: {
@@ -437,10 +438,10 @@ function $f32e14878e75af51$export$6649caad96ef8870({
437
438
  })()]
438
439
  },
439
440
  constructor_plugins: [$9HbP8$slider_snap_css().constructor_plugin],
440
- mutation_plugins: [$9HbP8$slider_fading_factory({
441
+ mutation_plugins: [...(disable_fading_ ? [] : [$9HbP8$slider_fading_factory({
441
442
  threshold_: 0.96,
442
443
  faded_opacity_: faded_opacity_
443
- }).mutation_plugin_, ...mutation_plugins_]
444
+ }).mutation_plugin_]), ...mutation_plugins_]
444
445
  });
445
446
  $9HbP8$insert(slider.insert_here, children);
446
447
  $9HbP8$onCleanup(() => slider.observer.disconnect());
@@ -457,14 +458,19 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
457
458
  const is_showing_something = $9HbP8$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
458
459
  const num_placeholders_ = () => 20;
459
460
  const slider = $9HbP8$createComponent((0, $f32e14878e75af51$export$6649caad96ef8870), {
461
+ disable_fading_: true,
460
462
  slider_ref_: slider => {
461
- const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, slider.insert_here, true);
463
+ const {
464
+ insert_here: insert_here
465
+ } = slider;
466
+ const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
462
467
  // Do like this, so we don't have to call mergeProps ourselves
463
468
  $9HbP8$createComponent(Layout, $9HbP8$mergeProps({
464
469
  rows: "all",
465
470
  layout: "slider"
466
471
  }, layout_options_));
467
- slider.insert_here.before($a458486f22b22f63$export$a2cc176055f8f08());
472
+ $9HbP8$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
473
+ insert_here.before($a458486f22b22f63$export$a2cc176055f8f08());
468
474
  },
469
475
  get children() {
470
476
  return $9HbP8$createComponent((0, $9HbP8$Suspense), {
@@ -496,7 +502,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
496
502
  children: slider
497
503
  });
498
504
  }
499
- const $ee116da074deb002$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp"></div>`, 2);
505
+ const $ee116da074deb002$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict recommendations"></div>`, 2);
500
506
  function $ee116da074deb002$export$9574e176201e5e8d(props) {
501
507
  const grid_spacing_override = $9HbP8$createMemo(() => {
502
508
  const {
@@ -584,7 +590,7 @@ function $3da8afe3ed57cf34$export$7da560f849543dff({
584
590
  });
585
591
  }
586
592
  const $9ea5383493360761$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="show-more major" type="button"></button>`, 2),
587
- $9ea5383493360761$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp"></div>`, 2);
593
+ $9ea5383493360761$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp recommendations"></div>`, 2);
588
594
  function $9ea5383493360761$export$9756467d34d91cdb(props) {
589
595
  const rows_object_ = $9HbP8$createMemo(() => {
590
596
  const view_more_button = props.view_more_button;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "1.4.23",
3
+ "version": "1.4.25",
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",
@@ -236,9 +236,9 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "latest",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^1.1.3",
239
+ "@depict-ai/plp-styling": "^1.1.4",
240
240
  "@depict-ai/types": "^1.0.38",
241
- "@depict-ai/utilishared": "^1.0.39",
241
+ "@depict-ai/utilishared": "^1.0.40",
242
242
  "solid-js": "^1.7.3"
243
243
  },
244
244
  "type": "module",
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
66
66
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
67
67
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
68
68
  /*! Depict.ai search and product listing SDK */
69
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.23";
69
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.25";
70
70
  const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
71
71
  const cols_at_size = [];
72
72
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -469,7 +469,8 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
469
469
  children: children,
470
470
  slider_ref_: slider_ref_,
471
471
  faded_opacity_ = 0.7,
472
- mutation_plugins_ = []
472
+ mutation_plugins_ = [],
473
+ disable_fading_: disable_fading_
473
474
  } = _ref;
474
475
  const slider = new (0, $3hooq$depictaiutilishared.Amazing_Slider)({
475
476
  button_contents: {
@@ -477,10 +478,10 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
477
478
  right: [$3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {})))]
478
479
  },
479
480
  constructor_plugins: [$3hooq$depictaiutilishared.slider_snap_css().constructor_plugin],
480
- mutation_plugins: [$3hooq$depictaiutilishared.slider_fading_factory({
481
+ mutation_plugins: [...(disable_fading_ ? [] : [$3hooq$depictaiutilishared.slider_fading_factory({
481
482
  threshold_: 0.96,
482
483
  faded_opacity_: faded_opacity_
483
- }).mutation_plugin_, ...mutation_plugins_]
484
+ }).mutation_plugin_]), ...mutation_plugins_]
484
485
  });
485
486
  $3hooq$solidjsweb.insert(slider.insert_here, children);
486
487
  $3hooq$solidjs.onCleanup(() => slider.observer.disconnect());
@@ -501,14 +502,19 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
501
502
  });
502
503
  const num_placeholders_ = () => 20;
503
504
  const slider = $3hooq$solidjsweb.createComponent((0, $ad8ec7729fffeb9c$export$6649caad96ef8870), {
505
+ disable_fading_: true,
504
506
  slider_ref_: slider => {
505
- const Layout = props => $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, slider.insert_here, true);
507
+ const {
508
+ insert_here: insert_here
509
+ } = slider;
510
+ const Layout = props => $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, insert_here, true);
506
511
  // Do like this, so we don't have to call mergeProps ourselves
507
512
  $3hooq$solidjsweb.createComponent(Layout, $3hooq$solidjsweb.mergeProps({
508
513
  rows: "all",
509
514
  layout: "slider"
510
515
  }, layout_options_));
511
- slider.insert_here.before($8edd3cf30d1fd8b4$export$a2cc176055f8f08());
516
+ $3hooq$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
517
+ insert_here.before($8edd3cf30d1fd8b4$export$a2cc176055f8f08());
512
518
  },
513
519
  get children() {
514
520
  return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Suspense), {
@@ -540,7 +546,7 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
540
546
  children: slider
541
547
  });
542
548
  }
543
- const $2badc30d7c6610e1$var$_tmpl$ = ["<div", ' class="depict plp">', "</div>"];
549
+ const $2badc30d7c6610e1$var$_tmpl$ = ["<div", ' class="depict recommendations">', "</div>"];
544
550
  function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
545
551
  const grid_spacing_override = $3hooq$solidjs.createMemo(() => {
546
552
  const {
@@ -623,7 +629,7 @@ function $2c920813c92d6987$export$7da560f849543dff(_ref) {
623
629
  });
624
630
  }
625
631
  const $41227f10ad680afd$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
626
- $41227f10ad680afd$var$_tmpl$2 = ["<div", ' class="depict plp">', "</div>"];
632
+ $41227f10ad680afd$var$_tmpl$2 = ["<div", ' class="depict plp recommendations">', "</div>"];
627
633
  function $41227f10ad680afd$export$9756467d34d91cdb(props) {
628
634
  const rows_object_ = $3hooq$solidjs.createMemo(() => {
629
635
  const view_more_button = props.view_more_button;
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "1.4.23";
10
+ export const version = "1.4.25";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
@@ -1,4 +1,4 @@
1
- import { add_to_version_info as $b8hua$add_to_version_info, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, catchify as $b8hua$catchify, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, is_safari as $b8hua$is_safari, observer as $b8hua$observer, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, use_href_accessor as $b8hua$use_href_accessor, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
1
+ import { add_to_version_info as $b8hua$add_to_version_info, slider_fractional_factory as $b8hua$slider_fractional_factory, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, catchify as $b8hua$catchify, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, is_safari as $b8hua$is_safari, observer as $b8hua$observer, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, use_href_accessor as $b8hua$use_href_accessor, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
2
  import { ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, createComponent as $b8hua$createComponent, mergeProps as $b8hua$mergeProps, isServer as $b8hua$isServer, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, insert as $b8hua$insert, ssrAttribute as $b8hua$ssrAttribute, ssrStyle as $b8hua$ssrStyle, Dynamic as $b8hua$Dynamic } from "solid-js/web";
3
3
  import { createMemo as $b8hua$createMemo, createResource as $b8hua$createResource, Suspense as $b8hua$Suspense, Show as $b8hua$Show, createSignal as $b8hua$createSignal, createRenderEffect as $b8hua$createRenderEffect, createRoot as $b8hua$createRoot, onCleanup as $b8hua$onCleanup, For as $b8hua$For, getOwner as $b8hua$getOwner, runWithOwner as $b8hua$runWithOwner, createEffect as $b8hua$createEffect, untrack as $b8hua$untrack, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, Index as $b8hua$Index, on as $b8hua$on, batch as $b8hua$batch, createReaction as $b8hua$createReaction } from "solid-js";
4
4
  import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
@@ -8,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
8
8
  /*! Depict.ai search and product listing SDK */
9
9
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
10
10
  register_es_version("ui", "ES10");
11
- const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.23";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.25";
12
12
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
13
13
  const cols_at_size = [];
14
14
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -411,7 +411,8 @@ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
411
411
  children: children,
412
412
  slider_ref_: slider_ref_,
413
413
  faded_opacity_ = 0.7,
414
- mutation_plugins_ = []
414
+ mutation_plugins_ = [],
415
+ disable_fading_: disable_fading_
415
416
  } = _ref;
416
417
  const slider = new (0, $b8hua$Amazing_Slider)({
417
418
  button_contents: {
@@ -419,10 +420,10 @@ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
419
420
  right: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))]
420
421
  },
421
422
  constructor_plugins: [$b8hua$slider_snap_css().constructor_plugin],
422
- mutation_plugins: [$b8hua$slider_fading_factory({
423
+ mutation_plugins: [...(disable_fading_ ? [] : [$b8hua$slider_fading_factory({
423
424
  threshold_: 0.96,
424
425
  faded_opacity_: faded_opacity_
425
- }).mutation_plugin_, ...mutation_plugins_]
426
+ }).mutation_plugin_]), ...mutation_plugins_]
426
427
  });
427
428
  $b8hua$insert(slider.insert_here, children);
428
429
  $b8hua$onCleanup(() => slider.observer.disconnect());
@@ -443,14 +444,19 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
443
444
  });
444
445
  const num_placeholders_ = () => 20;
445
446
  const slider = $b8hua$createComponent((0, $002f09d00aac50b2$export$6649caad96ef8870), {
447
+ disable_fading_: true,
446
448
  slider_ref_: slider => {
447
- const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, slider.insert_here, true);
449
+ const {
450
+ insert_here: insert_here
451
+ } = slider;
452
+ const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, insert_here, true);
448
453
  // Do like this, so we don't have to call mergeProps ourselves
449
454
  $b8hua$createComponent(Layout, $b8hua$mergeProps({
450
455
  rows: "all",
451
456
  layout: "slider"
452
457
  }, layout_options_));
453
- slider.insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
458
+ $b8hua$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
459
+ insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
454
460
  },
455
461
  get children() {
456
462
  return $b8hua$createComponent((0, $b8hua$Suspense), {
@@ -482,7 +488,7 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
482
488
  children: slider
483
489
  });
484
490
  }
485
- const $d5d7e58c5c9d8db0$var$_tmpl$ = ["<div", ' class="depict plp">', "</div>"];
491
+ const $d5d7e58c5c9d8db0$var$_tmpl$ = ["<div", ' class="depict recommendations">', "</div>"];
486
492
  function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
487
493
  const grid_spacing_override = $b8hua$createMemo(() => {
488
494
  const {
@@ -565,7 +571,7 @@ function $e3efeb558d952696$export$7da560f849543dff(_ref) {
565
571
  });
566
572
  }
567
573
  const $b432b11321ad4c97$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
568
- $b432b11321ad4c97$var$_tmpl$2 = ["<div", ' class="depict plp">', "</div>"];
574
+ $b432b11321ad4c97$var$_tmpl$2 = ["<div", ' class="depict plp recommendations">', "</div>"];
569
575
  function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
570
576
  const rows_object_ = $b8hua$createMemo(() => {
571
577
  const view_more_button = props.view_more_button;
@@ -60,7 +60,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
60
60
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
61
61
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
62
62
  /*! Depict.ai search and product listing SDK */
63
- const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.23";
63
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.25";
64
64
  const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
65
65
  const cols_at_size = [];
66
66
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -433,7 +433,8 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
433
433
  children: children,
434
434
  slider_ref_: slider_ref_,
435
435
  faded_opacity_ = 0.7,
436
- mutation_plugins_ = []
436
+ mutation_plugins_ = [],
437
+ disable_fading_: disable_fading_
437
438
  }) {
438
439
  const slider = new (0, $5vyXB$depictaiutilishared.Amazing_Slider)({
439
440
  button_contents: {
@@ -441,10 +442,10 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
441
442
  right: [$5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {})))]
442
443
  },
443
444
  constructor_plugins: [$5vyXB$depictaiutilishared.slider_snap_css().constructor_plugin],
444
- mutation_plugins: [$5vyXB$depictaiutilishared.slider_fading_factory({
445
+ mutation_plugins: [...(disable_fading_ ? [] : [$5vyXB$depictaiutilishared.slider_fading_factory({
445
446
  threshold_: 0.96,
446
447
  faded_opacity_: faded_opacity_
447
- }).mutation_plugin_, ...mutation_plugins_]
448
+ }).mutation_plugin_]), ...mutation_plugins_]
448
449
  });
449
450
  $5vyXB$solidjsweb.insert(slider.insert_here, children);
450
451
  $5vyXB$solidjs.onCleanup(() => slider.observer.disconnect());
@@ -461,14 +462,19 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
461
462
  const is_showing_something = $5vyXB$solidjs.createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
462
463
  const num_placeholders_ = () => 20;
463
464
  const slider = $5vyXB$solidjsweb.createComponent((0, $a0e53f99354809d9$export$6649caad96ef8870), {
465
+ disable_fading_: true,
464
466
  slider_ref_: slider => {
465
- const Layout = props => $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, slider.insert_here, true);
467
+ const {
468
+ insert_here: insert_here
469
+ } = slider;
470
+ const Layout = props => $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, insert_here, true);
466
471
  // Do like this, so we don't have to call mergeProps ourselves
467
472
  $5vyXB$solidjsweb.createComponent(Layout, $5vyXB$solidjsweb.mergeProps({
468
473
  rows: "all",
469
474
  layout: "slider"
470
475
  }, layout_options_));
471
- slider.insert_here.before($fc23d7668ae0011d$export$a2cc176055f8f08());
476
+ $5vyXB$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
477
+ insert_here.before($fc23d7668ae0011d$export$a2cc176055f8f08());
472
478
  },
473
479
  get children() {
474
480
  return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Suspense), {
@@ -500,7 +506,7 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
500
506
  children: slider
501
507
  });
502
508
  }
503
- const $72f96c4782db0b1b$var$_tmpl$ = ["<div", ' class="depict plp">', "</div>"];
509
+ const $72f96c4782db0b1b$var$_tmpl$ = ["<div", ' class="depict recommendations">', "</div>"];
504
510
  function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
505
511
  const grid_spacing_override = $5vyXB$solidjs.createMemo(() => {
506
512
  const {
@@ -577,7 +583,7 @@ function $b8e79813f4f7ebe4$export$7da560f849543dff({
577
583
  });
578
584
  }
579
585
  const $1f8dbf7e28b3eff2$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
580
- $1f8dbf7e28b3eff2$var$_tmpl$2 = ["<div", ' class="depict plp">', "</div>"];
586
+ $1f8dbf7e28b3eff2$var$_tmpl$2 = ["<div", ' class="depict plp recommendations">', "</div>"];
581
587
  function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
582
588
  const rows_object_ = $5vyXB$solidjs.createMemo(() => {
583
589
  const view_more_button = props.view_more_button;
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "1.4.23";
10
+ export const version = "1.4.25";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
@@ -1,11 +1,11 @@
1
- import { add_to_version_info as $i7OB2$add_to_version_info, make_random_classname as $i7OB2$make_random_classname, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, catchify as $i7OB2$catchify, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, report as $i7OB2$report, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, slider_fading_factory as $i7OB2$slider_fading_factory, is_safari as $i7OB2$is_safari, observer as $i7OB2$observer, useExpandingContainer as $i7OB2$useExpandingContainer, standard_price_format as $i7OB2$standard_price_format, dlog as $i7OB2$dlog, hex_to_rgb as $i7OB2$hex_to_rgb, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, javascript_media_query as $i7OB2$javascript_media_query, fetch_recs as $i7OB2$fetch_recs, snakeCasifyObject as $i7OB2$snakeCasifyObject, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, base_url as $i7OB2$base_url, get_depict_id as $i7OB2$get_depict_id, get_user_id as $i7OB2$get_user_id, get_session_id as $i7OB2$get_session_id, sort_obj as $i7OB2$sort_obj, fetch_retry as $i7OB2$fetch_retry, add_version_query_params as $i7OB2$add_version_query_params, dwarn as $i7OB2$dwarn, make_url_with_query_params as $i7OB2$make_url_with_query_params, edit_current_page_meta_tags as $i7OB2$edit_current_page_meta_tags, use_href_accessor as $i7OB2$use_href_accessor, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, queueMacroTask as $i7OB2$queueMacroTask, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, ContainedImage as $i7OB2$ContainedImage, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
1
+ import { add_to_version_info as $i7OB2$add_to_version_info, slider_fractional_factory as $i7OB2$slider_fractional_factory, make_random_classname as $i7OB2$make_random_classname, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, catchify as $i7OB2$catchify, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, report as $i7OB2$report, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, slider_fading_factory as $i7OB2$slider_fading_factory, is_safari as $i7OB2$is_safari, observer as $i7OB2$observer, useExpandingContainer as $i7OB2$useExpandingContainer, standard_price_format as $i7OB2$standard_price_format, dlog as $i7OB2$dlog, hex_to_rgb as $i7OB2$hex_to_rgb, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, javascript_media_query as $i7OB2$javascript_media_query, fetch_recs as $i7OB2$fetch_recs, snakeCasifyObject as $i7OB2$snakeCasifyObject, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, base_url as $i7OB2$base_url, get_depict_id as $i7OB2$get_depict_id, get_user_id as $i7OB2$get_user_id, get_session_id as $i7OB2$get_session_id, sort_obj as $i7OB2$sort_obj, fetch_retry as $i7OB2$fetch_retry, add_version_query_params as $i7OB2$add_version_query_params, dwarn as $i7OB2$dwarn, make_url_with_query_params as $i7OB2$make_url_with_query_params, edit_current_page_meta_tags as $i7OB2$edit_current_page_meta_tags, use_href_accessor as $i7OB2$use_href_accessor, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, queueMacroTask as $i7OB2$queueMacroTask, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, ContainedImage as $i7OB2$ContainedImage, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
2
2
  import { ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, createComponent as $i7OB2$createComponent, mergeProps as $i7OB2$mergeProps, isServer as $i7OB2$isServer, ssrElement as $i7OB2$ssrElement, ssrClassList as $i7OB2$ssrClassList, insert as $i7OB2$insert, ssrAttribute as $i7OB2$ssrAttribute, ssrStyle as $i7OB2$ssrStyle, Dynamic as $i7OB2$Dynamic } from "solid-js/web";
3
3
  import { createMemo as $i7OB2$createMemo, createResource as $i7OB2$createResource, Suspense as $i7OB2$Suspense, Show as $i7OB2$Show, createSignal as $i7OB2$createSignal, createRenderEffect as $i7OB2$createRenderEffect, createRoot as $i7OB2$createRoot, onCleanup as $i7OB2$onCleanup, For as $i7OB2$For, getOwner as $i7OB2$getOwner, runWithOwner as $i7OB2$runWithOwner, createEffect as $i7OB2$createEffect, untrack as $i7OB2$untrack, createComputed as $i7OB2$createComputed, ErrorBoundary as $i7OB2$ErrorBoundary, Index as $i7OB2$Index, on as $i7OB2$on, batch as $i7OB2$batch, createReaction as $i7OB2$createReaction } from "solid-js";
4
4
 
5
5
  /*! Depict.ai search and product listing SDK */
6
6
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
7
7
  register_es_version("ui", "latest");
8
- const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.23";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.25";
9
9
  const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
10
10
  const cols_at_size = [];
11
11
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -378,7 +378,8 @@ function $f32e14878e75af51$export$6649caad96ef8870({
378
378
  children: children,
379
379
  slider_ref_: slider_ref_,
380
380
  faded_opacity_ = 0.7,
381
- mutation_plugins_ = []
381
+ mutation_plugins_ = [],
382
+ disable_fading_: disable_fading_
382
383
  }) {
383
384
  const slider = new (0, $i7OB2$Amazing_Slider)({
384
385
  button_contents: {
@@ -386,10 +387,10 @@ function $f32e14878e75af51$export$6649caad96ef8870({
386
387
  right: [$i7OB2$ssr($f32e14878e75af51$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $fbbadcb080ad1d4a$export$8be2714ec7f169ee), {})))]
387
388
  },
388
389
  constructor_plugins: [$i7OB2$slider_snap_css().constructor_plugin],
389
- mutation_plugins: [$i7OB2$slider_fading_factory({
390
+ mutation_plugins: [...(disable_fading_ ? [] : [$i7OB2$slider_fading_factory({
390
391
  threshold_: 0.96,
391
392
  faded_opacity_: faded_opacity_
392
- }).mutation_plugin_, ...mutation_plugins_]
393
+ }).mutation_plugin_]), ...mutation_plugins_]
393
394
  });
394
395
  $i7OB2$insert(slider.insert_here, children);
395
396
  $i7OB2$onCleanup(() => slider.observer.disconnect());
@@ -406,14 +407,19 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
406
407
  const is_showing_something = $i7OB2$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
407
408
  const num_placeholders_ = () => 20;
408
409
  const slider = $i7OB2$createComponent((0, $f32e14878e75af51$export$6649caad96ef8870), {
410
+ disable_fading_: true,
409
411
  slider_ref_: slider => {
410
- const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, slider.insert_here, true);
412
+ const {
413
+ insert_here: insert_here
414
+ } = slider;
415
+ const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
411
416
  // Do like this, so we don't have to call mergeProps ourselves
412
417
  $i7OB2$createComponent(Layout, $i7OB2$mergeProps({
413
418
  rows: "all",
414
419
  layout: "slider"
415
420
  }, layout_options_));
416
- slider.insert_here.before($a458486f22b22f63$export$a2cc176055f8f08());
421
+ $i7OB2$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
422
+ insert_here.before($a458486f22b22f63$export$a2cc176055f8f08());
417
423
  },
418
424
  get children() {
419
425
  return $i7OB2$createComponent((0, $i7OB2$Suspense), {
@@ -445,7 +451,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
445
451
  children: slider
446
452
  });
447
453
  }
448
- const $ee116da074deb002$var$_tmpl$ = ["<div", ' class="depict plp">', "</div>"];
454
+ const $ee116da074deb002$var$_tmpl$ = ["<div", ' class="depict recommendations">', "</div>"];
449
455
  function $ee116da074deb002$export$9574e176201e5e8d(props) {
450
456
  const grid_spacing_override = $i7OB2$createMemo(() => {
451
457
  const {
@@ -522,7 +528,7 @@ function $3da8afe3ed57cf34$export$7da560f849543dff({
522
528
  });
523
529
  }
524
530
  const $9ea5383493360761$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
525
- $9ea5383493360761$var$_tmpl$2 = ["<div", ' class="depict plp">', "</div>"];
531
+ $9ea5383493360761$var$_tmpl$2 = ["<div", ' class="depict plp recommendations">', "</div>"];
526
532
  function $9ea5383493360761$export$9756467d34d91cdb(props) {
527
533
  const rows_object_ = $i7OB2$createMemo(() => {
528
534
  const view_more_button = props.view_more_button;