@edifice.io/react 2.5.16-develop.20260409114238 → 2.5.16-epic-homepage.20260420172152
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/Logo/index.d.ts +1 -1
- package/dist/components/LogoBeta/LogoBeta.d.ts +7 -0
- package/dist/components/LogoBeta/LogoBeta.js +14 -0
- package/dist/components/LogoBeta/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/homepage.js +6 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/icons-nav.js +38 -28
- package/dist/index.js +148 -146
- package/dist/modules/homepage/components/Header/Header.d.ts +8 -0
- package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +33 -0
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +4 -0
- package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +8 -0
- package/dist/modules/homepage/components/LastInfos/index.d.ts +4 -0
- package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +17 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +60 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +10 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +5 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +14 -0
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +16 -0
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +19 -0
- package/dist/modules/homepage/components/MessageFlashList/index.d.ts +4 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.js +5 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +20 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +21 -0
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +13 -0
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +31 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +15 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +4 -0
- package/dist/modules/homepage/components/SchoolSpace/index.d.ts +3 -0
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +6 -0
- package/dist/modules/homepage/components/index.d.ts +1 -0
- package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +5 -0
- package/dist/modules/homepage/index.d.ts +1 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +18 -0
- package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconHomeBeta.js +13 -0
- package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +18 -0
- package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +13 -0
- package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +14 -0
- package/dist/modules/icons/components/nav/IconNotificationsBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/index.d.ts +5 -0
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +0 -7
- package/package.json +10 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
const LogoBeta = /* @__PURE__ */ forwardRef(({
|
|
5
|
+
src,
|
|
6
|
+
is1d,
|
|
7
|
+
translate = "Retour accueil"
|
|
8
|
+
}, ref) => {
|
|
9
|
+
const classes = clsx("navbar-brand");
|
|
10
|
+
return /* @__PURE__ */ jsx("a", { ref, className: classes, href: "/timeline/timeline", "aria-label": translate, children: /* @__PURE__ */ jsx("img", { className: "logo", src, alt: `logo ${is1d ? "ONE" : "NEO"}`, width: "300", height: "52" }) });
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
LogoBeta as default
|
|
14
|
+
};
|
package/dist/homepage.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as default2 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
2
|
+
import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
|
|
3
|
+
export {
|
|
4
|
+
default2 as MessageFlashList,
|
|
5
|
+
MessageFlashListContainer
|
|
6
|
+
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export * from './useHover';
|
|
|
16
16
|
export * from './useHttpErrorToast';
|
|
17
17
|
export * from './useImage';
|
|
18
18
|
export * from './useInfiniteScroll';
|
|
19
|
-
export * from './useIsAdml';
|
|
20
19
|
export * from './useIsAdmc';
|
|
20
|
+
export * from './useIsAdml';
|
|
21
21
|
export * from './useIsAdmlcOrAdmc';
|
|
22
22
|
export * from './useKeyPress';
|
|
23
23
|
export * from './useLibraryUrl';
|
package/dist/icons-nav.js
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/icons/components/nav/
|
|
2
|
-
import { default as default3 } from "./modules/icons/components/nav/
|
|
3
|
-
import { default as default4 } from "./modules/icons/components/nav/
|
|
4
|
-
import { default as default5 } from "./modules/icons/components/nav/
|
|
5
|
-
import { default as default6 } from "./modules/icons/components/nav/
|
|
6
|
-
import { default as default7 } from "./modules/icons/components/nav/
|
|
7
|
-
import { default as default8 } from "./modules/icons/components/nav/
|
|
8
|
-
import { default as default9 } from "./modules/icons/components/nav/
|
|
9
|
-
import { default as default10 } from "./modules/icons/components/nav/
|
|
10
|
-
import { default as default11 } from "./modules/icons/components/nav/
|
|
11
|
-
import { default as default12 } from "./modules/icons/components/nav/
|
|
12
|
-
import { default as default13 } from "./modules/icons/components/nav/
|
|
13
|
-
import { default as default14 } from "./modules/icons/components/nav/
|
|
14
|
-
import { default as default15 } from "./modules/icons/components/nav/
|
|
1
|
+
import { default as default2 } from "./modules/icons/components/nav/IconCommunitiesBeta.js";
|
|
2
|
+
import { default as default3 } from "./modules/icons/components/nav/IconCommunities.js";
|
|
3
|
+
import { default as default4 } from "./modules/icons/components/nav/IconCommunity.js";
|
|
4
|
+
import { default as default5 } from "./modules/icons/components/nav/IconDisconnect.js";
|
|
5
|
+
import { default as default6 } from "./modules/icons/components/nav/IconHomeBeta.js";
|
|
6
|
+
import { default as default7 } from "./modules/icons/components/nav/IconHome.js";
|
|
7
|
+
import { default as default8 } from "./modules/icons/components/nav/IconMessagesBeta.js";
|
|
8
|
+
import { default as default9 } from "./modules/icons/components/nav/IconMyAppsBeta.js";
|
|
9
|
+
import { default as default10 } from "./modules/icons/components/nav/IconMyApps.js";
|
|
10
|
+
import { default as default11 } from "./modules/icons/components/nav/IconNeoAssistance.js";
|
|
11
|
+
import { default as default12 } from "./modules/icons/components/nav/IconNeoMessaging.js";
|
|
12
|
+
import { default as default13 } from "./modules/icons/components/nav/IconNewRelease.js";
|
|
13
|
+
import { default as default14 } from "./modules/icons/components/nav/IconNotificationBeta.js";
|
|
14
|
+
import { default as default15 } from "./modules/icons/components/nav/IconOneAssistance.js";
|
|
15
|
+
import { default as default16 } from "./modules/icons/components/nav/IconOneMessaging.js";
|
|
16
|
+
import { default as default17 } from "./modules/icons/components/nav/IconOneProfile.js";
|
|
17
|
+
import { default as default18 } from "./modules/icons/components/nav/IconProfile.js";
|
|
18
|
+
import { default as default19 } from "./modules/icons/components/nav/IconSearch.js";
|
|
19
|
+
import { default as default20 } from "./modules/icons/components/nav/IconUserbook.js";
|
|
15
20
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
default4 as
|
|
19
|
-
default5 as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
default8 as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
default11 as
|
|
26
|
-
default12 as
|
|
27
|
-
default13 as
|
|
28
|
-
default14 as
|
|
29
|
-
default15 as
|
|
21
|
+
default3 as IconCommunities,
|
|
22
|
+
default2 as IconCommunitiesBeta,
|
|
23
|
+
default4 as IconCommunity,
|
|
24
|
+
default5 as IconDisconnect,
|
|
25
|
+
default7 as IconHome,
|
|
26
|
+
default6 as IconHomeBeta,
|
|
27
|
+
default8 as IconMessagesBeta,
|
|
28
|
+
default10 as IconMyApps,
|
|
29
|
+
default9 as IconMyAppsBeta,
|
|
30
|
+
default11 as IconNeoAssistance,
|
|
31
|
+
default12 as IconNeoMessaging,
|
|
32
|
+
default13 as IconNewRelease,
|
|
33
|
+
default14 as IconNotificationBeta,
|
|
34
|
+
default15 as IconOneAssistance,
|
|
35
|
+
default16 as IconOneMessaging,
|
|
36
|
+
default17 as IconOneProfile,
|
|
37
|
+
default18 as IconProfile,
|
|
38
|
+
default19 as IconSearch,
|
|
39
|
+
default20 as IconUserbook
|
|
30
40
|
};
|
package/dist/index.js
CHANGED
|
@@ -39,79 +39,80 @@ import { default as default37 } from "./components/Label/Label.js";
|
|
|
39
39
|
import { default as default38 } from "./components/Loading/Loading.js";
|
|
40
40
|
import { default as default39 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
41
41
|
import { default as default40 } from "./components/Logo/Logo.js";
|
|
42
|
-
import { default as default41 } from "./
|
|
43
|
-
import { default as default42 } from "./
|
|
44
|
-
import { default as default43 } from "./components/
|
|
45
|
-
import { default as default44 } from "./
|
|
46
|
-
import { default as default45 } from "./
|
|
47
|
-
import { default as default46
|
|
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 "./components/
|
|
52
|
-
import { default as default51 } from "./components/
|
|
53
|
-
import { default as default52 } from "./components/
|
|
54
|
-
import { default as default53 } from "./components/
|
|
55
|
-
import { default as default54 } from "./
|
|
56
|
-
import { default as default55 } from "./modules/modals/ShareModal/
|
|
57
|
-
import { default as default56 } from "./modules/modals/ShareModal/
|
|
58
|
-
import { default as default57 } from "./
|
|
59
|
-
import { default as default58 } from "./components/
|
|
60
|
-
import { default as default59 } from "./components/
|
|
61
|
-
import { default as default60 } from "./components/
|
|
62
|
-
import { default as default61 } from "./components/
|
|
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 "./
|
|
69
|
-
import { default as default68 } from "./modules/multimedia/
|
|
70
|
-
import { default as default69 } from "./modules/multimedia/
|
|
71
|
-
import { default as default70 } from "./modules/multimedia/
|
|
72
|
-
import { default as default71 } from "./
|
|
73
|
-
import { default as default72 } from "./
|
|
74
|
-
import { default as default73 } from "./modules/multimedia/
|
|
75
|
-
import { default as default74 } from "./
|
|
76
|
-
import { default as default75 } from "./hooks/
|
|
77
|
-
import { default as default76 } from "./hooks/
|
|
78
|
-
import { default as default77 } from "./hooks/
|
|
79
|
-
import { default as default78 } from "./hooks/
|
|
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 "./
|
|
100
|
-
import { default as default99 } from "./hooks/
|
|
101
|
-
import { default as default100 } from "./hooks/
|
|
102
|
-
import { default as default101 } from "./hooks/
|
|
103
|
-
import { default as default102 } from "./hooks/
|
|
104
|
-
import { default as default103 } from "./hooks/
|
|
105
|
-
import { default as default104 } from "./
|
|
106
|
-
import { default as default105 } from "./hooks/
|
|
107
|
-
import { default as default106 } from "./hooks/
|
|
108
|
-
import { default as default107 } from "./hooks/
|
|
109
|
-
import { default as default108 } from "./hooks/
|
|
110
|
-
import { default as default109 } from "./hooks/
|
|
111
|
-
import {
|
|
112
|
-
import { default as default111 } from "./hooks/
|
|
113
|
-
import { default as default112 } from "./hooks/
|
|
114
|
-
import { default as default113 } from "./hooks/
|
|
42
|
+
import { default as default41 } from "./components/LogoBeta/LogoBeta.js";
|
|
43
|
+
import { default as default42 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
44
|
+
import { default as default43 } from "./components/MediaViewer/MediaViewer.js";
|
|
45
|
+
import { default as default44 } from "./components/Modal/Modal.js";
|
|
46
|
+
import { default as default45 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
47
|
+
import { default as default46 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
48
|
+
import { default as default47, Root } from "./components/PromotionCard/PromotionCard.js";
|
|
49
|
+
import { default as default48 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
50
|
+
import { default as default49 } from "./components/Radio/Radio.js";
|
|
51
|
+
import { default as default50 } from "./components/RadioCard/RadioCard.js";
|
|
52
|
+
import { default as default51 } from "./components/SearchBar/SearchBar.js";
|
|
53
|
+
import { default as default52 } from "./components/Button/SearchButton.js";
|
|
54
|
+
import { default as default53 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
55
|
+
import { default as default54 } from "./components/Select/Select.js";
|
|
56
|
+
import { default as default55 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
57
|
+
import { default as default56 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
58
|
+
import { default as default57 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
59
|
+
import { default as default58 } from "./components/Tree/components/SortableTree.js";
|
|
60
|
+
import { default as default59 } from "./components/StackedGroup/StackedGroup.js";
|
|
61
|
+
import { default as default60 } from "./components/Stepper/Stepper.js";
|
|
62
|
+
import { default as default61 } from "./components/Switch/Switch.js";
|
|
63
|
+
import { default as default62 } from "./components/Table/components/Table.js";
|
|
64
|
+
import { default as default63 } from "./components/TextArea/TextArea.js";
|
|
65
|
+
import { default as default64 } from "./components/Skeleton/TextSkeleton.js";
|
|
66
|
+
import { default as default65 } from "./components/Tooltip/Tooltip.js";
|
|
67
|
+
import { default as default66 } from "./components/Tree/components/Tree.js";
|
|
68
|
+
import { default as default67 } from "./components/TreeView/TreeView.js";
|
|
69
|
+
import { default as default68 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
70
|
+
import { default as default69 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
71
|
+
import { default as default70 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
72
|
+
import { default as default71 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
73
|
+
import { default as default72 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
74
|
+
import { default as default73 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
75
|
+
import { default as default74 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
76
|
+
import { default as default75 } from "./hooks/useBookmark/useBookmark.js";
|
|
77
|
+
import { default as default76 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useCantoo/useCantoo.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useConversation/useConversation.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useDate/useDate.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useDebounce/useDebounce.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useDirectory/useDirectory.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useDropdown/useDropdown.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useDropzone/useDropzone.js";
|
|
87
|
+
import { default as default86 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useHover/useHover.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
91
|
+
import { default as default90 } from "./hooks/useImage/useImage.js";
|
|
92
|
+
import { default as default91 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
93
|
+
import { default as default92 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
94
|
+
import { default as default93 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
95
|
+
import { default as default94 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
96
|
+
import { default as default95 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
97
|
+
import { default as default96 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
98
|
+
import { default as default97 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
99
|
+
import { default as default98 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
100
|
+
import { default as default99 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
101
|
+
import { default as default100 } from "./hooks/useTitle/useTitle.js";
|
|
102
|
+
import { default as default101 } from "./hooks/useToast/useToast.js";
|
|
103
|
+
import { default as default102 } from "./hooks/useToggle/useToggle.js";
|
|
104
|
+
import { default as default103 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
105
|
+
import { default as default104 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
106
|
+
import { default as default105 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
107
|
+
import { default as default106 } from "./hooks/useUpload/useUpload.js";
|
|
108
|
+
import { default as default107 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
109
|
+
import { default as default108 } from "./hooks/useUser/useUser.js";
|
|
110
|
+
import { default as default109 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
111
|
+
import { default as default110 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
112
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default111 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
113
|
+
import { default as default112 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
114
|
+
import { default as default113 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
115
|
+
import { default as default114 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
115
116
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
116
117
|
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
117
118
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -204,57 +205,58 @@ export {
|
|
|
204
205
|
default38 as Loading,
|
|
205
206
|
default39 as LoadingScreen,
|
|
206
207
|
default40 as Logo,
|
|
207
|
-
default41 as
|
|
208
|
-
default42 as
|
|
208
|
+
default41 as LogoBeta,
|
|
209
|
+
default42 as MediaLibrary,
|
|
210
|
+
default43 as MediaViewer,
|
|
209
211
|
Menu,
|
|
210
212
|
MockedProvider,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
default44 as Modal,
|
|
214
|
+
default45 as OnboardingModal,
|
|
213
215
|
Popover,
|
|
214
216
|
PopoverBody,
|
|
215
217
|
PopoverFooter,
|
|
216
218
|
PopoverHeader,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
default46 as PreventPropagation,
|
|
220
|
+
default47 as PromotionCard,
|
|
221
|
+
default48 as PublishModal,
|
|
222
|
+
default49 as Radio,
|
|
223
|
+
default50 as RadioCard,
|
|
222
224
|
ResourceModal,
|
|
223
225
|
Root,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
226
|
+
default51 as SearchBar,
|
|
227
|
+
default52 as SearchButton,
|
|
228
|
+
default53 as SegmentedControl,
|
|
229
|
+
default54 as Select,
|
|
230
|
+
default55 as ShareBlog,
|
|
231
|
+
default56 as ShareModal,
|
|
232
|
+
default57 as ShareResources,
|
|
233
|
+
default58 as SortableTree,
|
|
234
|
+
default59 as StackedGroup,
|
|
235
|
+
default60 as Stepper,
|
|
236
|
+
default61 as Switch,
|
|
237
|
+
default62 as Table,
|
|
236
238
|
Tabs,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
default63 as TextArea,
|
|
240
|
+
default64 as TextSkeleton,
|
|
239
241
|
Toolbar,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
default65 as Tooltip,
|
|
243
|
+
default66 as Tree,
|
|
242
244
|
TreeNode,
|
|
243
245
|
TreeNodeFolderWrapper,
|
|
244
|
-
|
|
246
|
+
default67 as TreeView,
|
|
245
247
|
Upload,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
default68 as UploadCard,
|
|
249
|
+
default69 as UploadFiles,
|
|
248
250
|
UserRightsList,
|
|
249
251
|
UserSearch,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
default70 as VideoEmbed,
|
|
253
|
+
default71 as VideoRecorder,
|
|
252
254
|
VisibleType,
|
|
253
|
-
|
|
255
|
+
default72 as VisuallyHidden,
|
|
254
256
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
255
257
|
WORKSPACE_USER_FOLDER_ID,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
+
default73 as Workspace,
|
|
259
|
+
default74 as WorkspaceFolders,
|
|
258
260
|
addNode,
|
|
259
261
|
arrayUnique,
|
|
260
262
|
buildTree,
|
|
@@ -284,52 +286,52 @@ export {
|
|
|
284
286
|
setRef,
|
|
285
287
|
updateNode,
|
|
286
288
|
updateParentIds,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
default75 as useBookmark,
|
|
290
|
+
default76 as useBreakpoint,
|
|
291
|
+
default77 as useBrowserInfo,
|
|
292
|
+
default78 as useCantoo,
|
|
291
293
|
useCheckable,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
294
|
+
default79 as useClickOutside,
|
|
295
|
+
default80 as useConversation,
|
|
296
|
+
default81 as useDate,
|
|
297
|
+
default82 as useDebounce,
|
|
298
|
+
default83 as useDirectory,
|
|
299
|
+
default84 as useDropdown,
|
|
300
|
+
default85 as useDropzone,
|
|
299
301
|
useDropzoneContext,
|
|
300
302
|
useEdificeClient,
|
|
301
|
-
|
|
303
|
+
default86 as useEdificeIcons,
|
|
302
304
|
useEdificeTheme,
|
|
303
305
|
useFileToAttachment,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
306
|
+
default87 as useHasWorkflow,
|
|
307
|
+
default88 as useHover,
|
|
308
|
+
default89 as useHttpErrorToast,
|
|
309
|
+
default90 as useImage,
|
|
310
|
+
default91 as useInfiniteScroll,
|
|
311
|
+
default92 as useIsAdmc,
|
|
312
|
+
default93 as useIsAdml,
|
|
313
|
+
default94 as useIsAdmlcOrAdmc,
|
|
314
|
+
default95 as useKeyPress,
|
|
315
|
+
default96 as useLibraryUrl,
|
|
316
|
+
default97 as useMediaLibrary,
|
|
317
|
+
default98 as useScrollToTop,
|
|
318
|
+
default99 as useShareMutation,
|
|
319
|
+
default100 as useTitle,
|
|
320
|
+
default101 as useToast,
|
|
321
|
+
default102 as useToggle,
|
|
322
|
+
default103 as useTrapFocus,
|
|
323
|
+
default104 as useTrashedResource,
|
|
322
324
|
useTreeSortable,
|
|
323
325
|
useTreeView,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
326
|
+
default105 as useUpdateMutation,
|
|
327
|
+
default106 as useUpload,
|
|
328
|
+
default107 as useUploadFiles,
|
|
329
|
+
default108 as useUser,
|
|
330
|
+
default109 as useWorkspaceFile,
|
|
331
|
+
default110 as useWorkspaceFolders,
|
|
332
|
+
default111 as useWorkspaceFoldersTree,
|
|
333
|
+
default112 as useWorkspaceSearch,
|
|
334
|
+
default113 as useXitiTrackPageLoad,
|
|
335
|
+
default114 as useZendeskGuide,
|
|
334
336
|
wrapTreeNode
|
|
335
337
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface LastInfosProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the info.
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* URL of the icon to display in the upper left corner.
|
|
8
|
+
* i.e. "/workspace/document/36a04526-15a2-4e8f-adb6-cca75630e50d"
|
|
9
|
+
*/
|
|
10
|
+
icon: string;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the thread to be displayed next to the icon.
|
|
13
|
+
* i.e. "Informations importantes"
|
|
14
|
+
*/
|
|
15
|
+
thread: string;
|
|
16
|
+
/**
|
|
17
|
+
* Title of the info.
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Content of the info.
|
|
22
|
+
*/
|
|
23
|
+
content: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the user who posted this info.
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
}
|
|
29
|
+
declare const LastInfos: {
|
|
30
|
+
({ title }: LastInfosProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export default LastInfos;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LastInfosProps } from './LastInfos';
|
|
2
|
+
export interface LastInfosListProps {
|
|
3
|
+
infos: Array<LastInfosProps>;
|
|
4
|
+
}
|
|
5
|
+
export declare function LastInfosList({ infos }: LastInfosListProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace LastInfosList {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LastInfosModel {
|
|
2
|
+
modifiedDate: string;
|
|
3
|
+
thread: {
|
|
4
|
+
id: number;
|
|
5
|
+
icon: string;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
title: string;
|
|
9
|
+
content: string;
|
|
10
|
+
username: string;
|
|
11
|
+
id: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function useLastInfos(): {
|
|
14
|
+
infos: LastInfosModel[] | undefined;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
error: Error | null;
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export type MessageFlashProps = {
|
|
3
|
+
/** Message to display */
|
|
4
|
+
message: IFlashMessageModel;
|
|
5
|
+
/** Callback when the message is closed */
|
|
6
|
+
onCloseMessage?: (message: IFlashMessageModel) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const MessageFlash: {
|
|
9
|
+
({ message, onCloseMessage }: MessageFlashProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default MessageFlash;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { useState, useRef, useEffect } from "react";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import SvgIconAlertTriangle from "../../../icons/components/IconAlertTriangle.js";
|
|
6
|
+
import SvgIconClose from "../../../icons/components/IconClose.js";
|
|
7
|
+
import SvgIconInfoCircle from "../../../icons/components/IconInfoCircle.js";
|
|
8
|
+
import { useEdificeClient } from "../../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
9
|
+
import Card from "../../../../components/Card/Card.js";
|
|
10
|
+
import IconButton from "../../../../components/Button/IconButton.js";
|
|
11
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
12
|
+
import Button from "../../../../components/Button/Button.js";
|
|
13
|
+
const MessageFlash = ({
|
|
14
|
+
message,
|
|
15
|
+
onCloseMessage
|
|
16
|
+
}) => {
|
|
17
|
+
const {
|
|
18
|
+
currentLanguage
|
|
19
|
+
} = useEdificeClient(), [isCollapsed, setIsCollapsed] = useState(!0), [hasOverflow, setHasOverflow] = useState(!1), contentRef = useRef(null), checkContentTimeoutRef = useRef(void 0), {
|
|
20
|
+
t
|
|
21
|
+
} = useTranslation();
|
|
22
|
+
let content = "";
|
|
23
|
+
message.contents && (currentLanguage && message.contents[currentLanguage] ? content = message.contents[currentLanguage] : message.contents.fr ? content = message.contents.fr : content = Object.keys(message.contents).map((key) => message.contents[key]).filter((cont) => cont !== null)[0]), useEffect(() => {
|
|
24
|
+
const checkOverflow = () => {
|
|
25
|
+
if (contentRef.current) {
|
|
26
|
+
const element = contentRef.current, originalClass = element.className;
|
|
27
|
+
element.className = element.className.replace(/text-truncate(-\d+)?/g, "").trim();
|
|
28
|
+
const computedStyle = window.getComputedStyle(element), lineHeight = parseFloat(computedStyle.lineHeight) || parseFloat(computedStyle.fontSize) * 1.2, contentHeight = element.scrollHeight, twoLinesHeight = lineHeight * 2;
|
|
29
|
+
setHasOverflow(contentHeight > twoLinesHeight + 2), element.className = originalClass;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
content && (checkContentTimeoutRef.current && clearTimeout(checkContentTimeoutRef.current), checkContentTimeoutRef.current = setTimeout(checkOverflow, 0));
|
|
33
|
+
}, [content]), useEffect(() => () => {
|
|
34
|
+
checkContentTimeoutRef.current && clearTimeout(checkContentTimeoutRef.current);
|
|
35
|
+
});
|
|
36
|
+
const classes = clsx("message-flash", message.color ? `message-flash-${message.color}` : null), classesContent = clsx("message-flash-content", isCollapsed ? "text-truncate text-truncate-2" : null), handleCollapse = () => {
|
|
37
|
+
setIsCollapsed((collapsed) => !collapsed);
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ jsxs(Card, { className: classes, isClickable: !1, isSelectable: !1, children: [
|
|
40
|
+
/* @__PURE__ */ jsx(IconButton, { variant: "ghost", color: "tertiary", icon: /* @__PURE__ */ jsx(SvgIconClose, {}), onClick: () => {
|
|
41
|
+
onCloseMessage == null || onCloseMessage(message);
|
|
42
|
+
}, className: "message-flash-close-button", "data-testid": "message-flash-close-button", "aria-label": t("close.message", {
|
|
43
|
+
title: message.title
|
|
44
|
+
}), title: t("close.message", {
|
|
45
|
+
title: message.title
|
|
46
|
+
}) }),
|
|
47
|
+
/* @__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, {}) }),
|
|
48
|
+
/* @__PURE__ */ jsx(Card.Body, { space: "0", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Card.Title, { children: message.title }),
|
|
50
|
+
/* @__PURE__ */ jsx("div", { ref: contentRef, className: classesContent, children: content }),
|
|
51
|
+
/* @__PURE__ */ jsxs(Flex, { justify: "between", align: "center", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "fst-italic", children: message.signature || "" }),
|
|
53
|
+
hasOverflow && /* @__PURE__ */ jsx(Button, { "data-testid": isCollapsed ? "message-flash-view-more-button" : "message-flash-view-less-button", color: "tertiary", variant: "ghost", size: "sm", className: "btn-icon", onClick: handleCollapse, "aria-controls": `message-flash-${message.id}-content`, "aria-expanded": !isCollapsed, children: t(isCollapsed ? "read.more" : "read.less") })
|
|
54
|
+
] })
|
|
55
|
+
] }) })
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
MessageFlash as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export type MessageFlashListProps = {
|
|
3
|
+
/** List of messages to display */
|
|
4
|
+
messages: IFlashMessageModel[];
|
|
5
|
+
/** Callback when the message is closed */
|
|
6
|
+
onCloseMessage?: (message: IFlashMessageModel) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const MessageFlashList: {
|
|
9
|
+
({ messages, onCloseMessage, }: MessageFlashListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default MessageFlashList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import MessageFlash from "./MessageFlash.js";
|
|
3
|
+
import Flex from "../../../../components/Flex/Flex.js";
|
|
4
|
+
const MessageFlashList = ({
|
|
5
|
+
messages,
|
|
6
|
+
onCloseMessage
|
|
7
|
+
}) => /* @__PURE__ */ jsx("section", { role: "region", className: "message-flash-list", children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "16", role: "list", children: messages.map((message) => /* @__PURE__ */ jsx("div", { role: "listitem", children: /* @__PURE__ */ jsx(MessageFlash, { message, onCloseMessage: (msg) => onCloseMessage == null ? void 0 : onCloseMessage(msg) }) }, message.id)) }) });
|
|
8
|
+
export {
|
|
9
|
+
MessageFlashList as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMessageFlashListContainer } from "./hooks/useMessageFlashList.js";
|
|
3
|
+
import MessageFlashList from "./MessageFlashList.js";
|
|
4
|
+
const MessageFlashListContainer = () => {
|
|
5
|
+
const {
|
|
6
|
+
messages,
|
|
7
|
+
error,
|
|
8
|
+
handleMarkAsRead
|
|
9
|
+
} = useMessageFlashListContainer();
|
|
10
|
+
return !messages || messages.length === 0 || error ? null : /* @__PURE__ */ jsx(MessageFlashList, { messages, onCloseMessage: handleMarkAsRead });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
MessageFlashListContainer
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export interface UseMessageFlashListContainerReturn {
|
|
3
|
+
/** Array of flash messages */
|
|
4
|
+
messages: IFlashMessageModel[] | undefined;
|
|
5
|
+
/** Loading state for fetching messages */
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
/** Error state from fetching messages */
|
|
8
|
+
error: Error | null;
|
|
9
|
+
/** Handler to mark a message as read */
|
|
10
|
+
handleMarkAsRead: (message: IFlashMessageModel) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Custom hook that provides flash messages data and handlers with exposed loading states
|
|
14
|
+
* @returns Object containing messages, loading state, error state, and mark as read handler
|
|
15
|
+
*/
|
|
16
|
+
export declare const useMessageFlashListContainer: () => UseMessageFlashListContainerReturn;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useMessagesFlash, useMarkAsRead } from "../services/queries/messagesFlash.js";
|
|
2
|
+
const useMessageFlashListContainer = () => {
|
|
3
|
+
const {
|
|
4
|
+
data: messages,
|
|
5
|
+
isLoading,
|
|
6
|
+
error
|
|
7
|
+
} = useMessagesFlash(), markAsReadMessage = useMarkAsRead();
|
|
8
|
+
return {
|
|
9
|
+
messages,
|
|
10
|
+
isLoading,
|
|
11
|
+
error,
|
|
12
|
+
handleMarkAsRead: (message) => {
|
|
13
|
+
markAsReadMessage.mutate(message);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
useMessageFlashListContainer
|
|
19
|
+
};
|
package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a message flash service with methods to interact with flash messages.
|
|
4
|
+
*
|
|
5
|
+
* @param baseURL The base URL for the message flash service API.
|
|
6
|
+
* @returns A service exposing methods to retrieve flash messages and mark them as read.
|
|
7
|
+
*/
|
|
8
|
+
export declare const createMessagesFlashService: (baseURL: string) => {
|
|
9
|
+
/**
|
|
10
|
+
* Get message flash.
|
|
11
|
+
* @returns a message flash object
|
|
12
|
+
*/
|
|
13
|
+
getMessagesFlash(): Promise<IFlashMessageModel[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Mark a flash message as read.
|
|
16
|
+
* @param message - The flash message to mark as read
|
|
17
|
+
* @returns A promise that resolves when the operation is complete
|
|
18
|
+
*/
|
|
19
|
+
markAsRead(message: IFlashMessageModel): Promise<void>;
|
|
20
|
+
};
|
package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { odeServices } from "@edifice.io/client";
|
|
2
|
+
const createMessagesFlashService = (baseURL) => ({
|
|
3
|
+
/**
|
|
4
|
+
* Get message flash.
|
|
5
|
+
* @returns a message flash object
|
|
6
|
+
*/
|
|
7
|
+
getMessagesFlash() {
|
|
8
|
+
return odeServices.http().get(`${baseURL}/timeline/flashmsg/listuser`);
|
|
9
|
+
},
|
|
10
|
+
/**
|
|
11
|
+
* Mark a flash message as read.
|
|
12
|
+
* @param message - The flash message to mark as read
|
|
13
|
+
* @returns A promise that resolves when the operation is complete
|
|
14
|
+
*/
|
|
15
|
+
markAsRead(message) {
|
|
16
|
+
return odeServices.http().put("${baseURL}/timeline/flashmsg/" + message.id + "/markasread");
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
createMessagesFlashService
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IFlashMessageModel } from '@edifice.io/client';
|
|
2
|
+
export declare const messagesFlashQueryKeys: {
|
|
3
|
+
all: () => readonly ["messagesFlash"];
|
|
4
|
+
};
|
|
5
|
+
export declare const messagesFlashQueryOptions: {
|
|
6
|
+
getMessagesFlash(): import('@tanstack/query-core').OmitKeyof<import('../../../../../../../node_modules/@tanstack/react-query').UseQueryOptions<IFlashMessageModel[], Error, IFlashMessageModel[], import('@tanstack/query-core').QueryKey>, "queryFn"> & {
|
|
7
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<IFlashMessageModel[], import('@tanstack/query-core').QueryKey, never> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
queryKey: import('@tanstack/query-core').DataTag<import('@tanstack/query-core').QueryKey, IFlashMessageModel[]>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const useMessagesFlash: () => import('../../../../../../../node_modules/@tanstack/react-query').UseQueryResult<IFlashMessageModel[], Error>;
|
|
13
|
+
export declare const useMarkAsRead: () => import('../../../../../../../node_modules/@tanstack/react-query').UseMutationResult<void, Error, IFlashMessageModel, void>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useQuery, useQueryClient, useMutation, queryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { messageFlashService } from "../api/index.js";
|
|
3
|
+
const messagesFlashQueryKeys = {
|
|
4
|
+
all: () => ["messagesFlash"]
|
|
5
|
+
}, messagesFlashQueryOptions = {
|
|
6
|
+
getMessagesFlash() {
|
|
7
|
+
return queryOptions({
|
|
8
|
+
queryKey: messagesFlashQueryKeys.all(),
|
|
9
|
+
queryFn: async () => messageFlashService.getMessagesFlash()
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}, useMessagesFlash = () => useQuery(messagesFlashQueryOptions.getMessagesFlash()), useMarkAsRead = () => {
|
|
13
|
+
const queryClient = useQueryClient();
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationFn: (message) => messageFlashService.markAsRead(message),
|
|
16
|
+
onMutate: async (message) => {
|
|
17
|
+
queryClient.setQueryData(messagesFlashQueryKeys.all(), (oldMessages) => oldMessages.filter((msg) => msg.id !== message.id));
|
|
18
|
+
},
|
|
19
|
+
onError() {
|
|
20
|
+
queryClient.invalidateQueries({
|
|
21
|
+
queryKey: messagesFlashQueryKeys.all()
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
messagesFlashQueryKeys,
|
|
28
|
+
messagesFlashQueryOptions,
|
|
29
|
+
useMarkAsRead,
|
|
30
|
+
useMessagesFlash
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { School } from '@edifice.io/client';
|
|
2
|
+
/**
|
|
3
|
+
* SchoolSpace component displays the currently selected school and provides
|
|
4
|
+
* a dropdown menu to switch between multiple schools if available.
|
|
5
|
+
*/
|
|
6
|
+
export interface SchoolSpaceProps {
|
|
7
|
+
selectedSchool: School | undefined;
|
|
8
|
+
onSelectedSchoolChange?: (schoolIndex: number) => void;
|
|
9
|
+
schools?: School[];
|
|
10
|
+
}
|
|
11
|
+
declare const SchoolSpace: {
|
|
12
|
+
({ schools, selectedSchool, onSelectedSchoolChange, }: SchoolSpaceProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default SchoolSpace;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MessageFlashList';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export default function useWidgetPreferences(): {
|
|
2
|
+
list: import('@edifice.io/client').IWidget[] | undefined;
|
|
3
|
+
lookup: ((widgetName: string) => import('@edifice.io/client').IWidget | undefined) | undefined;
|
|
4
|
+
saveUserPreferences: import('../../../../node_modules/@tanstack/react-query').UseMutateAsyncFunction<any, Error, void, unknown>;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconCommunitiesBeta: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconCommunitiesBeta;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconCommunitiesBeta = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsxs("g", { strokeMiterlimit: 10, strokeWidth: 2.667, clipPath: "url(#icon-communities-beta_svg__a)", children: [
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "#FEECFE", stroke: "#E26AE2", d: "M19.96 5.803a3.803 3.803 0 1 0-7.605 0 3.803 3.803 0 0 0 7.606 0Z" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { stroke: "#E26AE2", d: "M9.668 11.861a3.803 3.803 0 1 0-7.606 0 3.803 3.803 0 0 0 7.606 0ZM30.254 11.861a3.803 3.803 0 1 0-7.606 0 3.803 3.803 0 0 0 7.606 0Z" }),
|
|
11
|
+
/* @__PURE__ */ jsx("path", { stroke: "#FC94FF", d: "M6.389 18.847a5.25 5.25 0 0 1 5.248 5.248v6.837H1.14v-6.837a5.25 5.25 0 0 1 5.248-5.248ZM25.637 18.847a5.25 5.25 0 0 1 5.248 5.248v6.837H20.389v-6.837a5.25 5.25 0 0 1 5.248-5.248Z" }),
|
|
12
|
+
/* @__PURE__ */ jsx("path", { fill: "#FEECFE", stroke: "#E26AE2", d: "M16.158 12.955a5.25 5.25 0 0 1 5.248 5.248v12.73H10.91v-12.73a5.25 5.25 0 0 1 5.248-5.248Z" })
|
|
13
|
+
] }),
|
|
14
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-communities-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
|
|
15
|
+
] });
|
|
16
|
+
export {
|
|
17
|
+
SvgIconCommunitiesBeta as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconHomeBeta: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconHomeBeta;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconHomeBeta = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("g", { clipPath: "url(#icon-home-beta_svg__a)", children: /* @__PURE__ */ jsx("path", { fill: "#383838", d: "M15.183.28a1.334 1.334 0 0 1 1.636 0l12 9.335c.325.252.515.64.515 1.052v14.666a4 4 0 0 1-4 4H6.668a4 4 0 0 1-4-4V10.667c0-.411.19-.8.515-1.052zM5.334 11.32v14.014a1.335 1.335 0 0 0 1.334 1.334h4v-12c0-.736.597-1.334 1.333-1.334h8c.736 0 1.333.598 1.333 1.334v12h4a1.335 1.335 0 0 0 1.334-1.334V11.32L16.001 3.023zm8 15.348h5.334V16h-5.334z" }) }),
|
|
9
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-home-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
SvgIconHomeBeta as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconMessagesBeta: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconMessagesBeta;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconMessagesBeta = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#icon-messages-beta_svg__a)", children: [
|
|
9
|
+
/* @__PURE__ */ jsx("path", { stroke: "#E5A800", strokeMiterlimit: 10, strokeWidth: 2.667, d: "m5.93 10.246-4.8 3.088v12.267a5.335 5.335 0 0 0 5.334 5.333h24.534v-17.6l-4.689-3.013" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { fill: "#FCF3CF", d: "M26.196 15.468v-14.4H5.93v14.4" }),
|
|
11
|
+
/* @__PURE__ */ jsx("path", { stroke: "#FFC403", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M26.196 15.468v-14.4H5.93v14.4" }),
|
|
12
|
+
/* @__PURE__ */ jsx("path", { stroke: "#E5A800", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M9.13 5.334h13.867M10.197 9.6h11.734M1.13 13.334l14.934 8.533 14.933-8.533" })
|
|
13
|
+
] }),
|
|
14
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-messages-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
|
|
15
|
+
] });
|
|
16
|
+
export {
|
|
17
|
+
SvgIconMessagesBeta as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconMyAppsBeta: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconMyAppsBeta;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconMyAppsBeta = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("g", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, clipPath: "url(#icon-my-apps-beta_svg__a)", children: /* @__PURE__ */ jsx("path", { d: "M31.117 1H19v12.117h12.117zM13.207 18.884H1.09V31h12.117zM1 1.084c6.688 0 12.117 5.43 12.117 12.117H1zM30.934 18.884H18.816V31h12.118z" }) }),
|
|
9
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-my-apps-beta_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }) })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
SvgIconMyAppsBeta as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconNotificationBeta: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconNotificationBeta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconNotificationBeta = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 32 32", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M13.363 5.348a2.726 2.726 0 1 1 5.383-.622q0 .423-.12.808M19.886 25.184a3.919 3.919 0 1 1-7.559-.26" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M28.62 18.901H4.058v6.682h24.56z" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { stroke: "#1C1C73", strokeMiterlimit: 10, strokeWidth: 2.667, d: "M16.189 4.889c5.639 0 10.22 4.581 10.22 10.22v3.794H5.97V15.11c0-5.639 4.581-10.22 10.22-10.22Z" })
|
|
11
|
+
] });
|
|
12
|
+
export {
|
|
13
|
+
SvgIconNotificationBeta as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconNotificationsBeta: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconNotificationsBeta;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
export { default as IconCommunitiesBeta } from './IconCommunitiesBeta';
|
|
1
2
|
export { default as IconCommunities } from './IconCommunities';
|
|
2
3
|
export { default as IconCommunity } from './IconCommunity';
|
|
3
4
|
export { default as IconDisconnect } from './IconDisconnect';
|
|
5
|
+
export { default as IconHomeBeta } from './IconHomeBeta';
|
|
4
6
|
export { default as IconHome } from './IconHome';
|
|
7
|
+
export { default as IconMessagesBeta } from './IconMessagesBeta';
|
|
8
|
+
export { default as IconMyAppsBeta } from './IconMyAppsBeta';
|
|
5
9
|
export { default as IconMyApps } from './IconMyApps';
|
|
6
10
|
export { default as IconNeoAssistance } from './IconNeoAssistance';
|
|
7
11
|
export { default as IconNeoMessaging } from './IconNeoMessaging';
|
|
8
12
|
export { default as IconNewRelease } from './IconNewRelease';
|
|
13
|
+
export { default as IconNotificationBeta } from './IconNotificationBeta';
|
|
9
14
|
export { default as IconOneAssistance } from './IconOneAssistance';
|
|
10
15
|
export { default as IconOneMessaging } from './IconOneMessaging';
|
|
11
16
|
export { default as IconOneProfile } from './IconOneProfile';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as OnboardingModal } from './OnboardingModal';
|
|
2
|
-
export type { OnboardingModalRef } from './OnboardingModal';
|
|
2
|
+
export type { DisplayRuleCheckResult, OnboardingModalRef, OnboardingProps, } from './OnboardingModal';
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import { App } from '@edifice.io/client';
|
|
2
1
|
import { EdificeClientProviderProps } from './EdificeClientProvider.context';
|
|
3
|
-
export interface OdeProviderParams {
|
|
4
|
-
alternativeApp?: boolean;
|
|
5
|
-
app: App;
|
|
6
|
-
cdnDomain?: string | null;
|
|
7
|
-
version?: string | null;
|
|
8
|
-
}
|
|
9
2
|
export declare function EdificeClientProvider({ children, params, }: EdificeClientProviderProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.16-
|
|
3
|
+
"version": "2.5.16-epic-homepage.20260420172152",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"./widgets": {
|
|
66
66
|
"import": "./dist/widgets.js",
|
|
67
67
|
"types": "./dist/modules/widgets/index.d.ts"
|
|
68
|
+
},
|
|
69
|
+
"./homepage": {
|
|
70
|
+
"import": "./dist/homepage.js",
|
|
71
|
+
"types": "./dist/modules/homepage/index.d.ts"
|
|
68
72
|
}
|
|
69
73
|
},
|
|
70
74
|
"module": "dist/index.js",
|
|
@@ -135,9 +139,9 @@
|
|
|
135
139
|
"swiper": "^10.1.0",
|
|
136
140
|
"ua-parser-js": "^1.0.36",
|
|
137
141
|
"react-pdf": "10.2.0",
|
|
138
|
-
"@edifice.io/bootstrap": "2.5.16-
|
|
139
|
-
"@edifice.io/tiptap-extensions": "2.5.16-
|
|
140
|
-
"@edifice.io/utilities": "2.5.16-
|
|
142
|
+
"@edifice.io/bootstrap": "2.5.16-epic-homepage.20260420172152",
|
|
143
|
+
"@edifice.io/tiptap-extensions": "2.5.16-epic-homepage.20260420172152",
|
|
144
|
+
"@edifice.io/utilities": "2.5.16-epic-homepage.20260420172152"
|
|
141
145
|
},
|
|
142
146
|
"devDependencies": {
|
|
143
147
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -168,8 +172,8 @@
|
|
|
168
172
|
"vite": "^5.4.11",
|
|
169
173
|
"vite-plugin-dts": "^4.1.0",
|
|
170
174
|
"vite-tsconfig-paths": "^5.0.1",
|
|
171
|
-
"@edifice.io/client": "2.5.16-
|
|
172
|
-
"@edifice.io/config": "2.5.16-
|
|
175
|
+
"@edifice.io/client": "2.5.16-epic-homepage.20260420172152",
|
|
176
|
+
"@edifice.io/config": "2.5.16-epic-homepage.20260420172152"
|
|
173
177
|
},
|
|
174
178
|
"peerDependencies": {
|
|
175
179
|
"@react-spring/web": "^9.7.5",
|