New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jupyterlab/imageviewer

Package Overview
Dependencies
Maintainers
16
Versions
380
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/imageviewer - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

lib/tokens.d.ts

14

lib/index.d.ts

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

import { IInstanceTracker } from '@jupyterlab/apputils';
import { IDocumentWidget } from '@jupyterlab/docregistry';
import { Token } from '@phosphor/coreutils';
import { ImageViewer } from './widget';
import '../style/index.css';
export * from './tokens';
export * from './widget';
/**
* A class that tracks editor widgets.
*/
export interface IImageTracker extends IInstanceTracker<IDocumentWidget<ImageViewer>> {
}
/**
* The editor tracker token.
*/
export declare const IImageTracker: Token<IImageTracker>;

@@ -1,16 +0,5 @@

"use strict";
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
const coreutils_1 = require("@phosphor/coreutils");
require("../style/index.css");
__export(require("./widget"));
/* tslint:disable */
/**
* The editor tracker token.
*/
exports.IImageTracker = new coreutils_1.Token('@jupyterlab/imageviewer:IImageTracker');
/* tslint:enable */
import '../style/index.css';
export * from './tokens';
export * from './widget';

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

import { Printing } from '@jupyterlab/apputils';
import { ABCWidgetFactory, DocumentRegistry, IDocumentWidget } from '@jupyterlab/docregistry';

@@ -7,3 +8,3 @@ import { Message } from '@phosphor/messaging';

*/
export declare class ImageViewer extends Widget {
export declare class ImageViewer extends Widget implements Printing.IPrintable {
/**

@@ -14,2 +15,6 @@ * Construct a new image widget.

/**
* Print in iframe.
*/
[Printing.symbol](): () => Promise<void>;
/**
* The image widget's context.

@@ -16,0 +21,0 @@ */

@@ -1,9 +0,8 @@

"use strict";
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
Object.defineProperty(exports, "__esModule", { value: true });
const coreutils_1 = require("@jupyterlab/coreutils");
const docregistry_1 = require("@jupyterlab/docregistry");
const coreutils_2 = require("@phosphor/coreutils");
const widgets_1 = require("@phosphor/widgets");
import { PathExt } from '@jupyterlab/coreutils';
import { Printing } from '@jupyterlab/apputils';
import { ABCWidgetFactory, DocumentWidget } from '@jupyterlab/docregistry';
import { PromiseDelegate } from '@phosphor/coreutils';
import { Widget } from '@phosphor/widgets';
/**

@@ -16,3 +15,3 @@ * The class name added to a imageviewer.

*/
class ImageViewer extends widgets_1.Widget {
export class ImageViewer extends Widget {
/**

@@ -26,3 +25,3 @@ * Construct a new image widget.

this._colorinversion = 0;
this._ready = new coreutils_2.PromiseDelegate();
this._ready = new PromiseDelegate();
this.context = context;

@@ -49,2 +48,8 @@ this.node.tabIndex = -1;

/**
* Print in iframe.
*/
[Printing.symbol]() {
return () => Printing.printWidget(this);
}
/**
* A promise that resolves when the image viewer is ready.

@@ -135,3 +140,3 @@ */

_onTitleChanged() {
this.title.label = coreutils_1.PathExt.basename(this.context.localPath);
this.title.label = PathExt.basename(this.context.localPath);
}

@@ -161,7 +166,6 @@ /**

}
exports.ImageViewer = ImageViewer;
/**
* A widget factory for images.
*/
class ImageViewerFactory extends docregistry_1.ABCWidgetFactory {
export class ImageViewerFactory extends ABCWidgetFactory {
/**

@@ -172,7 +176,6 @@ * Create a new widget given a context.

const content = new ImageViewer(context);
const widget = new docregistry_1.DocumentWidget({ content, context });
const widget = new DocumentWidget({ content, context });
return widget;
}
}
exports.ImageViewerFactory = ImageViewerFactory;
/**

@@ -179,0 +182,0 @@ * A namespace for image widget private data.

{
"name": "@jupyterlab/imageviewer",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"description": "JupyterLab - Image Widget",

@@ -9,2 +9,6 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

},
"repository": {
"type": "git",
"url": "https://github.com/jupyterlab/jupyterlab.git"
},
"license": "BSD-3-Clause",

@@ -23,6 +27,2 @@ "author": "Project Jupyter",

},
"repository": {
"type": "git",
"url": "https://github.com/jupyterlab/jupyterlab.git"
},
"scripts": {

@@ -36,5 +36,5 @@ "build": "tsc -b",

"dependencies": {
"@jupyterlab/apputils": "^1.0.0-alpha.6",
"@jupyterlab/coreutils": "^3.0.0-alpha.6",
"@jupyterlab/docregistry": "^1.0.0-alpha.6",
"@jupyterlab/apputils": "^1.0.0-alpha.7",
"@jupyterlab/coreutils": "^3.0.0-alpha.7",
"@jupyterlab/docregistry": "^1.0.0-alpha.7",
"@phosphor/coreutils": "^1.3.0",

@@ -52,3 +52,3 @@ "@phosphor/messaging": "^1.2.2",

},
"gitHead": "25152cd7c0a2d2d3d020dcd59451c236e9ecc6ab"
"gitHead": "f8e210a027f6545b426caf4ab64c75a1e1619a44"
}
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