@tinacms/mdx 1.3.0 → 1.3.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.
Files changed (72) hide show
  1. package/dist/index.es.js +2232 -1308
  2. package/dist/index.js +15747 -11148
  3. package/dist/next/index.d.ts +2 -0
  4. package/dist/next/parse/index.d.ts +2 -0
  5. package/dist/next/parse/markdown.d.ts +2 -0
  6. package/dist/next/parse/post-processing.d.ts +3 -0
  7. package/dist/next/shortcodes/index.d.ts +2 -0
  8. package/dist/next/shortcodes/lib/factory-tag.d.ts +4 -0
  9. package/dist/next/shortcodes/lib/jsx-flow.d.ts +3 -0
  10. package/dist/next/shortcodes/lib/jsx-text.d.ts +3 -0
  11. package/dist/next/shortcodes/lib/syntax.d.ts +17 -0
  12. package/dist/next/shortcodes/lib/util.d.ts +3 -0
  13. package/dist/next/shortcodes/mdast/index.d.ts +106 -0
  14. package/dist/next/stringify/acorn.d.ts +21 -0
  15. package/dist/next/stringify/index.d.ts +3 -0
  16. package/dist/next/stringify/marks.d.ts +8 -0
  17. package/dist/next/stringify/pre-processing.d.ts +9 -0
  18. package/dist/next/stringify/to-markdown.d.ts +3 -0
  19. package/dist/next/tests/block-level-1/field.d.ts +2 -0
  20. package/dist/next/tests/block-level-2/field.d.ts +2 -0
  21. package/dist/next/tests/block-level-2/index.test.d.ts +1 -0
  22. package/dist/next/tests/block-level-3/field.d.ts +2 -0
  23. package/dist/next/tests/block-level-3/index.test.d.ts +1 -0
  24. package/dist/next/tests/block-level-nested/field.d.ts +2 -0
  25. package/dist/next/tests/block-level-nested/index.test.d.ts +1 -0
  26. package/dist/next/tests/block-level-unclosed/field.d.ts +2 -0
  27. package/dist/next/tests/block-level-unclosed/index.test.d.ts +1 -0
  28. package/dist/next/tests/expressions-in-text/field.d.ts +2 -0
  29. package/dist/next/tests/expressions-in-text/index.test.d.ts +1 -0
  30. package/dist/next/tests/image-callback/field.d.ts +2 -0
  31. package/dist/next/tests/image-callback/index.test.d.ts +1 -0
  32. package/dist/next/tests/inline/field.d.ts +2 -0
  33. package/dist/next/tests/inline/index.test.d.ts +1 -0
  34. package/dist/next/tests/inline-with-children/field.d.ts +2 -0
  35. package/dist/next/tests/inline-with-children/index.test.d.ts +1 -0
  36. package/dist/next/tests/invalid/field.d.ts +2 -0
  37. package/dist/next/tests/invalid/index.test.d.ts +1 -0
  38. package/dist/next/tests/invalid-2/field.d.ts +2 -0
  39. package/dist/next/tests/invalid-2/index.test.d.ts +1 -0
  40. package/dist/next/tests/invalid-3/field.d.ts +2 -0
  41. package/dist/next/tests/invalid-3/index.test.d.ts +1 -0
  42. package/dist/next/tests/invalid-4/field.d.ts +2 -0
  43. package/dist/next/tests/invalid-4/index.test.d.ts +1 -0
  44. package/dist/next/tests/lists/field.d.ts +2 -0
  45. package/dist/next/tests/lists/index.test.d.ts +1 -0
  46. package/dist/next/tests/markdoc/field.d.ts +2 -0
  47. package/dist/next/tests/markdoc/index.test.d.ts +1 -0
  48. package/dist/next/tests/unrecognized-shortcodes/field.d.ts +2 -0
  49. package/dist/next/tests/unrecognized-shortcodes/index.test.d.ts +1 -0
  50. package/dist/next/tests/util.d.ts +4 -0
  51. package/dist/next/tests/wordpress-style/field.d.ts +2 -0
  52. package/dist/next/tests/wordpress-style/index.test.d.ts +1 -0
  53. package/dist/next/tests/wordpress-style-2/field.d.ts +2 -0
  54. package/dist/next/tests/wordpress-style-2/index.test.d.ts +1 -0
  55. package/dist/next/tests/wordpress-style-2-block-with-children/field.d.ts +2 -0
  56. package/dist/next/tests/wordpress-style-2-block-with-children/index.test.d.ts +1 -0
  57. package/dist/next/tests/wordpress-style-2-with-children/field.d.ts +2 -0
  58. package/dist/next/tests/wordpress-style-2-with-children/index.test.d.ts +1 -0
  59. package/dist/next/util.d.ts +3 -0
  60. package/dist/parse/acorn.d.ts +2 -2
  61. package/dist/parse/index.d.ts +3 -3
  62. package/dist/parse/mdx.d.ts +4 -4
  63. package/dist/parse/parseShortcode.d.ts +2 -4
  64. package/dist/parse/remarkToPlate.d.ts +2 -2
  65. package/dist/stringify/acorn.d.ts +4 -4
  66. package/dist/stringify/index.d.ts +5 -5
  67. package/dist/stringify/marks.d.ts +2 -2
  68. package/dist/stringify/stringifyShortcode.d.ts +2 -4
  69. package/dist/tests/autotest/_config.d.ts +2 -2
  70. package/dist/tests/setup.d.ts +4 -4
  71. package/package.json +53 -47
  72. /package/dist/{tests/temp/shortcodes.test.d.ts → next/tests/block-level-1/index.test.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/mdx",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "typings": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -23,51 +23,55 @@
23
23
  ]
