@stytch/vanilla-js 4.13.0 → 4.13.2

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.
@@ -27,10 +27,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
27
27
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
28
28
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
29
29
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
30
- import { E as EMAIL_REGEX, d as debounce, S as StytchB2BHeadlessClient } from '../index.headless-CULr-Rz6.js';
31
- import { w as wn, q, F, m as merge, y, p as p$1, a as w, g as g$1, h as h$1, N, H as He, b as withMiddleware, u as useSWR, c as useSWRConfig, _, d as useStateWithDeps, T, s as serialize, e as mergeObjects, f as getTimestamp, U as UNDEFINED, i as useIsomorphicLayoutEffect, j as Ue, Z as Ze, k as extractErrorMessage, C as CreateSSRSafeWebComponent, l as Fe } from '../extractErrorMessage-BhKRYH2d.js';
32
- import { B as B2BMFAProducts, A as AuthFlowType, a as B2BProducts, b as OTPMethods, W as Wallets, P as Products, S as StytchEventType, r as readB2BInternals, D as DEFAULT_SESSION_DURATION_MINUTES, _ as __awaiter, c as StytchAPIError, d as B2BOAuthProviders, l as logger, e as OneTapPositions, i as isTestPublicToken, C as COUNTRIES_LIST, f as StytchSDKError, g as checkNotSSR } from '../internal-DA-B7n9p.js';
33
- export { h as BiometricsFailedError, j as BiometricsUnavailableError, k as ChallengeSigningFailedError, m as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, n as FailedToDecryptDataError, I as InternalError, o as InvalidAuthorizationCredentialError, p as InvalidCredentialTypeError, q as InvalidRedirectSchemeError, s as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, t as KeystoreUnavailableError, M as MissingAttestationObjectError, u as MissingAuthorizationCredentialIDTokenError, v as MissingGoogleClientIDError, w as MissingPKCEError, x as MissingPublicKeyError, y as MissingUrlError, N as NoBiometricsEnrolledError, z as NoBiometricsRegistrationError, E as NoCredentialsPresentError, G as NoCurrentSessionError, O as OAuthProviders, H as PasskeysInvalidEncoding, L as PasskeysMisconfigured, Q as PasskeysUnsupportedError, R as RNUIProducts, T as RandomNumberGenerationFailed, U as SDKAPIUnreachableError, V as SDKNotConfiguredError, X as SignInWithAppleMisconfigured, Y as StytchAPISchemaError, Z as StytchAPIUnreachableError, $ as StytchError, a0 as StytchSDKAPIError, a1 as StytchSDKSchemaError, a2 as StytchSDKUsageError, a3 as UNRECOVERABLE_ERROR_TYPES, a4 as UserCancellationError, a5 as UserLockedOutError, a6 as errorToStytchError } from '../internal-DA-B7n9p.js';
30
+ import { E as EMAIL_REGEX, d as debounce, S as StytchB2BHeadlessClient } from '../index.headless-B3xD-OBz.js';
31
+ import { w as wn, q, F, m as merge, y, p as p$1, a as w, g as g$1, h as h$1, N, H as He, b as withMiddleware, u as useSWR, c as useSWRConfig, _, d as useStateWithDeps, T, s as serialize, e as mergeObjects, f as getTimestamp, U as UNDEFINED, i as useIsomorphicLayoutEffect, j as Ue, Z as Ze, k as extractErrorMessage, C as CreateSSRSafeWebComponent, l as Fe } from '../extractErrorMessage-HqH3v6mm.js';
32
+ import { B as B2BMFAProducts, A as AuthFlowType, a as B2BProducts, b as OTPMethods, W as Wallets, P as Products, S as StytchEventType, r as readB2BInternals, D as DEFAULT_SESSION_DURATION_MINUTES, _ as __awaiter, c as StytchAPIError, d as B2BOAuthProviders, l as logger, e as OneTapPositions, i as isTestPublicToken, C as COUNTRIES_LIST, f as StytchSDKError, g as checkNotSSR } from '../internal-CfUZ681R.js';
33
+ export { h as BiometricsFailedError, j as BiometricsUnavailableError, k as ChallengeSigningFailedError, m as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, n as FailedToDecryptDataError, I as InternalError, o as InvalidAuthorizationCredentialError, p as InvalidCredentialTypeError, q as InvalidRedirectSchemeError, s as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, t as KeystoreUnavailableError, M as MissingAttestationObjectError, u as MissingAuthorizationCredentialIDTokenError, v as MissingGoogleClientIDError, w as MissingPKCEError, x as MissingPublicKeyError, y as MissingUrlError, N as NoBiometricsEnrolledError, z as NoBiometricsRegistrationError, E as NoCredentialsPresentError, G as NoCurrentSessionError, O as OAuthProviders, H as PasskeysInvalidEncoding, L as PasskeysMisconfigured, Q as PasskeysUnsupportedError, R as RNUIProducts, T as RandomNumberGenerationFailed, U as SDKAPIUnreachableError, V as SDKNotConfiguredError, X as SignInWithAppleMisconfigured, Y as StytchAPISchemaError, Z as StytchAPIUnreachableError, $ as StytchError, a0 as StytchSDKAPIError, a1 as StytchSDKSchemaError, a2 as StytchSDKUsageError, a3 as UNRECOVERABLE_ERROR_TYPES, a4 as UserCancellationError, a5 as UserLockedOutError, a6 as errorToStytchError } from '../internal-CfUZ681R.js';
34
34
  var DEFAULT_MFA_STATE = {
35
35
  primaryInfo: null,
36
36
  isEnrolling: false,
@@ -4695,7 +4695,7 @@ var CountrySelector = function CountrySelector(_ref74) {
4695
4695
  }, countryCode !== country ? "+".concat(countryNumber, " ").concat(countryFormatter.of(countryCode)) : "+".concat(countryNumber));
