@tinacms/app 0.0.0-20230213172321 → 0.0.0-20230213182054
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.
|
@@ -36321,17 +36321,17 @@ var parseMDX = (value, field, imageCallback) => {
|
|
|
36321
36321
|
});
|
|
36322
36322
|
tree = mdxToAst(preprocessedString);
|
|
36323
36323
|
}
|
|
36324
|
+
if (tree) {
|
|
36325
|
+
return remarkToSlate(tree, field, imageCallback, value);
|
|
36326
|
+
} else {
|
|
36327
|
+
return { type: "root", children: [] };
|
|
36328
|
+
}
|
|
36324
36329
|
} catch (e) {
|
|
36325
36330
|
if (e instanceof RichTextParseError) {
|
|
36326
36331
|
return invalidMarkdown(e, value);
|
|
36327
36332
|
}
|
|
36328
36333
|
return invalidMarkdown(new RichTextParseError(e.message), value);
|
|
36329
36334
|
}
|
|
36330
|
-
if (tree) {
|
|
36331
|
-
return remarkToSlate(tree, field, imageCallback, value);
|
|
36332
|
-
} else {
|
|
36333
|
-
return { type: "root", children: [] };
|
|
36334
|
-
}
|
|
36335
36335
|
};
|
|
36336
36336
|
var invalidMarkdown = (e, value) => {
|
|
36337
36337
|
const extra = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20230213182054",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@types/react": "17.0.2",
|
|
38
38
|
"@types/react-dom": "17.0.2",
|
|
39
39
|
"@tinacms/scripts": "1.0.2",
|
|
40
|
-
"tinacms": "
|
|
41
|
-
"@tinacms/toolkit": "
|
|
42
|
-
"@tinacms/mdx": "0.0.0-
|
|
40
|
+
"tinacms": "0.0.0-20230213182054",
|
|
41
|
+
"@tinacms/toolkit": "0.0.0-20230213182054",
|
|
42
|
+
"@tinacms/mdx": "0.0.0-20230213182054",
|
|
43
43
|
"jest": "^27.0.6"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|