@edifice.io/react 2.6.2-develop-integration.20260820103059 → 2.6.2-develop-integration-crna.20260820104716
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/Alert/Alert.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/components/DatePicker/DatePicker.js +2 -0
- package/dist/components/Layout/Layout.js +5 -3
- package/dist/hooks/index.d.ts +0 -1
- package/dist/icons.js +340 -338
- package/dist/index.js +146 -152
- package/dist/modules/homepage/components/Communities/Communities.d.ts +10 -0
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +9 -0
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.d.ts +5 -0
- package/dist/modules/homepage/components/Communities/CommunityItem.d.ts +11 -0
- package/dist/modules/homepage/components/Communities/index.d.ts +8 -0
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +13 -0
- package/dist/modules/homepage/components/Favorites/Favorites.js +1 -1
- package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +5 -1
- package/dist/modules/homepage/components/HomeCard/HomeCard.js +10 -2
- package/dist/modules/homepage/components/LastInfos/LastInfosList.js +2 -2
- package/dist/modules/homepage/components/Notifications/NotificationList.js +2 -2
- package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.d.ts +2 -1
- package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.js +3 -2
- package/dist/modules/homepage/components/Notifications/components/UserNotificationItem.js +1 -1
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.d.ts +21 -7
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +26 -13
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +20 -11
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +5 -2
- package/dist/modules/homepage/components/UserSpace/hooks/useChildren.d.ts +14 -0
- package/dist/modules/homepage/components/UserSpace/hooks/useChildren.js +23 -0
- package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.d.ts +8 -0
- package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.js +65 -0
- package/dist/modules/icons/components/IconClass.d.ts +7 -0
- package/dist/modules/icons/components/IconClass.js +13 -0
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/multimedia/FileCard/index.d.ts +0 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +7 -20
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -2
- package/dist/modules/multimedia/index.d.ts +0 -1
- package/dist/multimedia.js +12 -16
- package/package.json +6 -6
- package/dist/hooks/useNextcloudSearch/index.d.ts +0 -1
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +0 -12
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +0 -56
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +0 -25
- package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +0 -105
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +0 -35
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +0 -24
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +0 -109
- package/dist/modules/multimedia/Nextcloud/index.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -44,82 +44,79 @@ import { default as default42 } from "./components/LogoBeta/LogoBeta.js";
|
|
|
44
44
|
import { default as default43 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
45
45
|
import { default as default44 } from "./components/MediaViewer/MediaViewer.js";
|
|
46
46
|
import { default as default45 } from "./components/Modal/Modal.js";
|
|
47
|
-
import { default as default46 } from "./modules/
|
|
48
|
-
import { default as default47 } from "./
|
|
49
|
-
import { default as default48 } from "./
|
|
50
|
-
import { default as default49 } from "./components/
|
|
51
|
-
import { default as default50 } from "./
|
|
52
|
-
import { default as default51
|
|
53
|
-
import { default as default52 } from "./
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54 } from "./components/
|
|
56
|
-
import { default as default55 } from "./components/
|
|
57
|
-
import { default as default56 } from "./components/
|
|
58
|
-
import { default as default57 } from "./
|
|
59
|
-
import { default as default58 } from "./
|
|
60
|
-
import { default as default59 } from "./modules/modals/ShareModal/
|
|
61
|
-
import { default as default60 } from "./
|
|
62
|
-
import { default as default61 } from "./
|
|
63
|
-
import { default as default62 } from "./components/
|
|
64
|
-
import { default as default63 } from "./components/
|
|
65
|
-
import { default as default64 } from "./components/
|
|
66
|
-
import { default as default65 } from "./components/
|
|
67
|
-
import { default as default66 } from "./components/
|
|
68
|
-
import { default as default67 } from "./components/
|
|
69
|
-
import { default as default68 } from "./components/
|
|
70
|
-
import { default as default69 } from "./components/
|
|
71
|
-
import { default as default70 } from "./
|
|
72
|
-
import { default as default71 } from "./
|
|
73
|
-
import { default as default72 } from "./modules/multimedia/
|
|
74
|
-
import { default as default73 } from "./modules/multimedia/
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./modules/multimedia/
|
|
77
|
-
import { default as default76 } from "./
|
|
78
|
-
import { default as default77 } from "./
|
|
79
|
-
import { default as default78 } from "./
|
|
80
|
-
import { default as default79 } from "./hooks/
|
|
81
|
-
import { default as default80 } from "./hooks/
|
|
82
|
-
import { default as default81 } from "./hooks/
|
|
83
|
-
import { default as default82 } from "./hooks/
|
|
84
|
-
import { default as default83 } from "./hooks/
|
|
85
|
-
import { default as default84 } from "./hooks/
|
|
86
|
-
import { default as default85 } from "./hooks/
|
|
87
|
-
import { default as default86 } from "./hooks/
|
|
88
|
-
import { default as default87 } from "./hooks/
|
|
89
|
-
import { default as default88 } from "./hooks/
|
|
90
|
-
import { default as default89 } from "./hooks/
|
|
91
|
-
import { default as default90 } from "./hooks/
|
|
92
|
-
import { default as default91 } from "./hooks/
|
|
93
|
-
import { default as default92 } from "./hooks/
|
|
94
|
-
import { default as default93 } from "./hooks/
|
|
95
|
-
import { default as default94 } from "./hooks/
|
|
96
|
-
import { default as default95 } from "./hooks/
|
|
97
|
-
import { default as default96 } from "./hooks/
|
|
98
|
-
import { default as default97 } from "./hooks/
|
|
99
|
-
import { default as default98 } from "./hooks/
|
|
100
|
-
import { default as default99 } from "./hooks/
|
|
101
|
-
import { default as default100 } from "./hooks/
|
|
102
|
-
import { default as default101 } from "./hooks/
|
|
103
|
-
import { default as default102 } from "./hooks/
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./hooks/
|
|
106
|
-
import { default as default105 } from "./
|
|
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 "./hooks/
|
|
113
|
-
import { default as default112 } from "./
|
|
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 { default as default117 } from "./hooks/
|
|
119
|
-
import {
|
|
120
|
-
import { default as default119 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
121
|
-
import { default as default120 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
122
|
-
import { default as default121 } from "./hooks/useZendeskGuide/useZendeskGuide.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";
|
|
123
120
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
124
121
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
125
122
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -228,57 +225,55 @@ export {
|
|
|
228
225
|
Menu,
|
|
229
226
|
MockedProvider,
|
|
230
227
|
default45 as Modal,
|
|
231
|
-
default46 as
|
|
232
|
-
default47 as
|
|
233
|
-
default48 as OnboardingModal,
|
|
234
|
-
default49 as PageLayout,
|
|
228
|
+
default46 as OnboardingModal,
|
|
229
|
+
default47 as PageLayout,
|
|
235
230
|
PageLayoutContext,
|
|
236
231
|
Pagination,
|
|
237
232
|
Popover,
|
|
238
233
|
PopoverBody,
|
|
239
234
|
PopoverFooter,
|
|
240
235
|
PopoverHeader,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
236
|
+
default48 as PreventPropagation,
|
|
237
|
+
default49 as PromotionCard,
|
|
238
|
+
default50 as PublishModal,
|
|
239
|
+
default51 as Radio,
|
|
240
|
+
default52 as RadioCard,
|
|
246
241
|
ResourceModal,
|
|
247
242
|
Root,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
243
|
+
default53 as SearchBar,
|
|
244
|
+
default54 as SearchButton,
|
|
245
|
+
default55 as SegmentedControl,
|
|
246
|
+
default56 as Select,
|
|
247
|
+
default57 as ShareBlog,
|
|
248
|
+
default58 as ShareModal,
|
|
249
|
+
default59 as ShareResources,
|
|
250
|
+
default60 as SortableTree,
|
|
251
|
+
default61 as StackedGroup,
|
|
252
|
+
default62 as Stepper,
|
|
253
|
+
default63 as Switch,
|
|
254
|
+
default64 as Table,
|
|
260
255
|
Tabs,
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
default65 as TextArea,
|
|
257
|
+
default66 as TextSkeleton,
|
|
263
258
|
Toolbar,
|
|
264
|
-
|
|
265
|
-
|
|
259
|
+
default67 as Tooltip,
|
|
260
|
+
default68 as Tree,
|
|
266
261
|
TreeNode,
|
|
267
262
|
TreeNodeFolderWrapper,
|
|
268
|
-
|
|
263
|
+
default69 as TreeView,
|
|
269
264
|
Upload,
|
|
270
|
-
|
|
271
|
-
|
|
265
|
+
default70 as UploadCard,
|
|
266
|
+
default71 as UploadFiles,
|
|
272
267
|
UserRightsList,
|
|
273
268
|
UserSearch,
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
default72 as VideoEmbed,
|
|
270
|
+
default73 as VideoRecorder,
|
|
276
271
|
VisibleType,
|
|
277
|
-
|
|
272
|
+
default74 as VisuallyHidden,
|
|
278
273
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
279
274
|
WORKSPACE_USER_FOLDER_ID,
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
default75 as Workspace,
|
|
276
|
+
default76 as WorkspaceFolders,
|
|
282
277
|
addNode,
|
|
283
278
|
arrayUnique,
|
|
284
279
|
buildTree,
|
|
@@ -309,58 +304,57 @@ export {
|
|
|
309
304
|
setRef,
|
|
310
305
|
updateNode,
|
|
311
306
|
updateParentIds,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
307
|
+
default77 as useBookmark,
|
|
308
|
+
default78 as useBreakpoint,
|
|
309
|
+
default79 as useBrowserInfo,
|
|
310
|
+
default80 as useCantoo,
|
|
316
311
|
useCheckable,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
312
|
+
default81 as useClickOutside,
|
|
313
|
+
default82 as useConversation,
|
|
314
|
+
default83 as useDate,
|
|
315
|
+
default84 as useDebounce,
|
|
316
|
+
default85 as useDirectory,
|
|
317
|
+
default86 as useDropdown,
|
|
318
|
+
default87 as useDropzone,
|
|
324
319
|
useDropzoneContext,
|
|
325
320
|
useEdificeClient,
|
|
326
|
-
|
|
321
|
+
default88 as useEdificeIcons,
|
|
327
322
|
useEdificeTheme,
|
|
328
323
|
useFileToAttachment,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
default102 as useNextcloudSearch,
|
|
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,
|
|
341
335
|
useOverlay,
|
|
342
336
|
usePageLayout,
|
|
343
|
-
|
|
337
|
+
default100 as usePublicConf,
|
|
344
338
|
useScreeb,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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,
|
|
352
346
|
useTreeSortable,
|
|
353
347
|
useTreeView,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
348
|
+
default108 as useUiOverride,
|
|
349
|
+
default109 as useUpdateMutation,
|
|
350
|
+
default110 as useUpload,
|
|
351
|
+
default111 as useUploadFiles,
|
|
352
|
+
default112 as useUser,
|
|
353
|
+
default113 as useWorkspaceFile,
|
|
354
|
+
default114 as useWorkspaceFolders,
|
|
355
|
+
default115 as useWorkspaceFoldersTree,
|
|
356
|
+
default116 as useWorkspaceSearch,
|
|
357
|
+
default117 as useXitiTrackPageLoad,
|
|
358
|
+
default118 as useZendeskGuide,
|
|
365
359
|
wrapTreeNode
|
|
366
360
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommunityItemProps } from './CommunityItem';
|
|
2
|
+
export interface CommunitiesProps {
|
|
3
|
+
communitiesList?: CommunityItemProps[];
|
|
4
|
+
handleActionClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const Communities: {
|
|
7
|
+
({ communitiesList, handleActionClick, }: CommunitiesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default Communities;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommunitiesModel } from './useCommunities';
|
|
2
|
+
export type CommunitiesContainerProps = {
|
|
3
|
+
onCommunityClick?: (community: CommunitiesModel) => void;
|
|
4
|
+
onHeaderActionClick: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function CommunitiesContainer({ onCommunityClick, onHeaderActionClick, }: CommunitiesContainerProps): import("react/jsx-runtime").JSX.Element | "An error occurred while loading communities.";
|
|
7
|
+
export declare namespace CommunitiesContainer {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CommunityItemProps {
|
|
2
|
+
title: string;
|
|
3
|
+
communityImage: string;
|
|
4
|
+
onActionClick: () => void;
|
|
5
|
+
nbNotifications?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const CommunityItem: {
|
|
8
|
+
({ title, communityImage, nbNotifications, onActionClick, }: CommunityItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default CommunityItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './Communities';
|
|
2
|
+
export { default as Communities } from './Communities';
|
|
3
|
+
export * from './CommunitiesContainer';
|
|
4
|
+
export * from './CommunitiesSkeleton';
|
|
5
|
+
export { default as CommunitiesSkeleton } from './CommunitiesSkeleton';
|
|
6
|
+
export * from './CommunityItem';
|
|
7
|
+
export { default as CommunitiesItem } from './CommunityItem';
|
|
8
|
+
export * from './useCommunities';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CommunitiesModel {
|
|
2
|
+
id: number | string;
|
|
3
|
+
title: string;
|
|
4
|
+
communityImage?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
nbNotifications?: number;
|
|
7
|
+
notifications?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function useCommunities(): {
|
|
10
|
+
communities: CommunitiesModel[];
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
error: Error | null;
|
|
13
|
+
};
|
|
@@ -15,7 +15,7 @@ function Favorites({
|
|
|
15
15
|
return /* @__PURE__ */ jsxs(HomeCard, { variant: "secondary", children: [
|
|
16
16
|
/* @__PURE__ */ jsx(HomeCard.Header, { title: t("homepage.favorites.title", "Favoris"), actionLabel: t("homepage.favorites.all", "Mes applis"), onActionClick: onSeeAllClick, actionRightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}) }),
|
|
17
17
|
/* @__PURE__ */ jsx(HomeCard.Content, { children: /* @__PURE__ */ jsx("div", { className: "favorites-content", children: apps.length === 0 ? /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "12", children: [
|
|
18
|
-
/* @__PURE__ */ jsx("img", { src: illuEmptyFavorite, alt: "", width:
|
|
18
|
+
/* @__PURE__ */ jsx("img", { src: illuEmptyFavorite, alt: "", width: 50, height: 50 }),
|
|
19
19
|
/* @__PURE__ */ jsx("span", { className: "favorites-empty-text", children: t("homepage.favorites.empty", "Ajouter des applications à vos favoris pour les retrouver ici et y accéder rapidement !") })
|
|
20
20
|
] }) : /* @__PURE__ */ jsx(Flex, { wrap: "wrap", gap: "8 16", children: apps.map((app) => {
|
|
21
21
|
const appName = getAppName(app), opensInNewTab = app.isExternal || app.target === "_blank";
|
|
@@ -20,9 +20,13 @@ export interface HomeCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
20
20
|
* `HomeCard.Header` is rendered with these props.
|
|
21
21
|
*/
|
|
22
22
|
headerProps?: HomeCardHeaderProps;
|
|
23
|
+
/**
|
|
24
|
+
* Optional footer
|
|
25
|
+
*/
|
|
26
|
+
footer?: ReactNode;
|
|
23
27
|
}
|
|
24
28
|
declare const HomeCard: {
|
|
25
|
-
({ variant, children, headerProps, className, ...rest }: HomeCardProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
({ variant, children, headerProps, footer, className, ...rest }: HomeCardProps): import("react/jsx-runtime").JSX.Element;
|
|
26
30
|
displayName: string;
|
|
27
31
|
} & {
|
|
28
32
|
Header: {
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import HomeCardContent from "./HomeCardContent.js";
|
|
4
4
|
import HomeCardHeader from "./HomeCardHeader.js";
|
|
5
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
5
6
|
const Root = ({
|
|
6
7
|
variant = "user",
|
|
7
8
|
children,
|
|
8
9
|
headerProps,
|
|
10
|
+
footer,
|
|
9
11
|
className,
|
|
10
12
|
...rest
|
|
11
|
-
}) =>
|
|
13
|
+
}) => {
|
|
14
|
+
const classNames = clsx("home-card", `home-card--${variant}`, className), content = /* @__PURE__ */ jsx("div", { "data-testid": "home-card", "data-variant": variant, className: classNames, ...rest, children: headerProps && !children ? /* @__PURE__ */ jsx(HomeCardHeader, { ...headerProps }) : children });
|
|
15
|
+
return footer ? /* @__PURE__ */ jsxs("div", { className: "home-card--with-footer", children: [
|
|
16
|
+
content,
|
|
17
|
+
/* @__PURE__ */ jsx(Flex, { direction: "row", gap: "8", className: "px-16 py-4 home-card-footer", children: footer })
|
|
18
|
+
] }) : content;
|
|
19
|
+
}, HomeCard = Object.assign(Root, {
|
|
12
20
|
Header: HomeCardHeader,
|
|
13
21
|
Content: HomeCardContent
|
|
14
22
|
});
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import SvgIconArrowRight from "../../../icons/components/IconArrowRight.js";
|
|
4
4
|
import LastInfos from "./LastInfos.js";
|
|
5
|
-
import illuLastInfosEmptyScreen from "@edifice.io/bootstrap/dist/images/homepage/illu-last-infos
|
|
5
|
+
import illuLastInfosEmptyScreen from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-last-infos.png";
|
|
6
6
|
import Flex from "../../../../components/Flex/Flex.js";
|
|
7
7
|
import ButtonBeta from "../../../../components/ButtonBeta/ButtonBeta.js";
|
|
8
8
|
import EmptyScreen from "../../../../components/EmptyScreen/EmptyScreen.js";
|
|
@@ -23,7 +23,7 @@ function LastInfosList({
|
|
|
23
23
|
/* @__PURE__ */ jsx("h2", { className: "last-infos-list-title", children: t("homepage.last-infos-list.title") }),
|
|
24
24
|
/* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", variant: "ghost", className: "last-infos-list-seemore", rightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), onClick: handleSeeMoreClick, children: t("homepage.last-infos-list.see.more") })
|
|
25
25
|
] }),
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "last-infos-list-body", children: infos.length === 0 ? /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuLastInfosEmptyScreen, size: 135, text: t("homepage.last-infos-list.empty") }) : infos.map((infosProps) => /* @__PURE__ */ jsx(LastInfos, { onClick: handleInfoClick, ...infosProps }, infosProps.id)) })
|
|
27
27
|
] });
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import illuEmptyNotification from "@edifice.io/bootstrap/dist/images/
|
|
2
|
+
import illuEmptyNotification from "@edifice.io/bootstrap/dist/images/homepage/illu-empty-notifications.png";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import SvgIconClose from "../../../icons/components/IconClose.js";
|
|
5
5
|
import NotificationItem from "./NotificationItem.js";
|
|
@@ -29,7 +29,7 @@ const NotificationList = ({
|
|
|
29
29
|
/* @__PURE__ */ jsx("h4", { className: "text-truncate", children: t("homepage.notifications-list.title") }),
|
|
30
30
|
onCloseNotifications && /* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", variant: "ghost", rightIcon: /* @__PURE__ */ jsx(SvgIconClose, {}), onClick: handleCloseClick, "aria-label": t("homepage.notifications-list.close"), title: t("homepage.notifications-list.close"), "data-testid": "notification-list-close-button" })
|
|
31
31
|
] }),
|
|
32
|
-
(notifications == null ? void 0 : notifications.length) === 0 ? /* @__PURE__ */ jsx("div", { className: "mx-24", children: /* @__PURE__ */ jsx(EmptyScreen, { size:
|
|
32
|
+
(notifications == null ? void 0 : notifications.length) === 0 ? /* @__PURE__ */ jsx("div", { className: "mx-24", children: /* @__PURE__ */ jsx(EmptyScreen, { size: 135, imageSrc: illuEmptyNotification, imageAlt: t("homepage.notifications-list.empty.description"), text: t("homepage.notifications-list.empty.description") }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33
33
|
/* @__PURE__ */ jsx("ul", { children: notifications == null ? void 0 : notifications.map((notification, index) => /* @__PURE__ */ jsxs("li", { children: [
|
|
34
34
|
/* @__PURE__ */ jsx(NotificationItem, { notification }),
|
|
35
35
|
/* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
|
package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type NotificationItemResourceProps = {
|
|
2
2
|
appCode: string;
|
|
3
|
+
appI18nKey: string;
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
6
|
* Displays the originating application of a notification as a small icon + label.
|
|
@@ -9,7 +10,7 @@ export type NotificationItemResourceProps = {
|
|
|
9
10
|
*
|
|
10
11
|
*/
|
|
11
12
|
declare const NotificationItemResource: {
|
|
12
|
-
({ appCode, }: NotificationItemResourceProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
({ appCode, appI18nKey, }: NotificationItemResourceProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
15
16
|
export default NotificationItemResource;
|
package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.js
CHANGED
|
@@ -2,11 +2,12 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import AppIcon from "../../../../../components/AppIcon/AppIcon.js";
|
|
4
4
|
const NotificationItemResource = ({
|
|
5
|
-
appCode
|
|
5
|
+
appCode,
|
|
6
|
+
appI18nKey
|
|
6
7
|
}) => {
|
|
7
8
|
const {
|
|
8
9
|
t
|
|
9
|
-
} = useTranslation(), appLabel = t(`${
|
|
10
|
+
} = useTranslation(), appLabel = t(`${appI18nKey}`, {
|
|
10
11
|
defaultValue: appCode
|
|
11
12
|
}), appCssClass = `app-${appCode}`;
|
|
12
13
|
return /* @__PURE__ */ jsxs("div", { className: `notification-item-resource ${appCssClass} bg-app-light`, children: [
|
|
@@ -18,7 +18,7 @@ const UserNotificationItem = ({
|
|
|
18
18
|
} = notification, {
|
|
19
19
|
t
|
|
20
20
|
} = useTranslation(), userName = t(params.username);
|
|
21
|
-
return /* @__PURE__ */ jsx(CommonNotificationItem, { uri, message, date, picture: /* @__PURE__ */ jsx("a", { href: getUserbookURL(params.userId, "user"), title: userName, "data-testid": "notification-item-avatar", children: /* @__PURE__ */ jsx(Avatar, { "aria-label": t("homepage.notifications.avatar.placeholder"), src: getAvatarURL(params.userId, "user"), alt: userName, variant: "circle", className: "notification-item-avatar" }) }), children: /* @__PURE__ */ jsx(NotificationItemResource, { appCode: params.appCode }) });
|
|
21
|
+
return /* @__PURE__ */ jsx(CommonNotificationItem, { uri, message, date, picture: /* @__PURE__ */ jsx("a", { href: getUserbookURL(params.userId, "user"), title: userName, "data-testid": "notification-item-avatar", children: /* @__PURE__ */ jsx(Avatar, { "aria-label": t("homepage.notifications.avatar.placeholder"), src: getAvatarURL(params.userId, "user"), alt: userName, variant: "circle", className: "notification-item-avatar" }) }), children: /* @__PURE__ */ jsx(NotificationItemResource, { appCode: params.appCode, appI18nKey: params.appI18nKey }) });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
UserNotificationItem as default
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { NotificationModel } from '@edifice.io/client';
|
|
2
|
-
type
|
|
2
|
+
type NotificationType = 'system' | 'user';
|
|
3
|
+
interface WebNotificationParamsBase {
|
|
4
|
+
appCode: string;
|
|
5
|
+
appI18nKey: string;
|
|
6
|
+
}
|
|
7
|
+
interface WebNotificationBase {
|
|
8
|
+
type: NotificationType;
|
|
3
9
|
id: string;
|
|
4
10
|
uri?: string;
|
|
5
11
|
message: string;
|
|
6
12
|
date: Date;
|
|
7
|
-
|
|
13
|
+
params: WebNotificationParamsBase;
|
|
14
|
+
}
|
|
8
15
|
/** Notification triggered by another user (e.g. shared a resource). */
|
|
9
16
|
export type UserWebNotification = WebNotificationBase & {
|
|
10
17
|
type: 'user';
|
|
11
|
-
params: {
|
|
12
|
-
appCode: string;
|
|
18
|
+
params: WebNotificationParamsBase & {
|
|
13
19
|
username: string;
|
|
14
20
|
userId: string;
|
|
15
21
|
};
|
|
@@ -17,11 +23,19 @@ export type UserWebNotification = WebNotificationBase & {
|
|
|
17
23
|
/** Notification triggered by an application event (no sender). */
|
|
18
24
|
export type SystemWebNotification = WebNotificationBase & {
|
|
19
25
|
type: 'system';
|
|
20
|
-
params: {
|
|
21
|
-
appCode: string;
|
|
22
|
-
};
|
|
23
26
|
};
|
|
24
27
|
/** Discriminated union — narrow on `type` to get the specific variant. */
|
|
25
28
|
export type WebNotification = UserWebNotification | SystemWebNotification;
|
|
29
|
+
/**
|
|
30
|
+
* Transforms a raw `NotificationModel` (API shape) into a `WebNotification`
|
|
31
|
+
* ready for rendering.
|
|
32
|
+
*
|
|
33
|
+
* Responsibilities:
|
|
34
|
+
* - Determines the variant: **user** when a `sender` is present, **system** otherwise.
|
|
35
|
+
* - Resolves the target URI from the model's `params` (handles both user and system naming conventions).
|
|
36
|
+
* - Converts the MongoDB `$date` timestamp to a JS `Date`.
|
|
37
|
+
* - Normalises the `type` field into a kebab-case `appCode` (e.g. `"BLOG_POST"` → `"blog-post"`).
|
|
38
|
+
* - Strips anchor tags from the message, keeping only the inner text as `<strong>`.
|
|
39
|
+
*/
|
|
26
40
|
export declare const notificationAdapter: (notification: NotificationModel) => WebNotification;
|
|
27
41
|
export {};
|