cortex-react-components 3.3.0 → 4.0.2
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-SSDRUPMS.mjs → chunk-2BKXIIFJ.mjs} +183 -36
- package/dist/{chunk-XFJPL6FS.mjs → chunk-3DWDGYDG.mjs} +1 -1
- package/dist/{chunk-WX5QYPGU.mjs → chunk-3K6EVFOW.mjs} +1 -1
- package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
- package/dist/{chunk-JFXWP3RQ.mjs → chunk-3RYHYKVQ.mjs} +1 -1
- package/dist/{chunk-VMYEV3FG.mjs → chunk-4YRR74Y4.mjs} +1 -1
- package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
- package/dist/{chunk-I4MTJN23.mjs → chunk-6A7T3O6T.mjs} +6 -5
- package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
- package/dist/{chunk-EJJITIA3.mjs → chunk-6LF4K7ER.mjs} +4 -4
- package/dist/{chunk-URC56DLC.mjs → chunk-6S7EQDLL.mjs} +1 -1
- package/dist/{chunk-EC5I4CIO.mjs → chunk-7HHLKQE4.mjs} +2 -2
- package/dist/{chunk-RFQKQLNT.mjs → chunk-7LM2P6N3.mjs} +4 -4
- package/dist/{chunk-IJ3E6ZXF.mjs → chunk-AZ5MV7NO.mjs} +1 -1
- package/dist/{chunk-V6YEUAIH.mjs → chunk-CV7GOXGO.mjs} +2 -2
- package/dist/{chunk-L4SNPNYU.mjs → chunk-D3AHBPI5.mjs} +2 -2
- package/dist/{chunk-FABRRO2B.mjs → chunk-DRLNETNN.mjs} +1 -1
- package/dist/{chunk-OXP3LJ53.mjs → chunk-DVWMM7AI.mjs} +4 -4
- package/dist/{chunk-HUZCVQP7.mjs → chunk-EEVXIKNB.mjs} +1 -1
- package/dist/{chunk-Z54HOXSV.mjs → chunk-ETV6EEYB.mjs} +1 -1
- package/dist/{chunk-EDYFH3EJ.mjs → chunk-F6SQTC6R.mjs} +4 -4
- package/dist/{chunk-IVOPNDSN.mjs → chunk-G5N5MCLS.mjs} +5 -5
- package/dist/{chunk-NVSA5BFC.mjs → chunk-GR45UN4U.mjs} +2 -2
- package/dist/{chunk-QETXXFRW.mjs → chunk-HNVHGBNE.mjs} +1 -1
- package/dist/{chunk-QPO45D6F.mjs → chunk-I2MVZVXE.mjs} +1 -1
- package/dist/chunk-IC4N2KYF.mjs +401 -0
- package/dist/{chunk-MZVEK6A5.mjs → chunk-IM5B557Z.mjs} +16 -16
- package/dist/{chunk-Q6CUUDUR.mjs → chunk-IQ67MHAY.mjs} +1 -1
- package/dist/{chunk-OCVHSV6Z.mjs → chunk-IWQEM5KO.mjs} +2 -2
- package/dist/{chunk-TDOOQIMQ.mjs → chunk-J5GM5CJK.mjs} +2 -2
- package/dist/chunk-JCSRFM37.mjs +595 -0
- package/dist/{chunk-QMFGV3M5.mjs → chunk-JOGVCBYP.mjs} +1 -1
- package/dist/{chunk-4P5Q6UXF.mjs → chunk-JWMQOARK.mjs} +1 -1
- package/dist/{chunk-DSVXGGGV.mjs → chunk-K5ZNBHQO.mjs} +1 -1
- package/dist/{chunk-YY4VLYYH.mjs → chunk-KJVAS4I7.mjs} +26 -11
- package/dist/{chunk-XZFMQXYJ.mjs → chunk-KMGTUNRZ.mjs} +1 -1
- package/dist/{chunk-ETG5N2OG.mjs → chunk-KYY7BMXI.mjs} +1 -1
- package/dist/{chunk-SSE3MQDP.mjs → chunk-LRMDRQRJ.mjs} +2 -2
- package/dist/{chunk-LGGOEYDB.mjs → chunk-LRTEGIZ7.mjs} +10 -10
- package/dist/{chunk-XGHUG2WQ.mjs → chunk-MDG2I4PB.mjs} +1 -1
- package/dist/{chunk-HMVIQFLN.mjs → chunk-N5HTSJLI.mjs} +1 -1
- package/dist/{chunk-IDMTHUC4.mjs → chunk-N5Q2DYUR.mjs} +1 -1
- package/dist/{chunk-7ZCW4XMR.mjs → chunk-NSYYRG6A.mjs} +1 -1
- package/dist/{chunk-CONYNX7Y.mjs → chunk-NUAJQK4H.mjs} +1 -1
- package/dist/{chunk-LM4J7254.mjs → chunk-OR3XMMEK.mjs} +9 -9
- package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
- package/dist/{chunk-RC6YHGVV.mjs → chunk-PE7KJR4A.mjs} +1 -1
- package/dist/{chunk-LTDXFLCW.mjs → chunk-QDO6BAAN.mjs} +12 -4
- package/dist/{chunk-NQMJXY3N.mjs → chunk-QJGBUBSB.mjs} +1 -1
- package/dist/{chunk-YD7Q7IZX.mjs → chunk-QJQ66DYZ.mjs} +1 -1
- package/dist/{chunk-WJTVZ6CB.mjs → chunk-RNHGLZYP.mjs} +1 -1
- package/dist/{chunk-2D3EN2AX.mjs → chunk-SJI6X5DK.mjs} +2 -2
- package/dist/{chunk-4JHX6BW6.mjs → chunk-TZH6L2OH.mjs} +1 -1
- package/dist/{chunk-OPJMXB4K.mjs → chunk-UCK4TW63.mjs} +4 -4
- package/dist/{chunk-36W3BORX.mjs → chunk-WAR2OXXK.mjs} +1 -1
- package/dist/{chunk-SM57JU3T.mjs → chunk-WZBXR7J3.mjs} +5 -5
- package/dist/{chunk-LPK5R32M.mjs → chunk-X4GP2O3Y.mjs} +1 -1
- package/dist/{chunk-6NRBLKM4.mjs → chunk-XCZCWSOY.mjs} +2 -2
- package/dist/{chunk-KOK3VCJZ.mjs → chunk-Y4KJTMKO.mjs} +1 -1
- package/dist/{chunk-YFOEG4PP.mjs → chunk-Z6MYLHDW.mjs} +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.d.ts +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.js +480 -301
- package/dist/components/AdvancedComponents/AppSidebar.mjs +3 -3
- package/dist/components/AdvancedComponents/index.js +480 -301
- package/dist/components/AdvancedComponents/index.mjs +3 -3
- package/dist/components/Blocks/Banner.mjs +8 -8
- package/dist/components/Blocks/CallToAction.mjs +8 -8
- package/dist/components/Blocks/CollapsibleArea.mjs +9 -9
- package/dist/components/Blocks/Content.mjs +9 -9
- package/dist/components/Blocks/FeaturesBlock.mjs +8 -8
- package/dist/components/Blocks/ImageBlock.mjs +3 -3
- package/dist/components/Blocks/MediaBlock.mjs +3 -3
- package/dist/components/Blocks/RelatedPosts.mjs +10 -10
- package/dist/components/Blocks/RenderBlocks.mjs +11 -11
- package/dist/components/Blocks/ReusableContentBlock.mjs +11 -11
- package/dist/components/Blocks/index.mjs +18 -18
- package/dist/components/CRM/index.mjs +3 -3
- package/dist/components/Cards/ContentCard.mjs +8 -8
- package/dist/components/Cards/FeatureCard.mjs +8 -8
- package/dist/components/Cards/index.mjs +14 -14
- package/dist/components/Chat/ChatInterface.mjs +11 -11
- package/dist/components/Chat/CopilotInterface.d.ts +1 -1
- package/dist/components/Chat/CopilotInterface.js +527 -330
- package/dist/components/Chat/CopilotInterface.mjs +16 -16
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +9 -9
- package/dist/components/Chat/PartTypes/index.mjs +11 -11
- package/dist/components/Chat/chat-session-sidebar.d.ts +1 -1
- package/dist/components/Chat/demo-long-messages.js +527 -330
- package/dist/components/Chat/demo-long-messages.mjs +16 -16
- package/dist/components/Chat/demo-tests.js +527 -330
- package/dist/components/Chat/demo-tests.mjs +16 -16
- package/dist/components/Chat/demo.js +527 -330
- package/dist/components/Chat/demo.mjs +16 -16
- package/dist/components/Chat/example-usage.js +527 -330
- package/dist/components/Chat/example-usage.mjs +16 -16
- package/dist/components/Chat/example-with-vercel-ai.js +527 -330
- package/dist/components/Chat/example-with-vercel-ai.mjs +16 -16
- package/dist/components/Chat/index.js +527 -330
- package/dist/components/Chat/index.mjs +21 -21
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -2
- package/dist/components/DeliveryLead/index.mjs +4 -4
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.d.ts +1 -9
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +22 -27
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +4 -6
- package/dist/components/DigitalColleagues/index.d.ts +0 -18
- package/dist/components/DigitalColleagues/index.js +0 -16754
- package/dist/components/DigitalColleagues/test-data.d.ts +1 -112
- package/dist/components/DigitalColleagues/test-data.js +482 -308
- package/dist/components/DigitalColleagues/test-data.mjs +1 -5
- package/dist/components/Foundry/AppSidebarLeft.mjs +3 -3
- package/dist/components/Foundry/Knowledge/add-knowledge-modal.mjs +3 -3
- package/dist/components/Foundry/Knowledge/add-team-context.mjs +3 -3
- package/dist/components/Foundry/MainPage.mjs +7 -7
- package/dist/components/Foundry/ManagementSidebar.d.ts +2 -2
- package/dist/components/Foundry/ManagementSidebar.js +11 -3
- package/dist/components/Foundry/ManagementSidebar.mjs +1 -1
- package/dist/components/Foundry/Pages/dashboardpage.js +1423 -2039
- package/dist/components/Foundry/Pages/dashboardpage.mjs +23 -24
- package/dist/components/Foundry/RichText/index.mjs +3 -3
- package/dist/components/Foundry/RichText/plugins/toolbar-plugin.mjs +2 -2
- package/dist/components/Foundry/Views/ColleaguesView.js +5 -4
- package/dist/components/Foundry/Views/ColleaguesView.mjs +3 -3
- package/dist/components/Foundry/Views/KnowledgeView.mjs +10 -10
- package/dist/components/Foundry/Views/TeamsIndexView.js +5 -4
- package/dist/components/Foundry/Views/TeamsIndexView.mjs +4 -4
- package/dist/components/Foundry/Views/index.js +1350 -785
- package/dist/components/Foundry/Views/index.mjs +50 -49
- package/dist/components/{.archive → Foundry}/app-card.d.ts +1 -1
- package/dist/components/{DigitalColleagues/colleague-type-selection.js → Foundry/app-card.js} +89 -117
- package/dist/components/{DigitalColleagues/colleague-card.mjs → Foundry/app-card.mjs} +4 -5
- package/dist/components/Foundry/document-edit.mjs +4 -4
- package/dist/components/Foundry/document-preview-examples.mjs +5 -5
- package/dist/components/Foundry/document-preview.mjs +5 -5
- package/dist/components/Foundry/file-edit.mjs +7 -7
- package/dist/components/Foundry/foundary-layout.js +480 -301
- package/dist/components/Foundry/foundary-layout.mjs +4 -4
- package/dist/components/Foundry/index.js +2746 -2866
- package/dist/components/Foundry/index.mjs +78 -79
- package/dist/components/Foundry/knowledge-browser.mjs +6 -6
- package/dist/components/Foundry/types.d.ts +26 -0
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +9 -9
- package/dist/components/HeaderFooter/index.mjs +5 -5
- package/dist/components/Heros/DashboardHero/DashboardHero.js +5 -4
- package/dist/components/Heros/DashboardHero/DashboardHero.mjs +2 -2
- package/dist/components/Heros/DashboardHero/index.js +5 -4
- package/dist/components/Heros/DashboardHero/index.mjs +2 -2
- package/dist/components/Heros/HighImpact/index.mjs +9 -9
- package/dist/components/Heros/LowImpact/index.mjs +9 -9
- package/dist/components/Heros/MediumImpact/index.mjs +9 -9
- package/dist/components/Heros/PostHero/index.mjs +3 -3
- package/dist/components/Heros/RenderHero.mjs +12 -12
- package/dist/components/Heros/index.js +5 -4
- package/dist/components/Heros/index.mjs +19 -19
- package/dist/components/Layouts/OutputHeaderFooter.mjs +11 -11
- package/dist/components/Layouts/Print.mjs +15 -15
- package/dist/components/Layouts/SlideShow.mjs +17 -17
- package/dist/components/Layouts/index.mjs +21 -21
- package/dist/components/Menus/SidebarLeft.mjs +3 -3
- package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
- package/dist/components/Menus/SidebarRight.mjs +3 -3
- package/dist/components/Menus/index.mjs +5 -5
- package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
- package/dist/components/Payload/Media/index.mjs +2 -2
- package/dist/components/Payload/PayloadCard/index.mjs +3 -3
- package/dist/components/Payload/RichText/index.mjs +8 -8
- package/dist/components/Payload/RichText/serialize.mjs +8 -8
- package/dist/components/Payload/index.mjs +10 -10
- package/dist/components/Projects/EpicFilter.d.ts +6 -2
- package/dist/components/Projects/EpicFilter.js +6 -6
- package/dist/components/Projects/EpicFilter.mjs +6 -6
- package/dist/components/Projects/EpicsView.d.ts +12 -2
- package/dist/components/Projects/EpicsView.js +3980 -736
- package/dist/components/Projects/EpicsView.mjs +46 -4
- package/dist/components/Projects/FileView.js +5 -4
- package/dist/components/Projects/FileView.mjs +11 -11
- package/dist/components/Projects/GanttView.d.ts +13 -0
- package/dist/components/{DigitalColleagues/colleague-card.js → Projects/GanttView.js} +559 -260
- package/dist/components/{DigitalColleagues/digital-colleague-clone.mjs → Projects/GanttView.mjs} +7 -6
- package/dist/components/Projects/KanbanBoardView.js +5 -4
- package/dist/components/Projects/KanbanBoardView.mjs +16 -16
- package/dist/components/Projects/KanbanColumn.d.ts +1 -1
- package/dist/components/Projects/PlanningView.js +5 -4
- package/dist/components/Projects/PlanningView.mjs +3 -3
- package/dist/components/Projects/ProjectPage.d.ts +2 -2
- package/dist/components/Projects/ProjectPage.js +1725 -964
- package/dist/components/Projects/ProjectPage.mjs +29 -28
- package/dist/components/Projects/ProjectView.d.ts +1 -1
- package/dist/components/Projects/ProjectView.js +1207 -642
- package/dist/components/Projects/ProjectView.mjs +24 -23
- package/dist/components/Projects/ProjectsIndexView.js +5 -4
- package/dist/components/Projects/ProjectsIndexView.mjs +4 -4
- package/dist/components/Projects/SprintBoardView.d.ts +3 -0
- package/dist/components/Projects/SprintBoardView.js +251 -109
- package/dist/components/Projects/SprintBoardView.mjs +16 -16
- package/dist/components/Projects/TaskDetailsModal.mjs +10 -10
- package/dist/components/Projects/TasksView.js +5 -4
- package/dist/components/Projects/TasksView.mjs +3 -3
- package/dist/components/Projects/business-unit-switcher.d.ts +1 -1
- package/dist/components/Projects/business-units.d.ts +1 -1
- package/dist/components/Projects/file-list.mjs +8 -8
- package/dist/components/Projects/index.js +537 -230
- package/dist/components/Projects/index.mjs +24 -24
- package/dist/components/Projects/project-card.d.ts +1 -1
- package/dist/components/Projects/project-form.d.ts +1 -1
- package/dist/components/Projects/team-card.d.ts +1 -1
- package/dist/components/Projects/team-switcher-bar.d.ts +1 -1
- package/dist/components/Projects/test-data.d.ts +448 -29
- package/dist/components/dc-temp/dashboard-integration-example.js +497 -325
- package/dist/components/dc-temp/dashboard-integration-example.mjs +6 -6
- package/dist/components/dc-temp/index.d.ts +3 -3
- package/dist/components/dc-temp/index.js +3745 -2979
- package/dist/components/dc-temp/index.mjs +24 -22
- package/dist/components/dc-temp/mock-data.d.ts +1 -1
- package/dist/components/index.js +4128 -4209
- package/dist/components/index.mjs +176 -178
- package/dist/components/ui/index.mjs +9 -9
- package/dist/components/ui/sidebar.mjs +2 -2
- package/dist/decorators/Intranet.css +54 -14
- package/dist/decorators/Intranet.mjs +103 -105
- package/dist/globals.css +54 -14
- package/dist/hooks/use-local-storage.d.ts +2 -1
- package/dist/hooks/use-local-storage.js +5 -4
- package/dist/hooks/use-local-storage.mjs +1 -1
- package/dist/index.js +4124 -4205
- package/dist/index.mjs +187 -189
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +15 -15
- package/dist/pages/Documentation.mjs +7 -7
- package/dist/pages/IndexPage.mjs +20 -20
- package/dist/pages/Intranet.mjs +4 -4
- package/dist/pages/LandingPage.mjs +113 -115
- package/dist/pages/Page.mjs +19 -19
- package/dist/pages/Publish.mjs +104 -106
- package/dist/pages/Website.mjs +20 -20
- package/dist/sections/AboutSection.mjs +10 -10
- package/dist/sections/BlogDetail.mjs +9 -9
- package/dist/sections/BlogList.mjs +10 -10
- package/dist/sections/BlogListSection.mjs +5 -5
- package/dist/sections/ContactSection.mjs +10 -10
- package/dist/sections/PageSections.mjs +113 -115
- package/dist/sections/PricingSection.mjs +10 -10
- package/dist/sections/ServiceDetail.mjs +9 -9
- package/dist/sections/ServiceDetailSection.mjs +9 -9
- package/dist/sections/ServiceSection.mjs +104 -106
- package/dist/sections/index.mjs +113 -115
- package/package.json +5 -2
- package/dist/chunk-5MMSWFVA.mjs +0 -364
- package/dist/chunk-7TDXZ32Q.mjs +0 -197
- package/dist/chunk-APXXTGT4.mjs +0 -424
- package/dist/chunk-BZENEU5C.mjs +0 -160
- package/dist/chunk-C444TUVA.mjs +0 -306
- package/dist/chunk-CNQTT5P3.mjs +0 -276
- package/dist/chunk-CQKCEXF2.mjs +0 -82
- package/dist/chunk-EKQB7NJA.mjs +0 -194
- package/dist/chunk-G4WW3ZTX.mjs +0 -1063
- package/dist/chunk-IWG2URAU.mjs +0 -74
- package/dist/chunk-IWSATDRG.mjs +0 -118
- package/dist/chunk-JRNDRMIC.mjs +0 -73
- package/dist/chunk-K2C4VMGF.mjs +0 -121
- package/dist/chunk-LQQ6C7FN.mjs +0 -365
- package/dist/chunk-M6ELOAGS.mjs +0 -136
- package/dist/chunk-NAUBZM7P.mjs +0 -183
- package/dist/chunk-NHDPHK6D.mjs +0 -72
- package/dist/chunk-R5MJWISX.mjs +0 -194
- package/dist/chunk-RKYMAFRJ.mjs +0 -92
- package/dist/chunk-SZBUXY6L.mjs +0 -121
- package/dist/chunk-VY6L37RQ.mjs +0 -103
- package/dist/chunk-X6UI73UN.mjs +0 -262
- package/dist/components/DigitalColleagues/AppSidebarLeft.d.ts +0 -47
- package/dist/components/DigitalColleagues/AppSidebarLeft.js +0 -3407
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +0 -23
- package/dist/components/DigitalColleagues/DashboardHeader.d.ts +0 -8
- package/dist/components/DigitalColleagues/DashboardHeader.js +0 -2756
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +0 -15
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.css +0 -917
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +0 -28
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +0 -4417
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +0 -31
- package/dist/components/DigitalColleagues/MainPage.css +0 -917
- package/dist/components/DigitalColleagues/MainPage.d.ts +0 -3
- package/dist/components/DigitalColleagues/MainPage.js +0 -4080
- package/dist/components/DigitalColleagues/MainPage.mjs +0 -46
- package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +0 -8
- package/dist/components/DigitalColleagues/ManagementSidebar.js +0 -99
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +0 -9
- package/dist/components/DigitalColleagues/Pages/dashboardpage.css +0 -917
- package/dist/components/DigitalColleagues/Pages/dashboardpage.d.ts +0 -18
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +0 -8514
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +0 -78
- package/dist/components/DigitalColleagues/README-document-edit.js +0 -2
- package/dist/components/DigitalColleagues/README-document-edit.mjs +0 -7
- package/dist/components/DigitalColleagues/README-document-preview.js +0 -2
- package/dist/components/DigitalColleagues/README-document-preview.mjs +0 -7
- package/dist/components/DigitalColleagues/SearchableSelect.css +0 -917
- package/dist/components/DigitalColleagues/SearchableSelect.d.ts +0 -16
- package/dist/components/DigitalColleagues/SearchableSelect.js +0 -2745
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +0 -16
- package/dist/components/DigitalColleagues/Views/ColleaguesView.css +0 -917
- package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +0 -14
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +0 -3795
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +0 -28
- package/dist/components/DigitalColleagues/Views/KnowledgeView.css +0 -917
- package/dist/components/DigitalColleagues/Views/KnowledgeView.d.ts +0 -11
- package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.js +0 -2
- package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.mjs +0 -7
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +0 -3935
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +0 -26
- package/dist/components/DigitalColleagues/Views/index.css +0 -917
- package/dist/components/DigitalColleagues/Views/index.d.ts +0 -7
- package/dist/components/DigitalColleagues/Views/index.js +0 -12284
- package/dist/components/DigitalColleagues/Views/index.mjs +0 -114
- package/dist/components/DigitalColleagues/colleague-card.css +0 -917
- package/dist/components/DigitalColleagues/colleague-card.d.ts +0 -12
- package/dist/components/DigitalColleagues/colleague-form.css +0 -917
- package/dist/components/DigitalColleagues/colleague-form.d.ts +0 -14
- package/dist/components/DigitalColleagues/colleague-form.js +0 -3086
- package/dist/components/DigitalColleagues/colleague-form.mjs +0 -22
- package/dist/components/DigitalColleagues/colleague-type-selection.css +0 -917
- package/dist/components/DigitalColleagues/colleague-type-selection.d.ts +0 -7
- package/dist/components/DigitalColleagues/colleague-type-selection.mjs +0 -16
- package/dist/components/DigitalColleagues/digital-colleague-clone.css +0 -917
- package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +0 -9
- package/dist/components/DigitalColleagues/digital-colleague-clone.js +0 -2828
- package/dist/components/DigitalColleagues/digital-colleague-options.css +0 -917
- package/dist/components/DigitalColleagues/digital-colleague-options.d.ts +0 -7
- package/dist/components/DigitalColleagues/digital-colleague-options.js +0 -2697
- package/dist/components/DigitalColleagues/digital-colleague-options.mjs +0 -16
- package/dist/components/DigitalColleagues/document-edit.css +0 -917
- package/dist/components/DigitalColleagues/document-edit.d.ts +0 -10
- package/dist/components/DigitalColleagues/document-edit.js +0 -3112
- package/dist/components/DigitalColleagues/document-edit.mjs +0 -20
- package/dist/components/DigitalColleagues/document-preview-examples.css +0 -917
- package/dist/components/DigitalColleagues/document-preview-examples.d.ts +0 -12
- package/dist/components/DigitalColleagues/document-preview-examples.js +0 -3433
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +0 -151
- package/dist/components/DigitalColleagues/document-preview.css +0 -917
- package/dist/components/DigitalColleagues/document-preview.d.ts +0 -18
- package/dist/components/DigitalColleagues/document-preview.js +0 -3296
- package/dist/components/DigitalColleagues/document-preview.mjs +0 -21
- package/dist/components/DigitalColleagues/index.css +0 -917
- package/dist/components/DigitalColleagues/index.mjs +0 -200
- package/dist/components/DigitalColleagues/knowledge-browser.css +0 -917
- package/dist/components/DigitalColleagues/knowledge-browser.d.ts +0 -13
- package/dist/components/DigitalColleagues/knowledge-browser.js +0 -3581
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +0 -23
- package/dist/components/DigitalColleagues/knowledge-search.css +0 -917
- package/dist/components/DigitalColleagues/knowledge-search.d.ts +0 -12
- package/dist/components/DigitalColleagues/knowledge-search.js +0 -2819
- package/dist/components/DigitalColleagues/knowledge-search.mjs +0 -20
- package/dist/components/DigitalColleagues/team-form.css +0 -917
- package/dist/components/DigitalColleagues/team-form.d.ts +0 -24
- package/dist/components/DigitalColleagues/team-form.js +0 -2836
- package/dist/components/DigitalColleagues/team-form.mjs +0 -20
- package/dist/components/DigitalColleagues/types.d.ts +0 -289
- package/dist/components/DigitalColleagues/types.js +0 -18
- package/dist/{chunk-GGOGMLBY.mjs → chunk-AKMJBGUU.mjs} +3 -3
- package/dist/{chunk-AEFGMCK3.mjs → chunk-D5KV6INF.mjs} +3 -3
- package/dist/{chunk-SNG6OKEL.mjs → chunk-FTVOJKVA.mjs} +3 -3
- package/dist/{chunk-GZGWWPCP.mjs → chunk-L666B5DN.mjs} +12 -12
- package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
- /package/dist/components/{DigitalColleagues/AppSidebarLeft.css → Foundry/app-card.css} +0 -0
- /package/dist/components/{DigitalColleagues/DashboardHeader.css → Projects/GanttView.css} +0 -0
package/dist/chunk-NAUBZM7P.mjs
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
Avatar,
|
|
6
|
-
AvatarFallback
|
|
7
|
-
} from "./chunk-DNKWV24K.mjs";
|
|
8
|
-
import {
|
|
9
|
-
Badge
|
|
10
|
-
} from "./chunk-BG5JSVXF.mjs";
|
|
11
|
-
import {
|
|
12
|
-
Card,
|
|
13
|
-
CardContent,
|
|
14
|
-
CardHeader,
|
|
15
|
-
CardTitle
|
|
16
|
-
} from "./chunk-EQHAE4MP.mjs";
|
|
17
|
-
import {
|
|
18
|
-
Input
|
|
19
|
-
} from "./chunk-YMZ2OUK6.mjs";
|
|
20
|
-
import {
|
|
21
|
-
Button
|
|
22
|
-
} from "./chunk-I6LSWXZW.mjs";
|
|
23
|
-
|
|
24
|
-
// src/components/DigitalColleagues/digital-colleague-clone.tsx
|
|
25
|
-
import { useState, useMemo } from "react";
|
|
26
|
-
import { Search, Bot, ChevronLeft, Copy, Calendar, Users } from "lucide-react";
|
|
27
|
-
import { motion, AnimatePresence } from "motion/react";
|
|
28
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
-
function DigitalColleagueClone({
|
|
30
|
-
digitalColleagues,
|
|
31
|
-
onColleagueClone,
|
|
32
|
-
onCancel,
|
|
33
|
-
selectedColleagueId
|
|
34
|
-
}) {
|
|
35
|
-
const [searchTerm, setSearchTerm] = useState("");
|
|
36
|
-
const [statusFilter, setStatusFilter] = useState("all");
|
|
37
|
-
const filteredColleagues = useMemo(() => {
|
|
38
|
-
return digitalColleagues.filter((colleague) => {
|
|
39
|
-
const matchesSearch = colleague.name.toLowerCase().includes(searchTerm.toLowerCase());
|
|
40
|
-
return matchesSearch;
|
|
41
|
-
});
|
|
42
|
-
}, [digitalColleagues, searchTerm, statusFilter]);
|
|
43
|
-
const handleColleagueClone = (colleague) => {
|
|
44
|
-
const clonedColleague = {
|
|
45
|
-
...colleague,
|
|
46
|
-
// id: `${colleague.id}-clone-${Date.now()}`,
|
|
47
|
-
id: Date.now(),
|
|
48
|
-
name: `${colleague.name} (Copy)`
|
|
49
|
-
// joinedDate: new Date(),
|
|
50
|
-
// lastActive: new Date(),
|
|
51
|
-
// lastUpdated: new Date(),
|
|
52
|
-
// version: "1.0.0", // Reset version for new clone
|
|
53
|
-
};
|
|
54
|
-
onColleagueClone(clonedColleague);
|
|
55
|
-
};
|
|
56
|
-
const formatDate = (date) => {
|
|
57
|
-
return new Intl.DateTimeFormat("en-US", {
|
|
58
|
-
month: "short",
|
|
59
|
-
day: "numeric",
|
|
60
|
-
year: "numeric"
|
|
61
|
-
}).format(date);
|
|
62
|
-
};
|
|
63
|
-
return /* @__PURE__ */ jsx("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxs(
|
|
64
|
-
motion.div,
|
|
65
|
-
{
|
|
66
|
-
initial: { opacity: 0, y: 10 },
|
|
67
|
-
animate: { opacity: 1, y: 0 },
|
|
68
|
-
exit: { opacity: 0, y: -10 },
|
|
69
|
-
transition: { duration: 0.2 },
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
72
|
-
/* @__PURE__ */ jsxs(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
|
|
73
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
74
|
-
"Back"
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
77
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold", children: "Clone Digital Colleague" }),
|
|
78
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Select a digital colleague to clone" })
|
|
79
|
-
] })
|
|
80
|
-
] }),
|
|
81
|
-
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, { className: "pt-6", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row gap-4", children: [
|
|
82
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
83
|
-
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
85
|
-
Input,
|
|
86
|
-
{
|
|
87
|
-
placeholder: "Search by name, job description, or capabilities...",
|
|
88
|
-
value: searchTerm,
|
|
89
|
-
onChange: (e) => setSearchTerm(e.target.value),
|
|
90
|
-
className: "pl-9"
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] }) }),
|
|
94
|
-
/* @__PURE__ */ jsxs(
|
|
95
|
-
"select",
|
|
96
|
-
{
|
|
97
|
-
value: statusFilter,
|
|
98
|
-
onChange: (e) => setStatusFilter(e.target.value),
|
|
99
|
-
className: "h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",
|
|
100
|
-
children: [
|
|
101
|
-
/* @__PURE__ */ jsx("option", { value: "all", children: "All Status" }),
|
|
102
|
-
/* @__PURE__ */ jsx("option", { value: "active", children: "Active" }),
|
|
103
|
-
/* @__PURE__ */ jsx("option", { value: "inactive", children: "Inactive" })
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
] }) }) }),
|
|
108
|
-
/* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredColleagues.map((colleague) => /* @__PURE__ */ jsx(
|
|
109
|
-
motion.div,
|
|
110
|
-
{
|
|
111
|
-
layout: true,
|
|
112
|
-
initial: { opacity: 0, scale: 0.9 },
|
|
113
|
-
animate: { opacity: 1, scale: 1 },
|
|
114
|
-
transition: { duration: 0.2 },
|
|
115
|
-
children: /* @__PURE__ */ jsxs(
|
|
116
|
-
Card,
|
|
117
|
-
{
|
|
118
|
-
className: `cursor-pointer transition-all hover:shadow-lg ${selectedColleagueId?.toString() === colleague.id.toString() ? "ring-2 ring-primary" : ""}`,
|
|
119
|
-
onClick: () => handleColleagueClone(colleague),
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ jsx(CardHeader, { className: "pb-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
122
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
123
|
-
/* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(AvatarFallback, { className: "bg-blue-100", children: /* @__PURE__ */ jsx(Bot, { className: "h-4 w-4 text-blue-600" }) }) }),
|
|
124
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg flex items-center gap-2", children: colleague.name }) })
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ jsxs(
|
|
127
|
-
Button,
|
|
128
|
-
{
|
|
129
|
-
size: "sm",
|
|
130
|
-
variant: "outline",
|
|
131
|
-
className: "gap-2 h-8",
|
|
132
|
-
onClick: (e) => {
|
|
133
|
-
e.stopPropagation();
|
|
134
|
-
handleColleagueClone(colleague);
|
|
135
|
-
},
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ jsx(Copy, { className: "h-3 w-3" }),
|
|
138
|
-
"Clone"
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] }) }),
|
|
143
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pt-0", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
144
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
145
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Job Description" }),
|
|
146
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm line-clamp-2", children: colleague.jobDescription })
|
|
147
|
-
] }),
|
|
148
|
-
colleague.capabilities && colleague.capabilities.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
149
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-2", children: "Capabilities" }),
|
|
150
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: colleague.capabilities.length > 3 && /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "text-xs", children: [
|
|
151
|
-
"+",
|
|
152
|
-
colleague.capabilities.length - 3
|
|
153
|
-
] }) })
|
|
154
|
-
] }),
|
|
155
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: [
|
|
156
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ jsx(Calendar, { className: "h-3 w-3" }) }),
|
|
157
|
-
colleague.knowledge && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ jsx(Users, { className: "h-3 w-3" }) })
|
|
158
|
-
] }),
|
|
159
|
-
colleague.workInstructions && /* @__PURE__ */ jsxs("div", { children: [
|
|
160
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Instructions" }),
|
|
161
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs line-clamp-2", children: colleague.workInstructions })
|
|
162
|
-
] })
|
|
163
|
-
] }) })
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
},
|
|
168
|
-
colleague.id
|
|
169
|
-
)) }),
|
|
170
|
-
filteredColleagues.length === 0 && /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, { className: "pt-6", children: /* @__PURE__ */ jsxs("div", { className: "text-center py-8", children: [
|
|
171
|
-
/* @__PURE__ */ jsx(Bot, { className: "h-12 w-12 text-muted-foreground mx-auto mb-4" }),
|
|
172
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold mb-2", children: "No digital colleagues found" }),
|
|
173
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Try adjusting your search terms or filters." })
|
|
174
|
-
] }) }) })
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"colleague-clone"
|
|
178
|
-
) }) });
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export {
|
|
182
|
-
DigitalColleagueClone
|
|
183
|
-
};
|
package/dist/chunk-NHDPHK6D.mjs
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
AppSidebarLeft
|
|
6
|
-
} from "./chunk-M6ELOAGS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Breadcrumb,
|
|
9
|
-
BreadcrumbItem,
|
|
10
|
-
BreadcrumbLink,
|
|
11
|
-
BreadcrumbList,
|
|
12
|
-
BreadcrumbPage,
|
|
13
|
-
BreadcrumbSeparator
|
|
14
|
-
} from "./chunk-SG5TVUD2.mjs";
|
|
15
|
-
import {
|
|
16
|
-
Toaster
|
|
17
|
-
} from "./chunk-23N4BX45.mjs";
|
|
18
|
-
import {
|
|
19
|
-
SidebarInset,
|
|
20
|
-
SidebarProvider,
|
|
21
|
-
SidebarTrigger
|
|
22
|
-
} from "./chunk-AEFGMCK3.mjs";
|
|
23
|
-
import {
|
|
24
|
-
Separator
|
|
25
|
-
} from "./chunk-7GPVQAMX.mjs";
|
|
26
|
-
import {
|
|
27
|
-
Header
|
|
28
|
-
} from "./chunk-FZMTC5ID.mjs";
|
|
29
|
-
import {
|
|
30
|
-
cortex_reply_light_default
|
|
31
|
-
} from "./chunk-7YNU7PA4.mjs";
|
|
32
|
-
import {
|
|
33
|
-
cortex_reply_dark_default
|
|
34
|
-
} from "./chunk-CR55QMEY.mjs";
|
|
35
|
-
|
|
36
|
-
// src/components/DigitalColleagues/MainPage.tsx
|
|
37
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
38
|
-
function Documentation({ ...args }) {
|
|
39
|
-
return (
|
|
40
|
-
// <div className="flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain">
|
|
41
|
-
/* @__PURE__ */ jsxs("div", { className: "bg-sidebar", children: [
|
|
42
|
-
/* @__PURE__ */ jsx(Header, { isMenuOpen: true, logoLight: cortex_reply_light_default, logoDark: cortex_reply_dark_default, ...args.header, className: "bg-sidebar", wide: true }),
|
|
43
|
-
/* @__PURE__ */ jsxs(SidebarProvider, { className: "top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip", children: [
|
|
44
|
-
/* @__PURE__ */ jsx(AppSidebarLeft, { ...args.sidebarLeft, className: "flex-none top-24" }),
|
|
45
|
-
/* @__PURE__ */ jsxs(SidebarInset, { className: "grow overflow-hidden", children: [
|
|
46
|
-
/* @__PURE__ */ jsx("header", { className: "flex h-16 shrink-0 items-center gap-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-4", children: [
|
|
47
|
-
/* @__PURE__ */ jsx(SidebarTrigger, { className: "-ml-1" }),
|
|
48
|
-
/* @__PURE__ */ jsx(Separator, { orientation: "vertical", className: "mr-2 h-4" }),
|
|
49
|
-
/* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsxs(BreadcrumbList, { children: [
|
|
50
|
-
/* @__PURE__ */ jsx(BreadcrumbItem, { className: "hidden md:block", children: /* @__PURE__ */ jsx(BreadcrumbLink, { href: "#", children: "Building Your Application" }) }),
|
|
51
|
-
/* @__PURE__ */ jsx(BreadcrumbSeparator, { className: "hidden md:block" }),
|
|
52
|
-
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, { children: "Data Fetching" }) })
|
|
53
|
-
] }) })
|
|
54
|
-
] }) }),
|
|
55
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-4 p-4 pt-0", children: [
|
|
56
|
-
/* @__PURE__ */ jsxs("div", { className: "grid auto-rows-min gap-4 md:grid-cols-3", children: [
|
|
57
|
-
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-xl bg-muted/50" }),
|
|
58
|
-
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-xl bg-muted/50" }),
|
|
59
|
-
/* @__PURE__ */ jsx("div", { className: "aspect-video rounded-xl bg-muted/50" })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 rounded-xl bg-muted/50 md:min-h-min" })
|
|
62
|
-
] })
|
|
63
|
-
] })
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ jsx(Toaster, {})
|
|
66
|
-
] })
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
Documentation
|
|
72
|
-
};
|
package/dist/chunk-R5MJWISX.mjs
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
Switch
|
|
6
|
-
} from "./chunk-RQVP4AS3.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Textarea
|
|
9
|
-
} from "./chunk-4UJUWE3A.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Label
|
|
12
|
-
} from "./chunk-7CVOGGH6.mjs";
|
|
13
|
-
import {
|
|
14
|
-
Card,
|
|
15
|
-
CardContent,
|
|
16
|
-
CardHeader,
|
|
17
|
-
CardTitle
|
|
18
|
-
} from "./chunk-EQHAE4MP.mjs";
|
|
19
|
-
import {
|
|
20
|
-
Input
|
|
21
|
-
} from "./chunk-YMZ2OUK6.mjs";
|
|
22
|
-
import {
|
|
23
|
-
Button
|
|
24
|
-
} from "./chunk-I6LSWXZW.mjs";
|
|
25
|
-
|
|
26
|
-
// src/components/DigitalColleagues/team-form.tsx
|
|
27
|
-
import { useState, useEffect } from "react";
|
|
28
|
-
import { Users, Edit } from "lucide-react";
|
|
29
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
-
function TeamForm({
|
|
31
|
-
team,
|
|
32
|
-
onSave,
|
|
33
|
-
onCancel,
|
|
34
|
-
isLoading = false,
|
|
35
|
-
title,
|
|
36
|
-
submitLabel,
|
|
37
|
-
cancelLabel = "Cancel",
|
|
38
|
-
readOnly = false
|
|
39
|
-
}) {
|
|
40
|
-
const [formData, setFormData] = useState({
|
|
41
|
-
name: "",
|
|
42
|
-
description: "",
|
|
43
|
-
systemMsg: "",
|
|
44
|
-
useProjects: false,
|
|
45
|
-
useKnowledge: false,
|
|
46
|
-
useFiles: false,
|
|
47
|
-
useChat: false,
|
|
48
|
-
...team
|
|
49
|
-
});
|
|
50
|
-
const [editMode, setEditMode] = useState(!readOnly);
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
if (team) {
|
|
53
|
-
setFormData(team);
|
|
54
|
-
}
|
|
55
|
-
}, [team]);
|
|
56
|
-
const handleSubmit = (e) => {
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
const teamData = {
|
|
59
|
-
id: formData.id || Date.now(),
|
|
60
|
-
name: formData.name,
|
|
61
|
-
description: formData.description || null,
|
|
62
|
-
systemMsg: formData.systemMsg || null,
|
|
63
|
-
useProjects: formData.useProjects || false,
|
|
64
|
-
useKnowledge: formData.useKnowledge || false,
|
|
65
|
-
useFiles: formData.useFiles || false,
|
|
66
|
-
useChat: formData.useChat || false,
|
|
67
|
-
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
68
|
-
createdAt: formData.createdAt || (/* @__PURE__ */ new Date()).toISOString()
|
|
69
|
-
};
|
|
70
|
-
onSave(teamData);
|
|
71
|
-
};
|
|
72
|
-
const handleEditToggle = (e) => {
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
setEditMode(!editMode);
|
|
75
|
-
};
|
|
76
|
-
const formTitle = title || (!editMode ? "View Team" : team ? "Edit Team" : "Create New Team");
|
|
77
|
-
const buttonLabel = submitLabel || (team ? "Update Team" : "Create Team");
|
|
78
|
-
return /* @__PURE__ */ jsxs(Card, { className: "m-8 w-full max-w-4xl mx-auto", children: [
|
|
79
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
|
|
80
|
-
/* @__PURE__ */ jsx(Users, { className: "h-5 w-5" }),
|
|
81
|
-
formTitle
|
|
82
|
-
] }) }),
|
|
83
|
-
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "space-y-6", children: [
|
|
84
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
85
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
86
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "name", children: "Team Name *" }),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
-
Input,
|
|
89
|
-
{
|
|
90
|
-
id: "name",
|
|
91
|
-
value: formData.name || "",
|
|
92
|
-
onChange: (e) => setFormData({ ...formData, name: e.target.value }),
|
|
93
|
-
required: true,
|
|
94
|
-
disabled: isLoading || !editMode,
|
|
95
|
-
placeholder: "Enter team name..."
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
] }),
|
|
99
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
100
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "description", children: "Description" }),
|
|
101
|
-
/* @__PURE__ */ jsx(
|
|
102
|
-
Textarea,
|
|
103
|
-
{
|
|
104
|
-
id: "description",
|
|
105
|
-
value: formData.description || "",
|
|
106
|
-
onChange: (e) => setFormData({ ...formData, description: e.target.value }),
|
|
107
|
-
rows: 3,
|
|
108
|
-
placeholder: "Brief description of this team...",
|
|
109
|
-
disabled: isLoading || !editMode
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
114
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "systemMsg", children: "Ways of working" }),
|
|
115
|
-
/* @__PURE__ */ jsx(
|
|
116
|
-
Textarea,
|
|
117
|
-
{
|
|
118
|
-
id: "systemMsg",
|
|
119
|
-
value: formData.systemMsg || "",
|
|
120
|
-
onChange: (e) => setFormData({ ...formData, systemMsg: e.target.value }),
|
|
121
|
-
rows: 3,
|
|
122
|
-
placeholder: "Describe how this team works in as much detail as possible. Include processes, tools, systems, styles...",
|
|
123
|
-
disabled: isLoading || !editMode
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
] })
|
|
127
|
-
] }),
|
|
128
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
129
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold", children: "Team Configuration" }),
|
|
130
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
131
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
132
|
-
/* @__PURE__ */ jsx(
|
|
133
|
-
Switch,
|
|
134
|
-
{
|
|
135
|
-
id: "useProjects",
|
|
136
|
-
checked: formData.useProjects || false,
|
|
137
|
-
onCheckedChange: (checked) => setFormData({ ...formData, useProjects: checked }),
|
|
138
|
-
disabled: isLoading || !editMode
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "useProjects", children: "Enable Projects" })
|
|
142
|
-
] }),
|
|
143
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
144
|
-
/* @__PURE__ */ jsx(
|
|
145
|
-
Switch,
|
|
146
|
-
{
|
|
147
|
-
id: "useKnowledge",
|
|
148
|
-
checked: formData.useKnowledge || false,
|
|
149
|
-
onCheckedChange: (checked) => setFormData({ ...formData, useKnowledge: checked }),
|
|
150
|
-
disabled: isLoading || !editMode
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "useKnowledge", children: "Enable Knowledge Base" })
|
|
154
|
-
] }),
|
|
155
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
156
|
-
/* @__PURE__ */ jsx(
|
|
157
|
-
Switch,
|
|
158
|
-
{
|
|
159
|
-
id: "useFiles",
|
|
160
|
-
checked: formData.useFiles || false,
|
|
161
|
-
onCheckedChange: (checked) => setFormData({ ...formData, useFiles: checked }),
|
|
162
|
-
disabled: isLoading || !editMode
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "useFiles", children: "Enable File Management" })
|
|
166
|
-
] }),
|
|
167
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
168
|
-
/* @__PURE__ */ jsx(
|
|
169
|
-
Switch,
|
|
170
|
-
{
|
|
171
|
-
id: "useChat",
|
|
172
|
-
checked: formData.useChat || false,
|
|
173
|
-
onCheckedChange: (checked) => setFormData({ ...formData, useChat: checked }),
|
|
174
|
-
disabled: isLoading || !editMode
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "useChat", children: "Enable Team Chat" })
|
|
178
|
-
] })
|
|
179
|
-
] })
|
|
180
|
-
] }),
|
|
181
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-4 border-t", children: [
|
|
182
|
-
/* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: onCancel, disabled: isLoading, children: !editMode ? "Close" : cancelLabel }),
|
|
183
|
-
!editMode ? /* @__PURE__ */ jsxs(Button, { type: "button", onClick: handleEditToggle, disabled: isLoading, className: "gap-2", children: [
|
|
184
|
-
/* @__PURE__ */ jsx(Edit, { className: "h-4 w-4" }),
|
|
185
|
-
"Edit"
|
|
186
|
-
] }) : /* @__PURE__ */ jsx(Button, { type: "submit", disabled: isLoading || !formData.name?.trim(), children: isLoading ? "Saving..." : buttonLabel })
|
|
187
|
-
] })
|
|
188
|
-
] }) })
|
|
189
|
-
] });
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export {
|
|
193
|
-
TeamForm
|
|
194
|
-
};
|
package/dist/chunk-RKYMAFRJ.mjs
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Select,
|
|
3
|
-
SelectContent,
|
|
4
|
-
SelectItem,
|
|
5
|
-
SelectTrigger
|
|
6
|
-
} from "./chunk-EMGZSA3M.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Label
|
|
9
|
-
} from "./chunk-7CVOGGH6.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Badge
|
|
12
|
-
} from "./chunk-BG5JSVXF.mjs";
|
|
13
|
-
import {
|
|
14
|
-
Input
|
|
15
|
-
} from "./chunk-YMZ2OUK6.mjs";
|
|
16
|
-
|
|
17
|
-
// src/components/DigitalColleagues/SearchableSelect.tsx
|
|
18
|
-
import { useState } from "react";
|
|
19
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
-
var SearchableSelect = ({
|
|
21
|
-
label,
|
|
22
|
-
value,
|
|
23
|
-
onValueChange,
|
|
24
|
-
options,
|
|
25
|
-
placeholder = "Search...",
|
|
26
|
-
allowCustomValue = false,
|
|
27
|
-
disabled = false
|
|
28
|
-
}) => {
|
|
29
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
30
|
-
const [searchTerm, setSearchTerm] = useState("");
|
|
31
|
-
const selectedOption = options.find((option) => option.value === value);
|
|
32
|
-
const filteredOptions = options.filter(
|
|
33
|
-
(option) => option.label.toLowerCase().includes(searchTerm.toLowerCase())
|
|
34
|
-
);
|
|
35
|
-
const handleSelect = (selectedValue) => {
|
|
36
|
-
onValueChange(selectedValue);
|
|
37
|
-
setIsOpen(false);
|
|
38
|
-
setSearchTerm("");
|
|
39
|
-
};
|
|
40
|
-
const handleCustomValue = () => {
|
|
41
|
-
if (allowCustomValue && searchTerm.trim() && !options.find((opt) => opt.value === searchTerm.trim())) {
|
|
42
|
-
onValueChange(searchTerm.trim());
|
|
43
|
-
setIsOpen(false);
|
|
44
|
-
setSearchTerm("");
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const handleOpenChange = (open) => {
|
|
48
|
-
if (!disabled) {
|
|
49
|
-
setIsOpen(open);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
53
|
-
/* @__PURE__ */ jsx(Label, { className: "text-xs text-muted-foreground", children: label }),
|
|
54
|
-
/* @__PURE__ */ jsxs(Select, { value, onValueChange: handleSelect, open: isOpen, onOpenChange: handleOpenChange, disabled, children: [
|
|
55
|
-
/* @__PURE__ */ jsx(SelectTrigger, { className: "h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md", children: /* @__PURE__ */ jsx(
|
|
56
|
-
Badge,
|
|
57
|
-
{
|
|
58
|
-
variant: "secondary",
|
|
59
|
-
className: `${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"} hover:bg-muted transition-colors`,
|
|
60
|
-
onClick: () => !disabled && setIsOpen(!isOpen),
|
|
61
|
-
children: selectedOption?.label || value || "Select..."
|
|
62
|
-
}
|
|
63
|
-
) }),
|
|
64
|
-
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
65
|
-
/* @__PURE__ */ jsx("div", { className: "p-2", children: /* @__PURE__ */ jsx(
|
|
66
|
-
Input,
|
|
67
|
-
{
|
|
68
|
-
placeholder,
|
|
69
|
-
value: searchTerm,
|
|
70
|
-
onChange: (e) => setSearchTerm(e.target.value),
|
|
71
|
-
onKeyDown: (e) => {
|
|
72
|
-
if (e.key === "Enter" && allowCustomValue) {
|
|
73
|
-
handleCustomValue();
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
className: "mb-2"
|
|
77
|
-
}
|
|
78
|
-
) }),
|
|
79
|
-
filteredOptions.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value, children: option.label }, option.value)),
|
|
80
|
-
allowCustomValue && searchTerm.trim() && !filteredOptions.find((opt) => opt.value === searchTerm.trim()) && /* @__PURE__ */ jsxs(SelectItem, { value: searchTerm.trim(), children: [
|
|
81
|
-
'Add "',
|
|
82
|
-
searchTerm.trim(),
|
|
83
|
-
'"'
|
|
84
|
-
] })
|
|
85
|
-
] })
|
|
86
|
-
] })
|
|
87
|
-
] });
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
SearchableSelect
|
|
92
|
-
};
|
package/dist/chunk-SZBUXY6L.mjs
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
Card,
|
|
6
|
-
CardContent,
|
|
7
|
-
CardHeader,
|
|
8
|
-
CardTitle
|
|
9
|
-
} from "./chunk-EQHAE4MP.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Button
|
|
12
|
-
} from "./chunk-I6LSWXZW.mjs";
|
|
13
|
-
|
|
14
|
-
// src/components/DigitalColleagues/colleague-type-selection.tsx
|
|
15
|
-
import { User, Bot, ChevronLeft, Users } from "lucide-react";
|
|
16
|
-
import { motion, AnimatePresence } from "motion/react";
|
|
17
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
function ColleagueTypeSelection({
|
|
19
|
-
onSelectHuman,
|
|
20
|
-
onSelectDigital,
|
|
21
|
-
onCancel
|
|
22
|
-
}) {
|
|
23
|
-
return /* @__PURE__ */ jsx("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxs(
|
|
24
|
-
motion.div,
|
|
25
|
-
{
|
|
26
|
-
initial: { opacity: 0, y: 10 },
|
|
27
|
-
animate: { opacity: 1, y: 0 },
|
|
28
|
-
exit: { opacity: 0, y: -10 },
|
|
29
|
-
transition: { duration: 0.2 },
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
32
|
-
/* @__PURE__ */ jsxs(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
|
|
33
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
34
|
-
"Back"
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
37
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold", children: "Add Colleague" }),
|
|
38
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Choose the type of colleague to add" })
|
|
39
|
-
] })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ jsxs("div", { className: "grid gap-6 md:grid-cols-2 max-w-4xl mx-auto", children: [
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
motion.div,
|
|
44
|
-
{
|
|
45
|
-
whileHover: { scale: 1.02 },
|
|
46
|
-
whileTap: { scale: 0.98 },
|
|
47
|
-
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
48
|
-
children: /* @__PURE__ */ jsxs(
|
|
49
|
-
Card,
|
|
50
|
-
{
|
|
51
|
-
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
52
|
-
onClick: onSelectHuman,
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ jsxs(CardHeader, { className: "text-center pb-4", children: [
|
|
55
|
-
/* @__PURE__ */ jsx("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(User, { className: "h-8 w-8 text-blue-600" }) }),
|
|
56
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-xl", children: "Add Human Colleague" })
|
|
57
|
-
] }),
|
|
58
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "text-center", children: [
|
|
59
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-4", children: "Select from existing users in your organization to add as team members." }),
|
|
60
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
61
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
62
|
-
/* @__PURE__ */ jsx(Users, { className: "h-4 w-4 text-blue-600" }),
|
|
63
|
-
/* @__PURE__ */ jsx("span", { children: "Browse existing users" })
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
66
|
-
/* @__PURE__ */ jsx(User, { className: "h-4 w-4 text-blue-600" }),
|
|
67
|
-
/* @__PURE__ */ jsx("span", { children: "Import user details automatically" })
|
|
68
|
-
] })
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ jsx(Button, { className: "mt-6 w-full", onClick: onSelectHuman, children: "Select User" })
|
|
71
|
-
] })
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
motion.div,
|
|
79
|
-
{
|
|
80
|
-
whileHover: { scale: 1.02 },
|
|
81
|
-
whileTap: { scale: 0.98 },
|
|
82
|
-
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
83
|
-
children: /* @__PURE__ */ jsxs(
|
|
84
|
-
Card,
|
|
85
|
-
{
|
|
86
|
-
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
87
|
-
onClick: onSelectDigital,
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ jsxs(CardHeader, { className: "text-center pb-4", children: [
|
|
90
|
-
/* @__PURE__ */ jsx("div", { className: "mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(Bot, { className: "h-8 w-8 text-purple-600" }) }),
|
|
91
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-xl", children: "Add Digital Colleague" })
|
|
92
|
-
] }),
|
|
93
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "text-center", children: [
|
|
94
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-4", children: "Clone an existing digital colleague or create a new AI assistant for your team." }),
|
|
95
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
96
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
97
|
-
/* @__PURE__ */ jsx(Bot, { className: "h-4 w-4 text-purple-600" }),
|
|
98
|
-
/* @__PURE__ */ jsx("span", { children: "Clone existing colleagues" })
|
|
99
|
-
] }),
|
|
100
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
101
|
-
/* @__PURE__ */ jsx(Users, { className: "h-4 w-4 text-purple-600" }),
|
|
102
|
-
/* @__PURE__ */ jsx("span", { children: "Create from templates" })
|
|
103
|
-
] })
|
|
104
|
-
] }),
|
|
105
|
-
/* @__PURE__ */ jsx(Button, { className: "mt-6 w-full", onClick: onSelectDigital, children: "Add Digital Colleague" })
|
|
106
|
-
] })
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
] })
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
"colleague-type-selection"
|
|
116
|
-
) }) });
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export {
|
|
120
|
-
ColleagueTypeSelection
|
|
121
|
-
};
|