@jupyterlab/metadataform 4.7.0-alpha.0 → 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/form.js +0 -1
- package/lib/form.js.map +1 -1
- package/lib/token.d.ts +3 -3
- package/lib/token.js +0 -1
- package/lib/token.js.map +1 -1
- package/package.json +11 -11
- package/src/form.tsx +1 -2
- package/src/token.ts +7 -4
package/lib/form.js
CHANGED
package/lib/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,YAAY,KAA0B;QACpC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,MAAM,WAAW,GAAG;YAClB,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE;YAC/C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,cAAc;SAC9D,CAAC;QACF,OAAO,CACL,oBAAC,aAAa,IACZ,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,UAAyB,EAC7C,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAC9B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAC9B,YAAY,QACZ,QAAQ,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EACnD,QAAQ,EAAE,CAAC,CAA0C,EAAE,EAAE;gBACvD,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;YAClE,CAAC,EACD,OAAO,EAAE,IAAI,EACb,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EACjD,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,GAClC,CACH,CAAC;IACJ,CAAC;CAGF"}
|
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?:
|
|
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]:
|
|
54
|
+
[option: string]: unknown;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Options passed to MetadataFormWidget.
|
package/lib/token.js
CHANGED
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
|
|
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.
|
|
3
|
+
"version": "4.7.0-alpha.2",
|
|
4
4
|
"description": "A helper to build form for metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
"watch": "tsc -w --listEmittedFiles"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jupyterlab/apputils": "^4.8.0-alpha.
|
|
49
|
-
"@jupyterlab/nbformat": "^4.7.0-alpha.
|
|
50
|
-
"@jupyterlab/notebook": "^4.7.0-alpha.
|
|
51
|
-
"@jupyterlab/settingregistry": "^4.7.0-alpha.
|
|
52
|
-
"@jupyterlab/translation": "^4.7.0-alpha.
|
|
53
|
-
"@jupyterlab/ui-components": "^4.7.0-alpha.
|
|
54
|
-
"@lumino/coreutils": "^2.2.
|
|
55
|
-
"@lumino/messaging": "^2.0.
|
|
56
|
-
"@lumino/widgets": "^2.
|
|
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
|
+
"@lumino/coreutils": "^2.2.3",
|
|
55
|
+
"@lumino/messaging": "^2.0.5",
|
|
56
|
+
"@lumino/widgets": "^2.9.0",
|
|
57
57
|
"@rjsf/core": "^5.13.4",
|
|
58
58
|
"@rjsf/validator-ajv8": "^5.13.4",
|
|
59
59
|
"json-schema": "^0.4.0",
|
|
60
60
|
"react": "^18.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@jupyterlab/testing": "^4.7.0-alpha.
|
|
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/form.tsx
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
|
|
@@ -42,7 +41,7 @@ export class FormWidget extends ReactWidget {
|
|
|
42
41
|
<FormComponent
|
|
43
42
|
validator={validatorAjv8}
|
|
44
43
|
schema={this._props.properties as JSONSchema7}
|
|
45
|
-
formData={this._props.formData
|
|
44
|
+
formData={this._props.formData}
|
|
46
45
|
formContext={formContext}
|
|
47
46
|
uiSchema={this._props.uiSchema}
|
|
48
47
|
liveValidate
|
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 {
|
|
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?:
|
|
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]:
|
|
72
|
+
[option: string]: unknown;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
/**
|