@depict-ai/react-ui 2.1.10 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/ES10/index.cjs +9 -3
  2. package/ES10/index.d.ts +9 -3
  3. package/ES10/index.js +9 -3
  4. package/dist/styles/plain-css-fallback-styling.css +1 -1
  5. package/latest/index.cjs +9 -3
  6. package/latest/index.d.ts +9 -3
  7. package/latest/index.js +9 -3
  8. package/package.json +6 -6
  9. package/server/ES10/index.cjs +18 -15
  10. package/server/ES10/index.d.ts +9 -3
  11. package/server/ES10/index.js +18 -15
  12. package/server/latest/index.cjs +17 -14
  13. package/server/latest/index.d.ts +9 -3
  14. package/server/latest/index.js +17 -14
  15. package/dist/main.js +0 -527
  16. package/dist/module.js +0 -510
  17. package/dist/styles/components/PLP/Buttons.scss +0 -181
  18. package/dist/styles/components/PLP/MorphingSign.scss +0 -30
  19. package/dist/styles/components/PLP/PLPResults.scss +0 -26
  20. package/dist/styles/components/PLP/ProductListingPage.scss +0 -168
  21. package/dist/styles/components/PLP/ScrollStatus.scss +0 -31
  22. package/dist/styles/components/PLP/SelectedFilters.scss +0 -82
  23. package/dist/styles/components/PLP/SlidableItems.scss +0 -121
  24. package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +0 -84
  25. package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +0 -800
  26. package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +0 -158
  27. package/dist/styles/components/PLP/SortAndFilter/WhiteSortAndFilter.scss +0 -152
  28. package/dist/styles/components/PLP/Toast.scss +0 -59
  29. package/dist/styles/components/PLP/index.scss +0 -51
  30. package/dist/styles/components/category/BreadCrumbs.scss +0 -32
  31. package/dist/styles/components/category/CategoryTitle.scss +0 -40
  32. package/dist/styles/components/category/QuickLinks.scss +0 -80
  33. package/dist/styles/components/category/index.scss +0 -23
  34. package/dist/styles/components/search/Autocomplete.scss +0 -197
  35. package/dist/styles/components/search/CategorySuggestions.scss +0 -82
  36. package/dist/styles/components/search/InstantCard.scss +0 -122
  37. package/dist/styles/components/search/InstantResults.scss +0 -12
  38. package/dist/styles/components/search/PreviousSearches.scss +0 -90
  39. package/dist/styles/components/search/QueryInput.scss +0 -189
  40. package/dist/styles/components/search/SearchModal.scss +0 -101
  41. package/dist/styles/components/search/SearchRecommendations.scss +0 -28
  42. package/dist/styles/components/search/ShowingResultsFor.scss +0 -13
  43. package/dist/styles/components/search/index.scss +0 -40
  44. package/dist/styles/default.css +0 -1
  45. package/dist/styles/helpers/custom_input.scss +0 -194
  46. package/dist/styles/helpers/supports-hover.scss +0 -7
  47. package/dist/styles/helpers/utils.scss +0 -90
  48. package/dist/styles/variables.scss +0 -61
@@ -1,11 +1,11 @@
1
1
  var $aNCHr$react = require("react");
2
2
  var $aNCHr$depictaiui = require("@depict-ai/ui/ES10");
3
3
  var $aNCHr$solidjsweb = require("solid-js/web");
4
+ var $aNCHr$depictaiutilishared = require("@depict-ai/utilishared/ES10");
4
5
  var $aNCHr$reactdomserver = require("react-dom/server");
5
6
  var $aNCHr$solidjs = require("solid-js");
6
7
  var $aNCHr$reactjsxruntime = require("react/jsx-runtime");
7
8
  var $aNCHr$reactdom = require("react-dom");
8
- var $aNCHr$depictaiutilishared = require("@depict-ai/utilishared/ES10");
9
9
  require("../../multi_import_deduplicator.cjs").register_es_version("react-ui", "ES10");
10
10
  function $parcel$export(e, n, v, s) {
11
11
  Object.defineProperty(e, n, {
@@ -49,6 +49,17 @@ function $f144be06c518d0ac$export$4b564d7f5a1b1d43(_ref) {
49
49
  }
50
50
  }));
51
51
  }
