@visin/frontend-core 0.1.8 → 0.1.9

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.
@@ -0,0 +1,21 @@
1
+ import type { AuthContextValue } from '../../auth/AuthProvider';
2
+ /** The slice of `useAuth()` a LoginRedirect needs. */
3
+ export type LoginRedirectAuth = Pick<AuthContextValue, 'refresh' | 'login'>;
4
+ export interface LoginRedirectOptions {
5
+ /**
6
+ * Where to send a successfully authenticated user. Each front's default
7
+ * route differs (`/account` vs. `/jobs`), and getting this wrong sends the
8
+ * user to a route the app doesn't have — so it's required, not defaulted.
9
+ */
10
+ redirectTo: string;
11
+ }
12
+ /**
13
+ * Builds the landing component for the post-login return URL: it re-runs the
14
+ * session check, then either navigates to the app's default route or shows a
15
+ * retry card.
16
+ *
17
+ * Takes `useAuth` as an argument for the same reason as
18
+ * `createProtectedRoute` — each front owns its own auth context instance.
19
+ */
20
+ export declare function createLoginRedirect(useAuth: () => LoginRedirectAuth, { redirectTo }: LoginRedirectOptions): () => import("react").JSX.Element;
21
+ //# sourceMappingURL=LoginRedirect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginRedirect.d.ts","sourceRoot":"","sources":["../../../src/components/LoginRedirect/LoginRedirect.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,sDAAsD;AACtD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,iBAAiB,EAAE,EAAE,UAAU,EAAE,EAAE,oBAAoB,qCA+DzG"}
@@ -0,0 +1,57 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { useNavigate } from 'react-router-dom';
4
+ import { Box, Typography, Button, Paper } from '@mui/material';
5
+ import { ErrorOutlined } from '@mui/icons-material';
6
+ import { Loader } from '../Loader';
7
+ /**
8
+ * Builds the landing component for the post-login return URL: it re-runs the
9
+ * session check, then either navigates to the app's default route or shows a
10
+ * retry card.
11
+ *
12
+ * Takes `useAuth` as an argument for the same reason as
13
+ * `createProtectedRoute` — each front owns its own auth context instance.
14
+ */
15
+ export function createLoginRedirect(useAuth, { redirectTo }) {
16
+ return function LoginRedirect() {
17
+ const navigate = useNavigate();
18
+ const { refresh, login } = useAuth();
19
+ const [error, setError] = useState(null);
20
+ useEffect(() => {
21
+ const checkAuth = async () => {
22
+ try {
23
+ const result = await refresh();
24
+ if (result.authenticated) {
25
+ navigate(redirectTo, { replace: true });
26
+ }
27
+ else {
28
+ setError('Authentication failed. Please try logging in again.');
29
+ }
30
+ }
31
+ catch (error) {
32
+ console.error('Auth check failed:', error);
33
+ setError('Authentication check failed. Please try logging in again.');
34
+ }
35
+ };
36
+ checkAuth();
37
+ }, [navigate, refresh]);
38
+ if (error) {
39
+ return (_jsx(Box, { sx: {
40
+ display: 'flex',
41
+ alignItems: 'center',
42
+ justifyContent: 'center',
43
+ height: '100vh',
44
+ bgcolor: 'background.default',
45
+ p: 3
46
+ }, children: _jsxs(Paper, { variant: "outlined", sx: {
47
+ p: 4,
48
+ maxWidth: 400,
49
+ textAlign: 'center',
50
+ borderRadius: 3,
51
+ borderColor: 'divider'
52
+ }, children: [_jsx(ErrorOutlined, { sx: { fontSize: 48, color: 'error.main', mb: 2 } }), _jsx(Typography, { variant: "h5", gutterBottom: true, sx: { fontWeight: 700 }, children: "Login Error" }), _jsx(Typography, { variant: "body2", sx: { color: 'text.secondary', mb: 3 }, children: error }), _jsx(Button, { variant: "contained", fullWidth: true, onClick: () => login(), sx: { borderRadius: 2, py: 1.2 }, children: "Try Login Again" })] }) }));
53
+ }
54
+ return _jsx(Loader, { message: "Checking authentication..." });
55
+ };
56
+ }
57
+ //# sourceMappingURL=LoginRedirect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginRedirect.js","sourceRoot":"","sources":["../../../src/components/LoginRedirect/LoginRedirect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAenC;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAgC,EAAE,EAAE,UAAU,EAAwB;IACxG,OAAO,SAAS,aAAa;QAC3B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;QAC/B,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC;QACrC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;QAExD,SAAS,CAAC,GAAG,EAAE;YACb,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE;gBAC3B,IAAI,CAAC;oBACH,MAAM,MAAM,GAAG,MAAM,OAAO,EAAE,CAAC;oBAC/B,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;wBACzB,QAAQ,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;oBAC1C,CAAC;yBAAM,CAAC;wBACN,QAAQ,CAAC,qDAAqD,CAAC,CAAC;oBAClE,CAAC;gBACH,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAA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AAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { createLoginRedirect } from './LoginRedirect';
2
+ export type { LoginRedirectAuth, LoginRedirectOptions } from './LoginRedirect';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LoginRedirect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createLoginRedirect } from './LoginRedirect';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LoginRedirect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { AuthContextValue } from '../../auth/AuthProvider';
3
+ /**
4
+ * The slice of `useAuth()` a ProtectedRoute needs. Narrower than
5
+ * `AuthContextValue` so a consumer can pass any compatible hook.
6
+ */
7
+ export type ProtectedRouteAuth = Pick<AuthContextValue, 'isAuthenticated' | 'isLoading' | 'login'>;
8
+ export interface ProtectedRouteProps {
9
+ children: ReactNode;
10
+ }
11
+ /**
12
+ * Builds a route guard that redirects to the login page when the session
13
+ * check comes back unauthenticated, and renders its children otherwise.
14
+ *
15
+ * Takes `useAuth` as an argument rather than importing a context: each front
16
+ * builds its own context via `createAuthContext(authService)`, so a context
17
+ * imported inside this lib would be a different, always-empty one. A factory
18
+ * (rather than a `useAuth` prop) keeps the call sites unchanged —
19
+ * `<ProtectedRoute>...</ProtectedRoute>` — and keeps the hook call
20
+ * unconditional, as the rules of hooks require.
21
+ */
22
+ export declare function createProtectedRoute(useAuth: () => ProtectedRouteAuth): ({ children }: ProtectedRouteProps) => import("react").JSX.Element;
23
+ //# sourceMappingURL=ProtectedRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/components/ProtectedRoute/ProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,WAAW,GAAG,OAAO,CAAC,CAAC;AAEnG,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,kBAAkB,IACrC,cAAc,mBAAmB,iCAoBjE"}
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useEffect } from 'react';
3
+ import { Loader } from '../Loader';
4
+ /**
5
+ * Builds a route guard that redirects to the login page when the session
6
+ * check comes back unauthenticated, and renders its children otherwise.
7
+ *
8
+ * Takes `useAuth` as an argument rather than importing a context: each front
9
+ * builds its own context via `createAuthContext(authService)`, so a context
10
+ * imported inside this lib would be a different, always-empty one. A factory
11
+ * (rather than a `useAuth` prop) keeps the call sites unchanged —
12
+ * `<ProtectedRoute>...</ProtectedRoute>` — and keeps the hook call
13
+ * unconditional, as the rules of hooks require.
14
+ */
15
+ export function createProtectedRoute(useAuth) {
16
+ return function ProtectedRoute({ children }) {
17
+ const { isAuthenticated, isLoading, login } = useAuth();
18
+ useEffect(() => {
19
+ if (!isLoading && !isAuthenticated) {
20
+ login();
21
+ }
22
+ }, [isLoading, isAuthenticated, login]);
23
+ if (isLoading) {
24
+ return _jsx(Loader, { message: "Checking authentication..." });
25
+ }
26
+ if (!isAuthenticated) {
27
+ // login() above navigates away; this is what shows during that beat.
28
+ return _jsx("div", { children: "Redirecting to login..." });
29
+ }
30
+ return _jsx(_Fragment, { children: children });
31
+ };
32
+ }
33
+ //# sourceMappingURL=ProtectedRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtectedRoute.js","sourceRoot":"","sources":["../../../src/components/ProtectedRoute/ProtectedRoute.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAanC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAiC;IACpE,OAAO,SAAS,cAAc,CAAC,EAAE,QAAQ,EAAuB;QAC9D,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC;QAExD,SAAS,CAAC,GAAG,EAAE;YACb,IAAI,CAAC,SAAS,IAAI,CAAC,eAAe,EAAE,CAAC;gBACnC,KAAK,EAAE,CAAC;YACV,CAAC;QACH,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC;QAExC,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,KAAC,MAAM,IAAC,OAAO,EAAC,4BAA4B,GAAG,CAAC;QACzD,CAAC;QAED,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,qEAAqE;YACrE,OAAO,oDAAkC,CAAC;QAC5C,CAAC;QAED,OAAO,4BAAG,QAAQ,GAAI,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { createProtectedRoute } from './ProtectedRoute';
2
+ export type { ProtectedRouteProps, ProtectedRouteAuth } from './ProtectedRoute';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProtectedRoute/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createProtectedRoute } from './ProtectedRoute';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ProtectedRoute/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -6,6 +6,10 @@ export { ErrorPage } from './components/ErrorPage';
6
6
  export type { ErrorPageProps } from './components/ErrorPage';
