@brainfish-ai/components 0.16.3-rc.2 → 0.16.3

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.
@@ -27,7 +27,7 @@ declare interface Props {
27
27
  cancelText: string;
28
28
  submitText: string;
29
29
  loadingText?: string;
30
- zIndex: number;
30
+ zIndex?: number;
31
31
  }
32
32
 
33
33
  export { }
@@ -5795,11 +5795,6 @@ const ChatSearchComponent = forwardRef(
5795
5795
  }
5796
5796
  };
5797
5797
  const createNewThread = (firstQuery) => {
5798
- if (firstQuery) {
5799
- setQuery(firstQuery);
5800
- void performSearch({ searchQuery: firstQuery, event: { name: "New Thread Created with Query" } });
5801
- return;
5802
- }
5803
5798
  setQuery("");
5804
5799
  setFollowUpQuery("");
5805
5800
  setShowResults(false);
@@ -5811,6 +5806,10 @@ const ChatSearchComponent = forwardRef(
5811
5806
  if (primaryTextareaRef.current) {
5812
5807
  primaryTextareaRef.current.style.height = "auto";
5813
5808
  }
5809
+ if (firstQuery) {
5810
+ setQuery(firstQuery);
5811
+ void performSearch({ searchQuery: firstQuery, event: { name: "New Thread Created with Query" } });
5812
+ }
5814
5813
  };
5815
5814
  useImperativeHandle(ref, () => ({
5816
5815
  createNewThread,
@@ -6144,4 +6143,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
6144
6143
  ChatSearch.displayName = "ChatSearch";
6145
6144
 
6146
6145
  export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
6147
- //# sourceMappingURL=ChatSearch.DsnO9IEM.js.map
6146
+ //# sourceMappingURL=ChatSearch.ComXrnDc.js.map