@stackframe/stack 2.5.24 → 2.5.27
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/CHANGELOG.md +30 -0
- package/dist/components/elements/user-avatar.d.mts +1 -0
- package/dist/components/elements/user-avatar.d.ts +1 -0
- package/dist/components/elements/user-avatar.js +4 -3
- package/dist/components/elements/user-avatar.js.map +1 -1
- package/dist/components/oauth-button.js +74 -0
- package/dist/components/oauth-button.js.map +1 -1
- package/dist/components/profile-image-editor.d.mts +11 -0
- package/dist/components/profile-image-editor.d.ts +11 -0
- package/dist/components/profile-image-editor.js +160 -0
- package/dist/components/profile-image-editor.js.map +1 -0
- package/dist/components/team-icon.js +2 -13
- package/dist/components/team-icon.js.map +1 -1
- package/dist/components-page/account-settings.js +48 -19
- package/dist/components-page/account-settings.js.map +1 -1
- package/dist/esm/components/elements/user-avatar.js +4 -3
- package/dist/esm/components/elements/user-avatar.js.map +1 -1
- package/dist/esm/components/oauth-button.js +74 -0
- package/dist/esm/components/oauth-button.js.map +1 -1
- package/dist/esm/components/profile-image-editor.js +124 -0
- package/dist/esm/components/profile-image-editor.js.map +1 -0
- package/dist/esm/components/team-icon.js +3 -4
- package/dist/esm/components/team-icon.js.map +1 -1
- package/dist/esm/components-page/account-settings.js +48 -19
- package/dist/esm/components-page/account-settings.js.map +1 -1
- package/dist/esm/generated/global-css.js +1 -1
- package/dist/esm/generated/global-css.js.map +1 -1
- package/dist/esm/lib/stack-app.js +14 -4
- package/dist/esm/lib/stack-app.js.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/generated/global-css.d.mts +1 -1
- package/dist/generated/global-css.d.ts +1 -1
- package/dist/generated/global-css.js +1 -1
- package/dist/generated/global-css.js.map +1 -1
- package/dist/lib/stack-app.d.mts +3 -0
- package/dist/lib/stack-app.d.ts +3 -0
- package/dist/lib/stack-app.js +14 -4
- package/dist/lib/stack-app.js.map +1 -1
- package/dist/utils/constants.d.mts +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/constants.js.map +1 -1
- package/package.json +9 -6
package/dist/lib/stack-app.js
CHANGED
|
@@ -63,7 +63,7 @@ var import_url = require("../utils/url");
|
|
|
63
63
|
var import_auth = require("./auth");
|
|
64
64
|
var import_cookie = require("./cookie");
|
|
65
65
|
var NextNavigation = (0, import_compile_time.scrambleDuringCompileTime)(NextNavigationUnscrambled);
|
|
66
|
-
var clientVersion = "js @stackframe/stack@2.5.
|
|
66
|
+
var clientVersion = "js @stackframe/stack@2.5.27";
|
|
67
67
|
function getUrls(partial) {
|
|
68
68
|
const handler = partial.handler ?? "/handler";
|
|
69
69
|
const home = partial.home ?? "/";
|
|
@@ -1040,7 +1040,11 @@ var _StackClientAppImpl = class __StackClientAppImpl {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
if (!(result instanceof import_stack_shared.KnownError)) {
|
|
1042
1042
|
await this._signInToAccountWithTokens(result);
|
|
1043
|
-
|
|
1043
|
+
if (!options.noRedirect) {
|
|
1044
|
+
return await this.redirectToAfterSignIn({ replace: true });
|
|
1045
|
+
} else {
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1044
1048
|
}
|
|
1045
1049
|
return result;
|
|
1046
1050
|
}
|
|
@@ -1056,7 +1060,11 @@ var _StackClientAppImpl = class __StackClientAppImpl {
|
|
|
1056
1060
|
);
|
|
1057
1061
|
if (!(result instanceof import_stack_shared.KnownError)) {
|
|
1058
1062
|
await this._signInToAccountWithTokens(result);
|
|
1059
|
-
|
|
1063
|
+
if (!options.noRedirect) {
|
|
1064
|
+
return await this.redirectToAfterSignUp({ replace: true });
|
|
1065
|
+
} else {
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1060
1068
|
}
|
|
1061
1069
|
return result;
|
|
1062
1070
|
}
|
|
@@ -1877,7 +1885,8 @@ function userUpdateOptionsToCrud(options) {
|
|
|
1877
1885
|
display_name: options.displayName,
|
|
1878
1886
|
client_metadata: options.clientMetadata,
|
|
1879
1887
|
selected_team_id: options.selectedTeamId,
|
|
1880
|
-
totp_secret_base64: options.totpMultiFactorSecret != null ? (0, import_bytes.encodeBase64)(options.totpMultiFactorSecret) : options.totpMultiFactorSecret
|
|
1888
|
+
totp_secret_base64: options.totpMultiFactorSecret != null ? (0, import_bytes.encodeBase64)(options.totpMultiFactorSecret) : options.totpMultiFactorSecret,
|
|
1889
|
+
profile_image_url: options.profileImageUrl
|
|
1881
1890
|
};
|
|
1882
1891
|
}
|
|
1883
1892
|
function serverUserUpdateOptionsToCrud(options) {
|
|
@@ -1891,6 +1900,7 @@ function serverUserUpdateOptionsToCrud(options) {
|
|
|
1891
1900
|
primary_email_auth_enabled: options.primaryEmailAuthEnabled,
|
|
1892
1901
|
primary_email_verified: options.primaryEmailVerified,
|
|
1893
1902
|
password: options.password,
|
|
1903
|
+
profile_image_url: options.profileImageUrl,
|
|
1894
1904
|
totp_secret_base64: options.totpMultiFactorSecret != null ? (0, import_bytes.encodeBase64)(options.totpMultiFactorSecret) : options.totpMultiFactorSecret
|
|
1895
1905
|
};
|
|
1896
1906
|
}
|