@valbuild/react 0.78.3 → 0.79.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.
@@ -161,7 +161,8 @@ export type StegaOfRichTextSource<T extends Source> = Json extends T ? Json : T
161
161
  * RichText is accessible by users (after conversion via useVal / fetchVal)
162
162
  **/
163
163
  export type RichText<O extends RichTextOptions> = StegaOfRichTextSource<RichTextSource<O>> & {
164
- valPath: string;
164
+ /** This path is used internally by Val to identify where this RichText source is defined */
165
+ valPath?: string;
165
166
  };
166
167
  export type StegaOfSource<T extends Source> = Json extends T ? Json : T extends RichTextSource<infer O> ? RichText<O> : T extends ImageSource ? Image : T extends FileSource<infer M> ? M extends FileMetadata ? File<M> : never : T extends SourceObject ? {
167
168
  [key in keyof T]: StegaOfSource<T[key]>;
@@ -99,8 +99,8 @@ function ValRichText(_ref) {
99
99
  return /*#__PURE__*/jsx("div", {
100
100
  className: className,
101
101
  style: style,
102
- "data-val-path": root.valPath,
103
- children: root.map(build)
102
+ "data-val-path": root === null || root === void 0 ? void 0 : root.valPath,
103
+ children: root === null || root === void 0 ? void 0 : root.map(build)
104
104
  });
105
105
  }
106
106
  function classNameOfTag(tag, style, theme) {
@@ -107,8 +107,8 @@ function ValRichText(_ref) {
107
107
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
108
108
  className: className,
109
109
  style: style,
110
- "data-val-path": root.valPath,
111
- children: root.map(build)
110
+ "data-val-path": root === null || root === void 0 ? void 0 : root.valPath,
111
+ children: root === null || root === void 0 ? void 0 : root.map(build)
112
112
  });
113
113
  }
114
114
  function classNameOfTag(tag, style, theme) {
@@ -107,8 +107,8 @@ function ValRichText(_ref) {
107
107
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
108
108
  className: className,
109
109
  style: style,
110
- "data-val-path": root.valPath,
111
- children: root.map(build)
110
+ "data-val-path": root === null || root === void 0 ? void 0 : root.valPath,
111
+ children: root === null || root === void 0 ? void 0 : root.map(build)
112
112
  });
113
113
  }
114
114
  function classNameOfTag(tag, style, theme) {
@@ -99,8 +99,8 @@ function ValRichText(_ref) {
99
99
  return /*#__PURE__*/jsx("div", {
100
100
  className: className,
101
101
  style: style,
102
- "data-val-path": root.valPath,
103
- children: root.map(build)
102
+ "data-val-path": root === null || root === void 0 ? void 0 : root.valPath,
103
+ children: root === null || root === void 0 ? void 0 : root.map(build)
104
104
  });
105
105
  }
106
106
  function classNameOfTag(tag, style, theme) {
@@ -99,8 +99,8 @@ function ValRichText(_ref) {
99
99
  return /*#__PURE__*/jsx("div", {
100
100
  className: className,
101
101
  style: style,
102
- "data-val-path": root.valPath,
103
- children: root.map(build)
102
+ "data-val-path": root === null || root === void 0 ? void 0 : root.valPath,
103
+ children: root === null || root === void 0 ? void 0 : root.map(build)
104
104
  });
105
105
  }
106
106
  function classNameOfTag(tag, style, theme) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.78.3",
3
+ "version": "0.79.1",
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.78.3",
13
- "@valbuild/shared": "~0.78.3",
14
- "@valbuild/ui": "~0.78.3",
12
+ "@valbuild/core": "~0.79.1",
13
+ "@valbuild/shared": "~0.79.1",
14
+ "@valbuild/ui": "~0.79.1",
15
15
  "@vercel/stega": "^0.1.0",
16
16
  "base64-arraybuffer": "^1.0.2"
17
17
  },