@edifice.io/react 2.6.13-develop-integration-demo.20261108115137 → 2.6.13-develop-b2school.20261109110305

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 (214) hide show
  1. package/dist/components/Checkbox/Checkbox.js +1 -1
  2. package/dist/components/Layout/Layout.js +12 -4
  3. package/dist/components/Masonry/Masonry.d.ts +40 -0
  4. package/dist/components/Masonry/Masonry.js +50 -0
  5. package/dist/components/Masonry/index.d.ts +2 -0
  6. package/dist/components/SearchBar/SearchBar.js +17 -26
  7. package/dist/components/index.d.ts +1 -0
  8. package/dist/homepage.js +106 -24
  9. package/dist/hooks/useUpload/useUpload.js +1 -1
  10. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
  11. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
  12. package/dist/icons.js +406 -404
  13. package/dist/index.js +2 -0
  14. package/dist/modules/HelpZone/HelpZone.js +6 -8
  15. package/dist/modules/HelpZone/HelpZoneContainer.js +2 -5
  16. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
  17. package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
  18. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
  19. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
  20. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
  21. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
  22. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
  23. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
  24. package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
  25. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
  26. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
  27. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
  28. package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
  29. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
  30. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
  31. package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +9 -0
  32. package/dist/modules/homepage/components/BriefMe/BriefMe.js +59 -0
  33. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +4 -0
  34. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +17 -0
  35. package/dist/modules/homepage/components/BriefMe/index.d.ts +4 -0
  36. package/dist/modules/homepage/components/BriefMe/types.d.ts +17 -0
  37. package/dist/modules/homepage/components/BriefMe/types.js +8 -0
  38. package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +31 -0
  39. package/dist/modules/homepage/components/BriefMe/useBriefMe.js +51 -0
  40. package/dist/modules/homepage/components/Cantine/Cantine.d.ts +7 -0
  41. package/dist/modules/homepage/components/Cantine/Cantine.js +44 -0
  42. package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +4 -0
  43. package/dist/modules/homepage/components/Cantine/CantineContainer.js +18 -0
  44. package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +24 -0
  45. package/dist/modules/homepage/components/Cantine/CantineModal.js +88 -0
  46. package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +7 -0
  47. package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +12 -0
  48. package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +5 -0
  49. package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +22 -0
  50. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +6 -0
  51. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +28 -0
  52. package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +12 -0
  53. package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +60 -0
  54. package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +11 -0
  55. package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +20 -0
  56. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +24 -0
  57. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +65 -0
  58. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +23 -0
  59. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +43 -0
  60. package/dist/modules/homepage/components/Cantine/index.d.ts +7 -0
  61. package/dist/modules/homepage/components/Cantine/types.d.ts +42 -0
  62. package/dist/modules/homepage/components/Captation/CaptationAudio/CaptationAudio.d.ts +7 -0
  63. package/dist/modules/homepage/components/Captation/CaptationVideo/CaptationVideo.d.ts +9 -0
  64. package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +9 -0
  65. package/dist/modules/homepage/components/Edumalin/Edumalin.js +65 -0
  66. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +4 -0
  67. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +21 -0
  68. package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +8 -0
  69. package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +62 -0
  70. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +5 -0
  71. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +38 -0
  72. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +5 -0
  73. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +12 -0
  74. package/dist/modules/homepage/components/Edumalin/index.d.ts +7 -0
  75. package/dist/modules/homepage/components/Edumalin/types.d.ts +24 -0
  76. package/dist/modules/homepage/components/Edumalin/types.js +4 -0
  77. package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +16 -0
  78. package/dist/modules/homepage/components/Edumalin/useEdumalin.js +35 -0
  79. package/dist/modules/homepage/components/Edumalin/utils.d.ts +28 -0
  80. package/dist/modules/homepage/components/Edumalin/utils.js +56 -0
  81. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +16 -0
  82. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +65 -0
  83. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +4 -0
  84. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +12 -0
  85. package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +1 -0
  86. package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +6 -0
  87. package/dist/modules/homepage/components/GenerationHdf/index.d.ts +3 -0
  88. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +10 -0
  89. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +69 -0
  90. package/dist/modules/homepage/components/Header/Header.js +9 -21
  91. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
  92. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  93. package/dist/modules/homepage/components/Mediacentre/Mediacentre.d.ts +13 -0
  94. package/dist/modules/homepage/components/Mediacentre/Mediacentre.js +57 -0
  95. package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.d.ts +4 -0
  96. package/dist/modules/homepage/components/Mediacentre/MediacentreContainer.js +12 -0
  97. package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.d.ts +6 -0
  98. package/dist/modules/homepage/components/Mediacentre/components/MediacentreUniversalisSearch.js +30 -0
  99. package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.d.ts +17 -0
  100. package/dist/modules/homepage/components/Mediacentre/hooks/useMediacentre.js +32 -0
  101. package/dist/modules/homepage/components/Mediacentre/index.d.ts +5 -0
  102. package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.d.ts +24 -0
  103. package/dist/modules/homepage/components/Mediacentre/services/mediacentreService.js +25 -0
  104. package/dist/modules/homepage/components/Mediacentre/types.d.ts +8 -0
  105. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -2
  106. package/dist/modules/homepage/components/Notifications/NotificationList.js +7 -8
  107. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +7 -12
  108. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +7 -4
  109. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +11 -13
  110. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
  111. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
  112. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
  113. package/dist/modules/homepage/components/Qwant/Qwant.d.ts +4 -0
  114. package/dist/modules/homepage/components/Qwant/Qwant.js +41 -0
  115. package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +1 -0
  116. package/dist/modules/homepage/components/Qwant/QwantContainer.js +10 -0
  117. package/dist/modules/homepage/components/Qwant/index.d.ts +3 -0
  118. package/dist/modules/homepage/components/Rss/Rss.d.ts +11 -0
  119. package/dist/modules/homepage/components/Rss/Rss.js +64 -0
  120. package/dist/modules/homepage/components/Rss/RssContainer.d.ts +1 -0
  121. package/dist/modules/homepage/components/Rss/RssContainer.js +45 -0
  122. package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +13 -0
  123. package/dist/modules/homepage/components/Rss/RssFeedForm.js +69 -0
  124. package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +11 -0
  125. package/dist/modules/homepage/components/Rss/RssFeedsModal.js +58 -0
  126. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +25 -0
  127. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +43 -0
  128. package/dist/modules/homepage/components/Rss/index.d.ts +6 -0
  129. package/dist/modules/homepage/components/Rss/services/api/index.d.ts +5 -0
  130. package/dist/modules/homepage/components/Rss/services/api/index.js +5 -0
  131. package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +38 -0
  132. package/dist/modules/homepage/components/Rss/services/api/rssService.js +51 -0
  133. package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +28 -0
  134. package/dist/modules/homepage/components/Rss/services/queries/rss.js +71 -0
  135. package/dist/modules/homepage/components/Rss/types.d.ts +25 -0
  136. package/dist/modules/homepage/components/Rss/utils.d.ts +7 -0
  137. package/dist/modules/homepage/components/Rss/utils.js +19 -0
  138. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
  139. package/dist/modules/homepage/components/ScreenTime/ScreenTime.d.ts +11 -0
  140. package/dist/modules/homepage/components/ScreenTime/ScreenTime.js +49 -0
  141. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.d.ts +10 -0
  142. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.js +115 -0
  143. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.d.ts +1 -0
  144. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.js +25 -0
  145. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.d.ts +5 -0
  146. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.js +22 -0
  147. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.d.ts +22 -0
  148. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.js +81 -0
  149. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.d.ts +14 -0
  150. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js +22 -0
  151. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.d.ts +6 -0
  152. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.js +25 -0
  153. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.d.ts +31 -0
  154. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js +34 -0
  155. package/dist/modules/homepage/components/ScreenTime/index.d.ts +6 -0
  156. package/dist/modules/homepage/components/ScreenTime/services/api/index.d.ts +4 -0
  157. package/dist/modules/homepage/components/ScreenTime/services/api/index.js +5 -0
  158. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.d.ts +28 -0
  159. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.js +39 -0
  160. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.d.ts +23 -0
  161. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.js +41 -0
  162. package/dist/modules/homepage/components/ScreenTime/types.d.ts +30 -0
  163. package/dist/modules/homepage/components/ScreenTime/utils.d.ts +50 -0
  164. package/dist/modules/homepage/components/ScreenTime/utils.js +115 -0
  165. package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +43 -0
  166. package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +23 -0
  167. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +34 -0
  168. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +26 -0
  169. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +14 -0
  170. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +64 -0
  171. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +20 -0
  172. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +43 -0
  173. package/dist/modules/homepage/components/TabsKids/index.d.ts +3 -0
  174. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +15 -0
  175. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +21 -0
  176. package/dist/modules/homepage/components/Universalis/Universalis.d.ts +8 -0
  177. package/dist/modules/homepage/components/Universalis/Universalis.js +62 -0
  178. package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +1 -0
  179. package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +16 -0
  180. package/dist/modules/homepage/components/Universalis/index.d.ts +3 -0
  181. package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
  182. package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
  183. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
  184. package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
  185. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
  186. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
  187. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
  188. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
  189. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
  190. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
  191. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
  192. package/dist/modules/homepage/components/index.d.ts +14 -2
  193. package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.d.ts +2 -2
  194. package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.js +4 -4
  195. package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
  196. package/dist/modules/icons/components/IconAddWidget.js +12 -0
  197. package/dist/modules/icons/components/index.d.ts +1 -0
  198. package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +5 -7
  199. package/dist/modules/icons/components/nav/IconHomeBeta.js +6 -3
  200. package/dist/modules/icons/components/nav/IconMessagesBeta.js +7 -7
  201. package/dist/modules/icons/components/nav/IconMyAppsBeta.js +2 -3
  202. package/dist/modules/icons/components/nav/IconNotificationBeta.js +2 -4
  203. package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +2 -0
  204. package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +24 -10
  205. package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +1 -1
  206. package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +1 -0
  207. package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +89 -50
  208. package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +6 -0
  209. package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +53 -19
  210. package/dist/modules/multimedia/VideoRecorder/VideoRecorderToolbar.js +27 -27
  211. package/dist/modules/multimedia/VideoRecorder/useCameras.d.ts +2 -0
  212. package/dist/modules/multimedia/VideoRecorder/useCameras.js +10 -4
  213. package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
  214. package/package.json +7 -6
