@gravity-ui/page-constructor 1.11.0 → 1.12.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/cjs/blocks/Banner/schema.d.ts +12 -0
  3. package/build/cjs/blocks/Banner/schema.js +2 -0
  4. package/build/cjs/blocks/CardLayout/schema.d.ts +8 -0
  5. package/build/cjs/blocks/CardLayout/schema.js +2 -1
  6. package/build/cjs/blocks/Companies/schema.d.ts +2 -0
  7. package/build/cjs/blocks/Companies/schema.js +2 -0
  8. package/build/cjs/blocks/ContentLayout/schema.d.ts +6 -0
  9. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +7 -0
  10. package/build/cjs/blocks/ExtendedFeatures/schema.js +4 -1
  11. package/build/cjs/blocks/Header/schema.d.ts +16 -0
  12. package/build/cjs/blocks/Header/schema.js +5 -0
  13. package/build/cjs/blocks/HeaderSlider/schema.d.ts +11 -0
  14. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  15. package/build/cjs/blocks/Icons/schema.js +2 -0
  16. package/build/cjs/blocks/Info/schema.d.ts +10 -0
  17. package/build/cjs/blocks/Info/schema.js +2 -0
  18. package/build/cjs/blocks/LinkTable/schema.d.ts +2 -0
  19. package/build/cjs/blocks/Media/schema.d.ts +62 -53
  20. package/build/cjs/blocks/Media/schema.js +6 -10
  21. package/build/cjs/blocks/Preview/schema.d.ts +2 -0
  22. package/build/cjs/blocks/Preview/schema.js +4 -0
  23. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +7 -0
  24. package/build/cjs/blocks/PromoFeaturesBlock/schema.js +4 -1
  25. package/build/cjs/blocks/Questions/schema.d.ts +5 -0
  26. package/build/cjs/blocks/Questions/schema.js +2 -0
  27. package/build/cjs/blocks/Security/schema.d.ts +2 -0
  28. package/build/cjs/blocks/Security/schema.js +2 -0
  29. package/build/cjs/blocks/Simple/schema.d.ts +3 -0
  30. package/build/cjs/blocks/Simple/schema.js +1 -0
  31. package/build/cjs/blocks/Slider/schema.d.ts +7 -0
  32. package/build/cjs/blocks/Slider/schema.js +2 -0
  33. package/build/cjs/blocks/Table/schema.d.ts +4 -0
  34. package/build/cjs/blocks/Table/schema.js +3 -0
  35. package/build/cjs/blocks/Tabs/Tabs.js +2 -2
  36. package/build/cjs/blocks/Tabs/schema.d.ts +10 -0
  37. package/build/cjs/blocks/Tabs/schema.js +2 -0
  38. package/build/cjs/components/Author/schema.d.ts +3 -0
  39. package/build/cjs/components/Image/schema.d.ts +2 -0
  40. package/build/cjs/components/Image/schema.js +14 -23
  41. package/build/cjs/schema/index.d.ts +2 -0
  42. package/build/cjs/schema/validators/common.d.ts +17 -0
  43. package/build/cjs/schema/validators/common.js +11 -0
  44. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +5 -0
  45. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +4 -0
  46. package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +54 -46
  47. package/build/cjs/sub-blocks/CardWithImage/schema.js +7 -6
  48. package/build/cjs/sub-blocks/Content/schema.d.ts +8 -0
  49. package/build/cjs/sub-blocks/Content/schema.js +3 -1
  50. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +1 -0
  51. package/build/cjs/sub-blocks/NewsCard/schema.d.ts +1 -0
  52. package/build/cjs/sub-blocks/NewsCard/schema.js +1 -0
  53. package/build/cjs/sub-blocks/Partner/schema.d.ts +1 -0
  54. package/build/cjs/sub-blocks/Partner/schema.js +1 -0
  55. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +1 -0
  56. package/build/cjs/sub-blocks/PriceDetailed/schema.js +8 -0
  57. package/build/cjs/sub-blocks/Quote/schema.d.ts +4 -0
  58. package/build/cjs/sub-blocks/Quote/schema.js +1 -0
  59. package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +2 -0
  60. package/build/cjs/sub-blocks/TutorialCard/schema.js +2 -0
  61. package/build/cjs/text-transform/blocks.js +27 -0
  62. package/build/esm/blocks/Banner/schema.d.ts +12 -0
  63. package/build/esm/blocks/Banner/schema.js +2 -0
  64. package/build/esm/blocks/CardLayout/schema.d.ts +8 -0
  65. package/build/esm/blocks/CardLayout/schema.js +2 -1
  66. package/build/esm/blocks/Companies/schema.d.ts +2 -0
  67. package/build/esm/blocks/Companies/schema.js +2 -0
  68. package/build/esm/blocks/ContentLayout/schema.d.ts +6 -0
  69. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +7 -0
  70. package/build/esm/blocks/ExtendedFeatures/schema.js +4 -1
  71. package/build/esm/blocks/Header/schema.d.ts +16 -0
  72. package/build/esm/blocks/Header/schema.js +5 -0
  73. package/build/esm/blocks/HeaderSlider/schema.d.ts +11 -0
  74. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  75. package/build/esm/blocks/Icons/schema.js +2 -0
  76. package/build/esm/blocks/Info/schema.d.ts +10 -0
  77. package/build/esm/blocks/Info/schema.js +2 -0
  78. package/build/esm/blocks/LinkTable/schema.d.ts +2 -0
  79. package/build/esm/blocks/Media/schema.d.ts +62 -53
  80. package/build/esm/blocks/Media/schema.js +7 -11
  81. package/build/esm/blocks/Preview/schema.d.ts +2 -0
  82. package/build/esm/blocks/Preview/schema.js +4 -0
  83. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +7 -0
  84. package/build/esm/blocks/PromoFeaturesBlock/schema.js +4 -1
  85. package/build/esm/blocks/Questions/schema.d.ts +5 -0
  86. package/build/esm/blocks/Questions/schema.js +2 -0
  87. package/build/esm/blocks/Security/schema.d.ts +2 -0
  88. package/build/esm/blocks/Security/schema.js +2 -0
  89. package/build/esm/blocks/Simple/schema.d.ts +3 -0
  90. package/build/esm/blocks/Simple/schema.js +1 -0
  91. package/build/esm/blocks/Slider/schema.d.ts +7 -0
  92. package/build/esm/blocks/Slider/schema.js +2 -0
  93. package/build/esm/blocks/Table/schema.d.ts +4 -0
  94. package/build/esm/blocks/Table/schema.js +3 -0
  95. package/build/esm/blocks/Tabs/Tabs.js +2 -2
  96. package/build/esm/blocks/Tabs/schema.d.ts +10 -0
  97. package/build/esm/blocks/Tabs/schema.js +2 -0
  98. package/build/esm/components/Author/schema.d.ts +3 -0
  99. package/build/esm/components/Image/schema.d.ts +2 -0
  100. package/build/esm/components/Image/schema.js +14 -23
  101. package/build/esm/schema/index.d.ts +2 -0
  102. package/build/esm/schema/validators/common.d.ts +17 -0
  103. package/build/esm/schema/validators/common.js +11 -0
  104. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +5 -0
  105. package/build/esm/sub-blocks/BasicCard/schema.d.ts +4 -0
  106. package/build/esm/sub-blocks/CardWithImage/schema.d.ts +54 -46
  107. package/build/esm/sub-blocks/CardWithImage/schema.js +8 -7
  108. package/build/esm/sub-blocks/Content/schema.d.ts +8 -0
  109. package/build/esm/sub-blocks/Content/schema.js +3 -1
  110. package/build/esm/sub-blocks/MediaCard/schema.d.ts +1 -0
  111. package/build/esm/sub-blocks/NewsCard/schema.d.ts +1 -0
  112. package/build/esm/sub-blocks/NewsCard/schema.js +1 -0
  113. package/build/esm/sub-blocks/Partner/schema.d.ts +1 -0
  114. package/build/esm/sub-blocks/Partner/schema.js +1 -0
  115. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +1 -0
  116. package/build/esm/sub-blocks/PriceDetailed/schema.js +8 -0
  117. package/build/esm/sub-blocks/Quote/schema.d.ts +4 -0
  118. package/build/esm/sub-blocks/Quote/schema.js +1 -0
  119. package/build/esm/sub-blocks/TutorialCard/schema.d.ts +2 -0
  120. package/build/esm/sub-blocks/TutorialCard/schema.js +2 -0
  121. package/build/esm/text-transform/blocks.js +27 -0
  122. package/package.json +1 -1
  123. package/server/text-transform/blocks.js +27 -0
