@edifice.io/react 2.6.9-develop-b2school.20261013134048 → 2.6.9-develop-pedago.20261013143657
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/Layout/Layout.js +4 -12
- 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 +3 -5
- package/dist/components/index.d.ts +0 -1
- package/dist/homepage.js +0 -10
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +6 -2
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +8 -11
- package/dist/icons.js +402 -404
- package/dist/index.js +136 -138
- package/dist/modules/HelpZone/HelpZone.js +8 -6
- package/dist/modules/HelpZone/HelpZoneContainer.js +5 -2
- package/dist/modules/homepage/components/Header/Header.js +11 -27
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +1 -5
- 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 +5 -5
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +2 -2
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +5 -1
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +12 -10
- package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +9 -3
- package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +12 -6
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +10 -12
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +10 -9
- package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +1 -3
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +7 -13
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +2 -4
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +2 -3
- package/dist/modules/homepage/components/index.d.ts +1 -3
- package/dist/modules/icons/components/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +4 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +2 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +3 -0
- package/package.json +6 -6
- package/dist/components/RadioTile/RadioTile.d.ts +0 -35
- package/dist/components/RadioTile/RadioTile.js +0 -22
- package/dist/components/RadioTile/index.d.ts +0 -2
- package/dist/modules/homepage/components/Agenda/Agenda.d.ts +0 -10
- package/dist/modules/homepage/components/Agenda/Agenda.js +0 -54
- package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +0 -1
- package/dist/modules/homepage/components/Agenda/AgendaContainer.js +0 -14
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +0 -10
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +0 -30
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +0 -14
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +0 -27
- package/dist/modules/homepage/components/Agenda/index.d.ts +0 -3
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +0 -24
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +0 -45
- package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +0 -4
- package/dist/modules/homepage/components/Agenda/services/api/index.js +0 -5
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +0 -19
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +0 -26
- package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +0 -5
- package/dist/modules/homepage/components/Header/MyAppsPopover.js +0 -28
- package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +0 -32
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +0 -16
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +0 -15
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +0 -21
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +0 -47
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +0 -2
- package/dist/modules/icons/components/IconAddWidget.d.ts +0 -7
- package/dist/modules/icons/components/IconAddWidget.js +0 -12
|
@@ -14,7 +14,6 @@ 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";
|
|
18
17
|
const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/components/Header/Header.js")), Layout = ({
|
|
19
18
|
children,
|
|
20
19
|
headless = !1,
|
|
@@ -22,10 +21,9 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
|
|
|
22
21
|
className,
|
|
23
22
|
...restProps
|
|
24
23
|
}) => {
|
|
25
|
-
var _a;
|
|
26
24
|
const {
|
|
27
25
|
theme
|
|
28
|
-
} = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2",
|
|
26
|
+
} = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", {
|
|
29
27
|
productOverride,
|
|
30
28
|
background,
|
|
31
29
|
isBackgroundImageOverridden,
|
|
@@ -38,13 +36,8 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
|
|
|
38
36
|
showCookiesConsent,
|
|
39
37
|
handleConsultCookies,
|
|
40
38
|
handleCloseCookiesConsent
|
|
41
|
-
} = useCookiesConsent()
|
|
42
|
-
|
|
43
|
-
isOpen: isHelpZoneOpen,
|
|
44
|
-
open: openHelpZone,
|
|
45
|
-
close: closeHelpZone
|
|
46
|
-
} = useZendeskGuide();
|
|
47
|
-
useCantoo();
|
|
39
|
+
} = useCookiesConsent();
|
|
40
|
+
useZendeskGuide(), useCantoo();
|
|
48
41
|
const classes = clsx("d-flex flex-column", {
|
|
49
42
|
"bg-white": whiteBg,
|
|
50
43
|
"container-fluid": !headless,
|
|
@@ -58,8 +51,7 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
|
|
|
58
51
|
renderNotificationsOverlay,
|
|
59
52
|
/* @__PURE__ */ jsx("main", { className: classes, ...restProps, children }),
|
|
60
53
|
renderToaster,
|
|
61
|
-
renderCookies
|
|
62
|
-
isEdificeInProductHelp && /* @__PURE__ */ jsx(HelpZone, { isReady: isHelpZoneReady, isOpen: isHelpZoneOpen, onOpen: openHelpZone, onClose: closeHelpZone })
|
|
54
|
+
renderCookies
|
|
63
55
|
] });
|
|
64
56
|
};
|
|
65
57
|
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"),
|
|
141
|
+
/* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), 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",
|
|
177
|
+
communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", 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",
|
|
182
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/mon-compte", className: "nav-link dropdown-item", 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",
|
|
187
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link dropdown-item", 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 {
|
|
2
|
-
export interface NavLinkProps<T>
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface NavLinkProps<T> {
|
|
3
3
|
/**
|
|
4
4
|
* href link
|
|
5
5
|
*/
|
|
@@ -21,4 +21,4 @@ export interface NavLinkProps<T> extends Omit<ComponentPropsWithoutRef<'a'>, 'cl
|
|
|
21
21
|
*/
|
|
22
22
|
button?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
24
|
+
export declare function NavLink({ link, className, children, translate, button, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import clsx from "clsx";
|
|
4
3
|
import VisuallyHidden from "../../VisuallyHidden/VisuallyHidden.js";
|
|
5
|
-
function
|
|
4
|
+
function NavLink({
|
|
6
5
|
link,
|
|
7
6
|
className,
|
|
8
7
|
children,
|
|
@@ -10,14 +9,13 @@ function NavLinkRender({
|
|
|
10
9
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
10
|
button,
|
|
12
11
|
...restProps
|
|
13
|
-
}
|
|
12
|
+
}) {
|
|
14
13
|
const classes = clsx("nav-link", className);
|
|
15
|
-
return /* @__PURE__ */ jsxs("a", {
|
|
14
|
+
return /* @__PURE__ */ jsxs("a", { href: link, className: classes, ...restProps, children: [
|
|
16
15
|
children,
|
|
17
16
|
translate && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { className: "nav-text", children: translate }) })
|
|
18
17
|
] });
|
|
19
18
|
}
|
|
20
|
-
const NavLink = /* @__PURE__ */ forwardRef(NavLinkRender);
|
|
21
19
|
export {
|
|
22
20
|
NavLink
|
|
23
21
|
};
|
|
@@ -45,7 +45,6 @@ export * from './PreventPropagation';
|
|
|
45
45
|
export * from './PromotionCard';
|
|
46
46
|
export * from './Radio';
|
|
47
47
|
export * from './RadioCard';
|
|
48
|
-
export * from './RadioTile';
|
|
49
48
|
export * from './SearchBar';
|
|
50
49
|
export * from './SegmentedControl';
|
|
51
50
|
export * from './Select';
|
package/dist/homepage.js
CHANGED
|
@@ -11,9 +11,6 @@ import { default as default11 } from "./modules/homepage/components/Notification
|
|
|
11
11
|
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
12
12
|
import { default as default12 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
13
13
|
import { default as default13 } from "./modules/homepage/components/UserSpace/UserSpace.js";
|
|
14
|
-
import { Agenda } from "./modules/homepage/components/Agenda/Agenda.js";
|
|
15
|
-
import { AgendaContainer } from "./modules/homepage/components/Agenda/AgendaContainer.js";
|
|
16
|
-
import { AgendaEventCard } from "./modules/homepage/components/Agenda/AgendaEventCard.js";
|
|
17
14
|
import { COMMUNITIES_PREVIEW_SIZE, useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
|
|
18
15
|
import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
|
|
19
16
|
import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
|
|
@@ -28,12 +25,7 @@ import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLin
|
|
|
28
25
|
import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
|
|
29
26
|
import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
|
|
30
27
|
import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
|
|
31
|
-
import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
|
|
32
|
-
import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
|
|
33
28
|
export {
|
|
34
|
-
Agenda,
|
|
35
|
-
AgendaContainer,
|
|
36
|
-
AgendaEventCard,
|
|
37
29
|
COMMUNITIES_PREVIEW_SIZE,
|
|
38
30
|
default2 as Communities,
|
|
39
31
|
CommunitiesContainer,
|
|
@@ -61,8 +53,6 @@ export {
|
|
|
61
53
|
UsefulLinksModal,
|
|
62
54
|
default13 as UserSpace,
|
|
63
55
|
UserSpaceContainer,
|
|
64
|
-
WidgetToggle,
|
|
65
|
-
WidgetsPersonalizationPanel,
|
|
66
56
|
useCommunities,
|
|
67
57
|
useUsefulLinksContainer
|
|
68
58
|
};
|
|
@@ -6,5 +6,9 @@ export interface UseZendeskGuideAPI {
|
|
|
6
6
|
open: () => void;
|
|
7
7
|
close: () => void;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Add Zendesk Guide
|
|
11
|
+
*
|
|
12
|
+
* @param headerColor Overrides the widget panel's theme color.
|
|
13
|
+
*/
|
|
14
|
+
export default function useZendeskGuide(headerColor?: string): UseZendeskGuideAPI;
|
|
@@ -4,24 +4,22 @@ 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";
|
|
8
7
|
import useHasWorkflow from "../useHasWorkflow/useHasWorkflow.js";
|
|
9
|
-
function useZendeskGuide() {
|
|
10
|
-
var _a;
|
|
8
|
+
function useZendeskGuide(headerColor) {
|
|
11
9
|
const {
|
|
12
10
|
currentLanguage
|
|
13
11
|
} = useEdificeClient(), {
|
|
14
12
|
userDescription
|
|
15
13
|
} = useUser(), {
|
|
16
14
|
isAdml
|
|
17
|
-
} = useIsAdml(),
|
|
15
|
+
} = useIsAdml(), {
|
|
18
16
|
theme
|
|
19
17
|
} = 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 = () => {
|
|
20
|
-
var
|
|
21
|
-
(
|
|
18
|
+
var _a;
|
|
19
|
+
(_a = window.zE) == null || _a.call(window, "webWidget", "open");
|
|
22
20
|
}, close = () => {
|
|
23
|
-
var
|
|
24
|
-
(
|
|
21
|
+
var _a;
|
|
22
|
+
(_a = window.zE) == null || _a.call(window, "webWidget", "close");
|
|
25
23
|
}, setZendeskGuideLabels = () => {
|
|
26
24
|
const modulePathnameSplit = locationPathname.split("/");
|
|
27
25
|
let moduleLabel = "", labels = "";
|
|
@@ -85,9 +83,8 @@ function useZendeskGuide() {
|
|
|
85
83
|
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
86
84
|
webWidget: {
|
|
87
85
|
color: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
theme: isEdificeInProductHelp ? "#3030D1" : zendeskGuideConfig.color || "#3030D1"
|
|
86
|
+
theme: zendeskGuideConfig.color || "#ffc400",
|
|
87
|
+
header: headerColor
|
|
91
88
|
},
|
|
92
89
|
zIndex: 3,
|
|
93
90
|
launcher: {
|