@depict-ai/portal-components 2.7.5 → 2.7.7

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,8 +1,52 @@
1
+ import { ModernDisplayWithPageUrl } from "@depict-ai/ui/latest";
1
2
  import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
2
3
  import { Locale } from "@depict-ai/react-ui/locales/latest";
3
4
  import { ReactNode } from "react";
4
5
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
5
- export const version = "2.7.5";
6
+ export const version = "2.7.7";
7
+ type TextOptions = {
8
+ /** Enabled */
9
+ enabled: boolean;
10
+ /** Bold */
11
+ bold: boolean;
12
+ /** Italic */
13
+ italic: boolean;
14
+ /** Font Size Rem */
15
+ font_size_rem: number;
16
+ /** Color */
17
+ color: string;
18
+ /** Bg Color */
19
+ bg_color?: string;
20
+ };
21
+ type ProductCardSchema = {
22
+ /**
23
+ * Image Radius
24
+ * @enum {string}
25
+ */
26
+ image_radius: "none" | "sm" | "md" | "lg";
27
+ /**
28
+ * Alignment
29
+ * @enum {string}
30
+ */
31
+ alignment: "left" | "center" | "right";
32
+ title: TextOptions;
33
+ price: TextOptions;
34
+ original_price: TextOptions;
35
+ smart_labels: TextOptions;
36
+ /** Color Options */
37
+ color_options: boolean;
38
+ /** Sizes */
39
+ sizes: boolean;
40
+ /** Use Hover Image */
41
+ use_hover_image: boolean;
42
+ /** Image Carousel */
43
+ image_carousel: boolean;
44
+ image_aspect_ratio: number;
45
+ };
46
+ export function ReactDefaultProductCard(react_props: {
47
+ options: ProductCardSchema;
48
+ display: null | ModernDisplayWithPageUrl<any>;
49
+ }): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
50
  export function ReactSelectedFilters(react_props: {
7
51
  availableFilters: SearchFilter[] | undefined;
8
52
  hidden?: boolean;