@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.
Files changed (44) hide show
  1. package/dist/components/Tree/utilities/tree.js +21 -1
  2. package/dist/homepage.js +1 -2
  3. package/dist/hooks/index.d.ts +2 -0
  4. package/dist/hooks/useGoogleDriveSearch/index.d.ts +1 -0
  5. package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.d.ts +14 -0
  6. package/dist/hooks/useGoogleDriveSearch/useGoogleDriveSearch.js +60 -0
  7. package/dist/hooks/useNextcloudSearch/index.d.ts +1 -0
  8. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +14 -0
  9. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +64 -0
  10. package/dist/index.js +186 -174
  11. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
  12. package/dist/modules/homepage/components/Communities/Communities.d.ts +1 -2
  13. package/dist/modules/homepage/components/Communities/Communities.js +13 -14
  14. package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +1 -1
  15. package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +5 -9
  16. package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +7 -4
  17. package/dist/modules/homepage/components/Communities/useCommunities.d.ts +1 -4
  18. package/dist/modules/homepage/components/Communities/useCommunities.js +3 -8
  19. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +2 -2
  20. package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.d.ts +25 -0
  21. package/dist/modules/multimedia/FileCard/GoogleDriveFileCard.js +102 -0
  22. package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +25 -0
  23. package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +102 -0
  24. package/dist/modules/multimedia/FileCard/index.d.ts +4 -0
  25. package/dist/modules/multimedia/GoogleDrive/GoogleDrive.d.ts +24 -0
  26. package/dist/modules/multimedia/GoogleDrive/GoogleDrive.js +100 -0
  27. package/dist/modules/multimedia/GoogleDrive/index.d.ts +2 -0
  28. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +7 -1
  29. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +2 -0
  30. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
  31. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +48 -12
  32. package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.d.ts +1 -0
  33. package/dist/modules/multimedia/MediaLibrary/innertabs/GoogleDrive.js +61 -0
  34. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +1 -0
  35. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +48 -0
  36. package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +2 -0
  37. package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +4 -0
  38. package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +24 -0
  39. package/dist/modules/multimedia/Nextcloud/Nextcloud.js +124 -0
  40. package/dist/modules/multimedia/Nextcloud/index.d.ts +2 -0
  41. package/dist/modules/multimedia/Workspace/Workspace.js +8 -5
  42. package/dist/modules/multimedia/index.d.ts +2 -0
  43. package/dist/multimedia.js +26 -18
  44. 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 "./components/Heading/Heading.js";
