@edifice.io/react 2.6.12-develop-b2school.20261103144351 → 2.6.12-develop-integration-crna.20261104164618

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 (221) hide show
  1. package/dist/components/Checkbox/Checkbox.js +1 -1
  2. package/dist/components/Dropdown/Dropdown.js +19 -14
  3. package/dist/components/Dropdown/DropdownContext.d.ts +3 -0
  4. package/dist/components/Dropdown/DropdownItem.js +1 -17
  5. package/dist/components/Dropdown/DropdownMenuGroup.js +23 -6
  6. package/dist/components/Dropdown/DropdownSearchInput.js +16 -8
  7. package/dist/components/Dropdown/DropdownTrigger.js +24 -8
  8. package/dist/components/Dropdown/useDropdownItemFilter.js +2 -2
  9. package/dist/components/Dropdown/useMatchRegistry.d.ts +5 -0
  10. package/dist/components/Dropdown/useMatchRegistry.js +20 -0
  11. package/dist/components/Layout/Layout.js +4 -12
  12. package/dist/components/SearchBar/SearchBar.js +26 -17
  13. package/dist/components/Select/Select.d.ts +14 -1
  14. package/dist/components/Select/Select.js +11 -5
  15. package/dist/components/Tree/components/Tree.d.ts +5 -2
  16. package/dist/components/Tree/components/Tree.js +7 -10
  17. package/dist/components/Tree/hooks/useTree.d.ts +0 -1
  18. package/dist/components/Tree/hooks/useTree.js +2 -6
  19. package/dist/components/Tree/types/index.d.ts +0 -7
  20. package/dist/components/index.d.ts +0 -1
  21. package/dist/homepage.js +24 -97
  22. package/dist/hooks/useDropdown/useDropdown.d.ts +1 -0
  23. package/dist/hooks/useDropdown/useDropdown.js +19 -8
  24. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +1 -1
  25. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +2 -2
  26. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +6 -2
  27. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +8 -11
  28. package/dist/icons.js +404 -406
  29. package/dist/index.js +158 -158
  30. package/dist/modules/HelpZone/HelpZone.js +8 -6
  31. package/dist/modules/HelpZone/HelpZoneContainer.js +5 -2
  32. package/dist/modules/editor/components/Editor/Editor.d.ts +0 -5
  33. package/dist/modules/editor/components/Editor/Editor.js +0 -3
  34. package/dist/modules/homepage/components/Favorites/Favorites.js +1 -4
  35. package/dist/modules/homepage/components/Header/Header.js +21 -9
  36. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +1 -5
  37. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  38. package/dist/modules/homepage/components/Notifications/NotificationList.js +8 -7
  39. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +12 -7
  40. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +4 -7
  41. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +13 -11
  42. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +12 -6
  43. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +10 -12
  44. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +10 -9
  45. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
  46. package/dist/modules/homepage/{hooks → components/SchoolSpace}/useUserSchools.d.ts +2 -2
  47. package/dist/modules/homepage/{hooks → components/SchoolSpace}/useUserSchools.js +4 -4
  48. package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
  49. package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
  50. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +1 -3
  51. package/dist/modules/homepage/components/UserSpace/UserSpace.js +7 -13
  52. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +2 -4
  53. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +2 -3
  54. package/dist/modules/homepage/components/index.d.ts +1 -12
  55. package/dist/modules/icons/components/index.d.ts +0 -1
  56. package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +7 -5
  57. package/dist/modules/icons/components/nav/IconHomeBeta.js +3 -6
  58. package/dist/modules/icons/components/nav/IconMessagesBeta.js +7 -7
  59. package/dist/modules/icons/components/nav/IconMyAppsBeta.js +3 -2
  60. package/dist/modules/icons/components/nav/IconNotificationBeta.js +4 -2
  61. package/dist/modules/multimedia/Nextcloud/Nextcloud.js +7 -19
  62. package/dist/modules/multimedia/Nextcloud/NextcloudLogin.d.ts +12 -0
  63. package/dist/modules/multimedia/Nextcloud/NextcloudLogin.js +33 -0
  64. package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.d.ts +12 -0
  65. package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.js +51 -0
  66. package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.d.ts +16 -0
  67. package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.js +51 -0
  68. package/dist/modules/multimedia/NextcloudFolders/index.d.ts +1 -0
  69. package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
  70. package/dist/modules/multimedia/index.d.ts +1 -0
  71. package/dist/multimedia.js +14 -12
  72. package/package.json +6 -7
  73. package/dist/components/Masonry/Masonry.d.ts +0 -40
  74. package/dist/components/Masonry/Masonry.js +0 -50
  75. package/dist/components/Masonry/index.d.ts +0 -2
  76. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +0 -10
  77. package/dist/modules/homepage/components/Agenda/Agenda.js +0 -54
  78. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +0 -1
  79. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +0 -14
  80. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +0 -10
  81. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +0 -30
  82. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +0 -14
  83. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +0 -27
  84. package/dist/modules/homepage/components/Agenda/index.d.ts +0 -3
  85. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +0 -24
  86. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +0 -45
  87. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +0 -4
  88. package/dist/modules/homepage/components/Agenda/services/api/index.js +0 -5
  89. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +0 -19
  90. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +0 -26
  91. package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +0 -9
  92. package/dist/modules/homepage/components/BriefMe/BriefMe.js +0 -59
  93. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +0 -4
  94. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +0 -17
  95. package/dist/modules/homepage/components/BriefMe/index.d.ts +0 -4
  96. package/dist/modules/homepage/components/BriefMe/types.d.ts +0 -17
  97. package/dist/modules/homepage/components/BriefMe/types.js +0 -8
  98. package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +0 -31
  99. package/dist/modules/homepage/components/BriefMe/useBriefMe.js +0 -51
  100. package/dist/modules/homepage/components/Cantine/Cantine.d.ts +0 -7
  101. package/dist/modules/homepage/components/Cantine/Cantine.js +0 -44
  102. package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +0 -4
  103. package/dist/modules/homepage/components/Cantine/CantineContainer.js +0 -18
  104. package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +0 -24
  105. package/dist/modules/homepage/components/Cantine/CantineModal.js +0 -88
  106. package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +0 -7
  107. package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +0 -12
  108. package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +0 -5
  109. package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +0 -22
  110. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +0 -6
  111. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +0 -28
  112. package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +0 -12
  113. package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +0 -60
  114. package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +0 -11
  115. package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +0 -20
  116. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +0 -24
  117. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +0 -65
  118. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +0 -23
  119. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +0 -43
  120. package/dist/modules/homepage/components/Cantine/index.d.ts +0 -7
  121. package/dist/modules/homepage/components/Cantine/types.d.ts +0 -42
  122. package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +0 -9
  123. package/dist/modules/homepage/components/Edumalin/Edumalin.js +0 -65
  124. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +0 -4
  125. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +0 -21
  126. package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +0 -8
  127. package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +0 -62
  128. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +0 -5
  129. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +0 -38
  130. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +0 -5
  131. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +0 -12
  132. package/dist/modules/homepage/components/Edumalin/index.d.ts +0 -7
  133. package/dist/modules/homepage/components/Edumalin/types.d.ts +0 -24
  134. package/dist/modules/homepage/components/Edumalin/types.js +0 -4
  135. package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +0 -16
  136. package/dist/modules/homepage/components/Edumalin/useEdumalin.js +0 -35
  137. package/dist/modules/homepage/components/Edumalin/utils.d.ts +0 -28
  138. package/dist/modules/homepage/components/Edumalin/utils.js +0 -56
  139. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +0 -16
  140. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +0 -65
  141. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +0 -4
  142. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +0 -12
  143. package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +0 -1
  144. package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +0 -6
  145. package/dist/modules/homepage/components/GenerationHdf/index.d.ts +0 -3
  146. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +0 -10
  147. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +0 -69
  148. package/dist/modules/homepage/components/Qwant/Qwant.d.ts +0 -4
  149. package/dist/modules/homepage/components/Qwant/Qwant.js +0 -41
  150. package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +0 -1
  151. package/dist/modules/homepage/components/Qwant/QwantContainer.js +0 -10
  152. package/dist/modules/homepage/components/Qwant/index.d.ts +0 -3
  153. package/dist/modules/homepage/components/Rss/Rss.d.ts +0 -11
  154. package/dist/modules/homepage/components/Rss/Rss.js +0 -64
  155. package/dist/modules/homepage/components/Rss/RssContainer.d.ts +0 -1
  156. package/dist/modules/homepage/components/Rss/RssContainer.js +0 -45
  157. package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +0 -13
  158. package/dist/modules/homepage/components/Rss/RssFeedForm.js +0 -69
  159. package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +0 -11
  160. package/dist/modules/homepage/components/Rss/RssFeedsModal.js +0 -58
  161. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +0 -25
  162. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +0 -43
  163. package/dist/modules/homepage/components/Rss/index.d.ts +0 -6
  164. package/dist/modules/homepage/components/Rss/services/api/index.d.ts +0 -5
  165. package/dist/modules/homepage/components/Rss/services/api/index.js +0 -5
  166. package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +0 -38
  167. package/dist/modules/homepage/components/Rss/services/api/rssService.js +0 -51
  168. package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +0 -28
  169. package/dist/modules/homepage/components/Rss/services/queries/rss.js +0 -71
  170. package/dist/modules/homepage/components/Rss/types.d.ts +0 -25
  171. package/dist/modules/homepage/components/Rss/utils.d.ts +0 -7
  172. package/dist/modules/homepage/components/Rss/utils.js +0 -19
  173. package/dist/modules/homepage/components/ScreenTime/ScreenTime.d.ts +0 -11
  174. package/dist/modules/homepage/components/ScreenTime/ScreenTime.js +0 -49
  175. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.d.ts +0 -10
  176. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.js +0 -115
  177. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.d.ts +0 -1
  178. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.js +0 -25
  179. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.d.ts +0 -5
  180. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.js +0 -22
  181. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.d.ts +0 -22
  182. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.js +0 -81
  183. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.d.ts +0 -14
  184. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js +0 -22
  185. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.d.ts +0 -6
  186. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.js +0 -25
  187. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.d.ts +0 -31
  188. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js +0 -34
  189. package/dist/modules/homepage/components/ScreenTime/index.d.ts +0 -6
  190. package/dist/modules/homepage/components/ScreenTime/services/api/index.d.ts +0 -4
  191. package/dist/modules/homepage/components/ScreenTime/services/api/index.js +0 -5
  192. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.d.ts +0 -28
  193. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.js +0 -39
  194. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.d.ts +0 -23
  195. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.js +0 -41
  196. package/dist/modules/homepage/components/ScreenTime/types.d.ts +0 -30
  197. package/dist/modules/homepage/components/ScreenTime/utils.d.ts +0 -50
  198. package/dist/modules/homepage/components/ScreenTime/utils.js +0 -115
  199. package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +0 -43
  200. package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +0 -23
  201. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +0 -34
  202. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +0 -26
  203. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +0 -14
  204. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +0 -64
  205. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +0 -20
  206. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +0 -43
  207. package/dist/modules/homepage/components/TabsKids/index.d.ts +0 -3
  208. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +0 -15
  209. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +0 -21
  210. package/dist/modules/homepage/components/Universalis/Universalis.d.ts +0 -8
  211. package/dist/modules/homepage/components/Universalis/Universalis.js +0 -62
  212. package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +0 -1
  213. package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +0 -16
  214. package/dist/modules/homepage/components/Universalis/index.d.ts +0 -3
  215. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +0 -16
  216. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +0 -15
  217. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +0 -21
  218. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +0 -47
  219. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +0 -2
  220. package/dist/modules/icons/components/IconAddWidget.d.ts +0 -7
  221. package/dist/modules/icons/components/IconAddWidget.js +0 -12
