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

@jupyterlab/filebrowser

Package Overview
Dependencies
Maintainers
10
Versions
396
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/filebrowser - npm Package Compare versions

Comparing version 4.2.0-alpha.1 to 4.2.0-alpha.2

1

lib/listing.d.ts

@@ -550,2 +550,3 @@ import { DocumentRegistry } from '@jupyterlab/docregistry';

alwaysVisible: boolean;
headerNode?: boolean;
}): HTMLElement;

@@ -552,0 +553,0 @@ /**

@@ -26,2 +26,6 @@ import { Dialog } from '@jupyterlab/apputils';

defaultPath?: string;
/**
* Text to display above the file browser.
*/
label?: string;
}

@@ -28,0 +32,0 @@ /**

@@ -16,2 +16,6 @@ // Copyright (c) Jupyter Development Team.

/**
* The class name added to (optional) label in the file dialog
*/
const OPEN_DIALOG_LABEL_CLASS = 'jp-Open-Dialog-label';
/**
* Namespace for file dialog

@@ -34,3 +38,3 @@ */

const trans = translator.load('jupyterlab');
const openDialog = new OpenDialog(options.manager, options.filter, translator, options.defaultPath);
const openDialog = new OpenDialog(options.manager, options.filter, translator, options.defaultPath, options.label);
const dialogOptions = {

@@ -78,3 +82,3 @@ title: options.title,

class OpenDialog extends Widget {
constructor(manager, filter, translator, defaultPath, filterDirectories) {
constructor(manager, filter, translator, defaultPath, label, filterDirectories) {
super();

@@ -115,2 +119,8 @@ this._ready = new PromiseDelegate();

const layout = new PanelLayout();
if (label) {
const labelWidget = new Widget();
labelWidget.addClass(OPEN_DIALOG_LABEL_CLASS);
labelWidget.node.textContent = label;
layout.addWidget(labelWidget);
}
layout.addWidget(this._browser);

@@ -117,0 +127,0 @@ /**

@@ -99,2 +99,11 @@ import type { WidgetTracker } from '@jupyterlab/apputils';

*/
export declare const IFileBrowserCommands: Token<void>;
export declare const IFileBrowserCommands: Token<IFileBrowserCommands>;
/**
* The identifiers of loaded commands exposed for reuse.
*/
export interface IFileBrowserCommands {
/**
* Command for opening a file or a directory by path.
*/
openPath: string;
}

22

package.json
{
"name": "@jupyterlab/filebrowser",
"version": "4.2.0-alpha.1",
"version": "4.2.0-alpha.2",
"description": "JupyterLab - FileBrowser Widget",

@@ -45,11 +45,11 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

"dependencies": {
"@jupyterlab/apputils": "^4.3.0-alpha.1",
"@jupyterlab/coreutils": "^6.2.0-alpha.1",
"@jupyterlab/docmanager": "^4.2.0-alpha.1",
"@jupyterlab/docregistry": "^4.2.0-alpha.1",
"@jupyterlab/services": "^7.2.0-alpha.1",
"@jupyterlab/statedb": "^4.2.0-alpha.1",
"@jupyterlab/statusbar": "^4.2.0-alpha.1",
"@jupyterlab/translation": "^4.2.0-alpha.1",
"@jupyterlab/ui-components": "^4.2.0-alpha.1",
"@jupyterlab/apputils": "^4.3.0-alpha.2",
"@jupyterlab/coreutils": "^6.2.0-alpha.2",
"@jupyterlab/docmanager": "^4.2.0-alpha.2",
"@jupyterlab/docregistry": "^4.2.0-alpha.2",
"@jupyterlab/services": "^7.2.0-alpha.2",
"@jupyterlab/statedb": "^4.2.0-alpha.2",
"@jupyterlab/statusbar": "^4.2.0-alpha.2",
"@jupyterlab/translation": "^4.2.0-alpha.2",
"@jupyterlab/ui-components": "^4.2.0-alpha.2",
"@lumino/algorithm": "^2.0.1",

@@ -68,3 +68,3 @@ "@lumino/coreutils": "^2.1.2",

"devDependencies": {
"@jupyterlab/testing": "^4.2.0-alpha.1",
"@jupyterlab/testing": "^4.2.0-alpha.2",
"@types/jest": "^29.2.0",

@@ -71,0 +71,0 @@ "jest": "^29.2.0",

@@ -22,2 +22,7 @@ // Copyright (c) Jupyter Development Team.

/**
* The class name added to (optional) label in the file dialog
*/
const OPEN_DIALOG_LABEL_CLASS = 'jp-Open-Dialog-label';
/**
* Namespace for file dialog

@@ -53,2 +58,7 @@ */

defaultPath?: string;
/**
* Text to display above the file browser.
*/
label?: string;
}

@@ -90,3 +100,4 @@

translator,
options.defaultPath
options.defaultPath,
options.label
);

@@ -147,2 +158,3 @@ const dialogOptions: Partial<Dialog.IOptions<Contents.IModel[]>> = {

defaultPath?: string,
label?: string,
filterDirectories?: boolean

@@ -198,2 +210,8 @@ ) {

const layout = new PanelLayout();
if (label) {
const labelWidget = new Widget();
labelWidget.addClass(OPEN_DIALOG_LABEL_CLASS);
labelWidget.node.textContent = label;
layout.addWidget(labelWidget);
}
layout.addWidget(this._browser);

@@ -200,0 +218,0 @@

@@ -124,5 +124,15 @@ // Copyright (c) Jupyter Development Team.

*/
export const IFileBrowserCommands = new Token<void>(
export const IFileBrowserCommands = new Token<IFileBrowserCommands>(
'@jupyterlab/filebrowser:IFileBrowserCommands',
'A token to ensure file browser commands are loaded.'
);
/**
* The identifiers of loaded commands exposed for reuse.
*/
export interface IFileBrowserCommands {
/**
* Command for opening a file or a directory by path.
*/
openPath: string;
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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