@gravity-ui/page-constructor 1.8.0-alfa.0 → 1.8.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 (222) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +58 -36
  3. package/build/cjs/blocks/Banner/schema.d.ts +0 -12
  4. package/build/cjs/blocks/Banner/schema.js +0 -2
  5. package/build/cjs/blocks/CardLayout/schema.d.ts +0 -8
  6. package/build/cjs/blocks/CardLayout/schema.js +1 -2
  7. package/build/cjs/blocks/Companies/schema.d.ts +0 -2
  8. package/build/cjs/blocks/Companies/schema.js +0 -2
  9. package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -6
  10. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
  11. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -7
  12. package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -4
  13. package/build/cjs/blocks/Header/schema.d.ts +0 -16
  14. package/build/cjs/blocks/Header/schema.js +0 -5
  15. package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -11
  16. package/build/cjs/blocks/Icons/schema.d.ts +0 -6
  17. package/build/cjs/blocks/Icons/schema.js +0 -2
  18. package/build/cjs/blocks/Info/schema.d.ts +0 -10
  19. package/build/cjs/blocks/Info/schema.js +0 -2
  20. package/build/cjs/blocks/LinkTable/schema.d.ts +0 -2
  21. package/build/cjs/blocks/Media/schema.d.ts +0 -9
  22. package/build/cjs/blocks/Media/schema.js +1 -3
  23. package/build/cjs/blocks/Preview/schema.d.ts +0 -2
  24. package/build/cjs/blocks/Preview/schema.js +0 -4
  25. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
  26. package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -4
  27. package/build/cjs/blocks/Questions/schema.d.ts +0 -5
  28. package/build/cjs/blocks/Questions/schema.js +0 -2
  29. package/build/cjs/blocks/Security/schema.d.ts +0 -2
  30. package/build/cjs/blocks/Security/schema.js +0 -2
  31. package/build/cjs/blocks/Simple/schema.d.ts +0 -3
  32. package/build/cjs/blocks/Simple/schema.js +0 -1
  33. package/build/cjs/blocks/Slider/schema.d.ts +0 -7
  34. package/build/cjs/blocks/Slider/schema.js +0 -2
  35. package/build/cjs/blocks/Table/schema.d.ts +0 -4
  36. package/build/cjs/blocks/Table/schema.js +0 -3
  37. package/build/cjs/blocks/Tabs/schema.d.ts +0 -8
  38. package/build/cjs/blocks/Tabs/schema.js +0 -4
  39. package/build/cjs/components/Author/schema.d.ts +0 -3
  40. package/build/cjs/components/Image/schema.d.ts +0 -2
  41. package/build/cjs/components/Image/schema.js +0 -2
  42. package/build/cjs/components/OverflowScroller/OverflowScroller.css +2 -0
  43. package/build/cjs/components/RouterLink/RouterLink.d.ts +1 -0
  44. package/build/cjs/components/index.d.ts +2 -0
  45. package/build/cjs/components/index.js +40 -39
  46. package/build/cjs/components/navigation/components/Header/Header.css +85 -0
  47. package/build/cjs/components/navigation/components/Header/Header.d.ts +8 -0
  48. package/build/cjs/components/navigation/components/Header/Header.js +55 -0
  49. package/build/cjs/components/navigation/components/Logo/Logo.css +23 -0
  50. package/build/cjs/components/navigation/components/Logo/Logo.d.ts +7 -0
  51. package/build/cjs/components/navigation/components/Logo/Logo.js +17 -0
  52. package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.css +64 -0
  53. package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +13 -0
  54. package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.js +45 -0
  55. package/build/cjs/components/navigation/components/Navigation/Navigation.css +43 -0
  56. package/build/cjs/components/navigation/components/Navigation/Navigation.d.ts +18 -0
  57. package/build/cjs/components/navigation/components/Navigation/Navigation.js +69 -0
  58. package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.css +40 -0
  59. package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.d.ts +10 -0
  60. package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.js +59 -0
  61. package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.css +33 -0
  62. package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +10 -0
  63. package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.js +45 -0
  64. package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.css +20 -0
  65. package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.d.ts +7 -0
  66. package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.js +14 -0
  67. package/build/cjs/components/navigation/components/index.d.ts +7 -0
  68. package/build/cjs/components/navigation/components/index.js +20 -0
  69. package/build/cjs/components/navigation/containers/Layout/Layout.css +10 -0
  70. package/build/cjs/components/navigation/containers/Layout/Layout.d.ts +8 -0
  71. package/build/cjs/components/navigation/containers/Layout/Layout.js +11 -0
  72. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +3 -2
  73. package/build/cjs/containers/PageConstructor/PageConstructor.js +12 -10
  74. package/build/cjs/context/locationContext/locationContext.d.ts +1 -0
  75. package/build/cjs/icons/NavigationArrow.d.ts +2 -0
  76. package/build/cjs/icons/NavigationArrow.js +9 -0
  77. package/build/cjs/icons/NavigationClose.d.ts +2 -0
  78. package/build/cjs/icons/NavigationClose.js +9 -0
  79. package/build/cjs/icons/NavigationOpen.d.ts +2 -0
  80. package/build/cjs/icons/NavigationOpen.js +11 -0
  81. package/build/cjs/icons/index.d.ts +3 -0
  82. package/build/cjs/icons/index.js +3 -0
  83. package/build/cjs/models/constructor-items/blocks.d.ts +2 -4
  84. package/build/cjs/models/index.d.ts +1 -0
  85. package/build/cjs/models/index.js +1 -0
  86. package/build/cjs/models/navigation.d.ts +62 -0
  87. package/build/cjs/models/navigation.js +10 -0
  88. package/build/cjs/schema/index.d.ts +0 -2
  89. package/build/cjs/schema/validators/common.d.ts +0 -17
  90. package/build/cjs/schema/validators/common.js +0 -11
  91. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -5
  92. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +0 -4
  93. package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +0 -8
  94. package/build/cjs/sub-blocks/CardWithImage/schema.js +1 -4
  95. package/build/cjs/sub-blocks/Content/schema.d.ts +0 -8
  96. package/build/cjs/sub-blocks/Content/schema.js +1 -3
  97. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +0 -1
  98. package/build/cjs/sub-blocks/NewsCard/schema.d.ts +0 -1
  99. package/build/cjs/sub-blocks/NewsCard/schema.js +0 -1
  100. package/build/cjs/sub-blocks/Partner/schema.d.ts +0 -1
  101. package/build/cjs/sub-blocks/Partner/schema.js +0 -1
  102. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  103. package/build/cjs/sub-blocks/PriceDetailed/schema.js +0 -8
  104. package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -4
  105. package/build/cjs/sub-blocks/Quote/schema.js +0 -1
  106. package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +0 -2
  107. package/build/cjs/sub-blocks/TutorialCard/schema.js +0 -2
  108. package/build/cjs/text-transform/blocks.js +0 -1
  109. package/build/esm/blocks/Banner/schema.d.ts +0 -12
  110. package/build/esm/blocks/Banner/schema.js +0 -2
  111. package/build/esm/blocks/CardLayout/schema.d.ts +0 -8
  112. package/build/esm/blocks/CardLayout/schema.js +1 -2
  113. package/build/esm/blocks/Companies/schema.d.ts +0 -2
  114. package/build/esm/blocks/Companies/schema.js +0 -2
  115. package/build/esm/blocks/ContentLayout/schema.d.ts +0 -6
  116. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
  117. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -7
  118. package/build/esm/blocks/ExtendedFeatures/schema.js +1 -4
  119. package/build/esm/blocks/Header/schema.d.ts +0 -16
  120. package/build/esm/blocks/Header/schema.js +0 -5
  121. package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -11
  122. package/build/esm/blocks/Icons/schema.d.ts +0 -6
  123. package/build/esm/blocks/Icons/schema.js +0 -2
  124. package/build/esm/blocks/Info/schema.d.ts +0 -10
  125. package/build/esm/blocks/Info/schema.js +0 -2
  126. package/build/esm/blocks/LinkTable/schema.d.ts +0 -2
  127. package/build/esm/blocks/Media/schema.d.ts +0 -9
  128. package/build/esm/blocks/Media/schema.js +1 -3
  129. package/build/esm/blocks/Preview/schema.d.ts +0 -2
  130. package/build/esm/blocks/Preview/schema.js +0 -4
  131. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
  132. package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -4
  133. package/build/esm/blocks/Questions/schema.d.ts +0 -5
  134. package/build/esm/blocks/Questions/schema.js +0 -2
  135. package/build/esm/blocks/Security/schema.d.ts +0 -2
  136. package/build/esm/blocks/Security/schema.js +0 -2
  137. package/build/esm/blocks/Simple/schema.d.ts +0 -3
  138. package/build/esm/blocks/Simple/schema.js +0 -1
  139. package/build/esm/blocks/Slider/schema.d.ts +0 -7
  140. package/build/esm/blocks/Slider/schema.js +0 -2
  141. package/build/esm/blocks/Table/schema.d.ts +0 -4
  142. package/build/esm/blocks/Table/schema.js +0 -3
  143. package/build/esm/blocks/Tabs/schema.d.ts +0 -8
  144. package/build/esm/blocks/Tabs/schema.js +0 -4
  145. package/build/esm/components/Author/schema.d.ts +0 -3
  146. package/build/esm/components/Image/schema.d.ts +0 -2
  147. package/build/esm/components/Image/schema.js +0 -2
  148. package/build/esm/components/OverflowScroller/OverflowScroller.css +2 -0
  149. package/build/esm/components/RouterLink/RouterLink.d.ts +1 -0
  150. package/build/esm/components/index.d.ts +2 -0
  151. package/build/esm/components/index.js +2 -0
  152. package/build/esm/components/navigation/components/Header/Header.css +85 -0
  153. package/build/esm/components/navigation/components/Header/Header.d.ts +9 -0
  154. package/build/esm/components/navigation/components/Header/Header.js +51 -0
  155. package/build/esm/components/navigation/components/Logo/Logo.css +23 -0
  156. package/build/esm/components/navigation/components/Logo/Logo.d.ts +8 -0
  157. package/build/esm/components/navigation/components/Logo/Logo.js +15 -0
  158. package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.css +64 -0
  159. package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +14 -0
  160. package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.js +43 -0
  161. package/build/esm/components/navigation/components/Navigation/Navigation.css +43 -0
  162. package/build/esm/components/navigation/components/Navigation/Navigation.d.ts +19 -0
  163. package/build/esm/components/navigation/components/Navigation/Navigation.js +68 -0
  164. package/build/esm/components/navigation/components/NavigationItem/NavigationItem.css +40 -0
  165. package/build/esm/components/navigation/components/NavigationItem/NavigationItem.d.ts +11 -0
  166. package/build/esm/components/navigation/components/NavigationItem/NavigationItem.js +58 -0
  167. package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.css +33 -0
  168. package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +11 -0
  169. package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.js +41 -0
  170. package/build/esm/components/navigation/components/SocialIcon/SocialIcon.css +20 -0
  171. package/build/esm/components/navigation/components/SocialIcon/SocialIcon.d.ts +8 -0
  172. package/build/esm/components/navigation/components/SocialIcon/SocialIcon.js +12 -0
  173. package/build/esm/components/navigation/components/index.d.ts +7 -0
  174. package/build/esm/components/navigation/components/index.js +7 -0
  175. package/build/esm/components/navigation/containers/Layout/Layout.css +10 -0
  176. package/build/esm/components/navigation/containers/Layout/Layout.d.ts +9 -0
  177. package/build/esm/components/navigation/containers/Layout/Layout.js +9 -0
  178. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +3 -2
  179. package/build/esm/containers/PageConstructor/PageConstructor.js +12 -10
  180. package/build/esm/context/locationContext/locationContext.d.ts +1 -0
  181. package/build/esm/icons/NavigationArrow.d.ts +2 -0
  182. package/build/esm/icons/NavigationArrow.js +4 -0
  183. package/build/esm/icons/NavigationClose.d.ts +2 -0
  184. package/build/esm/icons/NavigationClose.js +4 -0
  185. package/build/esm/icons/NavigationOpen.d.ts +2 -0
  186. package/build/esm/icons/NavigationOpen.js +6 -0
  187. package/build/esm/icons/index.d.ts +3 -0
  188. package/build/esm/icons/index.js +3 -0
  189. package/build/esm/models/constructor-items/blocks.d.ts +2 -4
  190. package/build/esm/models/index.d.ts +1 -0
  191. package/build/esm/models/index.js +1 -0
  192. package/build/esm/models/navigation.d.ts +62 -0
  193. package/build/esm/models/navigation.js +7 -0
  194. package/build/esm/schema/index.d.ts +0 -2
  195. package/build/esm/schema/validators/common.d.ts +0 -17
  196. package/build/esm/schema/validators/common.js +0 -11
  197. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -5
  198. package/build/esm/sub-blocks/BasicCard/schema.d.ts +0 -4
  199. package/build/esm/sub-blocks/CardWithImage/schema.d.ts +0 -8
  200. package/build/esm/sub-blocks/CardWithImage/schema.js +1 -4
  201. package/build/esm/sub-blocks/Content/schema.d.ts +0 -8
  202. package/build/esm/sub-blocks/Content/schema.js +1 -3
  203. package/build/esm/sub-blocks/MediaCard/schema.d.ts +0 -1
  204. package/build/esm/sub-blocks/NewsCard/schema.d.ts +0 -1
  205. package/build/esm/sub-blocks/NewsCard/schema.js +0 -1
  206. package/build/esm/sub-blocks/Partner/schema.d.ts +0 -1
  207. package/build/esm/sub-blocks/Partner/schema.js +0 -1
  208. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  209. package/build/esm/sub-blocks/PriceDetailed/schema.js +0 -8
  210. package/build/esm/sub-blocks/Quote/schema.d.ts +0 -4
  211. package/build/esm/sub-blocks/Quote/schema.js +0 -1
  212. package/build/esm/sub-blocks/TutorialCard/schema.d.ts +0 -2
  213. package/build/esm/sub-blocks/TutorialCard/schema.js +0 -2
  214. package/build/esm/text-transform/blocks.js +0 -1
  215. package/package.json +2 -5
  216. package/server/models/constructor-items/blocks.d.ts +2 -4
  217. package/server/models/index.d.ts +1 -0
  218. package/server/models/index.js +1 -0
  219. package/server/models/navigation.d.ts +62 -0
  220. package/server/models/navigation.js +10 -0
  221. package/server/text-transform/blocks.js +0 -1
  222. package/styles/mixins.scss +38 -0
