@depict-ai/ui 1.4.23 → 1.4.24

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