@edifice.io/react 2.6.11 → 2.6.12-develop-b2school.20261102112143

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 (187) hide show
  1. package/dist/components/Checkbox/Checkbox.js +1 -1
  2. package/dist/components/Dropdown/DropdownItem.js +17 -1
  3. package/dist/components/Layout/Layout.js +12 -4
  4. package/dist/components/Layout/components/Header.js +4 -4
  5. package/dist/components/Layout/components/NavLink.d.ts +3 -3
  6. package/dist/components/Layout/components/NavLink.js +5 -3
  7. package/dist/components/Masonry/Masonry.d.ts +40 -0
  8. package/dist/components/Masonry/Masonry.js +50 -0
  9. package/dist/components/Masonry/index.d.ts +2 -0
  10. package/dist/components/SearchBar/SearchBar.js +17 -26
  11. package/dist/components/Tree/components/Tree.d.ts +2 -5
  12. package/dist/components/Tree/components/Tree.js +10 -7
  13. package/dist/components/Tree/hooks/useTree.d.ts +1 -0
  14. package/dist/components/Tree/hooks/useTree.js +6 -2
  15. package/dist/components/Tree/types/index.d.ts +7 -0
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/homepage.js +87 -24
  18. package/dist/hooks/useDropdown/useDropdown.js +2 -2
  19. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
  20. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
  21. package/dist/icons.js +406 -402
  22. package/dist/index.js +2 -0
  23. package/dist/modules/HelpZone/HelpZone.js +6 -8
  24. package/dist/modules/HelpZone/HelpZoneContainer.js +2 -5
  25. package/dist/modules/editor/components/Editor/Editor.d.ts +5 -0
  26. package/dist/modules/editor/components/Editor/Editor.js +3 -0
  27. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
  28. package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
  29. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
  30. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
  31. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
  32. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
  33. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
  34. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
  35. package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
  36. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
  37. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
  38. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
  39. package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
  40. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
  41. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
  42. package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +9 -0
  43. package/dist/modules/homepage/components/BriefMe/BriefMe.js +59 -0
  44. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +4 -0
  45. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +17 -0
  46. package/dist/modules/homepage/components/BriefMe/index.d.ts +4 -0
  47. package/dist/modules/homepage/components/BriefMe/types.d.ts +17 -0
  48. package/dist/modules/homepage/components/BriefMe/types.js +8 -0
  49. package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +31 -0
  50. package/dist/modules/homepage/components/BriefMe/useBriefMe.js +51 -0
  51. package/dist/modules/homepage/components/Cantine/Cantine.d.ts +7 -0
  52. package/dist/modules/homepage/components/Cantine/Cantine.js +44 -0
  53. package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +4 -0
  54. package/dist/modules/homepage/components/Cantine/CantineContainer.js +18 -0
  55. package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +24 -0
  56. package/dist/modules/homepage/components/Cantine/CantineModal.js +88 -0
  57. package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +7 -0
  58. package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +12 -0
  59. package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +5 -0
  60. package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +22 -0
  61. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +6 -0
  62. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +28 -0
  63. package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +12 -0
  64. package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +60 -0
  65. package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +11 -0
  66. package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +20 -0
  67. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +24 -0
  68. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +65 -0
  69. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +23 -0
  70. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +43 -0
  71. package/dist/modules/homepage/components/Cantine/index.d.ts +7 -0
  72. package/dist/modules/homepage/components/Cantine/types.d.ts +42 -0
  73. package/dist/modules/homepage/components/Communities/Communities.js +4 -4
  74. package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +9 -0
  75. package/dist/modules/homepage/components/Edumalin/Edumalin.js +65 -0
  76. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +4 -0
  77. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +21 -0
  78. package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +8 -0
  79. package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +62 -0
  80. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +5 -0
  81. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +38 -0
  82. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +5 -0
  83. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +12 -0
  84. package/dist/modules/homepage/components/Edumalin/index.d.ts +7 -0
  85. package/dist/modules/homepage/components/Edumalin/types.d.ts +24 -0
  86. package/dist/modules/homepage/components/Edumalin/types.js +4 -0
  87. package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +16 -0
  88. package/dist/modules/homepage/components/Edumalin/useEdumalin.js +35 -0
  89. package/dist/modules/homepage/components/Edumalin/utils.d.ts +28 -0
  90. package/dist/modules/homepage/components/Edumalin/utils.js +56 -0
  91. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +16 -0
  92. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +65 -0
  93. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +4 -0
  94. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +12 -0
  95. package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +1 -0
  96. package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +6 -0
  97. package/dist/modules/homepage/components/GenerationHdf/index.d.ts +3 -0
  98. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +10 -0
  99. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +69 -0
  100. package/dist/modules/homepage/components/Header/AccountActionListPopover.d.ts +13 -0
  101. package/dist/modules/homepage/components/Header/AccountActionListPopover.js +26 -0
  102. package/dist/modules/homepage/components/Header/ActionItem.d.ts +38 -0
  103. package/dist/modules/homepage/components/Header/ActionItem.js +34 -0
  104. package/dist/modules/homepage/components/Header/Header.js +34 -40
  105. package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +5 -0
  106. package/dist/modules/homepage/components/Header/MyAppsPopover.js +28 -0
  107. package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +32 -0
  108. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
  109. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  110. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -1
  111. package/dist/modules/homepage/components/Notifications/NotificationList.js +7 -8
  112. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +7 -12
  113. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +7 -4
  114. package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +1 -5
  115. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +11 -13
  116. package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +3 -9
  117. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
  118. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
  119. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
  120. package/dist/modules/homepage/components/Qwant/Qwant.d.ts +4 -0
  121. package/dist/modules/homepage/components/Qwant/Qwant.js +41 -0
  122. package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +1 -0
  123. package/dist/modules/homepage/components/Qwant/QwantContainer.js +10 -0
  124. package/dist/modules/homepage/components/Qwant/index.d.ts +3 -0
  125. package/dist/modules/homepage/components/Rss/Rss.d.ts +11 -0
  126. package/dist/modules/homepage/components/Rss/Rss.js +64 -0
  127. package/dist/modules/homepage/components/Rss/RssContainer.d.ts +1 -0
  128. package/dist/modules/homepage/components/Rss/RssContainer.js +45 -0
  129. package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +13 -0
  130. package/dist/modules/homepage/components/Rss/RssFeedForm.js +69 -0
  131. package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +11 -0
  132. package/dist/modules/homepage/components/Rss/RssFeedsModal.js +58 -0
  133. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +25 -0
  134. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +43 -0
  135. package/dist/modules/homepage/components/Rss/index.d.ts +6 -0
  136. package/dist/modules/homepage/components/Rss/services/api/index.d.ts +5 -0
  137. package/dist/modules/homepage/components/Rss/services/api/index.js +5 -0
  138. package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +38 -0
  139. package/dist/modules/homepage/components/Rss/services/api/rssService.js +51 -0
  140. package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +28 -0
  141. package/dist/modules/homepage/components/Rss/services/queries/rss.js +71 -0
  142. package/dist/modules/homepage/components/Rss/types.d.ts +25 -0
  143. package/dist/modules/homepage/components/Rss/utils.d.ts +7 -0
  144. package/dist/modules/homepage/components/Rss/utils.js +19 -0
  145. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
  146. package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +43 -0
  147. package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +23 -0
  148. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +34 -0
  149. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +26 -0
  150. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +14 -0
  151. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +64 -0
  152. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +20 -0
  153. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +43 -0
  154. package/dist/modules/homepage/components/TabsKids/index.d.ts +3 -0
  155. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +15 -0
  156. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +21 -0
  157. package/dist/modules/homepage/components/Universalis/Universalis.d.ts +8 -0
  158. package/dist/modules/homepage/components/Universalis/Universalis.js +62 -0
  159. package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +1 -0
  160. package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +16 -0
  161. package/dist/modules/homepage/components/Universalis/index.d.ts +3 -0
  162. package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
  163. package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
  164. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
  165. package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
  166. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
  167. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
  168. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
  169. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
  170. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
  171. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
  172. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
  173. package/dist/modules/homepage/components/index.d.ts +11 -1
  174. package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.d.ts +2 -2
  175. package/dist/modules/homepage/{components/SchoolSpace → hooks}/useUserSchools.js +4 -4
  176. package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
  177. package/dist/modules/icons/components/IconAddWidget.js +12 -0
  178. package/dist/modules/icons/components/IconLogout.d.ts +7 -0
  179. package/dist/modules/icons/components/IconLogout.js +13 -0
  180. package/dist/modules/icons/components/index.d.ts +2 -0
  181. package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +5 -7
  182. package/dist/modules/icons/components/nav/IconHomeBeta.js +6 -3
  183. package/dist/modules/icons/components/nav/IconMessagesBeta.js +7 -7
  184. package/dist/modules/icons/components/nav/IconMyAppsBeta.js +2 -3
  185. package/dist/modules/icons/components/nav/IconNotificationBeta.js +2 -4
  186. package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
  187. package/package.json +7 -6
@@ -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: {