ode-explorer 1.4.12 → 1.4.13-develop-pedago.202407031103
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 +71860 -62068
- package/dist/version.txt +1 -1
- package/lib/Library.js +31 -15
- package/lib/features/SideBar/Library/useLibrary.d.ts +5 -0
- package/package.json +5 -5
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 03/07/2024 11:04:22
|
package/lib/Library.js
CHANGED
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useOdeClient as s, useOdeTheme as c, usePaths as m, useLibraryUrl as d, Image as p } from "@edifice-ui/react";
|
|
3
|
+
import { odeServices as b } from "edifice-ts-client";
|
|
4
|
+
import { ArrowRight as g } from "@edifice-ui/icons";
|
|
5
|
+
import { useTranslation as u } from "react-i18next";
|
|
5
6
|
const y = () => {
|
|
6
7
|
const {
|
|
7
|
-
|
|
8
|
-
} =
|
|
9
|
-
theme:
|
|
10
|
-
} =
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
currentLanguage: i
|
|
9
|
+
} = s(), {
|
|
10
|
+
theme: e
|
|
11
|
+
} = c(), [l] = m(), r = d(), n = i === "fr" ? "image-library-year-end.gif" : "image-library.svg", o = `${l}/${e == null ? void 0 : e.bootstrapVersion}/${n}`;
|
|
12
|
+
return {
|
|
13
|
+
libraryUrl: r,
|
|
14
|
+
imageFullURL: o,
|
|
15
|
+
handleClick: () => {
|
|
16
|
+
r && (window.open(r, "_blank"), b.data().trackAccessLibraryFromExplorer());
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}, U = () => {
|
|
20
|
+
const {
|
|
21
|
+
libraryUrl: i,
|
|
22
|
+
imageFullURL: e,
|
|
23
|
+
handleClick: l
|
|
24
|
+
} = y(), {
|
|
25
|
+
t: r
|
|
26
|
+
} = u();
|
|
27
|
+
return i && /* @__PURE__ */ t("div", { className: "p-16", children: [
|
|
28
|
+
/* @__PURE__ */ a(p, { width: "270", height: "140", loading: "lazy", className: "rounded", src: e, alt: r("explorer.libray.img.alt") }),
|
|
29
|
+
/* @__PURE__ */ a("p", { className: "m-8", children: r("explorer.libray.title") }),
|
|
30
|
+
/* @__PURE__ */ t("button", { type: "button", onClick: l, rel: "noreferrer", className: "btn btn-ghost-primary d-inline-flex align-items-center gap-4 p-8", children: [
|
|
31
|
+
/* @__PURE__ */ a("span", { children: r("explorer.libray.btn") }),
|
|
32
|
+
/* @__PURE__ */ a(g, {})
|
|
17
33
|
] })
|
|
18
34
|
] });
|
|
19
35
|
};
|
|
20
36
|
export {
|
|
21
|
-
|
|
37
|
+
U as default
|
|
22
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13-develop-pedago.202407031103",
|
|
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": "
|
|
40
|
-
"@edifice-ui/react": "
|
|
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": "
|
|
69
|
-
"edifice-ts-client": "
|
|
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",
|