ode-explorer 1.4.11 → 1.4.12-develop-pedago.202406131036

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.
package/dist/index.js CHANGED
@@ -61978,7 +61978,7 @@ const TreeItem = (props) => {
61978
61978
  closeText,
61979
61979
  nextText
61980
61980
  } = modalOptions;
61981
- return isOnboarding ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), children: [
61981
+ return isOnboarding ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), scrollable: true, children: [
61982
61982
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: () => setIsOpen(false), children: t2(title || "explorer.modal.onboarding.trash.title") }),
61983
61983
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Swiper2, { modules: [Pagination], onSwiper: (swiper) => {
61984
61984
  setSwiperInstance(swiper);
@@ -62430,7 +62430,7 @@ function PublishModal$2({
62430
62430
  resource,
62431
62431
  onSuccess
62432
62432
  }), defaultSelectAgeMinOption = "bpr.form.publication.age.min", defaultSelectAgeMaxOption = "bpr.form.publication.age.max";
62433
- return resource ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "libraryModal", size: "lg", children: [
62433
+ return resource ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "libraryModal", size: "lg", scrollable: true, children: [
62434
62434
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2("bpr.publish") }),
62435
62435
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: t2("bpr.form.tip") }),
62436
62436
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
@@ -62589,7 +62589,7 @@ const TextareaCounter = ({
62589
62589
  console.error(e2);
62590
62590
  }
62591
62591
  };
62592
- return isUpdating && !resource ? /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingScreen$1, {}) : /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: `${mode}-resource`, size: "lg", isOpen, onModalClose: onCancel, children: [
62592
+ return isUpdating && !resource ? /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingScreen$1, {}) : /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: `${mode}-resource`, size: "lg", isOpen, onModalClose: onCancel, scrollable: true, children: [
62593
62593
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2(`explorer.resource.editModal.header.${isCreating ? "create" : "edit"}`) }),
62594
62594
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
62595
62595
  /* @__PURE__ */ jsxRuntimeExports.jsx(Heading$1, { headingStyle: "h4", level: "h3", className: "mb-16", children: t2("explorer.resource.editModal.heading.general") }),
@@ -63666,7 +63666,7 @@ function ShareResourceModal({
63666
63666
  }), {
63667
63667
  t: t2
63668
63668
  } = useTranslation(), searchPlaceholder = showSearchAdmlHint() ? t2("explorer.search.adml.hint") : t2("explorer.modal.share.search.placeholder");
63669
- return resource ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "share_modal", size: "lg", isOpen, onModalClose: onCancel, children: [
63669
+ return resource ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "share_modal", size: "lg", isOpen, onModalClose: onCancel, scrollable: true, children: [
63670
63670
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2("share.title") }),
63671
63671
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
63672
63672
  /* @__PURE__ */ jsxRuntimeExports.jsx(Heading$1, { headingStyle: "h4", level: "h3", className: "mb-16", children: t2("explorer.modal.share.usersWithAccess") }),
@@ -66756,10 +66756,14 @@ const AppAction$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
66756
66756
  default: AppAction
66757
66757
  }, Symbol.toStringTag, { value: "Module" }));
66758
66758
  const Library = () => {
66759
+ var _a2;
66759
66760
  const { t: t2 } = useTranslation();
66761
+ const sessionQuery = useSession();
66760
66762
  const { theme } = useOdeTheme();
66761
66763
  const libraryUrl = useLibraryUrl$1();
66762
66764
  const [imagePath] = usePaths();
66765
+ const imageFilename = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) === "fr" ? "image-library-year-end.gif" : "image-library.svg";
66766
+ const imageFullURL = `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/${imageFilename}`;
66763
66767
  return libraryUrl && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-16", children: [
