@edifice.io/react 2.6.3-feat-INTEG-1924-port-react-nextcloud-filetree.20260828144653 → 2.6.4-develop-integration-demo.20260901111601
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/Badge/Badge.d.ts +6 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Layout/components/Header.js +0 -6
- package/dist/components/Layout/hooks/useHeader.js +2 -3
- package/dist/components/PageLayout/PageLayout.js +4 -1
- package/dist/components/Tree/utilities/tree.js +1 -21
- package/dist/homepage.js +33 -19
- package/dist/hooks/index.d.ts +0 -1
- package/dist/index.js +146 -152
- package/dist/modules/homepage/components/Communities/Communities.js +32 -0
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +23 -0
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +32 -0
- package/dist/modules/homepage/components/Communities/CommunityItem.js +27 -0
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +8 -4
- package/dist/modules/homepage/components/Communities/useCommunities.js +25 -0
- package/dist/modules/homepage/components/UserSpace/hooks/useChildren.js +1 -1
- package/dist/modules/homepage/components/UserSpace/index.d.ts +1 -0
- package/dist/modules/homepage/components/index.d.ts +1 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +0 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +5 -19
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -2
- package/dist/modules/multimedia/index.d.ts +0 -1
- package/dist/multimedia.js +12 -16
- package/package.json +6 -6
- package/dist/hooks/useNextcloudSearch/index.d.ts +0 -1
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +0 -12
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +0 -57
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +0 -25
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +0 -102
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +0 -35
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +0 -24
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +0 -114
- package/dist/modules/multimedia/Nextcloud/index.d.ts +0 -2
|
@@ -6,6 +6,11 @@ export type NotificationBadgeVariant = {
|
|
|
6
6
|
type: 'notification';
|
|
7
7
|
level: 'success' | 'warning' | 'danger' | 'info';
|
|
8
8
|
};
|
|
9
|
+
/** Badge variant : status */
|
|
10
|
+
export type StatusBadgeVariant = {
|
|
11
|
+
type: 'status';
|
|
12
|
+
level: 'validate' | 'success' | 'warning' | 'danger' | 'info';
|
|
13
|
+
};
|
|
9
14
|
/** Badge variant : content */
|
|
10
15
|
export type ContentBadgeVariant = {
|
|
11
16
|
type: 'content';
|
|
@@ -49,7 +54,7 @@ export type AppVersionBadgeVariant = {
|
|
|
49
54
|
color?: string;
|
|
50
55
|
app?: IWebApp;
|
|
51
56
|
};
|
|
52
|
-
export type BadgeVariants = NotificationBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant | AppVersionBadgeVariant;
|
|
57
|
+
export type BadgeVariants = NotificationBadgeVariant | StatusBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant | AppVersionBadgeVariant;
|
|
53
58
|
export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
|
|
54
59
|
/**
|
|
55
60
|
* Badge variant : notification, link or profile (Teacher|Student|Relative|Personnel)
|
|
@@ -21,7 +21,7 @@ const Badge = /* @__PURE__ */ forwardRef(({
|
|
|
21
21
|
const colorAppClassName = getIconClass(variant.app), backgroundLightAppClassName = getBackgroundLightIconClass(variant.app), borderAppClassName = getBorderIconClass(variant.app);
|
|
22
22
|
appVersionBadgeColorClassName = `${colorAppClassName} ${backgroundLightAppClassName} ${borderAppClassName}`;
|
|
23
23
|
}
|
|
24
|
-
const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "appVersion" && appVersionBadgeColorClassName, className);
|
|
24
|
+
const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "status" && `badge-status badge-status-${variant.level} caption fw-normal`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "appVersion" && appVersionBadgeColorClassName, className);
|
|
25
25
|
return /* @__PURE__ */ jsxs("span", { ref, className: classes, ...restProps, children: [
|
|
26
26
|
variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
|
|
27
27
|
variant.type === "appVersion" && (children ?? "BÊTA"),
|
|
@@ -5,7 +5,6 @@ import { useEdificeClient } from "../../../providers/EdificeClientProvider/Edifi
|
|
|
5
5
|
import { useEdificeTheme } from "../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
6
6
|
import SvgIconRafterDown from "../../../modules/icons/components/IconRafterDown.js";
|
|
7
7
|
import SvgIconCommunities from "../../../modules/icons/components/nav/IconCommunities.js";
|
|
8
|
-
import SvgIconCommunity from "../../../modules/icons/components/nav/IconCommunity.js";
|
|
9
8
|
import SvgIconDisconnect from "../../../modules/icons/components/nav/IconDisconnect.js";
|
|
10
9
|
import SvgIconHome from "../../../modules/icons/components/nav/IconHome.js";
|
|
11
10
|
import SvgIconMyApps from "../../../modules/icons/components/nav/IconMyApps.js";
|
|
@@ -67,7 +66,6 @@ const Header = ({
|
|
|
67
66
|
userAvatar,
|
|
68
67
|
userName,
|
|
69
68
|
welcomeUser,
|
|
70
|
-
communityWorkflow,
|
|
71
69
|
communitiesWorkflow,
|
|
72
70
|
conversationWorflow,
|
|
73
71
|
searchWorkflow,
|
|
@@ -176,10 +174,6 @@ const Header = ({
|
|
|
176
174
|
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("div", { className: "dropdown", children: [
|
|
177
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" }) }),
|
|
178
176
|
/* @__PURE__ */ jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
179
|
-
communityWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/community", className: "nav-link dropdown-item", children: [
|
|
180
|
-
/* @__PURE__ */ jsx(SvgIconCommunity, { className: "icon community" }),
|
|
181
|
-
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
|
|
182
|
-
] }) }),
|
|
183
177
|
communitiesWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { href: "/communities", className: "nav-link dropdown-item", children: [
|
|
184
178
|
/* @__PURE__ */ jsx(SvgIconCommunities, { className: "icon communities" }),
|
|
185
179
|
/* @__PURE__ */ jsx("span", { className: "nav-text", children: t("navbar.community") })
|
|
@@ -14,7 +14,7 @@ function useHeader({
|
|
|
14
14
|
t
|
|
15
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", {
|
|
16
16
|
username: user == null ? void 0 : user.firstName
|
|
17
|
-
}), bookmarkedApps = useBookmark(),
|
|
17
|
+
}), bookmarkedApps = useBookmark(), communitiesWorkflow = useHasWorkflow("community.access"), conversationWorflow = useHasWorkflow("org.entcore.conversation.controllers.ConversationController|view"), searchWorkflow = useHasWorkflow("fr.openent.searchengine.controllers.SearchEngineController|view"), toggleCollapsedNav = useCallback(() => {
|
|
18
18
|
setIsCollapsed(!isCollapsed);
|
|
19
19
|
}, [isCollapsed]);
|
|
20
20
|
return useMemo(() => ({
|
|
@@ -27,13 +27,12 @@ function useHeader({
|
|
|
27
27
|
userAvatar,
|
|
28
28
|
userName,
|
|
29
29
|
welcomeUser,
|
|
30
|
-
communityWorkflow,
|
|
31
30
|
communitiesWorkflow,
|
|
32
31
|
conversationWorflow,
|
|
33
32
|
searchWorkflow,
|
|
34
33
|
isCollapsed,
|
|
35
34
|
toggleCollapsedNav
|
|
36
|
-
}), [appsRef, bookmarkedApps, communitiesWorkflow,
|
|
35
|
+
}), [appsRef, bookmarkedApps, communitiesWorkflow, conversationWorflow, isAppsHovered, isCollapsed, popoverAppsId, popoverSearchId, searchWorkflow, title, toggleCollapsedNav, userAvatar, userName, welcomeUser]);
|
|
37
36
|
}
|
|
38
37
|
export {
|
|
39
38
|
useHeader as default
|
|
@@ -8,6 +8,7 @@ import PageLayoutOverlay from "./components/PageLayoutOverlay.js";
|
|
|
8
8
|
import PageLayoutSidebarLeft from "./components/PageLayoutSidebarLeft.js";
|
|
9
9
|
import PageLayoutSidebarRight from "./components/PageLayoutSidebarRight.js";
|
|
10
10
|
import { PageLayoutContext } from "./PageLayoutContext.js";
|
|
11
|
+
import useZendeskGuide from "../../hooks/useZendeskGuide/useZendeskGuide.js";
|
|
11
12
|
function analyzeChildren(children) {
|
|
12
13
|
let hasLeftSidebar = !1, hasRightSidebar = !1, breadcrumb = null, overlay = null;
|
|
13
14
|
const headerChildren = [], mainChildren = [];
|
|
@@ -58,7 +59,9 @@ const Root = ({
|
|
|
58
59
|
variant,
|
|
59
60
|
scrollMode,
|
|
60
61
|
noPadding
|
|
61
|
-
}), [variant, scrollMode, noPadding])
|
|
62
|
+
}), [variant, scrollMode, noPadding]);
|
|
63
|
+
useZendeskGuide();
|
|
64
|
+
const {
|
|
62
65
|
hasLeftSidebar,
|
|
63
66
|
hasRightSidebar,
|
|
64
67
|
breadcrumb,
|
|
@@ -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
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/homepage/components/
|
|
2
|
-
import { default as default3 } from "./modules/homepage/components/
|
|
3
|
-
import { default as default4 } from "./modules/homepage/components/
|
|
4
|
-
import { default as default5 } from "./modules/homepage/components/
|
|
5
|
-
import { default as default6 } from "./modules/homepage/components/
|
|
6
|
-
import { default as default7 } from "./modules/homepage/components/
|
|
7
|
-
import { default as default8 } from "./modules/homepage/components/
|
|
1
|
+
import { default as default2 } from "./modules/homepage/components/Communities/Communities.js";
|
|
2
|
+
import { default as default3 } from "./modules/homepage/components/Communities/CommunityItem.js";
|
|
3
|
+
import { default as default4 } from "./modules/homepage/components/Communities/CommunitiesSkeleton.js";
|
|
4
|
+
import { default as default5 } from "./modules/homepage/components/Header/Header.js";
|
|
5
|
+
import { default as default6 } from "./modules/homepage/components/HomeCard/HomeCard.js";
|
|
6
|
+
import { default as default7 } from "./modules/homepage/components/LastInfos/LastInfos.js";
|
|
7
|
+
import { default as default8 } from "./modules/homepage/components/MessageFlashList/MessageFlash.js";
|
|
8
|
+
import { default as default9 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
9
|
+
import { default as default10 } from "./modules/homepage/components/Notifications/NotificationItem.js";
|
|
10
|
+
import { default as default11 } from "./modules/homepage/components/Notifications/NotificationList.js";
|
|
8
11
|
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
12
|
+
import { default as default12 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
13
|
+
import { default as default13 } from "./modules/homepage/components/UserSpace/UserSpace.js";
|
|
14
|
+
import { CommunitiesContainer } from "./modules/homepage/components/Communities/CommunitiesContainer.js";
|
|
11
15
|
import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
|
|
12
16
|
import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
|
|
13
17
|
import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
|
|
@@ -15,22 +19,32 @@ import { LastInfosList } from "./modules/homepage/components/LastInfos/LastInfos
|
|
|
15
19
|
import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
|
|
16
20
|
import { SchoolSpaceContainer } from "./modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js";
|
|
17
21
|
import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
|
|
22
|
+
import { childrenQueryKeys, childrenQueryOptions, useChildren } from "./modules/homepage/components/UserSpace/hooks/useChildren.js";
|
|
23
|
+
import { useCommunities } from "./modules/homepage/components/Communities/useCommunities.js";
|
|
18
24
|
export {
|
|
25
|
+
default2 as Communities,
|
|
26
|
+
CommunitiesContainer,
|
|
27
|
+
default3 as CommunitiesItem,
|
|
28
|
+
default4 as CommunitiesSkeleton,
|
|
19
29
|
Favorites,
|
|
20
30
|
FavoritesContainer,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
default5 as Header,
|
|
32
|
+
default6 as HomeCard,
|
|
33
|
+
default7 as LastInfos,
|
|
24
34
|
LastInfosContainer,
|
|
25
35
|
LastInfosList,
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
default8 as MessageFlash,
|
|
37
|
+
default9 as MessageFlashList,
|
|
28
38
|
MessageFlashListContainer,
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
default10 as NotificationItem,
|
|
40
|
+
default11 as NotificationList,
|
|
31
41
|
NotificationListContainer,
|
|
32
|
-
|
|
42
|
+
default12 as SchoolSpace,
|
|
33
43
|
SchoolSpaceContainer,
|
|
34
|
-
|
|
35
|
-
UserSpaceContainer
|
|
44
|
+
default13 as UserSpace,
|
|
45
|
+
UserSpaceContainer,
|
|
46
|
+
childrenQueryKeys,
|
|
47
|
+
childrenQueryOptions,
|
|
48
|
+
useChildren,
|
|
49
|
+
useCommunities
|
|
36
50
|
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export * from './useIsAdmlcOrAdmc';
|
|
|
22
22
|
export * from './useKeyPress';
|
|
23
23
|
export * from './useLibraryUrl';
|
|
24
24
|
export * from './useMediaLibrary';
|
|
25
|
-
export * from './useNextcloudSearch';
|
|
26
25
|
export * from './usePublicConf';
|
|
27
26
|
export * from './useScreeb';
|
|
28
27
|
export * from './useScrollToTop';
|
package/dist/index.js
CHANGED
|
@@ -44,82 +44,79 @@ import { default as default42 } from "./components/LogoBeta/LogoBeta.js";
|
|
|
44
44
|
import { default as default43 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
45
45
|
import { default as default44 } from "./components/MediaViewer/MediaViewer.js";
|
|
46
46
|
import { default as default45 } from "./components/Modal/Modal.js";
|
|
47
|
-
import { default as default46 } from "./modules/
|
|
48
|
-
import { default as default47 } from "./
|
|
49
|
-
import { default as default48 } from "./
|
|
50
|
-
import { default as default49 } from "./components/
|
|
51
|
-
import { default as default50 } from "./
|
|
52
|
-
import { default as default51
|
|
53
|
-
import { default as default52 } from "./
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54 } from "./components/
|
|
56
|
-
import { default as default55 } from "./components/
|
|
57
|
-
import { default as default56 } from "./components/
|
|
58
|
-
import { default as default57 } from "./
|
|
59
|
-
import { default as default58 } from "./
|
|
60
|
-
import { default as default59 } from "./modules/modals/ShareModal/
|
|
61
|
-
import { default as default60 } from "./
|
|
62
|
-
import { default as default61 } from "./
|
|
63
|
-
import { default as default62 } from "./components/
|
|
64
|
-
import { default as default63 } from "./components/
|
|
65
|
-
import { default as default64 } from "./components/
|
|
66
|
-
import { default as default65 } from "./components/
|
|
67
|
-
import { default as default66 } from "./components/
|
|
68
|
-
import { default as default67 } from "./components/
|
|
69
|
-
import { default as default68 } from "./components/
|
|
70
|
-
import { default as default69 } from "./components/
|
|
71
|
-
import { default as default70 } from "./
|
|
72
|
-
import { default as default71 } from "./
|
|
73
|
-
import { default as default72 } from "./modules/multimedia/
|
|
74
|
-
import { default as default73 } from "./modules/multimedia/
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./modules/multimedia/
|
|
77
|
-
import { default as default76 } from "./
|
|
78
|
-
import { default as default77 } from "./
|
|
79
|
-
import { default as default78 } from "./
|
|
80
|
-
import { default as default79 } from "./hooks/
|
|
81
|
-
import { default as default80 } from "./hooks/
|
|
82
|
-
import { default as default81 } from "./hooks/
|
|
83
|
-
import { default as default82 } from "./hooks/
|
|
84
|
-
import { default as default83 } from "./hooks/
|
|
85
|
-
import { default as default84 } from "./hooks/
|
|
86
|
-
import { default as default85 } from "./hooks/
|
|
87
|
-
import { default as default86 } from "./hooks/
|
|
88
|
-
import { default as default87 } from "./hooks/
|
|
89
|
-
import { default as default88 } from "./hooks/
|
|
90
|
-
import { default as default89 } from "./hooks/
|
|
91
|
-
import { default as default90 } from "./hooks/
|
|
92
|
-
import { default as default91 } from "./hooks/
|
|
93
|
-
import { default as default92 } from "./hooks/
|
|
94
|
-
import { default as default93 } from "./hooks/
|
|
95
|
-
import { default as default94 } from "./hooks/
|
|
96
|
-
import { default as default95 } from "./hooks/
|
|
97
|
-
import { default as default96 } from "./hooks/
|
|
98
|
-
import { default as default97 } from "./hooks/
|
|
99
|
-
import { default as default98 } from "./hooks/
|
|
100
|
-
import { default as default99 } from "./hooks/
|
|
101
|
-
import { default as default100 } from "./hooks/
|
|
102
|
-
import { default as default101 } from "./hooks/
|
|
103
|
-
import { default as default102 } from "./hooks/
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./hooks/
|
|
106
|
-
import { default as default105 } from "./
|
|
107
|
-
import { default as default106 } from "./hooks/
|
|
108
|
-
import { default as default107 } from "./hooks/
|
|
109
|
-
import { default as default108 } from "./hooks/
|
|
110
|
-
import { default as default109 } from "./hooks/
|
|
111
|
-
import { default as default110 } from "./hooks/
|
|
112
|
-
import { default as default111 } from "./hooks/
|
|
113
|
-
import { default as default112 } from "./
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
115
|
-
import { default as default114 } from "./hooks/
|
|
116
|
-
import { default as default115 } from "./hooks/
|
|
117
|
-
import { default as default116 } from "./hooks/
|
|
118
|
-
import { default as default117 } from "./hooks/
|
|
119
|
-
import {
|
|
120
|
-
import { default as default119 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
121
|
-
import { default as default120 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
122
|
-
import { default as default121 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
47
|
+
import { default as default46 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
48
|
+
import { default as default47 } from "./components/PageLayout/PageLayout.js";
|
|
49
|
+
import { default as default48 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
50
|
+
import { default as default49, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
51
|
+
import { default as default50 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
52
|
+
import { default as default51 } from "./components/Radio/Radio.js";
|
|
53
|
+
import { default as default52 } from "./components/RadioCard/RadioCard.js";
|
|
54
|
+
import { default as default53 } from "./components/SearchBar/SearchBar.js";
|
|
55
|
+
import { default as default54 } from "./components/Button/SearchButton.js";
|
|
56
|
+
import { default as default55 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
57
|
+
import { default as default56 } from "./components/Select/Select.js";
|
|
58
|
+
import { default as default57 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
59
|
+
import { default as default58 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
60
|
+
import { default as default59 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
61
|
+
import { default as default60 } from "./components/Tree/components/SortableTree.js";
|
|
62
|
+
import { default as default61 } from "./components/StackedGroup/StackedGroup.js";
|
|
63
|
+
import { default as default62 } from "./components/Stepper/Stepper.js";
|
|
64
|
+
import { default as default63 } from "./components/Switch/Switch.js";
|
|
65
|
+
import { default as default64 } from "./components/Table/components/Table.js";
|
|
66
|
+
import { default as default65 } from "./components/TextArea/TextArea.js";
|
|
67
|
+
import { default as default66 } from "./components/Skeleton/TextSkeleton.js";
|
|
68
|
+
import { default as default67 } from "./components/Tooltip/Tooltip.js";
|
|
69
|
+
import { default as default68 } from "./components/Tree/components/Tree.js";
|
|
70
|
+
import { default as default69 } from "./components/TreeView/TreeView.js";
|
|
71
|
+
import { default as default70 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
72
|
+
import { default as default71 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
73
|
+
import { default as default72 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
74
|
+
import { default as default73 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
75
|
+
import { default as default74 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
76
|
+
import { default as default75 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
77
|
+
import { default as default76 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useBookmark/useBookmark.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useCantoo/useCantoo.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useConversation/useConversation.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useDate/useDate.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useDebounce/useDebounce.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useDirectory/useDirectory.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useDropdown/useDropdown.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useDropzone/useDropzone.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useHover/useHover.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useImage/useImage.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
101
|
+
import { default as default100 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
103
|
+
import { default as default102 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useTitle/useTitle.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useToast/useToast.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useToggle/useToggle.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
110
|
+
import { default as default109 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useUpload/useUpload.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useUser/useUser.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
116
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default115 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
118
|
+
import { default as default117 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
119
|
+
import { default as default118 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
123
120
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
124
121
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
125
122
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -228,57 +225,55 @@ export {
|
|
|
228
225
|
Menu,
|
|
229
226
|
MockedProvider,
|
|
230
227
|
default45 as Modal,
|
|
231
|
-
default46 as
|
|
232
|
-
default47 as
|
|
233
|
-
default48 as OnboardingModal,
|
|
234
|
-
default49 as PageLayout,
|
|
228
|
+
default46 as OnboardingModal,
|
|
229
|
+
default47 as PageLayout,
|
|
235
230
|
PageLayoutContext,
|
|
236
231
|
Pagination,
|
|
237
232
|
Popover,
|
|
238
233
|
PopoverBody,
|
|
239
234
|
PopoverFooter,
|
|
240
235
|
PopoverHeader,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
236
|
+
default48 as PreventPropagation,
|
|
237
|
+
default49 as PromotionCard,
|
|
238
|
+
default50 as PublishModal,
|
|
239
|
+
default51 as Radio,
|
|
240
|
+
default52 as RadioCard,
|
|
246
241
|
ResourceModal,
|
|
247
242
|
Root,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
243
|
+
default53 as SearchBar,
|
|
244
|
+
default54 as SearchButton,
|
|
245
|
+
default55 as SegmentedControl,
|
|
246
|
+
default56 as Select,
|
|
247
|
+
default57 as ShareBlog,
|
|
248
|
+
default58 as ShareModal,
|
|
249
|
+
default59 as ShareResources,
|
|
250
|
+
default60 as SortableTree,
|
|
251
|
+
default61 as StackedGroup,
|
|
252
|
+
default62 as Stepper,
|
|
253
|
+
default63 as Switch,
|
|
254
|
+
default64 as Table,
|
|
260
255
|
Tabs,
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
default65 as TextArea,
|
|
257
|
+
default66 as TextSkeleton,
|
|
263
258
|
Toolbar,
|
|
264
|
-
|
|
265
|
-
|
|
259
|
+
default67 as Tooltip,
|
|
260
|
+
default68 as Tree,
|
|
266
261
|
TreeNode,
|
|
267
262
|
TreeNodeFolderWrapper,
|
|
268
|
-
|
|
263
|
+
default69 as TreeView,
|
|
269
264
|
Upload,
|
|
270
|
-
|
|
271
|
-
|
|
265
|
+
default70 as UploadCard,
|
|
266
|
+
default71 as UploadFiles,
|
|
272
267
|
UserRightsList,
|
|
273
268
|
UserSearch,
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
default72 as VideoEmbed,
|
|
270
|
+
default73 as VideoRecorder,
|
|
276
271
|
VisibleType,
|
|
277
|
-
|
|
272
|
+
default74 as VisuallyHidden,
|
|
278
273
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
279
274
|
WORKSPACE_USER_FOLDER_ID,
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
default75 as Workspace,
|
|
276
|
+
default76 as WorkspaceFolders,
|
|
282
277
|
addNode,
|
|
283
278
|
arrayUnique,
|
|
284
279
|
buildTree,
|
|
@@ -309,58 +304,57 @@ export {
|
|
|
309
304
|
setRef,
|
|
310
305
|
updateNode,
|
|
311
306
|
updateParentIds,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
307
|
+
default77 as useBookmark,
|
|
308
|
+
default78 as useBreakpoint,
|
|
309
|
+
default79 as useBrowserInfo,
|
|
310
|
+
default80 as useCantoo,
|
|
316
311
|
useCheckable,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
312
|
+
default81 as useClickOutside,
|
|
313
|
+
default82 as useConversation,
|
|
314
|
+
default83 as useDate,
|
|
315
|
+
default84 as useDebounce,
|
|
316
|
+
default85 as useDirectory,
|
|
317
|
+
default86 as useDropdown,
|
|
318
|
+
default87 as useDropzone,
|
|
324
319
|
useDropzoneContext,
|
|
325
320
|
useEdificeClient,
|
|
326
|
-
|
|
321
|
+
default88 as useEdificeIcons,
|
|
327
322
|
useEdificeTheme,
|
|
328
323
|
useFileToAttachment,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
default102 as useNextcloudSearch,
|
|
324
|
+
default89 as useHasWorkflow,
|
|
325
|
+
default90 as useHover,
|
|
326
|
+
default91 as useHttpErrorToast,
|
|
327
|
+
default92 as useImage,
|
|
328
|
+
default93 as useInfiniteScroll,
|
|
329
|
+
default94 as useIsAdmc,
|
|
330
|
+
default95 as useIsAdml,
|
|
331
|
+
default96 as useIsAdmlcOrAdmc,
|
|
332
|
+
default97 as useKeyPress,
|
|
333
|
+
default98 as useLibraryUrl,
|
|
334
|
+
default99 as useMediaLibrary,
|
|
341
335
|
useOverlay,
|
|
342
336
|
usePageLayout,
|
|
343
|
-
|
|
337
|
+
default100 as usePublicConf,
|
|
344
338
|
useScreeb,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
339
|
+
default101 as useScrollToTop,
|
|
340
|
+
default102 as useShareMutation,
|
|
341
|
+
default103 as useTitle,
|
|
342
|
+
default104 as useToast,
|
|
343
|
+
default105 as useToggle,
|
|
344
|
+
default106 as useTrapFocus,
|
|
345
|
+
default107 as useTrashedResource,
|
|
352
346
|
useTreeSortable,
|
|
353
347
|
useTreeView,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
348
|
+
default108 as useUiOverride,
|
|
349
|
+
default109 as useUpdateMutation,
|
|
350
|
+
default110 as useUpload,
|
|
351
|
+
default111 as useUploadFiles,
|
|
352
|
+
default112 as useUser,
|
|
353
|
+
default113 as useWorkspaceFile,
|
|
354
|
+
default114 as useWorkspaceFolders,
|
|
355
|
+
default115 as useWorkspaceFoldersTree,
|
|
356
|
+
default116 as useWorkspaceSearch,
|
|
357
|
+
default117 as useXitiTrackPageLoad,
|
|
358
|
+
default118 as useZendeskGuide,
|
|
365
359
|
wrapTreeNode
|
|
366
360
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import illuCommunities from "@edifice.io/bootstrap/dist/images/homepage/illu-communities.svg";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import SvgIconArrowRight from "../../../icons/components/IconArrowRight.js";
|
|
5
|
+
import CommunityItem from "./CommunityItem.js";
|
|
6
|
+
import HomeCard from "../HomeCard/HomeCard.js";
|
|
7
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
8
|
+
import Image from "../../../../components/Image/Image.js";
|
|
9
|
+
const Communities = ({
|
|
10
|
+
communitiesList = [],
|
|
11
|
+
handleActionClick
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation();
|
|
16
|
+
return /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", children: [
|
|
17
|
+
/* @__PURE__ */ jsx(HomeCard.Header, { actionLabel: communitiesList.length > 0 ? t("homepage.widget.communities.actionLabel.seeMore", "Voir plus") : t("homepage.widget.communities.actionLabel.create", "Créer une communauté"), actionRightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), onActionClick: handleActionClick, title: t("homepage.widget.communities.title", "Communautés") }),
|
|
18
|
+
/* @__PURE__ */ jsx(HomeCard.Content, { children: /* @__PURE__ */ jsx(Flex, { gap: "16", children: communitiesList.length > 0 ? communitiesList.map((community, index) => /* @__PURE__ */ jsx(CommunityItem, { title: community.title, communityImage: community.communityImage, onActionClick: community.onActionClick, nbNotifications: community.nbNotifications }, index)) : /* @__PURE__ */ jsxs("div", { className: "communities-empty", children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Image, { src: illuCommunities, alt: "", "aria-hidden": "true", style: {
|
|
20
|
+
width: 80,
|
|
21
|
+
height: 80
|
|
22
|
+
} }),
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "communities-empty-content", children: [
|
|
24
|
+
/* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle", "Créez votre première communauté pour animer votre classe !") }),
|
|
25
|
+
/* @__PURE__ */ jsx("p", { className: "communities-empty-description", children: t("homepage.communities.description", "Vous pouvez centraliser et organiser les documents et les ressources pour vos élèves.") })
|
|
26
|
+
] })
|
|
27
|
+
] }) }) })
|
|
28
|
+
] });
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
Communities as default
|
|
32
|
+
};
|