@stytch/vanilla-js 5.20.0 → 5.20.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.
- package/CHANGELOG.md +15 -0
- package/dist/adminPortal/index.esm.js +1 -1
- package/dist/adminPortal/index.js +1 -1
- package/dist/b2b/index.esm.js +3 -3
- package/dist/b2b/index.headless.esm.js +3 -3
- package/dist/b2b/index.headless.js +2 -2
- package/dist/b2b/index.js +2 -2
- package/dist/{extractErrorMessage-DyKGF9Cp.js → extractErrorMessage-BLwEHepp.js} +1 -1
- package/dist/{extractErrorMessage-C9ngtnjU.js → extractErrorMessage-oFoCuJSB.js} +1 -1
- 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/dist/{internal-DcVDd1H1.js → internal-BRp0Ygah.js} +76 -24
- package/dist/{internal-BlOuUUor.js → internal-BqA81ks1.js} +76 -24
- package/package.json +2 -2
package/dist/b2b/index.esm.js
CHANGED
|
@@ -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, 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, Z as Ze, 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-
|
|
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-
|
|
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 InvalidRedirectSchemeError, w as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, x as KeystoreUnavailableError, M as MissingAttestationObjectError, y as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, G as MissingPKCEError, H as MissingPublicKeyError, L as MissingUrlError, Q as NoBiometricsEnrolledError, T as NoBiometricsRegistrationError, U as NoCredentialsPresentError, O as OAuthProviders, V as PasskeysInvalidEncoding, X as PasskeysMisconfigured, Y as PasskeysUnsupportedError, Z as RNUIProducts, $ as RandomNumberGenerationFailed, a0 as SDKAPIUnreachableError, a1 as SDKNotConfiguredError, a2 as SignInWithAppleMisconfigured, a3 as StytchAPISchemaError, a4 as StytchAPIUnreachableError, a5 as StytchError, a6 as StytchSDKAPIError, a7 as StytchSDKSchemaError, a8 as StytchSDKUsageError, a9 as UNRECOVERABLE_ERROR_TYPES, aa as UserCancellationError, ab as UserLockedOutError, ac as errorToStytchError } from '../internal-
|
|
34
|
+
import { i as isTruthy, w as wn, q, F as F$1, m as merge, H as He, 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, Z as Ze, 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-oFoCuJSB.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-BRp0Ygah.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 InvalidRedirectSchemeError, w as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, x as KeystoreUnavailableError, M as MissingAttestationObjectError, y as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, G as MissingPKCEError, H as MissingPublicKeyError, L as MissingUrlError, Q as NoBiometricsEnrolledError, T as NoBiometricsRegistrationError, U as NoCredentialsPresentError, O as OAuthProviders, V as PasskeysInvalidEncoding, X as PasskeysMisconfigured, Y as PasskeysUnsupportedError, Z as RNUIProducts, $ as RandomNumberGenerationFailed, a0 as SDKAPIUnreachableError, a1 as SDKNotConfiguredError, a2 as SignInWithAppleMisconfigured, a3 as StytchAPISchemaError, a4 as StytchAPIUnreachableError, a5 as StytchError, a6 as StytchSDKAPIError, a7 as StytchSDKSchemaError, a8 as StytchSDKUsageError, a9 as UNRECOVERABLE_ERROR_TYPES, aa as UserCancellationError, ab as UserLockedOutError, ac as errorToStytchError } from '../internal-BRp0Ygah.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, af as loadESModule, ag as IframeHostClient, i as isTestPublicToken, ah as EventLogger, ai as DEFAULT_MAX_BATCH_SIZE, aj as DEFAULT_INTERVAL_DURATION_MS, ak as createEventId, al as createAppSessionId, am as createPersistentId, an as baseFetchSDK, ao as baseSubmitFormSDK, ap as _retriableFetchSDK, ae as getPersistentStorageKey, aq as validate, ar as hasMultipleCookies, as as isLocalhost, at as HeadlessB2BOAuthClient$1, au as DisabledDFPProtectedAuthProvider, f as OneTapPositions, a8 as StytchSDKUsageError, av as GOOGLE_ONE_TAP_HOST, aw as GOOGLE_ONE_TAP_SCRIPT_URL, j as checkB2BNotSSR, ax as checkPublicToken, ay as buildFinalConfig, az as StateChangeClient, aA as DFPProtectedAuthProvider, aB as HeadlessB2BOrganizationClient, aC as HeadlessB2BSelfClient, aD as HeadlessB2BSessionClient, aE as HeadlessB2BMagicLinksClient, aF as HeadlessB2BSSOClient, aG as HeadlessB2BDiscoveryClient, aH as HeadlessB2BPasswordsClient, aI as HeadlessB2BOTPsClient, aJ as HeadlessB2BTOTPsClient, aK as HeadlessB2BRecoveryCodesClient, aL as HeadlessB2BRBACClient, aM as HeadlessB2BSCIMClient, aN as HeadlessB2BImpersonationClient, aO as SessionManager, aP as SearchDataManager, aQ as writeB2BInternals } from '../internal-
|
|
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 InvalidRedirectSchemeError, w as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, x as KeystoreUnavailableError, M as MissingAttestationObjectError, y as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, G as MissingPKCEError, H as MissingPublicKeyError, L as MissingUrlError, Q as NoBiometricsEnrolledError, T as NoBiometricsRegistrationError, U as NoCredentialsPresentError, N as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, V as PasskeysInvalidEncoding, X as PasskeysMisconfigured, Y as PasskeysUnsupportedError, P as Products, Z as RNUIProducts, $ as RandomNumberGenerationFailed, R as RedirectURLType, a0 as SDKAPIUnreachableError, a1 as SDKNotConfiguredError, a2 as SignInWithAppleMisconfigured, e as StytchAPIError, a3 as StytchAPISchemaError, a4 as StytchAPIUnreachableError, a5 as StytchError, S as StytchEventType, a6 as StytchSDKAPIError, h as StytchSDKError, a7 as StytchSDKSchemaError, a9 as UNRECOVERABLE_ERROR_TYPES, aa as UserCancellationError, ab as UserLockedOutError, W as Wallets, ac as errorToStytchError } from '../internal-
|
|
25
|
+
import { l as logger, d as __awaiter, af as loadESModule, ag as IframeHostClient, i as isTestPublicToken, ah as EventLogger, ai as DEFAULT_MAX_BATCH_SIZE, aj as DEFAULT_INTERVAL_DURATION_MS, ak as createEventId, al as createAppSessionId, am as createPersistentId, an as baseFetchSDK, ao as baseSubmitFormSDK, ap as _retriableFetchSDK, ae as getPersistentStorageKey, aq as validate, ar as hasMultipleCookies, as as isLocalhost, at as HeadlessB2BOAuthClient$1, au as DisabledDFPProtectedAuthProvider, f as OneTapPositions, a8 as StytchSDKUsageError, av as GOOGLE_ONE_TAP_HOST, aw as GOOGLE_ONE_TAP_SCRIPT_URL, j as checkB2BNotSSR, ax as checkPublicToken, ay as buildFinalConfig, az as StateChangeClient, aA as DFPProtectedAuthProvider, aB as HeadlessB2BOrganizationClient, aC as HeadlessB2BSelfClient, aD as HeadlessB2BSessionClient, aE as HeadlessB2BMagicLinksClient, aF as HeadlessB2BSSOClient, aG as HeadlessB2BDiscoveryClient, aH as HeadlessB2BPasswordsClient, aI as HeadlessB2BOTPsClient, aJ as HeadlessB2BTOTPsClient, aK as HeadlessB2BRecoveryCodesClient, aL as HeadlessB2BRBACClient, aM as HeadlessB2BSCIMClient, aN as HeadlessB2BImpersonationClient, aO as SessionManager, aP as SearchDataManager, aQ as writeB2BInternals } from '../internal-BRp0Ygah.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 InvalidRedirectSchemeError, w as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, x as KeystoreUnavailableError, M as MissingAttestationObjectError, y as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, G as MissingPKCEError, H as MissingPublicKeyError, L as MissingUrlError, Q as NoBiometricsEnrolledError, T as NoBiometricsRegistrationError, U as NoCredentialsPresentError, N as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, V as PasskeysInvalidEncoding, X as PasskeysMisconfigured, Y as PasskeysUnsupportedError, P as Products, Z as RNUIProducts, $ as RandomNumberGenerationFailed, R as RedirectURLType, a0 as SDKAPIUnreachableError, a1 as SDKNotConfiguredError, a2 as SignInWithAppleMisconfigured, e as StytchAPIError, a3 as StytchAPISchemaError, a4 as StytchAPIUnreachableError, a5 as StytchError, S as StytchEventType, a6 as StytchSDKAPIError, h as StytchSDKError, a7 as StytchSDKSchemaError, a9 as UNRECOVERABLE_ERROR_TYPES, aa as UserCancellationError, ab as UserLockedOutError, W as Wallets, ac as errorToStytchError } from '../internal-BRp0Ygah.js';
|
|
27
27
|
var BOOTSTRAP_CACHE_KEY = 'bootstrap';
|
|
28
28
|
var DEFAULT_BOOTSTRAP = function DEFAULT_BOOTSTRAP() {
|
|
29
29
|
return {
|
|
@@ -214,7 +214,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
|
|
|
214
214
|
}
|
|
215
215
|
}]);
|
|
216
216
|
}();
|
|
217
|
-
var version = "5.20.
|
|
217
|
+
var version = "5.20.2";
|
|
218
218
|
var NetworkClient = /*#__PURE__*/function () {
|
|
219
219
|
function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
|
|
220
220
|
_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-
|
|
27
|
+
var internal = require('../internal-BqA81ks1.js');
|
|
28
28
|
var BOOTSTRAP_CACHE_KEY = 'bootstrap';
|
|
29
29
|
var DEFAULT_BOOTSTRAP = function DEFAULT_BOOTSTRAP() {
|
|
30
30
|
return {
|
|
@@ -215,7 +215,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
|
|
|
215
215
|
}
|
|
216
216
|
}]);
|
|
217
217
|
}();
|
|
218
|
-
var version = "5.20.
|
|
218
|
+
var version = "5.20.2";
|
|
219
219
|
var NetworkClient = /*#__PURE__*/function () {
|
|
220
220
|
function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
|
|
221
221
|
_classCallCheck(this, NetworkClient);
|
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-
|
|
37
|
-
var internal = require('../internal-
|
|
36
|
+
var extractErrorMessage = require('../extractErrorMessage-BLwEHepp.js');
|
|
37
|
+
var internal = require('../internal-BqA81ks1.js');
|
|
38
38
|
var DEFAULT_MFA_STATE = {
|
|
39
39
|
primaryInfo: null,
|
|
40
40
|
isEnrolling: false,
|
|
@@ -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-
|
|
32
|
+
var internal = require('./internal-BqA81ks1.js');
|
|
33
33
|
var n$2;
|
|
34
34
|
exports.l = void 0;
|
|
35
35
|
var u$2,
|
|
@@ -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-
|
|
30
|
+
import { O as OAuthProviders } from './internal-BRp0Ygah.js';
|
|
31
31
|
var n$2,
|
|
32
32
|
l$3,
|
|
33
33
|
u$2,
|