Comparing version 0.0.2 to 0.0.3
@@ -52,16 +52,2 @@ 'use strict'; | ||
var KEYS = { | ||
DOWN: 40, | ||
END: 35, | ||
ESC: 27, | ||
HOME: 36, | ||
LEFT: 37, | ||
PAGE_DOWN: 34, | ||
PAGE_UP: 33, | ||
RIGHT: 39, | ||
UP: 38 | ||
}; | ||
var PERCENT_EMPTY = 0; | ||
var PERCENT_FULL = 100; | ||
function _classCallCheck(instance, Constructor) { | ||
@@ -73,4 +59,2 @@ if (!(instance instanceof Constructor)) { | ||
var classCallCheck = _classCallCheck; | ||
function _defineProperties(target, props) { | ||
@@ -92,8 +76,2 @@ for (var i = 0; i < props.length; i++) { | ||
var createClass = _createClass; | ||
function _defineProperty(obj, key, value) { | ||
@@ -114,6 +92,4 @@ if (key in obj) { | ||
var defineProperty = _defineProperty; | ||
function _extends() { | ||
var _extends = _extends = Object.assign || function (target) { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -135,6 +111,2 @@ var source = arguments[i]; | ||
var _extends = _extends; | ||
function _inherits(subClass, superClass) { | ||
@@ -156,16 +128,10 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
var inherits = _inherits; | ||
function _assertThisInitialized(self) { | ||
if (self === void 0) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return self; | ||
} | ||
function _possibleConstructorReturn(self, call) { | ||
@@ -176,14 +142,14 @@ if (call && (typeof call === "object" || typeof call === "function")) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return _assertThisInitialized(self); | ||
} | ||
return self; | ||
function _slicedToArray(arr, i) { | ||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); | ||
} | ||
var possibleConstructorReturn = _possibleConstructorReturn; | ||
function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
} | ||
function _sliceIterator(arr, i) { | ||
function _iterableToArrayLimit(arr, i) { | ||
var _arr = []; | ||
@@ -214,16 +180,21 @@ var _n = true; | ||
function _slicedToArray(arr, i) { | ||
if (Array.isArray(arr)) { | ||
return arr; | ||
} else if (Symbol.iterator in Object(arr)) { | ||
return _sliceIterator(arr, i); | ||
} else { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance"); | ||
} | ||
function _nonIterableRest() { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance"); | ||
} | ||
var slicedToArray = _slicedToArray; | ||
var KEYS = { | ||
DOWN: 40, | ||
END: 35, | ||
ESC: 27, | ||
HOME: 36, | ||
LEFT: 37, | ||
PAGE_DOWN: 34, | ||
PAGE_UP: 33, | ||
RIGHT: 39, | ||
UP: 38 | ||
}; | ||
var PERCENT_EMPTY = 0; | ||
var PERCENT_FULL = 100; | ||
var _stepMultiplier; | ||
function getHandleFor(ev) { | ||
@@ -236,13 +207,13 @@ return Number(ev.currentTarget.getAttribute('data-handle-key')); | ||
} | ||
var stepMultiplier = (_stepMultiplier = {}, defineProperty(_stepMultiplier, KEYS.LEFT, function (v) { | ||
var stepMultiplier = (_stepMultiplier = {}, _defineProperty(_stepMultiplier, KEYS.LEFT, function (v) { | ||
return v * -1; | ||
}), defineProperty(_stepMultiplier, KEYS.RIGHT, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.RIGHT, function (v) { | ||
return v * 1; | ||
}), defineProperty(_stepMultiplier, KEYS.UP, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.UP, function (v) { | ||
return v * 1; | ||
}), defineProperty(_stepMultiplier, KEYS.DOWN, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.DOWN, function (v) { | ||
return v * -1; | ||
}), defineProperty(_stepMultiplier, KEYS.PAGE_DOWN, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.PAGE_DOWN, function (v) { | ||
return v > 1 ? -v : v * -10; | ||
}), defineProperty(_stepMultiplier, KEYS.PAGE_UP, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.PAGE_UP, function (v) { | ||
return v > 1 ? v : v * 10; | ||
@@ -335,7 +306,6 @@ }), _stepMultiplier); | ||
/* eslint-disable no-mixed-operators */ | ||
var Parafoil = | ||
/*#__PURE__*/ | ||
function (_React$Component) { | ||
inherits(Parafoil, _React$Component); | ||
_inherits(Parafoil, _React$Component); | ||
@@ -345,7 +315,8 @@ function Parafoil(props) { | ||
classCallCheck(this, Parafoil); | ||
_this = possibleConstructorReturn(this, (Parafoil.__proto__ || Object.getPrototypeOf(Parafoil)).call(this, props)); | ||
_classCallCheck(this, Parafoil); | ||
_initialiseProps.call(_this); | ||
_this = _possibleConstructorReturn(this, (Parafoil.__proto__ || Object.getPrototypeOf(Parafoil)).call(this, props)); | ||
_initialiseProps.call(_assertThisInitialized(_this)); | ||
var algorithm = props.algorithm, | ||
@@ -367,3 +338,3 @@ max = props.max, | ||
createClass(Parafoil, [{ | ||
_createClass(Parafoil, [{ | ||
key: "componentWillReceiveProps", | ||
@@ -472,2 +443,3 @@ value: function componentWillReceiveProps(nextProps) { | ||
}]); | ||
return Parafoil; | ||
@@ -669,3 +641,3 @@ }(React.Component); | ||
if (shouldSnap) { | ||
var _snapPoints = slicedToArray(snapPoints, 1); | ||
var _snapPoints = _slicedToArray(snapPoints, 1); | ||
@@ -672,0 +644,0 @@ proposedValue = _snapPoints[0]; |
@@ -46,16 +46,2 @@ import React from 'react'; | ||
var KEYS = { | ||
DOWN: 40, | ||
END: 35, | ||
ESC: 27, | ||
HOME: 36, | ||
LEFT: 37, | ||
PAGE_DOWN: 34, | ||
PAGE_UP: 33, | ||
RIGHT: 39, | ||
UP: 38 | ||
}; | ||
var PERCENT_EMPTY = 0; | ||
var PERCENT_FULL = 100; | ||
function _classCallCheck(instance, Constructor) { | ||
@@ -67,4 +53,2 @@ if (!(instance instanceof Constructor)) { | ||
var classCallCheck = _classCallCheck; | ||
function _defineProperties(target, props) { | ||
@@ -86,8 +70,2 @@ for (var i = 0; i < props.length; i++) { | ||
var createClass = _createClass; | ||
function _defineProperty(obj, key, value) { | ||
@@ -108,6 +86,4 @@ if (key in obj) { | ||
var defineProperty = _defineProperty; | ||
function _extends() { | ||
var _extends = _extends = Object.assign || function (target) { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -129,6 +105,2 @@ var source = arguments[i]; | ||
var _extends = _extends; | ||
function _inherits(subClass, superClass) { | ||
@@ -150,16 +122,10 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
var inherits = _inherits; | ||
function _assertThisInitialized(self) { | ||
if (self === void 0) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return self; | ||
} | ||
function _possibleConstructorReturn(self, call) { | ||
@@ -170,14 +136,14 @@ if (call && (typeof call === "object" || typeof call === "function")) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return _assertThisInitialized(self); | ||
} | ||
return self; | ||
function _slicedToArray(arr, i) { | ||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); | ||
} | ||
var possibleConstructorReturn = _possibleConstructorReturn; | ||
function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
} | ||
function _sliceIterator(arr, i) { | ||
function _iterableToArrayLimit(arr, i) { | ||
var _arr = []; | ||
@@ -208,16 +174,21 @@ var _n = true; | ||
function _slicedToArray(arr, i) { | ||
if (Array.isArray(arr)) { | ||
return arr; | ||
} else if (Symbol.iterator in Object(arr)) { | ||
return _sliceIterator(arr, i); | ||
} else { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance"); | ||
} | ||
function _nonIterableRest() { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance"); | ||
} | ||
var slicedToArray = _slicedToArray; | ||
var KEYS = { | ||
DOWN: 40, | ||
END: 35, | ||
ESC: 27, | ||
HOME: 36, | ||
LEFT: 37, | ||
PAGE_DOWN: 34, | ||
PAGE_UP: 33, | ||
RIGHT: 39, | ||
UP: 38 | ||
}; | ||
var PERCENT_EMPTY = 0; | ||
var PERCENT_FULL = 100; | ||
var _stepMultiplier; | ||
function getHandleFor(ev) { | ||
@@ -230,13 +201,13 @@ return Number(ev.currentTarget.getAttribute('data-handle-key')); | ||
} | ||
var stepMultiplier = (_stepMultiplier = {}, defineProperty(_stepMultiplier, KEYS.LEFT, function (v) { | ||
var stepMultiplier = (_stepMultiplier = {}, _defineProperty(_stepMultiplier, KEYS.LEFT, function (v) { | ||
return v * -1; | ||
}), defineProperty(_stepMultiplier, KEYS.RIGHT, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.RIGHT, function (v) { | ||
return v * 1; | ||
}), defineProperty(_stepMultiplier, KEYS.UP, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.UP, function (v) { | ||
return v * 1; | ||
}), defineProperty(_stepMultiplier, KEYS.DOWN, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.DOWN, function (v) { | ||
return v * -1; | ||
}), defineProperty(_stepMultiplier, KEYS.PAGE_DOWN, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.PAGE_DOWN, function (v) { | ||
return v > 1 ? -v : v * -10; | ||
}), defineProperty(_stepMultiplier, KEYS.PAGE_UP, function (v) { | ||
}), _defineProperty(_stepMultiplier, KEYS.PAGE_UP, function (v) { | ||
return v > 1 ? v : v * 10; | ||
@@ -329,7 +300,6 @@ }), _stepMultiplier); | ||
/* eslint-disable no-mixed-operators */ | ||
var Parafoil = | ||
/*#__PURE__*/ | ||
function (_React$Component) { | ||
inherits(Parafoil, _React$Component); | ||
_inherits(Parafoil, _React$Component); | ||
@@ -339,7 +309,8 @@ function Parafoil(props) { | ||
classCallCheck(this, Parafoil); | ||
_this = possibleConstructorReturn(this, (Parafoil.__proto__ || Object.getPrototypeOf(Parafoil)).call(this, props)); | ||
_classCallCheck(this, Parafoil); | ||
_initialiseProps.call(_this); | ||
_this = _possibleConstructorReturn(this, (Parafoil.__proto__ || Object.getPrototypeOf(Parafoil)).call(this, props)); | ||
_initialiseProps.call(_assertThisInitialized(_this)); | ||
var algorithm = props.algorithm, | ||
@@ -361,3 +332,3 @@ max = props.max, | ||
createClass(Parafoil, [{ | ||
_createClass(Parafoil, [{ | ||
key: "componentWillReceiveProps", | ||
@@ -466,2 +437,3 @@ value: function componentWillReceiveProps(nextProps) { | ||
}]); | ||
return Parafoil; | ||
@@ -663,3 +635,3 @@ }(React.Component); | ||
if (shouldSnap) { | ||
var _snapPoints = slicedToArray(snapPoints, 1); | ||
var _snapPoints = _slicedToArray(snapPoints, 1); | ||
@@ -666,0 +638,0 @@ proposedValue = _snapPoints[0]; |
{ | ||
"name": "parafoil", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Yet another slider for React, but the last you'll ever need.", | ||
@@ -21,28 +21,28 @@ "author": "Josh Perez <josh.perez@airbnb.com>", | ||
"dependencies": { | ||
"prop-types": "^15.6.0" | ||
"prop-types": "^15.6.1" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^7.0.0-beta.2", | ||
"babel-eslint": "^8.0.1", | ||
"babel-plugin-external-helpers": "^7.0.0-beta.2", | ||
"babel-preset-env": "^2.0.0-beta.2", | ||
"babel-preset-react": "^7.0.0-beta.2", | ||
"babel-preset-stage-3": "^7.0.0-beta.2", | ||
"cross-env": "^5.1.0", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.2", | ||
"eslint": "^4.9.0", | ||
"@babel/core": "^7.0.0-beta.42", | ||
"@babel/preset-env": "^7.0.0-beta.42", | ||
"@babel/preset-react": "^7.0.0-beta.42", | ||
"@babel/preset-stage-3": "^7.0.0-beta.42", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^8.2.2", | ||
"babel-jest": "^22.4.1", | ||
"cross-env": "^5.1.4", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"eslint": "^4.19.0", | ||
"eslint-config-airbnb": "^16.1.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-jsx-a11y": "6.0.2", | ||
"eslint-plugin-react": "^7.4.0", | ||
"jest": "^21.3.0-beta.2", | ||
"prettier-eslint-cli": "^4.4.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-jsx-a11y": "6.0.3", | ||
"eslint-plugin-react": "^7.7.0", | ||
"jest": "^22.4.2", | ||
"prettier-eslint-cli": "^4.7.1", | ||
"raf": "^3.4.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-test-renderer": "^16.0.0", | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.50.0", | ||
"rollup-plugin-babel": "^3.0.2" | ||
"rollup": "^0.57.1", | ||
"rollup-plugin-babel": "^4.0.0-beta.3" | ||
}, | ||
@@ -64,4 +64,7 @@ "peerDependencies": { | ||
"<rootDir>/__tests__/" | ||
] | ||
], | ||
"transform": { | ||
".js$": "babel-jest" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169116
2370
Updatedprop-types@^15.6.1