@stytch/vanilla-js 5.22.3 → 5.22.4

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.
@@ -31,9 +31,9 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
31
31
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
32
32
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
33
33
  import { StytchB2BHeadlessClient } from './index.headless.esm.js';
34
- import { i as isTruthy, w as wn, q, F as F$1, m as merge, H as He, Z as Ze, p as passwordManagerDisableAutofillProps, U as Ue, a as withMiddleware, u as useSWR, b as useSWRConfig, _ as _$1, c as useStateWithDeps, T as T$1, s as serialize, d as mergeObjects, g as getTimestamp, e as UNDEFINED, f as useIsomorphicLayoutEffect, h as h$2, j as p$1, y, k as g$1, l as extractErrorMessage, n as w$1, C as Cn, o as s$1, r as F$2, t as CreateSSRSafeWebComponent, v as Fe } from '../extractErrorMessage-CceNQdlW.js';
35
- import { B as B2BMFAProducts, A as AuthFlowType, a as B2BProducts, b as OTPMethods, W as Wallets, P as Products, _ as __rest, c as B2BOAuthProviders, S as StytchEventType, r as readB2BInternals, D as DEFAULT_SESSION_DURATION_MINUTES, d as __awaiter, E as EMAIL_REGEX, e as StytchAPIError, l as logger, f as OneTapPositions, i as isTestPublicToken, g as debounce, C as COUNTRIES_LIST, h as StytchSDKError, I as IDPOAuthFlowMissingParamError, N as NoCurrentSessionError, R as RedirectURLType, j as checkB2BNotSSR } from '../internal-5q6em7Zx.js';
36
- export { k as BiometricsAlreadyEnrolledError, m as BiometricsFailedError, n as BiometricsUnavailableError, o as ChallengeSigningFailedError, p as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, q as FailedToDecryptDataError, s as InternalError, t as InvalidAuthorizationCredentialError, u as InvalidCredentialTypeError, v as InvalidPrivateKeyLength, w as InvalidRedirectSchemeError, x as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, y as KeystoreUnavailableError, M as MissingAttestationObjectError, z as MissingAuthorizationCredentialIDTokenError, G as MissingCipherIv, H as MissingGoogleClientIDError, L as MissingPKCEError, Q as MissingPublicKeyError, T as MissingUrlError, U as NoBiometricsEnrolledError, V as NoBiometricsRegistrationError, X as NoCredentialsPresentError, O as OAuthProviders, Y as PasskeysInvalidEncoding, Z as PasskeysMisconfigured, $ as PasskeysUnsupportedError, a0 as RNUIProducts, a1 as RandomNumberGenerationFailed, a2 as SDKAPIUnreachableError, a3 as SDKNotConfiguredError, a4 as SignInWithAppleMisconfigured, a5 as StytchAPISchemaError, a6 as StytchAPIUnreachableError, a7 as StytchError, a8 as StytchSDKAPIError, a9 as StytchSDKSchemaError, aa as StytchSDKUsageError, ab as UNRECOVERABLE_ERROR_TYPES, ac as UserCancellationError, ad as UserLockedOutError, ae as errorToStytchError } from '../internal-5q6em7Zx.js';
34
+ import { i as isTruthy, w as wn, q, F as F$1, m as merge, H as He, Z as Ze, p as passwordManagerDisableAutofillProps, U as Ue, a as withMiddleware, u as useSWR, b as useSWRConfig, _ as _$1, c as useStateWithDeps, T as T$1, s as serialize, d as mergeObjects, g as getTimestamp, e as UNDEFINED, f as useIsomorphicLayoutEffect, h as h$2, j as p$1, y, k as g$1, l as extractErrorMessage, n as w$1, C as Cn, o as s$1, r as F$2, t as CreateSSRSafeWebComponent, v as Fe } from '../extractErrorMessage-B_b8zyEs.js';
35
+ import { B as B2BMFAProducts, A as AuthFlowType, a as B2BProducts, b as OTPMethods, W as Wallets, P as Products, _ as __rest, c as B2BOAuthProviders, S as StytchEventType, r as readB2BInternals, D as DEFAULT_SESSION_DURATION_MINUTES, d as __awaiter, E as EMAIL_REGEX, e as StytchAPIError, l as logger, f as OneTapPositions, i as isTestPublicToken, g as debounce, C as COUNTRIES_LIST, h as StytchSDKError, I as IDPOAuthFlowMissingParamError, N as NoCurrentSessionError, R as RedirectURLType, j as checkB2BNotSSR } from '../internal-BtI2_suI.js';
36
+ export { k as BiometricRegistrationIdIsNullOrBlank, m as BiometricsAlreadyEnrolledError, n as BiometricsFailedError, o as BiometricsUnavailableError, p as ChallengeSigningFailedError, q as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, s as FailedToDecryptDataError, t as InternalError, u as InvalidAuthorizationCredentialError, v as InvalidCredentialTypeError, w as InvalidPrivateKeyLength, x as InvalidRedirectSchemeError, y as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, z as KeystoreUnavailableError, M as MissingAttestationObjectError, G as MissingAuthorizationCredentialIDTokenError, H as MissingCipherIv, L as MissingGoogleClientIDError, Q as MissingPKCEError, T as MissingPublicKeyError, U as MissingUrlError, V as NoBiometricsEnrolledError, X as NoBiometricsRegistrationError, Y as NoCredentialsPresentError, O as OAuthProviders, Z as PasskeysInvalidEncoding, $ as PasskeysMisconfigured, a0 as PasskeysUnsupportedError, a1 as RNUIProducts, a2 as RandomNumberGenerationFailed, a3 as SDKAPIUnreachableError, a4 as SDKNotConfiguredError, a5 as SignInWithAppleMisconfigured, a6 as StytchAPISchemaError, a7 as StytchAPIUnreachableError, a8 as StytchError, a9 as StytchSDKAPIError, aa as StytchSDKSchemaError, ab as StytchSDKUsageError, ac as UNRECOVERABLE_ERROR_TYPES, ad as UserCancellationError, ae as UserLockedOutError, af as errorToStytchError } from '../internal-BtI2_suI.js';
37
37
  var DEFAULT_MFA_STATE = {
38
38
  primaryInfo: null,
39
39
  isEnrolling: false,
@@ -22,8 +22,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
24
24
  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); }