@@ -19,7 +19,7 @@ const Checkbox = /* @__PURE__ */ forwardRef(({
19
19
  checked,
20
20
  disabled,
21
21
  ref: refCheckbox,
22
- className: clsx(restProps.className, "form-check-input c-pointer"),
22
+ className: clsx(restProps.className, "form-check-input"),
23
23
  id
24
24
  }, inputProps = {
25
25
  ...restProps,
@@ -14,6 +14,7 @@ import useZendeskGuide from "../../hooks/useZendeskGuide/useZendeskGuide.js";
14
14
  import useCantoo from "../../hooks/useCantoo/useCantoo.js";
15
15
  import Alert from "../Alert/Alert.js";
16
16
  import ButtonBeta from "../ButtonBeta/ButtonBeta.js";
17
+ import HelpZone from "../../modules/HelpZone/HelpZone.js";
17
18
  const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/components/Header/Header.js")), Layout = ({
18
19
  children,
19
20
  headless = !1,
@@ -21,9 +22,10 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
21
22
  className,
22
23
  ...restProps
23
24
  }) => {
25
+ var _a;
24
26
  const {
25
27
  theme
26
- } = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", {
28
+ } = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", isEdificeInProductHelp = ((_a = useUiOverride("layout.helpzone")) == null ? void 0 : _a.variant) === "edifice-in-product", {
27
29
  productOverride,
28
30
  background,
29
31
  isBackgroundImageOverridden,
@@ -36,8 +38,13 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
36
38
  showCookiesConsent,
37
39
  handleConsultCookies,
38
40
  handleCloseCookiesConsent
39
- } = useCookiesConsent();
40
- useZendeskGuide(), useCantoo();
41
+ } = useCookiesConsent(), {
42
+ isReady: isHelpZoneReady,
43
+ isOpen: isHelpZoneOpen,
44
+ open: openHelpZone,
45
+ close: closeHelpZone
46
+ } = useZendeskGuide();
47
+ useCantoo();
41
48
  const classes = clsx("d-flex flex-column", {
42
49
  "bg-white": whiteBg,
43
50
  "container-fluid": !headless,
@@ -51,7 +58,8 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
51
58
  renderNotificationsOverlay,
52
59
  /* @__PURE__ */ jsx("main", { className: classes, ...restProps, children }),
53
60
  renderToaster,
54
- renderCookies
61
+ renderCookies,
62
+ isEdificeInProductHelp && /* @__PURE__ */ jsx(HelpZone, { isReady: isHelpZoneReady, isOpen: isHelpZoneOpen, onOpen: openHelpZone, onClose: closeHelpZone })
55
63
  ] });
