@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.
- package/dist/confirm-dialog.d.ts +1 -1
- package/dist/esm/chunks/{ChatSearch.DsnO9IEM.js → ChatSearch.ComXrnDc.js} +5 -6
- package/dist/esm/chunks/{ChatSearch.DsnO9IEM.js.map → ChatSearch.ComXrnDc.js.map} +1 -1
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/components/confirm-dialog.js +2 -2
- package/dist/esm/components/confirm-dialog.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/confirm-dialog.d.ts
CHANGED
|
@@ -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.
|
|
6146
|
+
//# sourceMappingURL=ChatSearch.ComXrnDc.js.map
|