@brainfish-ai/components 0.28.10 → 0.28.11

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.
@@ -1,2 +1,2 @@
1
- export{C as ContextPillBadge,a as Conversation,b as ConversationActions,c as ConversationInput,d as ConversationMessageAssistant,e as ConversationMessageUser,f as ConversationMessages,g as ConversationProvider,h as ConversationStatus,i as ConversationSuggestions,u as useConversation}from"../chunks/Conversation.7_k59TJL.js";
1
+ export{C as ContextPillBadge,a as Conversation,b as ConversationActions,c as ConversationInput,d as ConversationMessageAssistant,e as ConversationMessageUser,f as ConversationMessages,g as ConversationProvider,h as ConversationStatus,i as ConversationSuggestions,u as useConversation}from"../chunks/Conversation.D1Mqf3Qg.js";
2
2
  //# sourceMappingURL=conversation.js.map
@@ -1,3 +1,3 @@
1
1
  import e from"react";import{c as r}from"../chunks/utils.C6Qu-kwd.js";function t({children:t,className:s}){/* @__PURE__ */
2
- return e.createElement("div",{className:r("flex flex-wrap",s)},e.Children.map(t,(r,t)=>/* @__PURE__ */e.createElement("div",{key:t,className:"flex items-stretch px-6 first:pl-0"},r)))}export{t as MetricCardGroup};
2
+ return e.createElement("div",{className:r("flex flex-wrap",s)},e.Children.map(t,(r,t)=>/* @__PURE__ */e.createElement("div",{key:t,className:"flex items-stretch first:pl-0"},r)))}export{t as MetricCardGroup};
3
3
  //# sourceMappingURL=metric-card-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"metric-card-group.js","sources":["../../../src/components/metric-card-group/metric-card-group.tsx"],"sourcesContent":["import React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nexport interface MetricCardGroupProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function MetricCardGroup({ children, className }: MetricCardGroupProps) {\n return (\n <div className={cn('flex flex-wrap', className)}>\n {React.Children.map(children, (child, index) => (\n <div key={index} className=\"flex items-stretch px-6 first:pl-0\">\n {child}\n </div>\n ))}\n </div>\n );\n}\n"],"names":["MetricCardGroup","children","className","React","createElement","cn","Children","map","child","index","key"],"mappings":"qEASO,SAASA,GAAgBC,SAAEA,EAAAC,UAAUA;AAC1C,OACEC,EAAAC,cAAC,OAAIF,UAAWG,EAAG,iBAAkBH,IAClCC,EAAMG,SAASC,IAAIN,EAAU,CAACO,EAAOC,mCACnC,MAAA,CAAIC,IAAKD,EAAOP,UAAU,sCACxBM,IAKX"}
