@rjsf/primereact 6.0.0-beta.13 → 6.0.0-beta.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/primereact",
3
- "version": "6.0.0-beta.13",
3
+ "version": "6.0.0-beta.14",
4
4
  "description": "PrimeReact theme, fields and widgets for react-jsonschema-form",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -61,22 +61,22 @@
61
61
  "node": ">=20"
62
62
  },
63
63
  "peerDependencies": {
64
- "@rjsf/core": "^6.0.0-beta",
65
- "@rjsf/utils": "^6.0.0-beta",
64
+ "@rjsf/core": "^6.0.0-beta.14",
65
+ "@rjsf/utils": "^6.0.0-beta.14",
66
66
  "primeicons": ">=6.0.0",
67
67
  "primereact": ">=8.0.0",
68
68
  "react": ">=18"
69
69
  },
70
70
  "devDependencies": {
71
- "@rjsf/core": "^6.0.0-beta.13",
72
- "@rjsf/snapshot-tests": "^6.0.0-beta.13",
73
- "@rjsf/utils": "^6.0.0-beta.13",
74
- "@rjsf/validator-ajv8": "^6.0.0-beta.13",
71
+ "@rjsf/core": "^6.0.0-beta.14",
72
+ "@rjsf/snapshot-tests": "^6.0.0-beta.14",
73
+ "@rjsf/utils": "^6.0.0-beta.14",
74
+ "@rjsf/validator-ajv8": "^6.0.0-beta.14",
75
75
  "@rollup/plugin-replace": "^6.0.2",
76
- "eslint": "^8.56.0",
76
+ "eslint": "^8.57.1",
77
+ "primeflex": "^4.0.0",
77
78
  "primeicons": "^7.0.0",
78
- "primeflex": "^3.3.1",
79
- "primereact": "^10.9.2"
79
+ "primereact": "^10.9.6"
80
80
  },
81
81
  "repository": {
82
82
  "type": "git",
@@ -65,7 +65,11 @@ export default function ArrayFieldTemplate<
65
65
  required={required}
66
66
  registry={registry}
67
67
  />
68
- <Fieldset {...rest} className={`${className}${isFixedItems<S>(schema) ? '' : ' sortable-form-fields'}`}>
68
+ <Fieldset
69
+ {...rest}
70
+ id={idSchema.$id}
71
+ className={`${className}${isFixedItems<S>(schema) ? '' : ' sortable-form-fields'}`}
72
+ >
69
73
  <ArrayFieldDescriptionTemplate
70
74
  idSchema={idSchema}
71
75
  description={uiOptions.description || schema.description}
@@ -47,10 +47,10 @@ export default function CheckboxWidget<
47
47
  );
48
48
 
49
49
  const required = schemaRequiresTrueValue<S>(schema);
50
- const _onChange = (e: CheckboxChangeEvent) => onChange && onChange(e.checked);
51
- const _onBlur = () => onBlur && onBlur(id, value);
52
- const _onFocus = () => onFocus && onFocus(id, value);
53
50
  const checked = value === 'true' || value === true;
51
+ const _onChange = (e: CheckboxChangeEvent) => onChange && onChange(e.checked);
52
+ const _onBlur: React.FocusEventHandler<HTMLInputElement> = () => onBlur && onBlur(id, value);
53
+ const _onFocus: React.FocusEventHandler<HTMLInputElement> = () => onFocus && onFocus(id, value);
54
54
  const description = options.description ?? schema.description;
55
55
  const primeProps = (options.prime || {}) as object;
56
56