@brainfish-ai/components 0.16.6-rc.1 → 0.16.6-rc.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/esm/chunks/{ChatSearch.BY5r8L69.js → ChatSearch.DspAMJX7.js} +29 -5
- package/dist/esm/chunks/ChatSearch.DspAMJX7.js.map +1 -0
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/esm/chunks/ChatSearch.BY5r8L69.js.map +0 -1
|
@@ -24,6 +24,8 @@ import { G as GeneratingStar } from './generating-star.B0RUXRff.js';
|
|
|
24
24
|
import { getCountry } from 'countries-and-timezones';
|
|
25
25
|
import { C as Combobox } from './combobox.BRm6ZDEB.js';
|
|
26
26
|
import { T as TwoLevelCombobox } from './two-level-combobox.DFonmrmc.js';
|
|
27
|
+
import rehypeRaw from 'rehype-raw';
|
|
28
|
+
import remarkGfm from 'remark-gfm';
|
|
27
29
|
import { ScrollArea } from '../components/ui/scroll-area.js';
|
|
28
30
|
|
|
29
31
|
import '../ChatSearch.css';function Suggestions({ suggestions, onQuestionClick, title = "Suggested questions" }) {
|
|
@@ -5626,7 +5628,8 @@ const ChatSearchComponent = forwardRef(
|
|
|
5626
5628
|
body: {
|
|
5627
5629
|
type: "generate-for-query",
|
|
5628
5630
|
conversationId,
|
|
5629
|
-
searchQueryId
|
|
5631
|
+
searchQueryId,
|
|
5632
|
+
profileId: userData?.userId
|
|
5630
5633
|
}
|
|
5631
5634
|
});
|
|
5632
5635
|
const reader = response.body?.getReader();
|
|
@@ -5675,7 +5678,8 @@ const ChatSearchComponent = forwardRef(
|
|
|
5675
5678
|
searchQueryId,
|
|
5676
5679
|
searchIntentId,
|
|
5677
5680
|
actionId,
|
|
5678
|
-
parameters
|
|
5681
|
+
parameters,
|
|
5682
|
+
profileId: userData?.userId
|
|
5679
5683
|
}
|
|
5680
5684
|
});
|
|
5681
5685
|
const reader = response.body?.getReader();
|
|
@@ -5710,7 +5714,8 @@ const ChatSearchComponent = forwardRef(
|
|
|
5710
5714
|
searchQueryId,
|
|
5711
5715
|
searchIntentId,
|
|
5712
5716
|
actionId,
|
|
5713
|
-
results
|
|
5717
|
+
results,
|
|
5718
|
+
profileId: userData?.userId
|
|
5714
5719
|
}
|
|
5715
5720
|
});
|
|
5716
5721
|
const reader = response.body?.getReader();
|
|
@@ -6135,7 +6140,26 @@ const ChatSearchComponent = forwardRef(
|
|
|
6135
6140
|
},
|
|
6136
6141
|
offset
|
|
6137
6142
|
}
|
|
6138
|
-
)), disclaimer && isWidgetMode && !(showResults && showFollowUp) && /* @__PURE__ */ React__default.createElement(
|
|
6143
|
+
)), disclaimer && isWidgetMode && !(showResults && showFollowUp) && /* @__PURE__ */ React__default.createElement(
|
|
6144
|
+
"div",
|
|
6145
|
+
{
|
|
6146
|
+
"data-name": "disclaimer",
|
|
6147
|
+
className: "mt-2 px-3 @3xl:px-0 text-xs text-dark-500 dark:text-dark-400 flex items-center gap-1 absolute bottom-12 justify-center text-center w-full md:static md:mt-4 md:text-left md:flex md:gap-4 leading-5"
|
|
6148
|
+
},
|
|
6149
|
+
/* @__PURE__ */ React__default.createElement(MemoizedIcon, { iconName: "Info", className: "size-4" }),
|
|
6150
|
+
/* @__PURE__ */ React__default.createElement(
|
|
6151
|
+
MemoizedReactMarkdown,
|
|
6152
|
+
{
|
|
6153
|
+
className: "[&_a]:underline [&_a:hover]:no-underline",
|
|
6154
|
+
remarkPlugins: [remarkGfm],
|
|
6155
|
+
rehypePlugins: [rehypeRaw],
|
|
6156
|
+
components: {
|
|
6157
|
+
p: ({ children }) => /* @__PURE__ */ React__default.createElement("span", null, children)
|
|
6158
|
+
}
|
|
6159
|
+
},
|
|
6160
|
+
disclaimer
|
|
6161
|
+
)
|
|
6162
|
+
), /* @__PURE__ */ React__default.createElement("div", { ref: bottomRef })),
|
|
6139
6163
|
showResults && showFollowUp && /* @__PURE__ */ React__default.createElement(
|
|
6140
6164
|
FollowUpSearchBar,
|
|
6141
6165
|
{
|
|
@@ -6156,4 +6180,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
6156
6180
|
ChatSearch.displayName = "ChatSearch";
|
|
6157
6181
|
|
|
6158
6182
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
6159
|
-
//# sourceMappingURL=ChatSearch.
|
|
6183
|
+
//# sourceMappingURL=ChatSearch.DspAMJX7.js.map
|