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

react-resizable

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resizable - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

13

build/Resizable.js

@@ -28,4 +28,3 @@ 'use strict';

/*:: type Position = {
deltaX: number,
deltaY: number
};*/

@@ -39,3 +38,5 @@ /*:: type State = {

node: HTMLElement,
position: Position
x: number, y: number,
deltaX: number, deltaY: number,
lastX: number, lastY: number
};*/

@@ -140,5 +141,4 @@

var node = _ref.node;
var position = _ref.position;
var deltaX = position.deltaX;
var deltaY = position.deltaY;
var deltaX = _ref.deltaX;
var deltaY = _ref.deltaY;

@@ -164,2 +164,3 @@ var width = _this2.state.width + deltaX,

newState.resizing = false;
newState.slackW = newState.slackH = 0;
} else {

@@ -166,0 +167,0 @@ // Early return if no change after constraints

# Changelog
### 1.4.0 (May 20, 2016)
- Update to React-Draggable v2, which changed callback data structure.
### 1.3.4 (May 17, 2016)
- Bugfix: Slack was not being reset on resizeStop. Fixes #34, #36.
- Added `flow-bin` to devDeps.
### 1.3.3 (Apr 19, 2016)

@@ -4,0 +13,0 @@

{
"name": "react-resizable",
"version": "1.3.3",
"version": "1.4.0",
"description": "A component that is resizable with handles.",

@@ -47,2 +47,3 @@ "main": "index.js",

"eslint-plugin-react": "^3.16.1",
"flow-bin": "^0.25.0",
"lodash": "^4.3.0",

@@ -57,3 +58,3 @@ "pre-commit": "^1.1.2",

"dependencies": {
"react-draggable": "^1.3.1"
"react-draggable": "^2.1.0"
},

@@ -60,0 +61,0 @@ "peerDependencies": {

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