@uniformdev/canvas-react
Advanced tools
Comparing version 19.198.3-alpha.2 to 19.198.3-alpha.5
@@ -874,3 +874,16 @@ 'use client'; | ||
if (!isContextualEditing && (0, import_richtext6.isRichTextValueConsideredEmpty)(value)) return null; | ||
return Tag === null ? /* @__PURE__ */ import_react22.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ import_react22.default.createElement( | ||
if (!Tag) { | ||
return isContextualEditing && (0, import_richtext6.isRichTextValueConsideredEmpty)(value) ? /* @__PURE__ */ import_react22.default.createElement( | ||
"p", | ||
{ | ||
...{ | ||
[import_canvas11.ATTRIBUTE_COMPONENT_ID]: componentData == null ? void 0 : componentData._id, | ||
[import_canvas11.ATTRIBUTE_PARAMETER_ID]: parameterId, | ||
[import_canvas11.ATTRIBUTE_PARAMETER_TYPE]: "richText" | ||
} | ||
}, | ||
/* @__PURE__ */ import_react22.default.createElement("i", null, computedPlaceholder) | ||
) : /* @__PURE__ */ import_react22.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }); | ||
} | ||
return /* @__PURE__ */ import_react22.default.createElement( | ||
Tag, | ||
@@ -877,0 +890,0 @@ { |
@@ -464,3 +464,3 @@ import React$1, { Key, ReactNode, PropsWithChildren } from 'react'; | ||
*/ | ||
as?: React$1.ElementType; | ||
as?: React$1.ElementType | null; | ||
/** The ID of the parameter. */ | ||
@@ -490,3 +490,3 @@ parameterId: string; | ||
*/ | ||
as?: React$1.ElementType; | ||
as?: React$1.ElementType | null; | ||
/** The ID of the parameter. */ | ||
@@ -493,0 +493,0 @@ parameterId: string; |
@@ -850,3 +850,16 @@ 'use client'; | ||
if (!isContextualEditing && isRichTextValueConsideredEmpty(value)) return null; | ||
return Tag === null ? /* @__PURE__ */ React20.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ React20.createElement( | ||
if (!Tag) { | ||
return isContextualEditing && isRichTextValueConsideredEmpty(value) ? /* @__PURE__ */ React20.createElement( | ||
"p", | ||
{ | ||
...{ | ||
[ATTRIBUTE_COMPONENT_ID]: componentData == null ? void 0 : componentData._id, | ||
[ATTRIBUTE_PARAMETER_ID]: parameterId, | ||
[ATTRIBUTE_PARAMETER_TYPE]: "richText" | ||
} | ||
}, | ||
/* @__PURE__ */ React20.createElement("i", null, computedPlaceholder) | ||
) : /* @__PURE__ */ React20.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }); | ||
} | ||
return /* @__PURE__ */ React20.createElement( | ||
Tag, | ||
@@ -853,0 +866,0 @@ { |
@@ -874,3 +874,16 @@ 'use client'; | ||
if (!isContextualEditing && (0, import_richtext6.isRichTextValueConsideredEmpty)(value)) return null; | ||
return Tag === null ? /* @__PURE__ */ import_react22.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ import_react22.default.createElement( | ||
if (!Tag) { | ||
return isContextualEditing && (0, import_richtext6.isRichTextValueConsideredEmpty)(value) ? /* @__PURE__ */ import_react22.default.createElement( | ||
"p", | ||
{ | ||
...{ | ||
[import_canvas11.ATTRIBUTE_COMPONENT_ID]: componentData == null ? void 0 : componentData._id, | ||
[import_canvas11.ATTRIBUTE_PARAMETER_ID]: parameterId, | ||
[import_canvas11.ATTRIBUTE_PARAMETER_TYPE]: "richText" | ||
} | ||
}, | ||
/* @__PURE__ */ import_react22.default.createElement("i", null, computedPlaceholder) | ||
) : /* @__PURE__ */ import_react22.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }); | ||
} | ||
return /* @__PURE__ */ import_react22.default.createElement( | ||
Tag, | ||
@@ -877,0 +890,0 @@ { |
{ | ||
"name": "@uniformdev/canvas-react", | ||
"version": "19.198.3-alpha.2+2332c2beb2", | ||
"version": "19.198.3-alpha.5+c37bbd4ef2", | ||
"description": "React SDK for Uniform Canvas", | ||
@@ -48,6 +48,6 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@uniformdev/canvas": "19.198.3-alpha.2+2332c2beb2", | ||
"@uniformdev/context": "19.198.3-alpha.2+2332c2beb2", | ||
"@uniformdev/context-react": "19.198.3-alpha.2+2332c2beb2", | ||
"@uniformdev/richtext": "19.198.3-alpha.2+2332c2beb2" | ||
"@uniformdev/canvas": "19.198.3-alpha.5+c37bbd4ef2", | ||
"@uniformdev/context": "19.198.3-alpha.5+c37bbd4ef2", | ||
"@uniformdev/context-react": "19.198.3-alpha.5+c37bbd4ef2", | ||
"@uniformdev/richtext": "19.198.3-alpha.5+c37bbd4ef2" | ||
}, | ||
@@ -71,3 +71,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "2332c2beb206a6f3897f55ba4bb2f2ce882b3d0b" | ||
"gitHead": "c37bbd4ef2353582b4125b9dd21599634ecd5165" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
249647
5174