@object-ui/plugin-chatbot 5.3.2 → 5.4.1
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/CHANGELOG.md +71 -0
- package/README.md +50 -1
- package/dist/index.js +1615 -425
- package/dist/index.umd.cjs +2 -1
- package/dist/packages/plugin-chatbot/src/ChatbotEnhanced.d.ts +74 -5
- package/dist/packages/plugin-chatbot/src/ChatbotEnhanced.d.ts.map +1 -1
- package/dist/packages/plugin-chatbot/src/elements/code-block.d.ts +18 -0
- package/dist/packages/plugin-chatbot/src/elements/code-block.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/conversation.d.ts +16 -0
- package/dist/packages/plugin-chatbot/src/elements/conversation.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/index.d.ts +22 -0
- package/dist/packages/plugin-chatbot/src/elements/index.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/loader.d.ts +6 -0
- package/dist/packages/plugin-chatbot/src/elements/loader.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/message.d.ts +47 -0
- package/dist/packages/plugin-chatbot/src/elements/message.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/prompt-input.d.ts +185 -0
- package/dist/packages/plugin-chatbot/src/elements/prompt-input.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/reasoning.d.ts +27 -0
- package/dist/packages/plugin-chatbot/src/elements/reasoning.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/shimmer.d.ts +10 -0
- package/dist/packages/plugin-chatbot/src/elements/shimmer.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/sources.d.ts +13 -0
- package/dist/packages/plugin-chatbot/src/elements/sources.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/suggestion.d.ts +10 -0
- package/dist/packages/plugin-chatbot/src/elements/suggestion.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/tool.d.ts +24 -0
- package/dist/packages/plugin-chatbot/src/elements/tool.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/ui/button-group.d.ts +12 -0
- package/dist/packages/plugin-chatbot/src/elements/ui/button-group.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/elements/ui/input-group.d.ts +17 -0
- package/dist/packages/plugin-chatbot/src/elements/ui/input-group.d.ts.map +1 -0
- package/dist/packages/plugin-chatbot/src/index.d.ts +1 -0
- package/dist/packages/plugin-chatbot/src/index.d.ts.map +1 -1
- package/dist/packages/plugin-chatbot/src/useObjectChat.d.ts.map +1 -1
- package/package.json +13 -5
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, DropdownMenu, DropdownMenuContent, DropdownMenuItem, HoverCard, HoverCardContent, HoverCardTrigger, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@object-ui/components';
|
|
2
|
+
import { InputGroupAddon, InputGroupButton, InputGroupTextarea } from './ui/input-group';
|
|
3
|
+
import { ChatStatus, FileUIPart } from 'ai';
|
|
4
|
+
import { ComponentProps, FormEvent, HTMLAttributes, PropsWithChildren, ReactNode, RefObject } from 'react';
|
|
5
|
+
export type AttachmentsContext = {
|
|
6
|
+
files: (FileUIPart & {
|
|
7
|
+
id: string;
|
|
8
|
+
})[];
|
|
9
|
+
add: (files: File[] | FileList) => void;
|
|
10
|
+
remove: (id: string) => void;
|
|
11
|
+
clear: () => void;
|
|
12
|
+
openFileDialog: () => void;
|
|
13
|
+
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
14
|
+
};
|
|
15
|
+
export type TextInputContext = {
|
|
16
|
+
value: string;
|
|
17
|
+
setInput: (v: string) => void;
|
|
18
|
+
clear: () => void;
|
|
19
|
+
};
|
|
20
|
+
export type PromptInputControllerProps = {
|
|
21
|
+
textInput: TextInputContext;
|
|
22
|
+
attachments: AttachmentsContext;
|
|
23
|
+
/** INTERNAL: Allows PromptInput to register its file textInput + "open" callback */
|
|
24
|
+
__registerFileInput: (ref: RefObject<HTMLInputElement | null>, open: () => void) => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const usePromptInputController: () => PromptInputControllerProps;
|
|
27
|
+
export declare const useProviderAttachments: () => AttachmentsContext;
|
|
28
|
+
export type PromptInputProviderProps = PropsWithChildren<{
|
|
29
|
+
initialInput?: string;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Optional global provider that lifts PromptInput state outside of PromptInput.
|
|
33
|
+
* If you don't use it, PromptInput stays fully self-managed.
|
|
34
|
+
*/
|
|
35
|
+
export declare function PromptInputProvider({ initialInput: initialTextInput, children, }: PromptInputProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const usePromptInputAttachments: () => AttachmentsContext;
|
|
37
|
+
export type PromptInputAttachmentProps = HTMLAttributes<HTMLDivElement> & {
|
|
38
|
+
data: FileUIPart & {
|
|
39
|
+
id: string;
|
|
40
|
+
};
|
|
41
|
+
className?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare function PromptInputAttachment({ data, className, ...props }: PromptInputAttachmentProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export type PromptInputAttachmentsProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
45
|
+
children: (attachment: FileUIPart & {
|
|
46
|
+
id: string;
|
|
47
|
+
}) => ReactNode;
|
|
48
|
+
};
|
|
49
|
+
export declare function PromptInputAttachments({ children, className, ...props }: PromptInputAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export type PromptInputActionAddAttachmentsProps = ComponentProps<typeof DropdownMenuItem> & {
|
|
51
|
+
label?: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export type PromptInputMessage = {
|
|
55
|
+
text: string;
|
|
56
|
+
files: FileUIPart[];
|
|
57
|
+
};
|
|
58
|
+
export type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, "onSubmit" | "onError"> & {
|
|
59
|
+
accept?: string;
|
|
60
|
+
multiple?: boolean;
|
|
61
|
+
globalDrop?: boolean;
|
|
62
|
+
syncHiddenInput?: boolean;
|
|
63
|
+
maxFiles?: number;
|
|
64
|
+
maxFileSize?: number;
|
|
65
|
+
onError?: (err: {
|
|
66
|
+
code: "max_files" | "max_file_size" | "accept";
|
|
67
|
+
message: string;
|
|
68
|
+
}) => void;
|
|
69
|
+
onSubmit: (message: PromptInputMessage, event: FormEvent<HTMLFormElement>) => void | Promise<void>;
|
|
70
|
+
};
|
|
71
|
+
export declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
73
|
+
export declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
|
|
75
|
+
export declare const PromptInputTextarea: ({ onChange, className, placeholder, ...props }: PromptInputTextareaProps) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
|
|
77
|
+
export declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
export type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
|
|
79
|
+
export declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
|
|
81
|
+
export declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
|
|
83
|
+
export declare const PromptInputButton: ({ variant, className, size, ...props }: PromptInputButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
export type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
|
|
85
|
+
export declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
export type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
87
|
+
export declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
export type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
|
|
89
|
+
export declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
export type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
|
|
91
|
+
export declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
export type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
|
|
93
|
+
status?: ChatStatus;
|
|
94
|
+
};
|
|
95
|
+
export declare const PromptInputSubmit: ({ className, variant, size, status, children, ...props }: PromptInputSubmitProps) => import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
interface SpeechRecognition extends EventTarget {
|
|
97
|
+
continuous: boolean;
|
|
98
|
+
interimResults: boolean;
|
|
99
|
+
lang: string;
|
|
100
|
+
start(): void;
|
|
101
|
+
stop(): void;
|
|
102
|
+
onstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
103
|
+
onend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
104
|
+
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
|
|
105
|
+
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => any) | null;
|
|
106
|
+
}
|
|
107
|
+
interface SpeechRecognitionEvent extends Event {
|
|
108
|
+
results: SpeechRecognitionResultList;
|
|
109
|
+
resultIndex: number;
|
|
110
|
+
}
|
|
111
|
+
type SpeechRecognitionResultList = {
|
|
112
|
+
readonly length: number;
|
|
113
|
+
item(index: number): SpeechRecognitionResult;
|
|
114
|
+
[index: number]: SpeechRecognitionResult;
|
|
115
|
+
};
|
|
116
|
+
type SpeechRecognitionResult = {
|
|
117
|
+
readonly length: number;
|
|
118
|
+
item(index: number): SpeechRecognitionAlternative;
|
|
119
|
+
[index: number]: SpeechRecognitionAlternative;
|
|
120
|
+
isFinal: boolean;
|
|
121
|
+
};
|
|
122
|
+
type SpeechRecognitionAlternative = {
|
|
123
|
+
transcript: string;
|
|
124
|
+
confidence: number;
|
|
125
|
+
};
|
|
126
|
+
interface SpeechRecognitionErrorEvent extends Event {
|
|
127
|
+
error: string;
|
|
128
|
+
}
|
|
129
|
+
declare global {
|
|
130
|
+
interface Window {
|
|
131
|
+
SpeechRecognition: {
|
|
132
|
+
new (): SpeechRecognition;
|
|
133
|
+
};
|
|
134
|
+
webkitSpeechRecognition: {
|
|
135
|
+
new (): SpeechRecognition;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export type PromptInputSpeechButtonProps = ComponentProps<typeof PromptInputButton> & {
|
|
140
|
+
textareaRef?: RefObject<HTMLTextAreaElement | null>;
|
|
141
|
+
onTranscriptionChange?: (text: string) => void;
|
|
142
|
+
};
|
|
143
|
+
export declare const PromptInputSpeechButton: ({ className, textareaRef, onTranscriptionChange, ...props }: PromptInputSpeechButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
144
|
+
export type PromptInputSelectProps = ComponentProps<typeof Select>;
|
|
145
|
+
export declare const PromptInputSelect: (props: PromptInputSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
146
|
+
export type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
147
|
+
export declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
148
|
+
export type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
|
|
149
|
+
export declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
150
|
+
export type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
|
|
151
|
+
export declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
152
|
+
export type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
|
|
153
|
+
export declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
154
|
+
export type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
|
|
155
|
+
export declare const PromptInputHoverCard: ({ openDelay, closeDelay, ...props }: PromptInputHoverCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
156
|
+
export type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
|
|
157
|
+
export declare const PromptInputHoverCardTrigger: (props: PromptInputHoverCardTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
158
|
+
export type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
|
|
159
|
+
export declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
160
|
+
export type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
161
|
+
export declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
162
|
+
export type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
|
|
163
|
+
export declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
164
|
+
export type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
|
|
165
|
+
export declare const PromptInputTabLabel: ({ className, ...props }: PromptInputTabLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
166
|
+
export type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
167
|
+
export declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
168
|
+
export type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
|
|
169
|
+
export declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
170
|
+
export type PromptInputCommandProps = ComponentProps<typeof Command>;
|
|
171
|
+
export declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => import("react/jsx-runtime").JSX.Element;
|
|
172
|
+
export type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
|
|
173
|
+
export declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
|
+
export type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
|
|
175
|
+
export declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => import("react/jsx-runtime").JSX.Element;
|
|
176
|
+
export type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
177
|
+
export declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
178
|
+
export type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
|
|
179
|
+
export declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
180
|
+
export type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
|
|
181
|
+
export declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
182
|
+
export type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
|
|
183
|
+
export declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
184
|
+
export {};
|
|
185
|
+
//# sourceMappingURL=prompt-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../../../src/elements/prompt-input.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAYjD,OAAO,EAKL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAGd,KAAK,cAAc,EAEnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAMf,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,CAAC,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACvC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,QAAQ,KAAK,IAAI,CAAC;IACxC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,M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c,CAAC,CAAC;AAErE,eAAO,MAAM,kBAAkB,GAAI,yBAGhC,uBAAuB,4CAQzB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAErE,eAAO,MAAM,kBAAkB,GAAI,yBAGhC,uBAAuB,4CAAqD,CAAC;AAEhF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,4CAE9B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,4CAE7B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,4CAE9B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,4CAE9B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,4CAE7B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAC3D,OAAO,gBAAgB,CACxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,yBAGzC,gCAAgC,4CAElC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@object-ui/components';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type ReasoningContextValue = {
|
|
4
|
+
isStreaming: boolean;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
setIsOpen: (open: boolean) => void;
|
|
7
|
+
duration: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const useReasoning: () => ReasoningContextValue;
|
|
10
|
+
export type ReasoningProps = ComponentProps<typeof Collapsible> & {
|
|
11
|
+
isStreaming?: boolean;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
duration?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const Reasoning: import('react').MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, children, ...props }: ReasoningProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
export type ReasoningTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
19
|
+
getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export declare const ReasoningTrigger: import('react').MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
|
+
export type ReasoningContentProps = ComponentProps<typeof CollapsibleContent> & {
|
|
23
|
+
children: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const ReasoningContent: import('react').MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=reasoning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reasoning.d.ts","sourceRoot":"","sources":["../../../../../src/elements/reasoning.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,YAAY,6BAMxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,GAAG;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,eAAO,MAAM,SAAS,gJAUjB,cAAc,6CA0DlB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAC9E,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;CAC7E,CAAC;AAYF,eAAO,MAAM,gBAAgB,8FACyD,qBAAqB,6CA0B1G,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAChD,OAAO,kBAAkB,CAC1B,GAAG;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0EACS,qBAAqB,6CAY1D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
export type TextShimmerProps = {
|
|
3
|
+
children: string;
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
spread?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const Shimmer: import('react').MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
//# sourceMappingURL=shimmer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../../../../src/elements/shimmer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,WAAW,EAIjB,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA6CF,eAAO,MAAM,OAAO,kGArCjB,gBAAgB,6CAqC0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CollapsibleContent, CollapsibleTrigger } from '@object-ui/components';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SourcesProps = ComponentProps<"div">;
|
|
4
|
+
export declare const Sources: ({ className, ...props }: SourcesProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type SourcesTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
6
|
+
count: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const SourcesTrigger: ({ className, count, children, ...props }: SourcesTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type SourcesContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
10
|
+
export declare const SourcesContent: ({ className, ...props }: SourcesContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type SourceProps = ComponentProps<"a">;
|
|
12
|
+
export declare const Source: ({ href, title, children, ...props }: SourceProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../src/elements/sources.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEjD,eAAO,MAAM,OAAO,GAAI,yBAAyB,YAAY,4CAK5D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAC5E,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,0CAK5B,mBAAmB,4CAYrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAG5B,mBAAmB,4CASrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAE9C,eAAO,MAAM,MAAM,GAAI,qCAAqC,WAAW,4CAetE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Button, ScrollArea } from '@object-ui/components';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SuggestionsProps = ComponentProps<typeof ScrollArea>;
|
|
4
|
+
export declare const Suggestions: ({ className, children, ...props }: SuggestionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type SuggestionProps = Omit<ComponentProps<typeof Button>, "onClick"> & {
|
|
6
|
+
suggestion: string;
|
|
7
|
+
onClick?: (suggestion: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const Suggestion: ({ suggestion, onClick, className, variant, size, children, ...props }: SuggestionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=suggestion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../../src/elements/suggestion.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,UAAU,EAEX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAEjE,eAAO,MAAM,WAAW,GAAI,mCAIzB,gBAAgB,4CAOlB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,CAAC,GAAG;IAC7E,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,uEAQxB,eAAe,4CAiBjB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Collapsible, CollapsibleContent } from '@object-ui/components';
|
|
2
|
+
import { ToolUIPart } from 'ai';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
export type ToolProps = ComponentProps<typeof Collapsible>;
|
|
5
|
+
export declare const Tool: ({ className, ...props }: ToolProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type ToolHeaderProps = {
|
|
7
|
+
title?: string;
|
|
8
|
+
type: ToolUIPart["type"];
|
|
9
|
+
state: ToolUIPart["state"];
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const ToolHeader: ({ className, title, type, state, ...props }: ToolHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type ToolContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
14
|
+
export declare const ToolContent: ({ className, ...props }: ToolContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type ToolInputProps = ComponentProps<"div"> & {
|
|
16
|
+
input: ToolUIPart["input"];
|
|
17
|
+
};
|
|
18
|
+
export declare const ToolInput: ({ className, input, ...props }: ToolInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export type ToolOutputProps = ComponentProps<"div"> & {
|
|
20
|
+
output: ToolUIPart["output"];
|
|
21
|
+
errorText: ToolUIPart["errorText"];
|
|
22
|
+
};
|
|
23
|
+
export declare const ToolOutput: ({ className, output, errorText, ...props }: ToolOutputProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../../src/elements/tool.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,WAAW,EACX,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AASrC,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,IAAI,GAAI,yBAAyB,SAAS,4CAKtD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiCF,eAAO,MAAM,UAAU,GAAI,6CAMxB,eAAe,4CAiBjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,eAAO,MAAM,WAAW,GAAI,yBAAyB,gBAAgB,4CAQpE,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,gCAAgC,cAAc,4CASvE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACpD,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC7B,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4CAKxB,eAAe,mDAiCjB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Separator } from '@object-ui/components';
|
|
3
|
+
declare const buttonGroupVariants: (props?: ({
|
|
4
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, };
|
|
12
|
+
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/ui/button-group.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,QAAA,MAAM,mBAAmB;;8EAexB,CAAA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,WAAW,EACX,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,2CAUxE;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,2CAYA;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,2CAYxC;AAED,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,mBAAmB,GACpB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Button } from '@object-ui/components';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
+
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
10
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
17
|
+
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/ui/input-group.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAI9C,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CA0BvE;AAED,QAAA,MAAM,uBAAuB;;8EAmB5B,CAAA;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,2CAgB5E;AAED,QAAA,MAAM,wBAAwB;;8EAgB7B,CAAA;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,IAAe,EACf,OAAiB,EACjB,IAAW,EACX,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GAClD,YAAY,CAAC,OAAO,wBAAwB,CAAC,2CAU9C;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAU5E;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW/B;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAWlC;AAED,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,CAAA"}
|
|
@@ -54,4 +54,5 @@ export type { FloatingChatbotTriggerProps } from './FloatingChatbotTrigger';
|
|
|
54
54
|
export { FloatingChatbotPanel } from './FloatingChatbotPanel';
|
|
55
55
|
export type { FloatingChatbotPanelProps } from './FloatingChatbotPanel';
|
|
56
56
|
export * from './renderer';
|
|
57
|
+
export * as AIElements from './elements';
|
|
57
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAGD,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACxE,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EA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O,CAAC;IACnB,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gCAAgC;IAChC,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,IAAI,CAAC;CAC3F;AAmBD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,mBAAmB,CA2QrF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-chatbot",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Chatbot interface plugin for Object UI",
|
|
@@ -25,15 +25,23 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@ai-sdk/react": "^3.0.186",
|
|
28
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
29
|
+
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
28
30
|
"ai": "^6.0.184",
|
|
31
|
+
"class-variance-authority": "^0.7.1",
|
|
29
32
|
"lucide-react": "^1.16.0",
|
|
33
|
+
"motion": "^12.38.0",
|
|
34
|
+
"nanoid": "^5.1.11",
|
|
30
35
|
"react-markdown": "^10.1.0",
|
|
31
36
|
"react-syntax-highlighter": "^16.1.1",
|
|
32
37
|
"remark-gfm": "^4.0.1",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"@object-ui/
|
|
38
|
+
"shiki": "^4.0.2",
|
|
39
|
+
"streamdown": "^1.4.1",
|
|
40
|
+
"use-stick-to-bottom": "^1.1.1",
|
|
41
|
+
"@object-ui/components": "5.4.1",
|
|
42
|
+
"@object-ui/core": "5.4.1",
|
|
43
|
+
"@object-ui/react": "5.4.1",
|
|
44
|
+
"@object-ui/types": "5.4.1"
|
|
37
45
|
},
|
|
38
46
|
"peerDependencies": {
|
|
39
47
|
"react": "^18.0.0 || ^19.0.0",
|