34
- import { default as default33 } from "./components/Button/IconButton.js";
35
- import { default as default34 } from "./components/Image/Image.js";
36
- import { default as default35 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
37
- import { default as default36 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
38
- import { default as default37 } from "./components/Input/Input.js";
39
- import { default as default38 } from "./components/Label/Label.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";
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
- default32 as Heading,
210
- default33 as IconButton,
211
- default34 as Image,
212
- default35 as ImageEditor,
213
- default36 as ImagePicker,
214
- default37 as Input,
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
- default38 as Label,
224
+ default40 as Label,
217
225
  Layout,
218
226
  List,
219
- default39 as Loading,
220
- default40 as LoadingScreen,
221
- default41 as Logo,
222
- default42 as LogoBeta,
223
- default43 as MediaLibrary,
224
- default44 as MediaViewer,
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
- default45 as Modal,
228
- default46 as OnboardingModal,
229
- default47 as PageLayout,
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
- default48 as PreventPropagation,
237
- default49 as PromotionCard,
238
- default50 as PublishModal,
239
- default51 as Radio,
240
- default52 as RadioCard,
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
- 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,
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
- default65 as TextArea,
257
- default66 as TextSkeleton,
266
+ default69 as TextArea,
267
+ default70 as TextSkeleton,
258
268
  Toolbar,
259
- default67 as Tooltip,
260
- default68 as Tree,
269
+ default71 as Tooltip,
270
+ default72 as Tree,
261
271
  TreeNode,
262
272
  TreeNodeFolderWrapper,
263
- default69 as TreeView,
273
+ default73 as TreeView,
264
274
  Upload,
265
- default70 as UploadCard,
266
- default71 as UploadFiles,
275
+ default74 as UploadCard,
276
+ default75 as UploadFiles,
267
277
  UserRightsList,
268
278
  UserSearch,
269
- default72 as VideoEmbed,
270
- default73 as VideoRecorder,
279
+ default76 as VideoEmbed,
280
+ default77 as VideoRecorder,
271
281
  VisibleType,
272
- default74 as VisuallyHidden,
282
+ default78 as VisuallyHidden,
273
283
  WORKSPACE_SHARED_FOLDER_ID,
274
284
  WORKSPACE_USER_FOLDER_ID,
275
- default75 as Workspace,
276
- default76 as WorkspaceFolders,
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
- default77 as useBookmark,
308
- default78 as useBreakpoint,
309
- default79 as useBrowserInfo,
310
- default80 as useCantoo,
317
+ default81 as useBookmark,
318
+ default82 as useBreakpoint,
319
+ default83 as useBrowserInfo,
320
+ default84 as useCantoo,
311
321
  useCheckable,
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,
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
- default88 as useEdificeIcons,
331
+ default92 as useEdificeIcons,
322
332
  useEdificeTheme,
323
333
  useFileToAttachment,
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,
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
- default100 as usePublicConf,
349
+ default106 as usePublicConf,
338
350
  useScreeb,
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
+ 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
- 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,
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: "Marelle",
34
- label: t("tiptap.toolbar.typo.marelle"),
35
- className: "ff-marelle"
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, canCreateCommunity, }: CommunitiesProps): import("react/jsx-runtime").JSX.Element;
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, Fragment } from "react/jsx-runtime";
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 || !canCreateCommunity ? t("homepage.communities.actionLabel.seeMore", "Voir plus") : t("homepage.communities.actionLabel.create", "Créer une communauté"), actionRightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), onActionClick: handleActionClick, title: t("homepage.communities.title", "Mes communautés") }),
19
- /* @__PURE__ */ jsx(HomeCard.Content, { className: "communities-content", children: /* @__PURE__ */ jsx(Flex, { gap: "16", children: communitiesList.length > 0 ? /* @__PURE__ */ jsx("div", { className: "communities-list", children: communitiesList.map((community, index) => /* @__PURE__ */ jsx(CommunityItem, { title: community.title, communityImage: community.communityImage, onActionClick: community.onActionClick, nbNotifications: community.nbNotifications, width: "auto" }, index)) }) : /* @__PURE__ */ jsxs("div", { className: "communities-empty", 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: [
20
22
  /* @__PURE__ */ jsx(Image, { src: illuCommunities, alt: "", "aria-hidden": "true", style: {
21
23
  width: 80,
22
24
  height: 80
23
25
  } }),
24
- /* @__PURE__ */ jsx("div", { className: "communities-empty-content", children: canCreateCommunity ? /* @__PURE__ */ jsxs(Fragment, { children: [
25
- /* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle.teacher", "Réunissez vos élèves avec Communautés !") }),
26
- /* @__PURE__ */ jsx("p", { className: "communities-empty-description", children: t("homepage.communities.description.teacher", "Centralisez et organisez les documents et les ressources pour vos groupes d'élèves.") })
27
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
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." | null;
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 rights = useHasWorkflow(COMMUNITY_WORKFLOWS), canCreateCommunity = (rights == null ? void 0 : rights[COMMUNITY_CREATE_WORKFLOW]) === !0, hasCommunitiesRight = canCreateCommunity || (rights == null ? void 0 : rights[COMMUNITY_ACCESS_WORKFLOW]) === !0, {
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 === 0 && canCreateCommunity ? "/communities/create/step-type" : "/communities", "_self");
26
- }, [handleHeaderActionClick, communities.length, canCreateCommunity]), mappedCommunities = useMemo(() => communities.map((community) => ({
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 rights === void 0 || isLoading ? /* @__PURE__ */ jsx(CommunitiesSkeleton, {}) : hasCommunitiesRight ? error ? "An error occurred while loading communities." : /* @__PURE__ */ jsx(Communities, { communitiesList: mappedCommunities, handleActionClick, canCreateCommunity }) : null;
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%", "76%", "68%"], secondaryTitleWidths = ["56%", "44%", "60%", "48%", "52%", "40%"], CommunitiesSkeleton = () => /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", "data-testid": "communities-skeleton", children: [
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, { className: "communities-content", children: /* @__PURE__ */ jsx(Flex, { gap: "16", children: /* @__PURE__ */ jsx("div", { className: "communities-list", children: primaryTitleWidths.map((primaryWidth, index) => /* @__PURE__ */ jsxs("div", { className: "communities-item", "aria-hidden": "true", children: [
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 const COMMUNITIES_PREVIEW_SIZE = 6;
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;