@edifice.io/react 2.6.9-develop-b2school.20261013134048 → 2.6.9-develop-pedago.20261013143657
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/Layout/Layout.js +4 -12
- package/dist/components/Layout/components/Header.js +4 -4
- package/dist/components/Layout/components/NavLink.d.ts +3 -3
- package/dist/components/Layout/components/NavLink.js +3 -5
- package/dist/components/index.d.ts +0 -1
- package/dist/homepage.js +0 -10
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +6 -2
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +8 -11
- package/dist/icons.js +402 -404
- package/dist/index.js +136 -138
- package/dist/modules/HelpZone/HelpZone.js +8 -6
- package/dist/modules/HelpZone/HelpZoneContainer.js +5 -2
- package/dist/modules/homepage/components/Header/Header.js +11 -27
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +1 -5
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -1
- package/dist/modules/homepage/components/Notifications/NotificationList.js +5 -5
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +2 -2
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +5 -1
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +12 -10
- package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +9 -3
- package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +12 -6
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +10 -12
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +10 -9
- package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +1 -3
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +7 -13
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +2 -4
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +2 -3
- package/dist/modules/homepage/components/index.d.ts +1 -3
- package/dist/modules/icons/components/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +4 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +2 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +3 -0
- package/package.json +6 -6
- package/dist/components/RadioTile/RadioTile.d.ts +0 -35
- package/dist/components/RadioTile/RadioTile.js +0 -22
- package/dist/components/RadioTile/index.d.ts +0 -2
- package/dist/modules/homepage/components/Agenda/Agenda.d.ts +0 -10
- package/dist/modules/homepage/components/Agenda/Agenda.js +0 -54
- package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +0 -1
- package/dist/modules/homepage/components/Agenda/AgendaContainer.js +0 -14
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +0 -10
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +0 -30
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +0 -14
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +0 -27
- package/dist/modules/homepage/components/Agenda/index.d.ts +0 -3
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +0 -24
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +0 -45
- package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +0 -4
- package/dist/modules/homepage/components/Agenda/services/api/index.js +0 -5
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +0 -19
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +0 -26
- package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +0 -5
- package/dist/modules/homepage/components/Header/MyAppsPopover.js +0 -28
- package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +0 -32
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +0 -16
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +0 -15
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +0 -21
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +0 -47
- package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +0 -2
- package/dist/modules/icons/components/IconAddWidget.d.ts +0 -7
- package/dist/modules/icons/components/IconAddWidget.js +0 -12
package/dist/index.js
CHANGED
|
@@ -53,73 +53,72 @@ import { default as default51, Root } from "./components/PromotionCard/Promotion
|
|
|
53
53
|
import { default as default52 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
54
54
|
import { default as default53 } from "./components/Radio/Radio.js";
|
|
55
55
|
import { default as default54 } from "./components/RadioCard/RadioCard.js";
|
|
56
|
-
import { default as default55 } from "./components/
|
|
57
|
-
import { default as default56 } from "./components/
|
|
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 "./modules/modals/ShareModal/
|
|
62
|
-
import { default as default61 } from "./modules/modals/ShareModal/
|
|
63
|
-
import { default as default62 } from "./
|
|
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 "./components/
|
|
72
|
-
import { default as default71 } from "./components/
|
|
73
|
-
import { default as default72 } from "./
|
|
74
|
-
import { default as default73 } from "./modules/multimedia/
|
|
75
|
-
import { default as default74 } from "./modules/multimedia/
|
|
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 "./modules/multimedia/
|
|
80
|
-
import { default as default79 } from "./
|
|
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/useWorkspaceFolders/
|
|
119
|
-
import {
|
|
120
|
-
import { default as default119 } from "./hooks/
|
|
121
|
-
import { default as default120 } from "./hooks/
|
|
122
|
-
import { default as default121 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
56
|
+
import { default as default55 } from "./components/SearchBar/SearchBar.js";
|
|
57
|
+
import { default as default56 } from "./components/Button/SearchButton.js";
|
|
58
|
+
import { default as default57 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
59
|
+
import { default as default58 } from "./components/Select/Select.js";
|
|
60
|
+
import { default as default59 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
61
|
+
import { default as default60 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
62
|
+
import { default as default61 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
63
|
+
import { default as default62 } from "./components/Tree/components/SortableTree.js";
|
|
64
|
+
import { default as default63 } from "./components/StackedGroup/StackedGroup.js";
|
|
65
|
+
import { default as default64 } from "./components/Stepper/Stepper.js";
|
|
66
|
+
import { default as default65 } from "./components/Switch/Switch.js";
|
|
67
|
+
import { default as default66 } from "./components/Table/components/Table.js";
|
|
68
|
+
import { default as default67 } from "./components/TextArea/TextArea.js";
|
|
69
|
+
import { default as default68 } from "./components/Skeleton/TextSkeleton.js";
|
|
70
|
+
import { default as default69 } from "./components/Tooltip/Tooltip.js";
|
|
71
|
+
import { default as default70 } from "./components/Tree/components/Tree.js";
|
|
72
|
+
import { default as default71 } from "./components/TreeView/TreeView.js";
|
|
73
|
+
import { default as default72 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
74
|
+
import { default as default73 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
75
|
+
import { default as default74 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
76
|
+
import { default as default75 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
77
|
+
import { default as default76 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
78
|
+
import { default as default77 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
79
|
+
import { default as default78 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useBookmark/useBookmark.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useCantoo/useCantoo.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useConversation/useConversation.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useDate/useDate.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useDebounce/useDebounce.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useDirectory/useDirectory.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useDropdown/useDropdown.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useDropzone/useDropzone.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useHover/useHover.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useImage/useImage.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
100
|
+
import { default as default99 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
103
|
+
import { default as default102 } from "./hooks/usePublicConf/usePublicConf.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
105
|
+
import { default as default104 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
106
|
+
import { default as default105 } from "./hooks/useTitle/useTitle.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useToast/useToast.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useToggle/useToggle.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useUiOverride/useUiOverride.js";
|
|
112
|
+
import { default as default111 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useUpload/useUpload.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useUser/useUser.js";
|
|
116
|
+
import { default as default115 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
117
|
+
import { default as default116 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
118
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default117 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
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";
|
|
123
122
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
124
123
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
125
124
|
import { BetaSwitch } from "./components/BetaSwitch/BetaSwitch.js";
|
|
@@ -155,7 +154,7 @@ import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-
|
|
|
155
154
|
import { getRotateTransitionStyle } from "./utilities/rotate-transition-style/get-rotate-transition-style.js";
|
|
156
155
|
import { invalidateQueriesWithFirstPage } from "./utilities/react-query/react-query-utils.js";
|
|
157
156
|
import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
158
|
-
import { default as
|
|
157
|
+
import { default as default121 } from "./hooks/useBackground/useBackground.js";
|
|
159
158
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
160
159
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
161
160
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
@@ -164,7 +163,7 @@ import { useOverlay } from "./components/PageLayout/hook/useOverlay.js";
|
|
|
164
163
|
import { useScreeb } from "./hooks/useScreeb/useScreeb.js";
|
|
165
164
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
166
165
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
167
|
-
import { default as
|
|
166
|
+
import { default as default122 } from "./hooks/useUserPreferences/useUserPreferences.js";
|
|
168
167
|
export {
|
|
169
168
|
AccessiblePalette,
|
|
170
169
|
default2 as ActionBar,
|
|
@@ -245,43 +244,42 @@ export {
|
|
|
245
244
|
default52 as PublishModal,
|
|
246
245
|
default53 as Radio,
|
|
247
246
|
default54 as RadioCard,
|
|
248
|
-
default55 as RadioTile,
|
|
249
247
|
ResourceModal,
|
|
250
248
|
Root,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
249
|
+
default55 as SearchBar,
|
|
250
|
+
default56 as SearchButton,
|
|
251
|
+
default57 as SegmentedControl,
|
|
252
|
+
default58 as Select,
|
|
253
|
+
default59 as ShareBlog,
|
|
254
|
+
default60 as ShareModal,
|
|
255
|
+
default61 as ShareResources,
|
|
256
|
+
default62 as SortableTree,
|
|
257
|
+
default63 as StackedGroup,
|
|
258
|
+
default64 as Stepper,
|
|
259
|
+
default65 as Switch,
|
|
260
|
+
default66 as Table,
|
|
263
261
|
Tabs,
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
default67 as TextArea,
|
|
263
|
+
default68 as TextSkeleton,
|
|
266
264
|
Toolbar,
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
default69 as Tooltip,
|
|
266
|
+
default70 as Tree,
|
|
269
267
|
TreeNode,
|
|
270
268
|
TreeNodeFolderWrapper,
|
|
271
|
-
|
|
269
|
+
default71 as TreeView,
|
|
272
270
|
Upload,
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
default72 as UploadCard,
|
|
272
|
+
default73 as UploadFiles,
|
|
275
273
|
UserRightsList,
|
|
276
274
|
UserSearch,
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
default74 as VideoEmbed,
|
|
276
|
+
default75 as VideoRecorder,
|
|
279
277
|
VisibleType,
|
|
280
|
-
|
|
278
|
+
default76 as VisuallyHidden,
|
|
281
279
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
282
280
|
WORKSPACE_USER_FOLDER_ID,
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
default77 as Workspace,
|
|
282
|
+
default78 as WorkspaceFolders,
|
|
285
283
|
addNode,
|
|
286
284
|
arrayUnique,
|
|
287
285
|
buildTree,
|
|
@@ -312,59 +310,59 @@ export {
|
|
|
312
310
|
setRef,
|
|
313
311
|
updateNode,
|
|
314
312
|
updateParentIds,
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
313
|
+
default121 as useBackground,
|
|
314
|
+
default79 as useBookmark,
|
|
315
|
+
default80 as useBreakpoint,
|
|
316
|
+
default81 as useBrowserInfo,
|
|
317
|
+
default82 as useCantoo,
|
|
320
318
|
useCheckable,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
319
|
+
default83 as useClickOutside,
|
|
320
|
+
default84 as useConversation,
|
|
321
|
+
default85 as useDate,
|
|
322
|
+
default86 as useDebounce,
|
|
323
|
+
default87 as useDirectory,
|
|
324
|
+
default88 as useDropdown,
|
|
325
|
+
default89 as useDropzone,
|
|
328
326
|
useDropzoneContext,
|
|
329
327
|
useEdificeClient,
|
|
330
|
-
|
|
328
|
+
default90 as useEdificeIcons,
|
|
331
329
|
useEdificeTheme,
|
|
332
330
|
useFileToAttachment,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
331
|
+
default91 as useHasWorkflow,
|
|
332
|
+
default92 as useHover,
|
|
333
|
+
default93 as useHttpErrorToast,
|
|
334
|
+
default94 as useImage,
|
|
335
|
+
default95 as useInfiniteScroll,
|
|
336
|
+
default96 as useIsAdmc,
|
|
337
|
+
default97 as useIsAdml,
|
|
338
|
+
default98 as useIsAdmlcOrAdmc,
|
|
339
|
+
default99 as useKeyPress,
|
|
340
|
+
default100 as useLibraryUrl,
|
|
341
|
+
default101 as useMediaLibrary,
|
|
344
342
|
useOverlay,
|
|
345
343
|
usePageLayout,
|
|
346
|
-
|
|
344
|
+
default102 as usePublicConf,
|
|
347
345
|
useScreeb,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
346
|
+
default103 as useScrollToTop,
|
|
347
|
+
default104 as useShareMutation,
|
|
348
|
+
default105 as useTitle,
|
|
349
|
+
default106 as useToast,
|
|
350
|
+
default107 as useToggle,
|
|
351
|
+
default108 as useTrapFocus,
|
|
352
|
+
default109 as useTrashedResource,
|
|
355
353
|
useTreeSortable,
|
|
356
354
|
useTreeView,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
355
|
+
default110 as useUiOverride,
|
|
356
|
+
default111 as useUpdateMutation,
|
|
357
|
+
default112 as useUpload,
|
|
358
|
+
default113 as useUploadFiles,
|
|
359
|
+
default114 as useUser,
|
|
360
|
+
default122 as useUserPreferences,
|
|
361
|
+
default115 as useWorkspaceFile,
|
|
362
|
+
default116 as useWorkspaceFolders,
|
|
363
|
+
default117 as useWorkspaceFoldersTree,
|
|
364
|
+
default118 as useWorkspaceSearch,
|
|
365
|
+
default119 as useXitiTrackPageLoad,
|
|
366
|
+
default120 as useZendeskGuide,
|
|
369
367
|
wrapTreeNode
|
|
370
368
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
2
|
+
import { useState, useRef, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
@@ -16,20 +16,22 @@ const HelpZone = ({
|
|
|
16
16
|
}) => {
|
|
17
17
|
const {
|
|
18
18
|
t
|
|
19
|
-
} = useTranslation(), [portalRoot, setPortalRoot] = useState(null), [isCompact, setIsCompact] = useState(!1);
|
|
19
|
+
} = useTranslation(), [portalRoot, setPortalRoot] = useState(null), [isCompact, setIsCompact] = useState(!1), questionButtonRef = useRef(null);
|
|
20
20
|
if (useEffect(() => (document.body.classList.add("help-zone-active"), setPortalRoot(document.getElementById("portal")), () => {
|
|
21
21
|
document.body.classList.remove("help-zone-active");
|
|
22
22
|
}), []), useEffect(() => {
|
|
23
23
|
if (isCompact)
|
|
24
24
|
return;
|
|
25
|
-
const goCompact = () => setIsCompact(!0)
|
|
25
|
+
const goCompact = () => setIsCompact(!0), handleClick = (event) => {
|
|
26
|
+
questionButtonRef.current && event.target instanceof Node && questionButtonRef.current.contains(event.target) || goCompact();
|
|
27
|
+
};
|
|
26
28
|
return document.addEventListener("scroll", goCompact, {
|
|
27
29
|
capture: !0,
|
|
28
30
|
passive: !0
|
|
29
|
-
}), () => {
|
|
31
|
+
}), document.addEventListener("click", handleClick), () => {
|
|
30
32
|
document.removeEventListener("scroll", goCompact, {
|
|
31
33
|
capture: !0
|
|
32
|
-
});
|
|
34
|
+
}), document.removeEventListener("click", handleClick);
|
|
33
35
|
};
|
|
34
36
|
}, [isCompact]), !isReady || !portalRoot)
|
|
35
37
|
return null;
|
|
@@ -42,7 +44,7 @@ const HelpZone = ({
|
|
|
42
44
|
"help-zone-logo--full": !isCompact
|
|
43
45
|
}), children: isCompact ? /* @__PURE__ */ jsx(SvgIconLogoEdificeSmall, { width: 18, height: 18 }) : /* @__PURE__ */ jsx(SvgIconLogoEdificeFull, { width: 81, height: 18 }) }) }) }),
|
|
44
46
|
/* @__PURE__ */ jsx("span", { className: "help-zone-divider" }),
|
|
45
|
-
/* @__PURE__ */ jsx(ButtonBeta, { className: "help-zone-question", "aria-label": t("help-zone.support.open"), color: "tertiary", variant: "ghost", onClick: handleOpenHelpZone, children: /* @__PURE__ */ jsx(Tooltip, { message: t("help-zone.support.open"), placement: "top", children: /* @__PURE__ */ jsx(SvgIconQuestion, { width: 24, height: 24, color: "white" }) }) })
|
|
47
|
+
/* @__PURE__ */ jsx(ButtonBeta, { ref: questionButtonRef, className: "help-zone-question", "aria-label": t("help-zone.support.open"), color: "tertiary", variant: "ghost", onClick: handleOpenHelpZone, children: /* @__PURE__ */ jsx(Tooltip, { message: t("help-zone.support.open"), placement: "top", children: /* @__PURE__ */ jsx(SvgIconQuestion, { width: 24, height: 24, color: "white" }) }) })
|
|
46
48
|
] }), portalRoot);
|
|
47
49
|
};
|
|
48
50
|
export {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import HelpZone from "./HelpZone.js";
|
|
3
3
|
import useZendeskGuide from "../../hooks/useZendeskGuide/useZendeskGuide.js";
|
|
4
|
+
function getHeaderColor() {
|
|
5
|
+
return getComputedStyle(document.documentElement).getPropertyValue("--primitive-blue-400").trim();
|
|
6
|
+
}
|
|
4
7
|
function HelpZoneContainer() {
|
|
5
|
-
const {
|
|
8
|
+
const headerColor = getHeaderColor(), {
|
|
6
9
|
isReady,
|
|
7
10
|
isOpen,
|
|
8
11
|
open,
|
|
9
12
|
close
|
|
10
|
-
} = useZendeskGuide();
|
|
13
|
+
} = useZendeskGuide(headerColor);
|
|
11
14
|
return /* @__PURE__ */ jsx(HelpZone, { isReady, isOpen, onOpen: open, onClose: close });
|
|
12
15
|
}
|
|
13
16
|
export {
|
|
@@ -2,8 +2,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useId } from "react";
|
|
5
|
-
import { MyAppsPopoverBody, MyAppsPopoverFooter } from "./MyAppsPopover.js";
|
|
6
|
-
import { useSafeHoverPopover } from "./useSafeHoverPopover.js";
|
|
7
5
|
import { Navbar } from "../../../../components/Layout/components/Navbar.js";
|
|
8
6
|
import { NavItem } from "../../../../components/Layout/components/NavItem.js";
|
|
9
7
|
import { NavLink } from "../../../../components/Layout/components/NavLink.js";
|
|
@@ -20,13 +18,13 @@ import useConversation from "../../../../hooks/useConversation/useConversation.j
|
|
|
20
18
|
import useUser from "../../../../hooks/useUser/useUser.js";
|
|
21
19
|
import useHasWorkflow from "../../../../hooks/useHasWorkflow/useHasWorkflow.js";
|
|
22
20
|
import { useEdificeTheme } from "../../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
23
|
-
import
|
|
21
|
+
import useHover from "../../../../hooks/useHover/useHover.js";
|
|
24
22
|
import LogoBeta from "../../../../components/LogoBeta/LogoBeta.js";
|
|
25
23
|
import Badge from "../../../../components/Badge/Badge.js";
|
|
26
24
|
import VisuallyHidden from "../../../../components/VisuallyHidden/VisuallyHidden.js";
|
|
27
25
|
import ButtonBeta from "../../../../components/ButtonBeta/ButtonBeta.js";
|
|
28
26
|
import Avatar from "../../../../components/Avatar/Avatar.js";
|
|
29
|
-
import { Popover, PopoverBody
|
|
27
|
+
import { Popover, PopoverBody } from "../../../../components/Popover/Popover.js";
|
|
30
28
|
const Header = ({
|
|
31
29
|
src = "",
|
|
32
30
|
onNotificationsClick,
|
|
@@ -43,21 +41,13 @@ const Header = ({
|
|
|
43
41
|
userAvatar,
|
|
44
42
|
userName,
|
|
45
43
|
communitiesWorkflow,
|
|
46
|
-
conversationWorflow
|
|
47
|
-
bookmarkedApps
|
|
44
|
+
conversationWorflow
|
|
48
45
|
} = useHeader({
|
|
49
46
|
user,
|
|
50
47
|
avatar
|
|
51
48
|
}), {
|
|
52
49
|
theme
|
|
53
|
-
} = useEdificeTheme(), hasMessages = messages > 0, hasNotificationToday = useHasNotificationToday(),
|
|
54
|
-
lg: isDesktop
|
|
55
|
-
} = useBreakpoint(), myApps = useSafeHoverPopover({
|
|
56
|
-
hoverEnabled: isDesktop,
|
|
57
|
-
clickEnabled: !isDesktop
|
|
58
|
-
}), userMenu = useSafeHoverPopover(), handleMyAppsClick = (event) => {
|
|
59
|
-
isDesktop || event.preventDefault();
|
|
60
|
-
}, handleNotificationsClick = () => {
|
|
50
|
+
} = useEdificeTheme(), hasMessages = messages > 0, hasNotificationToday = useHasNotificationToday(), [userRef, isUserHovered] = useHover(), popoverUserId = useId(), handleNotificationsClick = () => {
|
|
61
51
|
onNotificationsClick == null || onNotificationsClick();
|
|
62
52
|
};
|
|
63
53
|
return /* @__PURE__ */ jsx("header", { className: classes, "data-product": dataProduct, children: /* @__PURE__ */ jsxs(Navbar, { className: "px-24", children: [
|
|
@@ -76,15 +66,7 @@ const Header = ({
|
|
|
76
66
|
/* @__PURE__ */ jsx(SvgIconMessagesBeta, {}),
|
|
77
67
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: t("conversation") })
|
|
78
68
|
] }) }),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */ jsx(NavLink, { ref: myApps.setReference, link: "/welcome", translate: t("navbar.applications"), id: popoverAppsId, "aria-haspopup": "true", "aria-expanded": myApps.open, "data-testid": "header-my-apps-button", ...myApps.getReferenceProps({
|
|
81
|
-
onClick: handleMyAppsClick
|
|
82
|
-
}), children: /* @__PURE__ */ jsx(SvgIconMyAppsBeta, {}) }),
|
|
83
|
-
/* @__PURE__ */ jsxs(Popover, { ref: myApps.setFloating, className: "my-apps-popover", id: popoverAppsId, isVisible: myApps.open, ...myApps.getFloatingProps(), children: [
|
|
84
|
-
/* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsx(MyAppsPopoverBody, { bookmarkedApps }) }),
|
|
85
|
-
/* @__PURE__ */ jsx(PopoverFooter, { className: "d-flex justify-content-center", children: /* @__PURE__ */ jsx(MyAppsPopoverFooter, {}) })
|
|
86
|
-
] })
|
|
87
|
-
] }),
|
|
69
|
+
/* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(NavLink, { link: "/welcome", translate: t("navbar.applications"), "data-testid": "header-my-apps-button", children: /* @__PURE__ */ jsx(SvgIconMyAppsBeta, {}) }) }),
|
|
88
70
|
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", children: [
|
|
89
71
|
/* @__PURE__ */ jsx(ButtonBeta, { leftIcon: /* @__PURE__ */ jsx(SvgIconNotificationBeta, {}), variant: "ghost", onClick: handleNotificationsClick }),
|
|
90
72
|
hasNotificationToday && /* @__PURE__ */ jsx("span", { style: {
|
|
@@ -99,11 +81,13 @@ const Header = ({
|
|
|
99
81
|
pointerEvents: "none",
|
|
100
82
|
zIndex: 1,
|
|
101
83
|
display: "block"
|
|
102
|
-
}, "aria-label": t("homepage.notifications.new-badge"
|
|
84
|
+
}, "aria-label": t("homepage.notifications.new-badge", {
|
|
85
|
+
defaultValue: "Nouvelle notification"
|
|
86
|
+
}) })
|
|
103
87
|
] }),
|
|
104
|
-
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", children: [
|
|
105
|
-
/* @__PURE__ */ jsx(NavLink, {
|
|
106
|
-
/* @__PURE__ */ jsx(Popover, {
|
|
88
|
+
/* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: userRef, id: popoverUserId, "aria-haspopup": "true", "aria-expanded": isUserHovered, "data-testid": "header-user-menu-button", children: [
|
|
89
|
+
/* @__PURE__ */ jsx(NavLink, { link: "/userbook/mon-compte", translate: t("navbar.myaccount"), "data-testid": "header-user-profile-button", children: /* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }) }),
|
|
90
|
+
/* @__PURE__ */ jsx(Popover, { align: "end", className: "widget", id: popoverUserId, isVisible: isUserHovered, children: /* @__PURE__ */ jsxs(PopoverBody, { children: [
|
|
107
91
|
/* @__PURE__ */ jsxs("a", { href: "/timeline/customize?callback=" + encodeURIComponent(`${window.location.pathname}${window.location.search}`), className: "nav-link customize d-flex align-items-center gap-8", "data-testid": "header-customize-button", children: [
|
|
108
92
|
/* @__PURE__ */ jsx(SvgIconSetBackground, { className: "icon" }),
|
|
109
93
|
/* @__PURE__ */ jsx("span", { id: "cutomize-label", className: "nav-text", children: t("navbar.customize") })
|
|
@@ -3,11 +3,7 @@ import { ButtonBeta } from '../../../../components';
|
|
|
3
3
|
export interface HomeCardHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
4
4
|
/** Title displayed on the left side of the header. */
|
|
5
5
|
title: ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* Label of the action button displayed on the right side of the header.
|
|
8
|
-
* Can be omitted for an icon-only button — pass `aria-label` via
|
|
9
|
-
* `actionProps` in that case.
|
|
10
|
-
*/
|
|
6
|
+
/** Label of the action button displayed on the right side of the header. */
|
|
11
7
|
actionLabel?: ReactNode;
|
|
12
8
|
/** Callback invoked when the action button is clicked. */
|
|
13
9
|
onActionClick?: MouseEventHandler<HTMLButtonElement>;
|
|
@@ -12,7 +12,7 @@ const HomeCardHeader = ({
|
|
|
12
12
|
className,
|
|
13
13
|
...rest
|
|
14
14
|
}) => {
|
|
15
|
-
const hasAction = !!
|
|
15
|
+
const hasAction = !!actionLabel && !!onActionClick;
|
|
16
16
|
return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", gap: "8", wrap: "wrap", className: clsx("home-card-header", className), ...rest, children: [
|
|
17
17
|
/* @__PURE__ */ jsx("h3", { className: "home-card-header-title", children: title }),
|
|
18
18
|
hasAction && /* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", size: "sm", variant: "ghost", onClick: onActionClick, className: "home-card-header-action", leftIcon: actionLeftIcon, rightIcon: actionRightIcon, "data-testid": "home-card-header-action", ...actionProps, children: actionLabel })
|
|
@@ -47,7 +47,7 @@ const MessageFlash = ({
|
|
|
47
47
|
}), title: t("close.message", {
|
|
48
48
|
title: message.title
|
|
49
49
|
}) }),
|
|
50
|
-
/* @__PURE__ */ jsx("div", { className: "message-flash-icon", role: "img", "aria-label": message.color === "red" ? t("
|
|
50
|
+
/* @__PURE__ */ jsx("div", { className: "message-flash-icon", role: "img", "aria-label": message.color === "red" ? t("warning") : t("information"), children: message.color && message.color === "red" ? /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}) : /* @__PURE__ */ jsx(SvgIconInfoCircle, {}) }),
|
|
51
51
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", className: "w-100 message-flash-body", children: [
|
|
52
52
|
/* @__PURE__ */ jsx(Card.Title, { children: message.title }),
|
|
53
53
|
/* @__PURE__ */ jsx("div", { ref: contentRef, className: classesContent, dangerouslySetInnerHTML: {
|
|
@@ -14,7 +14,7 @@ import Divider from "../../../../components/Divider/Divider.js";
|
|
|
14
14
|
const NotificationList = ({
|
|
15
15
|
notifications,
|
|
16
16
|
notificationTypes,
|
|
17
|
-
selectedTypes
|
|
17
|
+
selectedTypes,
|
|
18
18
|
onFilterChange,
|
|
19
19
|
onCloseNotifications,
|
|
20
20
|
onLoadNextPage,
|
|
@@ -25,19 +25,19 @@ const NotificationList = ({
|
|
|
25
25
|
t
|
|
26
26
|
} = useTranslation(), loadNextRef = useInfiniteScroll({
|
|
27
27
|
callback: () => onLoadNextPage == null ? void 0 : onLoadNextPage()
|
|
28
|
-
}),
|
|
28
|
+
}), handleCloseClick = () => {
|
|
29
29
|
onCloseNotifications && onCloseNotifications();
|
|
30
30
|
};
|
|
31
31
|
return /* @__PURE__ */ jsx("section", { role: "region", className: "notification-list", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
|
|
32
32
|
/* @__PURE__ */ jsxs(Flex, { justify: "between", align: "center", wrap: "nowrap", className: "py-16 ps-24 pe-8", children: [
|
|
33
33
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "8", className: "notification-list-title", children: [
|
|
34
34
|
/* @__PURE__ */ jsx("h4", { className: "text-truncate", children: t("homepage.notifications-list.title") }),
|
|
35
|
-
notificationTypes && notificationTypes.length > 0 && /* @__PURE__ */ jsx(NotificationFilterMenu, { notificationTypes, selectedTypes, onFilterChange:
|
|
35
|
+
notificationTypes && notificationTypes.length > 0 && /* @__PURE__ */ jsx(NotificationFilterMenu, { notificationTypes, selectedTypes: selectedTypes ?? notificationTypes, onFilterChange: (types) => onFilterChange == null ? void 0 : onFilterChange(types) })
|
|
36
36
|
] }),
|
|
37
37
|
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" })
|
|
38
38
|
] }),
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ jsx("ul", { children: notifications.map((notification, index) => /* @__PURE__ */ jsxs("li", { children: [
|
|
39
|
+
(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: [
|
|
40
|
+
/* @__PURE__ */ jsx("ul", { children: notifications == null ? void 0 : notifications.map((notification, index) => /* @__PURE__ */ jsxs("li", { children: [
|
|
41
41
|
/* @__PURE__ */ jsx(NotificationItem, { notification }),
|
|
42
42
|
/* @__PURE__ */ jsx(Divider, { className: "border-grey-300 my-0" })
|
|
43
43
|
] }, "notification-list-" + notification._id + "-" + index)) }),
|
|
@@ -3,9 +3,9 @@ import React from "react";
|
|
|
3
3
|
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
|
-
const NotificationSkeleton = /* @__PURE__ */ React.forwardRef((_props, ref) => /* @__PURE__ */ jsx(Flex, { direction: "column", className: "notification
|
|
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
7
|
/* @__PURE__ */ jsx("div", { className: "notification-item-picture", children: /* @__PURE__ */ jsx(Avatar, { alt: "Notification Picture", variant: "circle", className: "notification-item-avatar" }) }),
|
|
8
|
-
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", className: "notification-
|
|
8
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "8", className: "notification-message", children: [
|
|
9
9
|
/* @__PURE__ */ jsx(TextSkeleton, {}),
|
|
10
10
|
/* @__PURE__ */ jsx(TextSkeleton, {}),
|
|
11
11
|
/* @__PURE__ */ jsx("div", { className: "placeholder col-4", style: {
|
|
@@ -16,7 +16,11 @@ const NotificationFilterMenu = ({
|
|
|
16
16
|
onFilterChange(types), setIsOpen(!1);
|
|
17
17
|
};
|
|
18
18
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ jsx(ButtonBeta, { type: "button", color: "secondary", variant: "outline", size: "md", leftIcon: /* @__PURE__ */ jsx(SvgIconFilter, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, {}), "aria-label": t("homepage.notifications.filter-modal.trigger"
|
|
19
|
+
/* @__PURE__ */ jsx(ButtonBeta, { type: "button", color: "secondary", variant: "outline", size: "md", leftIcon: /* @__PURE__ */ jsx(SvgIconFilter, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, {}), "aria-label": t("homepage.notifications.filter-modal.trigger", {
|
|
20
|
+
defaultValue: "Filtrer les notifications"
|
|
21
|
+
}), title: t("homepage.notifications.filter-modal.trigger", {
|
|
22
|
+
defaultValue: "Filtrer les notifications"
|
|
23
|
+
}), onClick: () => setIsOpen(!0), "data-testid": "notification-filter-button" }),
|
|
20
24
|
isOpen && /* @__PURE__ */ jsx(NotificationFilterModal, { isOpen, allTypes: notificationTypes, appliedTypes: selectedTypes, onCancel: () => setIsOpen(!1), onApply: handleApply })
|
|
21
25
|
] });
|
|
22
26
|
};
|