@paragraphcms/parser-vue 0.1.0 → 0.2.0
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.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -17,13 +17,30 @@ type ParagraphTiptapNode = {
|
|
|
17
17
|
marks?: ParagraphTiptapMark[];
|
|
18
18
|
content?: ParagraphTiptapNode[];
|
|
19
19
|
};
|
|
20
|
+
type ParagraphTiptapImageAttrs = {
|
|
21
|
+
mediaId: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
alt: string;
|
|
24
|
+
caption: string;
|
|
25
|
+
src?: string;
|
|
26
|
+
title?: string | null;
|
|
27
|
+
width?: number | null;
|
|
28
|
+
height?: number | null;
|
|
29
|
+
fileName?: string;
|
|
30
|
+
mimeType?: string;
|
|
31
|
+
size?: number | null;
|
|
32
|
+
};
|
|
33
|
+
type ParagraphTiptapImageNode = {
|
|
34
|
+
type: "image";
|
|
35
|
+
attrs: ParagraphTiptapImageAttrs;
|
|
36
|
+
};
|
|
20
37
|
type ParagraphPageContent = string | ParagraphTiptapNode[];
|
|
21
38
|
type ParagraphRenderablePage<TFields = Record<string, unknown>> = {
|
|
22
39
|
content_format?: ParagraphContentFormat | null;
|
|
23
40
|
content?: ParagraphPageContent;
|
|
24
41
|
fields?: TFields;
|
|
25
42
|
};
|
|
26
|
-
type ParagraphComponentSlot = "root" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "strong" | "em" | "u" | "s" | "blockquote" | "code" | "pre" | "ul" | "ol" | "li" | "hr" | "br" | "img" | "figure" | "figcaption" | "
|
|
43
|
+
type ParagraphComponentSlot = "root" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "strong" | "em" | "u" | "s" | "blockquote" | "code" | "pre" | "ul" | "ol" | "li" | "hr" | "br" | "img" | "figure" | "figcaption" | "table" | "thead" | "tbody" | "tr" | "th" | "td" | "faq" | "collapsible" | "summary" | "collapsibleContent" | "taskList" | "taskItem" | "taskCheckbox";
|
|
27
44
|
type ParagraphClassNames = Partial<Record<ParagraphComponentSlot, string>>;
|
|
28
45
|
type ParagraphRenderOptions = {
|
|
29
46
|
classNames?: ParagraphClassNames;
|
|
@@ -140,4 +157,4 @@ declare function renderParagraphDocumentHtml<TFields = Record<string, unknown>>(
|
|
|
140
157
|
className?: string;
|
|
141
158
|
}): string | null;
|
|
142
159
|
|
|
143
|
-
export { type ParagraphClassNames, type ParagraphComponentSlot, ParagraphContent, type ParagraphContentFormat, type ParagraphContentInput, type ParagraphContentProps, type ParagraphPageContent, type ParagraphRenderOptions, type ParagraphRenderablePage, type ParagraphTiptapMark, type ParagraphTiptapNode, createParagraphDocumentHtml, defaultParagraphClassNames, defaultParagraphMarkedOptions, defaultParagraphSanitizeOptions, inferParagraphContentFormat, renderParagraphContentHtml, renderParagraphDocumentHtml, resolveParagraphContentInput, resolveParagraphRootClassName, resolveParagraphSlotClassName, useParagraphContent };
|
|
160
|
+
export { type ParagraphClassNames, type ParagraphComponentSlot, ParagraphContent, type ParagraphContentFormat, type ParagraphContentInput, type ParagraphContentProps, type ParagraphPageContent, type ParagraphRenderOptions, type ParagraphRenderablePage, type ParagraphTiptapImageAttrs, type ParagraphTiptapImageNode, type ParagraphTiptapMark, type ParagraphTiptapNode, createParagraphDocumentHtml, defaultParagraphClassNames, defaultParagraphMarkedOptions, defaultParagraphSanitizeOptions, inferParagraphContentFormat, renderParagraphContentHtml, renderParagraphDocumentHtml, resolveParagraphContentInput, resolveParagraphRootClassName, resolveParagraphSlotClassName, useParagraphContent };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,13 +17,30 @@ type ParagraphTiptapNode = {
|
|
|
17
17
|
marks?: ParagraphTiptapMark[];
|
|
18
18
|
content?: ParagraphTiptapNode[];
|
|
19
19
|
};
|
|
20
|
+
type ParagraphTiptapImageAttrs = {
|
|
21
|
+
mediaId: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
alt: string;
|
|
24
|
+
caption: string;
|
|
25
|
+
src?: string;
|
|
26
|
+
title?: string | null;
|
|
27
|
+
width?: number | null;
|
|
28
|
+
height?: number | null;
|
|
29
|
+
fileName?: string;
|
|
30
|
+
mimeType?: string;
|
|
31
|
+
size?: number | null;
|
|
32
|
+
};
|
|
33
|
+
type ParagraphTiptapImageNode = {
|
|
34
|
+
type: "image";
|
|
35
|
+
attrs: ParagraphTiptapImageAttrs;
|
|
36
|
+
};
|
|
20
37
|
type ParagraphPageContent = string | ParagraphTiptapNode[];
|
|
21
38
|
type ParagraphRenderablePage<TFields = Record<string, unknown>> = {
|
|
22
39
|
content_format?: ParagraphContentFormat | null;
|
|
23
40
|
content?: ParagraphPageContent;
|
|
24
41
|
fields?: TFields;
|
|
25
42
|
};
|
|
26
|
-
type ParagraphComponentSlot = "root" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "strong" | "em" | "u" | "s" | "blockquote" | "code" | "pre" | "ul" | "ol" | "li" | "hr" | "br" | "img" | "figure" | "figcaption" | "
|
|
43
|
+
type ParagraphComponentSlot = "root" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "strong" | "em" | "u" | "s" | "blockquote" | "code" | "pre" | "ul" | "ol" | "li" | "hr" | "br" | "img" | "figure" | "figcaption" | "table" | "thead" | "tbody" | "tr" | "th" | "td" | "faq" | "collapsible" | "summary" | "collapsibleContent" | "taskList" | "taskItem" | "taskCheckbox";
|
|
27
44
|
type ParagraphClassNames = Partial<Record<ParagraphComponentSlot, string>>;
|
|
28
45
|
type ParagraphRenderOptions = {
|
|
29
46
|
classNames?: ParagraphClassNames;
|
|
@@ -140,4 +157,4 @@ declare function renderParagraphDocumentHtml<TFields = Record<string, unknown>>(
|
|
|
140
157
|
className?: string;
|
|
141
158
|
}): string | null;
|
|
142
159
|
|
|
143
|
-
export { type ParagraphClassNames, type ParagraphComponentSlot, ParagraphContent, type ParagraphContentFormat, type ParagraphContentInput, type ParagraphContentProps, type ParagraphPageContent, type ParagraphRenderOptions, type ParagraphRenderablePage, type ParagraphTiptapMark, type ParagraphTiptapNode, createParagraphDocumentHtml, defaultParagraphClassNames, defaultParagraphMarkedOptions, defaultParagraphSanitizeOptions, inferParagraphContentFormat, renderParagraphContentHtml, renderParagraphDocumentHtml, resolveParagraphContentInput, resolveParagraphRootClassName, resolveParagraphSlotClassName, useParagraphContent };
|
|
160
|
+
export { type ParagraphClassNames, type ParagraphComponentSlot, ParagraphContent, type ParagraphContentFormat, type ParagraphContentInput, type ParagraphContentProps, type ParagraphPageContent, type ParagraphRenderOptions, type ParagraphRenderablePage, type ParagraphTiptapImageAttrs, type ParagraphTiptapImageNode, type ParagraphTiptapMark, type ParagraphTiptapNode, createParagraphDocumentHtml, defaultParagraphClassNames, defaultParagraphMarkedOptions, defaultParagraphSanitizeOptions, inferParagraphContentFormat, renderParagraphContentHtml, renderParagraphDocumentHtml, resolveParagraphContentInput, resolveParagraphRootClassName, resolveParagraphSlotClassName, useParagraphContent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paragraphcms/parser-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Vue renderer for Paragraph CMS content.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Paragraph CMS",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"vue": "^3.4.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@paragraphcms/parser-core": "^0.
|
|
38
|
+
"@paragraphcms/parser-core": "^0.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/sanitize-html": "^2.
|
|
41
|
+
"@types/sanitize-html": "^2.16.1",
|
|
42
42
|
"marked": "^15.0.12",
|
|
43
|
-
"sanitize-html": "^2.
|
|
43
|
+
"sanitize-html": "^2.17.5",
|
|
44
44
|
"tsup": "^8.5.1",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"vue": "^3.5.
|
|
46
|
+
"vue": "^3.5.39"
|
|
47
47
|
}
|
|
48
48
|
}
|