@jupyterlab/ui-components-extension 4.0.0-alpha.8 → 4.0.0-beta.0

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  * @packageDocumentation
3
3
  * @module ui-components-extension
4
4
  */
5
- import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application';
5
+ import { JupyterFrontEndPlugin } from '@jupyterlab/application';
6
6
  import { ILabIconManager } from '@jupyterlab/ui-components';
7
- declare const _default: JupyterFrontEndPlugin<ILabIconManager, JupyterFrontEnd.IShell, "desktop" | "mobile">[];
7
+ declare const _default: JupyterFrontEndPlugin<ILabIconManager>[];
8
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 { FormComponentRegistry, IFormComponentRegistry, 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
@@ -18,16 +18,16 @@ const labiconManager = {
18
18
  }
19
19
  };
20
20
  /**
21
- * Sets up the component registry to be used by the FormEditor component.
21
+ * Sets up the renderer registry to be used by the FormEditor component.
22
22
  */
23
- const registryPlugin = {
24
- id: '@jupyterlab/settingeditor-extension:form-registry',
25
- provides: IFormComponentRegistry,
23
+ const rendererRegistryPlugin = {
24
+ id: '@jupyterlab/ui-components-extension:form-renderer-registry',
25
+ provides: IFormRendererRegistry,
26
26
  autoStart: true,
27
27
  activate: (app) => {
28
- const editorRegistry = new FormComponentRegistry();
28
+ const editorRegistry = new FormRendererRegistry();
29
29
  return editorRegistry;
30
30
  }
31
31
  };
32
- export default [labiconManager, registryPlugin];
32
+ export default [labiconManager, rendererRegistryPlugin];
33
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,EACL,qBAAqB,EACrB,sBAAsB,EACtB,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,cAAc,GAAkD;IACpE,EAAE,EAAE,mDAAmD;IACvD,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,CAAC,GAAoB,EAA0B,EAAE;QACzD,MAAM,cAAc,GAAG,IAAI,qBAAqB,EAAE,CAAC;QACnD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAC;AAEF,eAAe,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC"}
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.8",
3
+ "version": "4.0.0-beta.0",
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.8",
36
- "@jupyterlab/ui-components": "^4.0.0-alpha.23"
36
+ "@jupyterlab/application": "^4.0.0-beta.0",
37
+ "@jupyterlab/ui-components": "^4.0.0-beta.0"
37
38
  },
38
39
  "devDependencies": {
39
40
  "rimraf": "~3.0.0",
40
- "typedoc": "~0.22.10",
41
- "typescript": "~4.5.2"
41
+ "typedoc": "~0.23.25",
42
+ "typescript": "~5.0.2"
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];