@edifice.io/react 2.5.23-fix-query-params.20260623180310 → 2.5.24-develop.20260623184311

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 (143) hide show
  1. package/dist/components/AppIcon/AppIcon.js +4 -1
  2. package/dist/components/Avatar/Avatar.d.ts +1 -1
  3. package/dist/components/Avatar/Avatar.js +2 -1
  4. package/dist/components/BetaSwitch/BetaSwitch.d.ts +13 -0
  5. package/dist/components/BetaSwitch/BetaSwitch.js +27 -0
  6. package/dist/components/BetaSwitch/index.d.ts +1 -0
  7. package/dist/components/ButtonBeta/ButtonBeta.d.ts +47 -0
  8. package/dist/components/ButtonBeta/ButtonBeta.js +34 -0
  9. package/dist/components/ButtonBeta/index.d.ts +2 -0
  10. package/dist/components/Flex/Flex.js +5 -1
  11. package/dist/components/Logo/index.d.ts +1 -1
  12. package/dist/components/LogoBeta/LogoBeta.d.ts +7 -0
  13. package/dist/components/LogoBeta/LogoBeta.js +14 -0
  14. package/dist/components/LogoBeta/index.d.ts +2 -0
  15. package/dist/components/PageLayout/PageLayout.d.ts +45 -0
  16. package/dist/components/PageLayout/PageLayout.js +94 -0
  17. package/dist/components/PageLayout/PageLayoutContext.d.ts +14 -0
  18. package/dist/components/PageLayout/PageLayoutContext.js +8 -0
  19. package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +9 -0
  20. package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +10 -0
  21. package/dist/components/PageLayout/components/PageLayoutContent.d.ts +9 -0
  22. package/dist/components/PageLayout/components/PageLayoutContent.js +18 -0
  23. package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +10 -0
  24. package/dist/components/PageLayout/components/PageLayoutHeader.js +18 -0
  25. package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +15 -0
  26. package/dist/components/PageLayout/components/PageLayoutOverlay.js +51 -0
  27. package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +9 -0
  28. package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +18 -0
  29. package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +9 -0
  30. package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +18 -0
  31. package/dist/components/PageLayout/hook/useOverlay.d.ts +5 -0
  32. package/dist/components/PageLayout/hook/useOverlay.js +15 -0
  33. package/dist/components/PageLayout/index.d.ts +4 -0
  34. package/dist/components/PageLayout/store/overlayStore.d.ts +15 -0
  35. package/dist/components/PageLayout/store/overlayStore.js +12 -0
  36. package/dist/components/index.d.ts +4 -0
  37. package/dist/homepage.js +34 -0
  38. package/dist/hooks/index.d.ts +1 -1
  39. package/dist/hooks/useEdificeIcons/useEdificeIcons.js +10 -9
  40. package/dist/icons-nav.js +38 -28
  41. package/dist/index.js +215 -202
  42. package/dist/modules/homepage/components/Favorites/Favorites.d.ts +6 -0
  43. package/dist/modules/homepage/components/Favorites/Favorites.js +28 -0
  44. package/dist/modules/homepage/components/Favorites/FavoritesContainer.d.ts +4 -0
  45. package/dist/modules/homepage/components/Favorites/FavoritesContainer.js +10 -0
  46. package/dist/modules/homepage/components/Favorites/index.d.ts +2 -0
  47. package/dist/modules/homepage/components/Header/Header.d.ts +9 -0
  48. package/dist/modules/homepage/components/Header/Header.js +80 -0
  49. package/dist/modules/homepage/components/Header/index.d.ts +2 -0
  50. package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +37 -0
  51. package/dist/modules/homepage/components/HomeCard/HomeCard.js +17 -0
  52. package/dist/modules/homepage/components/HomeCard/HomeCardContent.d.ts +7 -0
  53. package/dist/modules/homepage/components/HomeCard/HomeCardContent.js +10 -0
  54. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +18 -0
  55. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +22 -0
  56. package/dist/modules/homepage/components/HomeCard/index.d.ts +4 -0
  57. package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +49 -0
  58. package/dist/modules/homepage/components/LastInfos/LastInfos.js +58 -0
  59. package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +4 -0
  60. package/dist/modules/homepage/components/LastInfos/LastInfosContainer.js +37 -0
  61. package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +13 -0
  62. package/dist/modules/homepage/components/LastInfos/LastInfosList.js +31 -0
  63. package/dist/modules/homepage/components/LastInfos/index.d.ts +4 -0
  64. package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +18 -0
  65. package/dist/modules/homepage/components/LastInfos/useLastInfos.js +25 -0
  66. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +12 -0
  67. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +65 -0
  68. package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +12 -0
  69. package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +10 -0
  70. package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +5 -0
  71. package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +14 -0
  72. package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +16 -0
  73. package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +19 -0
  74. package/dist/modules/homepage/components/MessageFlashList/index.d.ts +4 -0
  75. package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +4 -0
  76. package/dist/modules/homepage/components/MessageFlashList/services/api/index.js +5 -0
  77. package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +20 -0
  78. package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +21 -0
  79. package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +13 -0
  80. package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +31 -0
  81. package/dist/modules/homepage/components/Notifications/Notification.d.ts +20 -0
  82. package/dist/modules/homepage/components/Notifications/Notification.js +16 -0
  83. package/dist/modules/homepage/components/Notifications/NotificationList.d.ts +18 -0
  84. package/dist/modules/homepage/components/Notifications/NotificationList.js +44 -0
  85. package/dist/modules/homepage/components/Notifications/NotificationListContainer.d.ts +9 -0
  86. package/dist/modules/homepage/components/Notifications/NotificationListContainer.js +20 -0
  87. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.d.ts +5 -0
  88. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +17 -0
  89. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.d.ts +3 -0
  90. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +19 -0
  91. package/dist/modules/homepage/components/Notifications/components/NotificationItem.d.ts +24 -0
  92. package/dist/modules/homepage/components/Notifications/components/NotificationItem.js +28 -0
  93. package/dist/modules/homepage/components/Notifications/components/NotificationResource.d.ts +15 -0
  94. package/dist/modules/homepage/components/Notifications/components/NotificationResource.js +19 -0
  95. package/dist/modules/homepage/components/Notifications/components/SystemNotification.d.ts +15 -0
  96. package/dist/modules/homepage/components/Notifications/components/SystemNotification.js +20 -0
  97. package/dist/modules/homepage/components/Notifications/components/UserNotification.d.ts +15 -0
  98. package/dist/modules/homepage/components/Notifications/components/UserNotification.js +25 -0
  99. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.d.ts +27 -0
  100. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +53 -0
  101. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.d.ts +20 -0
  102. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +26 -0
  103. package/dist/modules/homepage/components/Notifications/index.d.ts +6 -0
  104. package/dist/modules/homepage/components/Notifications/services/api/index.d.ts +4 -0
  105. package/dist/modules/homepage/components/Notifications/services/api/index.js +5 -0
  106. package/dist/modules/homepage/components/Notifications/services/api/notificationService.d.ts +15 -0
  107. package/dist/modules/homepage/components/Notifications/services/api/notificationService.js +22 -0
  108. package/dist/modules/homepage/components/Notifications/services/queries/notification.d.ts +20 -0
  109. package/dist/modules/homepage/components/Notifications/services/queries/notification.js +40 -0
  110. package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +15 -0
  111. package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +29 -0
  112. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +4 -0
  113. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +13 -0
  114. package/dist/modules/homepage/components/SchoolSpace/index.d.ts +3 -0
  115. package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +6 -0
  116. package/dist/modules/homepage/components/SchoolSpace/useUserSchools.js +39 -0
  117. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +13 -0
  118. package/dist/modules/homepage/components/UserSpace/UserSpace.js +28 -0
  119. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +7 -0
  120. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +19 -0
  121. package/dist/modules/homepage/components/UserSpace/index.d.ts +3 -0
  122. package/dist/modules/homepage/components/index.d.ts +8 -0
  123. package/dist/modules/homepage/hooks/useWidget.d.ts +6 -0
  124. package/dist/modules/homepage/hooks/useWidget.js +83 -0
  125. package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +6 -0
  126. package/dist/modules/homepage/hooks/useWidgetPreferences.js +34 -0
  127. package/dist/modules/homepage/index.d.ts +1 -0
  128. package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +7 -0
  129. package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +18 -0
  130. package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +7 -0
  131. package/dist/modules/icons/components/nav/IconHomeBeta.js +13 -0
  132. package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +7 -0
  133. package/dist/modules/icons/components/nav/IconMessagesBeta.js +18 -0
  134. package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +7 -0
  135. package/dist/modules/icons/components/nav/IconMyAppsBeta.js +13 -0
  136. package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +7 -0
  137. package/dist/modules/icons/components/nav/IconNotificationBeta.js +14 -0
  138. package/dist/modules/icons/components/nav/index.d.ts +5 -0
  139. package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
  140. package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +0 -7
  141. package/dist/utilities/create-selectors/createSelectors.d.ts +10 -0
  142. package/dist/utilities/create-selectors/createSelectors.js +11 -0
  143. package/package.json +13 -8
