@tinacms/mdx 0.0.0-63faff7-20241010071043 → 0.0.0-7775116-20241011010325
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
CHANGED
|
@@ -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",
|
|
@@ -39558,12 +39552,6 @@ var blockElement2 = (content3, field, imageCallback) => {
|
|
|
39558
39552
|
type: "paragraph",
|
|
39559
39553
|
children: eat3(content3.children, field, imageCallback)
|
|
39560
39554
|
};
|
|
39561
|
-
case "mermaid":
|
|
39562
|
-
return {
|
|
39563
|
-
type: "code",
|
|
39564
|
-
lang: "mermaid",
|
|
39565
|
-
value: content3.value
|
|
39566
|
-
};
|
|
39567
39555
|
case "code_block":
|
|
39568
39556
|
return {
|
|
39569
39557
|
type: "code",
|
|
@@ -42138,7 +42126,7 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
42138
42126
|
case "heading":
|
|
42139
42127
|
return heading2(content4);
|
|
42140
42128
|
case "code":
|
|
42141
|
-
return
|
|
42129
|
+
return code3(content4);
|
|
42142
42130
|
case "paragraph":
|
|
42143
42131
|
return paragraph2(content4);
|
|
42144
42132
|
case "mdxJsxFlowElement":
|
|
@@ -42285,19 +42273,6 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
42285
42273
|
);
|
|
42286
42274
|
}
|
|
42287
42275
|
};
|
|
42288
|
-
const parseCode = (content4) => {
|
|
42289
|
-
if (content4.lang === "mermaid") {
|
|
42290
|
-
return mermaid(content4);
|
|
42291
|
-
}
|
|
42292
|
-
return code3(content4);
|
|
42293
|
-
};
|
|
42294
|
-
const mermaid = (content4) => {
|
|
42295
|
-
return {
|
|
42296
|
-
type: "mermaid",
|
|
42297
|
-
value: content4.value,
|
|
42298
|
-
children: [{ type: "text", text: "" }]
|
|
42299
|
-
};
|
|
42300
|
-
};
|
|
42301
42276
|
const code3 = (content4) => {
|
|
42302
42277
|
const extra = {};
|
|
42303
42278
|
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",
|
|
@@ -41454,12 +41448,6 @@ var blockElement2 = (content3, field, imageCallback) => {
|
|
|
41454
41448
|
type: "paragraph",
|
|
41455
41449
|
children: eat3(content3.children, field, imageCallback)
|
|
41456
41450
|
};
|
|
41457
|
-
case "mermaid":
|
|
41458
|
-
return {
|
|
41459
|
-
type: "code",
|
|
41460
|
-
lang: "mermaid",
|
|
41461
|
-
value: content3.value
|
|
41462
|
-
};
|
|
41463
41451
|
case "code_block":
|
|
41464
41452
|
return {
|
|
41465
41453
|
type: "code",
|
|
@@ -44043,7 +44031,7 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
44043
44031
|
case "heading":
|
|
44044
44032
|
return heading2(content4);
|
|
44045
44033
|
case "code":
|
|
44046
|
-
return
|
|
44034
|
+
return code3(content4);
|
|
44047
44035
|
case "paragraph":
|
|
44048
44036
|
return paragraph2(content4);
|
|
44049
44037
|
case "mdxJsxFlowElement":
|
|
@@ -44190,19 +44178,6 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
44190
44178
|
);
|
|
44191
44179
|
}
|
|
44192
44180
|
};
|
|
44193
|
-
const parseCode = (content4) => {
|
|
44194
|
-
if (content4.lang === "mermaid") {
|
|
44195
|
-
return mermaid(content4);
|
|
44196
|
-
}
|
|
44197
|
-
return code3(content4);
|
|
44198
|
-
};
|
|
44199
|
-
const mermaid = (content4) => {
|
|
44200
|
-
return {
|
|
44201
|
-
type: "mermaid",
|
|
44202
|
-
value: content4.value,
|
|
44203
|
-
children: [{ type: "text", text: "" }]
|
|
44204
|
-
};
|
|
44205
|
-
};
|
|
44206
44181
|
const code3 = (content4) => {
|
|
44207
44182
|
const extra = {};
|
|
44208
44183
|
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",
|
|
@@ -41430,12 +41424,6 @@ var blockElement2 = (content3, field, imageCallback) => {
|
|
|
41430
41424
|
type: "paragraph",
|
|
41431
41425
|
children: eat3(content3.children, field, imageCallback)
|
|
41432
41426
|
};
|
|
41433
|
-
case "mermaid":
|
|
41434
|
-
return {
|
|
41435
|
-
type: "code",
|
|
41436
|
-
lang: "mermaid",
|
|
41437
|
-
value: content3.value
|
|
41438
|
-
};
|
|
41439
41427
|
case "code_block":
|
|
41440
41428
|
return {
|
|
41441
41429
|
type: "code",
|
|
@@ -44010,7 +43998,7 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
44010
43998
|
case "heading":
|
|
44011
43999
|
return heading2(content4);
|
|
44012
44000
|
case "code":
|
|
44013
|
-
return
|
|
44001
|
+
return code3(content4);
|
|
44014
44002
|
case "paragraph":
|
|
44015
44003
|
return paragraph2(content4);
|
|
44016
44004
|
case "mdxJsxFlowElement":
|
|
@@ -44157,19 +44145,6 @@ var remarkToSlate = (root2, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
44157
44145
|
);
|
|
44158
44146
|
}
|
|
44159
44147
|
};
|
|
44160
|
-
const parseCode = (content4) => {
|
|
44161
|
-
if (content4.lang === "mermaid") {
|
|
44162
|
-
return mermaid(content4);
|
|
44163
|
-
}
|
|
44164
|
-
return code3(content4);
|
|
44165
|
-
};
|
|
44166
|
-
const mermaid = (content4) => {
|
|
44167
|
-
return {
|
|
44168
|
-
type: "mermaid",
|
|
44169
|
-
value: content4.value,
|
|
44170
|
-
children: [{ type: "text", text: "" }]
|
|
44171
|
-
};
|
|
44172
|
-
};
|
|
44173
44148
|
const code3 = (content4) => {
|
|
44174
44149
|
const extra = {};
|
|
44175
44150
|
if (content4.lang)
|
package/dist/parse/plate.d.ts
CHANGED
|
@@ -140,18 +140,10 @@ export type TableElement = {
|
|
|
140
140
|
children: TableRowElement[];
|
|
141
141
|
props: Record<string, unknown>;
|
|
142
142
|
};
|
|
143
|
-
/**
|
|
144
|
-
* @group MermaidElement
|
|
145
|
-
*/
|
|
146
|
-
export type MermaidElement = {
|
|
147
|
-
type: 'mermaid';
|
|
148
|
-
value: string;
|
|
149
|
-
children: [EmptyTextElement];
|
|
150
|
-
};
|
|
151
143
|
/**
|
|
152
144
|
* @group BlockElement
|
|
153
145
|
*/
|
|
154
|
-
export type BlockElement = BlockquoteElement | CodeBlockElement | HeadingElement | HrElement | HTMLElement | ImageElement | InvalidMarkdownElement | ListItemElement | MdxBlockElement | ParagraphElement |
|
|
146
|
+
export type BlockElement = BlockquoteElement | CodeBlockElement | HeadingElement | HrElement | HTMLElement | ImageElement | InvalidMarkdownElement | ListItemElement | MdxBlockElement | ParagraphElement | OrderedListElement | UnorderedListElement | TableCellElement | TableRowElement | TableElement;
|
|
155
147
|
/**
|
|
156
148
|
* @group InlineElement
|
|
157
149
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/mdx",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-7775116-20241011010325",
|
|
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": "
|
|
59
|
+
"@tinacms/schema-tools": "1.6.5"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"registry": "https://registry.npmjs.org"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript": "^5.6.2",
|
|
81
81
|
"vite": "^4.5.5",
|
|
82
82
|
"vitest": "^0.32.4",
|
|
83
|
-
"@tinacms/scripts": "0.0.0-
|
|
83
|
+
"@tinacms/scripts": "0.0.0-7775116-20241011010325"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"types": "tsc",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|