25
- import { l as logger, d as __awaiter, ah as loadESModule, ai as IframeHostClient, i as isTestPublicToken, aj as EventLogger, ak as DEFAULT_MAX_BATCH_SIZE, al as DEFAULT_INTERVAL_DURATION_MS, am as createEventId, an as createAppSessionId, ao as createPersistentId, ap as baseFetchSDK, aq as baseSubmitFormSDK, ar as _retriableFetchSDK, ag as getPersistentStorageKey, as as validate, at as hasMultipleCookies, au as isLocalhost, av as HeadlessB2BOAuthClient$1, aw as DisabledDFPProtectedAuthProvider, f as OneTapPositions, aa as StytchSDKUsageError, ax as GOOGLE_ONE_TAP_HOST, ay as GOOGLE_ONE_TAP_SCRIPT_URL, j as checkB2BNotSSR, az as checkPublicToken, aA as buildFinalConfig, aB as StateChangeClient, aC as DFPProtectedAuthProvider, aD as HeadlessB2BOrganizationClient, aE as HeadlessB2BSelfClient, aF as HeadlessB2BSessionClient, aG as HeadlessB2BMagicLinksClient, aH as HeadlessB2BSSOClient, aI as HeadlessB2BDiscoveryClient, aJ as HeadlessB2BPasswordsClient, aK as HeadlessB2BOTPsClient, aL as HeadlessB2BTOTPsClient, aM as HeadlessB2BRecoveryCodesClient, aN as HeadlessB2BRBACClient, aO as HeadlessB2BSCIMClient, aP as HeadlessB2BImpersonationClient, aQ as SessionManager, aR as SearchDataManager, aS as VERTICAL_CONSUMER, aT as writeB2BInternals } from '../internal-5q6em7Zx.js';
26
- export { A as AuthFlowType, B as B2BMFAProducts, c as B2BOAuthProviders, a as B2BProducts, k as BiometricsAlreadyEnrolledError, m as BiometricsFailedError, n as BiometricsUnavailableError, o as ChallengeSigningFailedError, p as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, q as FailedToDecryptDataError, I as IDPOAuthFlowMissingParamError, s as InternalError, t as InvalidAuthorizationCredentialError, u as InvalidCredentialTypeError, v as InvalidPrivateKeyLength, w as InvalidRedirectSchemeError, x as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, y as KeystoreUnavailableError, M as MissingAttestationObjectError, z as MissingAuthorizationCredentialIDTokenError, G as MissingCipherIv, H as MissingGoogleClientIDError, L as MissingPKCEError, Q as MissingPublicKeyError, T as MissingUrlError, U as NoBiometricsEnrolledError, V as NoBiometricsRegistrationError, X as NoCredentialsPresentError, N as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, Y as PasskeysInvalidEncoding, Z as PasskeysMisconfigured, $ as PasskeysUnsupportedError, P as Products, a0 as RNUIProducts, a1 as RandomNumberGenerationFailed, R as RedirectURLType, a2 as SDKAPIUnreachableError, a3 as SDKNotConfiguredError, a4 as SignInWithAppleMisconfigured, e as StytchAPIError, a5 as StytchAPISchemaError, a6 as StytchAPIUnreachableError, a7 as StytchError, S as StytchEventType, a8 as StytchSDKAPIError, h as StytchSDKError, a9 as StytchSDKSchemaError, ab as UNRECOVERABLE_ERROR_TYPES, ac as UserCancellationError, ad as UserLockedOutError, W as Wallets, ae as errorToStytchError } from '../internal-5q6em7Zx.js';
25
+ import { l as logger, d as __awaiter, ai as loadESModule, aj as IframeHostClient, i as isTestPublicToken, ak as EventLogger, al as DEFAULT_MAX_BATCH_SIZE, am as DEFAULT_INTERVAL_DURATION_MS, an as createEventId, ao as createAppSessionId, ap as createPersistentId, aq as baseFetchSDK, ar as baseSubmitFormSDK, as as _retriableFetchSDK, ah as getPersistentStorageKey, at as validate, au as hasMultipleCookies, av as isLocalhost, aw as HeadlessB2BOAuthClient$1, ax as DisabledDFPProtectedAuthProvider, f as OneTapPositions, ab as StytchSDKUsageError, ay as GOOGLE_ONE_TAP_HOST, az as GOOGLE_ONE_TAP_SCRIPT_URL, j as checkB2BNotSSR, aA as checkPublicToken, aB as buildFinalConfig, aC as StateChangeClient, aD as DFPProtectedAuthProvider, aE as HeadlessB2BOrganizationClient, aF as HeadlessB2BSelfClient, aG as HeadlessB2BSessionClient, aH as HeadlessB2BMagicLinksClient, aI as HeadlessB2BSSOClient, aJ as HeadlessB2BDiscoveryClient, aK as HeadlessB2BPasswordsClient, aL as HeadlessB2BOTPsClient, aM as HeadlessB2BTOTPsClient, aN as HeadlessB2BRecoveryCodesClient, aO as HeadlessB2BRBACClient, aP as HeadlessB2BSCIMClient, aQ as HeadlessB2BImpersonationClient, aR as SessionManager, aS as SearchDataManager, aT as VERTICAL_CONSUMER, aU as writeB2BInternals } from '../internal-BtI2_suI.js';
26
+ export { A as AuthFlowType, B as B2BMFAProducts, c as B2BOAuthProviders, a as B2BProducts, k as BiometricRegistrationIdIsNullOrBlank, m as BiometricsAlreadyEnrolledError, n as BiometricsFailedError, o as BiometricsUnavailableError, p as ChallengeSigningFailedError, q as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, s as FailedToDecryptDataError, I as IDPOAuthFlowMissingParamError, t as InternalError, u as InvalidAuthorizationCredentialError, v as InvalidCredentialTypeError, w as InvalidPrivateKeyLength, x as InvalidRedirectSchemeError, y as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, z as KeystoreUnavailableError, M as MissingAttestationObjectError, G as MissingAuthorizationCredentialIDTokenError, H as MissingCipherIv, L as MissingGoogleClientIDError, Q as MissingPKCEError, T as MissingPublicKeyError, U as MissingUrlError, V as NoBiometricsEnrolledError, X as NoBiometricsRegistrationError, Y as NoCredentialsPresentError, N as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, Z as PasskeysInvalidEncoding, $ as PasskeysMisconfigured, a0 as PasskeysUnsupportedError, P as Products, a1 as RNUIProducts, a2 as RandomNumberGenerationFailed, R as RedirectURLType, a3 as SDKAPIUnreachableError, a4 as SDKNotConfiguredError, a5 as SignInWithAppleMisconfigured, e as StytchAPIError, a6 as StytchAPISchemaError, a7 as StytchAPIUnreachableError, a8 as StytchError, S as StytchEventType, a9 as StytchSDKAPIError, h as StytchSDKError, aa as StytchSDKSchemaError, ac as UNRECOVERABLE_ERROR_TYPES, ad as UserCancellationError, ae as UserLockedOutError, W as Wallets, af as errorToStytchError } from '../internal-BtI2_suI.js';
27
27
  var BOOTSTRAP_CACHE_KEY = 'bootstrap';
