@ndla/article-scripts
Advanced tools
Comparing version 0.5.19 to 0.5.20
@@ -12,3 +12,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -109,3 +109,3 @@ /** | ||
} else { | ||
(0, _jump.default)(popup, { | ||
(0, _jump["default"])(popup, { | ||
duration: 300, | ||
@@ -112,0 +112,0 @@ offset: offset |
@@ -16,3 +16,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -35,3 +35,3 @@ var trapInstances = {}; | ||
var dialogContent = dialog.querySelector(".c-dialog__content"); | ||
trapInstances[id] = (0, _focusTrap.default)(dialogContent, { | ||
trapInstances[id] = (0, _focusTrap["default"])(dialogContent, { | ||
onDeactivate: function onDeactivate() { | ||
@@ -47,3 +47,3 @@ closeDialog(dialog); | ||
var sourceHeight = source.offsetHeight; | ||
(0, _jump.default)(source, { | ||
(0, _jump["default"])(source, { | ||
offset: -((viewportHeight - sourceHeight) / 2), | ||
@@ -50,0 +50,0 @@ duration: 300, |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -38,3 +38,3 @@ /** | ||
}, '*'); | ||
(0, _jump.default)(hash, { | ||
(0, _jump["default"])(hash, { | ||
offset: -100, | ||
@@ -44,3 +44,3 @@ duration: 300 | ||
} else { | ||
(0, _jump.default)(hash, { | ||
(0, _jump["default"])(hash, { | ||
offset: -200, | ||
@@ -47,0 +47,0 @@ duration: 300 |
@@ -14,5 +14,5 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var classes = new _reactBemHelper.default({ | ||
var classes = new _reactBemHelper["default"]({ | ||
name: 'related-articles', | ||
@@ -43,3 +43,3 @@ prefix: 'c-' | ||
(0, _jump.default)(button, { | ||
(0, _jump["default"])(button, { | ||
offset: -buttonPosition, | ||
@@ -46,0 +46,0 @@ duration: 300 |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -77,3 +77,3 @@ var hasScrollbar = function hasScrollbar(tableEl) { | ||
var throttledEventListner = (0, _throttle.default)(eventListener, 100); | ||
var throttledEventListner = (0, _throttle["default"])(eventListener, 100); | ||
@@ -80,0 +80,0 @@ var initTableScript = function initTableScript() { |
{ | ||
"name": "@ndla/article-scripts", | ||
"version": "0.5.19", | ||
"version": "0.5.20", | ||
"description": "A collection of functions for making article content responsive (and interactive)", | ||
@@ -25,3 +25,3 @@ "license": "GPL-3.0", | ||
"jump.js": "^1.0.2", | ||
"lodash": "^4.17.14" | ||
"lodash": "^4.17.20" | ||
}, | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "407ef7d7c090ec2b2cdd35a40aeeefea13816786" | ||
"gitHead": "020e75cda216644afce6cfb12ec1b5b6cdc26de1" | ||
} |
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
109703
Updatedlodash@^4.17.20