@edifice.io/react 2.6.9-develop-integration.20261012100537 → 2.6.9-develop-b2school.20261013113840

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 (91) hide show
  1. package/dist/components/Layout/Layout.js +12 -4
  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/RadioTile/RadioTile.d.ts +35 -0
  6. package/dist/components/RadioTile/RadioTile.js +22 -0
  7. package/dist/components/RadioTile/index.d.ts +2 -0
  8. package/dist/components/Tree/utilities/tree.js +1 -21
  9. package/dist/components/index.d.ts +1 -0
  10. package/dist/homepage.js +10 -0
  11. package/dist/hooks/index.d.ts +0 -2
  12. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -6
  13. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +11 -8
  14. package/dist/icons.js +404 -402
  15. package/dist/index.js +184 -194
  16. package/dist/modules/HelpZone/HelpZone.js +6 -8
  17. package/dist/modules/HelpZone/HelpZoneContainer.js +2 -5
  18. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
  19. package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
  20. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
  21. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
  22. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
  23. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
  24. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
  25. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
  26. package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
  27. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
  28. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
  29. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
  30. package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
  31. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
  32. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
  33. package/dist/modules/homepage/components/Header/Header.js +27 -11
  34. package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +5 -0
  35. package/dist/modules/homepage/components/Header/MyAppsPopover.js +28 -0
  36. package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +32 -0
  37. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
  38. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  39. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -1
  40. package/dist/modules/homepage/components/Notifications/NotificationList.js +5 -5
  41. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +2 -2
  42. package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +1 -5
  43. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +10 -12
  44. package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +3 -9
  45. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +6 -12
  46. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
  47. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
  48. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +3 -1
  49. package/dist/modules/homepage/components/UserSpace/UserSpace.js +13 -7
  50. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +4 -2
  51. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +3 -2
  52. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +16 -0
  53. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +15 -0
  54. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +21 -0
  55. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +47 -0
  56. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +2 -0
  57. package/dist/modules/homepage/components/index.d.ts +3 -1
  58. package/dist/modules/icons/components/IconAddWidget.d.ts +7 -0
  59. package/dist/modules/icons/components/IconAddWidget.js +12 -0
  60. package/dist/modules/icons/components/index.d.ts +1 -0
  61. package/dist/modules/multimedia/FileCard/index.d.ts +0 -4
  62. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +1 -7
  63. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +0 -2
  64. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
  65. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +12 -48
  66. package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +0 -2
  67. package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -4
  68. package/dist/modules/multimedia/Workspace/Workspace.js +5 -8
  69. package/dist/modules/multimedia/index.d.ts +0 -2
  70. package/dist/multimedia.js +18 -26
  71. package/package.json +6 -6
  72. package/dist/hooks/useGoogleDriveSearch/index.d.ts +0 -1
  73. package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +0 -14
  74. package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +0 -60
  75. package/dist/hooks/useNextcloudSearch/index.d.ts +0 -1
  76. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +0 -14
  77. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +0 -64
  78. package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +0 -25
  79. package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +0 -102
  80. package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +0 -25
  81. package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +0 -102
  82. package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +0 -24
  83. package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +0 -100
  84. package/dist/modules/multimedia/GoogleDrive/index.d.ts +0 -2
  85. package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.d.ts +0 -1
  86. package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.js +0 -61
  87. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +0 -1
  88. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +0 -48
  89. package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +0 -24
  90. package/dist/modules/multimedia/Nextcloud/Nextcloud.js +0 -124
  91. 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,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 {
@@ -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
  };
@@ -0,0 +1,35 @@
1
+ import { CSSProperties, InputHTMLAttributes, ReactNode } from 'react';
2
+ export interface RadioTileProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'children' | 'className' | 'style'> {
3
+ /**
4
+ * Label of the tile. Also used as the accessible name of the radio input.
5
+ */
6
+ label: ReactNode;
7
+ /**
8
+ * Optional image: an URL, or any React node (e.g. a background preview).
9
+ */
10
+ image?: string | ReactNode;
11
+ /**
12
+ * Layout of a tile with both an image and a label.
13
+ * Ignored when there is no image or when the label is hidden.
14
+ */
15
+ orientation?: 'horizontal' | 'vertical';
16
+ /**
17
+ * Visually hide the label (it stays available to screen readers).
18
+ * Use it with an `image` to render an image-only tile.
19
+ */
20
+ hideLabel?: boolean;
21
+ /**
22
+ * Additional CSS class names applied to the tile (root element).
23
+ */
24
+ className?: string;
25
+ /**
26
+ * Inline styles applied to the tile (root element).
27
+ */
28
+ style?: CSSProperties;
29
+ }
30
+ /**
31
+ * A radio input presented as a selectable tile, with a label, an image or both.
32
+ * Group tiles together by giving them the same `name`.
33
+ */
34
+ declare const RadioTile: import('react').ForwardRefExoticComponent<RadioTileProps & import('react').RefAttributes<HTMLInputElement>>;
35
+ export default RadioTile;
@@ -0,0 +1,22 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import clsx from "clsx";
4
+ const RadioTile = /* @__PURE__ */ forwardRef(({
5
+ label,
6
+ image,
7
+ orientation = "horizontal",
8
+ hideLabel = !1,
9
+ className,
10
+ style,
11
+ ...inputProps
12
+ }, ref) => {
13
+ const hasImage = image != null && image !== !1;
14
+ return /* @__PURE__ */ jsxs("label", { className: clsx("radio-tile", `radio-tile--${hasImage ? hideLabel ? "image" : orientation === "vertical" ? "vertical" : "horizontal" : "text"}`, className), style, children: [
15
+ /* @__PURE__ */ jsx("input", { ref, type: "radio", className: "radio-tile__input visually-hidden", ...inputProps }),
16
+ hasImage && /* @__PURE__ */ jsx("span", { className: "radio-tile__image", children: typeof image == "string" ? /* @__PURE__ */ jsx("img", { src: image, alt: "", loading: "lazy" }) : image }),
17
+ /* @__PURE__ */ jsx("span", { className: clsx("radio-tile__label", hideLabel && "visually-hidden"), children: label })
18
+ ] });
19
+ });
20
+ export {
21
+ RadioTile as default
22
+ };
@@ -0,0 +1,2 @@
1
+ export { default as RadioTile } from './RadioTile';
2
+ export * from './RadioTile';
@@ -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
  };
@@ -45,6 +45,7 @@ export * from './PreventPropagation';
45
45
  export * from './PromotionCard';
46
46
  export * from './Radio';
47
47
  export * from './RadioCard';
48
+ export * from './RadioTile';
48
49
  export * from './SearchBar';
49
50
  export * from './SegmentedControl';
50
51
  export * from './Select';
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 { COMMUNITIES_PREVIEW_SIZE, useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
15
18
  import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
16
19
  import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
@@ -25,7 +28,12 @@ import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLin
25
28
  import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
26
29
  import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
27
30
  import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
31
+ import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
32
+ import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
28
33
  export {
34
+ Agenda,
35
+ AgendaContainer,
36
+ AgendaEventCard,
29
37
  COMMUNITIES_PREVIEW_SIZE,
30
38
  default2 as Communities,
31
39
  CommunitiesContainer,
@@ -53,6 +61,8 @@ export {
53
61
  UsefulLinksModal,
54
62
  default13 as UserSpace,
55
63
  UserSpaceContainer,
64
+ WidgetToggle,
65
+ WidgetsPersonalizationPanel,
56
66
  useCommunities,
57
67
  useUsefulLinksContainer
58
68
  };
@@ -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';
@@ -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: {