ode-explorer 1.4.12-develop.202406251122 → 1.4.12

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
@@ -19028,8 +19028,8 @@ function getNodeScroll$1(element) {
19028
19028
  };
19029
19029
  }
19030
19030
  return {
19031
- scrollLeft: element.pageXOffset,
19032
- scrollTop: element.pageYOffset
19031
+ scrollLeft: element.scrollX,
19032
+ scrollTop: element.scrollY
19033
19033
  };
19034
19034
  }
19035
19035
  function getParentNode$1(node) {
@@ -55982,8 +55982,21 @@ function OdeClientProvider({
55982
55982
  appCode
55983
55983
  }), init2 = (confQuery == null ? void 0 : confQuery.isSuccess) && (sessionQuery == null ? void 0 : sessionQuery.isSuccess);
55984
55984
  reactExports.useEffect(() => {
55985
- var _a2, _b2;
55986
- (_b2 = document.querySelector("html")) == null || _b2.setAttribute("lang", ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr");
55985
+ var _a2;
55986
+ [
55987
+ {
55988
+ data: "html",
55989
+ value: ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr"
55990
+ },
55991
+ // #WB-3137 Disable the translation of the content of the page which provoced issues
55992
+ {
55993
+ data: "translate",
55994
+ value: "no"
55995
+ }
55996
+ ].forEach((attribute) => {
55997
+ var _a22;
55998
+ return (_a22 = document.querySelector("html")) == null ? void 0 : _a22.setAttribute(attribute.data, attribute.value);
55999
+ });
55987
56000
  }, [sessionQuery == null ? void 0 : sessionQuery.data]), reactExports.useEffect(() => {
55988
56001
  document.title = `${translatedAppCode}`;
55989
56002
  }, [appCode, sessionQuery.data, translatedAppCode]);
@@ -56720,8 +56733,7 @@ function usePaths() {
56720
56733
  function useUser() {
56721
56734
  const {
56722
56735
  user,
56723
- userDescription,
56724
- userProfile
56736
+ userDescription
56725
56737
  } = useOdeClient(), {
56726
56738
  theme
56727
56739
  } = useOdeTheme();
@@ -56730,10 +56742,7 @@ function useUser() {
56730
56742
  return (!avatar || avatar === "no-avatar.jpg" || avatar === "no-avatar.svg") && (avatar = `${theme == null ? void 0 : theme.basePath}/img/illustrations/no-avatar.svg`), avatar;
56731
56743
  }
56732
56744
  return {
56733
- user: {
56734
- ...user,
56735
- type: userProfile
56736
- },
56745
+ user,
56737
56746
  avatar: avatarUrl(),
56738
56747
  userDescription
56739
56748
  };
@@ -56764,7 +56773,7 @@ function useZendeskGuide() {
56764
56773
  const {
56765
56774
  currentLanguage
56766
56775
  } = useOdeClient(), {
56767
- user
56776
+ userDescription
56768
56777
  } = useUser(), {
56769
56778
  isAdml
56770
56779
  } = useIsAdml(), {
@@ -56779,8 +56788,8 @@ function useZendeskGuide() {
56779
56788
  } else
56780
56789
  dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
56781
56790
  if (modulePathnameSplit.includes("collaborativewall") && modulePathnameSplit.includes("id") && isMobileView && window.zE("webWidget", "hide"), labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
56782
- const userProfile = (user == null ? void 0 : user.type) || "";
56783
- labels = labels.replace("${profile}", userProfile.toLowerCase());
56791
+ const userProfile = userDescription == null ? void 0 : userDescription.profiles;
56792
+ labels = labels.replace("${profile}", userProfile[0].toLowerCase());
56784
56793
  }
56785
56794
  labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
56786
56795
  labels: [labels]
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 25/06/2024 11:22:46
1
+ ode-explorer=1.0-b2school-SNAPSHOT 01/07/2024 10:41:37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.12-develop.202406251122",
3
+ "version": "1.4.12",
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": "1.5.10",
40
+ "@edifice-ui/react": "1.5.10",
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": "1.5.10",
69
+ "edifice-ts-client": "1.5.10",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",