@brainfish-ai/components 0.28.5 → 0.28.7

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.
@@ -89,8 +89,8 @@ return e.createElement(d.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},t
89
89
  /* @__PURE__ */e.createElement(Gr,{ref:ct,query:ce,onQueryChange:e=>{var t;le(e),st.current&&((t=st.current).style.height="auto",t.style.height=`${t.scrollHeight}px`)},onSearch:()=>{(async(e=ce.trim())=>{await Dt({searchQuery:e,event:{name:"Primary Field Search Submitted"}})})()},textConfig:ze,collections:a,currentCollectionId:Ze,onCollectionChange:e=>{Xe(e),c?.(e)},allowedRegions:V,currentRegion:Ye,onRegionChange:e=>{et(e),p?.(e),R?.("Region Changed",{region:e,conversationId:Te})},apiKey:h,fetchRegionConfig:f,enableFileAttachment:Fe,attachedFiles:Ke,isUploading:Be,onAddFiles:He,onRemoveFile:Ge,isSearching:me,autocompleteSuggestions:mt,onAutocompleteSuggestionSelect:e=>{Dt({searchQuery:e.question,event:{name:"Autocomplete Suggestion Clicked"}})},isAgentAssist:B,includePageEnabled:Nt,includePageLoading:Ct,includePageDisabled:It,onIncludePageToggle:St}))),
90
90
  /* @__PURE__ */e.createElement(Ae,{suggestions:n,onQuestionClick:e=>{if(e.conversationId)return R?.("Recent Conversation Clicked",{conversationId:Te,question:e.question}),void pt(e.conversationId);Dt({searchQuery:e.question,event:{name:"Suggested Question Clicked"}})},title:ze.suggestionsTitle}),O&&z&&z.length>0&&/* @__PURE__ */e.createElement("div",{className:"mt-4 mb-4 px-3 @3xl:px-0"},/* @__PURE__ */e.createElement("div",{className:"space-y-3"},/* @__PURE__ */e.createElement(zr,{nextBestActions:z||[],onActionClick:e=>Vt({action:e,searchQueryId:"",query:"",answer:""})})))))),fe&&oe.length>1&&/* @__PURE__ */e.createElement("div",{className:"hidden lg:block"},/* @__PURE__ */e.createElement(Br,{questions:oe.map(e=>e.question),activeIndex:Ie,onNavigate:e=>{Se(e),_t(e)},offset:C})),N&&O&&!(fe&&tt)&&/* @__PURE__ */e.createElement("div",{"data-name":"disclaimer",className:Z("mt-2 px-3 @3xl:px-0 text-xs text-dark-500 flex items-center gap-1 justify-center text-center w-full md:static md:mt-4 md:text-left md:flex md:gap-4 leading-5",K?"static mb-2 md:text-left [&>svg]:flex-shrink-0":"absolute bottom-12")},
91
91
  /* @__PURE__ */e.createElement(ae,{iconName:"Info",className:"size-4"}),
92
- /* @__PURE__ */e.createElement(F,{className:"[&_a]:underline [&_a:hover]:no-underline",remarkPlugins:dn,rehypePlugins:un,components:mn},N)),null!=G&&!ht&&/* @__PURE__ */e.createElement("div",{className:"-mt-6 w-full max-w-[100vw] px-3 pb-0 pt-0 text-foreground md:px-0"},G),
92
+ /* @__PURE__ */e.createElement(F,{className:"[&_a]:underline [&_a:hover]:no-underline",remarkPlugins:dn,rehypePlugins:un,components:mn},N)),null!=G&&fe&&!ht&&/* @__PURE__ */e.createElement("div",{className:"-mt-6 w-full max-w-[100vw] px-3 pb-0 pt-0 text-foreground md:px-0"},G),
93
93
  /* @__PURE__ */e.createElement("div",{ref:dt})),fe&&tt&&!wt&&!W&&!ht&&(()=>{const t=oe.some(e=>"awaiting-knowledge-group"===e.state);/* @__PURE__ */
94
94
  return e.createElement(Jr,{ref:lt,initialQuery:de,onQueryChange:ue,isSearching:me,handleFollowUpSearch:Ut,textConfig:ze,enableFileAttachment:Fe,attachedFiles:Ke,isUploading:Be,onAddFiles:He,onRemoveFile:Ge,disabled:t})})(),fe&&wt&&!W&&!ht&&/* @__PURE__ */e.createElement(cn,{onStartNewConversation:()=>Lt()}),!ht&&W)});pn.displayName="ChatSearch";const hn=c(({featureFlags:t,...r},n)=>/* @__PURE__ */e.createElement(fe,{flags:t},/* @__PURE__ */e.createElement(xr,{searchPath:r.searchPath,contentTypeEndpoint:r.contentTypeEndpoint,widgetKey:r.apiKey},
95
95
  /* @__PURE__ */e.createElement(pn,{...r,ref:n}))));hn.displayName="ChatSearch";export{hn as C,cn as R,xr as a,Fr as b,_r as u};
96
- //# sourceMappingURL=ChatSearch.BAv9fTWD.js.map
96
+ //# sourceMappingURL=ChatSearch.Cs9XKATE.js.map