@peam-ai/client 0.1.3 → 0.1.4

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/index.d.mts CHANGED
@@ -6,15 +6,15 @@ import { UIMessage } from '@ai-sdk/react';
6
6
 
7
7
  interface AskAIChatProps extends AskAIBaseProps {
8
8
  }
9
- declare function AskAIChat({ suggestedPrompts, button, maxMessages }?: AskAIChatProps): react_jsx_runtime.JSX.Element;
9
+ declare function AskAIChat({ suggestedPrompts, button, maxMessages, inlineButton }?: AskAIChatProps): react_jsx_runtime.JSX.Element;
10
10
 
11
11
  interface AskAIDialogProps extends AskAIBaseProps {
12
12
  }
13
- declare function AskAIDialog({ suggestedPrompts, button, maxMessages }?: AskAIDialogProps): react_jsx_runtime.JSX.Element;
13
+ declare function AskAIDialog({ suggestedPrompts, button, maxMessages, inlineButton }?: AskAIDialogProps): react_jsx_runtime.JSX.Element;
14
14
 
15
15
  interface AskAISidepaneProps extends AskAIBaseProps {
16
16
  }
17
- declare function AskAISidepane({ suggestedPrompts, button, maxMessages }?: AskAISidepaneProps): react_jsx_runtime.JSX.Element;
17
+ declare function AskAISidepane({ suggestedPrompts, button, maxMessages, inlineButton, }?: AskAISidepaneProps): react_jsx_runtime.JSX.Element;
18
18
 
19
19
  type AskAIType = 'chat' | 'dialog' | 'sidepane';
20
20
  interface AskAIBaseProps {
@@ -27,6 +27,11 @@ interface AskAIBaseProps {
27
27
  * @default 10
28
28
  */
29
29
  maxMessages?: number;
30
+ /**
31
+ * Render the button inline instead of as a floating button.
32
+ * @default false
33
+ */
34
+ inlineButton?: boolean;
30
35
  /**
31
36
  * Custom button component.
32
37
  *
@@ -84,4 +89,13 @@ interface ChatProps {
84
89
  }
85
90
  declare const Chat: ({ chatPersistence, suggestedPrompts, onClearRef, chatTransport, maxMessages }: ChatProps) => react_jsx_runtime.JSX.Element;
86
91
 
87
- export { AskAI, type AskAIBaseProps, AskAIChat, type AskAIChatProps, AskAIDialog, type AskAIDialogProps, type AskAIProps, AskAISidepane, type AskAISidepaneProps, type AskAIType, Chat, type ChatProps };
92
+ interface PeamButtonProps {
93
+ onClick: () => void;
94
+ isOpen: boolean;
95
+ inlineButton?: boolean;
96
+ className?: string;
97
+ showCloseIcon?: boolean;
98
+ }
99
+ declare function PeamButton({ onClick, isOpen, inlineButton, className, showCloseIcon, }: PeamButtonProps): react_jsx_runtime.JSX.Element;
100
+
101
+ export { AskAI, type AskAIBaseProps, AskAIChat, type AskAIChatProps, AskAIDialog, type AskAIDialogProps, type AskAIProps, AskAISidepane, type AskAISidepaneProps, type AskAIType, Chat, type ChatProps, PeamButton, type PeamButtonProps };
package/dist/index.d.ts CHANGED
@@ -6,15 +6,15 @@ import { UIMessage } from '@ai-sdk/react';
6
6
 
7
7
  interface AskAIChatProps extends AskAIBaseProps {
8
8
  }
9
- declare function AskAIChat({ suggestedPrompts, button, maxMessages }?: AskAIChatProps): react_jsx_runtime.JSX.Element;
9
+ declare function AskAIChat({ suggestedPrompts, button, maxMessages, inlineButton }?: AskAIChatProps): react_jsx_runtime.JSX.Element;
10
10
 
11
11
  interface AskAIDialogProps extends AskAIBaseProps {
12
12
  }
13
- declare function AskAIDialog({ suggestedPrompts, button, maxMessages }?: AskAIDialogProps): react_jsx_runtime.JSX.Element;
13
+ declare function AskAIDialog({ suggestedPrompts, button, maxMessages, inlineButton }?: AskAIDialogProps): react_jsx_runtime.JSX.Element;
14
14
 
15
15
  interface AskAISidepaneProps extends AskAIBaseProps {
16
16
  }
17
- declare function AskAISidepane({ suggestedPrompts, button, maxMessages }?: AskAISidepaneProps): react_jsx_runtime.JSX.Element;
17
+ declare function AskAISidepane({ suggestedPrompts, button, maxMessages, inlineButton, }?: AskAISidepaneProps): react_jsx_runtime.JSX.Element;
18
18
 
19
19
  type AskAIType = 'chat' | 'dialog' | 'sidepane';
20
20
  interface AskAIBaseProps {
@@ -27,6 +27,11 @@ interface AskAIBaseProps {
27
27
  * @default 10
28
28
  */
29
29
  maxMessages?: number;
30
+ /**
31
+ * Render the button inline instead of as a floating button.
32
+ * @default false
33
+ */
34
+ inlineButton?: boolean;
30
35
  /**
31
36
  * Custom button component.
32
37
  *
@@ -84,4 +89,13 @@ interface ChatProps {
84
89
  }
85
90
  declare const Chat: ({ chatPersistence, suggestedPrompts, onClearRef, chatTransport, maxMessages }: ChatProps) => react_jsx_runtime.JSX.Element;
86
91
 
87
- export { AskAI, type AskAIBaseProps, AskAIChat, type AskAIChatProps, AskAIDialog, type AskAIDialogProps, type AskAIProps, AskAISidepane, type AskAISidepaneProps, type AskAIType, Chat, type ChatProps };
92
+ interface PeamButtonProps {
93
+ onClick: () => void;
94
+ isOpen: boolean;
95
+ inlineButton?: boolean;
96
+ className?: string;
97
+ showCloseIcon?: boolean;
98
+ }
99
+ declare function PeamButton({ onClick, isOpen, inlineButton, className, showCloseIcon, }: PeamButtonProps): react_jsx_runtime.JSX.Element;
100
+
101
+ export { AskAI, type AskAIBaseProps, AskAIChat, type AskAIChatProps, AskAIDialog, type AskAIDialogProps, type AskAIProps, AskAISidepane, type AskAISidepaneProps, type AskAIType, Chat, type ChatProps, PeamButton, type PeamButtonProps };