@@ -14,7 +14,7 @@ import Divider from "../../../../components/Divider/Divider.js";
14
14
  const NotificationList = ({
15
15
  notifications,
16
16
  notificationTypes,
17
- selectedTypes = [],
17
+ selectedTypes,
18
18
  onFilterChange,
19
19
  onCloseNotifications,
20
20
  onLoadNextPage,
@@ -25,23 +25,24 @@ const NotificationList = ({
25
25
  t
26
26
  } = useTranslation(), loadNextRef = useInfiniteScroll({
27
27
  callback: () => onLoadNextPage == null ? void 0 : onLoadNextPage()
28
- }), handleFilterChange = (types) => onFilterChange == null ? void 0 : onFilterChange(types), handleCloseClick = () => {
28
+ }), handleCloseClick = () => {
29
29
  onCloseNotifications && onCloseNotifications();
30
30
  };
31
- return /* @__PURE__ */ jsx("section", { role: "region", className: "notification-list", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", className: "notification-list-body", children: [
31
+ return /* @__PURE__ */ jsx("section", { role: "region", className: "notification-list", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
32
32
  /* @__PURE__ */ jsxs(Flex, { justify: "between", align: "center", wrap: "nowrap", className: "py-16 ps-24 pe-8", children: [
33
33
  /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "8", className: "notification-list-title", children: [
34
34
  /* @__PURE__ */ jsx("h4", { className: "text-truncate", children: t("homepage.notifications-list.title") }),
35
- notificationTypes && notificationTypes.length > 0 && /* @__PURE__ */ jsx(NotificationFilterMenu, { notificationTypes, selectedTypes, onFilterChange: handleFilterChange })
35
+ notificationTypes && notificationTypes.length > 0 && /* @__PURE__ */ jsx(NotificationFilterMenu, { notificationTypes, selectedTypes: selectedTypes ?? notificationTypes, onFilterChange: (types) => onFilterChange == null ? void 0 : onFilterChange(types) })
36
36
  ] }),
37
37
  onCloseNotifications && /* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", variant: "ghost", rightIcon: /* @__PURE__ */ jsx(SvgIconClose, {}), onClick: handleCloseClick, "aria-label": t("homepage.notifications-list.close"), title: t("homepage.notifications-list.close"), "data-testid": "notification-list-close-button" })
38
38
  ] }),
39
- isLoading && !(notifications != null && notifications.length) ? /* @__PURE__ */ jsx(NotificationListSkeleton, {}) : !notifications || notifications.length === 0 ? /* @__PURE__ */ jsx("div", { className: "mx-24", children: /* @__PURE__ */ jsx(EmptyScreen, { size: 135, imageSrc: illuEmptyNotification, imageAlt: t("homepage.notifications-list.empty.description"), text: t("homepage.notifications-list.empty.description") }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
40
- /* @__PURE__ */ jsx("ul", { children: notifications.map((notification, index) => /* @__PURE__ */ jsxs("li", { children: [
39
+ (notifications == null ? void 0 : notifications.length) === 0 ? /* @__PURE__ */ jsx("div", { className: "mx-24", children: /* @__PURE__ */ jsx(EmptyScreen, { size: 135, imageSrc: illuEmptyNotification, imageAlt: t("homepage.notifications-list.empty.description"), text: t("homepage.notifications-list.empty.description") }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
40
+ /* @__PURE__ */ jsx("ul", { children: notifications == null ? void 0 : notifications.map((notification, index) => /* @__PURE__ */ jsxs("li", { children: [
41
41
  /* @__PURE__ */ jsx(NotificationItem, { notification }),
42
42
  /* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
43
43
  ] }, "notification-list-" + notification._id + "-" + index)) }),
44
- hasNextPage && /* @__PURE__ */ jsx(NotificationSkeleton, { ref: loadNextRef })
44
+ hasNextPage && /* @__PURE__ */ jsx(NotificationSkeleton, { ref: loadNextRef }),
45
+ isLoading && /* @__PURE__ */ jsx(NotificationListSkeleton, {})
45
46
  ] })
46
47
  ] }) });
47
48
  };
@@ -1,12 +1,17 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import NotificationSkeleton from "./NotificationSkeleton.js";
3
3
  import Divider from "../../../../components/Divider/Divider.js";
4
- const SKELETON_COUNT = 8, NotificationListSkeleton = () => /* @__PURE__ */ jsx("ul", { className: "notification-list-skeleton", "aria-hidden": "true", children: Array.from({
5
- length: SKELETON_COUNT
6
- }, (_, index) => /* @__PURE__ */ jsxs("li", { children: [
7
- /* @__PURE__ */ jsx(NotificationSkeleton, {}),
8
- index < SKELETON_COUNT - 1 && /* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
9
- ] }, index)) });
4
+ const NotificationListSkeleton = () => /* @__PURE__ */ jsxs("ul", { children: [
5
+ /* @__PURE__ */ jsxs("li", { children: [
6
+ /* @__PURE__ */ jsx(NotificationSkeleton, {}),
7
+ /* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
8
+ ] }),
9
+ /* @__PURE__ */ jsxs("li", { children: [
10
+ /* @__PURE__ */ jsx(NotificationSkeleton, {}),
11
+ /* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
12
+ ] }),
13
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NotificationSkeleton, {}) })
14
+ ] });
10
15
  export {
11
16
  NotificationListSkeleton as default
12
17
  };
@@ -1,14 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import Flex from "../../../../components/Flex/Flex.js";
4
+ import Avatar from "../../../../components/Avatar/Avatar.js";
4
5
  import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
5
- const NotificationSkeleton = /* @__PURE__ */ React.forwardRef((_props, ref) => /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification-item", gap: "8", ref, children: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
6
- /* @__PURE__ */ jsx("div", { className: "notification-item-picture", children: /* @__PURE__ */ jsx("div", { className: "placeholder col-4", style: {
7
- height: "3.2rem",
8
- width: "3.2rem",
9
- borderRadius: "50%"
10
- } }) }),
11
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", className: "notification-item-message", children: [
6
+ const NotificationSkeleton = /* @__PURE__ */ React.forwardRef((_props, ref) => /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification", gap: "8", ref, children: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
7
+ /* @__PURE__ */ jsx("div", { className: "notification-item-picture", children: /* @__PURE__ */ jsx(Avatar, { alt: "Notification Picture", variant: "circle", className: "notification-item-avatar" }) }),
8
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", className: "notification-message", children: [
12
9
  /* @__PURE__ */ jsx(TextSkeleton, {}),
13
10
  /* @__PURE__ */ jsx(TextSkeleton, {}),
14
11
  /* @__PURE__ */ jsx("div", { className: "placeholder col-4", style: {
@@ -1,12 +1,11 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
- import { useState, useMemo } from "react";
3
+ import { useState, useRef, useMemo, useEffect } from "react";
4
4
  import { useTranslation } from "react-i18next";
5
5
  import SvgIconCheck from "../../../../icons/components/IconCheck.js";
6
6
  import { getAppCodeAndI18nKey } from "./notificationAdapter.js";
7
- import ModalBeta from "../../../../../components/ModalBeta/ModalBeta.js";
7
+ import Modal from "../../../../../components/Modal/Modal.js";
8
8
  import Flex from "../../../../../components/Flex/Flex.js";
9
- import Checkbox from "../../../../../components/Checkbox/Checkbox.js";
10
9
  import AppIcon from "../../../../../components/AppIcon/AppIcon.js";
11
10
  import ButtonBeta from "../../../../../components/ButtonBeta/ButtonBeta.js";
12
11
  const NotificationFilterModal = ({
@@ -19,7 +18,7 @@ const NotificationFilterModal = ({
19
18
  const {
20
19
  t,
21
20
  i18n
22
- } = useTranslation(), [selected, setSelected] = useState(appliedTypes), allTypesSorted = useMemo(() => allTypes.map((type) => {
21
+ } = useTranslation(), [selected, setSelected] = useState(appliedTypes), refSelectAllCheckbox = useRef(null), allTypesSorted = useMemo(() => allTypes.map((type) => {
23
22
  const [appCode, appI18nKey] = getAppCodeAndI18nKey(type), label = t(appI18nKey, {
24
23
  defaultValue: appCode
25
24
  });
@@ -36,13 +35,16 @@ const NotificationFilterModal = ({
36
35
  }, toggleAll = () => {
37
36
  setSelected(selected.length === allTypes.length ? [] : allTypes);
38
37
  };
39
- return /* @__PURE__ */ jsxs(ModalBeta, { id: "notification-filter-modal", size: "l", isOpen, onModalClose: onCancel, children: [
40
- /* @__PURE__ */ jsx(ModalBeta.Header, { subtitle: t("homepage.notifications.filter-modal.subtitle"), onModalClose: onCancel, children: t("homepage.notifications.filter-modal.title") }),
41
- /* @__PURE__ */ jsxs(ModalBeta.Body, { children: [
38
+ return useEffect(() => {
39
+ refSelectAllCheckbox.current && (refSelectAllCheckbox.current.indeterminate = selected.length > 0 && selected.length < allTypes.length);
40
+ }, [selected.length, allTypes.length]), /* @__PURE__ */ jsxs(Modal, { id: "notification-filter-modal", size: "lg", scrollable: !0, isOpen, onModalClose: onCancel, children: [
41
+ /* @__PURE__ */ jsx(Modal.Header, { onModalClose: onCancel, children: t("homepage.notifications.filter-modal.title") }),
42
+ /* @__PURE__ */ jsx(Modal.Subtitle, { children: t("homepage.notifications.filter-modal.subtitle") }),
43
+ /* @__PURE__ */ jsxs(Modal.Body, { children: [
42
44
  /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "8", className: "mb-24", children: [
43
45
  /* @__PURE__ */ jsxs("label", { className: "notification-filter-select-all notification-filter-chip", children: [
44
46
  /* @__PURE__ */ jsx("span", { children: t("homepage.notifications.filter-modal.select-all") }),
45
- /* @__PURE__ */ jsx(Checkbox, { checked: selected.length === allTypes.length, indeterminate: selected.length > 0 && selected.length < allTypes.length, onChange: toggleAll })
47
+ /* @__PURE__ */ jsx("input", { type: "checkbox", ref: refSelectAllCheckbox, checked: selected.length === allTypes.length, className: "notification-filter-checkbox", onChange: toggleAll })
46
48
  ] }),
47
49
  /* @__PURE__ */ jsx("span", { className: "notification-filter-count", children: t("homepage.notifications.filter-modal.count", {
48
50
  selected: selected.length,
@@ -58,13 +60,13 @@ const NotificationFilterModal = ({
58
60
  return /* @__PURE__ */ jsxs("label", { className: clsx("notification-filter-chip", {
59
61
  "is-checked": checked
60
62
  }), children: [
61
- /* @__PURE__ */ jsx(AppIcon, { app: appCode, size: "24", iconFit: "contain", "aria-hidden": "true" }),
63
+ /* @__PURE__ */ jsx(AppIcon, { app: appCode, size: "24", iconFit: "contain" }),
62
64
  /* @__PURE__ */ jsx("span", { children: label }),
63
- /* @__PURE__ */ jsx(Checkbox, { checked, onChange: () => toggleType(type) })
65
+ /* @__PURE__ */ jsx("input", { type: "checkbox", className: "notification-filter-checkbox", checked, onChange: () => toggleType(type) })
64
66
  ] }, type);
65
67
  }) })
66
68
  ] }),
67
- /* @__PURE__ */ jsxs(ModalBeta.Footer, { children: [
69
+ /* @__PURE__ */ jsxs(Modal.Footer, { children: [
68
70
  /* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", onClick: onCancel, type: "button", variant: "ghost", children: t("cancel") }),
69
71
  /* @__PURE__ */ jsx(ButtonBeta, { color: "default", onClick: () => onApply(selected), type: "button", variant: "filled", rightIcon: /* @__PURE__ */ jsx(SvgIconCheck, {}), children: t("homepage.notifications.filter-modal.confirm") })
70
72
  ] })
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useTranslation } from "react-i18next";
3
3
  import SvgIconAlertTriangle from "../../../../icons/components/IconAlertTriangle.js";
4
- import ModalBeta from "../../../../../components/ModalBeta/ModalBeta.js";
4
+ import Modal from "../../../../../components/Modal/Modal.js";
5
5
  import ButtonBeta from "../../../../../components/ButtonBeta/ButtonBeta.js";
6
6
  const ReportNotificationModal = ({
7
7
  isOpen,
@@ -11,12 +11,18 @@ const ReportNotificationModal = ({
11
11
  const {
12
12
  t
13
13
  } = useTranslation();
14
- return /* @__PURE__ */ jsxs(ModalBeta, { id: "report-notification-modal", size: "m", isOpen, onModalClose: onCancel, children: [
15
- /* @__PURE__ */ jsx(ModalBeta.Header, { onModalClose: onCancel, children: t("homepage.notifications.report-modal.title") }),
16
- /* @__PURE__ */ jsx(ModalBeta.Body, { children: /* @__PURE__ */ jsx("p", { children: t("homepage.notifications.report-modal.body") }) }),
17
- /* @__PURE__ */ jsxs(ModalBeta.Footer, { children: [
14
+ return /* @__PURE__ */ jsxs(Modal, { id: "report-notification-modal", size: "sm", isOpen, onModalClose: onCancel, children: [
15
+ /* @__PURE__ */ jsx(Modal.Header, { onModalClose: onCancel, children: t("homepage.notifications.report-modal.title", {
16
+ defaultValue: "Signaler une notification"
17
+ }) }),
18
+ /* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx("p", { children: t("homepage.notifications.report-modal.body", {
19
+ defaultValue: "Attention ! Vous souhaitez signaler une notification inappropriée ou qui ne respecte pas les conditions d'utilisation de ONE. L'heure et l'origine de ce signalement seront enregistrées et transmises à un administrateur pour traitement."
20
+ }) }) }),
21
+ /* @__PURE__ */ jsxs(Modal.Footer, { children: [
18
22
  /* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", onClick: onCancel, type: "button", variant: "ghost", children: t("cancel") }),
19
- /* @__PURE__ */ jsx(ButtonBeta, { color: "default", onClick: onConfirm, type: "button", variant: "filled", leftIcon: /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}), children: t("homepage.notifications.report-modal.confirm") })
23
+ /* @__PURE__ */ jsx(ButtonBeta, { color: "default", onClick: onConfirm, type: "button", variant: "filled", leftIcon: /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}), children: t("homepage.notifications.report-modal.confirm", {
24
+ defaultValue: "Signaler la notification"
25
+ }) })
20
26
  ] })
21
27
  ] });
22
28
  };
@@ -8,36 +8,34 @@ const resolveNotificationResourceUri = (params, type, appCode, eventType) => {
8
8
  return value;
9
9
  }, parseNotificationMessage = (message) => message.replace(/<\/a>/gi, "</strong>").replace(/<a\b[^>]*>/gi, "<strong>"), getAppCodeAndI18nKey = (appCode) => {
10
10
  appCode = appCode.toLowerCase();
11
- const appI18nKey = `homepage.notification.type.${appCode}`;
11
+ let appI18nKey = appCode;
12
12
  switch (appCode) {
13
- case "collaborativeeditor":
14
- appCode = "pad";
15
- break;
16
13
  case "collaborativewall":
17
14
  appCode = "collaborative-wall";
18
15
  break;
19
16
  case "formulaire":
20
- appCode = "forms";
17
+ appI18nKey = "formulaire", appCode = "forms";
21
18
  break;
22
19
  case "messagerie":
23
- appCode = "conversation";
20
+ appI18nKey = appCode = "conversation";
24
21
  break;
25
22
  case "news":
26
- appCode = "actualites";
23
+ appI18nKey = appCode = "actualites";
27
24
  break;
28
25
  case "homeworks":
29
26
  appCode = "cahier-de-texte";
30
27
  break;
31
28
  case "userbook_motto":
29
+ appI18nKey = "userbook_motto", appCode = "userbook";
30
+ break;
32
31
  case "userbook_mood":
33
- case "userbook_discovervisiblegroups":
34
- appCode = "userbook";
32
+ appI18nKey = "userbook_mood", appCode = "userbook";
35
33
  break;
36
- case "viescolaire":
37
- appCode = "parametrage";
34
+ case "userbook_discovervisiblegroups":
35
+ appI18nKey = "userbook_discovervisiblegroups", appCode = "userbook";
38
36
  break;
39
37
  default:
40
- appCode = appCode.replace(/_/g, "-");
38
+ appI18nKey = appCode = appCode.replace(/_/g, "-");
41
39
  }
42
40
  return [appCode, appI18nKey];
43
41
  }, notificationAdapter = (notification) => {
@@ -14,30 +14,31 @@ const useNotificationListContainer = () => {
14
14
  mutate: saveTimelinePreference
15
15
  } = useSaveTimelinePreference(), [selectedTypes, setSelectedTypesState] = useState();
16
16
  useEffect(() => {
17
- selectedTypes === void 0 && isFetchedTypes && isFetchedPreference && setSelectedTypesState((preference == null ? void 0 : preference.type) ?? notificationTypes ?? []);
17
+ if (selectedTypes === void 0 && isFetchedTypes && isFetchedPreference) {
18
+ const preferredTypes = preference == null ? void 0 : preference.type;
19
+ setSelectedTypesState(preferredTypes && preferredTypes.length > 0 ? preferredTypes : notificationTypes ?? []);
20
+ }
18
21
  }, [selectedTypes, isFetchedTypes, isFetchedPreference, preference, notificationTypes]);
19
22
  const setSelectedTypes = (types) => {
20
23
  setSelectedTypesState(types), saveTimelinePreference({
21
24
  ...preference,
22
25
  type: types
23
26
  });
24
- }, hasNoTypeSelected = (selectedTypes == null ? void 0 : selectedTypes.length) === 0, {
25
- data,
27
+ }, {
28
+ data: notifications,
26
29
  hasNextPage,
27
30
  isLoading: isLoadingNotifications,
28
31
  error: errorNotifications,
29
32
  fetchNextPage
30
- } = useNotifications(selectedTypes ?? [], isFetchedTypes && !!selectedTypes && !hasNoTypeSelected);
33
+ } = useNotifications(selectedTypes ?? [], isFetchedTypes && !!selectedTypes);
31
34
  return {
32
- notifications: hasNoTypeSelected ? [] : data,
35
+ notifications,
33
36
  notificationTypes,
34
37
  selectedTypes,
35
38
  setSelectedTypes,
36
- hasNextPage: hasNoTypeSelected ? !1 : hasNextPage,
39
+ hasNextPage,
37
40
  loadNextPage: () => fetchNextPage(),
38
- // The notification query stays disabled until the saved filter is
39
- // read, so this wait must count as loading too.
40
- isLoading: isLoadingTypes || selectedTypes === void 0 || isLoadingNotifications,
41
+ isLoading: isLoadingTypes || isLoadingNotifications,
41
42
  error: errorTypes || errorNotifications
42
43
  };
43
44
  }, useHasNotificationToday = () => {
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import SchoolSpace from "./SchoolSpace.js";
3
- import { useUserSchools } from "../../hooks/useUserSchools.js";
3
+ import { useUserSchools } from "./useUserSchools.js";
4
4
  function SchoolSpaceContainer() {
5
5
  const {
6
6
  handleSelectedSchoolChange,
@@ -1,5 +1,5 @@
1
- import { School, WidgetName } from '@edifice.io/client';
2
- export declare function useUserSchools(widgetName?: WidgetName): {
1
+ import { School } from '@edifice.io/client';
2
+ export declare function useUserSchools(): {
3
3
  schools: School[];
4
4
  selectedSchool: School | undefined;
5
5
  handleSelectedSchoolChange: (school: School) => void;
@@ -1,15 +1,15 @@
1
1
  import { WIDGET_NAME } from "@edifice.io/client";
2
2
  import { useState, useEffect } from "react";
3
- import useWidget from "./useWidget.js";
4
- import useSession from "../../../hooks/useSession/useSession.js";
5
- function useUserSchools(widgetName = WIDGET_NAME.SCHOOL) {
3
+ import useWidget from "../../hooks/useWidget.js";
4
+ import useSession from "../../../../hooks/useSession/useSession.js";
5
+ function useUserSchools() {
6
6
  var _a, _b;
7
7
  const {
8
8
  data: session
9
9
  } = useSession(), {
10
10
  preference,
11
11
  savePreference
12
- } = useWidget(widgetName), [selectedSchool, setSelectedSchool] = useState(), [schools, setSchools] = useState((_a = session == null ? void 0 : session.userDescription) == null ? void 0 : _a.schools);
12
+ } = useWidget(WIDGET_NAME.SCHOOL), [selectedSchool, setSelectedSchool] = useState(), [schools, setSchools] = useState((_a = session == null ? void 0 : session.userDescription) == null ? void 0 : _a.schools);
13
13
  return useEffect(() => {
14
14
  var _a2;
15
15
  const newSchools = (_a2 = session == null ? void 0 : session.userDescription) == null ? void 0 : _a2.schools;
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useTranslation } from "react-i18next";
3
- import illuEmptyFeeds from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-useful-links.png";
3
+ import illuEmptyUsefulLinks from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-useful-links.png";
4
4
  import SvgIconEdit from "../../../icons/components/IconEdit.js";
5
5
  import HomeCard from "../HomeCard/HomeCard.js";
6
6
  import Image from "../../../../components/Image/Image.js";
@@ -18,7 +18,7 @@ function UsefulLinks({
18
18
  "data-testid": "usefullinks-button-edit"
19
19
  } }),
20
20
  /* @__PURE__ */ jsx(HomeCard.Content, { children: links.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "useful-links-widget__empty", children: [
21
- /* @__PURE__ */ jsx(Image, { src: illuEmptyFeeds, alt: "", "aria-hidden": "true", style: {
21
+ /* @__PURE__ */ jsx(Image, { src: illuEmptyUsefulLinks, alt: "", "aria-hidden": "true", style: {
22
22
  width: 160,
23
23
  height: 87
24
24
  } }),
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useTranslation } from "react-i18next";
3
- import illuEmptyFeeds from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-useful-links.png";
3
+ import illuEmptyUsefulLinks from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-useful-links.png";
4
4
  import SvgIconClose from "../../../icons/components/IconClose.js";
5
5
  import SvgIconEdit from "../../../icons/components/IconEdit.js";
6
6
  import SvgIconPlus from "../../../icons/components/IconPlus.js";
@@ -29,7 +29,7 @@ function UsefulLinksModal({
29
29
  /* @__PURE__ */ jsx(ModalBeta.Body, { children: links.length === 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
30
30
  /* @__PURE__ */ jsx(Flex, { justify: "end", className: "mb-16", children: addLinkButton }),
31
31
  /* @__PURE__ */ jsxs("div", { className: "useful-links-modal__empty", children: [
32
- /* @__PURE__ */ jsx(Image, { src: illuEmptyFeeds, alt: "", "aria-hidden": "true", style: {
32
+ /* @__PURE__ */ jsx(Image, { src: illuEmptyUsefulLinks, alt: "", "aria-hidden": "true", style: {
33
33
  width: 200,
34
34
  height: 109
35
35
  } }),
@@ -5,10 +5,8 @@ export type UserSpaceProps = {
5
5
  avatar: string;
6
6
  profile: UserProfile[number];
7
7
  children?: ReactNode;
8
- /** Renders a trigger button in the top-right corner when provided. */
9
- onCustomizeWidgetsClick?: () => void;
10
8
  };
11
- declare function UserSpace({ name, avatar, profile, children, onCustomizeWidgetsClick, }: UserSpaceProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function UserSpace({ name, avatar, profile, children, }: UserSpaceProps): import("react/jsx-runtime").JSX.Element;
12
10
  declare namespace UserSpace {
13
11
  var displayName: string;
14
12
  }
@@ -1,33 +1,27 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useTranslation } from "react-i18next";
3
- import SvgIconAddWidget from "../../../icons/components/IconAddWidget.js";
4
3
  import SvgIconClass from "../../../icons/components/IconClass.js";
5
4
  import { useProfileLinks } from "./hooks/useProfileLinks.js";
6
5
  import HomeCard from "../HomeCard/HomeCard.js";
7
6
  import Flex from "../../../../components/Flex/Flex.js";
8
7
  import Avatar from "../../../../components/Avatar/Avatar.js";
9
- import IconButton from "../../../../components/Button/IconButton.js";
10
8
  import ButtonBeta from "../../../../components/ButtonBeta/ButtonBeta.js";
11
9
  function UserSpace({
12
10
  name,
13
11
  avatar,
14
12
  profile,
15
- children,
16
- onCustomizeWidgetsClick
13
+ children
17
14
  }) {
18
15
  const {
19
16
  t
20
17
  } = useTranslation(), links = useProfileLinks(profile);
21
18
  return /* @__PURE__ */ jsxs(HomeCard, { variant: "user", footer: !!links && /* @__PURE__ */ jsx(Flex, { children: links.map((link, index) => /* @__PURE__ */ jsx(ButtonBeta, { size: "sm", variant: "ghost", leftIcon: /* @__PURE__ */ jsx(SvgIconClass, {}), onClick: () => window.location.href = link.url, children: link.text }, `${link.url}-${index}`)) }), children: [
22
- /* @__PURE__ */ jsxs(Flex, { className: "user-space", direction: "row", justify: "between", gap: "8", children: [
23
- /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
24
- /* @__PURE__ */ jsx(Avatar, { className: "user-space--avatar", size: "auto", alt: name, src: avatar, variant: "circle" }),
25
- /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
26
- /* @__PURE__ */ jsx("div", { "data-testid": "user-space-name", className: "user-space--name", children: name }),
27
- /* @__PURE__ */ jsx("div", { "data-testid": "user-space-profile", className: "user-space--profile", children: t(profile) })
28
- ] })
29
- ] }),
30
- onCustomizeWidgetsClick && /* @__PURE__ */ jsx(IconButton, { className: "user-space--customize-widgets", icon: /* @__PURE__ */ jsx(SvgIconAddWidget, {}), variant: "ghost", color: "tertiary", "aria-label": t("homepage.userSpace.customizeWidgets"), onClick: onCustomizeWidgetsClick })
19
+ /* @__PURE__ */ jsxs(Flex, { className: "user-space", direction: "row", gap: "8", children: [
20
+ /* @__PURE__ */ jsx(Avatar, { className: "user-space--avatar", size: "auto", alt: name, src: avatar, variant: "circle" }),
21
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
22
+ /* @__PURE__ */ jsx("div", { "data-testid": "user-space-name", className: "user-space--name", children: name }),
23
+ /* @__PURE__ */ jsx("div", { "data-testid": "user-space-profile", className: "user-space--profile", children: t(profile) })
24
+ ] })
31
25
  ] }),
32
26
  children && /* @__PURE__ */ jsx(HomeCard.Content, { children })
33
27
  ] });
@@ -1,9 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- export interface UserSpaceContainerProps {
2
+ export declare function UserSpaceContainer({ children }: {
3
3
  children?: ReactNode;
4
- onCustomizeWidgetsClick?: () => void;
5
- }
6
- export declare function UserSpaceContainer({ children, onCustomizeWidgetsClick, }: UserSpaceContainerProps): import("react/jsx-runtime").JSX.Element | null;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
7
5
  export declare namespace UserSpaceContainer {
8
6
  var displayName: string;
9
7
  }
@@ -2,8 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import UserSpace from "./UserSpace.js";
3
3
  import useUser from "../../../../hooks/useUser/useUser.js";
4
4
  function UserSpaceContainer({
5
- children,
6
- onCustomizeWidgetsClick
5
+ children
7
6
  }) {
8
7
  var _a;
9
8
  const {
@@ -13,7 +12,7 @@ function UserSpaceContainer({
13
12
  } = useUser();
14
13
  if (!user || !userDescription) return null;
15
14
  const name = user.username || "", profile = ((_a = userDescription.profiles) == null ? void 0 : _a[0]) || "Guest";
16
- return /* @__PURE__ */ jsx(UserSpace, { name, profile, avatar, onCustomizeWidgetsClick, children });
15
+ return /* @__PURE__ */ jsx(UserSpace, { name, profile, avatar, children });
17
16
  }
18
17
  export {
19
18
  UserSpaceContainer
@@ -1,21 +1,10 @@
1
- export * from './Agenda';
2
- export * from './Communities';
3
- export * from './BriefMe';
4
- export * from './Cantine';
5
- export * from './Edumalin';
6
1
  export * from './Favorites';
7
- export * from './GenerationHdf';
8
2
  export * from './Header';
9
3
  export * from './HomeCard';
10
4
  export * from './LastInfos';
11
5
  export * from './MessageFlashList';
12
6
  export * from './Notifications';
13
- export * from './Qwant';
14
- export * from './Rss';
15
7
  export * from './SchoolSpace';
16
- export * from './ScreenTime';
17
8
  export * from './UsefulLinks';
18
- export * from './Universalis';
19
9
  export * from './UserSpace';
20
- export * from './WidgetsPersonalizationPanel';
21
- export * from './TabsKids';
10
+ export * from './Communities';
@@ -1,5 +1,4 @@
1
1
  export { default as IconAddUser } from './IconAddUser';
2
- export { default as IconAddWidget } from './IconAddWidget';
3
2
  export { default as IconAdd } from './IconAdd';
4
3
  export { default as IconAdjustSettings } from './IconAdjustSettings';
5
4
  export { default as IconAiFill } from './IconAiFill';
@@ -3,13 +3,15 @@ const SvgIconCommunitiesBeta = ({
3
3
  title,
4
4
  titleId,
5
5
  ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
6
+ }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
7
  title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsxs("g", { fill: "currentColor", clipPath: "url(#icon-communities-beta_svg__a)", children: [
9
- /* @__PURE__ */ jsx("path", { d: "M13.97 3.852a1.852 1.852 0 1 0-3.704.001 1.852 1.852 0 0 0 3.705-.001m2 0a3.853 3.853 0 1 1-7.705-.001 3.853 3.853 0 0 1 7.706 0M6.251 8.396a1.852 1.852 0 1 0-3.705.001 1.852 1.852 0 0 0 3.705-.001m2 0a3.853 3.853 0 1 1-7.706-.001 3.853 3.853 0 0 1 7.706 0M21.69 8.396a1.852 1.852 0 1 0-3.704.001 1.852 1.852 0 0 0 3.704-.001m2 0a3.853 3.853 0 1 1-7.705-.001 3.853 3.853 0 0 1 7.705 0M6.728 17.57c0-1.75-1.216-2.935-2.437-2.935s-2.435 1.185-2.435 2.936V21.7h4.872zm2 6.13H-.144v-6.13c0-2.591 1.864-4.934 4.435-4.935 2.572 0 4.436 2.344 4.437 4.936zM22.164 17.57c0-1.75-1.216-2.935-2.437-2.935s-2.435 1.185-2.436 2.936V21.7h4.873zm2 6.13H15.29v-6.13c0-2.591 1.865-4.934 4.436-4.935 2.572 0 4.436 2.344 4.437 4.936z" }),
10
- /* @__PURE__ */ jsx("path", { d: "M15.055 13.152a2.94 2.94 0 0 0-2.937-2.935 2.94 2.94 0 0 0-2.935 2.935v8.549h5.872zm2 10.549H7.183V13.152a4.94 4.94 0 0 1 4.935-4.935 4.94 4.94 0 0 1 4.937 4.935z" })
8
+ /* @__PURE__ */ jsxs("g", { strokeMiterlimit: 10, strokeWidth: 2.667, clipPath: "url(#icon-communities-beta_svg__a)", children: [
9
+ /* @__PURE__ */ jsx("path", { fill: "#FEECFE", stroke: "#E26AE2", d: "M19.96 5.803a3.803 3.803 0 1 0-7.605 0 3.803 3.803 0 0 0 7.606 0Z" }),
10
+ /* @__PURE__ */ jsx("path", { stroke: "#E26AE2", d: "M9.668 11.861a3.803 3.803 0 1 0-7.606 0 3.803 3.803 0 0 0 7.606 0ZM30.254 11.861a3.803 3.803 0 1 0-7.606 0 3.803 3.803 0 0 0 7.606 0Z" }),
11
+ /* @__PURE__ */ jsx("path", { stroke: "#FC94FF", d: "M6.389 18.847a5.25 5.25 0 0 1 5.248 5.248v6.837H1.14v-6.837a5.25 5.25 0 0 1 5.248-5.248ZM25.637 18.847a5.25 5.25 0 0 1 5.248 5.248v6.837H20.389v-6.837a5.25 5.25 0 0 1 5.248-5.248Z" }),
12
+ /* @__PURE__ */ jsx("path", { fill: "#FEECFE", stroke: "#E26AE2", d: "M16.158 12.955a5.25 5.25 0 0 1 5.248 5.248v12.73H10.91v-12.73a5.25 5.25 0 0 1 5.248-5.248Z" })
11
13
  ] }),
12
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-communities-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
14
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-communities-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
13
15
  ] });
14
16
  export {
15
17
  SvgIconCommunitiesBeta as default
@@ -3,13 +3,10 @@ const SvgIconHomeBeta = ({
3
3
  title,
4
4
  titleId,
5
5
  ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
6
+ }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
7
  title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsxs("g", { fill: "currentColor", clipPath: "url(#icon-home-beta_svg__a)", children: [
9
- /* @__PURE__ */ jsx("path", { d: "M20.9 9.188 12 2.266 3.1 9.188V20.8A1.2 1.2 0 0 0 4.3 22h15.4a1.2 1.2 0 0 0 1.2-1.2zm2 11.612a3.2 3.2 0 0 1-3.2 3.2H4.3a3.2 3.2 0 0 1-3.2-3.2V8.7a1 1 0 0 1 .386-.789l9.9-7.7.142-.093a1 1 0 0 1 1.086.093l9.9 7.7a1 1 0 0 1 .386.79z" }),
10
- /* @__PURE__ */ jsx("path", { d: "M14.3 23V13H9.7v10a1 1 0 1 1-2 0V12a1 1 0 0 1 1-1h6.6a1 1 0 0 1 1 1v11a1 1 0 1 1-2 0" })
11
- ] }),
12
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-home-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
8
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#icon-home-beta_svg__a)", children: /* @__PURE__ */ jsx("path", { fill: "#383838", d: "M15.183.28a1.334 1.334 0 0 1 1.636 0l12 9.335c.325.252.515.64.515 1.052v14.666a4 4 0 0 1-4 4H6.668a4 4 0 0 1-4-4V10.667c0-.411.19-.8.515-1.052zM5.334 11.32v14.014a1.335 1.335 0 0 0 1.334 1.334h4v-12c0-.736.597-1.334 1.333-1.334h8c.736 0 1.333.598 1.333 1.334v12h4a1.335 1.335 0 0 0 1.334-1.334V11.32L16.001 3.023zm8 15.348h5.334V16h-5.334z" }) }),
9
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-home-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
13
10
  ] });
14
11
  export {
15
12
  SvgIconHomeBeta as default
@@ -3,15 +3,15 @@ const SvgIconMessagesBeta = ({
3
3
  title,
4
4
  titleId,
5
5
  ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
6
+ }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
7
  title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsxs("g", { fill: "currentColor", clipPath: "url(#icon-messages-beta_svg__a)", children: [
9
- /* @__PURE__ */ jsx("path", { d: "M23.401 9.243V23.4H4.821A4.824 4.824 0 0 1 0 18.578V9.243l3.898-2.508L4.98 8.417 2 10.334v8.244A2.824 2.824 0 0 0 4.821 21.4h16.58V10.334l-2.9-1.863.541-.841.54-.842z" }),
10
- /* @__PURE__ */ jsx("path", { d: "M19.962 0v11.318h-2V2H5.439v9.318h-2V0z" }),
11
- /* @__PURE__ */ jsx("path", { d: "M16.669 3.773v2H6.732v-2zM15.904 7.546v2H7.496v-2z" }),
12
- /* @__PURE__ */ jsx("path", { d: "m22.898 10.657-10.702 6.114-.496.284-.496-.284-10.7-6.114.992-1.736L11.7 14.75l10.204-5.83z" })
8
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#icon-messages-beta_svg__a)", children: [
9
+ /* @__PURE__ */ jsx("path", { stroke: "#E5A800", strokeMiterlimit: 10, strokeWidth: 2.667, d: "m5.93 10.246-4.8 3.088v12.267a5.335 5.335 0 0 0 5.334 5.333h24.534v-17.6l-4.689-3.013" }),
10
+ /* @__PURE__ */ jsx("path", { fill: "#FCF3CF", d: "M26.196 15.468v-14.4H5.93v14.4" }),
11
+ /* @__PURE__ */ jsx("path", { stroke: "#FFC403", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M26.196 15.468v-14.4H5.93v14.4" }),
12
+ /* @__PURE__ */ jsx("path", { stroke: "#E5A800", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M9.13 5.334h13.867M10.197 9.6h11.734M1.13 13.334l14.934 8.533 14.933-8.533" })
13
13
  ] }),
14
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-messages-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
14
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-messages-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
15
15
  ] });
16
16
  export {
17
17
  SvgIconMessagesBeta as default
@@ -3,9 +3,10 @@ const SvgIconMyAppsBeta = ({
3
3
  title,
4
4
  titleId,
5
5
  ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
6
+ }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
7
  title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("g", { fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M23 1v10.182H12.818V1zm-8.182 8.182H21V3h-6.182zM23 12.818V23H12.818V12.818zM14.818 21H21v-6.182h-6.182zM11.182 12.818V23H1V12.818zM3 21h6.182v-6.182H3zM2.049 1l.141.003q.181.005.492.03c.41.034.98.108 1.63.26 1.287.301 2.963.931 4.304 2.272 1.341 1.342 1.972 3.018 2.274 4.304.152.65.224 1.22.26 1.631a9 9 0 0 1 .032.633v.061l-.013.988H1V1.014L1.986 1 2 2l-.014-1zM3 9.182h6.1a10 10 0 0 0-.158-.857c-.255-1.088-.76-2.366-1.74-3.346C6.223 4 4.945 3.495 3.856 3.24A10 10 0 0 0 3 3.081z" }) })
8
+ /* @__PURE__ */ jsx("g", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, clipPath: "url(#icon-my-apps-beta_svg__a)", children: /* @__PURE__ */ jsx("path", { d: "M31.117 1H19v12.117h12.117zM13.207 18.884H1.09V31h12.117zM1 1.084c6.688 0 12.117 5.43 12.117 12.117H1zM30.934 18.884H18.816V31h12.118z" }) }),
9
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-my-apps-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
9
10
  ] });
10
11
  export {
11
12
  SvgIconMyAppsBeta as default
@@ -3,9 +3,11 @@ const SvgIconNotificationBeta = ({
3
3
  title,
4
4
  titleId,
5
5
  ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
6
+ }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
7
  title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M12.016.5a3.04 3.04 0 0 1 3.02 2.663c3.36 1.192 5.771 4.401 5.772 8.168v1.845h1.656v7.01h-6.522a3.94 3.94 0 0 1-7.778 0h-6.12v-7.01h1.434V11.33c0-3.666 2.284-6.802 5.505-8.066A3.045 3.045 0 0 1 12.016.5m-1.798 19.687a1.94 1.94 0 0 0 3.67 0zm-6.175-5.01v3.01h16.42v-3.01zm8.1-10.511a6.67 6.67 0 0 0-6.665 6.665v1.845h13.33V11.33a6.67 6.67 0 0 0-6.665-6.665" })
8
+ /* @__PURE__ */ jsx("path", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M13.363 5.348a2.726 2.726 0 1 1 5.383-.622q0 .423-.12.808M19.886 25.184a3.919 3.919 0 1 1-7.559-.26" }),
9
+ /* @__PURE__ */ jsx("path", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M28.62 18.901H4.058v6.682h24.56z" }),
10
+ /* @__PURE__ */ jsx("path", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M16.189 4.889c5.639 0 10.22 4.581 10.22 10.22v3.794H5.97V15.11c0-5.639 4.581-10.22 10.22-10.22Z" })
9
11
  ] });
10
12
  export {
11
13
  SvgIconNotificationBeta as default