@tinacms/mdx 0.0.0-8434fe2-20241004062927 → 0.0.0-b1fe6d2-20241008011354

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.
@@ -38861,12 +38861,6 @@ var blockElement = (content3, field, imageCallback) => {
38861
38861
  type: "paragraph",
38862
38862
  children: eat2(content3.children, field, imageCallback)
38863
38863
  };
38864
- case "mermaid":
38865
- return {
38866
- type: "code",
38867
- lang: "mermaid",
38868
- value: content3.value
38869
- };
38870
38864
  case "code_block":
38871
38865
  return {
38872
38866
  type: "code",
@@ -39194,7 +39188,6 @@ function stringifyProps2(element2, parentField, flatten2, imageCallback) {
39194
39188
  if (field.list) {
39195
39189
  throw new Error(`Rich-text list is not supported`);
39196
39190
  } else {
39197
- console.log("RICH-TEXT StringifyProps", value);
39198
39191
  const joiner = flatten2 ? " " : "\n";
39199
39192
  let val = "";
39200
39193
  assertShape2(
@@ -42094,7 +42087,7 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
42094
42087
  case "heading":
42095
42088
  return heading2(content4);
42096
42089
  case "code":
42097
- return parseCode(content4);
42090
+ return code3(content4);
42098
42091
  case "paragraph":
42099
42092
  return paragraph2(content4);
42100
42093
  case "mdxJsxFlowElement":
@@ -42241,19 +42234,6 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
42241
42234
  );
42242
42235
  }
42243
42236
  };
42244
- const parseCode = (content4) => {
42245
- if (content4.lang === "mermaid") {
42246
- return mermaid(content4);
42247
- }
42248
- return code3(content4);
42249
- };
42250
- const mermaid = (content4) => {
42251
- return {
42252
- type: "mermaid",
42253
- value: content4.value,
42254
- children: [{ type: "text", text: "" }]
42255
- };
42256
- };
42257
42237
  const code3 = (content4) => {
42258
42238
  const extra = {};
42259
42239
  if (content4.lang)
package/dist/index.js CHANGED
@@ -40750,12 +40750,6 @@ var blockElement = (content3, field, imageCallback) => {
40750
40750
  type: "paragraph",
40751
40751
  children: eat2(content3.children, field, imageCallback)
40752
40752
  };
40753
- case "mermaid":
40754
- return {
40755
- type: "code",
40756
- lang: "mermaid",
40757
- value: content3.value
40758
- };
40759
40753
  case "code_block":
40760
40754
  return {
40761
40755
  type: "code",
@@ -41087,7 +41081,6 @@ function stringifyProps2(element, parentField, flatten2, imageCallback) {
41087
41081
  if (field.list) {
41088
41082
  throw new Error(`Rich-text list is not supported`);
41089
41083
  } else {
41090
- console.log("RICH-TEXT StringifyProps", value);
41091
41084
  const joiner = flatten2 ? " " : "\n";
41092
41085
  let val = "";
41093
41086
  assertShape2(
@@ -43997,7 +43990,7 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
43997
43990
  case "heading":
43998
43991
  return heading2(content4);
43999
43992
  case "code":
44000
- return parseCode(content4);
43993
+ return code3(content4);
44001
43994
  case "paragraph":
44002
43995
  return paragraph2(content4);
44003
43996
  case "mdxJsxFlowElement":
@@ -44144,19 +44137,6 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
44144
44137
  );
44145
44138
  }
44146
44139
  };
44147
- const parseCode = (content4) => {
44148
- if (content4.lang === "mermaid") {
44149
- return mermaid(content4);
44150
- }
44151
- return code3(content4);
44152
- };
44153
- const mermaid = (content4) => {
44154
- return {
44155
- type: "mermaid",
44156
- value: content4.value,
44157
- children: [{ type: "text", text: "" }]
44158
- };
44159
- };
44160
44140
  const code3 = (content4) => {
44161
44141
  const extra = {};
44162
44142
  if (content4.lang)
package/dist/index.mjs CHANGED
@@ -40733,12 +40733,6 @@ var blockElement = (content3, field, imageCallback) => {
40733
40733
  type: "paragraph",
40734
40734
  children: eat2(content3.children, field, imageCallback)
40735
40735
  };
40736
- case "mermaid":
40737
- return {
40738
- type: "code",
40739
- lang: "mermaid",
40740
- value: content3.value
40741
- };
40742
40736
  case "code_block":
40743
40737
  return {
40744
40738
  type: "code",
@@ -41066,7 +41060,6 @@ function stringifyProps2(element, parentField, flatten2, imageCallback) {
41066
41060
  if (field.list) {
41067
41061
  throw new Error(`Rich-text list is not supported`);
41068
41062
  } else {
41069
- console.log("RICH-TEXT StringifyProps", value);
41070
41063
  const joiner = flatten2 ? " " : "\n";
41071
41064
  let val = "";
41072
41065
  assertShape2(
@@ -43966,7 +43959,7 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
43966
43959
  case "heading":
43967
43960
  return heading2(content4);
43968
43961
  case "code":
43969
- return parseCode(content4);
43962
+ return code3(content4);
43970
43963
  case "paragraph":
43971
43964
  return paragraph2(content4);
43972
43965
  case "mdxJsxFlowElement":
@@ -44113,19 +44106,6 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
44113
44106
  );
44114
44107
  }
44115
44108
  };
44116
- const parseCode = (content4) => {
44117
- if (content4.lang === "mermaid") {
44118
- return mermaid(content4);
44119
- }
44120
- return code3(content4);
44121
- };
44122
- const mermaid = (content4) => {
44123
- return {
44124
- type: "mermaid",
44125
- value: content4.value,
44126
- children: [{ type: "text", text: "" }]
44127
- };
44128
- };
44129
44109
  const code3 = (content4) => {
44130
44110
  const extra = {};
44131
44111
  if (content4.lang)
@@ -118,18 +118,10 @@ export type ParagraphElement = {
118
118
  type: 'p';
119
119
  children: InlineElement[];
120
120
  };
121
- /**
122
- * @group MermaidElement
123
- */
124
- export type MermaidElement = {
125
- type: 'mermaid';
126
- value: string;
127
- children: [EmptyTextElement];
128
- };
129
121
  /**
130
122
  * @group BlockElement
131
123
  */
132
- export type BlockElement = BlockquoteElement | CodeBlockElement | HeadingElement | HrElement | HTMLElement | ImageElement | InvalidMarkdownElement | ListItemElement | MdxBlockElement | ParagraphElement | MermaidElement | OrderedListElement | UnorderedListElement;
124
+ export type BlockElement = BlockquoteElement | CodeBlockElement | HeadingElement | HrElement | HTMLElement | ImageElement | InvalidMarkdownElement | ListItemElement | MdxBlockElement | ParagraphElement | OrderedListElement | UnorderedListElement;
133
125
  /**
134
126
  * @group InlineElement
135
127
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/mdx",
3
- "version": "0.0.0-8434fe2-20241004062927",
3
+ "version": "0.0.0-b1fe6d2-20241008011354",
4
4
  "typings": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "browser": "dist/index.browser.mjs",
@@ -56,7 +56,7 @@
56
56
  "unist-util-visit": "4.1.2",
57
57
  "uvu": "0.5.6",
58
58
  "vfile-message": "3.1.4",
59
- "@tinacms/schema-tools": "0.0.0-8434fe2-20241004062927"
59
+ "@tinacms/schema-tools": "0.0.0-b1fe6d2-20241008011354"
60
60
  },
61
61
  "publishConfig": {
62
62
  "registry": "https://registry.npmjs.org"
@@ -1,2 +0,0 @@
1
- import type { RichTextField } from '@tinacms/schema-tools';
2
- export declare const field: RichTextField;
@@ -1 +0,0 @@
1
- export {};