@steedos/webapp 3.0.0-beta.96 → 3.0.0-beta.98

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.
@@ -39778,10 +39778,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
39778
39778
  });
39779
39779
  __publicField(this, "userRoles");
39780
39780
  __publicField(this, "getTranslations", (url2) => {
39781
- return this.doFetch(
39782
- url2,
39783
- { method: "get" }
39784
- );
39781
+ return this.doFetch(url2, { method: "get" });
39785
39782
  });
39786
39783
  __publicField(this, "logClientError", (message2, level = "ERROR") => {
39787
39784
  });
@@ -39803,7 +39800,10 @@ Try polyfilling it using "@formatjs/intl-displaynames"
39803
39800
  this.trackEvent("api", "api_users_accept_invitation");
39804
39801
  const result = this.doFetch(
39805
39802
  `${this.getAccountsRoute()}/acceptInvitation`,
39806
- { method: "POST", body: JSON.stringify({ email, tenantId: spaceId }) }
39803
+ {
39804
+ method: "POST",
39805
+ body: JSON.stringify({ email, tenantId: spaceId })
39806
+ }
39807
39807
  );
39808
39808
  return result;
39809
39809
  });
@@ -39811,7 +39811,10 @@ Try polyfilling it using "@formatjs/intl-displaynames"
39811
39811
  this.trackEvent("api", "api_users_decline_invitation");
39812
39812
  const result = this.doFetch(
39813
39813
  `${this.getAccountsRoute()}/declineInvitation`,
39814
- { method: "POST", body: JSON.stringify({ email, tenantId: spaceId }) }
39814
+ {
39815
+ method: "POST",
39816
+ body: JSON.stringify({ email, tenantId: spaceId })
39817
+ }
39815
39818
  );
39816
39819
  return result;
39817
39820
  });
@@ -39857,22 +39860,19 @@ Try polyfilling it using "@formatjs/intl-displaynames"
39857
39860
  );
39858
39861
  });
39859
39862
  __publicField(this, "getSettings", () => {
39860
- return this.doFetch(
39861
- `${this.getAccountsRoute()}/settings`,
39862
- { method: "get" }
39863
- );
39863
+ return this.doFetch(`${this.getAccountsRoute()}/settings`, {
39864
+ method: "get"
39865
+ });
39864
39866
  });
39865
39867
  __publicField(this, "getMe", () => {
39866
- return this.doFetch(
39867
- `${this.getAccountsRoute()}/user`,
39868
- { method: "get" }
39869
- );
39868
+ return this.doFetch(`${this.getAccountsRoute()}/user`, {
39869
+ method: "get"
39870
+ });
39870
39871
  });
39871
39872
  __publicField(this, "getMySpaces", () => {
39872
- return this.doFetch(
39873
- `${this.getAccountsRoute()}/user/spaces`,
39874
- { method: "get" }
39875
- );
39873
+ return this.doFetch(`${this.getAccountsRoute()}/user/spaces`, {
39874
+ method: "get"
39875
+ });
39876
39876
  });
