@uniformdev/canvas-next-rsc 19.159.1-alpha.16 → 19.159.1-alpha.27

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/component.js CHANGED
@@ -125,8 +125,7 @@ var TextRichTextNode = ({ node }) => {
125
125
  // src/components/UniformRichTextNode.tsx
126
126
  function UniformRichTextNode({ node, ...props }) {
127
127
  var _a;
128
- if (!(0, import_richtext4.isRichTextNode)(node))
129
- return null;
128
+ if (!(0, import_richtext4.isRichTextNode)(node)) return null;
130
129
  let NodeRenderer = (_a = props.resolveRichTextRenderer) == null ? void 0 : _a.call(props, node);
131
130
  if (typeof NodeRenderer === "undefined") {
132
131
  NodeRenderer = resolveRichTextDefaultRenderer(node);
@@ -162,8 +161,7 @@ var UniformRichText = import_react11.default.forwardRef(function UniformRichText
162
161
  var _a;
163
162
  const parameter = (_a = component == null ? void 0 : component.parameters) == null ? void 0 : _a[parameterId];
164
163
  const value = parameter == null ? void 0 : parameter.value;
165
- if (!value || !(0, import_richtext5.isRichTextValue)(value) || (0, import_richtext5.isRichTextValueConsideredEmpty)(value))
166
- return null;
164
+ if (!value || !(0, import_richtext5.isRichTextValue)(value) || (0, import_richtext5.isRichTextValueConsideredEmpty)(value)) return null;
167
165
  return Tag === null ? /* @__PURE__ */ import_react11.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ import_react11.default.createElement(Tag, { ref, ...props }, /* @__PURE__ */ import_react11.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }));
168
166
  });
169
167
 
@@ -85,8 +85,7 @@ var TextRichTextNode = ({ node }) => {
85
85
  // src/components/UniformRichTextNode.tsx
86
86
  function UniformRichTextNode({ node, ...props }) {
87
87
  var _a;
88
- if (!isRichTextNode(node))
89
- return null;
88
+ if (!isRichTextNode(node)) return null;
90
89
  let NodeRenderer = (_a = props.resolveRichTextRenderer) == null ? void 0 : _a.call(props, node);
91
90
  if (typeof NodeRenderer === "undefined") {
92
91
  NodeRenderer = resolveRichTextDefaultRenderer(node);
@@ -122,8 +121,7 @@ var UniformRichText = React11.forwardRef(function UniformRichText2({ parameterId
122
121
  var _a;
123
122
  const parameter = (_a = component == null ? void 0 : component.parameters) == null ? void 0 : _a[parameterId];
124
123
  const value = parameter == null ? void 0 : parameter.value;
125
- if (!value || !isRichTextValue(value) || isRichTextValueConsideredEmpty(value))
126
- return null;
124
+ if (!value || !isRichTextValue(value) || isRichTextValueConsideredEmpty(value)) return null;
127
125
  return Tag === null ? /* @__PURE__ */ React11.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }) : /* @__PURE__ */ React11.createElement(Tag, { ref, ...props }, /* @__PURE__ */ React11.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer }));
128
126
  });
129
127
 
package/dist/config.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
2
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
3
  }) : x)(function(x) {
4
- if (typeof require !== "undefined")
5
- return require.apply(this, arguments);
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
5
  throw Error('Dynamic require of "' + x + '" is not supported');
7
6
  });
8
7
 
package/dist/handler.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
2
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
3
  }) : x)(function(x) {
4
- if (typeof require !== "undefined")
5
- return require.apply(this, arguments);
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
5
  throw Error('Dynamic require of "' + x + '" is not supported');
7
6
  });
8
7
 
package/dist/index.esm.js CHANGED
@@ -1,8 +1,7 @@
1
1
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
2
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
3
  }) : x)(function(x) {
4
- if (typeof require !== "undefined")
5
- return require.apply(this, arguments);
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
5
  throw Error('Dynamic require of "' + x + '" is not supported');
7
6
  });
8
7
 
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
2
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
3
  }) : x)(function(x) {
4
- if (typeof require !== "undefined")
5
- return require.apply(this, arguments);
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
5
  throw Error('Dynamic require of "' + x + '" is not supported');
7
6
  });
8
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "19.159.1-alpha.16+112313047e",
3
+ "version": "19.159.1-alpha.27+344f3d36db",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -61,15 +61,15 @@
61
61
  "react-dom": "18.2.0"
62
62
  },
63
63
  "dependencies": {
64
- "@uniformdev/canvas": "19.159.1-alpha.16+112313047e",
65
- "@uniformdev/canvas-next-rsc-client": "^19.159.1-alpha.16+112313047e",
66
- "@uniformdev/canvas-next-rsc-shared": "^19.159.1-alpha.16+112313047e",
67
- "@uniformdev/canvas-react": "19.159.1-alpha.16+112313047e",
68
- "@uniformdev/context": "19.159.1-alpha.16+112313047e",
69
- "@uniformdev/project-map": "19.159.1-alpha.16+112313047e",
70
- "@uniformdev/redirect": "19.159.1-alpha.16+112313047e",
71
- "@uniformdev/richtext": "19.159.1-alpha.16+112313047e",
72
- "@uniformdev/webhooks": "19.159.1-alpha.16+112313047e",
64
+ "@uniformdev/canvas": "19.159.1-alpha.27+344f3d36db",
65
+ "@uniformdev/canvas-next-rsc-client": "^19.159.1-alpha.27+344f3d36db",
66
+ "@uniformdev/canvas-next-rsc-shared": "^19.159.1-alpha.27+344f3d36db",
67
+ "@uniformdev/canvas-react": "19.159.1-alpha.27+344f3d36db",
68
+ "@uniformdev/context": "19.159.1-alpha.27+344f3d36db",
69
+ "@uniformdev/project-map": "19.159.1-alpha.27+344f3d36db",
70
+ "@uniformdev/redirect": "19.159.1-alpha.27+344f3d36db",
71
+ "@uniformdev/richtext": "19.159.1-alpha.27+344f3d36db",
72
+ "@uniformdev/webhooks": "19.159.1-alpha.27+344f3d36db",
73
73
  "@vercel/edge-config": "^0.4.0",
74
74
  "encoding": "^0.1.13",
75
75
  "server-only": "^0.0.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "112313047e98c7a1c0045ea1c5d01a4c74b29871"
89
+ "gitHead": "344f3d36dba87d4e2340a1687c20b163be1d2c83"
90
90
  }