66764
66768
  /* @__PURE__ */ jsxRuntimeExports.jsx(
66765
66769
  Image$2,
@@ -66768,7 +66772,7 @@ const Library = () => {
66768
66772
  height: "140",
66769
66773
  loading: "lazy",
66770
66774
  className: "rounded",
66771
- src: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/image-library.svg`,
66775
+ src: imageFullURL,
66772
66776
  alt: t2("explorer.libray.img.alt")
66773
66777
  }
66774
66778
  ),
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 12/06/2024 12:18:18
1
+ ode-explorer=1.0-b2school-SNAPSHOT 13/06/2024 10:37:25
package/lib/Library.js CHANGED
@@ -1,22 +1,23 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { ArrowRight as s } from "@edifice-ui/icons";
3
- import { useOdeTheme as o, useLibraryUrl as n, usePaths as m, Image as p } from "@edifice-ui/react";
4
- import { useTranslation as c } from "react-i18next";
5
- const y = () => {
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import { ArrowRight as c } from "@edifice-ui/icons";
3
+ import { useSession as g, useOdeTheme as p, useLibraryUrl as d, usePaths as b, Image as h } from "@edifice-ui/react";
4
+ import { useTranslation as y } from "react-i18next";
5
+ const N = () => {
6
+ var l;
6
7
  const {
7
8
  t: e
8
- } = c(), {
9
- theme: a
10
- } = o(), t = n(), [l] = m();
11
- return t && /* @__PURE__ */ i("div", { className: "p-16", children: [
12
- /* @__PURE__ */ r(p, { width: "270", height: "140", loading: "lazy", className: "rounded", src: `${l}/${a == null ? void 0 : a.bootstrapVersion}/image-library.svg`, alt: e("explorer.libray.img.alt") }),
9
+ } = y(), a = g(), {
10
+ theme: i
11
+ } = p(), t = d(), [n] = b(), o = ((l = a == null ? void 0 : a.data) == null ? void 0 : l.currentLanguage) === "fr" ? "image-library-year-end.gif" : "image-library.svg", m = `${n}/${i == null ? void 0 : i.bootstrapVersion}/${o}`;
12
+ return t && /* @__PURE__ */ s("div", { className: "p-16", children: [
13
+ /* @__PURE__ */ r(h, { width: "270", height: "140", loading: "lazy", className: "rounded", src: m, alt: e("explorer.libray.img.alt") }),
13
14
  /* @__PURE__ */ r("p", { className: "m-8", children: e("explorer.libray.title") }),
14
- /* @__PURE__ */ i("a", { href: t, target: "_blank", rel: "noreferrer", className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
15
+ /* @__PURE__ */ s("a", { href: t, target: "_blank", rel: "noreferrer", className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
15
16
  /* @__PURE__ */ r("span", { children: e("explorer.libray.btn") }),
16
- /* @__PURE__ */ r(s, {})
17
+ /* @__PURE__ */ r(c, {})
17
18
  ] })
18
19
  ] });
19
20
  };
20
21
  export {
21
- y as default
22
+ N as default
22
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.11",
3
+ "version": "1.4.12-develop-pedago.202406131036",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -36,8 +36,8 @@
36
36
  ]
37
37
  },
38
38
  "dependencies": {
39
- "@edifice-ui/icons": "1.5.9",
40
- "@edifice-ui/react": "1.5.9",
39
+ "@edifice-ui/icons": "develop-pedago",
40
+ "@edifice-ui/react": "develop-pedago",
41
41
  "@react-spring/web": "9.7.3",
42
42
  "@tanstack/react-query": "5.8.4",
43
43
  "clsx": "2.1.0",
@@ -65,8 +65,8 @@
65
65
  "@vitejs/plugin-react-swc": "3.5.0",
66
66
  "concurrently": "8.2.2",
67
67
  "csstype": "3.1.3",
68
- "edifice-bootstrap": "1.5.9",
69
- "edifice-ts-client": "1.5.9",
68
+ "edifice-bootstrap": "develop-pedago",
69
+ "edifice-ts-client": "develop-pedago",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",