@dust-tt/sparkle 0.2.171 → 0.2.172

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
- import React, { SyntheticEvent } from "react";
2
- type AssistantPreviewVariant = "item" | "list" | "gallery" | "minimal";
1
+ import React from "react";
2
+ type AssistantPreviewVariant = "item" | "list" | "minimal";
3
3
  interface BaseAssistantPreviewProps {
4
4
  variant: AssistantPreviewVariant;
5
5
  description: string;
@@ -15,11 +15,6 @@ type ItemVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
15
15
  type ListVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
16
16
  variant: "list";
17
17
  };
18
- type GalleryVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
19
- variant: "gallery";
20
- renderActions?: (isHovered: boolean) => React.ReactNode;
21
- onPlayClick?: (e: SyntheticEvent) => void;
22
- };
23
18
  type MinimalVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
24
19
  variant: "minimal";
25
20
  hasAction?: boolean;
@@ -27,6 +22,6 @@ type MinimalVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
27
22
  onClick?: () => void;
28
23
  onActionClick?: () => void;
29
24
  };
30
- type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | GalleryVariantAssistantPreviewProps | MinimalVariantAssistantPreviewProps;
25
+ type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | MinimalVariantAssistantPreviewProps;
31
26
  export declare function AssistantPreview(props: AssistantPreviewProps): React.JSX.Element;
32
27
  export {};
@@ -8,5 +8,5 @@ interface PaginationProps {
8
8
  showDetails?: boolean;
9
9
  showPageButtons?: boolean;
10
10
  }
11
- export declare function Pagination({ itemsCount, maxItemsPerPage, onButtonClick, size, showDetails, showPageButtons }: PaginationProps): React.JSX.Element;
11
+ export declare function Pagination({ itemsCount, maxItemsPerPage, onButtonClick, size, showDetails, showPageButtons, }: PaginationProps): React.JSX.Element;
12
12
  export {};