@antscorp/antsomi-genai 1.0.0 → 1.0.1-beta-2

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.
@@ -0,0 +1,84 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ReactNode } from 'react';
3
+ import { z } from 'zod';
4
+ import { IconProps } from '@antscorp/antsomi-ui/es/components/icons/types';
5
+ import { Content, Editor } from '@tiptap/react';
6
+
7
+ type AIButtonProps = {
8
+ className?: string;
9
+ };
10
+ declare const ToggleButton: (props: AIButtonProps) => react_jsx_runtime.JSX.Element;
11
+
12
+ declare function Home(): react_jsx_runtime.JSX.Element;
13
+
14
+ declare const ToggleSidebarButton: () => react_jsx_runtime.JSX.Element;
15
+
16
+ declare function CloseButton(): react_jsx_runtime.JSX.Element;
17
+
18
+ declare function InputSearch(): react_jsx_runtime.JSX.Element;
19
+
20
+ type DrawerProps = {
21
+ isOpen: boolean;
22
+ leftButton?: React.ReactNode;
23
+ rightButton?: React.ReactNode;
24
+ children: React.ReactNode;
25
+ toggle: () => void;
26
+ onToggleCollapse?: (collapse: boolean) => void;
27
+ };
28
+ declare function DrawerContent(props: DrawerProps): react_jsx_runtime.JSX.Element;
29
+
30
+ declare function NoteNewButton(): react_jsx_runtime.JSX.Element;
31
+
32
+ declare function Sidebar(): react_jsx_runtime.JSX.Element;
33
+
34
+ declare const AgentIdSchema: z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<1>, z.ZodLiteral<4>, z.ZodLiteral<2>]>;
35
+
36
+ /**
37
+ * Agent types
38
+ */
39
+ type AgentId = z.infer<typeof AgentIdSchema>;
40
+
41
+ declare function HistoryList(): react_jsx_runtime.JSX.Element;
42
+
43
+ declare function ListTask(): react_jsx_runtime.JSX.Element;
44
+
45
+ declare const AgentIcon: React.ForwardRefExoticComponent<{
46
+ agentId: AgentId;
47
+ } & IconProps & React.RefAttributes<SVGSVGElement>>;
48
+
49
+ declare const index_AgentIcon: typeof AgentIcon;
50
+ declare const index_CloseButton: typeof CloseButton;
51
+ declare const index_DrawerContent: typeof DrawerContent;
52
+ declare const index_HistoryList: typeof HistoryList;
53
+ declare const index_Home: typeof Home;
54
+ declare const index_InputSearch: typeof InputSearch;
55
+ declare const index_NoteNewButton: typeof NoteNewButton;
56
+ declare const index_Sidebar: typeof Sidebar;
57
+ declare const index_ToggleButton: typeof ToggleButton;
58
+ declare const index_ToggleSidebarButton: typeof ToggleSidebarButton;
59
+ declare namespace index {
60
+ export { index_AgentIcon as AgentIcon, index_CloseButton as CloseButton, index_DrawerContent as DrawerContent, index_HistoryList as HistoryList, index_Home as Home, index_InputSearch as InputSearch, index_NoteNewButton as NoteNewButton, ListTask as PromptList, index_Sidebar as Sidebar, index_ToggleButton as ToggleButton, index_ToggleSidebarButton as ToggleSidebarButton };
61
+ }
62
+
63
+ interface ConversationAnalyticProps {
64
+ children?: ReactNode;
65
+ }
66
+ declare const ConversationAnalytic: (props: ConversationAnalyticProps) => react_jsx_runtime.JSX.Element;
67
+
68
+ type ConversationAnalyticProviderProps = {
69
+ children: ReactNode;
70
+ };
71
+ declare const ConversationAnalyticProvider: (props: ConversationAnalyticProviderProps) => react_jsx_runtime.JSX.Element;
72
+
73
+ type ChatInputProps = {
74
+ content?: Content;
75
+ className?: string;
76
+ children?: React.ReactNode;
77
+ disabled?: boolean;
78
+ onSend?: (content: Content) => void;
79
+ slotStart?: (editor: Editor) => ReactNode;
80
+ slotEnd?: (defaultContent: ReactNode, editor: Editor) => ReactNode;
81
+ };
82
+ declare const ChatInput: (props: ChatInputProps) => react_jsx_runtime.JSX.Element | null;
83
+
84
+ export { ChatInput, ConversationAnalytic, ConversationAnalyticProvider, type ConversationAnalyticProviderProps, index as ConversationAnalyticUI };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,84 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ReactNode } from 'react';
3
+ import { z } from 'zod';
4
+ import { IconProps } from '@antscorp/antsomi-ui/es/components/icons/types';
5
+ import { Content, Editor } from '@tiptap/react';
2
6
 