56
64
  };
57
65
  export {
@@ -0,0 +1,40 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface MasonryItemProps {
3
+ /**
4
+ * Number of columns the item spans (capped to the number of columns).
5
+ * @default 1
6
+ */
7
+ span?: number;
8
+ children: ReactNode;
9
+ }
10
+ export interface MasonryProps extends HTMLAttributes<HTMLDivElement> {
11
+ /**
12
+ * Items to lay out. Each child is one masonry item, in reading order.
13
+ */
14
+ children: ReactNode;
15
+ /**
16
+ * Number of columns. Each column takes an equal share of the available
17
+ * width, gap excluded.
18
+ * @default 2
19
+ */
20
+ columns?: number;
21
+ /**
22
+ * Gap between columns and between items, as a spacing token (e.g. `16`).
23
+ * @default '16'
24
+ */
25
+ gap?: string;
26
+ /**
27
+ * Optional class for styling purpose
28
+ */
29
+ className?: string;
30
+ }
31
+ export declare const Masonry: {
32
+ ({ children, columns, gap, className, style, ...restProps }: MasonryProps): import("react/jsx-runtime").JSX.Element;
33
+ displayName: string;
34
+ } & {
35
+ Item: {
36
+ ({ children }: MasonryItemProps): import("react/jsx-runtime").JSX.Element;
37
+ displayName: string;
38
+ };
39
+ };
40
+ export default Masonry;
@@ -0,0 +1,50 @@
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { useRef, useState, Children, useCallback, useLayoutEffect, isValidElement } from "react";
3
+ import clsx from "clsx";
4
+ const MasonryItem = ({
5
+ children
6
+ }) => /* @__PURE__ */ jsx(Fragment, { children }), Root = ({
7
+ children,
8
+ columns = 2,
9
+ gap = "16",
10
+ className,
11
+ style,
12
+ ...restProps
13
+ }) => {
14
+ const columnCount = Math.max(1, Math.floor(columns)), gridRef = useRef(null), itemRefs = useRef(/* @__PURE__ */ new Map()), [spans, setSpans] = useState({}), items = Children.toArray(children), measure = useCallback(() => {
15
+ const grid = gridRef.current;
16
+ if (!grid) return;
17
+ const rowGap = parseFloat(getComputedStyle(grid).columnGap) || 0, next = {};
18
+ itemRefs.current.forEach((el, key) => {
19
+ next[key] = Math.ceil(el.getBoundingClientRect().height + rowGap);
20
+ }), setSpans((prev) => {
21
+ const keys = Object.keys(next);
22
+ return keys.length === Object.keys(prev).length && keys.every((key) => prev[key] === next[key]) ? prev : next;
23
+ });
24
+ }, []);
25
+ return useLayoutEffect(() => {
26
+ if (measure(), typeof ResizeObserver > "u") return;
27
+ const observer = new ResizeObserver(measure);
28
+ return gridRef.current && observer.observe(gridRef.current), itemRefs.current.forEach((el) => observer.observe(el)), () => observer.disconnect();
29
+ }, [measure, columnCount, items.length]), /* @__PURE__ */ jsx("div", { ref: gridRef, className: clsx("masonry", `column-gap-${gap}`, className), style: {
30
+ display: "grid",
31
+ gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
32
+ gridAutoRows: "1px",
33
+ alignItems: "start",
34
+ ...style
35
+ }, ...restProps, children: items.map((item, index) => {
36
+ const key = String(item.key ?? index), span = /* @__PURE__ */ isValidElement(item) && item.type === MasonryItem ? Math.min(Math.max(1, Math.floor(item.props.span ?? 1)), columnCount) : 1;
37
+ return /* @__PURE__ */ jsx("div", { ref: (el) => {
38
+ el ? itemRefs.current.set(key, el) : itemRefs.current.delete(key);
39
+ }, className: "masonry__item", "data-testid": `masonry-item-${index}`, style: {
40
+ gridColumn: `span ${span}`,
41
+ gridRowEnd: `span ${spans[key] ?? 1}`
42
+ }, children: item }, key);
43
+ }) });
44
+ }, Masonry = Object.assign(Root, {
45
+ Item: MasonryItem
46
+ });
47
+ export {
48
+ Masonry,
49
+ Masonry as default
50
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Masonry } from './Masonry';
2
+ export * from './Masonry';
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
+ import { useRef, useState } from "react";
3
4
  import { useTranslation } from "react-i18next";
4
- import SvgIconClose from "../../modules/icons/components/IconClose.js";
5
5
  import SvgIconSearch from "../../modules/icons/components/IconSearch.js";
6
6
  import FormControl from "../Form/FormControl.js";
7
- import SearchButton from "../Button/SearchButton.js";
7
+ import ButtonBeta from "../ButtonBeta/ButtonBeta.js";
8
8
  const SearchBar = ({
9
9
  isVariant = !1,
10
10
  size = "md",
@@ -15,38 +15,29 @@ const SearchBar = ({
15
15
  onChange,
16
16
  onClick,
17
17
  value,
18
- clearable = !1,
18
+ clearable = !0,
19
19
  ...restProps
20
20
  }) => {
21
+ var _a;
21
22
  const {
22
23
  t
23
- } = useTranslation(), searchbar = clsx(className, {
24
- "input-group": !isVariant,
25
- "position-relative": isVariant
26
- }), input = clsx({
27
- "border-end-0": !isVariant,
28
- "ps-48": isVariant,
29
- "searchbar-hide-native-clear": isVariant && clearable
30
- }), handleClick = () => {
24
+ } = useTranslation(), input = "searchbar__input", handleClick = () => {
31
25
  onClick == null || onClick();
32
26
  }, handleKeyDown = (e) => {
33
27
  e.key === "Enter" && (e.preventDefault(), handleClick());
34
- }, handleClear = () => {
35
- const event = {
36
- target: {
37
- value: ""
38
- }
39
- };
40
- onChange == null || onChange(event);
28
+ }, inputRef = useRef(null), isControlled = value !== void 0, [hasUncontrolledText, setHasUncontrolledText] = useState(!!((_a = restProps.defaultValue) != null && _a.toString())), hasText = isControlled ? !!value : hasUncontrolledText, [isFocused, setIsFocused] = useState(!1), handleBlur = (e) => {
29
+ e.currentTarget.contains(e.relatedTarget) || setIsFocused(!1);
30
+ }, handleMouseDown = (e) => {
31
+ e.target.closest("button") && e.preventDefault();
32
+ }, isActive = isFocused || hasText, searchbar = clsx("searchbar", `searchbar--${size}`, {
33
+ "searchbar--active": isActive
34
+ }, className), handleChange = (e) => {
35
+ isControlled || setHasUncontrolledText(!!e.target.value), onChange == null || onChange(e);
41
36
  };
42
- return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
43
- isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(SvgIconSearch, {}) }),
44
- /* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, value, disabled, onKeyDown: handleKeyDown, ...restProps }),
45
- isVariant && clearable && value && onChange && /* @__PURE__ */ jsx("button", { type: "button", onClick: handleClear, className: "position-absolute end-0 top-50 translate-middle-y pe-12 bg-transparent border-0", "aria-label": t("clear"), children: /* @__PURE__ */ jsx(SvgIconClose, { className: "color-gray", style: {
46
- width: 12,
47
- height: 12
48
- } }) }),
49
- !isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick, disabled: buttonDisabled })
37
+ return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, onFocus: () => setIsFocused(!0), onBlur: handleBlur, onMouseDown: handleMouseDown, children: [
38
+ isVariant && /* @__PURE__ */ jsx("div", { className: "searchbar__icon", children: /* @__PURE__ */ jsx(SvgIconSearch, { width: 20, height: 20 }) }),
39
+ /* @__PURE__ */ jsx(FormControl.Input, { ref: inputRef, type: "search", placeholder: t(placeholder), size, className: input, onChange: handleChange, value, disabled, onKeyDown: handleKeyDown, clearable: clearable && !disabled, ...restProps }),
40
+ !isVariant && /* @__PURE__ */ jsx(ButtonBeta, { type: "submit", className: "btn-search", "aria-label": t("search"), leftIcon: /* @__PURE__ */ jsx(SvgIconSearch, {}), onClick: handleClick, disabled: buttonDisabled || disabled })
50
41
  ] });
