@edifice.io/react 2.6.8 → 2.6.9-develop-integration.20261012100537
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 +2 -1
- 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 +194 -182
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/homepage/components/Communities/Communities.d.ts +2 -1
- package/dist/modules/homepage/components/Communities/Communities.js +14 -13
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +1 -1
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +9 -5
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +4 -7
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +4 -1
- package/dist/modules/homepage/components/Communities/useCommunities.js +8 -3
- 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,95 +30,101 @@ 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 "./components/
|
|
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 "./modules/modals/
|
|
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 "./
|
|
58
|
-
import { default as default57 } from "./components/
|
|
59
|
-
import { default as default58 } from "./components/
|
|
60
|
-
import { default as default59 } from "./
|
|
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 "./
|
|
65
|
-
import { default as default64 } from "./
|
|
66
|
-
import { default as default65 } from "./
|
|
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 "./components/
|
|
72
|
-
import { default as default71 } from "./components/
|
|
73
|
-
import { default as default72 } from "./
|
|
74
|
-
import { default as default73 } from "./
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./
|
|
77
|
-
import { default as default76 } from "./
|
|
78
|
-
import { default as default77 } from "./modules/multimedia/
|
|
79
|
-
import { default as default78 } from "./modules/multimedia/
|
|
80
|
-
import { default as default79 } from "./
|
|
81
|
-
import { default as default80 } from "./
|
|
82
|
-
import { default as default81 } from "./
|
|
83
|
-
import { default as default82 } from "./
|
|
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/
|
|
121
|
-
import { default as default120 } 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/LinkPill/LinkPill.js";
|
|
43
|
+
import { default as default42 } from "./components/Loading/Loading.js";
|
|
44
|
+
import { default as default43 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
45
|
+
import { default as default44 } from "./components/Logo/Logo.js";
|
|
46
|
+
import { default as default45 } from "./components/LogoBeta/LogoBeta.js";
|
|
47
|
+
import { default as default46 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
48
|
+
import { default as default47 } from "./components/MediaViewer/MediaViewer.js";
|
|
49
|
+
import { default as default48 } from "./components/Modal/Modal.js";
|
|
50
|
+
import { default as default49 } from "./components/ModalBeta/ModalBeta.js";
|
|
51
|
+
import { default as default50 } from "./modules/multimedia/Nextcloud/Nextcloud.js";
|
|
52
|
+
import { default as default51 } from "./modules/multimedia/FileCard/NextcloudFileCard.js";
|
|
53
|
+
import { default as default52 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
54
|
+
import { default as default53 } from "./components/PageLayout/PageLayout.js";
|
|
55
|
+
import { default as default54 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
56
|
+
import { default as default55, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
57
|
+
import { default as default56 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
58
|
+
import { default as default57 } from "./components/Radio/Radio.js";
|
|
59
|
+
import { default as default58 } from "./components/RadioCard/RadioCard.js";
|
|
60
|
+
import { default as default59 } from "./components/SearchBar/SearchBar.js";
|
|
61
|
+
import { default as default60 } from "./components/Button/SearchButton.js";
|
|
62
|
+
import { default as default61 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
63
|
+
import { default as default62 } from "./components/Select/Select.js";
|
|
64
|
+
import { default as default63 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
65
|
+
import { default as default64 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
66
|
+
import { default as default65 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
67
|
+
import { default as default66 } from "./components/Tree/components/SortableTree.js";
|
|
68
|
+
import { default as default67 } from "./components/StackedGroup/StackedGroup.js";
|
|
69
|
+
import { default as default68 } from "./components/Stepper/Stepper.js";
|
|
70
|
+
import { default as default69 } from "./components/Switch/Switch.js";
|
|
71
|
+
import { default as default70 } from "./components/Table/components/Table.js";
|
|
72
|
+
import { default as default71 } from "./components/TextArea/TextArea.js";
|
|
73
|
+
import { default as default72 } from "./components/Skeleton/TextSkeleton.js";
|
|
74
|
+
import { default as default73 } from "./components/Tooltip/Tooltip.js";
|
|
75
|
+
import { default as default74 } from "./components/Tree/components/Tree.js";
|
|
76
|
+
import { default as default75 } from "./components/TreeView/TreeView.js";
|
|
77
|
+
import { default as default76 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
78
|
+
import { default as default77 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
79
|
+
import { default as default78 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
80
|
+
import { default as default79 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
81
|
+
import { default as default80 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
82
|
+
import { default as default81 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
83
|
+
import { default as default82 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useBookmark/useBookmark.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useCantoo/useCantoo.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useConversation/useConversation.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useDate/useDate.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useDebounce/useDebounce.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useDirectory/useDirectory.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useDropdown/useDropdown.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useDropzone/useDropzone.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useGoogleDriveSearch/useGoogleDriveSearch.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useHover/useHover.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useImage/useImage.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useNextcloudSearch/useNextcloudSearch.js";
|
|
109
|
+
import { default as default108 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
111
|
+
import { default as default110 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useTitle/useTitle.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useToast/useToast.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useToggle/useToggle.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
118
|
+
import { default as default117 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
119
|
+
import { default as default118 } from "./hooks/useUpload/useUpload.js";
|
|
120
|
+
import { default as default119 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
121
|
+
import { default as default120 } from "./hooks/useUser/useUser.js";
|
|
122
|
+
import { default as default121 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
123
|
+
import { default as default122 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
124
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default123 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
125
|
+
import { default as default124 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
126
|
+
import { default as default125 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
127
|
+
import { default as default126 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
122
128
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
123
129
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
124
130
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -154,7 +160,7 @@ import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-
|
|
|
154
160
|
import { getRotateTransitionStyle } from "./utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
155
161
|
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
156
162
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
157
|
-
import { default as
|
|
163
|
+
import { default as default127 } from "./hooks/useBackground/useBackground.js";
|
|
158
164
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
159
165
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
160
166
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
@@ -163,7 +169,7 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
163
169
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
164
170
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
165
171
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
166
|
-
import { default as
|
|
172
|
+
import { default as default128 } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
167
173
|
export {
|
|
168
174
|
AccessiblePalette,
|
|
169
175
|
default2 as ActionBar,
|
|
@@ -209,77 +215,81 @@ export {
|
|
|
209
215
|
default29 as Flex,
|
|
210
216
|
default30 as FormControl,
|
|
211
217
|
default31 as FormText,
|
|
218
|
+
default32 as GoogleDrive,
|
|
219
|
+
default33 as GoogleDriveFileCard,
|
|
212
220
|
Grid,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
221
|
+
default34 as Heading,
|
|
222
|
+
default35 as IconButton,
|
|
223
|
+
default36 as Image,
|
|
224
|
+
default37 as ImageEditor,
|
|
225
|
+
default38 as ImagePicker,
|
|
226
|
+
default39 as Input,
|
|
219
227
|
InternalLinker,
|
|
220
|
-
|
|
228
|
+
default40 as Label,
|
|
221
229
|
Layout,
|
|
222
|
-
|
|
230
|
+
default41 as LinkPill,
|
|
223
231
|
List,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
232
|
+
default42 as Loading,
|
|
233
|
+
default43 as LoadingScreen,
|
|
234
|
+
default44 as Logo,
|
|
235
|
+
default45 as LogoBeta,
|
|
236
|
+
default46 as MediaLibrary,
|
|
237
|
+
default47 as MediaViewer,
|
|
230
238
|
Menu,
|
|
231
239
|
MockedProvider,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
default48 as Modal,
|
|
241
|
+
default49 as ModalBeta,
|
|
242
|
+
default50 as Nextcloud,
|
|
243
|
+
default51 as NextcloudFileCard,
|
|
244
|
+
default52 as OnboardingModal,
|
|
245
|
+
default53 as PageLayout,
|
|
236
246
|
PageLayoutContext,
|
|
237
247
|
Pagination,
|
|
238
248
|
Popover,
|
|
239
249
|
PopoverBody,
|
|
240
250
|
PopoverFooter,
|
|
241
251
|
PopoverHeader,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
252
|
+
default54 as PreventPropagation,
|
|
253
|
+
default55 as PromotionCard,
|
|
254
|
+
default56 as PublishModal,
|
|
255
|
+
default57 as Radio,
|
|
256
|
+
default58 as RadioCard,
|
|
247
257
|
ResourceModal,
|
|
248
258
|
Root,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
default59 as SearchBar,
|
|
260
|
+
default60 as SearchButton,
|
|
261
|
+
default61 as SegmentedControl,
|
|
262
|
+
default62 as Select,
|
|
263
|
+
default63 as ShareBlog,
|
|
264
|
+
default64 as ShareModal,
|
|
265
|
+
default65 as ShareResources,
|
|
266
|
+
default66 as SortableTree,
|
|
267
|
+
default67 as StackedGroup,
|
|
268
|
+
default68 as Stepper,
|
|
269
|
+
default69 as Switch,
|
|
270
|
+
default70 as Table,
|
|
261
271
|
Tabs,
|
|
262
|
-
|
|
263
|
-
|
|
272
|
+
default71 as TextArea,
|
|
273
|
+
default72 as TextSkeleton,
|
|
264
274
|
Toolbar,
|
|
265
|
-
|
|
266
|
-
|
|
275
|
+
default73 as Tooltip,
|
|
276
|
+
default74 as Tree,
|
|
267
277
|
TreeNode,
|
|
268
278
|
TreeNodeFolderWrapper,
|
|
269
|
-
|
|
279
|
+
default75 as TreeView,
|
|
270
280
|
Upload,
|
|
271
|
-
|
|
272
|
-
|
|
281
|
+
default76 as UploadCard,
|
|
282
|
+
default77 as UploadFiles,
|
|
273
283
|
UserRightsList,
|
|
274
284
|
UserSearch,
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
default78 as VideoEmbed,
|
|
286
|
+
default79 as VideoRecorder,
|
|
277
287
|
VisibleType,
|
|
278
|
-
|
|
288
|
+
default80 as VisuallyHidden,
|
|
279
289
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
280
290
|
WORKSPACE_USER_FOLDER_ID,
|
|
281
|
-
|
|
282
|
-
|
|
291
|
+
default81 as Workspace,
|
|
292
|
+
default82 as WorkspaceFolders,
|
|
283
293
|
addNode,
|
|
284
294
|
arrayUnique,
|
|
285
295
|
buildTree,
|
|
@@ -310,59 +320,61 @@ export {
|
|
|
310
320
|
setRef,
|
|
311
321
|
updateNode,
|
|
312
322
|
updateParentIds,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
323
|
+
default127 as useBackground,
|
|
324
|
+
default83 as useBookmark,
|
|
325
|
+
default84 as useBreakpoint,
|
|
326
|
+
default85 as useBrowserInfo,
|
|
327
|
+
default86 as useCantoo,
|
|
318
328
|
useCheckable,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
329
|
+
default87 as useClickOutside,
|
|
330
|
+
default88 as useConversation,
|
|
331
|
+
default89 as useDate,
|
|
332
|
+
default90 as useDebounce,
|
|
333
|
+
default91 as useDirectory,
|
|
334
|
+
default92 as useDropdown,
|
|
335
|
+
default93 as useDropzone,
|
|
326
336
|
useDropzoneContext,
|
|
327
337
|
useEdificeClient,
|
|
328
|
-
|
|
338
|
+
default94 as useEdificeIcons,
|
|
329
339
|
useEdificeTheme,
|
|
330
340
|
useFileToAttachment,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
341
|
+
default95 as useGoogleDriveSearch,
|
|
342
|
+
default96 as useHasWorkflow,
|
|
343
|
+
default97 as useHover,
|
|
344
|
+
default98 as useHttpErrorToast,
|
|
345
|
+
default99 as useImage,
|
|
346
|
+
default100 as useInfiniteScroll,
|
|
347
|
+
default101 as useIsAdmc,
|
|
348
|
+
default102 as useIsAdml,
|
|
349
|
+
default103 as useIsAdmlcOrAdmc,
|
|
350
|
+
default104 as useKeyPress,
|
|
351
|
+
default105 as useLibraryUrl,
|
|
352
|
+
default106 as useMediaLibrary,
|
|
353
|
+
default107 as useNextcloudSearch,
|
|
342
354
|
useOverlay,
|
|
343
355
|
usePageLayout,
|
|
344
|
-
|
|
356
|
+
default108 as usePublicConf,
|
|
345
357
|
useScreeb,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
358
|
+
default109 as useScrollToTop,
|
|
359
|
+
default110 as useShareMutation,
|
|
360
|
+
default111 as useTitle,
|
|
361
|
+
default112 as useToast,
|
|
362
|
+
default113 as useToggle,
|
|
363
|
+
default114 as useTrapFocus,
|
|
364
|
+
default115 as useTrashedResource,
|
|
353
365
|
useTreeSortable,
|
|
354
366
|
useTreeView,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
+
default116 as useUiOverride,
|
|
368
|
+
default117 as useUpdateMutation,
|
|
369
|
+
default118 as useUpload,
|
|
370
|
+
default119 as useUploadFiles,
|
|
371
|
+
default120 as useUser,
|
|
372
|
+
default128 as useUserPreferences,
|
|
373
|
+
default121 as useWorkspaceFile,
|
|
374
|
+
default122 as useWorkspaceFolders,
|
|
375
|
+
default123 as useWorkspaceFoldersTree,
|
|
376
|
+
default124 as useWorkspaceSearch,
|
|
377
|
+
default125 as useXitiTrackPageLoad,
|
|
378
|
+
default126 as useZendeskGuide,
|
|
367
379
|
wrapTreeNode
|
|
368
380
|
};
|
|
@@ -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"),
|
|
@@ -2,9 +2,10 @@ import { CommunityItemProps } from './CommunityItem';
|
|
|
2
2
|
export interface CommunitiesProps {
|
|
3
3
|
communitiesList?: CommunityItemProps[];
|
|
4
4
|
handleActionClick: () => void;
|
|
5
|
+
canCreateCommunity?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const Communities: {
|
|
7
|
-
({ communitiesList, handleActionClick, }: CommunitiesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
({ communitiesList, handleActionClick, canCreateCommunity, }: CommunitiesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
displayName: string;
|
|
9
10
|
};
|
|
10
11
|
export default Communities;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import illuCommunities from "@edifice.io/bootstrap/dist/images/homepage/illu-communities.svg";
|
|
3
|
-
import { useMeasure } from "@uidotdev/usehooks";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
5
4
|
import SvgIconArrowRight from "../../../icons/components/IconArrowRight.js";
|
|
6
5
|
import CommunityItem from "./CommunityItem.js";
|
|
7
6
|
import HomeCard from "../HomeCard/HomeCard.js";
|
|
8
7
|
import Flex from "../../../../components/Flex/Flex.js";
|
|
9
8
|
import Image from "../../../../components/Image/Image.js";
|
|
10
|
-
const
|
|
9
|
+
const Communities = ({
|
|
11
10
|
communitiesList = [],
|
|
12
|
-
handleActionClick
|
|
11
|
+
handleActionClick,
|
|
12
|
+
canCreateCommunity = !1
|
|
13
13
|
}) => {
|
|
14
14
|
const {
|
|
15
15
|
t
|
|
16
|
-
} = useTranslation()
|
|
17
|
-
width
|
|
18
|
-
}] = useMeasure(), maxItems = width !== null && width < NARROW_CONTAINER_WIDTH ? MAX_ITEMS_NARROW : MAX_ITEMS, visibleCommunities = communitiesList.slice(0, maxItems), itemWidth = `${100 / maxItems}%`;
|
|
16
|
+
} = useTranslation();
|
|
19
17
|
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, {
|
|
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: [
|
|
22
20
|
/* @__PURE__ */ jsx(Image, { src: illuCommunities, alt: "", "aria-hidden": "true", style: {
|
|
23
21
|
width: 80,
|
|
24
22
|
height: 80
|
|
25
23
|
} }),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ jsx("p", { className: "communities-empty-title", children: t("homepage.communities.subtitle", "
|
|
28
|
-
/* @__PURE__ */ jsx("p", { className: "communities-empty-description", children: t("homepage.communities.description", "
|
|
29
|
-
] })
|
|
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
|
+
] }) })
|
|
30
31
|
] }) }) })
|
|
31
32
|
] });
|
|
32
33
|
};
|
|
@@ -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." | null;
|
|
9
9
|
export declare namespace CommunitiesContainer {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
@@ -3,28 +3,32 @@ 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];
|
|
6
8
|
function CommunitiesContainer({
|
|
7
9
|
onCommunityClick: handleCommunityClick = (community) => {
|
|
8
10
|
window.open(`/communities/id/${community.id}/home`, "_self");
|
|
9
11
|
},
|
|
10
12
|
onHeaderActionClick: handleHeaderActionClick
|
|
11
13
|
}) {
|
|
12
|
-
const {
|
|
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, {
|
|
13
15
|
communities,
|
|
14
16
|
isLoading,
|
|
15
17
|
error
|
|
16
|
-
} = useCommunities(
|
|
18
|
+
} = useCommunities({
|
|
19
|
+
enabled: hasCommunitiesRight
|
|
20
|
+
}), handleActionClick = useCallback(() => {
|
|
17
21
|
if (handleHeaderActionClick) {
|
|
18
22
|
handleHeaderActionClick();
|
|
19
23
|
return;
|
|
20
24
|
}
|
|
21
|
-
window.open(communities.length
|
|
22
|
-
}, [handleHeaderActionClick, communities.length]), mappedCommunities = useMemo(() => communities.map((community) => ({
|
|
25
|
+
window.open(communities.length === 0 && canCreateCommunity ? "/communities/create/step-type" : "/communities", "_self");
|
|
26
|
+
}, [handleHeaderActionClick, communities.length, canCreateCommunity]), mappedCommunities = useMemo(() => communities.map((community) => ({
|
|
23
27
|
title: community.title,
|
|
24
28
|
communityImage: community.image ?? "",
|
|
25
29
|
onActionClick: () => handleCommunityClick(community)
|
|
26
30
|
})), [communities, handleCommunityClick]);
|
|
27
|
-
return isLoading ? /* @__PURE__ */ jsx(CommunitiesSkeleton, {}) : error ? "An error occurred while loading communities." : /* @__PURE__ */ jsx(Communities, { communitiesList: mappedCommunities, handleActionClick });
|
|
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;
|
|
28
32
|
}
|
|
29
33
|
export {
|
|
30
34
|
CommunitiesContainer
|
|
@@ -3,17 +3,14 @@ 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%"], secondaryTitleWidths = ["56%", "44%", "60%", "48%"], CommunitiesSkeleton = () => /* @__PURE__ */ jsxs(HomeCard, { variant: "primary", "data-testid": "communities-skeleton", children: [
|
|
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: [
|
|
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, { children: /* @__PURE__ */ jsx(Flex, { gap: "16", children: primaryTitleWidths.map((primaryWidth, index) => /* @__PURE__ */ jsxs("div", { className: "communities-item",
|
|
12
|
-
width: "25%"
|
|
13
|
-
}, "aria-hidden": "true", children: [
|
|
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: [
|
|
14
12
|
/* @__PURE__ */ jsx("div", { className: "communities-item-image placeholder rounded", style: {
|
|
15
|
-
display: "block"
|
|
16
|
-
aspectRatio: "1 / 1"
|
|
13
|
+
display: "block"
|
|
17
14
|
} }),
|
|
18
15
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "4", className: "mt-8", children: [
|
|
19
16
|
/* @__PURE__ */ jsx("div", { style: {
|
|
@@ -25,7 +22,7 @@ const primaryTitleWidths = ["80%", "64%", "88%", "72%"], secondaryTitleWidths =
|
|
|
25
22
|
alignSelf: "center"
|
|
26
23
|
}, children: /* @__PURE__ */ jsx(TextSkeleton, { className: "col-12", size: "sm" }) })
|
|
27
24
|
] })
|
|
28
|
-
] }, primaryWidth)) }) })
|
|
25
|
+
] }, primaryWidth)) }) }) })
|
|
29
26
|
] });
|
|
30
27
|
export {
|
|
31
28
|
CommunitiesSkeleton as default
|