@edifice.io/react 2.5.21-epic-homepage.20260602145748 → 2.5.22
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/AppIcon/AppIcon.js +1 -4
- package/dist/components/Logo/index.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +6 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +5 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +9 -10
- package/dist/icons-nav.js +28 -38
- package/dist/index.js +202 -215
- package/dist/modules/icons/components/nav/index.d.ts +0 -5
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +7 -0
- package/package.json +7 -12
- package/dist/components/BetaSwitch/BetaSwitch.d.ts +0 -13
- package/dist/components/BetaSwitch/BetaSwitch.js +0 -27
- package/dist/components/BetaSwitch/index.d.ts +0 -1
- package/dist/components/ButtonBeta/ButtonBeta.d.ts +0 -47
- package/dist/components/ButtonBeta/ButtonBeta.js +0 -34
- package/dist/components/ButtonBeta/index.d.ts +0 -2
- package/dist/components/LogoBeta/LogoBeta.d.ts +0 -7
- package/dist/components/LogoBeta/LogoBeta.js +0 -14
- package/dist/components/LogoBeta/index.d.ts +0 -2
- package/dist/components/PageLayout/PageLayout.d.ts +0 -45
- package/dist/components/PageLayout/PageLayout.js +0 -94
- package/dist/components/PageLayout/PageLayoutContext.d.ts +0 -14
- package/dist/components/PageLayout/PageLayoutContext.js +0 -8
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +0 -10
- package/dist/components/PageLayout/components/PageLayoutContent.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutContent.js +0 -18
- package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +0 -10
- package/dist/components/PageLayout/components/PageLayoutHeader.js +0 -18
- package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +0 -15
- package/dist/components/PageLayout/components/PageLayoutOverlay.js +0 -51
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +0 -18
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +0 -18
- package/dist/components/PageLayout/hook/useOverlay.d.ts +0 -6
- package/dist/components/PageLayout/hook/useOverlay.js +0 -20
- package/dist/components/PageLayout/index.d.ts +0 -4
- package/dist/components/PageLayout/store/overlayStore.d.ts +0 -15
- package/dist/components/PageLayout/store/overlayStore.js +0 -12
- package/dist/homepage.js +0 -24
- package/dist/modules/homepage/components/Header/Header.d.ts +0 -9
- package/dist/modules/homepage/components/Header/Header.js +0 -80
- package/dist/modules/homepage/components/Header/index.d.ts +0 -2
- package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +0 -37
- package/dist/modules/homepage/components/HomeCard/HomeCard.js +0 -17
- package/dist/modules/homepage/components/HomeCard/HomeCardContent.d.ts +0 -7
- package/dist/modules/homepage/components/HomeCard/HomeCardContent.js +0 -10
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +0 -18
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +0 -22
- package/dist/modules/homepage/components/HomeCard/index.d.ts +0 -4
- package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +0 -49
- package/dist/modules/homepage/components/LastInfos/LastInfos.js +0 -58
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +0 -4
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.js +0 -37
- package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +0 -13
- package/dist/modules/homepage/components/LastInfos/LastInfosList.js +0 -31
- package/dist/modules/homepage/components/LastInfos/index.d.ts +0 -4
- package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +0 -18
- package/dist/modules/homepage/components/LastInfos/useLastInfos.js +0 -25
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +0 -12
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -62
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +0 -12
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +0 -10
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +0 -5
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +0 -14
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +0 -16
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +0 -19
- package/dist/modules/homepage/components/MessageFlashList/index.d.ts +0 -4
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +0 -4
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.js +0 -5
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +0 -20
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +0 -21
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +0 -13
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +0 -31
- package/dist/modules/homepage/components/Notifications/Notification.d.ts +0 -9
- package/dist/modules/homepage/components/Notifications/Notification.js +0 -7
- package/dist/modules/homepage/components/Notifications/NotificationList.d.ts +0 -18
- package/dist/modules/homepage/components/Notifications/NotificationList.js +0 -44
- package/dist/modules/homepage/components/Notifications/NotificationListContainer.d.ts +0 -9
- package/dist/modules/homepage/components/Notifications/NotificationListContainer.js +0 -20
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.d.ts +0 -3
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +0 -6
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.d.ts +0 -20
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +0 -26
- package/dist/modules/homepage/components/Notifications/index.d.ts +0 -4
- package/dist/modules/homepage/components/Notifications/services/api/index.d.ts +0 -4
- package/dist/modules/homepage/components/Notifications/services/api/index.js +0 -5
- package/dist/modules/homepage/components/Notifications/services/api/notificationService.d.ts +0 -15
- package/dist/modules/homepage/components/Notifications/services/api/notificationService.js +0 -22
- package/dist/modules/homepage/components/Notifications/services/queries/notification.d.ts +0 -20
- package/dist/modules/homepage/components/Notifications/services/queries/notification.js +0 -40
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +0 -15
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +0 -29
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +0 -4
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +0 -13
- package/dist/modules/homepage/components/SchoolSpace/index.d.ts +0 -3
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +0 -6
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.js +0 -39
- package/dist/modules/homepage/components/index.d.ts +0 -6
- package/dist/modules/homepage/hooks/useWidget.d.ts +0 -6
- package/dist/modules/homepage/hooks/useWidget.js +0 -83
- package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +0 -6
- package/dist/modules/homepage/hooks/useWidgetPreferences.js +0 -34
- package/dist/modules/homepage/index.d.ts +0 -1
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +0 -18
- package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconHomeBeta.js +0 -13
- package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +0 -18
- package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +0 -13
- package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +0 -14
- package/dist/utilities/create-selectors/createSelectors.d.ts +0 -10
- package/dist/utilities/create-selectors/createSelectors.js +0 -11
|
@@ -33,10 +33,7 @@ const AppIcon = /* @__PURE__ */ forwardRef(({
|
|
|
33
33
|
...iconVariant,
|
|
34
34
|
...iconFits,
|
|
35
35
|
[`bg-light-${appCode}`]: !isContain,
|
|
36
|
-
[`color-app-${appCode}`]: appCode
|
|
37
|
-
"bg-app-light": !isContain,
|
|
38
|
-
"color-app": appCode,
|
|
39
|
-
[`app-${appCode}`]: appCode
|
|
36
|
+
[`color-app-${appCode}`]: appCode
|
|
40
37
|
}, className), IconComponent = iconsApps[`Icon${appCode.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("")}`] ?? SvgIconPlaceholder;
|
|
41
38
|
if (isIconURL) {
|
|
42
39
|
const classes2 = clsx("h-full", className);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Simple option for SegmentedControl
|
|
3
4
|
*/
|
|
@@ -10,6 +11,11 @@ export interface SegmentedOption {
|
|
|
10
11
|
* Option value
|
|
11
12
|
*/
|
|
12
13
|
value: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional element displayed next to the label (e.g. a Badge, an icon, a count…).
|
|
16
|
+
* No extra element is rendered when omitted.
|
|
17
|
+
*/
|
|
18
|
+
badge?: ReactNode;
|
|
13
19
|
}
|
|
14
20
|
/**
|
|
15
21
|
* SegmentedControl component props
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Segmented } from "antd";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
@@ -12,7 +12,10 @@ const SegmentedControl = /* @__PURE__ */ forwardRef(({
|
|
|
12
12
|
}, ref) => {
|
|
13
13
|
const transformedOptions = options.map((option) => ({
|
|
14
14
|
...option,
|
|
15
|
-
label: /* @__PURE__ */
|
|
15
|
+
label: /* @__PURE__ */ jsxs("span", { className: "d-flex align-items-center gap-8", "data-testid": `segmented-option-${option.value}`, children: [
|
|
16
|
+
option.label,
|
|
17
|
+
option.badge
|
|
18
|
+
] })
|
|
16
19
|
})), classNames = clsx(className, {
|
|
17
20
|
ghost: variant === "ghost"
|
|
18
21
|
}), antProps = {
|
|
@@ -7,10 +7,8 @@ export * from './Attachment';
|
|
|
7
7
|
export * from './Avatar';
|
|
8
8
|
export * from './AvatarGroup';
|
|
9
9
|
export * from './Badge';
|
|
10
|
-
export * from './BetaSwitch';
|
|
11
10
|
export * from './Breadcrumb';
|
|
12
11
|
export * from './Button';
|
|
13
|
-
export * from './ButtonBeta';
|
|
14
12
|
export * from './Card';
|
|
15
13
|
export * from './Checkbox';
|
|
16
14
|
export * from './ColorPicker';
|
|
@@ -32,11 +30,9 @@ export * from './List';
|
|
|
32
30
|
export * from './Loading';
|
|
33
31
|
export * from './LoadingScreen';
|
|
34
32
|
export * from './Logo';
|
|
35
|
-
export * from './LogoBeta';
|
|
36
33
|
export * from './MediaViewer';
|
|
37
34
|
export * from './Menu';
|
|
38
35
|
export * from './Modal';
|
|
39
|
-
export * from './PageLayout';
|
|
40
36
|
export * from './Pagination';
|
|
41
37
|
export * from './Popover';
|
|
42
38
|
export * from './PreventPropagation';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export * from './useHover';
|
|
|
16
16
|
export * from './useHttpErrorToast';
|
|
17
17
|
export * from './useImage';
|
|
18
18
|
export * from './useInfiniteScroll';
|
|
19
|
-
export * from './useIsAdmc';
|
|
20
19
|
export * from './useIsAdml';
|
|
20
|
+
export * from './useIsAdmc';
|
|
21
21
|
export * from './useIsAdmlcOrAdmc';
|
|
22
22
|
export * from './useKeyPress';
|
|
23
23
|
export * from './useLibraryUrl';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const PLACEHOLDER_ICON = "placeholder";
|
|
2
1
|
function useEdificeIcons() {
|
|
3
2
|
const iconOfWidget = {
|
|
4
3
|
"last-infos-widget": "ic-widget-actualites",
|
|
@@ -22,7 +21,7 @@ function useEdificeIcons() {
|
|
|
22
21
|
};
|
|
23
22
|
function getIconCode(app) {
|
|
24
23
|
let appCode = "";
|
|
25
|
-
switch (typeof app == "string" ? appCode = app : appCode = (app == null ? void 0 : app.icon) !== void 0 ? app == null ? void 0 : app.icon.trim().toLowerCase() :
|
|
24
|
+
switch (typeof app == "string" ? appCode = app : appCode = (app == null ? void 0 : app.icon) !== void 0 ? app == null ? void 0 : app.icon.trim().toLowerCase() : "placeholder", appCode && appCode.length > 0 ? appCode.endsWith("-large") && (appCode = appCode.replace("-large", "")) : typeof app == "object" && (appCode = (app == null ? void 0 : app.displayName) !== void 0 ? app == null ? void 0 : app.displayName.trim().toLowerCase() : ""), appCode) {
|
|
26
25
|
case "admin.title":
|
|
27
26
|
appCode = "admin";
|
|
28
27
|
break;
|
|
@@ -68,20 +67,20 @@ function useEdificeIcons() {
|
|
|
68
67
|
return icon && (icon.startsWith("/") || icon.startsWith("http://") || icon.startsWith("https://"));
|
|
69
68
|
}
|
|
70
69
|
function getIconClass(app) {
|
|
71
|
-
const appCode = getIconCode(app)
|
|
72
|
-
return `color-app-${appCode} color-app
|
|
70
|
+
const appCode = getIconCode(app);
|
|
71
|
+
return appCode ? `color-app-${appCode}` : "color-app-placeholder";
|
|
73
72
|
}
|
|
74
73
|
function getBackgroundIconClass(app) {
|
|
75
|
-
const appCode = getIconCode(app)
|
|
76
|
-
return `bg-app-${appCode} bg-app
|
|
74
|
+
const appCode = getIconCode(app);
|
|
75
|
+
return appCode ? `bg-app-${appCode}` : "bg-app-placeholder";
|
|
77
76
|
}
|
|
78
77
|
function getBackgroundLightIconClass(app) {
|
|
79
|
-
const appCode = getIconCode(app)
|
|
80
|
-
return `bg-light-${appCode} bg-
|
|
78
|
+
const appCode = getIconCode(app);
|
|
79
|
+
return appCode ? `bg-light-${appCode}` : "bg-light-placeholder";
|
|
81
80
|
}
|
|
82
81
|
function getBorderIconClass(app) {
|
|
83
|
-
const appCode = getIconCode(app)
|
|
84
|
-
return `border-app-${appCode} border-app
|
|
82
|
+
const appCode = getIconCode(app);
|
|
83
|
+
return appCode ? `border-app-${appCode}` : "border-app-placeholder";
|
|
85
84
|
}
|
|
86
85
|
function getWidgetIconClass(widget) {
|
|
87
86
|
return iconOfWidget[widget.platformConf.name];
|
package/dist/icons-nav.js
CHANGED
|
@@ -1,40 +1,30 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/icons/components/nav/
|
|
2
|
-
import { default as default3 } from "./modules/icons/components/nav/
|
|
3
|
-
import { default as default4 } from "./modules/icons/components/nav/
|
|
4
|
-
import { default as default5 } from "./modules/icons/components/nav/
|
|
5
|
-
import { default as default6 } from "./modules/icons/components/nav/
|
|
6
|
-
import { default as default7 } from "./modules/icons/components/nav/
|
|
7
|
-
import { default as default8 } from "./modules/icons/components/nav/
|
|
8
|
-
import { default as default9 } from "./modules/icons/components/nav/
|
|
9
|
-
import { default as default10 } from "./modules/icons/components/nav/
|
|
10
|
-
import { default as default11 } from "./modules/icons/components/nav/
|
|
11
|
-
import { default as default12 } from "./modules/icons/components/nav/
|
|
12
|
-
import { default as default13 } from "./modules/icons/components/nav/
|
|
13
|
-
import { default as default14 } from "./modules/icons/components/nav/
|
|
14
|
-
import { default as default15 } from "./modules/icons/components/nav/
|
|
15
|
-
import { default as default16 } from "./modules/icons/components/nav/IconOneMessaging.js";
|
|
16
|
-
import { default as default17 } from "./modules/icons/components/nav/IconOneProfile.js";
|
|
17
|
-
import { default as default18 } from "./modules/icons/components/nav/IconProfile.js";
|
|
18
|
-
import { default as default19 } from "./modules/icons/components/nav/IconSearch.js";
|
|
19
|
-
import { default as default20 } from "./modules/icons/components/nav/IconUserbook.js";
|
|
1
|
+
import { default as default2 } from "./modules/icons/components/nav/IconCommunities.js";
|
|
2
|
+
import { default as default3 } from "./modules/icons/components/nav/IconCommunity.js";
|
|
3
|
+
import { default as default4 } from "./modules/icons/components/nav/IconDisconnect.js";
|
|
4
|
+
import { default as default5 } from "./modules/icons/components/nav/IconHome.js";
|
|
5
|
+
import { default as default6 } from "./modules/icons/components/nav/IconMyApps.js";
|
|
6
|
+
import { default as default7 } from "./modules/icons/components/nav/IconNeoAssistance.js";
|
|
7
|
+
import { default as default8 } from "./modules/icons/components/nav/IconNeoMessaging.js";
|
|
8
|
+
import { default as default9 } from "./modules/icons/components/nav/IconNewRelease.js";
|
|
9
|
+
import { default as default10 } from "./modules/icons/components/nav/IconOneAssistance.js";
|
|
10
|
+
import { default as default11 } from "./modules/icons/components/nav/IconOneMessaging.js";
|
|
11
|
+
import { default as default12 } from "./modules/icons/components/nav/IconOneProfile.js";
|
|
12
|
+
import { default as default13 } from "./modules/icons/components/nav/IconProfile.js";
|
|
13
|
+
import { default as default14 } from "./modules/icons/components/nav/IconSearch.js";
|
|
14
|
+
import { default as default15 } from "./modules/icons/components/nav/IconUserbook.js";
|
|
20
15
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
default4 as
|
|
24
|
-
default5 as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
default8 as
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
default11 as
|
|
31
|
-
default12 as
|
|
32
|
-
default13 as
|
|
33
|
-
default14 as
|
|
34
|
-
default15 as
|
|
35
|
-
default16 as IconOneMessaging,
|
|
36
|
-
default17 as IconOneProfile,
|
|
37
|
-
default18 as IconProfile,
|
|
38
|
-
default19 as IconSearch,
|
|
39
|
-
default20 as IconUserbook
|
|
16
|
+
default2 as IconCommunities,
|
|
17
|
+
default3 as IconCommunity,
|
|
18
|
+
default4 as IconDisconnect,
|
|
19
|
+
default5 as IconHome,
|
|
20
|
+
default6 as IconMyApps,
|
|
21
|
+
default7 as IconNeoAssistance,
|
|
22
|
+
default8 as IconNeoMessaging,
|
|
23
|
+
default9 as IconNewRelease,
|
|
24
|
+
default10 as IconOneAssistance,
|
|
25
|
+
default11 as IconOneMessaging,
|
|
26
|
+
default12 as IconOneProfile,
|
|
27
|
+
default13 as IconProfile,
|
|
28
|
+
default14 as IconSearch,
|
|
29
|
+
default15 as IconUserbook
|
|
40
30
|
};
|