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

react-sortable-hoc

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sortable-hoc - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

examples/virtual-table-columns.js

3

CHANGELOG.md
Changelog
------------
### 0.6.8
Update react and react-dom peerdependency requirements for React 16+ [#283](https://github.com/clauderic/react-sortable-hoc/pull/283). Thanks [@jnsdls](https://github.com/jnsdls)!
### 0.6.7

@@ -4,0 +7,0 @@ Fixes issues with Jest Snapshot testing trying to serialize the `window` object and running out of memory [#249](https://github.com/clauderic/react-sortable-hoc/issues/249). Thanks [@cameronmcefee](https://github.com/cameronmcefee)!

4

examples/drag-handle.js

@@ -36,3 +36,3 @@ import React, {Component} from 'react';

onSortEnd = ({oldIndex, newIndex}) => {
let {items} = this.state;
const {items} = this.state;

@@ -44,3 +44,3 @@ this.setState({

render() {
let {items} = this.state;
const {items} = this.state;

@@ -47,0 +47,0 @@ return <SortableList items={items} onSortEnd={this.onSortEnd} useDragHandle={true} />;

@@ -36,3 +36,3 @@ import React, {Component} from 'react';

onSortEnd = ({oldIndex, newIndex}) => {
let {items} = this.state;
const {items} = this.state;

@@ -44,3 +44,3 @@ this.setState({

render() {
let {items} = this.state;
const {items} = this.state;

@@ -47,0 +47,0 @@ return <SortableList items={items} onSortEnd={this.onSortEnd} />;

@@ -16,3 +16,3 @@ import React, {Component} from 'react';

render() {
let {items} = this.props;
const {items} = this.props;

@@ -26,3 +26,3 @@ return (

rowRenderer={({index}) => {
let {value} = items[index];
const {value} = items[index];
return <SortableItem index={index} value={value} />;

@@ -58,3 +58,3 @@ }}

if (oldIndex !== newIndex) {
let {items} = this.state;
const {items} = this.state;

@@ -66,3 +66,3 @@ this.setState({

// We need to inform React Virtualized that the items have changed heights
let instance = this.SortableList.getWrappedInstance();
const instance = this.SortableList.getWrappedInstance();

@@ -74,3 +74,3 @@ instance.List.recomputeRowHeights();

render() {
let {items} = this.state;
const {items} = this.state;

@@ -77,0 +77,0 @@ return (

{
"name": "react-sortable-hoc",
"version": "0.6.7",
"version": "0.6.8",
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list",

@@ -55,4 +55,4 @@ "author": {

"peerDependencies": {
"react": "^0.14.0 || ^15.0.0",
"react-dom": "^0.14.0 || ^15.0.0"
"react": "^0.14.0 || ^15.0.0 || ^16.0.0",
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0"
},

@@ -59,0 +59,0 @@ "devDependencies": {

@@ -12,2 +12,4 @@ # React Sortable (HOC)

<a href="https://app.codesponsor.io/link/oN9PDWZz8fQcbh9sxpDEUvD5/clauderic/react-sortable-hoc" rel="nofollow"><img src="https://app.codesponsor.io/embed/oN9PDWZz8fQcbh9sxpDEUvD5/clauderic/react-sortable-hoc.svg" style="width: 888px; height: 68px;" alt="Sponsor" /></a>
Features

@@ -14,0 +16,0 @@ ---------------

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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