@jupyterlab/ui-components-extension 4.0.0-alpha.2 → 4.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +2 -6
- package/lib/index.js +14 -2
- package/lib/index.js.map +1 -1
- package/package.json +7 -6
- package/src/index.ts +44 -0
package/lib/index.d.ts
CHANGED
|
@@ -4,9 +4,5 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { JupyterFrontEndPlugin } from '@jupyterlab/application';
|
|
6
6
|
import { ILabIconManager } from '@jupyterlab/ui-components';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* to assist with overriding/replacing particular sets of icons
|
|
10
|
-
*/
|
|
11
|
-
declare const labiconManager: JupyterFrontEndPlugin<ILabIconManager>;
|
|
12
|
-
export default labiconManager;
|
|
7
|
+
declare const _default: JupyterFrontEndPlugin<ILabIconManager>[];
|
|
8
|
+
export default _default;
|
package/lib/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @module ui-components-extension
|
|
6
6
|
*/
|
|
7
|
-
import { ILabIconManager } from '@jupyterlab/ui-components';
|
|
7
|
+
import { FormRendererRegistry, IFormRendererRegistry, ILabIconManager } from '@jupyterlab/ui-components';
|
|
8
8
|
/**
|
|
9
9
|
* Placeholder for future extension that will provide an icon manager class
|
|
10
10
|
* to assist with overriding/replacing particular sets of icons
|
|
@@ -17,5 +17,17 @@ const labiconManager = {
|
|
|
17
17
|
return Object.create(null);
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Sets up the renderer registry to be used by the FormEditor component.
|
|
22
|
+
*/
|
|
23
|
+
const rendererRegistryPlugin = {
|
|
24
|
+
id: '@jupyterlab/ui-components-extension:form-renderer-registry',
|
|
25
|
+
provides: IFormRendererRegistry,
|
|
26
|
+
autoStart: true,
|
|
27
|
+
activate: (app) => {
|
|
28
|
+
const editorRegistry = new FormRendererRegistry();
|
|
29
|
+
return editorRegistry;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export default [labiconManager, rendererRegistryPlugin];
|
|
21
33
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAMH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAMH,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAEnC;;;GAGG;AACH,MAAM,cAAc,GAA2C;IAC7D,EAAE,EAAE,qDAAqD;IACzD,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,CAAC,GAAoB,EAAE,EAAE;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,sBAAsB,GAAiD;IAC3E,EAAE,EAAE,4DAA4D;IAChE,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,CAAC,GAAoB,EAAyB,EAAE;QACxD,MAAM,cAAc,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAClD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAC;AAEF,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/ui-components-extension",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.20",
|
|
4
4
|
"description": "JupyterLab - UI component plugins",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"lib/*.{d.ts,js,js.map}",
|
|
26
|
-
"style/*"
|
|
26
|
+
"style/*",
|
|
27
|
+
"src/**/*.{ts,tsx}"
|
|
27
28
|
],
|
|
28
29
|
"scripts": {
|
|
29
30
|
"build": "tsc -b",
|
|
@@ -32,13 +33,13 @@
|
|
|
32
33
|
"watch": "tsc -b --watch"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
36
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
36
|
+
"@jupyterlab/application": "^4.0.0-alpha.20",
|
|
37
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.35"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"rimraf": "~3.0.0",
|
|
40
|
-
"typedoc": "~0.
|
|
41
|
-
"typescript": "~
|
|
41
|
+
"typedoc": "~0.23.25",
|
|
42
|
+
"typescript": "~5.0.0-beta"
|
|
42
43
|
},
|
|
43
44
|
"publishConfig": {
|
|
44
45
|
"access": "public"
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright (c) Jupyter Development Team.
|
|
2
|
+
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
/**
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
* @module ui-components-extension
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
JupyterFrontEnd,
|
|
10
|
+
JupyterFrontEndPlugin
|
|
11
|
+
} from '@jupyterlab/application';
|
|
12
|
+
import {
|
|
13
|
+
FormRendererRegistry,
|
|
14
|
+
IFormRendererRegistry,
|
|
15
|
+
ILabIconManager
|
|
16
|
+
} from '@jupyterlab/ui-components';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Placeholder for future extension that will provide an icon manager class
|
|
20
|
+
* to assist with overriding/replacing particular sets of icons
|
|
21
|
+
*/
|
|
22
|
+
const labiconManager: JupyterFrontEndPlugin<ILabIconManager> = {
|
|
23
|
+
id: '@jupyterlab/ui-components-extension:labicon-manager',
|
|
24
|
+
provides: ILabIconManager,
|
|
25
|
+
autoStart: true,
|
|
26
|
+
activate: (app: JupyterFrontEnd) => {
|
|
27
|
+
return Object.create(null);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Sets up the renderer registry to be used by the FormEditor component.
|
|
33
|
+
*/
|
|
34
|
+
const rendererRegistryPlugin: JupyterFrontEndPlugin<IFormRendererRegistry> = {
|
|
35
|
+
id: '@jupyterlab/ui-components-extension:form-renderer-registry',
|
|
36
|
+
provides: IFormRendererRegistry,
|
|
37
|
+
autoStart: true,
|
|
38
|
+
activate: (app: JupyterFrontEnd): IFormRendererRegistry => {
|
|
39
|
+
const editorRegistry = new FormRendererRegistry();
|
|
40
|
+
return editorRegistry;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default [labiconManager, rendererRegistryPlugin];
|