@edifice.io/react 2.5.24-develop.20260701113224 → 2.5.24-feat-INTEG-1924-port-react-nextcloud-filetree.20260710145714
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/homepage.js +2 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useNextcloudSearch/index.d.ts +1 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +9 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +48 -0
- package/dist/index.js +150 -144
- package/dist/modules/homepage/components/Notifications/{NotificationItem.d.ts → Notification.d.ts} +3 -3
- package/dist/modules/homepage/components/Notifications/{NotificationItem.js → Notification.js} +6 -6
- package/dist/modules/homepage/components/Notifications/NotificationList.js +2 -2
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +1 -1
- package/dist/modules/homepage/components/Notifications/components/{CommonNotificationItem.d.ts → NotificationItem.d.ts} +2 -2
- package/dist/modules/homepage/components/Notifications/components/NotificationItem.js +28 -0
- package/dist/modules/homepage/components/Notifications/components/{NotificationItemResource.d.ts → NotificationResource.d.ts} +4 -4
- package/dist/modules/homepage/components/Notifications/components/NotificationResource.js +19 -0
- package/dist/modules/homepage/components/Notifications/components/{SystemNotificationItem.d.ts → SystemNotification.d.ts} +4 -4
- package/dist/modules/homepage/components/Notifications/components/SystemNotification.js +20 -0
- package/dist/modules/homepage/components/Notifications/components/{UserNotificationItem.d.ts → UserNotification.d.ts} +4 -4
- package/dist/modules/homepage/components/Notifications/components/UserNotification.js +25 -0
- package/dist/modules/homepage/components/Notifications/index.d.ts +2 -2
- package/dist/modules/icons/components/IconStarFavorite.d.ts +7 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +105 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +16 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +22 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +2 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +20 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +88 -0
- package/dist/modules/multimedia/Nextcloud/index.d.ts +2 -0
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +16 -12
- package/package.json +8 -9
- package/dist/modules/homepage/components/Notifications/components/CommonNotificationItem.js +0 -28
- package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.js +0 -19
- package/dist/modules/homepage/components/Notifications/components/SystemNotificationItem.js +0 -20
- package/dist/modules/homepage/components/Notifications/components/UserNotificationItem.js +0 -25
package/dist/homepage.js
CHANGED
|
@@ -2,7 +2,7 @@ import { default as default2 } from "./modules/homepage/components/Header/Header
|
|
|
2
2
|
import { default as default3 } from "./modules/homepage/components/HomeCard/HomeCard.js";
|
|
3
3
|
import { default as default4 } from "./modules/homepage/components/LastInfos/LastInfos.js";
|
|
4
4
|
import { default as default5 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
5
|
-
import { default as default6 } from "./modules/homepage/components/Notifications/
|
|
5
|
+
import { default as default6 } from "./modules/homepage/components/Notifications/Notification.js";
|
|
6
6
|
import { default as default7 } from "./modules/homepage/components/Notifications/NotificationList.js";
|
|
7
7
|
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
8
8
|
import { default as default8 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
@@ -24,7 +24,7 @@ export {
|
|
|
24
24
|
LastInfosList,
|
|
25
25
|
default5 as MessageFlashList,
|
|
26
26
|
MessageFlashListContainer,
|
|
27
|
-
default6 as
|
|
27
|
+
default6 as Notification,
|
|
28
28
|
default7 as NotificationList,
|
|
29
29
|
NotificationListContainer,
|
|
30
30
|
default8 as SchoolSpace,
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './useIsAdmlcOrAdmc';
|
|
|
22
22
|
export * from './useKeyPress';
|
|
23
23
|
export * from './useLibraryUrl';
|
|
24
24
|
export * from './useMediaLibrary';
|
|
25
|
+
export * from './useNextcloudSearch';
|
|
25
26
|
export * from './usePublicConf';
|
|
26
27
|
export * from './useScreeb';
|
|
27
28
|
export * from './useScrollToTop';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useNextcloudSearch } from './useNextcloudSearch';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ID, NextcloudDocument } from '@edifice.io/client';
|
|
2
|
+
import { TreeData } from '../../types';
|
|
3
|
+
export type NextcloudFolderNode = TreeData & {
|
|
4
|
+
files?: NextcloudDocument[];
|
|
5
|
+
};
|
|
6
|
+
export default function useNextcloudSearch(rootId: string, rootName: string, userId?: string): {
|
|
7
|
+
root: NextcloudFolderNode;
|
|
8
|
+
loadContent: (folderId?: ID) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { useReducer, useCallback } from "react";
|
|
2
|
+
import { odeServices } from "@edifice.io/client";
|
|
3
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
4
|
+
import { findNodeById } from "../../components/TreeView/utilities/treeview.js";
|
|
5
|
+
function useNextcloudSearch(rootId, rootName, userId) {
|
|
6
|
+
function treeReducer(state, action) {
|
|
7
|
+
switch (action.type) {
|
|
8
|
+
case "update": {
|
|
9
|
+
const node = findNodeById(state, action.folderId);
|
|
10
|
+
return node && (node.children = action.subfolders.map((f) => ({
|
|
11
|
+
id: f.path,
|
|
12
|
+
name: f.name
|
|
13
|
+
})), node.files = action.files), {
|
|
14
|
+
...state
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
default:
|
|
18
|
+
throw Error("[useNextcloudSearch] Unknown action type: " + action.type);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const [root, dispatch] = useReducer(treeReducer, {
|
|
22
|
+
id: rootId,
|
|
23
|
+
name: rootName,
|
|
24
|
+
section: !0
|
|
25
|
+
}), queryClient = useQueryClient(), loadContent = useCallback(async (folderId) => {
|
|
26
|
+
if (!userId) return;
|
|
27
|
+
const path = folderId === rootId ? void 0 : folderId, payload = await queryClient.fetchQuery({
|
|
28
|
+
queryKey: ["nextcloud", "documents", userId, path ?? "/"],
|
|
29
|
+
queryFn: () => odeServices.nextcloud().listDocuments(userId, path),
|
|
30
|
+
staleTime: 6e4
|
|
31
|
+
}), subfolders = [], files = [], currentPath = path ?? "/";
|
|
32
|
+
payload.filter((doc) => doc.path !== currentPath).forEach((doc) => {
|
|
33
|
+
doc.isFolder ? subfolders.push(doc) : files.push(doc);
|
|
34
|
+
}), dispatch({
|
|
35
|
+
folderId,
|
|
36
|
+
subfolders,
|
|
37
|
+
files,
|
|
38
|
+
type: "update"
|
|
39
|
+
});
|
|
40
|
+
}, [rootId, userId, queryClient]);
|
|
41
|
+
return {
|
|
42
|
+
root,
|
|
43
|
+
loadContent
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
useNextcloudSearch as default
|
|
48
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -44,78 +44,81 @@ 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
|
|
51
|
-
import { default as default50 } from "./
|
|
52
|
-
import { default as default51 } from "./components/
|
|
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 "./
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./hooks/
|
|
106
|
-
import { default as default105 } from "./hooks/
|
|
107
|
-
import { default as default106 } from "./hooks/
|
|
108
|
-
import { default as default107 } from "./hooks/
|
|
109
|
-
import { default as default108 } from "./
|
|
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 "./hooks/
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
115
|
-
import {
|
|
116
|
-
import { default as default115 } from "./hooks/
|
|
117
|
-
import { default as default116 } from "./hooks/
|
|
118
|
-
import { default as default117 } from "./hooks/
|
|
47
|
+
import { default as default46 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
48
|
+
import { default as default47 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
49
|
+
import { default as default48 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
50
|
+
import { default as default49 } from "./components/PageLayout/PageLayout.js";
|
|
51
|
+
import { default as default50 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
52
|
+
import { default as default51, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
53
|
+
import { default as default52 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
54
|
+
import { default as default53 } from "./components/Radio/Radio.js";
|
|
55
|
+
import { default as default54 } from "./components/RadioCard/RadioCard.js";
|
|
56
|
+
import { default as default55 } from "./components/SearchBar/SearchBar.js";
|
|
57
|
+
import { default as default56 } from "./components/Button/SearchButton.js";
|
|
58
|
+
import { default as default57 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
59
|
+
import { default as default58 } from "./components/Select/Select.js";
|
|
60
|
+
import { default as default59 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
61
|
+
import { default as default60 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
62
|
+
import { default as default61 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
63
|
+
import { default as default62 } from "./components/Tree/components/SortableTree.js";
|
|
64
|
+
import { default as default63 } from "./components/StackedGroup/StackedGroup.js";
|
|
65
|
+
import { default as default64 } from "./components/Stepper/Stepper.js";
|
|
66
|
+
import { default as default65 } from "./components/Switch/Switch.js";
|
|
67
|
+
import { default as default66 } from "./components/Table/components/Table.js";
|
|
68
|
+
import { default as default67 } from "./components/TextArea/TextArea.js";
|
|
69
|
+
import { default as default68 } from "./components/Skeleton/TextSkeleton.js";
|
|
70
|
+
import { default as default69 } from "./components/Tooltip/Tooltip.js";
|
|
71
|
+
import { default as default70 } from "./components/Tree/components/Tree.js";
|
|
72
|
+
import { default as default71 } from "./components/TreeView/TreeView.js";
|
|
73
|
+
import { default as default72 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
74
|
+
import { default as default73 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
75
|
+
import { default as default74 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
76
|
+
import { default as default75 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
77
|
+
import { default as default76 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
78
|
+
import { default as default77 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
79
|
+
import { default as default78 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useBookmark/useBookmark.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useCantoo/useCantoo.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useConversation/useConversation.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useDate/useDate.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useDebounce/useDebounce.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useDirectory/useDirectory.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useDropdown/useDropdown.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useDropzone/useDropzone.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useHover/useHover.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useImage/useImage.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
104
|
+
import { default as default103 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
106
|
+
import { default as default105 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useTitle/useTitle.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useToast/useToast.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useToggle/useToggle.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
112
|
+
import { default as default111 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useUpload/useUpload.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useUser/useUser.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
118
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default117 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
119
|
+
import { default as default118 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
120
|
+
import { default as default119 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
121
|
+
import { default as default120 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
119
122
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
120
123
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
121
124
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -223,55 +226,57 @@ export {
|
|
|
223
226
|
Menu,
|
|
224
227
|
MockedProvider,
|
|
225
228
|
default45 as Modal,
|
|
226
|
-
default46 as
|
|
227
|
-
default47 as
|
|
229
|
+
default46 as Nextcloud,
|
|
230
|
+
default47 as NextcloudFileCard,
|
|
231
|
+
default48 as OnboardingModal,
|
|
232
|
+
default49 as PageLayout,
|
|
228
233
|
PageLayoutContext,
|
|
229
234
|
Pagination,
|
|
230
235
|
Popover,
|
|
231
236
|
PopoverBody,
|
|
232
237
|
PopoverFooter,
|
|
233
238
|
PopoverHeader,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
default50 as PreventPropagation,
|
|
240
|
+
default51 as PromotionCard,
|
|
241
|
+
default52 as PublishModal,
|
|
242
|
+
default53 as Radio,
|
|
243
|
+
default54 as RadioCard,
|
|
239
244
|
ResourceModal,
|
|
240
245
|
Root,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
246
|
+
default55 as SearchBar,
|
|
247
|
+
default56 as SearchButton,
|
|
248
|
+
default57 as SegmentedControl,
|
|
249
|
+
default58 as Select,
|
|
250
|
+
default59 as ShareBlog,
|
|
251
|
+
default60 as ShareModal,
|
|
252
|
+
default61 as ShareResources,
|
|
253
|
+
default62 as SortableTree,
|
|
254
|
+
default63 as StackedGroup,
|
|
255
|
+
default64 as Stepper,
|
|
256
|
+
default65 as Switch,
|
|
257
|
+
default66 as Table,
|
|
253
258
|
Tabs,
|
|
254
|
-
|
|
255
|
-
|
|
259
|
+
default67 as TextArea,
|
|
260
|
+
default68 as TextSkeleton,
|
|
256
261
|
Toolbar,
|
|
257
|
-
|
|
258
|
-
|
|
262
|
+
default69 as Tooltip,
|
|
263
|
+
default70 as Tree,
|
|
259
264
|
TreeNode,
|
|
260
265
|
TreeNodeFolderWrapper,
|
|
261
|
-
|
|
266
|
+
default71 as TreeView,
|
|
262
267
|
Upload,
|
|
263
|
-
|
|
264
|
-
|
|
268
|
+
default72 as UploadCard,
|
|
269
|
+
default73 as UploadFiles,
|
|
265
270
|
UserRightsList,
|
|
266
271
|
UserSearch,
|
|
267
|
-
|
|
268
|
-
|
|
272
|
+
default74 as VideoEmbed,
|
|
273
|
+
default75 as VideoRecorder,
|
|
269
274
|
VisibleType,
|
|
270
|
-
|
|
275
|
+
default76 as VisuallyHidden,
|
|
271
276
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
272
277
|
WORKSPACE_USER_FOLDER_ID,
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
default77 as Workspace,
|
|
279
|
+
default78 as WorkspaceFolders,
|
|
275
280
|
addNode,
|
|
276
281
|
arrayUnique,
|
|
277
282
|
buildTree,
|
|
@@ -301,56 +306,57 @@ export {
|
|
|
301
306
|
setRef,
|
|
302
307
|
updateNode,
|
|
303
308
|
updateParentIds,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
309
|
+
default79 as useBookmark,
|
|
310
|
+
default80 as useBreakpoint,
|
|
311
|
+
default81 as useBrowserInfo,
|
|
312
|
+
default82 as useCantoo,
|
|
308
313
|
useCheckable,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
default83 as useClickOutside,
|
|
315
|
+
default84 as useConversation,
|
|
316
|
+
default85 as useDate,
|
|
317
|
+
default86 as useDebounce,
|
|
318
|
+
default87 as useDirectory,
|
|
319
|
+
default88 as useDropdown,
|
|
320
|
+
default89 as useDropzone,
|
|
316
321
|
useDropzoneContext,
|
|
317
322
|
useEdificeClient,
|
|
318
|
-
|
|
323
|
+
default90 as useEdificeIcons,
|
|
319
324
|
useEdificeTheme,
|
|
320
325
|
useFileToAttachment,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
default91 as useHasWorkflow,
|
|
327
|
+
default92 as useHover,
|
|
328
|
+
default93 as useHttpErrorToast,
|
|
329
|
+
default94 as useImage,
|
|
330
|
+
default95 as useInfiniteScroll,
|
|
331
|
+
default96 as useIsAdmc,
|
|
332
|
+
default97 as useIsAdml,
|
|
333
|
+
default98 as useIsAdmlcOrAdmc,
|
|
334
|
+
default99 as useKeyPress,
|
|
335
|
+
default100 as useLibraryUrl,
|
|
336
|
+
default101 as useMediaLibrary,
|
|
337
|
+
default102 as useNextcloudSearch,
|
|
332
338
|
useOverlay,
|
|
333
339
|
usePageLayout,
|
|
334
|
-
|
|
340
|
+
default103 as usePublicConf,
|
|
335
341
|
useScreeb,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
342
|
+
default104 as useScrollToTop,
|
|
343
|
+
default105 as useShareMutation,
|
|
344
|
+
default106 as useTitle,
|
|
345
|
+
default107 as useToast,
|
|
346
|
+
default108 as useToggle,
|
|
347
|
+
default109 as useTrapFocus,
|
|
348
|
+
default110 as useTrashedResource,
|
|
343
349
|
useTreeSortable,
|
|
344
350
|
useTreeView,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
351
|
+
default111 as useUpdateMutation,
|
|
352
|
+
default112 as useUpload,
|
|
353
|
+
default113 as useUploadFiles,
|
|
354
|
+
default114 as useUser,
|
|
355
|
+
default115 as useWorkspaceFile,
|
|
356
|
+
default116 as useWorkspaceFolders,
|
|
357
|
+
default117 as useWorkspaceFoldersTree,
|
|
358
|
+
default118 as useWorkspaceSearch,
|
|
359
|
+
default119 as useXitiTrackPageLoad,
|
|
360
|
+
default120 as useZendeskGuide,
|
|
355
361
|
wrapTreeNode
|
|
356
362
|
};
|
package/dist/modules/homepage/components/Notifications/{NotificationItem.d.ts → Notification.d.ts}
RENAMED
|
@@ -11,10 +11,10 @@ export type NotificationProps = {
|
|
|
11
11
|
* - **system** — triggered by an application event; shows the app icon.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* <
|
|
14
|
+
* <Notification notification={notificationModel} />
|
|
15
15
|
*/
|
|
16
|
-
declare const
|
|
16
|
+
declare const Notification: {
|
|
17
17
|
({ notification }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
-
export default
|
|
20
|
+
export default Notification;
|
package/dist/modules/homepage/components/Notifications/{NotificationItem.js → Notification.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import SystemNotification from "./components/SystemNotification.js";
|
|
3
|
+
import UserNotification from "./components/UserNotification.js";
|
|
4
4
|
import { notificationAdapter } from "./components/notificationAdapter.js";
|
|
5
|
-
const
|
|
5
|
+
const Notification = ({
|
|
6
6
|
notification
|
|
7
7
|
}) => {
|
|
8
8
|
const notif = notificationAdapter(notification);
|
|
9
9
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
|
-
notif.type === "user" && /* @__PURE__ */ jsx(
|
|
11
|
-
notif.type === "system" && /* @__PURE__ */ jsx(
|
|
10
|
+
notif.type === "user" && /* @__PURE__ */ jsx(UserNotification, { notification: notif }),
|
|
11
|
+
notif.type === "system" && /* @__PURE__ */ jsx(SystemNotification, { notification: notif })
|
|
12
12
|
] });
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
Notification as default
|
|
16
16
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import illuEmptyNotification from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-notifications.png";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import SvgIconClose from "../../../icons/components/IconClose.js";
|
|
5
|
-
import
|
|
5
|
+
import Notification from "./Notification.js";
|
|
6
6
|
import NotificationListSkeleton from "./NotificationListSkeleton.js";
|
|
7
7
|
import NotificationSkeleton from "./NotificationSkeleton.js";
|
|
8
8
|
import useInfiniteScroll from "../../../../hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
@@ -31,7 +31,7 @@ const NotificationList = ({
|
|
|
31
31
|
] }),
|
|
32
32
|
(notifications == null ? void 0 : notifications.length) === 0 ? /* @__PURE__ */ jsx("div", { className: "mx-24", children: /* @__PURE__ */ jsx(EmptyScreen, { size: 120, imageSrc: illuEmptyNotification, imageAlt: t("homepage.notifications-list.empty.description"), text: t("homepage.notifications-list.empty.description") }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33
33
|
/* @__PURE__ */ jsx("ul", { children: notifications == null ? void 0 : notifications.map((notification, index) => /* @__PURE__ */ jsxs("li", { children: [
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
34
|
+
/* @__PURE__ */ jsx(Notification, { notification }),
|
|
35
35
|
/* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
|
|
36
36
|
] }, "notification-list-" + notification._id + "-" + index)) }),
|
|
37
37
|
hasNextPage && /* @__PURE__ */ jsx(NotificationSkeleton, { ref: loadNextRef }),
|
|
@@ -4,7 +4,7 @@ import Flex from "../../../../components/Flex/Flex.js";
|
|
|
4
4
|
import Avatar from "../../../../components/Avatar/Avatar.js";
|
|
5
5
|
import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
|
|
6
6
|
const NotificationSkeleton = /* @__PURE__ */ React.forwardRef((_props, ref) => /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification", gap: "8", ref, children: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
|
|
7
|
-
/* @__PURE__ */ jsx("div", { className: "notification-
|
|
7
|
+
/* @__PURE__ */ jsx("div", { className: "notification-picture", children: /* @__PURE__ */ jsx(Avatar, { alt: "Notification Picture", variant: "circle", className: "notification-avatar" }) }),
|
|
8
8
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", className: "notification-message", children: [
|
|
9
9
|
/* @__PURE__ */ jsx(TextSkeleton, {}),
|
|
10
10
|
/* @__PURE__ */ jsx(TextSkeleton, {}),
|
|
@@ -17,8 +17,8 @@ export type NotificationItemProps = {
|
|
|
17
17
|
* notification comes from a user or a system event. Use `UserNotification` or
|
|
18
18
|
* `SystemNotification` instead of consuming this directly.
|
|
19
19
|
*/
|
|
20
|
-
declare const
|
|
20
|
+
declare const NotificationItem: {
|
|
21
21
|
({ picture, message, date, uri, children, }: NotificationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default NotificationItem;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import useDate from "../../../../../hooks/useDate/useDate.js";
|
|
3
|
+
import Flex from "../../../../../components/Flex/Flex.js";
|
|
4
|
+
const NotificationItem = ({
|
|
5
|
+
picture,
|
|
6
|
+
message,
|
|
7
|
+
date,
|
|
8
|
+
uri,
|
|
9
|
+
children
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
formatTimeAgo,
|
|
13
|
+
formatDate
|
|
14
|
+
} = useDate();
|
|
15
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification", gap: "8", children: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: "notification-picture", children: picture }),
|
|
17
|
+
/* @__PURE__ */ jsx("a", { href: uri, "data-testid": "notification-content", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", children: [
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "notification-message", dangerouslySetInnerHTML: {
|
|
19
|
+
__html: message
|
|
20
|
+
} }),
|
|
21
|
+
children,
|
|
22
|
+
/* @__PURE__ */ jsx("p", { className: "notification-date", title: formatDate(date, "LLL"), children: formatTimeAgo(date) })
|
|
23
|
+
] }) })
|
|
24
|
+
] }) });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
NotificationItem as default
|
|
28
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type NotificationResourceProps = {
|
|
2
2
|
appCode: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
@@ -8,8 +8,8 @@ export type NotificationItemResourceProps = {
|
|
|
8
8
|
* falling back to the raw `appCode` if no translation exists.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
({ appCode
|
|
11
|
+
declare const NotificationResource: {
|
|
12
|
+
({ appCode }: NotificationResourceProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default NotificationResource;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import AppIcon from "../../../../../components/AppIcon/AppIcon.js";
|
|
4
|
+
const NotificationResource = ({
|
|
5
|
+
appCode
|
|
6
|
+
}) => {
|
|
7
|
+
const {
|
|
8
|
+
t
|
|
9
|
+
} = useTranslation(), appLabel = t(`${appCode}`, {
|
|
10
|
+
defaultValue: appCode
|
|
11
|
+
}), appCssClass = `app-${appCode}`;
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: `notification-resource ${appCssClass} bg-app-light`, children: [
|
|
13
|
+
/* @__PURE__ */ jsx("span", { className: "notification-resource-icon", children: /* @__PURE__ */ jsx(AppIcon, { app: appCode, size: "24", iconFit: "contain" }) }),
|
|
14
|
+
/* @__PURE__ */ jsx("span", { className: "notification-resource-name color-app", children: appLabel })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
NotificationResource as default
|
|
19
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SystemWebNotification } from './notificationAdapter';
|
|
2
|
-
export type
|
|
2
|
+
export type SystemNotificationProps = {
|
|
3
3
|
notification: SystemWebNotification;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -8,8 +8,8 @@ export type SystemNotificationItemProps = {
|
|
|
8
8
|
* Wraps `NotificationItem` — prefer using `Notification` at the top level
|
|
9
9
|
* rather than this component directly.
|
|
10
10
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
({ notification
|
|
11
|
+
declare const SystemNotification: {
|
|
12
|
+
({ notification }: SystemNotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default SystemNotification;
|