@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/dist/core.umd.js +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/lib/components/fields/ObjectField.js +1 -1
- package/lib/components/fields/ObjectField.js.map +1 -1
- package/lib/components/fields/SchemaField.js +1 -1
- package/lib/components/fields/SchemaField.js.map +1 -1
- package/lib/components/templates/UnsupportedField.js +1 -1
- package/lib/components/templates/UnsupportedField.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/components/fields/ObjectField.tsx +1 -1
- package/src/components/fields/SchemaField.tsx +5 -2
- package/src/components/templates/UnsupportedField.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1347,7 +1347,7 @@ var ObjectField = class extends import_react4.Component {
|
|
|
1347
1347
|
orderedProperties = (0, import_utils5.orderProperties)(properties, uiOptions.order);
|
|
1348
1348
|
} catch (err) {
|
|
1349
1349
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
|
|
1350
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "config-error", style: { color: "red" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_markdown_to_jsx.default, { children: translateString(import_utils5.TranslatableString.InvalidObjectField, [name || "root", err.message]) }) }),
|
|
1350
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "config-error", style: { color: "red" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_markdown_to_jsx.default, { options: { disableParsingRawHTML: true }, children: translateString(import_utils5.TranslatableString.InvalidObjectField, [name || "root", err.message]) }) }),
|
|
1351
1351
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("pre", { children: JSON.stringify(schema) })
|
|
1352
1352
|
] });
|
|
1353
1353
|
}
|
|
@@ -1543,7 +1543,7 @@ function SchemaFieldRender(props) {
|
|
|
1543
1543
|
label = import_utils6.ADDITIONAL_PROPERTY_FLAG in schema ? name : uiOptions.title || props.schema.title || schema.title || props.title || name;
|
|
1544
1544
|
}
|
|
1545
1545
|
const description = uiOptions.description || props.schema.description || schema.description || "";
|
|
1546
|
-
const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_markdown_to_jsx2.default, { children: description }) : description;
|
|
1546
|
+
const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_markdown_to_jsx2.default, { options: { disableParsingRawHTML: true }, children: description }) : description;
|
|
1547
1547
|
const help = uiOptions.help;
|
|
1548
1548
|
const hidden = uiOptions.widget === "hidden";
|
|
1549
1549
|
const classNames = ["form-group", "field", `field-${(0, import_utils6.getSchemaType)(schema)}`];
|
|
@@ -2375,7 +2375,7 @@ function UnsupportedField(props) {
|
|
|
2375
2375
|
translateParams.push(reason);
|
|
2376
2376
|
}
|
|
2377
2377
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "unsupported-field", children: [
|
|
2378
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_markdown_to_jsx3.default, { children: translateString(translateEnum, translateParams) }) }),
|
|
2378
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_markdown_to_jsx3.default, { options: { disableParsingRawHTML: true }, children: translateString(translateEnum, translateParams) }) }),
|
|
2379
2379
|
schema && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("pre", { children: JSON.stringify(schema, null, 2) })
|
|
2380
2380
|
] });
|
|
2381
2381
|
}
|