52
+
53
+ // Triggered by synsam trying to put null here and typescript somehow not complaining
54
+
55
+ function $6e5ce22b65512b0a$export$4daadad26e48a2c7(props) {
56
+ var _props$recommendation;
57
+ const us = "RecommendationSlider/RecommendationGrid:";
58
+ if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
59
+ $aNCHr$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
60
+ throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
61
+ }
62
+ }
52
63
  class $e9048b15cf1e8792$export$d0f82e3ef89b1f22 extends (0, $aNCHr$react.Component) {
53
64
  constructor(props) {
54
65
  super(props);
@@ -124,7 +135,7 @@ async function $3441d987b5ea85cb$export$32024253978abdc7(_ref) {
124
135
  await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
125
136
  return [solid_container];
126
137
  }
127
- function $27d583018ba6e604$export$bd8acc07a8bae229(props, set_portals) {
138
+ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
128
139
  const component_portals = new Set();
129
140
  return $aNCHr$depictaiui.RecommendationGrid({
130
141
  get recommendations() {
@@ -158,6 +169,9 @@ function $27d583018ba6e604$export$bd8acc07a8bae229(props, set_portals) {
158
169
  get max_rows() {
159
170
  return props.maxRows;
160
171
  },
172
+ get title() {
173
+ return props.title;
174
+ },
161
175
  get view_more_button() {
162
176
  var _viewMoreButton$start;
163
177
  const {
@@ -171,18 +185,7 @@ function $27d583018ba6e604$export$bd8acc07a8bae229(props, set_portals) {
171
185
  }
172
186
  });
173
187
  }
174
-
175
- // Triggered by synsam trying to put null here and typescript somehow not complaining
176
-
177
- function $6e5ce22b65512b0a$export$4daadad26e48a2c7(props) {
178
- var _props$recommendation;
179
- const us = "RecommendationSlider/RecommendationGrid:";
180
- if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
181
- $aNCHr$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
182
- throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
183
- }
184
- }
185
- const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.10";
188
+ const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.12";
186
189
  function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
187
190
  return props.children;
188
191
  }
@@ -234,7 +237,7 @@ function $202459d454907b31$export$3f37af283f8fb843(raw_react_props) {
234
237
  function $202459d454907b31$export$b0a773486c1c2312(props) {
235
238
  $6e5ce22b65512b0a$export$4daadad26e48a2c7(props);
236
239
  return $f144be06c518d0ac$export$4b564d7f5a1b1d43({
237
- solid_component: (0, $27d583018ba6e604$export$bd8acc07a8bae229),
240
+ solid_component: (0, $3b36cc844440a979$export$e46079a2793e9ec7),
238
241
  props: props,
239
242
  wrapper_type: "section"
240
243
  });
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
3
3
  import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
4
4
  import { Locale } from "@depict-ai/ui/locales/ES10";
5
5
  import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
6
- export const version = "2.1.10";
6
+ export const version = "2.1.12";
7
7
  interface UsePerformanceClientReturn {
8
8
  dpc: DPC;
9
9
  }
@@ -365,6 +365,10 @@ interface RecommendationConfig<T extends Display> extends BaseProductListingConf
365
365
  * The product card function to use for rendering products.
366
366
  */
367
367
  productCard: DepictProductCard<T>;
368
+ /**
369
+ * Title to show when recommendations are being shown
370
+ */
371
+ title?: string;
368
372
  }
369
373
  interface RecommendationGridConfig<T extends Display> extends RecommendationConfig<T> {
370
374
  maxRows?: number;
@@ -374,7 +378,7 @@ interface RecommendationGridConfig<T extends Display> extends RecommendationConf
374
378
  rowsPerClick?: number;
375
379
  };
376
380
  }
377
- declare function SolidRecommendationWrapper<T extends Display>(props: RecommendationGridConfig<T>, set_portals: (portals: ReactPortal[]) => void): HTMLDivElement;
381
+ declare function SolidRecommendationGridWrapper<T extends Display>(props: RecommendationGridConfig<T>, set_portals: (portals: ReactPortal[]) => void): HTMLDivElement;
378
382
  interface RecommendationSliderConfig<T extends Display> extends RecommendationConfig<T> {
379
383
  viewMoreButton?: {
380
384
  text: string;
@@ -388,6 +392,7 @@ interface RecommendationSliderConfig<T extends Display> extends RecommendationCo
388
392
  * @param productCard a function that renders a product card or a placeholder for one
389
393
  * @param columnsAtSize the number of columns to show at each media breakpoint
390
394
  * @param gridSpacing the spacing between the product cards
395
+ * @param title Optional title to show when recommendations are being shown
391
396
  */
392
397
  export function RecommendationSlider<T extends Display>(props: Parameters<typeof SolidRecommendationSliderWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
393
398
  declare function SolidRecommendationSliderWrapper<T extends Display>(props: RecommendationSliderConfig<T>, set_portals: (portals: ReactPortal[]) => void): HTMLDivElement;
@@ -399,8 +404,9 @@ declare function SolidRecommendationSliderWrapper<T extends Display>(props: Reco
399
404
  * @param gridSpacing the spacing between the product cards
400
405
  * @param maxRows the maximum number of rows to show.
401
406
  * @param viewMoreButton optional configuration for the view more button. If unset, all products will be shown by default. Otherwise, a view more button with the given text will be shown. With the properties startRows and rowsPerClick, you can configure how many rows should be shown initially and how many rows should be added on each click.
407
+ * @param title Optional title to show when recommendations are being shown
402
408
  */
403
- export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
409
+ export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationGridWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
404
410
  /**
405
411
  * Parameters to configure the search modal.
406
412
  */
@@ -1,11 +1,11 @@
1
1
  import { createElement as $7h5e1$createElement, useRef as $7h5e1$useRef, Fragment as $7h5e1$Fragment, useEffect as $7h5e1$useEffect, useState as $7h5e1$useState, Component as $7h5e1$Component } from "react";
2
2
  import { ImagePlaceholder as $7h5e1$ImagePlaceholder, TextPlaceholder as $7h5e1$TextPlaceholder, RecommendationGrid as $7h5e1$RecommendationGrid, defaultColsAtSize as $7h5e1$defaultColsAtSize, defaultGridSpacing as $7h5e1$defaultGridSpacing, ProductCardError as $7h5e1$ProductCardError } from "@depict-ai/ui/ES10";
3
3
  import { generateHydrationScript as $7h5e1$generateHydrationScript, renderToString as $7h5e1$renderToString, isServer as $7h5e1$isServer } from "solid-js/web";
4
+ import { dwarn as $7h5e1$dwarn } from "@depict-ai/utilishared/ES10";
4
5
  import { renderToString as $7h5e1$renderToString1 } from "react-dom/server";
5
6
  import { getOwner as $7h5e1$getOwner, untrack as $7h5e1$untrack, runWithOwner as $7h5e1$runWithOwner, createEffect as $7h5e1$createEffect, on as $7h5e1$on, onCleanup as $7h5e1$onCleanup } from "solid-js";
6
7
  import { jsx as $7h5e1$jsx } from "react/jsx-runtime";
7
8
  import { createPortal as $7h5e1$createPortal } from "react-dom";
8
- import { dwarn as $7h5e1$dwarn } from "@depict-ai/utilishared/ES10";
9
9
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
10
10
  register_es_version("react-ui", "ES10");
11
11
  function $e8e755ef02e716bf$export$4b564d7f5a1b1d43(_ref) {
@@ -26,6 +26,17 @@ function $e8e755ef02e716bf$export$4b564d7f5a1b1d43(_ref) {
26
26
  }
27
27
  }));
28
28
  }
29
+
30
+ // Triggered by synsam trying to put null here and typescript somehow not complaining
31
+
32
+ function $758339150fbfe9d5$export$4daadad26e48a2c7(props) {
33
+ var _props$recommendation;
34
+ const us = "RecommendationSlider/RecommendationGrid:";
35
+ if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
36
+ $7h5e1$dwarn(us, "Got", props.recommendations, "which is not thenable");
37
+ throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
38
+ }
39
+ }
29
40
  class $88d93ed7309e90d1$export$d0f82e3ef89b1f22 extends (0, $7h5e1$Component) {
30
41
  constructor(props) {
31
42
  super(props);
@@ -101,7 +112,7 @@ async function $cce08f18e2476cbf$export$32024253978abdc7(_ref) {
101
112
  await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
102
113
  return [solid_container];
103
114
  }
104
- function $48b0916cc674770c$export$bd8acc07a8bae229(props, set_portals) {
115
+ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
105
116
  const component_portals = new Set();
106
117
  return $7h5e1$RecommendationGrid({
107
118
  get recommendations() {
@@ -135,6 +146,9 @@ function $48b0916cc674770c$export$bd8acc07a8bae229(props, set_portals) {
135
146
  get max_rows() {
136
147
  return props.maxRows;
137
148
  },
149
+ get title() {
150
+ return props.title;
151
+ },
138
152
  get view_more_button() {
139
153
  var _viewMoreButton$start;
140
154
  const {
@@ -148,18 +162,7 @@ function $48b0916cc674770c$export$bd8acc07a8bae229(props, set_portals) {
148
162
  }
149
163
  });
150
164
  }
151
-
152
- // Triggered by synsam trying to put null here and typescript somehow not complaining
153
-
154
- function $758339150fbfe9d5$export$4daadad26e48a2c7(props) {
155
- var _props$recommendation;
156
- const us = "RecommendationSlider/RecommendationGrid:";
157
- if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
158
- $7h5e1$dwarn(us, "Got", props.recommendations, "which is not thenable");
159
- throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
160
- }
161
- }
162
- const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.10";
165
+ const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.12";
163
166
  function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
164
167
  return props.children;
165
168
  }
@@ -211,7 +214,7 @@ function $5c4add0a8fe94894$export$3f37af283f8fb843(raw_react_props) {
211
214
  function $5c4add0a8fe94894$export$b0a773486c1c2312(props) {
212
215
  $758339150fbfe9d5$export$4daadad26e48a2c7(props);
213
216
  return $e8e755ef02e716bf$export$4b564d7f5a1b1d43({
214
- solid_component: (0, $48b0916cc674770c$export$bd8acc07a8bae229),
217
+ solid_component: (0, $cd68097a7ee08669$export$e46079a2793e9ec7),
215
218
  props: props,
216
219
  wrapper_type: "section"
217
220
  });
@@ -1,11 +1,11 @@
1
1
  var $7QqFM$react = require("react");
2
2
  var $7QqFM$depictaiui = require("@depict-ai/ui/latest");
3
3
  var $7QqFM$solidjsweb = require("solid-js/web");
4
+ var $7QqFM$depictaiutilishared = require("@depict-ai/utilishared/latest");
4
5
  var $7QqFM$reactdomserver = require("react-dom/server");
5
6
  var $7QqFM$solidjs = require("solid-js");
6
7
  var $7QqFM$reactjsxruntime = require("react/jsx-runtime");
7
8
  var $7QqFM$reactdom = require("react-dom");
8
- var $7QqFM$depictaiutilishared = require("@depict-ai/utilishared/latest");
9
9
  require("../../multi_import_deduplicator.cjs").register_es_version("react-ui", "latest");
10
10
  function $parcel$export(e, n, v, s) {
11
11
  Object.defineProperty(e, n, {
@@ -48,6 +48,16 @@ function $35dfe83eec81954c$export$4b564d7f5a1b1d43({
48
48
  }
49
49
  }));
50
50
  }
51
+
52
+ // Triggered by synsam trying to put null here and typescript somehow not complaining
53
+
54
+ function $67657ea54664baa8$export$4daadad26e48a2c7(props) {
55
+ const us = "RecommendationSlider/RecommendationGrid:";
56
+ if (typeof props?.recommendations?.then !== "function") {
57
+ $7QqFM$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
58
+ throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
59
+ }
60
+ }
51
61
  class $d7a14567b529586f$export$d0f82e3ef89b1f22 extends (0, $7QqFM$react.Component) {
52
62
  constructor(props) {
53
63
  super(props);
@@ -119,7 +129,7 @@ async function $6081519c185fcf70$export$32024253978abdc7({
119
129
  await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
120
130
  return [solid_container];
121
131
  }
122
- function $0aaa03f81d756b85$export$bd8acc07a8bae229(props, set_portals) {
132
+ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
123
133
  const component_portals = new Set();
124
134
  return $7QqFM$depictaiui.RecommendationGrid({
125
135
  get recommendations() {
@@ -152,6 +162,9 @@ function $0aaa03f81d756b85$export$bd8acc07a8bae229(props, set_portals) {
152
162
  get max_rows() {
153
163
  return props.maxRows;
154
164
  },
165
+ get title() {
166
+ return props.title;
167
+ },
155
168
  get view_more_button() {
156
169
  const {
157
170
  viewMoreButton: viewMoreButton
@@ -164,17 +177,7 @@ function $0aaa03f81d756b85$export$bd8acc07a8bae229(props, set_portals) {
164
177
  }
165
178
  });
166
179
  }
167
-
168
- // Triggered by synsam trying to put null here and typescript somehow not complaining
169
-
170
- function $67657ea54664baa8$export$4daadad26e48a2c7(props) {
171
- const us = "RecommendationSlider/RecommendationGrid:";
172
- if (typeof props?.recommendations?.then !== "function") {
173
- $7QqFM$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
174
- throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
175
- }
176
- }
177
- const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.10";
180
+ const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.12";
178
181
  function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
179
182
  return props.children;
180
183
  }
@@ -226,7 +229,7 @@ function $41e7e5d85b5e0d49$export$3f37af283f8fb843(raw_react_props) {
226
229
  function $41e7e5d85b5e0d49$export$b0a773486c1c2312(props) {
227
230
  $67657ea54664baa8$export$4daadad26e48a2c7(props);
228
231
  return $35dfe83eec81954c$export$4b564d7f5a1b1d43({
229
- solid_component: (0, $0aaa03f81d756b85$export$bd8acc07a8bae229),
232
+ solid_component: (0, $c6b960f2a07285c8$export$e46079a2793e9ec7),
230
233
  props: props,
231
234
  wrapper_type: "section"
232
235
  });
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
3
3
  import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/latest";
4
4
  import { Locale } from "@depict-ai/ui/locales/latest";
5
5
  import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
6
- export const version = "2.1.10";
6
+ export const version = "2.1.12";
7
7
  interface UsePerformanceClientReturn {
8
8
  dpc: DPC;
9
9
  }
@@ -365,6 +365,10 @@ interface RecommendationConfig<T extends Display> extends BaseProductListingConf
365
365
  * The product card function to use for rendering products.
366
366
  */
367
367
  productCard: DepictProductCard<T>;
368
+ /**
369
+ * Title to show when recommendations are being shown
370
+ */
371
+ title?: string;
368
372
  }
369
373
  interface RecommendationGridConfig<T extends Display> extends RecommendationConfig<T> {
370
374
  maxRows?: number;
@@ -374,7 +378,7 @@ interface RecommendationGridConfig<T extends Display> extends RecommendationConf
374
378
  rowsPerClick?: number;
375
379
  };
376
380
  }
377
- declare function SolidRecommendationWrapper<T extends Display>(props: RecommendationGridConfig<T>, set_portals: (portals: ReactPortal[]) => void): HTMLDivElement;
381
+ declare function SolidRecommendationGridWrapper<T extends Display>(props: RecommendationGridConfig<T>, set_portals: (portals: ReactPortal[]) => void): HTMLDivElement;
378
382
  interface RecommendationSliderConfig<T extends Display> extends RecommendationConfig<T> {
379
383
  viewMoreButton?: {
380
384
  text: string;
@@ -388,6 +392,7 @@ interface RecommendationSliderConfig<T extends Display> extends RecommendationCo
388
392
  * @param productCard a function that renders a product card or a placeholder for one
389
393
  * @param columnsAtSize the number of columns to show at each media breakpoint
390
394
  * @param gridSpacing the spacing between the product cards
395
+ * @param title Optional title to show when recommendations are being shown
391
396
  */
392
397
  export function RecommendationSlider<T extends Display>(props: Parameters<typeof SolidRecommendationSliderWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
393
398
  declare function SolidRecommendationSliderWrapper<T extends Display>(props: RecommendationSliderConfig<T>, set_portals: (portals: ReactPortal[]) => void): HTMLDivElement;
@@ -399,8 +404,9 @@ declare function SolidRecommendationSliderWrapper<T extends Display>(props: Reco
399
404
  * @param gridSpacing the spacing between the product cards
400
405
  * @param maxRows the maximum number of rows to show.
401
406
  * @param viewMoreButton optional configuration for the view more button. If unset, all products will be shown by default. Otherwise, a view more button with the given text will be shown. With the properties startRows and rowsPerClick, you can configure how many rows should be shown initially and how many rows should be added on each click.
407
+ * @param title Optional title to show when recommendations are being shown
402
408
  */
403
- export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
409
+ export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationGridWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
404
410
  /**
405
411
  * Parameters to configure the search modal.
406
412
  */
@@ -1,11 +1,11 @@
1
1
  import { createElement as $eOXet$createElement, useRef as $eOXet$useRef, Fragment as $eOXet$Fragment, useEffect as $eOXet$useEffect, useState as $eOXet$useState, Component as $eOXet$Component } from "react";
2
2
  import { ImagePlaceholder as $eOXet$ImagePlaceholder, TextPlaceholder as $eOXet$TextPlaceholder, RecommendationGrid as $eOXet$RecommendationGrid, defaultColsAtSize as $eOXet$defaultColsAtSize, defaultGridSpacing as $eOXet$defaultGridSpacing, ProductCardError as $eOXet$ProductCardError } from "@depict-ai/ui/latest";
3
3
  import { generateHydrationScript as $eOXet$generateHydrationScript, renderToString as $eOXet$renderToString, isServer as $eOXet$isServer } from "solid-js/web";
4
+ import { dwarn as $eOXet$dwarn } from "@depict-ai/utilishared/latest";
4
5
  import { renderToString as $eOXet$renderToString1 } from "react-dom/server";
5
6
  import { getOwner as $eOXet$getOwner, untrack as $eOXet$untrack, runWithOwner as $eOXet$runWithOwner, createEffect as $eOXet$createEffect, on as $eOXet$on, onCleanup as $eOXet$onCleanup } from "solid-js";
6
7
  import { jsx as $eOXet$jsx } from "react/jsx-runtime";
7
8
  import { createPortal as $eOXet$createPortal } from "react-dom";
8
- import { dwarn as $eOXet$dwarn } from "@depict-ai/utilishared/latest";
9
9
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
10
10
  register_es_version("react-ui", "latest");
11
11
  function $4568c09979447ab1$export$4b564d7f5a1b1d43({
@@ -25,6 +25,16 @@ function $4568c09979447ab1$export$4b564d7f5a1b1d43({
25
25
  }
26
26
  }));
27
27
  }
28
+
29
+ // Triggered by synsam trying to put null here and typescript somehow not complaining
30
+
31
+ function $ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props) {
32
+ const us = "RecommendationSlider/RecommendationGrid:";
33
+ if (typeof props?.recommendations?.then !== "function") {
34
+ $eOXet$dwarn(us, "Got", props.recommendations, "which is not thenable");
35
+ throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
36
+ }
37
+ }
28
38
  class $d5c9e1f3545b4984$export$d0f82e3ef89b1f22 extends (0, $eOXet$Component) {
29
39
  constructor(props) {
30
40
  super(props);
@@ -96,7 +106,7 @@ async function $bcf84a32dc612a43$export$32024253978abdc7({
96
106
  await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
97
107
  return [solid_container];
98
108
  }
99
- function $8bee51f55543fe0c$export$bd8acc07a8bae229(props, set_portals) {
109
+ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
100
110
  const component_portals = new Set();
101
111
  return $eOXet$RecommendationGrid({
102
112
  get recommendations() {
@@ -129,6 +139,9 @@ function $8bee51f55543fe0c$export$bd8acc07a8bae229(props, set_portals) {
129
139
  get max_rows() {
130
140
  return props.maxRows;
131
141
  },
142
+ get title() {
143
+ return props.title;
144
+ },
132
145
  get view_more_button() {
133
146
  const {
134
147
  viewMoreButton: viewMoreButton
@@ -141,17 +154,7 @@ function $8bee51f55543fe0c$export$bd8acc07a8bae229(props, set_portals) {
141
154
  }
142
155
  });
143
156
  }
144
-
145
- // Triggered by synsam trying to put null here and typescript somehow not complaining
146
-
147
- function $ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props) {
148
- const us = "RecommendationSlider/RecommendationGrid:";
149
- if (typeof props?.recommendations?.then !== "function") {
150
- $eOXet$dwarn(us, "Got", props.recommendations, "which is not thenable");
151
- throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
152
- }
153
- }
154
- const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.10";
157
+ const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.12";
155
158
  function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
156
159
  return props.children;
157
160
  }
@@ -203,7 +206,7 @@ function $2b1fdeb83610500f$export$3f37af283f8fb843(raw_react_props) {
203
206
  function $2b1fdeb83610500f$export$b0a773486c1c2312(props) {
204
207
  $ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props);
205
208
  return $4568c09979447ab1$export$4b564d7f5a1b1d43({
206
- solid_component: (0, $8bee51f55543fe0c$export$bd8acc07a8bae229),
209
+ solid_component: (0, $4d5c3f13a5ae62a7$export$e46079a2793e9ec7),
207
210
  props: props,
208
211
  wrapper_type: "section"
209
212
  });