@rjsf/core 5.7.2 → 5.8.0
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/core.cjs.development.js +5 -7
- package/dist/core.cjs.development.js.map +1 -1
- package/dist/core.cjs.production.min.js +1 -1
- package/dist/core.cjs.production.min.js.map +1 -1
- package/dist/core.esm.js +5 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.umd.development.js +5 -7
- package/dist/core.umd.development.js.map +1 -1
- package/dist/core.umd.production.min.js +1 -1
- package/dist/core.umd.production.min.js.map +1 -1
- package/package.json +14 -14
package/dist/core.esm.js
CHANGED
|
@@ -1136,12 +1136,7 @@ var AnyOfField = /*#__PURE__*/function (_Component) {
|
|
|
1136
1136
|
schemaUtils = _this$props4.registry.schemaUtils;
|
|
1137
1137
|
var discriminator = getDiscriminatorFieldFromSchema(schema);
|
|
1138
1138
|
var option = schemaUtils.getClosestMatchingOption(formData, options, selectedOption, discriminator);
|
|
1139
|
-
|
|
1140
|
-
return option;
|
|
1141
|
-
}
|
|
1142
|
-
// If the form data matches none of the options, use the currently selected
|
|
1143
|
-
// option, assuming it's available; otherwise use the first option
|
|
1144
|
-
return selectedOption || 0;
|
|
1139
|
+
return option;
|
|
1145
1140
|
};
|
|
1146
1141
|
_proto.getFieldId = function getFieldId() {
|
|
1147
1142
|
var _this$props5 = this.props,
|
|
@@ -1754,6 +1749,9 @@ function SchemaFieldRender(props) {
|
|
|
1754
1749
|
label = ADDITIONAL_PROPERTY_FLAG in schema ? name : uiOptions.title || props.schema.title || schema.title || name;
|
|
1755
1750
|
}
|
|
1756
1751
|
var description = uiOptions.description || props.schema.description || schema.description || '';
|
|
1752
|
+
var richDescription = uiOptions.enableMarkdownInDescription ? jsx(Markdown, {
|
|
1753
|
+
children: description
|
|
1754
|
+
}) : description;
|
|
1757
1755
|
var help = uiOptions.help;
|
|
1758
1756
|
var hidden = uiOptions.widget === 'hidden';
|
|
1759
1757
|
var classNames = ['form-group', 'field', "field-" + getSchemaType(schema)];
|
|
@@ -1788,7 +1786,7 @@ function SchemaFieldRender(props) {
|
|
|
1788
1786
|
var fieldProps = {
|
|
1789
1787
|
description: jsx(DescriptionFieldTemplate, {
|
|
1790
1788
|
id: descriptionId(id),
|
|
1791
|
-
description:
|
|
1789
|
+
description: richDescription,
|
|
1792
1790
|
schema: schema,
|
|
1793
1791
|
uiSchema: uiSchema,
|
|
1794
1792
|
registry: registry
|