@rjsf/core 5.5.2 → 5.6.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/dist/index.d.ts CHANGED
@@ -130,7 +130,7 @@ interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends
130
130
  transformErrors?: ErrorTransformer<T, S, F>;
131
131
  /** If set to true, then the first field with an error will receive the focus when the form is submitted with errors
132
132
  */
133
- focusOnFirstError?: boolean;
133
+ focusOnFirstError?: boolean | ((error: RJSFValidationError) => void);
134
134
  /** Optional string translation function, if provided, allows users to change the translation of the RJSF internal
135
135
  * strings. Some strings contain replaceable parameter values as indicated by `%1`, `%2`, etc. The number after the
136
136
  * `%` indicates the order of the parameter. The ordering of parameters is important because some languages may choose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/core",
3
- "version": "5.5.2",
3
+ "version": "5.6.2",
4
4
  "description": "A simple React component capable of building HTML forms out of a JSON schema.",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && dts build --rollupTypes --format cjs,esm,umd",
@@ -13,7 +13,8 @@
13
13
  "test:debug": "node --inspect-brk node_modules/.bin/dts test",
14
14
  "test:update": "dts test --u",
15
15
  "test:watch": "dts test --watch",
16
- "test-coverage": "dts test --coverage"
16
+ "test-coverage": "dts test --coverage",
17
+ "bump-packages": "npm update --save --lockfile-version 2"
17
18
  },
18
19
  "lint-staged": {
19
20
  "{src,test,testSnap}/**/*.[jt]s?(x)": [
@@ -33,15 +34,15 @@
33
34
  "node": ">=14"
34
35
  },
35
36
  "peerDependencies": {
36
- "@rjsf/utils": "^5.0.0",
37
+ "@rjsf/utils": "5.6.x",
37
38
  "react": "^16.14.0 || >=17"
38
39
  },
39
40
  "dependencies": {
40
- "lodash": "^4.17.15",
41
- "lodash-es": "^4.17.15",
41
+ "lodash": "^4.17.21",
42
+ "lodash-es": "^4.17.21",
42
43
  "markdown-to-jsx": "^7.2.0",
43
- "nanoid": "^3.3.4",
44
- "prop-types": "^15.7.2"
44
+ "nanoid": "^3.3.6",
45
+ "prop-types": "^15.8.1"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@babel/cli": "^7.21.0",
@@ -53,27 +54,27 @@
53
54
  "@babel/preset-env": "^7.21.4",
54
55
  "@babel/preset-react": "^7.18.6",
55
56
  "@babel/register": "^7.21.0",
56
- "@rjsf/utils": "^5.5.2",
57
- "@rjsf/validator-ajv6": "^5.5.2",
58
- "@rjsf/validator-ajv8": "^5.5.2",
59
- "@types/lodash": "^4.14.192",
60
- "@types/react": "^17.0.39",
61
- "@types/react-dom": "^17.0.11",
57
+ "@rjsf/utils": "^5.6.2",
58
+ "@rjsf/validator-ajv6": "^5.6.2",
59
+ "@rjsf/validator-ajv8": "^5.6.2",
60
+ "@types/lodash": "^4.14.194",
61
+ "@types/react": "^17.0.58",
62
+ "@types/react-dom": "^17.0.19",
62
63
  "@types/react-test-renderer": "^17.0.2",
63
64
  "ajv": "^8.12.0",
64
65
  "atob": "^2.1.2",
65
- "chai": "^3.3.0",
66
+ "chai": "^3.5.0",
66
67
  "dts-cli": "^1.6.3",
67
- "eslint": "^8.37.0",
68
+ "eslint": "^8.38.0",
68
69
  "html": "^1.0.0",
69
- "jsdom": "^20.0.1",
70
+ "jsdom": "^20.0.3",
70
71
  "mocha": "^10.2.0",
71
72
  "react": "^17.0.2",
72
73
  "react-dom": "^17.0.2",
73
74
  "react-portal": "^4.2.2",
74
75
  "react-test-renderer": "^17.0.2",
75
- "rimraf": "^4.4.1",
76
- "sinon": "^9.0.2"
76
+ "rimraf": "^5.0.0",
77
+ "sinon": "^9.2.4"
77
78
  },
78
79
  "directories": {
79
80
  "test": "test"
@@ -96,5 +97,5 @@
96
97
  "publishConfig": {
97
98
  "access": "public"
98
99
  },
99
- "gitHead": "08efac27710f0cd11da87199cc98bf406efd8381"
100
+ "gitHead": "efe9d2b6a447569b1090b5eddc4b9b23dc5b2df8"
100
101
  }