@edifice.io/react 2.5.9-feat-ENABLING-587.20260209154711 → 2.5.10-develop-b2school.20260216164208

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 (90) hide show
  1. package/dist/components/Layout/components/WidgetApps.js +2 -2
  2. package/dist/components/MediaViewer/PdfViewer.js +14 -4
  3. package/dist/hooks/useToast/useToast.js +5 -5
  4. package/dist/icons.js +298 -302
  5. package/dist/modules/icons/components/index.d.ts +0 -2
  6. package/dist/providers/AntThemeProvider/AntProvider.js +5 -5
  7. package/package.json +6 -6
  8. package/dist/_virtual/common.js +0 -4
  9. package/dist/_virtual/de_DE.js +0 -4
  10. package/dist/_virtual/de_DE2.js +0 -4
  11. package/dist/_virtual/de_DE3.js +0 -4
  12. package/dist/_virtual/de_DE4.js +0 -4
  13. package/dist/_virtual/de_DE5.js +0 -4
  14. package/dist/_virtual/de_DE6.js +0 -4
  15. package/dist/_virtual/defineProperty.js +0 -4
  16. package/dist/_virtual/es_ES.js +0 -4
  17. package/dist/_virtual/es_ES2.js +0 -4
  18. package/dist/_virtual/es_ES3.js +0 -4
  19. package/dist/_virtual/es_ES4.js +0 -4
  20. package/dist/_virtual/es_ES5.js +0 -4
  21. package/dist/_virtual/es_ES6.js +0 -4
  22. package/dist/_virtual/fr_FR.js +0 -4
  23. package/dist/_virtual/fr_FR2.js +0 -4
  24. package/dist/_virtual/fr_FR3.js +0 -4
  25. package/dist/_virtual/fr_FR4.js +0 -4
  26. package/dist/_virtual/fr_FR5.js +0 -4
  27. package/dist/_virtual/fr_FR6.js +0 -4
  28. package/dist/_virtual/interopRequireDefault.js +0 -4
  29. package/dist/_virtual/it_IT.js +0 -4
  30. package/dist/_virtual/it_IT2.js +0 -4
  31. package/dist/_virtual/it_IT3.js +0 -4
  32. package/dist/_virtual/it_IT4.js +0 -4
  33. package/dist/_virtual/it_IT5.js +0 -4
  34. package/dist/_virtual/it_IT6.js +0 -4
  35. package/dist/_virtual/objectSpread2.js +0 -4
  36. package/dist/_virtual/pt_PT.js +0 -4
  37. package/dist/_virtual/pt_PT2.js +0 -4
  38. package/dist/_virtual/pt_PT3.js +0 -4
  39. package/dist/_virtual/pt_PT4.js +0 -4
  40. package/dist/_virtual/pt_PT5.js +0 -4
  41. package/dist/_virtual/pt_PT6.js +0 -4
  42. package/dist/_virtual/toPrimitive.js +0 -4
  43. package/dist/_virtual/toPropertyKey.js +0 -4
  44. package/dist/_virtual/typeof.js +0 -4
  45. package/dist/modules/icons/components/IconCollect.d.ts +0 -7
  46. package/dist/modules/icons/components/IconCollect.js +0 -12
  47. package/dist/modules/icons/components/IconRender.d.ts +0 -7
  48. package/dist/modules/icons/components/IconRender.js +0 -12
  49. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +0 -18
  50. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -13
  51. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -31
  52. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -20
  53. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -15
  54. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +0 -16
  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 +0 -11
  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 +0 -11
  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 +0 -11
  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 +0 -11
  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 +0 -11
  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 +0 -22
  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 +0 -22
  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 +0 -27
  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 +0 -20
  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 +0 -45
  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 +0 -145
  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 +0 -145
  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 +0 -144
  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 +0 -156
  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 +0 -158
  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 +0 -10
  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 +0 -10
  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 +0 -10
  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 +0 -10
  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 +0 -10
  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 +0 -8
  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 +0 -8
  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 +0 -8
  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 +0 -8
  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 +0 -8
  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 +0 -21
  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 +0 -21
  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 +0 -21
  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 +0 -21
  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 +0 -21
  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 +0 -14
  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 +0 -37
  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 +0 -37
  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 +0 -38
  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 +0 -37
  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 +0 -39