39877
39877
  __publicField(this, "validate", async (spaceId) => {
39878
39878
  return await this.doFetch(
@@ -39880,7 +39880,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
39880
39880
  {
39881
39881
  method: "post",
39882
39882
  headers: {
39883
- "Authorization": `Bearer ${spaceId},${this.token}`
39883
+ Authorization: `Bearer ${spaceId},${this.token}`
39884
39884
  }
39885
39885
  }
39886
39886
  );
@@ -39951,39 +39951,43 @@ Try polyfilling it using "@formatjs/intl-displaynames"
39951
39951
  __publicField(this, "changePassword", (oldPassword, newPassword) => {
39952
39952
  return this.doFetch(
39953
39953
  `${this.getAccountsRoute()}/password/changePassword`,
39954
- { method: "POST", body: JSON.stringify({
39955
- oldPassword: oldPassword ? sha256(oldPassword).toString() : oldPassword,
39956
- newPassword: newPassword ? sha256(newPassword).toString() : newPassword
39957
- }) }
39954
+ {
39955
+ method: "POST",
39956
+ body: JSON.stringify({
39957
+ oldPassword: oldPassword ? sha256(oldPassword).toString() : oldPassword,
39958
+ newPassword: newPassword ? sha256(newPassword).toString() : newPassword
39959
+ })
39960
+ }
39958
39961
  );
39959
39962
  });
39960
39963
  __publicField(this, "verifyEmail", (email, code) => {
39961
39964
  return this.doFetch(
39962
39965
  `${this.getAccountsRoute()}/password/verify/email`,
39963
- { method: "POST", body: JSON.stringify({
39964
- email,
39965
- code
39966
- }) }
39966
+ {
39967
+ method: "POST",
39968
+ body: JSON.stringify({
39969
+ email,
39970
+ code
39971
+ })
39972
+ }
39967
39973
  );
39968
39974
  });
39969
39975
  __publicField(this, "verifyMobile", (mobile, code) => {
39970
39976
  return this.doFetch(
39971
39977
  `${this.getAccountsRoute()}/password/verify/mobile`,
39972
- { method: "POST", body: JSON.stringify({
39973
- mobile,
39974
- code
39975
- }) }
39978
+ {
39979
+ method: "POST",
39980
+ body: JSON.stringify({
39981
+ mobile,
39982
+ code
39983
+ })
39984
+ }
39976
39985
  );
39977
39986
  });
39978
39987
  }
39979
39988
  getUrl() {
39980
- var href = new URL(window.location.href);
39981
- var foo = href.pathname.split("/accounts");
39982
39989
  if (!this.url) {
39983
39990
  var ROOT_URL_PATH_PREFIX = "";
39984
- if (foo.length > 1) {
39985
- ROOT_URL_PATH_PREFIX = foo[0];
39986
- }
39987
39991
  return ROOT_URL_PATH_PREFIX;
39988
39992
  }
39989
39993
  return this.url;
@@ -40091,12 +40095,15 @@ Try polyfilling it using "@formatjs/intl-displaynames"
40091
40095
  if (!this.isRudderKeySet) {
40092
40096
  return;
40093
40097
  }
40094
- Object.assign({
40095
- category,
40096
- type: event2,
40097
- // user_actual_role: this.userRoles && isSystemAdmin(this.userRoles) ? 'system_admin, system_user' : 'system_user',
40098
- user_actual_id: this.userId
40099
- }, props);
40098
+ Object.assign(
40099
+ {
40100
+ category,
40101
+ type: event2,
40102
+ // user_actual_role: this.userRoles && isSystemAdmin(this.userRoles) ? 'system_admin, system_user' : 'system_user',
40103
+ user_actual_id: this.userId
40104
+ },
40105
+ props
40106
+ );
40100
40107
  }
40101
40108
  // _initLocalStorage(ROOT_URL_PATH_PREFIX){
40102
40109
  // if (ROOT_URL_PATH_PREFIX) {
@@ -56914,11 +56921,11 @@ Try polyfilling it using "@formatjs/intl-displaynames"
56914
56921
  "tpl": `<a href='/app' class='flex items-center '><img class='block h-6 w-auto' src='${logoSrc}'></a>`,
56915
56922
  "hiddenOn": "${window:innerWidth < 768 && (window:historyPaths.length > 1 || window:historyPaths[0].params.record_id)}"
56916
56923
  },
56917
- {
56918
- "className": "bg-gray-300 w-[1px] h-6 inline-block align-middle mr-4",
56919
- "type": "tpl",
56920
- "tpl": ""
56921
- },
56924
+ // {
56925
+ // "className": 'bg-gray-300 w-[1px] h-6 inline-block align-middle mr-4',
56926
+ // "type": "tpl",
56927
+ // "tpl": '',
56928
+ // },
56922
56929
  {
56923
56930
  "className": "w-auto mr-4 font-bold text-lg inline-block align-middle",
56924
56931
  "type": "tpl",
@@ -57032,7 +57039,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
57032
57039
  logoSrc = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.avatar;
57033
57040
  }
57034
57041
  const faviconLink = document.querySelector('link[rel*="icon"], link[rel*="shortcut"]');
57035
- let favicon = "/favicons/favicon.ico";
57042
+ let favicon = "/favicon.ico";
57036
57043
  if ((_h = (_g = (_f = (_e = Builder$1.settings) == null ? void 0 : _e.context) == null ? void 0 : _f.user) == null ? void 0 : _g.space) == null ? void 0 : _h.favicon) {
57037
57044
  favicon = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.favicon;
57038
57045
  }
package/dist/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
5
+ <link rel="shortcut icon" href="/favicon.ico" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Steedos</title>
8
8
 
@@ -60,7 +60,8 @@
60
60
  window.loadCss = loadCss;
61
61
 
62
62
  </script>
63
- <script type="module" crossorigin src="/assets/index-CmikSgSq.js"></script>
63
+ <link rel="stylesheet" type="text/css" href="/tailwind/tailwind-steedos.css">
64
+ <script type="module" crossorigin src="/assets/index-i4egDH3y.js"></script>
64
65
  </head>
65
66
  <body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
66
67
  <div id="root" class="steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden bg-gray-50"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/webapp",
3
- "version": "3.0.0-beta.96",
3
+ "version": "3.0.0-beta.98",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -69,5 +69,5 @@
69
69
  "access": "public"
70
70
  },
71
71
  "repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
72
- "gitHead": "96b68e266d217fce7ae35724edca75e53930db14"
72
+ "gitHead": "4b7a81157f9279ab1750ef877d94c9d64ae7968e"
73
73
  }