cortex-react-components 3.0.5 → 3.0.7
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-GWAHXLXW.mjs → chunk-2NKCNQ56.mjs} +1 -1
- package/dist/{chunk-ZOFHFHXL.mjs → chunk-2PGER2HM.mjs} +2 -2
- package/dist/{chunk-AAKDTRG3.mjs → chunk-2TJ5HOCV.mjs} +1 -1
- package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
- package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
- package/dist/{chunk-KVIDH5SD.mjs → chunk-6B6BKJIE.mjs} +1 -1
- package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
- package/dist/{chunk-7RKAC2XY.mjs → chunk-6Q4KYDHK.mjs} +2 -2
- package/dist/{chunk-7VIJAEXG.mjs → chunk-6RAMGDYG.mjs} +1 -1
- package/dist/{chunk-6YUBCG37.mjs → chunk-7OGBZ6QQ.mjs} +1 -1
- package/dist/{chunk-S4MC47ZA.mjs → chunk-AEFGMCK3.mjs} +4 -4
- package/dist/{chunk-CPG7EY4Z.mjs → chunk-AICDXFGU.mjs} +2 -2
- package/dist/{chunk-B7C24XQW.mjs → chunk-DAGWV4UL.mjs} +1 -1
- package/dist/{chunk-NX7KXPAH.mjs → chunk-DO73CLFG.mjs} +2 -2
- package/dist/{chunk-3IV2X2TP.mjs → chunk-DQZO42TD.mjs} +1 -1
- package/dist/{chunk-UIWLR6ZC.mjs → chunk-DRCDP3RU.mjs} +1 -1
- package/dist/{chunk-IT3HYIBL.mjs → chunk-EC4N6ZH3.mjs} +1 -1
- package/dist/{chunk-E3ALXLNH.mjs → chunk-EDJDHF22.mjs} +1 -1
- package/dist/{chunk-DHDEGEML.mjs → chunk-ENFQLMV3.mjs} +3 -3
- package/dist/{chunk-BLU3UIFA.mjs → chunk-FECAR2TE.mjs} +1 -1
- package/dist/{chunk-AIDKOVWV.mjs → chunk-FUNWDVGQ.mjs} +1 -1
- package/dist/{chunk-IRNGNLSK.mjs → chunk-G3UZUSQZ.mjs} +4 -4
- package/dist/{chunk-YBNK6GSG.mjs → chunk-GZW77OJM.mjs} +1 -1
- package/dist/{chunk-UGGMHEBS.mjs → chunk-HQ2AUN2H.mjs} +1 -1
- package/dist/{chunk-CFAFJ5KR.mjs → chunk-HZZWKYB5.mjs} +1 -1
- package/dist/{chunk-BXUQXISR.mjs → chunk-I647IJUG.mjs} +2 -2
- package/dist/{chunk-VLBEXIPH.mjs → chunk-K3TF6OWE.mjs} +5 -5
- package/dist/{chunk-UFLN6VHA.mjs → chunk-KV5RVOAP.mjs} +1 -1
- package/dist/{chunk-XOABWF35.mjs → chunk-KVULICDA.mjs} +1 -1
- package/dist/{chunk-MAQCJ7GT.mjs → chunk-LAJ5FNY4.mjs} +1 -1
- package/dist/{chunk-UZYB4PHX.mjs → chunk-LP3K7AVX.mjs} +13 -13
- package/dist/{chunk-45O7B4HD.mjs → chunk-LSHBOPCT.mjs} +4 -4
- package/dist/{chunk-TPZCEPBQ.mjs → chunk-M5JROT2X.mjs} +1 -1
- package/dist/{chunk-QY2VILFH.mjs → chunk-M6ELOAGS.mjs} +1 -1
- package/dist/{chunk-UTC3MM5G.mjs → chunk-NAPGIF5D.mjs} +6 -6
- package/dist/{chunk-D2X3D3E5.mjs → chunk-NHDPHK6D.mjs} +2 -2
- package/dist/{chunk-ANQCYFDZ.mjs → chunk-OXZ5QAXQ.mjs} +1 -1
- package/dist/{chunk-AJUSUNMM.mjs → chunk-P4DQRHCA.mjs} +4 -4
- package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
- package/dist/chunk-PE44IHZN.mjs +97 -0
- package/dist/{chunk-GNZFIBT4.mjs → chunk-R2SJ5TZH.mjs} +8 -8
- package/dist/{chunk-FNWH4ITN.mjs → chunk-RC6YHGVV.mjs} +2 -2
- package/dist/{chunk-OQ2FYTMU.mjs → chunk-RKQ4CVVG.mjs} +1 -1
- package/dist/{chunk-IBMNGXJR.mjs → chunk-TTVOGAI4.mjs} +6 -6
- package/dist/{chunk-DPVVX4ZT.mjs → chunk-UDZU3AZC.mjs} +1 -1
- package/dist/{chunk-QNKQX4CK.mjs → chunk-UJI3Y73K.mjs} +2 -2
- package/dist/{chunk-N2T6V3NP.mjs → chunk-URCY4KWN.mjs} +1 -1
- package/dist/{chunk-YWM44RIV.mjs → chunk-VMYEV3FG.mjs} +1 -1
- package/dist/{chunk-R2LCV7J4.mjs → chunk-VNSEHNDX.mjs} +1 -1
- package/dist/{chunk-KO4VYIIH.mjs → chunk-WMAVH7JO.mjs} +2 -2
- package/dist/{chunk-DYHCGFWB.mjs → chunk-YFOEG4PP.mjs} +1 -1
- package/dist/{chunk-EG32GIHZ.mjs → chunk-ZPWWTTFF.mjs} +1 -1
- package/dist/components/AdvancedComponents/index.mjs +5 -5
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +3 -3
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +2 -2
- package/dist/components/AdvancedComponents/org-chart-component/index.mjs +5 -5
- package/dist/components/Blocks/Banner.mjs +7 -6
- package/dist/components/Blocks/CallToAction.mjs +7 -6
- package/dist/components/Blocks/CollapsibleArea.mjs +8 -7
- package/dist/components/Blocks/Content.mjs +8 -7
- package/dist/components/Blocks/FeaturesBlock.mjs +7 -6
- package/dist/components/Blocks/ImageBlock.mjs +3 -3
- package/dist/components/Blocks/MediaBlock.mjs +3 -3
- package/dist/components/Blocks/RelatedPosts.mjs +9 -8
- package/dist/components/Blocks/RenderBlocks.mjs +10 -9
- package/dist/components/Blocks/ReusableContentBlock.mjs +10 -9
- package/dist/components/Blocks/index.mjs +23 -22
- package/dist/components/CRM/index.mjs +3 -3
- package/dist/components/Cards/ContentCard.mjs +7 -6
- package/dist/components/Cards/FeatureCard.mjs +7 -6
- 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 +141 -56
- package/dist/components/Cards/index.mjs +10 -6
- package/dist/components/Chat/ChatInterface.mjs +5 -5
- package/dist/components/Chat/CopilotInterface.mjs +6 -6
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +4 -4
- package/dist/components/Chat/PartTypes/index.mjs +17 -17
- package/dist/components/Chat/demo-long-messages.mjs +6 -6
- package/dist/components/Chat/demo-tests.mjs +6 -6
- package/dist/components/Chat/demo.mjs +6 -6
- package/dist/components/Chat/example-usage.mjs +7 -7
- package/dist/components/Chat/example-with-vercel-ai.mjs +6 -6
- package/dist/components/Chat/index.mjs +11 -11
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -2
- package/dist/components/DeliveryLead/index.mjs +4 -4
- package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +3 -3
- package/dist/components/DigitalColleagues/MainPage.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +9 -9
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +11 -11
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -2
- package/dist/components/DigitalColleagues/Views/index.mjs +23 -23
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +42 -42
- package/dist/components/Foundary/AppSidebarLeft.js +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +3 -3
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +3 -3
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +3 -3
- package/dist/components/Foundary/MainPage.js +1 -1
- package/dist/components/Foundary/MainPage.mjs +9 -9
- package/dist/components/Foundary/Pages/dashboardpage.mjs +17 -17
- package/dist/components/Foundary/RichText/index.mjs +4 -4
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +3 -3
- package/dist/components/Foundary/Views/KnowledgeView.mjs +12 -12
- package/dist/components/Foundary/Views/index.mjs +28 -28
- package/dist/components/Foundary/document-edit.mjs +5 -5
- package/dist/components/Foundary/document-preview-examples.mjs +6 -6
- package/dist/components/Foundary/document-preview.mjs +6 -6
- package/dist/components/Foundary/file-edit.mjs +8 -8
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +42 -42
- package/dist/components/Foundary/knowledge-browser.mjs +7 -7
- package/dist/components/HeaderFooter/SectionHeading.mjs +8 -7
- package/dist/components/HeaderFooter/index.mjs +7 -7
- package/dist/components/Heros/HighImpact/index.mjs +8 -7
- package/dist/components/Heros/LowImpact/index.mjs +8 -7
- package/dist/components/Heros/MediumImpact/index.mjs +8 -7
- package/dist/components/Heros/PostHero/index.mjs +3 -3
- package/dist/components/Heros/RenderHero.mjs +11 -10
- package/dist/components/Heros/index.mjs +16 -15
- package/dist/components/Holidays/HolidayTracker.mjs +2 -2
- package/dist/components/Holidays/index.mjs +4 -4
- package/dist/components/Layouts/OutputHeaderFooter.mjs +11 -10
- package/dist/components/Layouts/Print.mjs +15 -14
- package/dist/components/Layouts/SlideShow.mjs +19 -18
- package/dist/components/Layouts/index.mjs +23 -22
- package/dist/components/Menus/SidebarLeft.js +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +3 -3
- package/dist/components/Menus/SidebarLeftMulti.js +2 -2
- package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
- package/dist/components/Menus/SidebarRight.js +1 -1
- package/dist/components/Menus/SidebarRight.mjs +3 -3
- package/dist/components/Menus/index.js +2 -2
- package/dist/components/Menus/index.mjs +8 -8
- 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 +7 -6
- package/dist/components/Payload/RichText/serialize.mjs +7 -6
- package/dist/components/Payload/index.mjs +12 -11
- package/dist/components/Projects/EpicsView.mjs +2 -2
- package/dist/components/Projects/FileView.mjs +11 -11
- package/dist/components/Projects/KanbanBoardView.mjs +13 -13
- package/dist/components/Projects/ProjectPage.mjs +17 -17
- package/dist/components/Projects/ProjectView.mjs +17 -17
- package/dist/components/Projects/TaskDetailsModal.mjs +10 -10
- package/dist/components/Projects/file-list.mjs +9 -9
- package/dist/components/Projects/index.mjs +16 -16
- package/dist/components/dc-temp/index.mjs +12 -12
- package/dist/components/index.js +4169 -4084
- package/dist/components/index.mjs +137 -133
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +9 -9
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.mjs +2 -2
- package/dist/decorators/Intranet.mjs +81 -80
- package/dist/index.js +4410 -4325
- package/dist/index.mjs +151 -147
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +17 -16
- package/dist/pages/Documentation.js +1 -1
- package/dist/pages/Documentation.mjs +9 -9
- package/dist/pages/IndexPage.js +1 -1
- package/dist/pages/IndexPage.mjs +23 -22
- package/dist/pages/Intranet.js +2 -2
- package/dist/pages/Intranet.mjs +4 -4
- package/dist/pages/LandingPage.mjs +90 -89
- package/dist/pages/Page.mjs +20 -19
- package/dist/pages/Publish.mjs +80 -79
- package/dist/pages/Website.mjs +21 -20
- package/dist/sections/AboutSection.mjs +9 -8
- package/dist/sections/BlogDetail.mjs +8 -7
- package/dist/sections/BlogList.mjs +9 -8
- package/dist/sections/BlogListSection.mjs +8 -8
- package/dist/sections/ContactSection.mjs +9 -8
- package/dist/sections/PageSections.mjs +90 -89
- package/dist/sections/PricingSection.mjs +9 -8
- package/dist/sections/ServiceDetail.mjs +8 -7
- package/dist/sections/ServiceDetailSection.mjs +8 -7
- package/dist/sections/ServiceSection.mjs +80 -79
- package/dist/sections/index.mjs +92 -91
- package/package.json +1 -1
- package/dist/{chunk-6TVRFATY.mjs → chunk-25OSLP2V.mjs} +3 -3
- package/dist/{chunk-MFXCOX3L.mjs → chunk-CT6KAYGR.mjs} +3 -3
- package/dist/{chunk-FLPPUI7L.mjs → chunk-DB2F6SID.mjs} +3 -3
- package/dist/{chunk-ECWGCKWS.mjs → chunk-DZYAOBGH.mjs} +3 -3
- package/dist/{chunk-57INGMKK.mjs → chunk-ECCJ42NJ.mjs} +7 -7
- package/dist/{chunk-7UMFQPR5.mjs → chunk-EUAUP52U.mjs} +3 -3
- package/dist/{chunk-EUBIQIF4.mjs → chunk-GXTF5CHJ.mjs} +3 -3
- package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
- package/dist/{chunk-FTVOJKVA.mjs → chunk-SNG6OKEL.mjs} +3 -3
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
Skeleton
|
|
6
|
-
} from "./chunk-EPR27OQG.mjs";
|
|
7
4
|
import {
|
|
8
5
|
Separator
|
|
9
6
|
} from "./chunk-7GPVQAMX.mjs";
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
Sheet,
|
|
12
9
|
SheetContent
|
|
13
10
|
} from "./chunk-HJCCUR2K.mjs";
|
|
11
|
+
import {
|
|
12
|
+
Skeleton
|
|
13
|
+
} from "./chunk-EPR27OQG.mjs";
|
|
14
14
|
import {
|
|
15
15
|
Input
|
|
16
16
|
} from "./chunk-YMZ2OUK6.mjs";
|
|
@@ -60,7 +60,7 @@ var SidebarProvider = React.forwardRef(
|
|
|
60
60
|
children,
|
|
61
61
|
...props
|
|
62
62
|
}, ref) => {
|
|
63
|
-
const isMobile = useIsMobile();
|
|
63
|
+
const isMobile = useIsMobile(1300);
|
|
64
64
|
const [openMobile, setOpenMobile] = React.useState(false);
|
|
65
65
|
const [_open, _setOpen] = React.useState(defaultOpen);
|
|
66
66
|
const open = openProp ?? _open;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
RichText
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LSHBOPCT.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";
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ProjectCard
|
|
12
12
|
} from "./chunk-WHCZTD2K.mjs";
|
|
13
|
+
import {
|
|
14
|
+
FileList
|
|
15
|
+
} from "./chunk-HQ2AUN2H.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-UDZU3AZC.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";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
Footer,
|
|
6
6
|
HeaderTop,
|
|
7
7
|
TitleSlide
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KVULICDA.mjs";
|
|
9
9
|
import {
|
|
10
10
|
RenderBlocks
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NAPGIF5D.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cn
|
|
14
14
|
} from "./chunk-KZPGX6CG.mjs";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-N77BYZ6A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HighImpactHero
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
LowImpactHero
|
|
9
|
-
} from "./chunk-ANQCYFDZ.mjs";
|
|
6
|
+
} from "./chunk-DO73CLFG.mjs";
|
|
10
7
|
import {
|
|
11
8
|
MediumImpactHero
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DAGWV4UL.mjs";
|
|
10
|
+
import {
|
|
11
|
+
LowImpactHero
|
|
12
|
+
} from "./chunk-OXZ5QAXQ.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/Heros/RenderHero.tsx
|
|
15
15
|
import { ChevronRightIcon, HomeIcon } from "@heroicons/react/20/solid";
|
|
@@ -3,42 +3,42 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
ServiceSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2TJ5HOCV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
BlogList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HZZWKYB5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ContactSection,
|
|
12
12
|
LocationsSection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DRCDP3RU.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SectionHero
|
|
16
16
|
} from "./chunk-N77BYZ6A.mjs";
|
|
17
17
|
import {
|
|
18
18
|
HighImpactHero
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
LowImpactHero
|
|
22
|
-
} from "./chunk-ANQCYFDZ.mjs";
|
|
19
|
+
} from "./chunk-DO73CLFG.mjs";
|
|
23
20
|
import {
|
|
24
21
|
MediumImpactHero
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DAGWV4UL.mjs";
|
|
23
|
+
import {
|
|
24
|
+
LowImpactHero
|
|
25
|
+
} from "./chunk-OXZ5QAXQ.mjs";
|
|
26
26
|
import {
|
|
27
27
|
CallToActionBlock,
|
|
28
28
|
RichText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LSHBOPCT.mjs";
|
|
30
30
|
import {
|
|
31
31
|
Media
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
PageShape
|
|
35
|
-
} from "./chunk-QX5S5NN2.mjs";
|
|
32
|
+
} from "./chunk-NKRBXAPF.mjs";
|
|
36
33
|
import {
|
|
37
34
|
Footer
|
|
38
35
|
} from "./chunk-APQYZUMH.mjs";
|
|
39
36
|
import {
|
|
40
37
|
Header
|
|
41
38
|
} from "./chunk-FZMTC5ID.mjs";
|
|
39
|
+
import {
|
|
40
|
+
PageShape
|
|
41
|
+
} from "./chunk-QX5S5NN2.mjs";
|
|
42
42
|
import {
|
|
43
43
|
Container
|
|
44
44
|
} from "./chunk-KL3DQ7AU.mjs";
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
} from "./chunk-GSG52WU5.mjs";
|
|
19
19
|
import {
|
|
20
20
|
MediaBlock
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
ImageBlock
|
|
24
|
-
} from "./chunk-HLEMFDTD.mjs";
|
|
21
|
+
} from "./chunk-6GO5N6ZP.mjs";
|
|
25
22
|
import {
|
|
26
23
|
CodeBlock
|
|
27
24
|
} from "./chunk-WPX6MOFB.mjs";
|
|
25
|
+
import {
|
|
26
|
+
ImageBlock
|
|
27
|
+
} from "./chunk-3R2LCGLI.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DynamicIcon
|
|
30
30
|
} from "./chunk-75ALYLZU.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ContentBlock
|
|
3
|
-
} from "./chunk-IT3HYIBL.mjs";
|
|
4
1
|
import {
|
|
5
2
|
CollapsibleBlock
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KV5RVOAP.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ContentBlock
|
|
6
|
+
} from "./chunk-EC4N6ZH3.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CallToActionBlock,
|
|
9
9
|
FeaturesBlock
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LSHBOPCT.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,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
AppSidebarLeft
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M6ELOAGS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Breadcrumb,
|
|
9
9
|
BreadcrumbItem,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SidebarInset,
|
|
20
20
|
SidebarProvider,
|
|
21
21
|
SidebarTrigger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AEFGMCK3.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Separator
|
|
25
25
|
} from "./chunk-7GPVQAMX.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
ManageTeamContextModal
|
|
6
|
-
} from "./chunk-25EF7VEC.mjs";
|
|
7
4
|
import {
|
|
8
5
|
AddKnowledgeModal
|
|
9
6
|
} from "./chunk-CIFGBEFV.mjs";
|
|
7
|
+
import {
|
|
8
|
+
ManageTeamContextModal
|
|
9
|
+
} from "./chunk-25EF7VEC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
KnowledgeBrowser
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2NKCNQ56.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DropdownMenu,
|
|
15
15
|
DropdownMenuContent,
|
|
@@ -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
|
+
};
|