@tinacms/mdx 0.0.0-20220718185604 → 0.60.3

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.
Files changed (89) hide show
  1. package/dist/index.cjs +887 -738
  2. package/dist/index.es.js +546 -406
  3. package/dist/{parse/plate-spec.d.ts → index.js} +4 -2
  4. package/dist/mdx.es.js +1092 -0
  5. package/dist/mdx.umd.js +1097 -0
  6. package/dist/parse/acorn.d.ts +2 -3
  7. package/dist/parse/acorn.js +201 -0
  8. package/dist/parse/index.d.ts +8 -2
  9. package/dist/parse/index.js +144 -0
  10. package/dist/parse/mdx.js +75 -0
  11. package/dist/parse/plate.d.ts +15 -2
  12. package/dist/parse/plate.js +1 -0
  13. package/dist/parse/remarkToPlate.d.ts +16 -1
  14. package/dist/parse/remarkToPlate.js +380 -0
  15. package/dist/stringify/acorn.d.ts +7 -2
  16. package/dist/stringify/acorn.js +241 -0
  17. package/dist/stringify/index.d.ts +15 -0
  18. package/dist/stringify/index.js +195 -0
  19. package/dist/stringify/marks.js +250 -0
  20. package/dist/tests/autotest/_config.d.ts +4 -0
  21. package/dist/tests/autotest/_config.js +159 -0
  22. package/dist/tests/autotest/_runner.test.d.ts +1 -0
  23. package/dist/tests/autotest/_runner.test.js +77 -0
  24. package/dist/tests/autotest/autoformat block elements in list items.test.d.ts +1 -0
  25. package/dist/tests/autotest/autoformat block elements in list items.test.js +33 -0
  26. package/dist/tests/autotest/autoformat blockquote.result.test.d.ts +1 -0
  27. package/dist/tests/autotest/autoformat blockquote.result.test.js +18 -0
  28. package/dist/tests/autotest/autoformat blockquote.test.d.ts +1 -0
  29. package/dist/tests/autotest/autoformat blockquote.test.js +18 -0
  30. package/dist/tests/autotest/autoformat list item.test.d.ts +1 -0
  31. package/dist/tests/autotest/autoformat list item.test.js +31 -0
  32. package/dist/tests/autotest/autoformat mdx with nested null children.test.d.ts +1 -0
  33. package/dist/tests/autotest/autoformat mdx with nested null children.test.js +23 -0
  34. package/dist/tests/autotest/autoformat syntax changes.test.d.ts +1 -0
  35. package/dist/tests/autotest/autoformat syntax changes.test.js +90 -0
  36. package/dist/tests/autotest/blockquote.test.d.ts +1 -0
  37. package/dist/tests/autotest/blockquote.test.js +17 -0
  38. package/dist/tests/autotest/break.test.d.ts +1 -0
  39. package/dist/tests/autotest/break.test.js +26 -0
  40. package/dist/tests/autotest/code block.test.d.ts +1 -0
  41. package/dist/tests/autotest/code block.test.js +27 -0
  42. package/dist/tests/autotest/image.test.d.ts +1 -0
  43. package/dist/tests/autotest/image.test.js +52 -0
  44. package/dist/tests/autotest/invalid mdx with a closing tag.test.d.ts +1 -0
  45. package/dist/tests/autotest/invalid mdx with a closing tag.test.js +27 -0
  46. package/dist/tests/autotest/invalid mdx with a const expression.test.d.ts +1 -0
  47. package/dist/tests/autotest/invalid mdx with a const expression.test.js +27 -0
  48. package/dist/tests/autotest/invalid mdx with an expression {{}}.test.d.ts +1 -0
  49. package/dist/tests/autotest/invalid mdx with an expression {{}}.test.js +27 -0
  50. package/dist/tests/autotest/invalid mdx with an expression.test.d.ts +1 -0
  51. package/dist/tests/autotest/invalid mdx with an expression.test.js +27 -0
  52. package/dist/tests/autotest/invalid mdx with an import statment.test.d.ts +1 -0
  53. package/dist/tests/autotest/invalid mdx with an import statment.test.js +27 -0
  54. package/dist/tests/autotest/kitchen sink.test.d.ts +1 -0
  55. package/dist/tests/autotest/kitchen sink.test.js +144 -0
  56. package/dist/tests/autotest/links.test.d.ts +1 -0
  57. package/dist/tests/autotest/links.test.js +29 -0
  58. package/dist/tests/autotest/lists.test.d.ts +1 -0
  59. package/dist/tests/autotest/lists.test.js +110 -0
  60. package/dist/tests/autotest/marks.test.d.ts +1 -0
  61. package/dist/tests/autotest/marks.test.js +102 -0
  62. package/dist/tests/autotest/mdx field with a scalar field as a list.test.d.ts +1 -0
  63. package/dist/tests/autotest/mdx field with a scalar field as a list.test.js +22 -0
  64. package/dist/tests/autotest/mdx which hasnt been registered returns html.test.d.ts +1 -0
  65. package/dist/tests/autotest/mdx which hasnt been registered returns html.test.js +26 -0
  66. package/dist/tests/autotest/mdx with a boolean field.test.d.ts +1 -0
  67. package/dist/tests/autotest/mdx with a boolean field.test.js +22 -0
  68. package/dist/tests/autotest/mdx with a number field.test.d.ts +1 -0
  69. package/dist/tests/autotest/mdx with a number field.test.js +22 -0
  70. package/dist/tests/autotest/mdx with a srtring field.test.d.ts +1 -0
  71. package/dist/tests/autotest/mdx with a srtring field.test.js +28 -0
  72. package/dist/tests/autotest/mdx with multiple rich-text fields.test.d.ts +1 -0
  73. package/dist/tests/autotest/mdx with multiple rich-text fields.test.js +53 -0
  74. package/dist/tests/autotest/mdx with nested children.test.d.ts +1 -0
  75. package/dist/tests/autotest/mdx with nested children.test.js +35 -0
  76. package/dist/tests/autotest/mdx with nested null children.test.d.ts +1 -0
  77. package/dist/tests/autotest/mdx with nested null children.test.js +23 -0
  78. package/dist/tests/autotest/mdx with number list field.test.d.ts +1 -0
  79. package/dist/tests/autotest/mdx with number list field.test.js +22 -0
  80. package/dist/tests/autotest/mdx with object list field.test.d.ts +1 -0
  81. package/dist/tests/autotest/mdx with object list field.test.js +25 -0
  82. package/dist/tests/autotest/mdx with object with templates.test.d.ts +1 -0
  83. package/dist/tests/autotest/mdx with object with templates.test.js +41 -0
  84. package/dist/tests/autotest/shortcodes.test.d.ts +1 -0
  85. package/dist/tests/autotest/shortcodes.test.js +51 -0
  86. package/dist/tests/setup.d.ts +14 -0
  87. package/dist/tests/setup.js +70 -0
  88. package/package.json +13 -14
  89. package/dist/stringify/mdx.d.ts +0 -38
@@ -15,5 +15,7 @@ See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
 
17
17
  */
18
- import { RootElement } from './plate';
19
- export declare const root: RootElement;
18
+ import { parseMDX } from './parse';
19
+ import { stringifyMDX } from './stringify';
20
+ export { parseMDX };
21
+ export { stringifyMDX };