Socket
Socket
Sign inDemoInstall

@react-md/transition

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-md/transition - npm Package Compare versions

Comparing version 2.8.3 to 2.8.4

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## [2.8.4](https://github.com/mlaursen/react-md/compare/v2.8.3...v2.8.4) (2021-06-10)
### Other Internal Changes
* ran `prettier` after upgrading to v2.3.0 ([3ce236a](https://github.com/mlaursen/react-md/commit/3ce236a6008ff3d57f16cf3f6ab8e85fcce1dd4d))
## [2.8.3](https://github.com/mlaursen/react-md/compare/v2.8.2...v2.8.3) (2021-05-18)

@@ -8,0 +20,0 @@

14

es/useTransition.js

@@ -51,9 +51,11 @@ var __assign = (this && this.__assign) || function () {

*/
var getInitialState = function (transitionIn, temporary, appear) { return function () {
return {
rendered: !temporary || transitionIn,
appearing: appear && transitionIn,
stage: transitionIn && !appear ? ENTERED : EXITED,
var getInitialState = function (transitionIn, temporary, appear) {
return function () {
return {
rendered: !temporary || transitionIn,
appearing: appear && transitionIn,
stage: transitionIn && !appear ? ENTERED : EXITED,
};
};
}; };
};
/**

@@ -60,0 +62,0 @@ * This is heavily inspired by the `Transition` component from

@@ -54,9 +54,11 @@ "use strict";

*/
var getInitialState = function (transitionIn, temporary, appear) { return function () {
return {
rendered: !temporary || transitionIn,
appearing: appear && transitionIn,
stage: transitionIn && !appear ? constants_1.ENTERED : constants_1.EXITED,
var getInitialState = function (transitionIn, temporary, appear) {
return function () {
return {
rendered: !temporary || transitionIn,
appearing: appear && transitionIn,
stage: transitionIn && !appear ? constants_1.ENTERED : constants_1.EXITED,
};
};
}; };
};
/**

@@ -63,0 +65,0 @@ * This is heavily inspired by the `Transition` component from

{
"name": "@react-md/transition",
"version": "2.8.3",
"version": "2.8.4",
"description": "A package for working with react-md to use some simple transitions.",

@@ -40,4 +40,4 @@ "main": "./lib/index.js",

"@react-md/portal": "^2.8.3",
"@react-md/theme": "^2.8.3",
"@react-md/utils": "^2.8.3",
"@react-md/theme": "^2.8.4",
"@react-md/utils": "^2.8.4",
"@types/react-transition-group": "^4.4.1",

@@ -60,3 +60,3 @@ "classnames": "^2.3.1",

},
"gitHead": "c02bfcf9eca5196f9b9c415bdf6d81cabd08a980"
"gitHead": "4266facbfb84ce7fbd66ef5eed040b33fd95b92b"
}

@@ -112,13 +112,15 @@ import { Dispatch, RefCallback, useEffect, useReducer, useRef } from "react";

*/
const getInitialState = (
transitionIn: boolean,
temporary: boolean,
appear: boolean
): (() => TransitionState) => () => {
return {
rendered: !temporary || transitionIn,
appearing: appear && transitionIn,
stage: transitionIn && !appear ? ENTERED : EXITED,
const getInitialState =
(
transitionIn: boolean,
temporary: boolean,
appear: boolean
): (() => TransitionState) =>
() => {
return {
rendered: !temporary || transitionIn,
appearing: appear && transitionIn,
stage: transitionIn && !appear ? ENTERED : EXITED,
};
};
};

@@ -240,10 +242,4 @@ /**

const {
onEnter,
onEntering,
onEntered,
onExit,
onExiting,
onExited,
} = handlers.current;
const { onEnter, onEntering, onEntered, onExit, onExiting, onExited } =
handlers.current;
switch (stage) {

@@ -250,0 +246,0 @@ case ENTER:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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