@nibssplc/cams-sdk-react 1.0.0-rc.130 → 1.0.0-rc.131

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/dist/index.esm.js CHANGED
@@ -901,7 +901,7 @@ function CAMSProviderCore(props) {
901
901
  ? __assign(__assign({}, props), { appCode: appCode, idleTimeout: 0 })
902
902
  : { appCode: "" });
903
903
  var msalAuth = useCAMSMSALAuth(mode === "MSAL"
904
- ? __assign(__assign({}, props), { appCode: appCode, ValidateUserEndpoint: props.ValidateUserEndpoint, activeCookiePeriod: 1 })
904
+ ? __assign(__assign({}, props), { appCode: appCode, ValidateUserEndpoint: props.ValidateUserEndpoint, activeCookiePeriod: 1, DisableCAMSUserProfileValidation: props.DisableCAMSUserProfileValidation })
905
905
  : { appCode: "", ValidateUserEndpoint: "" });
906
906
  var auth = mode === "REGULAR" ? regularAuth : msalAuth;
907
907
  var profileStorageKey = "".concat(auth.storageKey, "-PROFILE");
@@ -1649,7 +1649,7 @@ var ADLoginModal = function (_a) {
1649
1649
  };
1650
1650
 
1651
1651
  var DefaultLoginPage = function (_a) {
1652
- var useADLogin = _a.useADLogin, CredentialsAuthEndpoint = _a.CredentialsAuthEndpoint, onADLoginSuccess = _a.onADLoginSuccess;
1652
+ var useADLogin = _a.useADLogin, CredentialsAuthEndpoint = _a.CredentialsAuthEndpoint, onADLoginSuccess = _a.onADLoginSuccess; _a.DisableCAMSUserProfileValidation;
1653
1653
  var cardVariants = {
1654
1654
  hidden: { opacity: 0, scale: 0.8, y: 50 },
1655
1655
  visible: {
@@ -1745,7 +1745,7 @@ var MFAEndpointsSchema = z$1.object({
1745
1745
  AuthChallengeVerify: z$1.url("MFA AuthChallengeVerify must be a valid URL"),
1746
1746
  });
1747
1747
  var MFAGate = function (_a) {
1748
- var children = _a.children, _b = _a.fallback, fallback = _b === void 0 ? (jsx("div", { className: "h-screen flex items-center justify-center", children: jsx(LoadingScreen, {}) })) : _b; _a.usePassKey; var _d = _a.useADLogin, useADLogin = _d === void 0 ? false : _d, CredentialsAuthEndpoint = _a.CredentialsAuthEndpoint, MFAEndpoints = _a.MFAEndpoints, requiresMFA = _a.requiresMFA, onAuthSuccess = _a.onAuthSuccess, onAuthError = _a.onAuthError;
1748
+ var children = _a.children, _b = _a.fallback, fallback = _b === void 0 ? (jsx("div", { className: "h-screen flex items-center justify-center", children: jsx(LoadingScreen, {}) })) : _b; _a.usePassKey; var _d = _a.useADLogin, useADLogin = _d === void 0 ? false : _d, CredentialsAuthEndpoint = _a.CredentialsAuthEndpoint, MFAEndpoints = _a.MFAEndpoints, requiresMFA = _a.requiresMFA, onAuthSuccess = _a.onAuthSuccess, onAuthError = _a.onAuthError, DisableCAMSUserProfileValidation = _a.DisableCAMSUserProfileValidation;
1749
1749
  var context = useCAMSContext();
1750
1750
  var _e = useState("Loading"), authState = _e[0], setAuthState = _e[1];
1751
1751
  var ValidatedMFAEndpoints = useMemo(function () {
@@ -1825,7 +1825,7 @@ var MFAGate = function (_a) {
1825
1825
  // For REGULAR mode, check if user is authenticated
1826
1826
  if (context.user)
1827
1827
  return jsx(Fragment, { children: children });
1828
- return (jsx(DefaultLoginPage, { useADLogin: useADLogin, CredentialsAuthEndpoint: CredentialsAuthEndpoint, onADLoginSuccess: function () { return setAuthState("Authenticated"); } }));
1828
+ return (jsx(DefaultLoginPage, { useADLogin: useADLogin, CredentialsAuthEndpoint: CredentialsAuthEndpoint, onADLoginSuccess: function () { return setAuthState("Authenticated"); }, DisableCAMSUserProfileValidation: DisableCAMSUserProfileValidation }));
1829
1829
  }
1830
1830
  switch (authState) {
1831
1831
  case "Loading":
@@ -1836,7 +1836,7 @@ var MFAGate = function (_a) {
1836
1836
  return jsx(Fragment, { children: children });
1837
1837
  case "Unauthenticated":
1838
1838
  default:
1839
- return (jsx(DefaultLoginPage, { useADLogin: useADLogin, CredentialsAuthEndpoint: CredentialsAuthEndpoint, onADLoginSuccess: function () { return setAuthState("Authenticated"); } }));
1839
+ return (jsx(DefaultLoginPage, { useADLogin: useADLogin, CredentialsAuthEndpoint: CredentialsAuthEndpoint, onADLoginSuccess: function () { return setAuthState("Authenticated"); }, DisableCAMSUserProfileValidation: DisableCAMSUserProfileValidation }));
1840
1840
  }
1841
1841
  };
1842
1842