@edifice.io/react 2.6.6-develop-b2school.20260923094411 → 2.6.6-develop-pedago.20260923164322
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/Layout/Layout.js +5 -10
- package/dist/components/PageLayout/PageLayout.d.ts +0 -4
- package/dist/components/PageLayout/PageLayout.js +12 -22
- package/dist/components/PageLayout/components/PageLayoutContent.js +1 -5
- 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 -2
- 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 -168
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/homepage/components/Communities/Communities.js +35 -0
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +4 -2
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +31 -0
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +32 -0
- package/dist/modules/homepage/components/Communities/CommunityItem.d.ts +2 -1
- package/dist/modules/homepage/components/Communities/CommunityItem.js +28 -0
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +1 -4
- 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/useBackground/index.d.ts +0 -1
- package/dist/hooks/useBackground/useBackground.d.ts +0 -7
- package/dist/hooks/useBackground/useBackground.js +0 -16
- 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 -40
- package/dist/modules/HelpZone/HelpZone.d.ts +0 -13
- package/dist/modules/HelpZone/HelpZone.js +0 -52
- 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";
|
|
@@ -154,7 +152,6 @@ import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-
|
|
|
154
152
|
import { getRotateTransitionStyle } from "./utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
155
153
|
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
156
154
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
157
|
-
import { default as default121 } from "./hooks/useBackground/useBackground.js";
|
|
158
155
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
159
156
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
160
157
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
@@ -163,7 +160,6 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
163
160
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
164
161
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
165
162
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
166
|
-
import { default as default122 } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
167
163
|
export {
|
|
168
164
|
AccessiblePalette,
|
|
169
165
|
default2 as ActionBar,
|
|
@@ -219,67 +215,65 @@ export {
|
|
|
219
215
|
InternalLinker,
|
|
220
216
|
default38 as Label,
|
|
221
217
|
Layout,
|
|
222
|
-
default39 as LinkPill,
|
|
223
218
|
List,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
219
|
+
default39 as Loading,
|
|
220
|
+
default40 as LoadingScreen,
|
|
221
|
+
default41 as Logo,
|
|
222
|
+
default42 as LogoBeta,
|
|
223
|
+
default43 as MediaLibrary,
|
|
224
|
+
default44 as MediaViewer,
|
|
230
225
|
Menu,
|
|
231
226
|
MockedProvider,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
default49 as PageLayout,
|
|
227
|
+
default45 as Modal,
|
|
228
|
+
default46 as OnboardingModal,
|
|
229
|
+
default47 as PageLayout,
|
|
236
230
|
PageLayoutContext,
|
|
237
231
|
Pagination,
|
|
238
232
|
Popover,
|
|
239
233
|
PopoverBody,
|
|
240
234
|
PopoverFooter,
|
|
241
235
|
PopoverHeader,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
236
|
+
default48 as PreventPropagation,
|
|
237
|
+
default49 as PromotionCard,
|
|
238
|
+
default50 as PublishModal,
|
|
239
|
+
default51 as Radio,
|
|
240
|
+
default52 as RadioCard,
|
|
247
241
|
ResourceModal,
|
|
248
242
|
Root,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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,
|
|
261
255
|
Tabs,
|
|
262
|
-
|
|
263
|
-
|
|
256
|
+
default65 as TextArea,
|
|
257
|
+
default66 as TextSkeleton,
|
|
264
258
|
Toolbar,
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
default67 as Tooltip,
|
|
260
|
+
default68 as Tree,
|
|
267
261
|
TreeNode,
|
|
268
262
|
TreeNodeFolderWrapper,
|
|
269
|
-
|
|
263
|
+
default69 as TreeView,
|
|
270
264
|
Upload,
|
|
271
|
-
|
|
272
|
-
|
|
265
|
+
default70 as UploadCard,
|
|
266
|
+
default71 as UploadFiles,
|
|
273
267
|
UserRightsList,
|
|
274
268
|
UserSearch,
|
|
275
|
-
|
|
276
|
-
|
|
269
|
+
default72 as VideoEmbed,
|
|
270
|
+
default73 as VideoRecorder,
|
|
277
271
|
VisibleType,
|
|
278
|
-
|
|
272
|
+
default74 as VisuallyHidden,
|
|
279
273
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
280
274
|
WORKSPACE_USER_FOLDER_ID,
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
default75 as Workspace,
|
|
276
|
+
default76 as WorkspaceFolders,
|
|
283
277
|
addNode,
|
|
284
278
|
arrayUnique,
|
|
285
279
|
buildTree,
|
|
@@ -310,59 +304,57 @@ export {
|
|
|
310
304
|
setRef,
|
|
311
305
|
updateNode,
|
|
312
306
|
updateParentIds,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
default82 as useCantoo,
|
|
307
|
+
default77 as useBookmark,
|
|
308
|
+
default78 as useBreakpoint,
|
|
309
|
+
default79 as useBrowserInfo,
|
|
310
|
+
default80 as useCantoo,
|
|
318
311
|
useCheckable,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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,
|
|
326
319
|
useDropzoneContext,
|
|
327
320
|
useEdificeClient,
|
|
328
|
-
|
|
321
|
+
default88 as useEdificeIcons,
|
|
329
322
|
useEdificeTheme,
|
|
330
323
|
useFileToAttachment,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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,
|
|
342
335
|
useOverlay,
|
|
343
336
|
usePageLayout,
|
|
344
|
-
|
|
337
|
+
default100 as usePublicConf,
|
|
345
338
|
useScreeb,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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,
|
|
353
346
|
useTreeSortable,
|
|
354
347
|
useTreeView,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
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,
|
|
367
359
|
wrapTreeNode
|
|
368
360
|
};
|
|
@@ -30,9 +30,9 @@ const EditorToolbarTypography = ({
|
|
|
30
30
|
label: t("tiptap.toolbar.typo.mono"),
|
|
31
31
|
className: "ff-script"
|
|
32
32
|
}, {
|
|
33
|
-
value: "
|
|
34
|
-
label: t("tiptap.toolbar.typo.
|
|
35
|
-
className: "ff-
|
|
33
|
+
value: "Marelle",
|
|
34
|
+
label: t("tiptap.toolbar.typo.marelle"),
|
|
35
|
+
className: "ff-marelle"
|
|
36
36
|
}, {
|
|
37
37
|
value: "OpenDyslexic",
|
|
38
38
|
label: t("tiptap.toolbar.typo.dyslexic"),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import illuCommunities from "@edifice.io/bootstrap/dist/images/homepage/illu-communities.svg";
|
|
3
|
+
import { useMeasure } from "@uidotdev/usehooks";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import SvgIconArrowRight from "../../../icons/components/IconArrowRight.js";
|
|
6
|
+
import CommunityItem from "./CommunityItem.js";
|
|
7
|
+
import HomeCard from "../HomeCard/HomeCard.js";
|
|
8
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
9
|
+
import Image from "../../../../components/Image/Image.js";
|
|
10
|
+
const NARROW_CONTAINER_WIDTH = 800, MAX_ITEMS = 4, MAX_ITEMS_NARROW = 3, Communities = ({
|
|
11
|
+
communitiesList = [],
|
|
12
|
+
handleActionClick
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
t
|
|
16
|
+
} = useTranslation(), [containerRef, {
|
|
17
|
+
width
|
|
18
|
+
}] = useMeasure(), maxItems = width !== null && width < NARROW_CONTAINER_WIDTH ? MAX_ITEMS_NARROW : MAX_ITEMS, visibleCommunities = communitiesList.slice(0, maxItems), itemWidth = `${100 / maxItems}%`;
|
|
19
|
+
return /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", children: [
|
|
20
|
+
/* @__PURE__ */ jsx(HomeCard.Header, { actionLabel: communitiesList.length > 0 ? t("homepage.communities.actionLabel.seeMore") : t("homepage.communities.actionLabel.create"), actionRightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), onActionClick: handleActionClick, title: t("homepage.communities.title") }),
|
|
21
|
+
/* @__PURE__ */ jsx(HomeCard.Content, { children: /* @__PURE__ */ jsx(Flex, { ref: containerRef, gap: "16", children: visibleCommunities.length > 0 ? visibleCommunities.map((community, index) => /* @__PURE__ */ jsx(CommunityItem, { title: community.title, communityImage: community.communityImage, onActionClick: community.onActionClick, nbNotifications: community.nbNotifications, width: itemWidth }, index)) : /* @__PURE__ */ jsxs("div", { className: "communities-empty", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Image, { src: illuCommunities, alt: "", "aria-hidden": "true", style: {
|
|
23
|
+
width: 80,
|
|
24
|
+
height: 80
|
|
25
|
+
} }),
|
|
26
|
+
/* @__PURE__ */ jsxs("div", { className: "communities-empty-content", children: [
|
|
27
|
+
/* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle", "Créez votre première communauté pour animer votre classe !") }),
|
|
28
|
+
/* @__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.") })
|
|
29
|
+
] })
|
|
30
|
+
] }) }) })
|
|
31
|
+
] });
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
Communities as default
|
|
35
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CommunitiesModel } from './useCommunities';
|
|
2
2
|
export type CommunitiesContainerProps = {
|
|
3
|
+
/** Handle a click on a community. If undefined, the community's home page will be opened. */
|
|
3
4
|
onCommunityClick?: (community: CommunitiesModel) => void;
|
|
4
|
-
|
|
5
|
+
/** Handle a click on the header action button. If undefined, communities (or the community creation flow) will be opened. */
|
|
6
|
+
onHeaderActionClick?: () => void;
|
|
5
7
|
};
|
|
6
|
-
export declare function CommunitiesContainer({ onCommunityClick, onHeaderActionClick, }: CommunitiesContainerProps): import("react/jsx-runtime").JSX.Element | "An error occurred while loading communities.";
|
|
8
|
+
export declare function CommunitiesContainer({ onCommunityClick: handleCommunityClick, onHeaderActionClick: handleHeaderActionClick, }: CommunitiesContainerProps): import("react/jsx-runtime").JSX.Element | "An error occurred while loading communities.";
|
|
7
9
|
export declare namespace CommunitiesContainer {
|
|
8
10
|
var displayName: string;
|
|
9
11
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, 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: handleCommunityClick = (community) => {
|
|
8
|
+
window.open(`/communities/id/${community.id}/home`, "_self");
|
|
9
|
+
},
|
|
10
|
+
onHeaderActionClick: handleHeaderActionClick
|
|
11
|
+
}) {
|
|
12
|
+
const {
|
|
13
|
+
communities,
|
|
14
|
+
isLoading,
|
|
15
|
+
error
|
|
16
|
+
} = useCommunities(), handleActionClick = useCallback(() => {
|
|
17
|
+
if (handleHeaderActionClick) {
|
|
18
|
+
handleHeaderActionClick();
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
window.open(communities.length > 0 ? "/communities" : "/communities/create/step-type", "_self");
|
|
22
|
+
}, [handleHeaderActionClick, communities.length]), mappedCommunities = useMemo(() => communities.map((community) => ({
|
|
23
|
+
title: community.title,
|
|
24
|
+
communityImage: community.image ?? "",
|
|
25
|
+
onActionClick: () => handleCommunityClick(community)
|
|
26
|
+
})), [communities, handleCommunityClick]);
|
|
27
|
+
return isLoading ? /* @__PURE__ */ jsx(CommunitiesSkeleton, {}) : error ? "An error occurred while loading communities." : /* @__PURE__ */ jsx(Communities, { communitiesList: mappedCommunities, handleActionClick });
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
CommunitiesContainer
|
|
31
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -3,9 +3,10 @@ export interface CommunityItemProps {
|
|
|
3
3
|
communityImage: string;
|
|
4
4
|
onActionClick: () => void;
|
|
5
5
|
nbNotifications?: number;
|
|
6
|
+
width?: string;
|
|
6
7
|
}
|
|
7
8
|
declare const CommunityItem: {
|
|
8
|
-
({ title, communityImage, nbNotifications, onActionClick, }: CommunityItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
({ title, communityImage, nbNotifications, onActionClick, width, }: CommunityItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default CommunityItem;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
width = "25%"
|
|
11
|
+
}) => {
|
|
12
|
+
const hasNotifications = (nbNotifications ?? 0) > 0;
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", { role: "button", tabIndex: 0, onClick: onActionClick, className: clsx("communities-item", {
|
|
14
|
+
"communities-item-has-notifications": hasNotifications
|
|
15
|
+
}), style: {
|
|
16
|
+
width
|
|
17
|
+
}, children: [
|
|
18
|
+
hasNotifications && /* @__PURE__ */ jsx(Badge, { className: "communities-item-badge", variant: {
|
|
19
|
+
level: "danger",
|
|
20
|
+
type: "notification"
|
|
21
|
+
}, children: nbNotifications }),
|
|
22
|
+
/* @__PURE__ */ jsx(Image, { className: "communities-item-image", src: communityImage, alt: title }),
|
|
23
|
+
/* @__PURE__ */ jsx("p", { className: "communities-item-title text-truncate text-truncate-2", children: title })
|
|
24
|
+
] });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
CommunityItem as default
|
|
28
|
+
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export interface CommunitiesModel {
|
|
2
2
|
id: number | string;
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
5
|
-
icon?: string;
|
|
6
|
-
nbNotifications?: number;
|
|
7
|
-
notifications?: number;
|
|
4
|
+
image?: string;
|
|
8
5
|
}
|
|
9
6
|
export declare function useCommunities(): {
|
|
10
7
|
communities: CommunitiesModel[];
|
|
@@ -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(), response = await http.get("/communities/api/communities?page=1&size=4");
|
|
12
|
+
if (http.isResponseError())
|
|
13
|
+
throw new Error(http.latestResponse.statusText);
|
|
14
|
+
return response.items;
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
return {
|
|
18
|
+
communities: data ?? [],
|
|
19
|
+
isLoading,
|
|
20
|
+
error
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
useCommunities
|
|
25
|
+
};
|