4696
4696
  }));
4697
4697
  };
4698
- var PhoneStyledInput = He(Input)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n flex-grow: 1;\n"])));
4698
+ var PhoneStyledInput = He(Input)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n flex-grow: 1;\n min-width: 100px;\n"])));
4699
4699
  var PhoneInput = function PhoneInput(_ref77) {
4700
4700
  var phone = _ref77.phone,
4701
4701
  setPhone = _ref77.setPhone,
@@ -1,2 +1,2 @@
1
- export { S as StytchB2BHeadlessClient } from '../index.headless-CULr-Rz6.js';
2
- export { A as AuthFlowType, B as B2BMFAProducts, d as B2BOAuthProviders, a as B2BProducts, h as BiometricsFailedError, j as BiometricsUnavailableError, k as ChallengeSigningFailedError, m as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, n as FailedToDecryptDataError, I as InternalError, o as InvalidAuthorizationCredentialError, p as InvalidCredentialTypeError, q as InvalidRedirectSchemeError, s as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, t as KeystoreUnavailableError, M as MissingAttestationObjectError, u as MissingAuthorizationCredentialIDTokenError, v as MissingGoogleClientIDError, w as MissingPKCEError, x as MissingPublicKeyError, y as MissingUrlError, N as NoBiometricsEnrolledError, z as NoBiometricsRegistrationError, E as NoCredentialsPresentError, G as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, e as OneTapPositions, H as PasskeysInvalidEncoding, L as PasskeysMisconfigured, Q as PasskeysUnsupportedError, P as Products, R as RNUIProducts, T as RandomNumberGenerationFailed, U as SDKAPIUnreachableError, V as SDKNotConfiguredError, X as SignInWithAppleMisconfigured, c as StytchAPIError, Y as StytchAPISchemaError, Z as StytchAPIUnreachableError, $ as StytchError, S as StytchEventType, a0 as StytchSDKAPIError, f as StytchSDKError, a1 as StytchSDKSchemaError, a2 as StytchSDKUsageError, a3 as UNRECOVERABLE_ERROR_TYPES, a4 as UserCancellationError, a5 as UserLockedOutError, W as Wallets, a6 as errorToStytchError } from '../internal-DA-B7n9p.js';
1
+ export { S as StytchB2BHeadlessClient } from '../index.headless-B3xD-OBz.js';
2
+ export { A as AuthFlowType, B as B2BMFAProducts, d as B2BOAuthProviders, a as B2BProducts, h as BiometricsFailedError, j as BiometricsUnavailableError, k as ChallengeSigningFailedError, m as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, n as FailedToDecryptDataError, I as InternalError, o as InvalidAuthorizationCredentialError, p as InvalidCredentialTypeError, q as InvalidRedirectSchemeError, s as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, t as KeystoreUnavailableError, M as MissingAttestationObjectError, u as MissingAuthorizationCredentialIDTokenError, v as MissingGoogleClientIDError, w as MissingPKCEError, x as MissingPublicKeyError, y as MissingUrlError, N as NoBiometricsEnrolledError, z as NoBiometricsRegistrationError, E as NoCredentialsPresentError, G as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, e as OneTapPositions, H as PasskeysInvalidEncoding, L as PasskeysMisconfigured, Q as PasskeysUnsupportedError, P as Products, R as RNUIProducts, T as RandomNumberGenerationFailed, U as SDKAPIUnreachableError, V as SDKNotConfiguredError, X as SignInWithAppleMisconfigured, c as StytchAPIError, Y as StytchAPISchemaError, Z as StytchAPIUnreachableError, $ as StytchError, S as StytchEventType, a0 as StytchSDKAPIError, f as StytchSDKError, a1 as StytchSDKSchemaError, a2 as StytchSDKUsageError, a3 as UNRECOVERABLE_ERROR_TYPES, a4 as UserCancellationError, a5 as UserLockedOutError, W as Wallets, a6 as errorToStytchError } from '../internal-CfUZ681R.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var b2b_index_headless = require('../index.headless-DTGN4xYi.js');
4
- var internal = require('../internal-FLRZPR0F.js');
3
+ var b2b_index_headless = require('../index.headless-CL2Gf2QN.js');
4
+ var internal = require('../internal-BNX5AEoW.js');
5
5
  exports.StytchB2BHeadlessClient = b2b_index_headless.StytchB2BHeadlessClient;
6
6
  Object.defineProperty(exports, "AuthFlowType", {
7
7
  enumerable: true,
package/dist/b2b/index.js CHANGED
@@ -29,9 +29,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
29
29
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
30
30
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
31
31
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
32
- var b2b_index_headless = require('../index.headless-DTGN4xYi.js');
33
- var extractErrorMessage = require('../extractErrorMessage-DGmS9sVj.js');
34
- var internal = require('../internal-FLRZPR0F.js');
32
+ var b2b_index_headless = require('../index.headless-CL2Gf2QN.js');
33
+ var extractErrorMessage = require('../extractErrorMessage-Dg5V9q2V.js');
34
+ var internal = require('../internal-BNX5AEoW.js');
35
35
  var DEFAULT_MFA_STATE = {
36
36
  primaryInfo: null,
37
37
  isEnrolling: false,
@@ -4696,7 +4696,7 @@ var CountrySelector = function CountrySelector(_ref74) {
4696
4696
  }, countryCode !== country ? "+".concat(countryNumber, " ").concat(countryFormatter.of(countryCode)) : "+".concat(countryNumber));
4697
4697
  }));
4698
4698
  };
4699
- var PhoneStyledInput = extractErrorMessage.He(Input)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n flex-grow: 1;\n"])));
4699
+ var PhoneStyledInput = extractErrorMessage.He(Input)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n flex-grow: 1;\n min-width: 100px;\n"])));
4700
4700
  var PhoneInput = function PhoneInput(_ref77) {
4701
4701
  var phone = _ref77.phone,
4702
4702
  setPhone = _ref77.setPhone,
@@ -29,7 +29,7 @@ function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf
29
29
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
30
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
31
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
32
- var internal = require('./internal-FLRZPR0F.js');
32
+ var internal = require('./internal-BNX5AEoW.js');
33
33
  var n$3,
34
34
  l$4,
35
35
  u$3,
@@ -27,7 +27,7 @@ function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf
27
27
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
28
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
29
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
30
- import { O as OAuthProviders } from './internal-DA-B7n9p.js';
30
+ import { O as OAuthProviders } from './internal-CfUZ681R.js';
31
31
  var n$3,
32
32
  l$4,
33
33
  u$3,