ode-explorer 1.4.8-develop-pedago.202406041643 → 1.4.8-develop.202406041452

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
@@ -69168,12 +69168,10 @@ const AppAction$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
69168
69168
  default: AppAction
69169
69169
  }, Symbol.toStringTag, { value: "Module" }));
69170
69170
  const Library = () => {
69171
- const { t: t2, i18n } = useTranslation();
69171
+ const { t: t2 } = useTranslation();
69172
69172
  const { theme } = useOdeTheme();
69173
69173
  const libraryUrl = useLibraryUrl$1();
69174
69174
  const [imagePath] = usePaths();
69175
- const imageFilename = i18n.resolvedLanguage === "fr" ? "image-library-year-end.gif" : "image-library.svg";
69176
- const imageFullURL = `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/${imageFilename}`;
69177
69175
  return libraryUrl && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-16", children: [
69178
69176
  /* @__PURE__ */ jsxRuntimeExports.jsx(
69179
69177
  Image$2,
@@ -69182,7 +69180,7 @@ const Library = () => {
69182
69180
  height: "140",
69183
69181
  loading: "lazy",
69184
69182
  className: "rounded",
69185
- src: imageFullURL,
69183
+ src: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/image-library.svg`,
69186
69184
  alt: t2("explorer.libray.img.alt")
69187
69185
  }
69188
69186
  ),
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 04/06/2024 16:43:46
1
+ ode-explorer=1.0-b2school-SNAPSHOT 04/06/2024 14:53:23
package/lib/Library.js CHANGED
@@ -1,23 +1,22 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { ArrowRight as m } from "@edifice-ui/icons";
3
- import { useOdeTheme as g, useLibraryUrl as c, usePaths as p, Image as d } from "@edifice-ui/react";
4
- import { useTranslation as b } from "react-i18next";
5
- const x = () => {
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 = () => {
6
6
  const {
7
- t: e,
8
- i18n: t
9
- } = b(), {
7
+ t: e
8
+ } = c(), {
10
9
  theme: a
11
- } = g(), i = c(), [s] = p(), n = t.resolvedLanguage === "fr" ? "image-library-year-end.gif" : "image-library.svg", o = `${s}/${a == null ? void 0 : a.bootstrapVersion}/${n}`;
12
- return i && /* @__PURE__ */ l("div", { className: "p-16", children: [
13
- /* @__PURE__ */ r(d, { width: "270", height: "140", loading: "lazy", className: "rounded", src: o, alt: e("explorer.libray.img.alt") }),
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__ */ l("a", { href: i, target: "_blank", rel: "noreferrer", className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
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(m, {})
16
+ /* @__PURE__ */ r(s, {})
18
17
  ] })
19
18
  ] });
20
19
  };
21
20
  export {
22
- x as default
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.8-develop-pedago.202406041643",
3
+ "version": "1.4.8-develop.202406041452",
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-pedago",
40
- "@edifice-ui/react": "develop-pedago",
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-pedago",
69
- "edifice-ts-client": "develop-pedago",
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",