@uniformdev/canvas-next-rsc 19.185.1-alpha.8 → 19.186.2-alpha.14

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
@@ -48,7 +48,7 @@ var DefaultNotImplementedComponent = ({ component }) => {
48
48
  };
49
49
 
50
50
  // src/components/UniformRichText.tsx
51
- var import_canvas2 = require("@uniformdev/canvas");
51
+ var import_canvas = require("@uniformdev/canvas");
52
52
  var import_richtext6 = require("@uniformdev/richtext");
53
53
  var import_react13 = __toESM(require("react"));
54
54
 
@@ -57,7 +57,6 @@ var import_richtext5 = require("@uniformdev/richtext");
57
57
  var import_react12 = __toESM(require("react"));
58
58
 
59
59
  // src/components/nodes/AssetRichTextNode.tsx
60
- var import_canvas = require("@uniformdev/canvas");
61
60
  var import_react2 = __toESM(require("react"));
62
61
  var AssetRichTextNode = ({ node }) => {
63
62
  var _a, _b;
@@ -65,7 +64,7 @@ var AssetRichTextNode = ({ node }) => {
65
64
  if (__asset === void 0) {
66
65
  return null;
67
66
  }
68
- if (__asset.type !== "image" || __asset._source !== import_canvas.ASSETS_SOURCE_UNIFORM) {
67
+ if (__asset.type !== "image") {
69
68
  return null;
70
69
  }
71
70
  return /* @__PURE__ */ import_react2.default.createElement("figure", null, /* @__PURE__ */ import_react2.default.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ import_react2.default.createElement("figcaption", null, __asset.fields.description.value) : null);
@@ -214,9 +213,9 @@ var UniformRichText = import_react13.default.forwardRef(function UniformRichText
214
213
  ref,
215
214
  ...props,
216
215
  ...isContextualEditing ? {
217
- [import_canvas2.ATTRIBUTE_COMPONENT_ID]: component._id,
218
- [import_canvas2.ATTRIBUTE_PARAMETER_ID]: parameterId,
219
- [import_canvas2.ATTRIBUTE_PARAMETER_TYPE]: "richText"
216
+ [import_canvas.ATTRIBUTE_COMPONENT_ID]: component._id,
217
+ [import_canvas.ATTRIBUTE_PARAMETER_ID]: parameterId,
218
+ [import_canvas.ATTRIBUTE_PARAMETER_TYPE]: "richText"
220
219
  } : {}
221
220
  },
222
221
  (0, import_richtext6.isRichTextValueConsideredEmpty)(value) ? /* @__PURE__ */ import_react13.default.createElement("p", null, /* @__PURE__ */ import_react13.default.createElement("i", null, computedPlaceholder)) : /* @__PURE__ */ import_react13.default.createElement(UniformRichTextNode, { node: value.root, resolveRichTextRenderer })
@@ -18,7 +18,6 @@ import { isRichTextNode } from "@uniformdev/richtext";
18
18
  import React12 from "react";
19
19
 
20
20
  // src/components/nodes/AssetRichTextNode.tsx
21
- import { ASSETS_SOURCE_UNIFORM } from "@uniformdev/canvas";
22
21
  import React2 from "react";
23
22
  var AssetRichTextNode = ({ node }) => {
24
23
  var _a, _b;
@@ -26,7 +25,7 @@ var AssetRichTextNode = ({ node }) => {
26
25
  if (__asset === void 0) {
27
26
  return null;
28
27
  }
29
- if (__asset.type !== "image" || __asset._source !== ASSETS_SOURCE_UNIFORM) {
28
+ if (__asset.type !== "image") {
30
29
  return null;
31
30
  }
32
31
  return /* @__PURE__ */ React2.createElement("figure", null, /* @__PURE__ */ React2.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ React2.createElement("figcaption", null, __asset.fields.description.value) : null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "19.185.1-alpha.8+53f7f96124",
3
+ "version": "19.186.2-alpha.14+2868049c36",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -61,15 +61,15 @@
61
61
  "react-dom": "18.3.1"
62
62
  },
63
63
  "dependencies": {
64
- "@uniformdev/canvas": "19.185.1-alpha.8+53f7f96124",
65
- "@uniformdev/canvas-next-rsc-client": "^19.185.1-alpha.8+53f7f96124",
66
- "@uniformdev/canvas-next-rsc-shared": "^19.185.1-alpha.8+53f7f96124",
67
- "@uniformdev/canvas-react": "19.185.1-alpha.8+53f7f96124",
68
- "@uniformdev/context": "19.185.1-alpha.8+53f7f96124",
69
- "@uniformdev/project-map": "19.185.1-alpha.8+53f7f96124",
70
- "@uniformdev/redirect": "19.185.1-alpha.8+53f7f96124",
71
- "@uniformdev/richtext": "19.185.1-alpha.8+53f7f96124",
72
- "@uniformdev/webhooks": "19.185.1-alpha.8+53f7f96124",
64
+ "@uniformdev/canvas": "19.186.2-alpha.14+2868049c36",
65
+ "@uniformdev/canvas-next-rsc-client": "^19.186.2-alpha.14+2868049c36",
66
+ "@uniformdev/canvas-next-rsc-shared": "^19.186.2-alpha.14+2868049c36",
67
+ "@uniformdev/canvas-react": "19.186.2-alpha.14+2868049c36",
68
+ "@uniformdev/context": "19.186.2-alpha.14+2868049c36",
69
+ "@uniformdev/project-map": "19.186.2-alpha.14+2868049c36",
70
+ "@uniformdev/redirect": "19.186.2-alpha.14+2868049c36",
71
+ "@uniformdev/richtext": "19.186.2-alpha.14+2868049c36",
72
+ "@uniformdev/webhooks": "19.186.2-alpha.14+2868049c36",
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": "53f7f961242f3518b103e55337ada7ad91c18dd7"
89
+ "gitHead": "2868049c365d370abc91762e89dc845c61c02b78"
90
90
  }