@apteva/apteva-kit 0.1.2 → 0.1.7
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +234 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -98
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -168,6 +168,7 @@ interface ChatProps {
|
|
|
168
168
|
onThreadChange?: (threadId: string) => void;
|
|
169
169
|
onMessageSent?: (message: Message) => void;
|
|
170
170
|
onAction?: (action: ActionEvent) => void;
|
|
171
|
+
onFileUpload?: (files: FileList) => void;
|
|
171
172
|
theme?: 'light' | 'dark' | 'auto';
|
|
172
173
|
placeholder?: string;
|
|
173
174
|
showHeader?: boolean;
|
|
@@ -190,6 +191,7 @@ interface CommandProps {
|
|
|
190
191
|
onChunk?: (chunk: string) => void;
|
|
191
192
|
onComplete?: (result: CommandResult) => void;
|
|
192
193
|
onError?: (error: Error) => void;
|
|
194
|
+
onFileUpload?: (files: FileList) => void;
|
|
193
195
|
loadingText?: string;
|
|
194
196
|
showProgress?: boolean;
|
|
195
197
|
enableStreaming?: boolean;
|
|
@@ -269,9 +271,9 @@ interface UseAptevaKitReturn {
|
|
|
269
271
|
error: Error | null;
|
|
270
272
|
}
|
|
271
273
|
|
|
272
|
-
declare function Chat({ agentId, threadId, initialMessages, onThreadChange, onMessageSent, onAction, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
274
|
+
declare function Chat({ agentId, threadId, initialMessages, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
273
275
|
|
|
274
|
-
declare function Command({ agentId, command: initialCommand, context, autoExecute, allowInput, placeholder, submitButtonText, variant, onStart, onProgress, onChunk, onComplete, onError, loadingText, showProgress, enableStreaming, resultRenderer, className, }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
declare function Command({ agentId, command: initialCommand, context, autoExecute, allowInput, placeholder, submitButtonText, variant, onStart, onProgress, onChunk, onComplete, onError, onFileUpload, loadingText, showProgress, enableStreaming, resultRenderer, className, }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
275
277
|
|
|
276
278
|
declare function Prompt({ agentId, placeholder, initialValue, submitOn, debounceMs, minLength, maxLength, onSubmit, onResult, onChange, variant, showSuggestions, className, }: PromptProps): react_jsx_runtime.JSX.Element;
|
|
277
279
|
|
package/dist/index.d.ts
CHANGED
|
@@ -168,6 +168,7 @@ interface ChatProps {
|
|
|
168
168
|
onThreadChange?: (threadId: string) => void;
|
|
169
169
|
onMessageSent?: (message: Message) => void;
|
|
170
170
|
onAction?: (action: ActionEvent) => void;
|
|
171
|
+
onFileUpload?: (files: FileList) => void;
|
|
171
172
|
theme?: 'light' | 'dark' | 'auto';
|
|
172
173
|
placeholder?: string;
|
|
173
174
|
showHeader?: boolean;
|
|
@@ -190,6 +191,7 @@ interface CommandProps {
|
|
|
190
191
|
onChunk?: (chunk: string) => void;
|
|
191
192
|
onComplete?: (result: CommandResult) => void;
|
|
192
193
|
onError?: (error: Error) => void;
|
|
194
|
+
onFileUpload?: (files: FileList) => void;
|
|
193
195
|
loadingText?: string;
|
|
194
196
|
showProgress?: boolean;
|
|
195
197
|
enableStreaming?: boolean;
|
|
@@ -269,9 +271,9 @@ interface UseAptevaKitReturn {
|
|
|
269
271
|
error: Error | null;
|
|
270
272
|
}
|
|
271
273
|
|
|
272
|
-
declare function Chat({ agentId, threadId, initialMessages, onThreadChange, onMessageSent, onAction, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
274
|
+
declare function Chat({ agentId, threadId, initialMessages, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
273
275
|
|
|
274
|
-
declare function Command({ agentId, command: initialCommand, context, autoExecute, allowInput, placeholder, submitButtonText, variant, onStart, onProgress, onChunk, onComplete, onError, loadingText, showProgress, enableStreaming, resultRenderer, className, }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
declare function Command({ agentId, command: initialCommand, context, autoExecute, allowInput, placeholder, submitButtonText, variant, onStart, onProgress, onChunk, onComplete, onError, onFileUpload, loadingText, showProgress, enableStreaming, resultRenderer, className, }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
275
277
|
|
|
276
278
|
declare function Prompt({ agentId, placeholder, initialValue, submitOn, debounceMs, minLength, maxLength, onSubmit, onResult, onChange, variant, showSuggestions, className, }: PromptProps): react_jsx_runtime.JSX.Element;
|
|
277
279
|
|