@depict-ai/ui 2.0.13 → 2.0.14

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,6 @@
1
1
  var $52FdA$depictaiutilishared = require("@depict-ai/utilishared/ES10");
2
- var $52FdA$solidjs = require("solid-js");
3
2
  var $52FdA$solidjsweb = require("solid-js/web");
3
+ var $52FdA$solidjs = require("solid-js");
4
4
  var $52FdA$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
5
5
  var $52FdA$babelruntimehelpersclassPrivateFieldGet = require("@babel/runtime/helpers/classPrivateFieldGet");
6
6
  var $52FdA$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
@@ -16,6 +16,7 @@ function $parcel$export(e, n, v, s) {
16
16
  function $parcel$interopDefault(a) {
17
17
  return a && a.__esModule ? a.default : a;
18
18
  }
19
+ $parcel$export(module.exports, "SlidableItems", () => $ad8ec7729fffeb9c$export$6649caad96ef8870);
19
20
  $parcel$export(module.exports, "make_accurate_size_accessor", () => $13671aa5e984acd9$export$9f191182275e9ef);
20
21
  $parcel$export(module.exports, "RecommendationSlider", () => $2badc30d7c6610e1$export$9574e176201e5e8d);
21
22
  $parcel$export(module.exports, "RecommendationGrid", () => $41227f10ad680afd$export$9756467d34d91cdb);
@@ -67,7 +68,67 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
67
68
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
68
69
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
69
70
  /*! Depict.ai search and product listing SDK */
70
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.13";
71
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.14";
72
+ const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
73
+ function $9d19451330d04c3c$export$8be2714ec7f169ee() {
74
+ let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
75
+ return (() => {
76
+ const _el$ = $52FdA$solidjsweb.getNextElement($9d19451330d04c3c$var$_tmpl$);
77
+ $52FdA$solidjsweb.effect(_p$ => {
78
+ var _props$width_, _props$height_;
79
+ const _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
80
+ _v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
81
+ _v$ !== _p$._v$ && $52FdA$solidjsweb.setAttribute(_el$, "width", _p$._v$ = _v$);
82
+ _v$2 !== _p$._v$2 && $52FdA$solidjsweb.setAttribute(_el$, "height", _p$._v$2 = _v$2);
83
+ return _p$;
84
+ }, {
85
+ _v$: undefined,
86
+ _v$2: undefined
87
+ });
88
+ return _el$;
89
+ })();
90
+ }
91
+ const $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2);
92
+ function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
93
+ let {
94
+ children: children,
95
+ slider_ref_: slider_ref_,
96
+ faded_opacity_ = 0.7,
97
+ mutation_plugins_ = [],
98
+ disable_fading_: disable_fading_,
99
+ arrow_width_: arrow_width_,
100
+ arrow_height_: arrow_height_
101
+ } = _ref;
102
+ const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
103
+ button_contents: {
104
+ left: [(() => {
105
+ const _el$ = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
106
+ $52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
107
+ height_: arrow_height_,
108
+ width_: arrow_width_
109
+ }));
110
+ return _el$;
111
+ })()],
112
+ right: [(() => {
113
+ const _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
114
+ $52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
115
+ height_: arrow_height_,
116
+ width_: arrow_width_
117
+ }));
118
+ return _el$2;
119
+ })()]
120
+ },
121
+ constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css().constructor_plugin],
122
+ mutation_plugins: [...(disable_fading_ ? [] : [$52FdA$depictaiutilishared.slider_fading_factory({
123
+ threshold_: 0.96,
124
+ faded_opacity_: faded_opacity_
125
+ }).mutation_plugin_]), ...mutation_plugins_]
126
+ });
127
+ $52FdA$solidjsweb.insert(slider.insert_here, children);
128
+ $52FdA$solidjs.onCleanup(() => slider.observer.disconnect());
129
+ slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
130
+ return slider.container;
131
+ }
71
132
 
72
133
  /** @jsxImportSource solid-js */
73
134
 
@@ -530,66 +591,6 @@ function $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, container_element) {
530
591
  return [container_element, $52FdA$solidjsweb.memo(view_more_button_container), $52FdA$solidjsweb.memo(view_less_button_container), style_element];
531
592
  }
