@gravity-ui/page-constructor 1.9.1-alpha.0 → 1.9.1-alpha.2

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 (142) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +0 -12
  2. package/build/cjs/blocks/Banner/schema.js +0 -2
  3. package/build/cjs/blocks/CardLayout/schema.d.ts +0 -8
  4. package/build/cjs/blocks/CardLayout/schema.js +1 -2
  5. package/build/cjs/blocks/Companies/schema.d.ts +0 -2
  6. package/build/cjs/blocks/Companies/schema.js +0 -2
  7. package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -6
  8. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -7
  9. package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -4
  10. package/build/cjs/blocks/Header/schema.d.ts +0 -16
  11. package/build/cjs/blocks/Header/schema.js +0 -5
  12. package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -11
  13. package/build/cjs/blocks/Icons/schema.d.ts +0 -6
  14. package/build/cjs/blocks/Icons/schema.js +0 -2
  15. package/build/cjs/blocks/Info/schema.d.ts +0 -10
  16. package/build/cjs/blocks/Info/schema.js +0 -2
  17. package/build/cjs/blocks/LinkTable/schema.d.ts +0 -2
  18. package/build/cjs/blocks/Media/schema.d.ts +0 -9
  19. package/build/cjs/blocks/Media/schema.js +1 -3
  20. package/build/cjs/blocks/Preview/schema.d.ts +0 -2
  21. package/build/cjs/blocks/Preview/schema.js +0 -4
  22. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
  23. package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -4
  24. package/build/cjs/blocks/Questions/schema.d.ts +0 -5
  25. package/build/cjs/blocks/Questions/schema.js +0 -2
  26. package/build/cjs/blocks/Security/schema.d.ts +0 -2
  27. package/build/cjs/blocks/Security/schema.js +0 -2
  28. package/build/cjs/blocks/Simple/schema.d.ts +0 -3
  29. package/build/cjs/blocks/Simple/schema.js +0 -1
  30. package/build/cjs/blocks/Slider/schema.d.ts +0 -7
  31. package/build/cjs/blocks/Slider/schema.js +0 -2
  32. package/build/cjs/blocks/Table/schema.d.ts +0 -4
  33. package/build/cjs/blocks/Table/schema.js +0 -3
  34. package/build/cjs/blocks/Tabs/schema.d.ts +0 -10
  35. package/build/cjs/blocks/Tabs/schema.js +0 -2
  36. package/build/cjs/components/Author/schema.d.ts +0 -3
  37. package/build/cjs/components/Image/schema.d.ts +0 -2
  38. package/build/cjs/components/Image/schema.js +0 -2
  39. package/build/cjs/components/index.d.ts +1 -2
  40. package/build/cjs/components/index.js +2 -4
  41. package/build/cjs/components/navigation/components/Header/Header.d.ts +3 -3
  42. package/build/cjs/components/navigation/components/Logo/Logo.d.ts +2 -2
  43. package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -1
  44. package/build/cjs/components/navigation/components/Navigation/Navigation.d.ts +2 -2
  45. package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.d.ts +2 -2
  46. package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +2 -2
  47. package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.d.ts +3 -3
  48. package/build/cjs/components/navigation/containers/Layout/Layout.d.ts +2 -2
  49. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +2 -2
  50. package/build/cjs/models/navigation.d.ts +25 -25
  51. package/build/cjs/schema/index.d.ts +0 -2
  52. package/build/cjs/schema/validators/common.d.ts +0 -17
  53. package/build/cjs/schema/validators/common.js +0 -11
  54. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -5
  55. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +0 -4
  56. package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +0 -8
  57. package/build/cjs/sub-blocks/CardWithImage/schema.js +1 -4
  58. package/build/cjs/sub-blocks/Content/schema.d.ts +0 -8
  59. package/build/cjs/sub-blocks/Content/schema.js +1 -3
  60. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +0 -1
  61. package/build/cjs/sub-blocks/NewsCard/schema.d.ts +0 -1
  62. package/build/cjs/sub-blocks/NewsCard/schema.js +0 -1
  63. package/build/cjs/sub-blocks/Partner/schema.d.ts +0 -1
  64. package/build/cjs/sub-blocks/Partner/schema.js +0 -1
  65. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  66. package/build/cjs/sub-blocks/PriceDetailed/schema.js +0 -8
  67. package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -4
  68. package/build/cjs/sub-blocks/Quote/schema.js +0 -1
  69. package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +0 -2
  70. package/build/cjs/sub-blocks/TutorialCard/schema.js +0 -2
  71. package/build/esm/blocks/Banner/schema.d.ts +0 -12
  72. package/build/esm/blocks/Banner/schema.js +0 -2
  73. package/build/esm/blocks/CardLayout/schema.d.ts +0 -8
  74. package/build/esm/blocks/CardLayout/schema.js +1 -2
  75. package/build/esm/blocks/Companies/schema.d.ts +0 -2
  76. package/build/esm/blocks/Companies/schema.js +0 -2
  77. package/build/esm/blocks/ContentLayout/schema.d.ts +0 -6
  78. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -7
  79. package/build/esm/blocks/ExtendedFeatures/schema.js +1 -4
  80. package/build/esm/blocks/Header/schema.d.ts +0 -16
  81. package/build/esm/blocks/Header/schema.js +0 -5
  82. package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -11
  83. package/build/esm/blocks/Icons/schema.d.ts +0 -6
  84. package/build/esm/blocks/Icons/schema.js +0 -2
  85. package/build/esm/blocks/Info/schema.d.ts +0 -10
  86. package/build/esm/blocks/Info/schema.js +0 -2
  87. package/build/esm/blocks/LinkTable/schema.d.ts +0 -2
  88. package/build/esm/blocks/Media/schema.d.ts +0 -9
  89. package/build/esm/blocks/Media/schema.js +1 -3
  90. package/build/esm/blocks/Preview/schema.d.ts +0 -2
  91. package/build/esm/blocks/Preview/schema.js +0 -4
  92. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
  93. package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -4
  94. package/build/esm/blocks/Questions/schema.d.ts +0 -5
  95. package/build/esm/blocks/Questions/schema.js +0 -2
  96. package/build/esm/blocks/Security/schema.d.ts +0 -2
  97. package/build/esm/blocks/Security/schema.js +0 -2
  98. package/build/esm/blocks/Simple/schema.d.ts +0 -3
  99. package/build/esm/blocks/Simple/schema.js +0 -1
  100. package/build/esm/blocks/Slider/schema.d.ts +0 -7
  101. package/build/esm/blocks/Slider/schema.js +0 -2
  102. package/build/esm/blocks/Table/schema.d.ts +0 -4
  103. package/build/esm/blocks/Table/schema.js +0 -3
  104. package/build/esm/blocks/Tabs/schema.d.ts +0 -10
  105. package/build/esm/blocks/Tabs/schema.js +0 -2
  106. package/build/esm/components/Author/schema.d.ts +0 -3
  107. package/build/esm/components/Image/schema.d.ts +0 -2
  108. package/build/esm/components/Image/schema.js +0 -2
  109. package/build/esm/components/index.d.ts +1 -2
  110. package/build/esm/components/index.js +1 -2
  111. package/build/esm/components/navigation/components/Header/Header.d.ts +3 -3
  112. package/build/esm/components/navigation/components/Logo/Logo.d.ts +2 -2
  113. package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -1
  114. package/build/esm/components/navigation/components/Navigation/Navigation.d.ts +2 -2
  115. package/build/esm/components/navigation/components/NavigationItem/NavigationItem.d.ts +2 -2
  116. package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +2 -2
  117. package/build/esm/components/navigation/components/SocialIcon/SocialIcon.d.ts +3 -3
  118. package/build/esm/components/navigation/containers/Layout/Layout.d.ts +2 -2
  119. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +2 -2
  120. package/build/esm/models/navigation.d.ts +25 -25
  121. package/build/esm/schema/index.d.ts +0 -2
  122. package/build/esm/schema/validators/common.d.ts +0 -17
  123. package/build/esm/schema/validators/common.js +0 -11
  124. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -5
  125. package/build/esm/sub-blocks/BasicCard/schema.d.ts +0 -4
  126. package/build/esm/sub-blocks/CardWithImage/schema.d.ts +0 -8
  127. package/build/esm/sub-blocks/CardWithImage/schema.js +1 -4
  128. package/build/esm/sub-blocks/Content/schema.d.ts +0 -8
  129. package/build/esm/sub-blocks/Content/schema.js +1 -3
  130. package/build/esm/sub-blocks/MediaCard/schema.d.ts +0 -1
  131. package/build/esm/sub-blocks/NewsCard/schema.d.ts +0 -1
  132. package/build/esm/sub-blocks/NewsCard/schema.js +0 -1
  133. package/build/esm/sub-blocks/Partner/schema.d.ts +0 -1
  134. package/build/esm/sub-blocks/Partner/schema.js +0 -1
  135. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  136. package/build/esm/sub-blocks/PriceDetailed/schema.js +0 -8
  137. package/build/esm/sub-blocks/Quote/schema.d.ts +0 -4
  138. package/build/esm/sub-blocks/Quote/schema.js +0 -1
  139. package/build/esm/sub-blocks/TutorialCard/schema.d.ts +0 -2
  140. package/build/esm/sub-blocks/TutorialCard/schema.js +0 -2
  141. package/package.json +1 -1
  142. package/server/models/navigation.d.ts +25 -25
