🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

atom-web-ui

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-web-ui - npm Package Compare versions

Comparing version

to
0.0.25

3

dist/core/atomWebStuff.js
"use strict";
var aceEnabled = false;
var AtomTextEditorModel = (function () {

@@ -58,3 +59,3 @@ function AtomTextEditorModel(owner) {

var oldInput = this.input;
if (this.isXml() || this.isJson()) {
if (aceEnabled && (this.isXml() || this.isJson())) {
var input = document.createElement('div');

@@ -61,0 +62,0 @@ var aceEditor = this.getAceEditor(input);

export declare class Workspace {
private containerId;
private modalId;
textEditor: TextEditor;

@@ -13,3 +14,3 @@ rootPane: Pane;

didDestroyPaneCallbacks: any[];
constructor(containerId?: string);
constructor(containerId?: string, modalId?: string);
getDescriptors(): any;

@@ -161,3 +162,3 @@ initUI(): void;

export declare var workspace: Workspace;
export declare function getWorkspace(containerId?: string): Workspace;
export declare function getWorkspace(containerId?: string, modalId?: string): Workspace;
export declare var textEditors: any;

@@ -10,4 +10,5 @@ "use strict";

var Workspace = (function () {
function Workspace(containerId) {
function Workspace(containerId, modalId) {
this.containerId = containerId;
this.modalId = modalId;
this.textEditor = null;

@@ -68,3 +69,3 @@ this.rootPane = null;

this.container = document.getElementById('root-pane-container');
this.modalPanel = document.getElementById('modal-panel');
this.modalPanel = document.getElementById(this.modalId || 'modal-panel');
this.modalPanel.style.display = 'none';

@@ -102,8 +103,10 @@ this.clear();

this.modalPanel.appendChild(this.popup);
this.modalPanel.style.display = null;
this.modalPanel.style.display = 'block';
this.modalPanel.parentElement.style.display = 'block';
return {
destroy: function () {
_this.modalPanel.style.display = 'none';
_this.modalPanel.parentElement.style.display = 'none';
if (_this.popup.parentElement) {
_this.modalPanel.removeChild(_this.popup);
_this.modalPanel.innerHTML = "";
}

@@ -788,7 +791,7 @@ }

}
function getWorkspace(containerId) {
function getWorkspace(containerId, modalId) {
if (exports.workspace) {
return exports.workspace;
}
exports.workspace = new Workspace(containerId);
exports.workspace = new Workspace(containerId, modalId);
return exports.workspace;

@@ -795,0 +798,0 @@ }

{
"name": "atom-web-ui",
"version": "0.0.24",
"version": "0.0.25",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "description": "Atom UI port for web",

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

var aceEnabled = false;
export class AtomTextEditorModel {

@@ -83,3 +85,3 @@ owner: HTMLDivElement;

if(this.isXml() || this.isJson()) {
if(aceEnabled && (this.isXml() || this.isJson())) {
var input = document.createElement('div');

@@ -86,0 +88,0 @@

@@ -38,3 +38,3 @@ import atomStuff = require('./atomWebStuff');

constructor(private containerId?: string) {
constructor(private containerId?: string, private modalId?: string) {
this.initUI();

@@ -101,3 +101,3 @@ }

this.modalPanel = document.getElementById('modal-panel');
this.modalPanel = document.getElementById(this.modalId || 'modal-panel');

@@ -149,6 +149,7 @@ this.modalPanel.style.display = 'none';

this.popup = itemHolder.item;
this.modalPanel.appendChild(this.popup);
this.modalPanel.style.display = null;
this.modalPanel.style.display = 'block';
this.modalPanel.parentElement.style.display = 'block';

@@ -158,5 +159,6 @@ return {

this.modalPanel.style.display = 'none';
this.modalPanel.parentElement.style.display = 'none';
if(this.popup.parentElement) {
this.modalPanel.removeChild(this.popup);
this.modalPanel.innerHTML = "";
}

@@ -1145,3 +1147,3 @@ }

export function getWorkspace(containerId?: string) {
export function getWorkspace(containerId?: string, modalId?: string) {
if(workspace) {

@@ -1151,3 +1153,3 @@ return workspace;

workspace = new Workspace(containerId);
workspace = new Workspace(containerId, modalId);

@@ -1154,0 +1156,0 @@ return workspace;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet