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

dom-lib

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

dom-lib - npm Package Compare versions

Comparing version 1.3.1 to 2.0.0

es/animation/cancelAnimationFramePolyfill.d.ts

4

CHANGELOG.md

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

# 2.0.0
- refactor: Migrate from flow to typescript
# 1.3.0

@@ -2,0 +6,0 @@

2

es/animation/cancelAnimationFramePolyfill.js
import getGlobal from '../getGlobal';
var g = getGlobal();
export default g.cancelAnimationFrame || g.webkitCancelAnimationFrame || g.mozCancelAnimationFrame || g.oCancelAnimationFrame || g.msCancelAnimationFrame || g.clearTimeout;
export default g.cancelAnimationFrame || g.webkitCancelAnimationFrame || g.clearTimeout;
import { canUseDOM } from '../query';
import _cancelAnimationFramePolyfill from './cancelAnimationFramePolyfill';
export { _cancelAnimationFramePolyfill as cancelAnimationFramePolyfill };
import _nativeRequestAnimationFrame from './nativeRequestAnimationFrame';
export { _nativeRequestAnimationFrame as nativeRequestAnimationFrame };
import _requestAnimationFramePolyfill from './requestAnimationFramePolyfill';
export { _requestAnimationFramePolyfill as requestAnimationFramePolyfill };
export { default as cancelAnimationFramePolyfill } from './cancelAnimationFramePolyfill';
export { default as nativeRequestAnimationFrame } from './nativeRequestAnimationFrame';
export { default as requestAnimationFramePolyfill } from './requestAnimationFramePolyfill';
var vendorMap = {

@@ -9,0 +6,0 @@ animation: 'animationend',

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

// @flow
import getGlobal from '../getGlobal';
var g = getGlobal();
export default g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame;
export default g.requestAnimationFrame || g.webkitRequestAnimationFrame;

@@ -0,1 +1,2 @@

// @flow
import nativeRequestAnimationFrame from './nativeRequestAnimationFrame';

@@ -2,0 +3,0 @@ import emptyFunction from '../utils/emptyFunction';

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

import _addClass from './addClass';
export { _addClass as addClass };
import _hasClass from './hasClass';
export { _hasClass as hasClass };
import _removeClass from './removeClass';
export { _removeClass as removeClass };
import _toggleClass from './toggleClass';
export { _toggleClass as toggleClass };
export { default as addClass } from './addClass';
export { default as hasClass } from './hasClass';
export { default as removeClass } from './removeClass';
export { default as toggleClass } from './toggleClass';

@@ -0,1 +1,2 @@

// @flow
export default (function (target, className) {

@@ -2,0 +3,0 @@ if (className) {

@@ -1,3 +0,1 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import on from './events/on';

@@ -7,5 +5,3 @@ import cancelAnimationFramePolyfill from './animation/cancelAnimationFramePolyfill';

var DOMMouseMoveTracker =
/*#__PURE__*/
function () {
var DOMMouseMoveTracker = /*#__PURE__*/function () {
/**

@@ -18,31 +14,20 @@ * onMove is the callback that will be called on every mouse move.

_defineProperty(this, "isDraggingStatus", false);
this.isDraggingStatus = false;
this.animationFrameID = null;
this.domNode = void 0;
this.onMove = null;
this.onMoveEnd = null;
this.eventMoveToken = null;
this.eventUpToken = null;
this.moveEvent = null;
this.deltaX = 0;
this.deltaY = 0;
this.x = 0;
this.y = 0;
_defineProperty(this, "animationFrameID", null);
_defineProperty(this, "domNode", void 0);
_defineProperty(this, "onMove", void 0);
_defineProperty(this, "onMoveEnd", void 0);
_defineProperty(this, "eventMoveToken", null);
_defineProperty(this, "eventUpToken", null);
_defineProperty(this, "moveEvent", null);
_defineProperty(this, "deltaX", 0);
_defineProperty(this, "deltaY", 0);
_defineProperty(this, "x", 0);
_defineProperty(this, "y", 0);
_defineProperty(this, "isDragging", function () {
this.isDragging = function () {
return _this.isDraggingStatus;
});
};
_defineProperty(this, "onMouseMove", function (event) {
this.onMouseMove = function (event) {
var x = event.clientX;

@@ -63,5 +48,5 @@ var y = event.clientY;

event.preventDefault();
});
};
_defineProperty(this, "didMouseMove", function () {
this.didMouseMove = function () {
_this.animationFrameID = null;

@@ -73,5 +58,5 @@

_this.deltaY = 0;
});
};
_defineProperty(this, "onMouseUp", function (event) {
this.onMouseUp = function (event) {
if (_this.animationFrameID) {

@@ -82,3 +67,3 @@ _this.didMouseMove();

_this.onMoveEnd && _this.onMoveEnd(event);
});
};

@@ -85,0 +70,0 @@ this.domNode = domNode;

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

import _on from './on';
export { _on as on };
import _off from './off';
export { _off as off };
export { default as on } from './on';
export { default as off } from './off';
/**
* Unbind `target` event `eventName`'s callback `listener`.
*
* @param {Element} target
* @param {String} eventName
* @param {Function} listener
* @param {Boolean} capture
* @api public
*/
export default (function (target, eventName, listener, capture) {
if (capture === void 0) {
capture = false;
export default function on(target, eventName, listener, options) {
if (options === void 0) {
options = false;
}
target.removeEventListener(eventName, listener, capture);
});
target.removeEventListener(eventName, listener, options);
}
/**
* Bind `target` event `eventName`'s callback `listener`.
* @param {Element} target
* @param {String} eventName
* @param {Function} listener
* @param {Boolean} capture
* @return {Object}
*/
export default (function (target, eventName, listener, capture) {
if (capture === void 0) {
capture = false;
export default function on(target, eventType, listener, options) {
if (options === void 0) {
options = false;
}
target.addEventListener(eventName, listener, capture);
target.addEventListener(eventType, listener, options);
return {
off: function off() {
target.removeEventListener(eventName, listener, capture);
target.removeEventListener(eventType, listener, options);
}
};
});
}

@@ -12,3 +12,3 @@ import canUseDOM from './query/canUseDOM';

canUseWorkers: typeof Worker !== 'undefined',
canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
canUseEventListeners: canUseDOM && !!window.addEventListener,
canUseViewport: canUseDOM && !!window.screen,

@@ -15,0 +15,0 @@ isInWorker: !canUseDOM // For now, this is true - might change in the future.

@@ -18,6 +18,2 @@ // the only reliable means to get the global object is

if (typeof global !== 'undefined') {
return global;
}
throw new Error('unable to locate global object');

@@ -24,0 +20,0 @@ }

@@ -7,13 +7,7 @@ export * from './classNames';

export { _animation as animation };
import _transition from './transition';
export { _transition as transition };
import _translateDOMPositionXY from './transition/translateDOMPositionXY';
export { _translateDOMPositionXY as translateDOMPositionXY };
import _getVendorPrefixedName from './getVendorPrefixedName';
export { _getVendorPrefixedName as getVendorPrefixedName };
import _BrowserSupportCore from './BrowserSupportCore';
export { _BrowserSupportCore as BrowserSupportCore };
import _DOMMouseMoveTracker from './DOMMouseMoveTracker';
export { _DOMMouseMoveTracker as DOMMouseMoveTracker };
import _WheelHandler from './WheelHandler';
export { _WheelHandler as WheelHandler };
export { default as transition } from './transition';
export { default as translateDOMPositionXY } from './transition/translateDOMPositionXY';
export { default as getVendorPrefixedName } from './getVendorPrefixedName';
export { default as BrowserSupportCore } from './BrowserSupportCore';
export { default as DOMMouseMoveTracker } from './DOMMouseMoveTracker';
export { default as WheelHandler } from './WheelHandler';

@@ -1,2 +0,1 @@

/* eslint-disable */
import canUseDOM from './canUseDOM';

@@ -3,0 +2,0 @@

@@ -0,1 +1,2 @@

// @flow
import ownerDocument from './ownerDocument';

@@ -2,0 +3,0 @@ import nodeName from './nodeName';

@@ -1,3 +0,2 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import _extends from "@babel/runtime/helpers/esm/extends";
import getOffsetParent from './getOffsetParent';

@@ -4,0 +3,0 @@ import getOffset from './getOffset';

export default (function (node) {
if (node === node.window) {
if (node === (node === null || node === void 0 ? void 0 : node.window)) {
return node;
}
return node.nodeType === 9 ? node.defaultView || node.parentWindow : null;
return (node === null || node === void 0 ? void 0 : node.nodeType) === 9 ? (node === null || node === void 0 ? void 0 : node.defaultView) || (node === null || node === void 0 ? void 0 : node.parentWindow) : null;
});

@@ -1,34 +0,17 @@

import _ownerDocument from './ownerDocument';
export { _ownerDocument as ownerDocument };
import _ownerWindow from './ownerWindow';
export { _ownerWindow as ownerWindow };
import _getWindow from './getWindow';
export { _getWindow as getWindow };
import _getContainer from './getContainer';
export { _getContainer as getContainer };
import _canUseDOM from './canUseDOM';
export { _canUseDOM as canUseDOM };
import _contains from './contains';
export { _contains as contains };
import _scrollTop from './scrollTop';
export { _scrollTop as scrollTop };
import _scrollLeft from './scrollLeft';
export { _scrollLeft as scrollLeft };
import _getOffset from './getOffset';
export { _getOffset as getOffset };
import _nodeName from './nodeName';
export { _nodeName as nodeName };
import _getOffsetParent from './getOffsetParent';
export { _getOffsetParent as getOffsetParent };
import _getPosition from './getPosition';
export { _getPosition as getPosition };
import _isOverflowing from './isOverflowing';
export { _isOverflowing as isOverflowing };
import _activeElement from './activeElement';
export { _activeElement as activeElement };
import _getScrollbarSize from './getScrollbarSize';
export { _getScrollbarSize as getScrollbarSize };
import _getHeight from './getHeight';
export { _getHeight as getHeight };
import _getWidth from './getWidth';
export { _getWidth as getWidth };
export { default as ownerDocument } from './ownerDocument';
export { default as ownerWindow } from './ownerWindow';
export { default as getWindow } from './getWindow';
export { default as getContainer } from './getContainer';
export { default as canUseDOM } from './canUseDOM';
export { default as contains } from './contains';
export { default as scrollTop } from './scrollTop';
export { default as scrollLeft } from './scrollLeft';
export { default as getOffset } from './getOffset';
export { default as nodeName } from './nodeName';
export { default as getOffsetParent } from './getOffsetParent';
export { default as getPosition } from './getPosition';
export { default as isOverflowing } from './isOverflowing';
export { default as activeElement } from './activeElement';
export { default as getScrollbarSize } from './getScrollbarSize';
export { default as getHeight } from './getHeight';
export { default as getWidth } from './getWidth';
export default (function (node) {
return node.nodeName && node.nodeName.toLowerCase();
var _node$nodeName;
return (node === null || node === void 0 ? void 0 : node.nodeName) && (node === null || node === void 0 ? void 0 : (_node$nodeName = node.nodeName) === null || _node$nodeName === void 0 ? void 0 : _node$nodeName.toLowerCase());
});

@@ -8,4 +8,4 @@ import getWindow from './getWindow';

if (win) {
left = 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft;
top = 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop;
left = win.pageXOffset;
top = win.pageYOffset;
}

@@ -12,0 +12,0 @@

@@ -8,4 +8,4 @@ import getWindow from './getWindow';

if (win) {
top = 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop;
left = 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft;
top = win.pageYOffset;
left = win.pageXOffset;
}

@@ -12,0 +12,0 @@

import hyphenateStyleName from './hyphenateStyleName';
import removeStyle from './removeStyle';
CSSStyleDeclaration;
export default (function (node, property, value) {

@@ -16,8 +17,8 @@ var css = '';

if (typeof props === 'object') {
for (var key in props) {
if (Object.prototype.hasOwnProperty.call(props, key)) {
if (!props[key] && props[key] !== 0) {
removeStyle(node, hyphenateStyleName(key));
for (var _key in props) {
if (Object.prototype.hasOwnProperty.call(props, _key)) {
if (!props[_key] && props[_key] !== 0) {
removeStyle(node, hyphenateStyleName(_key));
} else {
css += hyphenateStyleName(key) + ":" + props[key] + ";";
css += hyphenateStyleName(_key) + ":" + props[_key] + ";";
}

@@ -24,0 +25,0 @@ }

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

import _getStyle from './getStyle';
export { _getStyle as getStyle };
import _removeStyle from './removeStyle';
export { _removeStyle as removeStyle };
import _addStyle from './addStyle';
export { _addStyle as addStyle };
import _getComputedStyle from './getComputedStyle';
export { _getComputedStyle as getComputedStyle };
export { default as getStyle } from './getStyle';
export { default as removeStyle } from './removeStyle';
export { default as addStyle } from './addStyle';
export { default as getComputedStyle } from './getComputedStyle';
function removeStyle(node, key) {
if ('removeProperty' in node.style) {
node.style.removeProperty(key);
} else if (typeof node.style.removeAttribute === 'function') {
node.style.removeAttribute(key);
}
var _node$style, _node$style$removePro;
(_node$style = node.style) === null || _node$style === void 0 ? void 0 : (_node$style$removePro = _node$style.removeProperty) === null || _node$style$removePro === void 0 ? void 0 : _node$style$removePro.call(_node$style, key);
}

@@ -16,3 +14,3 @@ /**

removeStyle(node, keys);
} else if (Object.prototype.toString.call(keys) === '[object Array]') {
} else if (Array.isArray(keys)) {
keys.forEach(function (key) {

@@ -19,0 +17,0 @@ return removeStyle(node, key);

@@ -0,1 +1,3 @@

// @flow
/**

@@ -2,0 +4,0 @@ * Source code reference from:

@@ -16,3 +16,3 @@ import canUseDOM from '../query/canUseDOM';

var eventName = "on" + eventNameSuffix;
var isSupported = eventName in document;
var isSupported = (eventName in document);

@@ -19,0 +19,0 @@ if (!isSupported) {

@@ -67,5 +67,7 @@ var populated = false; // Browsers

} // IE compatibility mode
// @ts-ignore
if (_ie && document && document.documentMode) {
// @ts-ignore
_ie = document.documentMode;

@@ -72,0 +74,0 @@ } // grab the "true" ie version from the trident token if available

@@ -5,5 +5,3 @@ import emptyFunction from './utils/emptyFunction';

var WheelHandler =
/*#__PURE__*/
function () {
var WheelHandler = /*#__PURE__*/function () {
function WheelHandler(onWheel, handleScrollX, handleScrollY, stopPropagation) {

@@ -13,2 +11,6 @@ this.animationFrameID = null;

this.deltaY = 0;
this.handleScrollX = null;
this.handleScrollY = null;
this.stopPropagation = null;
this.onWheelCallback = null;
this.didWheel = this.didWheel.bind(this);

@@ -15,0 +17,0 @@

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,8 +10,7 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var g = (0, _getGlobal["default"])();
var _default = g.cancelAnimationFrame || g.webkitCancelAnimationFrame || g.mozCancelAnimationFrame || g.oCancelAnimationFrame || g.msCancelAnimationFrame || g.clearTimeout;
var _default = g.cancelAnimationFrame || g.webkitCancelAnimationFrame || g.clearTimeout;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.events = void 0;
exports.events = exports.requestAnimationFramePolyfill = exports.nativeRequestAnimationFrame = exports.cancelAnimationFramePolyfill = void 0;
var _query = require("../query");
var _cancelAnimationFramePolyfill2 = _interopRequireDefault(require("./cancelAnimationFramePolyfill"));
var _cancelAnimationFramePolyfill = _interopRequireDefault(require("./cancelAnimationFramePolyfill"));
exports.cancelAnimationFramePolyfill = _cancelAnimationFramePolyfill2["default"];
exports.cancelAnimationFramePolyfill = _cancelAnimationFramePolyfill["default"];
var _nativeRequestAnimationFrame2 = _interopRequireDefault(require("./nativeRequestAnimationFrame"));
var _nativeRequestAnimationFrame = _interopRequireDefault(require("./nativeRequestAnimationFrame"));
exports.nativeRequestAnimationFrame = _nativeRequestAnimationFrame2["default"];
exports.nativeRequestAnimationFrame = _nativeRequestAnimationFrame["default"];
var _requestAnimationFramePolyfill2 = _interopRequireDefault(require("./requestAnimationFramePolyfill"));
var _requestAnimationFramePolyfill = _interopRequireDefault(require("./requestAnimationFramePolyfill"));
exports.requestAnimationFramePolyfill = _requestAnimationFramePolyfill2["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports.requestAnimationFramePolyfill = _requestAnimationFramePolyfill["default"];
var vendorMap = {

@@ -23,0 +22,0 @@ animation: 'animationend',

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,8 +10,8 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// @flow
var g = (0, _getGlobal["default"])();
var _default = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame;
var _default = g.requestAnimationFrame || g.webkitRequestAnimationFrame;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,4 +14,3 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// @flow
var g = (0, _getGlobal["default"])();

@@ -37,2 +38,3 @@ var lastTime = 0;

var _default = requestAnimationFrame;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = {

@@ -40,2 +40,3 @@ /**

};
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(target, className) {

@@ -23,2 +23,3 @@ if (className) {

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -14,2 +14,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.toggleClass = exports.removeClass = exports.hasClass = exports.addClass = void 0;
var _addClass2 = _interopRequireDefault(require("./addClass"));
var _addClass = _interopRequireDefault(require("./addClass"));
exports.addClass = _addClass2["default"];
exports.addClass = _addClass["default"];
var _hasClass2 = _interopRequireDefault(require("./hasClass"));
var _hasClass = _interopRequireDefault(require("./hasClass"));
exports.hasClass = _hasClass2["default"];
exports.hasClass = _hasClass["default"];
var _removeClass2 = _interopRequireDefault(require("./removeClass"));
var _removeClass = _interopRequireDefault(require("./removeClass"));
exports.removeClass = _removeClass2["default"];
exports.removeClass = _removeClass["default"];
var _toggleClass2 = _interopRequireDefault(require("./toggleClass"));
var _toggleClass = _interopRequireDefault(require("./toggleClass"));
exports.toggleClass = _toggleClass2["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports.toggleClass = _toggleClass["default"];

@@ -6,2 +6,3 @@ "use strict";

// @flow
var _default = function _default(target, className) {

@@ -20,2 +21,3 @@ if (className) {

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,4 +14,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(target, className) {

@@ -23,2 +23,3 @@ if ((0, _hasClass["default"])(target, className)) {

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,9 +14,3 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var DOMMouseMoveTracker =
/*#__PURE__*/
function () {
var DOMMouseMoveTracker = /*#__PURE__*/function () {
/**

@@ -27,31 +23,20 @@ * onMove is the callback that will be called on every mouse move.

_defineProperty(this, "isDraggingStatus", false);
this.isDraggingStatus = false;
this.animationFrameID = null;
this.domNode = void 0;
this.onMove = null;
this.onMoveEnd = null;
this.eventMoveToken = null;
this.eventUpToken = null;
this.moveEvent = null;
this.deltaX = 0;
this.deltaY = 0;
this.x = 0;
this.y = 0;
_defineProperty(this, "animationFrameID", null);
_defineProperty(this, "domNode", void 0);
_defineProperty(this, "onMove", void 0);
_defineProperty(this, "onMoveEnd", void 0);
_defineProperty(this, "eventMoveToken", null);
_defineProperty(this, "eventUpToken", null);
_defineProperty(this, "moveEvent", null);
_defineProperty(this, "deltaX", 0);
_defineProperty(this, "deltaY", 0);
_defineProperty(this, "x", 0);
_defineProperty(this, "y", 0);
_defineProperty(this, "isDragging", function () {
this.isDragging = function () {
return _this.isDraggingStatus;
});
};
_defineProperty(this, "onMouseMove", function (event) {
this.onMouseMove = function (event) {
var x = event.clientX;

@@ -72,5 +57,5 @@ var y = event.clientY;

event.preventDefault();
});
};
_defineProperty(this, "didMouseMove", function () {
this.didMouseMove = function () {
_this.animationFrameID = null;

@@ -82,5 +67,5 @@

_this.deltaY = 0;
});
};
_defineProperty(this, "onMouseUp", function (event) {
this.onMouseUp = function (event) {
if (_this.animationFrameID) {

@@ -91,3 +76,3 @@ _this.didMouseMove();

_this.onMoveEnd && _this.onMoveEnd(event);
});
};

@@ -160,2 +145,3 @@ this.domNode = domNode;

var _default = DOMMouseMoveTracker;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.off = exports.on = void 0;
var _on2 = _interopRequireDefault(require("./on"));
var _on = _interopRequireDefault(require("./on"));
exports.on = _on2["default"];
exports.on = _on["default"];
var _off2 = _interopRequireDefault(require("./off"));
var _off = _interopRequireDefault(require("./off"));
exports.off = _off2["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports.off = _off["default"];
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
exports["default"] = on;
/**
* Unbind `target` event `eventName`'s callback `listener`.
*
* @param {Element} target
* @param {String} eventName
* @param {Function} listener
* @param {Boolean} capture
* @api public
*/
var _default = function _default(target, eventName, listener, capture) {
if (capture === void 0) {
capture = false;
function on(target, eventName, listener, options) {
if (options === void 0) {
options = false;
}
target.removeEventListener(eventName, listener, capture);
};
target.removeEventListener(eventName, listener, options);
}
exports["default"] = _default;
module.exports = exports.default;
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
exports["default"] = on;
/**
* Bind `target` event `eventName`'s callback `listener`.
* @param {Element} target
* @param {String} eventName
* @param {Function} listener
* @param {Boolean} capture
* @return {Object}
*/
var _default = function _default(target, eventName, listener, capture) {
if (capture === void 0) {
capture = false;
function on(target, eventType, listener, options) {
if (options === void 0) {
options = false;
}
target.addEventListener(eventName, listener, capture);
target.addEventListener(eventType, listener, options);
return {
off: function off() {
target.removeEventListener(eventName, listener, capture);
target.removeEventListener(eventType, listener, options);
}
};
};
}
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**

@@ -20,3 +20,3 @@ * Simple, lightweight module assisting with the detection and context of

canUseWorkers: typeof Worker !== 'undefined',
canUseEventListeners: _canUseDOM["default"] && !!(window.addEventListener || window.attachEvent),
canUseEventListeners: _canUseDOM["default"] && !!window.addEventListener,
canUseViewport: _canUseDOM["default"] && !!window.screen,

@@ -27,2 +27,3 @@ isInWorker: !_canUseDOM["default"] // For now, this is true - might change in the future.

var _default = ExecutionEnvironment;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -23,6 +23,2 @@ "use strict";

if (typeof global !== 'undefined') {
return global;
}
throw new Error('unable to locate global object');

@@ -32,2 +28,3 @@ }

var _default = getGlobal;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -10,4 +12,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var memoized = {};

@@ -53,2 +53,3 @@ var prefixes = ['Webkit', 'ms', 'Moz', 'O'];

var _default = getVendorPrefixedName;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
exports.__esModule = true;
var _exportNames = {
animation: true,
transition: true,

@@ -11,5 +14,6 @@ translateDOMPositionXY: true,

DOMMouseMoveTracker: true,
WheelHandler: true
WheelHandler: true,
animation: true
};
exports.animation = void 0;
exports.animation = exports.WheelHandler = exports.DOMMouseMoveTracker = exports.BrowserSupportCore = exports.getVendorPrefixedName = exports.translateDOMPositionXY = exports.transition = void 0;

@@ -21,2 +25,3 @@ var _classNames = require("./classNames");

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _classNames[key]) return;
exports[key] = _classNames[key];

@@ -30,2 +35,3 @@ });

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _style[key]) return;
exports[key] = _style[key];

@@ -39,2 +45,3 @@ });

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _query[key]) return;
exports[key] = _query[key];

@@ -48,2 +55,3 @@ });

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _events[key]) return;
exports[key] = _events[key];

@@ -56,30 +64,24 @@ });

var _transition2 = _interopRequireDefault(require("./transition"));
var _transition = _interopRequireDefault(require("./transition"));
exports.transition = _transition2["default"];
exports.transition = _transition["default"];
var _translateDOMPositionXY2 = _interopRequireDefault(require("./transition/translateDOMPositionXY"));
var _translateDOMPositionXY = _interopRequireDefault(require("./transition/translateDOMPositionXY"));
exports.translateDOMPositionXY = _translateDOMPositionXY2["default"];
exports.translateDOMPositionXY = _translateDOMPositionXY["default"];
var _getVendorPrefixedName2 = _interopRequireDefault(require("./getVendorPrefixedName"));
var _getVendorPrefixedName = _interopRequireDefault(require("./getVendorPrefixedName"));
exports.getVendorPrefixedName = _getVendorPrefixedName2["default"];
exports.getVendorPrefixedName = _getVendorPrefixedName["default"];
var _BrowserSupportCore2 = _interopRequireDefault(require("./BrowserSupportCore"));
var _BrowserSupportCore = _interopRequireDefault(require("./BrowserSupportCore"));
exports.BrowserSupportCore = _BrowserSupportCore2["default"];
exports.BrowserSupportCore = _BrowserSupportCore["default"];
var _DOMMouseMoveTracker2 = _interopRequireDefault(require("./DOMMouseMoveTracker"));
var _DOMMouseMoveTracker = _interopRequireDefault(require("./DOMMouseMoveTracker"));
exports.DOMMouseMoveTracker = _DOMMouseMoveTracker2["default"];
exports.DOMMouseMoveTracker = _DOMMouseMoveTracker["default"];
var _WheelHandler2 = _interopRequireDefault(require("./WheelHandler"));
var _WheelHandler = _interopRequireDefault(require("./WheelHandler"));
exports.WheelHandler = _WheelHandler2["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
exports.WheelHandler = _WheelHandler["default"];
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -10,4 +12,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// Reasonable defaults

@@ -103,2 +103,3 @@ var PIXEL_STEP = 10;

var _default = normalizeWheel;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -14,2 +14,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -7,2 +7,3 @@ "use strict";

var _default = canUseDOM;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,5 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* eslint-disable */
var fallback = function fallback(context, node) {

@@ -40,2 +39,3 @@ if (node) {

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -11,2 +11,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -10,4 +12,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(node, client) {

@@ -23,2 +23,3 @@ var win = (0, _getWindow["default"])(node);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,4 +14,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(node) {

@@ -51,2 +51,3 @@ var doc = (0, _ownerDocument["default"])(node);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,4 +14,3 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// @flow
var _default = function _default(node) {

@@ -26,2 +27,3 @@ var doc = (0, _ownerDocument["default"])(node);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _getOffsetParent = _interopRequireDefault(require("./getOffsetParent"));

@@ -18,6 +22,2 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
var _default = function _default(node, offsetParent) {

@@ -52,3 +52,3 @@ var parentOffset = {

if (offset) {
return _extends({}, offset, {
return (0, _extends2["default"])({}, offset, {
top: offset.top - parentOffset.top - (parseInt((0, _style.getStyle)(node, 'marginTop'), 10) || 0),

@@ -62,2 +62,3 @@ left: offset.left - parentOffset.left - (parseInt((0, _style.getStyle)(node, 'marginLeft'), 10) || 0)

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var size;

@@ -32,2 +32,3 @@

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -10,4 +12,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(node, client) {

@@ -28,2 +28,3 @@ var win = (0, _getWindow["default"])(node);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -7,9 +7,10 @@ "use strict";

var _default = function _default(node) {
if (node === node.window) {
if (node === (node === null || node === void 0 ? void 0 : node.window)) {
return node;
}
return node.nodeType === 9 ? node.defaultView || node.parentWindow : null;
return (node === null || node === void 0 ? void 0 : node.nodeType) === 9 ? (node === null || node === void 0 ? void 0 : node.defaultView) || (node === null || node === void 0 ? void 0 : node.parentWindow) : null;
};
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.getWidth = exports.getHeight = exports.getScrollbarSize = exports.activeElement = exports.isOverflowing = exports.getPosition = exports.getOffsetParent = exports.nodeName = exports.getOffset = exports.scrollLeft = exports.scrollTop = exports.contains = exports.canUseDOM = exports.getContainer = exports.getWindow = exports.ownerWindow = exports.ownerDocument = void 0;
var _ownerDocument2 = _interopRequireDefault(require("./ownerDocument"));
var _ownerDocument = _interopRequireDefault(require("./ownerDocument"));
exports.ownerDocument = _ownerDocument2["default"];
exports.ownerDocument = _ownerDocument["default"];
var _ownerWindow2 = _interopRequireDefault(require("./ownerWindow"));
var _ownerWindow = _interopRequireDefault(require("./ownerWindow"));
exports.ownerWindow = _ownerWindow2["default"];
exports.ownerWindow = _ownerWindow["default"];
var _getWindow2 = _interopRequireDefault(require("./getWindow"));
var _getWindow = _interopRequireDefault(require("./getWindow"));
exports.getWindow = _getWindow2["default"];
exports.getWindow = _getWindow["default"];
var _getContainer2 = _interopRequireDefault(require("./getContainer"));
var _getContainer = _interopRequireDefault(require("./getContainer"));
exports.getContainer = _getContainer2["default"];
exports.getContainer = _getContainer["default"];
var _canUseDOM2 = _interopRequireDefault(require("./canUseDOM"));
var _canUseDOM = _interopRequireDefault(require("./canUseDOM"));
exports.canUseDOM = _canUseDOM2["default"];
exports.canUseDOM = _canUseDOM["default"];
var _contains2 = _interopRequireDefault(require("./contains"));
var _contains = _interopRequireDefault(require("./contains"));
exports.contains = _contains2["default"];
exports.contains = _contains["default"];
var _scrollTop2 = _interopRequireDefault(require("./scrollTop"));
var _scrollTop = _interopRequireDefault(require("./scrollTop"));
exports.scrollTop = _scrollTop2["default"];
exports.scrollTop = _scrollTop["default"];
var _scrollLeft2 = _interopRequireDefault(require("./scrollLeft"));
var _scrollLeft = _interopRequireDefault(require("./scrollLeft"));
exports.scrollLeft = _scrollLeft2["default"];
exports.scrollLeft = _scrollLeft["default"];
var _getOffset2 = _interopRequireDefault(require("./getOffset"));
var _getOffset = _interopRequireDefault(require("./getOffset"));
exports.getOffset = _getOffset2["default"];
exports.getOffset = _getOffset["default"];
var _nodeName2 = _interopRequireDefault(require("./nodeName"));
var _nodeName = _interopRequireDefault(require("./nodeName"));
exports.nodeName = _nodeName2["default"];
exports.nodeName = _nodeName["default"];
var _getOffsetParent2 = _interopRequireDefault(require("./getOffsetParent"));
var _getOffsetParent = _interopRequireDefault(require("./getOffsetParent"));
exports.getOffsetParent = _getOffsetParent2["default"];
exports.getOffsetParent = _getOffsetParent["default"];
var _getPosition2 = _interopRequireDefault(require("./getPosition"));
var _getPosition = _interopRequireDefault(require("./getPosition"));
exports.getPosition = _getPosition2["default"];
exports.getPosition = _getPosition["default"];
var _isOverflowing2 = _interopRequireDefault(require("./isOverflowing"));
var _isOverflowing = _interopRequireDefault(require("./isOverflowing"));
exports.isOverflowing = _isOverflowing2["default"];
exports.isOverflowing = _isOverflowing["default"];
var _activeElement2 = _interopRequireDefault(require("./activeElement"));
var _activeElement = _interopRequireDefault(require("./activeElement"));
exports.activeElement = _activeElement2["default"];
exports.activeElement = _activeElement["default"];
var _getScrollbarSize2 = _interopRequireDefault(require("./getScrollbarSize"));
var _getScrollbarSize = _interopRequireDefault(require("./getScrollbarSize"));
exports.getScrollbarSize = _getScrollbarSize2["default"];
exports.getScrollbarSize = _getScrollbarSize["default"];
var _getHeight2 = _interopRequireDefault(require("./getHeight"));
var _getHeight = _interopRequireDefault(require("./getHeight"));
exports.getHeight = _getHeight2["default"];
exports.getHeight = _getHeight["default"];
var _getWidth2 = _interopRequireDefault(require("./getWidth"));
var _getWidth = _interopRequireDefault(require("./getWidth"));
exports.getWidth = _getWidth2["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports.getWidth = _getWidth["default"];
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -10,4 +12,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function bodyIsOverflowing(node) {

@@ -31,2 +31,3 @@ var doc = (0, _ownerDocument["default"])(node);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -7,5 +7,8 @@ "use strict";

var _default = function _default(node) {
return node.nodeName && node.nodeName.toLowerCase();
var _node$nodeName;
return (node === null || node === void 0 ? void 0 : node.nodeName) && (node === null || node === void 0 ? void 0 : (_node$nodeName = node.nodeName) === null || _node$nodeName === void 0 ? void 0 : _node$nodeName.toLowerCase());
};
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -10,2 +10,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(componentOrElement) {

@@ -16,2 +16,3 @@ var doc = (0, _ownerDocument["default"])(componentOrElement);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(node, val) {

@@ -17,4 +17,4 @@ var win = (0, _getWindow["default"])(node);

if (win) {
left = 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft;
top = 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop;
left = win.pageXOffset;
top = win.pageYOffset;
}

@@ -33,2 +33,3 @@

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(node, val) {

@@ -17,4 +17,4 @@ var win = (0, _getWindow["default"])(node);

if (win) {
top = 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop;
left = 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft;
top = win.pageYOffset;
left = win.pageXOffset;
}

@@ -33,2 +33,3 @@

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -10,3 +12,3 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
CSSStyleDeclaration;

@@ -26,8 +28,8 @@ var _default = function _default(node, property, value) {

if (typeof props === 'object') {
for (var key in props) {
if (Object.prototype.hasOwnProperty.call(props, key)) {
if (!props[key] && props[key] !== 0) {
(0, _removeStyle["default"])(node, (0, _hyphenateStyleName["default"])(key));
for (var _key in props) {
if (Object.prototype.hasOwnProperty.call(props, _key)) {
if (!props[_key] && props[_key] !== 0) {
(0, _removeStyle["default"])(node, (0, _hyphenateStyleName["default"])(_key));
} else {
css += (0, _hyphenateStyleName["default"])(key) + ":" + props[key] + ";";
css += (0, _hyphenateStyleName["default"])(_key) + ":" + props[_key] + ";";
}

@@ -41,2 +43,3 @@ }

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -14,2 +14,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -24,2 +24,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,4 +14,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(node, property) {

@@ -33,2 +33,3 @@ if (property) {

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -14,2 +14,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.getComputedStyle = exports.addStyle = exports.removeStyle = exports.getStyle = void 0;
var _getStyle2 = _interopRequireDefault(require("./getStyle"));
var _getStyle = _interopRequireDefault(require("./getStyle"));
exports.getStyle = _getStyle2["default"];
exports.getStyle = _getStyle["default"];
var _removeStyle2 = _interopRequireDefault(require("./removeStyle"));
var _removeStyle = _interopRequireDefault(require("./removeStyle"));
exports.removeStyle = _removeStyle2["default"];
exports.removeStyle = _removeStyle["default"];
var _addStyle2 = _interopRequireDefault(require("./addStyle"));
var _addStyle = _interopRequireDefault(require("./addStyle"));
exports.addStyle = _addStyle2["default"];
exports.addStyle = _addStyle["default"];
var _getComputedStyle2 = _interopRequireDefault(require("./getComputedStyle"));
var _getComputedStyle = _interopRequireDefault(require("./getComputedStyle"));
exports.getComputedStyle = _getComputedStyle2["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports.getComputedStyle = _getComputedStyle["default"];

@@ -7,7 +7,5 @@ "use strict";

function removeStyle(node, key) {
if ('removeProperty' in node.style) {
node.style.removeProperty(key);
} else if (typeof node.style.removeAttribute === 'function') {
node.style.removeAttribute(key);
}
var _node$style, _node$style$removePro;
(_node$style = node.style) === null || _node$style === void 0 ? void 0 : (_node$style$removePro = _node$style.removeProperty) === null || _node$style$removePro === void 0 ? void 0 : _node$style$removePro.call(_node$style, key);
}

@@ -22,3 +20,3 @@ /**

removeStyle(node, keys);
} else if (Object.prototype.toString.call(keys) === '[object Array]') {
} else if (Array.isArray(keys)) {
keys.forEach(function (key) {

@@ -30,2 +28,3 @@ return removeStyle(node, key);

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -73,2 +73,3 @@ "use strict";

exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,3 +14,3 @@ exports["default"] = exports.getTranslateDOMPositionXY = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// @flow

@@ -15,0 +17,0 @@ /**

@@ -23,2 +23,3 @@ "use strict";

var _default = camelize;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -59,2 +59,4 @@ "use strict";

};
}
}
module.exports = exports.default;

@@ -30,2 +30,3 @@ "use strict";

var _default = emptyFunction;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -8,4 +10,2 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var useHasFeature;

@@ -25,3 +25,3 @@

var eventName = "on" + eventNameSuffix;
var isSupported = eventName in document;
var isSupported = (eventName in document);

@@ -43,2 +43,3 @@ if (!isSupported) {

var _default = isEventSupported;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;

@@ -69,2 +69,4 @@ "use strict";

};
}
}
module.exports = exports.default;

@@ -71,5 +71,7 @@ "use strict";

} // IE compatibility mode
// @ts-ignore
if (_ie && document && document.documentMode) {
// @ts-ignore
_ie = document.documentMode;

@@ -254,2 +256,3 @@ } // grab the "true" ie version from the trident token if available

var _default = UserAgent;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -12,7 +14,3 @@ exports["default"] = void 0;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var WheelHandler =
/*#__PURE__*/
function () {
var WheelHandler = /*#__PURE__*/function () {
function WheelHandler(onWheel, handleScrollX, handleScrollY, stopPropagation) {

@@ -22,2 +20,6 @@ this.animationFrameID = null;

this.deltaY = 0;
this.handleScrollX = null;
this.handleScrollY = null;
this.stopPropagation = null;
this.onWheelCallback = null;
this.didWheel = this.didWheel.bind(this);

@@ -86,2 +88,3 @@

var _default = WheelHandler;
exports["default"] = _default;
exports["default"] = _default;
module.exports = exports.default;
{
"name": "dom-lib",
"version": "1.3.1",
"version": "2.0.0",
"description": "DOM helper library",

@@ -11,8 +11,9 @@ "main": "lib/index.js",

"scripts": {
"build": "rm -rf lib && npx babel src --out-dir lib",
"build-es": "rm -rf es && NODE_ENV=esm npx babel src --out-dir es",
"build": "npm run build:gulp && npm run build:types",
"build:gulp": "gulp build",
"build:types": "npx tsc --emitDeclarationOnly --outDir lib && npx tsc --emitDeclarationOnly --outDir es",
"tdd": "karma start",
"lint": "eslint src *.js",
"lint": "eslint src/**/*.ts",
"test": "npm run lint && karma start --single-run",
"prepublish": "npm run test && npm run build && npm run build-es"
"prepublishOnly": "npm run build"
},

@@ -31,40 +32,30 @@ "author": "Simon Guo <simonguo.2009@gmail.com>",

"devDependencies": {
"@babel/cli": "^7.2.0",
"@babel/core": "^7.0.0",
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-classes": "^7.0.0",
"@babel/plugin-transform-proto-to-assign": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^9.0.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.7.1",
"@babel/preset-typescript": "^7.12.7",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.0",
"babel-plugin-add-module-exports": "^1.0.4",
"brfs": "^1.5.0",
"chai": "^3.5.0",
"del": "^6.0.0",
"es5-shim": "^4.1.14",
"eslint": "^4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.7.0",
"flow-bin": "^0.68.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-prettier": "^3.3.1",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"jquery": "^3.2.1",

@@ -85,3 +76,3 @@ "karma": "^1.7.1",

"mocha": "^3.2.0",
"react-dom": "^16.6.3",
"prettier": "^2.2.1",
"simulant": "^0.2.2",

@@ -91,2 +82,3 @@ "sinon": "^2.1.0",

"style-loader": "^0.13.1",
"typescript": "^4.1.3",
"webpack": "^4.27.1",

@@ -93,0 +85,0 @@ "webpack-cli": "^3.1.2"

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