28
28
  var DEFAULT_BOOTSTRAP = function DEFAULT_BOOTSTRAP() {
29
29
  return {
@@ -216,7 +216,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
216
216
  }
217
217
  }]);
218
218
  }();
219
- var version = "5.22.3";
219
+ var version = "5.22.4";
220
220
  var NetworkClient = /*#__PURE__*/function () {
221
221
  function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
222
222
  _classCallCheck(this, NetworkClient);
@@ -24,7 +24,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
26
26
  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); }
27
- var internal = require('../internal-az9hLwxx.js');
27
+ var internal = require('../internal-67Oevzu4.js');
28
28
  var BOOTSTRAP_CACHE_KEY = 'bootstrap';
29
29
  var DEFAULT_BOOTSTRAP = function DEFAULT_BOOTSTRAP() {
30
30
  return {
@@ -217,7 +217,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
217
217
  }
218
218
  }]);
219
219
  }();
220
- var version = "5.22.3";
220
+ var version = "5.22.4";
221
221
  var NetworkClient = /*#__PURE__*/function () {
222
222
  function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
223
223
  _classCallCheck(this, NetworkClient);
@@ -1742,6 +1742,7 @@ Object.defineProperty(exports, "B2BProducts", {
1742
1742
  return internal.B2BProducts;
1743
1743
  }
1744
1744
  });