@@ -7,6 +7,7 @@ export declare const SliderProps: {
7
7
  };
8
8
  description: {
9
9
  type: string;
10
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: '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
+ contentType: '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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: '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
+ contentType: 'text',
17
19
  },
18
20
  },
19
21
  }, legend: {
20
22
  type: 'array',
21
23
  items: {
22
24
  type: 'string',
25
+ contentType: 'yfm',
23
26
  },
24
27
  }, justify: {
25
28
  type: 'array',
@@ -44,8 +44,8 @@ export const TabsBlock = ({ items, title, description, animated, tabsColSizes, c
44
44
  }, className: b('col', { centered: centered }) },
45
45
  React.createElement("div", { ref: ref }, (activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.media) && (React.createElement(Media, Object.assign({}, getThemedValue(activeTabData.media, theme), { key: activeTab, className: b('media'), playVideo: play, height: mediaHeight })))),
46
46
  imageProps && (React.createElement(Fragment, null,
47
- React.createElement(FullScreenImage, Object.assign({}, imageProps, { imageClassName: b('image') })),
48
- (activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (React.createElement("p", { className: b('caption') }, activeTabData.caption))))));
47
+ React.createElement(FullScreenImage, Object.assign({}, imageProps, { imageClassName: b('image') })))),
48
+ (activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && React.createElement("p", { className: b('caption') }, activeTabData.caption)));
49
49
  return (React.createElement(AnimateBlock, { className: b(), onScroll: () => setPlay(true), animate: animated },
50
50
  React.createElement(BlockHeader, { title: title, description: description, className: b('block-title', { centered: centered }) }),
51
51
  React.createElement(Row, null,
@@ -8,6 +8,7 @@ export declare const tabsItem: {
8
8
  };
9
9
  caption: {
10
10
  type: string;
11
+ contentType: string;
11
12
  };
12
13
  media: {
13
14
  oneOf: ({
@@ -101,6 +102,7 @@ export declare const tabsItem: {
101
102
  };
102
103
  text: {
103
104
  type: string;
105
+ contentType: string;
104
106
  };
105
107
  };
106
108
  };
@@ -155,6 +157,7 @@ export declare const tabsItem: {
155
157
  properties: {
156
158
  text: {
157
159
  type: string;
160
+ contentType: string;
158
161
  };
159
162
  url: {
160
163
  type: string;
@@ -206,6 +209,7 @@ export declare const tabsItem: {
206
209
  properties: {
207
210
  text: {
208
211
  type: string;
212
+ contentType: string;
209
213
  };
210
214
  textSize: {
211
215
  type: string;
@@ -220,13 +224,16 @@ export declare const tabsItem: {
220
224
  };
221
225
  } | {
222
226
  type: string;
227
+ contentType: string;
223
228
  })[];
224
229
  } | undefined;
225
230
  text?: {
226
231
  type: string;
232
+ contentType: string;
227
233
  } | undefined;
228
234
  additionalInfo?: {
229
235
  type: string;
236
+ contentType: string;
230
237
  } | undefined;
231
238
  size?: {
232
239
  type: string;
@@ -272,6 +279,7 @@ export declare const TabsBlock: {
272
279
  properties: {
273
280
  text: {
274
281
  type: string;
282
+ contentType: string;
275
283
  };
276
284
  textSize: {
277
285
  type: string;
@@ -287,6 +295,7 @@ export declare const TabsBlock: {
287
295
  };
288
296
  description: {
289
297
  type: string;
298
+ contentType: string;
290
299
  };
291
300
  tabsColSizes: {};
292
301
  direction: {
@@ -314,6 +323,7 @@ export declare const TabsBlock: {
314
323
  properties: {
315
324
  text: {
316
325
  type: string;
326
+ contentType: string;
317
327
  };
318
328
  url: {
319
329
  type: string;
@@ -12,6 +12,7 @@ export const tabsItem = {
12
12
  type: 'string',
13
13
  }, caption: {
14
14
  type: 'string',
15
+ contentType: 'text',
15
16
  }, media: withTheme({
16
17
  type: 'object',
17
18
  properties: MediaProps,
@@ -25,6 +26,7 @@ export const TabsBlock = {
25
26
  required: ['title', 'items'],
26
27
  properties: Object.assign(Object.assign({}, BlockBaseProps), { title: TitleProps, description: {
27
28
  type: 'string',
29
+ contentType: 'text',
28
30
  }, tabsColSizes: containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: sizeNumber })), {}), direction: {
29
31
  type: 'string',
30
32
  enum: mediaDirection,
@@ -10,9 +10,11 @@ export declare const author: {
10
10
  properties: {
11
11
  firstName: {
12
12
  type: string;
13
+ contentType: string;
13
14
  };
14
15
  secondName: {
15
16
  type: string;
17
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: string;
38
40
  };
39
41
  disableCompress: {
40
42
  type: string;
@@ -1,43 +1,34 @@
1
1
  import { filteredItem } from '../../schema/validators/utils';
2
2
  export const urlPattern = '^((http[s]?|ftp):\\/)?\\/?([^:\\/\\s]+)((\\/\\w+)*\\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$';
3
+ const ImageBase = {
4
+ alt: {
5
+ type: 'string',
6
+ contentType: 'text',
7
+ },
8
+ disableCompress: {
9
+ type: 'boolean',
10
+ },
11
+ };
3
12
  export const ImageDeviceProps = {
4
13
  type: 'object',
5
14
  additionalProperties: false,
6
15
  required: ['desktop', 'mobile'],
7
- properties: {
8
- desktop: { type: 'string', pattern: urlPattern },
9
- tablet: {
16
+ properties: Object.assign(Object.assign({}, ImageBase), { desktop: { type: 'string', pattern: urlPattern }, tablet: {
10
17
  type: 'string',
11
18
  pattern: urlPattern,
12
- },
13
- mobile: {
19
+ }, mobile: {
14
20
  type: 'string',
15
21
  pattern: urlPattern,
16
- },
17
- alt: {
18
- type: 'string',
19
- },
20
- disableCompress: {
21
- type: 'boolean',
22
- },
23
- },
22
+ } }),
24
23
  };
25
24
  export const ImageObjectProps = {
26
25
  type: 'object',
27
26
  additionalProperties: false,
28
27
  required: ['src'],
29
- properties: {
30
- src: {
28
+ properties: Object.assign(Object.assign({}, ImageBase), { src: {
31
29
  type: 'string',
32
30
  pattern: urlPattern,
33
- },
34
- alt: {
35
- type: 'string',
36
- },
37
- disableCompress: {
38
- type: 'boolean',
39
- },
40
- },
31
+ } }),
41
32
  };
42
33
  export const ImageProps = {
43
34
  oneOf: [
@@ -43,6 +43,7 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
43
43
  properties: {
44
44
  title: {
45
45
  type: string;
46
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: string;
352
358
  };
353
359
  secondName: {
354
360
  type: string;
361
+ contentType: 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
+ contentType: string;
362
370
  };
363
371
  };
364
372
  };
365
373
  export declare const ButtonProps: {
366
374
  text: {
367
375
  type: string;
376
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: 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
+ contentType: string;
809
826
  };
810
827
  };
811
828
  };
@@ -76,6 +76,7 @@ export const PlayIconProps = {
76
76
  },
77
77
  text: {
78
78
  type: 'string',
79
+ contentType: '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
+ contentType: '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
+ contentType: '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
+ contentType: 'text',
208
212
  },
209
213
  secondName: {
210
214
  type: 'string',
215
+ contentType: '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
+ contentType: 'yfm',
218
224
  },
219
225
  },
220
226
  };
221
227
  export const ButtonProps = {
222
228
  text: {
223
229
  type: 'string',
230
+ contentType: '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
+ contentType: '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
+ contentType: '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
+ contentType: '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
+ contentType: 'text',
377
388
  },
378
389
  textSize: {
379
390
  type: 'string',
@@ -18,6 +18,7 @@ export declare const BackgroundCard: {
18
18
  };
19
19
  alt: {
20
20
  type: string;
21
+ contentType: string;
21
22
  };
22
23
  disableCompress: {
23
24
  type: string;
@@ -45,6 +46,7 @@ export declare const BackgroundCard: {
45
46
  properties: {
46
47
  text: {
47
48
  type: string;
49
+ contentType: string;
48
50
  };
49
51
  textSize: {
50
52
  type: string;
@@ -59,10 +61,12 @@ export declare const BackgroundCard: {
59
61
  };
60
62
  } | {
61
63
  type: string;
64
+ contentType: string;
62
65
  })[];
63
66
  };
64
67
  text: {
65
68
  type: string;
69
+ contentType: string;
66
70
  };
67
71
  theme: {
68
72
  type: string;
@@ -70,6 +74,7 @@ export declare const BackgroundCard: {
70
74
  };
71
75
  additionalInfo: {
72
76
  type: string;
77
+ contentType: string;
73
78
  };
74
79
  links: {
75
80
  type: string;
@@ -27,6 +27,7 @@ export declare const BasicCard: {
27
27
  properties: {
28
28
  text: {
29
29
  type: string;
30
+ contentType: string;
30
31
  };
31
32
  textSize: {
32
33
  type: string;
@@ -41,13 +42,16 @@ export declare const BasicCard: {
41
42
  };
42
43
  } | {
43
44
  type: string;
45
+ contentType: string;
44
46
  })[];
45
47
  };
46
48
  text: {
47
49
  type: string;
50
+ contentType: string;
48
51
  };
49
52
  additionalInfo: {
50
53
  type: string;
54
+ contentType: string;
51
55
  };
52
56
  links: {
53
57
  type: string;