@brainfish-ai/components 0.28.9 → 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.
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;
@@ -987,7 +984,6 @@ export declare type ConversationCallbacks = {
987
984
  onStop?: () => void;
988
985
  onSuggestionClick?: (suggestion: Suggestion) => void;
989
986
  onActionClick?: (action: ConversationAction, messageId: string) => void;
990
- onFeedback?: (messageId: string, feedback: 'positive' | 'negative') => void;
991
987
  onCitationClick?: (citation: Citation) => void;
992
988
  onAttachmentAction?: (action: AttachmentAction) => void;
993
989
  onContextPillRemove?: (pill: ContextPill) => void;
@@ -1005,12 +1001,14 @@ export declare interface ConversationContextValue {
1005
1001
  isStreaming: boolean;
1006
1002
  }
1007
1003
 
1008
- 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;
1009
1005
 
1010
1006
  declare interface ConversationInputProps_2 {
1011
1007
  placeholder?: string;
1012
1008
  attachments?: Attachment[];
1013
1009
  collections?: Collection_2[];
1010
+ tabs?: Tab[];
1011
+ attachmentActions?: SimpleAttachmentActionType[];
1014
1012
  contextPills?: ContextPill[];
1015
1013
  disabled?: boolean;
1016
1014
  isElevated?: boolean;
@@ -1053,6 +1051,8 @@ declare interface ConversationProps {
1053
1051
  placeholder?: string;
1054
1052
  attachments?: Attachment[];
1055
1053
  collections?: Collection_2[];
1054
+ tabs?: Tab[];
1055
+ attachmentActions?: SimpleAttachmentActionType[];
1056
1056
  contextPills?: ContextPill[];
1057
1057
  showBranding?: boolean;
1058
1058
  className?: string;
@@ -2041,6 +2041,8 @@ export declare interface SidebarProps extends React_2.ComponentPropsWithoutRef<'
2041
2041
  sectionNavActiveId?: string;
2042
2042
  }
2043
2043
 
2044
+ declare type SimpleAttachmentActionType = 'screenshot' | 'record-video' | 'add-file';
2045
+
2044
2046
  export declare function SimpleSelect({ options, value, onChange, placeholder, disabled, className, appendToBody, }: SimpleSelectProps): React_2.JSX.Element;
2045
2047
 
2046
2048
  export declare interface SimpleSelectProps {
@@ -2170,6 +2172,13 @@ export declare interface SuggestionCardSource {
2170
2172
 
2171
2173
  export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
2172
2174
 
2175
+ declare type Tab = {
2176
+ id: string;
2177
+ title: string;
2178
+ url: string;
2179
+ favIconUrl?: string;
2180
+ };
2181
+
2173
2182
  export declare const Table: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableElement> & React_2.RefAttributes<HTMLTableElement>>;
2174
2183
 
2175
2184
  export declare const TableBody: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;