@edifice.io/react 2.5.9-develop-pedago.20260213112355 → 2.5.9-develop-b2school.20260213162502

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 (109) hide show
  1. package/dist/components/Badge/Badge.js +10 -1
  2. package/dist/components/MediaViewer/PdfViewer.js +14 -4
  3. package/dist/components/index.d.ts +0 -1
  4. package/dist/hooks/useConf/useConf.d.ts +1 -1
  5. package/dist/hooks/useSession/useSession.d.ts +1 -1
  6. package/dist/icons.js +298 -302
  7. package/dist/index.js +0 -2
  8. package/dist/modules/icons/components/index.d.ts +0 -2
  9. package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
  10. package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
  11. package/dist/modules/modals/ShareModal/ShareResources.d.ts +1 -1
  12. package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
  13. package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
  14. package/dist/providers/AntThemeProvider/AntProvider.js +5 -5
  15. package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
  16. package/dist/utilities/react-query/react-query-utils.d.ts +1 -1
  17. package/package.json +6 -6
  18. package/dist/_virtual/common.js +0 -4
  19. package/dist/_virtual/de_DE.js +0 -4
  20. package/dist/_virtual/de_DE2.js +0 -4
  21. package/dist/_virtual/de_DE3.js +0 -4
  22. package/dist/_virtual/de_DE4.js +0 -4
  23. package/dist/_virtual/de_DE5.js +0 -4
  24. package/dist/_virtual/de_DE6.js +0 -4
  25. package/dist/_virtual/defineProperty.js +0 -4
  26. package/dist/_virtual/es_ES.js +0 -4
  27. package/dist/_virtual/es_ES2.js +0 -4
  28. package/dist/_virtual/es_ES3.js +0 -4
  29. package/dist/_virtual/es_ES4.js +0 -4
  30. package/dist/_virtual/es_ES5.js +0 -4
  31. package/dist/_virtual/es_ES6.js +0 -4
  32. package/dist/_virtual/fr_FR.js +0 -4
  33. package/dist/_virtual/fr_FR2.js +0 -4
  34. package/dist/_virtual/fr_FR3.js +0 -4
  35. package/dist/_virtual/fr_FR4.js +0 -4
  36. package/dist/_virtual/fr_FR5.js +0 -4
  37. package/dist/_virtual/fr_FR6.js +0 -4
  38. package/dist/_virtual/interopRequireDefault.js +0 -4
  39. package/dist/_virtual/it_IT.js +0 -4
  40. package/dist/_virtual/it_IT2.js +0 -4
  41. package/dist/_virtual/it_IT3.js +0 -4
  42. package/dist/_virtual/it_IT4.js +0 -4
  43. package/dist/_virtual/it_IT5.js +0 -4
  44. package/dist/_virtual/it_IT6.js +0 -4
  45. package/dist/_virtual/objectSpread2.js +0 -4
  46. package/dist/_virtual/pt_PT.js +0 -4
  47. package/dist/_virtual/pt_PT2.js +0 -4
  48. package/dist/_virtual/pt_PT3.js +0 -4
  49. package/dist/_virtual/pt_PT4.js +0 -4
  50. package/dist/_virtual/pt_PT5.js +0 -4
  51. package/dist/_virtual/pt_PT6.js +0 -4
  52. package/dist/_virtual/toPrimitive.js +0 -4
  53. package/dist/_virtual/toPropertyKey.js +0 -4
  54. package/dist/_virtual/typeof.js +0 -4
  55. package/dist/components/AddAttachments/AddAttachments.d.ts +0 -18
  56. package/dist/components/AddAttachments/AddAttachments.js +0 -87
  57. package/dist/components/AddAttachments/components/AddAttachmentToWorkspaceModal.d.ts +0 -9
  58. package/dist/components/AddAttachments/components/AddAttachmentToWorkspaceModal.js +0 -41
  59. package/dist/components/AddAttachments/components/SingleAttachment.d.ts +0 -13
  60. package/dist/components/AddAttachments/components/SingleAttachment.js +0 -27
  61. package/dist/components/AddAttachments/index.d.ts +0 -2
  62. package/dist/components/AddAttachments/models/attachment.d.ts +0 -9
  63. package/dist/modules/icons/components/IconCollect.d.ts +0 -7
  64. package/dist/modules/icons/components/IconCollect.js +0 -12
  65. package/dist/modules/icons/components/IconSubmission.d.ts +0 -7
  66. package/dist/modules/icons/components/IconSubmission.js +0 -12
  67. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +0 -18
  68. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -13
  69. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -31
  70. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -20
  71. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -15
  72. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +0 -16
  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/calendar/locale/de_DE.js +0 -11
  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/calendar/locale/es_ES.js +0 -11
  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/lib/calendar/locale/fr_FR.js +0 -11
  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/lib/calendar/locale/it_IT.js +0 -11
  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/lib/calendar/locale/pt_PT.js +0 -11
  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/lib/date-picker/locale/de_DE.js +0 -22
  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/lib/date-picker/locale/es_ES.js +0 -22
  80. 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 +0 -27
  81. 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 +0 -20
  82. 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 +0 -45
  83. 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 +0 -145
  84. 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 +0 -145
  85. 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 +0 -144
  86. 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 +0 -156
  87. 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 +0 -158
  88. 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 +0 -10
  89. 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 +0 -10
  90. 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 +0 -10
  91. 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 +0 -10
  92. 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 +0 -10
  93. 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 +0 -8
  94. 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 +0 -8
  95. 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 +0 -8
  96. 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 +0 -8
  97. 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 +0 -8
  98. 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 +0 -21
  99. 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 +0 -21
  100. 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 +0 -21
  101. 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 +0 -21
  102. 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 +0 -21
  103. 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 +0 -14
  104. 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 +0 -37
  105. 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 +0 -37
  106. 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 +0 -38
  107. 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 +0 -37
  108. 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 +0 -39
  109. package/dist/types/color.d.ts +0 -3
