cortex-react-components 3.3.0 → 4.0.3
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-Z54HOXSV.mjs → chunk-2254O4YT.mjs} +2 -2
- package/dist/{chunk-V6YEUAIH.mjs → chunk-3BYBIUZN.mjs} +3 -3
- package/dist/{chunk-XFJPL6FS.mjs → chunk-3IXZB3VP.mjs} +1 -1
- package/dist/{chunk-WJTVZ6CB.mjs → chunk-3NXXPFU2.mjs} +1 -1
- package/dist/{chunk-CONYNX7Y.mjs → chunk-4HKHDXKK.mjs} +3 -3
- package/dist/{chunk-DSVXGGGV.mjs → chunk-54AIO5ED.mjs} +2 -2
- package/dist/{chunk-7ZCW4XMR.mjs → chunk-64IBDKCH.mjs} +1 -1
- package/dist/{chunk-EJJITIA3.mjs → chunk-65ZDGR46.mjs} +5 -5
- package/dist/{chunk-I4MTJN23.mjs → chunk-6A7T3O6T.mjs} +6 -5
- package/dist/{chunk-HUZCVQP7.mjs → chunk-7IMTNL53.mjs} +1 -1
- package/dist/{chunk-IJ3E6ZXF.mjs → chunk-B2LFNC3C.mjs} +1 -1
- package/dist/{chunk-IDMTHUC4.mjs → chunk-B36NGEMF.mjs} +3 -3
- package/dist/{chunk-FABRRO2B.mjs → chunk-BAJ7NCAT.mjs} +1 -1
- package/dist/{chunk-4JHX6BW6.mjs → chunk-BEGQGEDH.mjs} +1 -1
- package/dist/{chunk-36W3BORX.mjs → chunk-BWS5MUG7.mjs} +1 -1
- package/dist/{chunk-5NGZXIP7.mjs → chunk-CI625DSA.mjs} +1 -1
- package/dist/{chunk-WX5QYPGU.mjs → chunk-CUUAA2TB.mjs} +1 -1
- package/dist/{chunk-ETG5N2OG.mjs → chunk-DOIUUDF6.mjs} +1 -1
- package/dist/{chunk-SSE3MQDP.mjs → chunk-DST7L2PX.mjs} +3 -3
- package/dist/{chunk-UETTBM3J.mjs → chunk-F6NJD6IG.mjs} +1 -1
- package/dist/{chunk-L4SNPNYU.mjs → chunk-FBCL4K4A.mjs} +1 -1
- package/dist/{chunk-IVOPNDSN.mjs → chunk-G5N5MCLS.mjs} +5 -5
- package/dist/{chunk-NQMJXY3N.mjs → chunk-GC7DB2Y5.mjs} +1 -1
- package/dist/{chunk-5CQITTLV.mjs → chunk-GMHZ7GGN.mjs} +1 -1
- package/dist/{chunk-C3CKYJ2F.mjs → chunk-GZRODHXY.mjs} +1 -1
- package/dist/{chunk-SM57JU3T.mjs → chunk-HCVN3YVW.mjs} +5 -5
- package/dist/{chunk-SSDRUPMS.mjs → chunk-HWSDSULO.mjs} +183 -36
- package/dist/{chunk-QPO45D6F.mjs → chunk-I2MVZVXE.mjs} +1 -1
- package/dist/chunk-IC4N2KYF.mjs +401 -0
- package/dist/{chunk-GGOGMLBY.mjs → chunk-JKVS2VFG.mjs} +4 -4
- package/dist/{chunk-OPJMXB4K.mjs → chunk-K4ZS4W4S.mjs} +2 -2
- package/dist/{chunk-Q6CUUDUR.mjs → chunk-LVLYUHSA.mjs} +1 -1
- package/dist/{chunk-UDCOG2XL.mjs → chunk-LY4RR7AL.mjs} +1 -1
- package/dist/{chunk-QMFGV3M5.mjs → chunk-LZUYY2G6.mjs} +2 -2
- package/dist/{chunk-XGHUG2WQ.mjs → chunk-MDG2I4PB.mjs} +1 -1
- package/dist/{chunk-YD7Q7IZX.mjs → chunk-MNJ5CMJM.mjs} +1 -1
- package/dist/{chunk-YY4VLYYH.mjs → chunk-MOMYX6OH.mjs} +26 -11
- package/dist/{chunk-EDYFH3EJ.mjs → chunk-NM7RODDO.mjs} +3 -3
- package/dist/{chunk-KOK3VCJZ.mjs → chunk-O5RKEF5N.mjs} +2 -2
- package/dist/chunk-PBIUFMQ7.mjs +595 -0
- package/dist/{chunk-GTHNG3Q7.mjs → chunk-PPESICX2.mjs} +1 -1
- package/dist/{chunk-F7JPOQIC.mjs → chunk-Q54XDKD6.mjs} +1 -1
- package/dist/{chunk-LTDXFLCW.mjs → chunk-QM3XSGNV.mjs} +13 -5
- package/dist/{chunk-LGGOEYDB.mjs → chunk-QU3TSSIT.mjs} +9 -9
- package/dist/{chunk-OCVHSV6Z.mjs → chunk-R4WRE5VN.mjs} +2 -2
- package/dist/{chunk-HMVIQFLN.mjs → chunk-S2JSIAMP.mjs} +1 -1
- package/dist/{chunk-4JSM5VYZ.mjs → chunk-SAVDOTMQ.mjs} +1 -1
- package/dist/{chunk-PE44IHZN.mjs → chunk-SBD4TWK2.mjs} +1 -1
- package/dist/{chunk-B7WVGDB6.mjs → chunk-SZJ6XME5.mjs} +1 -1
- package/dist/{chunk-URC56DLC.mjs → chunk-T2VDQBFT.mjs} +1 -1
- package/dist/{chunk-2D3EN2AX.mjs → chunk-T36HNGWV.mjs} +2 -2
- package/dist/{chunk-3BYULUMU.mjs → chunk-T62Q55Y5.mjs} +1 -1
- package/dist/{chunk-IBQBZNEA.mjs → chunk-T756T7P5.mjs} +1 -1
- package/dist/{chunk-HNBHBFLY.mjs → chunk-TZBPEFJY.mjs} +1 -1
- package/dist/{chunk-HQW5M4ND.mjs → chunk-U5XRK325.mjs} +1 -1
- package/dist/{chunk-4P5Q6UXF.mjs → chunk-UBFOKMYD.mjs} +5 -5
- package/dist/{chunk-6NRBLKM4.mjs → chunk-UM7KTWAX.mjs} +2 -2
- package/dist/{chunk-E5LGE3IW.mjs → chunk-W73LGNTH.mjs} +1 -1
- package/dist/{chunk-QETXXFRW.mjs → chunk-WNGLLRYA.mjs} +1 -1
- package/dist/{chunk-NVSA5BFC.mjs → chunk-XP74JZNW.mjs} +3 -3
- package/dist/{chunk-OXP3LJ53.mjs → chunk-XT7I7SJB.mjs} +4 -4
- package/dist/{chunk-JFXWP3RQ.mjs → chunk-Y7B7YO6Q.mjs} +1 -1
- package/dist/{chunk-XZFMQXYJ.mjs → chunk-ZD5DKC5T.mjs} +1 -1
- package/dist/{chunk-EC5I4CIO.mjs → chunk-ZJ5SRNYD.mjs} +1 -1
- package/dist/{chunk-LM4J7254.mjs → chunk-ZSGXRIK7.mjs} +7 -7
- package/dist/{chunk-MZVEK6A5.mjs → chunk-ZZQWZWMG.mjs} +19 -19
- package/dist/components/AdvancedComponents/AppSidebar.d.ts +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.js +481 -302
- package/dist/components/AdvancedComponents/AppSidebar.mjs +4 -4
- package/dist/components/AdvancedComponents/index.js +481 -302
- package/dist/components/AdvancedComponents/index.mjs +4 -4
- package/dist/components/Blocks/Banner.mjs +6 -6
- package/dist/components/Blocks/CallToAction.mjs +6 -6
- package/dist/components/Blocks/CollapsibleArea.mjs +7 -7
- package/dist/components/Blocks/Content.mjs +7 -7
- package/dist/components/Blocks/FeaturesBlock.mjs +6 -6
- package/dist/components/Blocks/RelatedPosts.mjs +7 -7
- package/dist/components/Blocks/RenderBlocks.mjs +9 -9
- package/dist/components/Blocks/ReusableContentBlock.mjs +9 -9
- package/dist/components/Blocks/index.mjs +15 -15
- package/dist/components/CRM/CogeBoard.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +3 -3
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +2 -2
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +3 -3
- package/dist/components/CRM/NewDealForm.js +1 -1
- package/dist/components/CRM/NewDealForm.mjs +2 -2
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +8 -8
- package/dist/components/Cards/ContentCard.mjs +6 -6
- package/dist/components/Cards/FeatureCard.mjs +6 -6
- package/dist/components/Cards/Image.js +1 -1
- package/dist/components/Cards/Image.mjs +2 -2
- package/dist/components/Cards/ImageProxy.js +1 -1
- package/dist/components/Cards/ImageProxy.mjs +2 -2
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +12 -12
- package/dist/components/Chat/ChatInterface.mjs +11 -11
- package/dist/components/Chat/CopilotInterface.d.ts +1 -1
- package/dist/components/Chat/CopilotInterface.js +528 -331
- package/dist/components/Chat/CopilotInterface.mjs +17 -17
- 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 +528 -331
- package/dist/components/Chat/demo-long-messages.mjs +17 -17
- package/dist/components/Chat/demo-tests.js +528 -331
- package/dist/components/Chat/demo-tests.mjs +17 -17
- package/dist/components/Chat/demo.js +528 -331
- package/dist/components/Chat/demo.mjs +17 -17
- package/dist/components/Chat/example-usage.js +528 -331
- package/dist/components/Chat/example-usage.mjs +18 -18
- package/dist/components/Chat/example-with-vercel-ai.js +528 -331
- package/dist/components/Chat/example-with-vercel-ai.mjs +17 -17
- package/dist/components/Chat/index.js +528 -331
- package/dist/components/Chat/index.mjs +25 -25
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.d.ts +1 -9
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +23 -28
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +5 -7
- 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/Knowledge/add-knowledge-modal.js +1 -1
- package/dist/components/Foundry/Knowledge/add-knowledge-modal.mjs +3 -3
- package/dist/components/Foundry/Knowledge/add-team-context.js +1 -1
- package/dist/components/Foundry/Knowledge/add-team-context.mjs +2 -2
- package/dist/components/Foundry/Knowledge/manage-team-context.js +1 -1
- package/dist/components/Foundry/Knowledge/manage-team-context.mjs +2 -2
- package/dist/components/Foundry/MainPage.mjs +3 -3
- package/dist/components/Foundry/ManagementSidebar.d.ts +2 -2
- package/dist/components/Foundry/ManagementSidebar.js +12 -4
- package/dist/components/Foundry/ManagementSidebar.mjs +1 -1
- package/dist/components/Foundry/Pages/dashboardpage.js +1424 -2040
- package/dist/components/Foundry/Pages/dashboardpage.mjs +25 -26
- package/dist/components/Foundry/RichText/index.js +1 -1
- package/dist/components/Foundry/RichText/index.mjs +5 -5
- package/dist/components/Foundry/RichText/plugins/image-plugin.js +1 -1
- package/dist/components/Foundry/RichText/plugins/image-plugin.mjs +2 -2
- package/dist/components/Foundry/RichText/plugins/toolbar-plugin.js +1 -1
- package/dist/components/Foundry/RichText/plugins/toolbar-plugin.mjs +4 -4
- package/dist/components/Foundry/Views/ColleaguesView.js +5 -4
- package/dist/components/Foundry/Views/ColleaguesView.mjs +3 -3
- package/dist/components/Foundry/Views/KnowledgeView.js +1 -1
- package/dist/components/Foundry/Views/KnowledgeView.mjs +12 -12
- package/dist/components/Foundry/Views/TeamsIndexView.js +6 -5
- package/dist/components/Foundry/Views/TeamsIndexView.mjs +5 -5
- package/dist/components/Foundry/Views/index.js +1352 -787
- 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.js +1 -1
- package/dist/components/Foundry/document-edit.mjs +6 -6
- package/dist/components/Foundry/document-preview-examples.js +1 -1
- package/dist/components/Foundry/document-preview-examples.mjs +7 -7
- package/dist/components/Foundry/document-preview.js +1 -1
- package/dist/components/Foundry/document-preview.mjs +7 -7
- package/dist/components/Foundry/file-edit.js +1 -1
- package/dist/components/Foundry/file-edit.mjs +7 -7
- package/dist/components/Foundry/foundary-layout.js +481 -302
- package/dist/components/Foundry/foundary-layout.mjs +5 -5
- package/dist/components/Foundry/index.js +2748 -2868
- package/dist/components/Foundry/index.mjs +78 -79
- package/dist/components/Foundry/knowledge-browser.js +1 -1
- package/dist/components/Foundry/knowledge-browser.mjs +8 -8
- package/dist/components/Foundry/types.d.ts +26 -0
- package/dist/components/HeaderFooter/SectionHeading.mjs +7 -7
- 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 +7 -7
- package/dist/components/Heros/LowImpact/index.mjs +7 -7
- package/dist/components/Heros/MediumImpact/index.mjs +7 -7
- package/dist/components/Heros/PostHero/index.mjs +2 -2
- package/dist/components/Heros/RenderHero.mjs +10 -10
- package/dist/components/Heros/index.js +5 -4
- package/dist/components/Heros/index.mjs +15 -15
- package/dist/components/Layouts/OutputHeaderFooter.mjs +7 -7
- package/dist/components/Layouts/Print.mjs +11 -11
- package/dist/components/Layouts/SlideShow.mjs +13 -13
- package/dist/components/Layouts/index.mjs +17 -17
- package/dist/components/Payload/RichText/index.mjs +6 -6
- package/dist/components/Payload/RichText/serialize.mjs +6 -6
- package/dist/components/Payload/index.mjs +6 -6
- package/dist/components/Projects/AddEpicModal.js +1 -1
- package/dist/components/Projects/AddEpicModal.mjs +2 -2
- package/dist/components/Projects/AddFileModal.js +1 -1
- package/dist/components/Projects/AddFileModal.mjs +2 -2
- package/dist/components/Projects/AddSprintModal.js +1 -1
- package/dist/components/Projects/AddSprintModal.mjs +2 -2
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +2 -2
- 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 +48 -6
- package/dist/components/Projects/FileView.js +6 -5
- package/dist/components/Projects/FileView.mjs +12 -12
- 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 +6 -5
- package/dist/components/Projects/KanbanBoardView.mjs +17 -17
- package/dist/components/Projects/KanbanColumn.d.ts +1 -1
- package/dist/components/Projects/PlanningView.js +6 -5
- package/dist/components/Projects/PlanningView.mjs +5 -5
- package/dist/components/Projects/ProjectPage.d.ts +2 -2
- package/dist/components/Projects/ProjectPage.js +1727 -966
- package/dist/components/Projects/ProjectPage.mjs +30 -29
- package/dist/components/Projects/ProjectView.d.ts +1 -1
- package/dist/components/Projects/ProjectView.js +1209 -644
- package/dist/components/Projects/ProjectView.mjs +25 -24
- package/dist/components/Projects/ProjectsIndexView.js +6 -5
- package/dist/components/Projects/ProjectsIndexView.mjs +4 -4
- package/dist/components/Projects/SprintBoardView.d.ts +3 -0
- package/dist/components/Projects/SprintBoardView.js +252 -110
- package/dist/components/Projects/SprintBoardView.mjs +18 -18
- package/dist/components/Projects/TaskDetailsModal.js +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +11 -11
- package/dist/components/Projects/TasksView.js +6 -5
- package/dist/components/Projects/TasksView.mjs +4 -4
- 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.js +1 -1
- package/dist/components/Projects/file-list.mjs +8 -8
- package/dist/components/Projects/index.js +538 -231
- package/dist/components/Projects/index.mjs +23 -23
- 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 +498 -326
- package/dist/components/dc-temp/dashboard-integration-example.mjs +7 -7
- package/dist/components/dc-temp/index.d.ts +3 -3
- package/dist/components/dc-temp/index.js +3746 -2980
- 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 +4129 -4210
- package/dist/components/index.mjs +174 -176
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/command.mjs +2 -2
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.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 +4125 -4206
- package/dist/index.mjs +185 -187
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +11 -11
- package/dist/pages/Documentation.mjs +3 -3
- package/dist/pages/IndexPage.mjs +14 -14
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +113 -115
- package/dist/pages/Page.mjs +15 -15
- package/dist/pages/Publish.mjs +104 -106
- package/dist/pages/Website.mjs +18 -18
- package/dist/sections/AboutSection.mjs +8 -8
- package/dist/sections/BlogDetail.mjs +7 -7
- package/dist/sections/BlogList.mjs +8 -8
- package/dist/sections/ContactSection.mjs +8 -8
- package/dist/sections/PageSections.mjs +113 -115
- package/dist/sections/PricingSection.mjs +8 -8
- package/dist/sections/ServiceDetail.mjs +7 -7
- package/dist/sections/ServiceDetailSection.mjs +7 -7
- 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-RFQKQLNT.mjs → chunk-JJDC25TG.mjs} +3 -3
- package/dist/{chunk-GZGWWPCP.mjs → chunk-L666B5DN.mjs} +12 -12
- /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-VY6L37RQ.mjs
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
TeamForm
|
|
6
|
-
} from "./chunk-R5MJWISX.mjs";
|
|
7
|
-
import {
|
|
8
|
-
TeamCard
|
|
9
|
-
} from "./chunk-R5LKUQ37.mjs";
|
|
10
|
-
import {
|
|
11
|
-
DashboardHero
|
|
12
|
-
} from "./chunk-QPO45D6F.mjs";
|
|
13
|
-
import {
|
|
14
|
-
Dialog,
|
|
15
|
-
DialogContent,
|
|
16
|
-
DialogDescription,
|
|
17
|
-
DialogHeader,
|
|
18
|
-
DialogTitle
|
|
19
|
-
} from "./chunk-3BYULUMU.mjs";
|
|
20
|
-
|
|
21
|
-
// src/components/DigitalColleagues/Views/TeamsIndexView.tsx
|
|
22
|
-
import { useState } from "react";
|
|
23
|
-
import { motion, AnimatePresence } from "motion/react";
|
|
24
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
-
function TeamsIndexView({
|
|
26
|
-
teams = [],
|
|
27
|
-
onCreateTeam,
|
|
28
|
-
onTeamOpen
|
|
29
|
-
}) {
|
|
30
|
-
const [isNewTeamDialogOpen, setIsNewTeamDialogOpen] = useState(false);
|
|
31
|
-
const handleNewTeamClick = () => {
|
|
32
|
-
setIsNewTeamDialogOpen(true);
|
|
33
|
-
};
|
|
34
|
-
const handleTeamSave = (team) => {
|
|
35
|
-
onCreateTeam?.(team);
|
|
36
|
-
setIsNewTeamDialogOpen(false);
|
|
37
|
-
};
|
|
38
|
-
const handleTeamCancel = () => {
|
|
39
|
-
setIsNewTeamDialogOpen(false);
|
|
40
|
-
};
|
|
41
|
-
const handleTeamOpen = (team) => {
|
|
42
|
-
onTeamOpen?.(team);
|
|
43
|
-
};
|
|
44
|
-
return /* @__PURE__ */ jsxs("div", { className: "px-2 md:px-4 py-4 space-y-8", children: [
|
|
45
|
-
/* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxs(
|
|
46
|
-
motion.div,
|
|
47
|
-
{
|
|
48
|
-
initial: { opacity: 0, y: 10 },
|
|
49
|
-
animate: { opacity: 1, y: 0 },
|
|
50
|
-
exit: { opacity: 0, y: -10 },
|
|
51
|
-
transition: { duration: 0.2 },
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
54
|
-
DashboardHero,
|
|
55
|
-
{
|
|
56
|
-
title: "My Teams",
|
|
57
|
-
description: "Collaborate with your human and digital colleagues across different teams and projects.",
|
|
58
|
-
gradient: "bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",
|
|
59
|
-
primaryAction: {
|
|
60
|
-
label: "Create Team",
|
|
61
|
-
onClick: handleNewTeamClick
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
/* @__PURE__ */ jsxs("section", { className: "space-y-4 mt-8", children: [
|
|
66
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold", children: "Active Teams" }),
|
|
67
|
-
teams.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "text-center py-12", children: [
|
|
68
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-lg", children: "You're not part of any teams yet." }),
|
|
69
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm mt-2", children: "Create a new team or ask to be added to an existing one." })
|
|
70
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3", children: teams.map((team) => /* @__PURE__ */ jsx(
|
|
71
|
-
TeamCard,
|
|
72
|
-
{
|
|
73
|
-
team,
|
|
74
|
-
onOpen: handleTeamOpen
|
|
75
|
-
},
|
|
76
|
-
team.id
|
|
77
|
-
)) })
|
|
78
|
-
] })
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
"teams-index-view"
|
|
82
|
-
) }),
|
|
83
|
-
/* @__PURE__ */ jsx(Dialog, { open: isNewTeamDialogOpen, onOpenChange: setIsNewTeamDialogOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-4xl max-h-[90vh] overflow-y-auto p-0", children: [
|
|
84
|
-
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
85
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "Create New Team" }),
|
|
86
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: "Set up a new team to collaborate with colleagues on projects." })
|
|
87
|
-
] }) }),
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
89
|
-
TeamForm,
|
|
90
|
-
{
|
|
91
|
-
title: "Create New Team",
|
|
92
|
-
submitLabel: "Create Team",
|
|
93
|
-
onSave: handleTeamSave,
|
|
94
|
-
onCancel: handleTeamCancel
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
] }) })
|
|
98
|
-
] });
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
TeamsIndexView
|
|
103
|
-
};
|
package/dist/chunk-X6UI73UN.mjs
DELETED
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
DocumentPreview
|
|
6
|
-
} from "./chunk-EKQB7NJA.mjs";
|
|
7
|
-
import {
|
|
8
|
-
ScrollArea
|
|
9
|
-
} from "./chunk-PDHMPRPW.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Input
|
|
12
|
-
} from "./chunk-YMZ2OUK6.mjs";
|
|
13
|
-
|
|
14
|
-
// src/components/DigitalColleagues/knowledge-browser.tsx
|
|
15
|
-
import { motion } from "motion/react";
|
|
16
|
-
import { ChevronRight, File, FileText, Search } from "lucide-react";
|
|
17
|
-
import { useState, useMemo } from "react";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
function MenuItem({
|
|
20
|
-
label,
|
|
21
|
-
documents,
|
|
22
|
-
children,
|
|
23
|
-
level,
|
|
24
|
-
onDocumentClick,
|
|
25
|
-
selectedDocumentId,
|
|
26
|
-
showDocumentCount = true
|
|
27
|
-
}) {
|
|
28
|
-
const [isExpanded, setIsExpanded] = useState(level === 0);
|
|
29
|
-
const hasChildren = children && Object.keys(children).length > 0;
|
|
30
|
-
const totalDocuments = documents.length + (children ? Object.values(children).reduce((acc, child) => acc + child.documents.length, 0) : 0);
|
|
31
|
-
const formatDocumentIcon = (format) => {
|
|
32
|
-
switch (format) {
|
|
33
|
-
case "markdown":
|
|
34
|
-
case "mdx":
|
|
35
|
-
return /* @__PURE__ */ jsx(FileText, { className: "h-3.5 w-3.5 text-muted-foreground" });
|
|
36
|
-
case "richtext":
|
|
37
|
-
return /* @__PURE__ */ jsx(File, { className: "h-3.5 w-3.5 text-muted-foreground" });
|
|
38
|
-
default:
|
|
39
|
-
return /* @__PURE__ */ jsx(File, { className: "h-3.5 w-3.5 text-muted-foreground" });
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const getCategoryColor = (level2) => {
|
|
43
|
-
const colors = [
|
|
44
|
-
"bg-primary",
|
|
45
|
-
"bg-secondary",
|
|
46
|
-
"bg-accent",
|
|
47
|
-
"bg-chart-1"
|
|
48
|
-
];
|
|
49
|
-
return colors[level2 % colors.length];
|
|
50
|
-
};
|
|
51
|
-
return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
52
|
-
(hasChildren || documents.length > 0) && /* @__PURE__ */ jsxs(
|
|
53
|
-
motion.div,
|
|
54
|
-
{
|
|
55
|
-
className: `group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${isExpanded ? "bg-card shadow-sm border border-border" : "hover:bg-muted/50 hover:shadow-sm"}`,
|
|
56
|
-
style: { marginLeft: `${level * 20}px` },
|
|
57
|
-
onClick: () => setIsExpanded(!isExpanded),
|
|
58
|
-
whileHover: { scale: 1.01 },
|
|
59
|
-
whileTap: { scale: 0.99 },
|
|
60
|
-
children: [
|
|
61
|
-
/* @__PURE__ */ jsx("div", { className: `w-1 h-6 rounded-full ${getCategoryColor(level)}` }),
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
63
|
-
motion.div,
|
|
64
|
-
{
|
|
65
|
-
animate: { rotate: isExpanded ? 90 : 0 },
|
|
66
|
-
transition: { duration: 0.2 },
|
|
67
|
-
className: "flex-shrink-0",
|
|
68
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 text-muted-foreground" })
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-between min-w-0", children: [
|
|
72
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 min-w-0", children: /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground truncate", children: label }) }),
|
|
73
|
-
showDocumentCount && totalDocuments > 0 && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 ml-2", children: /* @__PURE__ */ jsx("span", { className: "inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full", children: totalDocuments }) })
|
|
74
|
-
] })
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
motion.div,
|
|
80
|
-
{
|
|
81
|
-
initial: false,
|
|
82
|
-
animate: {
|
|
83
|
-
height: isExpanded ? "auto" : 0,
|
|
84
|
-
opacity: isExpanded ? 1 : 0
|
|
85
|
-
},
|
|
86
|
-
transition: { duration: 0.2, ease: "easeInOut" },
|
|
87
|
-
className: "overflow-hidden",
|
|
88
|
-
children: /* @__PURE__ */ jsxs("div", { className: "pt-2 space-y-1", children: [
|
|
89
|
-
documents.map((doc, index) => /* @__PURE__ */ jsxs(
|
|
90
|
-
motion.div,
|
|
91
|
-
{
|
|
92
|
-
initial: { opacity: 0, x: -10 },
|
|
93
|
-
animate: { opacity: 1, x: 0 },
|
|
94
|
-
transition: { delay: index * 0.05, duration: 0.2 },
|
|
95
|
-
className: `group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${selectedDocumentId === doc.id ? "bg-primary/10 border-l-2 border-primary shadow-sm" : "hover:bg-muted/50 hover:translate-x-1"}`,
|
|
96
|
-
style: { marginLeft: `${level * 20 + 20}px` },
|
|
97
|
-
onClick: () => onDocumentClick?.(doc),
|
|
98
|
-
whileHover: { scale: 1.01 },
|
|
99
|
-
whileTap: { scale: 0.99 },
|
|
100
|
-
children: [
|
|
101
|
-
/* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: formatDocumentIcon(doc.format) }),
|
|
102
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
103
|
-
/* @__PURE__ */ jsx("p", { className: `text-sm truncate transition-colors ${selectedDocumentId === doc.id ? "text-primary font-medium" : "text-foreground group-hover:text-foreground"}`, children: doc.title }),
|
|
104
|
-
doc.description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate mt-0.5", children: doc.description })
|
|
105
|
-
] }),
|
|
106
|
-
doc.tags && doc.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx("span", { className: "inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors", children: doc.tags[0] }) })
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
doc.id
|
|
110
|
-
)),
|
|
111
|
-
children && Object.entries(children).map(([childLabel, childData]) => /* @__PURE__ */ jsx(
|
|
112
|
-
MenuItem,
|
|
113
|
-
{
|
|
114
|
-
label: childLabel,
|
|
115
|
-
documents: childData.documents,
|
|
116
|
-
children: childData.children,
|
|
117
|
-
level: level + 1,
|
|
118
|
-
onDocumentClick,
|
|
119
|
-
selectedDocumentId,
|
|
120
|
-
showDocumentCount
|
|
121
|
-
},
|
|
122
|
-
childLabel
|
|
123
|
-
))
|
|
124
|
-
] })
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
] });
|
|
128
|
-
}
|
|
129
|
-
function KnowledgeBrowser({
|
|
130
|
-
documents,
|
|
131
|
-
menuConfig,
|
|
132
|
-
onDocumentClick,
|
|
133
|
-
onDocumentShare,
|
|
134
|
-
onDocumentUpdate,
|
|
135
|
-
selectedDocumentId,
|
|
136
|
-
className,
|
|
137
|
-
editable = true
|
|
138
|
-
}) {
|
|
139
|
-
const [searchQuery, setSearchQuery] = useState("");
|
|
140
|
-
const [selectedDocument, setSelectedDocument] = useState(null);
|
|
141
|
-
const filteredDocuments = useMemo(() => {
|
|
142
|
-
if (!searchQuery) return documents;
|
|
143
|
-
return documents.filter(
|
|
144
|
-
(doc) => doc.title.toLowerCase().includes(searchQuery.toLowerCase()) || doc.description?.toLowerCase().includes(searchQuery.toLowerCase()) || doc.tags?.some((tag) => tag.toLowerCase().includes(searchQuery.toLowerCase())) || Object.values(doc.metadata || {}).some(
|
|
145
|
-
(value) => String(value).toLowerCase().includes(searchQuery.toLowerCase())
|
|
146
|
-
)
|
|
147
|
-
);
|
|
148
|
-
}, [documents, searchQuery]);
|
|
149
|
-
const hierarchy = useMemo(() => {
|
|
150
|
-
const buildHierarchy = (docs, groupKeys) => {
|
|
151
|
-
if (groupKeys.length === 0) {
|
|
152
|
-
return {};
|
|
153
|
-
}
|
|
154
|
-
const [currentKey, ...remainingKeys] = groupKeys;
|
|
155
|
-
const grouped = docs.reduce((acc, doc) => {
|
|
156
|
-
const value = doc.metadata?.[currentKey] || "Uncategorized";
|
|
157
|
-
const key = String(value);
|
|
158
|
-
if (!acc[key]) {
|
|
159
|
-
acc[key] = { documents: [], children: {} };
|
|
160
|
-
}
|
|
161
|
-
if (remainingKeys.length === 0) {
|
|
162
|
-
acc[key].documents.push(doc);
|
|
163
|
-
} else {
|
|
164
|
-
const childHierarchy = buildHierarchy([doc], remainingKeys);
|
|
165
|
-
const childKey = Object.keys(childHierarchy)[0];
|
|
166
|
-
if (childKey) {
|
|
167
|
-
if (!acc[key].children) acc[key].children = {};
|
|
168
|
-
if (!acc[key].children[childKey]) {
|
|
169
|
-
acc[key].children[childKey] = childHierarchy[childKey];
|
|
170
|
-
} else {
|
|
171
|
-
acc[key].children[childKey].documents.push(...childHierarchy[childKey].documents);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return acc;
|
|
176
|
-
}, {});
|
|
177
|
-
return grouped;
|
|
178
|
-
};
|
|
179
|
-
if (!menuConfig.groupBy || menuConfig.groupBy.length === 0) {
|
|
180
|
-
return {
|
|
181
|
-
"All Documents": {
|
|
182
|
-
documents: filteredDocuments,
|
|
183
|
-
children: {}
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
return buildHierarchy(filteredDocuments, menuConfig.groupBy);
|
|
188
|
-
}, [filteredDocuments, menuConfig.groupBy]);
|
|
189
|
-
const handleDocumentClick = (document) => {
|
|
190
|
-
setSelectedDocument(document);
|
|
191
|
-
onDocumentClick?.(document);
|
|
192
|
-
};
|
|
193
|
-
return /* @__PURE__ */ jsxs("div", { className: `flex h-full ${className || ""}`, children: [
|
|
194
|
-
/* @__PURE__ */ jsxs("div", { className: "w-1/3 border-r border-border bg-muted/20", children: [
|
|
195
|
-
/* @__PURE__ */ jsx("div", { className: "p-6 border-b border-border", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
196
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-muted-foreground" }) }),
|
|
197
|
-
/* @__PURE__ */ jsx(
|
|
198
|
-
Input,
|
|
199
|
-
{
|
|
200
|
-
placeholder: "Search knowledge base...",
|
|
201
|
-
value: searchQuery,
|
|
202
|
-
onChange: (e) => setSearchQuery(e.target.value),
|
|
203
|
-
className: "pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"
|
|
204
|
-
}
|
|
205
|
-
)
|
|
206
|
-
] }) }),
|
|
207
|
-
/* @__PURE__ */ jsx(ScrollArea, { className: "h-[calc(100%-100px)]", children: /* @__PURE__ */ jsxs("div", { className: "p-4 space-y-3", children: [
|
|
208
|
-
Object.entries(hierarchy).map(([label, data]) => /* @__PURE__ */ jsx(
|
|
209
|
-
MenuItem,
|
|
210
|
-
{
|
|
211
|
-
label,
|
|
212
|
-
documents: data.documents,
|
|
213
|
-
children: data.children,
|
|
214
|
-
level: 0,
|
|
215
|
-
onDocumentClick: handleDocumentClick,
|
|
216
|
-
selectedDocumentId,
|
|
217
|
-
showDocumentCount: menuConfig.showDocumentCount
|
|
218
|
-
},
|
|
219
|
-
label
|
|
220
|
-
)),
|
|
221
|
-
Object.keys(hierarchy).length === 0 && /* @__PURE__ */ jsxs(
|
|
222
|
-
motion.div,
|
|
223
|
-
{
|
|
224
|
-
initial: { opacity: 0 },
|
|
225
|
-
animate: { opacity: 1 },
|
|
226
|
-
className: "text-center text-muted-foreground py-12",
|
|
227
|
-
children: [
|
|
228
|
-
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center", children: /* @__PURE__ */ jsx(FileText, { className: "h-8 w-8 text-muted-foreground" }) }),
|
|
229
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "No documents found" }),
|
|
230
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs mt-1", children: "Try adjusting your search terms" })
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
)
|
|
234
|
-
] }) })
|
|
235
|
-
] }),
|
|
236
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 bg-background", children: selectedDocument ? /* @__PURE__ */ jsx(
|
|
237
|
-
DocumentPreview,
|
|
238
|
-
{
|
|
239
|
-
document: selectedDocument,
|
|
240
|
-
onDocumentUpdate,
|
|
241
|
-
editable
|
|
242
|
-
}
|
|
243
|
-
) : /* @__PURE__ */ jsx("div", { className: "h-full flex items-center justify-center text-center", children: /* @__PURE__ */ jsxs(
|
|
244
|
-
motion.div,
|
|
245
|
-
{
|
|
246
|
-
initial: { opacity: 0, y: 20 },
|
|
247
|
-
animate: { opacity: 1, y: 0 },
|
|
248
|
-
transition: { duration: 0.4 },
|
|
249
|
-
className: "max-w-sm",
|
|
250
|
-
children: [
|
|
251
|
-
/* @__PURE__ */ jsx("div", { className: "w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ jsx(FileText, { className: "h-10 w-10 text-primary" }) }),
|
|
252
|
-
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-foreground mb-2", children: "Select a document" }),
|
|
253
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground leading-relaxed", children: "Choose any document from the knowledge base to view its content and details" })
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
) }) })
|
|
257
|
-
] });
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export {
|
|
261
|
-
KnowledgeBrowser
|
|
262
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Sidebar } from '@/components//ui/sidebar';
|
|
3
|
-
type FileType = 'published' | 'draft' | 'note';
|
|
4
|
-
type Metadata = {
|
|
5
|
-
backend: 'github';
|
|
6
|
-
owner: string;
|
|
7
|
-
repo: string;
|
|
8
|
-
path: string;
|
|
9
|
-
branch?: string;
|
|
10
|
-
encoding?: string;
|
|
11
|
-
};
|
|
12
|
-
interface LinkItem {
|
|
13
|
-
label: string;
|
|
14
|
-
url: string;
|
|
15
|
-
type?: FileType;
|
|
16
|
-
metadata?: Metadata;
|
|
17
|
-
}
|
|
18
|
-
type MenuStructure = {
|
|
19
|
-
label: string;
|
|
20
|
-
url?: string;
|
|
21
|
-
isActive?: boolean;
|
|
22
|
-
icon?: React.ComponentType<React.ComponentProps<'svg'>>;
|
|
23
|
-
type?: FileType;
|
|
24
|
-
links?: LinkItem[] | undefined;
|
|
25
|
-
};
|
|
26
|
-
export type NavigationItem = {
|
|
27
|
-
label: string;
|
|
28
|
-
url: string;
|
|
29
|
-
isActive?: boolean;
|
|
30
|
-
isDraft?: boolean;
|
|
31
|
-
items?: NavigationItem[];
|
|
32
|
-
icon?: React.ComponentType<React.ComponentProps<'svg'>>;
|
|
33
|
-
};
|
|
34
|
-
interface SidebarLeftProps extends React.ComponentProps<typeof Sidebar> {
|
|
35
|
-
mainNav?: MenuStructure[];
|
|
36
|
-
secondaryNav?: MenuStructure[];
|
|
37
|
-
ongoingWork?: MenuStructure[];
|
|
38
|
-
title?: string;
|
|
39
|
-
subTitle?: string;
|
|
40
|
-
pathName?: string;
|
|
41
|
-
menuHeading?: string;
|
|
42
|
-
onNavClick?: (callback: any) => void;
|
|
43
|
-
loading?: boolean;
|
|
44
|
-
LinkComponent?: React.ComponentType<React.ComponentProps<'a'>>;
|
|
45
|
-
}
|
|
46
|
-
export declare function AppSidebarLeft({ mainNav, secondaryNav, ongoingWork, title, subTitle, pathName, menuHeading, onNavClick, loading, LinkComponent, ...props }: SidebarLeftProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
export {};
|