@livechat/design-system-react-components 2.7.0 → 2.8.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/useAnimations.d.ts +2 -1
- package/dist/hooks/useSleepWakeSync.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1149 -1139
- package/package.json +3 -3
|
@@ -2,11 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
interface UseAnimationsProps {
|
|
3
3
|
isVisible: boolean;
|
|
4
4
|
elementRef: React.RefObject<HTMLDivElement>;
|
|
5
|
+
includeSleepWakeScenario?: boolean;
|
|
5
6
|
}
|
|
6
7
|
interface IUseAnimations {
|
|
7
8
|
isOpen: boolean;
|
|
8
9
|
isMounted: boolean;
|
|
9
10
|
setShouldBeVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
11
|
}
|
|
11
|
-
export declare const useAnimations: ({ isVisible, elementRef, }: UseAnimationsProps) => IUseAnimations;
|
|
12
|
+
export declare const useAnimations: ({ isVisible, elementRef, includeSleepWakeScenario, }: UseAnimationsProps) => IUseAnimations;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Syncs the wake event with the visibility change event.
|
|
3
|
+
* @param onWake The function to call when the wake event is triggered.
|
|
4
|
+
* @param enabled Whether the sync should be enabled.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useSleepWakeSync: (onWake: () => void, enabled: boolean) => void;
|