@gravity-ui/page-constructor 1.7.0 → 1.8.0-alfa.1
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/build/cjs/blocks/Banner/schema.d.ts +12 -0
- package/build/cjs/blocks/Banner/schema.js +2 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +8 -0
- package/build/cjs/blocks/CardLayout/schema.js +2 -1
- package/build/cjs/blocks/Companies/schema.d.ts +2 -0
- package/build/cjs/blocks/Companies/schema.js +2 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +6 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +7 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.js +4 -1
- package/build/cjs/blocks/Header/schema.d.ts +16 -0
- package/build/cjs/blocks/Header/schema.js +5 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +11 -0
- package/build/cjs/blocks/Icons/schema.d.ts +6 -0
- package/build/cjs/blocks/Icons/schema.js +2 -0
- package/build/cjs/blocks/Info/schema.d.ts +10 -0
- package/build/cjs/blocks/Info/schema.js +2 -0
- package/build/cjs/blocks/LinkTable/schema.d.ts +2 -0
- package/build/cjs/blocks/Media/schema.d.ts +9 -0
- package/build/cjs/blocks/Media/schema.js +3 -1
- package/build/cjs/blocks/Preview/schema.d.ts +2 -0
- package/build/cjs/blocks/Preview/schema.js +4 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +7 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +4 -1
- package/build/cjs/blocks/Questions/schema.d.ts +5 -0
- package/build/cjs/blocks/Questions/schema.js +2 -0
- package/build/cjs/blocks/Security/schema.d.ts +2 -0
- package/build/cjs/blocks/Security/schema.js +2 -0
- package/build/cjs/blocks/Simple/schema.d.ts +3 -0
- package/build/cjs/blocks/Simple/schema.js +1 -0
- package/build/cjs/blocks/Slider/schema.d.ts +7 -0
- package/build/cjs/blocks/Slider/schema.js +2 -0
- package/build/cjs/blocks/Table/schema.d.ts +4 -0
- package/build/cjs/blocks/Table/schema.js +3 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +8 -0
- package/build/cjs/blocks/Tabs/schema.js +4 -0
- package/build/cjs/components/Author/schema.d.ts +3 -0
- package/build/cjs/components/Image/schema.d.ts +2 -0
- package/build/cjs/components/Image/schema.js +2 -0
- package/build/cjs/schema/index.d.ts +2 -0
- package/build/cjs/schema/validators/common.d.ts +17 -0
- package/build/cjs/schema/validators/common.js +11 -0
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +5 -0
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +4 -0
- package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +8 -0
- package/build/cjs/sub-blocks/CardWithImage/schema.js +4 -1
- package/build/cjs/sub-blocks/Content/schema.d.ts +8 -0
- package/build/cjs/sub-blocks/Content/schema.js +3 -1
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/NewsCard/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/NewsCard/schema.js +1 -0
- package/build/cjs/sub-blocks/Partner/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/Partner/schema.js +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +8 -0
- package/build/cjs/sub-blocks/Quote/schema.d.ts +4 -0
- package/build/cjs/sub-blocks/Quote/schema.js +1 -0
- package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +2 -0
- package/build/cjs/sub-blocks/TutorialCard/schema.js +2 -0
- package/build/cjs/text-transform/blocks.js +1 -0
- package/build/cjs/text-transform/utils.js +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +12 -0
- package/build/esm/blocks/Banner/schema.js +2 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +8 -0
- package/build/esm/blocks/CardLayout/schema.js +2 -1
- package/build/esm/blocks/Companies/schema.d.ts +2 -0
- package/build/esm/blocks/Companies/schema.js +2 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +6 -0
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +7 -0
- package/build/esm/blocks/ExtendedFeatures/schema.js +4 -1
- package/build/esm/blocks/Header/schema.d.ts +16 -0
- package/build/esm/blocks/Header/schema.js +5 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +11 -0
- package/build/esm/blocks/Icons/schema.d.ts +6 -0
- package/build/esm/blocks/Icons/schema.js +2 -0
- package/build/esm/blocks/Info/schema.d.ts +10 -0
- package/build/esm/blocks/Info/schema.js +2 -0
- package/build/esm/blocks/LinkTable/schema.d.ts +2 -0
- package/build/esm/blocks/Media/schema.d.ts +9 -0
- package/build/esm/blocks/Media/schema.js +3 -1
- package/build/esm/blocks/Preview/schema.d.ts +2 -0
- package/build/esm/blocks/Preview/schema.js +4 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +7 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +4 -1
- package/build/esm/blocks/Questions/schema.d.ts +5 -0
- package/build/esm/blocks/Questions/schema.js +2 -0
- package/build/esm/blocks/Security/schema.d.ts +2 -0
- package/build/esm/blocks/Security/schema.js +2 -0
- package/build/esm/blocks/Simple/schema.d.ts +3 -0
- package/build/esm/blocks/Simple/schema.js +1 -0
- package/build/esm/blocks/Slider/schema.d.ts +7 -0
- package/build/esm/blocks/Slider/schema.js +2 -0
- package/build/esm/blocks/Table/schema.d.ts +4 -0
- package/build/esm/blocks/Table/schema.js +3 -0
- package/build/esm/blocks/Tabs/schema.d.ts +8 -0
- package/build/esm/blocks/Tabs/schema.js +4 -0
- package/build/esm/components/Author/schema.d.ts +3 -0
- package/build/esm/components/Image/schema.d.ts +2 -0
- package/build/esm/components/Image/schema.js +2 -0
- package/build/esm/schema/index.d.ts +2 -0
- package/build/esm/schema/validators/common.d.ts +17 -0
- package/build/esm/schema/validators/common.js +11 -0
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +5 -0
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +4 -0
- package/build/esm/sub-blocks/CardWithImage/schema.d.ts +8 -0
- package/build/esm/sub-blocks/CardWithImage/schema.js +4 -1
- package/build/esm/sub-blocks/Content/schema.d.ts +8 -0
- package/build/esm/sub-blocks/Content/schema.js +3 -1
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +1 -0
- package/build/esm/sub-blocks/NewsCard/schema.d.ts +1 -0
- package/build/esm/sub-blocks/NewsCard/schema.js +1 -0
- package/build/esm/sub-blocks/Partner/schema.d.ts +1 -0
- package/build/esm/sub-blocks/Partner/schema.js +1 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +1 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.js +8 -0
- package/build/esm/sub-blocks/Quote/schema.d.ts +4 -0
- package/build/esm/sub-blocks/Quote/schema.js +1 -0
- package/build/esm/sub-blocks/TutorialCard/schema.d.ts +2 -0
- package/build/esm/sub-blocks/TutorialCard/schema.js +2 -0
- package/build/esm/text-transform/blocks.js +1 -0
- package/build/esm/text-transform/utils.js +1 -1
- package/package.json +4 -1
- package/server/text-transform/blocks.js +1 -0
- package/server/text-transform/utils.js +1 -1
|
@@ -8,9 +8,11 @@ const PreviewContentItem = {
|
|
|
8
8
|
properties: {
|
|
9
9
|
title: {
|
|
10
10
|
type: 'string',
|
|
11
|
+
content: 'text',
|
|
11
12
|
},
|
|
12
13
|
description: {
|
|
13
14
|
type: 'string',
|
|
15
|
+
content: 'yfm',
|
|
14
16
|
},
|
|
15
17
|
},
|
|
16
18
|
};
|
|
@@ -33,8 +35,10 @@ export const PreviewBlock = {
|
|
|
33
35
|
required: ['title', 'items'],
|
|
34
36
|
properties: Object.assign(Object.assign(Object.assign({}, BaseProps), AnimatableProps), { title: {
|
|
35
37
|
type: 'string',
|
|
38
|
+
content: 'text',
|
|
36
39
|
}, description: {
|
|
37
40
|
type: 'string',
|
|
41
|
+
content: 'text',
|
|
38
42
|
}, direction: {
|
|
39
43
|
type: 'string',
|
|
40
44
|
enum: mediaDirection,
|
|
@@ -4,9 +4,11 @@ export declare const PromoFeaturesItem: {
|
|
|
4
4
|
properties: {
|
|
5
5
|
title: {
|
|
6
6
|
type: string;
|
|
7
|
+
content: string;
|
|
7
8
|
};
|
|
8
9
|
text: {
|
|
9
10
|
type: string;
|
|
11
|
+
content: string;
|
|
10
12
|
};
|
|
11
13
|
theme: {
|
|
12
14
|
enum: string[];
|
|
@@ -104,6 +106,7 @@ export declare const PromoFeaturesItem: {
|
|
|
104
106
|
};
|
|
105
107
|
text: {
|
|
106
108
|
type: string;
|
|
109
|
+
content: string;
|
|
107
110
|
};
|
|
108
111
|
};
|
|
109
112
|
};
|
|
@@ -160,6 +163,7 @@ export declare const PromoFeaturesBlock: {
|
|
|
160
163
|
properties: {
|
|
161
164
|
text: {
|
|
162
165
|
type: string;
|
|
166
|
+
content: string;
|
|
163
167
|
};
|
|
164
168
|
textSize: {
|
|
165
169
|
type: string;
|
|
@@ -174,10 +178,12 @@ export declare const PromoFeaturesBlock: {
|
|
|
174
178
|
};
|
|
175
179
|
} | {
|
|
176
180
|
type: string;
|
|
181
|
+
content: string;
|
|
177
182
|
})[];
|
|
178
183
|
};
|
|
179
184
|
description: {
|
|
180
185
|
type: string;
|
|
186
|
+
content: string;
|
|
181
187
|
};
|
|
182
188
|
theme: {
|
|
183
189
|
enum: string[];
|
|
@@ -203,6 +209,7 @@ export declare const PromoFeaturesBlock: {
|
|
|
203
209
|
properties: {
|
|
204
210
|
text: {
|
|
205
211
|
type: string;
|
|
212
|
+
content: string;
|
|
206
213
|
};
|
|
207
214
|
url: {
|
|
208
215
|
type: string;
|
|
@@ -7,9 +7,11 @@ export const PromoFeaturesItem = {
|
|
|
7
7
|
properties: {
|
|
8
8
|
title: {
|
|
9
9
|
type: 'string',
|
|
10
|
+
content: 'text',
|
|
10
11
|
},
|
|
11
12
|
text: {
|
|
12
13
|
type: 'string',
|
|
14
|
+
content: 'yfm',
|
|
13
15
|
},
|
|
14
16
|
theme: {
|
|
15
17
|
enum: ['accent', 'accent-light', 'primary'],
|
|
@@ -22,9 +24,10 @@ export const PromoFeaturesBlock = {
|
|
|
22
24
|
additionalProperties: false,
|
|
23
25
|
required: ['items'],
|
|
24
26
|
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), { title: {
|
|
25
|
-
oneOf: [{ type: 'string' }, TitleProps],
|
|
27
|
+
oneOf: [{ type: 'string', content: 'text' }, TitleProps],
|
|
26
28
|
}, description: {
|
|
27
29
|
type: 'string',
|
|
30
|
+
content: 'text',
|
|
28
31
|
}, theme: {
|
|
29
32
|
enum: ['grey', 'default'],
|
|
30
33
|
}, items: filteredArray(PromoFeaturesItem) }),
|
|
@@ -22,6 +22,7 @@ export declare const QuestionsBlock: {
|
|
|
22
22
|
properties: {
|
|
23
23
|
text: {
|
|
24
24
|
type: string;
|
|
25
|
+
content: string;
|
|
25
26
|
};
|
|
26
27
|
textSize: {
|
|
27
28
|
type: string;
|
|
@@ -36,13 +37,16 @@ export declare const QuestionsBlock: {
|
|
|
36
37
|
};
|
|
37
38
|
} | {
|
|
38
39
|
type: string;
|
|
40
|
+
content: string;
|
|
39
41
|
})[];
|
|
40
42
|
};
|
|
41
43
|
text: {
|
|
42
44
|
type: string;
|
|
45
|
+
content: string;
|
|
43
46
|
};
|
|
44
47
|
additionalInfo: {
|
|
45
48
|
type: string;
|
|
49
|
+
content: string;
|
|
46
50
|
};
|
|
47
51
|
links: {
|
|
48
52
|
type: string;
|
|
@@ -73,6 +77,7 @@ export declare const QuestionsBlock: {
|
|
|
73
77
|
properties: {
|
|
74
78
|
text: {
|
|
75
79
|
type: string;
|
|
80
|
+
content: string;
|
|
76
81
|
};
|
|
77
82
|
url: {
|
|
78
83
|
type: string;
|
|
@@ -12,6 +12,7 @@ export declare const SecurityBlock: {
|
|
|
12
12
|
};
|
|
13
13
|
title: {
|
|
14
14
|
type: string;
|
|
15
|
+
content: string;
|
|
15
16
|
};
|
|
16
17
|
media: {
|
|
17
18
|
type: string;
|
|
@@ -106,6 +107,7 @@ export declare const SecurityBlock: {
|
|
|
106
107
|
};
|
|
107
108
|
text: {
|
|
108
109
|
type: string;
|
|
110
|
+
content: string;
|
|
109
111
|
};
|
|
110
112
|
};
|
|
111
113
|
};
|
|
@@ -10,6 +10,7 @@ export const SecurityBlock = {
|
|
|
10
10
|
type: 'string',
|
|
11
11
|
}, title: {
|
|
12
12
|
type: 'string',
|
|
13
|
+
content: 'text',
|
|
13
14
|
}, media: Media, points: filteredArray({
|
|
14
15
|
type: 'object',
|
|
15
16
|
properties: {
|
|
@@ -18,6 +19,7 @@ export const SecurityBlock = {
|
|
|
18
19
|
},
|
|
19
20
|
text: {
|
|
20
21
|
type: 'string',
|
|
22
|
+
content: 'text',
|
|
21
23
|
},
|
|
22
24
|
link: _.pick(LinkProps, ['text', 'url']),
|
|
23
25
|
},
|
|
@@ -19,6 +19,7 @@ export declare const SimpleBlock: {
|
|
|
19
19
|
properties: {
|
|
20
20
|
text: {
|
|
21
21
|
type: string;
|
|
22
|
+
content: string;
|
|
22
23
|
};
|
|
23
24
|
url: {
|
|
24
25
|
type: string;
|
|
@@ -41,6 +42,7 @@ export declare const SimpleBlock: {
|
|
|
41
42
|
properties: {
|
|
42
43
|
text: {
|
|
43
44
|
type: string;
|
|
45
|
+
content: string;
|
|
44
46
|
};
|
|
45
47
|
textSize: {
|
|
46
48
|
type: string;
|
|
@@ -56,6 +58,7 @@ export declare const SimpleBlock: {
|
|
|
56
58
|
};
|
|
57
59
|
description: {
|
|
58
60
|
type: string;
|
|
61
|
+
content: string;
|
|
59
62
|
};
|
|
60
63
|
};
|
|
61
64
|
};
|
|
@@ -5,6 +5,7 @@ export const SimpleBlock = {
|
|
|
5
5
|
required: ['title', 'description'],
|
|
6
6
|
properties: Object.assign(Object.assign(Object.assign({ title: TitleProps, description: {
|
|
7
7
|
type: 'string',
|
|
8
|
+
content: 'yfm',
|
|
8
9
|
} }, BlockBaseProps), AnimatableProps), { children: ChildrenProps }),
|
|
9
10
|
},
|
|
10
11
|
};
|
|
@@ -7,6 +7,7 @@ export declare const SliderProps: {
|
|
|
7
7
|
};
|
|
8
8
|
description: {
|
|
9
9
|
type: string;
|
|
10
|
+
content: string;
|
|
10
11
|
};
|
|
11
12
|
title: {
|
|
12
13
|
type: string;
|
|
@@ -15,6 +16,7 @@ export declare const SliderProps: {
|
|
|
15
16
|
properties: {
|
|
16
17
|
text: {
|
|
17
18
|
type: string;
|
|
19
|
+
content: string;
|
|
18
20
|
};
|
|
19
21
|
textSize: {
|
|
20
22
|
type: string;
|
|
@@ -56,6 +58,7 @@ export declare const SliderProps: {
|
|
|
56
58
|
properties: {
|
|
57
59
|
text: {
|
|
58
60
|
type: string;
|
|
61
|
+
content: string;
|
|
59
62
|
};
|
|
60
63
|
size: {
|
|
61
64
|
type: string;
|
|
@@ -113,6 +116,7 @@ export declare const SliderBlock: {
|
|
|
113
116
|
};
|
|
114
117
|
description: {
|
|
115
118
|
type: string;
|
|
119
|
+
content: string;
|
|
116
120
|
};
|
|
117
121
|
title: {
|
|
118
122
|
type: string;
|
|
@@ -121,6 +125,7 @@ export declare const SliderBlock: {
|
|
|
121
125
|
properties: {
|
|
122
126
|
text: {
|
|
123
127
|
type: string;
|
|
128
|
+
content: string;
|
|
124
129
|
};
|
|
125
130
|
textSize: {
|
|
126
131
|
type: string;
|
|
@@ -162,6 +167,7 @@ export declare const SliderBlock: {
|
|
|
162
167
|
properties: {
|
|
163
168
|
text: {
|
|
164
169
|
type: string;
|
|
170
|
+
content: string;
|
|
165
171
|
};
|
|
166
172
|
size: {
|
|
167
173
|
type: string;
|
|
@@ -212,6 +218,7 @@ export declare const SliderBlock: {
|
|
|
212
218
|
properties: {
|
|
213
219
|
text: {
|
|
214
220
|
type: string;
|
|
221
|
+
content: string;
|
|
215
222
|
};
|
|
216
223
|
url: {
|
|
217
224
|
type: string;
|
|
@@ -33,6 +33,7 @@ const DisclaimerProps = {
|
|
|
33
33
|
properties: {
|
|
34
34
|
text: {
|
|
35
35
|
type: 'string',
|
|
36
|
+
content: 'text',
|
|
36
37
|
},
|
|
37
38
|
size: {
|
|
38
39
|
type: 'string',
|
|
@@ -49,6 +50,7 @@ export const SliderProps = {
|
|
|
49
50
|
},
|
|
50
51
|
description: {
|
|
51
52
|
type: 'string',
|
|
53
|
+
content: 'text',
|
|
52
54
|
},
|
|
53
55
|
title: TitleProps,
|
|
54
56
|
randomOrder: {
|
|
@@ -5,6 +5,7 @@ export declare const TableBlock: {
|
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
7
|
type: string;
|
|
8
|
+
content: string;
|
|
8
9
|
};
|
|
9
10
|
table: {
|
|
10
11
|
additionalProperties: boolean;
|
|
@@ -16,6 +17,7 @@ export declare const TableBlock: {
|
|
|
16
17
|
type: string;
|
|
17
18
|
items: {
|
|
18
19
|
type: string[];
|
|
20
|
+
content: string;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
23
|
};
|
|
@@ -23,6 +25,7 @@ export declare const TableBlock: {
|
|
|
23
25
|
type: string;
|
|
24
26
|
items: {
|
|
25
27
|
type: string;
|
|
28
|
+
content: string;
|
|
26
29
|
};
|
|
27
30
|
};
|
|
28
31
|
justify: {
|
|
@@ -47,6 +50,7 @@ export declare const TableBlock: {
|
|
|
47
50
|
properties: {
|
|
48
51
|
text: {
|
|
49
52
|
type: string;
|
|
53
|
+
content: string;
|
|
50
54
|
};
|
|
51
55
|
url: {
|
|
52
56
|
type: string;
|
|
@@ -5,6 +5,7 @@ export const TableBlock = {
|
|
|
5
5
|
required: ['title', 'table'],
|
|
6
6
|
properties: Object.assign(Object.assign({}, BlockBaseProps), { title: {
|
|
7
7
|
type: 'string',
|
|
8
|
+
content: 'text',
|
|
8
9
|
}, table: {
|
|
9
10
|
additionalProperties: false,
|
|
10
11
|
required: ['content'],
|
|
@@ -14,12 +15,14 @@ export const TableBlock = {
|
|
|
14
15
|
type: 'array',
|
|
15
16
|
items: {
|
|
16
17
|
type: ['string', 'number'],
|
|
18
|
+
content: 'text',
|
|
17
19
|
},
|
|
18
20
|
},
|
|
19
21
|
}, legend: {
|
|
20
22
|
type: 'array',
|
|
21
23
|
items: {
|
|
22
24
|
type: 'string',
|
|
25
|
+
content: 'yfm',
|
|
23
26
|
},
|
|
24
27
|
}, justify: {
|
|
25
28
|
type: 'array',
|
|
@@ -8,12 +8,15 @@ export declare const tabsItem: {
|
|
|
8
8
|
};
|
|
9
9
|
title: {
|
|
10
10
|
type: string;
|
|
11
|
+
content: string;
|
|
11
12
|
};
|
|
12
13
|
text: {
|
|
13
14
|
type: string;
|
|
15
|
+
content: string;
|
|
14
16
|
};
|
|
15
17
|
caption: {
|
|
16
18
|
type: string;
|
|
19
|
+
content: string;
|
|
17
20
|
};
|
|
18
21
|
media: {
|
|
19
22
|
oneOf: ({
|
|
@@ -107,6 +110,7 @@ export declare const tabsItem: {
|
|
|
107
110
|
};
|
|
108
111
|
text: {
|
|
109
112
|
type: string;
|
|
113
|
+
content: string;
|
|
110
114
|
};
|
|
111
115
|
};
|
|
112
116
|
};
|
|
@@ -161,6 +165,7 @@ export declare const tabsItem: {
|
|
|
161
165
|
properties: {
|
|
162
166
|
text: {
|
|
163
167
|
type: string;
|
|
168
|
+
content: string;
|
|
164
169
|
};
|
|
165
170
|
url: {
|
|
166
171
|
type: string;
|
|
@@ -229,6 +234,7 @@ export declare const TabsBlock: {
|
|
|
229
234
|
properties: {
|
|
230
235
|
text: {
|
|
231
236
|
type: string;
|
|
237
|
+
content: string;
|
|
232
238
|
};
|
|
233
239
|
textSize: {
|
|
234
240
|
type: string;
|
|
@@ -244,6 +250,7 @@ export declare const TabsBlock: {
|
|
|
244
250
|
};
|
|
245
251
|
description: {
|
|
246
252
|
type: string;
|
|
253
|
+
content: string;
|
|
247
254
|
};
|
|
248
255
|
items: {
|
|
249
256
|
type: string;
|
|
@@ -263,6 +270,7 @@ export declare const TabsBlock: {
|
|
|
263
270
|
properties: {
|
|
264
271
|
text: {
|
|
265
272
|
type: string;
|
|
273
|
+
content: string;
|
|
266
274
|
};
|
|
267
275
|
url: {
|
|
268
276
|
type: string;
|
|
@@ -11,12 +11,15 @@ export const tabsItem = {
|
|
|
11
11
|
},
|
|
12
12
|
title: {
|
|
13
13
|
type: 'string',
|
|
14
|
+
content: 'yfm',
|
|
14
15
|
},
|
|
15
16
|
text: {
|
|
16
17
|
type: 'string',
|
|
18
|
+
content: 'yfm',
|
|
17
19
|
},
|
|
18
20
|
caption: {
|
|
19
21
|
type: 'string',
|
|
22
|
+
content: 'text',
|
|
20
23
|
},
|
|
21
24
|
media: withTheme({
|
|
22
25
|
type: 'object',
|
|
@@ -34,6 +37,7 @@ export const TabsBlock = {
|
|
|
34
37
|
required: ['title', 'items'],
|
|
35
38
|
properties: Object.assign(Object.assign({}, BlockBaseProps), { title: TitleProps, description: {
|
|
36
39
|
type: 'string',
|
|
40
|
+
content: 'text',
|
|
37
41
|
}, items: filteredArray(tabsItem) }),
|
|
38
42
|
},
|
|
39
43
|
};
|
|
@@ -10,9 +10,11 @@ export declare const author: {
|
|
|
10
10
|
properties: {
|
|
11
11
|
firstName: {
|
|
12
12
|
type: string;
|
|
13
|
+
content: string;
|
|
13
14
|
};
|
|
14
15
|
secondName: {
|
|
15
16
|
type: string;
|
|
17
|
+
content: string;
|
|
16
18
|
};
|
|
17
19
|
avatar: {
|
|
18
20
|
type: string;
|
|
@@ -20,6 +22,7 @@ export declare const author: {
|
|
|
20
22
|
};
|
|
21
23
|
description: {
|
|
22
24
|
type: string;
|
|
25
|
+
content: string;
|
|
23
26
|
};
|
|
24
27
|
};
|
|
25
28
|
};
|
|
@@ -18,6 +18,7 @@ export declare const ImageDeviceProps: {
|
|
|
18
18
|
};
|
|
19
19
|
alt: {
|
|
20
20
|
type: string;
|
|
21
|
+
content: string;
|
|
21
22
|
};
|
|
22
23
|
disableCompress: {
|
|
23
24
|
type: string;
|
|
@@ -35,6 +36,7 @@ export declare const ImageObjectProps: {
|
|
|
35
36
|
};
|
|
36
37
|
alt: {
|
|
37
38
|
type: string;
|
|
39
|
+
content: string;
|
|
38
40
|
};
|
|
39
41
|
disableCompress: {
|
|
40
42
|
type: string;
|
|
@@ -16,6 +16,7 @@ export const ImageDeviceProps = {
|
|
|
16
16
|
},
|
|
17
17
|
alt: {
|
|
18
18
|
type: 'string',
|
|
19
|
+
content: 'text',
|
|
19
20
|
},
|
|
20
21
|
disableCompress: {
|
|
21
22
|
type: 'boolean',
|
|
@@ -33,6 +34,7 @@ export const ImageObjectProps = {
|
|
|
33
34
|
},
|
|
34
35
|
alt: {
|
|
35
36
|
type: 'string',
|
|
37
|
+
content: 'text',
|
|
36
38
|
},
|
|
37
39
|
disableCompress: {
|
|
38
40
|
type: 'boolean',
|
|
@@ -43,6 +43,7 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
|
|
|
43
43
|
properties: {
|
|
44
44
|
title: {
|
|
45
45
|
type: string;
|
|
46
|
+
content: string;
|
|
46
47
|
};
|
|
47
48
|
};
|
|
48
49
|
};
|
|
@@ -121,6 +122,7 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
|
|
|
121
122
|
};
|
|
122
123
|
text: {
|
|
123
124
|
type: string;
|
|
125
|
+
content: string;
|
|
124
126
|
};
|
|
125
127
|
};
|
|
126
128
|
};
|
|
@@ -83,6 +83,7 @@ export declare const PlayIconProps: {
|
|
|
83
83
|
};
|
|
84
84
|
text: {
|
|
85
85
|
type: string;
|
|
86
|
+
content: string;
|
|
86
87
|
};
|
|
87
88
|
};
|
|
88
89
|
};
|
|
@@ -141,6 +142,7 @@ export declare const VideoProps: {
|
|
|
141
142
|
};
|
|
142
143
|
text: {
|
|
143
144
|
type: string;
|
|
145
|
+
content: string;
|
|
144
146
|
};
|
|
145
147
|
};
|
|
146
148
|
};
|
|
@@ -264,6 +266,7 @@ export declare const BackgroundProps: {
|
|
|
264
266
|
};
|
|
265
267
|
text: {
|
|
266
268
|
type: string;
|
|
269
|
+
content: string;
|
|
267
270
|
};
|
|
268
271
|
};
|
|
269
272
|
};
|
|
@@ -295,6 +298,7 @@ export declare const LinkProps: {
|
|
|
295
298
|
properties: {
|
|
296
299
|
text: {
|
|
297
300
|
type: string;
|
|
301
|
+
content: string;
|
|
298
302
|
};
|
|
299
303
|
url: {
|
|
300
304
|
type: string;
|
|
@@ -328,6 +332,7 @@ export declare const FileLinkProps: {
|
|
|
328
332
|
};
|
|
329
333
|
text: {
|
|
330
334
|
type: string;
|
|
335
|
+
content: string;
|
|
331
336
|
};
|
|
332
337
|
type: {
|
|
333
338
|
type: string;
|
|
@@ -349,9 +354,11 @@ export declare const authorItem: {
|
|
|
349
354
|
properties: {
|
|
350
355
|
firstName: {
|
|
351
356
|
type: string;
|
|
357
|
+
content: string;
|
|
352
358
|
};
|
|
353
359
|
secondName: {
|
|
354
360
|
type: string;
|
|
361
|
+
content: string;
|
|
355
362
|
};
|
|
356
363
|
avatar: {
|
|
357
364
|
type: string;
|
|
@@ -359,12 +366,14 @@ export declare const authorItem: {
|
|
|
359
366
|
};
|
|
360
367
|
description: {
|
|
361
368
|
type: string;
|
|
369
|
+
content: string;
|
|
362
370
|
};
|
|
363
371
|
};
|
|
364
372
|
};
|
|
365
373
|
export declare const ButtonProps: {
|
|
366
374
|
text: {
|
|
367
375
|
type: string;
|
|
376
|
+
content: string;
|
|
368
377
|
};
|
|
369
378
|
url: {
|
|
370
379
|
type: string;
|
|
@@ -400,6 +409,7 @@ export declare const ButtonProps: {
|
|
|
400
409
|
};
|
|
401
410
|
alt: {
|
|
402
411
|
type: string;
|
|
412
|
+
content: string;
|
|
403
413
|
};
|
|
404
414
|
};
|
|
405
415
|
})[];
|
|
@@ -500,6 +510,7 @@ export declare const MenuProps: {
|
|
|
500
510
|
properties: {
|
|
501
511
|
title: {
|
|
502
512
|
type: string;
|
|
513
|
+
content: string;
|
|
503
514
|
};
|
|
504
515
|
};
|
|
505
516
|
};
|
|
@@ -518,6 +529,7 @@ export declare const AnchorProps: {
|
|
|
518
529
|
properties: {
|
|
519
530
|
text: {
|
|
520
531
|
type: string;
|
|
532
|
+
content: string;
|
|
521
533
|
};
|
|
522
534
|
url: {
|
|
523
535
|
type: string;
|
|
@@ -532,6 +544,7 @@ export declare const BlockBaseProps: {
|
|
|
532
544
|
properties: {
|
|
533
545
|
text: {
|
|
534
546
|
type: string;
|
|
547
|
+
content: string;
|
|
535
548
|
};
|
|
536
549
|
url: {
|
|
537
550
|
type: string;
|
|
@@ -555,6 +568,7 @@ export declare const TitleProps: {
|
|
|
555
568
|
properties: {
|
|
556
569
|
text: {
|
|
557
570
|
type: string;
|
|
571
|
+
content: string;
|
|
558
572
|
};
|
|
559
573
|
textSize: {
|
|
560
574
|
type: string;
|
|
@@ -574,6 +588,7 @@ export declare const ButtonBlock: {
|
|
|
574
588
|
properties: {
|
|
575
589
|
text: {
|
|
576
590
|
type: string;
|
|
591
|
+
content: string;
|
|
577
592
|
};
|
|
578
593
|
url: {
|
|
579
594
|
type: string;
|
|
@@ -609,6 +624,7 @@ export declare const ButtonBlock: {
|
|
|
609
624
|
};
|
|
610
625
|
alt: {
|
|
611
626
|
type: string;
|
|
627
|
+
content: string;
|
|
612
628
|
};
|
|
613
629
|
};
|
|
614
630
|
})[];
|
|
@@ -806,6 +822,7 @@ export declare const MediaProps: {
|
|
|
806
822
|
};
|
|
807
823
|
text: {
|
|
808
824
|
type: string;
|
|
825
|
+
content: string;
|
|
809
826
|
};
|
|
810
827
|
};
|
|
811
828
|
};
|
|
@@ -76,6 +76,7 @@ export const PlayIconProps = {
|
|
|
76
76
|
},
|
|
77
77
|
text: {
|
|
78
78
|
type: 'string',
|
|
79
|
+
content: 'text',
|
|
79
80
|
},
|
|
80
81
|
},
|
|
81
82
|
};
|
|
@@ -159,6 +160,7 @@ export const LinkProps = {
|
|
|
159
160
|
required: ['text', 'url'],
|
|
160
161
|
properties: Object.assign(Object.assign({}, BaseProps), { text: {
|
|
161
162
|
type: 'string',
|
|
163
|
+
content: 'text',
|
|
162
164
|
}, url: {
|
|
163
165
|
type: 'string',
|
|
164
166
|
}, arrow: {
|
|
@@ -184,6 +186,7 @@ export const FileLinkProps = {
|
|
|
184
186
|
},
|
|
185
187
|
text: {
|
|
186
188
|
type: 'string',
|
|
189
|
+
content: 'text',
|
|
187
190
|
},
|
|
188
191
|
type: {
|
|
189
192
|
type: 'string',
|
|
@@ -205,9 +208,11 @@ export const authorItem = {
|
|
|
205
208
|
properties: {
|
|
206
209
|
firstName: {
|
|
207
210
|
type: 'string',
|
|
211
|
+
content: 'text',
|
|
208
212
|
},
|
|
209
213
|
secondName: {
|
|
210
214
|
type: 'string',
|
|
215
|
+
content: 'text',
|
|
211
216
|
},
|
|
212
217
|
avatar: {
|
|
213
218
|
type: 'string',
|
|
@@ -215,12 +220,14 @@ export const authorItem = {
|
|
|
215
220
|
},
|
|
216
221
|
description: {
|
|
217
222
|
type: 'string',
|
|
223
|
+
content: 'yfm',
|
|
218
224
|
},
|
|
219
225
|
},
|
|
220
226
|
};
|
|
221
227
|
export const ButtonProps = {
|
|
222
228
|
text: {
|
|
223
229
|
type: 'string',
|
|
230
|
+
content: 'text',
|
|
224
231
|
},
|
|
225
232
|
url: {
|
|
226
233
|
type: 'string',
|
|
@@ -293,6 +300,7 @@ export const ButtonProps = {
|
|
|
293
300
|
},
|
|
294
301
|
alt: {
|
|
295
302
|
type: 'string',
|
|
303
|
+
content: 'text',
|
|
296
304
|
},
|
|
297
305
|
},
|
|
298
306
|
},
|
|
@@ -332,6 +340,7 @@ export const MenuProps = {
|
|
|
332
340
|
properties: {
|
|
333
341
|
title: {
|
|
334
342
|
type: 'string',
|
|
343
|
+
content: 'text',
|
|
335
344
|
},
|
|
336
345
|
},
|
|
337
346
|
};
|
|
@@ -355,6 +364,7 @@ export const AnchorProps = {
|
|
|
355
364
|
properties: {
|
|
356
365
|
text: {
|
|
357
366
|
type: 'string',
|
|
367
|
+
content: 'text',
|
|
358
368
|
},
|
|
359
369
|
url: {
|
|
360
370
|
type: 'string',
|
|
@@ -374,6 +384,7 @@ export const TitleProps = {
|
|
|
374
384
|
properties: {
|
|
375
385
|
text: {
|
|
376
386
|
type: 'string',
|
|
387
|
+
content: 'text',
|
|
377
388
|
},
|
|
378
389
|
textSize: {
|
|
379
390
|
type: 'string',
|