@edifice.io/react 2.6.7-develop-pedago.20260930173910 → 2.6.7-develop-integration.20261001195124
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/Tree/utilities/tree.js +21 -1
- package/dist/homepage.js +1 -2
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useGoogleDriveSearch/index.d.ts +1 -0
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +14 -0
- package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +60 -0
- package/dist/hooks/useNextcloudSearch/index.d.ts +1 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +14 -0
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +64 -0
- package/dist/index.js +186 -174
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/homepage/components/Communities/Communities.d.ts +1 -2
- package/dist/modules/homepage/components/Communities/Communities.js +13 -14
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +1 -1
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +5 -9
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +7 -4
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +1 -4
- package/dist/modules/homepage/components/Communities/useCommunities.js +3 -8
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +2 -2
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +102 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +25 -0
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +102 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +4 -0
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +24 -0
- package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +100 -0
- package/dist/modules/multimedia/GoogleDrive/index.d.ts +2 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +7 -1
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +48 -12
- package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.js +61 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +48 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +4 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +24 -0
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +124 -0
- package/dist/modules/multimedia/Nextcloud/index.d.ts +2 -0
- package/dist/modules/multimedia/Workspace/Workspace.js +8 -5
- package/dist/modules/multimedia/index.d.ts +2 -0
- package/dist/multimedia.js +26 -18
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -30,93 +30,99 @@ import { default as default28 } from "./modules/multimedia/FileCard/FileCard.js"
|
|
|
30
30
|
import { default as default29 } from "./components/Flex/Flex.js";
|
|
31
31
|
import { default as default30 } from "./components/Form/FormControl.js";
|
|
32
32
|
import { default as default31 } from "./components/Form/FormText.js";
|
|
33
|
-
import { default as default32 } from "./
|
|
34
|
-
import { default as default33 } from "./
|
|
35
|
-
import { default as default34 } from "./components/
|
|
36
|
-
import { default as default35 } from "./
|
|
37
|
-
import { default as default36 } from "./
|
|
38
|
-
import { default as default37 } from "./components/
|
|
39
|
-
import { default as default38 } from "./
|
|
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 "./components/
|
|
46
|
-
import { default as default45 } from "./
|
|
47
|
-
import { default as default46 } from "./
|
|
48
|
-
import { default as default47 } from "./components/
|
|
49
|
-
import { default as default48 } from "./
|
|
50
|
-
import { default as default49
|
|
51
|
-
import { default as default50 } from "./modules/modals/
|
|
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 "./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 "./
|
|
61
|
-
import { default as default60 } from "./components/
|
|
62
|
-
import { default as default61 } from "./
|
|
63
|
-
import { default as default62 } from "./
|
|
64
|
-
import { default as default63 } from "./
|
|
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 "./
|
|
74
|
-
import { default as default73 } from "./
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./modules/multimedia/
|
|
77
|
-
import { default as default76 } from "./modules/multimedia/
|
|
78
|
-
import { default as default77 } from "./
|
|
79
|
-
import { default as default78 } from "./
|
|
80
|
-
import { default as default79 } from "./
|
|
81
|
-
import { default as default80 } from "./
|
|
82
|
-
import { default as default81 } from "./hooks/
|
|
83
|
-
import { default as default82 } from "./hooks/
|
|
84
|
-
import { default as default83 } from "./hooks/
|
|
85
|
-
import { default as default84 } from "./hooks/
|
|
86
|
-
import { default as default85 } from "./hooks/
|
|
87
|
-
import { default as default86 } from "./hooks/
|
|
88
|
-
import { default as default87 } from "./hooks/
|
|
89
|
-
import { default as default88 } from "./hooks/
|
|
90
|
-
import { default as default89 } from "./hooks/
|
|
91
|
-
import { default as default90 } from "./hooks/
|
|
92
|
-
import { default as default91 } from "./hooks/
|
|
93
|
-
import { default as default92 } from "./hooks/
|
|
94
|
-
import { default as default93 } from "./hooks/
|
|
95
|
-
import { default as default94 } from "./hooks/
|
|
96
|
-
import { default as default95 } from "./hooks/
|
|
97
|
-
import { default as default96 } from "./hooks/
|
|
98
|
-
import { default as default97 } from "./hooks/
|
|
99
|
-
import { default as default98 } from "./hooks/
|
|
100
|
-
import { default as default99 } from "./hooks/
|
|
101
|
-
import { default as default100 } from "./hooks/
|
|
102
|
-
import { default as default101 } from "./hooks/
|
|
103
|
-
import { default as default102 } from "./
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./hooks/
|
|
106
|
-
import { default as default105 } from "./hooks/
|
|
107
|
-
import { default as default106 } from "./hooks/
|
|
108
|
-
import { default as default107 } from "./hooks/
|
|
109
|
-
import { default as default108 } from "./hooks/
|
|
110
|
-
import { default as default109 } from "./
|
|
111
|
-
import { default as default110 } from "./hooks/
|
|
112
|
-
import { default as default111 } from "./hooks/
|
|
113
|
-
import { default as default112 } from "./hooks/
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
115
|
-
import { default as default114 } from "./hooks/
|
|
116
|
-
import {
|
|
117
|
-
import { default as default116 } from "./hooks/
|
|
118
|
-
import { default as default117 } from "./hooks/
|
|
119
|
-
import { default as default118 } from "./hooks/
|
|
33
|
+
import { default as default32 } from "./modules/multimedia/GoogleDrive/GoogleDrive.js";
|
|
34
|
+
import { default as default33 } from "./modules/multimedia/FileCard/GoogleDriveFileCard.js";
|
|
35
|
+
import { default as default34 } from "./components/Heading/Heading.js";
|
|
36
|
+
import { default as default35 } from "./components/Button/IconButton.js";
|
|
37
|
+
import { default as default36 } from "./components/Image/Image.js";
|
|
38
|
+
import { default as default37 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
39
|
+
import { default as default38 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
40
|
+
import { default as default39 } from "./components/Input/Input.js";
|
|
41
|
+
import { default as default40 } from "./components/Label/Label.js";
|
|
42
|
+
import { default as default41 } from "./components/Loading/Loading.js";
|
|
43
|
+
import { default as default42 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
44
|
+
import { default as default43 } from "./components/Logo/Logo.js";
|
|
45
|
+
import { default as default44 } from "./components/LogoBeta/LogoBeta.js";
|
|
46
|
+
import { default as default45 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
47
|
+
import { default as default46 } from "./components/MediaViewer/MediaViewer.js";
|
|
48
|
+
import { default as default47 } from "./components/Modal/Modal.js";
|
|
49
|
+
import { default as default48 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
50
|
+
import { default as default49 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
51
|
+
import { default as default50 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
52
|
+
import { default as default51 } from "./components/PageLayout/PageLayout.js";
|
|
53
|
+
import { default as default52 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
54
|
+
import { default as default53, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
55
|
+
import { default as default54 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
56
|
+
import { default as default55 } from "./components/Radio/Radio.js";
|
|
57
|
+
import { default as default56 } from "./components/RadioCard/RadioCard.js";
|
|
58
|
+
import { default as default57 } from "./components/SearchBar/SearchBar.js";
|
|
59
|
+
import { default as default58 } from "./components/Button/SearchButton.js";
|
|
60
|
+
import { default as default59 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
61
|
+
import { default as default60 } from "./components/Select/Select.js";
|
|
62
|
+
import { default as default61 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
63
|
+
import { default as default62 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
64
|
+
import { default as default63 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
65
|
+
import { default as default64 } from "./components/Tree/components/SortableTree.js";
|
|
66
|
+
import { default as default65 } from "./components/StackedGroup/StackedGroup.js";
|
|
67
|
+
import { default as default66 } from "./components/Stepper/Stepper.js";
|
|
68
|
+
import { default as default67 } from "./components/Switch/Switch.js";
|
|
69
|
+
import { default as default68 } from "./components/Table/components/Table.js";
|
|
70
|
+
import { default as default69 } from "./components/TextArea/TextArea.js";
|
|
71
|
+
import { default as default70 } from "./components/Skeleton/TextSkeleton.js";
|
|
72
|
+
import { default as default71 } from "./components/Tooltip/Tooltip.js";
|
|
73
|
+
import { default as default72 } from "./components/Tree/components/Tree.js";
|
|
74
|
+
import { default as default73 } from "./components/TreeView/TreeView.js";
|
|
75
|
+
import { default as default74 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
76
|
+
import { default as default75 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
77
|
+
import { default as default76 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
78
|
+
import { default as default77 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
79
|
+
import { default as default78 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
80
|
+
import { default as default79 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
81
|
+
import { default as default80 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useBookmark/useBookmark.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useCantoo/useCantoo.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useConversation/useConversation.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useDate/useDate.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useDebounce/useDebounce.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useDirectory/useDirectory.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useDropdown/useDropdown.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useDropzone/useDropzone.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useGoogleDriveSearch/useGoogleDriveSearch.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useHover/useHover.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useImage/useImage.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
107
|
+
import { default as default106 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
109
|
+
import { default as default108 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useTitle/useTitle.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useToast/useToast.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useToggle/useToggle.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
116
|
+
import { default as default115 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useUpload/useUpload.js";
|
|
118
|
+
import { default as default117 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
119
|
+
import { default as default118 } from "./hooks/useUser/useUser.js";
|
|
120
|
+
import { default as default119 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
121
|
+
import { default as default120 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
122
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default121 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
123
|
+
import { default as default122 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
124
|
+
import { default as default123 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
125
|
+
import { default as default124 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
120
126
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
121
127
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
122
128
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -205,75 +211,79 @@ export {
|
|
|
205
211
|
default29 as Flex,
|
|
206
212
|
default30 as FormControl,
|
|
207
213
|
default31 as FormText,
|
|
214
|
+
default32 as GoogleDrive,
|
|
215
|
+
default33 as GoogleDriveFileCard,
|
|
208
216
|
Grid,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
217
|
+
default34 as Heading,
|
|
218
|
+
default35 as IconButton,
|
|
219
|
+
default36 as Image,
|
|
220
|
+
default37 as ImageEditor,
|
|
221
|
+
default38 as ImagePicker,
|
|
222
|
+
default39 as Input,
|
|
215
223
|
InternalLinker,
|
|
216
|
-
|
|
224
|
+
default40 as Label,
|
|
217
225
|
Layout,
|
|
218
226
|
List,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
default41 as Loading,
|
|
228
|
+
default42 as LoadingScreen,
|
|
229
|
+
default43 as Logo,
|
|
230
|
+
default44 as LogoBeta,
|
|
231
|
+
default45 as MediaLibrary,
|
|
232
|
+
default46 as MediaViewer,
|
|
225
233
|
Menu,
|
|
226
234
|
MockedProvider,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
235
|
+
default47 as Modal,
|
|
236
|
+
default48 as Nextcloud,
|
|
237
|
+
default49 as NextcloudFileCard,
|
|
238
|
+
default50 as OnboardingModal,
|
|
239
|
+
default51 as PageLayout,
|
|
230
240
|
PageLayoutContext,
|
|
231
241
|
Pagination,
|
|
232
242
|
Popover,
|
|
233
243
|
PopoverBody,
|
|
234
244
|
PopoverFooter,
|
|
235
245
|
PopoverHeader,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
246
|
+
default52 as PreventPropagation,
|
|
247
|
+
default53 as PromotionCard,
|
|
248
|
+
default54 as PublishModal,
|
|
249
|
+
default55 as Radio,
|
|
250
|
+
default56 as RadioCard,
|
|
241
251
|
ResourceModal,
|
|
242
252
|
Root,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
default57 as SearchBar,
|
|
254
|
+
default58 as SearchButton,
|
|
255
|
+
default59 as SegmentedControl,
|
|
256
|
+
default60 as Select,
|
|
257
|
+
default61 as ShareBlog,
|
|
258
|
+
default62 as ShareModal,
|
|
259
|
+
default63 as ShareResources,
|
|
260
|
+
default64 as SortableTree,
|
|
261
|
+
default65 as StackedGroup,
|
|
262
|
+
default66 as Stepper,
|
|
263
|
+
default67 as Switch,
|
|
264
|
+
default68 as Table,
|
|
255
265
|
Tabs,
|
|
256
|
-
|
|
257
|
-
|
|
266
|
+
default69 as TextArea,
|
|
267
|
+
default70 as TextSkeleton,
|
|
258
268
|
Toolbar,
|
|
259
|
-
|
|
260
|
-
|
|
269
|
+
default71 as Tooltip,
|
|
270
|
+
default72 as Tree,
|
|
261
271
|
TreeNode,
|
|
262
272
|
TreeNodeFolderWrapper,
|
|
263
|
-
|
|
273
|
+
default73 as TreeView,
|
|
264
274
|
Upload,
|
|
265
|
-
|
|
266
|
-
|
|
275
|
+
default74 as UploadCard,
|
|
276
|
+
default75 as UploadFiles,
|
|
267
277
|
UserRightsList,
|
|
268
278
|
UserSearch,
|
|
269
|
-
|
|
270
|
-
|
|
279
|
+
default76 as VideoEmbed,
|
|
280
|
+
default77 as VideoRecorder,
|
|
271
281
|
VisibleType,
|
|
272
|
-
|
|
282
|
+
default78 as VisuallyHidden,
|
|
273
283
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
274
284
|
WORKSPACE_USER_FOLDER_ID,
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
default79 as Workspace,
|
|
286
|
+
default80 as WorkspaceFolders,
|
|
277
287
|
addNode,
|
|
278
288
|
arrayUnique,
|
|
279
289
|
buildTree,
|
|
@@ -304,57 +314,59 @@ export {
|
|
|
304
314
|
setRef,
|
|
305
315
|
updateNode,
|
|
306
316
|
updateParentIds,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
317
|
+
default81 as useBookmark,
|
|
318
|
+
default82 as useBreakpoint,
|
|
319
|
+
default83 as useBrowserInfo,
|
|
320
|
+
default84 as useCantoo,
|
|
311
321
|
useCheckable,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
322
|
+
default85 as useClickOutside,
|
|
323
|
+
default86 as useConversation,
|
|
324
|
+
default87 as useDate,
|
|
325
|
+
default88 as useDebounce,
|
|
326
|
+
default89 as useDirectory,
|
|
327
|
+
default90 as useDropdown,
|
|
328
|
+
default91 as useDropzone,
|
|
319
329
|
useDropzoneContext,
|
|
320
330
|
useEdificeClient,
|
|
321
|
-
|
|
331
|
+
default92 as useEdificeIcons,
|
|
322
332
|
useEdificeTheme,
|
|
323
333
|
useFileToAttachment,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
334
|
+
default93 as useGoogleDriveSearch,
|
|
335
|
+
default94 as useHasWorkflow,
|
|
336
|
+
default95 as useHover,
|
|
337
|
+
default96 as useHttpErrorToast,
|
|
338
|
+
default97 as useImage,
|
|
339
|
+
default98 as useInfiniteScroll,
|
|
340
|
+
default99 as useIsAdmc,
|
|
341
|
+
default100 as useIsAdml,
|
|
342
|
+
default101 as useIsAdmlcOrAdmc,
|
|
343
|
+
default102 as useKeyPress,
|
|
344
|
+
default103 as useLibraryUrl,
|
|
345
|
+
default104 as useMediaLibrary,
|
|
346
|
+
default105 as useNextcloudSearch,
|
|
335
347
|
useOverlay,
|
|
336
348
|
usePageLayout,
|
|
337
|
-
|
|
349
|
+
default106 as usePublicConf,
|
|
338
350
|
useScreeb,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
351
|
+
default107 as useScrollToTop,
|
|
352
|
+
default108 as useShareMutation,
|
|
353
|
+
default109 as useTitle,
|
|
354
|
+
default110 as useToast,
|
|
355
|
+
default111 as useToggle,
|
|
356
|
+
default112 as useTrapFocus,
|
|
357
|
+
default113 as useTrashedResource,
|
|
346
358
|
useTreeSortable,
|
|
347
359
|
useTreeView,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
360
|
+
default114 as useUiOverride,
|
|
361
|
+
default115 as useUpdateMutation,
|
|
362
|
+
default116 as useUpload,
|
|
363
|
+
default117 as useUploadFiles,
|
|
364
|
+
default118 as useUser,
|
|
365
|
+
default119 as useWorkspaceFile,
|
|
366
|
+
default120 as useWorkspaceFolders,
|
|
367
|
+
default121 as useWorkspaceFoldersTree,
|
|
368
|
+
default122 as useWorkspaceSearch,
|
|
369
|
+
default123 as useXitiTrackPageLoad,
|
|
370
|
+
default124 as useZendeskGuide,
|
|
359
371
|
wrapTreeNode
|
|
360
372
|
};
|
|
@@ -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: "Ecriture A",
|
|
34
|
+
label: t("tiptap.toolbar.typo.cursive"),
|
|
35
|
+
className: "ff-cursive"
|
|
36
36
|
}, {
|
|
37
37
|
value: "OpenDyslexic",
|
|
38
38
|
label: t("tiptap.toolbar.typo.dyslexic"),
|
|
@@ -2,10 +2,9 @@ import { CommunityItemProps } from './CommunityItem';
|
|
|
2
2
|
export interface CommunitiesProps {
|
|
3
3
|
communitiesList?: CommunityItemProps[];
|
|
4
4
|
handleActionClick: () => void;
|
|
5
|
-
canCreateCommunity?: boolean;
|
|
6
5
|
}
|
|
7
6
|
declare const Communities: {
|
|
8
|
-
({ communitiesList, handleActionClick,
|
|
7
|
+
({ communitiesList, handleActionClick, }: CommunitiesProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
displayName: string;
|
|
10
9
|
};
|
|
11
10
|
export default Communities;
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { jsxs, jsx
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import illuCommunities from "@edifice.io/bootstrap/dist/images/homepage/illu-communities.svg";
|
|
3
|
+
import { useMeasure } from "@uidotdev/usehooks";
|
|
3
4
|
import { useTranslation } from "react-i18next";
|
|
4
5
|
import SvgIconArrowRight from "../../../icons/components/IconArrowRight.js";
|
|
5
6
|
import CommunityItem from "./CommunityItem.js";
|
|
6
7
|
import HomeCard from "../HomeCard/HomeCard.js";
|
|
7
8
|
import Flex from "../../../../components/Flex/Flex.js";
|
|
8
9
|
import Image from "../../../../components/Image/Image.js";
|
|
9
|
-
const Communities = ({
|
|
10
|
+
const NARROW_CONTAINER_WIDTH = 800, MAX_ITEMS = 4, MAX_ITEMS_NARROW = 3, Communities = ({
|
|
10
11
|
communitiesList = [],
|
|
11
|
-
handleActionClick
|
|
12
|
-
canCreateCommunity = !1
|
|
12
|
+
handleActionClick
|
|
13
13
|
}) => {
|
|
14
14
|
const {
|
|
15
15
|
t
|
|
16
|
-
} = useTranslation()
|
|
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}%`;
|
|
17
19
|
return /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", children: [
|
|
18
|
-
/* @__PURE__ */ jsx(HomeCard.Header, { actionLabel: communitiesList.length > 0
|
|
19
|
-
/* @__PURE__ */ jsx(HomeCard.Content, {
|
|
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: [
|
|
20
22
|
/* @__PURE__ */ jsx(Image, { src: illuCommunities, alt: "", "aria-hidden": "true", style: {
|
|
21
23
|
width: 80,
|
|
22
24
|
height: 80
|
|
23
25
|
} }),
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle
|
|
26
|
-
/* @__PURE__ */ jsx("p", { className: "communities-empty-description", children: t("homepage.communities.description
|
|
27
|
-
] })
|
|
28
|
-
/* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle.student", "Retrouvez toutes vos communautés ici ! ") }),
|
|
29
|
-
/* @__PURE__ */ jsx("p", { className: "communities-empty-description", children: t("homepage.communities.description.student", `Consultez l'onglet "Nouveaux partages" pour découvrir si vous avez été ajouté à une nouvelle communauté.`) })
|
|
30
|
-
] }) })
|
|
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
|
+
] })
|
|
31
30
|
] }) }) })
|
|
32
31
|
] });
|
|
33
32
|
};
|
|
@@ -5,7 +5,7 @@ export type CommunitiesContainerProps = {
|
|
|
5
5
|
/** Handle a click on the header action button. If undefined, communities (or the community creation flow) will be opened. */
|
|
6
6
|
onHeaderActionClick?: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare function CommunitiesContainer({ onCommunityClick: handleCommunityClick, onHeaderActionClick: handleHeaderActionClick, }: 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.";
|
|
9
9
|
export declare namespace CommunitiesContainer {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
@@ -3,32 +3,28 @@ import { useCallback, useMemo } from "react";
|
|
|
3
3
|
import Communities from "./Communities.js";
|
|
4
4
|
import CommunitiesSkeleton from "./CommunitiesSkeleton.js";
|
|
5
5
|
import { useCommunities } from "./useCommunities.js";
|
|
6
|
-
import useHasWorkflow from "../../../../hooks/useHasWorkflow/useHasWorkflow.js";
|
|
7
|
-
const COMMUNITY_ACCESS_WORKFLOW = "community.access", COMMUNITY_CREATE_WORKFLOW = "community.create", COMMUNITY_WORKFLOWS = [COMMUNITY_ACCESS_WORKFLOW, COMMUNITY_CREATE_WORKFLOW];
|
|
8
6
|
function CommunitiesContainer({
|
|
9
7
|
onCommunityClick: handleCommunityClick = (community) => {
|
|
10
8
|
window.open(`/communities/id/${community.id}/home`, "_self");
|
|
11
9
|
},
|
|
12
10
|
onHeaderActionClick: handleHeaderActionClick
|
|
13
11
|
}) {
|
|
14
|
-
const
|
|
12
|
+
const {
|
|
15
13
|
communities,
|
|
16
14
|
isLoading,
|
|
17
15
|
error
|
|
18
|
-
} = useCommunities({
|
|
19
|
-
enabled: hasCommunitiesRight
|
|
20
|
-
}), handleActionClick = useCallback(() => {
|
|
16
|
+
} = useCommunities(), handleActionClick = useCallback(() => {
|
|
21
17
|
if (handleHeaderActionClick) {
|
|
22
18
|
handleHeaderActionClick();
|
|
23
19
|
return;
|
|
24
20
|
}
|
|
25
|
-
window.open(communities.length
|
|
26
|
-
}, [handleHeaderActionClick, communities.length
|
|
21
|
+
window.open(communities.length > 0 ? "/communities" : "/communities/create/step-type", "_self");
|
|
22
|
+
}, [handleHeaderActionClick, communities.length]), mappedCommunities = useMemo(() => communities.map((community) => ({
|
|
27
23
|
title: community.title,
|
|
28
24
|
communityImage: community.image ?? "",
|
|
29
25
|
onActionClick: () => handleCommunityClick(community)
|
|
30
26
|
})), [communities, handleCommunityClick]);
|
|
31
|
-
return
|
|
27
|
+
return isLoading ? /* @__PURE__ */ jsx(CommunitiesSkeleton, {}) : error ? "An error occurred while loading communities." : /* @__PURE__ */ jsx(Communities, { communitiesList: mappedCommunities, handleActionClick });
|
|
32
28
|
}
|
|
33
29
|
export {
|
|
34
30
|
CommunitiesContainer
|
|
@@ -3,14 +3,17 @@ import HomeCard from "../HomeCard/HomeCard.js";
|
|
|
3
3
|
import Flex from "../../../../components/Flex/Flex.js";
|
|
4
4
|
import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
|
|
5
5
|
import ButtonSkeleton from "../../../../components/Skeleton/ButtonSkeleton.js";
|
|
6
|
-
const primaryTitleWidths = ["80%", "64%", "88%", "72%"
|
|
6
|
+
const primaryTitleWidths = ["80%", "64%", "88%", "72%"], secondaryTitleWidths = ["56%", "44%", "60%", "48%"], CommunitiesSkeleton = () => /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", "data-testid": "communities-skeleton", children: [
|
|
7
7
|
/* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", gap: "8", className: "home-card-header", children: [
|
|
8
8
|
/* @__PURE__ */ jsx(TextSkeleton, { size: "lg", className: "col-5" }),
|
|
9
9
|
/* @__PURE__ */ jsx(ButtonSkeleton, { "aria-hidden": "true", size: "sm", className: "px-24", color: "tertiary" })
|
|
10
10
|
] }),
|
|
11
|
-
/* @__PURE__ */ jsx(HomeCard.Content, {
|
|
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: [
|
|
12
14
|
/* @__PURE__ */ jsx("div", { className: "communities-item-image placeholder rounded", style: {
|
|
13
|
-
display: "block"
|
|
15
|
+
display: "block",
|
|
16
|
+
aspectRatio: "1 / 1"
|
|
14
17
|
} }),
|
|
15
18
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "4", className: "mt-8", children: [
|
|
16
19
|
/* @__PURE__ */ jsx("div", { style: {
|
|
@@ -22,7 +25,7 @@ const primaryTitleWidths = ["80%", "64%", "88%", "72%", "76%", "68%"], secondary
|
|
|
22
25
|
alignSelf: "center"
|
|
23
26
|
}, children: /* @__PURE__ */ jsx(TextSkeleton, { className: "col-12", size: "sm" }) })
|
|
24
27
|
] })
|
|
25
|
-
] }, primaryWidth)) }) })
|
|
28
|
+
] }, primaryWidth)) }) })
|
|
26
29
|
] });
|
|
27
30
|
export {
|
|
28
31
|
CommunitiesSkeleton as default
|
|
@@ -3,10 +3,7 @@ export interface CommunitiesModel {
|
|
|
3
3
|
title: string;
|
|
4
4
|
image?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare
|
|
7
|
-
export declare function useCommunities({ enabled }?: {
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
}): {
|
|
6
|
+
export declare function useCommunities(): {
|
|
10
7
|
communities: CommunitiesModel[];
|
|
11
8
|
isLoading: boolean;
|
|
12
9
|
error: Error | null;
|