532
593
  $52FdA$solidjsweb.delegateEvents(["click"]);
533
- const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
534
- function $9d19451330d04c3c$export$8be2714ec7f169ee() {
535
- let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
536
- return (() => {
537
- const _el$ = $52FdA$solidjsweb.getNextElement($9d19451330d04c3c$var$_tmpl$);
538
- $52FdA$solidjsweb.effect(_p$ => {
539
- var _props$width_, _props$height_;
540
- const _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
541
- _v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
542
- _v$ !== _p$._v$ && $52FdA$solidjsweb.setAttribute(_el$, "width", _p$._v$ = _v$);
543
- _v$2 !== _p$._v$2 && $52FdA$solidjsweb.setAttribute(_el$, "height", _p$._v$2 = _v$2);
544
- return _p$;
545
- }, {
546
- _v$: undefined,
547
- _v$2: undefined
548
- });
549
- return _el$;
550
- })();
551
- }
552
- const $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2);
553
- function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
554
- let {
555
- children: children,
556
- slider_ref_: slider_ref_,
557
- faded_opacity_ = 0.7,
558
- mutation_plugins_ = [],
559
- disable_fading_: disable_fading_,
560
- arrow_width_: arrow_width_,
561
- arrow_height_: arrow_height_
562
- } = _ref;
563
- const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
564
- button_contents: {
565
- left: [(() => {
566
- const _el$ = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
567
- $52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
568
- height_: arrow_height_,
569
- width_: arrow_width_
570
- }));
571
- return _el$;
572
- })()],
573
- right: [(() => {
574
- const _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
575
- $52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
576
- height_: arrow_height_,
577
- width_: arrow_width_
578
- }));
579
- return _el$2;
580
- })()]
581
- },
582
- constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css().constructor_plugin],
583
- mutation_plugins: [...(disable_fading_ ? [] : [$52FdA$depictaiutilishared.slider_fading_factory({
584
- threshold_: 0.96,
585
- faded_opacity_: faded_opacity_
586
- }).mutation_plugin_]), ...mutation_plugins_]
587
- });
588
- $52FdA$solidjsweb.insert(slider.insert_here, children);
589
- $52FdA$solidjs.onCleanup(() => slider.observer.disconnect());
590
- slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
591
- return slider.container;
592
- }
593
594
  function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
