@nibssplc/cams-sdk-react 0.0.1-beta.75 → 0.0.1-beta.77
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/ErrorFallback.d.ts +5 -0
- package/dist/components/MFAGate.d.ts +1 -1
- package/dist/components/UnifiedCAMSProvider.d.ts +1 -0
- package/dist/hooks/useCAMSMSALAuth.d.ts +2 -1
- package/dist/index.cjs.js +523 -519
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +524 -521
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,5 +4,5 @@ interface MFAGateProps {
|
|
|
4
4
|
loginComponent?: React.ComponentType;
|
|
5
5
|
MFAEndpoint?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const MFAGate: ({ children, fallback, loginComponent: LoginComponent, MFAEndpoint, }: MFAGateProps) => string | number | bigint |
|
|
7
|
+
declare const MFAGate: ({ children, fallback, loginComponent: LoginComponent, MFAEndpoint, }: MFAGateProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
export default MFAGate;
|
|
@@ -16,6 +16,7 @@ interface MSALProviderProps extends BaseProviderProps, Omit<UseCAMSMSALAuthOptio
|
|
|
16
16
|
msalInstance?: PublicClientApplication;
|
|
17
17
|
}
|
|
18
18
|
type UnifiedCAMSProviderProps = RegularProviderProps | MSALProviderProps;
|
|
19
|
+
export declare const setCookie: (name: string, value: string, days?: number) => void;
|
|
19
20
|
export declare function UnifiedCAMSProvider(props: UnifiedCAMSProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export declare const CAMSProvider: (props: Omit<RegularProviderProps, "mode">) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export declare const CAMSMSALProvider: (props: Omit<MSALProviderProps, "mode">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,7 +23,8 @@ export interface UseCAMSMSALAuthReturn {
|
|
|
23
23
|
appCode: string;
|
|
24
24
|
mfaAuthenticator: CAMSMFAAuthenticator | null;
|
|
25
25
|
requiresMFA: boolean;
|
|
26
|
-
completeMFA: (
|
|
26
|
+
completeMFA: (data: UserValidatedResponse) => Promise<MFAResponse>;
|
|
27
|
+
setRequiresMFA: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
28
|
sendEmailOTP: () => Promise<boolean>;
|
|
28
29
|
}
|
|
29
30
|
export declare function useCAMSMSALAuth(options: UseCAMSMSALAuthOptions): UseCAMSMSALAuthReturn;
|