@nibssplc/cams-sdk-react 0.0.1-beta.16 → 0.0.1-beta.18

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.
@@ -1,6 +1,13 @@
1
- import React from 'react';
2
- export interface CAMSProviderProps {
3
- children: React.ReactNode;
1
+ import { ReactNode } from 'react';
2
+ import { CAMSConfig } from '@nibssplc/cams-sdk';
3
+ import { UseCAMSAuthReturn, UseCAMSAuthOptions } from '../hooks/useCAMSAuth';
4
+ interface CAMSContextValue extends UseCAMSAuthReturn {
5
+ defaultConfig?: Partial<CAMSConfig>;
4
6
  }
5
- export declare function CAMSProvider({ children }: CAMSProviderProps): import("react/jsx-runtime").JSX.Element;
6
- export declare function useCAMSContext(): any;
7
+ export interface CAMSProviderProps extends UseCAMSAuthOptions {
8
+ children: ReactNode;
9
+ defaultConfig?: Partial<CAMSConfig>;
10
+ }
11
+ export declare function CAMSProvider({ children, defaultConfig, ...authOptions }: CAMSProviderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function useCAMSContext(): CAMSContextValue;
13
+ export {};
@@ -4,4 +4,4 @@ export interface ProtectedRouteProps {
4
4
  fallback?: ReactNode;
5
5
  redirectTo?: string;
6
6
  }
7
- export declare function ProtectedRoute({ children, fallback, redirectTo }: ProtectedRouteProps): string | number | true | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null;
7
+ export declare function ProtectedRoute({ children, fallback, redirectTo }: ProtectedRouteProps): string | number | bigint | true | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null;