@edifice.io/react 2.6.10-develop-b2school.20261020161530 → 2.6.10-develop-pedago.20261021184048

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.
Files changed (121) hide show
  1. package/dist/components/Checkbox/Checkbox.js +1 -1
  2. package/dist/components/Layout/Layout.js +4 -12
  3. package/dist/components/Layout/components/Header.js +4 -4
  4. package/dist/components/Layout/components/NavLink.d.ts +3 -3
  5. package/dist/components/Layout/components/NavLink.js +3 -5
  6. package/dist/homepage.js +24 -62
  7. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +6 -2
  8. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +8 -11
  9. package/dist/icons.js +402 -406
  10. package/dist/modules/HelpZone/HelpZone.js +8 -6
  11. package/dist/modules/HelpZone/HelpZoneContainer.js +5 -2
  12. package/dist/modules/homepage/components/Communities/Communities.js +4 -4
  13. package/dist/modules/homepage/components/Header/Header.js +22 -28
  14. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +1 -5
  15. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  16. package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -1
  17. package/dist/modules/homepage/components/Notifications/NotificationList.js +8 -7
  18. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +12 -7
  19. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +4 -7
  20. package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +5 -1
  21. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +12 -10
  22. package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +9 -3
  23. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +12 -6
  24. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +10 -12
  25. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +10 -9
  26. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
  27. package/dist/modules/homepage/{hooks → components/SchoolSpace}/useUserSchools.d.ts +2 -2
  28. package/dist/modules/homepage/{hooks → components/SchoolSpace}/useUserSchools.js +4 -4
  29. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +1 -3
  30. package/dist/modules/homepage/components/UserSpace/UserSpace.js +7 -13
  31. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +2 -4
  32. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +2 -3
  33. package/dist/modules/homepage/components/index.d.ts +1 -8
  34. package/dist/modules/icons/components/index.d.ts +0 -2
  35. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -0
  36. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -0
  37. package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +4 -0
  38. package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +2 -1
  39. package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +3 -0
  40. package/package.json +6 -6
  41. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +0 -10
  42. package/dist/modules/homepage/components/Agenda/Agenda.js +0 -54
  43. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +0 -1
  44. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +0 -14
  45. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +0 -10
  46. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +0 -30
  47. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +0 -14
  48. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +0 -27
  49. package/dist/modules/homepage/components/Agenda/index.d.ts +0 -3
  50. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +0 -24
  51. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +0 -45
  52. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +0 -4
  53. package/dist/modules/homepage/components/Agenda/services/api/index.js +0 -5
  54. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +0 -19
  55. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +0 -26
  56. package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +0 -9
  57. package/dist/modules/homepage/components/BriefMe/BriefMe.js +0 -59
  58. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +0 -4
  59. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +0 -17
  60. package/dist/modules/homepage/components/BriefMe/index.d.ts +0 -4
  61. package/dist/modules/homepage/components/BriefMe/types.d.ts +0 -17
  62. package/dist/modules/homepage/components/BriefMe/types.js +0 -8
  63. package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +0 -31
  64. package/dist/modules/homepage/components/BriefMe/useBriefMe.js +0 -51
  65. package/dist/modules/homepage/components/Cantine/Cantine.d.ts +0 -7
  66. package/dist/modules/homepage/components/Cantine/Cantine.js +0 -44
  67. package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +0 -4
  68. package/dist/modules/homepage/components/Cantine/CantineContainer.js +0 -18
  69. package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +0 -24
  70. package/dist/modules/homepage/components/Cantine/CantineModal.js +0 -88
  71. package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +0 -7
  72. package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +0 -12
  73. package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +0 -5
  74. package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +0 -22
  75. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +0 -6
  76. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +0 -28
  77. package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +0 -12
  78. package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +0 -60
  79. package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +0 -11
  80. package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +0 -20
  81. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +0 -24
  82. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +0 -65
  83. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +0 -23
  84. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +0 -43
  85. package/dist/modules/homepage/components/Cantine/index.d.ts +0 -7
  86. package/dist/modules/homepage/components/Cantine/types.d.ts +0 -42
  87. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +0 -16
  88. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +0 -48
  89. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +0 -4
  90. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +0 -12
  91. package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +0 -1
  92. package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +0 -6
  93. package/dist/modules/homepage/components/GenerationHdf/index.d.ts +0 -3
  94. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +0 -10
  95. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +0 -68
  96. package/dist/modules/homepage/components/Header/AccountActionListPopover.d.ts +0 -13
  97. package/dist/modules/homepage/components/Header/AccountActionListPopover.js +0 -26
  98. package/dist/modules/homepage/components/Header/ActionItem.d.ts +0 -38
  99. package/dist/modules/homepage/components/Header/ActionItem.js +0 -34
  100. package/dist/modules/homepage/components/Header/MyAppsPopover.d.ts +0 -5
  101. package/dist/modules/homepage/components/Header/MyAppsPopover.js +0 -28
  102. package/dist/modules/homepage/components/Header/useSafeHoverPopover.js +0 -32
  103. package/dist/modules/homepage/components/Qwant/Qwant.d.ts +0 -4
  104. package/dist/modules/homepage/components/Qwant/Qwant.js +0 -41
  105. package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +0 -1
  106. package/dist/modules/homepage/components/Qwant/QwantContainer.js +0 -10
  107. package/dist/modules/homepage/components/Qwant/index.d.ts +0 -3
  108. package/dist/modules/homepage/components/Universalis/Universalis.d.ts +0 -8
  109. package/dist/modules/homepage/components/Universalis/Universalis.js +0 -62
  110. package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +0 -1
  111. package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +0 -16
  112. package/dist/modules/homepage/components/Universalis/index.d.ts +0 -3
  113. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +0 -16
  114. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +0 -15
  115. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +0 -21
  116. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +0 -47
  117. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +0 -2
  118. package/dist/modules/icons/components/IconAddWidget.d.ts +0 -7
  119. package/dist/modules/icons/components/IconAddWidget.js +0 -12
  120. package/dist/modules/icons/components/IconLogout.d.ts +0 -7
  121. package/dist/modules/icons/components/IconLogout.js +0 -13
