@edifice.io/react 2.5.18-develop.20260505152944 → 2.5.18-epic-homepage.20260506160421
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/Logo/index.d.ts +1 -1
- package/dist/components/LogoBeta/LogoBeta.d.ts +7 -0
- package/dist/components/LogoBeta/LogoBeta.js +14 -0
- package/dist/components/LogoBeta/index.d.ts +2 -0
- package/dist/components/PageLayout/PageLayout.d.ts +45 -0
- package/dist/components/PageLayout/PageLayout.js +94 -0
- package/dist/components/PageLayout/PageLayoutContext.d.ts +14 -0
- package/dist/components/PageLayout/PageLayoutContext.js +8 -0
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +10 -0
- package/dist/components/PageLayout/components/PageLayoutContent.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutContent.js +18 -0
- package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutHeader.js +17 -0
- package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +15 -0
- package/dist/components/PageLayout/components/PageLayoutOverlay.js +34 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +18 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +18 -0
- package/dist/components/PageLayout/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/icons-nav.js +38 -28
- package/dist/index.js +153 -146
- package/dist/modules/homepage/components/Header/Header.d.ts +8 -0
- package/dist/modules/homepage/components/Header/Header.js +74 -0
- package/dist/modules/homepage/components/Header/index.d.ts +2 -0
- package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +33 -0
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +4 -0
- package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +8 -0
- package/dist/modules/homepage/components/LastInfos/index.d.ts +4 -0
- package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +17 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +5 -0
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +16 -0
- package/dist/modules/homepage/components/MessageFlashList/index.d.ts +4 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +20 -0
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +13 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +15 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +4 -0
- package/dist/modules/homepage/components/SchoolSpace/index.d.ts +3 -0
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +6 -0
- package/dist/modules/homepage/components/index.d.ts +4 -0
- package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +5 -0
- package/dist/modules/homepage/index.d.ts +1 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +18 -0
- package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconHomeBeta.js +13 -0
- package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +18 -0
- package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +13 -0
- package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +14 -0
- package/dist/modules/icons/components/nav/IconNotificationsBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/index.d.ts +5 -0
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +0 -7
- package/package.json +10 -6
package/dist/index.js
CHANGED
|
@@ -39,79 +39,81 @@ import { default as default37 } from "./components/Label/Label.js";
|
|
|
39
39
|
import { default as default38 } from "./components/Loading/Loading.js";
|
|
40
40
|
import { default as default39 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
41
41
|
import { default as default40 } from "./components/Logo/Logo.js";
|
|
42
|
-
import { default as default41 } from "./
|
|
43
|
-
import { default as default42 } from "./
|
|
44
|
-
import { default as default43 } from "./components/
|
|
45
|
-
import { default as default44 } from "./
|
|
46
|
-
import { default as default45 } from "./
|
|
47
|
-
import { default as default46
|
|
48
|
-
import { default as default47 } from "./
|
|
49
|
-
import { default as default48 } from "./components/
|
|
50
|
-
import { default as default49 } from "./
|
|
51
|
-
import { default as default50 } from "./components/
|
|
52
|
-
import { default as default51 } from "./components/
|
|
53
|
-
import { default as default52 } from "./components/
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54 } from "./
|
|
56
|
-
import { default as default55 } from "./
|
|
57
|
-
import { default as default56 } from "./modules/modals/ShareModal/
|
|
58
|
-
import { default as default57 } from "./
|
|
59
|
-
import { default as default58 } from "./
|
|
60
|
-
import { default as default59 } from "./components/
|
|
61
|
-
import { default as default60 } from "./components/
|
|
62
|
-
import { default as default61 } from "./components/
|
|
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 "./
|
|
69
|
-
import { default as default68 } from "./
|
|
70
|
-
import { default as default69 } from "./modules/multimedia/
|
|
71
|
-
import { default as default70 } from "./modules/multimedia/
|
|
72
|
-
import { default as default71 } from "./
|
|
73
|
-
import { default as default72 } from "./modules/multimedia/
|
|
74
|
-
import { default as default73 } from "./
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./
|
|
77
|
-
import { default as default76 } from "./hooks/
|
|
78
|
-
import { default as default77 } from "./hooks/
|
|
79
|
-
import { default as default78 } from "./hooks/
|
|
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 "./
|
|
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 "./
|
|
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 "./hooks/
|
|
110
|
-
import { default as default109 } from "./hooks/
|
|
111
|
-
import {
|
|
112
|
-
import { default as default111 } from "./hooks/
|
|
113
|
-
import { default as default112 } from "./hooks/
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
42
|
+
import { default as default41 } from "./components/LogoBeta/LogoBeta.js";
|
|
43
|
+
import { default as default42 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
44
|
+
import { default as default43 } from "./components/MediaViewer/MediaViewer.js";
|
|
45
|
+
import { default as default44 } from "./components/Modal/Modal.js";
|
|
46
|
+
import { default as default45 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
47
|
+
import { default as default46 } from "./components/PageLayout/PageLayout.js";
|
|
48
|
+
import { default as default47 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
49
|
+
import { default as default48, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
50
|
+
import { default as default49 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
51
|
+
import { default as default50 } from "./components/Radio/Radio.js";
|
|
52
|
+
import { default as default51 } from "./components/RadioCard/RadioCard.js";
|
|
53
|
+
import { default as default52 } from "./components/SearchBar/SearchBar.js";
|
|
54
|
+
import { default as default53 } from "./components/Button/SearchButton.js";
|
|
55
|
+
import { default as default54 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
56
|
+
import { default as default55 } from "./components/Select/Select.js";
|
|
57
|
+
import { default as default56 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
58
|
+
import { default as default57 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
59
|
+
import { default as default58 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
60
|
+
import { default as default59 } from "./components/Tree/components/SortableTree.js";
|
|
61
|
+
import { default as default60 } from "./components/StackedGroup/StackedGroup.js";
|
|
62
|
+
import { default as default61 } from "./components/Stepper/Stepper.js";
|
|
63
|
+
import { default as default62 } from "./components/Switch/Switch.js";
|
|
64
|
+
import { default as default63 } from "./components/Table/components/Table.js";
|
|
65
|
+
import { default as default64 } from "./components/TextArea/TextArea.js";
|
|
66
|
+
import { default as default65 } from "./components/Skeleton/TextSkeleton.js";
|
|
67
|
+
import { default as default66 } from "./components/Tooltip/Tooltip.js";
|
|
68
|
+
import { default as default67 } from "./components/Tree/components/Tree.js";
|
|
69
|
+
import { default as default68 } from "./components/TreeView/TreeView.js";
|
|
70
|
+
import { default as default69 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
71
|
+
import { default as default70 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
72
|
+
import { default as default71 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
73
|
+
import { default as default72 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
74
|
+
import { default as default73 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
75
|
+
import { default as default74 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
76
|
+
import { default as default75 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
77
|
+
import { default as default76 } from "./hooks/useBookmark/useBookmark.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useCantoo/useCantoo.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useConversation/useConversation.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useDate/useDate.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useDebounce/useDebounce.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useDirectory/useDirectory.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useDropdown/useDropdown.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useDropzone/useDropzone.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useHover/useHover.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useImage/useImage.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
101
|
+
import { default as default100 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useTitle/useTitle.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useToast/useToast.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useToggle/useToggle.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
107
|
+
import { default as default106 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useUpload/useUpload.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useUser/useUser.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
113
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default112 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
115
117
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
116
118
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
117
119
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -126,6 +128,7 @@ import { Layout } from "./components/Layout/Layout.js";
|
|
|
126
128
|
import { List } from "./components/List/List.js";
|
|
127
129
|
import { Menu } from "./components/Menu/components/Menu.js";
|
|
128
130
|
import { MockedProvider } from "./providers/MockedProvider/MockedProvider.js";
|
|
131
|
+
import { PageLayoutContext, usePageLayout } from "./components/PageLayout/PageLayoutContext.js";
|
|
129
132
|
import { Pagination } from "./components/Pagination/Pagination.js";
|
|
130
133
|
import { Popover, PopoverBody, PopoverFooter, PopoverHeader } from "./components/Popover/Popover.js";
|
|
131
134
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
@@ -205,58 +208,61 @@ export {
|
|
|
205
208
|
default38 as Loading,
|
|
206
209
|
default39 as LoadingScreen,
|
|
207
210
|
default40 as Logo,
|
|
208
|
-
default41 as
|
|
209
|
-
default42 as
|
|
211
|
+
default41 as LogoBeta,
|
|
212
|
+
default42 as MediaLibrary,
|
|
213
|
+
default43 as MediaViewer,
|
|
210
214
|
Menu,
|
|
211
215
|
MockedProvider,
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
default44 as Modal,
|
|
217
|
+
default45 as OnboardingModal,
|
|
218
|
+
default46 as PageLayout,
|
|
219
|
+
PageLayoutContext,
|
|
214
220
|
Pagination,
|
|
215
221
|
Popover,
|
|
216
222
|
PopoverBody,
|
|
217
223
|
PopoverFooter,
|
|
218
224
|
PopoverHeader,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
225
|
+
default47 as PreventPropagation,
|
|
226
|
+
default48 as PromotionCard,
|
|
227
|
+
default49 as PublishModal,
|
|
228
|
+
default50 as Radio,
|
|
229
|
+
default51 as RadioCard,
|
|
224
230
|
ResourceModal,
|
|
225
231
|
Root,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
default52 as SearchBar,
|
|
233
|
+
default53 as SearchButton,
|
|
234
|
+
default54 as SegmentedControl,
|
|
235
|
+
default55 as Select,
|
|
236
|
+
default56 as ShareBlog,
|
|
237
|
+
default57 as ShareModal,
|
|
238
|
+
default58 as ShareResources,
|
|
239
|
+
default59 as SortableTree,
|
|
240
|
+
default60 as StackedGroup,
|
|
241
|
+
default61 as Stepper,
|
|
242
|
+
default62 as Switch,
|
|
243
|
+
default63 as Table,
|
|
238
244
|
Tabs,
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
default64 as TextArea,
|
|
246
|
+
default65 as TextSkeleton,
|
|
241
247
|
Toolbar,
|
|
242
|
-
|
|
243
|
-
|
|
248
|
+
default66 as Tooltip,
|
|
249
|
+
default67 as Tree,
|
|
244
250
|
TreeNode,
|
|
245
251
|
TreeNodeFolderWrapper,
|
|
246
|
-
|
|
252
|
+
default68 as TreeView,
|
|
247
253
|
Upload,
|
|
248
|
-
|
|
249
|
-
|
|
254
|
+
default69 as UploadCard,
|
|
255
|
+
default70 as UploadFiles,
|
|
250
256
|
UserRightsList,
|
|
251
257
|
UserSearch,
|
|
252
|
-
|
|
253
|
-
|
|
258
|
+
default71 as VideoEmbed,
|
|
259
|
+
default72 as VideoRecorder,
|
|
254
260
|
VisibleType,
|
|
255
|
-
|
|
261
|
+
default73 as VisuallyHidden,
|
|
256
262
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
257
263
|
WORKSPACE_USER_FOLDER_ID,
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
default74 as Workspace,
|
|
265
|
+
default75 as WorkspaceFolders,
|
|
260
266
|
addNode,
|
|
261
267
|
arrayUnique,
|
|
262
268
|
buildTree,
|
|
@@ -286,52 +292,53 @@ export {
|
|
|
286
292
|
setRef,
|
|
287
293
|
updateNode,
|
|
288
294
|
updateParentIds,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
295
|
+
default76 as useBookmark,
|
|
296
|
+
default77 as useBreakpoint,
|
|
297
|
+
default78 as useBrowserInfo,
|
|
298
|
+
default79 as useCantoo,
|
|
293
299
|
useCheckable,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
default80 as useClickOutside,
|
|
301
|
+
default81 as useConversation,
|
|
302
|
+
default82 as useDate,
|
|
303
|
+
default83 as useDebounce,
|
|
304
|
+
default84 as useDirectory,
|
|
305
|
+
default85 as useDropdown,
|
|
306
|
+
default86 as useDropzone,
|
|
301
307
|
useDropzoneContext,
|
|
302
308
|
useEdificeClient,
|
|
303
|
-
|
|
309
|
+
default87 as useEdificeIcons,
|
|
304
310
|
useEdificeTheme,
|
|
305
311
|
useFileToAttachment,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
312
|
+
default88 as useHasWorkflow,
|
|
313
|
+
default89 as useHover,
|
|
314
|
+
default90 as useHttpErrorToast,
|
|
315
|
+
default91 as useImage,
|
|
316
|
+
default92 as useInfiniteScroll,
|
|
317
|
+
default93 as useIsAdmc,
|
|
318
|
+
default94 as useIsAdml,
|
|
319
|
+
default95 as useIsAdmlcOrAdmc,
|
|
320
|
+
default96 as useKeyPress,
|
|
321
|
+
default97 as useLibraryUrl,
|
|
322
|
+
default98 as useMediaLibrary,
|
|
323
|
+
usePageLayout,
|
|
324
|
+
default99 as useScrollToTop,
|
|
325
|
+
default100 as useShareMutation,
|
|
326
|
+
default101 as useTitle,
|
|
327
|
+
default102 as useToast,
|
|
328
|
+
default103 as useToggle,
|
|
329
|
+
default104 as useTrapFocus,
|
|
330
|
+
default105 as useTrashedResource,
|
|
324
331
|
useTreeSortable,
|
|
325
332
|
useTreeView,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
333
|
+
default106 as useUpdateMutation,
|
|
334
|
+
default107 as useUpload,
|
|
335
|
+
default108 as useUploadFiles,
|
|
336
|
+
default109 as useUser,
|
|
337
|
+
default110 as useWorkspaceFile,
|
|
338
|
+
default111 as useWorkspaceFolders,
|
|
339
|
+
default112 as useWorkspaceFoldersTree,
|
|
340
|
+
default113 as useWorkspaceSearch,
|
|
341
|
+
default114 as useXitiTrackPageLoad,
|
|
342
|
+
default115 as useZendeskGuide,
|
|
336
343
|
wrapTreeNode
|
|
337
344
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { useId } from "react";
|
|
5
|
+
import { Navbar } from "../../../../components/Layout/components/Navbar.js";
|
|
6
|
+
import { NavItem } from "../../../../components/Layout/components/NavItem.js";
|
|
7
|
+
import { NavLink } from "../../../../components/Layout/components/NavLink.js";
|
|
8
|
+
import useHeader from "../../../../components/Layout/hooks/useHeader.js";
|
|
9
|
+
import SvgIconCommunitiesBeta from "../../../icons/components/nav/IconCommunitiesBeta.js";
|
|
10
|
+
import SvgIconDisconnect from "../../../icons/components/nav/IconDisconnect.js";
|
|
11
|
+
import SvgIconHomeBeta from "../../../icons/components/nav/IconHomeBeta.js";
|
|
12
|
+
import SvgIconMessagesBeta from "../../../icons/components/nav/IconMessagesBeta.js";
|
|
13
|
+
import SvgIconMyAppsBeta from "../../../icons/components/nav/IconMyAppsBeta.js";
|
|
14
|
+
import useConversation from "../../../../hooks/useConversation/useConversation.js";
|
|
15
|
+
import useUser from "../../../../hooks/useUser/useUser.js";
|
|
16
|
+
import useHasWorkflow from "../../../../hooks/useHasWorkflow/useHasWorkflow.js";
|
|
17
|
+
import { useEdificeTheme } from "../../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
18
|
+
import useHover from "../../../../hooks/useHover/useHover.js";
|
|
19
|
+
import LogoBeta from "../../../../components/LogoBeta/LogoBeta.js";
|
|
20
|
+
import Badge from "../../../../components/Badge/Badge.js";
|
|
21
|
+
import VisuallyHidden from "../../../../components/VisuallyHidden/VisuallyHidden.js";
|
|
22
|
+
import Avatar from "../../../../components/Avatar/Avatar.js";
|
|
23
|
+
import { Popover, PopoverBody } from "../../../../components/Popover/Popover.js";
|
|
24
|
+
const Header = ({
|
|
25
|
+
src = ""
|
|
26
|
+
}) => {
|
|
27
|
+
const {
|
|
28
|
+
t
|
|
29
|
+
} = useTranslation(), {
|
|
30
|
+
messages
|
|
31
|
+
} = useConversation(), {
|
|
32
|
+
user,
|
|
33
|
+
avatar
|
|
34
|
+
} = useUser(), hasCarbonioPreauthWorkflow = useHasWorkflow("org.entcore.auth.controllers.CarbonioPreauthController|preauth") || !1, classes = clsx("header-beta d-print-none no-2d no-1d"), {
|
|
35
|
+
userAvatar,
|
|
36
|
+
userName,
|
|
37
|
+
communityWorkflow,
|
|
38
|
+
conversationWorflow
|
|
39
|
+
} = useHeader({
|
|
40
|
+
user,
|
|
41
|
+
avatar
|
|
42
|
+
}), {
|
|
43
|
+
theme
|
|
44
|
+
} = useEdificeTheme(), hasMessages = messages > 0, [userRef, isUserHovered] = useHover(), popoverUserId = useId();
|
|
45
|
+
return /* @__PURE__ */ jsx("header", { className: classes, children: /* @__PURE__ */ jsxs(Navbar, { className: "px-24", children: [
|
|
46
|
+
/* @__PURE__ */ jsx(LogoBeta, { src: `${src}/img/illustrations/logo.png` }),
|
|
47
|
+
/* @__PURE__ */ jsxs("ul", { className: "navbar-nav", children: [
|
|
48
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/timeline/timeline", translate: t("navbar.home"), "data-testid": "header-home-button", children: /* @__PURE__ */ jsx(SvgIconHomeBeta, {}) }) }),
|
|
49
|
+
communityWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/community", translate: t("navbar.community"), "data-testid": "header-community-button", children: /* @__PURE__ */ jsx(SvgIconCommunitiesBeta, { className: "icon community" }) }) }),
|
|
50
|
+
conversationWorflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs(NavLink, { className: "position-relative", link: "/conversation/conversation", translate: t("conversation"), "data-testid": "header-messagerie-button", children: [
|
|
51
|
+
/* @__PURE__ */ jsx(SvgIconMessagesBeta, {}),
|
|
52
|
+
hasMessages && /* @__PURE__ */ jsx(Badge, { variant: {
|
|
53
|
+
type: "notification",
|
|
54
|
+
level: "warning"
|
|
55
|
+
}, className: "position-absolute", children: messages })
|
|
56
|
+
] }) }),
|
|
57
|
+
hasCarbonioPreauthWorkflow && /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs("a", { className: "nav-link position-relative", href: "/auth/carbonio/preauth", target: "_blank", "data-testid": "header-messagerie-button", children: [
|
|
58
|
+
/* @__PURE__ */ jsx(SvgIconMessagesBeta, {}),
|
|
59
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("conversation") })
|
|
60
|
+
] }) }),
|
|
61
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), "data-testid": "header-my-apps-button", children: /* @__PURE__ */ jsx(SvgIconMyAppsBeta, {}) }) }),
|
|
62
|
+
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: userRef, id: popoverUserId, "aria-haspopup": "true", "aria-expanded": isUserHovered, "data-testid": "header-user-menu-button", children: [
|
|
63
|
+
/* @__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" }) }),
|
|
64
|
+
/* @__PURE__ */ jsx(Popover, { className: "top-100 widget", id: popoverUserId, isVisible: isUserHovered, children: /* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link d-flex align-items-center gap-8", "data-testid": "header-logout-button", children: [
|
|
65
|
+
/* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
|
|
66
|
+
/* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
|
|
67
|
+
] }) }) })
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
] }) });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
Header as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface LastInfosProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the info.
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* URL of the icon to display in the upper left corner.
|
|
8
|
+
* i.e. "/workspace/document/36a04526-15a2-4e8f-adb6-cca75630e50d"
|
|
9
|
+
*/
|
|
10
|
+
icon: string;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the thread to be displayed next to the icon.
|
|
13
|
+
* i.e. "Informations importantes"
|
|
14
|
+
*/
|
|
15
|
+
thread: string;
|
|
16
|
+
/**
|
|
17
|
+
* Title of the info.
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Content of the info.
|
|
22
|
+
*/
|
|
23
|
+
content: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the user who posted this info.
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
}
|
|
29
|
+
declare const LastInfos: {
|
|
30
|
+
({ title }: LastInfosProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export default LastInfos;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LastInfosProps } from './LastInfos';
|
|
2
|
+
export interface LastInfosListProps {
|
|
3
|
+
infos: Array<LastInfosProps>;
|
|
4
|
+
}
|
|
5
|
+
export declare function LastInfosList({ infos }: LastInfosListProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace LastInfosList {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LastInfosModel {
|
|
2
|
+
modifiedDate: string;
|
|
3
|
+
thread: {
|
|
4
|
+
id: number;
|
|
5
|
+
icon: string;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
title: string;
|
|
9
|
+
content: string;
|
|
10
|
+
username: string;
|
|
11
|
+
id: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function useLastInfos(): {
|
|
14
|
+
infos: LastInfosModel[] | undefined;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
error: Error | null;
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export type MessageFlashProps = {
|
|
3
|
+
/** Message to display */
|
|
4
|
+
message: IFlashMessageModel;
|
|
5
|
+
/** Callback when the message is closed */
|
|
6
|
+
onCloseMessage?: (message: IFlashMessageModel) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const MessageFlash: {
|
|
9
|
+
({ message, onCloseMessage }: MessageFlashProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default MessageFlash;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export type MessageFlashListProps = {
|
|
3
|
+
/** List of messages to display */
|
|
4
|
+
messages: IFlashMessageModel[];
|
|
5
|
+
/** Callback when the message is closed */
|
|
6
|
+
onCloseMessage?: (message: IFlashMessageModel) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const MessageFlashList: {
|
|
9
|
+
({ messages, onCloseMessage, }: MessageFlashListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default MessageFlashList;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export interface UseMessageFlashListContainerReturn {
|
|
3
|
+
/** Array of flash messages */
|
|
4
|
+
messages: IFlashMessageModel[] | undefined;
|
|
5
|
+
/** Loading state for fetching messages */
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
/** Error state from fetching messages */
|
|
8
|
+
error: Error | null;
|
|
9
|
+
/** Handler to mark a message as read */
|
|
10
|
+
handleMarkAsRead: (message: IFlashMessageModel) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Custom hook that provides flash messages data and handlers with exposed loading states
|
|
14
|
+
* @returns Object containing messages, loading state, error state, and mark as read handler
|
|
15
|
+
*/
|
|
16
|
+
export declare const useMessageFlashListContainer: () => UseMessageFlashListContainerReturn;
|
package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a message flash service with methods to interact with flash messages.
|
|
4
|
+
*
|
|
5
|
+
* @param baseURL The base URL for the message flash service API.
|
|
6
|
+
* @returns A service exposing methods to retrieve flash messages and mark them as read.
|
|
7
|
+
*/
|
|
8
|
+
export declare const createMessagesFlashService: (baseURL: string) => {
|
|
9
|
+
/**
|
|
10
|
+
* Get message flash.
|
|
11
|
+
* @returns a message flash object
|
|
12
|
+
*/
|
|
13
|
+
getMessagesFlash(): Promise<IFlashMessageModel[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Mark a flash message as read.
|
|
16
|
+
* @param message - The flash message to mark as read
|
|
17
|
+
* @returns A promise that resolves when the operation is complete
|
|
18
|
+
*/
|
|
19
|
+
markAsRead(message: IFlashMessageModel): Promise<void>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export declare const messagesFlashQueryKeys: {
|
|
3
|
+
all: () => readonly ["messagesFlash"];
|
|
4
|
+
};
|
|
5
|
+
export declare const messagesFlashQueryOptions: {
|
|
6
|
+
getMessagesFlash(): import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<IFlashMessageModel[], Error, IFlashMessageModel[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
7
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<IFlashMessageModel[], import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, IFlashMessageModel[]>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const useMessagesFlash: () => import('@tanstack/react-query').UseQueryResult<IFlashMessageModel[], Error>;
|
|
13
|
+
export declare const useMarkAsRead: () => import('@tanstack/react-query').UseMutationResult<void, Error, IFlashMessageModel, void>;
|