cortex-react-components 2.6.1 → 2.7.0
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-NPGGDQ6F.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-AFQBDAWS.mjs → chunk-2L2SAVX6.mjs} +1 -1
- package/dist/{chunk-B2TBKNIJ.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-RRLXKDET.mjs → chunk-2R2QNFSX.mjs} +1 -1
- package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
- package/dist/{chunk-FX6IXEMQ.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
- package/dist/chunk-6OCLRAHU.mjs +1 -0
- package/dist/{chunk-RY4C3J33.mjs → chunk-77PCUNUC.mjs} +1 -1
- package/dist/{chunk-SPAOEUCG.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-M527EJIX.mjs → chunk-AMVJPDM3.mjs} +1 -1
- package/dist/{chunk-KY3ELFX5.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-75WE6ZXB.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
- package/dist/{chunk-QWFFSMKK.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-FRXZ2OKW.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-57PJ7CHJ.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-VBSFVJM5.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-S4ES6P3Y.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-N52FSTLG.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/chunk-HME6CJ6L.mjs +1 -0
- package/dist/{chunk-MPTT6GRI.mjs → chunk-HPYNP5UQ.mjs} +1 -1
- package/dist/{chunk-WB2Y7HTT.mjs → chunk-J3UUZDJ7.mjs} +1 -1
- package/dist/{chunk-XD3TBE5O.mjs → chunk-JHYWAL24.mjs} +1 -1
- package/dist/{chunk-XDQAH5AP.mjs → chunk-JUXHCP4V.mjs} +1 -1
- package/dist/{chunk-BDDEMCAH.mjs → chunk-MFCVMJBO.mjs} +1 -1
- package/dist/{chunk-RUZVSK25.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/{chunk-AEFWTCCE.mjs → chunk-O24GFE6Q.mjs} +1 -1
- package/dist/{chunk-Q7KKN6MH.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-3DYGB2K5.mjs → chunk-PIOFHZSJ.mjs} +1 -1
- package/dist/{chunk-2VOOH4YJ.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-TUACRDU3.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
- package/dist/{chunk-2SAKLSZ4.mjs → chunk-PZXOH6CZ.mjs} +1 -1
- package/dist/{chunk-STX6KQP5.mjs → chunk-RRME4EHD.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-75XBZHOC.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/{chunk-SEXSYCWD.mjs → chunk-URYIYEGY.mjs} +1 -1
- package/dist/{chunk-3ZF4TV4N.mjs → chunk-X5FT4XO6.mjs} +1 -1
- package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
- package/dist/{chunk-FOEPKY7T.mjs → chunk-XW52WZ2B.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/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/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/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.d.ts +3 -3
- package/dist/components/Chat/ChatInterface.js +2 -2
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +3 -3
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/PartText.d.ts +4 -0
- package/dist/components/Chat/PartTypes/PartText.js +1 -0
- package/dist/components/Chat/PartTypes/PartText.mjs +1 -0
- package/dist/components/Chat/PartTypes/index.d.ts +1 -0
- package/dist/components/Chat/PartTypes/index.js +4 -4
- package/dist/components/Chat/PartTypes/index.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +8 -8
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +29 -29
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +3 -3
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +2 -2
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +3 -3
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +5 -5
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.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/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/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/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/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/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/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +12 -12
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/index.js +16 -16
- 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/BlogListSection.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 +3 -1
- package/dist/chunk-FUEUJPNZ.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunk-6OCLRAHU.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as PartText};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var
|
|
4
|
+
"use strict";var M=Object.create;var p=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var P=(e,t)=>{for(var o in t)p(e,o,{get:t[o],enumerable:!0})},h=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of O(t))!I.call(e,r)&&r!==o&&p(e,r,{get:()=>t[r],enumerable:!(s=R(t,r))||s.enumerable});return e};var x=(e,t,o)=>(o=e!=null?M(L(e)):{},h(t||!e||!e.__esModule?p(o,"default",{value:e,enumerable:!0}):o,e)),S=e=>h(p({},"__esModule",{value:!0}),e);var F={};P(F,{PartAuthenticateTool:()=>z,PartText:()=>N});module.exports=S(F);var v=x(require("react"));var m=require("react"),n=require("react/jsx-runtime"),y=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:s,description:r="This endpoint requires authentication to sync functions."})=>{let[c,d]=(0,m.useState)(!1),[g,i]=(0,m.useState)(""),A=()=>{if(!t){i("No authentication URL provided");return}d(!0),i("");try{let l=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!l){i("Popup blocked. Please allow popups for this site and try again."),d(!1);return}let f=setInterval(()=>{try{l.closed&&(clearInterval(f),d(!1),s(),o())}catch{}},1e3);setTimeout(()=>{l.closed||(l.close(),clearInterval(f),d(!1),i("Authentication timed out. Please try again."))},6e5)}catch{i("Failed to open authentication window"),d(!1)}},C=async()=>{try{await navigator.clipboard.writeText(t),i("")}catch{i("Failed to copy URL to clipboard")}};return e?(0,n.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,n.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,n.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,n.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:r}),g&&(0,n.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:g}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("button",{onClick:A,disabled:c||!t,className:`
|
|
5
5
|
px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
|
|
6
|
-
${
|
|
7
|
-
`,children:
|
|
6
|
+
${c||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
|
|
7
|
+
`,children:c?"Authenticating...":"Authenticate"}),(0,n.jsx)("button",{onClick:C,disabled:!t,className:`
|
|
8
8
|
px-4 py-2 text-white border-none rounded text-sm
|
|
9
9
|
${t?"bg-blue-600 hover:bg-blue-700 cursor-pointer":"bg-gray-400 cursor-not-allowed"}
|
|
10
|
-
`,children:"Copy URL"}),(0,
|
|
10
|
+
`,children:"Copy URL"}),(0,n.jsx)("button",{onClick:o,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var z=({toolPart:e,index:t,addToolResult:o})=>{let[s,r]=v.default.useState(!0),c=()=>{o(e.input?.toolCallId,e.input?.tool,"Authentication completed"),r(!1)};switch(e.state){case"input-available":return(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsx)(y,{isOpen:s,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>r(!1),onSuccess:c,description:e.output?.reason||e.input?.reason}),!s&&(0,n.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,n.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,n.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,n.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);default:return null}};var k=require("marked"),w=x(require("react-markdown"));function B(e){return k.marked.lexer(e).map(o=>o.raw)}var T=(0,m.memo)(({content:e})=>(0,n.jsx)(w.default,{children:e}),(e,t)=>e.content===t.content);T.displayName="MemoizedMarkdownBlock";var N=(0,m.memo)(({content:e,id:t})=>(0,m.useMemo)(()=>B(e),[e]).map((s,r)=>(0,n.jsx)(T,{content:s},`${t}-block_${r}`)));N.displayName="PartText";0&&(module.exports={PartAuthenticateTool,PartText});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-SIL7AP7H.mjs";import"../../../chunk-QM5FOQHG.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as PartAuthenticateTool};
|
|
1
|
+
import{a}from"../../../chunk-SIL7AP7H.mjs";import"../../../chunk-QM5FOQHG.mjs";import{a as b}from"../../../chunk-6OCLRAHU.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as PartAuthenticateTool,b as PartText};
|