3
- type ExampleProps = {
4
- text?: string;
7
+ type AIButtonProps = {
8
+ className?: string;
5
9
  };
6
- declare function Example(props: ExampleProps): react_jsx_runtime.JSX.Element;
10
+ declare const ToggleButton: (props: AIButtonProps) => react_jsx_runtime.JSX.Element;
7
11
 
8
- export { Example };
12
+ declare function Home(): react_jsx_runtime.JSX.Element;
13
+
14
+ declare const ToggleSidebarButton: () => react_jsx_runtime.JSX.Element;
15
+
16
+ declare function CloseButton(): react_jsx_runtime.JSX.Element;
17
+
18
+ declare function InputSearch(): react_jsx_runtime.JSX.Element;
19
+
20
+ type DrawerProps = {
21
+ isOpen: boolean;
22
+ leftButton?: React.ReactNode;
23
+ rightButton?: React.ReactNode;
24
+ children: React.ReactNode;
25
+ toggle: () => void;
26
+ onToggleCollapse?: (collapse: boolean) => void;
27
+ };
28
+ declare function DrawerContent(props: DrawerProps): react_jsx_runtime.JSX.Element;
29
+
30
+ declare function NoteNewButton(): react_jsx_runtime.JSX.Element;
31
+
32
+ declare function Sidebar(): react_jsx_runtime.JSX.Element;
33
+
34
+ declare const AgentIdSchema: z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<1>, z.ZodLiteral<4>, z.ZodLiteral<2>]>;
35
+
36
+ /**
37
+ * Agent types
38
+ */
39
+ type AgentId = z.infer<typeof AgentIdSchema>;
40
+
41
+ declare function HistoryList(): react_jsx_runtime.JSX.Element;
42
+
43
+ declare function ListTask(): react_jsx_runtime.JSX.Element;
44
+
45
+ declare const AgentIcon: React.ForwardRefExoticComponent<{
46
+ agentId: AgentId;
47
+ } & IconProps & React.RefAttributes<SVGSVGElement>>;
48
+
49
+ declare const index_AgentIcon: typeof AgentIcon;
50
+ declare const index_CloseButton: typeof CloseButton;
51
+ declare const index_DrawerContent: typeof DrawerContent;
52
+ declare const index_HistoryList: typeof HistoryList;
53
+ declare const index_Home: typeof Home;
54
+ declare const index_InputSearch: typeof InputSearch;
55
+ declare const index_NoteNewButton: typeof NoteNewButton;
56
+ declare const index_Sidebar: typeof Sidebar;
57
+ declare const index_ToggleButton: typeof ToggleButton;
58
+ declare const index_ToggleSidebarButton: typeof ToggleSidebarButton;
59
+ declare namespace index {
60
+ export { index_AgentIcon as AgentIcon, index_CloseButton as CloseButton, index_DrawerContent as DrawerContent, index_HistoryList as HistoryList, index_Home as Home, index_InputSearch as InputSearch, index_NoteNewButton as NoteNewButton, ListTask as PromptList, index_Sidebar as Sidebar, index_ToggleButton as ToggleButton, index_ToggleSidebarButton as ToggleSidebarButton };
61
+ }
62
+
63
+ interface ConversationAnalyticProps {
64
+ children?: ReactNode;
65
+ }
66
+ declare const ConversationAnalytic: (props: ConversationAnalyticProps) => react_jsx_runtime.JSX.Element;
67
+
68
+ type ConversationAnalyticProviderProps = {
69
+ children: ReactNode;
70
+ };
71
+ declare const ConversationAnalyticProvider: (props: ConversationAnalyticProviderProps) => react_jsx_runtime.JSX.Element;
72
+
73
+ type ChatInputProps = {
74
+ content?: Content;
75
+ className?: string;
76
+ children?: React.ReactNode;
77
+ disabled?: boolean;
78
+ onSend?: (content: Content) => void;
79
+ slotStart?: (editor: Editor) => ReactNode;
80
+ slotEnd?: (defaultContent: ReactNode, editor: Editor) => ReactNode;
81
+ };
82
+ declare const ChatInput: (props: ChatInputProps) => react_jsx_runtime.JSX.Element | null;
83
+
84
+ export { ChatInput, ConversationAnalytic, ConversationAnalyticProvider, type ConversationAnalyticProviderProps, index as ConversationAnalyticUI };