@dust-tt/sparkle 0.2.65 → 0.2.67
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,10 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { SyntheticEvent } from "react";
|
|
2
2
|
type AssistantPreviewVariant = "sm" | "md" | "lg" | "list";
|
|
3
3
|
interface BaseAssistantPreviewProps {
|
|
4
4
|
description: string;
|
|
5
5
|
name: string;
|
|
6
6
|
pictureUrl: string;
|
|
7
|
-
subtitle: string;
|
|
8
7
|
variant: AssistantPreviewVariant;
|
|
9
8
|
}
|
|
10
9
|
type LargeVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
@@ -14,13 +13,14 @@ type LargeVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
|
14
13
|
isAdded: boolean;
|
|
15
14
|
isUpdatingList: boolean;
|
|
16
15
|
isWorkspace: boolean;
|
|
16
|
+
subtitle: string;
|
|
17
17
|
onShowDetailsClick?: () => void;
|
|
18
18
|
onTestClick?: () => void;
|
|
19
19
|
onUpdate: (action: "added" | "removed") => Promise<void> | void;
|
|
20
20
|
};
|
|
21
21
|
type SmallVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
22
22
|
variant: "sm";
|
|
23
|
-
onClick: () => void;
|
|
23
|
+
onClick: (e: SyntheticEvent) => void;
|
|
24
24
|
};
|
|
25
25
|
type AssistantPreviewProps = SmallVariantAssistantPreviewProps | LargeVariantAssistantPreviewProps;
|
|
26
26
|
export declare function AssistantPreview(props: AssistantPreviewProps): React.JSX.Element;
|