Socket
Socket
Sign inDemoInstall

@jupyterlab/ui-components

Package Overview
Dependencies
Maintainers
35
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/ui-components - npm Package Compare versions

Comparing version 4.0.0-alpha.34 to 4.0.0-alpha.35

src/components/accordiontoolbar.ts

2

lib/components/form.js

@@ -238,3 +238,3 @@ /*

!props.compact && schema.description && needsDescription && (React.createElement("div", { className: "jp-FormGroup-description" }, schema.description)),
isModified && defaultValue !== undefined && (React.createElement("div", { className: "jp-FormGroup-default" }, trans.__('Default: %1', defaultValue.toLocaleString()))),
isModified && defaultValue !== undefined && (React.createElement("div", { className: "jp-FormGroup-default" }, trans.__('Default: %1', defaultValue !== null ? defaultValue.toLocaleString() : 'null'))),
React.createElement("div", { className: "validationErrors" }, errors))));

@@ -241,0 +241,0 @@ }

@@ -6,3 +6,3 @@ import { IDisposable } from '@lumino/disposable';

import * as React from 'react';
declare type ReactRenderElement = Array<React.ReactElement<any>> | React.ReactElement<any>;
type ReactRenderElement = Array<React.ReactElement<any>> | React.ReactElement<any>;
/**

@@ -9,0 +9,0 @@ * An abstract class for a Lumino widget which renders a React component.

@@ -491,3 +491,3 @@ /*

*/
export class WindowedList extends Widget {
class WindowedList extends Widget {
/**

@@ -836,2 +836,3 @@ * Constructor

WindowedList.DEFAULT_WIDGET_SIZE = 50;
export { WindowedList };
/**

@@ -838,0 +839,0 @@ * Customized layout for windowed list container.

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

declare type OutOfViewDisplay = 'hidden-inside' | 'hidden-outside' | 'stick-inside' | 'stick-outside';
type OutOfViewDisplay = 'hidden-inside' | 'hidden-outside' | 'stick-inside' | 'stick-outside';
/**

@@ -3,0 +3,0 @@ * A namespace for `HoverBox` members.

@@ -12,51 +12,4 @@ // Copyright (c) Jupyter Development Team.

import { classes, getReactAttrs } from '../utils';
export class LabIcon {
class LabIcon {
/** *********
* members *
***********/
constructor({ name, svgstr, render, unrender, _loading = false }) {
this._props = {};
this._svgReplaced = new Signal(this);
/**
* Cache for svg parsing intermediates
* - undefined: the cache has not yet been populated
* - null: a valid, but empty, value
*/
this._svgElement = undefined;
this._svgInnerHTML = undefined;
this._svgReactAttrs = undefined;
if (!(name && svgstr)) {
// sanity check failed
console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${name}, svgstr: ${svgstr}`);
return badIcon;
}
// currently this needs to be set early, before checks for existing icons
this._loading = _loading;
// check to see if this is a redefinition of an existing icon
if (LabIcon._instances.has(name)) {
// fetch the existing icon, replace its svg, then return it
const icon = LabIcon._instances.get(name);
if (this._loading) {
// replace the placeholder svg in icon
icon.svgstr = svgstr;
this._loading = false;
return icon;
}
else {
// already loaded icon svg exists; replace it and warn
if (LabIcon._debug) {
console.warn(`Redefining previously loaded icon svgstr. name: ${name}, svgstrOld: ${icon.svgstr}, svgstr: ${svgstr}`);
}
icon.svgstr = svgstr;
return icon;
}
}
this.name = name;
this.react = this._initReact(name);
this.svgstr = svgstr;
// setup custom render/unrender methods, if passed in
this._initRender({ render, unrender });
LabIcon._instances.set(this.name, this);
}
/** *********
* statics *

@@ -217,2 +170,49 @@ ***********/

}
/** *********
* members *
***********/
constructor({ name, svgstr, render, unrender, _loading = false }) {
this._props = {};
this._svgReplaced = new Signal(this);
/**
* Cache for svg parsing intermediates
* - undefined: the cache has not yet been populated
* - null: a valid, but empty, value
*/
this._svgElement = undefined;
this._svgInnerHTML = undefined;
this._svgReactAttrs = undefined;
if (!(name && svgstr)) {
// sanity check failed
console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${name}, svgstr: ${svgstr}`);
return badIcon;
}
// currently this needs to be set early, before checks for existing icons
this._loading = _loading;
// check to see if this is a redefinition of an existing icon
if (LabIcon._instances.has(name)) {
// fetch the existing icon, replace its svg, then return it
const icon = LabIcon._instances.get(name);
if (this._loading) {
// replace the placeholder svg in icon
icon.svgstr = svgstr;
this._loading = false;
return icon;
}
else {
// already loaded icon svg exists; replace it and warn
if (LabIcon._debug) {
console.warn(`Redefining previously loaded icon svgstr. name: ${name}, svgstrOld: ${icon.svgstr}, svgstr: ${svgstr}`);
}
icon.svgstr = svgstr;
return icon;
}
}
this.name = name;
this.react = this._initReact(name);
this.svgstr = svgstr;
// setup custom render/unrender methods, if passed in
this._initRender({ render, unrender });
LabIcon._instances.set(this.name, this);
}
/**

@@ -445,2 +445,3 @@ * Get a view of this icon that is bound to the specified icon/style props

LabIcon._instances = new Map();
export { LabIcon };
var Private;

@@ -447,0 +448,0 @@ (function (Private) {

@@ -13,3 +13,3 @@ // Copyright (c) Jupyter Development Team.

*/
export class TabBarSvg extends TabBar {
class TabBarSvg extends TabBar {
/**

@@ -34,2 +34,3 @@ * Construct a new tab bar. Overrides the default renderer.

TabBarSvg.translator = null;
export { TabBarSvg };
(function (TabBarSvg) {

@@ -36,0 +37,0 @@ /**

{
"name": "@jupyterlab/ui-components",
"version": "4.0.0-alpha.34",
"version": "4.0.0-alpha.35",
"description": "JupyterLab - UI components written in React",

@@ -27,3 +27,4 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
"style/index.js"
"style/index.js",
"src/**/*.{ts,tsx}"
],

@@ -44,16 +45,16 @@ "scripts": {

"dependencies": {
"@jupyterlab/coreutils": "^6.0.0-alpha.19",
"@jupyterlab/observables": "^5.0.0-alpha.19",
"@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.19",
"@jupyterlab/translation": "^4.0.0-alpha.19",
"@lumino/algorithm": "^2.0.0-beta.0",
"@lumino/commands": "^2.0.0-beta.1",
"@lumino/coreutils": "^2.0.0-beta.0",
"@lumino/disposable": "^2.0.0-beta.1",
"@lumino/messaging": "^2.0.0-beta.0",
"@lumino/polling": "^2.0.0-beta.0",
"@lumino/properties": "^2.0.0-beta.0",
"@lumino/signaling": "^2.0.0-beta.1",
"@lumino/virtualdom": "^2.0.0-beta.0",
"@lumino/widgets": "^2.0.0-beta.1",
"@jupyterlab/coreutils": "^6.0.0-alpha.20",
"@jupyterlab/observables": "^5.0.0-alpha.20",
"@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.20",
"@jupyterlab/translation": "^4.0.0-alpha.20",
"@lumino/algorithm": "^2.0.0-rc.0",
"@lumino/commands": "^2.0.0-rc.0",
"@lumino/coreutils": "^2.0.0-rc.0",
"@lumino/disposable": "^2.0.0-rc.0",
"@lumino/messaging": "^2.0.0-rc.0",
"@lumino/polling": "^2.0.0-rc.0",
"@lumino/properties": "^2.0.0-rc.0",
"@lumino/signaling": "^2.0.0-rc.0",
"@lumino/virtualdom": "^2.0.0-rc.0",
"@lumino/widgets": "^2.0.0-rc.0",
"@rjsf/core": "^5.1.0",

@@ -66,3 +67,3 @@ "@rjsf/utils": "^5.1.0",

"devDependencies": {
"@jupyterlab/testing": "^4.0.0-alpha.19",
"@jupyterlab/testing": "^4.0.0-alpha.20",
"@types/jest": "^29.2.0",

@@ -72,4 +73,4 @@ "@types/react": "^18.0.26",

"svgo": "^3.0.1",
"typedoc": "~0.22.10",
"typescript": "~4.7.3"
"typedoc": "~0.23.25",
"typescript": "~5.0.0-beta"
},

@@ -76,0 +77,0 @@ "peerDependencies": {

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 not supported yet

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