@edifice.io/react 2.6.7-develop-b2school.20261009142401 → 2.6.7-develop-b2school.20261012101734
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/components/Header.js +4 -4
- package/dist/components/Layout/components/NavLink.d.ts +3 -3
- package/dist/components/Layout/components/NavLink.js +5 -3
- package/dist/components/RadioTile/RadioTile.d.ts +35 -0
- package/dist/components/RadioTile/RadioTile.js +22 -0
- package/dist/components/RadioTile/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/homepage.js +6 -0
- package/dist/index.js +138 -136
- package/dist/modules/homepage/components/Agenda/Agenda.d.ts +10 -0
- package/dist/modules/homepage/components/Agenda/Agenda.js +54 -0
- package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +1 -0
- package/dist/modules/homepage/components/Agenda/AgendaContainer.js +14 -0
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +10 -0
- package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +30 -0
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +14 -0
- package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +27 -0
- package/dist/modules/homepage/components/Agenda/index.d.ts +3 -0
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +24 -0
- package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +45 -0
- package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/Agenda/services/api/index.js +5 -0
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +19 -0
- package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +26 -0
- package/dist/modules/homepage/components/Communities/Communities.js +2 -2
- package/dist/modules/homepage/components/Header/Header.js +27 -11
- package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +5 -0
- package/dist/modules/homepage/components/Header/MyAppsPopover.js +28 -0
- package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +32 -0
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +5 -1
- 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 +1 -5
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +10 -12
- package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +3 -9
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +12 -10
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +9 -10
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +1 -1
- package/dist/modules/homepage/components/index.d.ts +1 -0
- package/package.json +6 -6
|
@@ -14,31 +14,30 @@ const useNotificationListContainer = () => {
|
|
|
14
14
|
mutate: saveTimelinePreference
|
|
15
15
|
} = useSaveTimelinePreference(), [selectedTypes, setSelectedTypesState] = useState();
|
|
16
16
|
useEffect(() => {
|
|
17
|
-
|
|
18
|
-
const preferredTypes = preference == null ? void 0 : preference.type;
|
|
19
|
-
setSelectedTypesState(preferredTypes && preferredTypes.length > 0 ? preferredTypes : notificationTypes ?? []);
|
|
20
|
-
}
|
|
17
|
+
selectedTypes === void 0 && isFetchedTypes && isFetchedPreference && setSelectedTypesState((preference == null ? void 0 : preference.type) ?? notificationTypes ?? []);
|
|
21
18
|
}, [selectedTypes, isFetchedTypes, isFetchedPreference, preference, notificationTypes]);
|
|
22
19
|
const setSelectedTypes = (types) => {
|
|
23
20
|
setSelectedTypesState(types), saveTimelinePreference({
|
|
24
21
|
...preference,
|
|
25
22
|
type: types
|
|
26
23
|
});
|
|
27
|
-
}, {
|
|
28
|
-
data
|
|
24
|
+
}, hasNoTypeSelected = (selectedTypes == null ? void 0 : selectedTypes.length) === 0, {
|
|
25
|
+
data,
|
|
29
26
|
hasNextPage,
|
|
30
27
|
isLoading: isLoadingNotifications,
|
|
31
28
|
error: errorNotifications,
|
|
32
29
|
fetchNextPage
|
|
33
|
-
} = useNotifications(selectedTypes ?? [], isFetchedTypes && !!selectedTypes);
|
|
30
|
+
} = useNotifications(selectedTypes ?? [], isFetchedTypes && !!selectedTypes && !hasNoTypeSelected);
|
|
34
31
|
return {
|
|
35
|
-
notifications,
|
|
32
|
+
notifications: hasNoTypeSelected ? [] : data,
|
|
36
33
|
notificationTypes,
|
|
37
34
|
selectedTypes,
|
|
38
35
|
setSelectedTypes,
|
|
39
|
-
hasNextPage,
|
|
36
|
+
hasNextPage: hasNoTypeSelected ? !1 : hasNextPage,
|
|
40
37
|
loadNextPage: () => fetchNextPage(),
|
|
41
|
-
|
|
38
|
+
// The notification query stays disabled until the saved filter is
|
|
39
|
+
// read, so this wait must count as loading too.
|
|
40
|
+
isLoading: isLoadingTypes || selectedTypes === void 0 || isLoadingNotifications,
|
|
42
41
|
error: errorTypes || errorNotifications
|
|
43
42
|
};
|
|
44
43
|
}, useHasNotificationToday = () => {
|
|
@@ -27,7 +27,7 @@ function UserSpace({
|
|
|
27
27
|
/* @__PURE__ */ jsx("div", { "data-testid": "user-space-profile", className: "user-space--profile", children: t(profile) })
|
|
28
28
|
] })
|
|
29
29
|
] }),
|
|
30
|
-
onCustomizeWidgetsClick && /* @__PURE__ */ jsx(IconButton, { className: "user-space--customize-widgets", icon: /* @__PURE__ */ jsx(SvgIconAddWidget, {}), variant: "ghost", color: "tertiary", "aria-label": t("homepage.userSpace.customizeWidgets"
|
|
30
|
+
onCustomizeWidgetsClick && /* @__PURE__ */ jsx(IconButton, { className: "user-space--customize-widgets", icon: /* @__PURE__ */ jsx(SvgIconAddWidget, {}), variant: "ghost", color: "tertiary", "aria-label": t("homepage.userSpace.customizeWidgets"), onClick: onCustomizeWidgetsClick })
|
|
31
31
|
] }),
|
|
32
32
|
children && /* @__PURE__ */ jsx(HomeCard.Content, { children })
|
|
33
33
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.7-develop-b2school.
|
|
3
|
+
"version": "2.6.7-develop-b2school.20261012101734",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"swiper": "10.1.0",
|
|
141
141
|
"ua-parser-js": "1.0.36",
|
|
142
142
|
"zustand": "4.5.7",
|
|
143
|
-
"@edifice.io/
|
|
144
|
-
"@edifice.io/
|
|
145
|
-
"@edifice.io/utilities": "2.6.7-develop-b2school.
|
|
143
|
+
"@edifice.io/tiptap-extensions": "2.6.7-develop-b2school.20261012101734",
|
|
144
|
+
"@edifice.io/bootstrap": "2.6.7-develop-b2school.20261012101734",
|
|
145
|
+
"@edifice.io/utilities": "2.6.7-develop-b2school.20261012101734"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"vite": "5.4.14",
|
|
174
174
|
"vite-plugin-dts": "4.5.4",
|
|
175
175
|
"vite-tsconfig-paths": "5.1.4",
|
|
176
|
-
"@edifice.io/client": "2.6.7-develop-b2school.
|
|
177
|
-
"@edifice.io/config": "2.6.7-develop-b2school.
|
|
176
|
+
"@edifice.io/client": "2.6.7-develop-b2school.20261012101734",
|
|
177
|
+
"@edifice.io/config": "2.6.7-develop-b2school.20261012101734"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@react-spring/web": "9.7.5",
|