@nibssplc/cams-sdk-react 1.0.0-rc.42 → 1.0.0-rc.43
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/components/CAMSMSALProvider.d.ts +0 -1
- package/dist/components/UnifiedCAMSProvider.d.ts +0 -1
- package/dist/hooks/useCAMSMSALAuth.d.ts +0 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1259,7 +1259,7 @@ function ProtectedRoute(_a) {
|
|
|
1259
1259
|
var children = _a.children, fallback = _a.fallback, redirectTo = _a.redirectTo;
|
|
1260
1260
|
var _b = useCAMSContext$1(), isAuthenticated = _b.isAuthenticated, isLoading = _b.isLoading;
|
|
1261
1261
|
if (isLoading) {
|
|
1262
|
-
return fallback || jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
1262
|
+
return fallback || jsxRuntimeExports.jsx("div", { className: 'h-screen flex items-center justify-center', children: "Loading..." });
|
|
1263
1263
|
}
|
|
1264
1264
|
if (!isAuthenticated) {
|
|
1265
1265
|
if (redirectTo && typeof window !== 'undefined') {
|
|
@@ -1496,7 +1496,7 @@ function UnifiedCAMSProvider(props) {
|
|
|
1496
1496
|
var instance = msalInstance || new PublicClientApplication(msalConfig);
|
|
1497
1497
|
return (jsxRuntimeExports.jsx(MsalProvider, { instance: instance, children: jsxRuntimeExports.jsx(CAMSProviderCore, __assign({}, props)) }));
|
|
1498
1498
|
}
|
|
1499
|
-
return (jsxRuntimeExports.jsx(ClientOnly, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(CAMSProviderCore, __assign({}, props)) }));
|
|
1499
|
+
return (jsxRuntimeExports.jsx(ClientOnly, { fallback: jsxRuntimeExports.jsx("div", { className: 'h-screen flex items-center justify-center', children: "Loading..." }), children: jsxRuntimeExports.jsx(CAMSProviderCore, __assign({}, props)) }));
|
|
1500
1500
|
}
|
|
1501
1501
|
// Backward compatibility exports
|
|
1502
1502
|
var CAMSProvider = function (props) { return (jsxRuntimeExports.jsx(UnifiedCAMSProvider, __assign({}, props, { mode: "REGULAR" }))); };
|
|
@@ -2425,7 +2425,7 @@ var MFAEndpointsSchema = z$1.object({
|
|
|
2425
2425
|
AuthChallengeVerify: z$1.url("MFA AuthChallengeVerify must be a valid URL"),
|
|
2426
2426
|
});
|
|
2427
2427
|
var MFAGate = function (_a) {
|
|
2428
|
-
var children = _a.children, _b = _a.fallback, fallback = _b === void 0 ? jsxRuntimeExports.jsx(LoadingSpinner, {}) : _b,
|
|
2428
|
+
var children = _a.children, _b = _a.fallback, fallback = _b === void 0 ? jsxRuntimeExports.jsx("div", { className: 'h-screen flex items-center justify-center', children: jsxRuntimeExports.jsx(LoadingSpinner, {}) }) : _b,
|
|
2429
2429
|
// loginComponent: LoginComponent = DefaultLoginPage,
|
|
2430
2430
|
_c = _a.usePassKey,
|
|
2431
2431
|
// loginComponent: LoginComponent = DefaultLoginPage,
|