fixed api report and docs
Signed-off-by: Manuel Scurti <manuel.scurti@agilelab.it>
This commit is contained in:
@@ -69,23 +69,14 @@ export type AlertDisplayProps = {
|
||||
};
|
||||
|
||||
// @public
|
||||
export const AutoLogoutProvider: ({
|
||||
children,
|
||||
enabled,
|
||||
idleTimeoutMinutes,
|
||||
promptBeforeIdleSeconds,
|
||||
useWorkerTimers,
|
||||
events,
|
||||
logoutIfDisconnected,
|
||||
}: PropsWithChildren<AutoLogoutProviderProps>) => JSX.Element;
|
||||
export const AutoLogout: (props: AutoLogoutProps) => JSX.Element | null;
|
||||
|
||||
// @public (undocumented)
|
||||
export type AutoLogoutProviderProps = {
|
||||
export type AutoLogoutProps = {
|
||||
enabled?: boolean;
|
||||
idleTimeoutMinutes?: number;
|
||||
promptBeforeIdleSeconds?: number;
|
||||
useWorkerTimers?: boolean;
|
||||
events?: AutoLogoutTrackableEvent[];
|
||||
logoutIfDisconnected?: boolean;
|
||||
};
|
||||
|
||||
@@ -190,14 +181,6 @@ export interface CodeSnippetProps {
|
||||
text: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export const ConfigBasedAutoLogoutProvider: ({
|
||||
children,
|
||||
}: PropsWithChildren<ConfigBasedAutoLogoutProviderProps>) => JSX.Element;
|
||||
|
||||
// @public (undocumented)
|
||||
export type ConfigBasedAutoLogoutProviderProps = {};
|
||||
|
||||
// Warning: (ae-forgotten-export) The symbol "Props_13" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// @public
|
||||
|
||||
@@ -229,7 +229,7 @@ const parseConfig = (
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const AutoLogout = (props: AutoLogoutProps): JSX.Element => {
|
||||
export const AutoLogout = (props: AutoLogoutProps): JSX.Element | null => {
|
||||
const identityApi = useApi(identityApiRef);
|
||||
const configApi = useApi(configApiRef);
|
||||
const [isLogged, setIsLogged] = useState(false);
|
||||
@@ -293,7 +293,7 @@ export const AutoLogout = (props: AutoLogoutProps): JSX.Element => {
|
||||
});
|
||||
|
||||
if (!enabled || !isLogged) {
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user