@edifice.io/react 2.3.2-develop-pedago.20251001105735 → 2.3.2-develop-b2school.20251001121346
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/components/Header.js +2 -3
- package/dist/components/Layout/components/WidgetApps.js +1 -1
- package/dist/components/Layout/hooks/useHeader.js +4 -11
- package/dist/modules/editor/components/MathsModal/MathsModal.js +1 -1
- package/dist/modules/editor/hooks/useTipTapEditor.js +1 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +1 -1
- package/package.json +7 -9
|
@@ -70,8 +70,7 @@ const Header = ({
|
|
|
70
70
|
conversationWorflow,
|
|
71
71
|
searchWorkflow,
|
|
72
72
|
isCollapsed,
|
|
73
|
-
toggleCollapsedNav
|
|
74
|
-
handleLogout
|
|
73
|
+
toggleCollapsedNav
|
|
75
74
|
} = useHeader({
|
|
76
75
|
user,
|
|
77
76
|
avatar
|
|
@@ -104,7 +103,7 @@ const Header = ({
|
|
|
104
103
|
] }),
|
|
105
104
|
/* @__PURE__ */ jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
106
105
|
] }) : null,
|
|
107
|
-
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("
|
|
106
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? "/"), className: "nav-link", children: [
|
|
108
107
|
/* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
|
|
109
108
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("navbar.disconnect") })
|
|
110
109
|
] }) }),
|
|
@@ -14,7 +14,7 @@ const WidgetAppsFooter = () => {
|
|
|
14
14
|
} = useTranslation();
|
|
15
15
|
return /* @__PURE__ */ jsxs("div", { className: "widget-body d-flex flex-wrap", children: [
|
|
16
16
|
!bookmarkedApps.length && /* @__PURE__ */ jsx("div", { className: "text-dark", children: t("navbar.myapps.more") }),
|
|
17
|
-
bookmarkedApps.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index))
|
|
17
|
+
bookmarkedApps.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, className: "bookmarked-app", target: app.isExternal || app.category === "connector" ? "_blank" : void 0, children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index))
|
|
18
18
|
] });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { useState, useId, useCallback, useMemo } from "react";
|
|
2
|
-
import { odeServices } from "@edifice.io/client";
|
|
3
2
|
import { useHover } from "@uidotdev/usehooks";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
5
4
|
import { useEdificeClient } from "../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
6
|
-
import { useEdificeTheme } from "../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
7
5
|
import useBookmark from "../../../hooks/useBookmark/useBookmark.js";
|
|
8
6
|
import useHasWorkflow from "../../../hooks/useHasWorkflow/useHasWorkflow.js";
|
|
9
7
|
function useHeader({
|
|
@@ -14,15 +12,11 @@ function useHeader({
|
|
|
14
12
|
appCode
|
|
15
13
|
} = useEdificeClient(), {
|
|
16
14
|
t
|
|
17
|
-
} = useTranslation(), {
|
|
18
|
-
theme
|
|
19
|
-
} = useEdificeTheme(), title = t(appCode), [isCollapsed, setIsCollapsed] = useState(!0), [appsRef, isAppsHovered] = useHover(), popoverAppsId = useId(), popoverSearchId = useId(), userAvatar = avatar, userName = user == null ? void 0 : user.username, welcomeUser = t("welcome", {
|
|
15
|
+
} = useTranslation(), title = t(appCode), [isCollapsed, setIsCollapsed] = useState(!0), [appsRef, isAppsHovered] = useHover(), popoverAppsId = useId(), popoverSearchId = useId(), userAvatar = avatar, userName = user == null ? void 0 : user.username, welcomeUser = t("welcome", {
|
|
20
16
|
username: user == null ? void 0 : user.firstName
|
|
21
17
|
}), bookmarkedApps = useBookmark(), communityWorkflow = useHasWorkflow("net.atos.entng.community.controllers.CommunityController|view"), conversationWorflow = useHasWorkflow("org.entcore.conversation.controllers.ConversationController|view"), searchWorkflow = useHasWorkflow("fr.openent.searchengine.controllers.SearchEngineController|view"), toggleCollapsedNav = useCallback(() => {
|
|
22
18
|
setIsCollapsed(!isCollapsed);
|
|
23
|
-
}, [isCollapsed])
|
|
24
|
-
await odeServices.session().logout(), window.location.href = (theme == null ? void 0 : theme.logoutCallback) ?? "/auth/login";
|
|
25
|
-
};
|
|
19
|
+
}, [isCollapsed]);
|
|
26
20
|
return useMemo(() => ({
|
|
27
21
|
title,
|
|
28
22
|
bookmarkedApps,
|
|
@@ -37,9 +31,8 @@ function useHeader({
|
|
|
37
31
|
conversationWorflow,
|
|
38
32
|
searchWorkflow,
|
|
39
33
|
isCollapsed,
|
|
40
|
-
toggleCollapsedNav
|
|
41
|
-
|
|
42
|
-
}), [appsRef, bookmarkedApps, communityWorkflow, conversationWorflow, handleLogout, isAppsHovered, isCollapsed, popoverAppsId, popoverSearchId, searchWorkflow, title, toggleCollapsedNav, userAvatar, userName, welcomeUser]);
|
|
34
|
+
toggleCollapsedNav
|
|
35
|
+
}), [appsRef, bookmarkedApps, communityWorkflow, conversationWorflow, isAppsHovered, isCollapsed, popoverAppsId, popoverSearchId, searchWorkflow, title, toggleCollapsedNav, userAvatar, userName, welcomeUser]);
|
|
43
36
|
}
|
|
44
37
|
export {
|
|
45
38
|
useHeader as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import Mathematics from "@tiptap
|
|
3
|
+
import Mathematics from "@tiptap/extension-mathematics";
|
|
4
4
|
import { useEditor, EditorContent } from "@tiptap/react";
|
|
5
5
|
import StarterKit from "@tiptap/starter-kit";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -7,7 +7,7 @@ import { Hyperlink } from "@edifice.io/tiptap-extensions/hyperlink";
|
|
|
7
7
|
import { SpeechRecognition } from "@edifice.io/tiptap-extensions/speech-recognition";
|
|
8
8
|
import { SpeechSynthesis } from "@edifice.io/tiptap-extensions/speech-synthesis";
|
|
9
9
|
import { TableCell } from "@edifice.io/tiptap-extensions/table-cell";
|
|
10
|
-
import { Mathematics } from "@tiptap
|
|
10
|
+
import { Mathematics } from "@tiptap/extension-mathematics";
|
|
11
11
|
import Color from "@tiptap/extension-color";
|
|
12
12
|
import Focus from "@tiptap/extension-focus";
|
|
13
13
|
import FontFamily from "@tiptap/extension-font-family";
|
|
@@ -66,7 +66,7 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
66
66
|
isOnboarding ? handleCloseWithPreference() : handleCloseWithoutPreference();
|
|
67
67
|
}, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
68
68
|
] })
|
|
69
|
-
] }), document.getElementById("portal"));
|
|
69
|
+
] }), document.getElementById("portal") || document.body);
|
|
70
70
|
});
|
|
71
71
|
export {
|
|
72
72
|
OnboardingModal as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.3.2-develop-
|
|
3
|
+
"version": "2.3.2-develop-b2school.20251001121346",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"@tiptap/extension-image": "2.11.0",
|
|
91
91
|
"@tiptap/extension-link": "2.11.0",
|
|
92
92
|
"@tiptap/extension-list-item": "2.11.0",
|
|
93
|
+
"@tiptap/extension-mathematics": "2.22.0",
|
|
93
94
|
"@tiptap/extension-placeholder": "2.11.0",
|
|
94
95
|
"@tiptap/extension-subscript": "2.11.0",
|
|
95
96
|
"@tiptap/extension-superscript": "2.11.0",
|
|
@@ -130,9 +131,9 @@
|
|
|
130
131
|
"react-slugify": "^3.0.3",
|
|
131
132
|
"swiper": "^10.1.0",
|
|
132
133
|
"ua-parser-js": "^1.0.36",
|
|
133
|
-
"@edifice.io/
|
|
134
|
-
"@edifice.io/
|
|
135
|
-
"@edifice.io/
|
|
134
|
+
"@edifice.io/tiptap-extensions": "2.3.2-develop-b2school.20251001121346",
|
|
135
|
+
"@edifice.io/utilities": "2.3.2-develop-b2school.20251001121346",
|
|
136
|
+
"@edifice.io/bootstrap": "2.3.2-develop-b2school.20251001121346"
|
|
136
137
|
},
|
|
137
138
|
"devDependencies": {
|
|
138
139
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -163,8 +164,8 @@
|
|
|
163
164
|
"vite": "^5.4.11",
|
|
164
165
|
"vite-plugin-dts": "^4.1.0",
|
|
165
166
|
"vite-tsconfig-paths": "^5.0.1",
|
|
166
|
-
"@edifice.io/client": "2.3.2-develop-
|
|
167
|
-
"@edifice.io/config": "2.3.2-develop-
|
|
167
|
+
"@edifice.io/client": "2.3.2-develop-b2school.20251001121346",
|
|
168
|
+
"@edifice.io/config": "2.3.2-develop-b2school.20251001121346"
|
|
168
169
|
},
|
|
169
170
|
"peerDependencies": {
|
|
170
171
|
"@react-spring/web": "^9.7.5",
|
|
@@ -174,9 +175,6 @@
|
|
|
174
175
|
"react-hook-form": "^7.53.0",
|
|
175
176
|
"react-i18next": "^14.1.0"
|
|
176
177
|
},
|
|
177
|
-
"optionalDependencies": {
|
|
178
|
-
"@tiptap-pro/extension-mathematics": "2.2.1"
|
|
179
|
-
},
|
|
180
178
|
"publishConfig": {
|
|
181
179
|
"access": "public"
|
|
182
180
|
},
|