cortex-react-components 2.18.0 → 2.18.1
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/{chunk-WIRQ5IRT.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-ZEALRBXW.mjs → chunk-3ANJOET7.mjs} +1 -1
- package/dist/{chunk-7R47MHQE.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-3ZQFJ5WD.mjs → chunk-5KO67YNF.mjs} +1 -1
- package/dist/{chunk-UECG3SCG.mjs → chunk-5PJLI46T.mjs} +1 -1
- package/dist/{chunk-ITJH72Z2.mjs → chunk-75WE6ZXB.mjs} +1 -1
- package/dist/chunk-7JDMW5R3.mjs +4 -0
- package/dist/{chunk-7IARWH7M.mjs → chunk-7JX3L2MA.mjs} +1 -1
- package/dist/{chunk-CXOVEABI.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-75F3LJMX.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-V6GK2FJG.mjs → chunk-CQAMS7RZ.mjs} +1 -1
- package/dist/{chunk-LX3D4J7I.mjs → chunk-DEVPAZSJ.mjs} +1 -1
- package/dist/{chunk-GHOL5L32.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-3Y7QG6VP.mjs → chunk-FEWOSBUJ.mjs} +1 -1
- package/dist/{chunk-TTWEHUP5.mjs → chunk-FMV74RKL.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-6R6NYDWN.mjs → chunk-HGL6JHJQ.mjs} +1 -1
- package/dist/{chunk-C4RWEPVF.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
- package/dist/{chunk-WHDV4REI.mjs → chunk-IG36QUEI.mjs} +1 -1
- package/dist/{chunk-5EQXJS23.mjs → chunk-JYPPWTB3.mjs} +1 -1
- package/dist/{chunk-PWFVXG44.mjs → chunk-KVLUT4U2.mjs} +1 -1
- package/dist/{chunk-L5NPH5RX.mjs → chunk-LLP4EFT4.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/{chunk-KWYJ3XZI.mjs → chunk-O24GFE6Q.mjs} +1 -1
- package/dist/{chunk-GTZJWMZR.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/chunk-QADUAIFH.mjs +1 -0
- package/dist/{chunk-D6K6RO5P.mjs → chunk-R5P4ZICA.mjs} +1 -1
- package/dist/{chunk-EM3T2XYC.mjs → chunk-R6AYIVIR.mjs} +1 -1
- package/dist/{chunk-P55W6AFU.mjs → chunk-RIRZRO6U.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-RSDUFAIB.mjs → chunk-T5HJS6OF.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/chunk-UA2E23AS.mjs +4 -0
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-6PS55VJZ.mjs → chunk-VDFRWGXR.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-HUYTXZLC.mjs → chunk-WYLCN44C.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.js +1 -1
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.js +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
- package/dist/components/Chat/PartTypes/MessageHandler.js +3 -3
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/Tool.js +1 -1
- package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.js +1 -1
- package/dist/components/Chat/PartTypes/index.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-GXRWKWKJ.mjs +0 -1
- package/dist/chunk-UGBDJDPW.mjs +0 -4
- package/dist/chunk-ZN7NNMB7.mjs +0 -4
package/dist/chunk-GXRWKWKJ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C}from"./chunk-EH3PJU6C.mjs";import{a as v}from"./chunk-V5VE3EIY.mjs";import{a as T,b,c as w}from"./chunk-5Y6FKL5W.mjs";import{a as y}from"./chunk-EW6KWAHS.mjs";import{a as h,b as k,c as P,d as I,e as R}from"./chunk-UGBDJDPW.mjs";import{a as x}from"./chunk-YPZAYXNQ.mjs";import{a as g}from"./chunk-RL6365DN.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{b as N}from"./chunk-CSBGSBEU.mjs";import{a as l,b as u,c,e as d}from"./chunk-YO3GQYRJ.mjs";import{FileText as U,Image as E,File as L,Download as S,ExternalLink as $}from"lucide-react";import{Fragment as D,jsx as t,jsxs as r}from"react/jsx-runtime";var A=n=>n.startsWith("image/")?t(E,{className:"h-4 w-4"}):n.startsWith("text/")?t(U,{className:"h-4 w-4"}):t(L,{className:"h-4 w-4"}),tt=({message:n,addToolResult:p,status:B,messages:H})=>n.parts.map((a,s)=>{if(a.type==="text")return t(y,{children:a.text},`${s}`);if(a.type==="file"){let e=a;return t("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:r("div",{className:"flex items-center gap-2",children:[A(e.mediaType||"application/octet-stream"),t("div",{className:"flex-1 min-w-0",children:t("p",{className:"text-sm font-medium truncate",children:e.filename||e.url?.split("/").pop()||"File"})}),e.url&&t(m,{variant:"ghost",size:"sm",onClick:()=>window.open(e.url,"_blank"),className:"h-8 w-8 p-0",children:t(S,{className:"h-4 w-4"})})]})},s)}if(a.type.startsWith("tool-")){let e=a,o=a.type.replace("tool-","");if(o==="task")switch(e.state){case"input-available":return t("div",{className:"text-sm opacity-70",children:"Loading task..."},s);case"output-available":return t("div",{className:"mb-2",children:t(g,{data:{id:e.output?.id||e.input?.id,fetchLatest:!1,taskData:e.output||e.input}})},s);case"output-error":return r("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},s);default:return null}if(a.type==="tool-requestEndpointLogin")return t("div",{className:"mb-2",children:t(v,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(a.type==="tool-authenticate")return t("div",{className:"mb-2",children:t(v,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(a.type==="tool-requestApproval")return t("div",{className:"mb-2",children:t(C,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(o==="artefact")switch(e.state){case"input-available":return t("div",{className:"text-sm opacity-70",children:"Loading artefact..."},s);case"output-available":return t("div",{className:"mb-2",children:t(x,{artefact:e.output?.description||"",taskId:e.output?.id||e.input?.id,taskData:e.output||e.input})},s);case"output-error":return r("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},s);default:return null}return t("div",{className:"mb-2",children:r(l,{className:"w-full max-w-md",children:[t(u,{children:t(c,{className:"text-lg",children:o})}),r(d,{children:[e.state==="input-available"&&r("p",{className:"text-sm",children:["Processing ",o,"..."]}),e.state==="output-available"&&t("pre",{className:"text-sm",children:JSON.stringify(e.output,null,2)}),e.state==="output-error"&&r("p",{className:"text-sm text-red-500",children:["Error: ",e.errorText]})]})]})},s)}if(a.type.startsWith("data-")){let e=a,o=a.type.replace("data-","");return o==="reference"?t("div",{className:"mb-2",children:t(l,{className:"w-full",children:t(d,{className:"p-4",children:t("div",{className:"space-y-2",children:e.data?.references?.map((i,f)=>r("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[t(N,{variant:"outline",children:i.type||"link"}),r("div",{className:"flex-1 min-w-0",children:[t("p",{className:"text-sm font-medium truncate",children:i.title}),i.description&&t("p",{className:"text-xs text-muted-foreground truncate",children:i.description})]}),i.url&&t(m,{variant:"ghost",size:"sm",onClick:()=>window.open(i.url,"_blank"),className:"h-8 w-8 p-0",children:t($,{className:"h-4 w-4"})})]},f))})})})},s):o==="menu"?t("div",{className:"mb-2",children:r(l,{className:"w-full",children:[t(u,{children:t(c,{className:"text-lg",children:e.data?.title})}),t(d,{children:t("div",{className:"space-y-2",children:e.data?.items?.map((i,f)=>t(m,{variant:"outline",className:"w-full justify-start",onClick:i.action,children:r("div",{className:"text-left",children:[t("p",{className:"font-medium",children:i.label}),i.description&&t("p",{className:"text-xs text-muted-foreground",children:i.description})]})},f))})})]})},s):t("div",{className:"mb-2",children:r(l,{className:"w-full max-w-md",children:[t(u,{children:t(c,{className:"text-lg",children:o})}),t(d,{children:t("pre",{className:"text-sm",children:JSON.stringify(e.data,null,2)})})]})},s)}return a.type==="reasoning"?r(T,{className:"w-full",isStreaming:B==="streaming"&&s===n.parts.length-1&&n.id===H.at(-1)?.id,children:[t(b,{}),t(w,{children:a.text})]},`${s}`):a.type==="dynamic-tool"?r(h,{defaultOpen:!0,children:[t(k,{type:`tool-${a.toolName}`,state:a.state}),r(P,{children:[t(I,{input:a.input}),t(R,{output:a.output,errorText:a.errorText})]})]},`${n.id}-${s}`):r(D,{children:["Unknown part type: ",a.type]})});export{tt as a};
|
package/dist/chunk-UGBDJDPW.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as n}from"./chunk-ZN7NNMB7.mjs";import{a as i,b as d,c}from"./chunk-YNCJATT7.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as s}from"./chunk-MDJREBVI.mjs";import{CheckCircleIcon as u,ChevronDownIcon as g,CircleIcon as f,ClockIcon as x,WrenchIcon as v,XCircleIcon as C}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";var w=({className:t,...o})=>e(i,{className:s("not-prose mb-4 w-full rounded-md border",t),...o}),P=t=>{let o={"input-streaming":"Pending","input-available":"Running","output-available":"Completed","output-error":"Error"};return r(m,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":e(f,{className:"size-4"}),"input-available":e(x,{className:"size-4 animate-pulse"}),"output-available":e(u,{className:"size-4 text-green-600"}),"output-error":e(C,{className:"size-4 text-red-600"})}[t],o[t]]})},h=({className:t,type:o,state:a,...l})=>r(d,{className:s("flex w-full items-center justify-between gap-4 p-3",t),...l,children:[r("div",{className:"flex items-center gap-2",children:[e(v,{className:"size-4 text-muted-foreground"}),e("span",{className:"font-medium text-sm",children:o}),P(a)]}),e(g,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),U=({className:t,...o})=>e(c,{className:s("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",t),...o}),z=({className:t,input:o,...a})=>r("div",{className:s("space-y-2 overflow-hidden p-4",t),...a,children:[e("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),e("div",{className:"rounded-md bg-muted/50",children:e(n,{code:JSON.stringify(o,null,2),language:"json"})})]}),O=({className:t,output:o,errorText:a,...l})=>{if(!(o||a))return null;let p=e("div",{children:o});return typeof o=="object"?p=e(n,{code:JSON.stringify(o,null,2),language:"json"}):typeof o=="string"&&(p=e(n,{code:o,language:"json"})),r("div",{className:s("space-y-2 p-4",t),...l,children:[e("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:a?"Error":"Result"}),r("div",{className:s("overflow-x-auto rounded-md text-xs [&_table]:w-full",a?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[a&&e("div",{children:a}),p]})]})};export{w as a,h as b,U as c,z as d,O as e};
|
package/dist/chunk-ZN7NNMB7.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{CheckIcon as f,CopyIcon as v}from"lucide-react";import{createContext as y,useContext as b,useState as k}from"react";import{Prism as c}from"react-syntax-highlighter";import{oneDark as x,oneLight as B}from"react-syntax-highlighter/dist/esm/styles/prism";import{jsx as o,jsxs as N}from"react/jsx-runtime";var m=y({code:""}),I=({code:e,language:r,showLineNumbers:t=!1,className:i,children:n,...a})=>o(m.Provider,{value:{code:e},children:o("div",{className:d("relative w-full overflow-hidden rounded-md border bg-background text-foreground",i),...a,children:N("div",{className:"relative",children:[o(c,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:r,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:B,children:e}),o(c,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:r,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:x,children:e}),n&&o("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:n})]})})}),z=({onCopy:e,onError:r,timeout:t=2e3,children:i,className:n,...a})=>{let[p,s]=k(!1),{code:u}=b(m),g=async()=>{if(typeof window>"u"||!navigator.clipboard.writeText){r?.(new Error("Clipboard API not available"));return}try{await navigator.clipboard.writeText(u),s(!0),e?.(),setTimeout(()=>s(!1),t)}catch(C){r?.(C)}},h=p?f:v;return o(l,{className:d("shrink-0",n),onClick:g,size:"icon",variant:"ghost",...a,children:i??o(h,{size:14})})};export{I as a,z as b};
|