@@ -1,8 +1,8 @@
1
1
  import React, { MouseEventHandler } from 'react';
2
- import { NavigationItemData } from '../../../../models';
2
+ import { NavigationItemDataProps } from '../../../../models';
3
3
  import './NavigationItem.css';
4
4
  export interface NavigationItemProps {
5
- data: NavigationItemData;
5
+ data: NavigationItemDataProps;
6
6
  className?: string;
7
7
  onClick?: MouseEventHandler;
8
8
  isOpened?: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { NavigationLinkItem } from '../../../../models';
2
+ import { NavigationLinkItemProps } from '../../../../models';
3
3
  import './NavigationPopup.css';
4
4
  export interface NavigationPopupProps {
5
- items: NavigationLinkItem[];
5
+ items: NavigationLinkItemProps[];
6
6
  onClose: () => void;
7
7
  left?: number;
8
8
  className?: string;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { NavigationSocialItem } from '../../../../models';
2
+ import { NavigationSocialItemProps } from '../../../../models';
3
3
  import './SocialIcon.css';
4
- export interface NavigationSocialItemProps extends NavigationSocialItem {
4
+ export interface NavigationSocialItemOwnProps extends NavigationSocialItemProps {
5
5
  className?: string;
6
6
  }
7
- declare const SocialIcon: React.FC<NavigationSocialItemProps>;
7
+ declare const SocialIcon: React.FC<NavigationSocialItemOwnProps>;
8
8
  export default SocialIcon;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { NavigationData } from '../../../../models';
2
+ import { NavigationDataProps } from '../../../../models';
3
3
  import './Layout.css';
4
4
  export interface LayoutProps {
5
- navigation?: NavigationData;
5
+ navigation?: NavigationDataProps;
6
6
  children?: React.ReactNode;
7
7
  }
8
8
  declare const Layout: React.FC<LayoutProps>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import '@doc-tools/transform/dist/js/yfm';
3
- import { ShouldRenderBlock, CustomConfig, PageContent, CustomItems, NavigationData } from '../../models';
3
+ import { ShouldRenderBlock, CustomConfig, PageContent, CustomItems, NavigationDataProps } from '../../models';
4
4
  import { blockMap, subBlockMap } from '../../constructor-items';
5
5
  import './PageConstructor.css';
6
6
  export declare type ItemMap = typeof blockMap & typeof subBlockMap & CustomItems;
@@ -9,7 +9,7 @@ export interface PageConstructorProps {
9
9
  shouldRenderBlock?: ShouldRenderBlock;
10
10
  custom?: CustomConfig;
11
11
  renderMenu?: () => React.ReactNode;
12
- navigation?: NavigationData;
12
+ navigation?: NavigationDataProps;
13
13
  }
14
14
  export declare const Constructor: (props: PageConstructorProps) => JSX.Element;
15
15
  export declare const PageConstructor: (props: PageConstructorProps) => JSX.Element;
@@ -5,58 +5,58 @@ export declare enum NavigationItemType {
5
5
  Button = "button",
6
6
  Social = "social"
7
7
  }
8
- export interface NavigationItemBase {
8
+ export interface NavigationItemBaseProps {
9
9
  text: string;
10
10
  icon?: ImageProps;
11
11
  url?: string;
12
12
  }
13
- export interface NavigationLinkItem extends NavigationItemBase {
13
+ export interface NavigationLinkItemProps extends NavigationItemBaseProps {
14
14
  type: NavigationItemType.Link;
15
15
  url: string;
16
16
  arrow?: boolean;
17
17
  target?: string;
18
18
  }
19
- export interface NavigationButtonItem extends ButtonProps {
19
+ export interface NavigationButtonItemProps extends ButtonProps {
20
20
  type: NavigationItemType.Button;
21
21
  url: string;
22
22
  target?: string;
23
23
  }
24
- export interface NavigationDropdownItem extends NavigationItemBase {
24
+ export interface NavigationDropdownItemProps extends NavigationItemBaseProps {
25
25
  type: NavigationItemType.Dropdown;
26
- items: NavigationLinkItem[];
26
+ items: NavigationLinkItemProps[];
27
27
  }
28
- export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
28
+ export interface NavigationSocialItemProps extends Omit<NavigationItemBaseProps, 'text'> {
29
29
  type: NavigationItemType.Social;
30
30
  icon: ImageProps;
31
31
  url: string;
32
32
  }
33
- export declare type NavigationItem = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
34
- export declare type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
35
- export declare type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
36
- export interface NavigationLogo {
33
+ export declare type NavigationItemProps = NavigationLinkItemProps | NavigationButtonItemProps | NavigationDropdownItemProps;
34
+ export declare type NavigationItemDataProps = NavigationLinkItemProps | NavigationButtonItemProps | NavigationSocialItemProps | DropdownItemDataProps;
35
+ export declare type DropdownItemDataProps = Omit<NavigationDropdownItemProps, 'items'>;
36
+ export interface NavigationLogoProps {
37
37
  icon: ImageProps;
38
38
  text?: string;
39
39
  url?: string;
40
40
  }
41
- export interface HeaderData {
42
- leftItems: NavigationItem[];
43
- rightItems?: NavigationItem[];
41
+ export interface HeaderDataProps {
42
+ leftItems: NavigationItemProps[];
43
+ rightItems?: NavigationItemProps[];
44
44
  }
45
- export interface FooterColumn {
45
+ export interface FooterColumnProps {
46
46
  title: string;
47
- links: NavigationItem[];
47
+ links: NavigationItemProps[];
48
48
  }
49
- export interface FooterUnderline {
50
- links?: NavigationItem[];
49
+ export interface FooterUnderlineProps {
50
+ links?: NavigationItemProps[];
51
51
  copyright?: string;
52
52
  }
53
- export interface FooterData {
54
- columns: FooterColumn[];
55
- social?: NavigationSocialItem[];
56
- underline?: FooterUnderline;
53
+ export interface FooterDataProps {
54
+ columns: FooterColumnProps[];
55
+ social?: NavigationSocialItemProps[];
56
+ underline?: FooterUnderlineProps;
57
57
  }
58
- export interface NavigationData {
59
- logo: NavigationLogo;
60
- header: HeaderData;
61
- footer?: FooterData;
58
+ export interface NavigationDataProps {
59
+ logo: NavigationLogoProps;
60
+ header: HeaderDataProps;
61
+ footer?: FooterDataProps;
62
62
  }
@@ -43,7 +43,6 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
43
43
  properties: {
44
44
  title: {
45
45
  type: string;
46
- content: string;
47
46
  };
48
47
  };
49
48
  };
@@ -122,7 +121,6 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
122
121
  };
123
122
  text: {
124
123
  type: string;
125
- content: string;
126
124
  };
127
125
  };
128
126
  };
@@ -83,7 +83,6 @@ export declare const PlayIconProps: {
83
83
  };
84
84
  text: {
85
85
  type: string;
86
- content: string;
87
86
  };
88
87
  };
89
88
  };
@@ -142,7 +141,6 @@ export declare const VideoProps: {
142
141
  };
143
142
  text: {
144
143
  type: string;
145
- content: string;
146
144
  };
147
145
  };
148
146
  };
@@ -266,7 +264,6 @@ export declare const BackgroundProps: {
266
264
  };
267
265
  text: {
268
266
  type: string;
269
- content: string;
270
267
  };
271
268
  };
272
269
  };
@@ -298,7 +295,6 @@ export declare const LinkProps: {
298
295
  properties: {
299
296
  text: {
300
297
  type: string;
301
- content: string;
302
298
  };
303
299
  url: {
304
300
  type: string;
@@ -332,7 +328,6 @@ export declare const FileLinkProps: {
332
328
  };
333
329
  text: {
334
330
  type: string;
335
- content: string;
336
331
  };
337
332
  type: {
338
333
  type: string;
@@ -354,11 +349,9 @@ export declare const authorItem: {
354
349
  properties: {
355
350
  firstName: {
356
351
  type: string;
357
- content: string;
358
352
  };
359
353
  secondName: {
360
354
  type: string;
361
- content: string;
362
355
  };
363
356
  avatar: {
364
357
  type: string;
@@ -366,14 +359,12 @@ export declare const authorItem: {
366
359
  };
367
360
  description: {
368
361
  type: string;
369
- content: string;
370
362
  };
371
363
  };
372
364
  };
373
365
  export declare const ButtonProps: {
374
366
  text: {
375
367
  type: string;
376
- content: string;
377
368
  };
378
369
  url: {
379
370
  type: string;
@@ -409,7 +400,6 @@ export declare const ButtonProps: {
409
400
  };
410
401
  alt: {
411
402
  type: string;
412
- content: string;
413
403
  };
414
404
  };
415
405
  })[];
@@ -510,7 +500,6 @@ export declare const MenuProps: {
510
500
  properties: {
511
501
  title: {
512
502
  type: string;
513
- content: string;
514
503
  };
515
504
  };
516
505
  };
@@ -529,7 +518,6 @@ export declare const AnchorProps: {
529
518
  properties: {
530
519
  text: {
531
520
  type: string;
532
- content: string;
533
521
  };
534
522
  url: {
535
523
  type: string;
@@ -544,7 +532,6 @@ export declare const BlockBaseProps: {
544
532
  properties: {
545
533
  text: {
546
534
  type: string;
547
- content: string;
548
535
  };
549
536
  url: {
550
537
  type: string;
@@ -568,7 +555,6 @@ export declare const TitleProps: {
568
555
  properties: {
569
556
  text: {
570
557
  type: string;
571
- content: string;
572
558
  };
573
559
  textSize: {
574
560
  type: string;
@@ -588,7 +574,6 @@ export declare const ButtonBlock: {
588
574
  properties: {
589
575
  text: {
590
576
  type: string;
591
- content: string;
592
577
  };
593
578
  url: {
594
579
  type: string;
@@ -624,7 +609,6 @@ export declare const ButtonBlock: {
624
609
  };
625
610
  alt: {
626
611
  type: string;
627
- content: string;
628
612
  };
629
613
  };
630
614
  })[];
@@ -822,7 +806,6 @@ export declare const MediaProps: {
822
806
  };
823
807
  text: {
824
808
  type: string;
825
- content: string;
826
809
  };
827
810
  };
828
811
  };
@@ -76,7 +76,6 @@ export const PlayIconProps = {
76
76
  },
77
77
  text: {
78
78
  type: 'string',
79
- content: 'text',
80
79
  },
81
80
  },
82
81
  };
@@ -160,7 +159,6 @@ export const LinkProps = {
160
159
  required: ['text', 'url'],
161
160
  properties: Object.assign(Object.assign({}, BaseProps), { text: {
162
161
  type: 'string',
163
- content: 'text',
164
162
  }, url: {
165
163
  type: 'string',
166
164
  }, arrow: {
@@ -186,7 +184,6 @@ export const FileLinkProps = {
186
184
  },
187
185
  text: {
188
186
  type: 'string',
189
- content: 'text',
190
187
  },
191
188
  type: {
192
189
  type: 'string',
@@ -208,11 +205,9 @@ export const authorItem = {
208
205
  properties: {
209
206
  firstName: {
210
207
  type: 'string',
211
- content: 'text',
212
208
  },
213
209
  secondName: {
214
210
  type: 'string',
215
- content: 'text',
216
211
  },
217
212
  avatar: {
218
213
  type: 'string',
@@ -220,14 +215,12 @@ export const authorItem = {
220
215
  },
221
216
  description: {
222
217
  type: 'string',
223
- content: 'yfm',
224
218
  },
225
219
  },
226
220
  };
227
221
  export const ButtonProps = {
228
222
  text: {
229
223
  type: 'string',
230
- content: 'text',
231
224
  },
232
225
  url: {
233
226
  type: 'string',
@@ -300,7 +293,6 @@ export const ButtonProps = {
300
293
  },
301
294
  alt: {
302
295
  type: 'string',
303
- content: 'text',
304
296
  },
305
297
  },
306
298
  },
@@ -340,7 +332,6 @@ export const MenuProps = {
340
332
  properties: {
341
333
  title: {
342
334
  type: 'string',
343
- content: 'text',
344
335
  },
345
336
  },
346
337
  };
@@ -364,7 +355,6 @@ export const AnchorProps = {
364
355
  properties: {
365
356
  text: {
366
357
  type: 'string',
367
- content: 'text',
368
358
  },
369
359
  url: {
370
360
  type: 'string',
@@ -384,7 +374,6 @@ export const TitleProps = {
384
374
  properties: {
385
375
  text: {
386
376
  type: 'string',
387
- content: 'text',
388
377
  },
389
378
  textSize: {
390
379
  type: 'string',
@@ -18,7 +18,6 @@ export declare const BackgroundCard: {
18
18
  };
19
19
  alt: {
20
20
  type: string;
21
- content: string;
22
21
  };
23
22
  disableCompress: {
24
23
  type: string;
@@ -46,7 +45,6 @@ export declare const BackgroundCard: {
46
45
  properties: {
47
46
  text: {
48
47
  type: string;
49
- content: string;
50
48
  };
51
49
  textSize: {
52
50
  type: string;
@@ -61,12 +59,10 @@ export declare const BackgroundCard: {
61
59
  };
62
60
  } | {
63
61
  type: string;
64
- content: string;
65
62
  })[];
66
63
  };
67
64
  text: {
68
65
  type: string;
69
- content: string;
70
66
  };
71
67
  theme: {
72
68
  type: string;
@@ -74,7 +70,6 @@ export declare const BackgroundCard: {
74
70
  };
75
71
  additionalInfo: {
76
72
  type: string;
77
- content: string;
78
73
  };
79
74
  links: {
80
75
  type: string;
@@ -27,7 +27,6 @@ export declare const BasicCard: {
27
27
  properties: {
28
28
  text: {
29
29
  type: string;
30
- content: string;
31
30
  };
32
31
  textSize: {
33
32
  type: string;
@@ -42,16 +41,13 @@ export declare const BasicCard: {
42
41
  };
43
42
  } | {
44
43
  type: string;
45
- content: string;
46
44
  })[];
47
45
  };
48
46
  text: {
49
47
  type: string;
50
- content: string;
51
48
  };
52
49
  additionalInfo: {
53
50
  type: string;
54
- content: string;
55
51
  };
56
52
  links: {
57
53
  type: string;
@@ -13,7 +13,6 @@ export declare const CardWithImageItem: {
13
13
  properties: {
14
14
  text: {
15
15
  type: string;
16
- content: string;
17
16
  };
18
17
  textSize: {
19
18
  type: string;
@@ -28,16 +27,13 @@ export declare const CardWithImageItem: {
28
27
  };
29
28
  } | {
30
29
  type: string;
31
- content: string;
32
30
  })[];
33
31
  };
34
32
  description: {
35
33
  type: string;
36
- content: string;
37
34
  };
38
35
  additionalInfo: {
39
36
  type: string;
40
- content: string;
41
37
  };
42
38
  disableCompress: {
43
39
  type: string;
@@ -90,7 +86,6 @@ export declare const CardWithImage: {
90
86
  properties: {
91
87
  text: {
92
88
  type: string;
93
- content: string;
94
89
  };
95
90
  textSize: {
96
91
  type: string;
@@ -105,16 +100,13 @@ export declare const CardWithImage: {
105
100
  };
106
101
  } | {
107
102
  type: string;
108
- content: string;
109
103
  })[];
110
104
  };
111
105
  description: {
112
106
  type: string;
113
- content: string;
114
107
  };
115
108
  additionalInfo: {
116
109
  type: string;
117
- content: string;
118
110
  };
119
111
  disableCompress: {
120
112
  type: string;
@@ -6,7 +6,6 @@ const CardWithImageLinks = {
6
6
  required: ['title', 'link'],
7
7
  properties: Object.assign(Object.assign({}, BaseProps), { title: {
8
8
  type: 'string',
9
- content: 'text',
10
9
  }, link: {
11
10
  type: 'string',
12
11
  }, arrow: {
@@ -25,13 +24,11 @@ export const CardWithImageItem = {
25
24
  properties: Object.assign(Object.assign({}, BaseProps), { image: {
26
25
  type: 'string',
27
26
  }, title: {
28
- oneOf: [{ type: 'string', content: 'text' }, TitleProps],
27
+ oneOf: [{ type: 'string' }, TitleProps],
29
28
  }, description: {
30
29
  type: 'string',
31
- content: 'yfm',
32
30
  }, additionalInfo: {
33
31
  type: 'string',
34
- content: 'yfm',
35
32
  }, disableCompress: {
36
33
  type: 'boolean',
37
34
  }, border: {
@@ -7,7 +7,6 @@ export declare const ContentBase: {
7
7
  properties: {
8
8
  text: {
9
9
  type: string;
10
- content: string;
11
10
  };
12
11
  textSize: {
13
12
  type: string;
@@ -22,16 +21,13 @@ export declare const ContentBase: {
22
21
  };
23
22
  } | {
24
23
  type: string;
25
- content: string;
26
24
  })[];
27
25
  };
28
26
  text: {
29
27
  type: string;
30
- content: string;
31
28
  };
32
29
  additionalInfo: {
33
30
  type: string;
34
- content: string;
35
31
  };
36
32
  size: {
37
33
  type: string;
@@ -80,7 +76,6 @@ export declare const ContentBlock: {
80
76
  properties: {
81
77
  text: {
82
78
  type: string;
83
- content: string;
84
79
  };
85
80
  textSize: {
86
81
  type: string;
@@ -95,16 +90,13 @@ export declare const ContentBlock: {
95
90
  };
96
91
  } | {
97
92
  type: string;
98
- content: string;
99
93
  })[];
100
94
  };
101
95
  text: {
102
96
  type: string;
103
- content: string;
104
97
  };
105
98
  additionalInfo: {
106
99
  type: string;
107
- content: string;
108
100
  };
109
101
  size: {
110
102
  type: string;
@@ -2,15 +2,13 @@ import { containerSizesArray, contentSizes, contentThemes, LinkProps, sizeNumber
2
2
  import { filteredArray } from '../../schema/validators/utils';
3
3
  export const ContentBase = {
4
4
  title: {
5
- oneOf: [{ type: 'string', content: 'text' }, TitleProps],
5
+ oneOf: [{ type: 'string' }, TitleProps],
6
6
  },
7
7
  text: {
8
8
  type: 'string',
9
- content: 'yfm',
10
9
  },
11
10
  additionalInfo: {
12
11
  type: 'string',
13
- content: 'yfm',
14
12
  },
15
13
  size: {
16
14
  type: 'string',
@@ -94,7 +94,6 @@ export declare const MediaCardBlock: {
94
94
  };
95
95
  text: {
96
96
  type: string;
97
- content: string;
98
97
  };
99
98
  };
100
99
  };
@@ -5,7 +5,6 @@ export declare const NewsCard: {
5
5
  properties: {
6
6
  title: {
7
7
  type: string;
8
- content: string;
9
8
  };
10
9
  url: {
11
10
  type: string;
@@ -5,7 +5,6 @@ export const NewsCard = {
5
5
  required: ['title', 'url', 'date'],
6
6
  properties: Object.assign(Object.assign({}, BaseProps), { title: {
7
7
  type: 'string',
8
- content: 'text',
9
8
  }, url: {
10
9
  type: 'string',
11
10
  }, date: {
@@ -5,7 +5,6 @@ export declare const PartnerBlock: {
5
5
  properties: {
6
6
  text: {
7
7
  type: string;
8
- content: string;
9
8
  };
10
9
  logo: {
11
10
  oneOf: ({
@@ -6,7 +6,6 @@ export const PartnerBlock = {
6
6
  required: ['text', 'logo', 'url'],
7
7
  properties: Object.assign(Object.assign({}, BaseProps), { text: {
8
8
  type: 'string',
9
- content: 'text',
10
9
  }, logo: ImageProps, url: {
11
10
  type: 'string',
12
11
  } }),
@@ -66,7 +66,6 @@ export declare const PriceDetailedBlock: {
66
66
  properties: {
67
67
  title: {
68
68
  type: string;
69
- content: string;
70
69
  };
71
70
  size: {
72
71
  type: string;
@@ -19,7 +19,6 @@ const PriceDetailedFoldableDetailsProps = {
19
19
  properties: {
20
20
  title: {
21
21
  type: 'string',
22
- content: 'text',
23
22
  },
24
23
  size: {
25
24
  type: 'string',
@@ -73,7 +72,6 @@ const PriceDescriptionLabelProps = {
73
72
  },
74
73
  text: {
75
74
  type: 'string',
76
- content: 'text',
77
75
  },
78
76
  size: {
79
77
  type: 'string',
@@ -84,15 +82,12 @@ const PriceDescriptionLabelProps = {
84
82
  const PriceDescriptionProps = {
85
83
  title: {
86
84
  type: 'string',
87
- content: 'text',
88
85
  },
89
86
  description: {
90
87
  type: 'string',
91
- content: 'yfm',
92
88
  },
93
89
  detailedTitle: {
94
90
  type: 'string',
95
- content: 'text',
96
91
  },
97
92
  label: PriceDescriptionLabelProps,
98
93
  };
@@ -103,11 +98,9 @@ const PriceDetailsSettingsProps = {
103
98
  properties: {
104
99
  title: {
105
100
  type: 'string',
106
- content: 'text',
107
101
  },
108
102
  description: {
109
103
  type: 'string',
110
- content: 'yfm',
111
104
  },
112
105
  },
113
106
  };
@@ -118,7 +111,6 @@ const PriceDetailsListProps = {
118
111
  properties: {
119
112
  text: {
120
113
  type: 'string',
121
- content: 'yfm',
122
114
  },
123
115
  },
124
116
  };