1
+ {"version":3,"file":"metric-card-group.js","sources":["../../../src/components/metric-card-group/metric-card-group.tsx"],"sourcesContent":["import React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nexport interface MetricCardGroupProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function MetricCardGroup({ children, className }: MetricCardGroupProps) {\n return (\n <div className={cn('flex flex-wrap', className)}>\n {React.Children.map(children, (child, index) => (\n <div key={index} className=\"flex items-stretch first:pl-0\">\n {child}\n </div>\n ))}\n </div>\n );\n}\n"],"names":["MetricCardGroup","children","className","React","createElement","cn","Children","map","child","index","key"],"mappings":"qEASO,SAASA,GAAgBC,SAAEA,EAAAC,UAAUA;AAC1C,OACEC,EAAAC,cAAC,OAAIF,UAAWG,EAAG,iBAAkBH,IAClCC,EAAMG,SAASC,IAAIN,EAAU,CAACO,EAAOC,mCACnC,MAAA,CAAIC,IAAKD,EAAOP,UAAU,iCACxBM,IAKX"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import './global.css';/* empty css */export{BrainfishColors}from"./colors.js";export{C as ChatSearch,a as ChatSearchProvider,R as ResolvedConversationFooter,u as useChatSearch,b as useIsChatSearchDirty}from"./chunks/ChatSearch.DIrtg9k_.js";export{C as ContextPillBadge,a as Conversation,b as ConversationActions,c as ConversationInput,d as ConversationMessageAssistant,e as ConversationMessageUser,f as ConversationMessages,g as ConversationProvider,h as ConversationStatus,i as ConversationSuggestions,u as useConversation}from"./chunks/Conversation.7_k59TJL.js";export{C as CodeBlock,F as FormattedMessage,M as MemoizedReactMarkdown,Z as ZoomableImage,a as addPopupWidgetUtm,b as addUtmParameters}from"./chunks/FormattedMessage.XNMN23hm.js";export{MermaidDiagram}from"./chunks/MermaidDiagram.PRgXQ5Yh.js";export{Avatar,AvatarBadge,AvatarFallback,AvatarGroup,AvatarGroupCount,AvatarImage}from"./components/ui/avatar.js";export{B as Button,b as buttonVariants}from"./chunks/button.D_2SonNs.js";export{Collapsible,CollapsibleContent,CollapsibleTrigger}from"./components/ui/collapsible.js";export{DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger}from"./components/ui/dropdown-menu.js";export{Switch}from"./components/ui/switch.js";export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"./components/ui/tooltip.js";export{Textarea}from"./components/ui/textarea.js";export{ScrollArea,ScrollBar}from"./components/ui/scroll-area.js";export{Label}from"./components/ui/label.js";export{Input}from"./components/ui/input.js";export{Popover,PopoverAnchor,PopoverContent,PopoverTrigger}from"./components/ui/popover.js";export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from"./components/ui/command.js";export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger}from"./components/ui/dialog.js";export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"./components/ui/card.js";export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow}from"./components/ui/table.js";export{Badge,badgeVariants}from"./components/ui/badge.js";export{Progress}from"./components/ui/progress.js";export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./components/ui/accordion.js";export{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger}from"./components/ui/alert-dialog.js";export{Alert,AlertAction,AlertContent,AlertDescription,AlertTitle}from"./components/ui/alert.js";export{ButtonGroup,ButtonGroupSeparator,ButtonGroupText,buttonGroupVariants}from"./components/ui/button-group.js";export{Calendar}from"./components/ui/calendar.js";export{DivButton,divButtonVariants}from"./components/ui/div-button.js";export{Icon,MemoizedIcon}from"./components/ui/icon.js";export{Item,ItemActions,ItemContent,ItemDescription,ItemFooter,ItemGroup,ItemHeader,ItemMedia,ItemSeparator,ItemTitle}from"./components/ui/item.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectSeparator,SelectTrigger,SelectValue}from"./components/ui/select.js";export{Separator}from"./components/ui/separator.js";export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger}from"./components/ui/sheet.js";export{Spinner}from"./components/ui/spinner.js";export{S as SimpleSelect}from"./chunks/simpleSelect.DK1qZSXM.js";export{D as DatePicker}from"./chunks/date-picker.C2VT_rZ9.js";export{C as Combobox}from"./chunks/combobox.MyoPH18G.js";export{T as TwoLevelCombobox}from"./chunks/two-level-combobox.DJYP--W9.js";export{F as Filter,a as Filters,O as Operator}from"./chunks/filters.BHp3ukNW.js";export{F as FileUpload,a as FileUploadStatus,f as formatFileSize}from"./chunks/file-upload-status.D8RhMcbO.js";export{D as DataTable}from"./chunks/data-table.CJOR-1Kf.js";export{I as InputWithTags}from"./chunks/input-with-tags.DLv9e0XI.js";export{L as Logo}from"./chunks/logo.CGKfN1U6.js";export{C as ChatLogo}from"./chunks/chat-logo.CqPppEb9.js";export{T as Trend,a as TrendValue}from"./chunks/trend-value.BPBDBsk2.js";export{F as FontPicker,a as FontPickerItem,c as clearFontCache,g as getCachedFonts,l as loadFont,s as setCachedFonts,u as useFontOptions}from"./chunks/font-picker.B9GPXyK4.js";export{F as FullLayout,a as FullLayoutHeader,b as FullLayoutLeftSidebar,c as FullLayoutNavStateContext,d as FullLayoutProvider,e as FullLayoutRightSidebar,u as useFullLayoutContext,f as useRightSidebar}from"./chunks/header-pane.1-3lMndU.js";export{H as HEADER_NAV_HEIGHT,a as HeaderNav}from"./chunks/header-nav.C9r4A44a.js";export{S as Sidebar,u as useSidebar}from"./chunks/sidebar.HOrQaimG.js";export{MicrosoftTeamsLogo}from"./logos/microsoft-teams-logo.js";export{SlackLogo}from"./logos/slack-logo.js";export{MicrosoftLogo}from"./logos/microsoft-logo.js";export{R as ReviewList,a as ReviewListItem,b as ReviewsSelectionProvider,S as SuggestionCard,u as useReviewsSelection}from"./chunks/suggestion-card.DAwWcW7V.js";
1
+ import './global.css';/* empty css */export{BrainfishColors}from"./colors.js";export{C as ChatSearch,a as ChatSearchProvider,R as ResolvedConversationFooter,u as useChatSearch,b as useIsChatSearchDirty}from"./chunks/ChatSearch.DIrtg9k_.js";export{C as ContextPillBadge,a as Conversation,b as ConversationActions,c as ConversationInput,d as ConversationMessageAssistant,e as ConversationMessageUser,f as ConversationMessages,g as ConversationProvider,h as ConversationStatus,i as ConversationSuggestions,u as useConversation}from"./chunks/Conversation.D1Mqf3Qg.js";export{C as CodeBlock,F as FormattedMessage,M as MemoizedReactMarkdown,Z as ZoomableImage,a as addPopupWidgetUtm,b as addUtmParameters}from"./chunks/FormattedMessage.XNMN23hm.js";export{MermaidDiagram}from"./chunks/MermaidDiagram.PRgXQ5Yh.js";export{Avatar,AvatarBadge,AvatarFallback,AvatarGroup,AvatarGroupCount,AvatarImage}from"./components/ui/avatar.js";export{B as Button,b as buttonVariants}from"./chunks/button.D_2SonNs.js";export{Collapsible,CollapsibleContent,CollapsibleTrigger}from"./components/ui/collapsible.js";export{DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger}from"./components/ui/dropdown-menu.js";export{Switch}from"./components/ui/switch.js";export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"./components/ui/tooltip.js";export{Textarea}from"./components/ui/textarea.js";export{ScrollArea,ScrollBar}from"./components/ui/scroll-area.js";export{Label}from"./components/ui/label.js";export{Input}from"./components/ui/input.js";export{Popover,PopoverAnchor,PopoverContent,PopoverTrigger}from"./components/ui/popover.js";export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from"./components/ui/command.js";export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger}from"./components/ui/dialog.js";export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"./components/ui/card.js";export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow}from"./components/ui/table.js";export{Badge,badgeVariants}from"./components/ui/badge.js";export{Progress}from"./components/ui/progress.js";export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./components/ui/accordion.js";export{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger}from"./components/ui/alert-dialog.js";export{Alert,AlertAction,AlertContent,AlertDescription,AlertTitle}from"./components/ui/alert.js";export{ButtonGroup,ButtonGroupSeparator,ButtonGroupText,buttonGroupVariants}from"./components/ui/button-group.js";export{Calendar}from"./components/ui/calendar.js";export{DivButton,divButtonVariants}from"./components/ui/div-button.js";export{Icon,MemoizedIcon}from"./components/ui/icon.js";export{Item,ItemActions,ItemContent,ItemDescription,ItemFooter,ItemGroup,ItemHeader,ItemMedia,ItemSeparator,ItemTitle}from"./components/ui/item.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectSeparator,SelectTrigger,SelectValue}from"./components/ui/select.js";export{Separator}from"./components/ui/separator.js";export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger}from"./components/ui/sheet.js";export{Spinner}from"./components/ui/spinner.js";export{S as SimpleSelect}from"./chunks/simpleSelect.DK1qZSXM.js";export{D as DatePicker}from"./chunks/date-picker.C2VT_rZ9.js";export{C as Combobox}from"./chunks/combobox.MyoPH18G.js";export{T as TwoLevelCombobox}from"./chunks/two-level-combobox.DJYP--W9.js";export{F as Filter,a as Filters,O as Operator}from"./chunks/filters.BHp3ukNW.js";export{F as FileUpload,a as FileUploadStatus,f as formatFileSize}from"./chunks/file-upload-status.D8RhMcbO.js";export{D as DataTable}from"./chunks/data-table.CJOR-1Kf.js";export{I as InputWithTags}from"./chunks/input-with-tags.DLv9e0XI.js";export{L as Logo}from"./chunks/logo.CGKfN1U6.js";export{C as ChatLogo}from"./chunks/chat-logo.CqPppEb9.js";export{T as Trend,a as TrendValue}from"./chunks/trend-value.BPBDBsk2.js";export{F as FontPicker,a as FontPickerItem,c as clearFontCache,g as getCachedFonts,l as loadFont,s as setCachedFonts,u as useFontOptions}from"./chunks/font-picker.B9GPXyK4.js";export{F as FullLayout,a as FullLayoutHeader,b as FullLayoutLeftSidebar,c as FullLayoutNavStateContext,d as FullLayoutProvider,e as FullLayoutRightSidebar,u as useFullLayoutContext,f as useRightSidebar}from"./chunks/header-pane.1-3lMndU.js";export{H as HEADER_NAV_HEIGHT,a as HeaderNav}from"./chunks/header-nav.C9r4A44a.js";export{S as Sidebar,u as useSidebar}from"./chunks/sidebar.HOrQaimG.js";export{MicrosoftTeamsLogo}from"./logos/microsoft-teams-logo.js";export{SlackLogo}from"./logos/slack-logo.js";export{MicrosoftLogo}from"./logos/microsoft-logo.js";export{R as ReviewList,a as ReviewListItem,b as ReviewsSelectionProvider,S as SuggestionCard,u as useReviewsSelection}from"./chunks/suggestion-card.DAwWcW7V.js";
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -379,13 +379,10 @@ export declare type AttachmentAction = {
379
379
  type: 'select-collection';
380
380
  collection: Collection_2;
381
381
  } | {
382
- type: 'attach-tab';
382
+ type: 'select-tab';
383
+ tab: Tab;
383
384
  } | {
384
- type: 'screenshot';
385
- } | {
386
- type: 'record-video';
387
- } | {
388
- type: 'add-file';
385
+ type: SimpleAttachmentActionType;
389
386
  };
