@rjsf/core 5.19.3 → 5.19.4

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/core",
3
- "version": "5.19.3",
3
+ "version": "5.19.4",
4
4
  "description": "A simple React component capable of building HTML forms out of a JSON schema.",
5
5
  "scripts": {
6
6
  "build:ts": "tsc -b",
@@ -54,10 +54,10 @@
54
54
  "@babel/preset-env": "^7.23.9",
55
55
  "@babel/preset-react": "^7.23.3",
56
56
  "@babel/preset-typescript": "^7.23.3",
57
- "@rjsf/snapshot-tests": "^5.19.3",
58
- "@rjsf/utils": "^5.19.3",
59
- "@rjsf/validator-ajv6": "^5.19.3",
60
- "@rjsf/validator-ajv8": "^5.19.3",
57
+ "@rjsf/snapshot-tests": "^5.19.4",
58
+ "@rjsf/utils": "^5.19.4",
59
+ "@rjsf/validator-ajv6": "^5.19.4",
60
+ "@rjsf/validator-ajv8": "^5.19.4",
61
61
  "@types/jest": "^29.5.12",
62
62
  "@types/lodash": "^4.14.202",
63
63
  "@types/react": "^18.2.58",
@@ -103,5 +103,5 @@
103
103
  "publishConfig": {
104
104
  "access": "public"
105
105
  },
106
- "gitHead": "3d0a309c23e6f6da116b350faead174dade7ca40"
106
+ "gitHead": "e2c3b063b0d1186fe3a8ced0e9effe29138e4440"
107
107
  }
@@ -263,7 +263,7 @@ class ObjectField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends Fo
263
263
  return (
264
264
  <div>
265
265
  <p className='config-error' style={{ color: 'red' }}>
266
- <Markdown>
266
+ <Markdown options={{ disableParsingRawHTML: true }}>
267
267
  {translateString(TranslatableString.InvalidObjectField, [name || 'root', (err as Error).message])}
268
268
  </Markdown>
269
269
  </p>
@@ -201,8 +201,11 @@ function SchemaFieldRender<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
201
201
 
202
202
  const description = uiOptions.description || props.schema.description || schema.description || '';
203
203
 
204
- const richDescription = uiOptions.enableMarkdownInDescription ? <Markdown>{description}</Markdown> : description;
205
-
204
+ const richDescription = uiOptions.enableMarkdownInDescription ? (
205
+ <Markdown options={{ disableParsingRawHTML: true }}>{description}</Markdown>
206
+ ) : (
207
+ description
208
+ );
206
209
  const help = uiOptions.help;
207
210
  const hidden = uiOptions.widget === 'hidden';
208
211
 
@@ -27,7 +27,7 @@ function UnsupportedField<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
27
27
  return (
28
28
  <div className='unsupported-field'>
29
29
  <p>
30
- <Markdown>{translateString(translateEnum, translateParams)}</Markdown>
30
+ <Markdown options={{ disableParsingRawHTML: true }}>{translateString(translateEnum, translateParams)}</Markdown>
31
31
  </p>
32
32
  {schema && <pre>{JSON.stringify(schema, null, 2)}</pre>}
33
33
  </div>