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

collapsible-react-component

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collapsible-react-component - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

dist/utilities/useIsomorphicLayoutEffect.d.ts

4

dist/index.js

@@ -5,2 +5,4 @@ var React = require('react');

var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
var Collapsible = function Collapsible(_ref) {

@@ -18,3 +20,3 @@ var children = _ref.children,

React.useLayoutEffect(function () {
useIsomorphicLayoutEffect(function () {
return function () {

@@ -21,0 +23,0 @@ if (onTransitionStart) {

@@ -1,5 +0,7 @@

import { useState, useLayoutEffect, useCallback, useMemo, createElement } from 'react';
import { useLayoutEffect, useEffect, useState, useCallback, useMemo, createElement } from 'react';
var styles = {"wrapper":"_1I_qj","is_state_closed":"_1L6Gs","is_state_open":"_2mqKm","is_revealType_bottomFirst":"_2KsIP","in":"_VrGmt","is_revealType_topFirst":"_3DkiG","is_transitioning":"_12f0Z","content":"_2jwZj"};
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
var Collapsible = function Collapsible(_ref) {

@@ -17,3 +19,3 @@ var children = _ref.children,

useLayoutEffect(function () {
useIsomorphicLayoutEffect(function () {
return function () {

@@ -20,0 +22,0 @@ if (onTransitionStart) {

{
"name": "collapsible-react-component",
"version": "2.0.0",
"version": "2.0.1",
"description": "Collapses and expands content with an animation.",

@@ -5,0 +5,0 @@ "author": "FilipChalupa",

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