@@ -7,8 +7,10 @@ export * from './Attachment';
7
7
  export * from './Avatar';
8
8
  export * from './AvatarGroup';
9
9
  export * from './Badge';
10
+ export * from './BetaSwitch';
10
11
  export * from './Breadcrumb';
11
12
  export * from './Button';
13
+ export * from './ButtonBeta';
12
14
  export * from './Card';
13
15
  export * from './Checkbox';
14
16
  export * from './ColorPicker';
@@ -30,9 +32,11 @@ export * from './List';
30
32
  export * from './Loading';
31
33
  export * from './LoadingScreen';
32
34
  export * from './Logo';
35
+ export * from './LogoBeta';
33
36
  export * from './MediaViewer';
34
37
  export * from './Menu';
35
38
  export * from './Modal';
39
+ export * from './PageLayout';
36
40
  export * from './Pagination';
37
41
  export * from './Popover';
38
42
  export * from './PreventPropagation';
@@ -0,0 +1,34 @@
1
+ import { default as default2 } from "./modules/homepage/components/Header/Header.js";
2
+ import { default as default3 } from "./modules/homepage/components/HomeCard/HomeCard.js";
3
+ import { default as default4 } from "./modules/homepage/components/LastInfos/LastInfos.js";
4
+ import { default as default5 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
5
+ import { default as default6 } from "./modules/homepage/components/Notifications/Notification.js";
6
+ import { default as default7 } from "./modules/homepage/components/Notifications/NotificationList.js";
7
+ import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
8
+ import { default as default8 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
9
+ import { default as default9 } from "./modules/homepage/components/UserSpace/UserSpace.js";
10
+ import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
11
+ import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
12
+ import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
13
+ import { LastInfosList } from "./modules/homepage/components/LastInfos/LastInfosList.js";
14
+ import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
15
+ import { SchoolSpaceContainer } from "./modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js";
16
+ import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
17
+ export {
18
+ Favorites,
19
+ FavoritesContainer,
20
+ default2 as Header,
21
+ default3 as HomeCard,
22
+ default4 as LastInfos,
23
+ LastInfosContainer,
24
+ LastInfosList,
25
+ default5 as MessageFlashList,
26
+ MessageFlashListContainer,
27
+ default6 as Notification,
28
+ default7 as NotificationList,
29
+ NotificationListContainer,
30
+ default8 as SchoolSpace,
31
+ SchoolSpaceContainer,
32
+ default9 as UserSpace,
33
+ UserSpaceContainer
34
+ };
@@ -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 './useIsAdml';
20
19
  export * from './useIsAdmc';
20
+ export * from './useIsAdml';
21
21
  export * from './useIsAdmlcOrAdmc';
22
22
  export * from './useKeyPress';
23
23
  export * from './useLibraryUrl';
@@ -1,3 +1,4 @@
1
+ const PLACEHOLDER_ICON = "placeholder";
1
2
  function useEdificeIcons() {
2
3
  const iconOfWidget = {
3
4
  "last-infos-widget": "ic-widget-actualites",
@@ -21,7 +22,7 @@ function useEdificeIcons() {
21
22
  };
22
23
  function getIconCode(app) {
23
24
  let 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) {
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) {
25
26
  case "admin.title":
26
27
  appCode = "admin";
27
28
  break;
@@ -67,20 +68,20 @@ function useEdificeIcons() {
67
68
  return icon && (icon.startsWith("/") || icon.startsWith("http://") || icon.startsWith("https://"));
68
69
  }
69
70
  function getIconClass(app) {
70
- const appCode = getIconCode(app);
71
- return appCode ? `color-app-${appCode}` : "color-app-placeholder";
71
+ const appCode = getIconCode(app) || PLACEHOLDER_ICON;
72
+ return `color-app-${appCode} color-app app-${appCode}`;
72
73
  }
73
74
  function getBackgroundIconClass(app) {
74
- const appCode = getIconCode(app);
75
- return appCode ? `bg-app-${appCode}` : "bg-app-placeholder";
75
+ const appCode = getIconCode(app) || PLACEHOLDER_ICON;
76
+ return `bg-app-${appCode} bg-app app-${appCode}`;
76
77
  }
77
78
  function getBackgroundLightIconClass(app) {
78
- const appCode = getIconCode(app);
79
- return appCode ? `bg-light-${appCode}` : "bg-light-placeholder";
79
+ const appCode = getIconCode(app) || PLACEHOLDER_ICON;
80
+ return `bg-light-${appCode} bg-app-light app-${appCode}`;
80
81
  }
81
82
  function getBorderIconClass(app) {
82
- const appCode = getIconCode(app);
83
- return appCode ? `border-app-${appCode}` : "border-app-placeholder";
83
+ const appCode = getIconCode(app) || PLACEHOLDER_ICON;
84
+ return `border-app-${appCode} border-app app-${appCode}`;
84
85
  }
85
86
  function getWidgetIconClass(widget) {
86
87
  return iconOfWidget[widget.platformConf.name];
package/dist/icons-nav.js CHANGED
@@ -1,30 +1,40 @@
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";
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";
15
20
  export {
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
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
30
40
  };