@edifice.io/react 2.5.9-develop-b2school.20260212120233 → 2.5.9-develop-pedago.20260213101441

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 (92) hide show
  1. package/dist/_virtual/common.js +4 -0
  2. package/dist/_virtual/de_DE.js +4 -0
  3. package/dist/_virtual/de_DE2.js +4 -0
  4. package/dist/_virtual/de_DE3.js +4 -0
  5. package/dist/_virtual/de_DE4.js +4 -0
  6. package/dist/_virtual/de_DE5.js +4 -0
  7. package/dist/_virtual/de_DE6.js +4 -0
  8. package/dist/_virtual/defineProperty.js +4 -0
  9. package/dist/_virtual/es_ES.js +4 -0
  10. package/dist/_virtual/es_ES2.js +4 -0
  11. package/dist/_virtual/es_ES3.js +4 -0
  12. package/dist/_virtual/es_ES4.js +4 -0
  13. package/dist/_virtual/es_ES5.js +4 -0
  14. package/dist/_virtual/es_ES6.js +4 -0
  15. package/dist/_virtual/fr_FR.js +4 -0
  16. package/dist/_virtual/fr_FR2.js +4 -0
  17. package/dist/_virtual/fr_FR3.js +4 -0
  18. package/dist/_virtual/fr_FR4.js +4 -0
  19. package/dist/_virtual/fr_FR5.js +4 -0
  20. package/dist/_virtual/fr_FR6.js +4 -0
  21. package/dist/_virtual/interopRequireDefault.js +4 -0
  22. package/dist/_virtual/it_IT.js +4 -0
  23. package/dist/_virtual/it_IT2.js +4 -0
  24. package/dist/_virtual/it_IT3.js +4 -0
  25. package/dist/_virtual/it_IT4.js +4 -0
  26. package/dist/_virtual/it_IT5.js +4 -0
  27. package/dist/_virtual/it_IT6.js +4 -0
  28. package/dist/_virtual/objectSpread2.js +4 -0
  29. package/dist/_virtual/pt_PT.js +4 -0
  30. package/dist/_virtual/pt_PT2.js +4 -0
  31. package/dist/_virtual/pt_PT3.js +4 -0
  32. package/dist/_virtual/pt_PT4.js +4 -0
  33. package/dist/_virtual/pt_PT5.js +4 -0
  34. package/dist/_virtual/pt_PT6.js +4 -0
  35. package/dist/_virtual/toPrimitive.js +4 -0
  36. package/dist/_virtual/toPropertyKey.js +4 -0
  37. package/dist/_virtual/typeof.js +4 -0
  38. package/dist/components/AddAttachments/AddAttachments.d.ts +14 -0
  39. package/dist/components/AddAttachments/components/AddAttachmentToWorkspaceModal.d.ts +9 -0
  40. package/dist/components/AddAttachments/components/SingleAttachment.d.ts +13 -0
  41. package/dist/components/AddAttachments/models/attachment.d.ts +9 -0
  42. package/dist/components/Badge/Badge.js +1 -10
  43. package/dist/icons.js +302 -298
  44. package/dist/modules/icons/components/IconCollect.d.ts +7 -0
  45. package/dist/modules/icons/components/IconCollect.js +12 -0
  46. package/dist/modules/icons/components/IconSubmission.d.ts +7 -0
  47. package/dist/modules/icons/components/IconSubmission.js +12 -0
  48. package/dist/modules/icons/components/index.d.ts +2 -0
  49. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +18 -0
  50. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
  51. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +31 -0
  52. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +20 -0
  53. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +15 -0
  54. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +16 -0
  55. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/de_DE.js +11 -0
  56. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/es_ES.js +11 -0
  57. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/fr_FR.js +11 -0
  58. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/it_IT.js +11 -0
  59. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/pt_PT.js +11 -0
  60. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/de_DE.js +22 -0
  61. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/es_ES.js +22 -0
  62. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/fr_FR.js +27 -0
  63. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/it_IT.js +20 -0
  64. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/pt_PT.js +45 -0
  65. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/de_DE.js +145 -0
  66. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/es_ES.js +145 -0
  67. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/fr_FR.js +144 -0
  68. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/it_IT.js +156 -0
  69. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/pt_PT.js +158 -0
  70. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/de_DE.js +10 -0
  71. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/es_ES.js +10 -0
  72. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/fr_FR.js +10 -0
  73. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/it_IT.js +10 -0
  74. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/pt_PT.js +10 -0
  75. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/de_DE.js +8 -0
  76. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/es_ES.js +8 -0
  77. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/fr_FR.js +8 -0
  78. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/it_IT.js +8 -0
  79. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/pt_PT.js +8 -0
  80. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/de_DE.js +21 -0
  81. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/es_ES.js +21 -0
  82. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/fr_FR.js +21 -0
  83. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/it_IT.js +21 -0
  84. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/pt_PT.js +21 -0
  85. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/common.js +14 -0
  86. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/de_DE.js +37 -0
  87. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/es_ES.js +37 -0
  88. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/fr_FR.js +38 -0
  89. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/it_IT.js +37 -0
  90. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/pt_PT.js +39 -0
  91. package/dist/providers/AntThemeProvider/AntProvider.js +5 -5
  92. package/package.json +6 -6
