@depict-ai/portal-components 2.7.20 → 2.7.21

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/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
+ import { ModernDisplayWithPageUrl } from "@depict-ai/ui/latest";
1
2
  import { ModernDisplay } from "@depict-ai/utilishared";
2
3
  import { BaseProductListingConfig } from "@depict-ai/ui";
3
- import { ModernDisplayWithPageUrl } from "@depict-ai/ui/latest";
4
4
  import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
5
5
  import { Locale } from "@depict-ai/react-ui/locales/latest";
6
6
  import { ReactNode } from "react";
7
7
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
8
- export const version = "2.7.19";
8
+ export const version = "2.7.21";
9
9
  type TextOptions = {
10
10
  /** Enabled */
11
11
  enabled: boolean;
@@ -44,7 +44,12 @@ type ProductCardSchema = {
44
44
  /** Image Carousel */
45
45
  image_carousel: boolean;
46
46
  image_aspect_ratio: number;
47
+ is_ejected: boolean;
47
48
  };
49
+ export function ReactDefaultProductCard(react_props: {
50
+ options?: ProductCardSchema;
51
+ display: null | ModernDisplayWithPageUrl<any>;
52
+ }): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
48
53
  interface PortalRecsConfig<T extends ModernDisplay> extends BaseProductListingConfig {
49
54
  /**
50
55
  * A promise containing the recommendations to render, see https://docs.depict.ai/api-guide/recommendations/api-client/fetching
@@ -57,7 +62,7 @@ interface PortalRecsConfig<T extends ModernDisplay> extends BaseProductListingCo
57
62
  /**
58
63
  * Config to use for the product card
59
64
  */
60
- productCardConfig: ProductCardSchema;
65
+ productCardConfig?: ProductCardSchema | null;
61
66
  }
62
67
  interface PortalRecommendationGridConfig<T extends ModernDisplay> extends PortalRecsConfig<T> {
63
68
  maxRows?: number;
@@ -79,10 +84,6 @@ declare function SolidWrapper<T extends ModernDisplay>(props: PortalRecommendati
79
84
  */
80
85
  export function PortalRecsSlider<T extends ModernDisplay>(props: Parameters<typeof _SolidWrapper1<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
81
86
  declare function _SolidWrapper1<T extends ModernDisplay>(props: PortalRecsConfig<T>): HTMLDivElement;
82
- export function ReactDefaultProductCard(react_props: {
83
- options?: ProductCardSchema;
84
- display: null | ModernDisplayWithPageUrl<any>;
85
- }): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
86
87
  export function ReactSelectedFilters(react_props: {
87
88
  availableFilters: SearchFilter[] | undefined;
88
89
  hidden?: boolean;
package/dist/main.js CHANGED
@@ -21,7 +21,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
21
21
  $parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
22
22
  $parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
23
23
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
24
- const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.20";
24
+ const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.21";
25
25
 
26
26
 
27
27
 
package/dist/module.js CHANGED
@@ -8,7 +8,7 @@ import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo,
8
8
  import {createPortal as $2MCgq$createPortal} from "react-dom";
9
9
 
10
10
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
11
- const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.20";
11
+ const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.21";
12
12
 
13
13
 
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/portal-components",
3
- "version": "2.7.20",
3
+ "version": "2.7.21",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",