@wix/editor-react-components 1.2463.0 → 1.2465.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.
|
@@ -88,17 +88,20 @@ const useAnimationState = (animationConfigMap, initialAnimationState) => {
|
|
|
88
88
|
const isInitPhase = animationState.phase === AnimationPhase.Enter || animationState.phase === AnimationPhase.Exit;
|
|
89
89
|
const isActivePhase = animationState.phase === AnimationPhase.EnterActive || animationState.phase === AnimationPhase.ExitActive;
|
|
90
90
|
if (isInitPhase) {
|
|
91
|
-
window.requestAnimationFrame(() => {
|
|
91
|
+
const frameId = window.requestAnimationFrame(() => {
|
|
92
92
|
var _a;
|
|
93
93
|
(_a = afterAnimationInitRef.current) == null ? void 0 : _a.call(afterAnimationInitRef);
|
|
94
94
|
afterAnimationInitRef.current = null;
|
|
95
95
|
});
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
return () => window.cancelAnimationFrame(frameId);
|
|
97
|
+
}
|
|
98
|
+
if (isActivePhase) {
|
|
99
|
+
const timeoutId = setTimeout(() => {
|
|
98
100
|
var _a;
|
|
99
101
|
(_a = afterAnimationActiveRef.current) == null ? void 0 : _a.call(afterAnimationActiveRef);
|
|
100
102
|
afterAnimationActiveRef.current = null;
|
|
101
103
|
}, animationDuration);
|
|
104
|
+
return () => clearTimeout(timeoutId);
|
|
102
105
|
}
|
|
103
106
|
}, [animationState.phase]);
|
|
104
107
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2465.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"registry": "https://registry.npmjs.org/",
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"falconPackageHash": "
|
|
200
|
+
"falconPackageHash": "ffe7f6cf5f0ac3b556de5cc4be7417b71a316bcec2d456c7259d2736"
|
|
201
201
|
}
|