@@ -10,7 +10,6 @@ export declare const LinkTableBlock: {
10
10
  properties: {
11
11
  text: {
12
12
  type: string;
13
- content: string;
14
13
  };
15
14
  textSize: {
16
15
  type: string;
@@ -45,7 +44,6 @@ export declare const LinkTableBlock: {
45
44
  properties: {
46
45
  text: {
47
46
  type: string;
48
- content: string;
49
47
  };
50
48
  url: {
51
49
  type: string;
@@ -91,7 +91,6 @@ export declare const Media: {
91
91
  };
92
92
  text: {
93
93
  type: string;
94
- content: string;
95
94
  };
96
95
  };
97
96
  };
@@ -146,7 +145,6 @@ export declare const MediaBlock: {
146
145
  properties: {
147
146
  text: {
148
147
  type: string;
149
- content: string;
150
148
  };
151
149
  textSize: {
152
150
  type: string;
@@ -161,16 +159,13 @@ export declare const MediaBlock: {
161
159
  };
162
160
  } | {
163
161
  type: string;
164
- content: string;
165
162
  })[];
166
163
  };
167
164
  additionalInfo: {
168
165
  type: string;
169
- content: string;
170
166
  };
171
167
  description: {
172
168
  type: string;
173
- content: string;
174
169
  };
175
170
  size: {
176
171
  type: string;
@@ -308,7 +303,6 @@ export declare const MediaBlock: {
308
303
  };
309
304
  text: {
310
305
  type: string;
311
- content: string;
312
306
  };
313
307
  };
314
308
  };
@@ -356,7 +350,6 @@ export declare const MediaBlock: {
356
350
  properties: {
357
351
  text: {
358
352
  type: string;
359
- content: string;
360
353
  };
361
354
  url: {
362
355
  type: string;
@@ -392,7 +385,6 @@ export declare const MediaBlock: {
392
385
  };
393
386
  alt: {
394
387
  type: string;
395
- content: string;
396
388
  };
397
389
  };
398
390
  })[];
@@ -511,7 +503,6 @@ export declare const MediaBlock: {
511
503
  properties: {
512
504
  text: {
513
505
  type: string;
514
- content: string;
515
506
  };
516
507
  url: {
517
508
  type: string;
@@ -11,13 +11,11 @@ export const MediaBlock = {
11
11
  additionalProperties: false,
12
12
  required: ['title', 'media'],
13
13
  properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), { title: {
14
- oneOf: [{ type: 'string', content: 'text' }, TitleProps],
14
+ oneOf: [{ type: 'string' }, TitleProps],
15
15
  }, additionalInfo: {
16
16
  type: 'string',
17
- content: 'yfm',
18
17
  }, description: {
19
18
  type: 'string',
20
- content: 'yfm',
21
19
  }, size: {
22
20
  type: 'string',
23
21
  enum: contentSizes,
@@ -5,11 +5,9 @@ export declare const PreviewBlock: {
5
5
  properties: {
6
6
  title: {
7
7
  type: string;
8
- content: string;
9
8
  };
10
9
  description: {
11
10
  type: string;
12
- content: string;
13
11
  };
14
12
  direction: {
15
13
  type: string;
@@ -8,11 +8,9 @@ const PreviewContentItem = {
8
8
  properties: {
9
9
  title: {
10
10
  type: 'string',
11
- content: 'text',
12
11
  },
13
12
  description: {
14
13
  type: 'string',
15
- content: 'yfm',
16
14
  },
17
15
  },
18
16
  };
@@ -35,10 +33,8 @@ export const PreviewBlock = {
35
33
  required: ['title', 'items'],
36
34
  properties: Object.assign(Object.assign(Object.assign({}, BaseProps), AnimatableProps), { title: {
37
35
  type: 'string',
38
- content: 'text',
39
36
  }, description: {
40
37
  type: 'string',
41
- content: 'text',
42
38
  }, direction: {
43
39
  type: 'string',
44
40
  enum: mediaDirection,
@@ -4,11 +4,9 @@ export declare const PromoFeaturesItem: {
4
4
  properties: {
5
5
  title: {
6
6
  type: string;
7
- content: string;
8
7
  };
9
8
  text: {
10
9
  type: string;
11
- content: string;
12
10
  };
13
11
  theme: {
14
12
  enum: string[];
@@ -106,7 +104,6 @@ export declare const PromoFeaturesItem: {
106
104
  };
107
105
  text: {
108
106
  type: string;
109
- content: string;
110
107
  };
111
108
  };
112
109
  };
@@ -163,7 +160,6 @@ export declare const PromoFeaturesBlock: {
163
160
  properties: {
164
161
  text: {
165
162
  type: string;
166
- content: string;
167
163
  };
168
164
  textSize: {
169
165
  type: string;
@@ -178,12 +174,10 @@ export declare const PromoFeaturesBlock: {
178
174
  };
179
175
  } | {
180
176
  type: string;
181
- content: string;
182
177
  })[];
183
178
  };
184
179
  description: {
185
180
  type: string;
186
- content: string;
187
181
  };
188
182
  theme: {
189
183
  enum: string[];
@@ -209,7 +203,6 @@ export declare const PromoFeaturesBlock: {
209
203
  properties: {
210
204
  text: {
211
205
  type: string;
212
- content: string;
213
206
  };
214
207
  url: {
215
208
  type: string;
@@ -7,11 +7,9 @@ export const PromoFeaturesItem = {
7
7
  properties: {
8
8
  title: {
9
9
  type: 'string',
10
- content: 'text',
11
10
  },
12
11
  text: {
13
12
  type: 'string',
14
- content: 'yfm',
15
13
  },
16
14
  theme: {
17
15
  enum: ['accent', 'accent-light', 'primary'],
@@ -24,10 +22,9 @@ export const PromoFeaturesBlock = {
24
22
  additionalProperties: false,
25
23
  required: ['items'],
26
24
  properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), { title: {
27
- oneOf: [{ type: 'string', content: 'text' }, TitleProps],
25
+ oneOf: [{ type: 'string' }, TitleProps],
28
26
  }, description: {
29
27
  type: 'string',
30
- content: 'text',
31
28
  }, theme: {
32
29
  enum: ['grey', 'default'],
33
30
  }, items: filteredArray(PromoFeaturesItem) }),
@@ -22,7 +22,6 @@ export declare const QuestionsBlock: {
22
22
  properties: {
23
23
  text: {
24
24
  type: string;
25
- content: string;
26
25
  };
27
26
  textSize: {
28
27
  type: string;
@@ -37,16 +36,13 @@ export declare const QuestionsBlock: {
37
36
  };
38
37
  } | {
39
38
  type: string;
40
- content: string;
41
39
  })[];
42
40
  };
43
41
  text: {
44
42
  type: string;
45
- content: string;
46
43
  };
47
44
  additionalInfo: {
48
45
  type: string;
49
- content: string;
50
46
  };
51
47
  links: {
52
48
  type: string;
@@ -77,7 +73,6 @@ export declare const QuestionsBlock: {
77
73
  properties: {
78
74
  text: {
79
75
  type: string;
80
- content: string;
81
76
  };
82
77
  url: {
83
78
  type: string;
@@ -13,11 +13,9 @@ export const QuestionsBlock = {
13
13
  properties: {
14
14
  title: {
15
15
  type: 'string',
16
- content: 'yfm',
17
16
  },
18
17
  text: {
19
18
  type: 'string',
20
- content: 'yfm',
21
19
  },
22
20
  link: LinkProps,
23
21
  listStyle: {
@@ -12,7 +12,6 @@ export declare const SecurityBlock: {
12
12
  };
13
13
  title: {
14
14
  type: string;
15
- content: string;
16
15
  };
17
16
  media: {
18
17
  type: string;
@@ -107,7 +106,6 @@ export declare const SecurityBlock: {
107
106
  };
108
107
  text: {
109
108
  type: string;
110
- content: string;
111
109
  };
112
110
  };
113
111
  };
@@ -10,7 +10,6 @@ export const SecurityBlock = {
10
10
  type: 'string',
11
11
  }, title: {
12
12
  type: 'string',
13
- content: 'text',
14
13
  }, media: Media, points: filteredArray({
15
14
  type: 'object',
16
15
  properties: {
@@ -19,7 +18,6 @@ export const SecurityBlock = {
19
18
  },
20
19
  text: {
21
20
  type: 'string',
22
- content: 'text',
23
21
  },
24
22
  link: _.pick(LinkProps, ['text', 'url']),
25
23
  },
@@ -19,7 +19,6 @@ export declare const SimpleBlock: {
19
19
  properties: {
20
20
  text: {
21
21
  type: string;
22
- content: string;
23
22
  };
24
23
  url: {
25
24
  type: string;
@@ -42,7 +41,6 @@ export declare const SimpleBlock: {
42
41
  properties: {
43
42
  text: {
44
43
  type: string;
45
- content: string;
46
44
  };
47
45
  textSize: {
48
46
  type: string;
@@ -58,7 +56,6 @@ export declare const SimpleBlock: {
58
56
  };
59
57
  description: {
60
58
  type: string;
61
- content: string;
62
59
  };
63
60
  };
64
61
  };
@@ -5,7 +5,6 @@ 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',
9
8
  } }, BlockBaseProps), AnimatableProps), { children: ChildrenProps }),
10
9
  },
11
10
  };
@@ -7,7 +7,6 @@ export declare const SliderProps: {
7
7
  };
8
8
  description: {
9
9
  type: string;
10
- content: string;
11
10
  };
12
11
  title: {
13
12
  type: string;
@@ -16,7 +15,6 @@ export declare const SliderProps: {
16
15
  properties: {
17
16
  text: {
18
17
  type: string;
19
- content: string;
20
18
  };
21
19
  textSize: {
22
20
  type: string;
@@ -58,7 +56,6 @@ export declare const SliderProps: {
58
56
  properties: {
59
57
  text: {
60
58
  type: string;
61
- content: string;
62
59
  };
63
60
  size: {
64
61
  type: string;
@@ -116,7 +113,6 @@ export declare const SliderBlock: {
116
113
  };
117
114
  description: {
118
115
  type: string;
119
- content: string;
120
116
  };
121
117
  title: {
122
118
  type: string;
@@ -125,7 +121,6 @@ export declare const SliderBlock: {
125
121
  properties: {
126
122
  text: {
127
123
  type: string;
128
- content: string;
129
124
  };
130
125
  textSize: {
131
126
  type: string;
@@ -167,7 +162,6 @@ export declare const SliderBlock: {
167
162
  properties: {
168
163
  text: {
169
164
  type: string;
170
- content: string;
171
165
  };
172
166
  size: {
173
167
  type: string;
@@ -218,7 +212,6 @@ export declare const SliderBlock: {
218
212
  properties: {
219
213
  text: {
220
214
  type: string;
221
- content: string;
222
215
  };
223
216
  url: {
224
217
  type: string;
@@ -33,7 +33,6 @@ const DisclaimerProps = {
33
33
  properties: {
34
34
  text: {
35
35
  type: 'string',
36
- content: 'text',
37
36
  },
38
37
  size: {
39
38
  type: 'string',
@@ -50,7 +49,6 @@ export const SliderProps = {
50
49
  },
51
50
  description: {
52
51
  type: 'string',
53
- content: 'text',
54
52
  },
55
53
  title: TitleProps,
56
54
  randomOrder: {
@@ -5,7 +5,6 @@ export declare const TableBlock: {
5
5
  properties: {
6
6
  title: {
7
7
  type: string;
8
- content: string;
9
8
  };
10
9
  table: {
11
10
  additionalProperties: boolean;
@@ -17,7 +16,6 @@ export declare const TableBlock: {
17
16
  type: string;
18
17
  items: {
19
18
  type: string[];
20
- content: string;
21
19
  };
22
20
  };
23
21
  };
@@ -25,7 +23,6 @@ export declare const TableBlock: {
25
23
  type: string;
26
24
  items: {
27
25
  type: string;
28
- content: string;
29
26
  };
30
27
  };
31
28
  justify: {
@@ -50,7 +47,6 @@ export declare const TableBlock: {
50
47
  properties: {
51
48
  text: {
52
49
  type: string;
53
- content: string;
54
50
  };
55
51
  url: {
56
52
  type: string;
@@ -5,7 +5,6 @@ export const TableBlock = {
5
5
  required: ['title', 'table'],
6
6
  properties: Object.assign(Object.assign({}, BlockBaseProps), { title: {
7
7
  type: 'string',
8
- content: 'text',
9
8
  }, table: {
10
9
  additionalProperties: false,
11
10
  required: ['content'],
@@ -15,14 +14,12 @@ export const TableBlock = {
15
14
  type: 'array',
16
15
  items: {
17
16
  type: ['string', 'number'],
18
- content: 'text',
19
17
  },
20
18
  },
21
19
  }, legend: {
22
20
  type: 'array',
23
21
  items: {
24
22
  type: 'string',
25
- content: 'yfm',
26
23
  },
27
24
  }, justify: {
28
25
  type: 'array',
@@ -8,15 +8,12 @@ export declare const tabsItem: {
8
8
  };
9
9
  title: {
10
10
  type: string;
11
- content: string;
12
11
  };
13
12
  text: {
14
13
  type: string;
15
- content: string;
16
14
  };
17
15
  caption: {
18
16
  type: string;
19
- content: string;
20
17
  };
21
18
  media: {
22
19
  oneOf: ({
@@ -110,7 +107,6 @@ export declare const tabsItem: {
110
107
  };
111
108
  text: {
112
109
  type: string;
113
- content: string;
114
110
  };
115
111
  };
116
112
  };
@@ -165,7 +161,6 @@ export declare const tabsItem: {
165
161
  properties: {
166
162
  text: {
167
163
  type: string;
168
- content: string;
169
164
  };
170
165
  url: {
171
166
  type: string;
@@ -234,7 +229,6 @@ export declare const TabsBlock: {
234
229
  properties: {
235
230
  text: {
236
231
  type: string;
237
- content: string;
238
232
  };
239
233
  textSize: {
240
234
  type: string;
@@ -250,7 +244,6 @@ export declare const TabsBlock: {
250
244
  };
251
245
  description: {
252
246
  type: string;
253
- content: string;
254
247
  };
255
248
  items: {
256
249
  type: string;
@@ -270,7 +263,6 @@ export declare const TabsBlock: {
270
263
  properties: {
271
264
  text: {
272
265
  type: string;
273
- content: string;
274
266
  };
275
267
  url: {
276
268
  type: string;
@@ -11,15 +11,12 @@ export const tabsItem = {
11
11
  },
12
12
  title: {
13
13
  type: 'string',
14
- content: 'yfm',
15
14
  },
16
15
  text: {
17
16
  type: 'string',
18
- content: 'yfm',
19
17
  },
20
18
  caption: {
21
19
  type: 'string',
22
- content: 'text',
23
20
  },
24
21
  media: withTheme({
25
22
  type: 'object',
@@ -37,7 +34,6 @@ export const TabsBlock = {
37
34
  required: ['title', 'items'],
38
35
  properties: Object.assign(Object.assign({}, BlockBaseProps), { title: TitleProps, description: {
39
36
  type: 'string',
40
- content: 'text',
41
37
  }, items: filteredArray(tabsItem) }),
42
38
  },
43
39
  };
@@ -10,11 +10,9 @@ export declare const author: {
10
10
  properties: {
11
11
  firstName: {
12
12
  type: string;
13
- content: string;
14
13
  };
15
14
  secondName: {
16
15
  type: string;
17
- content: string;
18
16
  };
19
17
  avatar: {
20
18
  type: string;
@@ -22,7 +20,6 @@ export declare const author: {
22
20
  };
23
21
  description: {
24
22
  type: string;
25
- content: string;
26
23
  };
27
24
  };
28
25
  };
@@ -18,7 +18,6 @@ export declare const ImageDeviceProps: {
18
18
  };
19
19
  alt: {
20
20
  type: string;
21
- content: string;
22
21
  };
23
22
  disableCompress: {
24
23
  type: string;
@@ -36,7 +35,6 @@ export declare const ImageObjectProps: {
36
35
  };
37
36
  alt: {
38
37
  type: string;
39
- content: string;
40
38
  };
41
39
  disableCompress: {
42
40
  type: string;
@@ -16,7 +16,6 @@ export const ImageDeviceProps = {
16
16
  },
17
17
  alt: {
18
18
  type: 'string',
19
- content: 'text',
20
19
  },
21
20
  disableCompress: {
22
21
  type: 'boolean',
@@ -34,7 +33,6 @@ export const ImageObjectProps = {
34
33
  },
35
34
  alt: {
36
35
  type: 'string',
37
- content: 'text',
38
36
  },
39
37
  disableCompress: {
40
38
  type: 'boolean',
@@ -9,10 +9,12 @@
9
9
  .pc-overflow-scroller__scroller {
10
10
  position: absolute;
11
11
  z-index: 10;
12
+ top: 0;
12
13
  display: flex;
13
14
  justify-content: flex-end;
14
15
  align-items: center;
15
16
  width: 32px;
17
+ height: calc(100% - 1px);
16
18
  cursor: pointer;
17
19
  color: var(--yc-color-text-secondary);
18
20
  background: linear-gradient(to left, var(--yc-color-base-background) 70%, var(--pc-transparent) 100%) no-repeat;
@@ -1,6 +1,7 @@
1
1
  import { WithChildren } from '../../models';
2
2
  export interface RouterLinkProps {
3
3
  href: string;
4
+ [key: string]: unknown;
4
5
  }
5
6
  declare const RouterLink: ({ href, children }: WithChildren<RouterLinkProps>) => JSX.Element;
6
7
  export default RouterLink;
@@ -33,4 +33,6 @@ export { default as OverflowScroller } from './OverflowScroller/OverflowScroller
33
33
  export { default as Author } from './Author/Author';
34
34
  export { default as RouterLink } from './RouterLink/RouterLink';
35
35
  export { default as HTML } from './HTML/HTML';
36
+ export { default as Header } from './navigation/components/Header/Header';
37
+ export * as Navigation from './navigation/components/index';
36
38
  export type { RouterLinkProps } from './RouterLink/RouterLink';
@@ -33,3 +33,5 @@ export { default as OverflowScroller } from './OverflowScroller/OverflowScroller
33
33
  export { default as Author } from './Author/Author';
34
34
  export { default as RouterLink } from './RouterLink/RouterLink';
35
35
  export { default as HTML } from './HTML/HTML';
36
+ export { default as Header } from './navigation/components/Header/Header';
37
+ export * as Navigation from './navigation/components/index';