@stytch/vanilla-js 4.7.7 → 4.8.0

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,31 @@
1
1
  # @stytch/vanilla-js
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b007d98: Enable FedCM for use with Google One Tap by default. For users using supported browsers (including Google Chrome and other Chromium-based browsers), Google One Tap will now use [FedCM to provide a sign in experience using native browser prompts](https://developers.google.com/identity/gsi/web/guides/fedcm-migration).
8
+
9
+ Due to changes in Google's One Tap SDK, this affects One Tap using both floating and embedded positioning. Notably, users of Chrome and other Chromium-based browsers will no longer see a embedded One Tap UI by default. Google will begin to remove support for this UI later this year. We recommend adopting the new default behavior, but we have added new position options if you require different behavior:
10
+
11
+ - `floating` remains the default option and uses Google's One Tap SDK's default behavior. It uses FedCM (native browser UI) where available, or renders a floating UI in the top right corner otherwise.
12
+ - `floatingOrEmbedded` uses FedCM where available, or renders an embedded UI in the existing SDK login form otherwise. This is the new default behavior of the `embedded` position, which has been deprecated and renamed for clarity.
13
+ - `embeddedOnly` renders the embedded UI in the existing SDK login form if FedCM is not available, or not at all otherwise. This option is not recommended for new applications. For applications that used `embedded` positioning and do not want to show floating or native browser UI, this option may be useful.
14
+ - `forceLegacyEmbedded` retains the legacy behavior by disabling FedCM support even where it is available. This option is not recommended and will stop being honored by Google in the future, at which time you will need to select a different option.
15
+
16
+ The `embedded` position will still be recognized and treated as `floatingOrEmbedded`, but we recommend updating your configuration to use the new name or a different option.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [b007d98]
21
+ - @stytch/core@2.12.0
22
+
23
+ ## 4.7.8
24
+
25
+ ### Patch Changes
26
+
27
+ - 565ec50: Fix an issue where a B2B member enrolled in MFA with an unverified phone number was prompted to re-enter a phone number instead of the OTP that was sent to verify their number
28
+
3
29
  ## 4.7.7
4
30
 
5
31
  ### Patch Changes
@@ -146,7 +146,7 @@ var p, h, m, f, g, _, A;
146
146
  }(h || (h = {})), function (e) {
147
147
  e.Vessel = "Vessel", e.Phantom = "Phantom", e.Metamask = "Metamask", e.Coinbase = "Coinbase", e.Binance = "Binance", e.GenericEthereumWallet = "Other Ethereum Wallet", e.GenericSolanaWallet = "Other Solana Wallet";
148
148
  }(m || (m = {})), function (e) {
149
- e.embedded = "embedded", e.floating = "floating";
149
+ e.embedded = "embedded", e.floating = "floating", e.embeddedOnly = "embeddedOnly", e.floatingOrEmbedded = "floatingOrEmbedded", e.forceLegacyEmbedded = "forceLegacyEmbedded";
150
150
  }(f || (f = {})), function (e) {
151
151
  e.SMS = "sms", e.WhatsApp = "whatsapp", e.Email = "email";
152
152
  }(g || (g = {})), function (e) {
@@ -4130,7 +4130,7 @@ var wt = /*#__PURE__*/function () {
4130
4130
  },
4131
4131
  sdk: {
4132
4132
  identifier: "Stytch.js Javascript SDK",
4133
- version: "4.7.7"
4133
+ version: "4.8.0"
4134
4134
  }
4135
4135
  });
4136
4136
  }
