ode-explorer 1.4.12-develop.202406251122 → 1.4.12-develop.202406251256

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
@@ -56720,8 +56720,7 @@ function usePaths() {
56720
56720
  function useUser() {
56721
56721
  const {
56722
56722
  user,
56723
- userDescription,
56724
- userProfile
56723
+ userDescription
56725
56724
  } = useOdeClient(), {
56726
56725
  theme
56727
56726
  } = useOdeTheme();
@@ -56730,10 +56729,7 @@ function useUser() {
56730
56729
  return (!avatar || avatar === "no-avatar.jpg" || avatar === "no-avatar.svg") && (avatar = `${theme == null ? void 0 : theme.basePath}/img/illustrations/no-avatar.svg`), avatar;
56731
56730
  }
56732
56731
  return {
56733
- user: {
56734
- ...user,
56735
- type: userProfile
56736
- },
56732
+ user,
56737
56733
  avatar: avatarUrl(),
56738
56734
  userDescription
56739
56735
  };
@@ -56764,7 +56760,7 @@ function useZendeskGuide() {
56764
56760
  const {
56765
56761
  currentLanguage
56766
56762
  } = useOdeClient(), {
56767
- user
56763
+ userDescription
56768
56764
  } = useUser(), {
56769
56765
  isAdml
56770
56766
  } = useIsAdml(), {
@@ -56779,8 +56775,8 @@ function useZendeskGuide() {
56779
56775
  } else
56780
56776
  dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
56781
56777
  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());
56778
+ const userProfile = userDescription == null ? void 0 : userDescription.profiles;
56779
+ labels = labels.replace("${profile}", userProfile[0].toLowerCase());
56784
56780
  }
56785
56781
  labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
56786
56782
  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 25/06/2024 12:57:25
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-develop.202406251256",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {