@valbuild/react 0.60.19 → 0.60.21

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.
@@ -74,7 +74,11 @@ function ValRichText(_ref) {
74
74
  key: key === null || key === void 0 ? void 0 : key.toString(),
75
75
  className: className,
76
76
  children: children,
77
- href: tag === "a" ? child.href : undefined
77
+ href: tag === "a" ? child.href : undefined,
78
+ src: tag === "img" ? child.src && "/api/val/files/public".concat(child.src) : undefined,
79
+ alt: tag === "img" ? child.alt : undefined,
80
+ width: tag === "img" ? child.width : undefined,
81
+ height: tag === "img" ? child.height : undefined
78
82
  });
79
83
  }
80
84
  return /*#__PURE__*/jsx("div", {
@@ -82,7 +82,11 @@ function ValRichText(_ref) {
82
82
  key: key === null || key === void 0 ? void 0 : key.toString(),
83
83
  className: className,
84
84
  children: children,
85
- href: tag === "a" ? child.href : undefined
85
+ href: tag === "a" ? child.href : undefined,
86
+ src: tag === "img" ? child.src && "/api/val/files/public".concat(child.src) : undefined,
87
+ alt: tag === "img" ? child.alt : undefined,
88
+ width: tag === "img" ? child.width : undefined,
89
+ height: tag === "img" ? child.height : undefined
86
90
  });
87
91
  }
88
92
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
@@ -82,7 +82,11 @@ function ValRichText(_ref) {
82
82
  key: key === null || key === void 0 ? void 0 : key.toString(),
83
83
  className: className,
84
84
  children: children,
85
- href: tag === "a" ? child.href : undefined
85
+ href: tag === "a" ? child.href : undefined,
86
+ src: tag === "img" ? child.src && "/api/val/files/public".concat(child.src) : undefined,
87
+ alt: tag === "img" ? child.alt : undefined,
88
+ width: tag === "img" ? child.width : undefined,
89
+ height: tag === "img" ? child.height : undefined
86
90
  });
87
91
  }
88
92
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
@@ -74,7 +74,11 @@ function ValRichText(_ref) {
74
74
  key: key === null || key === void 0 ? void 0 : key.toString(),
75
75
  className: className,
76
76
  children: children,
77
- href: tag === "a" ? child.href : undefined
77
+ href: tag === "a" ? child.href : undefined,
78
+ src: tag === "img" ? child.src && "/api/val/files/public".concat(child.src) : undefined,
79
+ alt: tag === "img" ? child.alt : undefined,
80
+ width: tag === "img" ? child.width : undefined,
81
+ height: tag === "img" ? child.height : undefined
78
82
  });
79
83
  }
80
84
  return /*#__PURE__*/jsx("div", {
@@ -74,7 +74,11 @@ function ValRichText(_ref) {
74
74
  key: key === null || key === void 0 ? void 0 : key.toString(),
75
75
  className: className,
76
76
  children: children,
77
- href: tag === "a" ? child.href : undefined
77
+ href: tag === "a" ? child.href : undefined,
78
+ src: tag === "img" ? child.src && "/api/val/files/public".concat(child.src) : undefined,
79
+ alt: tag === "img" ? child.alt : undefined,
80
+ width: tag === "img" ? child.width : undefined,
81
+ height: tag === "img" ? child.height : undefined
78
82
  });
79
83
  }
80
84
  return /*#__PURE__*/jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.60.19",
3
+ "version": "0.60.21",
4
4
  "private": false,
5
5
  "description": "Val - React internal helpers",
6
6
  "sideEffects": false,
@@ -9,9 +9,9 @@
9
9
  "test": "jest"
10
10
  },
11
11
  "dependencies": {
12
- "@valbuild/core": "~0.60.19",
13
- "@valbuild/shared": "~0.60.19",
14
- "@valbuild/ui": "~0.60.19",
12
+ "@valbuild/core": "~0.60.21",
13
+ "@valbuild/shared": "~0.60.21",
14
+ "@valbuild/ui": "~0.60.21",
15
15
  "@vercel/stega": "^0.1.0",
16
16
  "base64-arraybuffer": "^1.0.2"
17
17
  },