@ews-admin/global-design-system 1.32.0 → 1.33.0
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/hooks/useIdleLock.d.ts +1 -1
- package/dist/hooks/useIdleLock.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/useIdleLock.ts +2 -2
package/package.json
CHANGED
package/src/hooks/useIdleLock.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
2
|
|
|
3
3
|
export interface UseIdleLockOptions {
|
|
4
|
-
/** Inactivity delay before locking. Default
|
|
4
|
+
/** Inactivity delay before locking. Default 15 minutes. */
|
|
5
5
|
timeoutMs?: number;
|
|
6
6
|
/** Called each time the screen becomes locked (idle, `lock()` or another tab). */
|
|
7
7
|
onLock?: () => void;
|
|
@@ -17,7 +17,7 @@ export interface UseIdleLockResult {
|
|
|
17
17
|
unlock: () => void;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const DEFAULT_TIMEOUT_MS =
|
|
20
|
+
const DEFAULT_TIMEOUT_MS = 900_000;
|
|
21
21
|
const DEFAULT_STORAGE_KEY = "ews-idle-lock";
|
|
22
22
|
const ACTIVITY_WRITE_INTERVAL_MS = 5_000;
|
|
23
23
|
const ACTIVITY_EVENTS = [
|