🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-sortablejs

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sortablejs - npm Package Compare versions

Comparing version

to
2.0.5

4

dist/index.d.ts

@@ -1,4 +0,4 @@

export { ReactSortable } from "./react-sortable";
export { default as Sortable, Direction, DOMRect, GroupOptions, MoveEvent, MultiDrag, Options, PullResult, PutResult, SortableEvent, SortableOptions, Swap, Utils } from "sortablejs";
export { ReactSortable as default, ReactSortable } from "./react-sortable";
export * from "./types";
export { default as Sortable, MultiDrag, Swap, DOMRect, Direction, GroupOptions, MoveEvent, Options, PullResult, PutResult, SortableEvent, SortableOptions, Utils } from "sortablejs";
//# sourceMappingURL=index.d.ts.map

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

import Sortable from 'sortablejs';
export { MultiDrag, default as Sortable, Swap } from 'sortablejs';
import classNames from 'classnames';
import { createElement, Children, cloneElement, createRef, Component } from 'react';
import Sortable from 'sortablejs';
export { MultiDrag, default as Sortable, Swap } from 'sortablejs';
import invariant from 'tiny-invariant';

@@ -395,2 +395,7 @@

var index = curr.index;
if (index === -1) {
console.log("\"" + evt.type + "\" had indice of \"" + curr.index + "\", which is probably -1 and doesn't usually happen here.");
console.log(evt);
return;
}
newList[index].selected = true;

@@ -403,4 +408,6 @@ });

var newList = __spread(list).map(function (item) { return (__assign(__assign({}, item), { selected: false })); });
evt.oldIndicies.forEach(function (curr) {
evt.newIndicies.forEach(function (curr) {
var index = curr.index;
if (index === -1)
return;
newList[index].selected = true;

@@ -416,2 +423,3 @@ });

export default ReactSortable;
export { ReactSortable };

@@ -7,6 +7,6 @@ 'use strict';

var Sortable = require('sortablejs');
var Sortable__default = _interopDefault(Sortable);
var classNames = _interopDefault(require('classnames'));
var react = require('react');
var Sortable = require('sortablejs');
var Sortable__default = _interopDefault(Sortable);
var invariant = _interopDefault(require('tiny-invariant'));

@@ -402,2 +402,7 @@

var index = curr.index;
if (index === -1) {
console.log("\"" + evt.type + "\" had indice of \"" + curr.index + "\", which is probably -1 and doesn't usually happen here.");
console.log(evt);
return;
}
newList[index].selected = true;

@@ -410,4 +415,6 @@ });

var newList = __spread(list).map(function (item) { return (__assign(__assign({}, item), { selected: false })); });
evt.oldIndicies.forEach(function (curr) {
evt.newIndicies.forEach(function (curr) {
var index = curr.index;
if (index === -1)
return;
newList[index].selected = true;

@@ -437,1 +444,2 @@ });

exports.ReactSortable = ReactSortable;
exports.default = ReactSortable;
import { PropsWithChildren } from "react";
import { Options } from "sortablejs";
import { ItemInterface } from "../dist";
import { MultiDragEvent } from "./react-sortable";
import { AllMethodNames, ReactSortableProps } from "./types";
import { AllMethodNames, ItemInterface, ReactSortableProps } from "./types";
/**

@@ -7,0 +6,0 @@ * Removes the `node` from the DOM

@@ -8,3 +8,3 @@ {

"license": "MIT",
"version": "2.0.4",
"version": "2.0.5",
"private": false,

@@ -11,0 +11,0 @@ "main": "dist/index.js",

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