Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@animxyz/react

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@animxyz/react - npm Package Compare versions

Comparing version 0.0.23 to 0.1.0

2

dist/ReactAnimXyz.cjs.js
/**
* ReactAnimXyz v0.0.22
* ReactAnimXyz v0.0.23
* Copyright (c) 2020-present Ingram Projects

@@ -4,0 +4,0 @@ * Released under the MIT License.

/**
* ReactAnimXyz v0.0.22
* ReactAnimXyz v0.0.23
* Copyright (c) 2020-present Ingram Projects

@@ -4,0 +4,0 @@ * Released under the MIT License.

/**
* ReactAnimXyz v0.0.22
* ReactAnimXyz v0.0.23
* Copyright (c) 2020-present Ingram Projects

@@ -9,3 +9,3 @@ * Released under the MIT License.

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("react-transition-group"),require("clsx")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","react-transition-group","clsx"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactAnimXyz={},e.React,e.PropTypes,e.reactTransitionGroup,e.clsx)}(this,(function(e,t,n,r,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(t),u=a(n),l=a(i);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var p="xyz-appear-from",f="xyz-appear",y="xyz-appear-to",d="xyz-in-from",m="xyz-in",x="xyz-in-to",z="xyz-out-from",h="xyz-out",T="xyz-out-to";function v(e){clearTimeout(e.xyzAnimTimeout),e.removeEventListener("animationend",e.xyzAnimEnd),e.removeEventListener("animationcancelled",e.xyzAnimEnd),delete e.xyzAnimTimeout,delete e.xyzAnimEnd}function g(e){var t=(e||{}).timeout,n={appear:p,appearActive:f,appearDone:y,enter:d,enterActive:m,enterDone:x,exit:z,exitActive:h,exitDone:T},r=function(e){return function(t,n){function r(){n(),v(t)}v(t);var i=function(e){return e.classList.contains("xyz-appear")?"appear":e.classList.contains("xyz-in")?"in":e.classList.contains("xyz-out")?"out":null}(t),a=function(e,t){if("object"!=typeof t||null===t)return t;switch(e){case"appear":return t.appear;case"in":return t.enter;case"out":return t.exit}return null}(i,e);if("number"!=typeof a){var o="xyz-"+i+"-keyframes",u=[t];if("auto"===a){var l=t.querySelectorAll(".xyz-nested, .xyz-"+i+"-nested");u.push.apply(u,Array.from(l))}var s=u.filter((function(e){return null!==e.offsetParent&&-1!==window.getComputedStyle(e).getPropertyValue("animation-name").indexOf(o)})),c=new Set(s);t.xyzAnimEnd=function(e){e.animationName===o&&(c.delete(e.target),0===c.size&&r())},t.addEventListener("animationend",t.xyzAnimEnd,!1),t.addEventListener("animationcancelled",t.xyzAnimEnd,!1)}else t.xyzAnimTimeout=setTimeout(r,a)}}(t),i=Object.assign({},e,{classNames:Object.assign({},n,e.classNames),addEndListener:r});return delete i.timeout,i}function b(e){var n=e.xyz,i=e.children,a=g(c(e,["xyz","children"])),u=t.Children.toArray(i).filter(Boolean);if(1!==u.length)throw new Error("XyzTransition must have a single truthy child at all times");var l=u[0];return o.default.createElement(r.CSSTransition,a,t.cloneElement(l,Object.assign({xyz:n},l.props)))}function O(e){var n=e.xyz,i=e.component,a=e.childFactory,u=e.children,l=c(e,["xyz","component","childFactory","children"]),p=t.Children.toArray(u).filter(Boolean);return o.default.createElement(r.TransitionGroup,{xyz:n,component:i,childFactory:a},p.map((function(e,n){return o.default.createElement(b,s({},l,{key:e.key}),t.cloneElement(e,{style:Object.assign({"--xyz-index":n,"--xyz-index-rev":p.length-n-1},e.style)}))})))}function E(e){var n=e.mode,i=e.children,a=c(e,["mode","children"]),u=t.Children.toArray(i).filter(Boolean);if(1!==u.length)throw new Error("XyzTransitionSwitch must have a single truthy child at all times");var l=u[0];return o.default.createElement(r.SwitchTransition,{mode:n},o.default.createElement(b,s({},a,{key:l.key}),l))}b.propTypes=Object.assign({},r.CSSTransition.propTypes,{xyz:u.default.string,timeout:u.default.oneOfType([u.default.number,u.default.oneOf(["auto"]),u.default.shape({appear:u.default.oneOfType([u.default.number,u.default.oneOf(["auto"])]),enter:u.default.oneOfType([u.default.number,u.default.oneOf(["auto"])]),exit:u.default.oneOfType([u.default.number,u.default.oneOf(["auto"])])})]),children:u.default.node}),O.propTypes=Object.assign({},r.TransitionGroup.propTypes,b.propTypes),E.propTypes=Object.assign({},r.SwitchTransition.propTypes,b.propTypes),Object.defineProperty(e,"xyz",{enumerable:!0,get:function(){return l.default}}),e.XyzTransition=b,e.XyzTransitionGroup=O,e.XyzTransitionSwitch=E,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-transition-group"),require("clsx")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-transition-group","clsx"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactAnimXyz={},e.PropTypes,e.reactTransitionGroup,e.clsx)}(this,(function(e,t,r,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t),u=o(n);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function f(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function y(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var d=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=y(e),i=1;i<arguments.length;i++){for(var u in r=Object(arguments[i]))s.call(r,u)&&(o[u]=r[u]);if(l){n=l(r);for(var a=0;a<n.length;a++)p.call(r,n[a])&&(o[n[a]]=r[n[a]])}}return o},m=f((function(e,t){var r=60103,n=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,i=60110,u=60112;t.Suspense=60113;var a=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;r=f("react.element"),n=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),i=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),a=f("react.memo"),c=f("react.lazy")}var l="function"==typeof Symbol&&Symbol.iterator;function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function m(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||p}function h(){}function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(s(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=m.prototype;var b=v.prototype=new h;b.constructor=v,d(b,m.prototype),b.isPureReactComponent=!0;var x={current:null},g=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var o,i={},u=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)g.call(t,o)&&!O.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var f=Array(c),l=0;l<c;l++)f[l]=arguments[l+2];i.children=f}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:r,type:e,key:u,ref:a,props:i,_owner:x.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var w=/\/+/g;function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,o,i,u){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return u=u(c=e),e=""===i?"."+z(c,0):i,Array.isArray(u)?(o="",null!=e&&(o=e.replace(w,"$&/")+"/"),E(u,t,o,"",(function(e){return e}))):null!=u&&(j(u)&&(u=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(u,o+(!u.key||c&&c.key===u.key?"":(""+u.key).replace(w,"$&/")+"/")+e)),t.push(u)),1;if(c=0,i=""===i?".":i+":",Array.isArray(e))for(var f=0;f<e.length;f++){var p=i+z(a=e[f],f);c+=E(a,t,o,p,u)}else if("function"==typeof(p=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=l&&e[l]||e["@@iterator"])?e:null}(e)))for(e=p.call(e),f=0;!(a=e.next()).done;)c+=E(a=a.value,t,o,p=i+z(a,f++),u);else if("object"===a)throw t=""+e,Error(s(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function S(e,t,r){if(null==e)return e;var n=[],o=0;return E(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var k={current:null};function C(){var e=k.current;if(null===e)throw Error(s(321));return e}var A={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:d};t.Children={map:S,forEach:function(e,t,r){S(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return S(e,(function(){t++})),t},toArray:function(e){return S(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error(s(143));return e}},t.Component=m,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error(s(267,e));var o=d({},e.props),i=e.key,u=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,a=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(f in t)g.call(t,f)&&!O.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==c?c[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){c=Array(f);for(var l=0;l<f;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:r,type:e.type,key:i,ref:u,props:o,_owner:a}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:a,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return C().useCallback(e,t)},t.useContext=function(e,t){return C().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return C().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return C().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return C().useLayoutEffect(e,t)},t.useMemo=function(e,t){return C().useMemo(e,t)},t.useReducer=function(e,t,r){return C().useReducer(e,t,r)},t.useRef=function(e){return C().useRef(e)},t.useState=function(e){return C().useState(e)},t.version="17.0.1"})),h=(f((function(e,t){})),f((function(e){e.exports=m}))),v="xyz-appear-from",b="xyz-appear",x="xyz-appear-to",g="xyz-in-from",O="xyz-in",_="xyz-in-to",j="xyz-out-from",w="xyz-out",z="xyz-out-to";function E(e){clearTimeout(e.xyzAnimTimeout),e.removeEventListener("animationend",e.xyzAnimEnd),e.removeEventListener("animationcancelled",e.xyzAnimEnd),delete e.xyzAnimTimeout,delete e.xyzAnimEnd}function S(e){var t=(e||{}).timeout,r={appear:v,appearActive:b,appearDone:x,enter:g,enterActive:O,enterDone:_,exit:j,exitActive:w,exitDone:z},n=function(e){return function(t,r){function n(){r(),E(t)}E(t);var o=function(e){return e.classList.contains("xyz-appear")?"appear":e.classList.contains("xyz-in")?"in":e.classList.contains("xyz-out")?"out":null}(t),i=function(e,t){if("object"!=typeof t||null===t)return t;switch(e){case"appear":return t.appear;case"in":return t.enter;case"out":return t.exit}return null}(o,e);if("number"!=typeof i){var u="xyz-"+o+"-keyframes",a=[t];if("auto"===i){var c=t.querySelectorAll(".xyz-nested, .xyz-"+o+"-nested");a.push.apply(a,Array.from(c))}var f=a.filter((function(e){return null!==e.offsetParent&&-1!==window.getComputedStyle(e).getPropertyValue("animation-name").indexOf(u)})),l=new Set(f);t.xyzAnimEnd=function(e){e.animationName===u&&(l.delete(e.target),0===l.size&&n())},t.addEventListener("animationend",t.xyzAnimEnd,!1),t.addEventListener("animationcancelled",t.xyzAnimEnd,!1)}else t.xyzAnimTimeout=setTimeout(n,i)}}(t),o=Object.assign({},e,{classNames:Object.assign({},r,e.classNames),addEndListener:n});return delete o.timeout,o}function T(e){var t=e.xyz,n=e.children,o=S(c(e,["xyz","children"])),i=h.Children.toArray(n).filter(Boolean);if(1!==i.length)throw new Error("XyzTransition must have a single truthy child at all times");var u=i[0];return h.createElement(r.CSSTransition,o,h.cloneElement(u,Object.assign({xyz:t},u.props)))}function k(e){var t=e.xyz,n=e.component,o=e.childFactory,i=e.children,u=c(e,["xyz","component","childFactory","children"]),f=h.Children.toArray(i).filter(Boolean);return h.createElement(r.TransitionGroup,{xyz:t,component:n,childFactory:o},f.map((function(e,t){return h.createElement(T,a({},u,{key:e.key}),h.cloneElement(e,{style:Object.assign({"--xyz-index":t,"--xyz-index-rev":f.length-t-1},e.style)}))})))}function C(e){var t=e.mode,n=e.children,o=c(e,["mode","children"]),i=h.Children.toArray(n).filter(Boolean);if(1!==i.length)throw new Error("XyzTransitionSwitch must have a single truthy child at all times");var u=i[0];return h.createElement(r.SwitchTransition,{mode:t},h.createElement(T,a({},o,{key:u.key}),u))}T.propTypes=Object.assign({},r.CSSTransition.propTypes,{xyz:i.default.string,timeout:i.default.oneOfType([i.default.number,i.default.oneOf(["auto"]),i.default.shape({appear:i.default.oneOfType([i.default.number,i.default.oneOf(["auto"])]),enter:i.default.oneOfType([i.default.number,i.default.oneOf(["auto"])]),exit:i.default.oneOfType([i.default.number,i.default.oneOf(["auto"])])})]),children:i.default.node}),k.propTypes=Object.assign({},r.TransitionGroup.propTypes,T.propTypes),C.propTypes=Object.assign({},r.SwitchTransition.propTypes,T.propTypes),Object.defineProperty(e,"xyz",{enumerable:!0,get:function(){return u.default}}),e.XyzTransition=T,e.XyzTransitionGroup=k,e.XyzTransitionSwitch=C,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ReactAnimXyz.js.map
{
"name": "@animxyz/react",
"version": "0.0.23",
"version": "0.1.0",
"publishConfig": {

@@ -47,3 +47,3 @@ "access": "public"

"dependencies": {
"@animxyz/core": "^0.0.23",
"@animxyz/core": "^0.1.0",
"clsx": "^1.1.1",

@@ -63,3 +63,3 @@ "prop-types": "^15.7.2",

},
"gitHead": "81c8911bf3dfdf30a0c90f906c436e931409ce78"
"gitHead": "8737b32c7f6067679d47710f114ad471161c683d"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc