@edifice.io/react 2.6.11 → 2.6.12-develop-b2school.20261102112143
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/Dropdown/DropdownItem.js +17 -1
- package/dist/components/Layout/Layout.js +12 -4
- package/dist/components/Layout/components/Header.js +4 -4
- package/dist/components/Layout/components/NavLink.d.ts +3 -3
- package/dist/components/Layout/components/NavLink.js +5 -3
- 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/Tree/components/Tree.d.ts +2 -5
- package/dist/components/Tree/components/Tree.js +10 -7
- package/dist/components/Tree/hooks/useTree.d.ts +1 -0
- package/dist/components/Tree/hooks/useTree.js +6 -2
- package/dist/components/Tree/types/index.d.ts +7 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/homepage.js +87 -24
- package/dist/hooks/useDropdown/useDropdown.js +2 -2
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
- package/dist/icons.js +406 -402
- 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/editor/components/Editor/Editor.d.ts +5 -0
- package/dist/modules/editor/components/Editor/Editor.js +3 -0
- 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/Communities/Communities.js +4 -4
- 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/AccountActionListPopover.d.ts +13 -0
- package/dist/modules/homepage/components/Header/AccountActionListPopover.js +26 -0
- package/dist/modules/homepage/components/Header/ActionItem.d.ts +38 -0
- package/dist/modules/homepage/components/Header/ActionItem.js +34 -0
- package/dist/modules/homepage/components/Header/Header.js +34 -40
- package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +5 -0
- package/dist/modules/homepage/components/Header/MyAppsPopover.js +28 -0
- package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +32 -0
- 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/MessageFlashList/MessageFlash.js +1 -1
- 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/NotificationFilterMenu.js +1 -5
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +11 -13
- package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +3 -9
- 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/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 +11 -1
- 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/IconLogout.d.ts +7 -0
- package/dist/modules/icons/components/IconLogout.js +13 -0
- package/dist/modules/icons/components/index.d.ts +2 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +5 -7
- package/dist/modules/icons/components/nav/IconHomeBeta.js +6 -3
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +7 -7
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +2 -3
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +2 -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,
|
|
@@ -39,7 +39,23 @@ const DropdownItem = ({
|
|
|
39
39
|
icon,
|
|
40
40
|
children
|
|
41
41
|
] });
|
|
42
|
-
return isFiltered ? /* @__PURE__ */ jsx(DropdownItemHidden, { children: content }) : /* @__PURE__ */ jsx(
|
|
42
|
+
return isFiltered ? /* @__PURE__ */ jsx(DropdownItemHidden, { children: content }) : /* @__PURE__ */ jsx(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
id,
|
|
46
|
+
role: "menuitem",
|
|
47
|
+
style,
|
|
48
|
+
ref: (el) => itemRefs.current[id] = el,
|
|
49
|
+
tabIndex: isFocused === id ? 0 : -1,
|
|
50
|
+
className: dropdownItem,
|
|
51
|
+
"aria-current": isFocused === id,
|
|
52
|
+
onClick: handleOnClick,
|
|
53
|
+
onMouseEnter: onMenuItemMouseEnter,
|
|
54
|
+
onKeyDown: (event) => onMenuItemKeyDown(event, onClick, type === "action"),
|
|
55
|
+
...restProps,
|
|
56
|
+
children: content
|
|
57
|
+
}
|
|
58
|
+
);
|
|
43
59
|
};
|
|
44
60
|
export {
|
|
45
61
|
DropdownItem as default
|
|
@@ -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 {
|
|
@@ -138,7 +138,7 @@ const Header = ({
|
|
|
138
138
|
/* @__PURE__ */ jsxs("ul", { className: "navbar-nav", children: [
|
|
139
139
|
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/timeline/timeline", translate: t("navbar.home"), children: /* @__PURE__ */ jsx(SvgIconHome, { color: "#fff" }) }) }),
|
|
140
140
|
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: appsRef, id: popoverAppsId, "aria-haspopup": "true", "aria-expanded": isAppsHovered, children: [
|
|
141
|
-
/* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), children: /* @__PURE__ */ jsx(SvgIconMyApps, { color: "#fff" }) }),
|
|
141
|
+
/* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), "data-testid": "header-my-apps-button", children: /* @__PURE__ */ jsx(SvgIconMyApps, { color: "#fff" }) }),
|
|
142
142
|
/* @__PURE__ */ jsxs(Popover, { className: "top-100 widget", id: popoverAppsId, isVisible: isAppsHovered, children: [
|
|
143
143
|
/* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsx(WidgetAppsBody, { bookmarkedApps }) }),
|
|
144
144
|
/* @__PURE__ */ jsx(PopoverFooter, { className: "widget-footer border-top border-ghost", children: /* @__PURE__ */ jsx(WidgetAppsFooter, {}) })
|
|
@@ -174,17 +174,17 @@ const Header = ({
|
|
|
174
174
|
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("div", { className: "dropdown", children: [
|
|
175
175
|
/* @__PURE__ */ jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsx(SvgIconRafterDown, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
176
176
|
/* @__PURE__ */ jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
177
|
-
communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", children: [
|
|
177
|
+
communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", "data-testid": "header-community-button", children: [
|
|
178
178
|
/* @__PURE__ */ jsx(SvgIconCommunities, { className: "icon communities" }),
|
|
179
179
|
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
|
|
180
180
|
] }) }),
|
|
181
181
|
searchWorkflow ? /* @__PURE__ */ jsx(SearchEngine, {}) : null,
|
|
182
|
-
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/mon-compte", className: "nav-link dropdown-item", children: [
|
|
182
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/mon-compte", className: "nav-link dropdown-item", "data-testid": "header-user-profile-button", children: [
|
|
183
183
|
/* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }),
|
|
184
184
|
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.myaccount") })
|
|
185
185
|
] }) }),
|
|
186
186
|
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx("hr", { className: "dropdown-divider" }) }),
|
|
187
|
-
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link dropdown-item", children: [
|
|
187
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link dropdown-item", "data-testid": "header-logout-button", children: [
|
|
188
188
|
/* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
|
|
189
189
|
/* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
|
|
190
190
|
] }) })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface NavLinkProps<T> {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export interface NavLinkProps<T> extends Omit<ComponentPropsWithoutRef<'a'>, 'className' | 'translate'> {
|
|
3
3
|
/**
|
|
4
4
|
* href link
|
|
5
5
|
*/
|
|
@@ -21,4 +21,4 @@ export interface NavLinkProps<T> {
|
|
|
21
21
|
*/
|
|
22
22
|
button?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
24
|
+
export declare const NavLink: import('react').ForwardRefExoticComponent<NavLinkProps<string> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
2
3
|
import clsx from "clsx";
|
|
3
4
|
import VisuallyHidden from "../../VisuallyHidden/VisuallyHidden.js";
|
|
4
|
-
function
|
|
5
|
+
function NavLinkRender({
|
|
5
6
|
link,
|
|
6
7
|
className,
|
|
7
8
|
children,
|
|
@@ -9,13 +10,14 @@ function NavLink({
|
|
|
9
10
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
11
|
button,
|
|
11
12
|
...restProps
|
|
12
|
-
}) {
|
|
13
|
+
}, ref) {
|
|
13
14
|
const classes = clsx("nav-link", className);
|
|
14
|
-
return /* @__PURE__ */ jsxs("a", { href: link, className: classes, ...restProps, children: [
|
|
15
|
+
return /* @__PURE__ */ jsxs("a", { ref, href: link, className: classes, ...restProps, children: [
|
|
15
16
|
children,
|
|
16
17
|
translate && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { className: "nav-text", children: translate }) })
|
|
17
18
|
] });
|
|
18
19
|
}
|
|
20
|
+
const NavLink = /* @__PURE__ */ forwardRef(NavLinkRender);
|
|
19
21
|
export {
|
|
20
22
|
NavLink
|
|
21
23
|
};
|
|
@@ -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 {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { TreeNodeProps, TreeProps } from '../types';
|
|
2
|
-
declare const Tree:
|
|
3
|
-
({ nodes, selectedNodeId: externalSelectedNodeId, showIcon, shouldExpandAllNodes, draggedNode, renderNode, onTreeItemFold, onTreeItemUnfold, onTreeItemClick, }: TreeProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
1
|
+
import { TreeHandlers, TreeNodeProps, TreeProps } from '../types';
|
|
2
|
+
declare const Tree: import('react').ForwardRefExoticComponent<TreeProps & import('react').RefAttributes<TreeHandlers>>;
|
|
6
3
|
export declare const TreeNode: import('react').ForwardRefExoticComponent<Omit<TreeNodeProps, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
7
4
|
export default Tree;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, createElement } from "react";
|
|
2
|
+
import { forwardRef, useRef, useImperativeHandle, createElement } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import SvgIconFolder from "../../../modules/icons/components/IconFolder.js";
|
|
6
6
|
import SvgIconRafterRight from "../../../modules/icons/components/IconRafterRight.js";
|
|
7
7
|
import { useTree } from "../hooks/useTree.js";
|
|
8
8
|
import { getRotateTransitionStyle } from "../../../utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
9
|
-
const Tree = ({
|
|
9
|
+
const Tree = /* @__PURE__ */ forwardRef(({
|
|
10
10
|
nodes,
|
|
11
11
|
selectedNodeId: externalSelectedNodeId,
|
|
12
12
|
showIcon = !1,
|
|
@@ -16,12 +16,13 @@ const Tree = ({
|
|
|
16
16
|
onTreeItemFold,
|
|
17
17
|
onTreeItemUnfold,
|
|
18
18
|
onTreeItemClick
|
|
19
|
-
}) => {
|
|
19
|
+
}, ref) => {
|
|
20
20
|
const {
|
|
21
21
|
selectedNodeId,
|
|
22
22
|
expandedNodes,
|
|
23
23
|
handleItemClick,
|
|
24
|
-
handleFoldUnfold
|
|
24
|
+
handleFoldUnfold,
|
|
25
|
+
expandNode
|
|
25
26
|
} = useTree({
|
|
26
27
|
data: nodes,
|
|
27
28
|
externalSelectedNodeId,
|
|
@@ -30,9 +31,11 @@ const Tree = ({
|
|
|
30
31
|
onTreeItemClick,
|
|
31
32
|
onTreeItemFold,
|
|
32
33
|
onTreeItemUnfold
|
|
33
|
-
});
|
|
34
|
-
return
|
|
35
|
-
|
|
34
|
+
}), latestExpandNode = useRef(expandNode);
|
|
35
|
+
return latestExpandNode.current = expandNode, useImperativeHandle(ref, () => ({
|
|
36
|
+
expandNode: (nodeId) => latestExpandNode.current(nodeId)
|
|
37
|
+
}), []), /* @__PURE__ */ jsx("div", { className: "treeview", children: /* @__PURE__ */ jsx("ul", { role: "tree", className: "m-0 p-0", children: Array.isArray(nodes) ? nodes.map((node) => /* @__PURE__ */ jsx(TreeNode, { node, showIcon, selectedNodeId, expandedNodes, onTreeItemClick: handleItemClick, onToggleNode: handleFoldUnfold, renderNode }, node.id)) : /* @__PURE__ */ jsx(TreeNode, { node: nodes, selectedNodeId, expandedNodes, showIcon, onTreeItemClick: handleItemClick, onToggleNode: handleFoldUnfold }) }) });
|
|
38
|
+
}), TreeNode = /* @__PURE__ */ forwardRef(({
|
|
36
39
|
node,
|
|
37
40
|
selectedNodeId,
|
|
38
41
|
showIcon = !1,
|
|
@@ -27,4 +27,5 @@ export declare const useTree: ({ data, externalSelectedNodeId, draggedNode, shou
|
|
|
27
27
|
handleItemClick: (nodeId: string) => void;
|
|
28
28
|
handleFoldUnfold: (nodeId: string) => void;
|
|
29
29
|
handleCollapseNode: (nodeId: string) => void;
|
|
30
|
+
expandNode: (nodeId: string) => void;
|
|
30
31
|
};
|
|
@@ -45,7 +45,10 @@ const useTree = ({
|
|
|
45
45
|
selectedNodeId !== nodeId && setInternalSelectedNodeId(nodeId);
|
|
46
46
|
}, handleItemClick = (nodeId) => {
|
|
47
47
|
handleSelectedItem(nodeId), handleExpandNode(nodeId), onTreeItemClick == null || onTreeItemClick(nodeId);
|
|
48
|
-
}, handleFoldUnfold = (nodeId) => handleToggleNode(nodeId),
|
|
48
|
+
}, handleFoldUnfold = (nodeId) => handleToggleNode(nodeId), expandNode = (nodeId) => {
|
|
49
|
+
const path = findPathById(data, nodeId);
|
|
50
|
+
path.length === 0 || path.every((id) => expandedNodes.has(id)) || handleExpandNode(nodeId);
|
|
51
|
+
}, handleItemDrag = (nodeId) => {
|
|
49
52
|
findNodeById(data, externalSelectedNodeId) && handleCollapseNode(nodeId);
|
|
50
53
|
};
|
|
51
54
|
return {
|
|
@@ -54,7 +57,8 @@ const useTree = ({
|
|
|
54
57
|
draggedNodeId,
|
|
55
58
|
handleItemClick,
|
|
56
59
|
handleFoldUnfold,
|
|
57
|
-
handleCollapseNode
|
|
60
|
+
handleCollapseNode,
|
|
61
|
+
expandNode
|
|
58
62
|
};
|
|
59
63
|
};
|
|
60
64
|
export {
|
|
@@ -14,6 +14,13 @@ export type Projected = {
|
|
|
14
14
|
parentId: string | null;
|
|
15
15
|
activeId: UniqueIdentifier;
|
|
16
16
|
} | null;
|
|
17
|
+
export interface TreeHandlers {
|
|
18
|
+
/**
|
|
19
|
+
* Expands a node and its ancestors, without selecting it.
|
|
20
|
+
* Does nothing if the node is unknown or already expanded with all its ancestors.
|
|
21
|
+
*/
|
|
22
|
+
expandNode: (nodeId: string) => void;
|
|
23
|
+
}
|
|
17
24
|
export interface TreeProps extends SharedTreeProps {
|
|
18
25
|
/**
|
|
19
26
|
* Tree data
|
package/dist/homepage.js
CHANGED
|
@@ -1,58 +1,121 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/homepage/components/
|
|
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/
|
|
1
|
+
import { default as default2 } from "./modules/homepage/components/BriefMe/BriefMe.js";
|
|
2
|
+
import { default as default3 } from "./modules/homepage/components/Cantine/Cantine.js";
|
|
3
|
+
import { default as default4 } from "./modules/homepage/components/Cantine/CantineModal.js";
|
|
4
|
+
import { default as default5 } from "./modules/homepage/components/Communities/Communities.js";
|
|
5
|
+
import { default as default6 } from "./modules/homepage/components/Communities/CommunityItem.js";
|
|
6
|
+
import { default as default7 } from "./modules/homepage/components/Communities/CommunitiesSkeleton.js";
|
|
7
|
+
import { default as default8 } from "./modules/homepage/components/Edumalin/Edumalin.js";
|
|
8
|
+
import { default as default9 } from "./modules/homepage/components/Edumalin/EdumalinModal.js";
|
|
9
|
+
import { default as default10 } from "./modules/homepage/components/GenerationHdf/GenerationHdf.js";
|
|
10
|
+
import { default as default11 } from "./modules/homepage/components/Header/Header.js";
|
|
11
|
+
import { default as default12 } from "./modules/homepage/components/HomeCard/HomeCard.js";
|
|
12
|
+
import { default as default13 } from "./modules/homepage/components/LastInfos/LastInfos.js";
|
|
13
|
+
import { default as default14 } from "./modules/homepage/components/MessageFlashList/MessageFlash.js";
|
|
14
|
+
import { default as default15 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
15
|
+
import { default as default16 } from "./modules/homepage/components/Notifications/NotificationItem.js";
|
|
16
|
+
import { default as default17 } from "./modules/homepage/components/Notifications/NotificationList.js";
|
|
11
17
|
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
18
|
+
import { default as default18 } from "./modules/homepage/components/Qwant/Qwant.js";
|
|
19
|
+
import { default as default19 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
20
|
+
import { TabsKids } from "./modules/homepage/components/TabsKids/components/TabsKids.js";
|
|
21
|
+
import { default as default20 } from "./modules/homepage/components/Universalis/Universalis.js";
|
|
22
|
+
import { default as default21 } from "./modules/homepage/components/UserSpace/UserSpace.js";
|
|
23
|
+
import { Agenda } from "./modules/homepage/components/Agenda/Agenda.js";
|
|
24
|
+
import { AgendaContainer } from "./modules/homepage/components/Agenda/AgendaContainer.js";
|
|
25
|
+
import { AgendaEventCard } from "./modules/homepage/components/Agenda/AgendaEventCard.js";
|
|
26
|
+
import { BriefMeContainer } from "./modules/homepage/components/BriefMe/BriefMeContainer.js";
|
|
14
27
|
import { COMMUNITIES_PREVIEW_SIZE, useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
|
|
28
|
+
import { CantineContainer } from "./modules/homepage/components/Cantine/CantineContainer.js";
|
|
29
|
+
import { CantineModalContainer } from "./modules/homepage/components/Cantine/CantineModalContainer.js";
|
|
15
30
|
import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
|
|
31
|
+
import { EDUMALIN_TYPES } from "./modules/homepage/components/Edumalin/types.js";
|
|
32
|
+
import { EdumalinContainer } from "./modules/homepage/components/Edumalin/EdumalinContainer.js";
|
|
16
33
|
import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
|
|
17
34
|
import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
|
|
35
|
+
import { GenerationHdfContainer } from "./modules/homepage/components/GenerationHdf/GenerationHdfContainer.js";
|
|
18
36
|
import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
|
|
19
37
|
import { LastInfosList } from "./modules/homepage/components/LastInfos/LastInfosList.js";
|
|
20
38
|
import { LinkForm } from "./modules/homepage/components/UsefulLinks/LinkForm.js";
|
|
39
|
+
import { MAX_RSS_ARTICLES, MAX_RSS_FEEDS, useRssContainer } from "./modules/homepage/components/Rss/hooks/useRssContainer.js";
|
|
21
40
|
import { MAX_USEFUL_LINKS, useUsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/hooks/useUsefulLinksContainer.js";
|
|
22
41
|
import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
|
|
42
|
+
import { QwantContainer } from "./modules/homepage/components/Qwant/QwantContainer.js";
|
|
43
|
+
import { Rss } from "./modules/homepage/components/Rss/Rss.js";
|
|
44
|
+
import { RssContainer } from "./modules/homepage/components/Rss/RssContainer.js";
|
|
45
|
+
import { RssFeedForm } from "./modules/homepage/components/Rss/RssFeedForm.js";
|
|
46
|
+
import { RssFeedsModal } from "./modules/homepage/components/Rss/RssFeedsModal.js";
|
|
23
47
|
import { SchoolSpaceContainer } from "./modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js";
|
|
48
|
+
import { UniversalisContainer } from "./modules/homepage/components/Universalis/UniversalisContainer.js";
|
|
24
49
|
import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLinks.js";
|
|
25
50
|
import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
|
|
26
51
|
import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
|
|
27
52
|
import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
|
|
53
|
+
import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
|
|
54
|
+
import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
|
|
55
|
+
import { briefMeQueryOptions, buildGarLink, useBriefMe } from "./modules/homepage/components/BriefMe/useBriefMe.js";
|
|
56
|
+
import { edumalinQueryOptions, useEdumalin } from "./modules/homepage/components/Edumalin/useEdumalin.js";
|
|
28
57
|
export {
|
|
58
|
+
Agenda,
|
|
59
|
+
AgendaContainer,
|
|
60
|
+
AgendaEventCard,
|
|
61
|
+
default2 as BriefMe,
|
|
62
|
+
BriefMeContainer,
|
|
29
63
|
COMMUNITIES_PREVIEW_SIZE,
|
|
30
|
-
|
|
64
|
+
default3 as Cantine,
|
|
65
|
+
CantineContainer,
|
|
66
|
+
default4 as CantineModal,
|
|
67
|
+
CantineModalContainer,
|
|
68
|
+
default5 as Communities,
|
|
31
69
|
CommunitiesContainer,
|
|
32
|
-
|
|
33
|
-
|
|
70
|
+
default6 as CommunitiesItem,
|
|
71
|
+
default7 as CommunitiesSkeleton,
|
|
72
|
+
EDUMALIN_TYPES,
|
|
73
|
+
default8 as Edumalin,
|
|
74
|
+
EdumalinContainer,
|
|
75
|
+
default9 as EdumalinModal,
|
|
34
76
|
Favorites,
|
|
35
77
|
FavoritesContainer,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
78
|
+
default10 as GenerationHdf,
|
|
79
|
+
GenerationHdfContainer,
|
|
80
|
+
default11 as Header,
|
|
81
|
+
default12 as HomeCard,
|
|
82
|
+
default13 as LastInfos,
|
|
39
83
|
LastInfosContainer,
|
|
40
84
|
LastInfosList,
|
|
41
85
|
LinkForm,
|
|
86
|
+
MAX_RSS_ARTICLES,
|
|
87
|
+
MAX_RSS_FEEDS,
|
|
42
88
|
MAX_USEFUL_LINKS,
|
|
43
|
-
|
|
44
|
-
|
|
89
|
+
default14 as MessageFlash,
|
|
90
|
+
default15 as MessageFlashList,
|
|
45
91
|
MessageFlashListContainer,
|
|
46
|
-
|
|
47
|
-
|
|
92
|
+
default16 as NotificationItem,
|
|
93
|
+
default17 as NotificationList,
|
|
48
94
|
NotificationListContainer,
|
|
49
|
-
|
|
95
|
+
default18 as Qwant,
|
|
96
|
+
QwantContainer,
|
|
97
|
+
Rss,
|
|
98
|
+
RssContainer,
|
|
99
|
+
RssFeedForm,
|
|
100
|
+
RssFeedsModal,
|
|
101
|
+
default19 as SchoolSpace,
|
|
50
102
|
SchoolSpaceContainer,
|
|
103
|
+
TabsKids,
|
|
104
|
+
default20 as Universalis,
|
|
105
|
+
UniversalisContainer,
|
|
51
106
|
UsefulLinks,
|
|
52
107
|
UsefulLinksContainer,
|
|
53
108
|
UsefulLinksModal,
|
|
54
|
-
|
|
109
|
+
default21 as UserSpace,
|
|
55
110
|
UserSpaceContainer,
|
|
111
|
+
WidgetToggle,
|
|
112
|
+
WidgetsPersonalizationPanel,
|
|
113
|
+
briefMeQueryOptions,
|
|
114
|
+
buildGarLink,
|
|
115
|
+
edumalinQueryOptions,
|
|
116
|
+
useBriefMe,
|
|
56
117
|
useCommunities,
|
|
118
|
+
useEdumalin,
|
|
119
|
+
useRssContainer,
|
|
57
120
|
useUsefulLinksContainer
|
|
58
121
|
};
|
|
@@ -94,7 +94,7 @@ const useDropdown = (placement, extraTriggerKeyDownHandler, isTriggerHovered = !
|
|
|
94
94
|
const index = Object.values(itemRefs.current).filter((item) => !!item).findIndex((item) => item.id === event.currentTarget.getAttribute("id"));
|
|
95
95
|
setActiveIndex(index);
|
|
96
96
|
}
|
|
97
|
-
}, onMenuItemKeyDown = useCallback((event, onSuccess) => {
|
|
97
|
+
}, onMenuItemKeyDown = useCallback((event, onSuccess, closeOnSuccess = !0) => {
|
|
98
98
|
let flag = !1;
|
|
99
99
|
if (event.shiftKey)
|
|
100
100
|
event.key === "Tab" && (closeDropdown(), flag = !0);
|
|
@@ -105,7 +105,7 @@ const useDropdown = (placement, extraTriggerKeyDownHandler, isTriggerHovered = !
|
|
|
105
105
|
break;
|
|
106
106
|
case " ":
|
|
107
107
|
case "Enter":
|
|
108
|
-
activeIndex !== -1 && (Object.values(itemRefs.current)[activeIndex].getAttribute("role") === "menuitem" && triggerRef.current && (triggerRef.current.focus(), setVisible(!1)), onSuccess == null || onSuccess()), flag = !0;
|
|
108
|
+
activeIndex !== -1 && (Object.values(itemRefs.current).filter(Boolean)[activeIndex].getAttribute("role") === "menuitem" && closeOnSuccess && triggerRef.current && (triggerRef.current.focus(), setVisible(!1)), onSuccess == null || onSuccess()), flag = !0;
|
|
109
109
|
break;
|
|
110
110
|
case "ArrowDown":
|
|
111
111
|
case "Down":
|
|
@@ -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;
|