@edifice.io/react 2.6.13-develop-integration-demo.20261108115137 → 2.6.13-develop-integration-demo.20261108143606
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/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Layout/Layout.js +12 -4
- package/dist/components/Masonry/Masonry.d.ts +40 -0
- package/dist/components/Masonry/Masonry.js +50 -0
- package/dist/components/Masonry/index.d.ts +2 -0
- package/dist/components/SearchBar/SearchBar.js +17 -26
- package/dist/components/index.d.ts +1 -0
- package/dist/homepage.js +110 -24
- package/dist/hooks/useUpload/useUpload.js +1 -1
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
- package/dist/icons.js +406 -404
- package/dist/index.js +2 -0
- package/dist/modules/HelpZone/HelpZone.js +6 -8
- package/dist/modules/HelpZone/HelpZoneContainer.js +2 -5
- package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
- package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
- package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
- package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
- package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
- package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +9 -0
- package/dist/modules/homepage/components/BriefMe/BriefMe.js +59 -0
- package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +4 -0
- package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +17 -0
- package/dist/modules/homepage/components/BriefMe/index.d.ts +4 -0
- package/dist/modules/homepage/components/BriefMe/types.d.ts +17 -0
- package/dist/modules/homepage/components/BriefMe/types.js +8 -0
- package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +31 -0
- package/dist/modules/homepage/components/BriefMe/useBriefMe.js +51 -0
- package/dist/modules/homepage/components/Cantine/Cantine.d.ts +7 -0
- package/dist/modules/homepage/components/Cantine/Cantine.js +44 -0
- package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +4 -0
- package/dist/modules/homepage/components/Cantine/CantineContainer.js +18 -0
- package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +24 -0
- package/dist/modules/homepage/components/Cantine/CantineModal.js +88 -0
- package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +7 -0
- package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +12 -0
- package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +5 -0
- package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +22 -0
- package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +6 -0
- package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +28 -0
- package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +12 -0
- package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +60 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +11 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +20 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +24 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +65 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +23 -0
- package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +43 -0
- package/dist/modules/homepage/components/Cantine/index.d.ts +7 -0
- package/dist/modules/homepage/components/Cantine/types.d.ts +42 -0
- package/dist/modules/homepage/components/Captation/CaptationAudio/CaptationAudio.d.ts +7 -0
- package/dist/modules/homepage/components/Captation/CaptationAudio/CaptationAudio.js +44 -0
- package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.d.ts +9 -0
- package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.js +44 -0
- package/dist/modules/homepage/components/Captation/index.d.ts +2 -0
- package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +9 -0
- package/dist/modules/homepage/components/Edumalin/Edumalin.js +65 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +4 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +21 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +8 -0
- package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +62 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +5 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +38 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +5 -0
- package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +12 -0
- package/dist/modules/homepage/components/Edumalin/index.d.ts +7 -0
- package/dist/modules/homepage/components/Edumalin/types.d.ts +24 -0
- package/dist/modules/homepage/components/Edumalin/types.js +4 -0
- package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +16 -0
- package/dist/modules/homepage/components/Edumalin/useEdumalin.js +35 -0
- package/dist/modules/homepage/components/Edumalin/utils.d.ts +28 -0
- package/dist/modules/homepage/components/Edumalin/utils.js +56 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +16 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +65 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +4 -0
- package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +12 -0
- package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +1 -0
- package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +6 -0
- package/dist/modules/homepage/components/GenerationHdf/index.d.ts +3 -0
- package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +10 -0
- package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +69 -0
- package/dist/modules/homepage/components/Header/Header.js +8 -20
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
- package/dist/modules/homepage/components/Mediacentre/Mediacentre.d.ts +13 -0
- package/dist/modules/homepage/components/Mediacentre/Mediacentre.js +57 -0
- package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.d.ts +4 -0
- package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.js +12 -0
- package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.d.ts +6 -0
- package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.js +30 -0
- package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.d.ts +17 -0
- package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.js +32 -0
- package/dist/modules/homepage/components/Mediacentre/index.d.ts +5 -0
- package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.d.ts +24 -0
- package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.js +25 -0
- package/dist/modules/homepage/components/Mediacentre/types.d.ts +8 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -2
- package/dist/modules/homepage/components/Notifications/NotificationList.js +7 -8
- package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +7 -12
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +7 -4
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +11 -13
- package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
- package/dist/modules/homepage/components/Qwant/Qwant.d.ts +4 -0
- package/dist/modules/homepage/components/Qwant/Qwant.js +41 -0
- package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Qwant/QwantContainer.js +10 -0
- package/dist/modules/homepage/components/Qwant/index.d.ts +3 -0
- package/dist/modules/homepage/components/Rss/Rss.d.ts +11 -0
- package/dist/modules/homepage/components/Rss/Rss.js +64 -0
- package/dist/modules/homepage/components/Rss/RssContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Rss/RssContainer.js +45 -0
- package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +13 -0
- package/dist/modules/homepage/components/Rss/RssFeedForm.js +69 -0
- package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +11 -0
- package/dist/modules/homepage/components/Rss/RssFeedsModal.js +58 -0
- package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +25 -0
- package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +43 -0
- package/dist/modules/homepage/components/Rss/index.d.ts +6 -0
- package/dist/modules/homepage/components/Rss/services/api/index.d.ts +5 -0
- package/dist/modules/homepage/components/Rss/services/api/index.js +5 -0
- package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +38 -0
- package/dist/modules/homepage/components/Rss/services/api/rssService.js +51 -0
- package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +28 -0
- package/dist/modules/homepage/components/Rss/services/queries/rss.js +71 -0
- package/dist/modules/homepage/components/Rss/types.d.ts +25 -0
- package/dist/modules/homepage/components/Rss/utils.d.ts +7 -0
- package/dist/modules/homepage/components/Rss/utils.js +19 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
- package/dist/modules/homepage/components/ScreenTime/ScreenTime.d.ts +11 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTime.js +49 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.d.ts +10 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.js +115 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.d.ts +1 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.js +25 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.d.ts +5 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.js +22 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.d.ts +22 -0
- package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.js +81 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.d.ts +14 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js +22 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.d.ts +6 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.js +25 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.d.ts +31 -0
- package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js +34 -0
- package/dist/modules/homepage/components/ScreenTime/index.d.ts +6 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/index.js +5 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.d.ts +28 -0
- package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.js +39 -0
- package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.d.ts +23 -0
- package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.js +41 -0
- package/dist/modules/homepage/components/ScreenTime/types.d.ts +30 -0
- package/dist/modules/homepage/components/ScreenTime/utils.d.ts +50 -0
- package/dist/modules/homepage/components/ScreenTime/utils.js +115 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +43 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +23 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +34 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +26 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +14 -0
- package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +64 -0
- package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +20 -0
- package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +43 -0
- package/dist/modules/homepage/components/TabsKids/index.d.ts +3 -0
- package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +15 -0
- package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +21 -0
- package/dist/modules/homepage/components/Universalis/Universalis.d.ts +8 -0
- package/dist/modules/homepage/components/Universalis/Universalis.js +62 -0
- package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +16 -0
- package/dist/modules/homepage/components/Universalis/index.d.ts +3 -0
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
- package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
- package/dist/modules/homepage/components/index.d.ts +14 -0
- package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.d.ts +2 -2
- package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.js +4 -4
- package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
- package/dist/modules/icons/components/IconAddWidget.js +12 -0
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +2 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +24 -10
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +1 -1
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +1 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +89 -50
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +6 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +53 -19
- package/dist/modules/multimedia/VideoRecorder/VideoRecorderToolbar.js +27 -27
- package/dist/modules/multimedia/VideoRecorder/useCameras.d.ts +2 -0
- package/dist/modules/multimedia/VideoRecorder/useCameras.js +10 -4
- package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
- package/package.json +7 -6
|
@@ -19,7 +19,7 @@ const Checkbox = /* @__PURE__ */ forwardRef(({
|
|
|
19
19
|
checked,
|
|
20
20
|
disabled,
|
|
21
21
|
ref: refCheckbox,
|
|
22
|
-
className: clsx(restProps.className, "form-check-input
|
|
22
|
+
className: clsx(restProps.className, "form-check-input"),
|
|
23
23
|
id
|
|
24
24
|
}, inputProps = {
|
|
25
25
|
...restProps,
|
|
@@ -14,6 +14,7 @@ import useZendeskGuide from "../../hooks/useZendeskGuide/useZendeskGuide.js";
|
|
|
14
14
|
import useCantoo from "../../hooks/useCantoo/useCantoo.js";
|
|
15
15
|
import Alert from "../Alert/Alert.js";
|
|
16
16
|
import ButtonBeta from "../ButtonBeta/ButtonBeta.js";
|
|
17
|
+
import HelpZone from "../../modules/HelpZone/HelpZone.js";
|
|
17
18
|
const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/components/Header/Header.js")), Layout = ({
|
|
18
19
|
children,
|
|
19
20
|
headless = !1,
|
|
@@ -21,9 +22,10 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
|
|
|
21
22
|
className,
|
|
22
23
|
...restProps
|
|
23
24
|
}) => {
|
|
25
|
+
var _a;
|
|
24
26
|
const {
|
|
25
27
|
theme
|
|
26
|
-
} = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", {
|
|
28
|
+
} = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", isEdificeInProductHelp = ((_a = useUiOverride("layout.helpzone")) == null ? void 0 : _a.variant) === "edifice-in-product", {
|
|
27
29
|
productOverride,
|
|
28
30
|
background,
|
|
29
31
|
isBackgroundImageOverridden,
|
|
@@ -36,8 +38,13 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
|
|
|
36
38
|
showCookiesConsent,
|
|
37
39
|
handleConsultCookies,
|
|
38
40
|
handleCloseCookiesConsent
|
|
39
|
-
} = useCookiesConsent()
|
|
40
|
-
|
|
41
|
+
} = useCookiesConsent(), {
|
|
42
|
+
isReady: isHelpZoneReady,
|
|
43
|
+
isOpen: isHelpZoneOpen,
|
|
44
|
+
open: openHelpZone,
|
|
45
|
+
close: closeHelpZone
|
|
46
|
+
} = useZendeskGuide();
|
|
47
|
+
useCantoo();
|
|
41
48
|
const classes = clsx("d-flex flex-column", {
|
|
42
49
|
"bg-white": whiteBg,
|
|
43
50
|
"container-fluid": !headless,
|
|
@@ -51,7 +58,8 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
|
|
|
51
58
|
renderNotificationsOverlay,
|
|
52
59
|
/* @__PURE__ */ jsx("main", { className: classes, ...restProps, children }),
|
|
53
60
|
renderToaster,
|
|
54
|
-
renderCookies
|
|
61
|
+
renderCookies,
|
|
62
|
+
isEdificeInProductHelp && /* @__PURE__ */ jsx(HelpZone, { isReady: isHelpZoneReady, isOpen: isHelpZoneOpen, onOpen: openHelpZone, onClose: closeHelpZone })
|
|
55
63
|
] });
|
|
56
64
|
};
|
|
57
65
|
export {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface MasonryItemProps {
|
|
3
|
+
/**
|
|
4
|
+
* Number of columns the item spans (capped to the number of columns).
|
|
5
|
+
* @default 1
|
|
6
|
+
*/
|
|
7
|
+
span?: number;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface MasonryProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/**
|
|
12
|
+
* Items to lay out. Each child is one masonry item, in reading order.
|
|
13
|
+
*/
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Number of columns. Each column takes an equal share of the available
|
|
17
|
+
* width, gap excluded.
|
|
18
|
+
* @default 2
|
|
19
|
+
*/
|
|
20
|
+
columns?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Gap between columns and between items, as a spacing token (e.g. `16`).
|
|
23
|
+
* @default '16'
|
|
24
|
+
*/
|
|
25
|
+
gap?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional class for styling purpose
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const Masonry: {
|
|
32
|
+
({ children, columns, gap, className, style, ...restProps }: MasonryProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
} & {
|
|
35
|
+
Item: {
|
|
36
|
+
({ children }: MasonryItemProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default Masonry;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useState, Children, useCallback, useLayoutEffect, isValidElement } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
const MasonryItem = ({
|
|
5
|
+
children
|
|
6
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children }), Root = ({
|
|
7
|
+
children,
|
|
8
|
+
columns = 2,
|
|
9
|
+
gap = "16",
|
|
10
|
+
className,
|
|
11
|
+
style,
|
|
12
|
+
...restProps
|
|
13
|
+
}) => {
|
|
14
|
+
const columnCount = Math.max(1, Math.floor(columns)), gridRef = useRef(null), itemRefs = useRef(/* @__PURE__ */ new Map()), [spans, setSpans] = useState({}), items = Children.toArray(children), measure = useCallback(() => {
|
|
15
|
+
const grid = gridRef.current;
|
|
16
|
+
if (!grid) return;
|
|
17
|
+
const rowGap = parseFloat(getComputedStyle(grid).columnGap) || 0, next = {};
|
|
18
|
+
itemRefs.current.forEach((el, key) => {
|
|
19
|
+
next[key] = Math.ceil(el.getBoundingClientRect().height + rowGap);
|
|
20
|
+
}), setSpans((prev) => {
|
|
21
|
+
const keys = Object.keys(next);
|
|
22
|
+
return keys.length === Object.keys(prev).length && keys.every((key) => prev[key] === next[key]) ? prev : next;
|
|
23
|
+
});
|
|
24
|
+
}, []);
|
|
25
|
+
return useLayoutEffect(() => {
|
|
26
|
+
if (measure(), typeof ResizeObserver > "u") return;
|
|
27
|
+
const observer = new ResizeObserver(measure);
|
|
28
|
+
return gridRef.current && observer.observe(gridRef.current), itemRefs.current.forEach((el) => observer.observe(el)), () => observer.disconnect();
|
|
29
|
+
}, [measure, columnCount, items.length]), /* @__PURE__ */ jsx("div", { ref: gridRef, className: clsx("masonry", `column-gap-${gap}`, className), style: {
|
|
30
|
+
display: "grid",
|
|
31
|
+
gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
|
|
32
|
+
gridAutoRows: "1px",
|
|
33
|
+
alignItems: "start",
|
|
34
|
+
...style
|
|
35
|
+
}, ...restProps, children: items.map((item, index) => {
|
|
36
|
+
const key = String(item.key ?? index), span = /* @__PURE__ */ isValidElement(item) && item.type === MasonryItem ? Math.min(Math.max(1, Math.floor(item.props.span ?? 1)), columnCount) : 1;
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { ref: (el) => {
|
|
38
|
+
el ? itemRefs.current.set(key, el) : itemRefs.current.delete(key);
|
|
39
|
+
}, className: "masonry__item", "data-testid": `masonry-item-${index}`, style: {
|
|
40
|
+
gridColumn: `span ${span}`,
|
|
41
|
+
gridRowEnd: `span ${spans[key] ?? 1}`
|
|
42
|
+
}, children: item }, key);
|
|
43
|
+
}) });
|
|
44
|
+
}, Masonry = Object.assign(Root, {
|
|
45
|
+
Item: MasonryItem
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
Masonry,
|
|
49
|
+
Masonry as default
|
|
50
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
+
import { useRef, useState } from "react";
|
|
3
4
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import SvgIconClose from "../../modules/icons/components/IconClose.js";
|
|
5
5
|
import SvgIconSearch from "../../modules/icons/components/IconSearch.js";
|
|
6
6
|
import FormControl from "../Form/FormControl.js";
|
|
7
|
-
import
|
|
7
|
+
import ButtonBeta from "../ButtonBeta/ButtonBeta.js";
|
|
8
8
|
const SearchBar = ({
|
|
9
9
|
isVariant = !1,
|
|
10
10
|
size = "md",
|
|
@@ -15,38 +15,29 @@ const SearchBar = ({
|
|
|
15
15
|
onChange,
|
|
16
16
|
onClick,
|
|
17
17
|
value,
|
|
18
|
-
clearable = !
|
|
18
|
+
clearable = !0,
|
|
19
19
|
...restProps
|
|
20
20
|
}) => {
|
|
21
|
+
var _a;
|
|
21
22
|
const {
|
|
22
23
|
t
|
|
23
|
-
} = useTranslation(),
|
|
24
|
-
"input-group": !isVariant,
|
|
25
|
-
"position-relative": isVariant
|
|
26
|
-
}), input = clsx({
|
|
27
|
-
"border-end-0": !isVariant,
|
|
28
|
-
"ps-48": isVariant,
|
|
29
|
-
"searchbar-hide-native-clear": isVariant && clearable
|
|
30
|
-
}), handleClick = () => {
|
|
24
|
+
} = useTranslation(), input = "searchbar__input", handleClick = () => {
|
|
31
25
|
onClick == null || onClick();
|
|
32
26
|
}, handleKeyDown = (e) => {
|
|
33
27
|
e.key === "Enter" && (e.preventDefault(), handleClick());
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
}, inputRef = useRef(null), isControlled = value !== void 0, [hasUncontrolledText, setHasUncontrolledText] = useState(!!((_a = restProps.defaultValue) != null && _a.toString())), hasText = isControlled ? !!value : hasUncontrolledText, [isFocused, setIsFocused] = useState(!1), handleBlur = (e) => {
|
|
29
|
+
e.currentTarget.contains(e.relatedTarget) || setIsFocused(!1);
|
|
30
|
+
}, handleMouseDown = (e) => {
|
|
31
|
+
e.target.closest("button") && e.preventDefault();
|
|
32
|
+
}, isActive = isFocused || hasText, searchbar = clsx("searchbar", `searchbar--${size}`, {
|
|
33
|
+
"searchbar--active": isActive
|
|
34
|
+
}, className), handleChange = (e) => {
|
|
35
|
+
isControlled || setHasUncontrolledText(!!e.target.value), onChange == null || onChange(e);
|
|
41
36
|
};
|
|
42
|
-
return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
|
|
43
|
-
isVariant && /* @__PURE__ */ jsx("div", { className: "
|
|
44
|
-
/* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size,
|
|
45
|
-
isVariant &&
|
|
46
|
-
width: 12,
|
|
47
|
-
height: 12
|
|
48
|
-
} }) }),
|
|
49
|
-
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick, disabled: buttonDisabled })
|
|
37
|
+
return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, onFocus: () => setIsFocused(!0), onBlur: handleBlur, onMouseDown: handleMouseDown, children: [
|
|
38
|
+
isVariant && /* @__PURE__ */ jsx("div", { className: "searchbar__icon", children: /* @__PURE__ */ jsx(SvgIconSearch, { width: 20, height: 20 }) }),
|
|
39
|
+
/* @__PURE__ */ jsx(FormControl.Input, { ref: inputRef, type: "search", placeholder: t(placeholder), size, className: input, onChange: handleChange, value, disabled, onKeyDown: handleKeyDown, clearable: clearable && !disabled, ...restProps }),
|
|
40
|
+
!isVariant && /* @__PURE__ */ jsx(ButtonBeta, { type: "submit", className: "btn-search", "aria-label": t("search"), leftIcon: /* @__PURE__ */ jsx(SvgIconSearch, {}), onClick: handleClick, disabled: buttonDisabled || disabled })
|
|
50
41
|
] });
|
|
51
42
|
};
|
|
52
43
|
export {
|
package/dist/homepage.js
CHANGED
|
@@ -1,62 +1,148 @@
|
|
|
1
1
|
import { default as default2 } from "./modules/homepage/components/AlloRegion/AlloRegion.js";
|
|
2
|
-
import { default as default3 } from "./modules/homepage/components/
|
|
3
|
-
import { default as default4 } from "./modules/homepage/components/
|
|
4
|
-
import { default as default5 } from "./modules/homepage/components/
|
|
5
|
-
import { default as default6 } from "./modules/homepage/components/
|
|
6
|
-
import { default as default7 } from "./modules/homepage/components/
|
|
7
|
-
import { default as default8 } from "./modules/homepage/components/
|
|
8
|
-
import { default as default9 } from "./modules/homepage/components/
|
|
9
|
-
import { default as default10 } from "./modules/homepage/components/
|
|
10
|
-
import { default as default11 } from "./modules/homepage/components/
|
|
11
|
-
import { default as default12 } from "./modules/homepage/components/
|
|
2
|
+
import { default as default3 } from "./modules/homepage/components/BriefMe/BriefMe.js";
|
|
3
|
+
import { default as default4 } from "./modules/homepage/components/Cantine/Cantine.js";
|
|
4
|
+
import { default as default5 } from "./modules/homepage/components/Cantine/CantineModal.js";
|
|
5
|
+
import { default as default6 } from "./modules/homepage/components/Communities/Communities.js";
|
|
6
|
+
import { default as default7 } from "./modules/homepage/components/Communities/CommunityItem.js";
|
|
7
|
+
import { default as default8 } from "./modules/homepage/components/Communities/CommunitiesSkeleton.js";
|
|
8
|
+
import { default as default9 } from "./modules/homepage/components/Edumalin/Edumalin.js";
|
|
9
|
+
import { default as default10 } from "./modules/homepage/components/Edumalin/EdumalinModal.js";
|
|
10
|
+
import { default as default11 } from "./modules/homepage/components/GenerationHdf/GenerationHdf.js";
|
|
11
|
+
import { default as default12 } from "./modules/homepage/components/Header/Header.js";
|
|
12
|
+
import { default as default13 } from "./modules/homepage/components/HomeCard/HomeCard.js";
|
|
13
|
+
import { default as default14 } from "./modules/homepage/components/LastInfos/LastInfos.js";
|
|
14
|
+
import { MAX_DISPLAYED_RESOURCES, default as default15 } from "./modules/homepage/components/Mediacentre/Mediacentre.js";
|
|
15
|
+
import { default as default16 } from "./modules/homepage/components/MessageFlashList/MessageFlash.js";
|
|
16
|
+
import { default as default17 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
17
|
+
import { default as default18 } from "./modules/homepage/components/Notifications/NotificationItem.js";
|
|
18
|
+
import { default as default19 } from "./modules/homepage/components/Notifications/NotificationList.js";
|
|
12
19
|
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
20
|
+
import { default as default20 } from "./modules/homepage/components/Qwant/Qwant.js";
|
|
21
|
+
import { default as default21 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
22
|
+
import { TabsKids } from "./modules/homepage/components/TabsKids/components/TabsKids.js";
|
|
23
|
+
import { default as default22 } from "./modules/homepage/components/Universalis/Universalis.js";
|
|
24
|
+
import { default as default23 } from "./modules/homepage/components/UserSpace/UserSpace.js";
|
|
25
|
+
import { Agenda } from "./modules/homepage/components/Agenda/Agenda.js";
|
|
26
|
+
import { AgendaContainer } from "./modules/homepage/components/Agenda/AgendaContainer.js";
|
|
27
|
+
import { AgendaEventCard } from "./modules/homepage/components/Agenda/AgendaEventCard.js";
|
|
15
28
|
import { AlloRegionContainer } from "./modules/homepage/components/AlloRegion/AlloRegionContainer.js";
|
|
29
|
+
import { BriefMeContainer } from "./modules/homepage/components/BriefMe/BriefMeContainer.js";
|
|
16
30
|
import { COMMUNITIES_PREVIEW_SIZE, useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
|
|
31
|
+
import { CantineContainer } from "./modules/homepage/components/Cantine/CantineContainer.js";
|
|
32
|
+
import { CantineModalContainer } from "./modules/homepage/components/Cantine/CantineModalContainer.js";
|
|
33
|
+
import { CaptationAudio } from "./modules/homepage/components/Captation/CaptationAudio/CaptationAudio.js";
|
|
34
|
+
import { CaptationVideo } from "./modules/homepage/components/Captation/CaptationVideo/CaptationVideo.js";
|
|
17
35
|
import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
|
|
36
|
+
import { EDUMALIN_TYPES } from "./modules/homepage/components/Edumalin/types.js";
|
|
37
|
+
import { EdumalinContainer } from "./modules/homepage/components/Edumalin/EdumalinContainer.js";
|
|
18
38
|
import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
|
|
19
39
|
import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
|
|
40
|
+
import { GenerationHdfContainer } from "./modules/homepage/components/GenerationHdf/GenerationHdfContainer.js";
|
|
20
41
|
import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
|
|
21
42
|
import { LastInfosList } from "./modules/homepage/components/LastInfos/LastInfosList.js";
|
|
22
43
|
import { LinkForm } from "./modules/homepage/components/UsefulLinks/LinkForm.js";
|
|
44
|
+
import { MAX_RSS_ARTICLES, MAX_RSS_FEEDS, useRssContainer } from "./modules/homepage/components/Rss/hooks/useRssContainer.js";
|
|
23
45
|
import { MAX_USEFUL_LINKS, useUsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/hooks/useUsefulLinksContainer.js";
|
|
46
|
+
import { MediacentreContainer } from "./modules/homepage/components/Mediacentre/MediacentreContainer.js";
|
|
24
47
|
import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
|
|
48
|
+
import { QwantContainer } from "./modules/homepage/components/Qwant/QwantContainer.js";
|
|
49
|
+
import { Rss } from "./modules/homepage/components/Rss/Rss.js";
|
|
50
|
+
import { RssContainer } from "./modules/homepage/components/Rss/RssContainer.js";
|
|
51
|
+
import { RssFeedForm } from "./modules/homepage/components/Rss/RssFeedForm.js";
|
|
52
|
+
import { RssFeedsModal } from "./modules/homepage/components/Rss/RssFeedsModal.js";
|
|
25
53
|
import { SchoolSpaceContainer } from "./modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js";
|
|
54
|
+
import { ScreenTime } from "./modules/homepage/components/ScreenTime/ScreenTime.js";
|
|
55
|
+
import { ScreenTimeContainer } from "./modules/homepage/components/ScreenTime/ScreenTimeContainer.js";
|
|
56
|
+
import { ScreenTimeModal } from "./modules/homepage/components/ScreenTime/ScreenTimeModal.js";
|
|
57
|
+
import { UniversalisContainer } from "./modules/homepage/components/Universalis/UniversalisContainer.js";
|
|
26
58
|
import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLinks.js";
|
|
27
59
|
import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
|
|
28
60
|
import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
|
|
29
61
|
import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
|
|
62
|
+
import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
|
|
63
|
+
import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
|
|
64
|
+
import { briefMeQueryOptions, buildGarLink, useBriefMe } from "./modules/homepage/components/BriefMe/useBriefMe.js";
|
|
65
|
+
import { edumalinQueryOptions, useEdumalin } from "./modules/homepage/components/Edumalin/useEdumalin.js";
|
|
66
|
+
import { mediacentreQueryKeys, mediacentreQueryOptions, useMediacentre } from "./modules/homepage/components/Mediacentre/hooks/useMediacentre.js";
|
|
67
|
+
import { useScreenTimeContainer } from "./modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js";
|
|
68
|
+
import { useScreenTimeModal } from "./modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js";
|
|
30
69
|
export {
|
|
70
|
+
Agenda,
|
|
71
|
+
AgendaContainer,
|
|
72
|
+
AgendaEventCard,
|
|
31
73
|
default2 as AlloRegion,
|
|
32
74
|
AlloRegionContainer,
|
|
75
|
+
default3 as BriefMe,
|
|
76
|
+
BriefMeContainer,
|
|
33
77
|
COMMUNITIES_PREVIEW_SIZE,
|
|
34
|
-
|
|
78
|
+
default4 as Cantine,
|
|
79
|
+
CantineContainer,
|
|
80
|
+
default5 as CantineModal,
|
|
81
|
+
CantineModalContainer,
|
|
82
|
+
CaptationAudio,
|
|
83
|
+
CaptationVideo,
|
|
84
|
+
default6 as Communities,
|
|
35
85
|
CommunitiesContainer,
|
|
36
|
-
|
|
37
|
-
|
|
86
|
+
default7 as CommunitiesItem,
|
|
87
|
+
default8 as CommunitiesSkeleton,
|
|
88
|
+
EDUMALIN_TYPES,
|
|
89
|
+
default9 as Edumalin,
|
|
90
|
+
EdumalinContainer,
|
|
91
|
+
default10 as EdumalinModal,
|
|
38
92
|
Favorites,
|
|
39
93
|
FavoritesContainer,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
94
|
+
default11 as GenerationHdf,
|
|
95
|
+
GenerationHdfContainer,
|
|
96
|
+
default12 as Header,
|
|
97
|
+
default13 as HomeCard,
|
|
98
|
+
default14 as LastInfos,
|
|
43
99
|
LastInfosContainer,
|
|
44
100
|
LastInfosList,
|
|
45
101
|
LinkForm,
|
|
102
|
+
MAX_DISPLAYED_RESOURCES,
|
|
103
|
+
MAX_RSS_ARTICLES,
|
|
104
|
+
MAX_RSS_FEEDS,
|
|
46
105
|
MAX_USEFUL_LINKS,
|
|
47
|
-
|
|
48
|
-
|
|
106
|
+
default15 as Mediacentre,
|
|
107
|
+
MediacentreContainer,
|
|
108
|
+
default16 as MessageFlash,
|
|
109
|
+
default17 as MessageFlashList,
|
|
49
110
|
MessageFlashListContainer,
|
|
50
|
-
|
|
51
|
-
|
|
111
|
+
default18 as NotificationItem,
|
|
112
|
+
default19 as NotificationList,
|
|
52
113
|
NotificationListContainer,
|
|
53
|
-
|
|
114
|
+
default20 as Qwant,
|
|
115
|
+
QwantContainer,
|
|
116
|
+
Rss,
|
|
117
|
+
RssContainer,
|
|
118
|
+
RssFeedForm,
|
|
119
|
+
RssFeedsModal,
|
|
120
|
+
default21 as SchoolSpace,
|
|
54
121
|
SchoolSpaceContainer,
|
|
122
|
+
ScreenTime,
|
|
123
|
+
ScreenTimeContainer,
|
|
124
|
+
ScreenTimeModal,
|
|
125
|
+
TabsKids,
|
|
126
|
+
default22 as Universalis,
|
|
127
|
+
UniversalisContainer,
|
|
55
128
|
UsefulLinks,
|
|
56
129
|
UsefulLinksContainer,
|
|
57
130
|
UsefulLinksModal,
|
|
58
|
-
|
|
131
|
+
default23 as UserSpace,
|
|
59
132
|
UserSpaceContainer,
|
|
133
|
+
WidgetToggle,
|
|
134
|
+
WidgetsPersonalizationPanel,
|
|
135
|
+
briefMeQueryOptions,
|
|
136
|
+
buildGarLink,
|
|
137
|
+
edumalinQueryOptions,
|
|
138
|
+
mediacentreQueryKeys,
|
|
139
|
+
mediacentreQueryOptions,
|
|
140
|
+
useBriefMe,
|
|
60
141
|
useCommunities,
|
|
142
|
+
useEdumalin,
|
|
143
|
+
useMediacentre,
|
|
144
|
+
useRssContainer,
|
|
145
|
+
useScreenTimeContainer,
|
|
146
|
+
useScreenTimeModal,
|
|
61
147
|
useUsefulLinksContainer
|
|
62
148
|
};
|
|
@@ -70,7 +70,7 @@ const useUpload = (visibility, application = "media-library") => {
|
|
|
70
70
|
},
|
|
71
71
|
url: window.location.hostname,
|
|
72
72
|
file: blob,
|
|
73
|
-
filename: getDefaultDate()
|
|
73
|
+
filename: (metadata == null ? void 0 : metadata.filename) || getDefaultDate() || "filename",
|
|
74
74
|
weight: blob.size
|
|
75
75
|
},
|
|
76
76
|
appCode: application,
|
|
@@ -6,9 +6,5 @@ export interface UseZendeskGuideAPI {
|
|
|
6
6
|
open: () => void;
|
|
7
7
|
close: () => void;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
* @param headerColor Overrides the widget panel's header color.
|
|
13
|
-
*/
|
|
14
|
-
export default function useZendeskGuide(headerColor?: string): UseZendeskGuideAPI;
|
|
9
|
+
/** Add Zendesk Guide */
|
|
10
|
+
export default function useZendeskGuide(): UseZendeskGuideAPI;
|
|
@@ -4,22 +4,24 @@ import { useEdificeClient } from "../../providers/EdificeClientProvider/EdificeC
|
|
|
4
4
|
import { useEdificeTheme } from "../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
5
5
|
import useUser from "../useUser/useUser.js";
|
|
6
6
|
import useIsAdml from "../useIsAdml/useIsAdml.js";
|
|
7
|
+
import useUiOverride from "../useUiOverride/useUiOverride.js";
|
|
7
8
|
import useHasWorkflow from "../useHasWorkflow/useHasWorkflow.js";
|
|
8
|
-
function useZendeskGuide(
|
|
9
|
+
function useZendeskGuide() {
|
|
10
|
+
var _a;
|
|
9
11
|
const {
|
|
10
12
|
currentLanguage
|
|
11
13
|
} = useEdificeClient(), {
|
|
12
14
|
userDescription
|
|
13
15
|
} = useUser(), {
|
|
14
16
|
isAdml
|
|
15
|
-
} = useIsAdml(), {
|
|
17
|
+
} = useIsAdml(), isEdificeInProductHelp = ((_a = useUiOverride("layout.helpzone")) == null ? void 0 : _a.variant) === "edifice-in-product", {
|
|
16
18
|
theme
|
|
17
19
|
} = useEdificeTheme(), isMobileView = window.innerWidth <= 768, hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = useState(""), [dataModule, setDataModule] = useState(void 0), [isReady, setIsReady] = useState(!1), [isOpen, setIsOpen] = useState(!1), open = () => {
|
|
18
|
-
var
|
|
19
|
-
(
|
|
20
|
+
var _a2;
|
|
21
|
+
(_a2 = window.zE) == null || _a2.call(window, "webWidget", "open");
|
|
20
22
|
}, close = () => {
|
|
21
|
-
var
|
|
22
|
-
(
|
|
23
|
+
var _a2;
|
|
24
|
+
(_a2 = window.zE) == null || _a2.call(window, "webWidget", "close");
|
|
23
25
|
}, setZendeskGuideLabels = () => {
|
|
24
26
|
const modulePathnameSplit = locationPathname.split("/");
|
|
25
27
|
let moduleLabel = "", labels = "";
|
|
@@ -83,8 +85,9 @@ function useZendeskGuide(headerColor) {
|
|
|
83
85
|
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
84
86
|
webWidget: {
|
|
85
87
|
color: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
//TODO #IMPULS-6352 to update with "edifice in product" generalization #IMPULS-6352
|
|
89
|
+
// theme: : zendeskGuideConfig.color || '#3030D1',
|
|
90
|
+
theme: isEdificeInProductHelp ? "#3030D1" : zendeskGuideConfig.color || "#3030D1"
|
|
88
91
|
},
|
|
89
92
|
zIndex: 3,
|
|
90
93
|
launcher: {
|