@jupyterlab/metadataform 4.7.0-alpha.1 → 4.7.0-alpha.2

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/token.d.ts CHANGED
@@ -6,7 +6,7 @@ import type { CellType } from '@jupyterlab/nbformat';
6
6
  import type { NotebookTools } from '@jupyterlab/notebook';
7
7
  import type { BaseSettings, ISettingRegistry } from '@jupyterlab/settingregistry';
8
8
  import type { ITranslator } from '@jupyterlab/translation';
9
- import type { PartialJSONObject, ReadonlyJSONObject } from '@lumino/coreutils';
9
+ import type { PartialJSONObject, PartialJSONValue, ReadonlyJSONObject } from '@lumino/coreutils';
10
10
  import { Token } from '@lumino/coreutils';
11
11
  import type { MetadataFormWidget } from './metadataform';
12
12
  export declare namespace MetadataForm {
@@ -35,7 +35,7 @@ export declare namespace MetadataForm {
35
35
  /**
36
36
  * The default value for this metadata.
37
37
  */
38
- default?: any;
38
+ default?: PartialJSONValue;
39
39
  /**
40
40
  * Whether to avoid writing default value in metadata.
41
41
  */
@@ -51,7 +51,7 @@ export declare namespace MetadataForm {
51
51
  * RJSF ui:schema options.
52
52
  */
53
53
  interface IUiSchemaOption {
54
- [option: string]: any;
54
+ [option: string]: unknown;
55
55
  }
56
56
  /**
57
57
  * Options passed to MetadataFormWidget.
package/lib/token.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
3
  /**
5
4
  * @packageDocumentation
6
5
  * @module metadataform
package/lib/token.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"token.js","sourceRoot":"","sources":["../src/token.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D,uDAAuD;AACvD;;;GAGG;AAUH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAuM1C;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,KAAK,CAC5C,gDAAgD,EAChD,oDAAoD,CACrD,CAAC"}
1
+ {"version":3,"file":"token.js","sourceRoot":"","sources":["../src/token.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAcH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAuM1C;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,KAAK,CAC5C,gDAAgD,EAChD,oDAAoD,CACrD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/metadataform",
3
- "version": "4.7.0-alpha.1",
3
+ "version": "4.7.0-alpha.2",
4
4
  "description": "A helper to build form for metadata",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -45,12 +45,12 @@
45
45
  "watch": "tsc -w --listEmittedFiles"
46
46
  },
47
47
  "dependencies": {
48
- "@jupyterlab/apputils": "^4.8.0-alpha.1",
49
- "@jupyterlab/nbformat": "^4.7.0-alpha.1",
50
- "@jupyterlab/notebook": "^4.7.0-alpha.1",
51
- "@jupyterlab/settingregistry": "^4.7.0-alpha.1",
52
- "@jupyterlab/translation": "^4.7.0-alpha.1",
53
- "@jupyterlab/ui-components": "^4.7.0-alpha.1",
48
+ "@jupyterlab/apputils": "^4.8.0-alpha.2",
49
+ "@jupyterlab/nbformat": "^4.7.0-alpha.2",
50
+ "@jupyterlab/notebook": "^4.7.0-alpha.2",
51
+ "@jupyterlab/settingregistry": "^4.7.0-alpha.2",
52
+ "@jupyterlab/translation": "^4.7.0-alpha.2",
53
+ "@jupyterlab/ui-components": "^4.7.0-alpha.2",
54
54
  "@lumino/coreutils": "^2.2.3",
55
55
  "@lumino/messaging": "^2.0.5",
56
56
  "@lumino/widgets": "^2.9.0",
@@ -60,7 +60,7 @@
60
60
  "react": "^18.2.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@jupyterlab/testing": "^4.7.0-alpha.1",
63
+ "@jupyterlab/testing": "^4.7.0-alpha.2",
64
64
  "@types/jest": "^29.2.0",
65
65
  "@types/react": "^18.0.26",
66
66
  "jest": "^29.2.0",
package/src/token.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
3
  /**
5
4
  * @packageDocumentation
6
5
  * @module metadataform
@@ -13,7 +12,11 @@ import type {
13
12
  ISettingRegistry
14
13
  } from '@jupyterlab/settingregistry';
15
14
  import type { ITranslator } from '@jupyterlab/translation';
16
- import type { PartialJSONObject, ReadonlyJSONObject } from '@lumino/coreutils';
15
+ import type {
16
+ PartialJSONObject,
17
+ PartialJSONValue,
18
+ ReadonlyJSONObject
19
+ } from '@lumino/coreutils';
17
20
  import { Token } from '@lumino/coreutils';
18
21
  import type { MetadataFormWidget } from './metadataform';
19
22
 
@@ -47,7 +50,7 @@ export namespace MetadataForm {
47
50
  /**
48
51
  * The default value for this metadata.
49
52
  */
50
- default?: any;
53
+ default?: PartialJSONValue;
51
54
 
52
55
  /**
53
56
  * Whether to avoid writing default value in metadata.
@@ -66,7 +69,7 @@ export namespace MetadataForm {
66
69
  * RJSF ui:schema options.
67
70
  */
68
71
  export interface IUiSchemaOption {
69
- [option: string]: any;
72
+ [option: string]: unknown;
70
73
  }
71
74
 
72
75
  /**