New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@invisionag/iris-react-accordion

Package Overview
Dependencies
Maintainers
12
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisionag/iris-react-accordion - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

28

index.js

@@ -20,3 +20,3 @@ // @flow

startOpen: boolean,
onToggle?: boolean => any,
onToggle: boolean => any,
headerRenderer?: (open: boolean, heading: Jsx) => Jsx,

@@ -32,2 +32,3 @@ headingOpen?: Jsx,

heading: Jsx,
onToggle: () => any,
};

@@ -42,2 +43,3 @@

ref: HTMLElement;
timer: number;

@@ -47,2 +49,3 @@ static defaultProps = {

heading: 'Click to toggle',
onToggle: () => {},
};

@@ -60,4 +63,16 @@

componentWillUnmount() {
clearTimeout(this.timer);
}
unsetTransitioningState = () => {
this.setState(prevState => ({
...prevState,
transitioning: false,
}));
};
toggleAccordion = (open: boolean) => {
if (typeof this.props.onToggle === 'function') this.props.onToggle(open);
this.props.onToggle(open);
this.setState(prevState => ({

@@ -68,8 +83,5 @@ ...prevState,

}));
setTimeout(
() =>
this.setState(prevState => ({
...prevState,
transitioning: false,
})),
this.timer = setTimeout(
this.unsetTransitioningState,
parseInt(open ? animationDuration : 0, 10),

@@ -76,0 +88,0 @@ );

{
"name": "@invisionag/iris-react-accordion",
"version": "1.2.1",
"version": "1.2.2",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:ivx/iris.git",

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