390
387
 
391
388
  declare type AttachmentType = 'image' | 'file';
@@ -959,9 +956,9 @@ declare interface ContextPillBadgeProps {
959
956
  onRemove?: (pill: ContextPill) => void;
960
957
  }
961
958
 
962
- export declare const Conversation: (({ messages, callbacks, children, suggestions, actions, placeholder, attachments, collections, contextPills, showBranding, className, }: ConversationProps) => default_2.JSX.Element) & {
959
+ export declare const Conversation: (({ messages, callbacks, children, suggestions, actions, placeholder, attachments, collections, tabs, attachmentActions, contextPills, showBranding, className, }: ConversationProps) => default_2.JSX.Element) & {
963
960
  Messages: ({ className, bottomPadding, onContentBehind }: ConversationMessagesProps) => default_2.JSX.Element;
964
- Input: ({ placeholder, attachments, collections, contextPills, disabled, isElevated, className, }: ConversationInputProps) => default_2.JSX.Element;
961
+ Input: ({ placeholder, attachments, collections, tabs, attachmentActions, contextPills, disabled, isElevated, className, }: ConversationInputProps) => default_2.JSX.Element;
965
962
  Suggestions: ({ items, className }: ConversationSuggestionsProps) => default_2.JSX.Element | null;
966
963
  Actions: ({ actions, onActionClick, className }: ConversationActionsProps) => default_2.JSX.Element | null;
967
964
  Loading: ({ className }: ConversationStatusProps) => default_2.JSX.Element;
@@ -1004,12 +1001,14 @@ export declare interface ConversationContextValue {
1004
1001
  isStreaming: boolean;
1005
1002
  }
1006
1003
 
1007
- export declare const ConversationInput: ({ placeholder, attachments, collections, contextPills, disabled, isElevated, className, }: ConversationInputProps_2) => default_2.JSX.Element;
1004
+ export declare const ConversationInput: ({ placeholder, attachments, collections, tabs, attachmentActions, contextPills, disabled, isElevated, className, }: ConversationInputProps_2) => default_2.JSX.Element;
1008
1005
 
1009
1006
  declare interface ConversationInputProps_2 {
1010
1007
  placeholder?: string;
1011
1008
  attachments?: Attachment[];
1012
1009
  collections?: Collection_2[];
1010
+ tabs?: Tab[];
1011
+ attachmentActions?: SimpleAttachmentActionType[];
1013
1012
  contextPills?: ContextPill[];
1014
1013
  disabled?: boolean;
1015
1014
  isElevated?: boolean;
@@ -1052,6 +1051,8 @@ declare interface ConversationProps {
1052
1051
  placeholder?: string;
1053
1052
  attachments?: Attachment[];
1054
1053
  collections?: Collection_2[];
1054
+ tabs?: Tab[];
1055
+ attachmentActions?: SimpleAttachmentActionType[];
1055
1056
  contextPills?: ContextPill[];
1056
1057
  showBranding?: boolean;
1057
1058
  className?: string;
@@ -2040,6 +2041,8 @@ export declare interface SidebarProps extends React_2.ComponentPropsWithoutRef<'
2040
2041
  sectionNavActiveId?: string;
2041
2042
  }
2042
2043
 
2044
+ declare type SimpleAttachmentActionType = 'screenshot' | 'record-video' | 'add-file';
2045
+
2043
2046
  export declare function SimpleSelect({ options, value, onChange, placeholder, disabled, className, appendToBody, }: SimpleSelectProps): React_2.JSX.Element;
2044
2047
 
2045
2048
  export declare interface SimpleSelectProps {
@@ -2169,6 +2172,13 @@ export declare interface SuggestionCardSource {
2169
2172
 
2170
2173
  export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
2171
2174
 
2175
+ declare type Tab = {
2176
+ id: string;
2177
+ title: string;
2178
+ url: string;
2179
+ favIconUrl?: string;
2180
+ };
2181
+
2172
2182
  export declare const Table: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableElement> & React_2.RefAttributes<HTMLTableElement>>;
2173
2183
 
2174
2184
  export declare const TableBody: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;