@stytch/vanilla-js 3.1.2 → 3.2.1
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 +14 -2
- package/dist/b2b/index.esm.js +14 -10
- package/dist/b2b/index.headless.esm.js +1 -1
- package/dist/b2b/index.headless.js +1 -1
- package/dist/b2b/index.js +14 -10
- package/dist/index.esm.js +1 -1
- package/dist/index.headless.esm.js +1 -1
- package/dist/index.headless.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
# @stytch/vanilla-js
|
|
2
2
|
|
|
3
|
-
## 3.1
|
|
3
|
+
## 3.2.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 8cd6801: Add Update/Delete Registrations UI
|
|
8
|
+
- bb0c31e: Passkeys: Add Update/Delete Registration UI
|
|
9
|
+
|
|
10
|
+
## 3.2.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- ec1962c: Enable passthrough OAuth paramters from UI configuration
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [ec1962c]
|
|
19
|
+
- @stytch/core@1.4.0
|
|
8
20
|
|
|
9
21
|
## 3.1.1
|
|
10
22
|
|
package/dist/b2b/index.esm.js
CHANGED
|
@@ -2890,7 +2890,7 @@ var Re = /*#__PURE__*/function () {
|
|
|
2890
2890
|
},
|
|
2891
2891
|
sdk: {
|
|
2892
2892
|
identifier: "Stytch.js Javascript SDK",
|
|
2893
|
-
version: "3.
|
|
2893
|
+
version: "3.2.1"
|
|
2894
2894
|
}
|
|
2895
2895
|
});
|
|
2896
2896
|
}
|
|
@@ -13798,10 +13798,12 @@ var py = Ao(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
|
|
|
13798
13798
|
login_redirect_url: e.loginRedirectUrl,
|
|
13799
13799
|
signup_redirect_url: e.signupRedirectUrl,
|
|
13800
13800
|
custom_scopes: e.customScopes,
|
|
13801
|
-
organization_id: n.flowState.organization.organization_id
|
|
13801
|
+
organization_id: n.flowState.organization.organization_id,
|
|
13802
|
+
provider_params: e.providerParams
|
|
13802
13803
|
}) : t.oauth[e.providerType].discovery.start({
|
|
13803
13804
|
discovery_redirect_url: e.discoveryRedirectUrl,
|
|
13804
|
-
custom_scopes: e.customScopes
|
|
13805
|
+
custom_scopes: e.customScopes,
|
|
13806
|
+
provider_params: e.providerParams
|
|
13805
13807
|
});
|
|
13806
13808
|
},
|
|
13807
13809
|
variant: "outlined"
|
|
@@ -13899,10 +13901,11 @@ var Jy = function Jy() {
|
|
|
13899
13901
|
i = _n$oauthOptions.loginRedirectURL,
|
|
13900
13902
|
a = _n$oauthOptions.signupRedirectURL,
|
|
13901
13903
|
s = _n$oauthOptions.discoveryRedirectURL,
|
|
13902
|
-
l = _n$oauthOptions.customScopes
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13904
|
+
l = _n$oauthOptions.customScopes,
|
|
13905
|
+
c = _n$oauthOptions.providerParams;
|
|
13906
|
+
var u = [];
|
|
13907
|
+
r.flowState.organization && "RESTRICTED" === r.flowState.organization.auth_methods && (u = null !== (t = null === (e = r.flowState.organization) || void 0 === e ? void 0 : e.allowed_auth_methods) && void 0 !== t ? t : []);
|
|
13908
|
+
var d = o.map(function (e) {
|
|
13906
13909
|
var _ref53 = function (e) {
|
|
13907
13910
|
switch (e) {
|
|
13908
13911
|
case em.Google:
|
|
@@ -13928,7 +13931,7 @@ var Jy = function Jy() {
|
|
|
13928
13931
|
t = _ref53.icon,
|
|
13929
13932
|
n = _ref53.providerTypeTitle,
|
|
13930
13933
|
o = _ref53.allowedAuthMethod;
|
|
13931
|
-
return !r.flowState.organization || "ALL_ALLOWED" === r.flowState.organization.auth_methods ||
|
|
13934
|
+
return !r.flowState.organization || "ALL_ALLOWED" === r.flowState.organization.auth_methods || u.includes(o) ? Xe.exports.createElement(Ky, {
|
|
13932
13935
|
key: "oauth-".concat(e),
|
|
13933
13936
|
providerType: e,
|
|
13934
13937
|
icon: t,
|
|
@@ -13936,14 +13939,15 @@ var Jy = function Jy() {
|
|
|
13936
13939
|
loginRedirectUrl: i,
|
|
13937
13940
|
signupRedirectUrl: a,
|
|
13938
13941
|
discoveryRedirectUrl: s,
|
|
13939
|
-
customScopes: l
|
|
13942
|
+
customScopes: l,
|
|
13943
|
+
providerParams: c
|
|
13940
13944
|
}) : (console.error("Provider ".concat(e, " is not an `allowed_auth_method` for this organization. Please update your organization settings.")), null);
|
|
13941
13945
|
});
|
|
13942
13946
|
return Xe.exports.createElement(Yg, {
|
|
13943
13947
|
direction: "column",
|
|
13944
13948
|
gap: 8,
|
|
13945
13949
|
className: "oauth-buttons"
|
|
13946
|
-
},
|
|
13950
|
+
}, d);
|
|
13947
13951
|
},
|
|
13948
13952
|
Zy = _o(Jg)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n font-weight: bold !important;\n cursor: pointer;\n"]))),
|
|
13949
13953
|
Xy = function Xy() {
|
package/dist/b2b/index.js
CHANGED
|
@@ -2895,7 +2895,7 @@ var Re = /*#__PURE__*/function () {
|
|
|
2895
2895
|
},
|
|
2896
2896
|
sdk: {
|
|
2897
2897
|
identifier: "Stytch.js Javascript SDK",
|
|
2898
|
-
version: "3.
|
|
2898
|
+
version: "3.2.1"
|
|
2899
2899
|
}
|
|
2900
2900
|
});
|
|
2901
2901
|
}
|
|
@@ -13792,10 +13792,12 @@ var ny = Ao(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
|
|
|
13792
13792
|
login_redirect_url: e.loginRedirectUrl,
|
|
13793
13793
|
signup_redirect_url: e.signupRedirectUrl,
|
|
13794
13794
|
custom_scopes: e.customScopes,
|
|
13795
|
-
organization_id: n.flowState.organization.organization_id
|
|
13795
|
+
organization_id: n.flowState.organization.organization_id,
|
|
13796
|
+
provider_params: e.providerParams
|
|
13796
13797
|
}) : t.oauth[e.providerType].discovery.start({
|
|
13797
13798
|
discovery_redirect_url: e.discoveryRedirectUrl,
|
|
13798
|
-
custom_scopes: e.customScopes
|
|
13799
|
+
custom_scopes: e.customScopes,
|
|
13800
|
+
provider_params: e.providerParams
|
|
13799
13801
|
});
|
|
13800
13802
|
},
|
|
13801
13803
|
variant: "outlined"
|
|
@@ -13893,10 +13895,11 @@ var Fy = function Fy() {
|
|
|
13893
13895
|
i = _n$oauthOptions.loginRedirectURL,
|
|
13894
13896
|
a = _n$oauthOptions.signupRedirectURL,
|
|
13895
13897
|
s = _n$oauthOptions.discoveryRedirectURL,
|
|
13896
|
-
l = _n$oauthOptions.customScopes
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13898
|
+
l = _n$oauthOptions.customScopes,
|
|
13899
|
+
c = _n$oauthOptions.providerParams;
|
|
13900
|
+
var u = [];
|
|
13901
|
+
r.flowState.organization && "RESTRICTED" === r.flowState.organization.auth_methods && (u = null !== (t = null === (e = r.flowState.organization) || void 0 === e ? void 0 : e.allowed_auth_methods) && void 0 !== t ? t : []);
|
|
13902
|
+
var d = o.map(function (e) {
|
|
13900
13903
|
var _ref53 = function (e) {
|
|
13901
13904
|
switch (e) {
|
|
13902
13905
|
case exports.B2BOAuthProviders.Google:
|
|
@@ -13922,7 +13925,7 @@ var Fy = function Fy() {
|
|
|
13922
13925
|
t = _ref53.icon,
|
|
13923
13926
|
n = _ref53.providerTypeTitle,
|
|
13924
13927
|
o = _ref53.allowedAuthMethod;
|
|
13925
|
-
return !r.flowState.organization || "ALL_ALLOWED" === r.flowState.organization.auth_methods ||
|
|
13928
|
+
return !r.flowState.organization || "ALL_ALLOWED" === r.flowState.organization.auth_methods || u.includes(o) ? Xe.exports.createElement(Dy, {
|
|
13926
13929
|
key: "oauth-".concat(e),
|
|
13927
13930
|
providerType: e,
|
|
13928
13931
|
icon: t,
|
|
@@ -13930,14 +13933,15 @@ var Fy = function Fy() {
|
|
|
13930
13933
|
loginRedirectUrl: i,
|
|
13931
13934
|
signupRedirectUrl: a,
|
|
13932
13935
|
discoveryRedirectUrl: s,
|
|
13933
|
-
customScopes: l
|
|
13936
|
+
customScopes: l,
|
|
13937
|
+
providerParams: c
|
|
13934
13938
|
}) : (console.error("Provider ".concat(e, " is not an `allowed_auth_method` for this organization. Please update your organization settings.")), null);
|
|
13935
13939
|
});
|
|
13936
13940
|
return Xe.exports.createElement(jg, {
|
|
13937
13941
|
direction: "column",
|
|
13938
13942
|
gap: 8,
|
|
13939
13943
|
className: "oauth-buttons"
|
|
13940
|
-
},
|
|
13944
|
+
}, d);
|
|
13941
13945
|
},
|
|
13942
13946
|
Uy = _o(Fg)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n font-weight: bold !important;\n cursor: pointer;\n"]))),
|
|
13943
13947
|
Qy = function Qy() {
|