@rjsf/antd 4.2.2 → 5.0.0-beta.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/README.md +2 -2
- package/dist/antd.cjs.development.js +1037 -1343
- package/dist/antd.cjs.development.js.map +1 -1
- package/dist/antd.cjs.production.min.js +1 -1
- package/dist/antd.cjs.production.min.js.map +1 -1
- package/dist/antd.esm.js +962 -1293
- package/dist/antd.esm.js.map +1 -1
- package/dist/antd.umd.development.js +1017 -1347
- package/dist/antd.umd.development.js.map +1 -1
- package/dist/antd.umd.production.min.js +1 -1
- package/dist/antd.umd.production.min.js.map +1 -1
- package/dist/components/DatePicker/index.d.ts +15 -22
- package/dist/index.d.ts +29 -27
- package/dist/templates/{ArrayFieldTemplate/ArrayFieldTemplateItem.d.ts → ArrayFieldItemTemplate/index.d.ts} +6 -5
- package/dist/templates/ArrayFieldTemplate/index.d.ts +2 -27
- package/dist/{widgets/TextWidget → templates/BaseInputTemplate}/index.d.ts +2 -1
- package/dist/{fields → templates}/DescriptionField/index.d.ts +0 -0
- package/dist/{ErrorList.d.ts → templates/ErrorList/index.d.ts} +0 -0
- package/dist/templates/FieldTemplate/WrapIfAdditional.d.ts +2 -1
- package/dist/templates/IconButton/index.d.ts +5 -0
- package/dist/templates/ObjectFieldTemplate/index.d.ts +1 -1
- package/dist/{widgets/SubmitButton/SubmitButton.d.ts → templates/SubmitButton/index.d.ts} +0 -0
- package/dist/templates/TitleField/index.d.ts +2 -0
- package/dist/widgets/AltDateTimeWidget/index.d.ts +1 -1
- package/dist/widgets/AltDateWidget/index.d.ts +9 -9
- package/dist/widgets/SelectWidget/index.d.ts +2 -2
- package/package.json +53 -45
- package/dist/fields/TitleField/index.d.ts +0 -2
- package/dist/templates/ArrayFieldTemplate/FixedArrayFieldTemplate.d.ts +0 -2
- package/dist/templates/ArrayFieldTemplate/NormalArrayFieldTemplate.d.ts +0 -2
- package/dist/widgets/ColorWidget/index.d.ts +0 -12
- package/dist/widgets/EmailWidget/index.d.ts +0 -13
- package/dist/widgets/SubmitButton/index.d.ts +0 -2
- package/dist/widgets/URLWidget/index.d.ts +0 -13
- package/dist/widgets/UpDownWidget/index.d.ts +0 -12
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default WrapIfAdditional;
|
|
2
|
-
declare function WrapIfAdditional({ children, classNames, disabled, formContext, id, label, onDropPropertyClick, onKeyChange, readonly, required, schema, }: {
|
|
2
|
+
declare function WrapIfAdditional({ children, classNames, disabled, formContext, id, label, onDropPropertyClick, onKeyChange, readonly, required, registry, schema, }: {
|
|
3
3
|
children: any;
|
|
4
4
|
classNames: any;
|
|
5
5
|
disabled: any;
|
|
@@ -10,5 +10,6 @@ declare function WrapIfAdditional({ children, classNames, disabled, formContext,
|
|
|
10
10
|
onKeyChange: any;
|
|
11
11
|
readonly: any;
|
|
12
12
|
required: any;
|
|
13
|
+
registry: any;
|
|
13
14
|
schema: any;
|
|
14
15
|
}): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export default function IconButton(props: any): JSX.Element;
|
|
2
|
+
export function AddButton(props: any): JSX.Element;
|
|
3
|
+
export function MoveDownButton(props: any): JSX.Element;
|
|
4
|
+
export function MoveUpButton(props: any): JSX.Element;
|
|
5
|
+
export function RemoveButton(props: any): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
|
File without changes
|
|
@@ -14,13 +14,13 @@ declare function AltDateWidget({ autofocus, disabled, formContext, id, onBlur, o
|
|
|
14
14
|
value: any;
|
|
15
15
|
}): JSX.Element;
|
|
16
16
|
declare namespace AltDateWidget {
|
|
17
|
-
|
|
18
|
-
autofocus: boolean;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
options
|
|
21
|
-
yearsRange: number[];
|
|
22
|
-
}
|
|
23
|
-
readonly: boolean;
|
|
24
|
-
showTime: boolean;
|
|
25
|
-
}
|
|
17
|
+
namespace defaultProps {
|
|
18
|
+
const autofocus: boolean;
|
|
19
|
+
const disabled: boolean;
|
|
20
|
+
namespace options {
|
|
21
|
+
const yearsRange: number[];
|
|
22
|
+
}
|
|
23
|
+
const readonly: boolean;
|
|
24
|
+
const showTime: boolean;
|
|
25
|
+
}
|
|
26
26
|
}
|
|
@@ -15,7 +15,7 @@ declare function SelectWidget({ autofocus, disabled, formContext, id, multiple,
|
|
|
15
15
|
value: any;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
declare namespace SelectWidget {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
namespace defaultProps {
|
|
19
|
+
const formContext: {};
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,74 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/antd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "Ant Design theme, fields and widgets for react-jsonschema-form",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/antd.esm.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "
|
|
9
|
-
"build": "rimraf dist &&
|
|
10
|
-
"
|
|
11
|
-
"
|
|
8
|
+
"start": "dts watch",
|
|
9
|
+
"build": "rimraf dist && dts build --format cjs,esm,umd",
|
|
10
|
+
"cs-check": "prettier -l \"{src,test}/**/*.js\"",
|
|
11
|
+
"cs-format": "prettier \"{src,test}/**/*.js\" --write",
|
|
12
|
+
"lint": "eslint src test",
|
|
13
|
+
"precommit": "lint-staged",
|
|
14
|
+
"test": "dts test",
|
|
15
|
+
"test:update": "dts test --u"
|
|
16
|
+
},
|
|
17
|
+
"lint-staged": {
|
|
18
|
+
"{src,test}/**/*.js": [
|
|
19
|
+
"eslint --fix",
|
|
20
|
+
"prettier --write"
|
|
21
|
+
]
|
|
12
22
|
},
|
|
13
23
|
"files": [
|
|
14
24
|
"dist"
|
|
15
25
|
],
|
|
16
26
|
"engineStrict": false,
|
|
17
27
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
28
|
+
"node": ">=14"
|
|
19
29
|
},
|
|
20
30
|
"jest": {
|
|
21
31
|
"moduleNameMapper": {
|
|
22
32
|
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
|
|
33
|
+
},
|
|
34
|
+
"verbose": true,
|
|
35
|
+
"testEnvironment": "jsdom",
|
|
36
|
+
"testEnvironmentOptions": {
|
|
37
|
+
"browsers": [
|
|
38
|
+
"chrome",
|
|
39
|
+
"firefox",
|
|
40
|
+
"safari"
|
|
41
|
+
]
|
|
23
42
|
}
|
|
24
43
|
},
|
|
25
44
|
"peerDependencies": {
|
|
26
45
|
"@ant-design/icons": "^4.0.0",
|
|
27
|
-
"@rjsf/core": "^
|
|
46
|
+
"@rjsf/core": "^5.0.0-beta.1",
|
|
47
|
+
"@rjsf/utils": "^5.0.0-beta.1",
|
|
28
48
|
"antd": "^4.0.0",
|
|
29
|
-
"antd-dayjs-webpack-plugin": "1.0.0",
|
|
30
49
|
"dayjs": "^1.8.0",
|
|
31
|
-
"
|
|
32
|
-
"lodash-es": "^4.17.15",
|
|
33
|
-
"react": ">=16"
|
|
50
|
+
"react": "^16.14.0 || >=17"
|
|
34
51
|
},
|
|
35
52
|
"devDependencies": {
|
|
36
|
-
"@ant-design/icons": "^4.
|
|
37
|
-
"@babel/cli": "^7.
|
|
38
|
-
"@babel/core": "^7.
|
|
39
|
-
"@babel/
|
|
40
|
-
"@babel/plugin-
|
|
41
|
-
"@babel/
|
|
42
|
-
"@babel/preset-
|
|
43
|
-
"@babel/
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
53
|
+
"@ant-design/icons": "^4.7.0",
|
|
54
|
+
"@babel/cli": "^7.18.10",
|
|
55
|
+
"@babel/core": "^7.18.13",
|
|
56
|
+
"@babel/eslint-parser": "^7.18.9",
|
|
57
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
58
|
+
"@babel/plugin-transform-react-jsx": "^7.18.10",
|
|
59
|
+
"@babel/preset-env": "^7.18.10",
|
|
60
|
+
"@babel/preset-react": "^7.18.6",
|
|
61
|
+
"@babel/register": "^7.18.9",
|
|
62
|
+
"@rjsf/core": "^5.0.0-beta.2",
|
|
63
|
+
"@rjsf/utils": "^5.0.0-beta.2",
|
|
64
|
+
"@rjsf/validator-ajv6": "^5.0.0-beta.2",
|
|
65
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
66
|
+
"antd": "^4.22.8",
|
|
46
67
|
"atob": "^2.0.3",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"cross-env": "^2.0.1",
|
|
51
|
-
"css-loader": "^3.2.0",
|
|
52
|
-
"dayjs": "^1.8.0",
|
|
53
|
-
"eslint": "^4.9.0",
|
|
54
|
-
"eslint-config-react-app": "^2.0.1",
|
|
55
|
-
"eslint-plugin-flowtype": "^2.39.1",
|
|
56
|
-
"eslint-plugin-import": "^2.21.2",
|
|
57
|
-
"eslint-plugin-jsx-a11y": "^5.1.1",
|
|
58
|
-
"eslint-plugin-react": "^7.4.0",
|
|
59
|
-
"jest": "24.9.0",
|
|
60
|
-
"less": "^3.10.3",
|
|
61
|
-
"less-loader": "^5.0.0",
|
|
68
|
+
"dayjs": "^1.11.5",
|
|
69
|
+
"dts-cli": "^1.6.0",
|
|
70
|
+
"eslint": "^8.23.0",
|
|
62
71
|
"lodash": "^4.17.15",
|
|
63
72
|
"lodash-es": "^4.17.15",
|
|
64
|
-
"react": "^
|
|
65
|
-
"react-dom": "^
|
|
66
|
-
"react-test-renderer": "^
|
|
67
|
-
"rimraf": "^3.0.2"
|
|
68
|
-
"style-loader": "^2.0.0",
|
|
69
|
-
"webpack": "^4.20.2",
|
|
70
|
-
"webpack-dev-middleware": "^3.4.0",
|
|
71
|
-
"webpack-hot-middleware": "^2.13.2"
|
|
73
|
+
"react": "^17.0.2",
|
|
74
|
+
"react-dom": "^17.0.2",
|
|
75
|
+
"react-test-renderer": "^17.0.2",
|
|
76
|
+
"rimraf": "^3.0.2"
|
|
72
77
|
},
|
|
73
78
|
"repository": {
|
|
74
79
|
"type": "git",
|
|
@@ -85,6 +90,9 @@
|
|
|
85
90
|
"rjsf-antd"
|
|
86
91
|
],
|
|
87
92
|
"author": "Delyan Ruskov <d.ruskov@gmail.com>",
|
|
93
|
+
"contributors": [
|
|
94
|
+
"Heath Chiavettone <heath.chiavettone@freenome.com"
|
|
95
|
+
],
|
|
88
96
|
"license": "Apache-2.0",
|
|
89
97
|
"bugs": {
|
|
90
98
|
"url": "https://github.com/rjsf-team/react-jsonschema-form/issues"
|
|
@@ -93,5 +101,5 @@
|
|
|
93
101
|
"publishConfig": {
|
|
94
102
|
"access": "public"
|
|
95
103
|
},
|
|
96
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "97bda160aeca8684770da6f3fed5b01b3828a1fa"
|
|
97
105
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default ColorWidget;
|
|
2
|
-
declare function ColorWidget({ disabled, formContext, id, onBlur, onChange, onFocus, placeholder, readonly, value, }: {
|
|
3
|
-
disabled: any;
|
|
4
|
-
formContext: any;
|
|
5
|
-
id: any;
|
|
6
|
-
onBlur: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
onFocus: any;
|
|
9
|
-
placeholder: any;
|
|
10
|
-
readonly: any;
|
|
11
|
-
value: any;
|
|
12
|
-
}): JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default EmailWidget;
|
|
2
|
-
declare function EmailWidget({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: {
|
|
3
|
-
disabled: any;
|
|
4
|
-
formContext: any;
|
|
5
|
-
id: any;
|
|
6
|
-
onBlur: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
onFocus: any;
|
|
9
|
-
options: any;
|
|
10
|
-
placeholder: any;
|
|
11
|
-
readonly: any;
|
|
12
|
-
value: any;
|
|
13
|
-
}): JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default URLWidget;
|
|
2
|
-
declare function URLWidget({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: {
|
|
3
|
-
disabled: any;
|
|
4
|
-
formContext: any;
|
|
5
|
-
id: any;
|
|
6
|
-
onBlur: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
onFocus: any;
|
|
9
|
-
options: any;
|
|
10
|
-
placeholder: any;
|
|
11
|
-
readonly: any;
|
|
12
|
-
value: any;
|
|
13
|
-
}): JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default UpDownWidget;
|
|
2
|
-
declare function UpDownWidget({ disabled, formContext, id, onBlur, onChange, onFocus, placeholder, readonly, value, }: {
|
|
3
|
-
disabled: any;
|
|
4
|
-
formContext: any;
|
|
5
|
-
id: any;
|
|
6
|
-
onBlur: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
onFocus: any;
|
|
9
|
-
placeholder: any;
|
|
10
|
-
readonly: any;
|
|
11
|
-
value: any;
|
|
12
|
-
}): JSX.Element;
|