cortex-react-components 1.60.0 → 1.61.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-V3ILGH7L.mjs → chunk-2524NXMK.mjs} +1 -1
- package/dist/{chunk-53NPXOEB.mjs → chunk-2F5PYZPL.mjs} +1 -1
- package/dist/{chunk-XQK6HIRM.mjs → chunk-2QSKWE6N.mjs} +1 -1
- package/dist/{chunk-5GF6OD5E.mjs → chunk-4LK3TIE3.mjs} +1 -1
- package/dist/{chunk-3QIXHVAJ.mjs → chunk-746DCZCS.mjs} +1 -1
- package/dist/{chunk-3BATRS4C.mjs → chunk-75HYIK2G.mjs} +1 -1
- package/dist/chunk-7PDGAGJL.mjs +4 -0
- package/dist/{chunk-B2A4Z54E.mjs → chunk-7UCSC6TQ.mjs} +1 -1
- package/dist/{chunk-XZ4GLJWK.mjs → chunk-A23PEEZV.mjs} +1 -1
- package/dist/{chunk-NANZQIAC.mjs → chunk-BWKSTZR3.mjs} +1 -1
- package/dist/{chunk-MQ4WHLB7.mjs → chunk-CF4TIOS3.mjs} +1 -1
- package/dist/{chunk-42QD2AUE.mjs → chunk-CPRZ5K4A.mjs} +1 -1
- package/dist/{chunk-PBRC3UOA.mjs → chunk-DAJNZDN6.mjs} +1 -1
- package/dist/{chunk-2SAEUNWP.mjs → chunk-EPIGQZB7.mjs} +1 -1
- package/dist/{chunk-6JKTDBRP.mjs → chunk-GR4IIL5G.mjs} +1 -1
- package/dist/{chunk-R7IAPAL5.mjs → chunk-I5HRFLAL.mjs} +1 -1
- package/dist/{chunk-SX5U74MW.mjs → chunk-KETV2XVN.mjs} +1 -1
- package/dist/{chunk-R6DSQJOJ.mjs → chunk-L5GEQFVY.mjs} +1 -1
- package/dist/{chunk-2IJK3AE7.mjs → chunk-LWTJN5ZP.mjs} +1 -1
- package/dist/{chunk-3FP2BFNJ.mjs → chunk-MDS2IUTY.mjs} +1 -1
- package/dist/{chunk-HUKIRDNO.mjs → chunk-NJ3E7JKU.mjs} +1 -1
- package/dist/{chunk-HXZQNXWO.mjs → chunk-NRWQ2GHW.mjs} +1 -1
- package/dist/{chunk-PU7YW2E5.mjs → chunk-OAKQ2LM4.mjs} +1 -1
- package/dist/{chunk-LYWJ6BKN.mjs → chunk-OJZSH2AS.mjs} +1 -1
- package/dist/{chunk-JPGNI5UZ.mjs → chunk-OXPAGNHO.mjs} +1 -1
- package/dist/{chunk-GYDVBUKO.mjs → chunk-PGSV4TRK.mjs} +1 -1
- package/dist/{chunk-5IRKQ5FF.mjs → chunk-PKGHZ2BA.mjs} +1 -1
- package/dist/{chunk-SUX4NQEU.mjs → chunk-PQWTGKXR.mjs} +1 -1
- package/dist/chunk-Q3G5UAAD.mjs +1 -0
- package/dist/{chunk-64DD3N4S.mjs → chunk-QLIAHL5I.mjs} +1 -1
- package/dist/{chunk-KSZDRBNZ.mjs → chunk-SRVJ6SQ5.mjs} +1 -1
- package/dist/{chunk-4SLLQ7SW.mjs → chunk-STEAJNHZ.mjs} +1 -1
- package/dist/{chunk-DIAK5C43.mjs → chunk-STHWCR5K.mjs} +1 -1
- package/dist/{chunk-YCXQJUPU.mjs → chunk-T26B7SDA.mjs} +1 -1
- package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
- package/dist/{chunk-5L6MQGVE.mjs → chunk-TCBFFIEZ.mjs} +1 -1
- package/dist/{chunk-KJIRY2QH.mjs → chunk-TPGFNNU4.mjs} +1 -1
- package/dist/{chunk-IKKNYMFG.mjs → chunk-TQCKBJA2.mjs} +1 -1
- package/dist/{chunk-SEOL6YZD.mjs → chunk-UL3EGLKN.mjs} +1 -1
- package/dist/{chunk-FYEE5UWZ.mjs → chunk-UVPODMUO.mjs} +1 -1
- package/dist/{chunk-IC57R2EU.mjs → chunk-VXGRJCCM.mjs} +1 -1
- package/dist/chunk-W7KPRGG2.mjs +4 -0
- package/dist/{chunk-NYQNYZ4P.mjs → chunk-XCCQPZ5A.mjs} +1 -1
- package/dist/chunk-YMBNEJBV.mjs +1 -0
- package/dist/{chunk-ZY2PDUUB.mjs → chunk-Z6NED523.mjs} +1 -1
- package/dist/{chunk-VEWTPB7K.mjs → chunk-ZIPHGLLJ.mjs} +1 -1
- package/dist/{chunk-JUX72GHS.mjs → chunk-ZLMUHRDG.mjs} +1 -1
- package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.js +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.stories.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/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/CustomerCard.mjs +1 -1
- package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/EventCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/HeroCard.mjs +1 -1
- package/dist/components/Cards/HeroCard.stories.mjs +1 -1
- package/dist/components/Cards/Image.mjs +1 -1
- package/dist/components/Cards/Image.stories.mjs +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/PricingCard.stories.mjs +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
- package/dist/components/Chat/ChatCardArtefact.stories.mjs +1 -1
- package/dist/components/Chat/ChatCardTask.js +1 -1
- package/dist/components/Chat/ChatCardTask.mjs +1 -1
- package/dist/components/Chat/ChatCardTask.stories.js +1 -1
- package/dist/components/Chat/ChatCardTask.stories.mjs +1 -1
- package/dist/components/Chat/ChatInterfaceMessages.d.ts +1 -1
- package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
- package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
- package/dist/components/Chat/ChatInterfaceMessages.stories.js +14 -14
- package/dist/components/Chat/ChatInterfaceMessages.stories.mjs +1 -1
- package/dist/components/Chat/ChatMessage.d.ts +1 -1
- package/dist/components/Chat/ChatMessage.js +2 -2
- package/dist/components/Chat/ChatMessage.mjs +1 -1
- package/dist/components/Chat/ChatMessage.stories.js +14 -14
- package/dist/components/Chat/ChatMessage.stories.mjs +1 -1
- package/dist/components/Chat/index.js +2 -2
- 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/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.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/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/CalendarView.mjs +1 -1
- package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Categories.stories.mjs +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/Filter.stories.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
- package/dist/components/Menus/RelatedContent.mjs +1 -1
- package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/Container.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/Pagination/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/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/alert.mjs +1 -1
- package/dist/components/ui/alert.stories.mjs +1 -1
- package/dist/components/ui/avatar.mjs +1 -1
- package/dist/components/ui/avatar.stories.mjs +1 -1
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/badge.stories.mjs +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -1
- package/dist/components/ui/breadcrumb.stories.mjs +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/button.stories.mjs +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/card.stories.mjs +1 -1
- package/dist/components/ui/checkbox.mjs +1 -1
- package/dist/components/ui/command.mjs +1 -1
- package/dist/components/ui/command.stories.mjs +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/dialog.stories.mjs +1 -1
- package/dist/components/ui/dropdown-menu.mjs +1 -1
- package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
- package/dist/components/ui/hover-card.mjs +1 -1
- package/dist/components/ui/hover-card.stories.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/input.stories.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
- package/dist/components/ui/inputs/text-input/index.mjs +1 -1
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
- package/dist/components/ui/label.mjs +1 -1
- package/dist/components/ui/label.stories.mjs +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/popover.mjs +1 -1
- package/dist/components/ui/popover.stories.mjs +1 -1
- package/dist/components/ui/scroll-area.mjs +1 -1
- package/dist/components/ui/scroll-area.stories.mjs +1 -1
- package/dist/components/ui/select.mjs +1 -1
- package/dist/components/ui/separator.mjs +1 -1
- package/dist/components/ui/separator.stories.mjs +1 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/sheet.stories.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/skeleton.stories.mjs +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/toast.mjs +1 -1
- package/dist/components/ui/toast.stories.mjs +1 -1
- package/dist/components/ui/toaster.mjs +1 -1
- package/dist/components/ui/toggle-group.mjs +1 -1
- package/dist/components/ui/toggle.mjs +1 -1
- package/dist/components/ui/toggle.stories.mjs +1 -1
- package/dist/components/ui/tooltip.mjs +1 -1
- package/dist/components/ui/tooltip.stories.mjs +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +10 -10
- 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/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/dist/styles/Colors.mjs +1 -1
- package/dist/styles/Colors.stories.mjs +1 -1
- package/dist/utils/getTableOfContents.js +1 -1
- package/dist/utils/getTableOfContents.mjs +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-7LGAYY6V.mjs +0 -1
- package/dist/chunk-FMWUWAED.mjs +0 -4
- package/dist/chunk-LYI57B7F.mjs +0 -4
- package/dist/chunk-WCQXVVVF.mjs +0 -1
package/dist/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-HTVHCBXQ.mjs";import{a as b}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-HTVHCBXQ.mjs";import{a as b}from"../chunk-Q3G5UAAD.mjs";import{a as c}from"../chunk-ZLSF5YXT.mjs";import"../chunk-M6LJ4BNZ.mjs";export{c as AOSInit,a as cn,b as getTableOfContents};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "cortex-react-components",
|
|
3
3
|
"author": "Cortex Reply",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.61.0",
|
|
6
6
|
"description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
|
|
7
7
|
"license": "MPL-2.0",
|
|
8
8
|
"main": "./dist/index.js",
|
package/dist/chunk-7LGAYY6V.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function f(d){let n=0,r=(t,g)=>`${t.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${g}`,e=d.layout.flatMap(t=>{let g=[];return"title"in t&&t.title&&g.push({text:t.title,id:r(t.title,n++),tag:"h2"}),"columns"in t&&Array.isArray(t.columns)&&t.columns.forEach(a=>{if(a.title&&g.push({text:a.title,id:r(a.title,n++),tag:"h2"}),a.richText?.root?.children&&a.richText?.root?.children.length===1){let h=a.richText.root.children.filter(s=>s!==void 0&&s.type==="heading");for(let s of h)s.children[0]&&g.push({text:s.children[0].text??"",id:r(s.children[0].text,n++),tag:s.tag||"h2"})}}),g}),i=l(d.layout);return{tableOfContents:e,contentWithIds:i}}function l(d){let n=(e,i)=>`${e.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,r=0;return d.map(e=>(e.title&&(e.id=n(e.title,r++)),e.columns&&(e.columns=e.columns.map(i=>(i.title&&(i.id=n(i.title,r++)),i.richText&&(i.richText.root.children=i.richText.root.children.filter(t=>t!==void 0).filter(t=>t.children!==void 0&&t.children.length>0).map(t=>(t.type==="heading"&&t.children[0].text&&(t.id=n(t.children[0].text,r++)),t))),i))),e))}export{f as a};
|
package/dist/chunk-FMWUWAED.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as g}from"./chunk-WCQXVVVF.mjs";import{a as l,b as n,c}from"./chunk-4BHOIXJM.mjs";import{jsx as a,jsxs as s}from"react/jsx-runtime";var p={task:g},f=`
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
|
|
3
|
-
<path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
|
|
4
|
-
</svg>`,h=`data:image/svg+xml;utf8,${encodeURIComponent(f)}`,w=({id:i,message:e,currentUser:o,role:v})=>{let t=v==="user",r=t?o?.name||"You":o?.name||"AI Assistant",d=t?o?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(e.type){case"forwarding":return s("div",{className:`flex items-start gap-3 text-primary text-xs ${t?"flex-row-reverse":""}`,children:["Forwarding to ",e?.data?.content]},i);case"text":return s("div",{className:`flex items-start gap-3 ${t?"flex-row-reverse":""}`,children:[t?s(l,{children:[a(n,{src:d,alt:r}),a(c,{children:r.substring(0,2).toUpperCase()})]}):a("img",{src:h,alt:"AI Assistant",className:"w-10 h-10"}),s("div",{className:`grid gap-1.5 ${t?"text-right":""}`,children:[a("div",{className:"flex items-center gap-2",children:a("span",{className:"font-medium",children:r})}),a("div",{className:`rounded-lg p-3 text-sm ${t?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:e?.data?.content})]})]},i);case"image":return s("div",{className:`flex items-start gap-3 ${t?"flex-row-reverse":""}`,children:[s(l,{className:t?"":"ai-border",children:[a(n,{src:d,alt:r}),a(c,{children:r.substring(0,2).toUpperCase()})]}),s("div",{className:`grid gap-1.5 ${t?"text-right":""}`,children:[a("div",{className:"flex items-center gap-2",children:a("span",{className:"font-medium",children:r})}),a("img",{src:e?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${t?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},i);case"tool-invocation":if(e.data&&e.data.tool){let m=p[e.data.tool];return m?a("div",{className:"mt-2",children:a(m,{data:e.data})}):(console.warn(`Tool ${e.data.tool} is not defined.`),a("div",{className:"mt-2",children:"......"}))}}};export{w as a};
|
package/dist/chunk-LYI57B7F.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as m}from"./chunk-FMWUWAED.mjs";import{a as i}from"./chunk-6T322YHB.mjs";import{a as o,b as l,c}from"./chunk-4BHOIXJM.mjs";import{useState as a,useEffect as f,useRef as g}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";function P({messages:d,contextType:v,currentUser:b,businessFunctions:h}){let[n,x]=a(d),[y,N]=a(""),[u,A]=a(!1),r=g(null),[I,C]=a(null);return f(()=>{if(r.current){let t=r.current.querySelector("[data-radix-scroll-area-viewport]");t&&(t.scrollTop=t.scrollHeight)}},[n]),e("div",{className:"flex flex-col h-full overflow-hidden",children:e(i,{className:"container flex-1 p-4",ref:r,children:s("div",{className:"space-y-6",children:[n.length===0&&e("div",{className:"flex items-center justify-center h-full pt-60",children:s("div",{className:"text-center max-w-md",children:[e("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),e("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),u&&s("div",{className:"flex items-start gap-3",children:[s(o,{className:"ai-border",children:[e(l,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),e(c,{children:"AI"})]}),s("div",{className:"grid gap-1.5",children:[e("div",{className:"flex items-center gap-2",children:e("span",{className:"font-medium",children:"AI Assistant"})}),e("div",{className:"rounded-lg p-3 text-sm bg-muted",children:s("div",{className:"flex space-x-2",children:[e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),n.map((t,p)=>e(m,{...t},p))]})})})}export{P as a};
|
package/dist/chunk-WCQXVVVF.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x}from"./chunk-LTTO57ZK.mjs";import{b as c}from"./chunk-J2IHT57D.mjs";import{a as m,b as g,c as u,d as f,e as p,f as C}from"./chunk-4YFMDLHL.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{Clock as S}from"lucide-react";import{formatDistanceToNow as v}from"date-fns";import{jsx as e,jsxs as r}from"react/jsx-runtime";var P=a=>{switch(a){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},j=a=>{switch(a){case"inProgress":return"In Progress";default:return a.charAt(0).toUpperCase()+a.slice(1)}};function $({data:a}){let{id:o,system:k,fetchLatest:b,taskData:N,error:h}=a||{};if(!o)return null;let t=null,n=!0,d=h,w=b||!0;if(t=N||{id:o,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},w){let{task:s,loading:T,error:L}=x({taskId:o,system:k});t=s,n=T,d=L}else n=!1;let y=P(t?.status||"todo"),D=j(t?.status||"todo"),i=t?.dateLogged||new Date().toISOString();try{let s=new Date(t?.dateLogged||"");isNaN(s.getTime())||(i=v(s,{addSuffix:!0}))}catch{}return r(m,{className:l("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[r(g,{className:"pb-2",children:[r("div",{className:"flex justify-between items-start",children:[e(u,{className:"text-lg font-semibold",children:n?"Loading...":t?.name||"Task"}),e(c,{className:`${y}`,children:D})]}),t?.project&&r(f,{className:"text-sm text-gray-500",children:["Project: ",t.project.name]})]}),e(p,{className:"pb-2",children:n?e("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?e("p",{className:"text-sm text-red-500",children:"Error loading task details"}):e("p",{className:"text-sm text-foreground",children:t?.description||"......."})}),e(C,{className:"pt-2 flex items-center justify-between",children:r("div",{className:"flex items-center text-xs text-gray-500",children:[e(S,{className:"h-3 w-3 mr-1"}),r("span",{children:["Created ",i]}),e("span",{className:"mx-2",children:"\u2022"}),r("span",{children:["Task #",o]})]})})]})}export{$ as a};
|