@steedos/webapp 3.0.0-beta.97 → 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
|
-
{
|
|
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
|
-
{
|
|
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
|
-
|
|
39862
|
-
|
|
39863
|
-
);
|
|
39863
|
+
return this.doFetch(`${this.getAccountsRoute()}/settings`, {
|
|
39864
|
+
method: "get"
|
|
39865
|
+
});
|
|
39864
39866
|
});
|
|
39865
39867
|
__publicField(this, "getMe", () => {
|
|
39866
|
-
return this.doFetch(
|
|
39867
|
-
|
|
39868
|
-
|
|
39869
|
-
);
|
|
39868
|
+
return this.doFetch(`${this.getAccountsRoute()}/user`, {
|
|
39869
|
+
method: "get"
|
|
39870
|
+
});
|
|
39870
39871
|
});
|
|
39871
39872
|
__publicField(this, "getMySpaces", () => {
|
|
39872
|
-
return this.doFetch(
|
|
39873
|
-
|
|
39874
|
-
|
|
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
|
-
|
|
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
|
-
{
|
|
39955
|
-
|
|
39956
|
-
|
|
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
|
-
{
|
|
39964
|
-
|
|
39965
|
-
|
|
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
|
-
{
|
|
39973
|
-
|
|
39974
|
-
|
|
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
|
-
|
|
40096
|
-
|
|
40097
|
-
|
|
40098
|
-
|
|
40099
|
-
|
|
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) {
|
package/dist/index.html
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
</script>
|
|
63
63
|
<link rel="stylesheet" type="text/css" href="/tailwind/tailwind-steedos.css">
|
|
64
|
-
<script type="module" crossorigin src="/assets/index-
|
|
64
|
+
<script type="module" crossorigin src="/assets/index-i4egDH3y.js"></script>
|
|
65
65
|
</head>
|
|
66
66
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
|
67
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.
|
|
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": "
|
|
72
|
+
"gitHead": "4b7a81157f9279ab1750ef877d94c9d64ae7968e"
|
|
73
73
|
}
|