@@ -1,16 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- export interface WidgetToggleProps extends Omit<ComponentPropsWithoutRef<'button'>, 'onClick' | 'type' | 'role' | 'aria-checked'> {
3
- 'checked': boolean;
4
- 'onChange': () => void;
5
- 'aria-label': string;
6
- }
7
- /**
8
- * Dedicated on/off control for a widget row in `WidgetsPersonalizationPanel`.
9
- * The generic `Switch` component doesn't match this panel's design (size,
10
- * filled-vs-outlined states), so this is a small purpose-built control
11
- * rather than a `Switch` variant.
12
- */
13
- export declare function WidgetToggle({ checked, onChange, disabled, ...rest }: WidgetToggleProps): import("react/jsx-runtime").JSX.Element;
14
- export declare namespace WidgetToggle {
15
- var displayName: string;
16
- }
@@ -1,15 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- function WidgetToggle({
4
- checked,
5
- onChange,
6
- disabled,
7
- ...rest
8
- }) {
9
- return /* @__PURE__ */ jsx("button", { type: "button", role: "switch", "aria-checked": checked, disabled, className: clsx("widget-toggle", {
10
- "widget-toggle--checked": checked
11
- }), onClick: onChange, ...rest, children: /* @__PURE__ */ jsx("span", { className: "widget-toggle__knob" }) });
12
- }
13
- export {
14
- WidgetToggle
15
- };
@@ -1,21 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface WidgetPersonalizationItem {
3
- id: string;
4
- label: string;
5
- icon: ReactNode;
6
- checked: boolean;
7
- /** When true, the widget is pinned by an admin: no toggle, lock icon instead. */
8
- locked?: boolean;
9
- }
10
- export interface WidgetsPersonalizationPanelProps {
11
- items: WidgetPersonalizationItem[];
12
- isLoading?: boolean;
13
- onToggle: (id: string) => void;
14
- onClose: () => void;
15
- title?: string;
16
- description?: string;
17
- }
18
- export declare function WidgetsPersonalizationPanel({ items, isLoading, onToggle, onClose, title, description, }: WidgetsPersonalizationPanelProps): import("react/jsx-runtime").JSX.Element;
19
- export declare namespace WidgetsPersonalizationPanel {
20
- var displayName: string;
21
- }
@@ -1,47 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useTranslation } from "react-i18next";
3
- import clsx from "clsx";
4
- import SvgIconClose from "../../../icons/components/IconClose.js";
5
- import SvgIconLock from "../../../icons/components/IconLock.js";
6
- import { WidgetToggle } from "./WidgetToggle.js";
7
- import Heading from "../../../../components/Heading/Heading.js";
8
- import IconButton from "../../../../components/Button/IconButton.js";
9
- import TextSkeleton from "../../../../components/Skeleton/TextSkeleton.js";
10
- const SKELETON_ROWS = 5;
11
- function WidgetsPersonalizationPanel({
12
- items,
13
- isLoading = !1,
14
- onToggle,
15
- onClose,
16
- title,
17
- description
18
- }) {
19
- const {
20
- t
21
- } = useTranslation();
22
- return /* @__PURE__ */ jsxs("div", { className: "widgets-personalization-panel", children: [
23
- /* @__PURE__ */ jsxs("div", { className: "widgets-personalization-panel__header", children: [
24
- /* @__PURE__ */ jsx(Heading, { level: "h2", headingStyle: "h5", className: "widgets-personalization-panel__title", children: title ?? t("homepage.widgetsPersonalization.title") }),
25
- /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(SvgIconClose, {}), variant: "ghost", color: "tertiary", "aria-label": t("close"), onClick: onClose, "data-testid": "widgetspersonalization-button-close" })
26
- ] }),
27
- /* @__PURE__ */ jsx("p", { className: "widgets-personalization-panel__description", children: description ?? t("homepage.widgetsPersonalization.description") }),
28
- isLoading ? /* @__PURE__ */ jsx("ul", { className: "widgets-personalization-panel__list", "aria-hidden": "true", children: Array.from({
29
- length: SKELETON_ROWS
30
- }).map((_, index) => /* @__PURE__ */ jsxs("li", { className: "widgets-personalization-panel__item widgets-personalization-panel__item--skeleton", children: [
31
- /* @__PURE__ */ jsx(TextSkeleton, { className: "widgets-personalization-panel__item-icon-skeleton" }),
32
- /* @__PURE__ */ jsx(TextSkeleton, { className: "widgets-personalization-panel__item-label-skeleton" })
33
- ] }, index)) }) : items.length === 0 ? /* @__PURE__ */ jsx("div", { className: "widgets-personalization-panel__empty", children: /* @__PURE__ */ jsx("p", { className: "widgets-personalization-panel__empty-text", children: t("homepage.widgetsPersonalization.empty") }) }) : /* @__PURE__ */ jsx("ul", { className: "widgets-personalization-panel__list", children: items.map((item) => /* @__PURE__ */ jsxs("li", { className: clsx("widgets-personalization-panel__item", {
34
- "widgets-personalization-panel__item--checked": item.checked && !item.locked,
35
- "widgets-personalization-panel__item--locked": item.locked
36
- }), "data-testid": `widgetspersonalization-item-${item.id}`, children: [
37
- /* @__PURE__ */ jsx("span", { className: "widgets-personalization-panel__item-icon", "aria-hidden": "true", children: item.icon }),
38
- /* @__PURE__ */ jsx("span", { className: "widgets-personalization-panel__item-label", children: item.label }),
39
- item.locked ? /* @__PURE__ */ jsx("span", { className: "widgets-personalization-panel__item-lock", role: "img", "aria-label": t("homepage.widgetsPersonalization.locked"), "data-testid": `widgetspersonalization-lock-${item.id}`, children: /* @__PURE__ */ jsx(SvgIconLock, {}) }) : /* @__PURE__ */ jsx(WidgetToggle, { checked: item.checked, onChange: () => onToggle(item.id), "aria-label": t("homepage.widgetsPersonalization.toggle", {
40
- label: item.label
41
- }), "data-testid": `widgetspersonalization-toggle-${item.id}` })
42
- ] }, item.id)) })
43
- ] });
44
- }
45
- export {
46
- WidgetsPersonalizationPanel
47
- };
@@ -1,2 +0,0 @@
1
- export * from './WidgetsPersonalizationPanel';
2
- export * from './WidgetToggle';
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconAddWidget: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconAddWidget;
@@ -1,12 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconAddWidget = ({
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 20 20", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.834 10.833c.46 0 .833.373.833.834v2.5h2.5a.833.833 0 0 1 0 1.666h-2.5v2.5a.833.833 0 0 1-1.667 0v-2.5h-2.5a.833.833 0 0 1 0-1.666H15v-2.5c0-.46.373-.834.834-.834M8.333 3.333A.833.833 0 0 0 7.5 2.5h-5a.833.833 0 0 0-.833.833v13.334c0 .46.373.833.833.833h5c.46 0 .833-.373.833-.833zM10 16.667a2.5 2.5 0 0 1-2.5 2.5h-5a2.5 2.5 0 0 1-2.5-2.5V3.333a2.5 2.5 0 0 1 2.5-2.5h5a2.5 2.5 0 0 1 2.5 2.5zM18.334 3.333A.833.833 0 0 0 17.5 2.5h-3.333a.833.833 0 0 0-.833.833v3.334c0 .46.373.833.833.833H17.5c.46 0 .834-.373.834-.833zM20 6.667a2.5 2.5 0 0 1-2.5 2.5h-3.333a2.5 2.5 0 0 1-2.5-2.5V3.333a2.5 2.5 0 0 1 2.5-2.5H17.5a2.5 2.5 0 0 1 2.5 2.5z", clipRule: "evenodd" })
9
- ] });
10
- export {
11
- SvgIconAddWidget as default
12
- };
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconLogout: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconLogout;
@@ -1,13 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconLogout = ({
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 22 22", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M11.917.917a.916.916 0 0 1 0 1.833H5.042a.46.46 0 0 0-.459.458v15.584c0 .253.206.458.459.458h6.875a.917.917 0 0 1 0 1.833H5.042a2.29 2.29 0 0 1-2.292-2.291V3.208A2.29 2.29 0 0 1 5.042.917zm3.018 5.769a.916.916 0 0 1 1.296 0l3.667 3.666a.917.917 0 0 1 0 1.296l-3.667 3.667a.916.916 0 1 1-1.296-1.296L17.956 11l-3.02-3.019a.916.916 0 0 1 0-1.295" }),
9
- /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.333 11c0-.506.41-.917.917-.917h11a.917.917 0 1 1 0 1.834h-11A.917.917 0 0 1 7.333 11", clipRule: "evenodd" })
10
- ] });
11
- export {
12
- SvgIconLogout as default
13
- };