@edifice.io/react 2.6.11 → 2.6.12-develop-integration-crna.20261101211105
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/Dropdown/Dropdown.js +20 -14
- package/dist/components/Dropdown/DropdownContext.d.ts +5 -0
- package/dist/components/Dropdown/DropdownMenuGroup.js +23 -6
- package/dist/components/Dropdown/DropdownSearchInput.js +16 -8
- package/dist/components/Dropdown/DropdownTrigger.js +24 -8
- package/dist/components/Dropdown/useDropdownItemFilter.js +2 -2
- package/dist/components/Dropdown/useMatchRegistry.d.ts +13 -0
- package/dist/components/Dropdown/useMatchRegistry.js +20 -0
- package/dist/components/Layout/components/Header.js +4 -4
- package/dist/components/Layout/components/NavLink.d.ts +3 -3
- package/dist/components/Layout/components/NavLink.js +5 -3
- package/dist/components/Select/Select.d.ts +14 -1
- package/dist/components/Select/Select.js +11 -5
- package/dist/hooks/useDropdown/useDropdown.d.ts +5 -0
- package/dist/hooks/useDropdown/useDropdown.js +16 -6
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +1 -1
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +2 -2
- package/dist/icons.js +234 -232
- package/dist/index.js +158 -156
- package/dist/modules/homepage/components/Communities/Communities.js +4 -4
- package/dist/modules/homepage/components/Favorites/Favorites.js +1 -4
- package/dist/modules/homepage/components/Header/AccountActionListPopover.d.ts +13 -0
- package/dist/modules/homepage/components/Header/AccountActionListPopover.js +26 -0
- package/dist/modules/homepage/components/Header/ActionItem.d.ts +38 -0
- package/dist/modules/homepage/components/Header/ActionItem.js +34 -0
- package/dist/modules/homepage/components/Header/Header.js +28 -22
- package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +5 -0
- package/dist/modules/homepage/components/Header/MyAppsPopover.js +28 -0
- package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +32 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -1
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +1 -5
- package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +3 -9
- package/dist/modules/icons/components/IconLogout.d.ts +7 -0
- package/dist/modules/icons/components/IconLogout.js +13 -0
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +7 -19
- package/dist/modules/multimedia/Nextcloud/NextcloudLogin.d.ts +12 -0
- package/dist/modules/multimedia/Nextcloud/NextcloudLogin.js +33 -0
- package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.d.ts +12 -0
- package/dist/modules/multimedia/NextcloudFolders/NextcloudFolders.js +51 -0
- package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.d.ts +16 -0
- package/dist/modules/multimedia/NextcloudFolders/components/NewFolderForm.js +51 -0
- package/dist/modules/multimedia/NextcloudFolders/index.d.ts +1 -0
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +14 -12
- package/package.json +7 -6
|
@@ -2,13 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useId } from "react";
|
|
5
|
+
import { AccountActionListPopover } from "./AccountActionListPopover.js";
|
|
6
|
+
import { MyAppsPopoverBody, MyAppsPopoverFooter } from "./MyAppsPopover.js";
|
|
7
|
+
import { useSafeHoverPopover } from "./useSafeHoverPopover.js";
|
|
5
8
|
import { Navbar } from "../../../../components/Layout/components/Navbar.js";
|
|
6
9
|
import { NavItem } from "../../../../components/Layout/components/NavItem.js";
|
|
7
10
|
import { NavLink } from "../../../../components/Layout/components/NavLink.js";
|
|
8
11
|
import useHeader from "../../../../components/Layout/hooks/useHeader.js";
|
|
9
|
-
import SvgIconSetBackground from "../../../icons/components/IconSetBackground.js";
|
|
10
12
|
import SvgIconCommunitiesBeta from "../../../icons/components/nav/IconCommunitiesBeta.js";
|
|
11
|
-
import SvgIconDisconnect from "../../../icons/components/nav/IconDisconnect.js";
|
|
12
13
|
import SvgIconHomeBeta from "../../../icons/components/nav/IconHomeBeta.js";
|
|
13
14
|
import SvgIconMessagesBeta from "../../../icons/components/nav/IconMessagesBeta.js";
|
|
14
15
|
import SvgIconMyAppsBeta from "../../../icons/components/nav/IconMyAppsBeta.js";
|
|
@@ -18,13 +19,13 @@ import useConversation from "../../../../hooks/useConversation/useConversation.j
|
|
|
18
19
|
import useUser from "../../../../hooks/useUser/useUser.js";
|
|
19
20
|
import useCarbonioUnread from "../../../../hooks/useCarbonioUnread/useCarbonioUnread.js";
|
|
20
21
|
import { useEdificeTheme } from "../../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
21
|
-
import
|
|
22
|
+
import useBreakpoint from "../../../../hooks/useBreakpoint/useBreakpoint.js";
|
|
22
23
|
import LogoBeta from "../../../../components/LogoBeta/LogoBeta.js";
|
|
23
24
|
import Badge from "../../../../components/Badge/Badge.js";
|
|
24
25
|
import VisuallyHidden from "../../../../components/VisuallyHidden/VisuallyHidden.js";
|
|
25
26
|
import ButtonBeta from "../../../../components/ButtonBeta/ButtonBeta.js";
|
|
26
27
|
import Avatar from "../../../../components/Avatar/Avatar.js";
|
|
27
|
-
import { Popover, PopoverBody } from "../../../../components/Popover/Popover.js";
|
|
28
|
+
import { Popover, PopoverBody, PopoverFooter } from "../../../../components/Popover/Popover.js";
|
|
28
29
|
const Header = ({
|
|
29
30
|
src = "",
|
|
30
31
|
onNotificationsClick,
|
|
@@ -44,13 +45,21 @@ const Header = ({
|
|
|
44
45
|
userAvatar,
|
|
45
46
|
userName,
|
|
46
47
|
communitiesWorkflow,
|
|
47
|
-
conversationWorflow
|
|
48
|
+
conversationWorflow,
|
|
49
|
+
bookmarkedApps
|
|
48
50
|
} = useHeader({
|
|
49
51
|
user,
|
|
50
52
|
avatar
|
|
51
53
|
}), {
|
|
52
54
|
theme
|
|
53
|
-
} = useEdificeTheme(), hasMessages = messages > 0, hasNotificationToday = useHasNotificationToday(),
|
|
55
|
+
} = useEdificeTheme(), hasMessages = messages > 0, hasNotificationToday = useHasNotificationToday(), popoverUserId = useId(), popoverAppsId = useId(), {
|
|
56
|
+
lg: isDesktop
|
|
57
|
+
} = useBreakpoint(), myApps = useSafeHoverPopover({
|
|
58
|
+
hoverEnabled: isDesktop,
|
|
59
|
+
clickEnabled: !isDesktop
|
|
60
|
+
}), userMenu = useSafeHoverPopover(), handleMyAppsClick = (event) => {
|
|
61
|
+
isDesktop || event.preventDefault();
|
|
62
|
+
}, handleNotificationsClick = () => {
|
|
54
63
|
onNotificationsClick == null || onNotificationsClick();
|
|
55
64
|
};
|
|
56
65
|
return /* @__PURE__ */ jsx("header", { className: classes, "data-product": dataProduct, children: /* @__PURE__ */ jsxs(Navbar, { className: "px-24", children: [
|
|
@@ -73,7 +82,15 @@ const Header = ({
|
|
|
73
82
|
}, className: "position-absolute", children: carbonioUnreadCount }),
|
|
74
83
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("conversation") })
|
|
75
84
|
] }) }),
|
|
76
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", children: [
|
|
86
|
+
/* @__PURE__ */ jsx(NavLink, { ref: myApps.setReference, link: "/welcome", translate: t("navbar.applications"), id: popoverAppsId, "aria-haspopup": "true", "aria-expanded": myApps.open, "data-testid": "header-my-apps-button", ...myApps.getReferenceProps({
|
|
87
|
+
onClick: handleMyAppsClick
|
|
88
|
+
}), children: /* @__PURE__ */ jsx(SvgIconMyAppsBeta, {}) }),
|
|
89
|
+
/* @__PURE__ */ jsxs(Popover, { ref: myApps.setFloating, className: "my-apps-popover", id: popoverAppsId, isVisible: myApps.open, ...myApps.getFloatingProps(), children: [
|
|
90
|
+
/* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsx(MyAppsPopoverBody, { bookmarkedApps }) }),
|
|
91
|
+
/* @__PURE__ */ jsx(PopoverFooter, { className: "d-flex justify-content-center", children: /* @__PURE__ */ jsx(MyAppsPopoverFooter, {}) })
|
|
92
|
+
] })
|
|
93
|
+
] }),
|
|
77
94
|
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", children: [
|
|
78
95
|
/* @__PURE__ */ jsx(ButtonBeta, { leftIcon: /* @__PURE__ */ jsx(SvgIconNotificationBeta, {}), variant: "ghost", onClick: handleNotificationsClick }),
|
|
79
96
|
hasNotificationToday && /* @__PURE__ */ jsx("span", { style: {
|
|
@@ -88,22 +105,11 @@ const Header = ({
|
|
|
88
105
|
pointerEvents: "none",
|
|
89
106
|
zIndex: 1,
|
|
90
107
|
display: "block"
|
|
91
|
-
}, "aria-label": t("homepage.notifications.new-badge"
|
|
92
|
-
defaultValue: "Nouvelle notification"
|
|
93
|
-
}) })
|
|
108
|
+
}, "aria-label": t("homepage.notifications.new-badge") })
|
|
94
109
|
] }),
|
|
95
|
-
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative",
|
|
96
|
-
/* @__PURE__ */ jsx(NavLink, { link: "/userbook/mon-compte", translate: t("navbar.myaccount"), "data-testid": "header-user-profile-button", children: /* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }) }),
|
|
97
|
-
/* @__PURE__ */ jsx(
|
|
98
|
-
/* @__PURE__ */ jsxs("a", { href: "/timeline/customize?callback=" + encodeURIComponent(`${window.location.pathname}${window.location.search}`), className: "nav-link customize d-flex align-items-center gap-8", "data-testid": "header-customize-button", children: [
|
|
99
|
-
/* @__PURE__ */ jsx(SvgIconSetBackground, { className: "icon" }),
|
|
100
|
-
/* @__PURE__ */ jsx("span", { id: "cutomize-label", className: "nav-text", children: t("navbar.customize") })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link logout d-flex align-items-center gap-8", "data-testid": "header-logout-button", children: [
|
|
103
|
-
/* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
|
|
104
|
-
/* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
|
|
105
|
-
] })
|
|
106
|
-
] }) })
|
|
110
|
+
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", children: [
|
|
111
|
+
/* @__PURE__ */ jsx(NavLink, { ref: userMenu.setReference, link: "/userbook/mon-compte", translate: t("navbar.myaccount"), id: popoverUserId, "aria-haspopup": "true", "aria-expanded": userMenu.open, "data-testid": "header-user-profile-button", ...userMenu.getReferenceProps(), children: /* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }) }),
|
|
112
|
+
/* @__PURE__ */ jsx(AccountActionListPopover, { ref: userMenu.setFloating, align: "end", id: popoverUserId, isVisible: userMenu.open, logoutCallback: theme == null ? void 0 : theme.logoutCallback, ...userMenu.getFloatingProps() })
|
|
107
113
|
] })
|
|
108
114
|
] })
|
|
109
115
|
] }) });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IWebApp } from '@edifice.io/client';
|
|
2
|
+
export declare const MyAppsPopoverFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const MyAppsPopoverBody: ({ bookmarkedApps, }: {
|
|
4
|
+
bookmarkedApps: IWebApp[] | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import illuEmptyFavorite from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-favorite.svg";
|
|
4
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
5
|
+
import AppIcon from "../../../../components/AppIcon/AppIcon.js";
|
|
6
|
+
const MAX_VISIBLE_APPS = 10, appToOpenOnBlank = ["Administration"], MyAppsPopoverFooter = () => {
|
|
7
|
+
const {
|
|
8
|
+
t
|
|
9
|
+
} = useTranslation();
|
|
10
|
+
return /* @__PURE__ */ jsx("a", { href: "/welcome", className: "btn-beta btn-beta-tertiary btn-beta--ghost btn-beta--small", "data-testid": "header-my-apps-popover-more", children: /* @__PURE__ */ jsx("span", { children: t("homepage.header.myapps.seeMore") }) });
|
|
11
|
+
}, MyAppsPopoverBody = ({
|
|
12
|
+
bookmarkedApps
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
t
|
|
16
|
+
} = useTranslation(), getAppName = (app) => app.prefix && app.prefix.length > 1 ? t(app.prefix.substring(1)) : t(app.displayName) || "";
|
|
17
|
+
return bookmarkedApps != null && bookmarkedApps.length ? /* @__PURE__ */ jsx("div", { className: "my-apps-popover-grid", "data-testid": "header-my-apps-popover", children: bookmarkedApps.slice(0, MAX_VISIBLE_APPS).map((app, index) => {
|
|
18
|
+
const opensInNewTab = appToOpenOnBlank.includes(app.name) || app.isExternal || app.target === "_blank", appName = getAppName(app);
|
|
19
|
+
return /* @__PURE__ */ jsx("a", { href: app.address, title: appName, "aria-label": appName, className: "my-apps-popover-item", "data-testid": "header-my-apps-popover-item", target: opensInNewTab ? "_blank" : void 0, rel: opensInNewTab ? "noopener noreferrer" : void 0, children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index);
|
|
20
|
+
}) }) : /* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", gap: "8", children: [
|
|
21
|
+
/* @__PURE__ */ jsx("img", { src: illuEmptyFavorite, alt: "", width: 50, height: 50 }),
|
|
22
|
+
/* @__PURE__ */ jsx("span", { className: "my-apps-popover-empty-text text-center", children: t("homepage.header.myapps.empty") })
|
|
23
|
+
] });
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
MyAppsPopoverBody,
|
|
27
|
+
MyAppsPopoverFooter
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { useFloating, useHover, safePolygon, useClick, useDismiss, useFocus, useInteractions } from "@floating-ui/react";
|
|
3
|
+
function useSafeHoverPopover({
|
|
4
|
+
hoverEnabled = !0,
|
|
5
|
+
clickEnabled = !1
|
|
6
|
+
} = {}) {
|
|
7
|
+
const [open, setOpen] = useState(!1), {
|
|
8
|
+
refs,
|
|
9
|
+
context
|
|
10
|
+
} = useFloating({
|
|
11
|
+
open,
|
|
12
|
+
onOpenChange: setOpen
|
|
13
|
+
}), hover = useHover(context, {
|
|
14
|
+
enabled: hoverEnabled,
|
|
15
|
+
handleClose: safePolygon()
|
|
16
|
+
}), click = useClick(context, {
|
|
17
|
+
enabled: clickEnabled
|
|
18
|
+
}), dismiss = useDismiss(context), focus = useFocus(context), {
|
|
19
|
+
getReferenceProps,
|
|
20
|
+
getFloatingProps
|
|
21
|
+
} = useInteractions([hover, click, dismiss, focus]);
|
|
22
|
+
return {
|
|
23
|
+
open,
|
|
24
|
+
setReference: refs.setReference,
|
|
25
|
+
setFloating: refs.setFloating,
|
|
26
|
+
getReferenceProps,
|
|
27
|
+
getFloatingProps
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
useSafeHoverPopover
|
|
32
|
+
};
|
|
@@ -47,7 +47,7 @@ const MessageFlash = ({
|
|
|
47
47
|
}), title: t("close.message", {
|
|
48
48
|
title: message.title
|
|
49
49
|
}) }),
|
|
50
|
-
/* @__PURE__ */ jsx("div", { className: "message-flash-icon", role: "img", "aria-label": message.color === "red" ? t("warning") : t("information"), children: message.color && message.color === "red" ? /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}) : /* @__PURE__ */ jsx(SvgIconInfoCircle, {}) }),
|
|
50
|
+
/* @__PURE__ */ jsx("div", { className: "message-flash-icon", role: "img", "aria-label": message.color === "red" ? t("homepage.messageFlash.warning") : t("homepage.messageFlash.information"), children: message.color && message.color === "red" ? /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}) : /* @__PURE__ */ jsx(SvgIconInfoCircle, {}) }),
|
|
51
51
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", className: "w-100 message-flash-body", children: [
|
|
52
52
|
/* @__PURE__ */ jsx(Card.Title, { children: message.title }),
|
|
53
53
|
/* @__PURE__ */ jsx("div", { ref: contentRef, className: classesContent, dangerouslySetInnerHTML: {
|
|
@@ -16,11 +16,7 @@ const NotificationFilterMenu = ({
|
|
|
16
16
|
onFilterChange(types), setIsOpen(!1);
|
|
17
17
|
};
|
|
18
18
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ jsx(ButtonBeta, { type: "button", color: "secondary", variant: "outline", size: "md", leftIcon: /* @__PURE__ */ jsx(SvgIconFilter, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, {}), "aria-label": t("homepage.notifications.filter-modal.trigger",
|
|
20
|
-
defaultValue: "Filtrer les notifications"
|
|
21
|
-
}), title: t("homepage.notifications.filter-modal.trigger", {
|
|
22
|
-
defaultValue: "Filtrer les notifications"
|
|
23
|
-
}), onClick: () => setIsOpen(!0), "data-testid": "notification-filter-button" }),
|
|
19
|
+
/* @__PURE__ */ jsx(ButtonBeta, { type: "button", color: "secondary", variant: "outline", size: "md", leftIcon: /* @__PURE__ */ jsx(SvgIconFilter, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, {}), "aria-label": t("homepage.notifications.filter-modal.trigger"), title: t("homepage.notifications.filter-modal.trigger"), onClick: () => setIsOpen(!0), "data-testid": "notification-filter-button" }),
|
|
24
20
|
isOpen && /* @__PURE__ */ jsx(NotificationFilterModal, { isOpen, allTypes: notificationTypes, appliedTypes: selectedTypes, onCancel: () => setIsOpen(!1), onApply: handleApply })
|
|
25
21
|
] });
|
|
26
22
|
};
|
package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js
CHANGED
|
@@ -20,16 +20,10 @@ const NotificationOptionsMenu = ({
|
|
|
20
20
|
} = useDeleteNotification(), [isReportModalOpen, setIsReportModalOpen] = useState(!1);
|
|
21
21
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
22
|
/* @__PURE__ */ jsx(Dropdown, { overflow: !1, children: (triggerProps) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
23
|
-
/* @__PURE__ */ jsx(IconButton, { ...triggerProps, type: "button", "aria-label": t("homepage.notifications.options.label", {
|
|
24
|
-
defaultValue: "Options de la notification"
|
|
25
|
-
}), color: "tertiary", variant: "ghost", icon: /* @__PURE__ */ jsx(SvgIconOptions, {}), "data-testid": "notification-item-options-button" }),
|
|
23
|
+
/* @__PURE__ */ jsx(IconButton, { ...triggerProps, type: "button", "aria-label": t("homepage.notifications.options.label"), color: "tertiary", variant: "ghost", icon: /* @__PURE__ */ jsx(SvgIconOptions, {}), "data-testid": "notification-item-options-button" }),
|
|
26
24
|
/* @__PURE__ */ jsxs(Dropdown.Menu, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}), onClick: () => setIsReportModalOpen(!0), children: t("homepage.notifications.options.report",
|
|
28
|
-
|
|
29
|
-
}) }),
|
|
30
|
-
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), onClick: () => deleteNotification(notificationId), children: t("homepage.notifications.options.delete", {
|
|
31
|
-
defaultValue: "Supprimer"
|
|
32
|
-
}) })
|
|
25
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}), onClick: () => setIsReportModalOpen(!0), children: t("homepage.notifications.options.report") }),
|
|
26
|
+
/* @__PURE__ */ jsx(Dropdown.Item, { icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), onClick: () => deleteNotification(notificationId), children: t("homepage.notifications.options.delete") })
|
|
33
27
|
] })
|
|
34
28
|
] }) }),
|
|
35
29
|
isReportModalOpen && /* @__PURE__ */ jsx(ReportNotificationModal, { isOpen: isReportModalOpen, onCancel: () => setIsReportModalOpen(!1), onConfirm: () => {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconLogout: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconLogout;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconLogout = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 22 22", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M11.917.917a.916.916 0 0 1 0 1.833H5.042a.46.46 0 0 0-.459.458v15.584c0 .253.206.458.459.458h6.875a.917.917 0 0 1 0 1.833H5.042a2.29 2.29 0 0 1-2.292-2.291V3.208A2.29 2.29 0 0 1 5.042.917zm3.018 5.769a.916.916 0 0 1 1.296 0l3.667 3.666a.917.917 0 0 1 0 1.296l-3.667 3.667a.916.916 0 1 1-1.296-1.296L17.956 11l-3.02-3.019a.916.916 0 0 1 0-1.295" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.333 11c0-.506.41-.917.917-.917h11a.917.917 0 1 1 0 1.834h-11A.917.917 0 0 1 7.333 11", clipRule: "evenodd" })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
SvgIconLogout as default
|
|
13
|
+
};
|
|
@@ -84,6 +84,7 @@ export { default as IconLink } from './IconLink';
|
|
|
84
84
|
export { default as IconListOrder } from './IconListOrder';
|
|
85
85
|
export { default as IconLoader } from './IconLoader';
|
|
86
86
|
export { default as IconLock } from './IconLock';
|
|
87
|
+
export { default as IconLogout } from './IconLogout';
|
|
87
88
|
export { default as IconLsuArt } from './IconLsuArt';
|
|
88
89
|
export { default as IconLsuCompetenceNumerique } from './IconLsuCompetenceNumerique';
|
|
89
90
|
export { default as IconLsuEmc } from './IconLsuEmc';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
3
|
import { DocumentHelper } from "@edifice.io/client";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
@@ -7,11 +7,10 @@ import { findNodeById } from "../../../components/Tree/utilities/tree.js";
|
|
|
7
7
|
import SvgIconSortAscendingLetters from "../../icons/components/IconSortAscendingLetters.js";
|
|
8
8
|
import SvgIconSortDescendingLetters from "../../icons/components/IconSortDescendingLetters.js";
|
|
9
9
|
import SvgIconSortTime from "../../icons/components/IconSortTime.js";
|
|
10
|
+
import NextcloudLogin from "./NextcloudLogin.js";
|
|
10
11
|
import illuError from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-error.svg";
|
|
11
|
-
import illuConnectionLost from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-connection-lost.svg";
|
|
12
12
|
import illuTrash from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-trash.svg";
|
|
13
13
|
import useUser from "../../../hooks/useUser/useUser.js";
|
|
14
|
-
import useToast from "../../../hooks/useToast/useToast.js";
|
|
15
14
|
import useNextcloudSearch from "../../../hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
16
15
|
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
17
16
|
import Flex from "../../../components/Flex/Flex.js";
|
|
@@ -36,7 +35,7 @@ const Nextcloud = ({
|
|
|
36
35
|
t
|
|
37
36
|
} = useTranslation(), {
|
|
38
37
|
user
|
|
39
|
-
} = useUser(),
|
|
38
|
+
} = useUser(), {
|
|
40
39
|
root,
|
|
41
40
|
needsAuth,
|
|
42
41
|
isCheckingAuth,
|
|
@@ -44,7 +43,7 @@ const Nextcloud = ({
|
|
|
44
43
|
refetchAuthStatus,
|
|
45
44
|
loadContent,
|
|
46
45
|
loadError
|
|
47
|
-
} = useNextcloudSearch(ROOT_ID, t("nextcloud"), user == null ? void 0 : user.userId),
|
|
46
|
+
} = useNextcloudSearch(ROOT_ID, t("nextcloud"), user == null ? void 0 : user.userId), [currentNodeId, setCurrentNodeId] = useState(ROOT_ID), currentNode = findNodeById(root, currentNodeId) ?? root, [searchTerm, setSearchTerm] = useState(void 0), [sortOrder, setSortOrder] = useState(["modified", "desc"]), [selectedDocuments, setSelectedDocuments] = useState([]), handleTreeItemChange = useCallback((nodeId) => {
|
|
48
47
|
setCurrentNodeId(nodeId), loadContent(nodeId);
|
|
49
48
|
}, [loadContent]);
|
|
50
49
|
useEffect(() => {
|
|
@@ -69,22 +68,11 @@ const Nextcloud = ({
|
|
|
69
68
|
let currentDocuments = [...selectedDocuments];
|
|
70
69
|
multiple ? currentDocuments.some((selectedDocument) => selectedDocument.path === doc.path) ? currentDocuments = currentDocuments.filter((selectedDocument) => selectedDocument.path !== doc.path) : currentDocuments = [...currentDocuments, doc] : currentDocuments = [doc], setSelectedDocuments(currentDocuments), onSelect(currentDocuments);
|
|
71
70
|
}
|
|
72
|
-
const nextcloud = clsx("workspace flex-grow-1 gap-0", className)
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
return useEffect(() => {
|
|
76
|
-
function handleMessage(event) {
|
|
77
|
-
var _a;
|
|
78
|
-
event.origin !== window.location.origin || ((_a = event.data) == null ? void 0 : _a.type) !== "nextcloud-connected" || (popupRef.current && !popupRef.current.closed && popupRef.current.close(), refetchAuthStatus());
|
|
79
|
-
}
|
|
80
|
-
return window.addEventListener("message", handleMessage), () => window.removeEventListener("message", handleMessage);
|
|
81
|
-
}, [refetchAuthStatus]), isCheckingAuth ? /* @__PURE__ */ jsx(LoadingScreen, {}) : isAuthError ? /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "12", className: "h-full w-100", justify: "center", align: "center", children: [
|
|
71
|
+
const nextcloud = clsx("workspace flex-grow-1 gap-0", className);
|
|
72
|
+
return isCheckingAuth ? /* @__PURE__ */ jsx(LoadingScreen, {}) : isAuthError ? /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "12", className: "h-full w-100", justify: "center", align: "center", children: [
|
|
82
73
|
/* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuError, title: t("nextcloud.error.title"), text: t("nextcloud.error.description") }),
|
|
83
74
|
/* @__PURE__ */ jsx(Button, { onClick: () => refetchAuthStatus(), children: t("retry") })
|
|
84
|
-
] }) : needsAuth ? /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuConnectionLost, title: t("nextcloud.auth.title"), text: t("nextcloud.auth.description") }),
|
|
86
|
-
/* @__PURE__ */ jsx(Button, { onClick: openLoginPopup, children: t("nextcloud.auth.connect") })
|
|
87
|
-
] }) : /* @__PURE__ */ jsxs(Grid, { className: nextcloud, children: [
|
|
75
|
+
] }) : needsAuth ? /* @__PURE__ */ jsx(NextcloudLogin, { onConnected: refetchAuthStatus }) : /* @__PURE__ */ jsxs(Grid, { className: nextcloud, children: [
|
|
88
76
|
/* @__PURE__ */ jsx(Grid.Col, { sm: "12", md: "3", xl: "4", className: "workspace-folders p-12 pt-0 gap-12", children: /* @__PURE__ */ jsx("div", { style: {
|
|
89
77
|
position: "sticky",
|
|
90
78
|
top: 0,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface NextcloudLoginProps {
|
|
2
|
+
/**
|
|
3
|
+
* Called once the user is connected through the OAuth2 popup.
|
|
4
|
+
*/
|
|
5
|
+
onConnected: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Replaces the default description, which is about inserting Nextcloud files.
|
|
8
|
+
*/
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const NextcloudLogin: ({ onConnected, description }: NextcloudLoginProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default NextcloudLogin;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import illuConnectionLost from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-connection-lost.svg";
|
|
5
|
+
import useToast from "../../../hooks/useToast/useToast.js";
|
|
6
|
+
import Flex from "../../../components/Flex/Flex.js";
|
|
7
|
+
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
8
|
+
import Button from "../../../components/Button/Button.js";
|
|
9
|
+
const NextcloudLogin = ({
|
|
10
|
+
onConnected,
|
|
11
|
+
description
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation(), toast = useToast(), popupRef = useRef(null);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
function handleMessage(event) {
|
|
18
|
+
var _a;
|
|
19
|
+
event.origin !== window.location.origin || ((_a = event.data) == null ? void 0 : _a.type) !== "nextcloud-connected" || (popupRef.current && !popupRef.current.closed && popupRef.current.close(), onConnected());
|
|
20
|
+
}
|
|
21
|
+
return window.addEventListener("message", handleMessage), () => window.removeEventListener("message", handleMessage);
|
|
22
|
+
}, [onConnected]);
|
|
23
|
+
const openLoginPopup = () => {
|
|
24
|
+
popupRef.current = window.open(`${window.location.origin}/nextcloud/user/oauth2/init`, "", "popup, height=600, width=400"), popupRef.current || toast.error(t("nextcloud.auth.popupBlocked"));
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "12", className: "h-full w-100", justify: "center", align: "center", children: [
|
|
27
|
+
/* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuConnectionLost, title: t("nextcloud.auth.title"), text: description ?? t("nextcloud.auth.description") }),
|
|
28
|
+
/* @__PURE__ */ jsx(Button, { onClick: openLoginPopup, children: t("nextcloud.auth.connect") })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
NextcloudLogin as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface NextcloudFoldersProps {
|
|
2
|
+
/**
|
|
3
|
+
* Function called with the path of the selected folder, relative to the user's Nextcloud root
|
|
4
|
+
*/
|
|
5
|
+
onFolderSelected: (path: string) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Description of the login screen shown when the user is not connected to Nextcloud
|
|
8
|
+
*/
|
|
9
|
+
loginDescription?: string;
|
|
10
|
+
}
|
|
11
|
+
export default function NextcloudFolders({ onFolderSelected, loginDescription, }: NextcloudFoldersProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import SvgIconFolderAdd from "../../icons/components/IconFolderAdd.js";
|
|
5
|
+
import NextcloudLogin from "../Nextcloud/NextcloudLogin.js";
|
|
6
|
+
import NewFolderForm from "./components/NewFolderForm.js";
|
|
7
|
+
import illuError from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-error.svg";
|
|
8
|
+
import useUser from "../../../hooks/useUser/useUser.js";
|
|
9
|
+
import useNextcloudSearch from "../../../hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
10
|
+
import Loading from "../../../components/Loading/Loading.js";
|
|
11
|
+
import Flex from "../../../components/Flex/Flex.js";
|
|
12
|
+
import EmptyScreen from "../../../components/EmptyScreen/EmptyScreen.js";
|
|
13
|
+
import Button from "../../../components/Button/Button.js";
|
|
14
|
+
import Tree from "../../../components/Tree/components/Tree.js";
|
|
15
|
+
const ROOT_ID = "root", ROOT_PATH = "/";
|
|
16
|
+
function NextcloudFolders({
|
|
17
|
+
onFolderSelected,
|
|
18
|
+
loginDescription
|
|
19
|
+
}) {
|
|
20
|
+
const {
|
|
21
|
+
t
|
|
22
|
+
} = useTranslation(), {
|
|
23
|
+
user
|
|
24
|
+
} = useUser(), {
|
|
25
|
+
root,
|
|
26
|
+
needsAuth,
|
|
27
|
+
isCheckingAuth,
|
|
28
|
+
isAuthError,
|
|
29
|
+
refetchAuthStatus,
|
|
30
|
+
loadContent,
|
|
31
|
+
loadError
|
|
32
|
+
} = useNextcloudSearch(ROOT_ID, t("nextcloud"), user == null ? void 0 : user.userId), [selectedFolderId, setSelectedFolderId] = useState(), [showNewFolderForm, setShowNewFolderForm] = useState(!1), selectedPath = selectedFolderId === ROOT_ID ? ROOT_PATH : selectedFolderId;
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
needsAuth || loadContent(ROOT_ID);
|
|
35
|
+
}, [loadContent, needsAuth]);
|
|
36
|
+
const handleFolderSelected = (folderId) => {
|
|
37
|
+
setShowNewFolderForm(!1), setSelectedFolderId(folderId), loadContent(folderId), onFolderSelected(folderId === ROOT_ID ? ROOT_PATH : folderId);
|
|
38
|
+
}, handleFolderCreated = (path) => {
|
|
39
|
+
loadContent(selectedFolderId, !0), setSelectedFolderId(path), onFolderSelected(path);
|
|
40
|
+
}, handleRetry = () => isAuthError ? refetchAuthStatus() : loadContent(selectedFolderId ?? ROOT_ID, !0);
|
|
41
|
+
return isCheckingAuth ? /* @__PURE__ */ jsx(Loading, { isLoading: !0, className: "justify-content-center" }) : isAuthError || loadError ? /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "12", align: "center", children: [
|
|
42
|
+
/* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuError, title: t("nextcloud.error.title"), text: t("nextcloud.error.description") }),
|
|
43
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleRetry, children: t("retry") })
|
|
44
|
+
] }) : needsAuth ? /* @__PURE__ */ jsx(NextcloudLogin, { onConnected: refetchAuthStatus, description: loginDescription }) : /* @__PURE__ */ jsxs("div", { className: "border border-gray-400 rounded", children: [
|
|
45
|
+
/* @__PURE__ */ jsx("div", { className: "p-12", children: /* @__PURE__ */ jsx(Tree, { nodes: root, selectedNodeId: selectedFolderId, showIcon: !0, onTreeItemClick: handleFolderSelected, onTreeItemUnfold: (nodeId) => loadContent(nodeId) }) }),
|
|
46
|
+
/* @__PURE__ */ jsx("div", { className: "d-flex justify-content-end border-top border-gray-400 px-8 py-4", children: showNewFolderForm && selectedPath ? /* @__PURE__ */ jsx(NewFolderForm, { parentPath: selectedPath, onClose: () => setShowNewFolderForm(!1), onFolderCreated: handleFolderCreated }) : /* @__PURE__ */ jsx(Button, { color: "primary", variant: "ghost", leftIcon: /* @__PURE__ */ jsx(SvgIconFolderAdd, {}), onClick: () => setShowNewFolderForm(!0), disabled: !selectedPath, children: t("workspace.folder.create") }) })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
NextcloudFolders as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Path of the folder in which the new folder is created
|
|
4
|
+
*/
|
|
5
|
+
parentPath: string;
|
|
6
|
+
/**
|
|
7
|
+
* Function called when the form is closed
|
|
8
|
+
*/
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Function called with the path of the created folder
|
|
12
|
+
*/
|
|
13
|
+
onFolderCreated: (path: string) => void;
|
|
14
|
+
};
|
|
15
|
+
export default function NewFolderForm({ parentPath, onClose, onFolderCreated, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
3
|
+
import { odeServices } from "@edifice.io/client";
|
|
4
|
+
import { useMutation } from "@tanstack/react-query";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import SvgIconSave from "../../../icons/components/IconSave.js";
|
|
7
|
+
import useUser from "../../../../hooks/useUser/useUser.js";
|
|
8
|
+
import useToast from "../../../../hooks/useToast/useToast.js";
|
|
9
|
+
import FormControl from "../../../../components/Form/FormControl.js";
|
|
10
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
11
|
+
function NewFolderForm({
|
|
12
|
+
parentPath,
|
|
13
|
+
onClose,
|
|
14
|
+
onFolderCreated
|
|
15
|
+
}) {
|
|
16
|
+
const {
|
|
17
|
+
t
|
|
18
|
+
} = useTranslation(), {
|
|
19
|
+
user
|
|
20
|
+
} = useUser(), toast = useToast(), refInputName = useRef(null), createFolderMutation = useMutation({
|
|
21
|
+
mutationFn: ({
|
|
22
|
+
userId,
|
|
23
|
+
path
|
|
24
|
+
}) => odeServices.nextcloud().createFolder(userId, path)
|
|
25
|
+
});
|
|
26
|
+
return useEffect(() => {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = refInputName.current) == null || _a.focus();
|
|
29
|
+
}, []), /* @__PURE__ */ jsx("form", { id: "modalNextcloudNewFolderForm", onSubmit: (event) => {
|
|
30
|
+
var _a;
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
const folderName = (_a = refInputName.current) == null ? void 0 : _a.value.trim().replace(/\//g, "-");
|
|
33
|
+
if (!folderName || !user) return;
|
|
34
|
+
const path = `${parentPath.replace(/\/?$/, "/")}${folderName}/`;
|
|
35
|
+
createFolderMutation.mutate({
|
|
36
|
+
userId: user.userId,
|
|
37
|
+
path
|
|
38
|
+
}, {
|
|
39
|
+
onSuccess: () => {
|
|
40
|
+
onFolderCreated(path), onClose();
|
|
41
|
+
},
|
|
42
|
+
onError: () => toast.error(t("e400"))
|
|
43
|
+
});
|
|
44
|
+
}, children: /* @__PURE__ */ jsxs("div", { className: "d-flex gap-4 flex-row", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(FormControl, { id: "modalNextcloudNewFolderForm", isRequired: !0, children: /* @__PURE__ */ jsx(FormControl.Input, { ref: refInputName, size: "md", type: "text", placeholder: t("workspace.folder.new.placeholder") }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(IconButton, { type: "submit", color: "primary", variant: "ghost", title: t("workspace.folder.new.create"), disabled: createFolderMutation.isPending, isLoading: createFolderMutation.isPending, icon: /* @__PURE__ */ jsx(SvgIconSave, {}) })
|
|
47
|
+
] }) });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
NewFolderForm as default
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NextcloudFolders } from './NextcloudFolders';
|
package/dist/multimedia.js
CHANGED
|
@@ -6,12 +6,13 @@ import { default as default6 } from "./modules/multimedia/ImagePicker/ImagePicke
|
|
|
6
6
|
import { default as default7 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
7
7
|
import { default as default8 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
8
8
|
import { default as default9 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
9
|
-
import { default as default10 } from "./modules/multimedia/
|
|
10
|
-
import { default as default11 } from "./modules/multimedia/
|
|
11
|
-
import { default as default12 } from "./modules/multimedia/
|
|
12
|
-
import { default as default13 } from "./modules/multimedia/
|
|
13
|
-
import { default as default14 } from "./modules/multimedia/
|
|
14
|
-
import { default as default15 } from "./modules/multimedia/
|
|
9
|
+
import { default as default10 } from "./modules/multimedia/NextcloudFolders/NextcloudFolders.js";
|
|
10
|
+
import { default as default11 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
11
|
+
import { default as default12 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
12
|
+
import { default as default13 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
13
|
+
import { default as default14 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
14
|
+
import { default as default15 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
15
|
+
import { default as default16 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
15
16
|
import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
|
|
16
17
|
import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
|
|
17
18
|
import { Upload } from "./modules/multimedia/MediaLibrary/innertabs/Upload.js";
|
|
@@ -26,11 +27,12 @@ export {
|
|
|
26
27
|
default7 as MediaLibrary,
|
|
27
28
|
default8 as Nextcloud,
|
|
28
29
|
default9 as NextcloudFileCard,
|
|
30
|
+
default10 as NextcloudFolders,
|
|
29
31
|
Upload,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
default11 as UploadCard,
|
|
33
|
+
default12 as UploadFiles,
|
|
34
|
+
default13 as VideoEmbed,
|
|
35
|
+
default14 as VideoRecorder,
|
|
36
|
+
default15 as Workspace,
|
|
37
|
+
default16 as WorkspaceFolders
|
|
36
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.12-develop-integration-crna.20261101211105",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"swiper": "10.1.0",
|
|
141
141
|
"ua-parser-js": "1.0.36",
|
|
142
142
|
"zustand": "4.5.7",
|
|
143
|
-
"@edifice.io/
|
|
144
|
-
"@edifice.io/
|
|
145
|
-
"@edifice.io/
|
|
143
|
+
"@edifice.io/bootstrap": "2.6.12-develop-integration-crna.20261101211105",
|
|
144
|
+
"@edifice.io/tiptap-extensions": "2.6.12-develop-integration-crna.20261101211105",
|
|
145
|
+
"@edifice.io/utilities": "2.6.12-develop-integration-crna.20261101211105"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -169,12 +169,13 @@
|
|
|
169
169
|
"react-i18next": "14.1.3",
|
|
170
170
|
"rollup-plugin-pure": "0.4.0",
|
|
171
171
|
"rollup-plugin-visualizer": "5.12.0",
|
|
172
|
+
"typescript": "5.9.3",
|
|
172
173
|
"typescript-eslint": "8.54.0",
|
|
173
174
|
"vite": "5.4.14",
|
|
174
175
|
"vite-plugin-dts": "4.5.4",
|
|
175
176
|
"vite-tsconfig-paths": "5.1.4",
|
|
176
|
-
"@edifice.io/
|
|
177
|
-
"@edifice.io/
|
|
177
|
+
"@edifice.io/config": "2.6.12-develop-integration-crna.20261101211105",
|
|
178
|
+
"@edifice.io/client": "2.6.12-develop-integration-crna.20261101211105"
|
|
178
179
|
},
|
|
179
180
|
"peerDependencies": {
|
|
180
181
|
"@react-spring/web": "9.7.5",
|