ode-explorer 1.4.13-develop-mozo.202407101134 → 1.4.13-develop.202407101230

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/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 10/07/2024 11:34:50
1
+ ode-explorer=1.0-b2school-SNAPSHOT 10/07/2024 12:31:23
package/lib/Library.js CHANGED
@@ -1,22 +1,38 @@
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";
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
- 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") }),
13
- /* @__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__ */ r("span", { children: e("explorer.libray.btn") }),
16
- /* @__PURE__ */ r(s, {})
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
- y as default
37
+ U as default
22
38
  };
@@ -0,0 +1,5 @@
1
+ export declare const useLibrary: () => {
2
+ libraryUrl: string | null;
3
+ imageFullURL: string;
4
+ handleClick: () => void;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.13-develop-mozo.202407101134",
3
+ "version": "1.4.13-develop.202407101230",
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-mozo",
40
- "@edifice-ui/react": "develop-mozo",
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-mozo",
69
- "edifice-ts-client": "develop-mozo",
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",