react-ronin
Advanced tools
Comparing version 2.2.9-dependabot-npm-and-yarn-all-634fb9e241-experimental.3 to 2.2.9-dependabot-npm-and-yarn-all-634fb9e241-experimental.4
@@ -34,7 +34,10 @@ import React, {} from "react"; | ||
const RenderingElement = Element; | ||
return RenderingElement ? (React.createElement(RenderingElement, { ...attributes, key: "rendering" + String(position) }, final)) : (final); | ||
return RenderingElement ? (React.createElement(RenderingElement, { ...attributes, key: (typeof RenderingElement === "string" | ||
? RenderingElement | ||
: RenderingElement.name) + String(position) }, final)) : (final); | ||
}, item.text); | ||
} | ||
const richtTextPrefix = "rich-text-"; | ||
let Element = null; | ||
let children = item.content ? (React.createElement(RichText, { data: item.content, components: components, key: "rich-text" + String(position) })) : null; | ||
let children = item.content ? (React.createElement(RichText, { data: item.content, components: components, key: richtTextPrefix + String(position) })) : null; | ||
let language = "plaintext"; | ||
@@ -41,0 +44,0 @@ switch (item.type) { |
{ | ||
"name": "react-ronin", | ||
"version": "2.2.9-dependabot-npm-and-yarn-all-634fb9e241-experimental.3", | ||
"version": "2.2.9-dependabot-npm-and-yarn-all-634fb9e241-experimental.4", | ||
"license": "Apache-2.0", | ||
@@ -56,6 +56,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"ronin": "3.3.7" | ||
"ronin": "3.1.1" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.0", | ||
"@biomejs/biome": "1.7.3", | ||
"@types/bun": "1.1.3", | ||
@@ -62,0 +62,0 @@ "@types/react": "18.3.3", |
28220
292
+ Addedronin@3.1.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedronin@3.3.7(transitive)
Updatedronin@3.1.1