cortex-react-components 3.2.2 → 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-5GFRQ4NR.mjs → chunk-2BKXIIFJ.mjs} +183 -36
- package/dist/{chunk-LQPN7L4Z.mjs → chunk-3DWDGYDG.mjs} +1 -1
- package/dist/{chunk-PTDP7PZK.mjs → chunk-3G7VLQG5.mjs} +1 -1
- package/dist/{chunk-56NFUKPK.mjs → chunk-3K6EVFOW.mjs} +1 -1
- package/dist/{chunk-PFA2P52R.mjs → chunk-3RYHYKVQ.mjs} +1 -1
- package/dist/{chunk-XDV7AVPQ.mjs → chunk-4JSM5VYZ.mjs} +2 -2
- package/dist/{chunk-VMYEV3FG.mjs → chunk-4YRR74Y4.mjs} +1 -1
- package/dist/{chunk-I4MTJN23.mjs → chunk-6A7T3O6T.mjs} +6 -5
- package/dist/{chunk-G46GZ57S.mjs → chunk-6LF4K7ER.mjs} +5 -5
- package/dist/{chunk-2363JAWB.mjs → chunk-6S7EQDLL.mjs} +1 -1
- package/dist/{chunk-ZBCZGWDU.mjs → chunk-7HHLKQE4.mjs} +1 -1
- package/dist/{chunk-YUBPY7L4.mjs → chunk-7LM2P6N3.mjs} +1 -1
- package/dist/{chunk-VMDVXNP5.mjs → chunk-AKMJBGUU.mjs} +16 -16
- package/dist/{chunk-V4I6U2SE.mjs → chunk-AVNBD2X5.mjs} +1 -1
- package/dist/{chunk-2L6AWG6R.mjs → chunk-AZ5MV7NO.mjs} +2 -2
- package/dist/{chunk-YOKF4FEM.mjs → chunk-BMZG77IE.mjs} +1 -1
- package/dist/chunk-BXEALHGJ.mjs +142 -0
- package/dist/{chunk-V6YEUAIH.mjs → chunk-CV7GOXGO.mjs} +2 -2
- package/dist/{chunk-YKX5AGFQ.mjs → chunk-D3AHBPI5.mjs} +1 -1
- package/dist/{chunk-2VF2D4DL.mjs → chunk-DGDELNS3.mjs} +1 -1
- package/dist/{chunk-RJZMTP7J.mjs → chunk-DHB2L7O2.mjs} +1 -1
- package/dist/{chunk-ZED4UNH7.mjs → chunk-DPTILX6A.mjs} +2 -2
- package/dist/{chunk-RQGM66Q4.mjs → chunk-DRLNETNN.mjs} +1 -1
- package/dist/{chunk-673GELPP.mjs → chunk-DVWMM7AI.mjs} +3 -3
- package/dist/{chunk-O633TXQG.mjs → chunk-EEVXIKNB.mjs} +1 -1
- package/dist/{chunk-EQYJUXKZ.mjs → chunk-EGCBZZGV.mjs} +1 -1
- package/dist/{chunk-HK2DQNBU.mjs → chunk-ETV6EEYB.mjs} +4 -4
- package/dist/{chunk-ORWAJNJO.mjs → chunk-F6SQTC6R.mjs} +3 -3
- package/dist/{chunk-25EF7VEC.mjs → chunk-F7JPOQIC.mjs} +1 -1
- package/dist/{chunk-JQNNFILH.mjs → chunk-FWRVXOCU.mjs} +1 -1
- package/dist/{chunk-4YSV633W.mjs → chunk-GAWBCR4S.mjs} +1 -1
- package/dist/{chunk-ZWV2O6CK.mjs → chunk-GR45UN4U.mjs} +3 -3
- package/dist/chunk-GXN5ZNBZ.mjs +135 -0
- package/dist/{chunk-CIFGBEFV.mjs → chunk-HNBHBFLY.mjs} +1 -1
- package/dist/{chunk-USEHRJFR.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-QOYK2HBL.mjs → chunk-IM5B557Z.mjs} +19 -19
- package/dist/{chunk-J5ZETWHG.mjs → chunk-IQ67MHAY.mjs} +2 -2
- package/dist/{chunk-UFBLZW2N.mjs → chunk-IWQEM5KO.mjs} +2 -2
- package/dist/{chunk-UJI3Y73K.mjs → chunk-J5GM5CJK.mjs} +3 -3
- package/dist/chunk-JCSRFM37.mjs +595 -0
- package/dist/{chunk-QMFGV3M5.mjs → chunk-JOGVCBYP.mjs} +1 -1
- package/dist/{chunk-K6N5K2A7.mjs → chunk-JWMQOARK.mjs} +4 -4
- package/dist/{chunk-DSVXGGGV.mjs → chunk-K5ZNBHQO.mjs} +1 -1
- package/dist/{chunk-UYUP2DAL.mjs → chunk-KHFPDDTO.mjs} +1 -1
- package/dist/{chunk-CVH5TDS6.mjs → chunk-KJVAS4I7.mjs} +27 -12
- package/dist/{chunk-4PC77ZEN.mjs → chunk-KMGTUNRZ.mjs} +1 -1
- package/dist/{chunk-LVLEZS7Q.mjs → chunk-KYY7BMXI.mjs} +1 -1
- package/dist/{chunk-GDMWNNYC.mjs → chunk-LRMDRQRJ.mjs} +2 -2
- package/dist/{chunk-CIXAM7LW.mjs → chunk-LRTEGIZ7.mjs} +12 -12
- package/dist/{chunk-XGHUG2WQ.mjs → chunk-MDG2I4PB.mjs} +1 -1
- package/dist/{chunk-S27KJUKF.mjs → chunk-N5HTSJLI.mjs} +1 -1
- package/dist/{chunk-MPFWWJYT.mjs → chunk-N5Q2DYUR.mjs} +2 -2
- package/dist/{chunk-3W5H36HK.mjs → chunk-NNH7EC5Z.mjs} +1 -1
- package/dist/{chunk-5Z7JRCOM.mjs → chunk-NSYYRG6A.mjs} +1 -1
- package/dist/{chunk-JD7SR5V3.mjs → chunk-NUAJQK4H.mjs} +64 -8
- package/dist/{chunk-SSF2CAW7.mjs → chunk-OR3XMMEK.mjs} +9 -9
- package/dist/{chunk-RC6YHGVV.mjs → chunk-PE7KJR4A.mjs} +1 -1
- package/dist/{chunk-V2BZ7RE7.mjs → chunk-PLFX66EX.mjs} +1 -1
- package/dist/{chunk-E6M7XAYT.mjs → chunk-Q45EN2QB.mjs} +1 -1
- package/dist/{chunk-22E2TZBE.mjs → chunk-QDO6BAAN.mjs} +13 -5
- package/dist/{chunk-P4P6J2SW.mjs → chunk-QJGBUBSB.mjs} +2 -2
- package/dist/{chunk-TIGSOXUA.mjs → chunk-QJQ66DYZ.mjs} +1 -1
- package/dist/{chunk-ZF2DELZ5.mjs → chunk-QXOHY4AT.mjs} +39 -3
- package/dist/{chunk-NF4JWFAZ.mjs → chunk-RFMER577.mjs} +1 -1
- package/dist/{chunk-PIGOOCU6.mjs → chunk-RNHGLZYP.mjs} +1 -1
- package/dist/{chunk-QUGB53Z3.mjs → chunk-RV4VRLGN.mjs} +1 -1
- package/dist/{chunk-KCPLIAIF.mjs → chunk-SJI6X5DK.mjs} +2 -2
- package/dist/{chunk-B63AROCU.mjs → chunk-SMX6BH2N.mjs} +1 -1
- package/dist/{chunk-L3SZS7PC.mjs → chunk-SNUES6JA.mjs} +1 -1
- package/dist/{chunk-6R3QP53O.mjs → chunk-TZH6L2OH.mjs} +2 -2
- package/dist/{chunk-EJJNYV7C.mjs → chunk-U6ZFUE5O.mjs} +2 -2
- package/dist/{chunk-OPJMXB4K.mjs → chunk-UCK4TW63.mjs} +4 -4
- package/dist/{chunk-HI6QOZHR.mjs → chunk-V6VAVPKH.mjs} +1 -1
- package/dist/{chunk-PRMR24PY.mjs → chunk-WAR2OXXK.mjs} +4 -4
- package/dist/{chunk-4PFDNMLD.mjs → chunk-WEIPDZOJ.mjs} +1 -1
- package/dist/{chunk-TLCSKAWQ.mjs → chunk-WZBXR7J3.mjs} +5 -5
- package/dist/{chunk-FECAR2TE.mjs → chunk-X4GP2O3Y.mjs} +2 -2
- package/dist/{chunk-UNEYYMLL.mjs → chunk-XCZCWSOY.mjs} +2 -2
- package/dist/{chunk-QE3XE3LW.mjs → chunk-Y4KJTMKO.mjs} +1 -1
- package/dist/{chunk-AOSO2JVA.mjs → chunk-YUZYLKBD.mjs} +1 -1
- package/dist/{chunk-YFOEG4PP.mjs → chunk-Z6MYLHDW.mjs} +1 -1
- package/dist/{chunk-TP5AUT7W.mjs → chunk-ZJB7AFL5.mjs} +2 -2
- 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/AdvancedComponents/user-selection.d.ts +1 -1
- package/dist/components/AdvancedComponents/user-selection.js +1 -1
- package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +3 -3
- package/dist/components/Blocks/CallToAction.mjs +3 -3
- package/dist/components/Blocks/CollapsibleArea.mjs +4 -4
- package/dist/components/Blocks/Content.mjs +4 -4
- package/dist/components/Blocks/FeaturesBlock.mjs +3 -3
- package/dist/components/Blocks/RelatedPosts.mjs +4 -4
- package/dist/components/Blocks/RenderBlocks.mjs +6 -6
- package/dist/components/Blocks/ReusableContentBlock.mjs +6 -6
- package/dist/components/Blocks/index.mjs +7 -7
- package/dist/components/Cards/ContentCard.mjs +3 -3
- package/dist/components/Cards/FeatureCard.mjs +3 -3
- package/dist/components/Cards/index.mjs +3 -3
- package/dist/components/Chat/CopilotInterface.d.ts +1 -1
- package/dist/components/Chat/CopilotInterface.js +527 -330
- package/dist/components/Chat/CopilotInterface.mjs +5 -5
- 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 +5 -5
- package/dist/components/Chat/demo-tests.js +527 -330
- package/dist/components/Chat/demo-tests.mjs +5 -5
- package/dist/components/Chat/demo.js +527 -330
- package/dist/components/Chat/demo.mjs +5 -5
- package/dist/components/Chat/example-usage.js +527 -330
- package/dist/components/Chat/example-usage.mjs +6 -6
- package/dist/components/Chat/example-with-vercel-ai.js +527 -330
- package/dist/components/Chat/example-with-vercel-ai.mjs +5 -5
- package/dist/components/Chat/index.js +527 -330
- package/dist/components/Chat/index.mjs +8 -8
- 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/{Foundary → Foundry}/AppSidebarLeft.js +3 -3
- package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.mjs +3 -3
- package/dist/components/{Foundary → Foundry}/DashboardHeader.js +2 -2
- package/dist/components/{Foundary → Foundry}/DashboardHeader.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.js +2 -2
- package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.mjs +4 -4
- package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.js +3 -3
- package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.mjs +4 -4
- package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.js +2 -2
- package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/LandingMenu.js +2 -2
- package/dist/components/{Foundary → Foundry}/LandingMenu.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Login.js +2 -2
- package/dist/components/{Foundary → Foundry}/Login.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/MainPage.js +4 -4
- package/dist/components/{DigitalColleagues → Foundry}/MainPage.mjs +9 -9
- package/dist/components/{DigitalColleagues → Foundry}/ManagementSidebar.d.ts +2 -2
- package/dist/components/{Foundary → Foundry}/ManagementSidebar.js +12 -4
- package/dist/components/{DigitalColleagues → Foundry}/ManagementSidebar.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.js +1860 -2162
- package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.mjs +42 -41
- package/dist/components/{Foundary → Foundry}/README-document-edit.js +1 -1
- package/dist/components/{Foundary → Foundry}/README-document-edit.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/README-document-preview.js +1 -1
- package/dist/components/{Foundary → Foundry}/README-document-preview.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.js +2 -2
- package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/index.js +18 -18
- package/dist/components/{Foundary → Foundry}/RichText/index.mjs +12 -12
- package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.js +4 -4
- package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.mjs +2 -2
- package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.js +7 -7
- package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.mjs +3 -3
- package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.js +16 -16
- package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.mjs +11 -11
- package/dist/components/{Foundary → Foundry}/SearchableSelect.js +2 -2
- package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.d.ts +4 -2
- package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.js +526 -211
- package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.mjs +12 -10
- package/dist/components/Foundry/Views/KnowledgeView.docs.js +2 -0
- package/dist/components/Foundry/Views/KnowledgeView.docs.mjs +7 -0
- package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.js +29 -29
- package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.mjs +21 -21
- package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.js +9 -8
- package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.mjs +4 -4
- package/dist/components/{Foundary → Foundry}/Views/index.js +2929 -2050
- package/dist/components/{Foundary → Foundry}/Views/index.mjs +64 -61
- package/dist/components/Foundry/add-colleague-to-team-form.d.ts +10 -0
- package/dist/components/{DigitalColleagues/colleague-type-selection.js → Foundry/add-colleague-to-team-form.js} +156 -91
- package/dist/components/{DigitalColleagues/colleague-card.mjs → Foundry/add-colleague-to-team-form.mjs} +3 -4
- package/dist/components/{.archive → Foundry}/app-card.d.ts +1 -1
- package/dist/components/Foundry/app-card.js +2669 -0
- package/dist/components/{DigitalColleagues/digital-colleague-options.mjs → Foundry/app-card.mjs} +5 -3
- package/dist/components/{Foundary → Foundry}/colleague-card.js +2 -2
- package/dist/components/{Foundary → Foundry}/colleague-card.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/colleague-form.js +4 -4
- package/dist/components/{Foundary → Foundry}/colleague-form.mjs +2 -2
- package/dist/components/{Foundary → Foundry}/colleague-type-selection.js +2 -2
- package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.mjs +1 -1
- package/dist/components/Foundry/digital-colleague-selection.d.ts +9 -0
- package/dist/components/{DigitalColleagues/digital-colleague-clone.js → Foundry/digital-colleague-selection.js} +59 -100
- package/dist/components/{DigitalColleagues/digital-colleague-clone.mjs → Foundry/digital-colleague-selection.mjs} +3 -3
- package/dist/components/{Foundary → Foundry}/document-edit.js +20 -20
- package/dist/components/{Foundary → Foundry}/document-edit.mjs +13 -13
- package/dist/components/{Foundary → Foundry}/document-preview-examples.js +24 -24
- package/dist/components/{Foundary → Foundry}/document-preview-examples.mjs +15 -15
- package/dist/components/{Foundary → Foundry}/document-preview.js +22 -22
- package/dist/components/{Foundary → Foundry}/document-preview.mjs +14 -14
- package/dist/components/{Foundary → Foundry}/file-edit.js +20 -20
- package/dist/components/{Foundary → Foundry}/file-edit.mjs +16 -16
- package/dist/components/{Foundary → Foundry}/foundary-clone.js +3 -3
- package/dist/components/{Foundary → Foundry}/foundary-clone.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/foundary-layout.d.ts +3 -3
- package/dist/components/{Foundary → Foundry}/foundary-layout.js +485 -306
- package/dist/components/{Foundary → Foundry}/foundary-layout.mjs +6 -6
- package/dist/components/{Foundary → Foundry}/foundary-options.d.ts +2 -1
- package/dist/components/{Foundary → Foundry}/foundary-options.js +39 -3
- package/dist/components/{Foundary → Foundry}/foundary-options.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/index.d.ts +3 -1
- package/dist/components/{Foundary → Foundry}/index.js +3465 -3267
- package/dist/components/{Foundary → Foundry}/index.mjs +102 -95
- package/dist/components/{Foundary → Foundry}/knowledge-browser.js +24 -24
- package/dist/components/{Foundary → Foundry}/knowledge-browser.mjs +15 -15
- package/dist/components/{Foundary → Foundry}/knowledge-search.js +2 -2
- package/dist/components/{DigitalColleagues → Foundry}/knowledge-search.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/team-form.js +2 -2
- package/dist/components/{Foundary → Foundry}/team-form.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/test-data.js +1 -1
- package/dist/components/{Foundary → Foundry}/test-data.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/types.d.ts +26 -0
- package/dist/components/{Foundary → Foundry}/types.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +4 -4
- package/dist/components/HeaderFooter/index.mjs +11 -11
- 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 +4 -4
- package/dist/components/Heros/LowImpact/index.mjs +4 -4
- package/dist/components/Heros/MediumImpact/index.mjs +4 -4
- package/dist/components/Heros/PostHero/index.mjs +3 -3
- package/dist/components/Heros/RenderHero.mjs +7 -7
- package/dist/components/Heros/index.js +5 -4
- package/dist/components/Heros/index.mjs +14 -14
- package/dist/components/Layouts/OutputHeaderFooter.mjs +4 -4
- package/dist/components/Layouts/Print.mjs +8 -8
- package/dist/components/Layouts/SlideShow.mjs +9 -9
- package/dist/components/Layouts/index.mjs +13 -13
- 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/RichText/index.mjs +3 -3
- package/dist/components/Payload/RichText/serialize.mjs +3 -3
- package/dist/components/Payload/index.mjs +3 -3
- package/dist/components/Projects/AddEpicModal.d.ts +1 -1
- package/dist/components/Projects/AddSprintModal.d.ts +1 -1
- package/dist/components/Projects/AddTaskModal.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/components/Projects/FileView.js +24 -23
- package/dist/components/Projects/FileView.mjs +20 -20
- package/dist/components/Projects/GanttView.d.ts +13 -0
- package/dist/components/{DigitalColleagues/colleague-card.js → Projects/GanttView.js} +559 -260
- package/dist/components/Projects/GanttView.mjs +20 -0
- package/dist/components/Projects/KanbanBoardView.d.ts +1 -1
- package/dist/components/Projects/KanbanBoardView.js +25 -24
- package/dist/components/Projects/KanbanBoardView.mjs +26 -26
- package/dist/components/Projects/KanbanColumn.d.ts +1 -1
- package/dist/components/Projects/PlanningView.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 +3 -3
- package/dist/components/Projects/ProjectPage.js +1744 -983
- package/dist/components/Projects/ProjectPage.mjs +39 -38
- package/dist/components/Projects/ProjectView.d.ts +2 -2
- package/dist/components/Projects/ProjectView.js +1227 -662
- package/dist/components/Projects/ProjectView.mjs +34 -33
- package/dist/components/Projects/ProjectsIndexView.d.ts +1 -1
- package/dist/components/Projects/ProjectsIndexView.js +5 -4
- package/dist/components/Projects/ProjectsIndexView.mjs +4 -4
- package/dist/components/Projects/SprintBoardView.d.ts +4 -1
- package/dist/components/Projects/SprintBoardView.js +271 -129
- package/dist/components/Projects/SprintBoardView.mjs +26 -26
- package/dist/components/Projects/TaskCard.d.ts +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +1 -1
- package/dist/components/Projects/TaskDetailsModal.js +20 -20
- package/dist/components/Projects/TaskDetailsModal.mjs +20 -20
- package/dist/components/Projects/TaskSidebar.d.ts +1 -1
- package/dist/components/Projects/TaskSidebar.js +2 -2
- package/dist/components/Projects/TaskSidebar.mjs +2 -2
- package/dist/components/Projects/TasksView.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/components/Projects/file-list.js +19 -19
- package/dist/components/Projects/file-list.mjs +17 -17
- package/dist/components/Projects/index.js +557 -250
- package/dist/components/Projects/index.mjs +35 -35
- 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 +3773 -3007
- package/dist/components/dc-temp/index.mjs +35 -33
- package/dist/components/dc-temp/mock-data.d.ts +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3337 -3100
- package/dist/components/index.mjs +163 -157
- 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 +99 -99
- 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 +3345 -3108
- package/dist/index.mjs +174 -168
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +12 -12
- package/dist/pages/Documentation.mjs +9 -9
- package/dist/pages/IndexPage.mjs +17 -17
- package/dist/pages/Intranet.mjs +3 -3
- package/dist/pages/LandingPage.mjs +111 -111
- package/dist/pages/Page.mjs +16 -16
- package/dist/pages/Publish.mjs +100 -100
- package/dist/pages/Website.mjs +19 -19
- package/dist/sections/AboutSection.mjs +5 -5
- package/dist/sections/BlogDetail.mjs +4 -4
- package/dist/sections/BlogList.mjs +5 -5
- package/dist/sections/BlogListSection.mjs +5 -5
- package/dist/sections/ContactSection.mjs +5 -5
- package/dist/sections/PageSections.mjs +109 -109
- package/dist/sections/PricingSection.mjs +5 -5
- package/dist/sections/ServiceDetail.mjs +4 -4
- package/dist/sections/ServiceDetailSection.mjs +4 -4
- package/dist/sections/ServiceSection.mjs +100 -100
- package/dist/sections/form/index.mjs +2 -2
- package/dist/sections/index.mjs +109 -109
- 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-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-G7SFQSC7.mjs +0 -306
- 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-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-UHOCECJY.mjs +0 -365
- package/dist/chunk-VY6L37RQ.mjs +0 -103
- package/dist/chunk-X6UI73UN.mjs +0 -262
- package/dist/components/DigitalColleagues/AppSidebarLeft.js +0 -3407
- package/dist/components/DigitalColleagues/DashboardHeader.js +0 -2756
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +0 -15
- 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.js +0 -4080
- package/dist/components/DigitalColleagues/ManagementSidebar.js +0 -99
- 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.js +0 -2745
- 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.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.js +0 -12284
- package/dist/components/DigitalColleagues/Views/index.mjs +0 -114
- 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/digital-colleague-clone.d.ts +0 -9
- 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/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.js +0 -3433
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +0 -151
- 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.mjs +0 -200
- 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.d.ts +0 -12
- package/dist/components/DigitalColleagues/knowledge-search.js +0 -2819
- 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/components/Foundary/AppSidebarLeft.css +0 -917
- package/dist/components/Foundary/AppSidebarLeft.d.ts +0 -47
- package/dist/components/Foundary/AppSidebarLeft.mjs +0 -23
- package/dist/components/Foundary/DashboardHeader.css +0 -917
- package/dist/components/Foundary/DashboardHeader.d.ts +0 -8
- package/dist/components/Foundary/MainPage.css +0 -917
- package/dist/components/Foundary/MainPage.d.ts +0 -3
- package/dist/components/Foundary/MainPage.mjs +0 -46
- package/dist/components/Foundary/ManagementSidebar.d.ts +0 -8
- package/dist/components/Foundary/ManagementSidebar.mjs +0 -9
- package/dist/components/Foundary/Pages/dashboardpage.css +0 -917
- package/dist/components/Foundary/SearchableSelect.css +0 -917
- package/dist/components/Foundary/SearchableSelect.d.ts +0 -16
- package/dist/components/Foundary/SearchableSelect.mjs +0 -16
- package/dist/components/Foundary/Views/ColleaguesView.css +0 -917
- package/dist/components/Foundary/Views/KnowledgeView.css +0 -917
- package/dist/components/Foundary/Views/KnowledgeView.docs.js +0 -2
- package/dist/components/Foundary/Views/KnowledgeView.docs.mjs +0 -7
- package/dist/components/Foundary/Views/index.css +0 -917
- package/dist/components/Foundary/Views/index.d.ts +0 -7
- package/dist/components/Foundary/colleague-card.d.ts +0 -12
- package/dist/components/Foundary/colleague-form.css +0 -917
- package/dist/components/Foundary/colleague-type-selection.css +0 -917
- package/dist/components/Foundary/colleague-type-selection.d.ts +0 -7
- package/dist/components/Foundary/colleague-type-selection.mjs +0 -16
- package/dist/components/Foundary/document-edit.css +0 -917
- package/dist/components/Foundary/document-preview-examples.css +0 -917
- package/dist/components/Foundary/document-preview-examples.d.ts +0 -12
- package/dist/components/Foundary/document-preview.css +0 -917
- package/dist/components/Foundary/index.css +0 -917
- package/dist/components/Foundary/knowledge-browser.css +0 -917
- package/dist/components/Foundary/knowledge-search.css +0 -917
- package/dist/components/Foundary/knowledge-search.mjs +0 -20
- package/dist/components/Foundary/team-form.css +0 -917
- package/dist/{chunk-AEFGMCK3.mjs → chunk-D5KV6INF.mjs} +3 -3
- package/dist/{chunk-SNG6OKEL.mjs → chunk-FTVOJKVA.mjs} +3 -3
- package/dist/{chunk-OT2SSFKS.mjs → chunk-GSG52WU5.mjs} +3 -3
- /package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/DashboardHeader.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/DashboardHeader.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/LandingMenu.css +0 -0
- /package/dist/components/{Foundary → Foundry}/LandingMenu.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Login.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Login.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/MainPage.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/MainPage.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Pages/dashboardpage.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/Views → Foundry/RichText/components/RawUploadComponent}/index.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry/RichText}/index.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/index.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Views/ColleaguesView.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Views/KnowledgeView.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.d.ts +0 -0
- /package/dist/components/{Foundary/RichText/components/RawUploadComponent → Foundry/Views}/index.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Views/index.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/DigitalColleageusLayout.css → Foundry/add-colleague-to-team-form.css} +0 -0
- /package/dist/components/{DigitalColleagues/colleague-card.css → Foundry/app-card.css} +0 -0
- /package/dist/components/{Foundary → Foundry}/colleague-card.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-card.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-form.css +0 -0
- /package/dist/components/{Foundary → Foundry}/colleague-form.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/digital-colleague-clone.css → Foundry/digital-colleague-selection.css} +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-edit.css +0 -0
- /package/dist/components/{Foundary → Foundry}/document-edit.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-preview-examples.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-preview-examples.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-preview.css +0 -0
- /package/dist/components/{Foundary → Foundry}/document-preview.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/file-edit.css +0 -0
- /package/dist/components/{Foundary → Foundry}/file-edit.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-clone.css +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-clone.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-layout.css +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-options.css +0 -0
- /package/dist/components/{Foundary/RichText → Foundry}/index.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/knowledge-browser.css +0 -0
- /package/dist/components/{Foundary → Foundry}/knowledge-browser.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/knowledge-search.css +0 -0
- /package/dist/components/{Foundary → Foundry}/knowledge-search.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/team-form.css +0 -0
- /package/dist/components/{Foundary → Foundry}/team-form.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/test-data.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/digital-colleague-options.css → Projects/GanttView.css} +0 -0
package/dist/chunk-CNQTT5P3.mjs
DELETED
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
KnowledgeSearch
|
|
6
|
-
} from "./chunk-BZENEU5C.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Textarea
|
|
9
|
-
} from "./chunk-4UJUWE3A.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Label
|
|
12
|
-
} from "./chunk-7CVOGGH6.mjs";
|
|
13
|
-
import {
|
|
14
|
-
Badge
|
|
15
|
-
} from "./chunk-BG5JSVXF.mjs";
|
|
16
|
-
import {
|
|
17
|
-
Card,
|
|
18
|
-
CardContent,
|
|
19
|
-
CardHeader,
|
|
20
|
-
CardTitle
|
|
21
|
-
} from "./chunk-EQHAE4MP.mjs";
|
|
22
|
-
import {
|
|
23
|
-
Input
|
|
24
|
-
} from "./chunk-YMZ2OUK6.mjs";
|
|
25
|
-
import {
|
|
26
|
-
Button
|
|
27
|
-
} from "./chunk-I6LSWXZW.mjs";
|
|
28
|
-
|
|
29
|
-
// src/components/DigitalColleagues/colleague-form.tsx
|
|
30
|
-
import { useState, useEffect } from "react";
|
|
31
|
-
import { Bot, Plus, X, Edit } from "lucide-react";
|
|
32
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
|
-
function ColleagueForm({
|
|
34
|
-
colleague,
|
|
35
|
-
onSave,
|
|
36
|
-
onCancel,
|
|
37
|
-
isLoading = false,
|
|
38
|
-
title,
|
|
39
|
-
submitLabel,
|
|
40
|
-
cancelLabel = "Cancel",
|
|
41
|
-
readOnly = false,
|
|
42
|
-
availableKnowledgeDocuments = []
|
|
43
|
-
}) {
|
|
44
|
-
const [formData, setFormData] = useState({
|
|
45
|
-
type: "digital",
|
|
46
|
-
name: "",
|
|
47
|
-
description: "",
|
|
48
|
-
jobDescription: "",
|
|
49
|
-
workInstructions: "",
|
|
50
|
-
capabilities: [],
|
|
51
|
-
knowledge: [],
|
|
52
|
-
coreKnowledge: [],
|
|
53
|
-
version: "1",
|
|
54
|
-
...colleague
|
|
55
|
-
});
|
|
56
|
-
const [newSkill, setNewSkill] = useState("");
|
|
57
|
-
const [newCapability, setNewCapability] = useState("");
|
|
58
|
-
const [editMode, setEditMode] = useState(!readOnly);
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (colleague) {
|
|
61
|
-
setFormData(colleague);
|
|
62
|
-
}
|
|
63
|
-
}, [colleague]);
|
|
64
|
-
const handleSubmit = (e) => {
|
|
65
|
-
e.preventDefault();
|
|
66
|
-
const currentVersion = formData.version ? parseInt(formData.version) : 0;
|
|
67
|
-
const nextVersion = colleague ? (currentVersion + 1).toString() : "1";
|
|
68
|
-
const digitalData = {
|
|
69
|
-
id: formData.id || Date.now().toString(),
|
|
70
|
-
name: formData.name,
|
|
71
|
-
type: "digital",
|
|
72
|
-
status: "active",
|
|
73
|
-
joinedDate: formData.joinedDate || /* @__PURE__ */ new Date(),
|
|
74
|
-
lastActive: formData.lastActive || /* @__PURE__ */ new Date(),
|
|
75
|
-
description: formData.description,
|
|
76
|
-
jobDescription: formData.jobDescription || "",
|
|
77
|
-
workInstructions: formData.workInstructions || "",
|
|
78
|
-
capabilities: formData.capabilities || [],
|
|
79
|
-
knowledge: formData.knowledge || [],
|
|
80
|
-
coreKnowledge: formData.coreKnowledge || [],
|
|
81
|
-
version: nextVersion,
|
|
82
|
-
lastUpdated: formData.lastUpdated || /* @__PURE__ */ new Date(),
|
|
83
|
-
isActive: true
|
|
84
|
-
};
|
|
85
|
-
onSave(digitalData);
|
|
86
|
-
};
|
|
87
|
-
const addArrayItem = (field, value, setter) => {
|
|
88
|
-
if (!value.trim()) return;
|
|
89
|
-
const currentArray = formData[field] || [];
|
|
90
|
-
setFormData({
|
|
91
|
-
...formData,
|
|
92
|
-
[field]: [...currentArray, value.trim()]
|
|
93
|
-
});
|
|
94
|
-
setter("");
|
|
95
|
-
};
|
|
96
|
-
const removeArrayItem = (field, index) => {
|
|
97
|
-
const currentArray = formData[field] || [];
|
|
98
|
-
setFormData({
|
|
99
|
-
...formData,
|
|
100
|
-
[field]: currentArray.filter((_, i) => i !== index)
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
const handleEditToggle = (e) => {
|
|
104
|
-
e.preventDefault();
|
|
105
|
-
setEditMode(!editMode);
|
|
106
|
-
};
|
|
107
|
-
const renderArrayField = (field, label, newValue, setNewValue, placeholder) => {
|
|
108
|
-
const items = formData[field] || [];
|
|
109
|
-
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
110
|
-
/* @__PURE__ */ jsx(Label, { children: label }),
|
|
111
|
-
editMode && /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
112
|
-
/* @__PURE__ */ jsx(
|
|
113
|
-
Input,
|
|
114
|
-
{
|
|
115
|
-
value: newValue,
|
|
116
|
-
onChange: (e) => setNewValue(e.target.value),
|
|
117
|
-
placeholder,
|
|
118
|
-
onKeyPress: (e) => {
|
|
119
|
-
if (e.key === "Enter") {
|
|
120
|
-
e.preventDefault();
|
|
121
|
-
addArrayItem(field, newValue, setNewValue);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
disabled: isLoading
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
/* @__PURE__ */ jsx(
|
|
128
|
-
Button,
|
|
129
|
-
{
|
|
130
|
-
type: "button",
|
|
131
|
-
variant: "outline",
|
|
132
|
-
size: "icon",
|
|
133
|
-
onClick: () => addArrayItem(field, newValue, setNewValue),
|
|
134
|
-
disabled: isLoading,
|
|
135
|
-
children: /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" })
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
] }),
|
|
139
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: items.map((item, index) => /* @__PURE__ */ jsxs(Badge, { className: "gap-1", children: [
|
|
140
|
-
item,
|
|
141
|
-
editMode && /* @__PURE__ */ jsx(
|
|
142
|
-
Button,
|
|
143
|
-
{
|
|
144
|
-
type: "button",
|
|
145
|
-
variant: "ghost",
|
|
146
|
-
size: "icon",
|
|
147
|
-
className: "h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",
|
|
148
|
-
onClick: () => removeArrayItem(field, index),
|
|
149
|
-
disabled: isLoading,
|
|
150
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3" })
|
|
151
|
-
}
|
|
152
|
-
)
|
|
153
|
-
] }, `${field}-${index}-${item}`)) })
|
|
154
|
-
] });
|
|
155
|
-
};
|
|
156
|
-
const formTitle = title || (!editMode ? "View Colleague" : colleague ? "Edit Colleague" : "Add New Colleague");
|
|
157
|
-
const buttonLabel = submitLabel || (colleague ? "Update Colleague" : "Add Colleague");
|
|
158
|
-
return /* @__PURE__ */ jsxs(Card, { className: "m-8 w-full max-w-4xl mx-auto", children: [
|
|
159
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
|
|
160
|
-
/* @__PURE__ */ jsx(Bot, { className: "h-5 w-5" }),
|
|
161
|
-
formTitle
|
|
162
|
-
] }) }),
|
|
163
|
-
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "space-y-6", children: [
|
|
164
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
165
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
166
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "name", children: "Name *" }),
|
|
167
|
-
/* @__PURE__ */ jsx(
|
|
168
|
-
Input,
|
|
169
|
-
{
|
|
170
|
-
id: "name",
|
|
171
|
-
value: formData.name || "",
|
|
172
|
-
onChange: (e) => setFormData({ ...formData, name: e.target.value }),
|
|
173
|
-
required: true,
|
|
174
|
-
disabled: isLoading || !editMode
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
] }),
|
|
178
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
179
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "description", children: "Description" }),
|
|
180
|
-
/* @__PURE__ */ jsx(
|
|
181
|
-
Textarea,
|
|
182
|
-
{
|
|
183
|
-
id: "description",
|
|
184
|
-
value: formData.description || "",
|
|
185
|
-
onChange: (e) => setFormData({ ...formData, description: e.target.value }),
|
|
186
|
-
rows: 3,
|
|
187
|
-
placeholder: "Brief description of this digital colleague...",
|
|
188
|
-
disabled: isLoading || !editMode
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
] })
|
|
192
|
-
] }),
|
|
193
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
194
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold", children: "Digital Colleague Details" }),
|
|
195
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
196
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "jobDescription", children: "Job Description *" }),
|
|
197
|
-
/* @__PURE__ */ jsx(
|
|
198
|
-
Textarea,
|
|
199
|
-
{
|
|
200
|
-
id: "jobDescription",
|
|
201
|
-
value: formData.jobDescription || "",
|
|
202
|
-
onChange: (e) => setFormData({ ...formData, jobDescription: e.target.value }),
|
|
203
|
-
rows: 4,
|
|
204
|
-
required: formData.type === "digital",
|
|
205
|
-
disabled: isLoading || !editMode
|
|
206
|
-
}
|
|
207
|
-
)
|
|
208
|
-
] }),
|
|
209
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
210
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "workInstructions", children: "Work Instructions" }),
|
|
211
|
-
/* @__PURE__ */ jsx(
|
|
212
|
-
Textarea,
|
|
213
|
-
{
|
|
214
|
-
id: "workInstructions",
|
|
215
|
-
value: formData.workInstructions || "",
|
|
216
|
-
onChange: (e) => setFormData({ ...formData, workInstructions: e.target.value }),
|
|
217
|
-
rows: 4,
|
|
218
|
-
placeholder: "Enter detailed work instructions for this digital colleague...",
|
|
219
|
-
disabled: isLoading || !editMode
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
] }),
|
|
223
|
-
renderArrayField(
|
|
224
|
-
"capabilities",
|
|
225
|
-
"Capabilities",
|
|
226
|
-
newCapability,
|
|
227
|
-
setNewCapability,
|
|
228
|
-
"Add capability"
|
|
229
|
-
),
|
|
230
|
-
/* @__PURE__ */ jsx(
|
|
231
|
-
KnowledgeSearch,
|
|
232
|
-
{
|
|
233
|
-
selectedDocuments: formData.knowledge || [],
|
|
234
|
-
onDocumentsChange: (documents) => setFormData({ ...formData, knowledge: documents }),
|
|
235
|
-
label: "Knowledge",
|
|
236
|
-
placeholder: "Search for knowledge documents to add...",
|
|
237
|
-
disabled: isLoading || !editMode,
|
|
238
|
-
availableDocuments: availableKnowledgeDocuments
|
|
239
|
-
}
|
|
240
|
-
),
|
|
241
|
-
/* @__PURE__ */ jsx(
|
|
242
|
-
KnowledgeSearch,
|
|
243
|
-
{
|
|
244
|
-
selectedDocuments: formData.coreKnowledge || [],
|
|
245
|
-
onDocumentsChange: (documents) => setFormData({ ...formData, coreKnowledge: documents }),
|
|
246
|
-
label: "Core Knowledge",
|
|
247
|
-
placeholder: "Search for core knowledge documents...",
|
|
248
|
-
maxSelections: 5,
|
|
249
|
-
disabled: isLoading || !editMode,
|
|
250
|
-
availableDocuments: availableKnowledgeDocuments
|
|
251
|
-
}
|
|
252
|
-
)
|
|
253
|
-
] }),
|
|
254
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 pt-4 border-t", children: [
|
|
255
|
-
/* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: onCancel, disabled: isLoading, children: !editMode ? "Close" : cancelLabel }),
|
|
256
|
-
!editMode ? /* @__PURE__ */ jsxs(
|
|
257
|
-
Button,
|
|
258
|
-
{
|
|
259
|
-
type: "button",
|
|
260
|
-
onClick: handleEditToggle,
|
|
261
|
-
disabled: isLoading,
|
|
262
|
-
className: "gap-2",
|
|
263
|
-
children: [
|
|
264
|
-
/* @__PURE__ */ jsx(Edit, { className: "h-4 w-4" }),
|
|
265
|
-
"Edit"
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
) : /* @__PURE__ */ jsx(Button, { type: "submit", disabled: isLoading, children: isLoading ? "Saving..." : buttonLabel })
|
|
269
|
-
] })
|
|
270
|
-
] }) })
|
|
271
|
-
] });
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export {
|
|
275
|
-
ColleagueForm
|
|
276
|
-
};
|
package/dist/chunk-CQKCEXF2.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KnowledgeBrowser
|
|
3
|
-
} from "./chunk-X6UI73UN.mjs";
|
|
4
|
-
import {
|
|
5
|
-
DashboardHero
|
|
6
|
-
} from "./chunk-QPO45D6F.mjs";
|
|
7
|
-
|
|
8
|
-
// src/components/DigitalColleagues/Views/KnowledgeView.tsx
|
|
9
|
-
import { useState } from "react";
|
|
10
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
function KnowledgeView({
|
|
12
|
-
documents = [],
|
|
13
|
-
contexts = [],
|
|
14
|
-
onDocumentClick = (document) => console.log("Document clicked:", document),
|
|
15
|
-
onDocumentShare = (document) => console.log("Share document:", document),
|
|
16
|
-
onLoadDocumentContent,
|
|
17
|
-
selectedDocumentId
|
|
18
|
-
}) {
|
|
19
|
-
const [activeContext, setActiveContext] = useState(contexts[0]);
|
|
20
|
-
if (!contexts || contexts.length === 0) {
|
|
21
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col h-full max-h-[calc(100vh-8rem)]", children: [
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className: "px-2 md:px-4 py-4 flex-shrink-0", children: /* @__PURE__ */ jsx(
|
|
23
|
-
DashboardHero,
|
|
24
|
-
{
|
|
25
|
-
title: "Knowledge",
|
|
26
|
-
description: "Access, manage, and share all your team knowledge in one place.",
|
|
27
|
-
gradient: "bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",
|
|
28
|
-
primaryAction: {
|
|
29
|
-
label: "Create",
|
|
30
|
-
onClick: () => console.log("Create document clicked")
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
) }),
|
|
34
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "No contexts available" }) })
|
|
35
|
-
] });
|
|
36
|
-
}
|
|
37
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col h-full max-h-[calc(100vh-8rem)]", children: [
|
|
38
|
-
/* @__PURE__ */ jsxs("div", { className: "px-2 md:px-4 py-4 flex-shrink-0", children: [
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
40
|
-
DashboardHero,
|
|
41
|
-
{
|
|
42
|
-
title: "Knowledge",
|
|
43
|
-
description: "Access, manage, and share all your team knowledge in one place.",
|
|
44
|
-
gradient: "bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",
|
|
45
|
-
primaryAction: {
|
|
46
|
-
label: "Create",
|
|
47
|
-
onClick: () => console.log("Create document clicked")
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
52
|
-
/* @__PURE__ */ jsx("div", { className: "border-b border-border", children: /* @__PURE__ */ jsx("nav", { className: "-mb-px flex space-x-8 overflow-x-auto", children: contexts.map((context) => /* @__PURE__ */ jsxs(
|
|
53
|
-
"button",
|
|
54
|
-
{
|
|
55
|
-
onClick: () => setActiveContext(context),
|
|
56
|
-
className: `group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${activeContext.id === context.id ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,
|
|
57
|
-
children: [
|
|
58
|
-
context.icon,
|
|
59
|
-
context.label
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
context.id
|
|
63
|
-
)) }) }),
|
|
64
|
-
activeContext.description && /* @__PURE__ */ jsx("div", { className: "mt-3 px-1", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: activeContext.description }) })
|
|
65
|
-
] })
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 min-h-0 px-2 md:px-4 pb-4", children: /* @__PURE__ */ jsx("div", { className: "h-full rounded-3xl border overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
68
|
-
KnowledgeBrowser,
|
|
69
|
-
{
|
|
70
|
-
documents,
|
|
71
|
-
menuConfig: activeContext.menuConfig,
|
|
72
|
-
onDocumentClick,
|
|
73
|
-
onDocumentShare,
|
|
74
|
-
selectedDocumentId
|
|
75
|
-
}
|
|
76
|
-
) }) })
|
|
77
|
-
] });
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export {
|
|
81
|
-
KnowledgeView
|
|
82
|
-
};
|
package/dist/chunk-EKQB7NJA.mjs
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
DocumentEdit
|
|
6
|
-
} from "./chunk-5MMSWFVA.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-I6LSWXZW.mjs";
|
|
10
|
-
|
|
11
|
-
// src/components/DigitalColleagues/document-preview.tsx
|
|
12
|
-
import { motion } from "motion/react";
|
|
13
|
-
import { File, FileText, Edit3, Type, ChevronDown, ChevronRight, Info } from "lucide-react";
|
|
14
|
-
import { useState } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var defaultMarkdownRenderer = (content) => /* @__PURE__ */ jsx(
|
|
17
|
-
"div",
|
|
18
|
-
{
|
|
19
|
-
className: "prose prose-slate dark:prose-invert max-w-none",
|
|
20
|
-
dangerouslySetInnerHTML: {
|
|
21
|
-
__html: content.replace(/\n/g, "<br>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/`(.*?)`/g, '<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm, '<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm, '<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm, '<h3 class="text-lg font-medium mb-2">$1</h3>')
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
var defaultTextRenderer = (content) => /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap font-mono text-sm leading-relaxed", children: content });
|
|
26
|
-
var defaultRichTextRenderer = (content) => /* @__PURE__ */ jsxs("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: [
|
|
27
|
-
/* @__PURE__ */ jsx("div", { className: "bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4", children: /* @__PURE__ */ jsxs("p", { className: "text-amber-800 dark:text-amber-200 text-sm", children: [
|
|
28
|
-
/* @__PURE__ */ jsx("strong", { children: "RichText Renderer:" }),
|
|
29
|
-
" This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."
|
|
30
|
-
] }) }),
|
|
31
|
-
/* @__PURE__ */ jsx("pre", { className: "text-sm", children: content })
|
|
32
|
-
] });
|
|
33
|
-
var defaultMDXRenderer = (content) => /* @__PURE__ */ jsxs("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: [
|
|
34
|
-
/* @__PURE__ */ jsx("div", { className: "bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4", children: /* @__PURE__ */ jsxs("p", { className: "text-blue-800 dark:text-blue-200 text-sm", children: [
|
|
35
|
-
/* @__PURE__ */ jsx("strong", { children: "MDX Renderer:" }),
|
|
36
|
-
" This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."
|
|
37
|
-
] }) }),
|
|
38
|
-
defaultMarkdownRenderer(content)
|
|
39
|
-
] });
|
|
40
|
-
function DocumentPreview({
|
|
41
|
-
document,
|
|
42
|
-
onDocumentUpdate,
|
|
43
|
-
editable = true,
|
|
44
|
-
renderers,
|
|
45
|
-
availableDocuments = [],
|
|
46
|
-
knowledgeContexts = []
|
|
47
|
-
}) {
|
|
48
|
-
const [isEditing, setIsEditing] = useState(false);
|
|
49
|
-
const [isMetadataExpanded, setIsMetadataExpanded] = useState(false);
|
|
50
|
-
const formatIcon = (format) => {
|
|
51
|
-
switch (format) {
|
|
52
|
-
case "markdown":
|
|
53
|
-
case "mdx":
|
|
54
|
-
return /* @__PURE__ */ jsx(FileText, { className: "h-6 w-6 text-primary" });
|
|
55
|
-
case "richtext":
|
|
56
|
-
return /* @__PURE__ */ jsx(File, { className: "h-6 w-6 text-success" });
|
|
57
|
-
case "text":
|
|
58
|
-
return /* @__PURE__ */ jsx(Type, { className: "h-6 w-6 text-muted-foreground" });
|
|
59
|
-
default:
|
|
60
|
-
return /* @__PURE__ */ jsx(File, { className: "h-6 w-6 text-muted-foreground" });
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const formatBadgeColor = (format) => {
|
|
64
|
-
switch (format) {
|
|
65
|
-
case "markdown":
|
|
66
|
-
return "bg-primary/10 text-primary border-primary/20";
|
|
67
|
-
case "mdx":
|
|
68
|
-
return "bg-secondary/10 text-secondary border-secondary/20";
|
|
69
|
-
case "richtext":
|
|
70
|
-
return "bg-success/10 text-success border-success/20";
|
|
71
|
-
case "text":
|
|
72
|
-
return "bg-muted/50 text-muted-foreground border-muted-foreground/20";
|
|
73
|
-
default:
|
|
74
|
-
return "bg-muted text-muted-foreground border-border";
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
const renderContent = (content, format) => {
|
|
78
|
-
const defaultRenderers = {
|
|
79
|
-
markdown: defaultMarkdownRenderer,
|
|
80
|
-
mdx: defaultMDXRenderer,
|
|
81
|
-
richtext: defaultRichTextRenderer,
|
|
82
|
-
text: defaultTextRenderer
|
|
83
|
-
};
|
|
84
|
-
const renderer = renderers?.[format] || defaultRenderers[format];
|
|
85
|
-
if (renderer) {
|
|
86
|
-
return renderer(content);
|
|
87
|
-
}
|
|
88
|
-
return defaultTextRenderer(content);
|
|
89
|
-
};
|
|
90
|
-
const handleSave = (updatedDocument) => {
|
|
91
|
-
setIsEditing(false);
|
|
92
|
-
onDocumentUpdate?.(updatedDocument);
|
|
93
|
-
};
|
|
94
|
-
const handleCancel = () => {
|
|
95
|
-
setIsEditing(false);
|
|
96
|
-
};
|
|
97
|
-
if (isEditing) {
|
|
98
|
-
return /* @__PURE__ */ jsx(
|
|
99
|
-
DocumentEdit,
|
|
100
|
-
{
|
|
101
|
-
document,
|
|
102
|
-
onSave: handleSave,
|
|
103
|
-
onCancel: handleCancel,
|
|
104
|
-
availableDocuments,
|
|
105
|
-
knowledgeContexts
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
return /* @__PURE__ */ jsxs(
|
|
110
|
-
motion.div,
|
|
111
|
-
{
|
|
112
|
-
initial: { opacity: 0, y: 20 },
|
|
113
|
-
animate: { opacity: 1, y: 0 },
|
|
114
|
-
transition: { duration: 0.3 },
|
|
115
|
-
className: "h-full flex flex-col",
|
|
116
|
-
children: [
|
|
117
|
-
/* @__PURE__ */ jsxs("div", { className: "border-b border-border bg-card p-8 pb-6", children: [
|
|
118
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 mb-4", children: [
|
|
119
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 flex-1 min-w-0", children: [
|
|
120
|
-
/* @__PURE__ */ jsx("div", { className: "flex-shrink-0 p-3 rounded-xl bg-muted border border-border", children: formatIcon(document.format) }),
|
|
121
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
122
|
-
/* @__PURE__ */ jsxs("h1", { className: "text-2xl font-bold text-foreground mb-2 leading-tight", children: [
|
|
123
|
-
document.title,
|
|
124
|
-
/* @__PURE__ */ jsx("span", { className: `inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${formatBadgeColor(document.format)}`, children: document.format.toUpperCase() })
|
|
125
|
-
] }),
|
|
126
|
-
document.description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-lg leading-relaxed", children: document.description })
|
|
127
|
-
] })
|
|
128
|
-
] }),
|
|
129
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
130
|
-
document.metadata && Object.keys(document.metadata).length > 0 && /* @__PURE__ */ jsxs(
|
|
131
|
-
Button,
|
|
132
|
-
{
|
|
133
|
-
variant: "ghost",
|
|
134
|
-
size: "sm",
|
|
135
|
-
onClick: () => setIsMetadataExpanded(!isMetadataExpanded),
|
|
136
|
-
className: "gap-2",
|
|
137
|
-
children: [
|
|
138
|
-
/* @__PURE__ */ jsx(Info, { className: "h-4 w-4" }),
|
|
139
|
-
"Metadata",
|
|
140
|
-
isMetadataExpanded ? /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
),
|
|
144
|
-
editable && /* @__PURE__ */ jsxs(
|
|
145
|
-
Button,
|
|
146
|
-
{
|
|
147
|
-
variant: "outline",
|
|
148
|
-
size: "sm",
|
|
149
|
-
onClick: () => setIsEditing(true),
|
|
150
|
-
className: "gap-2",
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ jsx(Edit3, { className: "h-4 w-4" }),
|
|
153
|
-
"Edit"
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
] })
|
|
158
|
-
] }),
|
|
159
|
-
document.metadata && Object.keys(document.metadata).length > 0 && /* @__PURE__ */ jsx(
|
|
160
|
-
motion.div,
|
|
161
|
-
{
|
|
162
|
-
initial: false,
|
|
163
|
-
animate: {
|
|
164
|
-
height: isMetadataExpanded ? "auto" : 0,
|
|
165
|
-
opacity: isMetadataExpanded ? 1 : 0
|
|
166
|
-
},
|
|
167
|
-
transition: { duration: 0.2, ease: "easeInOut" },
|
|
168
|
-
className: "overflow-hidden",
|
|
169
|
-
children: /* @__PURE__ */ jsxs("div", { className: "pt-4 border-t border-border mt-4", children: [
|
|
170
|
-
/* @__PURE__ */ jsxs("h3", { className: "text-sm font-semibold text-foreground mb-3 flex items-center gap-2", children: [
|
|
171
|
-
/* @__PURE__ */ jsx(Info, { className: "h-4 w-4" }),
|
|
172
|
-
"Document Metadata"
|
|
173
|
-
] }),
|
|
174
|
-
/* @__PURE__ */ jsx("div", { className: "bg-muted rounded-lg p-4 border border-border", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm", children: Object.entries(document.metadata).map(([key, value]) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
175
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-medium text-xs uppercase tracking-wide", children: key.replace(/([A-Z])/g, " $1").trim() }),
|
|
176
|
-
/* @__PURE__ */ jsx("span", { className: "text-foreground font-medium", children: String(value) })
|
|
177
|
-
] }, key)) }) })
|
|
178
|
-
] })
|
|
179
|
-
}
|
|
180
|
-
)
|
|
181
|
-
] }),
|
|
182
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ jsx("div", { className: "p-8", children: /* @__PURE__ */ jsx("div", { className: "space-y-4", children: document.content ? /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx("div", { className: "bg-card border border-border rounded-xl p-6 overflow-hidden", children: renderContent(document.content, document.format) }) }) : /* @__PURE__ */ jsxs("div", { className: "text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border", children: [
|
|
183
|
-
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center", children: /* @__PURE__ */ jsx(FileText, { className: "h-8 w-8 text-muted-foreground" }) }),
|
|
184
|
-
/* @__PURE__ */ jsx("h4", { className: "text-foreground font-medium mb-1", children: "No content available" }),
|
|
185
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "This document doesn't have preview content" })
|
|
186
|
-
] }) }) }) })
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export {
|
|
193
|
-
DocumentPreview
|
|
194
|
-
};
|