@edifice.io/react 2.6.0-develop.20260722094144 → 2.6.0-develop.20260723141700

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.
@@ -8,6 +8,13 @@ export interface PopoverProps {
8
8
  * When Popover is visible
9
9
  */
10
10
  isVisible?: boolean;
11
+ /**
12
+ * Horizontal alignment relative to the trigger.
13
+ * `center` (default) centers the popover under the trigger.
14
+ * `end` aligns the popover's right edge with the trigger's right edge,
15
+ * which prevents overflow when the trigger sits near the viewport's right edge.
16
+ */
17
+ align?: 'center' | 'end';
11
18
  /**
12
19
  * React Node
13
20
  */
@@ -21,13 +21,14 @@ const PopoverHeader = ({
21
21
  const classes = clsx("popover-footer p-8", className);
22
22
  return /* @__PURE__ */ jsx("div", { className: classes, children });
23
23
  }, Popover = /* @__PURE__ */ forwardRef(({
24
+ align = "center",
24
25
  children,
25
26
  className,
26
27
  id,
27
28
  isVisible,
28
29
  ...restProps
29
30
  }, ref) => {
30
- const classes = clsx("popover d-block position-absolute top-100 start-50 translate-middle-x", className);
31
+ const classes = clsx("popover d-block position-absolute top-100", align === "end" ? "end-0 popover-align-end" : "start-50 translate-middle-x", className);
31
32
  return useTransition(isVisible, {
32
33
  from: {
33
34
  opacity: 0
package/dist/homepage.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { default as default2 } from "./modules/homepage/components/Header/Header.js";
2
2
  import { default as default3 } from "./modules/homepage/components/HomeCard/HomeCard.js";
3
3
  import { default as default4 } from "./modules/homepage/components/LastInfos/LastInfos.js";
4
- import { default as default5 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
5
- import { default as default6 } from "./modules/homepage/components/Notifications/NotificationItem.js";
6
- import { default as default7 } from "./modules/homepage/components/Notifications/NotificationList.js";
4
+ import { default as default5 } from "./modules/homepage/components/MessageFlashList/MessageFlash.js";
5
+ import { default as default6 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
6
+ import { default as default7 } from "./modules/homepage/components/Notifications/NotificationItem.js";
7
+ import { default as default8 } from "./modules/homepage/components/Notifications/NotificationList.js";
7
8
  import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
8
- import { default as default8 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
9
- import { default as default9 } from "./modules/homepage/components/UserSpace/UserSpace.js";
9
+ import { default as default9 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
10
+ import { default as default10 } from "./modules/homepage/components/UserSpace/UserSpace.js";
10
11
  import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
11
12
  import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
12
13
  import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
@@ -22,13 +23,14 @@ export {
22
23
  default4 as LastInfos,
23
24
  LastInfosContainer,
24
25
  LastInfosList,
25
- default5 as MessageFlashList,
26
+ default5 as MessageFlash,
27
+ default6 as MessageFlashList,
26
28
  MessageFlashListContainer,
27
- default6 as NotificationItem,
28
- default7 as NotificationList,
29
+ default7 as NotificationItem,
30
+ default8 as NotificationList,
29
31
  NotificationListContainer,
30
- default8 as SchoolSpace,
32
+ default9 as SchoolSpace,
31
33
  SchoolSpaceContainer,
32
- default9 as UserSpace,
34
+ default10 as UserSpace,
33
35
  UserSpaceContainer
34
36
  };
@@ -1,7 +1,6 @@
1
1
  import { UAParser } from "ua-parser-js";
2
2
  function useBrowserInfo(userAgent) {
3
- var _a, _b, _c;
4
- const uaParser = new UAParser(userAgent), os = uaParser.getOS(), device = uaParser.getDevice(), browser = uaParser.getBrowser(), isIphone = ((_a = device.model) == null ? void 0 : _a.indexOf("iPhone")) != -1, isIpod = ((_b = device.model) == null ? void 0 : _b.indexOf("iPod")) != -1, isIpad = ((_c = device.model) == null ? void 0 : _c.indexOf("iPad")) != -1;
3
+ const uaParser = new UAParser(userAgent), os = uaParser.getOS(), device = uaParser.getDevice(), browser = uaParser.getBrowser(), deviceModel = device.model ?? "", isIphone = deviceModel.includes("iPhone"), isIpod = deviceModel.includes("iPod"), isIpad = deviceModel.includes("iPad");
5
4
  return {
6
5
  os,
7
6
  device,
@@ -68,7 +68,7 @@ const Header = ({
68
68
  /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsx(ButtonBeta, { leftIcon: /* @__PURE__ */ jsx(SvgIconNotificationBeta, {}), variant: "ghost", onClick: handleNotificationsClick }) }),
69
69
  /* @__PURE__ */ jsxs(NavItem, { className: "position-relative", ref: userRef, id: popoverUserId, "aria-haspopup": "true", "aria-expanded": isUserHovered, "data-testid": "header-user-menu-button", children: [
70
70
  /* @__PURE__ */ jsx(NavLink, { link: "/userbook/mon-compte", translate: t("navbar.myaccount"), "data-testid": "header-user-profile-button", children: /* @__PURE__ */ jsx(Avatar, { alt: userName, size: "sm", src: userAvatar, variant: "circle", className: "bg-white", width: "32", height: "32" }) }),
71
- /* @__PURE__ */ jsx(Popover, { className: "top-100 widget", id: popoverUserId, isVisible: isUserHovered, children: /* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link d-flex align-items-center gap-8", "data-testid": "header-logout-button", children: [
71
+ /* @__PURE__ */ jsx(Popover, { align: "end", className: "widget", id: popoverUserId, isVisible: isUserHovered, children: /* @__PURE__ */ jsx(PopoverBody, { children: /* @__PURE__ */ jsxs("a", { href: "/auth/logout?callback=" + ((theme == null ? void 0 : theme.logoutCallback) ?? ""), className: "nav-link logout d-flex align-items-center gap-8", "data-testid": "header-logout-button", children: [
72
72
  /* @__PURE__ */ jsx(SvgIconDisconnect, { className: "icon logout" }),
73
73
  /* @__PURE__ */ jsx("span", { id: "logout-label", className: "nav-text", children: t("navbar.disconnect") })
74
74
  ] }) }) })
@@ -1,4 +1,5 @@
1
1
  export * from './MessageFlash';
2
2
  export * from './MessageFlashList';
3
3
  export * from './MessageFlashListContainer';
4
+ export { default as MessageFlash } from './MessageFlash';
4
5
  export { default as MessageFlashList } from './MessageFlashList';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.6.0-develop.20260722094144",
3
+ "version": "2.6.0-develop.20260723141700",
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/tiptap-extensions": "2.6.0-develop.20260722094144",
144
- "@edifice.io/bootstrap": "2.6.0-develop.20260722094144",
145
- "@edifice.io/utilities": "2.6.0-develop.20260722094144"
143
+ "@edifice.io/bootstrap": "2.6.0-develop.20260723141700",
144
+ "@edifice.io/tiptap-extensions": "2.6.0-develop.20260723141700",
145
+ "@edifice.io/utilities": "2.6.0-develop.20260723141700"
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.0-develop.20260722094144",
177
- "@edifice.io/config": "2.6.0-develop.20260722094144"
176
+ "@edifice.io/client": "2.6.0-develop.20260723141700",
177
+ "@edifice.io/config": "2.6.0-develop.20260723141700"
178
178
  },
179
179
  "peerDependencies": {
180
180
  "@react-spring/web": "9.7.5",