tinacms 1.0.2 → 1.1.0

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.
@@ -51,6 +51,9 @@ declare type BaseComponents = {
51
51
  code?: {
52
52
  children: JSX.Element;
53
53
  };
54
+ text?: {
55
+ children: string;
56
+ };
54
57
  ul?: {
55
58
  children: JSX.Element;
56
59
  };
@@ -79,6 +79,10 @@ const Leaf = (props) => {
79
79
  ...rest
80
80
  }));
81
81
  }
82
+ if (props.components.text) {
83
+ const Component = props.components.text;
84
+ return /* @__PURE__ */ React.createElement(Component, null, props.text);
85
+ }
82
86
  return /* @__PURE__ */ React.createElement(React.Fragment, null, props.text);
83
87
  };
84
88
  const MemoNode = (props) => {
@@ -86,6 +86,10 @@
86
86
  ...rest
87
87
  }));
88
88
  }
89
+ if (props.components.text) {
90
+ const Component = props.components.text;
91
+ return /* @__PURE__ */ React__default["default"].createElement(Component, null, props.text);
92
+ }
89
93
  return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, props.text);
90
94
  };
91
95
  const MemoNode = (props) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {