@edifice.io/react 2.5.24-feat-INTEG-1924-port-react-nextcloud-filetree.20260710145714 → 2.6.0-develop-integration.20260709153508
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/homepage.js +2 -2
- package/dist/hooks/index.d.ts +0 -1
- package/dist/index.js +144 -150
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +12 -3
- package/dist/modules/homepage/components/Notifications/{Notification.d.ts → NotificationItem.d.ts} +3 -3
- package/dist/modules/homepage/components/Notifications/{Notification.js → NotificationItem.js} +6 -6
- package/dist/modules/homepage/components/Notifications/NotificationList.js +2 -2
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +1 -1
- package/dist/modules/homepage/components/Notifications/components/{NotificationItem.d.ts → CommonNotificationItem.d.ts} +2 -2
- package/dist/modules/homepage/components/Notifications/components/CommonNotificationItem.js +28 -0
- package/dist/modules/homepage/components/Notifications/components/{NotificationResource.d.ts → NotificationItemResource.d.ts} +4 -4
- package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.js +19 -0
- package/dist/modules/homepage/components/Notifications/components/{SystemNotification.d.ts → SystemNotificationItem.d.ts} +4 -4
- package/dist/modules/homepage/components/Notifications/components/SystemNotificationItem.js +20 -0
- package/dist/modules/homepage/components/Notifications/components/{UserNotification.d.ts → UserNotificationItem.d.ts} +4 -4
- package/dist/modules/homepage/components/Notifications/components/UserNotificationItem.js +25 -0
- package/dist/modules/homepage/components/Notifications/index.d.ts +2 -2
- 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 +3 -16
- 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 +9 -8
- package/dist/hooks/useNextcloudSearch/index.d.ts +0 -1
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +0 -9
- package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +0 -48
- package/dist/modules/homepage/components/Notifications/components/NotificationItem.js +0 -28
- package/dist/modules/homepage/components/Notifications/components/NotificationResource.js +0 -19
- package/dist/modules/homepage/components/Notifications/components/SystemNotification.js +0 -20
- package/dist/modules/homepage/components/Notifications/components/UserNotification.js +0 -25
- package/dist/modules/icons/components/IconStarFavorite.d.ts +0 -7
- 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 -22
- package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +0 -20
- package/dist/modules/multimedia/Nextcloud/Nextcloud.js +0 -88
- package/dist/modules/multimedia/Nextcloud/index.d.ts +0 -2
package/dist/homepage.js
CHANGED
|
@@ -2,7 +2,7 @@ import { default as default2 } from "./modules/homepage/components/Header/Header
|
|
|
2
2
|
import { default as default3 } from "./modules/homepage/components/HomeCard/HomeCard.js";
|
|
3
3
|
import { default as default4 } from "./modules/homepage/components/LastInfos/LastInfos.js";
|
|
4
4
|
import { default as default5 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
5
|
-
import { default as default6 } from "./modules/homepage/components/Notifications/
|
|
5
|
+
import { default as default6 } from "./modules/homepage/components/Notifications/NotificationItem.js";
|
|
6
6
|
import { default as default7 } from "./modules/homepage/components/Notifications/NotificationList.js";
|
|
7
7
|
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
8
8
|
import { default as default8 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
@@ -24,7 +24,7 @@ export {
|
|
|
24
24
|
LastInfosList,
|
|
25
25
|
default5 as MessageFlashList,
|
|
26
26
|
MessageFlashListContainer,
|
|
27
|
-
default6 as
|
|
27
|
+
default6 as NotificationItem,
|
|
28
28
|
default7 as NotificationList,
|
|
29
29
|
NotificationListContainer,
|
|
30
30
|
default8 as SchoolSpace,
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export * from './useIsAdmlcOrAdmc';
|
|
|
22
22
|
export * from './useKeyPress';
|
|
23
23
|
export * from './useLibraryUrl';
|
|
24
24
|
export * from './useMediaLibrary';
|
|
25
|
-
export * from './useNextcloudSearch';
|
|
26
25
|
export * from './usePublicConf';
|
|
27
26
|
export * from './useScreeb';
|
|
28
27
|
export * from './useScrollToTop';
|
package/dist/index.js
CHANGED
|
@@ -44,81 +44,78 @@ 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 "./
|
|
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/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
120
|
-
import { default as default119 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
121
|
-
import { default as default120 } 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 "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useUpload/useUpload.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
112
|
+
import { default as default111 } from "./hooks/useUser/useUser.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
115
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default114 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
118
|
+
import { default as default117 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
122
119
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
123
120
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
124
121
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -226,57 +223,55 @@ export {
|
|
|
226
223
|
Menu,
|
|
227
224
|
MockedProvider,
|
|
228
225
|
default45 as Modal,
|
|
229
|
-
default46 as
|
|
230
|
-
default47 as
|
|
231
|
-
default48 as OnboardingModal,
|
|
232
|
-
default49 as PageLayout,
|
|
226
|
+
default46 as OnboardingModal,
|
|
227
|
+
default47 as PageLayout,
|
|
233
228
|
PageLayoutContext,
|
|
234
229
|
Pagination,
|
|
235
230
|
Popover,
|
|
236
231
|
PopoverBody,
|
|
237
232
|
PopoverFooter,
|
|
238
233
|
PopoverHeader,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
234
|
+
default48 as PreventPropagation,
|
|
235
|
+
default49 as PromotionCard,
|
|
236
|
+
default50 as PublishModal,
|
|
237
|
+
default51 as Radio,
|
|
238
|
+
default52 as RadioCard,
|
|
244
239
|
ResourceModal,
|
|
245
240
|
Root,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
241
|
+
default53 as SearchBar,
|
|
242
|
+
default54 as SearchButton,
|
|
243
|
+
default55 as SegmentedControl,
|
|
244
|
+
default56 as Select,
|
|
245
|
+
default57 as ShareBlog,
|
|
246
|
+
default58 as ShareModal,
|
|
247
|
+
default59 as ShareResources,
|
|
248
|
+
default60 as SortableTree,
|
|
249
|
+
default61 as StackedGroup,
|
|
250
|
+
default62 as Stepper,
|
|
251
|
+
default63 as Switch,
|
|
252
|
+
default64 as Table,
|
|
258
253
|
Tabs,
|
|
259
|
-
|
|
260
|
-
|
|
254
|
+
default65 as TextArea,
|
|
255
|
+
default66 as TextSkeleton,
|
|
261
256
|
Toolbar,
|
|
262
|
-
|
|
263
|
-
|
|
257
|
+
default67 as Tooltip,
|
|
258
|
+
default68 as Tree,
|
|
264
259
|
TreeNode,
|
|
265
260
|
TreeNodeFolderWrapper,
|
|
266
|
-
|
|
261
|
+
default69 as TreeView,
|
|
267
262
|
Upload,
|
|
268
|
-
|
|
269
|
-
|
|
263
|
+
default70 as UploadCard,
|
|
264
|
+
default71 as UploadFiles,
|
|
270
265
|
UserRightsList,
|
|
271
266
|
UserSearch,
|
|
272
|
-
|
|
273
|
-
|
|
267
|
+
default72 as VideoEmbed,
|
|
268
|
+
default73 as VideoRecorder,
|
|
274
269
|
VisibleType,
|
|
275
|
-
|
|
270
|
+
default74 as VisuallyHidden,
|
|
276
271
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
277
272
|
WORKSPACE_USER_FOLDER_ID,
|
|
278
|
-
|
|
279
|
-
|
|
273
|
+
default75 as Workspace,
|
|
274
|
+
default76 as WorkspaceFolders,
|
|
280
275
|
addNode,
|
|
281
276
|
arrayUnique,
|
|
282
277
|
buildTree,
|
|
@@ -306,57 +301,56 @@ export {
|
|
|
306
301
|
setRef,
|
|
307
302
|
updateNode,
|
|
308
303
|
updateParentIds,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
304
|
+
default77 as useBookmark,
|
|
305
|
+
default78 as useBreakpoint,
|
|
306
|
+
default79 as useBrowserInfo,
|
|
307
|
+
default80 as useCantoo,
|
|
313
308
|
useCheckable,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
309
|
+
default81 as useClickOutside,
|
|
310
|
+
default82 as useConversation,
|
|
311
|
+
default83 as useDate,
|
|
312
|
+
default84 as useDebounce,
|
|
313
|
+
default85 as useDirectory,
|
|
314
|
+
default86 as useDropdown,
|
|
315
|
+
default87 as useDropzone,
|
|
321
316
|
useDropzoneContext,
|
|
322
317
|
useEdificeClient,
|
|
323
|
-
|
|
318
|
+
default88 as useEdificeIcons,
|
|
324
319
|
useEdificeTheme,
|
|
325
320
|
useFileToAttachment,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
default102 as useNextcloudSearch,
|
|
321
|
+
default89 as useHasWorkflow,
|
|
322
|
+
default90 as useHover,
|
|
323
|
+
default91 as useHttpErrorToast,
|
|
324
|
+
default92 as useImage,
|
|
325
|
+
default93 as useInfiniteScroll,
|
|
326
|
+
default94 as useIsAdmc,
|
|
327
|
+
default95 as useIsAdml,
|
|
328
|
+
default96 as useIsAdmlcOrAdmc,
|
|
329
|
+
default97 as useKeyPress,
|
|
330
|
+
default98 as useLibraryUrl,
|
|
331
|
+
default99 as useMediaLibrary,
|
|
338
332
|
useOverlay,
|
|
339
333
|
usePageLayout,
|
|
340
|
-
|
|
334
|
+
default100 as usePublicConf,
|
|
341
335
|
useScreeb,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
336
|
+
default101 as useScrollToTop,
|
|
337
|
+
default102 as useShareMutation,
|
|
338
|
+
default103 as useTitle,
|
|
339
|
+
default104 as useToast,
|
|
340
|
+
default105 as useToggle,
|
|
341
|
+
default106 as useTrapFocus,
|
|
342
|
+
default107 as useTrashedResource,
|
|
349
343
|
useTreeSortable,
|
|
350
344
|
useTreeView,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
345
|
+
default108 as useUpdateMutation,
|
|
346
|
+
default109 as useUpload,
|
|
347
|
+
default110 as useUploadFiles,
|
|
348
|
+
default111 as useUser,
|
|
349
|
+
default112 as useWorkspaceFile,
|
|
350
|
+
default113 as useWorkspaceFolders,
|
|
351
|
+
default114 as useWorkspaceFoldersTree,
|
|
352
|
+
default115 as useWorkspaceSearch,
|
|
353
|
+
default116 as useXitiTrackPageLoad,
|
|
354
|
+
default117 as useZendeskGuide,
|
|
361
355
|
wrapTreeNode
|
|
362
356
|
};
|
|
@@ -12,7 +12,9 @@ import { Grid } from "../../../../components/Grid/Grid.js";
|
|
|
12
12
|
const AttachmentRenderer = (props) => {
|
|
13
13
|
const {
|
|
14
14
|
node,
|
|
15
|
-
editor
|
|
15
|
+
editor,
|
|
16
|
+
updateAttributes,
|
|
17
|
+
deleteNode
|
|
16
18
|
} = props, [attachmentArrayAttrs, setAttachmentArrayAttrs] = useState(node.attrs.links), {
|
|
17
19
|
t
|
|
18
20
|
} = useTranslation(), {
|
|
@@ -22,7 +24,14 @@ const AttachmentRenderer = (props) => {
|
|
|
22
24
|
attachmentArrayAttrs !== node.attrs.links && setAttachmentArrayAttrs(node.attrs.links);
|
|
23
25
|
}, [node.attrs.links, attachmentArrayAttrs]);
|
|
24
26
|
const handleDelete = (index, documentId) => {
|
|
25
|
-
|
|
27
|
+
const nextAttachments = (node.attrs.links ?? []).filter((link, i) => {
|
|
28
|
+
const linkDocumentId = link.dataDocumentId ?? link.documentId ?? link["data-document-id"] ?? link.href;
|
|
29
|
+
return !(i === index || String(linkDocumentId ?? "") === String(documentId ?? ""));
|
|
30
|
+
});
|
|
31
|
+
nextAttachments.length > 0 ? updateAttributes == null || updateAttributes({
|
|
32
|
+
...node.attrs,
|
|
33
|
+
links: nextAttachments
|
|
34
|
+
}) : deleteNode == null || deleteNode(), !updateAttributes && !deleteNode && editor.commands.unsetAttachment(documentId), setAttachmentArrayAttrs(nextAttachments);
|
|
26
35
|
};
|
|
27
36
|
return (attachmentArrayAttrs == null ? void 0 : attachmentArrayAttrs.length) !== 0 && /* @__PURE__ */ jsx(NodeViewWrapper, { children: /* @__PURE__ */ jsxs("div", { style: {
|
|
28
37
|
backgroundColor: "#F2F2F2",
|
|
@@ -32,7 +41,7 @@ const AttachmentRenderer = (props) => {
|
|
|
32
41
|
/* @__PURE__ */ jsx("p", { className: "m-12 mt-0", children: t("tiptap.attachments.bloc") }),
|
|
33
42
|
/* @__PURE__ */ jsx(Grid, { children: attachmentArrayAttrs == null ? void 0 : attachmentArrayAttrs.map((attachment, index) => /* @__PURE__ */ jsx(Grid.Col, { sm: "6", children: /* @__PURE__ */ jsx(Attachment, { name: attachment.name, options: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
43
|
/* @__PURE__ */ jsx("a", { href: attachment.href, "data-document-id": attachment.dataDocumentId, "data-content-type": attachment.dataContentType, download: !0, children: /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.download"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDownload, {}), variant: "ghost" }) }),
|
|
35
|
-
editable && /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.delete"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: () => handleDelete(index, attachment.dataDocumentId) })
|
|
44
|
+
editable && /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.delete"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: () => handleDelete(index, attachment.dataDocumentId ?? attachment["data-document-id"] ?? attachment.href) })
|
|
36
45
|
] }) }) }, index)) })
|
|
37
46
|
] }) });
|
|
38
47
|
};
|
package/dist/modules/homepage/components/Notifications/{Notification.d.ts → NotificationItem.d.ts}
RENAMED
|
@@ -11,10 +11,10 @@ export type NotificationProps = {
|
|
|
11
11
|
* - **system** — triggered by an application event; shows the app icon.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* <
|
|
14
|
+
* <NotificationItem notification={notificationModel} />
|
|
15
15
|
*/
|
|
16
|
-
declare const
|
|
16
|
+
declare const NotificationItem: {
|
|
17
17
|
({ notification }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
-
export default
|
|
20
|
+
export default NotificationItem;
|
package/dist/modules/homepage/components/Notifications/{Notification.js → NotificationItem.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import SystemNotificationItem from "./components/SystemNotificationItem.js";
|
|
3
|
+
import UserNotificationItem from "./components/UserNotificationItem.js";
|
|
4
4
|
import { notificationAdapter } from "./components/notificationAdapter.js";
|
|
5
|
-
const
|
|
5
|
+
const NotificationItem = ({
|
|
6
6
|
notification
|
|
7
7
|
}) => {
|
|
8
8
|
const notif = notificationAdapter(notification);
|
|
9
9
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
|
-
notif.type === "user" && /* @__PURE__ */ jsx(
|
|
11
|
-
notif.type === "system" && /* @__PURE__ */ jsx(
|
|
10
|
+
notif.type === "user" && /* @__PURE__ */ jsx(UserNotificationItem, { notification: notif }),
|
|
11
|
+
notif.type === "system" && /* @__PURE__ */ jsx(SystemNotificationItem, { notification: notif })
|
|
12
12
|
] });
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
NotificationItem as default
|
|
16
16
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import illuEmptyNotification from "@edifice.io/bootstrap/dist/images/emptyscreen/illu-notifications.png";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import SvgIconClose from "../../../icons/components/IconClose.js";
|
|
5
|
-
import
|
|
5
|
+
import NotificationItem from "./NotificationItem.js";
|
|
6
6
|
import NotificationListSkeleton from "./NotificationListSkeleton.js";
|
|
7
7
|
import NotificationSkeleton from "./NotificationSkeleton.js";
|
|
8
8
|
import useInfiniteScroll from "../../../../hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
@@ -31,7 +31,7 @@ const NotificationList = ({
|
|
|
31
31
|
] }),
|
|
32
32
|
(notifications == null ? void 0 : notifications.length) === 0 ? /* @__PURE__ */ jsx("div", { className: "mx-24", children: /* @__PURE__ */ jsx(EmptyScreen, { size: 120, 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
|
-
/* @__PURE__ */ jsx(
|
|
34
|
+
/* @__PURE__ */ jsx(NotificationItem, { notification }),
|
|
35
35
|
/* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
|
|
36
36
|
] }, "notification-list-" + notification._id + "-" + index)) }),
|
|
37
37
|
hasNextPage && /* @__PURE__ */ jsx(NotificationSkeleton, { ref: loadNextRef }),
|
|
@@ -4,7 +4,7 @@ import Flex from "../../../../components/Flex/Flex.js";
|
|
|
4
4
|
import Avatar from "../../../../components/Avatar/Avatar.js";
|
|
5
5
|
import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
|
|
6
6
|
const NotificationSkeleton = /* @__PURE__ */ React.forwardRef((_props, ref) => /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification", gap: "8", ref, children: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
|
|
7
|
-
/* @__PURE__ */ jsx("div", { className: "notification-picture", children: /* @__PURE__ */ jsx(Avatar, { alt: "Notification Picture", variant: "circle", className: "notification-avatar" }) }),
|
|
7
|
+
/* @__PURE__ */ jsx("div", { className: "notification-item-picture", children: /* @__PURE__ */ jsx(Avatar, { alt: "Notification Picture", variant: "circle", className: "notification-item-avatar" }) }),
|
|
8
8
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", className: "notification-message", children: [
|
|
9
9
|
/* @__PURE__ */ jsx(TextSkeleton, {}),
|
|
10
10
|
/* @__PURE__ */ jsx(TextSkeleton, {}),
|
|
@@ -17,8 +17,8 @@ export type NotificationItemProps = {
|
|
|
17
17
|
* notification comes from a user or a system event. Use `UserNotification` or
|
|
18
18
|
* `SystemNotification` instead of consuming this directly.
|
|
19
19
|
*/
|
|
20
|
-
declare const
|
|
20
|
+
declare const CommonNotificationItem: {
|
|
21
21
|
({ picture, message, date, uri, children, }: NotificationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default CommonNotificationItem;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import useDate from "../../../../../hooks/useDate/useDate.js";
|
|
3
|
+
import Flex from "../../../../../components/Flex/Flex.js";
|
|
4
|
+
const CommonNotificationItem = ({
|
|
5
|
+
picture,
|
|
6
|
+
message,
|
|
7
|
+
date,
|
|
8
|
+
uri,
|
|
9
|
+
children
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
formatTimeAgo,
|
|
13
|
+
formatDate
|
|
14
|
+
} = useDate();
|
|
15
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification-item", gap: "8", children: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "8", children: [
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: "notification-item-picture", children: picture }),
|
|
17
|
+
/* @__PURE__ */ jsx("a", { href: uri, "data-testid": "notification-item-content", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", children: [
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "notification-item-message", dangerouslySetInnerHTML: {
|
|
19
|
+
__html: message
|
|
20
|
+
} }),
|
|
21
|
+
children,
|
|
22
|
+
/* @__PURE__ */ jsx("p", { className: "notification-item-date", title: formatDate(date, "LLL"), children: formatTimeAgo(date) })
|
|
23
|
+
] }) })
|
|
24
|
+
] }) });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
CommonNotificationItem as default
|
|
28
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type NotificationItemResourceProps = {
|
|
2
2
|
appCode: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
@@ -8,8 +8,8 @@ export type NotificationResourceProps = {
|
|
|
8
8
|
* falling back to the raw `appCode` if no translation exists.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
({ appCode }:
|
|
11
|
+
declare const NotificationItemResource: {
|
|
12
|
+
({ appCode, }: NotificationItemResourceProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default NotificationItemResource;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import AppIcon from "../../../../../components/AppIcon/AppIcon.js";
|
|
4
|
+
const NotificationItemResource = ({
|
|
5
|
+
appCode
|
|
6
|
+
}) => {
|
|
7
|
+
const {
|
|
8
|
+
t
|
|
9
|
+
} = useTranslation(), appLabel = t(`${appCode}`, {
|
|
10
|
+
defaultValue: appCode
|
|
11
|
+
}), appCssClass = `app-${appCode}`;
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: `notification-item-resource ${appCssClass} bg-app-light`, children: [
|
|
13
|
+
/* @__PURE__ */ jsx("span", { className: "notification-item-resource-icon", children: /* @__PURE__ */ jsx(AppIcon, { app: appCode, size: "24", iconFit: "contain" }) }),
|
|
14
|
+
/* @__PURE__ */ jsx("span", { className: "notification-item-resource-name color-app", children: appLabel })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
NotificationItemResource as default
|
|
19
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SystemWebNotification } from './notificationAdapter';
|
|
2
|
-
export type
|
|
2
|
+
export type SystemNotificationItemProps = {
|
|
3
3
|
notification: SystemWebNotification;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -8,8 +8,8 @@ export type SystemNotificationProps = {
|
|
|
8
8
|
* Wraps `NotificationItem` — prefer using `Notification` at the top level
|
|
9
9
|
* rather than this component directly.
|
|
10
10
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
({ notification }:
|
|
11
|
+
declare const SystemNotificationItem: {
|
|
12
|
+
({ notification, }: SystemNotificationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default SystemNotificationItem;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import CommonNotificationItem from "./CommonNotificationItem.js";
|
|
4
|
+
import AppIcon from "../../../../../components/AppIcon/AppIcon.js";
|
|
5
|
+
const SystemNotificationItem = ({
|
|
6
|
+
notification
|
|
7
|
+
}) => {
|
|
8
|
+
const {
|
|
9
|
+
params,
|
|
10
|
+
message,
|
|
11
|
+
date,
|
|
12
|
+
uri
|
|
13
|
+
} = notification, {
|
|
14
|
+
t
|
|
15
|
+
} = useTranslation(), appName = t(params.appCode);
|
|
16
|
+
return /* @__PURE__ */ jsx(CommonNotificationItem, { uri, message, date, picture: /* @__PURE__ */ jsx("a", { href: uri, title: appName, "data-testid": "notification-item-app-icon", "aria-label": t("homepage.notifications.app-icon.placeholder"), children: /* @__PURE__ */ jsx(AppIcon, { app: params.appCode, size: "24", variant: "square", className: "notification-item-app-icon" }) }) });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
SystemNotificationItem as default
|
|
20
|
+
};
|