@uniformdev/canvas-react 19.165.2-alpha.0 → 19.166.1

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/index.esm.js CHANGED
@@ -739,8 +739,7 @@ var TextRichTextNode = ({ node }) => {
739
739
  // src/components/UniformRichText/UniformRichTextNode.tsx
740
740
  function UniformRichTextNode({ node, ...props }) {
741
741
  var _a;
742
- if (!isRichTextNode(node))
743
- return null;
742
+ if (!isRichTextNode(node)) return null;
744
743
  let NodeRenderer = (_a = props.resolveRichTextRenderer) == null ? void 0 : _a.call(props, node);
745
744
  if (typeof NodeRenderer === "undefined") {
746
745
  NodeRenderer = resolveRichTextDefaultRenderer(node);
@@ -779,8 +778,7 @@ var UniformRichText = React18.forwardRef(function UniformRichText2({ parameterId
779
778
  return (_a = componentData == null ? void 0 : componentData.parameters) == null ? void 0 : _a[parameterId];
780
779
  }, [componentData, parameterId]);
781
780
  const value = useMemo3(() => parameter == null ? void 0 : parameter.value, [parameter]);
782
- if (!value || !isRichTextValue(value) || isRichTextValueConsideredEmpty(value))
783
- return null;
781
+ if (!value || !isRichTextValue(value) || isRichTextValueConsideredEmpty(value)) return null;
784
782
  return Tag === null ? /* @__PURE__ */ React18.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ React18.createElement(
785
783
  Tag,
786
784
  {
package/dist/index.js CHANGED
@@ -764,8 +764,7 @@ var TextRichTextNode = ({ node }) => {
764
764
  // src/components/UniformRichText/UniformRichTextNode.tsx
765
765
  function UniformRichTextNode({ node, ...props }) {
766
766
  var _a;
767
- if (!(0, import_richtext4.isRichTextNode)(node))
768
- return null;
767
+ if (!(0, import_richtext4.isRichTextNode)(node)) return null;
769
768
  let NodeRenderer = (_a = props.resolveRichTextRenderer) == null ? void 0 : _a.call(props, node);
770
769
  if (typeof NodeRenderer === "undefined") {
771
770
  NodeRenderer = resolveRichTextDefaultRenderer(node);
@@ -804,8 +803,7 @@ var UniformRichText = import_react18.default.forwardRef(function UniformRichText
804
803
  return (_a = componentData == null ? void 0 : componentData.parameters) == null ? void 0 : _a[parameterId];
805
804
  }, [componentData, parameterId]);
806
805
  const value = (0, import_react18.useMemo)(() => parameter == null ? void 0 : parameter.value, [parameter]);
807
- if (!value || !(0, import_richtext5.isRichTextValue)(value) || (0, import_richtext5.isRichTextValueConsideredEmpty)(value))
808
- return null;
806
+ if (!value || !(0, import_richtext5.isRichTextValue)(value) || (0, import_richtext5.isRichTextValueConsideredEmpty)(value)) return null;
809
807
  return Tag === null ? /* @__PURE__ */ import_react18.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ import_react18.default.createElement(
810
808
  Tag,
811
809
  {
package/dist/index.mjs CHANGED
@@ -739,8 +739,7 @@ var TextRichTextNode = ({ node }) => {
739
739
  // src/components/UniformRichText/UniformRichTextNode.tsx
740
740
  function UniformRichTextNode({ node, ...props }) {
741
741
  var _a;
742
- if (!isRichTextNode(node))
743
- return null;
742
+ if (!isRichTextNode(node)) return null;
744
743
  let NodeRenderer = (_a = props.resolveRichTextRenderer) == null ? void 0 : _a.call(props, node);
745
744
  if (typeof NodeRenderer === "undefined") {
746
745
  NodeRenderer = resolveRichTextDefaultRenderer(node);
@@ -779,8 +778,7 @@ var UniformRichText = React18.forwardRef(function UniformRichText2({ parameterId
779
778
  return (_a = componentData == null ? void 0 : componentData.parameters) == null ? void 0 : _a[parameterId];
780
779
  }, [componentData, parameterId]);
781
780
  const value = useMemo3(() => parameter == null ? void 0 : parameter.value, [parameter]);
782
- if (!value || !isRichTextValue(value) || isRichTextValueConsideredEmpty(value))
783
- return null;
781
+ if (!value || !isRichTextValue(value) || isRichTextValueConsideredEmpty(value)) return null;
784
782
  return Tag === null ? /* @__PURE__ */ React18.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ React18.createElement(
785
783
  Tag,
786
784
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.165.2-alpha.0+323887559d",
3
+ "version": "19.166.1",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,10 +45,10 @@
45
45
  "document": "api-extractor run --local"
46
46
  },
47
47
  "dependencies": {
48
- "@uniformdev/canvas": "19.165.2-alpha.0+323887559d",
49
- "@uniformdev/context": "19.165.2-alpha.0+323887559d",
50
- "@uniformdev/context-react": "19.165.2-alpha.0+323887559d",
51
- "@uniformdev/richtext": "19.165.2-alpha.0+323887559d"
48
+ "@uniformdev/canvas": "19.166.1",
49
+ "@uniformdev/context": "19.166.1",
50
+ "@uniformdev/context-react": "19.166.1",
51
+ "@uniformdev/richtext": "19.166.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": ">= 16 || 17 || 18",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "323887559d1bdc7432f91d305afaec90b98f660f"
68
+ "gitHead": "d6a92d76bb91fa41a51cf27a69d81e0cc985f80f"
69
69
  }