@janiscommerce/ui-web 0.40.0 → 0.40.1

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/CHANGELOG.md CHANGED
@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [0.39.0] - 2025-05-13
10
+ ## [0.40.1] - 2025-05-21
11
+
12
+ ### Fixed
13
+
14
+ - stop animation fn on hover marker
15
+
16
+ ## [0.40.0] - 2025-05-13
11
17
 
12
18
  ### Added
13
19
 
package/dist/index.esm.js CHANGED
@@ -16056,17 +16056,19 @@ var Marker = function Marker(_ref) {
16056
16056
  var stopAnimation = function stopAnimation() {
16057
16057
  var _markerRef$current2;
16058
16058
 
16059
- if (timeoutRef.current) clearTimeout(timeoutRef.current);
16060
16059
  if ((_markerRef$current2 = markerRef.current) !== null && _markerRef$current2 !== void 0 && _markerRef$current2.marker) markerRef.current.marker.setAnimation(null);
16061
16060
  };
16062
16061
 
16063
16062
  var startAnimation = function startAnimation() {
16064
16063
  if (!markerRef.current) return;
16065
- stopAnimation();
16064
+ if (timeoutRef.current) clearTimeout(timeoutRef.current);
16066
16065
  markerRef.current.marker.setAnimation(window.google.maps.Animation[animation === null || animation === void 0 ? void 0 : animation.name]);
16067
- if (animation !== null && animation !== void 0 && animation.duration && isNumber(animation === null || animation === void 0 ? void 0 : animation.duration)) timeoutRef.current = setTimeout(function () {
16068
- return stopAnimation();
16069
- }, animation.duration);
16066
+
16067
+ if (animation !== null && animation !== void 0 && animation.duration && isNumber(animation === null || animation === void 0 ? void 0 : animation.duration)) {
16068
+ timeoutRef.current = setTimeout(function () {
16069
+ return stopAnimation();
16070
+ }, animation.duration);
16071
+ }
16070
16072
  };
16071
16073
 
16072
16074
  useEffect(function () {