@edifice.io/react 2.6.7-develop-integration.20261008115929 → 2.6.7-develop-b2school.20261009185039

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 (90) hide show
  1. package/dist/components/Layout/Layout.js +16 -7
  2. package/dist/components/Layout/components/Header.js +4 -4
  3. package/dist/components/Layout/components/NavLink.d.ts +3 -3
  4. package/dist/components/Layout/components/NavLink.js +5 -3
  5. package/dist/components/Tree/utilities/tree.js +1 -21
  6. package/dist/homepage.js +10 -0
  7. package/dist/hooks/index.d.ts +0 -2
  8. package/dist/hooks/useBackground/useBackground.d.ts +1 -0
  9. package/dist/hooks/useBackground/useBackground.js +2 -0
  10. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
  11. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
  12. package/dist/icons.js +404 -402
  13. package/dist/index.js +182 -194
  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/Communities/Communities.js +2 -2
  32. package/dist/modules/homepage/components/Header/Header.js +27 -11
  33. package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +5 -0
  34. package/dist/modules/homepage/components/Header/MyAppsPopover.js +28 -0
  35. package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +32 -0
  36. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
  37. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  38. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -1
  39. package/dist/modules/homepage/components/Notifications/NotificationList.js +5 -5
  40. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +2 -2
  41. package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +1 -5
  42. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +10 -12
  43. package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +3 -9
  44. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
  45. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
  46. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
  47. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
  48. package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
  49. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
  50. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
  51. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
  52. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
  53. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
  54. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
  55. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
  56. package/dist/modules/homepage/components/index.d.ts +3 -1
  57. package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
  58. package/dist/modules/icons/components/IconAddWidget.js +12 -0
  59. package/dist/modules/icons/components/index.d.ts +1 -0
  60. package/dist/modules/multimedia/FileCard/index.d.ts +0 -4
  61. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +1 -7
  62. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +0 -2
  63. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
  64. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +12 -48
  65. package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +0 -2
  66. package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -4
  67. package/dist/modules/multimedia/Workspace/Workspace.js +5 -8
  68. package/dist/modules/multimedia/index.d.ts +0 -2
  69. package/dist/multimedia.js +18 -26
  70. package/package.json +6 -6
  71. package/dist/hooks/useGoogleDriveSearch/index.d.ts +0 -1
  72. package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +0 -14
  73. package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +0 -60
  74. package/dist/hooks/useNextcloudSearch/index.d.ts +0 -1
  75. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +0 -14
  76. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +0 -64
  77. package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +0 -25
  78. package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +0 -102
  79. package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +0 -25
  80. package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +0 -102
  81. package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +0 -24
  82. package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +0 -100
  83. package/dist/modules/multimedia/GoogleDrive/index.d.ts +0 -2
  84. package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.d.ts +0 -1
  85. package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.js +0 -61
  86. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +0 -1
  87. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +0 -48
  88. package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +0 -24
  89. package/dist/modules/multimedia/Nextcloud/Nextcloud.js +0 -124
  90. package/dist/modules/multimedia/Nextcloud/index.d.ts +0 -2
