@dust-tt/sparkle 0.2.150-rc-tv → 0.2.152-alphatv

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.
@@ -1,5 +1,5 @@
1
1
  import React, { SyntheticEvent } from "react";
2
- type AssistantPreviewVariant = "item" | "list" | "gallery" | "minimal";
2
+ type AssistantPreviewVariant = "item" | "list" | "gallery" | "minimalGallery";
3
3
  interface BaseAssistantPreviewProps {
4
4
  variant: AssistantPreviewVariant;
5
5
  description: string;
@@ -10,7 +10,7 @@ interface BaseAssistantPreviewProps {
10
10
  }
11
11
  type ItemVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
12
12
  variant: "item";
13
- actions: React.ReactNode;
13
+ actions?: React.ReactNode;
14
14
  };
15
15
  type ListVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
16
16
  variant: "list";
@@ -20,13 +20,14 @@ type GalleryVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
20
20
  renderActions?: (isHovered: boolean) => React.ReactNode;
21
21
  onPlayClick?: (e: SyntheticEvent) => void;
22
22
  };
23
- type MinimalVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
24
- variant: "minimal";
23
+ type MinimalGalleryVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
24
+ variant: "minimalGallery";
25
25
  hasAction?: boolean;
26
26
  href?: string;
27
27
  onClick?: () => void;
28
28
  onActionClick?: () => void;
29
+ renderActionButton?: (button: React.ReactNode) => React.ReactNode;
29
30
  };
30
- type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | GalleryVariantAssistantPreviewProps | MinimalVariantAssistantPreviewProps;
31
+ type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | GalleryVariantAssistantPreviewProps | MinimalGalleryVariantAssistantPreviewProps;
31
32
  export declare function AssistantPreview(props: AssistantPreviewProps): React.JSX.Element;
32
33
  export {};