@brainfish-ai/components 0.22.11 → 0.23.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/dist/avatar.d.ts +18 -0
- package/dist/chat-search.d.ts +14 -1
- package/dist/components/ui/avatar.d.ts +2 -0
- package/dist/dropdown-menu.d.ts +4 -0
- package/dist/esm/chunks/{ChatSearch.CgxpBVrd.js → ChatSearch.DO8oQOlu.js} +546 -188
- package/dist/esm/chunks/ChatSearch.DO8oQOlu.js.map +1 -0
- package/dist/esm/chunks/{FormattedMessage.ieoe4jPf.js → FormattedMessage.DFWDPJoI.js} +224 -224
- package/dist/esm/chunks/{FormattedMessage.ieoe4jPf.js.map → FormattedMessage.DFWDPJoI.js.map} +1 -1
- package/dist/esm/chunks/header-nav.gQJ2Hh5z.js +173 -0
- package/dist/esm/chunks/header-nav.gQJ2Hh5z.js.map +1 -0
- package/dist/esm/chunks/{hooks.CKojclfe.js → hooks.DI5ftshU.js} +29 -2
- package/dist/esm/chunks/hooks.DI5ftshU.js.map +1 -0
- package/dist/esm/chunks/{layout.Cxgg3kfZ.js → layout.Cw9KlzMD.js} +4 -4
- package/dist/esm/chunks/{layout.Cxgg3kfZ.js.map → layout.Cw9KlzMD.js.map} +1 -1
- package/dist/esm/chunks/{review-list.B1IHUfFS.js → review-list.CVJB3TFg.js} +3 -3
- package/dist/esm/chunks/{review-list.B1IHUfFS.js.map → review-list.CVJB3TFg.js.map} +1 -1
- package/dist/esm/chunks/{sidebar.Cfrsif7V.js → sidebar.BejmvpB3.js} +14 -13
- package/dist/esm/chunks/sidebar.BejmvpB3.js.map +1 -0
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/components/convos.js +4 -3
- package/dist/esm/components/convos.js.map +1 -1
- package/dist/esm/components/markdown.js +1 -1
- package/dist/esm/components/ui/avatar.js +90 -0
- package/dist/esm/components/ui/avatar.js.map +1 -0
- package/dist/esm/components/ui/dropdown-menu.js +8 -6
- package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
- package/dist/esm/global.css +1 -1
- package/dist/esm/index.js +8 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/full-layout.js +2 -2
- package/dist/esm/layouts/header-nav.js +1 -1
- package/dist/esm/layouts/sidebar.js +1 -1
- package/dist/esm/scenes/knowledge-review.js +1 -1
- package/dist/esm/tailwind.preset.js +12 -12
- package/dist/esm/tailwind.preset.js.map +1 -1
- package/dist/full-layout.d.ts +26 -1
- package/dist/header-nav.d.ts +26 -1
- package/dist/index.d.ts +59 -2
- package/dist/stats.html +1 -1
- package/package.json +10 -9
- package/dist/esm/chunks/ChatSearch.CgxpBVrd.js.map +0 -1
- package/dist/esm/chunks/header-nav.DSUAniYA.js +0 -73
- package/dist/esm/chunks/header-nav.DSUAniYA.js.map +0 -1
- package/dist/esm/chunks/hooks.CKojclfe.js.map +0 -1
- package/dist/esm/chunks/sidebar.Cfrsif7V.js.map +0 -1
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function Avatar({ className, size, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
5
|
+
size?: 'default' | 'sm' | 'lg';
|
|
6
|
+
}): React_2.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export declare function AvatarBadge({ className, ...props }: React_2.ComponentProps<'span'>): React_2.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export declare function AvatarFallback({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Fallback>): React_2.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export declare function AvatarGroup({ className, ...props }: React_2.ComponentProps<'div'>): React_2.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export declare function AvatarGroupCount({ className, ...props }: React_2.ComponentProps<'div'>): React_2.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Image>): React_2.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/dist/chat-search.d.ts
CHANGED
|
@@ -100,6 +100,13 @@ export declare interface Answer {
|
|
|
100
100
|
searchIntentId?: string;
|
|
101
101
|
actions?: Action[];
|
|
102
102
|
hasError?: boolean;
|
|
103
|
+
attachments?: AnswerAttachment[];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare interface AnswerAttachment {
|
|
107
|
+
type: AttachmentType;
|
|
108
|
+
url: string;
|
|
109
|
+
filename?: string;
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
declare type AnswerBlock = MarkdownTextBlock | ActionButtonsBlock | ActionInputFormBlock;
|
|
@@ -148,9 +155,12 @@ declare type AppendNewAnswer = {
|
|
|
148
155
|
payload: {
|
|
149
156
|
id?: string;
|
|
150
157
|
query: string;
|
|
158
|
+
attachments?: AnswerAttachment[];
|
|
151
159
|
};
|
|
152
160
|
};
|
|
153
161
|
|
|
162
|
+
declare type AttachmentType = 'image' | 'file';
|
|
163
|
+
|
|
154
164
|
export declare const ChatSearch: default_2.ForwardRefExoticComponent<ChatSearchProps & default_2.RefAttributes<ChatSearchHandle>>;
|
|
155
165
|
|
|
156
166
|
declare interface ChatSearchContextProps {
|
|
@@ -186,6 +196,7 @@ export declare interface ChatSearchHandle {
|
|
|
186
196
|
subscribeToStateChanges: (callback: (state: ChatSearchState) => void) => () => void;
|
|
187
197
|
focusSearchField: () => void;
|
|
188
198
|
showCloseButton: (showButton: boolean) => void;
|
|
199
|
+
loadConversation: (conversationId: string) => void;
|
|
189
200
|
}
|
|
190
201
|
|
|
191
202
|
export declare interface ChatSearchProps {
|
|
@@ -204,6 +215,7 @@ export declare interface ChatSearchProps {
|
|
|
204
215
|
searchEndpoint: string;
|
|
205
216
|
answerEndpoint: string;
|
|
206
217
|
answerStreamEndpoint: string;
|
|
218
|
+
presignedUrlEndpoint?: string;
|
|
207
219
|
feedbackEndpoint?: string;
|
|
208
220
|
feedbackReasonEndpoint?: string;
|
|
209
221
|
loadConversationEndpoint?: string;
|
|
@@ -211,7 +223,7 @@ export declare interface ChatSearchProps {
|
|
|
211
223
|
autocompleteEndpoint?: string;
|
|
212
224
|
contentTypeEndpoint?: string;
|
|
213
225
|
disableFollowUpQuestions?: boolean;
|
|
214
|
-
|
|
226
|
+
enableFileAttachment?: boolean;
|
|
215
227
|
disableFeedback?: boolean;
|
|
216
228
|
disclaimer?: string;
|
|
217
229
|
offset?: number;
|
|
@@ -247,6 +259,7 @@ export declare const ChatSearchProvider: default_2.FC<{
|
|
|
247
259
|
children: ReactNode;
|
|
248
260
|
searchPath?: string;
|
|
249
261
|
contentTypeEndpoint?: string;
|
|
262
|
+
widgetKey?: string;
|
|
250
263
|
}>;
|
|
251
264
|
|
|
252
265
|
export declare interface ChatSearchState {
|
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<Dropdo
|
|
|
11
11
|
|
|
12
12
|
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
13
|
inset?: boolean | undefined;
|
|
14
|
+
/** Optional second row (e.g. ID + copy); consumer supplies full content as ReactNode. */
|
|
15
|
+
secondaryRow?: React_2.ReactNode;
|
|
14
16
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
15
17
|
|
|
16
18
|
export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
@@ -36,6 +38,8 @@ export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<O
|
|
|
36
38
|
|
|
37
39
|
export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
38
40
|
inset?: boolean | undefined;
|
|
41
|
+
/** Optional second row (e.g. ID + copy); consumer supplies full content as ReactNode. */
|
|
42
|
+
secondaryRow?: React_2.ReactNode;
|
|
39
43
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
40
44
|
|
|
41
45
|
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|