ode-explorer 1.4.12-develop-pedago.202406131036 → 1.4.12-develop.202406121500
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 +5 -9
- package/dist/version.txt +1 -1
- package/lib/Library.js +13 -14
- package/package.json +5 -5
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),
|
|
61981
|
+
return isOnboarding ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), 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",
|
|
62433
|
+
return resource ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "libraryModal", size: "lg", 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,
|
|
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: [
|
|
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,
|
|
63669
|
+
return resource ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "share_modal", size: "lg", isOpen, onModalClose: onCancel, 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,14 +66756,10 @@ 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;
|
|
66760
66759
|
const { t: t2 } = useTranslation();
|
|
66761
|
-
const sessionQuery = useSession();
|
|
66762
66760
|
const { theme } = useOdeTheme();
|
|
66763
66761
|
const libraryUrl = useLibraryUrl$1();
|
|
66764
66762
|
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}`;
|
|
66767
66763
|
return libraryUrl && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-16", children: [
|
|
66768
66764
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66769
66765
|
Image$2,
|
|
@@ -66772,7 +66768,7 @@ const Library = () => {
|
|
|
66772
66768
|
height: "140",
|
|
66773
66769
|
loading: "lazy",
|
|
66774
66770
|
className: "rounded",
|
|
66775
|
-
src:
|
|
66771
|
+
src: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/image-library.svg`,
|
|
66776
66772
|
alt: t2("explorer.libray.img.alt")
|
|
66777
66773
|
}
|
|
66778
66774
|
),
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 12/06/2024 15:01:09
|
package/lib/Library.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ArrowRight as
|
|
3
|
-
import {
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
const
|
|
6
|
-
var l;
|
|
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 = () => {
|
|
7
6
|
const {
|
|
8
7
|
t: e
|
|
9
|
-
} =
|
|
10
|
-
theme:
|
|
11
|
-
} =
|
|
12
|
-
return t && /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ r(
|
|
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") }),
|
|
14
13
|
/* @__PURE__ */ r("p", { className: "m-8", children: e("explorer.libray.title") }),
|
|
15
|
-
/* @__PURE__ */
|
|
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: [
|
|
16
15
|
/* @__PURE__ */ r("span", { children: e("explorer.libray.btn") }),
|
|
17
|
-
/* @__PURE__ */ r(
|
|
16
|
+
/* @__PURE__ */ r(s, {})
|
|
18
17
|
] })
|
|
19
18
|
] });
|
|
20
19
|
};
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
y as default
|
|
23
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.4.12-develop
|
|
3
|
+
"version": "1.4.12-develop.202406121500",
|
|
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": "develop
|
|
40
|
-
"@edifice-ui/react": "develop
|
|
39
|
+
"@edifice-ui/icons": "develop",
|
|
40
|
+
"@edifice-ui/react": "develop",
|
|
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": "develop
|
|
69
|
-
"edifice-ts-client": "develop
|
|
68
|
+
"edifice-bootstrap": "develop",
|
|
69
|
+
"edifice-ts-client": "develop",
|
|
70
70
|
"eslint": "8.56.0",
|
|
71
71
|
"eslint-config-prettier": "9.1.0",
|
|
72
72
|
"eslint-plugin-import": "2.29.1",
|