@gem-sdk/core 1.23.0-staging.293 → 1.23.0-staging.296

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.
@@ -7,6 +7,7 @@ var animations = require('./animations.js');
7
7
  // packages/web-components/src/gp-animation.ts, and vice versa.
8
8
  const TAGS_SELECTOR = {
9
9
  Button: '.gp-button-base',
10
+ Carousel: '.gp-carousel-wrapper',
10
11
  Sticky: 'gp-sticky',
11
12
  Dialog: 'div[role=dialog]',
12
13
  Icon: 'div div',
@@ -67,9 +68,11 @@ const useLivePageAnimation = (wrapperRef, settings, tag)=>{
67
68
  removeZeroOpacity
68
69
  ]);
69
70
  const cancelAppear = react.useCallback(()=>{
71
+ removeZeroOpacity();
70
72
  if (!animationAppearInstance.current) return;
71
73
  animationAppearInstance.current.cancel();
72
74
  }, [
75
+ removeZeroOpacity,
73
76
  animationAppearInstance
74
77
  ]);
75
78
  const playHover = react.useCallback((e)=>{
@@ -5,6 +5,7 @@ import { animations } from './animations.js';
5
5
  // packages/web-components/src/gp-animation.ts, and vice versa.
6
6
  const TAGS_SELECTOR = {
7
7
  Button: '.gp-button-base',
8
+ Carousel: '.gp-carousel-wrapper',
8
9
  Sticky: 'gp-sticky',
9
10
  Dialog: 'div[role=dialog]',
10
11
  Icon: 'div div',
@@ -65,9 +66,11 @@ const useLivePageAnimation = (wrapperRef, settings, tag)=>{
65
66
  removeZeroOpacity
66
67
  ]);
67
68
  const cancelAppear = useCallback(()=>{
69
+ removeZeroOpacity();
68
70
  if (!animationAppearInstance.current) return;
69
71
  animationAppearInstance.current.cancel();
70
72
  }, [
73
+ removeZeroOpacity,
71
74
  animationAppearInstance
72
75
  ]);
73
76
  const playHover = useCallback((e)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.23.0-staging.293",
3
+ "version": "1.23.0-staging.296",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",