@edifice.io/react 2.5.17-develop-b2school.20260427101009 → 2.5.17-epic-homepage.20260504173613
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/homepage.js +6 -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/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/MessageFlash.js +60 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +10 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +5 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +14 -0
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +16 -0
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +19 -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/index.js +5 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +20 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +21 -0
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +13 -0
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +31 -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 +1 -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/multimedia/ImageEditor/effects/blur.js +7 -9
- 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 { Popover, PopoverBody, PopoverFooter, PopoverHeader } from "./components/Popover/Popover.js";
|
|
130
133
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
131
134
|
import { Tabs } from "./components/Tabs/components/Tabs.js";
|
|
@@ -204,57 +207,60 @@ export {
|
|
|
204
207
|
default38 as Loading,
|
|
205
208
|
default39 as LoadingScreen,
|
|
206
209
|
default40 as Logo,
|
|
207
|
-
default41 as
|
|
208
|
-
default42 as
|
|
210
|
+
default41 as LogoBeta,
|
|
211
|
+
default42 as MediaLibrary,
|
|
212
|
+
default43 as MediaViewer,
|
|
209
213
|
Menu,
|
|
210
214
|
MockedProvider,
|
|
211
|
-
|
|
212
|
-
|
|
215
|
+
default44 as Modal,
|
|
216
|
+
default45 as OnboardingModal,
|
|
217
|
+
default46 as PageLayout,
|
|
218
|
+
PageLayoutContext,
|
|
213
219
|
Popover,
|
|
214
220
|
PopoverBody,
|
|
215
221
|
PopoverFooter,
|
|
216
222
|
PopoverHeader,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
223
|
+
default47 as PreventPropagation,
|
|
224
|
+
default48 as PromotionCard,
|
|
225
|
+
default49 as PublishModal,
|
|
226
|
+
default50 as Radio,
|
|
227
|
+
default51 as RadioCard,
|
|
222
228
|
ResourceModal,
|
|
223
229
|
Root,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
230
|
+
default52 as SearchBar,
|
|
231
|
+
default53 as SearchButton,
|
|
232
|
+
default54 as SegmentedControl,
|
|
233
|
+
default55 as Select,
|
|
234
|
+
default56 as ShareBlog,
|
|
235
|
+
default57 as ShareModal,
|
|
236
|
+
default58 as ShareResources,
|
|
237
|
+
default59 as SortableTree,
|
|
238
|
+
default60 as StackedGroup,
|
|
239
|
+
default61 as Stepper,
|
|
240
|
+
default62 as Switch,
|
|
241
|
+
default63 as Table,
|
|
236
242
|
Tabs,
|
|
237
|
-
|
|
238
|
-
|
|
243
|
+
default64 as TextArea,
|
|
244
|
+
default65 as TextSkeleton,
|
|
239
245
|
Toolbar,
|
|
240
|
-
|
|
241
|
-
|
|
246
|
+
default66 as Tooltip,
|
|
247
|
+
default67 as Tree,
|
|
242
248
|
TreeNode,
|
|
243
249
|
TreeNodeFolderWrapper,
|
|
244
|
-
|
|
250
|
+
default68 as TreeView,
|
|
245
251
|
Upload,
|
|
246
|
-
|
|
247
|
-
|
|
252
|
+
default69 as UploadCard,
|
|
253
|
+
default70 as UploadFiles,
|
|
248
254
|
UserRightsList,
|
|
249
255
|
UserSearch,
|
|
250
|
-
|
|
251
|
-
|
|
256
|
+
default71 as VideoEmbed,
|
|
257
|
+
default72 as VideoRecorder,
|
|
252
258
|
VisibleType,
|
|
253
|
-
|
|
259
|
+
default73 as VisuallyHidden,
|
|
254
260
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
255
261
|
WORKSPACE_USER_FOLDER_ID,
|
|
256
|
-
|
|
257
|
-
|
|
262
|
+
default74 as Workspace,
|
|
263
|
+
default75 as WorkspaceFolders,
|
|
258
264
|
addNode,
|
|
259
265
|
arrayUnique,
|
|
260
266
|
buildTree,
|
|
@@ -284,52 +290,53 @@ export {
|
|
|
284
290
|
setRef,
|
|
285
291
|
updateNode,
|
|
286
292
|
updateParentIds,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
293
|
+
default76 as useBookmark,
|
|
294
|
+
default77 as useBreakpoint,
|
|
295
|
+
default78 as useBrowserInfo,
|
|
296
|
+
default79 as useCantoo,
|
|
291
297
|
useCheckable,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
default80 as useClickOutside,
|
|
299
|
+
default81 as useConversation,
|
|
300
|
+
default82 as useDate,
|
|
301
|
+
default83 as useDebounce,
|
|
302
|
+
default84 as useDirectory,
|
|
303
|
+
default85 as useDropdown,
|
|
304
|
+
default86 as useDropzone,
|
|
299
305
|
useDropzoneContext,
|
|
300
306
|
useEdificeClient,
|
|
301
|
-
|
|
307
|
+
default87 as useEdificeIcons,
|
|
302
308
|
useEdificeTheme,
|
|
303
309
|
useFileToAttachment,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
310
|
+
default88 as useHasWorkflow,
|
|
311
|
+
default89 as useHover,
|
|
312
|
+
default90 as useHttpErrorToast,
|
|
313
|
+
default91 as useImage,
|
|
314
|
+
default92 as useInfiniteScroll,
|
|
315
|
+
default93 as useIsAdmc,
|
|
316
|
+
default94 as useIsAdml,
|
|
317
|
+
default95 as useIsAdmlcOrAdmc,
|
|
318
|
+
default96 as useKeyPress,
|
|
319
|
+
default97 as useLibraryUrl,
|
|
320
|
+
default98 as useMediaLibrary,
|
|
321
|
+
usePageLayout,
|
|
322
|
+
default99 as useScrollToTop,
|
|
323
|
+
default100 as useShareMutation,
|
|
324
|
+
default101 as useTitle,
|
|
325
|
+
default102 as useToast,
|
|
326
|
+
default103 as useToggle,
|
|
327
|
+
default104 as useTrapFocus,
|
|
328
|
+
default105 as useTrashedResource,
|
|
322
329
|
useTreeSortable,
|
|
323
330
|
useTreeView,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
default106 as useUpdateMutation,
|
|
332
|
+
default107 as useUpload,
|
|
333
|
+
default108 as useUploadFiles,
|
|
334
|
+
default109 as useUser,
|
|
335
|
+
default110 as useWorkspaceFile,
|
|
336
|
+
default111 as useWorkspaceFolders,
|
|
337
|
+
default112 as useWorkspaceFoldersTree,
|
|
338
|
+
default113 as useWorkspaceSearch,
|
|
339
|
+
default114 as useXitiTrackPageLoad,
|
|
340
|
+
default115 as useZendeskGuide,
|
|
334
341
|
wrapTreeNode
|
|
335
342
|
};
|
|
@@ -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 py-8", 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,60 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { useState, useRef, useEffect } from "react";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import SvgIconAlertTriangle from "../../../icons/components/IconAlertTriangle.js";
|
|
6
|
+
import SvgIconClose from "../../../icons/components/IconClose.js";
|
|
7
|
+
import SvgIconInfoCircle from "../../../icons/components/IconInfoCircle.js";
|
|
8
|
+
import { useEdificeClient } from "../../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
9
|
+
import Card from "../../../../components/Card/Card.js";
|
|
10
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
11
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
12
|
+
import Button from "../../../../components/Button/Button.js";
|
|
13
|
+
const MessageFlash = ({
|
|
14
|
+
message,
|
|
15
|
+
onCloseMessage
|
|
16
|
+
}) => {
|
|
17
|
+
const {
|
|
18
|
+
currentLanguage
|
|
19
|
+
} = useEdificeClient(), [isCollapsed, setIsCollapsed] = useState(!0), [hasOverflow, setHasOverflow] = useState(!1), contentRef = useRef(null), checkContentTimeoutRef = useRef(void 0), {
|
|
20
|
+
t
|
|
21
|
+
} = useTranslation();
|
|
22
|
+
let content = "";
|
|
23
|
+
message.contents && (currentLanguage && message.contents[currentLanguage] ? content = message.contents[currentLanguage] : message.contents.fr ? content = message.contents.fr : content = Object.keys(message.contents).map((key) => message.contents[key]).filter((cont) => cont !== null)[0]), useEffect(() => {
|
|
24
|
+
const checkOverflow = () => {
|
|
25
|
+
if (contentRef.current) {
|
|
26
|
+
const element = contentRef.current, originalClass = element.className;
|
|
27
|
+
element.className = element.className.replace(/text-truncate(-\d+)?/g, "").trim();
|
|
28
|
+
const computedStyle = window.getComputedStyle(element), lineHeight = parseFloat(computedStyle.lineHeight) || parseFloat(computedStyle.fontSize) * 1.2, contentHeight = element.scrollHeight, twoLinesHeight = lineHeight * 2;
|
|
29
|
+
setHasOverflow(contentHeight > twoLinesHeight + 2), element.className = originalClass;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
content && (checkContentTimeoutRef.current && clearTimeout(checkContentTimeoutRef.current), checkContentTimeoutRef.current = setTimeout(checkOverflow, 0));
|
|
33
|
+
}, [content]), useEffect(() => () => {
|
|
34
|
+
checkContentTimeoutRef.current && clearTimeout(checkContentTimeoutRef.current);
|
|
35
|
+
});
|
|
36
|
+
const classes = clsx("message-flash", message.color ? `message-flash-${message.color}` : null), classesContent = clsx("message-flash-content", isCollapsed ? "text-truncate text-truncate-2" : null), handleCollapse = () => {
|
|
37
|
+
setIsCollapsed((collapsed) => !collapsed);
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ jsxs(Card, { className: classes, isClickable: !1, isSelectable: !1, children: [
|
|
40
|
+
(hasOverflow && !isCollapsed || !hasOverflow) && /* @__PURE__ */ jsx(IconButton, { variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ jsx(SvgIconClose, {}), onClick: () => {
|
|
41
|
+
onCloseMessage == null || onCloseMessage(message);
|
|
42
|
+
}, className: "message-flash-close-button", "data-testid": "message-flash-close-button", "aria-label": t("close.message", {
|
|
43
|
+
title: message.title
|
|
44
|
+
}), title: t("close.message", {
|
|
45
|
+
title: message.title
|
|
46
|
+
}) }),
|
|
47
|
+
/* @__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, {}) }),
|
|
48
|
+
/* @__PURE__ */ jsx(Card.Body, { space: "0", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Card.Title, { children: message.title }),
|
|
50
|
+
/* @__PURE__ */ jsx("div", { ref: contentRef, className: classesContent, children: content }),
|
|
51
|
+
/* @__PURE__ */ jsxs(Flex, { justify: "between", align: "center", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "fst-italic", children: message.signature || "" }),
|
|
53
|
+
hasOverflow && /* @__PURE__ */ jsx(Button, { "data-testid": isCollapsed ? "message-flash-view-more-button" : "message-flash-view-less-button", color: "tertiary", variant: "ghost", size: "sm", className: "btn-icon", onClick: handleCollapse, "aria-controls": `message-flash-${message.id}-content`, "aria-expanded": !isCollapsed, children: t(isCollapsed ? "read.more" : "read.less") })
|
|
54
|
+
] })
|
|
55
|
+
] }) })
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
MessageFlash as default
|
|
60
|
+
};
|
|
@@ -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,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import MessageFlash from "./MessageFlash.js";
|
|
3
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
4
|
+
const MessageFlashList = ({
|
|
5
|
+
messages,
|
|
6
|
+
onCloseMessage
|
|
7
|
+
}) => /* @__PURE__ */ jsx("section", { role: "region", className: "message-flash-list", children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "16", role: "list", children: messages.map((message) => /* @__PURE__ */ jsx("div", { role: "listitem", children: /* @__PURE__ */ jsx(MessageFlash, { message, onCloseMessage: (msg) => onCloseMessage == null ? void 0 : onCloseMessage(msg) }) }, message.id)) }) });
|
|
8
|
+
export {
|
|
9
|
+
MessageFlashList as default
|
|
10
|
+
};
|