@gem-sdk/core 1.30.0 → 1.30.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.
@@ -215,7 +215,10 @@ const appendAnimation = (props, liquid)=>{
215
215
  else if (device === 'mobile') return animation?.mobile ?? animation?.tablet ?? animation?.desktop;
216
216
  return animation?.desktop;
217
217
  };
218
- const getInitOpacity = (device)=>+!(getSettingsByDevice(device)?.enabled && getAnimationType(getSettingsByDevice(device), 'appear') !== 'none');
218
+ const getInitOpacity = (device)=>+!(getSettingsByDevice(device)?.enabled && ![
219
+ 'shake',
220
+ 'none'
221
+ ].includes(getAnimationType(getSettingsByDevice(device), 'appear')));
219
222
  const opacityObject = {
220
223
  desktop: getInitOpacity('desktop'),
221
224
  tablet: getInitOpacity('tablet'),
@@ -211,7 +211,10 @@ const appendAnimation = (props, liquid)=>{
211
211
  else if (device === 'mobile') return animation?.mobile ?? animation?.tablet ?? animation?.desktop;
212
212
  return animation?.desktop;
213
213
  };
214
- const getInitOpacity = (device)=>+!(getSettingsByDevice(device)?.enabled && getAnimationType(getSettingsByDevice(device), 'appear') !== 'none');
214
+ const getInitOpacity = (device)=>+!(getSettingsByDevice(device)?.enabled && ![
215
+ 'shake',
216
+ 'none'
217
+ ].includes(getAnimationType(getSettingsByDevice(device), 'appear')));
215
218
  const opacityObject = {
216
219
  desktop: getInitOpacity('desktop'),
217
220
  tablet: getInitOpacity('tablet'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",