@tinacms/mdx 1.3.19 → 1.3.21
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.
- package/dist/index.browser.mjs +20214 -19393
- package/dist/index.js +20192 -19368
- package/dist/index.mjs +20164 -19343
- package/dist/next/tests/markdown-basic-tables/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-tables/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-basic-tables/field.d.ts +2 -0
- package/dist/next/tests/mdx-basic-tables/index.test.d.ts +1 -0
- package/dist/parse/mdx.d.ts +1 -1
- package/dist/parse/remarkToPlate.d.ts +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/parse/mdx.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ import { ContainerDirective } from 'mdast-util-directive';
|
|
|
10
10
|
import { LeafDirective } from 'mdast-util-directive/lib';
|
|
11
11
|
export declare function mdxJsxElement(node: MdxJsxTextElement, field: RichTextType, imageCallback: (url: string) => string): Plate.MdxInlineElement;
|
|
12
12
|
export declare function mdxJsxElement(node: MdxJsxFlowElement, field: RichTextType, imageCallback: (url: string) => string): Plate.MdxBlockElement;
|
|
13
|
-
export declare const directiveElement: (node: ContainerDirective | LeafDirective, field: RichTextType, imageCallback: (url: string) => string, raw?: string
|
|
13
|
+
export declare const directiveElement: (node: ContainerDirective | LeafDirective, field: RichTextType, imageCallback: (url: string) => string, raw?: string) => Plate.BlockElement | Plate.ParagraphElement;
|
|
@@ -23,7 +23,7 @@ declare module 'mdast' {
|
|
|
23
23
|
mdxJsxFlowElement: MdxJsxFlowElement;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export declare const remarkToSlate: (root: Md.Root | MdxJsxFlowElement | MdxJsxTextElement | ContainerDirective, field: RichTextType, imageCallback: (url: string) => string, raw?: string
|
|
26
|
+
export declare const remarkToSlate: (root: Md.Root | MdxJsxFlowElement | MdxJsxTextElement | ContainerDirective, field: RichTextType, imageCallback: (url: string) => string, raw?: string, skipMDXProcess?: boolean) => Plate.RootElement;
|
|
27
27
|
export declare class RichTextParseError extends Error {
|
|
28
28
|
position?: Plate.Position;
|
|
29
29
|
constructor(message: string, position?: Plate.Position);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/mdx",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.21",
|
|
4
4
|
"typings": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "dist/index.browser.mjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tinacms/schema-tools": "1.4.
|
|
30
|
+
"@tinacms/schema-tools": "1.4.13",
|
|
31
31
|
"acorn": "8.8.2",
|
|
32
32
|
"ccount": "2.0.1",
|
|
33
33
|
"estree-util-is-identifier-name": "2.1.0",
|
|
@@ -35,9 +35,11 @@
|
|
|
35
35
|
"mdast-util-compact": "4.1.1",
|
|
36
36
|
"mdast-util-directive": "2.2.4",
|
|
37
37
|
"mdast-util-from-markdown": "1.3.0",
|
|
38
|
+
"mdast-util-gfm": "2.0.2",
|
|
38
39
|
"mdast-util-mdx": "2.0.1",
|
|
39
40
|
"mdast-util-mdx-jsx": "2.1.2",
|
|
40
41
|
"mdast-util-to-markdown": "1.5.0",
|
|
42
|
+
"micromark-extension-gfm": "2.0.3",
|
|
41
43
|
"micromark-factory-mdx-expression": "1.0.7",
|
|
42
44
|
"micromark-factory-space": "1.0.0",
|
|
43
45
|
"micromark-factory-whitespace": "1.0.0",
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
"prettier": "^2.7.1",
|
|
49
51
|
"remark": "14.0.2",
|
|
50
52
|
"remark-mdx": "2.3.0",
|
|
53
|
+
"remark-gfm": "^2.0.0",
|
|
51
54
|
"stringify-entities": "4.0.3",
|
|
52
55
|
"unist-util-source": "4.0.2",
|
|
53
56
|
"unist-util-stringify-position": "3.0.3",
|
|
@@ -81,10 +84,10 @@
|
|
|
81
84
|
"concat-md": "^0.5.1"
|
|
82
85
|
},
|
|
83
86
|
"scripts": {
|
|
84
|
-
"types": "
|
|
87
|
+
"types": "tsc",
|
|
85
88
|
"build": "tinacms-scripts build",
|
|
86
89
|
"docs": "typedoc --plugin typedoc-plugin-markdown src/parse/plate.ts --theme markdown && concat-md --decrease-title-levels --dir-name-as-title docs > spec.md",
|
|
87
|
-
"serve": "
|
|
90
|
+
"serve": "nodemon dist/server.js",
|
|
88
91
|
"test": "vitest",
|
|
89
92
|
"coverage": "vitest run --coverage",
|
|
90
93
|
"test-watch": "jest --watch"
|