@dust-tt/sparkle 0.2.90 → 0.2.91-pr2
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/cjs/_index.d.ts +0 -2
- package/dist/cjs/components/AssistantPreview.d.ts +16 -24
- package/dist/cjs/index.js +70 -128
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_index.d.ts +0 -2
- package/dist/esm/components/AssistantPreview.d.ts +16 -24
- package/dist/esm/index.js +71 -128
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/AssistantPreview2.d.ts +0 -25
- package/dist/cjs/stories/AssistantPreview2.stories.d.ts +0 -6
- package/dist/esm/components/AssistantPreview2.d.ts +0 -25
- package/dist/esm/stories/AssistantPreview2.stories.d.ts +0 -6
package/dist/cjs/_index.d.ts
CHANGED
|
@@ -18,8 +18,6 @@ import { ContextItem } from "./components/ContextItem";
|
|
|
18
18
|
export { ContextItem };
|
|
19
19
|
import { AssistantPreview } from "./components/AssistantPreview";
|
|
20
20
|
export { AssistantPreview };
|
|
21
|
-
import { AssistantPreview2 } from "./components/AssistantPreview2";
|
|
22
|
-
export { AssistantPreview2 };
|
|
23
21
|
import { Banner } from "./components/Banner";
|
|
24
22
|
export { Banner };
|
|
25
23
|
import { Notification } from "./components/Notification";
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import React, { SyntheticEvent } from "react";
|
|
2
|
-
type AssistantPreviewVariant = "
|
|
2
|
+
type AssistantPreviewVariant = "item" | "list" | "gallery";
|
|
3
3
|
interface BaseAssistantPreviewProps {
|
|
4
|
+
variant: AssistantPreviewVariant;
|
|
4
5
|
description: string;
|
|
5
|
-
|
|
6
|
+
title: string;
|
|
6
7
|
pictureUrl: string;
|
|
7
|
-
variant: AssistantPreviewVariant;
|
|
8
|
-
}
|
|
9
|
-
type LargeVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
10
|
-
variant: "lg";
|
|
11
|
-
allowAddAction?: boolean;
|
|
12
|
-
allowRemoveAction?: boolean;
|
|
13
|
-
isAdded: boolean;
|
|
14
|
-
isUpdatingList: boolean;
|
|
15
|
-
isWorkspace: boolean;
|
|
16
8
|
subtitle: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
type ItemVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
12
|
+
variant: "item";
|
|
13
|
+
actions: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
type ListVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
16
|
+
variant: "list";
|
|
20
17
|
};
|
|
21
|
-
type
|
|
22
|
-
variant: "
|
|
23
|
-
|
|
18
|
+
type GalleryVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
19
|
+
variant: "gallery";
|
|
20
|
+
renderActions?: (isHovered: boolean) => React.ReactNode;
|
|
21
|
+
onPlayClick?: (e: SyntheticEvent) => void;
|
|
24
22
|
};
|
|
25
|
-
type AssistantPreviewProps =
|
|
23
|
+
type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | GalleryVariantAssistantPreviewProps;
|
|
26
24
|
export declare function AssistantPreview(props: AssistantPreviewProps): React.JSX.Element;
|
|
27
|
-
export declare namespace AssistantPreview {
|
|
28
|
-
var defaultProps: {
|
|
29
|
-
allowAddAction: boolean;
|
|
30
|
-
allowRemoveAction: boolean;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
25
|
export {};
|