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

@lumino/domutils

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lumino/domutils - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

50

dist/index.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.lumino_domutils = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.lumino_domutils = {}));
}(this, (function (exports) { 'use strict';
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2019, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
/**
* The namespace for clipboard related functionality.
*/
exports.ClipboardExt = void 0;
(function (ClipboardExt) {

@@ -36,2 +48,14 @@ /**

// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
/**
* The namespace for element related utilities.
*/
exports.ElementExt = void 0;
(function (ElementExt) {

@@ -151,2 +175,14 @@ /**

// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
/**
* The namespace for platform related utilities.
*/
exports.Platform = void 0;
(function (Platform) {

@@ -187,2 +223,14 @@ /**

// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
/**
* The namespace for selector related utilities.
*/
exports.Selector = void 0;
(function (Selector) {

@@ -189,0 +237,0 @@ /**

2

dist/index.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).lumino_domutils={})}(this,(function(t){"use strict";var e,o,i,r;(t.ClipboardExt||(t.ClipboardExt={})).copyText=function(t){var e=document.body,o=function(i){i.preventDefault(),i.stopPropagation(),i.clipboardData.setData("text",t),e.removeEventListener("copy",o,!0)};e.addEventListener("copy",o,!0),document.execCommand("copy")},(e=t.ElementExt||(t.ElementExt={})).boxSizing=function(t){var e=window.getComputedStyle(t),o=parseFloat(e.borderTopWidth)||0,i=parseFloat(e.borderLeftWidth)||0,r=parseFloat(e.borderRightWidth)||0,a=parseFloat(e.borderBottomWidth)||0,n=parseFloat(e.paddingTop)||0,c=parseFloat(e.paddingLeft)||0,l=parseFloat(e.paddingRight)||0,p=parseFloat(e.paddingBottom)||0;return{borderTop:o,borderLeft:i,borderRight:r,borderBottom:a,paddingTop:n,paddingLeft:c,paddingRight:l,paddingBottom:p,horizontalSum:i+c+l+r,verticalSum:o+n+p+a}},e.sizeLimits=function(t){var e=window.getComputedStyle(t),o=parseFloat(e.minWidth)||0,i=parseFloat(e.minHeight)||0,r=parseFloat(e.maxWidth)||1/0,a=parseFloat(e.maxHeight)||1/0;return{minWidth:o,minHeight:i,maxWidth:r=Math.max(o,r),maxHeight:a=Math.max(i,a)}},e.hitTest=function(t,e,o){var i=t.getBoundingClientRect();return e>=i.left&&e<i.right&&o>=i.top&&o<i.bottom},e.scrollIntoViewIfNeeded=function(t,e){var o=t.getBoundingClientRect(),i=e.getBoundingClientRect();i.top<=o.top&&i.bottom>=o.bottom||(i.top<o.top&&i.height<=o.height?t.scrollTop-=o.top-i.top:i.bottom>o.bottom&&i.height>=o.height?t.scrollTop-=o.top-i.top:i.top<o.top&&i.height>o.height?t.scrollTop-=o.bottom-i.bottom:i.bottom>o.bottom&&i.height<o.height&&(t.scrollTop-=o.bottom-i.bottom))},(o=t.Platform||(t.Platform={})).IS_MAC=!!navigator.platform.match(/Mac/i),o.IS_WIN=!!navigator.platform.match(/Win/i),o.IS_IE=/Trident/.test(navigator.userAgent),o.IS_EDGE=/Edge/.test(navigator.userAgent),o.accelKey=function(t){return o.IS_MAC?t.metaKey:t.ctrlKey},(i=t.Selector||(t.Selector={})).calculateSpecificity=function(t){if(t in r.specificityCache)return r.specificityCache[t];var e=r.calculateSingle(t);return r.specificityCache[t]=e},i.isValid=function(t){if(t in r.validityCache)return r.validityCache[t];var e=!0;try{r.testElem.querySelector(t)}catch(t){e=!1}return r.validityCache[t]=e},i.matches=function(t,e){return r.protoMatchFunc.call(t,e)},function(t){var e;t.specificityCache=Object.create(null),t.validityCache=Object.create(null),t.testElem=document.createElement("div"),t.protoMatchFunc=(e=Element.prototype).matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var e=this.ownerDocument?this.ownerDocument.querySelectorAll(t):[];return-1!==Array.prototype.indexOf.call(e,this)},t.calculateSingle=function(t){var e=0,s=0,d=0;function h(e){var o=t.match(e);return null!==o&&(t=t.slice(o[0].length),!0)}for(t=(t=t.split(",",1)[0]).replace(p," $1 ");t.length>0;)if(h(o))e++;else if(h(i))s++;else if(h(r))s++;else if(h(n))d++;else if(h(c))s++;else if(h(a))d++;else if(!h(l))return 0;return(e=Math.min(e,255))<<16|(s=Math.min(s,255))<<8|(d=Math.min(d,255))};var o=/^#[^\s\+>~#\.\[:]+/,i=/^\.[^\s\+>~#\.\[:]+/,r=/^\[[^\]]+\]/,a=/^[^\s\+>~#\.\[:]+/,n=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,c=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,p=/:not\(([^\)]+)\)/g}(r||(r={})),Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).lumino_domutils={})}(this,(function(t){"use strict";var e,o,i,r;t.ClipboardExt=void 0,(t.ClipboardExt||(t.ClipboardExt={})).copyText=function(t){var e=document.body,o=function(i){i.preventDefault(),i.stopPropagation(),i.clipboardData.setData("text",t),e.removeEventListener("copy",o,!0)};e.addEventListener("copy",o,!0),document.execCommand("copy")},t.ElementExt=void 0,(e=t.ElementExt||(t.ElementExt={})).boxSizing=function(t){var e=window.getComputedStyle(t),o=parseFloat(e.borderTopWidth)||0,i=parseFloat(e.borderLeftWidth)||0,r=parseFloat(e.borderRightWidth)||0,a=parseFloat(e.borderBottomWidth)||0,n=parseFloat(e.paddingTop)||0,l=parseFloat(e.paddingLeft)||0,c=parseFloat(e.paddingRight)||0,d=parseFloat(e.paddingBottom)||0;return{borderTop:o,borderLeft:i,borderRight:r,borderBottom:a,paddingTop:n,paddingLeft:l,paddingRight:c,paddingBottom:d,horizontalSum:i+l+c+r,verticalSum:o+n+d+a}},e.sizeLimits=function(t){var e=window.getComputedStyle(t),o=parseFloat(e.minWidth)||0,i=parseFloat(e.minHeight)||0,r=parseFloat(e.maxWidth)||1/0,a=parseFloat(e.maxHeight)||1/0;return{minWidth:o,minHeight:i,maxWidth:r=Math.max(o,r),maxHeight:a=Math.max(i,a)}},e.hitTest=function(t,e,o){var i=t.getBoundingClientRect();return e>=i.left&&e<i.right&&o>=i.top&&o<i.bottom},e.scrollIntoViewIfNeeded=function(t,e){var o=t.getBoundingClientRect(),i=e.getBoundingClientRect();i.top<=o.top&&i.bottom>=o.bottom||(i.top<o.top&&i.height<=o.height||i.bottom>o.bottom&&i.height>=o.height?t.scrollTop-=o.top-i.top:(i.top<o.top&&i.height>o.height||i.bottom>o.bottom&&i.height<o.height)&&(t.scrollTop-=o.bottom-i.bottom))},t.Platform=void 0,(o=t.Platform||(t.Platform={})).IS_MAC=!!navigator.platform.match(/Mac/i),o.IS_WIN=!!navigator.platform.match(/Win/i),o.IS_IE=/Trident/.test(navigator.userAgent),o.IS_EDGE=/Edge/.test(navigator.userAgent),o.accelKey=function(t){return o.IS_MAC?t.metaKey:t.ctrlKey},t.Selector=void 0,(i=t.Selector||(t.Selector={})).calculateSpecificity=function(t){if(t in r.specificityCache)return r.specificityCache[t];var e=r.calculateSingle(t);return r.specificityCache[t]=e},i.isValid=function(t){if(t in r.validityCache)return r.validityCache[t];var e=!0;try{r.testElem.querySelector(t)}catch(t){e=!1}return r.validityCache[t]=e},i.matches=function(t,e){return r.protoMatchFunc.call(t,e)},function(t){var e;t.specificityCache=Object.create(null),t.validityCache=Object.create(null),t.testElem=document.createElement("div"),t.protoMatchFunc=(e=Element.prototype).matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var e=this,o=e.ownerDocument?e.ownerDocument.querySelectorAll(t):[];return-1!==Array.prototype.indexOf.call(o,e)},t.calculateSingle=function(t){var e=0,p=0,s=0;function h(e){var o=t.match(e);return null!==o&&(t=t.slice(o[0].length),!0)}for(t=(t=t.split(",",1)[0]).replace(d," $1 ");t.length>0;)if(h(o))e++;else if(h(i))p++;else if(h(r))p++;else if(h(n))s++;else if(h(l))p++;else if(h(a))s++;else if(!h(c))return 0;return(e=Math.min(e,255))<<16|(p=Math.min(p,255))<<8|(s=Math.min(s,255))};var o=/^#[^\s\+>~#\.\[:]+/,i=/^\.[^\s\+>~#\.\[:]+/,r=/^\[[^\]]+\]/,a=/^[^\s\+>~#\.\[:]+/,n=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,l=/^:[^\s\+>~#\.\[:]+/,c=/^[\s\+>~\*]+/,d=/:not\(([^\)]+)\)/g}(r||(r={})),Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.min.js.map
{
"name": "@lumino/domutils",
"version": "1.5.0",
"version": "1.5.1",
"description": "Lumino DOM Utilities",

@@ -21,2 +21,7 @@ "homepage": "https://github.com/jupyterlab/lumino",

],
"main": "dist/index.js",
"jsdelivr": "dist/index.min.js",
"unpkg": "dist/index.min.js",
"module": "dist/index.es6",
"types": "types/index.d.ts",
"files": [

@@ -27,6 +32,2 @@ "dist/*",

],
"main": "dist/index.js",
"unpkg": "dist/index.min.js",
"module": "dist/index.es6",
"types": "types/index.d.ts",
"scripts": {

@@ -51,17 +52,17 @@ "api": "api-extractor run --local --verbose",

"@types/mocha": "^2.2.39",
"chai": "^3.5.0",
"karma": "^4.4.1",
"karma-chrome-launcher": "^2.0.0",
"karma-firefox-launcher": "^1.0.0",
"chai": "^4.3.4",
"karma": "^6.3.4",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.1",
"karma-ie-launcher": "^1.0.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.2",
"mocha": "^6.2.2",
"rimraf": "^2.5.2",
"rollup": "^2.22.1",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"mocha": "^9.0.3",
"rimraf": "^3.0.2",
"rollup": "^2.56.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-sourcemaps": "^0.5.0",
"terser": "^4.6.2",
"tslib": "1.10.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"terser": "^5.7.1",
"tslib": "^2.3.0",
"typedoc": "~0.15.0",

@@ -74,5 +75,3 @@ "typescript": "~3.6.0",

"access": "public"
},
"jsdelivr": "dist/index.min.js",
"gitHead": "cbb8cfd804b647ff7a150799353b27c2dc17f373"
}
}

Sorry, the diff of this file is not supported yet

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