24
24
  },
25
25
  "dependencies": {
26
- "@tinacms/schema-tools": "1.3.1",
26
+ "@tinacms/schema-tools": "1.3.3",
27
+ "acorn": "8.8.2",
28
+ "ccount": "2.0.1",
29
+ "concat-md": "0.5.1",
30
+ "estree-util-is-identifier-name": "2.1.0",
31
+ "lodash-es": "4.17.21",
32
+ "mdast": "3.0.0",
33
+ "mdast-util-compact": "4.1.1",
34
+ "mdast-util-directive": "2.2.4",
35
+ "mdast-util-from-markdown": "1.3.0",
36
+ "mdast-util-frontmatter": "1.0.1",
37
+ "mdast-util-gfm": "2.0.2",
38
+ "mdast-util-gfm-table": "1.0.7",
39
+ "mdast-util-mdx": "2.0.1",
40
+ "mdast-util-mdx-jsx": "2.1.2",
41
+ "mdast-util-to-markdown": "1.5.0",
42
+ "mdast-util-toc": "6.1.1",
43
+ "micromark": "3.1.0",
44
+ "micromark-core-commonmark": "1.0.6",
45
+ "micromark-extension-directive": "2.1.2",
46
+ "micromark-extension-frontmatter": "1.0.0",
47
+ "micromark-extension-gfm": "2.0.1",
27
48
  "@types/mdast": "^3.0.10",
28
49
  "@types/unist": "^2.0.6",
29
- "acorn": "^8.7.1",
30
- "concat-md": "^0.5.0",
31
- "lodash-es": "^4.17.21",
32
- "mdast": "^3.0.0",
33
- "mdast-util-directive": "^2.2.2",
34
- "mdast-util-from-markdown": "^1.3.0",
35
- "mdast-util-frontmatter": "^1.0.0",
36
- "mdast-util-gfm": "^2.0.1",
37
- "mdast-util-gfm-table": "^1.0.6",
38
- "mdast-util-mdx": "2.0.0",
39
- "mdast-util-mdx-jsx": "^2.0.1",
40
- "mdast-util-to-markdown": "^1.3.0",
41
- "mdast-util-toc": "^6.1.0",
42
- "micromark": "^3.1.0",
43
- "micromark-core-commonmark": "^1.0.6",
44
- "micromark-extension-directive": "^2.1.2",
45
- "micromark-extension-frontmatter": "^1.0.0",
46
- "micromark-extension-gfm": "^2.0.1",
47
50
  "micromark-extension-mdx": "1.0.0",
48
51
  "micromark-extension-mdx-jsx": "1.0.3",
49
52
  "micromark-extension-mdxjs": "1.0.0",
50
- "micromark-factory-space": "^1.0.0",
51
- "micromark-factory-whitespace": "^1.0.0",
52
- "micromark-util-character": "^1.1.0",
53
- "micromark-util-chunked": "^1.0.0",
54
- "micromark-util-classify-character": "^1.0.0",
55
- "micromark-util-normalize-identifier": "^1.0.0",
56
- "micromark-util-resolve-all": "^1.0.0",
57
- "micromark-util-symbol": "^1.0.1",
58
- "micromark-util-types": "^1.0.2",
59
- "parse-entities": "^4.0.0",
53
+ "micromark-factory-mdx-expression": "1.0.7",
54
+ "micromark-factory-space": "1.0.0",
55
+ "micromark-factory-whitespace": "1.0.0",
56
+ "micromark-util-character": "1.1.0",
57
+ "micromark-util-chunked": "1.0.0",
58
+ "micromark-util-classify-character": "1.0.0",
59
+ "micromark-util-normalize-identifier": "1.0.0",
60
+ "micromark-util-resolve-all": "1.0.0",
61
+ "micromark-util-symbol": "1.0.1",
62
+ "micromark-util-types": "1.0.2",
63
+ "parse-entities": "4.0.1",
60
64
  "prettier": "^2.7.1",
61
- "remark": "^14.0.2",
62
- "remark-mdx": "^2.1.2",
63
- "stringify-entities": "^4.0.3",
64
- "typedoc": "^0.23.21",
65
- "typedoc-plugin-markdown": "^3.13.6",
66
- "unist-util-source": "^4.0.2",
67
- "unist-util-visit": "^4.1.0",
68
- "unist-util-visit-parents": "^5.1.3",
69
- "uvu": "^0.5.6",
70
- "vfile": "^4.2.0"
65
+ "remark": "14.0.2",
66
+ "remark-mdx": "2.3.0",
67
+ "stringify-entities": "4.0.3",
68
+ "unist-util-source": "4.0.2",
69
+ "unist-util-stringify-position": "3.0.3",
70
+ "unist-util-visit": "4.1.2",
71
+ "unist-util-visit-parents": "5.1.3",
72
+ "uvu": "0.5.6",
73
+ "vfile": "5.3.7",
74
+ "vfile-message": "3.1.4"
71
75
  },
