@edifice.io/react 2.5.17-develop.20260430122259 → 2.5.17-epic-homepage.20260504173613
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/Dropdown/Dropdown.d.ts +3 -7
- package/dist/components/Dropdown/Dropdown.js +6 -21
- package/dist/components/Dropdown/DropdownCheckboxItem.d.ts +1 -6
- package/dist/components/Dropdown/DropdownCheckboxItem.js +6 -11
- package/dist/components/Dropdown/DropdownContext.d.ts +0 -5
- package/dist/components/Dropdown/DropdownItem.d.ts +1 -6
- package/dist/components/Dropdown/DropdownItem.js +5 -10
- package/dist/components/Dropdown/DropdownRadioItem.d.ts +1 -6
- package/dist/components/Dropdown/DropdownRadioItem.js +6 -11
- 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/PageLayout/PageLayout.d.ts +45 -0
- package/dist/components/PageLayout/PageLayout.js +94 -0
- package/dist/components/PageLayout/PageLayoutContext.d.ts +14 -0
- package/dist/components/PageLayout/PageLayoutContext.js +8 -0
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +10 -0
- package/dist/components/PageLayout/components/PageLayoutContent.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutContent.js +18 -0
- package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutHeader.js +17 -0
- package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +15 -0
- package/dist/components/PageLayout/components/PageLayoutOverlay.js +34 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +18 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +18 -0
- package/dist/components/PageLayout/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/homepage.js +6 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +8 -7
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +1 -1
- package/dist/icons-apps.js +134 -136
- package/dist/icons-nav.js +38 -28
- package/dist/index.js +153 -148
- package/dist/modules/homepage/components/Header/Header.d.ts +8 -0
- package/dist/modules/homepage/components/Header/Header.js +74 -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/apps/index.d.ts +0 -1
- 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/modules/multimedia/ImageEditor/effects/blur.js +7 -9
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +0 -7
- package/package.json +10 -6
- package/dist/components/Dropdown/DropdownItemHidden.d.ts +0 -12
- package/dist/components/Dropdown/DropdownItemHidden.js +0 -19
- package/dist/components/Dropdown/DropdownSearchInput.d.ts +0 -20
- package/dist/components/Dropdown/DropdownSearchInput.js +0 -25
- package/dist/components/Dropdown/useDropdownItemFilter.d.ts +0 -12
- package/dist/components/Dropdown/useDropdownItemFilter.js +0 -19
- package/dist/components/Pagination/Pagination.d.ts +0 -17
- package/dist/components/Pagination/Pagination.js +0 -14
- package/dist/components/Pagination/index.d.ts +0 -1
- package/dist/modules/icons/components/apps/IconLivretScolaire.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconLivretScolaire.js +0 -13
|
@@ -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';
|
|
@@ -57,7 +57,6 @@ export { default as IconLeSiteTv } from './IconLeSiteTv';
|
|
|
57
57
|
export { default as IconLemonde } from './IconLemonde';
|
|
58
58
|
export { default as IconLesechos } from './IconLesechos';
|
|
59
59
|
export { default as IconLibrary } from './IconLibrary';
|
|
60
|
-
export { default as IconLivretScolaire } from './IconLivretScolaire';
|
|
61
60
|
export { default as IconLool } from './IconLool';
|
|
62
61
|
export { default as IconLsu } from './IconLsu';
|
|
63
62
|
export { default as IconMadmagz } from './IconMadmagz';
|
|
@@ -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';
|
|
@@ -15,16 +15,14 @@ function drawBlurListener(application, {
|
|
|
15
15
|
const child = application.stage.getChildByName(spriteName), scale = getApplicationScale(application);
|
|
16
16
|
if (child == null) return;
|
|
17
17
|
const newSprite = new PIXI.Sprite(child.texture);
|
|
18
|
-
newSprite.filters = [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Math.min(scale, 1)
|
|
25
|
-
)
|
|
18
|
+
newSprite.filters = [new PIXI.BlurFilter(
|
|
19
|
+
8,
|
|
20
|
+
// PIXI Default value for strength of the blur effect
|
|
21
|
+
4,
|
|
22
|
+
// Quality of the blur effect depending on the scale (4 is the PIXI default value)
|
|
23
|
+
Math.min(scale, 1)
|
|
26
24
|
// Resolution of the blur effect depending on the scale
|
|
27
|
-
], newSprite.width = child.width, newSprite.height = child.height, newSprite.scale = new PIXI.Point(1, 1), newSprite.anchor = child.anchor, newSprite.mask = drawBrush(points, scale), child.addChild(newSprite);
|
|
25
|
+
)], newSprite.width = child.width, newSprite.height = child.height, newSprite.scale = new PIXI.Point(1, 1), newSprite.anchor = child.anchor, newSprite.mask = drawBrush(points, scale), child.addChild(newSprite);
|
|
28
26
|
});
|
|
29
27
|
}
|
|
30
28
|
function drawCursor(application) {
|
|
@@ -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.17-
|
|
3
|
+
"version": "2.5.17-epic-homepage.20260504173613",
|
|
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/
|
|
139
|
-
"@edifice.io/
|
|
140
|
-
"@edifice.io/
|
|
142
|
+
"@edifice.io/bootstrap": "2.5.17-epic-homepage.20260504173613",
|
|
143
|
+
"@edifice.io/utilities": "2.5.17-epic-homepage.20260504173613",
|
|
144
|
+
"@edifice.io/tiptap-extensions": "2.5.17-epic-homepage.20260504173613"
|
|
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/
|
|
172
|
-
"@edifice.io/
|
|
175
|
+
"@edifice.io/config": "2.5.17-epic-homepage.20260504173613",
|
|
176
|
+
"@edifice.io/client": "2.5.17-epic-homepage.20260504173613"
|
|
173
177
|
},
|
|
174
178
|
"peerDependencies": {
|
|
175
179
|
"@react-spring/web": "^9.7.5",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface DropdownItemHiddenProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* When true, collapses height to 0 while keeping the item in the flow.
|
|
6
|
-
* Use this when the container width must stay stable during search filtering.
|
|
7
|
-
* Defaults to false (display: none).
|
|
8
|
-
*/
|
|
9
|
-
collapse?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const DropdownItemHidden: ({ children, collapse, }: DropdownItemHiddenProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default DropdownItemHidden;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
const DropdownItemHidden = ({
|
|
3
|
-
children,
|
|
4
|
-
collapse
|
|
5
|
-
}) => /* @__PURE__ */ jsx("div", { "aria-hidden": "true", style: collapse ? {
|
|
6
|
-
height: 0,
|
|
7
|
-
overflow: "hidden",
|
|
8
|
-
margin: 0,
|
|
9
|
-
pointerEvents: "none",
|
|
10
|
-
width: "100%",
|
|
11
|
-
maxWidth: "max-content"
|
|
12
|
-
} : {
|
|
13
|
-
display: "none",
|
|
14
|
-
width: "100%",
|
|
15
|
-
maxWidth: "max-content"
|
|
16
|
-
}, children });
|
|
17
|
-
export {
|
|
18
|
-
DropdownItemHidden as default
|
|
19
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface DropdownSearchInputProps {
|
|
2
|
-
/**
|
|
3
|
-
* Placeholder text for the search input
|
|
4
|
-
*/
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Label shown when no items match the search query
|
|
8
|
-
*/
|
|
9
|
-
noResultsLabel?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Called whenever the search query changes.
|
|
12
|
-
* Useful to track the current query outside the Dropdown context.
|
|
13
|
-
*/
|
|
14
|
-
onSearch?: (query: string) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const DropdownSearchInput: {
|
|
17
|
-
({ placeholder, noResultsLabel, onSearch, }: DropdownSearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
export default DropdownSearchInput;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useDropdownContext } from "./DropdownContext.js";
|
|
3
|
-
import SearchBar from "../SearchBar/SearchBar.js";
|
|
4
|
-
const DropdownSearchInput = ({
|
|
5
|
-
placeholder = "Rechercher...",
|
|
6
|
-
noResultsLabel = "Pas de résultat",
|
|
7
|
-
onSearch
|
|
8
|
-
}) => {
|
|
9
|
-
const {
|
|
10
|
-
searchQuery,
|
|
11
|
-
setSearchQuery,
|
|
12
|
-
hasMatches
|
|
13
|
-
} = useDropdownContext();
|
|
14
|
-
return /* @__PURE__ */ jsxs("div", { className: "px-8 pb-8", children: [
|
|
15
|
-
/* @__PURE__ */ jsx(SearchBar, { isVariant: !0, clearable: !0, size: "md", placeholder, value: searchQuery, onChange: (e) => {
|
|
16
|
-
setSearchQuery(e.target.value), onSearch == null || onSearch(e.target.value);
|
|
17
|
-
}, onKeyDown: (e) => {
|
|
18
|
-
["ArrowUp", "ArrowDown", "Enter", " "].includes(e.key) && e.stopPropagation();
|
|
19
|
-
} }),
|
|
20
|
-
searchQuery && !hasMatches && /* @__PURE__ */ jsx("p", { className: "body-2 text-gray-700 text-center mt-8 mb-0", children: noResultsLabel })
|
|
21
|
-
] });
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
DropdownSearchInput as default
|
|
25
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared filtering logic for Dropdown item components.
|
|
3
|
-
* Computes whether the item is hidden by the current search query,
|
|
4
|
-
* and keeps the match registry in sync via reportMatch/unregisterMatch.
|
|
5
|
-
*
|
|
6
|
-
* @returns `id` – stable element id to spread on the DOM node and itemRefs
|
|
7
|
-
* @returns `isFiltered` – true when the item should be hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const useDropdownItemFilter: (searchValue: string | undefined) => {
|
|
10
|
-
id: string;
|
|
11
|
-
isFiltered: boolean;
|
|
12
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useId, useLayoutEffect } from "react";
|
|
2
|
-
import { useDropdownContext } from "./DropdownContext.js";
|
|
3
|
-
const useDropdownItemFilter = (searchValue) => {
|
|
4
|
-
const {
|
|
5
|
-
searchQuery,
|
|
6
|
-
reportMatch,
|
|
7
|
-
unregisterMatch
|
|
8
|
-
} = useDropdownContext(), id = useId(), isFiltered = searchValue !== void 0 && searchQuery !== "" && !searchValue.toLowerCase().includes(searchQuery.toLowerCase());
|
|
9
|
-
return useLayoutEffect(() => {
|
|
10
|
-
if (searchValue !== void 0)
|
|
11
|
-
return reportMatch(id, !isFiltered), () => unregisterMatch(id);
|
|
12
|
-
}, [id, isFiltered, searchValue, reportMatch, unregisterMatch]), {
|
|
13
|
-
id,
|
|
14
|
-
isFiltered
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
useDropdownItemFilter
|
|
19
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface PaginationProps {
|
|
2
|
-
/** Current page (1-based) */
|
|
3
|
-
current: number;
|
|
4
|
-
/** Total number of items */
|
|
5
|
-
total: number;
|
|
6
|
-
/** Number of items per page */
|
|
7
|
-
pageSize: number;
|
|
8
|
-
/** Called when the page changes */
|
|
9
|
-
onChange: (page: number) => void;
|
|
10
|
-
/** Optional class for styling purpose */
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Pagination component for navigating through pages of results.
|
|
15
|
-
* Wraps antd Pagination with a simplified, stable API.
|
|
16
|
-
*/
|
|
17
|
-
export declare function Pagination({ current, total, pageSize, onChange, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Pagination as Pagination$1 } from "antd";
|
|
3
|
-
function Pagination({
|
|
4
|
-
current,
|
|
5
|
-
total,
|
|
6
|
-
pageSize,
|
|
7
|
-
onChange,
|
|
8
|
-
className
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ jsx(Pagination$1, { align: "center", showSizeChanger: !1, current, total, pageSize, onChange, className });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
Pagination
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Pagination';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
2
|
-
interface SVGRProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
titleId?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SvgIconLivretScolaire: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SvgIconLivretScolaire;
|