cortex-react-components 3.0.6 → 3.0.8
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-FP7MLBPR.mjs → chunk-2S3O5TYH.mjs} +1 -1
- package/dist/{chunk-A45K7TLD.mjs → chunk-2ZSH4X75.mjs} +1 -1
- package/dist/{chunk-2QYYHKCF.mjs → chunk-354MPNDV.mjs} +1 -1
- package/dist/{chunk-GWAHXLXW.mjs → chunk-3YAZKLH3.mjs} +1 -1
- package/dist/{chunk-6X55BFTD.mjs → chunk-44F47U5Y.mjs} +1 -1
- package/dist/{chunk-TCSJWGPP.mjs → chunk-4BRK5CBG.mjs} +2 -2
- package/dist/{chunk-NV67QFQM.mjs → chunk-4HFMA57F.mjs} +7 -4
- package/dist/{chunk-7H3IRT7K.mjs → chunk-5CQITTLV.mjs} +1 -1
- package/dist/{chunk-MAQCJ7GT.mjs → chunk-5KOAYGTO.mjs} +5 -5
- package/dist/{chunk-DAQOEDAR.mjs → chunk-5NGZXIP7.mjs} +1 -1
- package/dist/{chunk-GNZFIBT4.mjs → chunk-5Q43DAAS.mjs} +8 -8
- package/dist/{chunk-URDEWGQC.mjs → chunk-6I3O6TVG.mjs} +1 -1
- package/dist/{chunk-E3ALXLNH.mjs → chunk-6QSVFSOJ.mjs} +1 -1
- package/dist/{chunk-ZDRZ4OQ6.mjs → chunk-B3UYSM32.mjs} +4 -4
- package/dist/{chunk-EG32GIHZ.mjs → chunk-BPAZFILP.mjs} +1 -1
- package/dist/{chunk-DHDEGEML.mjs → chunk-CKBIYWPM.mjs} +3 -3
- package/dist/{chunk-SP6YBXB2.mjs → chunk-COHYOWMB.mjs} +1 -1
- package/dist/{chunk-IRNGNLSK.mjs → chunk-DWGG6JKH.mjs} +4 -4
- package/dist/{chunk-OS5X3ADZ.mjs → chunk-E5LGE3IW.mjs} +1 -1
- package/dist/{chunk-PAXCURFR.mjs → chunk-EGZL4DVZ.mjs} +1 -1
- package/dist/{chunk-ITLPZK2Y.mjs → chunk-EUAQNPRU.mjs} +1 -1
- package/dist/chunk-F4LCVFZK.mjs +19 -0
- package/dist/{chunk-352XMFIA.mjs → chunk-F563CDDJ.mjs} +2 -2
- package/dist/{chunk-N2T6V3NP.mjs → chunk-G7WAPCKX.mjs} +1 -1
- package/dist/{chunk-QOPCGZNQ.mjs → chunk-HGDLIXPQ.mjs} +1 -1
- package/dist/{chunk-J67TVZKA.mjs → chunk-HJLIEMLX.mjs} +2 -2
- package/dist/{chunk-3R2LCGLI.mjs → chunk-HLEMFDTD.mjs} +1 -1
- package/dist/{chunk-R2LCV7J4.mjs → chunk-HXPXJ26M.mjs} +1 -1
- package/dist/{chunk-IMWMWTDR.mjs → chunk-IXQESSPI.mjs} +1 -1
- package/dist/{chunk-6GO5N6ZP.mjs → chunk-KIZUBPPQ.mjs} +1 -1
- package/dist/{chunk-OQ62XQNJ.mjs → chunk-L34WYFSB.mjs} +1 -1
- package/dist/{chunk-3IV2X2TP.mjs → chunk-MSAH6P5O.mjs} +1 -1
- package/dist/{chunk-NPH4VQCE.mjs → chunk-OFES4YYV.mjs} +6 -6
- package/dist/chunk-PE44IHZN.mjs +97 -0
- package/dist/{chunk-L3Z7RRWC.mjs → chunk-PE7KJR4A.mjs} +1 -1
- package/dist/{chunk-5OGDBGXG.mjs → chunk-PJZ5PWKP.mjs} +1 -1
- package/dist/{chunk-MBF6CBFG.mjs → chunk-QPPQNK6O.mjs} +2 -2
- package/dist/{chunk-OUPOGRNP.mjs → chunk-QRC3VJEY.mjs} +1 -1
- package/dist/{chunk-TPZCEPBQ.mjs → chunk-R242HNC3.mjs} +1 -1
- package/dist/{chunk-7RKAC2XY.mjs → chunk-RJRQ3SY5.mjs} +2 -2
- package/dist/{chunk-PBJRNOV6.mjs → chunk-SHHLY2QV.mjs} +1 -1
- package/dist/{chunk-5L5NXMN2.mjs → chunk-SNNQIUJH.mjs} +5 -5
- package/dist/{chunk-SGP3VC6H.mjs → chunk-TMVCGF2B.mjs} +1 -1
- package/dist/{chunk-O3CANERK.mjs → chunk-TZDVVQBQ.mjs} +1 -1
- package/dist/{chunk-JBFNSEIJ.mjs → chunk-UETTBM3J.mjs} +1 -1
- package/dist/{chunk-FLPPUI7L.mjs → chunk-ULYN63F3.mjs} +3 -3
- package/dist/{chunk-RYINW7OG.mjs → chunk-USE5WY4U.mjs} +1 -1
- package/dist/{chunk-3WWKFK6O.mjs → chunk-X2KTMYOD.mjs} +1 -1
- package/dist/{chunk-OU7KRO3L.mjs → chunk-X6PPZZ2E.mjs} +13 -13
- package/dist/{chunk-DPVVX4ZT.mjs → chunk-XWYGGWIF.mjs} +4 -4
- package/dist/{chunk-PSU7NVB6.mjs → chunk-YI6FLZOK.mjs} +1 -1
- package/dist/{chunk-VNLOFYZP.mjs → chunk-YJIB2FYD.mjs} +2 -2
- package/dist/{chunk-UGGMHEBS.mjs → chunk-ZMITLXFT.mjs} +1 -1
- package/dist/components/AdvancedComponents/index.mjs +11 -11
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +5 -5
- package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +2 -2
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +4 -4
- package/dist/components/AdvancedComponents/org-chart-component/index.mjs +8 -8
- package/dist/components/Blocks/Banner.js +17 -1
- package/dist/components/Blocks/Banner.mjs +9 -7
- package/dist/components/Blocks/CallToAction.js +17 -1
- package/dist/components/Blocks/CallToAction.mjs +9 -7
- package/dist/components/Blocks/CollapsibleArea.js +17 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +10 -8
- package/dist/components/Blocks/Content.js +17 -1
- package/dist/components/Blocks/Content.mjs +10 -8
- package/dist/components/Blocks/FeaturesBlock.js +17 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +9 -7
- package/dist/components/Blocks/ImageBlock.mjs +3 -3
- package/dist/components/Blocks/MediaBlock.mjs +3 -3
- package/dist/components/Blocks/RelatedPosts.js +17 -1
- package/dist/components/Blocks/RelatedPosts.mjs +11 -9
- package/dist/components/Blocks/RenderBlocks.js +17 -1
- package/dist/components/Blocks/RenderBlocks.mjs +12 -10
- package/dist/components/Blocks/ReusableContentBlock.js +17 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +12 -10
- package/dist/components/Blocks/index.js +17 -1
- package/dist/components/Blocks/index.mjs +16 -14
- package/dist/components/CRM/CogeBoard.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +2 -2
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +2 -2
- package/dist/components/CRM/NewDealForm.js +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/index.js +2 -2
- package/dist/components/CRM/index.mjs +7 -7
- package/dist/components/CRM/mockData.js +6 -6
- package/dist/components/CRM/mockData.mjs +6 -6
- package/dist/components/Cards/ContentCard.js +17 -1
- package/dist/components/Cards/ContentCard.mjs +9 -7
- package/dist/components/Cards/FeatureCard.js +17 -1
- package/dist/components/Cards/FeatureCard.mjs +9 -7
- package/dist/components/Cards/ImageProxy.css +917 -0
- package/dist/components/Cards/ImageProxy.d.ts +4 -0
- package/dist/components/Cards/ImageProxy.js +2667 -0
- package/dist/components/Cards/ImageProxy.mjs +15 -0
- package/dist/components/Cards/index.d.ts +1 -0
- package/dist/components/Cards/index.js +158 -57
- package/dist/components/Cards/index.mjs +14 -9
- package/dist/components/Chat/ChatInterface.mjs +7 -7
- package/dist/components/Chat/CopilotInterface.mjs +8 -8
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +5 -5
- package/dist/components/Chat/PartTypes/index.mjs +13 -13
- package/dist/components/Chat/demo-long-messages.mjs +8 -8
- package/dist/components/Chat/demo-tests.mjs +8 -8
- package/dist/components/Chat/demo.mjs +8 -8
- package/dist/components/Chat/example-usage.mjs +9 -9
- package/dist/components/Chat/example-with-vercel-ai.mjs +8 -8
- package/dist/components/Chat/index.mjs +13 -13
- package/dist/components/DigitalColleagues/MainPage.mjs +8 -8
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +9 -9
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -2
- package/dist/components/DigitalColleagues/Views/index.mjs +22 -22
- package/dist/components/DigitalColleagues/index.mjs +42 -42
- package/dist/components/Foundary/MainPage.mjs +8 -8
- package/dist/components/Foundary/Pages/dashboardpage.mjs +14 -14
- package/dist/components/Foundary/RichText/index.mjs +5 -5
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +4 -4
- package/dist/components/Foundary/Views/KnowledgeView.mjs +9 -9
- package/dist/components/Foundary/Views/index.mjs +26 -26
- package/dist/components/Foundary/document-edit.mjs +6 -6
- package/dist/components/Foundary/document-preview-examples.mjs +7 -7
- package/dist/components/Foundary/document-preview.mjs +7 -7
- package/dist/components/Foundary/file-edit.mjs +6 -6
- package/dist/components/Foundary/index.mjs +50 -50
- package/dist/components/Foundary/knowledge-browser.mjs +8 -8
- package/dist/components/HeaderFooter/Header.mjs +2 -2
- package/dist/components/HeaderFooter/SectionHeading.js +17 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +10 -8
- package/dist/components/HeaderFooter/index.mjs +14 -14
- package/dist/components/Heros/HighImpact/index.js +17 -1
- package/dist/components/Heros/HighImpact/index.mjs +10 -8
- package/dist/components/Heros/LowImpact/index.js +17 -1
- package/dist/components/Heros/LowImpact/index.mjs +10 -8
- package/dist/components/Heros/MediumImpact/index.js +17 -1
- package/dist/components/Heros/MediumImpact/index.mjs +10 -8
- package/dist/components/Heros/RenderHero.js +17 -1
- package/dist/components/Heros/RenderHero.mjs +13 -11
- package/dist/components/Heros/index.js +17 -1
- package/dist/components/Heros/index.mjs +15 -13
- package/dist/components/Layouts/OutputHeaderFooter.js +17 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +12 -10
- package/dist/components/Layouts/Print.js +17 -1
- package/dist/components/Layouts/Print.mjs +16 -14
- package/dist/components/Layouts/SlideShow.js +17 -1
- package/dist/components/Layouts/SlideShow.mjs +17 -15
- package/dist/components/Layouts/index.js +17 -1
- package/dist/components/Layouts/index.mjs +26 -24
- package/dist/components/Menus/SidebarLeftMulti.js +1 -1
- package/dist/components/Menus/SidebarLeftMulti.mjs +1 -1
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
- package/dist/components/Payload/Media/index.mjs +2 -2
- package/dist/components/Payload/PayloadCard/index.mjs +3 -3
- package/dist/components/Payload/RichText/index.js +17 -1
- package/dist/components/Payload/RichText/index.mjs +9 -7
- package/dist/components/Payload/RichText/serialize.js +17 -1
- package/dist/components/Payload/RichText/serialize.mjs +9 -7
- package/dist/components/Payload/index.js +17 -1
- package/dist/components/Payload/index.mjs +13 -11
- package/dist/components/Projects/EpicsView.mjs +2 -2
- package/dist/components/Projects/FileView.mjs +9 -9
- package/dist/components/Projects/KanbanBoardView.mjs +12 -12
- package/dist/components/Projects/ProjectPage.mjs +16 -16
- package/dist/components/Projects/ProjectView.mjs +16 -16
- package/dist/components/Projects/TaskDetailsModal.mjs +10 -10
- package/dist/components/Projects/file-list.mjs +7 -7
- package/dist/components/Projects/index.mjs +16 -16
- package/dist/components/dc-temp/index.mjs +10 -10
- package/dist/components/index.js +4188 -4087
- package/dist/components/index.mjs +144 -139
- package/dist/decorators/Intranet.mjs +83 -81
- package/dist/index.js +4429 -4328
- package/dist/index.mjs +157 -152
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +17 -1
- package/dist/pages/Blog.mjs +18 -16
- package/dist/pages/Documentation.mjs +7 -7
- package/dist/pages/IndexPage.mjs +21 -19
- package/dist/pages/Intranet.js +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.js +17 -1
- package/dist/pages/LandingPage.mjs +93 -91
- package/dist/pages/Page.js +17 -1
- package/dist/pages/Page.mjs +21 -19
- package/dist/pages/Publish.js +17 -1
- package/dist/pages/Publish.mjs +84 -82
- package/dist/pages/Website.js +17 -1
- package/dist/pages/Website.mjs +25 -23
- package/dist/payload-types.d.ts +1 -1
- package/dist/sections/AboutSection.js +17 -1
- package/dist/sections/AboutSection.mjs +11 -9
- package/dist/sections/BlogDetail.js +17 -1
- package/dist/sections/BlogDetail.mjs +10 -8
- package/dist/sections/BlogList.js +17 -1
- package/dist/sections/BlogList.mjs +11 -9
- package/dist/sections/BlogListSection.mjs +2 -2
- package/dist/sections/ContactSection.js +17 -1
- package/dist/sections/ContactSection.mjs +11 -9
- package/dist/sections/PageSections.js +17 -1
- package/dist/sections/PageSections.mjs +93 -91
- package/dist/sections/PricingSection.js +17 -1
- package/dist/sections/PricingSection.mjs +11 -9
- package/dist/sections/ServiceDetail.js +17 -1
- package/dist/sections/ServiceDetail.mjs +10 -8
- package/dist/sections/ServiceDetailSection.js +17 -1
- package/dist/sections/ServiceDetailSection.mjs +10 -8
- package/dist/sections/ServiceSection.js +17 -1
- package/dist/sections/ServiceSection.mjs +84 -82
- package/dist/sections/index.js +17 -1
- package/dist/sections/index.mjs +95 -93
- package/dist/utils/getLinkHref.d.ts +12 -0
- package/dist/utils/getLinkHref.js +43 -0
- package/dist/utils/getLinkHref.mjs +7 -0
- package/package.json +1 -1
- package/dist/{chunk-6TVRFATY.mjs → chunk-25OSLP2V.mjs} +3 -3
- package/dist/{chunk-NKRBXAPF.mjs → chunk-2YHN7ZCJ.mjs} +3 -3
- package/dist/{chunk-EUAUP52U.mjs → chunk-7UMFQPR5.mjs} +3 -3
- package/dist/{chunk-PYAVZEWJ.mjs → chunk-FZMTC5ID.mjs} +3 -3
- package/dist/{chunk-57INGMKK.mjs → chunk-M5XPU4JK.mjs} +6 -6
- package/dist/{chunk-ECWGCKWS.mjs → chunk-PXB2ICFA.mjs} +6 -6
- package/dist/{chunk-6OFY4WMY.mjs → chunk-RWZ36G7W.mjs} +3 -3
|
@@ -16,15 +16,18 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
Form
|
|
18
18
|
} from "./chunk-GSG52WU5.mjs";
|
|
19
|
+
import {
|
|
20
|
+
ImageBlock
|
|
21
|
+
} from "./chunk-HLEMFDTD.mjs";
|
|
19
22
|
import {
|
|
20
23
|
MediaBlock
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KIZUBPPQ.mjs";
|
|
22
25
|
import {
|
|
23
26
|
CodeBlock
|
|
24
27
|
} from "./chunk-WPX6MOFB.mjs";
|
|
25
28
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
getLinkHref
|
|
30
|
+
} from "./chunk-F4LCVFZK.mjs";
|
|
28
31
|
import {
|
|
29
32
|
DynamicIcon
|
|
30
33
|
} from "./chunk-75ALYLZU.mjs";
|
|
@@ -146,7 +149,7 @@ function FeatureCard({
|
|
|
146
149
|
return /* @__PURE__ */ jsxs2(
|
|
147
150
|
"a",
|
|
148
151
|
{
|
|
149
|
-
href: link
|
|
152
|
+
href: getLinkHref(link),
|
|
150
153
|
className: cn(
|
|
151
154
|
"min-w-56 max-w-xl h-full flex flex-col group bg-background",
|
|
152
155
|
image ? "p-0" : "p-6 md:p-8",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Message,
|
|
3
|
+
MessageContent
|
|
4
|
+
} from "./chunk-FAKMLOOM.mjs";
|
|
1
5
|
import {
|
|
2
6
|
messageHandler
|
|
3
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M5XPU4JK.mjs";
|
|
4
8
|
import {
|
|
5
9
|
Conversation,
|
|
6
10
|
ConversationContent,
|
|
7
11
|
ConversationEmptyState,
|
|
8
12
|
ConversationScrollButton
|
|
9
13
|
} from "./chunk-LY77BPMB.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Message,
|
|
12
|
-
MessageContent
|
|
13
|
-
} from "./chunk-FAKMLOOM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
getContextualActions
|
|
16
16
|
} from "./chunk-AXWYY2I5.mjs";
|
|
@@ -120,7 +120,7 @@ function NewDealForm({
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
const getUserById = (userId) => {
|
|
123
|
-
return users?.find((user) => user.id ===
|
|
123
|
+
return users?.find((user) => user.id === userId);
|
|
124
124
|
};
|
|
125
125
|
const getCustomerById = (customerID) => {
|
|
126
126
|
return customers?.find((customer) => customer.id === Number(customerID));
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
} from "./chunk-OIXHYJGP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
EpicsView
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-25OSLP2V.mjs";
|
|
10
10
|
import {
|
|
11
11
|
KanbanBoardView
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DWGG6JKH.mjs";
|
|
13
|
+
import {
|
|
14
|
+
AddTaskModal
|
|
15
|
+
} from "./chunk-3FBWSJJD.mjs";
|
|
13
16
|
import {
|
|
14
17
|
PlanningView
|
|
15
18
|
} from "./chunk-YNWNEY2R.mjs";
|
|
19
|
+
import {
|
|
20
|
+
FileView
|
|
21
|
+
} from "./chunk-MSAH6P5O.mjs";
|
|
16
22
|
import {
|
|
17
23
|
AddEpicModal
|
|
18
24
|
} from "./chunk-UDCOG2XL.mjs";
|
|
19
|
-
import {
|
|
20
|
-
AddTaskModal
|
|
21
|
-
} from "./chunk-3FBWSJJD.mjs";
|
|
22
|
-
import {
|
|
23
|
-
FileView
|
|
24
|
-
} from "./chunk-3IV2X2TP.mjs";
|
|
25
25
|
import {
|
|
26
26
|
ManagementSidebar
|
|
27
27
|
} from "./chunk-IWG2URAU.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CollapsibleBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HGDLIXPQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ContentBlock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IXQESSPI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CallToActionBlock,
|
|
9
9
|
FeaturesBlock
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4HFMA57F.mjs";
|
|
11
11
|
import {
|
|
12
12
|
MediaBlock
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KIZUBPPQ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
cn
|
|
16
16
|
} from "./chunk-KZPGX6CG.mjs";
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ProjectCard
|
|
12
12
|
} from "./chunk-WHCZTD2K.mjs";
|
|
13
|
+
import {
|
|
14
|
+
FileList
|
|
15
|
+
} from "./chunk-ZMITLXFT.mjs";
|
|
13
16
|
import {
|
|
14
17
|
mockApps,
|
|
15
18
|
mockRecentFiles,
|
|
16
19
|
mockTutorials
|
|
17
20
|
} from "./chunk-EMDTCDYI.mjs";
|
|
18
|
-
import {
|
|
19
|
-
FileList
|
|
20
|
-
} from "./chunk-UGGMHEBS.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DashboardHero
|
|
23
23
|
} from "./chunk-VESIB4VP.mjs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TaskDetailsModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XWYGGWIF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TaskCard
|
|
6
6
|
} from "./chunk-EUOOS2Q3.mjs";
|
|
7
|
+
import {
|
|
8
|
+
AddTaskModal
|
|
9
|
+
} from "./chunk-3FBWSJJD.mjs";
|
|
7
10
|
import {
|
|
8
11
|
KanbanColumn
|
|
9
12
|
} from "./chunk-P7YLSTDO.mjs";
|
|
10
13
|
import {
|
|
11
14
|
AddEpicModal
|
|
12
15
|
} from "./chunk-UDCOG2XL.mjs";
|
|
13
|
-
import {
|
|
14
|
-
AddTaskModal
|
|
15
|
-
} from "./chunk-3FBWSJJD.mjs";
|
|
16
16
|
import {
|
|
17
17
|
DashboardHero
|
|
18
18
|
} from "./chunk-VESIB4VP.mjs";
|
|
@@ -118,7 +118,7 @@ function DealDetails({
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
const getUserById = (userId) => {
|
|
121
|
-
return users?.find((user) => user.id ===
|
|
121
|
+
return users?.find((user) => user.id === userId);
|
|
122
122
|
};
|
|
123
123
|
return /* @__PURE__ */ jsx(Dialog, { open: true, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden", children: [
|
|
124
124
|
/* @__PURE__ */ jsxs(DialogHeader, { className: "flex flex-row items-center justify-between", children: [
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/utils/getLinkHref.ts
|
|
2
|
+
function getLinkHref(link) {
|
|
3
|
+
if (!link) return "#";
|
|
4
|
+
if (link.url) return link.url;
|
|
5
|
+
if (link.reference?.value) {
|
|
6
|
+
const { relationTo, value } = link.reference;
|
|
7
|
+
const slug = value?.slug;
|
|
8
|
+
if (!slug) return "#";
|
|
9
|
+
if (relationTo === "pages") {
|
|
10
|
+
return `/${slug}`;
|
|
11
|
+
}
|
|
12
|
+
return `/${relationTo}/${slug}`;
|
|
13
|
+
}
|
|
14
|
+
return "#";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
getLinkHref
|
|
19
|
+
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
RichText
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4HFMA57F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CMSLink
|
|
9
9
|
} from "./chunk-2NXKZY7U.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Media
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2YHN7ZCJ.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/Heros/HighImpact/index.tsx
|
|
15
15
|
import Image from "next/image";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
Footer,
|
|
6
6
|
HeaderTop,
|
|
7
7
|
TitleSlide
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-COHYOWMB.mjs";
|
|
9
9
|
import {
|
|
10
10
|
RenderBlocks
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B3UYSM32.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cn
|
|
14
14
|
} from "./chunk-KZPGX6CG.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
+
import {
|
|
5
|
+
KnowledgeView
|
|
6
|
+
} from "./chunk-6I3O6TVG.mjs";
|
|
4
7
|
import {
|
|
5
8
|
ColleaguesView
|
|
6
9
|
} from "./chunk-XWCG4YG3.mjs";
|
|
7
|
-
import {
|
|
8
|
-
KnowledgeView
|
|
9
|
-
} from "./chunk-URDEWGQC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
mockNotifications,
|
|
12
12
|
mockSidebarItems
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
ProjectCard
|
|
22
22
|
} from "./chunk-WHCZTD2K.mjs";
|
|
23
|
+
import {
|
|
24
|
+
FileList
|
|
25
|
+
} from "./chunk-ZMITLXFT.mjs";
|
|
23
26
|
import {
|
|
24
27
|
mockApps,
|
|
25
28
|
mockRecentFiles,
|
|
26
29
|
mockTutorials
|
|
27
30
|
} from "./chunk-EMDTCDYI.mjs";
|
|
28
|
-
import {
|
|
29
|
-
FileList
|
|
30
|
-
} from "./chunk-UGGMHEBS.mjs";
|
|
31
31
|
import {
|
|
32
32
|
DashboardHero
|
|
33
33
|
} from "./chunk-VESIB4VP.mjs";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Dialog,
|
|
6
|
+
DialogClose,
|
|
7
|
+
DialogContent,
|
|
8
|
+
DialogHeader,
|
|
9
|
+
DialogTitle
|
|
10
|
+
} from "./chunk-3BYULUMU.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/Cards/ImageProxy.tsx
|
|
13
|
+
import NextImage from "next/image";
|
|
14
|
+
import { useState } from "react";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
function isExternalUrl(url) {
|
|
17
|
+
return url.startsWith("http");
|
|
18
|
+
}
|
|
19
|
+
function getAPIUrl(src, baseContext) {
|
|
20
|
+
let url = src;
|
|
21
|
+
if (isExternalUrl(src)) {
|
|
22
|
+
url = src;
|
|
23
|
+
} else {
|
|
24
|
+
let newSrc = src.replace("./", "");
|
|
25
|
+
if (newSrc.startsWith("/")) {
|
|
26
|
+
newSrc = newSrc.slice(1);
|
|
27
|
+
}
|
|
28
|
+
url = baseContext + "/" + newSrc;
|
|
29
|
+
}
|
|
30
|
+
return url;
|
|
31
|
+
}
|
|
32
|
+
function ImageComponent({ src, alt }) {
|
|
33
|
+
const [open, setOpen] = useState(false);
|
|
34
|
+
const [zoomable, setZoomable] = useState(false);
|
|
35
|
+
const [imageSize, setImageSize] = useState({ width: 0, height: 0 });
|
|
36
|
+
const handleClickOpen = () => {
|
|
37
|
+
if (zoomable) {
|
|
38
|
+
setOpen(true);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const handleClose = () => {
|
|
42
|
+
setOpen(false);
|
|
43
|
+
};
|
|
44
|
+
const handleImageLoaded = (event) => {
|
|
45
|
+
const { naturalWidth, naturalHeight } = event.target;
|
|
46
|
+
setImageSize({ width: naturalWidth, height: naturalHeight });
|
|
47
|
+
setZoomable(naturalWidth > 300 || naturalHeight > 300);
|
|
48
|
+
};
|
|
49
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: `relative mx-auto my-4 flex justify-center items-center cursor-pointer ${imageSize.height > 300 ? "h-[300px]" : `h-[${imageSize.height}px]`}`,
|
|
54
|
+
onClick: handleClickOpen,
|
|
55
|
+
children: /* @__PURE__ */ jsx(
|
|
56
|
+
NextImage,
|
|
57
|
+
{
|
|
58
|
+
sizes: "100vw",
|
|
59
|
+
height: imageSize.height,
|
|
60
|
+
width: imageSize.width,
|
|
61
|
+
src,
|
|
62
|
+
alt: alt || "",
|
|
63
|
+
onLoad: handleImageLoaded,
|
|
64
|
+
unoptimized: true,
|
|
65
|
+
className: "object-contain max-w-full max-h-full"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "flex flex-col items-center justify-center", children: [
|
|
71
|
+
/* @__PURE__ */ jsxs(DialogHeader, { className: "flex w-full justify-end", children: [
|
|
72
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "hidden", children: alt }),
|
|
73
|
+
/* @__PURE__ */ jsx(DialogClose, {})
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
76
|
+
NextImage,
|
|
77
|
+
{
|
|
78
|
+
height: imageSize.height,
|
|
79
|
+
width: imageSize.width,
|
|
80
|
+
src,
|
|
81
|
+
alt: alt || "",
|
|
82
|
+
unoptimized: true,
|
|
83
|
+
className: "object-contain"
|
|
84
|
+
}
|
|
85
|
+
) })
|
|
86
|
+
] }) })
|
|
87
|
+
] });
|
|
88
|
+
}
|
|
89
|
+
function ImageProxy({ props, baseContext }) {
|
|
90
|
+
let { src } = props;
|
|
91
|
+
src = getAPIUrl(src, baseContext);
|
|
92
|
+
return /* @__PURE__ */ jsx(ImageComponent, { src, alt: props.alt });
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
ImageProxy
|
|
97
|
+
};
|
|
@@ -78,7 +78,7 @@ function SidebarLeftMulti({
|
|
|
78
78
|
mainNav && !loading && mainNav.map((item, index) => /* @__PURE__ */ jsxs(SidebarGroup, { children: [
|
|
79
79
|
/* @__PURE__ */ jsx(SidebarGroupLabel, { children: item.name }),
|
|
80
80
|
item && !loading && item.nav.map((item2, index2) => /* @__PURE__ */ jsx(Menu, { subNav: item2, pathName, Link }, index2))
|
|
81
|
-
] })),
|
|
81
|
+
] }, index)),
|
|
82
82
|
/* @__PURE__ */ jsx(SidebarGroup, { className: "mt-auto", children: /* @__PURE__ */ jsx(SidebarGroupContent, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: secondaryNav && !loading && secondaryNav.map((item) => /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: true, size: "sm", children: /* @__PURE__ */ jsxs(Link, { href: item.url || "", children: [
|
|
83
83
|
item.icon && /* @__PURE__ */ jsx(item.icon, {}),
|
|
84
84
|
/* @__PURE__ */ jsx("span", { children: item.label })
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import {
|
|
5
5
|
HeaderTop,
|
|
6
6
|
TitleSlide
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-COHYOWMB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RenderBlocks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B3UYSM32.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getTableOfContents
|
|
13
13
|
} from "./chunk-BXLYIIII.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SectionHero
|
|
3
3
|
} from "./chunk-N77BYZ6A.mjs";
|
|
4
|
+
import {
|
|
5
|
+
MediumImpactHero
|
|
6
|
+
} from "./chunk-TZDVVQBQ.mjs";
|
|
4
7
|
import {
|
|
5
8
|
HighImpactHero
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F563CDDJ.mjs";
|
|
7
10
|
import {
|
|
8
11
|
LowImpactHero
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
MediumImpactHero
|
|
12
|
-
} from "./chunk-O3CANERK.mjs";
|
|
12
|
+
} from "./chunk-USE5WY4U.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/Heros/RenderHero.tsx
|
|
15
15
|
import { ChevronRightIcon, HomeIcon } from "@heroicons/react/20/solid";
|