594
595
  let {
595
596
  recommendations_resource_: recommendations_resource_,
package/ES10/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX, Signal, Accessor, Setter } from "solid-js";
2
- import { Display, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/ES10";
2
+ import { Amazing_Slider, Display, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/ES10";
3
3
  import { SearchFilter, SearchRequest } from "@depict-ai/types/api/SearchRequest";
4
4
  import { SearchFilter as _SearchFilter1, ContentLink, SearchResponse } from "@depict-ai/types/api/SearchResponse";
5
5
  import { BaseCategoryDisplay, ProductListingResponse } from "@depict-ai/types/api/ProductListingResponse";
@@ -7,7 +7,29 @@ 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 = "2.0.13";
10
+ export const version = "2.0.14";
11
+ /** @jsxImportSource solid-js */
12
+ export function GenericSliderArrowButton(props?: {
13
+ width_?: number;
14
+ height_?: number;
15
+ }): SVGElement;
16
+ export function SlidableItems({
17
+ children,
18
+ slider_ref_,
19
+ faded_opacity_,
20
+ mutation_plugins_,
21
+ disable_fading_,
22
+ arrow_width_,
23
+ arrow_height_
24
+ }: {
25
+ children?: JSX.Element;
26
+ slider_ref_?: (slider: Amazing_Slider) => any;
27
+ faded_opacity_?: number;
28
+ disable_fading_?: boolean;
29
+ mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
30
+ arrow_width_?: number;
31
+ arrow_height_?: number;
32
+ }): HTMLDivElement;
11
33
  /**
12
34
  * Returns accessor with the size of the provided element, including padding and border (I think)
13
35
  */
@@ -88,11 +110,6 @@ export type SolidLayoutOptions = {
88
110
  * @return An accessor containing a CSS string
89
111
  */
90
112
  export function SolidLayout(props: SolidLayoutOptions): JSX.Element;
91
- /** @jsxImportSource solid-js */
92
- export function GenericSliderArrowButton(props?: {
93
- width_?: number;
94
- height_?: number;
95
- }): SVGElement;
96
113
  type RecommendationSliderBaseProps<T extends Display> = {
97
114
  grid_spacing: SDKGridSpacing;
98
115
  cols_at_size: SDKColsAtSize;
package/ES10/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { add_to_version_info as $8tj43$add_to_version_info, catchify as $8tj43$catchify, observer as $8tj43$observer, slider_fractional_factory as $8tj43$slider_fractional_factory, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, 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, 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, ListenableSet as $8tj43$ListenableSet, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
- import { createSignal as $8tj43$createSignal, onCleanup as $8tj43$onCleanup, createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, Suspense as $8tj43$Suspense, Show as $8tj43$Show, createRenderEffect as $8tj43$createRenderEffect, createRoot as $8tj43$createRoot, For as $8tj43$For, getOwner as $8tj43$getOwner, runWithOwner as $8tj43$runWithOwner, createEffect as $8tj43$createEffect, createUniqueId as $8tj43$createUniqueId, 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";
3
- 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";
1
+ import { add_to_version_info as $8tj43$add_to_version_info, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, slider_fading_factory as $8tj43$slider_fading_factory, catchify as $8tj43$catchify, observer as $8tj43$observer, slider_fractional_factory as $8tj43$slider_fractional_factory, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, is_safari as $8tj43$is_safari, 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, ListenableSet as $8tj43$ListenableSet, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
+ import { template as $8tj43$template, getNextElement as $8tj43$getNextElement, insert as $8tj43$insert, createComponent as $8tj43$createComponent, effect as $8tj43$effect, setAttribute as $8tj43$setAttribute, 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, classList as $8tj43$classList, getNextMarker as $8tj43$getNextMarker, style as $8tj43$style, Dynamic as $8tj43$Dynamic, use as $8tj43$use } from "solid-js/web";
3
+ import { onCleanup as $8tj43$onCleanup, createSignal as $8tj43$createSignal, createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, Suspense as $8tj43$Suspense, Show as $8tj43$Show, createRenderEffect as $8tj43$createRenderEffect, createRoot as $8tj43$createRoot, For as $8tj43$For, getOwner as $8tj43$getOwner, runWithOwner as $8tj43$runWithOwner, createEffect as $8tj43$createEffect, createUniqueId as $8tj43$createUniqueId, 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";
5
5
  import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
6
6
  import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
@@ -8,7 +8,67 @@ 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 = "2.0.13";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.14";
12
+ const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
13
+ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
14
+ let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
15
+ return (() => {
16
+ const _el$ = $8tj43$getNextElement($ca6ab5f08bd28bca$var$_tmpl$);
17
+ $8tj43$effect(_p$ => {
18
+ var _props$width_, _props$height_;
19
+ const _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
20
+ _v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
21
+ _v$ !== _p$._v$ && $8tj43$setAttribute(_el$, "width", _p$._v$ = _v$);
22
+ _v$2 !== _p$._v$2 && $8tj43$setAttribute(_el$, "height", _p$._v$2 = _v$2);
23
+ return _p$;
24
+ }, {
25
+ _v$: undefined,
26
+ _v$2: undefined
27
+ });
28
+ return _el$;
29
+ })();
30
+ }
31
+ const $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div></div>`, 2);
32
+ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
33
+ let {
34
+ children: children,
35
+ slider_ref_: slider_ref_,
36
+ faded_opacity_ = 0.7,
37
+ mutation_plugins_ = [],
38
+ disable_fading_: disable_fading_,
39
+ arrow_width_: arrow_width_,
40
+ arrow_height_: arrow_height_
41
+ } = _ref;
42
+ const slider = new (0, $8tj43$Amazing_Slider)({
43
+ button_contents: {
44
+ left: [(() => {
45
+ const _el$ = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
46
+ $8tj43$insert(_el$, $8tj43$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
47
+ height_: arrow_height_,
48
+ width_: arrow_width_
49
+ }));
50
+ return _el$;
51
+ })()],
52
+ right: [(() => {
53
+ const _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
54
+ $8tj43$insert(_el$2, $8tj43$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
55
+ height_: arrow_height_,
56
+ width_: arrow_width_
57
+ }));
58
+ return _el$2;
59
+ })()]
60
+ },
61
+ constructor_plugins: [$8tj43$slider_snap_css().constructor_plugin],
62
+ mutation_plugins: [...(disable_fading_ ? [] : [$8tj43$slider_fading_factory({
63
+ threshold_: 0.96,
64
+ faded_opacity_: faded_opacity_
65
+ }).mutation_plugin_]), ...mutation_plugins_]
66
+ });
67
+ $8tj43$insert(slider.insert_here, children);
68
+ $8tj43$onCleanup(() => slider.observer.disconnect());
69
+ slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
70
+ return slider.container;
71
+ }
12
72
 
13
73
  /** @jsxImportSource solid-js */
14
74
 
@@ -471,66 +531,6 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
471
531
  return [container_element, $8tj43$memo(view_more_button_container), $8tj43$memo(view_less_button_container), style_element];
472
532
  }
473
533
  $8tj43$delegateEvents(["click"]);
474
- const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
475
- function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
476
- let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
477
- return (() => {
478
- const _el$ = $8tj43$getNextElement($ca6ab5f08bd28bca$var$_tmpl$);
479
- $8tj43$effect(_p$ => {
480
- var _props$width_, _props$height_;
481
- const _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
482
- _v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
483
- _v$ !== _p$._v$ && $8tj43$setAttribute(_el$, "width", _p$._v$ = _v$);
484
- _v$2 !== _p$._v$2 && $8tj43$setAttribute(_el$, "height", _p$._v$2 = _v$2);
485
- return _p$;
486
- }, {
487
- _v$: undefined,
488
- _v$2: undefined
489
- });
490
- return _el$;
491
- })();
492
- }
493
- const $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div></div>`, 2);
494
- function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
495
- let {
496
- children: children,
497
- slider_ref_: slider_ref_,
498
- faded_opacity_ = 0.7,
499
- mutation_plugins_ = [],
500
- disable_fading_: disable_fading_,
501
- arrow_width_: arrow_width_,
502
- arrow_height_: arrow_height_
503
- } = _ref;
504
- const slider = new (0, $8tj43$Amazing_Slider)({
505
- button_contents: {
506
- left: [(() => {
507
- const _el$ = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
508
- $8tj43$insert(_el$, $8tj43$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
509
- height_: arrow_height_,
510
- width_: arrow_width_
511
- }));
512
- return _el$;
513
- })()],
514
- right: [(() => {
515
- const _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
516
- $8tj43$insert(_el$2, $8tj43$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
517
- height_: arrow_height_,
518
- width_: arrow_width_
519
- }));
520
- return _el$2;
521
- })()]
522
- },
523
- constructor_plugins: [$8tj43$slider_snap_css().constructor_plugin],
524
- mutation_plugins: [...(disable_fading_ ? [] : [$8tj43$slider_fading_factory({
525
- threshold_: 0.96,
526
- faded_opacity_: faded_opacity_
527
- }).mutation_plugin_]), ...mutation_plugins_]
528
- });
529
- $8tj43$insert(slider.insert_here, children);
530
- $8tj43$onCleanup(() => slider.observer.disconnect());
531
- slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
532
- return slider.container;
533
- }
534
534
  function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
535
535
  let {
536
536
  recommendations_resource_: recommendations_resource_,
@@ -11707,4 +11707,4 @@ const $d399250dfa491636$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
11707
11707
  const $d399250dfa491636$export$864d304a0bc46829 = "2%";
11708
11708
  const $d399250dfa491636$export$7bf543b9d9be2c22 = (0, $fa332ea03168857c$export$b91cec6bdc6b32a1);
11709
11709
  $8tj43$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
11710
- export { $0dc044cffe1e825b$export$9f191182275e9ef as make_accurate_size_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version };
11710
+ export { $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $0dc044cffe1e825b$export$9f191182275e9ef as make_accurate_size_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version };
package/latest/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var $gVhhF$depictaiutilishared = require("@depict-ai/utilishared/latest");
2
- var $gVhhF$solidjs = require("solid-js");
3
2
  var $gVhhF$solidjsweb = require("solid-js/web");
3
+ var $gVhhF$solidjs = require("solid-js");
4
4
  require("../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {
@@ -10,6 +10,7 @@ function $parcel$export(e, n, v, s) {
10
10
  configurable: true
11
11
  });
12
12
  }
13
+ $parcel$export(module.exports, "SlidableItems", () => $a0e53f99354809d9$export$6649caad96ef8870);
13
14
  $parcel$export(module.exports, "make_accurate_size_accessor", () => $e5f442fb78c98741$export$9f191182275e9ef);
14
15
  $parcel$export(module.exports, "RecommendationSlider", () => $72f96c4782db0b1b$export$9574e176201e5e8d);
15
16
  $parcel$export(module.exports, "RecommendationGrid", () => $1f8dbf7e28b3eff2$export$9756467d34d91cdb);
@@ -61,7 +62,64 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
61
62
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
62
63
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
63
64
  /*! Depict.ai search and product listing SDK */
64
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.13";
65
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.14";
66
+ const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
67
+ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
68
+ return (() => {
69
+ const _el$ = $gVhhF$solidjsweb.getNextElement($0f313083912e447a$var$_tmpl$);
70
+ $gVhhF$solidjsweb.effect(_p$ => {
71
+ const _v$ = props.width_ ?? 14,
72
+ _v$2 = props.height_ ?? 26;
73
+ _v$ !== _p$._v$ && $gVhhF$solidjsweb.setAttribute(_el$, "width", _p$._v$ = _v$);
74
+ _v$2 !== _p$._v$2 && $gVhhF$solidjsweb.setAttribute(_el$, "height", _p$._v$2 = _v$2);
75
+ return _p$;
76
+ }, {
77
+ _v$: undefined,
78
+ _v$2: undefined
79
+ });
80
+ return _el$;
81
+ })();
82
+ }
83
+ const $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div></div>`, 2);
84
+ function $a0e53f99354809d9$export$6649caad96ef8870({
85
+ children: children,
86
+ slider_ref_: slider_ref_,
87
+ faded_opacity_ = 0.7,
88
+ mutation_plugins_ = [],
89
+ disable_fading_: disable_fading_,
90
+ arrow_width_: arrow_width_,
91
+ arrow_height_: arrow_height_
92
+ }) {
93
+ const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
94
+ button_contents: {
95
+ left: [(() => {
96
+ const _el$ = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
97
+ $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
98
+ height_: arrow_height_,
99
+ width_: arrow_width_
100
+ }));
101
+ return _el$;
102
+ })()],
103
+ right: [(() => {
104
+ const _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
105
+ $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
106
+ height_: arrow_height_,
107
+ width_: arrow_width_
108
+ }));
109
+ return _el$2;
110
+ })()]
111
+ },
112
+ constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css().constructor_plugin],
113
+ mutation_plugins: [...(disable_fading_ ? [] : [$gVhhF$depictaiutilishared.slider_fading_factory({
114
+ threshold_: 0.96,
115
+ faded_opacity_: faded_opacity_
116
+ }).mutation_plugin_]), ...mutation_plugins_]
117
+ });
118
+ $gVhhF$solidjsweb.insert(slider.insert_here, children);
119
+ $gVhhF$solidjs.onCleanup(() => slider.observer.disconnect());
120
+ slider_ref_?.(slider);
121
+ return slider.container;
122
+ }
65
123
 
66
124
  /** @jsxImportSource solid-js */
67
125
 
@@ -493,63 +551,6 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
493
551
  return [container_element, $gVhhF$solidjsweb.memo(view_more_button_container), $gVhhF$solidjsweb.memo(view_less_button_container), style_element];
494
552
  }
495
553
  $gVhhF$solidjsweb.delegateEvents(["click"]);
496
- const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
497
- function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
498
- return (() => {
499
- const _el$ = $gVhhF$solidjsweb.getNextElement($0f313083912e447a$var$_tmpl$);
500
- $gVhhF$solidjsweb.effect(_p$ => {
501
- const _v$ = props.width_ ?? 14,
502
- _v$2 = props.height_ ?? 26;
503
- _v$ !== _p$._v$ && $gVhhF$solidjsweb.setAttribute(_el$, "width", _p$._v$ = _v$);
504
- _v$2 !== _p$._v$2 && $gVhhF$solidjsweb.setAttribute(_el$, "height", _p$._v$2 = _v$2);
505
- return _p$;
506
- }, {
507
- _v$: undefined,
508
- _v$2: undefined
509
- });
510
- return _el$;
511
- })();
512
- }
513
- const $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div></div>`, 2);
514
- function $a0e53f99354809d9$export$6649caad96ef8870({
515
- children: children,
516
- slider_ref_: slider_ref_,
517
- faded_opacity_ = 0.7,
518
- mutation_plugins_ = [],
519
- disable_fading_: disable_fading_,
520
- arrow_width_: arrow_width_,
521
- arrow_height_: arrow_height_
522
- }) {
523
- const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
524
- button_contents: {
525
- left: [(() => {
526
- const _el$ = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
527
- $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
528
- height_: arrow_height_,
529
- width_: arrow_width_
530
- }));
531
- return _el$;
532
- })()],
533
- right: [(() => {
534
- const _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
535
- $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
536
- height_: arrow_height_,
537
- width_: arrow_width_
538
- }));
539
- return _el$2;
540
- })()]
541
- },
542
- constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css().constructor_plugin],
543
- mutation_plugins: [...(disable_fading_ ? [] : [$gVhhF$depictaiutilishared.slider_fading_factory({
544
- threshold_: 0.96,
545
- faded_opacity_: faded_opacity_
546
- }).mutation_plugin_]), ...mutation_plugins_]
547
- });
548
- $gVhhF$solidjsweb.insert(slider.insert_here, children);
549
- $gVhhF$solidjs.onCleanup(() => slider.observer.disconnect());
550
- slider_ref_?.(slider);
551
- return slider.container;
552
- }
553
554
  function $363ce4d1d71041aa$export$d41d19e89346fa2({
554
555
  recommendations_resource_: recommendations_resource_,
555
556
  product_card_template_: product_card_template_,
package/latest/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX, Signal, Accessor, Setter } from "solid-js";
2
- import { Display, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/latest";
2
+ import { Amazing_Slider, Display, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/latest";
3
3
  import { SearchFilter, SearchRequest } from "@depict-ai/types/api/SearchRequest";
4
4
  import { SearchFilter as _SearchFilter1, ContentLink, SearchResponse } from "@depict-ai/types/api/SearchResponse";
5
5
  import { BaseCategoryDisplay, ProductListingResponse } from "@depict-ai/types/api/ProductListingResponse";
@@ -7,7 +7,29 @@ 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 = "2.0.13";
10
+ export const version = "2.0.14";
11
+ /** @jsxImportSource solid-js */
12
+ export function GenericSliderArrowButton(props?: {
13
+ width_?: number;
14
+ height_?: number;
15
+ }): SVGElement;
16
+ export function SlidableItems({
17
+ children,
18
+ slider_ref_,
19
+ faded_opacity_,
20
+ mutation_plugins_,
21
+ disable_fading_,
22
+ arrow_width_,
23
+ arrow_height_
24
+ }: {
25
+ children?: JSX.Element;
26
+ slider_ref_?: (slider: Amazing_Slider) => any;
27
+ faded_opacity_?: number;
28
+ disable_fading_?: boolean;
29
+ mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
30
+ arrow_width_?: number;
31
+ arrow_height_?: number;
32
+ }): HTMLDivElement;
11
33
  /**
12
34
  * Returns accessor with the size of the provided element, including padding and border (I think)
13
35
  */
@@ -88,11 +110,6 @@ export type SolidLayoutOptions = {
88
110
  * @return An accessor containing a CSS string
89
111
  */
90
112
  export function SolidLayout(props: SolidLayoutOptions): JSX.Element;
91
- /** @jsxImportSource solid-js */
92
- export function GenericSliderArrowButton(props?: {
93
- width_?: number;
94
- height_?: number;
95
- }): SVGElement;
96
113
  type RecommendationSliderBaseProps<T extends Display> = {
97
114
  grid_spacing: SDKGridSpacing;
98
115
  cols_at_size: SDKColsAtSize;