graphql-form 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
package/lib/models.d.ts CHANGED
@@ -43,6 +43,7 @@ export declare type PassedFormProps<WidgetData = ReturnedDictType> = {
43
43
  widgets?: SavedWidgets;
44
44
  widgetData?: WidgetData;
45
45
  errors?: Errors;
46
+ children?: React.ReactNode;
46
47
  components: {
47
48
  ArrayField: FieldComponent;
48
49
  ObjectField: FieldComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-form",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Easy form creation with GraphQL Editor and React",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -24,8 +24,8 @@
24
24
  "homepage": "https://form.graphqleditor.com",
25
25
  "devDependencies": {},
26
26
  "peerDependencies": {
27
- "react": ">=16.8.0",
28
- "react-dom": ">=16.8.0"
27
+ "react": ">=18",
28
+ "react-dom": ">=18"
29
29
  },
30
30
  "dependencies": {
31
31
  "graphql-js-tree": "^0.1.1"
package/src/models.ts CHANGED
@@ -50,6 +50,7 @@ export type PassedFormProps<WidgetData = ReturnedDictType> = {
50
50
  widgets?: SavedWidgets;
51
51
  widgetData?: WidgetData;
52
52
  errors?: Errors;
53
+ children?: React.ReactNode;
53
54
  components: {
54
55
  ArrayField: FieldComponent;
55
56
  ObjectField: FieldComponent;