cortex-react-components 3.0.12 → 3.1.1
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-6QSVFSOJ.mjs → chunk-2L6AWG6R.mjs} +2 -2
- package/dist/{chunk-25OSLP2V.mjs → chunk-37Y7VNXB.mjs} +3 -3
- package/dist/{chunk-3IXZB3VP.mjs → chunk-3DWDGYDG.mjs} +1 -1
- package/dist/{chunk-CUUAA2TB.mjs → chunk-3K6EVFOW.mjs} +1 -1
- package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
- package/dist/{chunk-Y7B7YO6Q.mjs → chunk-3RYHYKVQ.mjs} +1 -1
- package/dist/{chunk-HIJIG7N3.mjs → chunk-5MMSWFVA.mjs} +1 -1
- package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
- package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
- package/dist/{chunk-DWGG6JKH.mjs → chunk-6QT7LNDT.mjs} +7 -7
- package/dist/{chunk-G7WAPCKX.mjs → chunk-6R3QP53O.mjs} +2 -2
- package/dist/{chunk-T2VDQBFT.mjs → chunk-6S7EQDLL.mjs} +1 -1
- package/dist/{chunk-ZJ5SRNYD.mjs → chunk-7HHLKQE4.mjs} +2 -2
- package/dist/{chunk-JJDC25TG.mjs → chunk-7LM2P6N3.mjs} +2 -2
- package/dist/{chunk-3FBWSJJD.mjs → chunk-C3CKYJ2F.mjs} +26 -5
- package/dist/{chunk-FBCL4K4A.mjs → chunk-D3AHBPI5.mjs} +2 -2
- package/dist/{chunk-BAJ7NCAT.mjs → chunk-DRLNETNN.mjs} +1 -1
- package/dist/{chunk-HEP6FJO5.mjs → chunk-EDNSRWWC.mjs} +5 -5
- package/dist/{chunk-7IMTNL53.mjs → chunk-EEVXIKNB.mjs} +1 -1
- package/dist/{chunk-5OTGP6K7.mjs → chunk-EKQB7NJA.mjs} +1 -1
- package/dist/{chunk-NM7RODDO.mjs → chunk-F6SQTC6R.mjs} +4 -4
- package/dist/{chunk-CKBIYWPM.mjs → chunk-FIG55FIG.mjs} +8 -8
- package/dist/{chunk-725ZPBX4.mjs → chunk-FZMTC5ID.mjs} +1 -1
- package/dist/{chunk-MSAH6P5O.mjs → chunk-GYQ32TZL.mjs} +1 -1
- package/dist/{chunk-R242HNC3.mjs → chunk-HK2DQNBU.mjs} +1 -1
- package/dist/{chunk-WNGLLRYA.mjs → chunk-HNVHGBNE.mjs} +1 -1
- package/dist/{chunk-LVLYUHSA.mjs → chunk-IQ67MHAY.mjs} +1 -1
- package/dist/{chunk-65NN5XR3.mjs → chunk-IRNI7N2Y.mjs} +15 -15
- package/dist/{chunk-R4WRE5VN.mjs → chunk-IWQEM5KO.mjs} +2 -2
- package/dist/{chunk-IB4EINFP.mjs → chunk-IWSATDRG.mjs} +1 -1
- package/dist/{chunk-KZORKJHD.mjs → chunk-JNFOPTIM.mjs} +1 -1
- package/dist/{chunk-6I3O6TVG.mjs → chunk-K6N5K2A7.mjs} +1 -1
- package/dist/{chunk-ZD5DKC5T.mjs → chunk-KMGTUNRZ.mjs} +1 -1
- package/dist/{chunk-DOIUUDF6.mjs → chunk-KYY7BMXI.mjs} +1 -1
- package/dist/{chunk-XWYGGWIF.mjs → chunk-MPFWWJYT.mjs} +16 -15
- package/dist/{chunk-S2JSIAMP.mjs → chunk-N5HTSJLI.mjs} +1 -1
- package/dist/{chunk-HDLJDXNS.mjs → chunk-NHDPHK6D.mjs} +1 -1
- package/dist/{chunk-64IBDKCH.mjs → chunk-NSYYRG6A.mjs} +1 -1
- package/dist/{chunk-3YAZKLH3.mjs → chunk-P4P6J2SW.mjs} +1 -1
- package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
- package/dist/{chunk-FHXOATYT.mjs → chunk-PRMR24PY.mjs} +1 -1
- package/dist/{chunk-OFUTCZ7A.mjs → chunk-PTDP7PZK.mjs} +15 -12
- package/dist/{chunk-ZMITLXFT.mjs → chunk-QE3XE3LW.mjs} +1 -1
- package/dist/{chunk-MNJ5CMJM.mjs → chunk-QJQ66DYZ.mjs} +1 -1
- package/dist/{chunk-OFES4YYV.mjs → chunk-RHKRF3X2.mjs} +8 -8
- package/dist/{chunk-3NXXPFU2.mjs → chunk-RNHGLZYP.mjs} +1 -1
- package/dist/{chunk-YNWNEY2R.mjs → chunk-S4UFD5H6.mjs} +61 -8
- package/dist/{chunk-AQMIW7RS.mjs → chunk-SGXOA4RL.mjs} +1 -1
- package/dist/{chunk-T36HNGWV.mjs → chunk-SJI6X5DK.mjs} +2 -2
- package/dist/{chunk-VEDUPADV.mjs → chunk-UJI3Y73K.mjs} +1 -1
- package/dist/{chunk-7DP7YDKJ.mjs → chunk-V6YEUAIH.mjs} +1 -1
- package/dist/{chunk-CZB6WWST.mjs → chunk-X6UI73UN.mjs} +1 -1
- package/dist/{chunk-UM7KTWAX.mjs → chunk-XCZCWSOY.mjs} +2 -2
- package/dist/{chunk-5Q43DAAS.mjs → chunk-YX3B4LPC.mjs} +11 -11
- package/dist/{chunk-3HO4HLPV.mjs → chunk-ZFUPXIGR.mjs} +3 -3
- package/dist/{chunk-RJRQ3SY5.mjs → chunk-ZWV2O6CK.mjs} +2 -2
- package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
- package/dist/components/AdvancedComponents/EditableField.js +3 -3
- package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
- package/dist/components/AdvancedComponents/index.js +4 -4
- package/dist/components/AdvancedComponents/index.mjs +2 -2
- package/dist/components/Blocks/Banner.mjs +5 -5
- package/dist/components/Blocks/CallToAction.mjs +5 -5
- package/dist/components/Blocks/CollapsibleArea.mjs +6 -6
- package/dist/components/Blocks/Content.mjs +6 -6
- package/dist/components/Blocks/FeaturesBlock.mjs +5 -5
- package/dist/components/Blocks/ImageBlock.mjs +3 -3
- package/dist/components/Blocks/MediaBlock.mjs +3 -3
- package/dist/components/Blocks/RelatedPosts.mjs +7 -7
- package/dist/components/Blocks/RenderBlocks.mjs +8 -8
- package/dist/components/Blocks/ReusableContentBlock.mjs +8 -8
- package/dist/components/Blocks/index.mjs +10 -10
- package/dist/components/Cards/ContentCard.mjs +5 -5
- package/dist/components/Cards/FeatureCard.mjs +5 -5
- package/dist/components/Cards/index.mjs +5 -5
- package/dist/components/Chat/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +3 -3
- package/dist/components/Chat/demo-long-messages.js +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +3 -3
- package/dist/components/Chat/demo-tests.js +1 -1
- package/dist/components/Chat/demo-tests.mjs +3 -3
- package/dist/components/Chat/demo.js +1 -1
- package/dist/components/Chat/demo.mjs +3 -3
- package/dist/components/Chat/example-usage.js +1 -1
- package/dist/components/Chat/example-usage.mjs +3 -3
- package/dist/components/Chat/example-with-vercel-ai.js +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +3 -3
- package/dist/components/Chat/index.js +1 -1
- package/dist/components/Chat/index.mjs +3 -3
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +2 -2
- package/dist/components/DigitalColleagues/MainPage.mjs +8 -8
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +4 -4
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +14 -14
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +3 -3
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +5 -5
- package/dist/components/DigitalColleagues/Views/index.js +115 -40
- package/dist/components/DigitalColleagues/Views/index.mjs +28 -28
- package/dist/components/DigitalColleagues/document-edit.js +3 -3
- package/dist/components/DigitalColleagues/document-edit.mjs +2 -2
- package/dist/components/DigitalColleagues/document-preview-examples.js +3 -3
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +3 -3
- package/dist/components/DigitalColleagues/document-preview.js +3 -3
- package/dist/components/DigitalColleagues/document-preview.mjs +3 -3
- package/dist/components/DigitalColleagues/index.js +116 -41
- package/dist/components/DigitalColleagues/index.mjs +40 -40
- package/dist/components/DigitalColleagues/knowledge-browser.js +3 -3
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +4 -4
- package/dist/components/Foundary/MainPage.mjs +8 -8
- package/dist/components/Foundary/Pages/dashboardpage.js +4 -4
- package/dist/components/Foundary/Pages/dashboardpage.mjs +14 -14
- package/dist/components/Foundary/RichText/index.mjs +3 -3
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +2 -2
- package/dist/components/Foundary/Views/KnowledgeView.js +3 -3
- package/dist/components/Foundary/Views/KnowledgeView.mjs +8 -8
- package/dist/components/Foundary/Views/index.js +115 -40
- package/dist/components/Foundary/Views/index.mjs +28 -28
- package/dist/components/Foundary/document-edit.js +3 -3
- package/dist/components/Foundary/document-edit.mjs +5 -5
- package/dist/components/Foundary/document-preview-examples.js +3 -3
- package/dist/components/Foundary/document-preview-examples.mjs +6 -6
- package/dist/components/Foundary/document-preview.js +3 -3
- package/dist/components/Foundary/document-preview.mjs +6 -6
- package/dist/components/Foundary/file-edit.js +3 -3
- package/dist/components/Foundary/file-edit.mjs +5 -5
- package/dist/components/Foundary/foundary-layout.js +1 -1
- package/dist/components/Foundary/foundary-layout.mjs +2 -2
- package/dist/components/Foundary/index.js +116 -41
- package/dist/components/Foundary/index.mjs +40 -40
- package/dist/components/Foundary/knowledge-browser.js +3 -3
- package/dist/components/Foundary/knowledge-browser.mjs +7 -7
- package/dist/components/HeaderFooter/Header.mjs +3 -3
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +2 -2
- package/dist/components/HeaderFooter/SectionHeading.mjs +6 -6
- package/dist/components/HeaderFooter/index.mjs +13 -13
- package/dist/components/Heros/HighImpact/index.mjs +6 -6
- package/dist/components/Heros/LowImpact/index.mjs +6 -6
- package/dist/components/Heros/MediumImpact/index.mjs +6 -6
- package/dist/components/Heros/RenderHero.mjs +9 -9
- package/dist/components/Heros/index.mjs +11 -11
- package/dist/components/Holidays/HolidayTracker.mjs +2 -2
- package/dist/components/Holidays/index.mjs +4 -4
- package/dist/components/Layouts/OutputHeaderFooter.mjs +8 -8
- package/dist/components/Layouts/Print.mjs +12 -12
- package/dist/components/Layouts/SlideShow.mjs +13 -13
- package/dist/components/Layouts/index.mjs +14 -14
- package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
- package/dist/components/Payload/Media/index.mjs +2 -2
- package/dist/components/Payload/PayloadCard/index.mjs +3 -3
- package/dist/components/Payload/RichText/index.mjs +5 -5
- package/dist/components/Payload/RichText/serialize.mjs +5 -5
- package/dist/components/Payload/index.mjs +7 -7
- package/dist/components/Projects/AddTaskModal.js +97 -56
- package/dist/components/Projects/AddTaskModal.mjs +2 -1
- package/dist/components/Projects/EpicsView.js +23 -5
- package/dist/components/Projects/EpicsView.mjs +2 -2
- package/dist/components/Projects/FileView.js +3 -3
- package/dist/components/Projects/FileView.mjs +7 -7
- package/dist/components/Projects/KanbanBoardView.js +54 -32
- package/dist/components/Projects/KanbanBoardView.mjs +11 -11
- package/dist/components/Projects/PlanningView.js +61 -8
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +116 -41
- package/dist/components/Projects/ProjectPage.mjs +18 -18
- package/dist/components/Projects/ProjectView.js +115 -40
- package/dist/components/Projects/ProjectView.mjs +16 -16
- package/dist/components/Projects/ProjectsIndexView.mjs +2 -2
- package/dist/components/Projects/TaskDetailsModal.js +31 -27
- package/dist/components/Projects/TaskDetailsModal.mjs +8 -8
- package/dist/components/Projects/TaskSidebar.js +15 -12
- package/dist/components/Projects/TaskSidebar.mjs +1 -1
- package/dist/components/Projects/file-list.js +3 -3
- package/dist/components/Projects/file-list.mjs +6 -6
- package/dist/components/Projects/index.js +115 -40
- package/dist/components/Projects/index.mjs +21 -21
- package/dist/components/dc-temp/index.js +3 -3
- package/dist/components/dc-temp/index.mjs +14 -14
- package/dist/components/index.js +116 -41
- package/dist/components/index.mjs +80 -80
- package/dist/decorators/Intranet.css +3 -0
- package/dist/decorators/Intranet.mjs +62 -62
- package/dist/globals.css +3 -0
- package/dist/index.js +116 -41
- package/dist/index.mjs +93 -93
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +14 -14
- package/dist/pages/Documentation.mjs +7 -7
- package/dist/pages/IndexPage.mjs +19 -19
- package/dist/pages/LandingPage.mjs +72 -72
- package/dist/pages/Page.mjs +17 -17
- package/dist/pages/Publish.mjs +61 -61
- package/dist/pages/Website.mjs +21 -21
- package/dist/sections/AboutSection.mjs +7 -7
- package/dist/sections/BlogDetail.mjs +6 -6
- package/dist/sections/BlogList.mjs +7 -7
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +7 -7
- package/dist/sections/PageSections.mjs +70 -70
- package/dist/sections/PricingSection.mjs +7 -7
- package/dist/sections/ServiceDetail.mjs +6 -6
- package/dist/sections/ServiceDetailSection.mjs +6 -6
- package/dist/sections/ServiceSection.mjs +61 -61
- package/dist/sections/index.mjs +72 -72
- package/package.json +1 -1
- package/dist/{chunk-4IMURNBM.mjs → chunk-2TIM3NGN.mjs} +3 -3
- package/dist/{chunk-AGZGZHXC.mjs → chunk-FHZHQDXV.mjs} +3 -3
- package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
- package/dist/{chunk-RGWOTOBE.mjs → chunk-ONDAHNWM.mjs} +3 -3
- package/dist/{chunk-PXB2ICFA.mjs → chunk-VMDVXNP5.mjs} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TaskCard
|
|
3
3
|
} from "./chunk-EUOOS2Q3.mjs";
|
|
4
|
-
import {
|
|
5
|
-
AddTaskModal
|
|
6
|
-
} from "./chunk-3FBWSJJD.mjs";
|
|
7
4
|
import {
|
|
8
5
|
AddEpicModal
|
|
9
6
|
} from "./chunk-UDCOG2XL.mjs";
|
|
7
|
+
import {
|
|
8
|
+
AddTaskModal
|
|
9
|
+
} from "./chunk-C3CKYJ2F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
DashboardHero
|
|
12
12
|
} from "./chunk-VESIB4VP.mjs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KanbanColumn
|
|
3
|
+
} from "./chunk-P7YLSTDO.mjs";
|
|
1
4
|
import {
|
|
2
5
|
TaskDetailsModal
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MPFWWJYT.mjs";
|
|
4
7
|
import {
|
|
5
8
|
TaskCard
|
|
6
9
|
} from "./chunk-EUOOS2Q3.mjs";
|
|
7
|
-
import {
|
|
8
|
-
AddTaskModal
|
|
9
|
-
} from "./chunk-3FBWSJJD.mjs";
|
|
10
|
-
import {
|
|
11
|
-
KanbanColumn
|
|
12
|
-
} from "./chunk-P7YLSTDO.mjs";
|
|
13
10
|
import {
|
|
14
11
|
AddEpicModal
|
|
15
12
|
} from "./chunk-UDCOG2XL.mjs";
|
|
13
|
+
import {
|
|
14
|
+
AddTaskModal
|
|
15
|
+
} from "./chunk-C3CKYJ2F.mjs";
|
|
16
16
|
import {
|
|
17
17
|
DashboardHero
|
|
18
18
|
} from "./chunk-VESIB4VP.mjs";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./chunk-GSG52WU5.mjs";
|
|
19
19
|
import {
|
|
20
20
|
MediaBlock
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6GO5N6ZP.mjs";
|
|
22
22
|
import {
|
|
23
23
|
ImageBlock
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3R2LCGLI.mjs";
|
|
25
25
|
import {
|
|
26
26
|
CodeBlock
|
|
27
27
|
} from "./chunk-WPX6MOFB.mjs";
|
|
@@ -22,6 +22,9 @@ import {
|
|
|
22
22
|
DialogHeader,
|
|
23
23
|
DialogTitle
|
|
24
24
|
} from "./chunk-3BYULUMU.mjs";
|
|
25
|
+
import {
|
|
26
|
+
Badge
|
|
27
|
+
} from "./chunk-BG5JSVXF.mjs";
|
|
25
28
|
import {
|
|
26
29
|
Input
|
|
27
30
|
} from "./chunk-YMZ2OUK6.mjs";
|
|
@@ -92,6 +95,18 @@ var AddTaskModal = ({
|
|
|
92
95
|
const handleSubmit = (e) => {
|
|
93
96
|
e.preventDefault();
|
|
94
97
|
if (formData.name.trim()) {
|
|
98
|
+
const sprintValue = formData.sprint === "none" ? null : Number(formData.sprint);
|
|
99
|
+
let assigneeValue = null;
|
|
100
|
+
if (formData.assignee !== "none" && formData.assignee.trim()) {
|
|
101
|
+
const selectedAssignee = assignees.find((a) => a.id.toString() === formData.assignee);
|
|
102
|
+
if (selectedAssignee) {
|
|
103
|
+
if ("collection" in selectedAssignee) {
|
|
104
|
+
assigneeValue = { relationTo: "users", value: selectedAssignee.id };
|
|
105
|
+
} else {
|
|
106
|
+
assigneeValue = { relationTo: "digital-colleagues", value: Number(selectedAssignee.id) };
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
95
110
|
onAddTask({
|
|
96
111
|
name: formData.name.trim(),
|
|
97
112
|
description: formData.description.trim(),
|
|
@@ -100,8 +115,8 @@ var AddTaskModal = ({
|
|
|
100
115
|
type: formData.type,
|
|
101
116
|
storyPoints: formData.storyPoints,
|
|
102
117
|
epic: Number(formData.epic),
|
|
103
|
-
sprint:
|
|
104
|
-
assignee:
|
|
118
|
+
sprint: sprintValue,
|
|
119
|
+
assignee: assigneeValue,
|
|
105
120
|
dateLogged: (/* @__PURE__ */ new Date()).toISOString(),
|
|
106
121
|
index: 0
|
|
107
122
|
});
|
|
@@ -113,7 +128,7 @@ var AddTaskModal = ({
|
|
|
113
128
|
type: "story",
|
|
114
129
|
storyPoints: 1,
|
|
115
130
|
epic: defaultEpicId || "",
|
|
116
|
-
sprint: "",
|
|
131
|
+
sprint: "none",
|
|
117
132
|
assignee: ""
|
|
118
133
|
});
|
|
119
134
|
onClose();
|
|
@@ -241,7 +256,7 @@ var AddTaskModal = ({
|
|
|
241
256
|
)
|
|
242
257
|
] }),
|
|
243
258
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
244
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "
|
|
259
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "assignee", children: "Assignee" }),
|
|
245
260
|
/* @__PURE__ */ jsxs(
|
|
246
261
|
Select,
|
|
247
262
|
{
|
|
@@ -251,7 +266,13 @@ var AddTaskModal = ({
|
|
|
251
266
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select an Assignee" }) }),
|
|
252
267
|
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
253
268
|
/* @__PURE__ */ jsx(SelectItem, { value: "none", children: "No Assignee" }),
|
|
254
|
-
assignees.map((
|
|
269
|
+
assignees.map((assignee) => {
|
|
270
|
+
const isUser = "collection" in assignee;
|
|
271
|
+
return /* @__PURE__ */ jsx(SelectItem, { value: assignee.id.toString(), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
272
|
+
assignee.name,
|
|
273
|
+
isUser ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs", children: "User" }) : /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs", children: "Digital Colleague" })
|
|
274
|
+
] }) }, assignee.id);
|
|
275
|
+
})
|
|
255
276
|
] })
|
|
256
277
|
]
|
|
257
278
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
RichText
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7LM2P6N3.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-NKRBXAPF.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/Heros/HighImpact/index.tsx
|
|
15
15
|
import Image from "next/image";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-N77BYZ6A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
MediumImpactHero
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
HighImpactHero
|
|
9
|
-
} from "./chunk-FBCL4K4A.mjs";
|
|
6
|
+
} from "./chunk-NSYYRG6A.mjs";
|
|
10
7
|
import {
|
|
11
8
|
LowImpactHero
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3DWDGYDG.mjs";
|
|
10
|
+
import {
|
|
11
|
+
HighImpactHero
|
|
12
|
+
} from "./chunk-D3AHBPI5.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/Heros/RenderHero.tsx
|
|
15
15
|
import { ChevronRightIcon, HomeIcon } from "@heroicons/react/20/solid";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CollapsibleBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QJQ66DYZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ContentBlock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6S7EQDLL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CallToActionBlock,
|
|
9
9
|
FeaturesBlock
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7LM2P6N3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
MediaBlock
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6GO5N6ZP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
cn
|
|
16
16
|
} from "./chunk-KZPGX6CG.mjs";
|
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
KnowledgeView
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JNFOPTIM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AppCard
|
|
9
9
|
} from "./chunk-XGHUG2WQ.mjs";
|
|
10
|
-
import {
|
|
11
|
-
ProjectCard
|
|
12
|
-
} from "./chunk-WHCZTD2K.mjs";
|
|
13
|
-
import {
|
|
14
|
-
FileList
|
|
15
|
-
} from "./chunk-ZMITLXFT.mjs";
|
|
16
10
|
import {
|
|
17
11
|
mockApps,
|
|
18
12
|
mockRecentFiles,
|
|
19
13
|
mockTutorials
|
|
20
14
|
} from "./chunk-EMDTCDYI.mjs";
|
|
15
|
+
import {
|
|
16
|
+
ProjectCard
|
|
17
|
+
} from "./chunk-WHCZTD2K.mjs";
|
|
18
|
+
import {
|
|
19
|
+
FileList
|
|
20
|
+
} from "./chunk-QE3XE3LW.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DashboardHero
|
|
23
23
|
} from "./chunk-VESIB4VP.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DigitalColleageusLayout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IWSATDRG.mjs";
|
|
27
27
|
import {
|
|
28
28
|
mockNotifications,
|
|
29
29
|
mockSidebarItems
|
|
@@ -3,42 +3,42 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
ServiceSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EEVXIKNB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
BlogList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DRLNETNN.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ContactSection,
|
|
12
12
|
LocationsSection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IQ67MHAY.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SectionHero
|
|
16
16
|
} from "./chunk-N77BYZ6A.mjs";
|
|
17
17
|
import {
|
|
18
18
|
MediumImpactHero
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
HighImpactHero
|
|
22
|
-
} from "./chunk-FBCL4K4A.mjs";
|
|
19
|
+
} from "./chunk-NSYYRG6A.mjs";
|
|
23
20
|
import {
|
|
24
21
|
LowImpactHero
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3DWDGYDG.mjs";
|
|
23
|
+
import {
|
|
24
|
+
HighImpactHero
|
|
25
|
+
} from "./chunk-D3AHBPI5.mjs";
|
|
26
26
|
import {
|
|
27
27
|
CallToActionBlock,
|
|
28
28
|
RichText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7LM2P6N3.mjs";
|
|
30
30
|
import {
|
|
31
31
|
Media
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NKRBXAPF.mjs";
|
|
33
33
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
34
|
+
PageShape
|
|
35
|
+
} from "./chunk-QX5S5NN2.mjs";
|
|
36
36
|
import {
|
|
37
37
|
Header
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FZMTC5ID.mjs";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
Footer
|
|
41
|
+
} from "./chunk-APQYZUMH.mjs";
|
|
42
42
|
import {
|
|
43
43
|
Container
|
|
44
44
|
} from "./chunk-KL3DQ7AU.mjs";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
Footer,
|
|
6
6
|
HeaderTop,
|
|
7
7
|
TitleSlide
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HNVHGBNE.mjs";
|
|
9
9
|
import {
|
|
10
10
|
RenderBlocks
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F6SQTC6R.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cn
|
|
14
14
|
} from "./chunk-KZPGX6CG.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TaskSidebar
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PTDP7PZK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
FileList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QE3XE3LW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AddFileModal
|
|
9
9
|
} from "./chunk-HQW5M4ND.mjs";
|
|
10
10
|
import {
|
|
11
11
|
EditableField
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZFUPXIGR.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CommentSection
|
|
15
15
|
} from "./chunk-XTI4RMGG.mjs";
|
|
@@ -65,10 +65,10 @@ var TaskDetailsModal = ({
|
|
|
65
65
|
setTask(initialTask);
|
|
66
66
|
}, [initialTask]);
|
|
67
67
|
const handleFieldUpdate = async (fieldName, value) => {
|
|
68
|
-
if (value !== task[fieldName]) {
|
|
68
|
+
if (!task || value !== task[fieldName]) {
|
|
69
69
|
setUpdateState("loading");
|
|
70
70
|
try {
|
|
71
|
-
await onUpdateTask(task
|
|
71
|
+
await onUpdateTask(task?.id.toString() || "", { [fieldName]: value });
|
|
72
72
|
setLastUpdated(/* @__PURE__ */ new Date());
|
|
73
73
|
setUpdateState("success");
|
|
74
74
|
setTimeout(() => setUpdateState("idle"), 1500);
|
|
@@ -80,10 +80,10 @@ var TaskDetailsModal = ({
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const handleSidebarUpdate = async (fieldName, value) => {
|
|
83
|
-
if (value !== task[fieldName]) {
|
|
83
|
+
if (!task || value !== task[fieldName]) {
|
|
84
84
|
setUpdateState("loading");
|
|
85
85
|
try {
|
|
86
|
-
await onUpdateTask(task
|
|
86
|
+
await onUpdateTask(task?.id.toString() || "", { [fieldName]: value });
|
|
87
87
|
setLastUpdated(/* @__PURE__ */ new Date());
|
|
88
88
|
setUpdateState("success");
|
|
89
89
|
setTimeout(() => setUpdateState("idle"), 1500);
|
|
@@ -95,7 +95,7 @@ var TaskDetailsModal = ({
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
const handleAddComment = async (text) => {
|
|
98
|
-
if (!onAddComment) return;
|
|
98
|
+
if (!onAddComment || !task) return;
|
|
99
99
|
setUpdateState("loading");
|
|
100
100
|
try {
|
|
101
101
|
await onAddComment?.({ content: text, taskId: task.id.toString() });
|
|
@@ -108,6 +108,7 @@ var TaskDetailsModal = ({
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
const handleDelete = async () => {
|
|
111
|
+
if (!task) return;
|
|
111
112
|
setDeleteState("loading");
|
|
112
113
|
try {
|
|
113
114
|
await onDeleteTask(task.id.toString());
|
|
@@ -122,7 +123,7 @@ var TaskDetailsModal = ({
|
|
|
122
123
|
}
|
|
123
124
|
};
|
|
124
125
|
const handleUploadFile = async (formData) => {
|
|
125
|
-
if (!onUploadFile) return;
|
|
126
|
+
if (!onUploadFile || !task) return;
|
|
126
127
|
setUpdateState("loading");
|
|
127
128
|
try {
|
|
128
129
|
await onUploadFile(task.id.toString(), formData);
|
|
@@ -137,7 +138,7 @@ var TaskDetailsModal = ({
|
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
const handleDeleteFile = async (file) => {
|
|
140
|
-
if (!onDeleteFile) return;
|
|
141
|
+
if (!onDeleteFile || !task) return;
|
|
141
142
|
setUpdateState("loading");
|
|
142
143
|
try {
|
|
143
144
|
await onDeleteFile(task.id.toString(), file.id.toString());
|
|
@@ -150,7 +151,7 @@ var TaskDetailsModal = ({
|
|
|
150
151
|
setTimeout(() => setUpdateState("idle"), 3e3);
|
|
151
152
|
}
|
|
152
153
|
};
|
|
153
|
-
const taskFiles = (task
|
|
154
|
+
const taskFiles = (task?.files || []).map((file) => {
|
|
154
155
|
if (typeof file === "number") {
|
|
155
156
|
return null;
|
|
156
157
|
}
|
|
@@ -198,7 +199,7 @@ var TaskDetailsModal = ({
|
|
|
198
199
|
EditableField,
|
|
199
200
|
{
|
|
200
201
|
fieldName: "name",
|
|
201
|
-
value: task
|
|
202
|
+
value: task?.name || "",
|
|
202
203
|
label: "",
|
|
203
204
|
onSave: handleFieldUpdate,
|
|
204
205
|
className: "border-b border-border pb-3",
|
|
@@ -209,7 +210,7 @@ var TaskDetailsModal = ({
|
|
|
209
210
|
EditableField,
|
|
210
211
|
{
|
|
211
212
|
fieldName: "description",
|
|
212
|
-
value: task
|
|
213
|
+
value: task?.description || "",
|
|
213
214
|
label: "Description",
|
|
214
215
|
multiline: true,
|
|
215
216
|
onSave: handleFieldUpdate,
|
|
@@ -253,8 +254,8 @@ var TaskDetailsModal = ({
|
|
|
253
254
|
CommentSection,
|
|
254
255
|
{
|
|
255
256
|
comments: (task?.comments || []).map((el) => ({
|
|
256
|
-
author: el.author?.value
|
|
257
|
-
createdAt: new Date(el
|
|
257
|
+
author: el.author?.value?.name || "",
|
|
258
|
+
createdAt: new Date(el?.timestamp || /* @__PURE__ */ new Date()),
|
|
258
259
|
text: el.text,
|
|
259
260
|
id: el.id || ""
|
|
260
261
|
})),
|