@@ -23,7 +23,16 @@ 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, ...restProps, children: [
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: [
27
36
  variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
28
37
  variant.type === "beta" && (children ?? "BÊTA"),
29
38
  variant.type !== "chip" && variant.type !== "beta" && children
@@ -1,17 +1,27 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useState, useRef } from "react";
3
- import { Document, Page } from "react-pdf";
2
+ import { useState, useRef, useEffect } from "react";
4
3
  import LoadingScreen from "../LoadingScreen/LoadingScreen.js";
5
4
  function PdfViewer({
6
5
  mediaUrl,
7
6
  scale
8
7
  }) {
9
- const [numPages, setNumPages] = useState(null), pagesRef = useRef([]), onDocumentLoadSuccess = ({
8
+ const [numPages, setNumPages] = useState(null), [Document, setDocument] = useState(null), [Page, setPage] = useState(null), [isLoading, setIsLoading] = useState(!0), pagesRef = useRef([]);
9
+ useEffect(() => {
10
+ (async () => {
11
+ try {
12
+ const reactPdf = await import("react-pdf");
13
+ setDocument(() => reactPdf.Document), setPage(() => reactPdf.Page), setIsLoading(!1);
14
+ } catch (error) {
15
+ console.error("Failed to load react-pdf:", error);
16
+ }
17
+ })();
18
+ }, []);
19
+ const onDocumentLoadSuccess = ({
10
20
  numPages: numPages2
11
21
  }) => {
12
22
  setNumPages(numPages2);
13
23
  };
14
- return /* @__PURE__ */ jsx("div", { style: {
24
+ return isLoading || !Document || !Page ? /* @__PURE__ */ jsx(LoadingScreen, {}) : /* @__PURE__ */ jsx("div", { style: {
15
25
  width: `calc(600px * ${scale})`,
16
26
  height: "calc(100vh - 52px)",
17
27
  overflowY: "auto",
@@ -1,5 +1,4 @@
1
1
  export * from './ActionBar';
2
- export * from './AddAttachments';
3
2
  export * from './Alert';
4
3
  export * from './AppHeader';
5
4
  export * from './AppIcon';
@@ -1,4 +1,4 @@
1
1
  import { App, IGetConf } from '@edifice.io/client';
2
2
  export default function useConf({ appCode }: {
3
3
  appCode: App;
4
- }): import('../../../node_modules/@tanstack/react-query').UseQueryResult<IGetConf, Error>;
4
+ }): import('../../node_modules/@tanstack/react-query').UseQueryResult<IGetConf, Error>;
@@ -1,2 +1,2 @@
1
1
  import { IGetSession } from '@edifice.io/client';
2
- export default function useSession(): import('../../../node_modules/@tanstack/react-query').UseQueryResult<IGetSession, Error>;
2
+ export default function useSession(): import('../../node_modules/@tanstack/react-query').UseQueryResult<IGetSession, Error>;