@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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @stytch/vanilla-js
2
2
 
3
+ ## 4.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3ca7557: Honor `hideHeaderText` configuration for B2B UI
8
+ - Updated dependencies [e21c507]
9
+ - @stytch/core@2.4.1
10
+
3
11
  ## 4.3.0
4
12
 
5
13
  ### Minor Changes
@@ -3900,7 +3900,7 @@ var Ct = /*#__PURE__*/function () {
3900
3900
  },
3901
3901
  sdk: {
3902
3902
  identifier: "Stytch.js Javascript SDK",
3903
- version: "4.3.0"
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.logo,
10341
- c = ss(),
10340
+ s = _Ga.displayHeader,
10341
+ c = _Ga.logo,
10342
+ l = ss(),
10342
10343
  _as19 = as(),
10343
10344
  _as20 = _slicedToArray(_as19, 1),
10344
- l = _as20[0],
10345
- u = [];
10346
- var d = c.products;
10347
- if ("RESTRICTED" === (null === (e = l.flowState.organization) || void 0 === e ? void 0 : e.auth_methods)) {
10348
- (null !== (n = null === (t = l.flowState.organization) || void 0 === t ? void 0 : t.allowed_auth_methods) && void 0 !== n ? n : []).forEach(function (e) {
10349
- "sso" === e && u.push(A.sso), "magic_link" === e && u.push(A.emailMagicLinks), "password" === e && u.push(A.passwords), "google_oauth" !== e && "microsoft_oauth" !== e || u.push(A.oauth);
10350
- }), d = d.filter(function (e) {
10351
- return u.includes(e);
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 p = function (e, t) {
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
- }(d, l.flowState.type);
10382
- var h;
10383
- switch (l.flowState.type) {
10382
+ }(p, u.flowState.type);
10383
+ var f;
10384
+ switch (u.flowState.type) {
10384
10385
  case v.Discovery:
10385
- h = "Sign up or log in";
10386
+ f = "Sign up or log in";
10386
10387
  break;
10387
10388
  case v.PasswordReset:
10388
- h = "";
10389
+ f = "";
10389
10390
  break;
10390
10391
  default:
10391
- h = "Continue to ".concat(null !== (i = null === (r = l.flowState.organization) || void 0 === r ? void 0 : r.organization_name) && void 0 !== i ? i : "...");
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: s.logoImageUrl,
10397
- orgLogo: null !== (a = null === (o = l.flowState.organization) || void 0 === o ? void 0 : o.organization_logo_url) && void 0 !== a ? a : ""
10398
- }), h ? ui.createElement($c, {
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
- }, h)) : ui.createElement(ui.Fragment, null), ui.createElement(Zu, {
10403
- components: p
10403
+ }, f)) : ui.createElement(ui.Fragment, null), ui.createElement(Zu, {
10404
+ components: h
10404
10405
  }));
10405
10406
  };
10406
10407
  var ed = Uu("gmail", function () {
@@ -3898,7 +3898,7 @@ var At = /*#__PURE__*/function () {
3898
3898
  },
3899
3899
  sdk: {
3900
3900
  identifier: "Stytch.js Javascript SDK",
3901
- version: "4.3.0"
3901
+ version: "4.3.1"
3902
3902
  }
3903
3903
  });
3904
3904
  }
@@ -3830,7 +3830,7 @@ var ft = /*#__PURE__*/function () {
3830
3830
  },
3831
3831
  sdk: {
3832
3832
  identifier: "Stytch.js Javascript SDK",
3833
- version: "4.3.0"
3833
+ version: "4.3.1"
3834
3834
  }
3835
3835
  });
3836
3836
  }
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.0"
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.logo,
10273
- c = Ya(),
10272
+ s = _za.displayHeader,
10273
+ c = _za.logo,
10274
+ l = Ya(),
10274
10275
  _Ja19 = Ja(),
10275
10276
  _Ja20 = _slicedToArray(_Ja19, 1),
10276
- l = _Ja20[0],
10277
- u = [];
10278
- var d = c.products;
10279
- if ("RESTRICTED" === (null === (e = l.flowState.organization) || void 0 === e ? void 0 : e.auth_methods)) {
10280
- (null !== (n = null === (t = l.flowState.organization) || void 0 === t ? void 0 : t.allowed_auth_methods) && void 0 !== n ? n : []).forEach(function (e) {
10281
- "sso" === e && u.push(exports.B2BProducts.sso), "magic_link" === e && u.push(exports.B2BProducts.emailMagicLinks), "password" === e && u.push(exports.B2BProducts.passwords), "google_oauth" !== e && "microsoft_oauth" !== e || u.push(exports.B2BProducts.oauth);
10282
- }), d = d.filter(function (e) {
10283
- return u.includes(e);
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 p = function (e, t) {
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
- }(d, l.flowState.type);
10314
- var h;
10315
- switch (l.flowState.type) {
10314
+ }(p, u.flowState.type);
10315
+ var f;
10316
+ switch (u.flowState.type) {
10316
10317
  case exports.AuthFlowType.Discovery:
10317
- h = "Sign up or log in";
10318
+ f = "Sign up or log in";
10318
10319
  break;
10319
10320
  case exports.AuthFlowType.PasswordReset:
10320
- h = "";
10321
+ f = "";
10321
10322
  break;
10322
10323
  default:
10323
- h = "Continue to ".concat(null !== (o = null === (r = l.flowState.organization) || void 0 === r ? void 0 : r.organization_name) && void 0 !== o ? o : "...");
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: s.logoImageUrl,
10329
- orgLogo: null !== (a = null === (i = l.flowState.organization) || void 0 === i ? void 0 : i.organization_logo_url) && void 0 !== a ? a : ""
10330
- }), h ? eo.createElement(Rc, {
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
- }, h)) : eo.createElement(eo.Fragment, null), eo.createElement(Qu, {
10335
- components: p
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
@@ -3814,7 +3814,7 @@ var Qt = /*#__PURE__*/function () {
3814
3814
  },
3815
3815
  sdk: {
3816
3816
  identifier: "Stytch.js Javascript SDK",
3817
- version: "4.3.0"
3817
+ version: "4.3.1"
3818
3818
  }
3819
3819
  });
3820
3820
  }
@@ -3796,7 +3796,7 @@ var Nt = /*#__PURE__*/function () {
3796
3796
  },
3797
3797
  sdk: {
3798
3798
  identifier: "Stytch.js Javascript SDK",
3799
- version: "4.3.0"
3799
+ version: "4.3.1"
3800
3800
  }
3801
3801
  });
3802
3802
  }
@@ -3714,7 +3714,7 @@ var Mt = /*#__PURE__*/function () {
3714
3714
  },
3715
3715
  sdk: {
3716
3716
  identifier: "Stytch.js Javascript SDK",
3717
- version: "4.3.0"
3717
+ version: "4.3.1"
3718
3718
  }
3719
3719
  });
3720
3720
  }
package/dist/index.js CHANGED
@@ -3746,7 +3746,7 @@ var It = /*#__PURE__*/function () {
3746
3746
  },
3747
3747
  sdk: {
3748
3748
  identifier: "Stytch.js Javascript SDK",
3749
- version: "4.3.0"
3749
+ version: "4.3.1"
3750
3750
  }
3751
3751
  });
3752
3752
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/vanilla-js",
3
- "version": "4.3.0",
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.0",
33
+ "@stytch/core": "2.4.1",
34
34
  "@types/google-one-tap": "^1.2.0"
35
35
  },
36
36
  "devDependencies": {