@tinacms/mdx 0.0.0-00d7b85-20251222014449
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/LICENSE +176 -0
- package/dist/extensions/tina-shortcodes/extension.d.ts +3 -0
- package/dist/extensions/tina-shortcodes/factory-attributes.d.ts +2 -0
- package/dist/extensions/tina-shortcodes/factory-name.d.ts +2 -0
- package/dist/extensions/tina-shortcodes/from-markdown.d.ts +2 -0
- package/dist/extensions/tina-shortcodes/shortcode-container.d.ts +3 -0
- package/dist/extensions/tina-shortcodes/shortcode-leaf.d.ts +5 -0
- package/dist/extensions/tina-shortcodes/to-markdown.d.ts +3 -0
- package/dist/index.browser.js +43058 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +44924 -0
- package/dist/next/index.d.ts +2 -0
- package/dist/next/parse/index.d.ts +2 -0
- package/dist/next/parse/markdown.d.ts +2 -0
- package/dist/next/parse/post-processing.d.ts +3 -0
- package/dist/next/shortcodes/index.d.ts +2 -0
- package/dist/next/shortcodes/lib/factory-tag.d.ts +4 -0
- package/dist/next/shortcodes/lib/jsx-flow.d.ts +3 -0
- package/dist/next/shortcodes/lib/jsx-text.d.ts +3 -0
- package/dist/next/shortcodes/lib/syntax.d.ts +18 -0
- package/dist/next/shortcodes/lib/util.d.ts +3 -0
- package/dist/next/shortcodes/mdast/index.d.ts +106 -0
- package/dist/next/stringify/acorn.d.ts +21 -0
- package/dist/next/stringify/index.d.ts +3 -0
- package/dist/next/stringify/marks.d.ts +8 -0
- package/dist/next/stringify/pre-processing.d.ts +8 -0
- package/dist/next/stringify/to-markdown.d.ts +3 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-block-with-html-children-1/field.d.ts +2 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-block-with-html-children-1/index.test.d.ts +1 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-block-with-html-children-2/field.d.ts +2 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-block-with-html-children-2/index.test.d.ts +1 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-with-duplicates/field.d.ts +2 -0
- package/dist/next/tests/FIXME-markdown-shortcodes-with-duplicates/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-autoformat-blockquote-in-list/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-autoformat-blockquote-in-list/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-autoformat-heading-in-blockquote/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-autoformat-heading-in-blockquote/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-autoformat-html/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-autoformat-html/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-autoformat-list-item-style/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-autoformat-list-item-style/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-autoformat-syntax/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-autoformat-syntax/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-break/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-break/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-code-block/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-code-block/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-empty/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-empty/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-image/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-image/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-image-callback/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-image-callback/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-image-in-link/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-image-in-link/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-image-json-as-top-level/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-image-json-as-top-level/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-invalid-mdx/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-invalid-mdx/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-kitchen-sink/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-kitchen-sink/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-links/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-links/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-lists/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-lists/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-marks/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-marks/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-basic-marks-strikethrough/field.d.ts +2 -0
- package/dist/next/tests/markdown-basic-marks-strikethrough/index.test.d.ts +1 -0
- 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/markdown-html-issues/field.d.ts +2 -0
- package/dist/next/tests/markdown-html-issues/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-mermaid/field.d.ts +2 -0
- package/dist/next/tests/markdown-mermaid/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-inline/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-inline/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-inline-with-children/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-inline-with-children/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-invalid/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-invalid/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-invalid-2/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-invalid-2/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-invalid-3/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-invalid-3/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-invalid-4/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-invalid-4/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-markdoc/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-markdoc/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-nested-rich-text-children/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-nested-rich-text-children/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-rich-text-children/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-rich-text-children/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-rich-text-children-2/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-rich-text-children-2/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-rich-text-children-3/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-rich-text-children-3/index.test.d.ts +1 -0
- package/dist/next/tests/markdown-shortcodes-unclosed/field.d.ts +2 -0
- package/dist/next/tests/markdown-shortcodes-unclosed/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-basic-nested-objects/field.d.ts +2 -0
- package/dist/next/tests/mdx-basic-nested-objects/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-basic-nested-objects-2/field.d.ts +2 -0
- package/dist/next/tests/mdx-basic-nested-objects-2/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-basic-nested-objects-3/field.d.ts +2 -0
- package/dist/next/tests/mdx-basic-nested-objects-3/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/next/tests/mdx-block-object-list-field/field.d.ts +2 -0
- package/dist/next/tests/mdx-block-object-list-field/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-block-object-list-template/field.d.ts +2 -0
- package/dist/next/tests/mdx-block-object-list-template/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-block-scalar-fields/field.d.ts +2 -0
- package/dist/next/tests/mdx-block-scalar-fields/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-blocks-autoformat-nested-mdx/field.d.ts +2 -0
- package/dist/next/tests/mdx-blocks-autoformat-nested-mdx/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-blocks-autoformat-nested-mdx-null-children/field.d.ts +2 -0
- package/dist/next/tests/mdx-blocks-autoformat-nested-mdx-null-children/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-blocks-multiple-rich-text-fields/field.d.ts +2 -0
- package/dist/next/tests/mdx-blocks-multiple-rich-text-fields/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-blocks-rich-text-children/field.d.ts +2 -0
- package/dist/next/tests/mdx-blocks-rich-text-children/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-blocks-rich-text-children-on-one-line/field.d.ts +2 -0
- package/dist/next/tests/mdx-blocks-rich-text-children-on-one-line/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-blocks-rich-text-children-with-an-empty-object-value/field.d.ts +2 -0
- package/dist/next/tests/mdx-blocks-rich-text-children-with-an-empty-object-value/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-table-like-field/field.d.ts +2 -0
- package/dist/next/tests/mdx-table-like-field/index.test.d.ts +1 -0
- package/dist/next/tests/mdx-unregistered-component/field.d.ts +2 -0
- package/dist/next/tests/mdx-unregistered-component/index.test.d.ts +1 -0
- package/dist/next/tests/slatejson/field.d.ts +2 -0
- package/dist/next/tests/slatejson/index.test.d.ts +1 -0
- package/dist/next/tests/unrecognized-shortcodes/field.d.ts +2 -0
- package/dist/next/tests/unrecognized-shortcodes/index.test.d.ts +1 -0
- package/dist/next/tests/util.d.ts +5 -0
- package/dist/next/tests/wordpress-style/field.d.ts +2 -0
- package/dist/next/tests/wordpress-style/index.test.d.ts +1 -0
- package/dist/next/tests/wordpress-style-2/field.d.ts +2 -0
- package/dist/next/tests/wordpress-style-2/index.test.d.ts +1 -0
- package/dist/next/tests/wordpress-style-2-block-with-children/field.d.ts +2 -0
- package/dist/next/tests/wordpress-style-2-block-with-children/index.test.d.ts +1 -0
- package/dist/next/tests/wordpress-style-2-with-children/field.d.ts +2 -0
- package/dist/next/tests/wordpress-style-2-with-children/index.test.d.ts +1 -0
- package/dist/next/util.d.ts +3 -0
- package/dist/parse/acorn.d.ts +4 -0
- package/dist/parse/acorn.test.d.ts +1 -0
- package/dist/parse/index.d.ts +64 -0
- package/dist/parse/mdx.d.ts +13 -0
- package/dist/parse/parseShortcode.d.ts +7 -0
- package/dist/parse/parseShortcode.test.d.ts +1 -0
- package/dist/parse/plate.d.ts +240 -0
- package/dist/parse/remarkToPlate.d.ts +31 -0
- package/dist/parse/remarkToPlate.test.d.ts +1 -0
- package/dist/stringify/acorn.d.ts +21 -0
- package/dist/stringify/index.d.ts +32 -0
- package/dist/stringify/marks.d.ts +13 -0
- package/dist/stringify/stringifyShortcode.d.ts +7 -0
- package/dist/stringify/stringifyShortcode.test.d.ts +1 -0
- package/package.json +92 -0
- package/readme.md +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TokenizeContext, Effects, State } from 'micromark-util-types';
|
|
2
|
+
import type { Acorn, AcornOptions } from 'micromark-factory-mdx-expression';
|
|
3
|
+
import { Pattern } from './syntax';
|
|
4
|
+
export declare function factoryTag(this: TokenizeContext, effects: Effects, ok: State, nok: State, acorn: Acorn | undefined, acornOptions: AcornOptions | undefined, addResult: boolean | undefined, allowLazy: boolean | undefined, tagType: string, tagMarkerType: string, tagClosingMarkerType: string, tagSelfClosingMarker: string, tagNameType: string, tagNamePrimaryType: string, tagNameMemberMarkerType: string, tagNameMemberType: string, tagNamePrefixMarkerType: string, tagNameLocalType: string, tagExpressionAttributeType: string, tagExpressionAttributeMarkerType: string, tagExpressionAttributeValueType: string, tagAttributeType: string, tagAttributeNameType: string, tagAttributeNamePrimaryType: string, tagAttributeNamePrefixMarkerType: string, tagAttributeNameLocalType: string, tagAttributeInitializerMarkerType: string, tagAttributeValueLiteralType: string, tagAttributeValueLiteralMarkerType: string, tagAttributeValueLiteralValueType: string, tagAttributeValueExpressionType: string, tagAttributeValueExpressionMarkerType: string, tagAttributeValueExpressionValueType: string, pattern: Pattern): State;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Construct } from 'micromark-util-types';
|
|
2
|
+
import type { Acorn, AcornOptions } from 'micromark-factory-mdx-expression';
|
|
3
|
+
export declare const jsxFlow: (acorn: Acorn | undefined, acornOptions: AcornOptions | undefined, addResult: boolean | undefined, pattern: any) => Construct;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Construct } from 'micromark-util-types';
|
|
2
|
+
import type { Acorn, AcornOptions } from 'micromark-factory-mdx-expression';
|
|
3
|
+
export declare const jsxText: (acorn: Acorn | undefined, acornOptions: AcornOptions | undefined, addResult: boolean | undefined, pattern: any) => Construct;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Extension } from 'micromark-util-types';
|
|
2
|
+
import type { Acorn, AcornOptions } from 'micromark-factory-mdx-expression';
|
|
3
|
+
export type Pattern = {
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
name: string;
|
|
7
|
+
templateName: string;
|
|
8
|
+
type: 'inline' | 'flow';
|
|
9
|
+
leaf: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type Options = {
|
|
12
|
+
acorn?: Acorn;
|
|
13
|
+
acornOptions?: AcornOptions;
|
|
14
|
+
patterns?: Pattern[];
|
|
15
|
+
addResult?: boolean;
|
|
16
|
+
skipHTML?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function mdxJsx(options?: Options): Extension;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Pattern } from '../lib/syntax';
|
|
2
|
+
import type { Handle as FromMarkdownHandle } from 'mdast-util-from-markdown';
|
|
3
|
+
import type { Handle as ToMarkdownHandle, Options } from 'mdast-util-to-markdown';
|
|
4
|
+
export declare function mdxJsxFromMarkdown({ patterns }: {
|
|
5
|
+
patterns: Pattern[];
|
|
6
|
+
}): {
|
|
7
|
+
canContainEols: string[];
|
|
8
|
+
enter: {
|
|
9
|
+
mdxJsxFlowTag: FromMarkdownHandle;
|
|
10
|
+
mdxJsxFlowTagClosingMarker: FromMarkdownHandle;
|
|
11
|
+
mdxJsxFlowTagAttribute: FromMarkdownHandle;
|
|
12
|
+
mdxJsxFlowTagExpressionAttribute: FromMarkdownHandle;
|
|
13
|
+
mdxJsxFlowTagAttributeValueLiteral: FromMarkdownHandle;
|
|
14
|
+
mdxJsxFlowTagAttributeValueExpression: FromMarkdownHandle;
|
|
15
|
+
mdxJsxFlowTagSelfClosingMarker: FromMarkdownHandle;
|
|
16
|
+
mdxJsxTextTag: FromMarkdownHandle;
|
|
17
|
+
mdxJsxTextTagClosingMarker: FromMarkdownHandle;
|
|
18
|
+
mdxJsxTextTagAttribute: FromMarkdownHandle;
|
|
19
|
+
mdxJsxTextTagExpressionAttribute: FromMarkdownHandle;
|
|
20
|
+
mdxJsxTextTagAttributeValueLiteral: FromMarkdownHandle;
|
|
21
|
+
mdxJsxTextTagAttributeValueExpression: FromMarkdownHandle;
|
|
22
|
+
mdxJsxTextTagSelfClosingMarker: FromMarkdownHandle;
|
|
23
|
+
};
|
|
24
|
+
exit: {
|
|
25
|
+
mdxJsxFlowTagClosingMarker: FromMarkdownHandle;
|
|
26
|
+
mdxJsxFlowTagNamePrimary: FromMarkdownHandle;
|
|
27
|
+
mdxJsxFlowTagNameMember: FromMarkdownHandle;
|
|
28
|
+
mdxJsxFlowTagNameLocal: FromMarkdownHandle;
|
|
29
|
+
mdxJsxFlowTagExpressionAttribute: FromMarkdownHandle;
|
|
30
|
+
mdxJsxFlowTagExpressionAttributeValue: FromMarkdownHandle;
|
|
31
|
+
mdxJsxFlowTagAttributeNamePrimary: FromMarkdownHandle;
|
|
32
|
+
mdxJsxFlowTagAttributeNameLocal: FromMarkdownHandle;
|
|
33
|
+
mdxJsxFlowTagAttributeValueLiteral: FromMarkdownHandle;
|
|
34
|
+
mdxJsxFlowTagAttributeValueLiteralValue: FromMarkdownHandle;
|
|
35
|
+
mdxJsxFlowTagAttributeValueExpression: FromMarkdownHandle;
|
|
36
|
+
mdxJsxFlowTagAttributeValueExpressionValue: FromMarkdownHandle;
|
|
37
|
+
mdxJsxFlowTagSelfClosingMarker: FromMarkdownHandle;
|
|
38
|
+
mdxJsxFlowTag: FromMarkdownHandle;
|
|
39
|
+
mdxJsxTextTagClosingMarker: FromMarkdownHandle;
|
|
40
|
+
mdxJsxTextTagNamePrimary: FromMarkdownHandle;
|
|
41
|
+
mdxJsxTextTagNameMember: FromMarkdownHandle;
|
|
42
|
+
mdxJsxTextTagNameLocal: FromMarkdownHandle;
|
|
43
|
+
mdxJsxTextTagExpressionAttribute: FromMarkdownHandle;
|
|
44
|
+
mdxJsxTextTagExpressionAttributeValue: FromMarkdownHandle;
|
|
45
|
+
mdxJsxTextTagAttributeNamePrimary: FromMarkdownHandle;
|
|
46
|
+
mdxJsxTextTagAttributeNameLocal: FromMarkdownHandle;
|
|
47
|
+
mdxJsxTextTagAttributeValueLiteral: FromMarkdownHandle;
|
|
48
|
+
mdxJsxTextTagAttributeValueLiteralValue: FromMarkdownHandle;
|
|
49
|
+
mdxJsxTextTagAttributeValueExpression: FromMarkdownHandle;
|
|
50
|
+
mdxJsxTextTagAttributeValueExpressionValue: FromMarkdownHandle;
|
|
51
|
+
mdxJsxTextTagSelfClosingMarker: FromMarkdownHandle;
|
|
52
|
+
mdxJsxTextTag: FromMarkdownHandle;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Create an extension for `mdast-util-to-markdown` to enable MDX JSX.
|
|
57
|
+
*
|
|
58
|
+
* This extension configures `mdast-util-to-markdown` with
|
|
59
|
+
* `options.fences: true` and `options.resourceLink: true` too, do not
|
|
60
|
+
* overwrite them!
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare const mdxJsxToMarkdown: (options: Options & {
|
|
64
|
+
printWidth?: number;
|
|
65
|
+
quoteSmart?: boolean;
|
|
66
|
+
tightSelfClosing?: boolean;
|
|
67
|
+
patterns: Pattern[];
|
|
68
|
+
}) => {
|
|
69
|
+
handlers: {
|
|
70
|
+
mdxJsxFlowElement: ToMarkdownHandle;
|
|
71
|
+
mdxJsxTextElement: ToMarkdownHandle;
|
|
72
|
+
};
|
|
73
|
+
unsafe: ({
|
|
74
|
+
character: string;
|
|
75
|
+
inConstruct: "phrasing"[];
|
|
76
|
+
atBreak?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
atBreak: boolean;
|
|
79
|
+
character: string;
|
|
80
|
+
inConstruct?: undefined;
|
|
81
|
+
})[];
|
|
82
|
+
fences: boolean;
|
|
83
|
+
resourceLink: boolean;
|
|
84
|
+
bullet?: "-" | "*" | "+" | null | undefined;
|
|
85
|
+
bulletOther?: "-" | "*" | "+" | null | undefined;
|
|
86
|
+
bulletOrdered?: "." | ")" | null | undefined;
|
|
87
|
+
bulletOrderedOther?: "." | ")" | null | undefined;
|
|
88
|
+
closeAtx?: boolean | null | undefined;
|
|
89
|
+
emphasis?: "_" | "*" | null | undefined;
|
|
90
|
+
fence?: "~" | "`" | null | undefined;
|
|
91
|
+
incrementListMarker?: boolean | null | undefined;
|
|
92
|
+
listItemIndent?: "tab" | "one" | "mixed" | null | undefined;
|
|
93
|
+
quote?: "\"" | "'" | null | undefined;
|
|
94
|
+
rule?: "-" | "_" | "*" | null | undefined;
|
|
95
|
+
ruleRepetition?: number | null | undefined;
|
|
96
|
+
ruleSpaces?: boolean | null | undefined;
|
|
97
|
+
setext?: boolean | null | undefined;
|
|
98
|
+
strong?: "_" | "*" | null | undefined;
|
|
99
|
+
tightDefinitions?: boolean | null | undefined;
|
|
100
|
+
join?: Array<import("mdast-util-to-markdown").Join> | null | undefined;
|
|
101
|
+
extensions?: Array<Options> | null | undefined;
|
|
102
|
+
printWidth?: number;
|
|
103
|
+
quoteSmart?: boolean;
|
|
104
|
+
tightSelfClosing?: boolean;
|
|
105
|
+
patterns: Pattern[];
|
|
106
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { RichTextField } from '@tinacms/schema-tools';
|
|
2
|
+
import type { MdxJsxAttribute } from 'mdast-util-mdx-jsx';
|
|
3
|
+
import * as Plate from '../../parse/plate';
|
|
4
|
+
import type * as Md from 'mdast';
|
|
5
|
+
export declare const stringifyPropsInline: (element: Plate.MdxInlineElement, field: RichTextField, imageCallback: (url: string) => string) => {
|
|
6
|
+
attributes: MdxJsxAttribute[];
|
|
7
|
+
children: Md.PhrasingContent[];
|
|
8
|
+
};
|
|
9
|
+
export declare function stringifyProps(element: Plate.MdxInlineElement, parentField: RichTextField, flatten: boolean, imageCallback: (url: string) => string): {
|
|
10
|
+
attributes: MdxJsxAttribute[];
|
|
11
|
+
children: Md.PhrasingContent[];
|
|
12
|
+
useDirective: boolean;
|
|
13
|
+
directiveType: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function stringifyProps(element: Plate.MdxBlockElement, parentField: RichTextField, flatten: boolean, imageCallback: (url: string) => string): {
|
|
16
|
+
attributes: MdxJsxAttribute[];
|
|
17
|
+
children: Md.BlockContent[];
|
|
18
|
+
useDirective: boolean;
|
|
19
|
+
directiveType: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function assertShape<T>(value: unknown, callback: (item: any) => boolean, errorMessage?: string): asserts value is T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Md from 'mdast';
|
|
2
|
+
import type * as Plate from '../../parse/plate';
|
|
3
|
+
import type { RichTextField } from '@tinacms/schema-tools';
|
|
4
|
+
type InlineElementWithCallback = Plate.InlineElement & {
|
|
5
|
+
linkifyTextNode?: (arg: Md.Text) => Md.Link;
|
|
6
|
+
};
|
|
7
|
+
export declare const eat: (c: InlineElementWithCallback[], field: RichTextField, imageCallback: (url: string) => string) => Md.PhrasingContent[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RichTextField } from '@tinacms/schema-tools';
|
|
2
|
+
import type * as Md from 'mdast';
|
|
3
|
+
import type * as Plate from '../../parse/plate';
|
|
4
|
+
import type { RootElement } from '../../parse/plate';
|
|
5
|
+
export declare const preProcess: (tree: RootElement, field: RichTextField, imageCallback: (url: string) => string) => Md.Root;
|
|
6
|
+
export declare const rootElement: (content: Plate.RootElement, field: RichTextField, imageCallback: (url: string) => string) => Md.Root;
|
|
7
|
+
export declare const codeLinesToString: (children: any[]) => any[];
|
|
8
|
+
export declare const blockElement: (content: Plate.BlockElement, field: RichTextField, imageCallback: (url: string) => string) => Md.Content | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|