@mintlify/common 1.0.1337 → 1.0.1339
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.
|
@@ -1062,6 +1062,7 @@ function setKnownProp(props, failed, name, value) {
|
|
|
1062
1062
|
if (name !== FAILED_SPREAD)
|
|
1063
1063
|
failed === null || failed === void 0 ? void 0 : failed.delete(name);
|
|
1064
1064
|
}
|
|
1065
|
+
const JSX_PROP_SLOT_NONCE = `${Math.random().toString(36).slice(2)}${Math.random().toString(36).slice(2)}`;
|
|
1065
1066
|
let nextJsxPropSlot = 0;
|
|
1066
1067
|
function jsxValueExpression(expression) {
|
|
1067
1068
|
let value = expression;
|
|
@@ -1075,7 +1076,7 @@ function jsxValueExpression(expression) {
|
|
|
1075
1076
|
: undefined;
|
|
1076
1077
|
}
|
|
1077
1078
|
function slotJsxProp(props, failed, name, markdown, slots) {
|
|
1078
|
-
const placeholder = `\uE000${nextJsxPropSlot++}\uE000`;
|
|
1079
|
+
const placeholder = `\uE000${JSX_PROP_SLOT_NONCE}:${nextJsxPropSlot++}\uE000`;
|
|
1079
1080
|
slots.set(placeholder, markdown);
|
|
1080
1081
|
setKnownProp(props, failed, name, placeholder);
|
|
1081
1082
|
}
|