@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/core.umd.js
CHANGED
|
@@ -1267,7 +1267,7 @@
|
|
|
1267
1267
|
orderedProperties = utils.orderProperties(properties, uiOptions.order);
|
|
1268
1268
|
} catch (err) {
|
|
1269
1269
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1270
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "config-error", style: { color: "red" }, children: /* @__PURE__ */ jsxRuntime.jsx(Markdown, { children: translateString(utils.TranslatableString.InvalidObjectField, [name || "root", err.message]) }) }),
|
|
1270
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "config-error", style: { color: "red" }, children: /* @__PURE__ */ jsxRuntime.jsx(Markdown, { options: { disableParsingRawHTML: true }, children: translateString(utils.TranslatableString.InvalidObjectField, [name || "root", err.message]) }) }),
|
|
1271
1271
|
/* @__PURE__ */ jsxRuntime.jsx("pre", { children: JSON.stringify(schema) })
|
|
1272
1272
|
] });
|
|
1273
1273
|
}
|
|
@@ -1455,7 +1455,7 @@
|
|
|
1455
1455
|
label = utils.ADDITIONAL_PROPERTY_FLAG in schema ? name : uiOptions.title || props.schema.title || schema.title || props.title || name;
|
|
1456
1456
|
}
|
|
1457
1457
|
const description = uiOptions.description || props.schema.description || schema.description || "";
|
|
1458
|
-
const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ jsxRuntime.jsx(Markdown, { children: description }) : description;
|
|
1458
|
+
const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ jsxRuntime.jsx(Markdown, { options: { disableParsingRawHTML: true }, children: description }) : description;
|
|
1459
1459
|
const help = uiOptions.help;
|
|
1460
1460
|
const hidden = uiOptions.widget === "hidden";
|
|
1461
1461
|
const classNames = ["form-group", "field", `field-${utils.getSchemaType(schema)}`];
|
|
@@ -2210,7 +2210,7 @@
|
|
|
2210
2210
|
translateParams.push(reason);
|
|
2211
2211
|
}
|
|
2212
2212
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "unsupported-field", children: [
|
|
2213
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { children: /* @__PURE__ */ jsxRuntime.jsx(Markdown, { children: translateString(translateEnum, translateParams) }) }),
|
|
2213
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: /* @__PURE__ */ jsxRuntime.jsx(Markdown, { options: { disableParsingRawHTML: true }, children: translateString(translateEnum, translateParams) }) }),
|
|
2214
2214
|
schema && /* @__PURE__ */ jsxRuntime.jsx("pre", { children: JSON.stringify(schema, null, 2) })
|
|
2215
2215
|
] });
|
|
2216
2216
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -1359,7 +1359,7 @@ var ObjectField = class extends Component3 {
|
|
|
1359
1359
|
orderedProperties = orderProperties(properties, uiOptions.order);
|
|
1360
1360
|
} catch (err) {
|
|
1361
1361
|
return /* @__PURE__ */ jsxs2("div", { children: [
|
|
1362
|
-
/* @__PURE__ */ jsx5("p", { className: "config-error", style: { color: "red" }, children: /* @__PURE__ */ jsx5(Markdown, { children: translateString(TranslatableString4.InvalidObjectField, [name || "root", err.message]) }) }),
|
|
1362
|
+
/* @__PURE__ */ jsx5("p", { className: "config-error", style: { color: "red" }, children: /* @__PURE__ */ jsx5(Markdown, { options: { disableParsingRawHTML: true }, children: translateString(TranslatableString4.InvalidObjectField, [name || "root", err.message]) }) }),
|
|
1363
1363
|
/* @__PURE__ */ jsx5("pre", { children: JSON.stringify(schema) })
|
|
1364
1364
|
] });
|
|
1365
1365
|
}
|
|
@@ -1566,7 +1566,7 @@ function SchemaFieldRender(props) {
|
|
|
1566
1566
|
label = ADDITIONAL_PROPERTY_FLAG2 in schema ? name : uiOptions.title || props.schema.title || schema.title || props.title || name;
|
|
1567
1567
|
}
|
|
1568
1568
|
const description = uiOptions.description || props.schema.description || schema.description || "";
|
|
1569
|
-
const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ jsx6(Markdown2, { children: description }) : description;
|
|
1569
|
+
const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ jsx6(Markdown2, { options: { disableParsingRawHTML: true }, children: description }) : description;
|
|
1570
1570
|
const help = uiOptions.help;
|
|
1571
1571
|
const hidden = uiOptions.widget === "hidden";
|
|
1572
1572
|
const classNames = ["form-group", "field", `field-${getSchemaType(schema)}`];
|
|
@@ -2429,7 +2429,7 @@ function UnsupportedField(props) {
|
|
|
2429
2429
|
translateParams.push(reason);
|
|
2430
2430
|
}
|
|
2431
2431
|
return /* @__PURE__ */ jsxs12("div", { className: "unsupported-field", children: [
|
|
2432
|
-
/* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(Markdown3, { children: translateString(translateEnum, translateParams) }) }),
|
|
2432
|
+
/* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(Markdown3, { options: { disableParsingRawHTML: true }, children: translateString(translateEnum, translateParams) }) }),
|
|
2433
2433
|
schema && /* @__PURE__ */ jsx24("pre", { children: JSON.stringify(schema, null, 2) })
|
|
2434
2434
|
] });
|
|
2435
2435
|
}
|