51
42
  };
52
43
  export {
@@ -34,6 +34,7 @@ export * from './Loading';
34
34
  export * from './LoadingScreen';
35
35
  export * from './Logo';
36
36
  export * from './LogoBeta';
37
+ export * from './Masonry';
37
38
  export * from './MediaViewer';
38
39
  export * from './Menu';
39
40
  export * from './Modal';
package/dist/homepage.js CHANGED
@@ -1,62 +1,144 @@
1
1
  import { default as default2 } from "./modules/homepage/components/AlloRegion/AlloRegion.js";
2
- import { default as default3 } from "./modules/homepage/components/Communities/Communities.js";
3
- import { default as default4 } from "./modules/homepage/components/Communities/CommunityItem.js";
4
- import { default as default5 } from "./modules/homepage/components/Communities/CommunitiesSkeleton.js";
5
- import { default as default6 } from "./modules/homepage/components/Header/Header.js";
6
- import { default as default7 } from "./modules/homepage/components/HomeCard/HomeCard.js";
7
- import { default as default8 } from "./modules/homepage/components/LastInfos/LastInfos.js";
8
- import { default as default9 } from "./modules/homepage/components/MessageFlashList/MessageFlash.js";
9
- import { default as default10 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
10
- import { default as default11 } from "./modules/homepage/components/Notifications/NotificationItem.js";
11
- import { default as default12 } from "./modules/homepage/components/Notifications/NotificationList.js";
2
+ import { default as default3 } from "./modules/homepage/components/BriefMe/BriefMe.js";
3
+ import { default as default4 } from "./modules/homepage/components/Cantine/Cantine.js";
4
+ import { default as default5 } from "./modules/homepage/components/Cantine/CantineModal.js";
5
+ import { default as default6 } from "./modules/homepage/components/Communities/Communities.js";
6
+ import { default as default7 } from "./modules/homepage/components/Communities/CommunityItem.js";
7
+ import { default as default8 } from "./modules/homepage/components/Communities/CommunitiesSkeleton.js";
8
+ import { default as default9 } from "./modules/homepage/components/Edumalin/Edumalin.js";
9
+ import { default as default10 } from "./modules/homepage/components/Edumalin/EdumalinModal.js";
10
+ import { default as default11 } from "./modules/homepage/components/GenerationHdf/GenerationHdf.js";
11
+ import { default as default12 } from "./modules/homepage/components/Header/Header.js";
12
+ import { default as default13 } from "./modules/homepage/components/HomeCard/HomeCard.js";
13
+ import { default as default14 } from "./modules/homepage/components/LastInfos/LastInfos.js";
14
+ import { MAX_DISPLAYED_RESOURCES, default as default15 } from "./modules/homepage/components/Mediacentre/Mediacentre.js";
15
+ import { default as default16 } from "./modules/homepage/components/MessageFlashList/MessageFlash.js";
16
+ import { default as default17 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
17
+ import { default as default18 } from "./modules/homepage/components/Notifications/NotificationItem.js";
18
+ import { default as default19 } from "./modules/homepage/components/Notifications/NotificationList.js";
12
19
  import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
13
- import { default as default13 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
14
- import { default as default14 } from "./modules/homepage/components/UserSpace/UserSpace.js";
20
+ import { default as default20 } from "./modules/homepage/components/Qwant/Qwant.js";
21
+ import { default as default21 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
22
+ import { TabsKids } from "./modules/homepage/components/TabsKids/components/TabsKids.js";
23
+ import { default as default22 } from "./modules/homepage/components/Universalis/Universalis.js";
24
+ import { default as default23 } from "./modules/homepage/components/UserSpace/UserSpace.js";
25
+ import { Agenda } from "./modules/homepage/components/Agenda/Agenda.js";
26
+ import { AgendaContainer } from "./modules/homepage/components/Agenda/AgendaContainer.js";
27
+ import { AgendaEventCard } from "./modules/homepage/components/Agenda/AgendaEventCard.js";
15
28
  import { AlloRegionContainer } from "./modules/homepage/components/AlloRegion/AlloRegionContainer.js";
29
+ import { BriefMeContainer } from "./modules/homepage/components/BriefMe/BriefMeContainer.js";
16
30
  import { COMMUNITIES_PREVIEW_SIZE, useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
31
+ import { CantineContainer } from "./modules/homepage/components/Cantine/CantineContainer.js";
32
+ import { CantineModalContainer } from "./modules/homepage/components/Cantine/CantineModalContainer.js";
17
33
  import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
34
+ import { EDUMALIN_TYPES } from "./modules/homepage/components/Edumalin/types.js";
35
+ import { EdumalinContainer } from "./modules/homepage/components/Edumalin/EdumalinContainer.js";
18
36
  import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
19
37
  import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
38
+ import { GenerationHdfContainer } from "./modules/homepage/components/GenerationHdf/GenerationHdfContainer.js";
20
39
  import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
21
40
  import { LastInfosList } from "./modules/homepage/components/LastInfos/LastInfosList.js";
22
41
  import { LinkForm } from "./modules/homepage/components/UsefulLinks/LinkForm.js";
42
+ import { MAX_RSS_ARTICLES, MAX_RSS_FEEDS, useRssContainer } from "./modules/homepage/components/Rss/hooks/useRssContainer.js";
23
43
  import { MAX_USEFUL_LINKS, useUsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/hooks/useUsefulLinksContainer.js";
44
+ import { MediacentreContainer } from "./modules/homepage/components/Mediacentre/MediacentreContainer.js";
24
45
  import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
46
+ import { QwantContainer } from "./modules/homepage/components/Qwant/QwantContainer.js";
47
+ import { Rss } from "./modules/homepage/components/Rss/Rss.js";
48
+ import { RssContainer } from "./modules/homepage/components/Rss/RssContainer.js";
49
+ import { RssFeedForm } from "./modules/homepage/components/Rss/RssFeedForm.js";
50
+ import { RssFeedsModal } from "./modules/homepage/components/Rss/RssFeedsModal.js";
25
51
  import { SchoolSpaceContainer } from "./modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js";
52
+ import { ScreenTime } from "./modules/homepage/components/ScreenTime/ScreenTime.js";
53
+ import { ScreenTimeContainer } from "./modules/homepage/components/ScreenTime/ScreenTimeContainer.js";
54
+ import { ScreenTimeModal } from "./modules/homepage/components/ScreenTime/ScreenTimeModal.js";
55
+ import { UniversalisContainer } from "./modules/homepage/components/Universalis/UniversalisContainer.js";
26
56
  import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLinks.js";
27
57
  import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
28
58
  import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
29
59
  import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
60
+ import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
61
+ import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
62
+ import { briefMeQueryOptions, buildGarLink, useBriefMe } from "./modules/homepage/components/BriefMe/useBriefMe.js";
63
+ import { edumalinQueryOptions, useEdumalin } from "./modules/homepage/components/Edumalin/useEdumalin.js";
64
+ import { mediacentreQueryKeys, mediacentreQueryOptions, useMediacentre } from "./modules/homepage/components/Mediacentre/hooks/useMediacentre.js";
65
+ import { useScreenTimeContainer } from "./modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js";
66
+ import { useScreenTimeModal } from "./modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js";
30
67
  export {
68
+ Agenda,
69
+ AgendaContainer,
70
+ AgendaEventCard,
31
71
  default2 as AlloRegion,
32
72
  AlloRegionContainer,
73
+ default3 as BriefMe,
74
+ BriefMeContainer,
33
75
  COMMUNITIES_PREVIEW_SIZE,
34
- default3 as Communities,
76
+ default4 as Cantine,
77
+ CantineContainer,
78
+ default5 as CantineModal,
79
+ CantineModalContainer,
80
+ default6 as Communities,
35
81
  CommunitiesContainer,
36
- default4 as CommunitiesItem,
37
- default5 as CommunitiesSkeleton,
82
+ default7 as CommunitiesItem,
83
+ default8 as CommunitiesSkeleton,
84
+ EDUMALIN_TYPES,
85
+ default9 as Edumalin,
86
+ EdumalinContainer,
87
+ default10 as EdumalinModal,
38
88
  Favorites,
39
89
  FavoritesContainer,
40
- default6 as Header,
41
- default7 as HomeCard,
42
- default8 as LastInfos,
90
+ default11 as GenerationHdf,
91
+ GenerationHdfContainer,
92
+ default12 as Header,
93
+ default13 as HomeCard,
94
+ default14 as LastInfos,
43
95
  LastInfosContainer,
44
96
  LastInfosList,
45
97
  LinkForm,
98
+ MAX_DISPLAYED_RESOURCES,
99
+ MAX_RSS_ARTICLES,
100
+ MAX_RSS_FEEDS,
46
101
  MAX_USEFUL_LINKS,
47
- default9 as MessageFlash,
48
- default10 as MessageFlashList,
102
+ default15 as Mediacentre,
103
+ MediacentreContainer,
104
+ default16 as MessageFlash,
105
+ default17 as MessageFlashList,
49
106
  MessageFlashListContainer,
50
- default11 as NotificationItem,
51
- default12 as NotificationList,
107
+ default18 as NotificationItem,
108
+ default19 as NotificationList,
52
109
  NotificationListContainer,
53
- default13 as SchoolSpace,
110
+ default20 as Qwant,
111
+ QwantContainer,
112
+ Rss,
113
+ RssContainer,
114
+ RssFeedForm,
115
+ RssFeedsModal,
116
+ default21 as SchoolSpace,
54
117
  SchoolSpaceContainer,
118
+ ScreenTime,
119
+ ScreenTimeContainer,
120
+ ScreenTimeModal,
121
+ TabsKids,
122
+ default22 as Universalis,
123
+ UniversalisContainer,
55
124
  UsefulLinks,
56
125
  UsefulLinksContainer,
57
126
  UsefulLinksModal,
58
- default14 as UserSpace,
127
+ default23 as UserSpace,
59
128
  UserSpaceContainer,
129
+ WidgetToggle,
130
+ WidgetsPersonalizationPanel,
131
+ briefMeQueryOptions,
132
+ buildGarLink,
133
+ edumalinQueryOptions,
134
+ mediacentreQueryKeys,
135
+ mediacentreQueryOptions,
136
+ useBriefMe,
60
137
  useCommunities,
138
+ useEdumalin,
139
+ useMediacentre,
140
+ useRssContainer,
141
+ useScreenTimeContainer,
142
+ useScreenTimeModal,
61
143
  useUsefulLinksContainer
62
144
  };
@@ -70,7 +70,7 @@ const useUpload = (visibility, application = "media-library") => {
70
70
  },
71
71
  url: window.location.hostname,
72
72
  file: blob,
73
- filename: getDefaultDate() ?? "filename",
73
+ filename: (metadata == null ? void 0 : metadata.filename) || getDefaultDate() || "filename",
74
74
  weight: blob.size
75
75
  },
76
76
  appCode: application,
@@ -6,9 +6,5 @@ export interface UseZendeskGuideAPI {
6
6
  open: () => void;
7
7
  close: () => void;
8
8
  }
9
- /**
10
- * Add Zendesk Guide
11
- *
12
- * @param headerColor Overrides the widget panel's header color.
13
- */
14
- export default function useZendeskGuide(headerColor?: string): UseZendeskGuideAPI;
9
+ /** Add Zendesk Guide */
10
+ export default function useZendeskGuide(): UseZendeskGuideAPI;
@@ -4,22 +4,24 @@ import { useEdificeClient } from "../../providers/EdificeClientProvider/EdificeC
4
4
  import { useEdificeTheme } from "../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
5
5
  import useUser from "../useUser/useUser.js";
6
6
  import useIsAdml from "../useIsAdml/useIsAdml.js";
7
+ import useUiOverride from "../useUiOverride/useUiOverride.js";
7
8
  import useHasWorkflow from "../useHasWorkflow/useHasWorkflow.js";
8
- function useZendeskGuide(headerColor) {
9
+ function useZendeskGuide() {
10
+ var _a;
9
11
  const {
10
12
  currentLanguage
11
13
  } = useEdificeClient(), {
12
14
  userDescription
13
15
  } = useUser(), {
14
16
  isAdml
15
- } = useIsAdml(), {
17
+ } = useIsAdml(), isEdificeInProductHelp = ((_a = useUiOverride("layout.helpzone")) == null ? void 0 : _a.variant) === "edifice-in-product", {
16
18
  theme
17
19
  } = useEdificeTheme(), isMobileView = window.innerWidth <= 768, hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = useState(""), [dataModule, setDataModule] = useState(void 0), [isReady, setIsReady] = useState(!1), [isOpen, setIsOpen] = useState(!1), open = () => {
18
- var _a;
19
- (_a = window.zE) == null || _a.call(window, "webWidget", "open");
20
+ var _a2;
21
+ (_a2 = window.zE) == null || _a2.call(window, "webWidget", "open");
20
22
  }, close = () => {
21
- var _a;
22
- (_a = window.zE) == null || _a.call(window, "webWidget", "close");
23
+ var _a2;
24
+ (_a2 = window.zE) == null || _a2.call(window, "webWidget", "close");
23
25
  }, setZendeskGuideLabels = () => {
24
26
  const modulePathnameSplit = locationPathname.split("/");
25
27
  let moduleLabel = "", labels = "";
@@ -83,8 +85,9 @@ function useZendeskGuide(headerColor) {
83
85
  }), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
84
86
  webWidget: {
85
87
  color: {
86
- theme: zendeskGuideConfig.color || "#ffc400",
87
- header: headerColor
88
+ //TODO #IMPULS-6352 to update with "edifice in product" generalization #IMPULS-6352
89
+ // theme: : zendeskGuideConfig.color || '#3030D1',
90
+ theme: isEdificeInProductHelp ? "#3030D1" : zendeskGuideConfig.color || "#3030D1"
88
91
  },
89
92
  zIndex: 3,
90
93
  launcher: {