@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.cjs.js
CHANGED
|
@@ -1280,7 +1280,7 @@ function ProtectedRoute(_a) {
|
|
|
1280
1280
|
var children = _a.children, fallback = _a.fallback, redirectTo = _a.redirectTo;
|
|
1281
1281
|
var _b = useCAMSContext$1(), isAuthenticated = _b.isAuthenticated, isLoading = _b.isLoading;
|
|
1282
1282
|
if (isLoading) {
|
|
1283
|
-
return fallback || jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
1283
|
+
return fallback || jsxRuntimeExports.jsx("div", { className: 'h-screen flex items-center justify-center', children: "Loading..." });
|
|
1284
1284
|
}
|
|
1285
1285
|
if (!isAuthenticated) {
|
|
1286
1286
|
if (redirectTo && typeof window !== 'undefined') {
|
|
@@ -1517,7 +1517,7 @@ function UnifiedCAMSProvider(props) {
|
|
|
1517
1517
|
var instance = msalInstance || new msalBrowser.PublicClientApplication(msalConfig);
|
|
1518
1518
|
return (jsxRuntimeExports.jsx(msalReact.MsalProvider, { instance: instance, children: jsxRuntimeExports.jsx(CAMSProviderCore, __assign({}, props)) }));
|
|
1519
1519
|
}
|
|
1520
|
-
return (jsxRuntimeExports.jsx(ClientOnly, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(CAMSProviderCore, __assign({}, props)) }));
|
|
1520
|
+
return (jsxRuntimeExports.jsx(ClientOnly, { fallback: jsxRuntimeExports.jsx("div", { className: 'h-screen flex items-center justify-center', children: "Loading..." }), children: jsxRuntimeExports.jsx(CAMSProviderCore, __assign({}, props)) }));
|
|
1521
1521
|
}
|
|
1522
1522
|
// Backward compatibility exports
|
|
1523
1523
|
var CAMSProvider = function (props) { return (jsxRuntimeExports.jsx(UnifiedCAMSProvider, __assign({}, props, { mode: "REGULAR" }))); };
|
|
@@ -2446,7 +2446,7 @@ var MFAEndpointsSchema = z.object({
|
|
|
2446
2446
|
AuthChallengeVerify: z.url("MFA AuthChallengeVerify must be a valid URL"),
|
|
2447
2447
|
});
|
|
2448
2448
|
var MFAGate = function (_a) {
|
|
2449
|
-
var children = _a.children, _b = _a.fallback, fallback = _b === void 0 ? jsxRuntimeExports.jsx(LoadingSpinner, {}) : _b,
|
|
2449
|
+
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,
|
|
2450
2450
|
// loginComponent: LoginComponent = DefaultLoginPage,
|
|
2451
2451
|
_c = _a.usePassKey,
|
|
2452
2452
|
// loginComponent: LoginComponent = DefaultLoginPage,
|