nodoku-core 0.3.0 → 0.3.12
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/README.md +960 -960
- package/esm/bin/mustache/component-resolver.ts.hbs +38 -38
- package/esm/bin/mustache/content-schema.json.hbs +131 -131
- package/esm/bin/mustache/visual-schema.json.hbs +164 -164
- package/esm/core/dummy-comp.jsx +60 -60
- package/esm/core/rendering-page.jsx +4 -4
- package/esm/theme-utils/theme-merger.js +1 -1
- package/package.json +51 -52
- package/schemas/content-common-schema.json +131 -131
- package/schemas/manifest-schema.json +57 -57
- package/schemas/md-content-block-delimiter.json +25 -25
- package/schemas/skin-common-schema.json +140 -140
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "Landing buddy content page schema",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"Link": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"pattern": "^((http|https)?:\\/\\/)?\\/?([-a-zA-Z0-9._\\+~#=]{1,256})([-a-zA-Z0-9@:%._\\+~#=]{1,256})([-a-zA-Z0-9()@:%_\\+.~#?&\\/\\/=]*)$"
|
|
8
|
-
},
|
|
9
|
-
"ClickableText": {
|
|
10
|
-
"oneOf": [
|
|
11
|
-
{
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"type": "object",
|
|
16
|
-
"properties": {
|
|
17
|
-
"text": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"link": {
|
|
21
|
-
"$ref": "#/definitions/Link"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"Image": {
|
|
28
|
-
"oneOf": [
|
|
29
|
-
{
|
|
30
|
-
"type": "object",
|
|
31
|
-
"properties": {
|
|
32
|
-
"title": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"url": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
"alt": {
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
"link": {
|
|
42
|
-
"$ref": "#/definitions/Link"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"required": [
|
|
46
|
-
"url"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "string"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"ContentBlock": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"properties": {
|
|
57
|
-
"id": {
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
"title": {
|
|
61
|
-
"$ref": "#/definitions/ClickableText"
|
|
62
|
-
},
|
|
63
|
-
"subTitle": {
|
|
64
|
-
"$ref": "#/definitions/ClickableText"
|
|
65
|
-
},
|
|
66
|
-
"h3": {
|
|
67
|
-
"$ref": "#/definitions/ClickableText"
|
|
68
|
-
},
|
|
69
|
-
"h4": {
|
|
70
|
-
"$ref": "#/definitions/ClickableText"
|
|
71
|
-
},
|
|
72
|
-
"h5": {
|
|
73
|
-
"$ref": "#/definitions/ClickableText"
|
|
74
|
-
},
|
|
75
|
-
"h6": {
|
|
76
|
-
"$ref": "#/definitions/ClickableText"
|
|
77
|
-
},
|
|
78
|
-
"footer": {
|
|
79
|
-
"$ref": "#/definitions/ClickableText"
|
|
80
|
-
},
|
|
81
|
-
"images": {
|
|
82
|
-
"type": "array",
|
|
83
|
-
"items": {
|
|
84
|
-
"$ref": "#/definitions/Image"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"paragraphs": {
|
|
88
|
-
"type": "array",
|
|
89
|
-
"items": {
|
|
90
|
-
"$ref": "#/definitions/ClickableText"
|
|
91
|
-
},
|
|
92
|
-
"additionalItems": false
|
|
93
|
-
},
|
|
94
|
-
"bgImage": {
|
|
95
|
-
"$ref": "#/definitions/Image"
|
|
96
|
-
},
|
|
97
|
-
"namespace": {
|
|
98
|
-
"type": "string"
|
|
99
|
-
},
|
|
100
|
-
"tags": {
|
|
101
|
-
"type": "array",
|
|
102
|
-
"items": {
|
|
103
|
-
"type": "string"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"attributes": {
|
|
107
|
-
"type": "object",
|
|
108
|
-
"additionalProperties": {
|
|
109
|
-
"type": "string"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
"additionalItems": false,
|
|
115
|
-
"additionalProperties": false
|
|
116
|
-
},
|
|
117
|
-
"SectionBlock": {
|
|
118
|
-
"type": "array",
|
|
119
|
-
"items": {
|
|
120
|
-
"$ref": "#/definitions/ContentBlock"
|
|
121
|
-
},
|
|
122
|
-
"additionalItems": false,
|
|
123
|
-
"additionalProperties": false
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"type": "array",
|
|
127
|
-
"items": {
|
|
128
|
-
"$ref": "#/definitions/ContentBlock"
|
|
129
|
-
},
|
|
130
|
-
"additionalItems": false,
|
|
131
|
-
"additionalProperties": false
|
|
1
|
+
{
|
|
2
|
+
"description": "Landing buddy content page schema",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Link": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "^((http|https)?:\\/\\/)?\\/?([-a-zA-Z0-9._\\+~#=]{1,256})([-a-zA-Z0-9@:%._\\+~#=]{1,256})([-a-zA-Z0-9()@:%_\\+.~#?&\\/\\/=]*)$"
|
|
8
|
+
},
|
|
9
|
+
"ClickableText": {
|
|
10
|
+
"oneOf": [
|
|
11
|
+
{
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"text": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"link": {
|
|
21
|
+
"$ref": "#/definitions/Link"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"Image": {
|
|
28
|
+
"oneOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"title": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"url": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"alt": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"link": {
|
|
42
|
+
"$ref": "#/definitions/Link"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"url"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "string"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"ContentBlock": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"title": {
|
|
61
|
+
"$ref": "#/definitions/ClickableText"
|
|
62
|
+
},
|
|
63
|
+
"subTitle": {
|
|
64
|
+
"$ref": "#/definitions/ClickableText"
|
|
65
|
+
},
|
|
66
|
+
"h3": {
|
|
67
|
+
"$ref": "#/definitions/ClickableText"
|
|
68
|
+
},
|
|
69
|
+
"h4": {
|
|
70
|
+
"$ref": "#/definitions/ClickableText"
|
|
71
|
+
},
|
|
72
|
+
"h5": {
|
|
73
|
+
"$ref": "#/definitions/ClickableText"
|
|
74
|
+
},
|
|
75
|
+
"h6": {
|
|
76
|
+
"$ref": "#/definitions/ClickableText"
|
|
77
|
+
},
|
|
78
|
+
"footer": {
|
|
79
|
+
"$ref": "#/definitions/ClickableText"
|
|
80
|
+
},
|
|
81
|
+
"images": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"$ref": "#/definitions/Image"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"paragraphs": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"$ref": "#/definitions/ClickableText"
|
|
91
|
+
},
|
|
92
|
+
"additionalItems": false
|
|
93
|
+
},
|
|
94
|
+
"bgImage": {
|
|
95
|
+
"$ref": "#/definitions/Image"
|
|
96
|
+
},
|
|
97
|
+
"namespace": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"tags": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"attributes": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
},
|
|
114
|
+
"additionalItems": false,
|
|
115
|
+
"additionalProperties": false
|
|
116
|
+
},
|
|
117
|
+
"SectionBlock": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"$ref": "#/definitions/ContentBlock"
|
|
121
|
+
},
|
|
122
|
+
"additionalItems": false,
|
|
123
|
+
"additionalProperties": false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": {
|
|
128
|
+
"$ref": "#/definitions/ContentBlock"
|
|
129
|
+
},
|
|
130
|
+
"additionalItems": false,
|
|
131
|
+
"additionalProperties": false
|
|
132
132
|
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"namespace": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
8
|
-
"components": {
|
|
9
|
-
"type": "object",
|
|
10
|
-
"additionalProperties": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"properties": {
|
|
13
|
-
"schemaFile": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"optionsFile": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
"defaultThemeFile": {
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"implementation": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"numBlocks": {
|
|
26
|
-
"oneOf": [
|
|
27
|
-
{
|
|
28
|
-
"type": "string",
|
|
29
|
-
"enum": [
|
|
30
|
-
"unlimited"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"type": "number"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"clientSideComps": {
|
|
39
|
-
"type": "array",
|
|
40
|
-
"items": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"required": [
|
|
46
|
-
"schemaFile",
|
|
47
|
-
"implementation",
|
|
48
|
-
"numBlocks"
|
|
49
|
-
],
|
|
50
|
-
"additionalProperties": false
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"required": [
|
|
55
|
-
"components"
|
|
56
|
-
],
|
|
57
|
-
"additionalProperties": false
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"namespace": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"components": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"schemaFile": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"optionsFile": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"defaultThemeFile": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"implementation": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"numBlocks": {
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"unlimited"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "number"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"clientSideComps": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"schemaFile",
|
|
47
|
+
"implementation",
|
|
48
|
+
"numBlocks"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"components"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false
|
|
58
58
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"id": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
8
|
-
"namespace": {
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"tags": {
|
|
12
|
-
"type": "array",
|
|
13
|
-
"items": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"attributes": {
|
|
18
|
-
"type": "object",
|
|
19
|
-
"additionalProperties": {
|
|
20
|
-
"type": "string"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"additionalProperties": false,
|
|
25
|
-
"additionalItems": false
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"namespace": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"tags": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"attributes": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"additionalItems": false
|
|
26
26
|
}
|