jupyter-js-domutils
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -1,2 +0,1 @@ | ||
import { Command } from 'phosphor-command'; | ||
/** | ||
@@ -19,9 +18,9 @@ * A button applied to a dialog. | ||
/** | ||
* The command for the button. | ||
* The handler for the button. | ||
*/ | ||
command?: Command; | ||
handler?: (args: any) => void; | ||
/** | ||
* The args object for the button command. | ||
* The arguments to pass to the handler. | ||
*/ | ||
commandArgs?: any; | ||
args?: any; | ||
} | ||
@@ -28,0 +27,0 @@ /** |
@@ -86,5 +86,4 @@ // Copyright (c) Jupyter Development Team. | ||
var button = buttons[buttonNodes.indexOf(node)]; | ||
if (button.command && button.command.isEnabled) { | ||
button.command.execute(button.commandArgs); | ||
} | ||
if (button.handler) | ||
button.handler(button.args); | ||
resolve(button); | ||
@@ -91,0 +90,0 @@ } |
{ | ||
"name": "jupyter-js-domutils", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "DOM utilities for the Jupyter frontend", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"dependencies": { | ||
"phosphor-command": "^0.8.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -34,3 +32,3 @@ "css-loader": "^0.23.1", | ||
"clean:example": "rimraf example/build", | ||
"build:example": "tsc --project example/src && webpack --config example/webpack.conf.js", | ||
"build:example": "cd example && tsc --project src && webpack --config webpack.conf.js", | ||
"build:src": "tsc --project src && node scripts/copycss.js", | ||
@@ -37,0 +35,0 @@ "build:test": "tsc --project test/src && webpack --config test/webpack.conf.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
0
11539
288
- Removedphosphor-command@^0.8.0
- Removedphosphor-command@0.8.0(transitive)
- Removedphosphor-signaling@1.2.0(transitive)