@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.
Files changed (120) hide show
  1. package/dist/components/AppIcon/AppIcon.js +1 -4
  2. package/dist/components/Logo/index.d.ts +1 -1
  3. package/dist/components/SegmentedControl/SegmentedControl.d.ts +6 -0
  4. package/dist/components/SegmentedControl/SegmentedControl.js +5 -2
  5. package/dist/components/index.d.ts +0 -4
  6. package/dist/hooks/index.d.ts +1 -1
  7. package/dist/hooks/useEdificeIcons/useEdificeIcons.js +9 -10
  8. package/dist/icons-nav.js +28 -38
  9. package/dist/index.js +202 -215
  10. package/dist/modules/icons/components/nav/index.d.ts +0 -5
  11. package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
  12. package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +7 -0
  13. package/package.json +7 -12
  14. package/dist/components/BetaSwitch/BetaSwitch.d.ts +0 -13
  15. package/dist/components/BetaSwitch/BetaSwitch.js +0 -27
  16. package/dist/components/BetaSwitch/index.d.ts +0 -1
  17. package/dist/components/ButtonBeta/ButtonBeta.d.ts +0 -47
  18. package/dist/components/ButtonBeta/ButtonBeta.js +0 -34
  19. package/dist/components/ButtonBeta/index.d.ts +0 -2
  20. package/dist/components/LogoBeta/LogoBeta.d.ts +0 -7
  21. package/dist/components/LogoBeta/LogoBeta.js +0 -14
  22. package/dist/components/LogoBeta/index.d.ts +0 -2
  23. package/dist/components/PageLayout/PageLayout.d.ts +0 -45
  24. package/dist/components/PageLayout/PageLayout.js +0 -94
  25. package/dist/components/PageLayout/PageLayoutContext.d.ts +0 -14
  26. package/dist/components/PageLayout/PageLayoutContext.js +0 -8
  27. package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +0 -9
  28. package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +0 -10
  29. package/dist/components/PageLayout/components/PageLayoutContent.d.ts +0 -9
  30. package/dist/components/PageLayout/components/PageLayoutContent.js +0 -18
  31. package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +0 -10
  32. package/dist/components/PageLayout/components/PageLayoutHeader.js +0 -18
  33. package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +0 -15
  34. package/dist/components/PageLayout/components/PageLayoutOverlay.js +0 -51
  35. package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +0 -9
  36. package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +0 -18
  37. package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +0 -9
  38. package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +0 -18
  39. package/dist/components/PageLayout/hook/useOverlay.d.ts +0 -6
  40. package/dist/components/PageLayout/hook/useOverlay.js +0 -20
  41. package/dist/components/PageLayout/index.d.ts +0 -4
  42. package/dist/components/PageLayout/store/overlayStore.d.ts +0 -15
  43. package/dist/components/PageLayout/store/overlayStore.js +0 -12
  44. package/dist/homepage.js +0 -24
  45. package/dist/modules/homepage/components/Header/Header.d.ts +0 -9
  46. package/dist/modules/homepage/components/Header/Header.js +0 -80
  47. package/dist/modules/homepage/components/Header/index.d.ts +0 -2
  48. package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +0 -37
  49. package/dist/modules/homepage/components/HomeCard/HomeCard.js +0 -17
  50. package/dist/modules/homepage/components/HomeCard/HomeCardContent.d.ts +0 -7
  51. package/dist/modules/homepage/components/HomeCard/HomeCardContent.js +0 -10
  52. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +0 -18
  53. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +0 -22
  54. package/dist/modules/homepage/components/HomeCard/index.d.ts +0 -4
  55. package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +0 -49
  56. package/dist/modules/homepage/components/LastInfos/LastInfos.js +0 -58
  57. package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +0 -4
  58. package/dist/modules/homepage/components/LastInfos/LastInfosContainer.js +0 -37
  59. package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +0 -13
  60. package/dist/modules/homepage/components/LastInfos/LastInfosList.js +0 -31
  61. package/dist/modules/homepage/components/LastInfos/index.d.ts +0 -4
  62. package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +0 -18
  63. package/dist/modules/homepage/components/LastInfos/useLastInfos.js +0 -25
  64. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +0 -12
  65. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -62
  66. package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +0 -12
  67. package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +0 -10
  68. package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +0 -5
  69. package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +0 -14
  70. package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +0 -16
  71. package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +0 -19
  72. package/dist/modules/homepage/components/MessageFlashList/index.d.ts +0 -4
  73. package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +0 -4
  74. package/dist/modules/homepage/components/MessageFlashList/services/api/index.js +0 -5
  75. package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +0 -20
  76. package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +0 -21
  77. package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +0 -13
  78. package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +0 -31
  79. package/dist/modules/homepage/components/Notifications/Notification.d.ts +0 -9
  80. package/dist/modules/homepage/components/Notifications/Notification.js +0 -7
  81. package/dist/modules/homepage/components/Notifications/NotificationList.d.ts +0 -18
  82. package/dist/modules/homepage/components/Notifications/NotificationList.js +0 -44
  83. package/dist/modules/homepage/components/Notifications/NotificationListContainer.d.ts +0 -9
  84. package/dist/modules/homepage/components/Notifications/NotificationListContainer.js +0 -20
  85. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.d.ts +0 -3
  86. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +0 -6
  87. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.d.ts +0 -20
  88. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +0 -26
  89. package/dist/modules/homepage/components/Notifications/index.d.ts +0 -4
  90. package/dist/modules/homepage/components/Notifications/services/api/index.d.ts +0 -4
  91. package/dist/modules/homepage/components/Notifications/services/api/index.js +0 -5
  92. package/dist/modules/homepage/components/Notifications/services/api/notificationService.d.ts +0 -15
  93. package/dist/modules/homepage/components/Notifications/services/api/notificationService.js +0 -22
  94. package/dist/modules/homepage/components/Notifications/services/queries/notification.d.ts +0 -20
  95. package/dist/modules/homepage/components/Notifications/services/queries/notification.js +0 -40
  96. package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +0 -15
  97. package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +0 -29
  98. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +0 -4
  99. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +0 -13
  100. package/dist/modules/homepage/components/SchoolSpace/index.d.ts +0 -3
  101. package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +0 -6
  102. package/dist/modules/homepage/components/SchoolSpace/useUserSchools.js +0 -39
  103. package/dist/modules/homepage/components/index.d.ts +0 -6
  104. package/dist/modules/homepage/hooks/useWidget.d.ts +0 -6
  105. package/dist/modules/homepage/hooks/useWidget.js +0 -83
  106. package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +0 -6
  107. package/dist/modules/homepage/hooks/useWidgetPreferences.js +0 -34
  108. package/dist/modules/homepage/index.d.ts +0 -1
  109. package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +0 -7
  110. package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +0 -18
  111. package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +0 -7
  112. package/dist/modules/icons/components/nav/IconHomeBeta.js +0 -13
  113. package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +0 -7
  114. package/dist/modules/icons/components/nav/IconMessagesBeta.js +0 -18
  115. package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +0 -7
  116. package/dist/modules/icons/components/nav/IconMyAppsBeta.js +0 -13
  117. package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +0 -7
  118. package/dist/modules/icons/components/nav/IconNotificationBeta.js +0 -14
  119. package/dist/utilities/create-selectors/createSelectors.d.ts +0 -10
  120. 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,2 +1,2 @@
