cortex-react-components 2.23.1 → 2.24.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-GZ7FGBTR.mjs → chunk-5EM6P7SU.mjs} +1 -1
- package/dist/{chunk-UECG3SCG.mjs → chunk-6DDMDQLX.mjs} +1 -1
- package/dist/{chunk-TSFX33PR.mjs → chunk-BGQC6IQK.mjs} +1 -1
- package/dist/{chunk-XJKRA2AE.mjs → chunk-CMU5JFUC.mjs} +1 -1
- package/dist/chunk-GCIEF545.mjs +4 -0
- package/dist/{chunk-INBT5E6T.mjs → chunk-GPFPTU7U.mjs} +1 -1
- package/dist/{chunk-LEUI66J6.mjs → chunk-GULRIPMU.mjs} +1 -1
- package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
- package/dist/chunk-ICFBQXVC.mjs +4 -0
- package/dist/{chunk-CQAMS7RZ.mjs → chunk-JOG27B7P.mjs} +1 -1
- package/dist/chunk-M7KIL6AS.mjs +9 -0
- package/dist/{chunk-B7AXSCTN.mjs → chunk-M7ZG6HLI.mjs} +1 -1
- package/dist/{chunk-JTMIQ7MK.mjs → chunk-NXAQ6ESJ.mjs} +1 -1
- package/dist/{chunk-I4GYQZGM.mjs → chunk-QY3UXH77.mjs} +1 -1
- package/dist/{chunk-L5NPH5RX.mjs → chunk-RQLUMNJE.mjs} +1 -1
- package/dist/{chunk-IAFKJKBN.mjs → chunk-SDKKYDWS.mjs} +1 -1
- package/dist/{chunk-W4OD5UUE.mjs → chunk-UTJZH3X5.mjs} +1 -1
- package/dist/{chunk-AF3FLXBA.mjs → chunk-VATGKKXW.mjs} +1 -1
- package/dist/chunk-VTFO5GXK.mjs +4 -0
- package/dist/{chunk-AHMDJQZI.mjs → chunk-XDW3TPGL.mjs} +1 -1
- package/dist/{chunk-OWC4BAX6.mjs → chunk-YJ7XPZWV.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/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.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +6 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +6 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +6 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +6 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.js +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +6 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-edit.js +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.js +3 -3
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.js +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/file-edit.css +1 -0
- package/dist/components/Foundary/file-edit.d.ts +9 -0
- package/dist/components/Foundary/file-edit.js +9 -0
- package/dist/components/Foundary/file-edit.mjs +2 -0
- package/dist/components/Foundary/index.js +6 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.js +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/test-data.js +1 -1
- package/dist/components/Foundary/test-data.mjs +1 -1
- package/dist/components/Foundary/types.d.ts +42 -0
- 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/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/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/FileView.d.ts +2 -1
- package/dist/components/Projects/FileView.js +6 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +6 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +6 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/file-list.d.ts +2 -2
- package/dist/components/Projects/file-list.js +6 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +6 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +25 -20
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +35 -30
- 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/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-JXQRVEQB.mjs +0 -4
- package/dist/chunk-NAGBKKTZ.mjs +0 -4
- package/dist/chunk-PZFYJ5FS.mjs +0 -4
package/dist/chunk-NAGBKKTZ.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as d}from"./chunk-JXQRVEQB.mjs";import{a as k}from"./chunk-DCOFQFVJ.mjs";import{a as A}from"./chunk-Z22NSJMF.mjs";import{a as x}from"./chunk-FGEFYI5E.mjs";import{a as T}from"./chunk-L5JPAKPM.mjs";import{b as F}from"./chunk-ZUA4KNIR.mjs";import{a as u,e as g}from"./chunk-YO3GQYRJ.mjs";import{useEffect as V,useRef as j,useState as o}from"react";import{Plus as z,Search as G,File as W,Filter as q}from"lucide-react";import{motion as J,AnimatePresence as K}from"motion/react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function Q({initialFiles:s=[],onFileAdd:D,onFileEdit:S,onFileDelete:E,onFileClick:H,compactView:c=!1,className:$}){let[P,h]=o(s),[n,v]=o(""),[y,B]=o("all"),[r,M]=o("all"),[O,C]=o(!1),b=j(""),I=l=>l.map(i=>`${i.id}-${new Date(i.createdAt).getTime()}-${new Date(i.updatedAt).getTime()}`).join("-");V(()=>{let l=I(s);l!==b.current&&(h(s),b.current=l)},[s]);let a=P.filter(l=>l.name.toLowerCase().includes(n.toLowerCase())),N=a.slice(0,10),L=a.filter(Boolean),w=()=>{C(!0)},m=l=>{S?.(l)},p=l=>{console.log("deleting file",l),h(i=>i.filter(U=>U.name!==l.name)),E?.(l.id.toString())},f=l=>{H?.(l)},R=()=>{v(""),B("all")};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(K,{mode:"wait",children:e(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${$||""}`,children:[e(A,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:w},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),e(u,{children:e(g,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:t("div",{className:"relative",children:[e(G,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(T,{placeholder:"Search files...",value:n,onChange:l=>v(l.target.value),className:"pl-9"})]})}),(n||y!=="all")&&t(F,{variant:"outline",onClick:R,className:"gap-2",children:[e(q,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[e(x,{activeTab:r,onTabChange:M,tabOptions:[{value:"all",label:`All Files (${a.length})`},{value:"recent",label:`Recent (${N.length})`}],maxWidth:"500px",gridCols:3}),r==="all"&&e(d,{files:a,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!c}),r==="recent"&&e(d,{files:N,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!c}),r==="shared"&&e(d,{files:L,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!c})]}),a.length===0&&e(u,{children:e(g,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[e(W,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:n||y!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),t(F,{onClick:w,className:"gap-2",children:[e(z,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")}),e(k,{isOpen:O,onClose:()=>C(!1),onAddFile:D})]})}export{Q as a};
|
package/dist/chunk-PZFYJ5FS.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as c}from"./chunk-LEUI66J6.mjs";import{d as m}from"./chunk-RKS7CWAP.mjs";import{a as s}from"./chunk-BZEGLKRZ.mjs";import{AutoFocusPlugin as p}from"@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin";import{LexicalComposer as g}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposer";import{ContentEditable as x}from"@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as f}from"@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary";import{HistoryPlugin as C}from"@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin";import{RichTextPlugin as E}from"@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin";import{ListPlugin as b}from"@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin";import{ListItemNode as v,ListNode as P}from"@payloadcms/richtext-lexical/lexical/list";import{HeadingNode as L}from"@payloadcms/richtext-lexical/lexical/rich-text";import{OnChangePlugin as N}from"@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin";import{useEffect as u}from"react";import{useLexicalComposerContext as R}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{Fragment as T,jsx as t,jsxs as a}from"react/jsx-runtime";var y=({setValue:n,value:i,name:l,editable:e=!0})=>{let[o]=R(),r=d=>{d.read(()=>{let h=d.toJSON();n?.(()=>h)})};return u(()=>{o.setEditable(e)},[e]),u(()=>{i&&o.update(()=>{o.setEditorState(o.parseEditorState(i))})},[]),t("div",{className:"w-full",children:a("div",{className:" ",children:[e&&t(c,{}),a("div",{className:"px-4 my-4 border-l border-[#222222]",children:[t(E,{contentEditable:t(x,{name:l,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:f}),e&&a(T,{children:[t(C,{}),t(p,{}),t(b,{}),t(N,{onChange:r}),t(m,{})]})]})]})})},S=({setValue:n,value:i,name:l,editable:e=!0})=>t(g,{initialConfig:{namespace:"Lexical editor",nodes:[P,v,L,s],onError(r){throw console.error("Lexical error:",r),r},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:t(y,{value:i,setValue:n,name:l,editable:e})}),Q=S;export{Q as a};
|