1745
+ exports.BiometricRegistrationIdIsNullOrBlank = internal.BiometricRegistrationIdIsNullOrBlank;
1745
1746
  exports.BiometricsAlreadyEnrolledError = internal.BiometricsAlreadyEnrolledError;
1746
1747
  exports.BiometricsFailedError = internal.BiometricsFailedError;
1747
1748
  exports.BiometricsUnavailableError = internal.BiometricsUnavailableError;
package/dist/b2b/index.js CHANGED
@@ -33,8 +33,8 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
33
33
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
34
34
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
35
35
  var b2b_index_headless = require('./index.headless.js');
36
- var extractErrorMessage = require('../extractErrorMessage-CafCL2m8.js');
37
- var internal = require('../internal-az9hLwxx.js');
36
+ var extractErrorMessage = require('../extractErrorMessage-CV4jfIZF.js');
37
+ var internal = require('../internal-67Oevzu4.js');
38
38
  var DEFAULT_MFA_STATE = {
39
39
  primaryInfo: null,
40
40
  isEnrolling: false,
@@ -8313,6 +8313,7 @@ Object.defineProperty(exports, "B2BProducts", {
8313
8313
  return internal.B2BProducts;
8314
8314
  }
8315
8315
  });
8316
+ exports.BiometricRegistrationIdIsNullOrBlank = internal.BiometricRegistrationIdIsNullOrBlank;
8316
8317
  exports.BiometricsAlreadyEnrolledError = internal.BiometricsAlreadyEnrolledError;
8317
8318
  exports.BiometricsFailedError = internal.BiometricsFailedError;
8318
8319
  exports.BiometricsUnavailableError = internal.BiometricsUnavailableError;
@@ -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-5q6em7Zx.js';
30
+ import { O as OAuthProviders } from './internal-BtI2_suI.js';
31
31
  var n$2,
32
32
  l$3,
33
33
  u$2,
@@ -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-az9hLwxx.js');
32
+ var internal = require('./internal-67Oevzu4.js');
33
33
  var n$2;
34
34
  exports.l = void 0;
35
35
  var u$2,