1
- export * from './Logo';
2
1
  export { default as Logo } from './Logo';
2
+ export * from './Logo';
@@ -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__ */ jsx("span", { "data-testid": `segmented-option-${option.value}`, children: option.label })
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';
@@ -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() : PLACEHOLDER_ICON, 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) {
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) || PLACEHOLDER_ICON;
72
- return `color-app-${appCode} color-app app-${appCode}`;
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) || PLACEHOLDER_ICON;
76
- return `bg-app-${appCode} bg-app app-${appCode}`;
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) || PLACEHOLDER_ICON;
80
- return `bg-light-${appCode} bg-app-light app-${appCode}`;
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) || PLACEHOLDER_ICON;
84
- return `border-app-${appCode} border-app app-${appCode}`;
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/IconCommunitiesBeta.js";
2
- import { default as default3 } from "./modules/icons/components/nav/IconCommunities.js";
3
- import { default as default4 } from "./modules/icons/components/nav/IconCommunity.js";
4
- import { default as default5 } from "./modules/icons/components/nav/IconDisconnect.js";
5
- import { default as default6 } from "./modules/icons/components/nav/IconHomeBeta.js";
6
- import { default as default7 } from "./modules/icons/components/nav/IconHome.js";
7
- import { default as default8 } from "./modules/icons/components/nav/IconMessagesBeta.js";
8
- import { default as default9 } from "./modules/icons/components/nav/IconMyAppsBeta.js";
9
- import { default as default10 } from "./modules/icons/components/nav/IconMyApps.js";
10
- import { default as default11 } from "./modules/icons/components/nav/IconNeoAssistance.js";
11
- import { default as default12 } from "./modules/icons/components/nav/IconNeoMessaging.js";
12
- import { default as default13 } from "./modules/icons/components/nav/IconNewRelease.js";
13
- import { default as default14 } from "./modules/icons/components/nav/IconNotificationBeta.js";
14
- import { default as default15 } from "./modules/icons/components/nav/IconOneAssistance.js";
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
- default3 as IconCommunities,
22
- default2 as IconCommunitiesBeta,
23
- default4 as IconCommunity,
24
- default5 as IconDisconnect,
25
- default7 as IconHome,
26
- default6 as IconHomeBeta,
27
- default8 as IconMessagesBeta,
28
- default10 as IconMyApps,
29
- default9 as IconMyAppsBeta,
30
- default11 as IconNeoAssistance,
31
- default12 as IconNeoMessaging,
32
- default13 as IconNewRelease,
33
- default14 as IconNotificationBeta,
34
- default15 as IconOneAssistance,
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
  };