72
76
  "publishConfig": {
73
77
  "registry": "https://registry.npmjs.org"
@@ -81,16 +85,16 @@
81
85
  "@swc/jest": "^0.2.21",
82
86
  "@tailwindcss/forms": "^0.5.3",
83
87
  "@tailwindcss/typography": "^0.5.9",
84
- "@tinacms/scripts": "1.0.2",
88
+ "@tinacms/scripts": "1.0.3",
89
+ "@types/estree": "1.0.0",
90
+ "@types/estree-jsx": "1.0.0",
91
+ "@types/mdast": "3.0.10",
92
+ "@types/unist": "2.0.6",
85
93
  "@types/cors": "^2.8.7",
86
- "@types/estree": "^0.0.50",
87
- "@types/estree-jsx": "^1.0.0",
88
- "@types/express": "^4.17.8",
89
94
  "@types/fs-extra": "^9.0.2",
90
95
  "@types/jest": "^26.0.4",
91
96
  "@types/js-yaml": "^3.12.5",
92
97
  "@types/lodash-es": "4.17.6",
93
- "@types/mdast": "3.0.7",
94
98
  "@types/node": "^14.18.21",
95
99
  "@types/normalize-path": "^3.0.0",
96
100
  "@types/prettier": "^2.6.3",
@@ -104,7 +108,6 @@
104
108
  "jest-diff": "^28.1.1",
105
109
  "jest-file-snapshot": "^0.5.0",
106
110
  "jest-matcher-utils": "^28.1.1",
107
- "mdast": "^3.0.0",
108
111
  "nodemon": "2.0.19",
109
112
  "postcss": "^8.4.21",
110
113
  "react": "^18.2.0",
@@ -112,9 +115,12 @@
112
115
  "react-monaco-editor": "^0.51.0",
113
116
  "tailwindcss": "^3.2.4",
114
117
  "ts-node": "^10.8.2",
118
+ "typedoc": "^0.23.21",
119
+ "typedoc-plugin-markdown": "^3.13.6",
115
120
  "typescript": "^4.7.4",
116
121
  "vite": "^3.0.2",
117
- "vitest": "^0.18.0"
122
+ "vitest": "^0.18.0",
123
+ "concat-md": "^0.5.1"
118
124
  },
119
125
  "scripts": {
120
126
  "types": "yarn tsc",