@@ -11,10 +11,10 @@ const WidgetAppsFooter = () => {
11
11
  }) => {
12
12
  const {
13
13
  t
14
- } = useTranslation();
14
+ } = useTranslation(), getAppName = (data) => data.prefix && data.prefix.length > 1 ? t(data.prefix.substring(1)) : t(data.displayName) || "";
15
15
  return /* @__PURE__ */ jsxs("div", { className: "widget-body d-flex flex-wrap", children: [
16
16
  !bookmarkedApps.length && /* @__PURE__ */ jsx("div", { className: "text-dark", children: t("navbar.myapps.more") }),
17
- bookmarkedApps.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, className: "bookmarked-app", target: appToOpenOnBlank.includes(app.name) || app.isExternal || app.category === "connector" ? "_blank" : void 0, rel: appToOpenOnBlank.includes(app.name) || app.isExternal || app.category === "connector" ? "noopener noreferrer" : void 0, children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index))
17
+ bookmarkedApps.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, title: getAppName(app), className: "bookmarked-app", target: appToOpenOnBlank.includes(app.name) || app.isExternal || app.category === "connector" ? "_blank" : void 0, rel: appToOpenOnBlank.includes(app.name) || app.isExternal || app.category === "connector" ? "noopener noreferrer" : void 0, children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index))
18
18
  ] });
19
19
  };
20
20
  export {
@@ -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,27 +1,27 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import toast from "react-hot-toast";
3
3
  import Alert from "../../components/Alert/Alert.js";
4
- const DEFAULT_POSITION = "top-right";
4
+ const DEFAULT_POSITION = "top-right", DEFAULT_DURATION = 5e3;
5
5
  function useToast() {
6
6
  return {
7
7
  success: (message, options) => toast.custom(/* @__PURE__ */ jsx(Alert, { type: "success", isToast: !0, isDismissible: options == null ? void 0 : options.isDismissible, className: "mb-12", children: message }), {
8
8
  id: options == null ? void 0 : options.id,
9
- duration: options == null ? void 0 : options.duration,
9
+ duration: (options == null ? void 0 : options.duration) ?? DEFAULT_DURATION,
10
10
  position: (options == null ? void 0 : options.position) ?? DEFAULT_POSITION
11
11
  }),
12
12
  error: (message, options) => toast.custom(/* @__PURE__ */ jsx(Alert, { type: "danger", isToast: !0, isDismissible: options == null ? void 0 : options.isDismissible, className: "mb-12", children: message }), {
13
13
  id: options == null ? void 0 : options.id,
14
- duration: options == null ? void 0 : options.duration,
14
+ duration: (options == null ? void 0 : options.duration) ?? DEFAULT_DURATION,
15
15
  position: (options == null ? void 0 : options.position) ?? DEFAULT_POSITION
16
16
  }),
17
17
  info: (message, options) => toast.custom(/* @__PURE__ */ jsx(Alert, { type: "info", isToast: !0, isDismissible: options == null ? void 0 : options.isDismissible, className: "mb-12", children: message }), {
18
18
  id: options == null ? void 0 : options.id,
19
- duration: options == null ? void 0 : options.duration,
19
+ duration: (options == null ? void 0 : options.duration) ?? DEFAULT_DURATION,
20
20
  position: (options == null ? void 0 : options.position) ?? DEFAULT_POSITION
21
21
  }),
22
22
  warning: (message, options) => toast.custom(/* @__PURE__ */ jsx(Alert, { type: "warning", isToast: !0, isDismissible: options == null ? void 0 : options.isDismissible, className: "mb-12", children: message }), {
23
23
  id: options == null ? void 0 : options.id,
24
- duration: options == null ? void 0 : options.duration,
24
+ duration: (options == null ? void 0 : options.duration) ?? DEFAULT_DURATION,
25
25
  position: (options == null ? void 0 : options.position) ?? DEFAULT_POSITION
26
26
  }),
27
27
  loading: toast.loading,