7
7
  export { AppLayout } from './components/AppLayout';
8
8
  export type { AppLayoutProps, AppLayoutNavItem, AppLayoutFooterLink, AppLayoutUser } from './components/AppLayout';
9
+ export { createProtectedRoute } from './components/ProtectedRoute';
10
+ export type { ProtectedRouteProps, ProtectedRouteAuth } from './components/ProtectedRoute';
11
+ export { createLoginRedirect } from './components/LoginRedirect';
12
+ export type { LoginRedirectAuth, LoginRedirectOptions } from './components/LoginRedirect';
9
13
  export { createAuthService } from './auth/authService';
10
14
  export type { AuthService, AuthServiceOptions, AuthUser, AuthCheckResult } from './auth/authService';
11
15
  export { createAuthContext } from './auth/AuthProvider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAElF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MA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BAA4B,CAAC;AACjE,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
package/dist/index.js CHANGED
@@ -3,6 +3,8 @@ export { createApiClient, ApiError } from './apiClient';
3
3
  export { Loader } from './components/Loader';
4
4
  export { ErrorPage } from './components/ErrorPage';
5
5
  export { AppLayout } from './components/AppLayout';
6
+ export { createProtectedRoute } from './components/ProtectedRoute';
7
+ export { createLoginRedirect } from './components/LoginRedirect';
6
8
  export { createAuthService } from './auth/authService';
7
9
  export { createAuthContext } from './auth/AuthProvider';
8
10
  export { createConfigProvider } from './config/createConfigProvider';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAEnF,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAEnF,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visin/frontend-core",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Shared frontend auth/API-client logic for Visin frontends",
5
5
  "author": "Toomas Tahves",
6
6
  "license": "MIT",