@brainfish-ai/components 0.14.2 → 0.14.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.BVivOuWt.js → ChatSearch.B-0s3a8W.js} +5 -3
- package/dist/esm/chunks/ChatSearch.B-0s3a8W.js.map +1 -0
- package/dist/esm/components/chat-search.js +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.BVivOuWt.js.map +0 -1
|
@@ -4254,7 +4254,8 @@ async function searchApi({
|
|
|
4254
4254
|
secretAttributes,
|
|
4255
4255
|
allowedRegions
|
|
4256
4256
|
}) {
|
|
4257
|
-
const isAgentAssist = !!headers?.["
|
|
4257
|
+
const isAgentAssist = !!headers?.["X-Brainfish-Agent-Assist"] && headers?.["X-Brainfish-Agent-Assist"] !== "false";
|
|
4258
|
+
const userId = String(attributes?.userId || attributes?.user_id || attributes?.id || "").trim() || void 0;
|
|
4258
4259
|
const payload = await makeRequest(endpoint, {
|
|
4259
4260
|
method: "POST",
|
|
4260
4261
|
headers,
|
|
@@ -4267,7 +4268,8 @@ async function searchApi({
|
|
|
4267
4268
|
...attributes && { attributes },
|
|
4268
4269
|
...secretAttributes && { secretAttributes },
|
|
4269
4270
|
...allowedRegions && { allowedRegions },
|
|
4270
|
-
...isAgentAssist && { source: "agent_assist" }
|
|
4271
|
+
...isAgentAssist && { source: "agent_assist" },
|
|
4272
|
+
...userId && { userId }
|
|
4271
4273
|
}
|
|
4272
4274
|
});
|
|
4273
4275
|
return {
|
|
@@ -6131,4 +6133,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
6131
6133
|
ChatSearch.displayName = "ChatSearch";
|
|
6132
6134
|
|
|
6133
6135
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
6134
|
-
//# sourceMappingURL=ChatSearch.
|
|
6136
|
+
//# sourceMappingURL=ChatSearch.B-0s3a8W.js.map
|