@@ -64,10 +64,21 @@ if (process.env.NODE_ENV !== "production") {
64
64
displayLabel : PropTypes . bool ,
65
65
fields : PropTypes . object ,
66
66
formContext : PropTypes . object ,
67
+ registry : PropTypes . shape ( {
68
+ widgets : PropTypes . objectOf (
69
+ PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] )
70
+ ) . isRequired ,
71
+ templates : PropTypes . objectOf (
72
+ PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] )
73
+ ) . isRequired ,
74
+ fields : PropTypes . objectOf ( PropTypes . func ) . isRequired ,
75
+ definitions : PropTypes . object . isRequired ,
76
+ formContext : PropTypes . object . isRequired ,
77
+ } ) ,
67
78
} ;
68
79
}
69
80
70
- function Label ( props ) {
81
+ export function Label ( props ) {
71
82
const { label, required, id } = props ;
72
83
if ( ! label ) {
73
84
// See #312: Ensure compatibility with old versions of React.
@@ -81,7 +92,7 @@ function Label(props) {
81
92
) ;
82
93
}
83
94
84
- function Help ( props ) {
95
+ export function Help ( props ) {
85
96
const { help } = props ;
86
97
if ( ! help ) {
87
98
// See #312: Ensure compatibility with old versions of React.
@@ -93,7 +104,7 @@ function Help(props) {
93
104
return < div className = "help-block" > { help } </ div > ;
94
105
}
95
106
96
- function ErrorList ( props ) {
107
+ export function ErrorList ( props ) {
97
108
const { errors = [ ] } = props ;
98
109
if ( errors . length === 0 ) {
99
110
return < div /> ;
0 commit comments