@@ -0,0 +1,4 @@
1
+ var common = {};
2
+ export {
3
+ common as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var defineProperty = { exports: {} };
2
+ export {
3
+ defineProperty as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var interopRequireDefault = { exports: {} };
2
+ export {
3
+ interopRequireDefault as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var objectSpread2 = { exports: {} };
2
+ export {
3
+ objectSpread2 as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var toPrimitive = { exports: {} };
2
+ export {
3
+ toPrimitive as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var toPropertyKey = { exports: {} };
2
+ export {
3
+ toPropertyKey as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var _typeof = { exports: {} };
2
+ export {
3
+ _typeof as __module
4
+ };
@@ -0,0 +1,14 @@
1
+ import { Attachment } from './models/attachment';
2
+ export interface AddAttachmentsProps {
3
+ attachments: Attachment[];
4
+ onFilesSelected: (files: File[]) => void;
5
+ onRemoveAttachment: (attachmentId: string) => void;
6
+ editMode?: boolean;
7
+ isMutating?: boolean;
8
+ onCopyToWorkspace?: (attachments: Attachment[], folderId: string) => Promise<boolean>;
9
+ /** Si fourni, chaque pièce jointe affiche un bouton télécharger avec l'URL retournée. */
10
+ getDownloadUrl?: (attachmentId: string) => string;
11
+ /** Si fourni et qu'il y a plusieurs pièces jointes, affiche un bouton « télécharger tout ». */
12
+ downloadAllUrl?: string;
13
+ }
14
+ export declare function AddAttachments({ attachments, onFilesSelected, onRemoveAttachment, editMode, isMutating, onCopyToWorkspace, getDownloadUrl, downloadAllUrl, }: AddAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import { Attachment } from '../models/attachment';
2
+ interface AddAttachmentToWorkspaceModalProps {
3
+ attachments: Attachment[];
4
+ onModalClose: () => void;
5
+ isOpen?: boolean;
6
+ onCopyToWorkspace: (attachments: Attachment[], folderId: string) => Promise<boolean>;
7
+ }
8
+ export declare function AddAttachmentToWorkspaceModal({ attachments, isOpen, onModalClose, onCopyToWorkspace, }: AddAttachmentToWorkspaceModalProps): import('react').ReactPortal;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Attachment } from '../models/attachment';
2
+ export interface SingleAttachmentProps {
3
+ attachment: Attachment;
4
+ onDelete: (attachmentId: string) => void;
5
+ editMode?: boolean;
6
+ /** Si fourni, affiche le bouton « copier vers l'espace » et appelle ce callback au clic. */
7
+ onCopyToWorkspace?: (attachment: Attachment) => void;
8
+ /** Si fourni, affiche le bouton télécharger avec l'URL retournée. */
9
+ getDownloadUrl?: (attachmentId: string) => string;
10
+ /** Désactive les boutons d'action (ex. pendant une suppression). */
11
+ disabled?: boolean;
12
+ }
13
+ export declare function SingleAttachment({ attachment, onDelete, editMode, onCopyToWorkspace, getDownloadUrl, disabled, }: SingleAttachmentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export type Attachment = {
2
+ id: string;
3
+ charset: string;
4
+ contentTransferEncoding: string;
5
+ contentType: string;
6
+ filename: string;
7
+ name: string;
8
+ size: number;
9
+ };
@@ -23,16 +23,7 @@ const Badge = /* @__PURE__ */ forwardRef(({
23
23
  }
24
24
  console.log(badgeColorClassName);
25
25
  const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "beta" && badgeColorClassName, className);
26
- return /* @__PURE__ */ jsxs("span", { ref, className: classes, style: (() => {
27
- if (variant.type !== "beta") return;
28
- const color = variant.color ?? "#000000";
29
- return {
30
- borderColor: color,
31
- color,
32
- backgroundColor: `${color}10`
33
- // the 2 last hexadecimal numbers are for opacity
34
- };
35
- })(), ...restProps, children: [
26
+ return /* @__PURE__ */ jsxs("span", { ref, className: classes, ...restProps, children: [
36
27
  variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
37
28
  variant.type === "beta" && (children ?? "BÊTA"),
38
29
  variant.type !== "chip" && variant.type !== "beta" && children