@edifice.io/react 2.6.7-develop-b2school.20261005112514 → 2.6.7-develop-pedago.20261005162423
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.
- package/dist/components/Layout/Layout.js +5 -17
- package/dist/homepage.js +2 -5
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +1 -3
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +3 -10
- package/dist/icons.js +402 -404
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/homepage/components/Communities/Communities.d.ts +2 -1
- package/dist/modules/homepage/components/Communities/Communities.js +14 -13
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +1 -1
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +9 -5
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +4 -7
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +4 -1
- package/dist/modules/homepage/components/Communities/useCommunities.js +8 -3
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +2 -2
- package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +1 -3
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +7 -13
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +2 -4
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +2 -3
- package/dist/modules/homepage/components/index.d.ts +1 -2
- package/dist/modules/icons/components/index.d.ts +0 -1
- package/package.json +6 -6
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +0 -16
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +0 -15
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +0 -21
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +0 -47
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +0 -2
- package/dist/modules/icons/components/IconAddWidget.d.ts +0 -7
- package/dist/modules/icons/components/IconAddWidget.js +0 -12
|
@@ -14,22 +14,16 @@ 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
|
-
|
|
18
|
-
const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/components/Header/Header.js"));
|
|
19
|
-
function getHeaderColor() {
|
|
20
|
-
return getComputedStyle(document.documentElement).getPropertyValue("--primitive-blue-400").trim();
|
|
21
|
-
}
|
|
22
|
-
const Layout = ({
|
|
17
|
+
const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/components/Header/Header.js")), Layout = ({
|
|
23
18
|
children,
|
|
24
19
|
headless = !1,
|
|
25
20
|
whiteBg = !0,
|
|
26
21
|
className,
|
|
27
22
|
...restProps
|
|
28
23
|
}) => {
|
|
29
|
-
var _a;
|
|
30
24
|
const {
|
|
31
25
|
theme
|
|
32
|
-
} = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2",
|
|
26
|
+
} = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", {
|
|
33
27
|
productOverride,
|
|
34
28
|
background,
|
|
35
29
|
isBackgroundImageOverridden,
|
|
@@ -42,13 +36,8 @@ const Layout = ({
|
|
|
42
36
|
showCookiesConsent,
|
|
43
37
|
handleConsultCookies,
|
|
44
38
|
handleCloseCookiesConsent
|
|
45
|
-
} = useCookiesConsent()
|
|
46
|
-
|
|
47
|
-
isOpen: isHelpZoneOpen,
|
|
48
|
-
open: openHelpZone,
|
|
49
|
-
close: closeHelpZone
|
|
50
|
-
} = useZendeskGuide(isEdificeInProductHelp ? getHeaderColor() : void 0);
|
|
51
|
-
useCantoo();
|
|
39
|
+
} = useCookiesConsent();
|
|
40
|
+
useZendeskGuide(), useCantoo();
|
|
52
41
|
const classes = clsx("d-flex flex-column", {
|
|
53
42
|
"bg-white": whiteBg,
|
|
54
43
|
"container-fluid": !headless,
|
|
@@ -62,8 +51,7 @@ const Layout = ({
|
|
|
62
51
|
renderNotificationsOverlay,
|
|
63
52
|
/* @__PURE__ */ jsx("main", { className: classes, ...restProps, children }),
|
|
64
53
|
renderToaster,
|
|
65
|
-
renderCookies
|
|
66
|
-
isEdificeInProductHelp && /* @__PURE__ */ jsx(HelpZone, { isReady: isHelpZoneReady, isOpen: isHelpZoneOpen, onOpen: openHelpZone, onClose: closeHelpZone })
|
|
54
|
+
renderCookies
|
|
67
55
|
] });
|
|
68
56
|
};
|
|
69
57
|
export {
|
package/dist/homepage.js
CHANGED
|
@@ -11,6 +11,7 @@ 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 { COMMUNITIES_PREVIEW_SIZE, useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
|
|
14
15
|
import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
|
|
15
16
|
import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
|
|
16
17
|
import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
|
|
@@ -24,10 +25,8 @@ import { UsefulLinks } from "./modules/homepage/components/UsefulLinks/UsefulLin
|
|
|
24
25
|
import { UsefulLinksContainer } from "./modules/homepage/components/UsefulLinks/UsefulLinksContainer.js";
|
|
25
26
|
import { UsefulLinksModal } from "./modules/homepage/components/UsefulLinks/UsefulLinksModal.js";
|
|
26
27
|
import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
|
|
27
|
-
import { WidgetToggle } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js";
|
|
28
|
-
import { WidgetsPersonalizationPanel } from "./modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js";
|
|
29
|
-
import { useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
|
|
30
28
|
export {
|
|
29
|
+
COMMUNITIES_PREVIEW_SIZE,
|
|
31
30
|
default2 as Communities,
|
|
32
31
|
CommunitiesContainer,
|
|
33
32
|
default3 as CommunitiesItem,
|
|
@@ -54,8 +53,6 @@ export {
|
|
|
54
53
|
UsefulLinksModal,
|
|
55
54
|
default13 as UserSpace,
|
|
56
55
|
UserSpaceContainer,
|
|
57
|
-
WidgetToggle,
|
|
58
|
-
WidgetsPersonalizationPanel,
|
|
59
56
|
useCommunities,
|
|
60
57
|
useUsefulLinksContainer
|
|
61
58
|
};
|
|
@@ -9,8 +9,6 @@ export interface UseZendeskGuideAPI {
|
|
|
9
9
|
/**
|
|
10
10
|
* Add Zendesk Guide
|
|
11
11
|
*
|
|
12
|
-
* @param headerColor Overrides the widget panel's theme color.
|
|
13
|
-
* across renders (e.g. once resolved from async platform config) — the
|
|
14
|
-
* widget is updated in place, no need to keep it stable.
|
|
12
|
+
* @param headerColor Overrides the widget panel's theme color.
|
|
15
13
|
*/
|
|
16
14
|
export default function useZendeskGuide(headerColor?: string): UseZendeskGuideAPI;
|
|
@@ -83,7 +83,8 @@ function useZendeskGuide(headerColor) {
|
|
|
83
83
|
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
84
84
|
webWidget: {
|
|
85
85
|
color: {
|
|
86
|
-
theme:
|
|
86
|
+
theme: zendeskGuideConfig.color || "#ffc400",
|
|
87
|
+
header: headerColor
|
|
87
88
|
},
|
|
88
89
|
zIndex: 3,
|
|
89
90
|
launcher: {
|
|
@@ -116,15 +117,7 @@ function useZendeskGuide(headerColor) {
|
|
|
116
117
|
};
|
|
117
118
|
}
|
|
118
119
|
})();
|
|
119
|
-
}, [hasSupportWorkflow]),
|
|
120
|
-
!isReady || headerColor === void 0 || window.zE("webWidget", "updateSettings", {
|
|
121
|
-
webWidget: {
|
|
122
|
-
color: {
|
|
123
|
-
theme: headerColor
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}, [headerColor, isReady]), {
|
|
120
|
+
}, [hasSupportWorkflow]), {
|
|
128
121
|
isReady,
|
|
129
122
|
isOpen,
|
|
130
123
|
open,
|