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

@jupyterlab/codeeditor

Package Overview
Dependencies
Maintainers
7
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/codeeditor - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

README.md

1

lib/editor.js

@@ -139,1 +139,2 @@ "use strict";

})(CodeEditor = exports.CodeEditor || (exports.CodeEditor = {}));
//# sourceMappingURL=editor.js.map

@@ -5,1 +5,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=factory.js.map

3

lib/index.js

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

*/
exports.IEditorServices = new coreutils_1.Token('jupyter.services.editorservices');
exports.IEditorServices = new coreutils_1.Token('@jupyterlab/codeeditor:IEditorServices');
//# sourceMappingURL=index.js.map

@@ -77,2 +77,6 @@ import { IObservableJSON } from '@jupyterlab/coreutils';

/**
* Handle `after-show` messages for the widget.
*/
protected onAfterShow(msg: Message): void;
/**
* Handle `before-detach` messages for the widget.

@@ -89,3 +93,2 @@ */

private _onValueChanged();
private _toggleFocused();
/**

@@ -92,0 +95,0 @@ * Handle blur events for the text area.

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

/**
* The class name added to a focused JSONEditor instance.
*/
var FOCUSED_CLASS = 'jp-mod-focused';
/**
* The class name added when the Metadata editor contains invalid JSON.

@@ -215,4 +211,2 @@ */

break;
case 'focus':
this._toggleFocused();
default:

@@ -228,3 +222,3 @@ break;

node.addEventListener('blur', this, true);
node.addEventListener('focus', this, true);
node.addEventListener('click', this, true);
this.revertButtonNode.hidden = true;

@@ -235,2 +229,8 @@ this.commitButtonNode.hidden = true;

/**
* Handle `after-show` messages for the widget.
*/
JSONEditor.prototype.onAfterShow = function (msg) {
this.editor.refresh();
};
/**
* Handle `before-detach` messages for the widget.

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

node.removeEventListener('blur', this, true);
node.removeEventListener('click', this, true);
this.headerNode.removeEventListener('click', this);

@@ -275,13 +276,2 @@ };

};
JSONEditor.prototype._toggleFocused = function () {
var node = this.editorHostNode;
var codeMirror = node.getElementsByClassName('CodeMirror-wrap');
var focused = !codeMirror[0].classList.contains('CodeMirror-focused');
if (focused) {
node.classList.add(FOCUSED_CLASS);
}
else {
node.classList.remove(FOCUSED_CLASS);
}
};
/**

@@ -295,3 +285,2 @@ * Handle blur events for the text area.

}
this._toggleFocused();
};

@@ -329,2 +318,5 @@ /**

break;
case this.editorHostNode:
this.editor.focus();
break;
default:

@@ -384,2 +376,6 @@ break;

this._originalValue = content;
// Move the cursor to within the brace.
if (value.length > 1 && value[0] === '{') {
this.editor.setCursorPosition({ line: 0, column: 1 });
}
}

@@ -413,1 +409,2 @@ this.editor.refresh();

})(Private || (Private = {}));
//# sourceMappingURL=jsoneditor.js.map

@@ -15,1 +15,2 @@ "use strict";

})(IEditorMimeTypeService = exports.IEditorMimeTypeService || (exports.IEditorMimeTypeService = {}));
//# sourceMappingURL=mimetype.js.map

@@ -107,1 +107,2 @@ "use strict";

exports.CodeEditorWrapper = CodeEditorWrapper;
//# sourceMappingURL=widget.js.map
{
"name": "@jupyterlab/codeeditor",
"version": "0.10.0",
"version": "0.11.0",
"description": "JupyterLab - Abstract Code Editor",

@@ -16,3 +16,3 @@ "main": "lib/index.js",

"dependencies": {
"@jupyterlab/coreutils": "^0.10.0",
"@jupyterlab/coreutils": "^0.11.0",
"@phosphor/coreutils": "^1.2.0",

@@ -19,0 +19,0 @@ "@phosphor/disposable": "^1.1.1",

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