@schneiderelli/cms-runtime 0.0.2 → 0.0.3
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/types.d.ts +14 -10
- package/dist/types.js +0 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface BaseBlock {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TextBlock extends BaseBlock {
|
|
2
6
|
type: "text";
|
|
3
7
|
content: string;
|
|
4
8
|
}
|
|
5
|
-
export interface HeadingBlock {
|
|
9
|
+
export interface HeadingBlock extends BaseBlock {
|
|
6
10
|
type: "heading";
|
|
7
11
|
level: number;
|
|
8
12
|
text: string;
|
|
9
13
|
}
|
|
10
|
-
export interface ImageBlock {
|
|
14
|
+
export interface ImageBlock extends BaseBlock {
|
|
11
15
|
type: "image";
|
|
12
16
|
src: string;
|
|
13
17
|
alt?: string;
|
|
14
18
|
}
|
|
15
|
-
export interface MarkdownBlock {
|
|
19
|
+
export interface MarkdownBlock extends BaseBlock {
|
|
16
20
|
type: "markdown";
|
|
17
21
|
content: string;
|
|
18
22
|
}
|
|
19
|
-
export interface QuoteBlock {
|
|
23
|
+
export interface QuoteBlock extends BaseBlock {
|
|
20
24
|
type: "quote";
|
|
21
25
|
text: string;
|
|
22
26
|
author?: string;
|
|
23
27
|
}
|
|
24
|
-
export interface DividerBlock {
|
|
28
|
+
export interface DividerBlock extends BaseBlock {
|
|
25
29
|
type: "divider";
|
|
26
30
|
}
|
|
27
|
-
export interface FaqEntry {
|
|
31
|
+
export interface FaqEntry extends BaseBlock {
|
|
28
32
|
question: string;
|
|
29
33
|
answer: string;
|
|
30
34
|
}
|
|
31
|
-
export interface FaqBlock {
|
|
35
|
+
export interface FaqBlock extends BaseBlock {
|
|
32
36
|
type: "faq";
|
|
33
37
|
items: FaqEntry[];
|
|
34
38
|
}
|
|
35
|
-
export interface HowToStep {
|
|
39
|
+
export interface HowToStep extends BaseBlock {
|
|
36
40
|
title: string;
|
|
37
41
|
description: string;
|
|
38
42
|
}
|
|
39
|
-
export interface HowToBlock {
|
|
43
|
+
export interface HowToBlock extends BaseBlock {
|
|
40
44
|
type: "howto";
|
|
41
45
|
steps: HowToStep[];
|
|
42
46
|
}
|
package/dist/types.js
CHANGED