@edifice.io/react 2.6.5-develop-b2school.20260917144533 → 2.6.5-develop-pedago.20260922102604
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/Form/FormText.js +6 -11
- package/dist/components/Input/Input.d.ts +2 -11
- package/dist/components/Input/Input.js +21 -38
- package/dist/components/Label/Label.js +4 -4
- package/dist/components/PageLayout/PageLayout.d.ts +0 -4
- package/dist/components/PageLayout/PageLayout.js +12 -22
- package/dist/components/Table/components/Table.d.ts +2 -2
- package/dist/components/Table/components/TableTd.d.ts +1 -1
- package/dist/components/Table/components/TableTh.d.ts +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/homepage.js +28 -29
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +2 -3
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +2 -14
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +24 -51
- package/dist/index.js +160 -166
- package/dist/modules/homepage/components/Communities/Communities.js +32 -0
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +24 -0
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +32 -0
- package/dist/modules/homepage/components/Communities/CommunityItem.js +27 -0
- package/dist/modules/homepage/components/Communities/useCommunities.js +25 -0
- package/dist/modules/homepage/components/Header/Header.js +4 -11
- package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.js +8 -18
- package/dist/modules/homepage/components/index.d.ts +1 -1
- package/dist/modules/widgets/index.d.ts +1 -1
- package/package.json +6 -6
- package/dist/components/LinkPill/LinkPill.d.ts +0 -45
- package/dist/components/LinkPill/LinkPill.js +0 -27
- package/dist/components/LinkPill/index.d.ts +0 -2
- package/dist/components/ModalBeta/ModalBeta.d.ts +0 -47
- package/dist/components/ModalBeta/ModalBeta.js +0 -62
- package/dist/components/ModalBeta/ModalBetaBody.d.ts +0 -19
- package/dist/components/ModalBeta/ModalBetaBody.js +0 -15
- package/dist/components/ModalBeta/ModalBetaContext.d.ts +0 -7
- package/dist/components/ModalBeta/ModalBetaContext.js +0 -15
- package/dist/components/ModalBeta/ModalBetaFooter.d.ts +0 -13
- package/dist/components/ModalBeta/ModalBetaFooter.js +0 -7
- package/dist/components/ModalBeta/ModalBetaHeader.d.ts +0 -23
- package/dist/components/ModalBeta/ModalBetaHeader.js +0 -31
- package/dist/components/ModalBeta/index.d.ts +0 -2
- package/dist/components/PageLayout/components/PageLayoutHelpZone.d.ts +0 -12
- package/dist/components/PageLayout/components/PageLayoutHelpZone.js +0 -6
- package/dist/hooks/useUserPreferences/index.d.ts +0 -1
- package/dist/hooks/useUserPreferences/useUserPreferences.d.ts +0 -9
- package/dist/hooks/useUserPreferences/useUserPreferences.js +0 -39
- package/dist/modules/HelpZone/HelpZone.d.ts +0 -13
- package/dist/modules/HelpZone/HelpZone.js +0 -48
- package/dist/modules/HelpZone/HelpZoneContainer.d.ts +0 -4
- package/dist/modules/HelpZone/HelpZoneContainer.js +0 -18
- package/dist/modules/HelpZone/index.d.ts +0 -3
- package/dist/modules/homepage/components/UsefulLinks/LinkForm.d.ts +0 -13
- package/dist/modules/homepage/components/UsefulLinks/LinkForm.js +0 -67
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.d.ts +0 -6
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +0 -29
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksContainer.d.ts +0 -1
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksContainer.js +0 -40
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.d.ts +0 -11
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +0 -65
- package/dist/modules/homepage/components/UsefulLinks/hooks/useUsefulLinksContainer.d.ts +0 -19
- package/dist/modules/homepage/components/UsefulLinks/hooks/useUsefulLinksContainer.js +0 -26
- package/dist/modules/homepage/components/UsefulLinks/index.d.ts +0 -5
- package/dist/modules/homepage/components/UsefulLinks/services/api/index.d.ts +0 -6
- package/dist/modules/homepage/components/UsefulLinks/services/api/index.js +0 -5
- package/dist/modules/homepage/components/UsefulLinks/services/api/usefulLinksService.d.ts +0 -31
- package/dist/modules/homepage/components/UsefulLinks/services/api/usefulLinksService.js +0 -50
- package/dist/modules/homepage/components/UsefulLinks/services/queries/usefulLinks.d.ts +0 -20
- package/dist/modules/homepage/components/UsefulLinks/services/queries/usefulLinks.js +0 -65
- package/dist/modules/icons/components/logo/IconLogoEdificeFull.d.ts +0 -7
- package/dist/modules/icons/components/logo/IconLogoEdificeFull.js +0 -26
- package/dist/modules/icons/components/logo/IconLogoEdificeSmall.d.ts +0 -7
- package/dist/modules/icons/components/logo/IconLogoEdificeSmall.js +0 -17
- package/dist/modules/icons/components/logo/index.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -37,88 +37,86 @@ import { default as default35 } from "./modules/multimedia/ImageEditor/component
|
|
|
37
37
|
import { default as default36 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
38
38
|
import { default as default37 } from "./components/Input/Input.js";
|
|
39
39
|
import { default as default38 } from "./components/Label/Label.js";
|
|
40
|
-
import { default as default39 } from "./components/
|
|
41
|
-
import { default as default40 } from "./components/
|
|
42
|
-
import { default as default41 } from "./components/
|
|
43
|
-
import { default as default42 } from "./components/
|
|
44
|
-
import { default as default43 } from "./
|
|
45
|
-
import { default as default44 } from "./
|
|
46
|
-
import { default as default45 } from "./components/
|
|
47
|
-
import { default as default46 } from "./
|
|
48
|
-
import { default as default47 } from "./components/
|
|
49
|
-
import { default as default48 } from "./
|
|
50
|
-
import { default as default49 } from "./components/
|
|
51
|
-
import { default as default50 } from "./
|
|
52
|
-
import { default as default51
|
|
53
|
-
import { default as default52 } from "./
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54 } from "./components/
|
|
56
|
-
import { default as default55 } from "./components/
|
|
57
|
-
import { default as default56 } from "./components/
|
|
58
|
-
import { default as default57 } from "./
|
|
59
|
-
import { default as default58 } from "./
|
|
60
|
-
import { default as default59 } from "./modules/modals/ShareModal/
|
|
61
|
-
import { default as default60 } from "./
|
|
62
|
-
import { default as default61 } from "./
|
|
63
|
-
import { default as default62 } from "./components/
|
|
64
|
-
import { default as default63 } from "./components/
|
|
65
|
-
import { default as default64 } from "./components/
|
|
66
|
-
import { default as default65 } from "./components/
|
|
67
|
-
import { default as default66 } from "./components/
|
|
68
|
-
import { default as default67 } from "./components/
|
|
69
|
-
import { default as default68 } from "./components/
|
|
70
|
-
import { default as default69 } from "./components/
|
|
71
|
-
import { default as default70 } from "./
|
|
72
|
-
import { default as default71 } from "./
|
|
73
|
-
import { default as default72 } from "./modules/multimedia/
|
|
74
|
-
import { default as default73 } from "./modules/multimedia/
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./modules/multimedia/
|
|
77
|
-
import { default as default76 } from "./
|
|
78
|
-
import { default as default77 } from "./
|
|
79
|
-
import { default as default78 } from "./
|
|
80
|
-
import { default as default79 } from "./hooks/
|
|
81
|
-
import { default as default80 } from "./hooks/
|
|
82
|
-
import { default as default81 } from "./hooks/
|
|
83
|
-
import { default as default82 } from "./hooks/
|
|
84
|
-
import { default as default83 } from "./hooks/
|
|
85
|
-
import { default as default84 } from "./hooks/
|
|
86
|
-
import { default as default85 } from "./hooks/
|
|
87
|
-
import { default as default86 } from "./hooks/
|
|
88
|
-
import { default as default87 } from "./hooks/
|
|
89
|
-
import { default as default88 } from "./hooks/
|
|
90
|
-
import { default as default89 } from "./hooks/
|
|
91
|
-
import { default as default90 } from "./hooks/
|
|
92
|
-
import { default as default91 } from "./hooks/
|
|
93
|
-
import { default as default92 } from "./hooks/
|
|
94
|
-
import { default as default93 } from "./hooks/
|
|
95
|
-
import { default as default94 } from "./hooks/
|
|
96
|
-
import { default as default95 } from "./hooks/
|
|
97
|
-
import { default as default96 } from "./hooks/
|
|
98
|
-
import { default as default97 } from "./hooks/
|
|
99
|
-
import { default as default98 } from "./hooks/
|
|
100
|
-
import { default as default99 } from "./hooks/
|
|
101
|
-
import { default as default100 } from "./hooks/
|
|
102
|
-
import { default as default101 } from "./hooks/
|
|
103
|
-
import { default as default102 } from "./hooks/
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./
|
|
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 { default as default110 } from "./hooks/
|
|
112
|
-
import { default as default111 } from "./
|
|
113
|
-
import { default as default112 } from "./hooks/
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
115
|
-
import { default as default114 } from "./hooks/
|
|
116
|
-
import { default as default115 } from "./hooks/
|
|
117
|
-
import { default as default116 } from "./hooks/
|
|
118
|
-
import {
|
|
119
|
-
import { default as default118 } from "./hooks/
|
|
120
|
-
import { default as default119 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
121
|
-
import { default as default120 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
40
|
+
import { default as default39 } from "./components/Loading/Loading.js";
|
|
41
|
+
import { default as default40 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
42
|
+
import { default as default41 } from "./components/Logo/Logo.js";
|
|
43
|
+
import { default as default42 } from "./components/LogoBeta/LogoBeta.js";
|
|
44
|
+
import { default as default43 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
45
|
+
import { default as default44 } from "./components/MediaViewer/MediaViewer.js";
|
|
46
|
+
import { default as default45 } from "./components/Modal/Modal.js";
|
|
47
|
+
import { default as default46 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
48
|
+
import { default as default47 } from "./components/PageLayout/PageLayout.js";
|
|
49
|
+
import { default as default48 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
50
|
+
import { default as default49, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
51
|
+
import { default as default50 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
52
|
+
import { default as default51 } from "./components/Radio/Radio.js";
|
|
53
|
+
import { default as default52 } from "./components/RadioCard/RadioCard.js";
|
|
54
|
+
import { default as default53 } from "./components/SearchBar/SearchBar.js";
|
|
55
|
+
import { default as default54 } from "./components/Button/SearchButton.js";
|
|
56
|
+
import { default as default55 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
57
|
+
import { default as default56 } from "./components/Select/Select.js";
|
|
58
|
+
import { default as default57 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
59
|
+
import { default as default58 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
60
|
+
import { default as default59 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
61
|
+
import { default as default60 } from "./components/Tree/components/SortableTree.js";
|
|
62
|
+
import { default as default61 } from "./components/StackedGroup/StackedGroup.js";
|
|
63
|
+
import { default as default62 } from "./components/Stepper/Stepper.js";
|
|
64
|
+
import { default as default63 } from "./components/Switch/Switch.js";
|
|
65
|
+
import { default as default64 } from "./components/Table/components/Table.js";
|
|
66
|
+
import { default as default65 } from "./components/TextArea/TextArea.js";
|
|
67
|
+
import { default as default66 } from "./components/Skeleton/TextSkeleton.js";
|
|
68
|
+
import { default as default67 } from "./components/Tooltip/Tooltip.js";
|
|
69
|
+
import { default as default68 } from "./components/Tree/components/Tree.js";
|
|
70
|
+
import { default as default69 } from "./components/TreeView/TreeView.js";
|
|
71
|
+
import { default as default70 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
72
|
+
import { default as default71 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
73
|
+
import { default as default72 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
74
|
+
import { default as default73 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
75
|
+
import { default as default74 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
76
|
+
import { default as default75 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
77
|
+
import { default as default76 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useBookmark/useBookmark.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useCantoo/useCantoo.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useConversation/useConversation.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useDate/useDate.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useDebounce/useDebounce.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useDirectory/useDirectory.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useDropdown/useDropdown.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useDropzone/useDropzone.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useHover/useHover.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useImage/useImage.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
101
|
+
import { default as default100 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
103
|
+
import { default as default102 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useTitle/useTitle.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useToast/useToast.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useToggle/useToggle.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
110
|
+
import { default as default109 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useUpload/useUpload.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useUser/useUser.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
116
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default115 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
118
|
+
import { default as default117 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
119
|
+
import { default as default118 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
122
120
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
123
121
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
124
122
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -162,7 +160,6 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
162
160
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
163
161
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
164
162
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
165
|
-
import { useUserPreferences } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
166
163
|
export {
|
|
167
164
|
AccessiblePalette,
|
|
168
165
|
default2 as ActionBar,
|
|
@@ -218,67 +215,65 @@ export {
|
|
|
218
215
|
InternalLinker,
|
|
219
216
|
default38 as Label,
|
|
220
217
|
Layout,
|
|
221
|
-
default39 as LinkPill,
|
|
222
218
|
List,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
219
|
+
default39 as Loading,
|
|
220
|
+
default40 as LoadingScreen,
|
|
221
|
+
default41 as Logo,
|
|
222
|
+
default42 as LogoBeta,
|
|
223
|
+
default43 as MediaLibrary,
|
|
224
|
+
default44 as MediaViewer,
|
|
229
225
|
Menu,
|
|
230
226
|
MockedProvider,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
default49 as PageLayout,
|
|
227
|
+
default45 as Modal,
|
|
228
|
+
default46 as OnboardingModal,
|
|
229
|
+
default47 as PageLayout,
|
|
235
230
|
PageLayoutContext,
|
|
236
231
|
Pagination,
|
|
237
232
|
Popover,
|
|
238
233
|
PopoverBody,
|
|
239
234
|
PopoverFooter,
|
|
240
235
|
PopoverHeader,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
236
|
+
default48 as PreventPropagation,
|
|
237
|
+
default49 as PromotionCard,
|
|
238
|
+
default50 as PublishModal,
|
|
239
|
+
default51 as Radio,
|
|
240
|
+
default52 as RadioCard,
|
|
246
241
|
ResourceModal,
|
|
247
242
|
Root,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
243
|
+
default53 as SearchBar,
|
|
244
|
+
default54 as SearchButton,
|
|
245
|
+
default55 as SegmentedControl,
|
|
246
|
+
default56 as Select,
|
|
247
|
+
default57 as ShareBlog,
|
|
248
|
+
default58 as ShareModal,
|
|
249
|
+
default59 as ShareResources,
|
|
250
|
+
default60 as SortableTree,
|
|
251
|
+
default61 as StackedGroup,
|
|
252
|
+
default62 as Stepper,
|
|
253
|
+
default63 as Switch,
|
|
254
|
+
default64 as Table,
|
|
260
255
|
Tabs,
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
default65 as TextArea,
|
|
257
|
+
default66 as TextSkeleton,
|
|
263
258
|
Toolbar,
|
|
264
|
-
|
|
265
|
-
|
|
259
|
+
default67 as Tooltip,
|
|
260
|
+
default68 as Tree,
|
|
266
261
|
TreeNode,
|
|
267
262
|
TreeNodeFolderWrapper,
|
|
268
|
-
|
|
263
|
+
default69 as TreeView,
|
|
269
264
|
Upload,
|
|
270
|
-
|
|
271
|
-
|
|
265
|
+
default70 as UploadCard,
|
|
266
|
+
default71 as UploadFiles,
|
|
272
267
|
UserRightsList,
|
|
273
268
|
UserSearch,
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
default72 as VideoEmbed,
|
|
270
|
+
default73 as VideoRecorder,
|
|
276
271
|
VisibleType,
|
|
277
|
-
|
|
272
|
+
default74 as VisuallyHidden,
|
|
278
273
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
279
274
|
WORKSPACE_USER_FOLDER_ID,
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
default75 as Workspace,
|
|
276
|
+
default76 as WorkspaceFolders,
|
|
282
277
|
addNode,
|
|
283
278
|
arrayUnique,
|
|
284
279
|
buildTree,
|
|
@@ -309,58 +304,57 @@ export {
|
|
|
309
304
|
setRef,
|
|
310
305
|
updateNode,
|
|
311
306
|
updateParentIds,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
307
|
+
default77 as useBookmark,
|
|
308
|
+
default78 as useBreakpoint,
|
|
309
|
+
default79 as useBrowserInfo,
|
|
310
|
+
default80 as useCantoo,
|
|
316
311
|
useCheckable,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
312
|
+
default81 as useClickOutside,
|
|
313
|
+
default82 as useConversation,
|
|
314
|
+
default83 as useDate,
|
|
315
|
+
default84 as useDebounce,
|
|
316
|
+
default85 as useDirectory,
|
|
317
|
+
default86 as useDropdown,
|
|
318
|
+
default87 as useDropzone,
|
|
324
319
|
useDropzoneContext,
|
|
325
320
|
useEdificeClient,
|
|
326
|
-
|
|
321
|
+
default88 as useEdificeIcons,
|
|
327
322
|
useEdificeTheme,
|
|
328
323
|
useFileToAttachment,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
324
|
+
default89 as useHasWorkflow,
|
|
325
|
+
default90 as useHover,
|
|
326
|
+
default91 as useHttpErrorToast,
|
|
327
|
+
default92 as useImage,
|
|
328
|
+
default93 as useInfiniteScroll,
|
|
329
|
+
default94 as useIsAdmc,
|
|
330
|
+
default95 as useIsAdml,
|
|
331
|
+
default96 as useIsAdmlcOrAdmc,
|
|
332
|
+
default97 as useKeyPress,
|
|
333
|
+
default98 as useLibraryUrl,
|
|
334
|
+
default99 as useMediaLibrary,
|
|
340
335
|
useOverlay,
|
|
341
336
|
usePageLayout,
|
|
342
|
-
|
|
337
|
+
default100 as usePublicConf,
|
|
343
338
|
useScreeb,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
339
|
+
default101 as useScrollToTop,
|
|
340
|
+
default102 as useShareMutation,
|
|
341
|
+
default103 as useTitle,
|
|
342
|
+
default104 as useToast,
|
|
343
|
+
default105 as useToggle,
|
|
344
|
+
default106 as useTrapFocus,
|
|
345
|
+
default107 as useTrashedResource,
|
|
351
346
|
useTreeSortable,
|
|
352
347
|
useTreeView,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
default120 as useZendeskGuide,
|
|
348
|
+
default108 as useUiOverride,
|
|
349
|
+
default109 as useUpdateMutation,
|
|
350
|
+
default110 as useUpload,
|
|
351
|
+
default111 as useUploadFiles,
|
|
352
|
+
default112 as useUser,
|
|
353
|
+
default113 as useWorkspaceFile,
|
|
354
|
+
default114 as useWorkspaceFolders,
|
|
355
|
+
default115 as useWorkspaceFoldersTree,
|
|
356
|
+
default116 as useWorkspaceSearch,
|
|
357
|
+
default117 as useXitiTrackPageLoad,
|
|
358
|
+
default118 as useZendeskGuide,
|
|
365
359
|
wrapTreeNode
|
|
366
360
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import illuCommunities from "@edifice.io/bootstrap/dist/images/homepage/illu-communities.svg";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import SvgIconArrowRight from "../../../icons/components/IconArrowRight.js";
|
|
5
|
+
import CommunityItem from "./CommunityItem.js";
|
|
6
|
+
import HomeCard from "../HomeCard/HomeCard.js";
|
|
7
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
8
|
+
import Image from "../../../../components/Image/Image.js";
|
|
9
|
+
const Communities = ({
|
|
10
|
+
communitiesList = [],
|
|
11
|
+
handleActionClick
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation();
|
|
16
|
+
return /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", children: [
|
|
17
|
+
/* @__PURE__ */ jsx(HomeCard.Header, { actionLabel: communitiesList.length > 0 ? t("homepage.widget.communities.actionLabel.seeMore") : t("homepage.widget.communities.actionLabel.create"), actionRightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), onActionClick: handleActionClick, title: t("homepage.widget.communities.title") }),
|
|
18
|
+
/* @__PURE__ */ jsx(HomeCard.Content, { children: /* @__PURE__ */ jsx(Flex, { gap: "16", children: communitiesList.length > 0 ? communitiesList.map((community, index) => /* @__PURE__ */ jsx(CommunityItem, { title: community.title, communityImage: community.communityImage, onActionClick: community.onActionClick, nbNotifications: community.nbNotifications }, index)) : /* @__PURE__ */ jsxs("div", { className: "communities-empty", children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Image, { src: illuCommunities, alt: "", "aria-hidden": "true", style: {
|
|
20
|
+
width: 80,
|
|
21
|
+
height: 80
|
|
22
|
+
} }),
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "communities-empty-content", children: [
|
|
24
|
+
/* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle", "Créez votre première communauté pour animer votre classe !") }),
|
|
25
|
+
/* @__PURE__ */ jsx("p", { className: "communities-empty-description", children: t("homepage.communities.description", "Vous pouvez centraliser et organiser les documents et les ressources pour vos élèves.") })
|
|
26
|
+
] })
|
|
27
|
+
] }) }) })
|
|
28
|
+
] });
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
Communities as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import Communities from "./Communities.js";
|
|
4
|
+
import CommunitiesSkeleton from "./CommunitiesSkeleton.js";
|
|
5
|
+
import { useCommunities } from "./useCommunities.js";
|
|
6
|
+
function CommunitiesContainer({
|
|
7
|
+
onCommunityClick,
|
|
8
|
+
onHeaderActionClick
|
|
9
|
+
}) {
|
|
10
|
+
const {
|
|
11
|
+
communities,
|
|
12
|
+
isLoading,
|
|
13
|
+
error
|
|
14
|
+
} = useCommunities(), mappedCommunities = useMemo(() => communities.map((community) => ({
|
|
15
|
+
title: community.title,
|
|
16
|
+
communityImage: community.communityImage ?? community.icon ?? "",
|
|
17
|
+
nbNotifications: community.nbNotifications ?? community.notifications,
|
|
18
|
+
onActionClick: () => onCommunityClick == null ? void 0 : onCommunityClick(community)
|
|
19
|
+
})), [communities, onCommunityClick]);
|
|
20
|
+
return isLoading ? /* @__PURE__ */ jsx(CommunitiesSkeleton, {}) : error ? "An error occurred while loading communities." : /* @__PURE__ */ jsx(Communities, { communitiesList: mappedCommunities, handleActionClick: onHeaderActionClick });
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
CommunitiesContainer
|
|
24
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import HomeCard from "../HomeCard/HomeCard.js";
|
|
3
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
4
|
+
import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
|
|
5
|
+
import ButtonSkeleton from "../../../../components/Skeleton/ButtonSkeleton.js";
|
|
6
|
+
const primaryTitleWidths = ["80%", "64%", "88%", "72%"], secondaryTitleWidths = ["56%", "44%", "60%", "48%"], CommunitiesSkeleton = () => /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", "data-testid": "communities-skeleton", children: [
|
|
7
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", gap: "8", className: "home-card-header", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(TextSkeleton, { size: "lg", className: "col-5" }),
|
|
9
|
+
/* @__PURE__ */ jsx(ButtonSkeleton, { "aria-hidden": "true", size: "sm", className: "px-24", color: "tertiary" })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ jsx(HomeCard.Content, { children: /* @__PURE__ */ jsx(Flex, { gap: "16", children: primaryTitleWidths.map((primaryWidth, index) => /* @__PURE__ */ jsxs("div", { className: "communities-item", style: {
|
|
12
|
+
width: "25%"
|
|
13
|
+
}, "aria-hidden": "true", children: [
|
|
14
|
+
/* @__PURE__ */ jsx("div", { className: "communities-item-image placeholder rounded", style: {
|
|
15
|
+
display: "block",
|
|
16
|
+
aspectRatio: "1 / 1"
|
|
17
|
+
} }),
|
|
18
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "4", className: "mt-8", children: [
|
|
19
|
+
/* @__PURE__ */ jsx("div", { style: {
|
|
20
|
+
width: primaryWidth,
|
|
21
|
+
alignSelf: "center"
|
|
22
|
+
}, children: /* @__PURE__ */ jsx(TextSkeleton, { className: "col-12", size: "sm" }) }),
|
|
23
|
+
/* @__PURE__ */ jsx("div", { style: {
|
|
24
|
+
width: secondaryTitleWidths[index],
|
|
25
|
+
alignSelf: "center"
|
|
26
|
+
}, children: /* @__PURE__ */ jsx(TextSkeleton, { className: "col-12", size: "sm" }) })
|
|
27
|
+
] })
|
|
28
|
+
] }, primaryWidth)) }) })
|
|
29
|
+
] });
|
|
30
|
+
export {
|
|
31
|
+
CommunitiesSkeleton as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import Badge from "../../../../components/Badge/Badge.js";
|
|
4
|
+
import Image from "../../../../components/Image/Image.js";
|
|
5
|
+
const CommunityItem = ({
|
|
6
|
+
title,
|
|
7
|
+
communityImage,
|
|
8
|
+
nbNotifications,
|
|
9
|
+
onActionClick
|
|
10
|
+
}) => {
|
|
11
|
+
const hasNotifications = (nbNotifications ?? 0) > 0;
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { role: "button", tabIndex: 0, onClick: onActionClick, className: clsx("communities-item", {
|
|
13
|
+
"communities-item-has-notifications": hasNotifications
|
|
14
|
+
}), style: {
|
|
15
|
+
width: "25%"
|
|
16
|
+
}, children: [
|
|
17
|
+
hasNotifications && /* @__PURE__ */ jsx(Badge, { className: "communities-item-badge", variant: {
|
|
18
|
+
level: "danger",
|
|
19
|
+
type: "notification"
|
|
20
|
+
}, children: nbNotifications }),
|
|
21
|
+
/* @__PURE__ */ jsx(Image, { className: "communities-item-image", src: communityImage, alt: title }),
|
|
22
|
+
/* @__PURE__ */ jsx("p", { className: "communities-item-title text-truncate text-truncate-2", children: title })
|
|
23
|
+
] });
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
CommunityItem as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { odeServices } from "@edifice.io/client";
|
|
2
|
+
import { useQuery, queryOptions } from "@tanstack/react-query";
|
|
3
|
+
function useCommunities() {
|
|
4
|
+
const {
|
|
5
|
+
data,
|
|
6
|
+
isLoading,
|
|
7
|
+
error
|
|
8
|
+
} = useQuery(queryOptions({
|
|
9
|
+
queryKey: ["communities", "preview"],
|
|
10
|
+
queryFn: async () => {
|
|
11
|
+
const http = odeServices.http(), communities = await http.get("/community/api/v1/communities");
|
|
12
|
+
if (http.isResponseError())
|
|
13
|
+
throw new Error(http.latestResponse.statusText);
|
|
14
|
+
return communities;
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
return {
|
|
18
|
+
communities: data ?? [],
|
|
19
|
+
isLoading,
|
|
20
|
+
error
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
useCommunities
|
|
25
|
+
};
|
|
@@ -6,7 +6,6 @@ import { Navbar } from "../../../../components/Layout/components/Navbar.js";
|
|
|
6
6
|
import { NavItem } from "../../../../components/Layout/components/NavItem.js";
|
|
7
7
|
import { NavLink } from "../../../../components/Layout/components/NavLink.js";
|
|
8
8
|
import useHeader from "../../../../components/Layout/hooks/useHeader.js";
|
|
9
|
-
import SvgIconSetBackground from "../../../icons/components/IconSetBackground.js";
|
|
10
9
|
import SvgIconCommunitiesBeta from "../../../icons/components/nav/IconCommunitiesBeta.js";
|
|
11
10
|
import SvgIconDisconnect from "../../../icons/components/nav/IconDisconnect.js";
|
|
12
11
|
import SvgIconHomeBeta from "../../../icons/components/nav/IconHomeBeta.js";
|
|
@@ -87,16 +86,10 @@ const Header = ({
|
|
|
87
86
|
] }),
|
|
88
87
|
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: userRef, id: popoverUserId, "aria-haspopup": "true", "aria-expanded": isUserHovered, "data-testid": "header-user-menu-button", children: [
|
|
89
88
|
/* @__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" }) }),
|
|
90
|
-
/* @__PURE__ */ jsx(Popover, { align: "end", className: "widget", id: popoverUserId, isVisible: isUserHovered, children: /* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
] }),
|
|
95
|
-
/* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link logout d-flex align-items-center gap-8", "data-testid": "header-logout-button", children: [
|
|
96
|
-
/* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
|
|
97
|
-
/* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
|
|
98
|
-
] })
|
|
99
|
-
] }) })
|
|
89
|
+
/* @__PURE__ */ jsx(Popover, { align: "end", className: "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 logout d-flex align-items-center gap-8", "data-testid": "header-logout-button", children: [
|
|
90
|
+
/* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
|
|
91
|
+
/* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
|
|
92
|
+
] }) }) })
|
|
100
93
|
] })
|
|
101
94
|
] })
|
|
102
95
|
] }) });
|
|
@@ -17,20 +17,18 @@ function useProfileLinks(profile) {
|
|
|
17
17
|
structure: structureId
|
|
18
18
|
});
|
|
19
19
|
return `${baseUrl}?${params.toString()}`;
|
|
20
|
-
}, buildClassesUrl = (
|
|
21
|
-
const params = new URLSearchParams(
|
|
20
|
+
}, buildClassesUrl = (classIds = []) => {
|
|
21
|
+
const params = new URLSearchParams({
|
|
22
|
+
filters: "groups",
|
|
23
|
+
structure: structureId
|
|
24
|
+
});
|
|
22
25
|
return classIds.forEach((c) => params.append("class", String(c))), `${baseUrl}?${params.toString()}`;
|
|
23
26
|
};
|
|
24
27
|
switch (profile) {
|
|
25
28
|
case "Teacher":
|
|
26
29
|
return [{
|
|
27
30
|
text: t("homepage.userspace.teacher.link.classes"),
|
|
28
|
-
url: buildClassesUrl(
|
|
29
|
-
{
|
|
30
|
-
filters: "groups"
|
|
31
|
-
}
|
|
32
|
-
/* Do not explicitely add classes ids, because none <=> see all*/
|
|
33
|
-
)
|
|
31
|
+
url: buildClassesUrl(user.classes)
|
|
34
32
|
}];
|
|
35
33
|
case "Student":
|
|
36
34
|
return [{
|
|
@@ -38,12 +36,7 @@ function useProfileLinks(profile) {
|
|
|
38
36
|
url: "/userbook/annuaire#/search?filters=groups&profile=Teacher"
|
|
39
37
|
}, {
|
|
40
38
|
text: t("homepage.userspace.student.link.classes"),
|
|
41
|
-
url: buildClassesUrl(
|
|
42
|
-
{
|
|
43
|
-
filters: "groups"
|
|
44
|
-
}
|
|
45
|
-
/* Do not explicitely add classes ids, because none <=> see all*/
|
|
46
|
-
)
|
|
39
|
+
url: buildClassesUrl(user.classes)
|
|
47
40
|
}];
|
|
48
41
|
case "Relative":
|
|
49
42
|
return children != null && children.length ? children.map((child) => {
|
|
@@ -52,10 +45,7 @@ function useProfileLinks(profile) {
|
|
|
52
45
|
text: t("homepage.userspace.relative.link.classes", {
|
|
53
46
|
childName: child.firstName
|
|
54
47
|
}),
|
|
55
|
-
url: buildClassesUrl({
|
|
56
|
-
filters: "groups",
|
|
57
|
-
structure: structureId
|
|
58
|
-
}, (_a2 = child.classes) == null ? void 0 : _a2.map(({
|
|
48
|
+
url: buildClassesUrl((_a2 = child.classes) == null ? void 0 : _a2.map(({
|
|
59
49
|
id
|
|
60
50
|
}) => id))
|
|
61
51
|
};
|