tinacms 0.65.2 → 0.66.2

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.
@@ -70,6 +70,9 @@ declare type BaseComponents = {
70
70
  alt?: string;
71
71
  };
72
72
  hr?: {};
73
+ maybe_mdx?: {
74
+ children: JSX.Element;
75
+ };
73
76
  component_missing?: {
74
77
  name: string;
75
78
  };
@@ -113,7 +113,8 @@ const TinaMarkdown = ({
113
113
  }));
114
114
  case "code_block":
115
115
  const value = child.children.map((item) => {
116
- return item.children[0].text;
116
+ var _a2;
117
+ return ((_a2 = item.children[0]) == null ? void 0 : _a2.text) || "";
117
118
  }).join("\n");
118
119
  if (components[child.type]) {
119
120
  const Component2 = components[child.type];
@@ -160,6 +161,8 @@ const TinaMarkdown = ({
160
161
  throw new Error(`No component provided for ${child.name}`);
161
162
  }
162
163
  }
164
+ case "maybe_mdx":
165
+ return null;
163
166
  default:
164
167
  if (typeof child.text === "string") {
165
168
  return /* @__PURE__ */ React.createElement(Leaf, __spreadValues({
package/dist/rich-text.js CHANGED
@@ -120,7 +120,8 @@ var __objRest = (source, exclude) => {
120
120
  }));
121
121
  case "code_block":
122
122
  const value = child.children.map((item) => {
123
- return item.children[0].text;
123
+ var _a2;
124
+ return ((_a2 = item.children[0]) == null ? void 0 : _a2.text) || "";
124
125
  }).join("\n");
125
126
  if (components[child.type]) {
126
127
  const Component2 = components[child.type];
@@ -167,6 +168,8 @@ var __objRest = (source, exclude) => {
167
168
  throw new Error(`No component provided for ${child.name}`);
168
169
  }
169
170
  }
171
+ case "maybe_mdx":
172
+ return null;
170
173
  default:
171
174
  if (typeof child.text === "string") {
172
175
  return /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({