@@ -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,12 +22,14 @@ 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
- isBackgroundImageOverridden
31
+ isBackgroundImageOverridden,
32
+ betaEnabled
30
33
  } = useBackground(), {
31
34
  toggleOverlay
32
35
  } = useOverlay(), toast = useToast(), {
@@ -35,22 +38,28 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
35
38
  showCookiesConsent,
36
39
  handleConsultCookies,
37
40
  handleCloseCookiesConsent
38
- } = useCookiesConsent();
39
- useZendeskGuide(), useCantoo();
41
+ } = useCookiesConsent(), {
42
+ isReady: isHelpZoneReady,
43
+ isOpen: isHelpZoneOpen,
44
+ open: openHelpZone,
45
+ close: closeHelpZone
46
+ } = useZendeskGuide();
47
+ useCantoo();
40
48
  const classes = clsx("d-flex flex-column", {
41
49
  "bg-white": whiteBg,
42
50
  "container-fluid": !headless,
43
51
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
44
52
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
45
- }, className), renderHeader = headless ? null : isHeaderV2 ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(HeaderV2, { src: theme == null ? void 0 : theme.basePath, dataProduct: override == null ? void 0 : override.theme, onNotificationsClick: toggleOverlay }) }) : /* @__PURE__ */ jsx(Header, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderNotificationsOverlay = !headless && isHeaderV2 && /* @__PURE__ */ jsx(HeaderNotificationsOverlay, {}), renderCookies = showCookiesConsent && /* @__PURE__ */ jsx(Alert, { type: "info", className: "m-12 rgpd", isConfirm: !0, position: "bottom-right", button: /* @__PURE__ */ jsx(ButtonBeta, { variant: "outline", onClick: handleConsultCookies, children: t("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t("rgpd.cookies.banner.text1") }), renderToaster = toast.renderToaster();
46
- return /* @__PURE__ */ jsxs("div", { "data-product": productOverride, "data-background": theme != null && theme.is1d ? void 0 : background, className: clsx("layout", {
53
+ }, className), renderHeader = headless ? null : isHeaderV2 ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(HeaderV2, { src: theme == null ? void 0 : theme.basePath, dataProduct: override == null ? void 0 : override.theme, onNotificationsClick: toggleOverlay }) }) : /* @__PURE__ */ jsx(Header, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderNotificationsOverlay = !headless && isHeaderV2 && /* @__PURE__ */ jsx(HeaderNotificationsOverlay, {}), renderCookies = showCookiesConsent && /* @__PURE__ */ jsx(Alert, { type: "info", className: "m-12 rgpd", isConfirm: !0, position: "bottom-right", button: /* @__PURE__ */ jsx(ButtonBeta, { variant: "outline", onClick: handleConsultCookies, children: t("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t("rgpd.cookies.banner.text1") }), renderToaster = toast.renderToaster(), isBackgroundHidden = !!(theme != null && theme.is1d || !betaEnabled);
54
+ return /* @__PURE__ */ jsxs("div", { "data-product": productOverride, "data-background": isBackgroundHidden ? void 0 : background, className: clsx("layout", {
47
55
  "layout-has-background-image": isBackgroundImageOverridden
48
56
  }), children: [
49
57
  renderHeader,
50
58
  renderNotificationsOverlay,
51
59
  /* @__PURE__ */ jsx("main", { className: classes, ...restProps, children }),
52
60
  renderToaster,
53
- renderCookies
61
+ renderCookies,
62
+ isEdificeInProductHelp && /* @__PURE__ */ jsx(HelpZone, { isReady: isHelpZoneReady, isOpen: isHelpZoneOpen, onOpen: openHelpZone, onClose: closeHelpZone })
54
63
  ] });
55
64
  };
56
65
  export {
@@ -138,7 +138,7 @@ const Header = ({
138
138
  /* @__PURE__ */ jsxs("ul", { className: "navbar-nav", children: [
139
139
  /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/timeline/timeline", translate: t("navbar.home"), children: /* @__PURE__ */ jsx(SvgIconHome, { color: "#fff" }) }) }),
140
140
  /* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: appsRef, id: popoverAppsId, "aria-haspopup": "true", "aria-expanded": isAppsHovered, children: [
141
- /* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), children: /* @__PURE__ */ jsx(SvgIconMyApps, { color: "#fff" }) }),
141
+ /* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), "data-testid": "header-my-apps-button", children: /* @__PURE__ */ jsx(SvgIconMyApps, { color: "#fff" }) }),
142
142
  /* @__PURE__ */ jsxs(Popover, { className: "top-100 widget", id: popoverAppsId, isVisible: isAppsHovered, children: [
143
143
  /* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsx(WidgetAppsBody, { bookmarkedApps }) }),
144
144
  /* @__PURE__ */ jsx(PopoverFooter, { className: "widget-footer border-top border-ghost", children: /* @__PURE__ */ jsx(WidgetAppsFooter, {}) })
@@ -174,17 +174,17 @@ const Header = ({
174
174
  /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("div", { className: "dropdown", children: [
175
175
  /* @__PURE__ */ jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsx(SvgIconRafterDown, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
176
176
  /* @__PURE__ */ jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
177
- communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", children: [
177
+ communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", "data-testid": "header-community-button", children: [
178
178
  /* @__PURE__ */ jsx(SvgIconCommunities, { className: "icon communities" }),
179
179
  /* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
180
180
  ] }) }),
181
181
  searchWorkflow ? /* @__PURE__ */ jsx(SearchEngine, {}) : null,
182
- /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/mon-compte", className: "nav-link dropdown-item", children: [
182
+ /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/userbook/mon-compte", className: "nav-link dropdown-item", "data-testid": "header-user-profile-button", children: [
183
183
  /* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }),
184
184
  /* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.myaccount") })
185
185
  ] }) }),
186
186
  /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx("hr", { className: "dropdown-divider" }) }),
187
- /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link dropdown-item", children: [
187
+ /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link dropdown-item", "data-testid": "header-logout-button", children: [
188
188
  /* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
189
189
  /* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
190
190
  ] }) })
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export interface NavLinkProps<T> {
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export interface NavLinkProps<T> extends Omit<ComponentPropsWithoutRef<'a'>, 'className' | 'translate'> {
3
3
  /**
4
4
  * href link
5
5
  */
@@ -21,4 +21,4 @@ export interface NavLinkProps<T> {
21
21
  */
22
22
  button?: boolean;
23
23
  }
24
- export declare function NavLink({ link, className, children, translate, button, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
24
+ export declare const NavLink: import('react').ForwardRefExoticComponent<NavLinkProps<string> & import('react').RefAttributes<HTMLAnchorElement>>;
@@ -1,7 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
2
3
  import clsx from "clsx";
3
4
  import VisuallyHidden from "../../VisuallyHidden/VisuallyHidden.js";
4
- function NavLink({
5
+ function NavLinkRender({
5
6
  link,
6
7
  className,
7
8
  children,
@@ -9,13 +10,14 @@ function NavLink({
9
10
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
11
  button,
11
12
  ...restProps
12
- }) {
13
+ }, ref) {
13
14
  const classes = clsx("nav-link", className);
14
- return /* @__PURE__ */ jsxs("a", { href: link, className: classes, ...restProps, children: [
15
+ return /* @__PURE__ */ jsxs("a", { ref, href: link, className: classes, ...restProps, children: [
15
16
  children,
16
17
  translate && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { className: "nav-text", children: translate }) })
17
18
  ] });
18
19
  }
20
+ const NavLink = /* @__PURE__ */ forwardRef(NavLinkRender);
19
21
  export {
20
22
  NavLink
21
23
  };
@@ -16,25 +16,6 @@ function findNodeById(data, id) {
16
16
  }
17
17
  }
18
18
  }
19
- function modifyNode(data, callback) {
20
- return doModify(data, callback) || data;
21
- }
22
- function doModify(current, callback, parent) {
23
- var _a;
24
- const result = callback(current, parent);
25
- if ((_a = result == null ? void 0 : result.children) != null && _a.length) {
26
- const children = [];
27
- for (const child of (result == null ? void 0 : result.children) || []) {
28
- const res = doModify(child, callback, result);
29
- res && children.push(res);
30
- }
31
- return {
32
- ...result,
33
- children
34
- };
35
- }
36
- return result;
37
- }
38
19
  function findPathById(tree, nodeId) {
39
20
  let path = [];
40
21
  function traverse(node, currentPath) {
@@ -59,6 +40,5 @@ function findPathById(tree, nodeId) {
59
40
  }
60
41
  export {
61
42
  findNodeById,
62
- findPathById,
63
- modifyNode
43
+ findPathById
64
44
  };
package/dist/homepage.js CHANGED
@@ -11,6 +11,9 @@ import { default as default11 } from "./modules/homepage/components/Notification
11
11
  import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
12
12
  import { default as default12 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
13
13
  import { default as default13 } from "./modules/homepage/components/UserSpace/UserSpace.js";
14
+ import { Agenda } from "./modules/homepage/components/Agenda/Agenda.js";
15
+ import { AgendaContainer } from "./modules/homepage/components/Agenda/AgendaContainer.js";
16
+ import { AgendaEventCard } from "./modules/homepage/components/Agenda/AgendaEventCard.js";
14
17
  import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
15
18
  import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
16
19
  import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
@@ -24,8 +27,13 @@ import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLin
24
27
  import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
25
28
  import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
26
29
  import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
30
+ import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
31
+ import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
27
32
  import { useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
28
33
  export {
34
+ Agenda,
35
+ AgendaContainer,
36
+ AgendaEventCard,
29
37
  default2 as Communities,
30
38
  CommunitiesContainer,
31
39
  default3 as CommunitiesItem,
@@ -52,6 +60,8 @@ export {
52
60
  UsefulLinksModal,
53
61
  default13 as UserSpace,
54
62
  UserSpaceContainer,
63
+ WidgetToggle,
64
+ WidgetsPersonalizationPanel,
55
65
  useCommunities,
56
66
  useUsefulLinksContainer
57
67
  };
@@ -12,7 +12,6 @@ export * from './useDirectory';
12
12
  export * from './useDropdown';
13
13
  export * from './useDropzone';
14
14
  export * from './useEdificeIcons';
15
- export * from './useGoogleDriveSearch';
16
15
  export * from './useHasWorkflow';
17
16
  export * from './useHover';
18
17
  export * from './useHttpErrorToast';
@@ -24,7 +23,6 @@ export * from './useIsAdmlcOrAdmc';
24
23
  export * from './useKeyPress';
25
24
  export * from './useLibraryUrl';
26
25
  export * from './useMediaLibrary';
27
- export * from './useNextcloudSearch';
28
26
  export * from './usePublicConf';
29
27
  export * from './useScreeb';
30
28
  export * from './useScrollToTop';
@@ -1,5 +1,6 @@
1
1
  export type Background = 'default' | 'pink-200' | 'yellow-200' | 'orange-200' | 'blue-200' | 'green-200';
2
2
  declare const _default: () => {
3
+ betaEnabled: boolean | undefined;
3
4
  background: Background;
4
5
  isBackgroundImageOverridden: boolean;
5
6
  productOverride: string | undefined;
@@ -1,10 +1,12 @@
1
1
  import useUiOverride from "../useUiOverride/useUiOverride.js";
2
2
  import useUserPreferences from "../useUserPreferences/useUserPreferences.js";
3
3
  const useBackground = () => {
4
+ var _a;
4
5
  const backgroundOverride = useUiOverride("layout.background"), backgroundDefault = useUiOverride("background.default"), {
5
6
  preferences
6
7
  } = useUserPreferences(), isBackgroundImageOverridden = (backgroundOverride == null ? void 0 : backgroundOverride.variant) === "image";
7
8
  return {
9
+ betaEnabled: (_a = preferences == null ? void 0 : preferences.homePage) == null ? void 0 : _a.betaEnabled,
8
10
  /* Actual background is either : user's prefered value, theme-conf overriden value or 'default' */
9
11
  background: (preferences == null ? void 0 : preferences.background) ?? (backgroundDefault == null ? void 0 : backgroundDefault.variant) ?? "default",
10
12
  isBackgroundImageOverridden,
@@ -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 theme 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: {