@@ -7245,43 +7245,42 @@ var Ha = function Ha() {
7245
7245
  _l2 = function _l2(e) {
7246
7246
  return 0 === _c2.organizationMfaOptionsSupported.length || _c2.organizationMfaOptionsSupported.includes(e);
7247
7247
  },
7248
- _u2 = null !== (r = function () {
7248
+ _u2 = function _u2() {
7249
7249
  var e = $a(t.response.member.default_mfa_method);
7250
7250
  if (e && _l2(e) && _c2.enrolledMfaMethods.includes(e)) return e;
7251
- }()) && void 0 !== r ? r : _c2.enrolledMfaMethods.find(_l2);
7252
- if (_u2) {
7253
- var _n3 = Object.assign(Object.assign({}, Na), {
7251
+ },
7252
+ _d2 = "sms_otp" === (null === (r = t.response.mfa_required) || void 0 === r ? void 0 : r.secondary_auth_initiated),
7253
+ _p2 = _d2 ? b.smsOtp : null !== (o = _u2()) && void 0 !== o ? o : _c2.enrolledMfaMethods.find(_l2);
7254
+ if (_p2) {
7255
+ var _t2 = Object.assign(Object.assign({}, Na), {
7254
7256
  primaryInfo: _c2
7255
7257
  });
7256
- switch (_u2) {
7258
+ switch (_p2) {
7257
7259
  case b.smsOtp:
7258
- {
7259
- var _r2 = "sms_otp" === (null === (o = t.response.mfa_required) || void 0 === o ? void 0 : o.secondary_auth_initiated);
7260
- return Object.assign(Object.assign({}, e), {
7261
- mfa: Object.assign(Object.assign({}, _n3), {
7262
- smsOtp: Object.assign(Object.assign({}, Na.smsOtp), {
7263
- codeExpiration: _r2 ? Ha() : null
7264
- })
7265
- }),
7266
- screen: qa.SMSOTPEntry
7267
- });
7268
- }
7260
+ return Object.assign(Object.assign({}, e), {
7261
+ mfa: Object.assign(Object.assign({}, _t2), {
7262
+ smsOtp: Object.assign(Object.assign({}, Na.smsOtp), {
7263
+ codeExpiration: _d2 ? Ha() : null
7264
+ })
7265
+ }),
7266
+ screen: qa.SMSOTPEntry
7267
+ });
7269
7268
  case b.totp:
7270
7269
  return Object.assign(Object.assign({}, e), {
7271
- mfa: _n3,
7270
+ mfa: _t2,
7272
7271
  screen: qa.TOTPEntry
7273
7272
  });
7274
7273
  }
7275
7274
  }
7276
- var _d2 = Qa({
7275
+ var _h = Qa({
7277
7276
  allMethods: Ka,
7278
7277
  orgSupportedMethods: _c2.organizationMfaOptionsSupported,
7279
7278
  uiIncludedMethods: t.includedMfaMethods
7280
7279
  }),
7281
- _p2 = function _p2() {
7282
- if (1 === _d2.size) {
7283
- if (_d2.has(b.totp)) return qa.TOTPEnrollmentQRCode;
7284
- if (_d2.has(b.smsOtp)) return qa.SMSOTPEnrollment;
7280
+ _m = function _m() {
7281
+ if (1 === _h.size) {
7282
+ if (_h.has(b.totp)) return qa.TOTPEnrollmentQRCode;
7283
+ if (_h.has(b.smsOtp)) return qa.SMSOTPEnrollment;
7285
7284
  }
7286
7285
  return qa.MFAEnrollmentSelection;
7287
7286
  };
@@ -7290,14 +7289,14 @@ var Ha = function Ha() {
7290
7289
  primaryInfo: _c2,
7291
7290
  isEnrolling: !0
7292
7291
  }),
7293
- screen: _p2()
7292
+ screen: _m()
7294
7293
  });
7295
7294
  }
7296
7295
  case "mfa/start_enrollment":
7297
7296
  {
7298
- var _n4 = t.method === b.smsOtp ? qa.SMSOTPEnrollment : qa.TOTPEnrollmentQRCode;
7297
+ var _n3 = t.method === b.smsOtp ? qa.SMSOTPEnrollment : qa.TOTPEnrollmentQRCode;
7299
7298
  return Object.assign(Object.assign({}, e), {
7300
- screen: _n4
7299
+ screen: _n3
7301
7300
  });
7302
7301
  }
7303
7302
  case "sms_otp/authenticate_success":
@@ -7411,16 +7410,16 @@ var Ha = function Ha() {
7411
7410
  case "totp/show_code":
7412
7411
  {
7413
7412
  if (!e.mfa.isEnrolling || !e.mfa.totp.enrollment) return e;
7414
- var _n5 = null !== (y = null !== (v = t.method) && void 0 !== v ? v : e.mfa.totp.enrollment.method) && void 0 !== y ? y : "qr";
7413
+ var _n4 = null !== (y = null !== (v = t.method) && void 0 !== v ? v : e.mfa.totp.enrollment.method) && void 0 !== y ? y : "qr";
7415
7414
  return Object.assign(Object.assign({}, e), {
7416
7415
  mfa: Object.assign(Object.assign({}, e.mfa), {
7417
7416
  totp: Object.assign(Object.assign({}, e.mfa.totp), {
7418
7417
  enrollment: Object.assign(Object.assign({}, e.mfa.totp.enrollment), {
7419
- method: _n5
7418
+ method: _n4
7420
7419
  })
7421
7420
  })
7422
7421
  }),
7423
- screen: "manual" === _n5 ? qa.TOTPEnrollmentManual : qa.TOTPEnrollmentQRCode
7422
+ screen: "manual" === _n4 ? qa.TOTPEnrollmentManual : qa.TOTPEnrollmentQRCode
7424
7423
  });
7425
7424
  }
7426
7425
  default:
@@ -8145,7 +8144,7 @@ var ps,
8145
8144
  ws = function ws(e) {
8146
8145
  if ("object" == _typeof(e)) {
8147
8146
  var t = "";
8148
- for (var _n6 in e) t += _n6 + ws(e[_n6]);
8147
+ for (var _n5 in e) t += _n5 + ws(e[_n5]);
8149
8148
  return t;
8150
8149
  }
8151
8150
  return e;
@@ -8159,14 +8158,14 @@ var ps,
8159
8158
  return "go" + n;
8160
8159
  }(i));
8161
8160
  if (!bs[a]) {
8162
- var _t2 = i !== e ? e : function (e) {
8161
+ var _t3 = i !== e ? e : function (e) {
8163
8162
  var t,
8164
8163
  n,
8165
8164
  r = [{}];
8166
8165
  for (; t = _s.exec(e.replace(As, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(vs, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(vs, " ").trim();
8167
8166
  return r[0];
8168
8167
  }(e);
8169
- bs[a] = ys(o ? _defineProperty({}, "@keyframes " + a, _t2) : _t2, n ? "" : "." + a);
8168
+ bs[a] = ys(o ? _defineProperty({}, "@keyframes " + a, _t3) : _t3, n ? "" : "." + a);
8170
8169
  }
8171
8170
  var s = n && bs.g ? bs.g : null;
8172
8171
  return n && (bs.g = bs[a]), function (e, t, n, r) {
@@ -8178,8 +8177,8 @@ var ps,
8178
8177
  var i = t[o];
8179
8178
  if (i && i.call) {
8180
8179
  var _e4 = i(n),
8181
- _t3 = _e4 && _e4.props && _e4.props.className || /^go/.test(_e4) && _e4;
8182
- i = _t3 ? "." + _t3 : _e4 && "object" == _typeof(_e4) ? _e4.props ? "" : ys(_e4, "") : !1 === _e4 ? "" : _e4;
8180
+ _t4 = _e4 && _e4.props && _e4.props.className || /^go/.test(_e4) && _e4;
8181
+ i = _t4 ? "." + _t4 : _e4 && "object" == _typeof(_e4) ? _e4.props ? "" : ys(_e4, "") : !1 === _e4 ? "" : _e4;
8183
8182
  }
8184
8183
  return e + r + (null == i ? "" : i);
8185
8184
  }, "");
@@ -9063,8 +9062,8 @@ var pl = function pl(e) {
9063
9062
  }
9064
9063
  if (n == nl) {
9065
9064
  o = "#";
9066
- var _t4 = nl.keys(e).sort();
9067
- for (; !rl(i = _t4.pop());) rl(e[i]) || (o += i + ":" + pl(e[i]) + ",");
9065
+ var _t5 = nl.keys(e).sort();
9066
+ for (; !rl(i = _t5.pop());) rl(e[i]) || (o += i + ":" + pl(e[i]) + ",");
9068
9067
  ul.set(e, o);
9069
9068
  }
9070
9069
  }
@@ -9132,7 +9131,7 @@ function Il() {
9132
9131
  e[_key] = arguments[_key];
9133
9132
  }
9134
9133
  return vt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
9135
- var t, n, r, o, i, a, s, c, l, u, _e5, _r3, _o3, _n7, _o4, d;
9134
+ var t, n, r, o, i, a, s, c, l, u, _e5, _r2, _o3, _n6, _o4, d;
9136
9135
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
9137
9136
  while (1) switch (_context8.prev = _context8.next) {
9138
9137
  case 0:
@@ -9243,12 +9242,12 @@ function Il() {
9243
9242
  _context8.next = 10;
9244
9243
  break;
9245
9244
  }
9246
- _e5 = n, _r3 = [], _o3 = t.keys();
9247
- for (_n7 = _o3.next(); !_n7.done; _n7 = _o3.next()) {
9248
- _o4 = _n7.value;
9249
- !/^\$(inf|sub)\$/.test(_o4) && _e5(t.get(_o4)._k) && _r3.push(_o4);
9245
+ _e5 = n, _r2 = [], _o3 = t.keys();
9246
+ for (_n6 = _o3.next(); !_n6.done; _n6 = _o3.next()) {
9247
+ _o4 = _n6.value;
9248
+ !/^\$(inf|sub)\$/.test(_o4) && _e5(t.get(_o4)._k) && _r2.push(_o4);
9250
9249
  }
9251
- return _context8.abrupt("return", Promise.all(_r3.map(d)));
9250
+ return _context8.abrupt("return", Promise.all(_r2.map(d)));
9252
9251
  case 10:
9253
9252
  return _context8.abrupt("return", d(n));
9254
9253
  case 11:
@@ -9259,12 +9258,12 @@ function Il() {
9259
9258
  }));
9260
9259
  }
9261
9260
  var Ml = function Ml(e, t) {
9262
- for (var _n8 in e) e[_n8][0] && e[_n8][0](t);
9261
+ for (var _n7 in e) e[_n7][0] && e[_n7][0](t);
9263
9262
  },
9264
9263
  _ref8 = function (e, t) {
9265
9264
  if (!Yc.has(e)) {
9266
- var _n9 = il(_l, t),
9267
- _r4 = {},
9265
+ var _n8 = il(_l, t),
9266
+ _r3 = {},
9268
9267
  _o5 = Il.bind(tl, e);
9269
9268
  var _i4 = el;
9270
9269
  var _a3 = {},
@@ -9293,11 +9292,11 @@ var Ml = function Ml(e, t) {
9293
9292
  }
9294
9293
  },
9295
9294
  _l3 = function _l3() {
9296
- if (!Yc.has(e) && (Yc.set(e, [_r4, {}, {}, {}, _o5, _c3, _s3]), !vl)) {
9297
- var _t5 = _n9.initFocus(setTimeout.bind(tl, Ml.bind(tl, _r4, 0))),
9298
- _o6 = _n9.initReconnect(setTimeout.bind(tl, Ml.bind(tl, _r4, 1)));
9295
+ if (!Yc.has(e) && (Yc.set(e, [_r3, {}, {}, {}, _o5, _c3, _s3]), !vl)) {
9296
+ var _t6 = _n8.initFocus(setTimeout.bind(tl, Ml.bind(tl, _r3, 0))),
9297
+ _o6 = _n8.initReconnect(setTimeout.bind(tl, Ml.bind(tl, _r3, 1)));
9299
9298
  _i4 = function _i4() {
9300
- _t5 && _t5(), _o6 && _o6(), Yc["delete"](e);
9299
+ _t6 && _t6(), _o6 && _o6(), Yc["delete"](e);
9301
9300
  };
9302
9301
  }
9303
9302
  };
@@ -9404,8 +9403,8 @@ var $l,
9404
9403
  T = rl(a) ? n.fallback[g] : a,
9405
9404
  I = function I(e, t) {
9406
9405
  var n = !0;
9407
- for (var _r5 in P) {
9408
- var _i5 = _r5;
9406
+ for (var _r4 in P) {
9407
+ var _i5 = _r4;
9409
9408
  "data" === _i5 ? o(t[_i5], e[_i5]) || rl(e[_i5]) && o(t[_i5], N) || (n = !1) : t[_i5] !== e[_i5] && (n = !1);
9410
9409
  }
9411
9410
  return n;
@@ -9449,7 +9448,7 @@ var $l,
9449
9448
  H = rl(B.isLoading) ? Q : B.isLoading,
9450
9449
  K = Yn(function (e) {
9451
9450
  return vt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
9452
- var t, r, i, a, s, c, l, u, d, p, w, _f$g, _e7, _s4, _t6, _n10;
9451
+ var t, r, i, a, s, c, l, u, d, p, w, _f$g, _e7, _s4, _t7, _n9;
9453
9452
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
9454
9453
  while (1) switch (_context9.prev = _context9.next) {
9455
9454
  case 0:
@@ -9507,8 +9506,8 @@ var $l,
9507
9506
  _context9.prev = 23;
9508
9507
  _context9.t0 = _context9["catch"](6);
9509
9508
  p();
9510
- _t6 = k(), _n10 = _t6.shouldRetryOnError;
9511
- _t6.isPaused() || (u.error = _context9.t0, c && l() && (_t6.onError(_context9.t0, g, _t6), (!0 === _n10 || ol(_n10) && _n10(_context9.t0)) && E() && _t6.onErrorRetry(_context9.t0, g, _t6, function (e) {
9509
+ _t7 = k(), _n9 = _t7.shouldRetryOnError;
9510
+ _t7.isPaused() || (u.error = _context9.t0, c && l() && (_t7.onError(_context9.t0, g, _t7), (!0 === _n9 || ol(_n9) && _n9(_context9.t0)) && E() && _t7.onErrorRetry(_context9.t0, g, _t7, function (e) {
9512
9511
  var t = h[g];
9513
9512
  t && t[0] && t[0](Tl, e);
9514
9513
  }, {
@@ -9545,8 +9544,8 @@ var $l,
9545
9544
  }(g, h, function (n) {
9546
9545
  var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9547
9546
  if (n == xl) {
9548
- var _n11 = Date.now();
9549
- k().revalidateOnFocus && _n11 > t && E() && (t = _n11 + k().focusThrottleInterval, e());
9547
+ var _n10 = Date.now();
9548
+ k().revalidateOnFocus && _n10 > t && E() && (t = _n10 + k().focusThrottleInterval, e());
9550
9549
  } else if (n == Ol) k().revalidateOnReconnect && E() && e();else {
9551
9550
  if (n == Pl) return K();
9552
9551
  if (n == Tl) return K(r);
@@ -9601,11 +9600,11 @@ var $l,
9601
9600
  i = function (e, t) {
9602
9601
  var n = il(e, t);
9603
9602
  if (t) {
9604
- var _r6 = e.use,
9603
+ var _r5 = e.use,
9605
9604
  _o7 = e.fallback,
9606
9605
  _i6 = t.use,
9607
9606
  _a4 = t.fallback;
9608
- _r6 && _i6 && (n.use = _r6.concat(_i6)), _o7 && _a4 && (n.fallback = il(_o7, _a4));
9607
+ _r5 && _i6 && (n.use = _r5.concat(_i6)), _o7 && _a4 && (n.fallback = il(_o7, _a4));
9609
9608
  }
9610
9609
  return n;
9611
9610
  }(t, o);
@@ -9651,9 +9650,9 @@ var Kl = function (e, t) {
9651
9650
  i = Yn(function (e) {
9652
9651
  var i = !1;
9653
9652
  var a = r.current;
9654
- for (var _t7 in e) {
9655
- var _n12 = _t7;
9656
- a[_n12] !== e[_n12] && (a[_n12] = e[_n12], o.current[_n12] && (i = !0));
9653
+ for (var _t8 in e) {
9654
+ var _n11 = _t8;
9655
+ a[_n11] !== e[_n11] && (a[_n11] = e[_n11], o.current[_n11] && (i = !0));
9657
9656
  }
9658
9657
  i && !n.current && (Al ? t({}) : lo.startTransition(function () {
9659
9658
  return t({});
@@ -9676,7 +9675,7 @@ var Kl = function (e, t) {
9676
9675
  d = c.current,
9677
9676
  p = Yn(function (e, t) {
9678
9677
  return vt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
9679
- var _El5, _El6, n, c, l, d, _t8;
9678
+ var _El5, _El6, n, c, l, d, _t9;
9680
9679
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
9681
9680
  while (1) switch (_context10.prev = _context10.next) {
9682
9681
  case 0:
@@ -9708,12 +9707,12 @@ var Kl = function (e, t) {
9708
9707
  throwOnError: !0
9709
9708
  }));
9710
9709
  case 10:
9711
- _t8 = _context10.sent;
9710
+ _t9 = _context10.sent;
9712
9711
  return _context10.abrupt("return", (s.current <= d && (u({
9713
- data: _t8,
9712
+ data: _t9,
9714
9713
  isMutating: !1,
9715
9714
  error: void 0
9716
- }), null == l.onSuccess || l.onSuccess(_t8, n, l)), _t8));
9715
+ }), null == l.onSuccess || l.onSuccess(_t9, n, l)), _t9));
9717
9716
  case 14:
9718
9717
  _context10.prev = 14;
9719
9718
  _context10.t0 = _context10["catch"](7);
@@ -10811,9 +10810,9 @@ var Uu = za(Dc)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral
10811
10810
  return null !== e;
10812
10811
  });
10813
10812
  if (n) {
10814
- var _n13 = e.indexOf(v.passwords),
10813
+ var _n12 = e.indexOf(v.passwords),
10815
10814
  _o8 = e.indexOf(v.emailMagicLinks),
10816
- _i7 = Math.min(_n13, _o8),
10815
+ _i7 = Math.min(_n12, _o8),
10817
10816
  _a5 = t === y.Organization ? Nu.PasswordEMLCombined : Nu.MagicLinkEmailDiscoveryForm;
10818
10817
  r.splice(_i7, 0, _a5);
10819
10818
  }
@@ -12555,12 +12554,12 @@ var $d = function $d() {
12555
12554
  o = n <= 0;
12556
12555
  Vn(function () {
12557
12556
  if (!o) {
12558
- var _t9 = function _t9() {
12557
+ var _t10 = function _t10() {
12559
12558
  return r(lp(e));
12560
12559
  },
12561
- _n14 = setInterval(_t9, 1e3);
12562
- return _t9(), function () {
12563
- return clearInterval(_n14);
12560
+ _n13 = setInterval(_t10, 1e3);
12561
+ return _t10(), function () {
12562
+ return clearInterval(_n13);
12564
12563
  };
12565
12564
  }
12566
12565
  }, [o, e]);
@@ -12696,7 +12695,11 @@ var $d = function $d() {
12696
12695
  return !i && c.includes(b.totp) && (0 === p.length || p.includes(b.totp));
12697
12696
  }, [c, i, p]),
12698
12697
  w = A ? "Invalid passcode, please try again." : void 0,
12699
- k = i;
12698
+ k = Jn(function () {
12699
+ return i || 0 === c.length || p.length > 0 && !c.some(function (e) {
12700
+ return p.includes(e);
12701
+ });
12702
+ }, [c, i, p]);
12700
12703
  return lo.createElement(Dc, {
12701
12704
  direction: "column",
12702
12705
  gap: 24
@@ -13217,7 +13220,7 @@ var mp = za.button(_templateObject44 || (_templateObject44 = _taggedTemplateLite
13217
13220
  return null;
13218
13221
  } : function (e) {
13219
13222
  if (e.config.enableShadowDOM) {
13220
- var _t10 = function (e, t) {
13223
+ var _t11 = function (e, t) {
13221
13224
  var n = customElements.get(t);
13222
13225
  if (n) return n;
13223
13226
  var r = /*#__PURE__*/function (_HTMLElement) {
@@ -13243,8 +13246,8 @@ var mp = za.button(_templateObject44 || (_templateObject44 = _taggedTemplateLite
13243
13246
  }, {
13244
13247
  key: "renderOneTap",
13245
13248
  value: function renderOneTap(e) {
13246
- var t, n, _r7;
13247
- var o = null === (_r7 = null === (n = null === (t = null == e ? void 0 : e.config) || void 0 === t ? void 0 : t.oauthOptions) || void 0 === n ? void 0 : n.providers) || void 0 === _r7 ? void 0 : _r7.find(function (e) {
13249
+ var t, n, _r6;
13250
+ var o = null === (_r6 = null === (n = null === (t = null == e ? void 0 : e.config) || void 0 === t ? void 0 : t.oauthOptions) || void 0 === n ? void 0 : n.providers) || void 0 === _r6 ? void 0 : _r6.find(function (e) {
13248
13251
  return e.type === h.Google && e.one_tap;
13249
13252
  }),
13250
13253
  i = this.innerHTML.includes(Fa);
@@ -13264,10 +13267,10 @@ var mp = za.button(_templateObject44 || (_templateObject44 = _taggedTemplateLite
13264
13267
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
13265
13268
  return customElements.define(t, r), r;
13266
13269
  }(Op, Pp);
13267
- return new _t10(e);
13270
+ return new _t11(e);
13268
13271
  }
13269
13272
  {
13270
- var _t11 = function (e, t) {
13273
+ var _t12 = function (e, t) {
13271
13274
  var n = customElements.get(t);
13272
13275
  if (n) return n;
13273
13276
  var r = /*#__PURE__*/function (_HTMLElement2) {
@@ -13302,7 +13305,7 @@ var mp = za.button(_templateObject44 || (_templateObject44 = _taggedTemplateLite
13302
13305
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
13303
13306
  return customElements.define(t, r), r;
13304
13307
  }(Op, Pp);
13305
- return new _t11(e);
13308
+ return new _t12(e);
13306
13309
  }
13307
13310
  });
13308
13311
  var Op, Pp;
@@ -140,7 +140,7 @@ var h, p, f, _, m, v, b;
140
140
  }(p || (p = {})), function (e) {
141
141
  e.Vessel = "Vessel", e.Phantom = "Phantom", e.Metamask = "Metamask", e.Coinbase = "Coinbase", e.Binance = "Binance", e.GenericEthereumWallet = "Other Ethereum Wallet", e.GenericSolanaWallet = "Other Solana Wallet";
142
142
  }(f || (f = {})), function (e) {
143
- e.embedded = "embedded", e.floating = "floating";
143
+ e.embedded = "embedded", e.floating = "floating", e.embeddedOnly = "embeddedOnly", e.floatingOrEmbedded = "floatingOrEmbedded", e.forceLegacyEmbedded = "forceLegacyEmbedded";
144
144
  }(_ || (_ = {})), function (e) {
145
145
  e.SMS = "sms", e.WhatsApp = "whatsapp", e.Email = "email";
146
146
  }(m || (m = {})), function (e) {
@@ -4006,7 +4006,7 @@ var yt = /*#__PURE__*/function () {
4006
4006
  },
4007
4007
  sdk: {
4008
4008
  identifier: "Stytch.js Javascript SDK",
4009
- version: "4.7.7"
4009
+ version: "4.8.0"
4010
4010
  }
4011
4011
  });
4012
4012
  }