@brainfish-ai/components 0.8.3 → 0.9.0

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 ChatSearch, a as ChatSearchProvider, u as useChatSearch, b as useIsChatSearchDirty } from '../chunks/ChatSearch.SKfNDI-w.js';
1
+ export { C as ChatSearch, a as ChatSearchProvider, u as useChatSearch, b as useIsChatSearchDirty } from '../chunks/ChatSearch.DCIOe8iM.js';
2
2
  //# sourceMappingURL=chat-search.js.map
@@ -1,2 +1,2 @@
1
- export { C as CodeBlock, F as FormattedMessage, M as MemoizedReactMarkdown, a as MermaidDiagram, Z as ZoomableImage } from '../chunks/FormattedMessage.DPRps9mh.js';
1
+ export { C as CodeBlock, F as FormattedMessage, M as MemoizedReactMarkdown, a as MermaidDiagram, Z as ZoomableImage } from '../chunks/FormattedMessage.aTdTW_T0.js';
2
2
  //# sourceMappingURL=markdown.js.map
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import './index.css';export { C as ChatSearch, a as ChatSearchProvider, u as useChatSearch, b as useIsChatSearchDirty } from './chunks/ChatSearch.SKfNDI-w.js';
2
- export { C as CodeBlock, F as FormattedMessage, M as MemoizedReactMarkdown, a as MermaidDiagram, Z as ZoomableImage } from './chunks/FormattedMessage.DPRps9mh.js';
1
+ import './index.css';export { C as ChatSearch, a as ChatSearchProvider, u as useChatSearch, b as useIsChatSearchDirty } from './chunks/ChatSearch.DCIOe8iM.js';
2
+ export { C as CodeBlock, F as FormattedMessage, M as MemoizedReactMarkdown, a as MermaidDiagram, Z as ZoomableImage } from './chunks/FormattedMessage.aTdTW_T0.js';
3
3
  export { Button, buttonVariants } from './components/ui/button.js';
4
4
  export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/ui/collapsible.js';
5
5
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/ui/dropdown-menu.js';
package/dist/index.d.ts CHANGED
@@ -112,7 +112,7 @@ export declare interface Answer {
112
112
 
113
113
  declare type AnswerBlock = MarkdownTextBlock | ActionButtonsBlock | ActionInputFormBlock;
114
114
 
115
- declare type AnswerListAction = SetAnswers | ClearAll | AppendNewAnswer | SetSearchResults | AppendAnswerChunk | SetAnswerError | SetUserFeedback | ClearUserFeedback | SetFollowUpQuestions | AppendBlock | CompleteAnswer | MarkAsUncertain | InvokeAction | GetActionInputs | AddActionButtons;
115
+ declare type AnswerListAction = SetAnswers | ClearAll | AppendNewAnswer | SetSearchResults | AppendAnswerChunk | SetAnswerError | SetUserFeedback | ClearUserFeedback | SetFollowUpQuestions | AppendBlock | CompleteAnswer | MarkAsUncertain | InvokeAction | GetActionInputs | AddActionButtons | NoArticlesFound;
116
116
 
117
117
  declare const AnswersActions: {
118
118
  readonly SET_ANSWERS: "answers/set_answers";
@@ -127,6 +127,7 @@ declare const AnswersActions: {
127
127
  readonly SET_USER_FEEDBACK: "answers/set_user_feedback";
128
128
  readonly CLEAR_USER_FEEDBACK: "answers/clear_user_feedback";
129
129
  readonly MARK_AS_UNCERTAIN: "answers/mark_as_uncertain";
130
+ readonly NO_ARTICLES_FOUND: "answers/no_articles_found";
130
131
  readonly GET_ACTION_INPUTS: "answers/request_action_inputs";
131
132
  readonly INVOKE_ACTION: "answers/invoke_action";
132
133
  readonly ADD_ACTION_BUTTONS: "answers/add_action_buttons";
@@ -765,6 +766,13 @@ declare enum NextBestActionType {
765
766
  Function = "function"
766
767
  }
767
768
 
769
+ declare type NoArticlesFound = {
770
+ type: typeof AnswersActions.NO_ARTICLES_FOUND;
771
+ payload: {
772
+ index?: number;
773
+ };
774
+ };
775
+
768
776
  export declare enum Operator {
769
777
  IS = "is",
770
778
  IS_NOT = "is not",