@stytch/vanilla-js 4.3.0 → 4.3.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 +8 -0
- package/dist/b2b/index.esm.js +24 -23
- package/dist/b2b/index.headless.esm.js +1 -1
- package/dist/b2b/index.headless.js +1 -1
- package/dist/b2b/index.js +24 -23
- 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
package/dist/b2b/index.esm.js
CHANGED
|
@@ -3900,7 +3900,7 @@ var Ct = /*#__PURE__*/function () {
|
|
|
3900
3900
|
},
|
|
3901
3901
|
sdk: {
|
|
3902
3902
|
identifier: "Stytch.js Javascript SDK",
|
|
3903
|
-
version: "4.3.
|
|
3903
|
+
version: "4.3.1"
|
|
3904
3904
|
}
|
|
3905
3905
|
});
|
|
3906
3906
|
}
|
|
@@ -10337,21 +10337,22 @@ var Wu = Ja($c)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral
|
|
|
10337
10337
|
Xu = function Xu() {
|
|
10338
10338
|
var e, t, n, r, i, o, a;
|
|
10339
10339
|
var _Ga = Ga(),
|
|
10340
|
-
s = _Ga.
|
|
10341
|
-
c =
|
|
10340
|
+
s = _Ga.displayHeader,
|
|
10341
|
+
c = _Ga.logo,
|
|
10342
|
+
l = ss(),
|
|
10342
10343
|
_as19 = as(),
|
|
10343
10344
|
_as20 = _slicedToArray(_as19, 1),
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
var
|
|
10347
|
-
if ("RESTRICTED" === (null === (e =
|
|
10348
|
-
(null !== (n = null === (t =
|
|
10349
|
-
"sso" === e &&
|
|
10350
|
-
}),
|
|
10351
|
-
return
|
|
10345
|
+
u = _as20[0],
|
|
10346
|
+
d = [];
|
|
10347
|
+
var p = l.products;
|
|
10348
|
+
if ("RESTRICTED" === (null === (e = u.flowState.organization) || void 0 === e ? void 0 : e.auth_methods)) {
|
|
10349
|
+
(null !== (n = null === (t = u.flowState.organization) || void 0 === t ? void 0 : t.allowed_auth_methods) && void 0 !== n ? n : []).forEach(function (e) {
|
|
10350
|
+
"sso" === e && d.push(A.sso), "magic_link" === e && d.push(A.emailMagicLinks), "password" === e && d.push(A.passwords), "google_oauth" !== e && "microsoft_oauth" !== e || d.push(A.oauth);
|
|
10351
|
+
}), p = p.filter(function (e) {
|
|
10352
|
+
return d.includes(e);
|
|
10352
10353
|
});
|
|
10353
10354
|
}
|
|
10354
|
-
var
|
|
10355
|
+
var h = function (e, t) {
|
|
10355
10356
|
var n = e.includes(A.emailMagicLinks) && e.includes(A.passwords),
|
|
10356
10357
|
r = e.map(function (e) {
|
|
10357
10358
|
switch (e) {
|
|
@@ -10378,29 +10379,29 @@ var Wu = Ja($c)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral
|
|
|
10378
10379
|
o = e.includes(A.emailMagicLinks) || e.includes(A.passwords),
|
|
10379
10380
|
a = i && o;
|
|
10380
10381
|
return r.length > 1 && a && r.splice(r.length - 1, 0, qu.Divider), r;
|
|
10381
|
-
}(
|
|
10382
|
-
var
|
|
10383
|
-
switch (
|
|
10382
|
+
}(p, u.flowState.type);
|
|
10383
|
+
var f;
|
|
10384
|
+
switch (u.flowState.type) {
|
|
10384
10385
|
case v.Discovery:
|
|
10385
|
-
|
|
10386
|
+
f = "Sign up or log in";
|
|
10386
10387
|
break;
|
|
10387
10388
|
case v.PasswordReset:
|
|
10388
|
-
|
|
10389
|
+
f = "";
|
|
10389
10390
|
break;
|
|
10390
10391
|
default:
|
|
10391
|
-
|
|
10392
|
+
f = "Continue to ".concat(null !== (i = null === (r = u.flowState.organization) || void 0 === r ? void 0 : r.organization_name) && void 0 !== i ? i : "...");
|
|
10392
10393
|
}
|
|
10393
10394
|
return ui.createElement(Wu, {
|
|
10394
10395
|
direction: "column"
|
|
10395
10396
|
}, ui.createElement(Yu, {
|
|
10396
|
-
appLogo:
|
|
10397
|
-
orgLogo: null !== (a = null === (o =
|
|
10398
|
-
}),
|
|
10397
|
+
appLogo: c.logoImageUrl,
|
|
10398
|
+
orgLogo: null !== (a = null === (o = u.flowState.organization) || void 0 === o ? void 0 : o.organization_logo_url) && void 0 !== a ? a : ""
|
|
10399
|
+
}), s && f ? ui.createElement($c, {
|
|
10399
10400
|
justifyContent: "center"
|
|
10400
10401
|
}, ui.createElement(Ju, {
|
|
10401
10402
|
size: "header"
|
|
10402
|
-
},
|
|
10403
|
-
components:
|
|
10403
|
+
}, f)) : ui.createElement(ui.Fragment, null), ui.createElement(Zu, {
|
|
10404
|
+
components: h
|
|
10404
10405
|
}));
|
|
10405
10406
|
};
|
|
10406
10407
|
var ed = Uu("gmail", function () {
|
package/dist/b2b/index.js
CHANGED
|
@@ -3832,7 +3832,7 @@ var mt = /*#__PURE__*/function () {
|
|
|
3832
3832
|
},
|
|
3833
3833
|
sdk: {
|
|
3834
3834
|
identifier: "Stytch.js Javascript SDK",
|
|
3835
|
-
version: "4.3.
|
|
3835
|
+
version: "4.3.1"
|
|
3836
3836
|
}
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
@@ -10269,21 +10269,22 @@ var Fu = Na(Rc)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral
|
|
|
10269
10269
|
$u = function $u() {
|
|
10270
10270
|
var e, t, n, r, o, i, a;
|
|
10271
10271
|
var _za = za(),
|
|
10272
|
-
s = _za.
|
|
10273
|
-
c =
|
|
10272
|
+
s = _za.displayHeader,
|
|
10273
|
+
c = _za.logo,
|
|
10274
|
+
l = Ya(),
|
|
10274
10275
|
_Ja19 = Ja(),
|
|
10275
10276
|
_Ja20 = _slicedToArray(_Ja19, 1),
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
var
|
|
10279
|
-
if ("RESTRICTED" === (null === (e =
|
|
10280
|
-
(null !== (n = null === (t =
|
|
10281
|
-
"sso" === e &&
|
|
10282
|
-
}),
|
|
10283
|
-
return
|
|
10277
|
+
u = _Ja20[0],
|
|
10278
|
+
d = [];
|
|
10279
|
+
var p = l.products;
|
|
10280
|
+
if ("RESTRICTED" === (null === (e = u.flowState.organization) || void 0 === e ? void 0 : e.auth_methods)) {
|
|
10281
|
+
(null !== (n = null === (t = u.flowState.organization) || void 0 === t ? void 0 : t.allowed_auth_methods) && void 0 !== n ? n : []).forEach(function (e) {
|
|
10282
|
+
"sso" === e && d.push(exports.B2BProducts.sso), "magic_link" === e && d.push(exports.B2BProducts.emailMagicLinks), "password" === e && d.push(exports.B2BProducts.passwords), "google_oauth" !== e && "microsoft_oauth" !== e || d.push(exports.B2BProducts.oauth);
|
|
10283
|
+
}), p = p.filter(function (e) {
|
|
10284
|
+
return d.includes(e);
|
|
10284
10285
|
});
|
|
10285
10286
|
}
|
|
10286
|
-
var
|
|
10287
|
+
var h = function (e, t) {
|
|
10287
10288
|
var n = e.includes(exports.B2BProducts.emailMagicLinks) && e.includes(exports.B2BProducts.passwords),
|
|
10288
10289
|
r = e.map(function (e) {
|
|
10289
10290
|
switch (e) {
|
|
@@ -10310,29 +10311,29 @@ var Fu = Na(Rc)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral
|
|
|
10310
10311
|
i = e.includes(exports.B2BProducts.emailMagicLinks) || e.includes(exports.B2BProducts.passwords),
|
|
10311
10312
|
a = o && i;
|
|
10312
10313
|
return r.length > 1 && a && r.splice(r.length - 1, 0, ju.Divider), r;
|
|
10313
|
-
}(
|
|
10314
|
-
var
|
|
10315
|
-
switch (
|
|
10314
|
+
}(p, u.flowState.type);
|
|
10315
|
+
var f;
|
|
10316
|
+
switch (u.flowState.type) {
|
|
10316
10317
|
case exports.AuthFlowType.Discovery:
|
|
10317
|
-
|
|
10318
|
+
f = "Sign up or log in";
|
|
10318
10319
|
break;
|
|
10319
10320
|
case exports.AuthFlowType.PasswordReset:
|
|
10320
|
-
|
|
10321
|
+
f = "";
|
|
10321
10322
|
break;
|
|
10322
10323
|
default:
|
|
10323
|
-
|
|
10324
|
+
f = "Continue to ".concat(null !== (o = null === (r = u.flowState.organization) || void 0 === r ? void 0 : r.organization_name) && void 0 !== o ? o : "...");
|
|
10324
10325
|
}
|
|
10325
10326
|
return eo.createElement(Fu, {
|
|
10326
10327
|
direction: "column"
|
|
10327
10328
|
}, eo.createElement(Uu, {
|
|
10328
|
-
appLogo:
|
|
10329
|
-
orgLogo: null !== (a = null === (i =
|
|
10330
|
-
}),
|
|
10329
|
+
appLogo: c.logoImageUrl,
|
|
10330
|
+
orgLogo: null !== (a = null === (i = u.flowState.organization) || void 0 === i ? void 0 : i.organization_logo_url) && void 0 !== a ? a : ""
|
|
10331
|
+
}), s && f ? eo.createElement(Rc, {
|
|
10331
10332
|
justifyContent: "center"
|
|
10332
10333
|
}, eo.createElement(Nu, {
|
|
10333
10334
|
size: "header"
|
|
10334
|
-
},
|
|
10335
|
-
components:
|
|
10335
|
+
}, f)) : eo.createElement(eo.Fragment, null), eo.createElement(Qu, {
|
|
10336
|
+
components: h
|
|
10336
10337
|
}));
|
|
10337
10338
|
};
|
|
10338
10339
|
var Ku = Bu("gmail", function () {
|
package/dist/index.esm.js
CHANGED
package/dist/index.headless.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stytch/vanilla-js",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "Stytch's official Javascript Client Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"user"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stytch/core": "2.4.
|
|
33
|
+
"@stytch/core": "2.4.1",
|
|
34
34
|
"@types/google-one-tap": "^1.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|