@gem-sdk/core 2.0.0-dev.1258 → 2.0.0-dev.1259

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),useLivePageAnimation=require("../../hooks/animation/useLivePageAnimation.js"),react=require("react"),makeStyle=require("../../helpers/make-style.js");const AnimationWrapper=({children:e,settings:t,tag:i})=>{let n=react.useRef(null),a=(e,t)=>e?.triggerConfig?.[t]?.animation??"none",r=e=>{if("desktop"===e);else if("tablet"===e)return t?.tablet??t?.desktop;else if("mobile"===e)return t?.mobile??t?.tablet??t?.desktop;return t?.desktop},s=e=>r(e)?.enabled&&!["shake","none"].includes(a(r(e),"appear"))?"hidden":"visible",o={desktop:s("desktop"),tablet:s("tablet"),mobile:s("mobile")};return useLivePageAnimation.useLivePageAnimation(n,t,i),jsxRuntime.jsx("div",{ref:n,style:{...makeStyle.makeStyleResponsive("v",o),display:"contents"},children:e})};exports.default=AnimationWrapper;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),useLivePageAnimation=require("../../hooks/animation/useLivePageAnimation.js"),react=require("react");const AnimationWrapper=({children:e,settings:i,tag:t})=>{let r=react.useRef(null);return useLivePageAnimation.useLivePageAnimation(r,i,t),jsxRuntime.jsx("div",{ref:r,style:{display:"contents"},children:e})};exports.default=AnimationWrapper;
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useLivePageAnimation as t}from"../../hooks/animation/useLivePageAnimation.js";import{useRef as i}from"react";import{makeStyleResponsive as o}from"../../helpers/make-style.js";let AnimationWrapper=({children:r,settings:n,tag:a})=>{let l=i(null),s=(e,t)=>e?.triggerConfig?.[t]?.animation??"none",m=e=>{if("desktop"===e);else if("tablet"===e)return n?.tablet??n?.desktop;else if("mobile"===e)return n?.mobile??n?.tablet??n?.desktop;return n?.desktop},p=e=>m(e)?.enabled&&!["shake","none"].includes(s(m(e),"appear"))?"hidden":"visible",d={desktop:p("desktop"),tablet:p("tablet"),mobile:p("mobile")};return t(l,n,a),e("div",{ref:l,style:{...o("v",d),display:"contents"},children:r})};export{AnimationWrapper as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{useLivePageAnimation as t}from"../../hooks/animation/useLivePageAnimation.js";import{useRef as e}from"react";let AnimationWrapper=({children:i,settings:n,tag:o})=>{let a=e(null);return t(a,n,o),r("div",{ref:a,style:{display:"contents"},children:i})};export{AnimationWrapper as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.1258",
3
+ "version": "2.0.0-dev.1259",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",