@inkeep/cxkit-primitives 0.5.70 → 0.5.71
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/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +197 -189
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/dist/utils/component-ids.cjs +1 -1
- package/dist/utils/component-ids.js +2 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),p=require("../atoms/cmdk/index.cjs"),r=require("./factory.cjs"),h=require("../utils/misc.cjs"),l=require("react"),m=require("./embedded-search/search-provider.cjs"),ye=require("./tagline-logo-icon.cjs"),E=require("../atoms/icons/custom-icon.cjs"),Ce=require("@radix-ui/react-scroll-area"),Oe=require("@radix-ui/react-tabs"),R=require("../providers/config-provider.cjs"),je=require("../providers/search-events-provider.cjs"),y=require("../atoms/link.cjs"),S=require("../providers/source-item-provider.cjs"),C=require("../atoms/icons/built-in-icon-renderer.cjs"),qe=require("../utils/highlight-emphasis.cjs"),Be=require("../hooks/use-scrolling-fades.cjs"),Me=require("@inkeep/cxkit-color-mode"),Ne=require("../atoms/avatars/ai.cjs"),He=require("./modal/modal-provider.cjs"),A=require("../utils/compose-refs.cjs"),f=require("../utils/compose-event-handlers.cjs"),Ue=require("../atoms/shadow/context.cjs"),Fe=require("../atoms/markdown/index.cjs"),O=require("../hooks/use-media-query.cjs"),Ge=require("./embedded-search/use-search-filter.cjs"),De=require("./embedded-search/url-query.cjs"),k=require("../constants/search.cjs"),Ke=require("./modal/widget-auto-focus.cjs");function M(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const w=M(Ce),L=M(Oe),Ve=r.ikp("div",{_id:"aiSearchWrapper"}),N=e=>{const{searchSettings:{view:t}}=R.useInkeepConfig(),{isHidden:i,hasContent:s}=m.useSearch(),n=O.useMediaQuery("(max-width: 768px)"),c=He.useModal();return a.jsx(Ve,{"data-hidden":h.dataAttr(i),"data-has-content":h.dataAttr(s),"data-in-modal":h.dataAttr(!!c),"data-mobile":h.dataAttr(n),"data-view":t,"data-dual-pane-search-expanded":h.dataAttr(s&&t==="dual-pane"&&!i),...e})},Qe=r.ikp("div",{_id:"aiSearchRoot"}),H=e=>{const{isHidden:t}=m.useSearch(),i=O.useMediaQuery("(max-width: 768px)");return a.jsx(Qe,{"data-hidden":h.dataAttr(t),"data-mobile":h.dataAttr(i),...e})},U=r.ikp(p.Command.List,{_id:"aiSearchContent"}),F=l.forwardRef((e,t)=>{const i=p.useCommandState(s=>s.value);return a.jsx(U,{"aria-activedescendant":`aiSearchResults__Item-${i}`,...e,ref:t})}),G=r.ikp("div",{_id:"aiSearchInputGroup"}),D=r.ikp(E.CustomIcon,{_id:"aiSearchInputIcon",iconKey:"search"}),We=r.ikp(p.Command.Input,{_id:"aiSearchInput"}),K=l.forwardRef(({onInput:e,...t},i)=>{const{inputRef:s,shouldAutoFocusInput:n}=m.useSearch(),c=p.useCommandState(v=>v.value),o=O.useMediaQuery("(max-width: 768px)"),{searchSettings:d}=R.useInkeepConfig(),u=l.useMemo(()=>d.placeholder||(o?"Search...":"Search for anything..."),[d.placeholder,o]),b=A.useComposedRefs(i,s);return Ke.useWidgetAutoFocus("search",s,n),Ge.useSearchFetch(),a.jsx(We,{ref:b,placeholder:u,"aria-activedescendant":`aiSearchResults__Item-${c}`,...t})}),$e=r.ikp(C.BuiltInIconRenderer,{_id:"aiSearchLoading",iconSettings:{builtIn:"LuLoaderCircle"}}),V=e=>{const{loading:t,resultsList:i}=m.useSearch();return!t||i.length===0?null:a.jsx($e,{...e})},ze=r.ikp(p.Command.Item,{_id:"aiAskAITrigger",value:k.ASK_AI_TRIGGER_VALUE}),Q=e=>{const{results:t,tab:i}=m.useSearch(),s=p.useCommandStore(),n=t[i]?.[0]?.id??"NONE";return a.jsx(ze,{...e,id:`aiSearchResults__Item-${k.ASK_AI_TRIGGER_VALUE}`,tabIndex:0,onPointerLeave:()=>s.setState("value",n,!0)})},Je=r.ikp("img",{_id:"aiAskAITrigger__Icon"}),W=e=>{const{aiChatSettings:t}=R.useInkeepConfig(),{aiAssistantAvatar:i}=t??{},s=typeof i=="string"?i:i?.light,n=(typeof i=="string"?i:i?.dark)??s,c=Me.useColorModeValue(s,n),[o,d]=l.useState(c);l.useEffect(()=>{d(c)},[c]);const u=()=>{d(null)};return a.jsx(Je,{asChild:!0,...e,children:o?a.jsx("img",{src:o,alt:"AI Avatar","data-type":"image",onError:f.composeEventHandlers(u),...e}):a.jsx(Ne.default,{"data-type":"icon",...e})})},$=r.ikp("span",{_id:"aiAskAITrigger__Label"}),z=r.ikp(E.CustomIcon,{_id:"aiAskAITrigger__Indicator",iconKey:"openLinkInSameTab"}),Xe=r.ikp(L.Root,{_id:"aiSearchResults"}),J=e=>{const{searchSettings:{view:t}}=R.useInkeepConfig(),{tab:i,setTab:s,hasContent:n,isHidden:c,disableTransition:o,results:d,defaultTab:u}=m.useSearch(),b=p.useCommandStore(),v=l.useCallback(I=>{o(),s(I);const P=d[I][0]?d[I][0]?.id:void 0;b.setState("value",P,!0)},[d,o]);return l.useEffect(()=>{let I=i in d?i:Object.keys(d)[0];if(!d[I]?.length){const _=Object.keys(d).find(T=>d[T]?.length);_?I=_:I=u}if(!I)return;s(I);const P=d[I]?.[0];P&&b.setState("value",P.id,!0)},[d]),a.jsx(Xe,{value:i,onValueChange:v,"data-has-content":h.dataAttr(n),"data-dual-pane-search-expanded":h.dataAttr(n&&t==="dual-pane"&&!c),...e})},Ye=r.ikp("div",{_id:"aiSearchResults__Loading"}),X=e=>{const{loading:t,resultsList:i}=m.useSearch();return!t||i.length>0?null:a.jsx(Ye,{...e})},Ze=r.ikp(p.Command.Empty,{_id:"aiSearchResults__Empty"}),Y=e=>{const t=p.useCommandState(o=>o.search),{loading:i,results:s,tab:n}=m.useSearch(),c=s[n]?.length;return i||!t||c?null:a.jsx(Ze,{children:"No results found.",...e})},et=r.ikp(L.List,{_id:"aiSearchResults__TabList"}),Z=e=>{const{children:t,...i}=e,{searchSettings:{tabs:s}}=R.useInkeepConfig(),{results:n,loading:c,resultsList:o}=m.useSearch();if(c&&o.length===0)return null;const d=Object.keys(n);return!s.length||!d.length?null:a.jsx(et,{tabIndex:-1,children:h.maybeRender(t,d),...i})},tt=r.ikp(L.Trigger,{_id:"aiSearchResults__Tab"}),ee=l.forwardRef((e,t)=>{const i=l.useRef(null),s=A.useComposedRefs(t,i),{tab:n,onClick:c,...o}=e,{results:d,tab:u,inputRef:b}=m.useSearch(),v=d[n].length,I=n===u,P=()=>{b.current?.focus()},_=Ue.useShadow();return l.useEffect(()=>{I&&_?.shadowHost?.shadowRoot?.activeElement?.hasAttribute("ikp-tab")&&i.current?.focus()},[I]),a.jsx(tt,{ref:s,"ikp-tab":"",tabIndex:I?0:-1,value:n,children:`${n} (${v})`,onClick:f.composeEventHandlers(c,P),...o})}),te=r.ikp("div",{_id:"aiSearchResults__Content"}),it=r.ikp(w.Root,{_id:"aiSearchResults__ScrollArea"}),ie=e=>{const{loading:t,resultsList:i}=m.useSearch();return t&&i.length===0?null:a.jsx(it,{tabIndex:-1,...e})},rt=r.ikp(w.Viewport,{_id:"aiSearchResults__ScrollAreaViewport"}),re=l.forwardRef(({children:e,...t},i)=>{const s=Be.useScrollingFades(),n=A.useComposedRefs(i,s),{tab:c}=m.useSearch();return l.useEffect(()=>{c&&s.current?.scrollTo({top:0,behavior:"auto"})},[c]),a.jsx(rt,{ref:n,tabIndex:-1,children:a.jsx("div",{tabIndex:-1,style:{display:"grid"},children:e}),...t})}),st=r.ikp(w.ScrollAreaScrollbar,{_id:"aiSearchResults__ScrollAreaScrollbar"}),nt=r.ikp(w.ScrollAreaThumb,{_id:"aiSearchResults__ScrollAreaThumb"}),at=r.ikp(w.Corner,{_id:"aiSearchResults__ScrollAreaCorner"}),ct=r.ikp(L.Content,{_id:"aiSearchResults__List"}),se=e=>{const{children:t,...i}=e,{results:s,tab:n}=m.useSearch(),c=s[n]??[];return a.jsx(ct,{value:n,"data-has-results":h.dataAttr(c.length>0),"aria-label":"Search results",children:h.maybeRender(t,c),tabIndex:-1,...i})},dt=r.ikp(p.Command.Item,{_id:"aiSearchResults__Item",asChild:!0}),ne=l.forwardRef(({item:e,onClick:t,onSelect:i,children:s,...n},c)=>{const{searchSettings:{shouldOpenLinksInNewTab:o,view:d,searchQueryParamKey:u}}=R.useInkeepConfig(),{logEvent:b}=je.useSearchEvents(),v=p.useCommandState(g=>g.search),{transitionsDisabled:I}=m.useSearch(),P=p.useCommandState(g=>g.value),_=l.useRef(null),T=A.useComposedRefs(c,_),q=l.useCallback(g=>{g.trigger==="keyboard"&&_.current?.click()},[]),fe=l.useCallback(()=>{b({eventName:"search_result_clicked",properties:{searchQuery:v,title:e.title,url:e.url}})},[b,v,e.title,e.url]),x=l.useMemo(()=>e.shouldOpenInNewTab!==void 0?e.shouldOpenInNewTab:o,[e.shouldOpenInNewTab,o]),B=P===e.id,Ae=P==="NONE"||P===k.ASK_AI_TRIGGER_VALUE,Le=B||Ae,xe=l.useMemo(()=>({href:u?De.getUrlWithQuery(e.url,v,u):e.url,isExternal:x,appendToUrl:e.appendToUrl,children:s,id:`aiSearchResults__Item-${e.id}`}),[e.url,x,e.appendToUrl,s,e.id,u,v]);return a.jsx(S.SourceItemProvider,{source:{...e,isExternal:x},children:a.jsx(dt,{ref:T,value:e.id,"data-type":e.type,"data-breadcrumbs":!!e.breadcrumbs?.length,"data-disable-transitions":h.dataAttr(I),"data-view":d,onSelect:f.composeEventHandlers(i,q),onClick:f.composeEventHandlers(t,fe),"data-selected":h.dataAttr(B),tabIndex:Le?0:-1,...n,children:a.jsx(y.LinkWithQueryParams,{...xe})})})}),ot=r.ikp("div",{_id:"aiSearchResults__ItemBreadcrumbs"}),j=e=>{const{source:t}=S.useSourceItem(),{tab:i}=m.useSearch();if(!t.breadcrumbs?.length)return null;const{children:s,...n}=e,o=t.tabs?.find(d=>typeof d!="string"&&d[0]===i)?.[1]?.breadcrumbs??t.breadcrumbs??[];return a.jsx(ot,{"aria-hidden":"true",children:h.maybeRender(s,o),...n})},ae=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemBreadcrumbIcon",iconKey:"breadcrumbSeparator"}),ut=r.ikp(C.BuiltInIconRenderer,{_id:"aiSearchResults__ItemIcon"}),ce=e=>{const{source:t}=S.useSourceItem();return a.jsx(ut,{iconSettings:t.icon,"data-type":t.type,...e})},lt=r.ikp("span",{_id:"aiSearchResults__ItemTitle"}),de=e=>{const{source:t}=S.useSourceItem();return a.jsx(lt,{"data-type":t.type,children:t.title,...e})},mt=r.ikp("span",{_id:"aiSearchResults__ItemTag"}),oe=e=>{const{source:t}=S.useSourceItem();return a.jsx(mt,{"data-type":t.type,children:t.tag,...e})},ht=r.ikp("span",{_id:"aiSearchResults__ItemDescription"}),ue=e=>{const{source:t}=S.useSourceItem(),{children:i,...s}=e,n=l.useMemo(()=>t.description?qe.highlightEmphasis(t.description):[],[t.description]);return n.length?a.jsx(ht,{"data-type":t.type,"aria-hidden":"true",children:h.maybeRender(i,n),...s}):null},It=r.ikp("span",{_id:"aiSearchResults__ItemDescriptionPart"}),le=e=>{const{part:t,...i}=e,{source:s}=S.useSourceItem();return typeof t=="string"?t:a.jsx(It,{"data-type":s.type,children:t.content,"data-highlighted":h.dataAttr(t.highlighted),...i})},vt=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemIndicator"}),me=e=>{const{source:t}=S.useSourceItem(),{searchSettings:{view:i}}=R.useInkeepConfig();return a.jsx(vt,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab","data-view":i,...e})},St=r.ikp("div",{_id:"aiSearchResults__ItemPreview","aria-hidden":!0}),he=e=>{const{searchSettings:{view:t,shouldOpenLinksInNewTab:i}}=R.useInkeepConfig(),{results:s,tab:n}=m.useSearch(),c=p.useCommandState(v=>v.value),o=s[n]??[],d=l.useRef(null),u=l.useMemo(()=>{if(c===k.ASK_AI_TRIGGER_VALUE)return d.current;const v=o.find(I=>I.id===c);return d.current=v??null,v},[c]);if(t!=="dual-pane"||c===k.ASK_AI_TRIGGER_VALUE||!u)return null;const b=u.shouldOpenInNewTab!==void 0?u.shouldOpenInNewTab:i;return a.jsx(S.SourceItemProvider,{source:{...u,isExternal:b},children:a.jsx(St,{...e})})},bt=r.ikp("div",{_id:"aiSearchResults__ItemPreview__Header"}),pt=r.ikp(y.LinkWithQueryParams,{_id:"aiSearchResults__ItemPreview__Heading"}),Ie=e=>{const{source:t}=S.useSourceItem();return a.jsx(pt,{href:t.url,isExternal:t.isExternal,appendToUrl:t.appendToUrl,"data-type":t.type,...e})},Pt=r.ikp("span",{_id:"aiSearchResults__ItemPreview__Title"}),ve=e=>{const{source:t}=S.useSourceItem();return a.jsx(Pt,{children:t.title,...e})},Rt=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemPreview__Title__LinkIcon",iconKey:"openLinkInNewTab"}),Se=e=>{const{source:t}=S.useSourceItem();return a.jsx(Rt,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab",...e})},_t=r.ikp(j,{_id:"aiSearchResults__ItemPreview__Breadcrumbs"}),be=r.ikp(ae,{_id:"aiSearchResults__ItemPreview__BreadcrumbIcon"}),gt=r.ikp(Fe.Markdown,{_id:"aiSearchResults__ItemPreview__Body"}),pe=e=>{const{source:t}=S.useSourceItem(),{resultsList:i}=m.useSearch(),s=i.find(c=>c.id===t.id),{searchSettings:{shouldOpenLinksInNewTab:n}}=R.useInkeepConfig();return s?a.jsx(gt,{shouldOpenLinksInNewTab:n,children:s.preview,...e}):null},Et=r.ikp("div",{_id:"aiSearchResults__ItemPreview__Outline"}),Pe=e=>{const{source:t}=S.useSourceItem(),{resultsList:i}=m.useSearch();return i.find(c=>c.id===t.id)?.rootRecord.topLevelHeadings?.length?a.jsx(Et,{...e}):null},Re=r.ikp("span",{_id:"aiSearchResults__ItemPreview__Outline__Title",children:"On this page"}),kt=r.ikp("ul",{_id:"aiSearchResults__ItemPreview__Outline__List"}),_e=e=>{const{source:t}=S.useSourceItem(),{resultsList:i}=m.useSearch(),s=i.find(u=>u.id===t.id),n=s?.rootRecord.topLevelHeadings;if(!n?.length)return null;const c=n.map(u=>{const b=u?.anchor&&u?.anchor===s?.content?.anchor,v=u?.anchor===s?.pathHeadings?.[0]?.anchor;return{...u,isMatch:b||v}}),{children:o,...d}=e;return a.jsx(kt,{children:h.maybeRender(o,c),...d})},wt=r.ikp(y.LinkWithQueryParams,{_id:"aiSearchResults__ItemPreview__Outline__Item"}),ge=e=>{const{searchSettings:{shouldOpenLinksInNewTab:t}}=R.useInkeepConfig();return a.jsx(wt,{isExternal:t,...e})},Ee=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemPreview__Outline__ItemIcon",iconKey:"newLine"}),Tt=r.ikp("span",{_id:"aiSearchResults__ItemPreview__Outline__ItemText"}),ke=e=>a.jsx(Tt,{...e}),we=r.ikp(C.BuiltInIconRenderer,{_id:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",iconSettings:{builtIn:"LuLink"}}),ft=r.ikp("div",{_id:"aiSearchFooter"}),Te=e=>{const{hasContent:t}=m.useSearch();return a.jsx(ft,{"data-has-results":h.dataAttr(t),...e})},At=r.ikp("div",{_id:"aiSearchTagline__Container"}),Lt=r.ikp("span",{_id:"aiSearchTagline__Text",children:"Powered by"}),xt=r.ikp(ye.default,{_id:"aiSearchTagline__Logo"}),yt=r.ikp("a",{_id:"aiSearchTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"});exports.Provider=m.SearchProvider;exports.AskAITrigger=Q;exports.AskAITriggerIcon=W;exports.AskAITriggerIndicator=z;exports.AskAITriggerLabel=$;exports.Content=F;exports.EmbeddedSearchInputIcon=D;exports.EmbeddedSearchPrimitiveAskAITrigger=Q;exports.EmbeddedSearchPrimitiveAskAITriggerIcon=W;exports.EmbeddedSearchPrimitiveAskAITriggerIndicator=z;exports.EmbeddedSearchPrimitiveAskAITriggerLabel=$;exports.EmbeddedSearchPrimitiveContent=F;exports.EmbeddedSearchPrimitiveFooter=Te;exports.EmbeddedSearchPrimitiveInput=K;exports.EmbeddedSearchPrimitiveInputGroup=G;exports.EmbeddedSearchPrimitiveLoading=V;exports.EmbeddedSearchPrimitiveResults=J;exports.EmbeddedSearchPrimitiveResultsContent=te;exports.EmbeddedSearchPrimitiveResultsEmpty=Y;exports.EmbeddedSearchPrimitiveResultsItem=ne;exports.EmbeddedSearchPrimitiveResultsItemBreadcrumbs=j;exports.EmbeddedSearchPrimitiveResultsItemDescription=ue;exports.EmbeddedSearchPrimitiveResultsItemDescriptionPart=le;exports.EmbeddedSearchPrimitiveResultsItemIcon=ce;exports.EmbeddedSearchPrimitiveResultsItemIndicator=me;exports.EmbeddedSearchPrimitiveResultsItemPreview=he;exports.EmbeddedSearchPrimitiveResultsItemPreviewBody=pe;exports.EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon=be;exports.EmbeddedSearchPrimitiveResultsItemPreviewHeading=Ie;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutline=Pe;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem=ge;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon=Ee;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon=we;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText=ke;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineList=_e;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle=Re;exports.EmbeddedSearchPrimitiveResultsItemPreviewTitle=ve;exports.EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon=Se;exports.EmbeddedSearchPrimitiveResultsItemTag=oe;exports.EmbeddedSearchPrimitiveResultsItemTitle=de;exports.EmbeddedSearchPrimitiveResultsList=se;exports.EmbeddedSearchPrimitiveResultsLoading=X;exports.EmbeddedSearchPrimitiveResultsScrollArea=ie;exports.EmbeddedSearchPrimitiveResultsScrollAreaViewport=re;exports.EmbeddedSearchPrimitiveResultsTab=ee;exports.EmbeddedSearchPrimitiveResultsTabList=Z;exports.EmbeddedSearchPrimitiveRoot=H;exports.EmbeddedSearchPrimitiveWrapper=N;exports.Footer=Te;exports.Input=K;exports.InputGroup=G;exports.InputIcon=D;exports.Loading=V;exports.PrimitiveContent=U;exports.Results=J;exports.ResultsContent=te;exports.ResultsEmpty=Y;exports.ResultsItem=ne;exports.ResultsItemBreadcrumbIcon=ae;exports.ResultsItemBreadcrumbs=j;exports.ResultsItemDescription=ue;exports.ResultsItemDescriptionPart=le;exports.ResultsItemIcon=ce;exports.ResultsItemIndicator=me;exports.ResultsItemPreview=he;exports.ResultsItemPreviewBody=pe;exports.ResultsItemPreviewBreadcrumbIcon=be;exports.ResultsItemPreviewBreadcrumbs=_t;exports.ResultsItemPreviewHeader=bt;exports.ResultsItemPreviewHeading=Ie;exports.ResultsItemPreviewOutline=Pe;exports.ResultsItemPreviewOutlineItem=ge;exports.ResultsItemPreviewOutlineItemIcon=Ee;exports.ResultsItemPreviewOutlineItemLinkIcon=we;exports.ResultsItemPreviewOutlineItemText=ke;exports.ResultsItemPreviewOutlineList=_e;exports.ResultsItemPreviewOutlineTitle=Re;exports.ResultsItemPreviewTitle=ve;exports.ResultsItemPreviewTitleLinkIcon=Se;exports.ResultsItemTag=oe;exports.ResultsItemTitle=de;exports.ResultsList=se;exports.ResultsLoading=X;exports.ResultsScrollArea=ie;exports.ResultsScrollAreaCorner=at;exports.ResultsScrollAreaScrollbar=st;exports.ResultsScrollAreaThumb=nt;exports.ResultsScrollAreaViewport=re;exports.ResultsTab=ee;exports.ResultsTabList=Z;exports.Root=H;exports.TaglineBrandName=yt;exports.TaglineContainer=At;exports.TaglineLogo=xt;exports.TaglineText=Lt;exports.Wrapper=N;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),p=require("../atoms/cmdk/index.cjs"),r=require("./factory.cjs"),h=require("../utils/misc.cjs"),l=require("react"),m=require("./embedded-search/search-provider.cjs"),Oe=require("./tagline-logo-icon.cjs"),E=require("../atoms/icons/custom-icon.cjs"),je=require("@radix-ui/react-scroll-area"),qe=require("@radix-ui/react-tabs"),R=require("../providers/config-provider.cjs"),Be=require("../providers/search-events-provider.cjs"),y=require("../atoms/link.cjs"),S=require("../providers/source-item-provider.cjs"),C=require("../atoms/icons/built-in-icon-renderer.cjs"),Me=require("../utils/highlight-emphasis.cjs"),Ne=require("../hooks/use-scrolling-fades.cjs"),He=require("@inkeep/cxkit-color-mode"),Ue=require("../atoms/avatars/ai.cjs"),Qe=require("./modal/modal-provider.cjs"),f=require("../utils/compose-refs.cjs"),A=require("../utils/compose-event-handlers.cjs"),Fe=require("../atoms/shadow/context.cjs"),Ge=require("../atoms/markdown/index.cjs"),O=require("../hooks/use-media-query.cjs"),De=require("./embedded-search/use-search-filter.cjs"),Ke=require("./embedded-search/url-query.cjs"),k=require("../constants/search.cjs"),Ve=require("./modal/widget-auto-focus.cjs");function M(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const T=M(je),L=M(qe),We=r.ikp("div",{_id:"aiSearchWrapper"}),N=e=>{const{searchSettings:{view:t}}=R.useInkeepConfig(),{isHidden:i,hasContent:s}=m.useSearch(),n=O.useMediaQuery("(max-width: 768px)"),c=Qe.useModal();return a.jsx(We,{"data-hidden":h.dataAttr(i),"data-has-content":h.dataAttr(s),"data-in-modal":h.dataAttr(!!c),"data-mobile":h.dataAttr(n),"data-view":t,"data-dual-pane-search-expanded":h.dataAttr(s&&t==="dual-pane"&&!i),...e})},$e=r.ikp("div",{_id:"aiSearchRoot"}),H=e=>{const{isHidden:t}=m.useSearch(),i=O.useMediaQuery("(max-width: 768px)");return a.jsx($e,{"data-hidden":h.dataAttr(t),"data-mobile":h.dataAttr(i),...e})},U=r.ikp(p.Command.List,{_id:"aiSearchContent"}),Q=l.forwardRef((e,t)=>{const i=p.useCommandState(s=>s.value);return a.jsx(U,{"aria-activedescendant":`aiSearchResults__Item-${i}`,...e,ref:t})}),F=r.ikp("div",{_id:"aiSearchInputGroup"}),G=r.ikp(E.CustomIcon,{_id:"aiSearchInputIcon",iconKey:"search"}),ze=r.ikp(p.Command.Input,{_id:"aiSearchInput"}),D=l.forwardRef(({onInput:e,...t},i)=>{const{inputRef:s,shouldAutoFocusInput:n}=m.useSearch(),c=p.useCommandState(v=>v.value),o=O.useMediaQuery("(max-width: 768px)"),{searchSettings:d}=R.useInkeepConfig(),u=l.useMemo(()=>d.placeholder||(o?"Search...":"Search for anything..."),[d.placeholder,o]),b=f.useComposedRefs(i,s);return Ve.useWidgetAutoFocus("search",s,n),De.useSearchFetch(),a.jsx(ze,{ref:b,placeholder:u,"aria-activedescendant":`aiSearchResults__Item-${c}`,...t})}),Je=r.ikp(C.BuiltInIconRenderer,{_id:"aiSearchLoading",iconSettings:{builtIn:"LuLoaderCircle"}}),K=e=>{const{loading:t,resultsList:i}=m.useSearch();return!t||i.length===0?null:a.jsx(Je,{...e})},Xe=r.ikp(p.Command.Item,{_id:"aiAskAITrigger",value:k.ASK_AI_TRIGGER_VALUE}),V=e=>{const{results:t,tab:i}=m.useSearch(),s=p.useCommandStore(),n=t[i]?.[0]?.id??"NONE";return a.jsx(Xe,{...e,id:`aiSearchResults__Item-${k.ASK_AI_TRIGGER_VALUE}`,tabIndex:0,onPointerLeave:()=>s.setState("value",n,!0)})},Ye=r.ikp("img",{_id:"aiAskAITrigger__Icon"}),W=e=>{const{aiChatSettings:t}=R.useInkeepConfig(),{aiAssistantAvatar:i}=t??{},s=typeof i=="string"?i:i?.light,n=(typeof i=="string"?i:i?.dark)??s,c=He.useColorModeValue(s,n),[o,d]=l.useState(c);l.useEffect(()=>{d(c)},[c]);const u=()=>{d(null)};return a.jsx(Ye,{asChild:!0,...e,children:o?a.jsx("img",{src:o,alt:"AI Avatar","data-type":"image",onError:A.composeEventHandlers(u),...e}):a.jsx(Ue.default,{"data-type":"icon",...e})})},$=r.ikp("span",{_id:"aiAskAITrigger__Label"}),z=r.ikp("span",{_id:"aiAskAITrigger__Query"}),J=r.ikp(E.CustomIcon,{_id:"aiAskAITrigger__Indicator",iconKey:"openLinkInSameTab"}),X=r.ikp("span",{_id:"aiAskAITrigger__IndicatorText"}),Ze=r.ikp(L.Root,{_id:"aiSearchResults"}),Y=e=>{const{searchSettings:{view:t}}=R.useInkeepConfig(),{tab:i,setTab:s,hasContent:n,isHidden:c,disableTransition:o,results:d,defaultTab:u}=m.useSearch(),b=p.useCommandStore(),v=l.useCallback(I=>{o(),s(I);const P=d[I][0]?d[I][0]?.id:void 0;b.setState("value",P,!0)},[d,o]);return l.useEffect(()=>{let I=i in d?i:Object.keys(d)[0];if(!d[I]?.length){const _=Object.keys(d).find(w=>d[w]?.length);_?I=_:I=u}if(!I)return;s(I);const P=d[I]?.[0];P&&b.setState("value",P.id,!0)},[d]),a.jsx(Ze,{value:i,onValueChange:v,"data-has-content":h.dataAttr(n),"data-dual-pane-search-expanded":h.dataAttr(n&&t==="dual-pane"&&!c),...e})},et=r.ikp("div",{_id:"aiSearchResults__Loading"}),Z=e=>{const{loading:t,resultsList:i}=m.useSearch();return!t||i.length>0?null:a.jsx(et,{...e})},tt=r.ikp(p.Command.Empty,{_id:"aiSearchResults__Empty"}),ee=e=>{const t=p.useCommandState(o=>o.search),{loading:i,results:s,tab:n}=m.useSearch(),c=s[n]?.length;return i||!t||c?null:a.jsx(tt,{children:"No results found.",...e})},it=r.ikp(L.List,{_id:"aiSearchResults__TabList"}),te=e=>{const{children:t,...i}=e,{searchSettings:{tabs:s}}=R.useInkeepConfig(),{results:n,loading:c,resultsList:o}=m.useSearch();if(c&&o.length===0)return null;const d=Object.keys(n);return!s.length||!d.length?null:a.jsx(it,{tabIndex:-1,children:h.maybeRender(t,d),...i})},rt=r.ikp(L.Trigger,{_id:"aiSearchResults__Tab"}),ie=l.forwardRef((e,t)=>{const i=l.useRef(null),s=f.useComposedRefs(t,i),{tab:n,onClick:c,...o}=e,{results:d,tab:u,inputRef:b}=m.useSearch(),v=d[n].length,I=n===u,P=()=>{b.current?.focus()},_=Fe.useShadow();return l.useEffect(()=>{I&&_?.shadowHost?.shadowRoot?.activeElement?.hasAttribute("ikp-tab")&&i.current?.focus()},[I]),a.jsx(rt,{ref:s,"ikp-tab":"",tabIndex:I?0:-1,value:n,children:`${n} (${v})`,onClick:A.composeEventHandlers(c,P),...o})}),re=r.ikp("div",{_id:"aiSearchResults__Content"}),st=r.ikp(T.Root,{_id:"aiSearchResults__ScrollArea"}),se=e=>{const{loading:t,resultsList:i}=m.useSearch();return t&&i.length===0?null:a.jsx(st,{tabIndex:-1,...e})},nt=r.ikp(T.Viewport,{_id:"aiSearchResults__ScrollAreaViewport"}),ne=l.forwardRef(({children:e,...t},i)=>{const s=Ne.useScrollingFades(),n=f.useComposedRefs(i,s),{tab:c}=m.useSearch();return l.useEffect(()=>{c&&s.current?.scrollTo({top:0,behavior:"auto"})},[c]),a.jsx(nt,{ref:n,tabIndex:-1,children:a.jsx("div",{tabIndex:-1,style:{display:"grid"},children:e}),...t})}),at=r.ikp(T.ScrollAreaScrollbar,{_id:"aiSearchResults__ScrollAreaScrollbar"}),ct=r.ikp(T.ScrollAreaThumb,{_id:"aiSearchResults__ScrollAreaThumb"}),dt=r.ikp(T.Corner,{_id:"aiSearchResults__ScrollAreaCorner"}),ot=r.ikp(L.Content,{_id:"aiSearchResults__List"}),ae=e=>{const{children:t,...i}=e,{results:s,tab:n}=m.useSearch(),c=s[n]??[];return a.jsx(ot,{value:n,"data-has-results":h.dataAttr(c.length>0),"aria-label":"Search results",children:h.maybeRender(t,c),tabIndex:-1,...i})},ut=r.ikp(p.Command.Item,{_id:"aiSearchResults__Item",asChild:!0}),ce=l.forwardRef(({item:e,onClick:t,onSelect:i,children:s,...n},c)=>{const{searchSettings:{shouldOpenLinksInNewTab:o,view:d,searchQueryParamKey:u}}=R.useInkeepConfig(),{logEvent:b}=Be.useSearchEvents(),v=p.useCommandState(g=>g.search),{transitionsDisabled:I}=m.useSearch(),P=p.useCommandState(g=>g.value),_=l.useRef(null),w=f.useComposedRefs(c,_),q=l.useCallback(g=>{g.trigger==="keyboard"&&_.current?.click()},[]),Le=l.useCallback(()=>{b({eventName:"search_result_clicked",properties:{searchQuery:v,title:e.title,url:e.url}})},[b,v,e.title,e.url]),x=l.useMemo(()=>e.shouldOpenInNewTab!==void 0?e.shouldOpenInNewTab:o,[e.shouldOpenInNewTab,o]),B=P===e.id,xe=P==="NONE"||P===k.ASK_AI_TRIGGER_VALUE,ye=B||xe,Ce=l.useMemo(()=>({href:u?Ke.getUrlWithQuery(e.url,v,u):e.url,isExternal:x,appendToUrl:e.appendToUrl,children:s,id:`aiSearchResults__Item-${e.id}`}),[e.url,x,e.appendToUrl,s,e.id,u,v]);return a.jsx(S.SourceItemProvider,{source:{...e,isExternal:x},children:a.jsx(ut,{ref:w,value:e.id,"data-type":e.type,"data-breadcrumbs":!!e.breadcrumbs?.length,"data-disable-transitions":h.dataAttr(I),"data-view":d,onSelect:A.composeEventHandlers(i,q),onClick:A.composeEventHandlers(t,Le),"data-selected":h.dataAttr(B),tabIndex:ye?0:-1,...n,children:a.jsx(y.LinkWithQueryParams,{...Ce})})})}),lt=r.ikp("div",{_id:"aiSearchResults__ItemBreadcrumbs"}),j=e=>{const{source:t}=S.useSourceItem(),{tab:i}=m.useSearch();if(!t.breadcrumbs?.length)return null;const{children:s,...n}=e,o=t.tabs?.find(d=>typeof d!="string"&&d[0]===i)?.[1]?.breadcrumbs??t.breadcrumbs??[];return a.jsx(lt,{"aria-hidden":"true",children:h.maybeRender(s,o),...n})},de=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemBreadcrumbIcon",iconKey:"breadcrumbSeparator"}),mt=r.ikp(C.BuiltInIconRenderer,{_id:"aiSearchResults__ItemIcon"}),oe=e=>{const{source:t}=S.useSourceItem();return a.jsx(mt,{iconSettings:t.icon,"data-type":t.type,...e})},ht=r.ikp("span",{_id:"aiSearchResults__ItemTitle"}),ue=e=>{const{source:t}=S.useSourceItem();return a.jsx(ht,{"data-type":t.type,children:t.title,...e})},It=r.ikp("span",{_id:"aiSearchResults__ItemTag"}),le=e=>{const{source:t}=S.useSourceItem();return a.jsx(It,{"data-type":t.type,children:t.tag,...e})},vt=r.ikp("span",{_id:"aiSearchResults__ItemDescription"}),me=e=>{const{source:t}=S.useSourceItem(),{children:i,...s}=e,n=l.useMemo(()=>t.description?Me.highlightEmphasis(t.description):[],[t.description]);return n.length?a.jsx(vt,{"data-type":t.type,"aria-hidden":"true",children:h.maybeRender(i,n),...s}):null},St=r.ikp("span",{_id:"aiSearchResults__ItemDescriptionPart"}),he=e=>{const{part:t,...i}=e,{source:s}=S.useSourceItem();return typeof t=="string"?t:a.jsx(St,{"data-type":s.type,children:t.content,"data-highlighted":h.dataAttr(t.highlighted),...i})},bt=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemIndicator"}),Ie=e=>{const{source:t}=S.useSourceItem(),{searchSettings:{view:i}}=R.useInkeepConfig();return a.jsx(bt,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab","data-view":i,...e})},pt=r.ikp("div",{_id:"aiSearchResults__ItemPreview","aria-hidden":!0}),ve=e=>{const{searchSettings:{view:t,shouldOpenLinksInNewTab:i}}=R.useInkeepConfig(),{results:s,tab:n}=m.useSearch(),c=p.useCommandState(v=>v.value),o=s[n]??[],d=l.useRef(null),u=l.useMemo(()=>{if(c===k.ASK_AI_TRIGGER_VALUE)return d.current;const v=o.find(I=>I.id===c);return d.current=v??null,v},[c]);if(t!=="dual-pane"||c===k.ASK_AI_TRIGGER_VALUE||!u)return null;const b=u.shouldOpenInNewTab!==void 0?u.shouldOpenInNewTab:i;return a.jsx(S.SourceItemProvider,{source:{...u,isExternal:b},children:a.jsx(pt,{...e})})},Pt=r.ikp("div",{_id:"aiSearchResults__ItemPreview__Header"}),Rt=r.ikp(y.LinkWithQueryParams,{_id:"aiSearchResults__ItemPreview__Heading"}),Se=e=>{const{source:t}=S.useSourceItem();return a.jsx(Rt,{href:t.url,isExternal:t.isExternal,appendToUrl:t.appendToUrl,"data-type":t.type,...e})},_t=r.ikp("span",{_id:"aiSearchResults__ItemPreview__Title"}),be=e=>{const{source:t}=S.useSourceItem();return a.jsx(_t,{children:t.title,...e})},gt=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemPreview__Title__LinkIcon",iconKey:"openLinkInNewTab"}),pe=e=>{const{source:t}=S.useSourceItem();return a.jsx(gt,{iconKey:t.isExternal?"openLinkInNewTab":"openLinkInSameTab",...e})},Et=r.ikp(j,{_id:"aiSearchResults__ItemPreview__Breadcrumbs"}),Pe=r.ikp(de,{_id:"aiSearchResults__ItemPreview__BreadcrumbIcon"}),kt=r.ikp(Ge.Markdown,{_id:"aiSearchResults__ItemPreview__Body"}),Re=e=>{const{source:t}=S.useSourceItem(),{resultsList:i}=m.useSearch(),s=i.find(c=>c.id===t.id),{searchSettings:{shouldOpenLinksInNewTab:n}}=R.useInkeepConfig();return s?a.jsx(kt,{shouldOpenLinksInNewTab:n,children:s.preview,...e}):null},Tt=r.ikp("div",{_id:"aiSearchResults__ItemPreview__Outline"}),_e=e=>{const{source:t}=S.useSourceItem(),{resultsList:i}=m.useSearch();return i.find(c=>c.id===t.id)?.rootRecord.topLevelHeadings?.length?a.jsx(Tt,{...e}):null},ge=r.ikp("span",{_id:"aiSearchResults__ItemPreview__Outline__Title",children:"On this page"}),wt=r.ikp("ul",{_id:"aiSearchResults__ItemPreview__Outline__List"}),Ee=e=>{const{source:t}=S.useSourceItem(),{resultsList:i}=m.useSearch(),s=i.find(u=>u.id===t.id),n=s?.rootRecord.topLevelHeadings;if(!n?.length)return null;const c=n.map(u=>{const b=u?.anchor&&u?.anchor===s?.content?.anchor,v=u?.anchor===s?.pathHeadings?.[0]?.anchor;return{...u,isMatch:b||v}}),{children:o,...d}=e;return a.jsx(wt,{children:h.maybeRender(o,c),...d})},At=r.ikp(y.LinkWithQueryParams,{_id:"aiSearchResults__ItemPreview__Outline__Item"}),ke=e=>{const{searchSettings:{shouldOpenLinksInNewTab:t}}=R.useInkeepConfig();return a.jsx(At,{isExternal:t,...e})},Te=r.ikp(E.CustomIcon,{_id:"aiSearchResults__ItemPreview__Outline__ItemIcon",iconKey:"newLine"}),ft=r.ikp("span",{_id:"aiSearchResults__ItemPreview__Outline__ItemText"}),we=e=>a.jsx(ft,{...e}),Ae=r.ikp(C.BuiltInIconRenderer,{_id:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",iconSettings:{builtIn:"LuLink"}}),Lt=r.ikp("div",{_id:"aiSearchFooter"}),fe=e=>{const{hasContent:t}=m.useSearch();return a.jsx(Lt,{"data-has-results":h.dataAttr(t),...e})},xt=r.ikp("div",{_id:"aiSearchTagline__Container"}),yt=r.ikp("span",{_id:"aiSearchTagline__Text",children:"Powered by"}),Ct=r.ikp(Oe.default,{_id:"aiSearchTagline__Logo"}),Ot=r.ikp("a",{_id:"aiSearchTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"});exports.Provider=m.SearchProvider;exports.AskAITrigger=V;exports.AskAITriggerIcon=W;exports.AskAITriggerIndicator=J;exports.AskAITriggerIndicatorText=X;exports.AskAITriggerLabel=$;exports.AskAITriggerQuery=z;exports.Content=Q;exports.EmbeddedSearchInputIcon=G;exports.EmbeddedSearchPrimitiveAskAITrigger=V;exports.EmbeddedSearchPrimitiveAskAITriggerIcon=W;exports.EmbeddedSearchPrimitiveAskAITriggerIndicator=J;exports.EmbeddedSearchPrimitiveAskAITriggerIndicatorText=X;exports.EmbeddedSearchPrimitiveAskAITriggerLabel=$;exports.EmbeddedSearchPrimitiveAskAITriggerQuery=z;exports.EmbeddedSearchPrimitiveContent=Q;exports.EmbeddedSearchPrimitiveFooter=fe;exports.EmbeddedSearchPrimitiveInput=D;exports.EmbeddedSearchPrimitiveInputGroup=F;exports.EmbeddedSearchPrimitiveLoading=K;exports.EmbeddedSearchPrimitiveResults=Y;exports.EmbeddedSearchPrimitiveResultsContent=re;exports.EmbeddedSearchPrimitiveResultsEmpty=ee;exports.EmbeddedSearchPrimitiveResultsItem=ce;exports.EmbeddedSearchPrimitiveResultsItemBreadcrumbs=j;exports.EmbeddedSearchPrimitiveResultsItemDescription=me;exports.EmbeddedSearchPrimitiveResultsItemDescriptionPart=he;exports.EmbeddedSearchPrimitiveResultsItemIcon=oe;exports.EmbeddedSearchPrimitiveResultsItemIndicator=Ie;exports.EmbeddedSearchPrimitiveResultsItemPreview=ve;exports.EmbeddedSearchPrimitiveResultsItemPreviewBody=Re;exports.EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon=Pe;exports.EmbeddedSearchPrimitiveResultsItemPreviewHeading=Se;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutline=_e;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem=ke;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon=Te;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon=Ae;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText=we;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineList=Ee;exports.EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle=ge;exports.EmbeddedSearchPrimitiveResultsItemPreviewTitle=be;exports.EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon=pe;exports.EmbeddedSearchPrimitiveResultsItemTag=le;exports.EmbeddedSearchPrimitiveResultsItemTitle=ue;exports.EmbeddedSearchPrimitiveResultsList=ae;exports.EmbeddedSearchPrimitiveResultsLoading=Z;exports.EmbeddedSearchPrimitiveResultsScrollArea=se;exports.EmbeddedSearchPrimitiveResultsScrollAreaViewport=ne;exports.EmbeddedSearchPrimitiveResultsTab=ie;exports.EmbeddedSearchPrimitiveResultsTabList=te;exports.EmbeddedSearchPrimitiveRoot=H;exports.EmbeddedSearchPrimitiveWrapper=N;exports.Footer=fe;exports.Input=D;exports.InputGroup=F;exports.InputIcon=G;exports.Loading=K;exports.PrimitiveContent=U;exports.Results=Y;exports.ResultsContent=re;exports.ResultsEmpty=ee;exports.ResultsItem=ce;exports.ResultsItemBreadcrumbIcon=de;exports.ResultsItemBreadcrumbs=j;exports.ResultsItemDescription=me;exports.ResultsItemDescriptionPart=he;exports.ResultsItemIcon=oe;exports.ResultsItemIndicator=Ie;exports.ResultsItemPreview=ve;exports.ResultsItemPreviewBody=Re;exports.ResultsItemPreviewBreadcrumbIcon=Pe;exports.ResultsItemPreviewBreadcrumbs=Et;exports.ResultsItemPreviewHeader=Pt;exports.ResultsItemPreviewHeading=Se;exports.ResultsItemPreviewOutline=_e;exports.ResultsItemPreviewOutlineItem=ke;exports.ResultsItemPreviewOutlineItemIcon=Te;exports.ResultsItemPreviewOutlineItemLinkIcon=Ae;exports.ResultsItemPreviewOutlineItemText=we;exports.ResultsItemPreviewOutlineList=Ee;exports.ResultsItemPreviewOutlineTitle=ge;exports.ResultsItemPreviewTitle=be;exports.ResultsItemPreviewTitleLinkIcon=pe;exports.ResultsItemTag=le;exports.ResultsItemTitle=ue;exports.ResultsList=ae;exports.ResultsLoading=Z;exports.ResultsScrollArea=se;exports.ResultsScrollAreaCorner=dt;exports.ResultsScrollAreaScrollbar=at;exports.ResultsScrollAreaThumb=ct;exports.ResultsScrollAreaViewport=ne;exports.ResultsTab=ie;exports.ResultsTabList=te;exports.Root=H;exports.TaglineBrandName=Ot;exports.TaglineContainer=xt;exports.TaglineLogo=Ct;exports.TaglineText=yt;exports.Wrapper=N;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { Command as f, useCommandState as P, useCommandStore as
|
|
3
|
+
import { Command as f, useCommandState as P, useCommandStore as Q } from "../atoms/cmdk/index.js";
|
|
4
4
|
import { ikp as r } from "./factory.js";
|
|
5
5
|
import { dataAttr as I, maybeRender as E } from "../utils/misc.js";
|
|
6
|
-
import { forwardRef as
|
|
6
|
+
import { forwardRef as A, useMemo as T, useState as j, useEffect as O, useCallback as N, useRef as H } from "react";
|
|
7
7
|
import { useSearch as u } from "./embedded-search/search-provider.js";
|
|
8
|
-
import { SearchProvider as
|
|
8
|
+
import { SearchProvider as vi } from "./embedded-search/search-provider.js";
|
|
9
9
|
import q from "./tagline-logo-icon.js";
|
|
10
10
|
import { CustomIcon as g } from "../atoms/icons/custom-icon.js";
|
|
11
|
-
import * as
|
|
11
|
+
import * as L from "@radix-ui/react-scroll-area";
|
|
12
12
|
import * as C from "@radix-ui/react-tabs";
|
|
13
13
|
import { useInkeepConfig as p } from "../providers/config-provider.js";
|
|
14
14
|
import { useSearchEvents as z } from "../providers/search-events-provider.js";
|
|
15
15
|
import { LinkWithQueryParams as M } from "../atoms/link.js";
|
|
16
|
-
import { SourceItemProvider as
|
|
16
|
+
import { SourceItemProvider as V, useSourceItem as _ } from "../providers/source-item-provider.js";
|
|
17
17
|
import { BuiltInIconRenderer as U } from "../atoms/icons/built-in-icon-renderer.js";
|
|
18
18
|
import { highlightEmphasis as J } from "../utils/highlight-emphasis.js";
|
|
19
19
|
import { useScrollingFades as X } from "../hooks/use-scrolling-fades.js";
|
|
@@ -27,7 +27,7 @@ import { Markdown as ie } from "../atoms/markdown/index.js";
|
|
|
27
27
|
import { useMediaQuery as F } from "../hooks/use-media-query.js";
|
|
28
28
|
import { useSearchFetch as re } from "./embedded-search/use-search-filter.js";
|
|
29
29
|
import { getUrlWithQuery as se } from "./embedded-search/url-query.js";
|
|
30
|
-
import { ASK_AI_TRIGGER_VALUE as
|
|
30
|
+
import { ASK_AI_TRIGGER_VALUE as w } from "../constants/search.js";
|
|
31
31
|
import { useWidgetAutoFocus as ne } from "./modal/widget-auto-focus.js";
|
|
32
32
|
const ae = r("div", {
|
|
33
33
|
_id: "aiSearchWrapper"
|
|
@@ -54,7 +54,7 @@ const ae = r("div", {
|
|
|
54
54
|
return /* @__PURE__ */ a(oe, { "data-hidden": I(t), "data-mobile": I(i), ...e });
|
|
55
55
|
}, ce = r(f.List, {
|
|
56
56
|
_id: "aiSearchContent"
|
|
57
|
-
}), St =
|
|
57
|
+
}), St = A((e, t) => {
|
|
58
58
|
const i = P((s) => s.value);
|
|
59
59
|
return /* @__PURE__ */ a(
|
|
60
60
|
ce,
|
|
@@ -69,56 +69,56 @@ const ae = r("div", {
|
|
|
69
69
|
}), bt = r(g, {
|
|
70
70
|
_id: "aiSearchInputIcon",
|
|
71
71
|
iconKey: "search"
|
|
72
|
-
}),
|
|
72
|
+
}), de = r(f.Input, {
|
|
73
73
|
_id: "aiSearchInput"
|
|
74
|
-
}), Rt =
|
|
75
|
-
const { inputRef: s, shouldAutoFocusInput: n } = u(), o = P((h) => h.value),
|
|
76
|
-
() => c.placeholder || (
|
|
77
|
-
[c.placeholder,
|
|
74
|
+
}), Rt = A(({ onInput: e, ...t }, i) => {
|
|
75
|
+
const { inputRef: s, shouldAutoFocusInput: n } = u(), o = P((h) => h.value), d = F("(max-width: 768px)"), { searchSettings: c } = p(), l = T(
|
|
76
|
+
() => c.placeholder || (d ? "Search..." : "Search for anything..."),
|
|
77
|
+
[c.placeholder, d]
|
|
78
78
|
), v = x(i, s);
|
|
79
79
|
return ne("search", s, n), re(), /* @__PURE__ */ a(
|
|
80
|
-
|
|
80
|
+
de,
|
|
81
81
|
{
|
|
82
82
|
ref: v,
|
|
83
|
-
placeholder:
|
|
83
|
+
placeholder: l,
|
|
84
84
|
"aria-activedescendant": `aiSearchResults__Item-${o}`,
|
|
85
85
|
...t
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
|
-
}),
|
|
88
|
+
}), le = r(U, {
|
|
89
89
|
_id: "aiSearchLoading",
|
|
90
90
|
iconSettings: {
|
|
91
91
|
builtIn: "LuLoaderCircle"
|
|
92
92
|
}
|
|
93
93
|
}), Pt = (e) => {
|
|
94
94
|
const { loading: t, resultsList: i } = u();
|
|
95
|
-
return !t || i.length === 0 ? null : /* @__PURE__ */ a(
|
|
95
|
+
return !t || i.length === 0 ? null : /* @__PURE__ */ a(le, { ...e });
|
|
96
96
|
}, ue = r(f.Item, {
|
|
97
97
|
_id: "aiAskAITrigger",
|
|
98
|
-
value:
|
|
98
|
+
value: w
|
|
99
99
|
}), gt = (e) => {
|
|
100
|
-
const { results: t, tab: i } = u(), s =
|
|
100
|
+
const { results: t, tab: i } = u(), s = Q(), n = t[i]?.[0]?.id ?? "NONE";
|
|
101
101
|
return /* @__PURE__ */ a(
|
|
102
102
|
ue,
|
|
103
103
|
{
|
|
104
104
|
...e,
|
|
105
|
-
id: `aiSearchResults__Item-${
|
|
105
|
+
id: `aiSearchResults__Item-${w}`,
|
|
106
106
|
tabIndex: 0,
|
|
107
107
|
onPointerLeave: () => s.setState("value", n, !0)
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}, me = r("img", {
|
|
111
111
|
_id: "aiAskAITrigger__Icon"
|
|
112
|
-
}),
|
|
113
|
-
const { aiChatSettings: t } = p(), { aiAssistantAvatar: i } = t ?? {}, s = typeof i == "string" ? i : i?.light, n = (typeof i == "string" ? i : i?.dark) ?? s, o = Y(s, n), [
|
|
112
|
+
}), Tt = (e) => {
|
|
113
|
+
const { aiChatSettings: t } = p(), { aiAssistantAvatar: i } = t ?? {}, s = typeof i == "string" ? i : i?.light, n = (typeof i == "string" ? i : i?.dark) ?? s, o = Y(s, n), [d, c] = j(o);
|
|
114
114
|
return O(() => {
|
|
115
115
|
c(o);
|
|
116
|
-
}, [o]), /* @__PURE__ */ a(me, { asChild: !0, ...e, children:
|
|
116
|
+
}, [o]), /* @__PURE__ */ a(me, { asChild: !0, ...e, children: d ? (
|
|
117
117
|
// biome-ignore lint/a11y/useAltText: <explanation>
|
|
118
118
|
/* @__PURE__ */ a(
|
|
119
119
|
"img",
|
|
120
120
|
{
|
|
121
|
-
src:
|
|
121
|
+
src: d,
|
|
122
122
|
alt: "AI Avatar",
|
|
123
123
|
"data-type": "image",
|
|
124
124
|
onError: y(() => {
|
|
@@ -128,29 +128,33 @@ const ae = r("div", {
|
|
|
128
128
|
}
|
|
129
129
|
)
|
|
130
130
|
) : /* @__PURE__ */ a(Z, { "data-type": "icon", ...e }) });
|
|
131
|
-
},
|
|
131
|
+
}, wt = r("span", {
|
|
132
132
|
_id: "aiAskAITrigger__Label"
|
|
133
|
-
}), ft = r(
|
|
133
|
+
}), ft = r("span", {
|
|
134
|
+
_id: "aiAskAITrigger__Query"
|
|
135
|
+
}), Et = r(g, {
|
|
134
136
|
_id: "aiAskAITrigger__Indicator",
|
|
135
137
|
iconKey: "openLinkInSameTab"
|
|
138
|
+
}), At = r("span", {
|
|
139
|
+
_id: "aiAskAITrigger__IndicatorText"
|
|
136
140
|
}), he = r(C.Root, {
|
|
137
141
|
_id: "aiSearchResults"
|
|
138
|
-
}),
|
|
142
|
+
}), Lt = (e) => {
|
|
139
143
|
const {
|
|
140
144
|
searchSettings: { view: t }
|
|
141
|
-
} = p(), { tab: i, setTab: s, hasContent: n, isHidden: o, disableTransition:
|
|
145
|
+
} = p(), { tab: i, setTab: s, hasContent: n, isHidden: o, disableTransition: d, results: c, defaultTab: l } = u(), v = Q(), h = N(
|
|
142
146
|
(m) => {
|
|
143
|
-
|
|
147
|
+
d(), s(m);
|
|
144
148
|
const S = c[m][0] ? c[m][0]?.id : void 0;
|
|
145
149
|
v.setState("value", S, !0);
|
|
146
150
|
},
|
|
147
|
-
[c,
|
|
151
|
+
[c, d]
|
|
148
152
|
);
|
|
149
153
|
return O(() => {
|
|
150
154
|
let m = i in c ? i : Object.keys(c)[0];
|
|
151
155
|
if (!c[m]?.length) {
|
|
152
156
|
const b = Object.keys(c).find((k) => c[k]?.length);
|
|
153
|
-
b ? m = b : m =
|
|
157
|
+
b ? m = b : m = l;
|
|
154
158
|
}
|
|
155
159
|
if (!m) return;
|
|
156
160
|
s(m);
|
|
@@ -168,27 +172,27 @@ const ae = r("div", {
|
|
|
168
172
|
);
|
|
169
173
|
}, Ie = r("div", {
|
|
170
174
|
_id: "aiSearchResults__Loading"
|
|
171
|
-
}),
|
|
175
|
+
}), kt = (e) => {
|
|
172
176
|
const { loading: t, resultsList: i } = u();
|
|
173
177
|
return !t || i.length > 0 ? null : /* @__PURE__ */ a(Ie, { ...e });
|
|
174
178
|
}, ve = r(f.Empty, {
|
|
175
179
|
_id: "aiSearchResults__Empty"
|
|
176
|
-
}),
|
|
177
|
-
const t = P((
|
|
180
|
+
}), yt = (e) => {
|
|
181
|
+
const t = P((d) => d.search), { loading: i, results: s, tab: n } = u(), o = s[n]?.length;
|
|
178
182
|
return i || !t || o ? null : /* @__PURE__ */ a(ve, { children: "No results found.", ...e });
|
|
179
183
|
}, _e = r(C.List, {
|
|
180
184
|
_id: "aiSearchResults__TabList"
|
|
181
|
-
}),
|
|
185
|
+
}), Ot = (e) => {
|
|
182
186
|
const { children: t, ...i } = e, {
|
|
183
187
|
searchSettings: { tabs: s }
|
|
184
|
-
} = p(), { results: n, loading: o, resultsList:
|
|
185
|
-
if (o &&
|
|
188
|
+
} = p(), { results: n, loading: o, resultsList: d } = u();
|
|
189
|
+
if (o && d.length === 0) return null;
|
|
186
190
|
const c = Object.keys(n);
|
|
187
191
|
return !s.length || !c.length ? null : /* @__PURE__ */ a(_e, { tabIndex: -1, children: E(t, c), ...i });
|
|
188
192
|
}, Se = r(C.Trigger, {
|
|
189
193
|
_id: "aiSearchResults__Tab"
|
|
190
|
-
}),
|
|
191
|
-
const i = H(null), s = x(t, i), { tab: n, onClick: o, ...
|
|
194
|
+
}), Ct = A((e, t) => {
|
|
195
|
+
const i = H(null), s = x(t, i), { tab: n, onClick: o, ...d } = e, { results: c, tab: l, inputRef: v } = u(), h = c[n].length, m = n === l, S = () => {
|
|
192
196
|
v.current?.focus();
|
|
193
197
|
}, b = te();
|
|
194
198
|
return O(() => {
|
|
@@ -202,19 +206,19 @@ const ae = r("div", {
|
|
|
202
206
|
value: n,
|
|
203
207
|
children: `${n} (${h})`,
|
|
204
208
|
onClick: y(o, S),
|
|
205
|
-
...
|
|
209
|
+
...d
|
|
206
210
|
}
|
|
207
211
|
);
|
|
208
|
-
}),
|
|
212
|
+
}), xt = r("div", {
|
|
209
213
|
_id: "aiSearchResults__Content"
|
|
210
|
-
}), pe = r(
|
|
214
|
+
}), pe = r(L.Root, {
|
|
211
215
|
_id: "aiSearchResults__ScrollArea"
|
|
212
|
-
}),
|
|
216
|
+
}), Bt = (e) => {
|
|
213
217
|
const { loading: t, resultsList: i } = u();
|
|
214
218
|
return t && i.length === 0 ? null : /* @__PURE__ */ a(pe, { tabIndex: -1, ...e });
|
|
215
|
-
}, be = r(
|
|
219
|
+
}, be = r(L.Viewport, {
|
|
216
220
|
_id: "aiSearchResults__ScrollAreaViewport"
|
|
217
|
-
}),
|
|
221
|
+
}), Nt = A(({ children: e, ...t }, i) => {
|
|
218
222
|
const s = X(), n = x(i, s), { tab: o } = u();
|
|
219
223
|
return O(() => {
|
|
220
224
|
o && s.current?.scrollTo({ top: 0, behavior: "auto" });
|
|
@@ -230,18 +234,18 @@ const ae = r("div", {
|
|
|
230
234
|
...t
|
|
231
235
|
}
|
|
232
236
|
);
|
|
233
|
-
}),
|
|
234
|
-
|
|
237
|
+
}), Ht = r(
|
|
238
|
+
L.ScrollAreaScrollbar,
|
|
235
239
|
{
|
|
236
240
|
_id: "aiSearchResults__ScrollAreaScrollbar"
|
|
237
241
|
}
|
|
238
|
-
),
|
|
242
|
+
), Mt = r(L.ScrollAreaThumb, {
|
|
239
243
|
_id: "aiSearchResults__ScrollAreaThumb"
|
|
240
|
-
}),
|
|
244
|
+
}), Ut = r(L.Corner, {
|
|
241
245
|
_id: "aiSearchResults__ScrollAreaCorner"
|
|
242
246
|
}), Re = r(C.Content, {
|
|
243
247
|
_id: "aiSearchResults__List"
|
|
244
|
-
}),
|
|
248
|
+
}), Ft = (e) => {
|
|
245
249
|
const { children: t, ...i } = e, { results: s, tab: n } = u(), o = s[n] ?? [];
|
|
246
250
|
return /* @__PURE__ */ a(
|
|
247
251
|
Re,
|
|
@@ -257,12 +261,12 @@ const ae = r("div", {
|
|
|
257
261
|
}, Pe = r(f.Item, {
|
|
258
262
|
_id: "aiSearchResults__Item",
|
|
259
263
|
asChild: !0
|
|
260
|
-
}),
|
|
264
|
+
}), Dt = A(({ item: e, onClick: t, onSelect: i, children: s, ...n }, o) => {
|
|
261
265
|
const {
|
|
262
|
-
searchSettings: { shouldOpenLinksInNewTab:
|
|
266
|
+
searchSettings: { shouldOpenLinksInNewTab: d, view: c, searchQueryParamKey: l }
|
|
263
267
|
} = p(), { logEvent: v } = z(), h = P((R) => R.search), { transitionsDisabled: m } = u(), S = P((R) => R.value), b = H(null), k = x(o, b), D = N((R) => {
|
|
264
268
|
R.trigger === "keyboard" && b.current?.click();
|
|
265
|
-
}, []),
|
|
269
|
+
}, []), W = N(() => {
|
|
266
270
|
v({
|
|
267
271
|
eventName: "search_result_clicked",
|
|
268
272
|
properties: {
|
|
@@ -271,17 +275,17 @@ const ae = r("div", {
|
|
|
271
275
|
url: e.url
|
|
272
276
|
}
|
|
273
277
|
});
|
|
274
|
-
}, [v, h, e.title, e.url]), B =
|
|
275
|
-
() => e.shouldOpenInNewTab !== void 0 ? e.shouldOpenInNewTab :
|
|
276
|
-
[e.shouldOpenInNewTab,
|
|
277
|
-
), K = S === e.id,
|
|
278
|
-
href:
|
|
278
|
+
}, [v, h, e.title, e.url]), B = T(
|
|
279
|
+
() => e.shouldOpenInNewTab !== void 0 ? e.shouldOpenInNewTab : d,
|
|
280
|
+
[e.shouldOpenInNewTab, d]
|
|
281
|
+
), K = S === e.id, $ = K || (S === "NONE" || S === w), G = T(() => ({
|
|
282
|
+
href: l ? se(e.url, h, l) : e.url,
|
|
279
283
|
isExternal: B,
|
|
280
284
|
appendToUrl: e.appendToUrl,
|
|
281
285
|
children: s,
|
|
282
286
|
id: `aiSearchResults__Item-${e.id}`
|
|
283
|
-
}), [e.url, B, e.appendToUrl, s, e.id,
|
|
284
|
-
return /* @__PURE__ */ a(
|
|
287
|
+
}), [e.url, B, e.appendToUrl, s, e.id, l, h]);
|
|
288
|
+
return /* @__PURE__ */ a(V, { source: { ...e, isExternal: B }, children: /* @__PURE__ */ a(
|
|
285
289
|
Pe,
|
|
286
290
|
{
|
|
287
291
|
ref: k,
|
|
@@ -291,51 +295,51 @@ const ae = r("div", {
|
|
|
291
295
|
"data-disable-transitions": I(m),
|
|
292
296
|
"data-view": c,
|
|
293
297
|
onSelect: y(i, D),
|
|
294
|
-
onClick: y(t,
|
|
298
|
+
onClick: y(t, W),
|
|
295
299
|
"data-selected": I(K),
|
|
296
|
-
tabIndex:
|
|
300
|
+
tabIndex: $ ? 0 : -1,
|
|
297
301
|
...n,
|
|
298
|
-
children: /* @__PURE__ */ a(M, { ...
|
|
302
|
+
children: /* @__PURE__ */ a(M, { ...G })
|
|
299
303
|
}
|
|
300
304
|
) });
|
|
301
305
|
}), ge = r("div", {
|
|
302
306
|
_id: "aiSearchResults__ItemBreadcrumbs"
|
|
303
|
-
}),
|
|
307
|
+
}), Te = (e) => {
|
|
304
308
|
const { source: t } = _(), { tab: i } = u();
|
|
305
309
|
if (!t.breadcrumbs?.length) return null;
|
|
306
|
-
const { children: s, ...n } = e,
|
|
310
|
+
const { children: s, ...n } = e, d = t.tabs?.find((c) => typeof c != "string" && c[0] === i)?.[1]?.breadcrumbs ?? t.breadcrumbs ?? [];
|
|
307
311
|
return /* @__PURE__ */ a(
|
|
308
312
|
ge,
|
|
309
313
|
{
|
|
310
314
|
"aria-hidden": "true",
|
|
311
|
-
children: E(s,
|
|
315
|
+
children: E(s, d),
|
|
312
316
|
...n
|
|
313
317
|
}
|
|
314
318
|
);
|
|
315
|
-
},
|
|
319
|
+
}, we = r(g, {
|
|
316
320
|
_id: "aiSearchResults__ItemBreadcrumbIcon",
|
|
317
321
|
iconKey: "breadcrumbSeparator"
|
|
318
322
|
}), fe = r(U, {
|
|
319
323
|
_id: "aiSearchResults__ItemIcon"
|
|
320
|
-
}),
|
|
324
|
+
}), Kt = (e) => {
|
|
321
325
|
const { source: t } = _();
|
|
322
326
|
return /* @__PURE__ */ a(fe, { iconSettings: t.icon, "data-type": t.type, ...e });
|
|
323
327
|
}, Ee = r("span", {
|
|
324
328
|
_id: "aiSearchResults__ItemTitle"
|
|
325
|
-
}),
|
|
329
|
+
}), Qt = (e) => {
|
|
326
330
|
const { source: t } = _();
|
|
327
331
|
return /* @__PURE__ */ a(Ee, { "data-type": t.type, children: t.title, ...e });
|
|
328
|
-
},
|
|
332
|
+
}, Ae = r("span", {
|
|
329
333
|
_id: "aiSearchResults__ItemTag"
|
|
330
|
-
}),
|
|
334
|
+
}), Vt = (e) => {
|
|
331
335
|
const { source: t } = _();
|
|
332
|
-
return /* @__PURE__ */ a(
|
|
333
|
-
},
|
|
336
|
+
return /* @__PURE__ */ a(Ae, { "data-type": t.type, children: t.tag, ...e });
|
|
337
|
+
}, Le = r("span", {
|
|
334
338
|
_id: "aiSearchResults__ItemDescription"
|
|
335
|
-
}),
|
|
336
|
-
const { source: t } = _(), { children: i, ...s } = e, n =
|
|
339
|
+
}), Wt = (e) => {
|
|
340
|
+
const { source: t } = _(), { children: i, ...s } = e, n = T(() => t.description ? J(t.description) : [], [t.description]);
|
|
337
341
|
return n.length ? /* @__PURE__ */ a(
|
|
338
|
-
|
|
342
|
+
Le,
|
|
339
343
|
{
|
|
340
344
|
"data-type": t.type,
|
|
341
345
|
"aria-hidden": "true",
|
|
@@ -345,7 +349,7 @@ const ae = r("div", {
|
|
|
345
349
|
) : null;
|
|
346
350
|
}, ke = r("span", {
|
|
347
351
|
_id: "aiSearchResults__ItemDescriptionPart"
|
|
348
|
-
}),
|
|
352
|
+
}), $t = (e) => {
|
|
349
353
|
const { part: t, ...i } = e, { source: s } = _();
|
|
350
354
|
return typeof t == "string" ? t : /* @__PURE__ */ a(
|
|
351
355
|
ke,
|
|
@@ -358,7 +362,7 @@ const ae = r("div", {
|
|
|
358
362
|
);
|
|
359
363
|
}, ye = r(g, {
|
|
360
364
|
_id: "aiSearchResults__ItemIndicator"
|
|
361
|
-
}),
|
|
365
|
+
}), Gt = (e) => {
|
|
362
366
|
const { source: t } = _(), {
|
|
363
367
|
searchSettings: { view: i }
|
|
364
368
|
} = p();
|
|
@@ -373,22 +377,22 @@ const ae = r("div", {
|
|
|
373
377
|
}, Oe = r("div", {
|
|
374
378
|
_id: "aiSearchResults__ItemPreview",
|
|
375
379
|
"aria-hidden": !0
|
|
376
|
-
}),
|
|
380
|
+
}), jt = (e) => {
|
|
377
381
|
const {
|
|
378
382
|
searchSettings: { view: t, shouldOpenLinksInNewTab: i }
|
|
379
|
-
} = p(), { results: s, tab: n } = u(), o = P((h) => h.value),
|
|
380
|
-
if (o ===
|
|
381
|
-
const h =
|
|
383
|
+
} = p(), { results: s, tab: n } = u(), o = P((h) => h.value), d = s[n] ?? [], c = H(null), l = T(() => {
|
|
384
|
+
if (o === w) return c.current;
|
|
385
|
+
const h = d.find((m) => m.id === o);
|
|
382
386
|
return c.current = h ?? null, h;
|
|
383
387
|
}, [o]);
|
|
384
|
-
if (t !== "dual-pane" || o ===
|
|
385
|
-
const v =
|
|
386
|
-
return /* @__PURE__ */ a(
|
|
387
|
-
},
|
|
388
|
+
if (t !== "dual-pane" || o === w || !l) return null;
|
|
389
|
+
const v = l.shouldOpenInNewTab !== void 0 ? l.shouldOpenInNewTab : i;
|
|
390
|
+
return /* @__PURE__ */ a(V, { source: { ...l, isExternal: v }, children: /* @__PURE__ */ a(Oe, { ...e }) });
|
|
391
|
+
}, qt = r("div", {
|
|
388
392
|
_id: "aiSearchResults__ItemPreview__Header"
|
|
389
393
|
}), Ce = r(M, {
|
|
390
394
|
_id: "aiSearchResults__ItemPreview__Heading"
|
|
391
|
-
}),
|
|
395
|
+
}), zt = (e) => {
|
|
392
396
|
const { source: t } = _();
|
|
393
397
|
return /* @__PURE__ */ a(
|
|
394
398
|
Ce,
|
|
@@ -402,13 +406,13 @@ const ae = r("div", {
|
|
|
402
406
|
);
|
|
403
407
|
}, xe = r("span", {
|
|
404
408
|
_id: "aiSearchResults__ItemPreview__Title"
|
|
405
|
-
}),
|
|
409
|
+
}), Jt = (e) => {
|
|
406
410
|
const { source: t } = _();
|
|
407
411
|
return /* @__PURE__ */ a(xe, { children: t.title, ...e });
|
|
408
412
|
}, Be = r(g, {
|
|
409
413
|
_id: "aiSearchResults__ItemPreview__Title__LinkIcon",
|
|
410
414
|
iconKey: "openLinkInNewTab"
|
|
411
|
-
}),
|
|
415
|
+
}), Xt = (e) => {
|
|
412
416
|
const { source: t } = _();
|
|
413
417
|
return /* @__PURE__ */ a(
|
|
414
418
|
Be,
|
|
@@ -417,19 +421,19 @@ const ae = r("div", {
|
|
|
417
421
|
...e
|
|
418
422
|
}
|
|
419
423
|
);
|
|
420
|
-
},
|
|
421
|
-
|
|
424
|
+
}, Yt = r(
|
|
425
|
+
Te,
|
|
422
426
|
{
|
|
423
427
|
_id: "aiSearchResults__ItemPreview__Breadcrumbs"
|
|
424
428
|
}
|
|
425
|
-
),
|
|
426
|
-
|
|
429
|
+
), Zt = r(
|
|
430
|
+
we,
|
|
427
431
|
{
|
|
428
432
|
_id: "aiSearchResults__ItemPreview__BreadcrumbIcon"
|
|
429
433
|
}
|
|
430
434
|
), Ne = r(ie, {
|
|
431
435
|
_id: "aiSearchResults__ItemPreview__Body"
|
|
432
|
-
}),
|
|
436
|
+
}), ei = (e) => {
|
|
433
437
|
const { source: t } = _(), { resultsList: i } = u(), s = i.find((o) => o.id === t.id), {
|
|
434
438
|
searchSettings: { shouldOpenLinksInNewTab: n }
|
|
435
439
|
} = p();
|
|
@@ -443,38 +447,38 @@ const ae = r("div", {
|
|
|
443
447
|
) : null;
|
|
444
448
|
}, He = r("div", {
|
|
445
449
|
_id: "aiSearchResults__ItemPreview__Outline"
|
|
446
|
-
}),
|
|
450
|
+
}), ti = (e) => {
|
|
447
451
|
const { source: t } = _(), { resultsList: i } = u();
|
|
448
452
|
return i.find((o) => o.id === t.id)?.rootRecord.topLevelHeadings?.length ? /* @__PURE__ */ a(He, { ...e }) : null;
|
|
449
|
-
},
|
|
453
|
+
}, ii = r("span", {
|
|
450
454
|
_id: "aiSearchResults__ItemPreview__Outline__Title",
|
|
451
455
|
children: "On this page"
|
|
452
456
|
}), Me = r("ul", {
|
|
453
457
|
_id: "aiSearchResults__ItemPreview__Outline__List"
|
|
454
|
-
}),
|
|
455
|
-
const { source: t } = _(), { resultsList: i } = u(), s = i.find((
|
|
458
|
+
}), ri = (e) => {
|
|
459
|
+
const { source: t } = _(), { resultsList: i } = u(), s = i.find((l) => l.id === t.id), n = s?.rootRecord.topLevelHeadings;
|
|
456
460
|
if (!n?.length) return null;
|
|
457
|
-
const o = n.map((
|
|
458
|
-
const v =
|
|
461
|
+
const o = n.map((l) => {
|
|
462
|
+
const v = l?.anchor && l?.anchor === s?.content?.anchor, h = l?.anchor === s?.pathHeadings?.[0]?.anchor;
|
|
459
463
|
return {
|
|
460
|
-
...
|
|
464
|
+
...l,
|
|
461
465
|
isMatch: v || h
|
|
462
466
|
};
|
|
463
|
-
}), { children:
|
|
464
|
-
return /* @__PURE__ */ a(Me, { children: E(
|
|
467
|
+
}), { children: d, ...c } = e;
|
|
468
|
+
return /* @__PURE__ */ a(Me, { children: E(d, o), ...c });
|
|
465
469
|
}, Ue = r(M, {
|
|
466
470
|
_id: "aiSearchResults__ItemPreview__Outline__Item"
|
|
467
|
-
}),
|
|
471
|
+
}), si = (e) => {
|
|
468
472
|
const {
|
|
469
473
|
searchSettings: { shouldOpenLinksInNewTab: t }
|
|
470
474
|
} = p();
|
|
471
475
|
return /* @__PURE__ */ a(Ue, { isExternal: t, ...e });
|
|
472
|
-
},
|
|
476
|
+
}, ni = r(g, {
|
|
473
477
|
_id: "aiSearchResults__ItemPreview__Outline__ItemIcon",
|
|
474
478
|
iconKey: "newLine"
|
|
475
479
|
}), Fe = r("span", {
|
|
476
480
|
_id: "aiSearchResults__ItemPreview__Outline__ItemText"
|
|
477
|
-
}),
|
|
481
|
+
}), ai = (e) => /* @__PURE__ */ a(Fe, { ...e }), oi = r(
|
|
478
482
|
U,
|
|
479
483
|
{
|
|
480
484
|
_id: "aiSearchResults__ItemPreview__Outline__ItemLinkIcon",
|
|
@@ -484,17 +488,17 @@ const ae = r("div", {
|
|
|
484
488
|
}
|
|
485
489
|
), De = r("div", {
|
|
486
490
|
_id: "aiSearchFooter"
|
|
487
|
-
}),
|
|
491
|
+
}), ci = (e) => {
|
|
488
492
|
const { hasContent: t } = u();
|
|
489
493
|
return /* @__PURE__ */ a(De, { "data-has-results": I(t), ...e });
|
|
490
|
-
},
|
|
494
|
+
}, di = r("div", {
|
|
491
495
|
_id: "aiSearchTagline__Container"
|
|
492
|
-
}),
|
|
496
|
+
}), li = r("span", {
|
|
493
497
|
_id: "aiSearchTagline__Text",
|
|
494
498
|
children: "Powered by"
|
|
495
|
-
}),
|
|
499
|
+
}), ui = r(q, {
|
|
496
500
|
_id: "aiSearchTagline__Logo"
|
|
497
|
-
}),
|
|
501
|
+
}), mi = r("a", {
|
|
498
502
|
_id: "aiSearchTagline__BrandName",
|
|
499
503
|
children: "inkeep",
|
|
500
504
|
href: "https://www.inkeep.com/",
|
|
@@ -503,99 +507,103 @@ const ae = r("div", {
|
|
|
503
507
|
});
|
|
504
508
|
export {
|
|
505
509
|
gt as AskAITrigger,
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
510
|
+
Tt as AskAITriggerIcon,
|
|
511
|
+
Et as AskAITriggerIndicator,
|
|
512
|
+
At as AskAITriggerIndicatorText,
|
|
513
|
+
wt as AskAITriggerLabel,
|
|
514
|
+
ft as AskAITriggerQuery,
|
|
509
515
|
St as Content,
|
|
510
516
|
bt as EmbeddedSearchInputIcon,
|
|
511
517
|
gt as EmbeddedSearchPrimitiveAskAITrigger,
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
518
|
+
Tt as EmbeddedSearchPrimitiveAskAITriggerIcon,
|
|
519
|
+
Et as EmbeddedSearchPrimitiveAskAITriggerIndicator,
|
|
520
|
+
At as EmbeddedSearchPrimitiveAskAITriggerIndicatorText,
|
|
521
|
+
wt as EmbeddedSearchPrimitiveAskAITriggerLabel,
|
|
522
|
+
ft as EmbeddedSearchPrimitiveAskAITriggerQuery,
|
|
515
523
|
St as EmbeddedSearchPrimitiveContent,
|
|
516
|
-
|
|
524
|
+
ci as EmbeddedSearchPrimitiveFooter,
|
|
517
525
|
Rt as EmbeddedSearchPrimitiveInput,
|
|
518
526
|
pt as EmbeddedSearchPrimitiveInputGroup,
|
|
519
527
|
Pt as EmbeddedSearchPrimitiveLoading,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
528
|
+
Lt as EmbeddedSearchPrimitiveResults,
|
|
529
|
+
xt as EmbeddedSearchPrimitiveResultsContent,
|
|
530
|
+
yt as EmbeddedSearchPrimitiveResultsEmpty,
|
|
531
|
+
Dt as EmbeddedSearchPrimitiveResultsItem,
|
|
532
|
+
Te as EmbeddedSearchPrimitiveResultsItemBreadcrumbs,
|
|
533
|
+
Wt as EmbeddedSearchPrimitiveResultsItemDescription,
|
|
534
|
+
$t as EmbeddedSearchPrimitiveResultsItemDescriptionPart,
|
|
535
|
+
Kt as EmbeddedSearchPrimitiveResultsItemIcon,
|
|
536
|
+
Gt as EmbeddedSearchPrimitiveResultsItemIndicator,
|
|
537
|
+
jt as EmbeddedSearchPrimitiveResultsItemPreview,
|
|
538
|
+
ei as EmbeddedSearchPrimitiveResultsItemPreviewBody,
|
|
539
|
+
Zt as EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon,
|
|
540
|
+
zt as EmbeddedSearchPrimitiveResultsItemPreviewHeading,
|
|
541
|
+
ti as EmbeddedSearchPrimitiveResultsItemPreviewOutline,
|
|
542
|
+
si as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem,
|
|
543
|
+
ni as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon,
|
|
544
|
+
oi as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon,
|
|
545
|
+
ai as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText,
|
|
546
|
+
ri as EmbeddedSearchPrimitiveResultsItemPreviewOutlineList,
|
|
547
|
+
ii as EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle,
|
|
548
|
+
Jt as EmbeddedSearchPrimitiveResultsItemPreviewTitle,
|
|
549
|
+
Xt as EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon,
|
|
550
|
+
Vt as EmbeddedSearchPrimitiveResultsItemTag,
|
|
551
|
+
Qt as EmbeddedSearchPrimitiveResultsItemTitle,
|
|
552
|
+
Ft as EmbeddedSearchPrimitiveResultsList,
|
|
553
|
+
kt as EmbeddedSearchPrimitiveResultsLoading,
|
|
554
|
+
Bt as EmbeddedSearchPrimitiveResultsScrollArea,
|
|
555
|
+
Nt as EmbeddedSearchPrimitiveResultsScrollAreaViewport,
|
|
556
|
+
Ct as EmbeddedSearchPrimitiveResultsTab,
|
|
557
|
+
Ot as EmbeddedSearchPrimitiveResultsTabList,
|
|
550
558
|
_t as EmbeddedSearchPrimitiveRoot,
|
|
551
559
|
vt as EmbeddedSearchPrimitiveWrapper,
|
|
552
|
-
|
|
560
|
+
ci as Footer,
|
|
553
561
|
Rt as Input,
|
|
554
562
|
pt as InputGroup,
|
|
555
563
|
bt as InputIcon,
|
|
556
564
|
Pt as Loading,
|
|
557
565
|
ce as PrimitiveContent,
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
566
|
+
vi as Provider,
|
|
567
|
+
Lt as Results,
|
|
568
|
+
xt as ResultsContent,
|
|
569
|
+
yt as ResultsEmpty,
|
|
570
|
+
Dt as ResultsItem,
|
|
571
|
+
we as ResultsItemBreadcrumbIcon,
|
|
572
|
+
Te as ResultsItemBreadcrumbs,
|
|
573
|
+
Wt as ResultsItemDescription,
|
|
574
|
+
$t as ResultsItemDescriptionPart,
|
|
575
|
+
Kt as ResultsItemIcon,
|
|
576
|
+
Gt as ResultsItemIndicator,
|
|
577
|
+
jt as ResultsItemPreview,
|
|
578
|
+
ei as ResultsItemPreviewBody,
|
|
579
|
+
Zt as ResultsItemPreviewBreadcrumbIcon,
|
|
580
|
+
Yt as ResultsItemPreviewBreadcrumbs,
|
|
581
|
+
qt as ResultsItemPreviewHeader,
|
|
582
|
+
zt as ResultsItemPreviewHeading,
|
|
583
|
+
ti as ResultsItemPreviewOutline,
|
|
584
|
+
si as ResultsItemPreviewOutlineItem,
|
|
585
|
+
ni as ResultsItemPreviewOutlineItemIcon,
|
|
586
|
+
oi as ResultsItemPreviewOutlineItemLinkIcon,
|
|
587
|
+
ai as ResultsItemPreviewOutlineItemText,
|
|
588
|
+
ri as ResultsItemPreviewOutlineList,
|
|
589
|
+
ii as ResultsItemPreviewOutlineTitle,
|
|
590
|
+
Jt as ResultsItemPreviewTitle,
|
|
591
|
+
Xt as ResultsItemPreviewTitleLinkIcon,
|
|
592
|
+
Vt as ResultsItemTag,
|
|
593
|
+
Qt as ResultsItemTitle,
|
|
594
|
+
Ft as ResultsList,
|
|
595
|
+
kt as ResultsLoading,
|
|
596
|
+
Bt as ResultsScrollArea,
|
|
597
|
+
Ut as ResultsScrollAreaCorner,
|
|
598
|
+
Ht as ResultsScrollAreaScrollbar,
|
|
599
|
+
Mt as ResultsScrollAreaThumb,
|
|
600
|
+
Nt as ResultsScrollAreaViewport,
|
|
601
|
+
Ct as ResultsTab,
|
|
602
|
+
Ot as ResultsTabList,
|
|
595
603
|
_t as Root,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
604
|
+
mi as TaglineBrandName,
|
|
605
|
+
di as TaglineContainer,
|
|
606
|
+
ui as TaglineLogo,
|
|
607
|
+
li as TaglineText,
|
|
600
608
|
vt as Wrapper
|
|
601
609
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -271,7 +271,9 @@ export declare const aiSearchComponentIds: {
|
|
|
271
271
|
aiAskAITrigger: "aiAskAITrigger";
|
|
272
272
|
aiAskAITrigger__Icon: "aiAskAITrigger__Icon";
|
|
273
273
|
aiAskAITrigger__Label: "aiAskAITrigger__Label";
|
|
274
|
+
aiAskAITrigger__Query: "aiAskAITrigger__Query";
|
|
274
275
|
aiAskAITrigger__Indicator: "aiAskAITrigger__Indicator";
|
|
276
|
+
aiAskAITrigger__IndicatorText: "aiAskAITrigger__IndicatorText";
|
|
275
277
|
aiSearchResults: "aiSearchResults";
|
|
276
278
|
aiSearchResults__Loading: "aiSearchResults__Loading";
|
|
277
279
|
aiSearchResults__Empty: "aiSearchResults__Empty";
|
|
@@ -964,7 +966,9 @@ export declare const componentIDs: {
|
|
|
964
966
|
aiAskAITrigger: "aiAskAITrigger";
|
|
965
967
|
aiAskAITrigger__Icon: "aiAskAITrigger__Icon";
|
|
966
968
|
aiAskAITrigger__Label: "aiAskAITrigger__Label";
|
|
969
|
+
aiAskAITrigger__Query: "aiAskAITrigger__Query";
|
|
967
970
|
aiAskAITrigger__Indicator: "aiAskAITrigger__Indicator";
|
|
971
|
+
aiAskAITrigger__IndicatorText: "aiAskAITrigger__IndicatorText";
|
|
968
972
|
aiSearchResults: "aiSearchResults";
|
|
969
973
|
aiSearchResults__Loading: "aiSearchResults__Loading";
|
|
970
974
|
aiSearchResults__Empty: "aiSearchResults__Empty";
|
|
@@ -2420,7 +2424,9 @@ export declare namespace EmbeddedSearchPrimitive {
|
|
|
2420
2424
|
EmbeddedSearchPrimitiveAskAITrigger,
|
|
2421
2425
|
EmbeddedSearchPrimitiveAskAITriggerIcon,
|
|
2422
2426
|
EmbeddedSearchPrimitiveAskAITriggerLabel,
|
|
2427
|
+
EmbeddedSearchPrimitiveAskAITriggerQuery,
|
|
2423
2428
|
EmbeddedSearchPrimitiveAskAITriggerIndicator,
|
|
2429
|
+
EmbeddedSearchPrimitiveAskAITriggerIndicatorText,
|
|
2424
2430
|
EmbeddedSearchPrimitiveResults,
|
|
2425
2431
|
EmbeddedSearchPrimitiveResultsLoading,
|
|
2426
2432
|
EmbeddedSearchPrimitiveResultsEmpty,
|
|
@@ -2472,7 +2478,9 @@ export declare namespace EmbeddedSearchPrimitive {
|
|
|
2472
2478
|
EmbeddedSearchPrimitiveAskAITrigger as AskAITrigger,
|
|
2473
2479
|
EmbeddedSearchPrimitiveAskAITriggerIcon as AskAITriggerIcon,
|
|
2474
2480
|
EmbeddedSearchPrimitiveAskAITriggerLabel as AskAITriggerLabel,
|
|
2481
|
+
EmbeddedSearchPrimitiveAskAITriggerQuery as AskAITriggerQuery,
|
|
2475
2482
|
EmbeddedSearchPrimitiveAskAITriggerIndicator as AskAITriggerIndicator,
|
|
2483
|
+
EmbeddedSearchPrimitiveAskAITriggerIndicatorText as AskAITriggerIndicatorText,
|
|
2476
2484
|
EmbeddedSearchPrimitiveResults as Results,
|
|
2477
2485
|
EmbeddedSearchPrimitiveResultsLoading as ResultsLoading,
|
|
2478
2486
|
EmbeddedSearchPrimitiveResultsEmpty as ResultsEmpty,
|
|
@@ -2523,8 +2531,12 @@ declare const EmbeddedSearchPrimitiveAskAITriggerIcon: (props: Omit<ComponentPro
|
|
|
2523
2531
|
|
|
2524
2532
|
declare const EmbeddedSearchPrimitiveAskAITriggerIndicator: ForwardRefExoticComponent< PolymorphicProps & Omit< CustomIconProps, "_id" | "iconKey"> & Partial<Pick< CustomIconProps, "_id" | "iconKey">>>;
|
|
2525
2533
|
|
|
2534
|
+
declare const EmbeddedSearchPrimitiveAskAITriggerIndicatorText: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
2535
|
+
|
|
2526
2536
|
declare const EmbeddedSearchPrimitiveAskAITriggerLabel: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
2527
2537
|
|
|
2538
|
+
declare const EmbeddedSearchPrimitiveAskAITriggerQuery: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
2539
|
+
|
|
2528
2540
|
declare const EmbeddedSearchPrimitiveContent: ForwardRefExoticComponent<Omit< PolymorphicProps & Omit<{
|
|
2529
2541
|
children?: React.ReactNode;
|
|
2530
2542
|
} & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -271,7 +271,9 @@ export declare const aiSearchComponentIds: {
|
|
|
271
271
|
aiAskAITrigger: "aiAskAITrigger";
|
|
272
272
|
aiAskAITrigger__Icon: "aiAskAITrigger__Icon";
|
|
273
273
|
aiAskAITrigger__Label: "aiAskAITrigger__Label";
|
|
274
|
+
aiAskAITrigger__Query: "aiAskAITrigger__Query";
|
|
274
275
|
aiAskAITrigger__Indicator: "aiAskAITrigger__Indicator";
|
|
276
|
+
aiAskAITrigger__IndicatorText: "aiAskAITrigger__IndicatorText";
|
|
275
277
|
aiSearchResults: "aiSearchResults";
|
|
276
278
|
aiSearchResults__Loading: "aiSearchResults__Loading";
|
|
277
279
|
aiSearchResults__Empty: "aiSearchResults__Empty";
|
|
@@ -964,7 +966,9 @@ export declare const componentIDs: {
|
|
|
964
966
|
aiAskAITrigger: "aiAskAITrigger";
|
|
965
967
|
aiAskAITrigger__Icon: "aiAskAITrigger__Icon";
|
|
966
968
|
aiAskAITrigger__Label: "aiAskAITrigger__Label";
|
|
969
|
+
aiAskAITrigger__Query: "aiAskAITrigger__Query";
|
|
967
970
|
aiAskAITrigger__Indicator: "aiAskAITrigger__Indicator";
|
|
971
|
+
aiAskAITrigger__IndicatorText: "aiAskAITrigger__IndicatorText";
|
|
968
972
|
aiSearchResults: "aiSearchResults";
|
|
969
973
|
aiSearchResults__Loading: "aiSearchResults__Loading";
|
|
970
974
|
aiSearchResults__Empty: "aiSearchResults__Empty";
|
|
@@ -2420,7 +2424,9 @@ export declare namespace EmbeddedSearchPrimitive {
|
|
|
2420
2424
|
EmbeddedSearchPrimitiveAskAITrigger,
|
|
2421
2425
|
EmbeddedSearchPrimitiveAskAITriggerIcon,
|
|
2422
2426
|
EmbeddedSearchPrimitiveAskAITriggerLabel,
|
|
2427
|
+
EmbeddedSearchPrimitiveAskAITriggerQuery,
|
|
2423
2428
|
EmbeddedSearchPrimitiveAskAITriggerIndicator,
|
|
2429
|
+
EmbeddedSearchPrimitiveAskAITriggerIndicatorText,
|
|
2424
2430
|
EmbeddedSearchPrimitiveResults,
|
|
2425
2431
|
EmbeddedSearchPrimitiveResultsLoading,
|
|
2426
2432
|
EmbeddedSearchPrimitiveResultsEmpty,
|
|
@@ -2472,7 +2478,9 @@ export declare namespace EmbeddedSearchPrimitive {
|
|
|
2472
2478
|
EmbeddedSearchPrimitiveAskAITrigger as AskAITrigger,
|
|
2473
2479
|
EmbeddedSearchPrimitiveAskAITriggerIcon as AskAITriggerIcon,
|
|
2474
2480
|
EmbeddedSearchPrimitiveAskAITriggerLabel as AskAITriggerLabel,
|
|
2481
|
+
EmbeddedSearchPrimitiveAskAITriggerQuery as AskAITriggerQuery,
|
|
2475
2482
|
EmbeddedSearchPrimitiveAskAITriggerIndicator as AskAITriggerIndicator,
|
|
2483
|
+
EmbeddedSearchPrimitiveAskAITriggerIndicatorText as AskAITriggerIndicatorText,
|
|
2476
2484
|
EmbeddedSearchPrimitiveResults as Results,
|
|
2477
2485
|
EmbeddedSearchPrimitiveResultsLoading as ResultsLoading,
|
|
2478
2486
|
EmbeddedSearchPrimitiveResultsEmpty as ResultsEmpty,
|
|
@@ -2523,8 +2531,12 @@ declare const EmbeddedSearchPrimitiveAskAITriggerIcon: (props: Omit<ComponentPro
|
|
|
2523
2531
|
|
|
2524
2532
|
declare const EmbeddedSearchPrimitiveAskAITriggerIndicator: ForwardRefExoticComponent< PolymorphicProps & Omit< CustomIconProps, "_id" | "iconKey"> & Partial<Pick< CustomIconProps, "_id" | "iconKey">>>;
|
|
2525
2533
|
|
|
2534
|
+
declare const EmbeddedSearchPrimitiveAskAITriggerIndicatorText: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
2535
|
+
|
|
2526
2536
|
declare const EmbeddedSearchPrimitiveAskAITriggerLabel: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
2527
2537
|
|
|
2538
|
+
declare const EmbeddedSearchPrimitiveAskAITriggerQuery: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
|
|
2539
|
+
|
|
2528
2540
|
declare const EmbeddedSearchPrimitiveContent: ForwardRefExoticComponent<Omit< PolymorphicProps & Omit<{
|
|
2529
2541
|
children?: React.ReactNode;
|
|
2530
2542
|
} & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),t=require("react"),B=require("../atoms/api/analytics/events.cjs"),f=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),x=({children:e})=>{const{baseSettings:n,componentType:r}=f.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:E,env:m}=n,{userProperties:v}=b.useUser(),u=t.useMemo(()=>({widgetLibraryVersion:"0.5.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),t=require("react"),B=require("../atoms/api/analytics/events.cjs"),f=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),x=({children:e})=>{const{baseSettings:n,componentType:r}=f.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:E,env:m}=n,{userProperties:v}=b.useUser(),u=t.useMemo(()=>({widgetLibraryVersion:"0.5.71",componentType:r,tags:a}),[r,a]),d=!E.optOutAllAnalytics&&m!=="development",g={logEvent:t.useCallback(async s=>{const o={...u,...s.properties},l={eventName:s.eventName,properties:o,userProperties:v},P=["modal_opened","modal_closed"].includes(s.eventName);if(d&&!P){if("conversation"in o&&!o.conversation?.id)return;B.logEvent(l,i,c)}n.onEvent?.(l)},[d,n,i,c,v,u])};return y.jsx(p.Provider,{value:g,children:e})},q=()=>{const e=t.useContext(p);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=x;exports.useBaseEvents=q;
|
|
@@ -7,7 +7,7 @@ import { useUser as w } from "./user-provider.js";
|
|
|
7
7
|
const l = B(void 0), _ = ({ children: e }) => {
|
|
8
8
|
const { baseSettings: t, componentType: s } = b(), { apiKey: r, analyticsApiBaseUrl: i, tags: a, privacyPreferences: u, env: d } = t, { userProperties: c } = w(), v = y(
|
|
9
9
|
() => ({
|
|
10
|
-
widgetLibraryVersion: "0.5.
|
|
10
|
+
widgetLibraryVersion: "0.5.71",
|
|
11
11
|
componentType: s,
|
|
12
12
|
tags: a
|
|
13
13
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},a={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode",markdownInput:"markdownInput"},t={aiChatWrapper:"aiChatWrapper",aiChatConversationLoading:"aiChatConversationLoading",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatExampleQuestions:"aiChatExampleQuestions",aiChatExampleQuestionsLabel:"aiChatExampleQuestionsLabel",aiChatExampleQuestionsList:"aiChatExampleQuestionsList",aiChatExampleQuestion:"aiChatExampleQuestion",aiChatExampleQuestionButton:"aiChatExampleQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessage:"aiChatMessage",aiChatMessageToolbar:"aiChatMessageToolbar",aiChatMessageToolActions:"aiChatMessageToolActions",aiChatMessageToolAction:"aiChatMessageToolAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},i={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__Content:"aiSearchResults__Content",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ItemPreview:"aiSearchResults__ItemPreview",aiSearchResults__ItemPreview__Header:"aiSearchResults__ItemPreview__Header",aiSearchResults__ItemPreview__Heading:"aiSearchResults__ItemPreview__Heading",aiSearchResults__ItemPreview__Title:"aiSearchResults__ItemPreview__Title",aiSearchResults__ItemPreview__Title__LinkIcon:"aiSearchResults__ItemPreview__Title__LinkIcon",aiSearchResults__ItemPreview__Breadcrumbs:"aiSearchResults__ItemPreview__Breadcrumbs",aiSearchResults__ItemPreview__BreadcrumbIcon:"aiSearchResults__ItemPreview__BreadcrumbIcon",aiSearchResults__ItemPreview__Body:"aiSearchResults__ItemPreview__Body",aiSearchResults__ItemPreview__Outline:"aiSearchResults__ItemPreview__Outline",aiSearchResults__ItemPreview__Outline__Title:"aiSearchResults__ItemPreview__Outline__Title",aiSearchResults__ItemPreview__Outline__List:"aiSearchResults__ItemPreview__Outline__List",aiSearchResults__ItemPreview__Outline__Item:"aiSearchResults__ItemPreview__Outline__Item",aiSearchResults__ItemPreview__Outline__ItemIcon:"aiSearchResults__ItemPreview__Outline__ItemIcon",aiSearchResults__ItemPreview__Outline__ItemText:"aiSearchResults__ItemPreview__Outline__ItemText",aiSearchResults__ItemPreview__Outline__ItemLinkIcon:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},_={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},r={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent"},o={intelligentForm__Root:"intelligentForm__Root",intelligentForm__Heading:"intelligentForm__Heading",intelligentForm__Content:"intelligentForm__Content",intelligentForm__Content__ScrollArea:"intelligentForm__Content__ScrollArea",intelligentForm__Content__ScrollAreaViewport:"intelligentForm__Content__ScrollAreaViewport",intelligentForm__Content__ScrollAreaScrollbar:"intelligentForm__Content__ScrollAreaScrollbar",intelligentForm__Content__ScrollAreaThumb:"intelligentForm__Content__ScrollAreaThumb",intelligentForm__Content__ScrollAreaCorner:"intelligentForm__Content__ScrollAreaCorner",intelligentForm__Success:"intelligentForm__Success",intelligentForm__SuccessIcon:"intelligentForm__SuccessIcon",intelligentForm__SuccessHeading:"intelligentForm__SuccessHeading",intelligentForm__SuccessMessage:"intelligentForm__SuccessMessage",intelligentForm__PrimaryForm:"intelligentForm__PrimaryForm",intelligentForm__PrimaryForm__Description:"intelligentForm__PrimaryForm__Description",intelligentForm__PrimaryFormFields:"intelligentForm__PrimaryFormFields",intelligentForm__PrimaryFormSubmit:"intelligentForm__PrimaryFormSubmit",intelligentForm__Field:"intelligentForm__Field",intelligentForm__FieldLabel:"intelligentForm__FieldLabel",intelligentForm__FieldText:"intelligentForm__FieldText",intelligentForm__FieldEmail:"intelligentForm__FieldEmail",intelligentForm__FieldFile:"intelligentForm__FieldFile",intelligentForm__FieldTextArea:"intelligentForm__FieldTextArea",intelligentForm__FieldCheckbox:"intelligentForm__FieldCheckbox",intelligentForm__FieldCheckboxIndicator:"intelligentForm__FieldCheckboxIndicator",intelligentForm__FieldSelect:"intelligentForm__FieldSelect",intelligentForm__FieldSelect__Trigger:"intelligentForm__FieldSelect__Trigger",intelligentForm__FieldSelect__Value:"intelligentForm__FieldSelect__Value",intelligentForm__FieldSelect__Icon:"intelligentForm__FieldSelect__Icon",intelligentForm__FieldSelect__Content:"intelligentForm__FieldSelect__Content",intelligentForm__FieldSelect__Viewport:"intelligentForm__FieldSelect__Viewport",intelligentForm__FieldSelect__Item:"intelligentForm__FieldSelect__Item",intelligentForm__FieldSelect__ItemIndicator:"intelligentForm__FieldSelect__ItemIndicator",intelligentForm__FieldSelect__ItemText:"intelligentForm__FieldSelect__ItemText",intelligentForm__FieldError:"intelligentForm__FieldError",intelligentForm__BotHeading:"intelligentForm__BotHeading",intelligentForm__BotHeading__Icon:"intelligentForm__BotHeading__Icon",intelligentForm__BotHeading__Name:"intelligentForm__BotHeading__Name",intelligentForm__Loading:"intelligentForm__Loading",intelligentForm__ConfidentResponse:"intelligentForm__ConfidentResponse",intelligentForm__ConfidentAnswer:"intelligentForm__ConfidentAnswer",intelligentForm__ConfidentResponseButton:"intelligentForm__ConfidentResponseButton",intelligentForm__ConfidentResponseButton__Icon:"intelligentForm__ConfidentResponseButton__Icon",intelligentForm__ConfidentResponseButton__Label:"intelligentForm__ConfidentResponseButton__Label",intelligentForm__SecondaryForm:"intelligentForm__SecondaryForm",intelligentForm__SecondaryForm__Description:"intelligentForm__SecondaryForm__Description",intelligentForm__SecondaryFormFields:"intelligentForm__SecondaryFormFields",intelligentForm__SecondaryFormSubmit:"intelligentForm__SecondaryFormSubmit",intelligentForm__Error:"intelligentForm__Error",intelligentForm__Sources:"intelligentForm__Sources",intelligentForm__SourcesCaption:"intelligentForm__SourcesCaption",intelligentForm__SourcesList:"intelligentForm__SourcesList",intelligentForm__Source:"intelligentForm__Source",intelligentForm__SourceIcon:"intelligentForm__SourceIcon",intelligentForm__SourceTitle:"intelligentForm__SourceTitle"},n={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},l={...a,...t,...i,..._,...r,...n,...o,...e};exports.SearchBarComponentIds=n;exports.aiChatComponentIds=t;exports.aiSearchComponentIds=i;exports.chatButtonComponentIds=r;exports.componentIDs=l;exports.intelligentFormComponentIds=o;exports.markDownComponentIds=a;exports.miscellanousComponentIds=e;exports.modalComponentIds=_;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},a={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode",markdownInput:"markdownInput"},t={aiChatWrapper:"aiChatWrapper",aiChatConversationLoading:"aiChatConversationLoading",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatExampleQuestions:"aiChatExampleQuestions",aiChatExampleQuestionsLabel:"aiChatExampleQuestionsLabel",aiChatExampleQuestionsList:"aiChatExampleQuestionsList",aiChatExampleQuestion:"aiChatExampleQuestion",aiChatExampleQuestionButton:"aiChatExampleQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessage:"aiChatMessage",aiChatMessageToolbar:"aiChatMessageToolbar",aiChatMessageToolActions:"aiChatMessageToolActions",aiChatMessageToolAction:"aiChatMessageToolAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},i={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Query:"aiAskAITrigger__Query",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiAskAITrigger__IndicatorText:"aiAskAITrigger__IndicatorText",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__Content:"aiSearchResults__Content",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ItemPreview:"aiSearchResults__ItemPreview",aiSearchResults__ItemPreview__Header:"aiSearchResults__ItemPreview__Header",aiSearchResults__ItemPreview__Heading:"aiSearchResults__ItemPreview__Heading",aiSearchResults__ItemPreview__Title:"aiSearchResults__ItemPreview__Title",aiSearchResults__ItemPreview__Title__LinkIcon:"aiSearchResults__ItemPreview__Title__LinkIcon",aiSearchResults__ItemPreview__Breadcrumbs:"aiSearchResults__ItemPreview__Breadcrumbs",aiSearchResults__ItemPreview__BreadcrumbIcon:"aiSearchResults__ItemPreview__BreadcrumbIcon",aiSearchResults__ItemPreview__Body:"aiSearchResults__ItemPreview__Body",aiSearchResults__ItemPreview__Outline:"aiSearchResults__ItemPreview__Outline",aiSearchResults__ItemPreview__Outline__Title:"aiSearchResults__ItemPreview__Outline__Title",aiSearchResults__ItemPreview__Outline__List:"aiSearchResults__ItemPreview__Outline__List",aiSearchResults__ItemPreview__Outline__Item:"aiSearchResults__ItemPreview__Outline__Item",aiSearchResults__ItemPreview__Outline__ItemIcon:"aiSearchResults__ItemPreview__Outline__ItemIcon",aiSearchResults__ItemPreview__Outline__ItemText:"aiSearchResults__ItemPreview__Outline__ItemText",aiSearchResults__ItemPreview__Outline__ItemLinkIcon:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},_={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},r={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent"},o={intelligentForm__Root:"intelligentForm__Root",intelligentForm__Heading:"intelligentForm__Heading",intelligentForm__Content:"intelligentForm__Content",intelligentForm__Content__ScrollArea:"intelligentForm__Content__ScrollArea",intelligentForm__Content__ScrollAreaViewport:"intelligentForm__Content__ScrollAreaViewport",intelligentForm__Content__ScrollAreaScrollbar:"intelligentForm__Content__ScrollAreaScrollbar",intelligentForm__Content__ScrollAreaThumb:"intelligentForm__Content__ScrollAreaThumb",intelligentForm__Content__ScrollAreaCorner:"intelligentForm__Content__ScrollAreaCorner",intelligentForm__Success:"intelligentForm__Success",intelligentForm__SuccessIcon:"intelligentForm__SuccessIcon",intelligentForm__SuccessHeading:"intelligentForm__SuccessHeading",intelligentForm__SuccessMessage:"intelligentForm__SuccessMessage",intelligentForm__PrimaryForm:"intelligentForm__PrimaryForm",intelligentForm__PrimaryForm__Description:"intelligentForm__PrimaryForm__Description",intelligentForm__PrimaryFormFields:"intelligentForm__PrimaryFormFields",intelligentForm__PrimaryFormSubmit:"intelligentForm__PrimaryFormSubmit",intelligentForm__Field:"intelligentForm__Field",intelligentForm__FieldLabel:"intelligentForm__FieldLabel",intelligentForm__FieldText:"intelligentForm__FieldText",intelligentForm__FieldEmail:"intelligentForm__FieldEmail",intelligentForm__FieldFile:"intelligentForm__FieldFile",intelligentForm__FieldTextArea:"intelligentForm__FieldTextArea",intelligentForm__FieldCheckbox:"intelligentForm__FieldCheckbox",intelligentForm__FieldCheckboxIndicator:"intelligentForm__FieldCheckboxIndicator",intelligentForm__FieldSelect:"intelligentForm__FieldSelect",intelligentForm__FieldSelect__Trigger:"intelligentForm__FieldSelect__Trigger",intelligentForm__FieldSelect__Value:"intelligentForm__FieldSelect__Value",intelligentForm__FieldSelect__Icon:"intelligentForm__FieldSelect__Icon",intelligentForm__FieldSelect__Content:"intelligentForm__FieldSelect__Content",intelligentForm__FieldSelect__Viewport:"intelligentForm__FieldSelect__Viewport",intelligentForm__FieldSelect__Item:"intelligentForm__FieldSelect__Item",intelligentForm__FieldSelect__ItemIndicator:"intelligentForm__FieldSelect__ItemIndicator",intelligentForm__FieldSelect__ItemText:"intelligentForm__FieldSelect__ItemText",intelligentForm__FieldError:"intelligentForm__FieldError",intelligentForm__BotHeading:"intelligentForm__BotHeading",intelligentForm__BotHeading__Icon:"intelligentForm__BotHeading__Icon",intelligentForm__BotHeading__Name:"intelligentForm__BotHeading__Name",intelligentForm__Loading:"intelligentForm__Loading",intelligentForm__ConfidentResponse:"intelligentForm__ConfidentResponse",intelligentForm__ConfidentAnswer:"intelligentForm__ConfidentAnswer",intelligentForm__ConfidentResponseButton:"intelligentForm__ConfidentResponseButton",intelligentForm__ConfidentResponseButton__Icon:"intelligentForm__ConfidentResponseButton__Icon",intelligentForm__ConfidentResponseButton__Label:"intelligentForm__ConfidentResponseButton__Label",intelligentForm__SecondaryForm:"intelligentForm__SecondaryForm",intelligentForm__SecondaryForm__Description:"intelligentForm__SecondaryForm__Description",intelligentForm__SecondaryFormFields:"intelligentForm__SecondaryFormFields",intelligentForm__SecondaryFormSubmit:"intelligentForm__SecondaryFormSubmit",intelligentForm__Error:"intelligentForm__Error",intelligentForm__Sources:"intelligentForm__Sources",intelligentForm__SourcesCaption:"intelligentForm__SourcesCaption",intelligentForm__SourcesList:"intelligentForm__SourcesList",intelligentForm__Source:"intelligentForm__Source",intelligentForm__SourceIcon:"intelligentForm__SourceIcon",intelligentForm__SourceTitle:"intelligentForm__SourceTitle"},n={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},l={...a,...t,...i,..._,...r,...n,...o,...e};exports.SearchBarComponentIds=n;exports.aiChatComponentIds=t;exports.aiSearchComponentIds=i;exports.chatButtonComponentIds=r;exports.componentIDs=l;exports.intelligentFormComponentIds=o;exports.markDownComponentIds=a;exports.miscellanousComponentIds=e;exports.modalComponentIds=_;
|
|
@@ -213,7 +213,9 @@ const e = {
|
|
|
213
213
|
aiAskAITrigger: "aiAskAITrigger",
|
|
214
214
|
aiAskAITrigger__Icon: "aiAskAITrigger__Icon",
|
|
215
215
|
aiAskAITrigger__Label: "aiAskAITrigger__Label",
|
|
216
|
+
aiAskAITrigger__Query: "aiAskAITrigger__Query",
|
|
216
217
|
aiAskAITrigger__Indicator: "aiAskAITrigger__Indicator",
|
|
218
|
+
aiAskAITrigger__IndicatorText: "aiAskAITrigger__IndicatorText",
|
|
217
219
|
aiSearchResults: "aiSearchResults",
|
|
218
220
|
aiSearchResults__Loading: "aiSearchResults__Loading",
|
|
219
221
|
aiSearchResults__Empty: "aiSearchResults__Empty",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-primitives",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.71",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"remark-gfm": "^4.0.1",
|
|
61
61
|
"unist-util-visit": "^5.0.0",
|
|
62
62
|
"use-sync-external-store": "^1.4.0",
|
|
63
|
-
"@inkeep/cxkit-color-mode": "0.5.
|
|
64
|
-
"@inkeep/cxkit-theme": "0.5.
|
|
65
|
-
"@inkeep/cxkit-types": "0.5.
|
|
63
|
+
"@inkeep/cxkit-color-mode": "0.5.71",
|
|
64
|
+
"@inkeep/cxkit-theme": "0.5.71",
|
|
65
|
+
"@inkeep/cxkit-types": "0.5.71"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@biomejs/biome": "1.9.4",
|