@stytch/vanilla-js 5.23.0 → 5.23.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 +14 -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-V4BFEKkB.js → extractErrorMessage-DgzvShvw.js} +1 -1
- package/dist/{extractErrorMessage-DC1oVoQP.js → extractErrorMessage-TlhWea9A.js} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.headless.esm.js +26 -62
- package/dist/index.headless.js +26 -62
- package/dist/index.js +1 -1
- package/dist/{internal-D5ZVB86z.js → internal-ByHs3kgg.js} +57 -105
- package/dist/{internal-CoWjnxMU.js → internal-oRDwhSwL.js} +57 -105
- package/package.json +2 -2
package/dist/b2b/index.esm.js
CHANGED
|
@@ -31,9 +31,9 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
|
|
|
31
31
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
32
32
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
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-
|
|
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 BiometricRegistrationIdIsNullOrBlank, m as BiometricsAlreadyEnrolledError, n as BiometricsFailedError, o as BiometricsUnavailableError, p as ChallengeSigningFailedError, q as DFPNotConfigured, s as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, t as FailedToDecryptDataError, u as InternalError, v as InvalidAuthorizationCredentialError, w as InvalidCredentialTypeError, x as InvalidPrivateKeyLength, y as InvalidRedirectSchemeError, z as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, G as KeystoreUnavailableError, M as MissingAttestationObjectError, H as MissingAuthorizationCredentialIDTokenError, L as MissingCipherIv, Q as MissingGoogleClientIDError, T as MissingPKCEError, U as MissingPublicKeyError, V as MissingUrlError, X as NoBiometricsEnrolledError, Y as NoBiometricsRegistrationError, Z as NoCredentialsPresentError, O as OAuthProviders, $ as PasskeysInvalidEncoding, a0 as PasskeysMisconfigured, a1 as PasskeysUnsupportedError, a2 as RNUIProducts, a3 as RandomNumberGenerationFailed, a4 as SDKAPIUnreachableError, a5 as SDKNotConfiguredError, a6 as SignInWithAppleMisconfigured, a7 as StytchAPISchemaError, a8 as StytchAPIUnreachableError, a9 as StytchError, aa as StytchSDKAPIError, ab as StytchSDKSchemaError, ac as StytchSDKUsageError, ad as UNRECOVERABLE_ERROR_TYPES, ae as UserCancellationError, af as UserLockedOutError, ag as errorToStytchError } from '../internal-
|
|
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-TlhWea9A.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-oRDwhSwL.js';
|
|
36
|
+
export { k as BiometricRegistrationIdIsNullOrBlank, m as BiometricsAlreadyEnrolledError, n as BiometricsFailedError, o as BiometricsUnavailableError, p as ChallengeSigningFailedError, q as DFPNotConfigured, s as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, t as FailedToDecryptDataError, u as InternalError, v as InvalidAuthorizationCredentialError, w as InvalidCredentialTypeError, x as InvalidPrivateKeyLength, y as InvalidRedirectSchemeError, z as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, G as KeystoreUnavailableError, M as MissingAttestationObjectError, H as MissingAuthorizationCredentialIDTokenError, L as MissingCipherIv, Q as MissingGoogleClientIDError, T as MissingPKCEError, U as MissingPublicKeyError, V as MissingUrlError, X as NoBiometricsEnrolledError, Y as NoBiometricsRegistrationError, Z as NoCredentialsPresentError, O as OAuthProviders, $ as PasskeysInvalidEncoding, a0 as PasskeysMisconfigured, a1 as PasskeysUnsupportedError, a2 as RNUIProducts, a3 as RandomNumberGenerationFailed, a4 as SDKAPIUnreachableError, a5 as SDKNotConfiguredError, a6 as SignInWithAppleMisconfigured, a7 as StytchAPISchemaError, a8 as StytchAPIUnreachableError, a9 as StytchError, aa as StytchSDKAPIError, ab as StytchSDKSchemaError, ac as StytchSDKUsageError, ad as UNRECOVERABLE_ERROR_TYPES, ae as UserCancellationError, af as UserLockedOutError, ag as errorToStytchError } from '../internal-oRDwhSwL.js';
|
|
37
37
|
var DEFAULT_MFA_STATE = {
|
|
38
38
|
primaryInfo: null,
|
|
39
39
|
isEnrolling: false,
|
|
@@ -22,8 +22,8 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
22
22
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
23
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : 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, aj as loadESModule, ak as IframeHostClient, i as isTestPublicToken, al as EventLogger, am as DEFAULT_MAX_BATCH_SIZE, an as DEFAULT_INTERVAL_DURATION_MS, ao as createEventId, ap as createAppSessionId, aq as createPersistentId, ar as baseFetchSDK, as as baseSubmitFormSDK, at as _retriableFetchSDK, ai as getPersistentStorageKey, au as validate, av as hasMultipleCookies, aw as isLocalhost, ax as HeadlessB2BOAuthClient$1, ay as DisabledDFPProtectedAuthProvider, f as OneTapPositions, ac as StytchSDKUsageError, az as GOOGLE_ONE_TAP_HOST, aA as GOOGLE_ONE_TAP_SCRIPT_URL, j as checkB2BNotSSR, aB as checkPublicToken, aC as buildFinalConfig, aD as StateChangeClient, aE as DFPProtectedAuthProvider, aF as HeadlessB2BOrganizationClient, aG as HeadlessB2BSelfClient, aH as HeadlessB2BSessionClient, aI as HeadlessB2BMagicLinksClient, aJ as HeadlessB2BSSOClient, aK as HeadlessB2BDiscoveryClient, aL as HeadlessB2BPasswordsClient, aM as HeadlessB2BOTPsClient, aN as HeadlessB2BTOTPsClient, aO as HeadlessB2BRecoveryCodesClient, aP as HeadlessB2BRBACClient, aQ as HeadlessB2BSCIMClient, aR as HeadlessB2BImpersonationClient, aS as SessionManager, aT as SearchDataManager, aU as VERTICAL_CONSUMER, aV as writeB2BInternals } from '../internal-
|
|
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 DFPNotConfigured, s as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, t as FailedToDecryptDataError, I as IDPOAuthFlowMissingParamError, u as InternalError, v as InvalidAuthorizationCredentialError, w as InvalidCredentialTypeError, x as InvalidPrivateKeyLength, y as InvalidRedirectSchemeError, z as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, G as KeystoreUnavailableError, M as MissingAttestationObjectError, H as MissingAuthorizationCredentialIDTokenError, L as MissingCipherIv, Q as MissingGoogleClientIDError, T as MissingPKCEError, U as MissingPublicKeyError, V as MissingUrlError, X as NoBiometricsEnrolledError, Y as NoBiometricsRegistrationError, Z as NoCredentialsPresentError, N as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, $ as PasskeysInvalidEncoding, a0 as PasskeysMisconfigured, a1 as PasskeysUnsupportedError, P as Products, a2 as RNUIProducts, a3 as RandomNumberGenerationFailed, R as RedirectURLType, a4 as SDKAPIUnreachableError, a5 as SDKNotConfiguredError, a6 as SignInWithAppleMisconfigured, e as StytchAPIError, a7 as StytchAPISchemaError, a8 as StytchAPIUnreachableError, a9 as StytchError, S as StytchEventType, aa as StytchSDKAPIError, h as StytchSDKError, ab as StytchSDKSchemaError, ad as UNRECOVERABLE_ERROR_TYPES, ae as UserCancellationError, af as UserLockedOutError, W as Wallets, ag as errorToStytchError } from '../internal-
|
|
25
|
+
import { l as logger, d as __awaiter, aj as loadESModule, ak as IframeHostClient, i as isTestPublicToken, al as EventLogger, am as DEFAULT_MAX_BATCH_SIZE, an as DEFAULT_INTERVAL_DURATION_MS, ao as createEventId, ap as createAppSessionId, aq as createPersistentId, ar as baseFetchSDK, as as baseSubmitFormSDK, at as _retriableFetchSDK, ai as getPersistentStorageKey, au as validate, av as hasMultipleCookies, aw as isLocalhost, ax as HeadlessB2BOAuthClient$1, ay as DisabledDFPProtectedAuthProvider, f as OneTapPositions, ac as StytchSDKUsageError, az as GOOGLE_ONE_TAP_HOST, aA as GOOGLE_ONE_TAP_SCRIPT_URL, j as checkB2BNotSSR, aB as checkPublicToken, aC as buildFinalConfig, aD as StateChangeClient, aE as DFPProtectedAuthProvider, aF as HeadlessB2BOrganizationClient, aG as HeadlessB2BSelfClient, aH as HeadlessB2BSessionClient, aI as HeadlessB2BMagicLinksClient, aJ as HeadlessB2BSSOClient, aK as HeadlessB2BDiscoveryClient, aL as HeadlessB2BPasswordsClient, aM as HeadlessB2BOTPsClient, aN as HeadlessB2BTOTPsClient, aO as HeadlessB2BRecoveryCodesClient, aP as HeadlessB2BRBACClient, aQ as HeadlessB2BSCIMClient, aR as HeadlessB2BImpersonationClient, aS as SessionManager, aT as SearchDataManager, aU as VERTICAL_CONSUMER, aV as writeB2BInternals } from '../internal-oRDwhSwL.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 DFPNotConfigured, s as DeviceCredentialsNotAllowedError, F as FailedCodeChallengeError, t as FailedToDecryptDataError, I as IDPOAuthFlowMissingParamError, u as InternalError, v as InvalidAuthorizationCredentialError, w as InvalidCredentialTypeError, x as InvalidPrivateKeyLength, y as InvalidRedirectSchemeError, z as InvalidStartUrlError, J as JSONDataNotConvertibleToStringError, K as KeyInvalidatedError, G as KeystoreUnavailableError, M as MissingAttestationObjectError, H as MissingAuthorizationCredentialIDTokenError, L as MissingCipherIv, Q as MissingGoogleClientIDError, T as MissingPKCEError, U as MissingPublicKeyError, V as MissingUrlError, X as NoBiometricsEnrolledError, Y as NoBiometricsRegistrationError, Z as NoCredentialsPresentError, N as NoCurrentSessionError, O as OAuthProviders, b as OTPMethods, $ as PasskeysInvalidEncoding, a0 as PasskeysMisconfigured, a1 as PasskeysUnsupportedError, P as Products, a2 as RNUIProducts, a3 as RandomNumberGenerationFailed, R as RedirectURLType, a4 as SDKAPIUnreachableError, a5 as SDKNotConfiguredError, a6 as SignInWithAppleMisconfigured, e as StytchAPIError, a7 as StytchAPISchemaError, a8 as StytchAPIUnreachableError, a9 as StytchError, S as StytchEventType, aa as StytchSDKAPIError, h as StytchSDKError, ab as StytchSDKSchemaError, ad as UNRECOVERABLE_ERROR_TYPES, ae as UserCancellationError, af as UserLockedOutError, W as Wallets, ag as errorToStytchError } from '../internal-oRDwhSwL.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.23.
|
|
219
|
+
var version = "5.23.2";
|
|
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(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
24
24
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
25
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : 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-ByHs3kgg.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.23.
|
|
220
|
+
var version = "5.23.2";
|
|
221
221
|
var NetworkClient = /*#__PURE__*/function () {
|
|
222
222
|
function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
|
|
223
223
|
_classCallCheck(this, NetworkClient);
|
package/dist/b2b/index.js
CHANGED
|
@@ -33,8 +33,8 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
|
|
|
33
33
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
34
34
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
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-DgzvShvw.js');
|
|
37
|
+
var internal = require('../internal-ByHs3kgg.js');
|
|
38
38
|
var DEFAULT_MFA_STATE = {
|
|
39
39
|
primaryInfo: null,
|
|
40
40
|
isEnrolling: false,
|
|
@@ -29,7 +29,7 @@ function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).in
|
|
|
29
29
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
30
30
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(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 internal = require('./internal-
|
|
32
|
+
var internal = require('./internal-ByHs3kgg.js');
|
|
33
33
|
var n$2;
|
|
34
34
|
exports.l = void 0;
|
|
35
35
|
var u$2,
|
|
@@ -27,7 +27,7 @@ function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).in
|
|
|
27
27
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
28
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(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 { O as OAuthProviders } from './internal-
|
|
30
|
+
import { O as OAuthProviders } from './internal-oRDwhSwL.js';
|
|
31
31
|
var n$2,
|
|
32
32
|
l$3,
|
|
33
33
|
u$2,
|