@gravity-ui/page-constructor 3.4.0 → 3.5.0-alpha.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 (270) hide show
  1. package/CHANGELOG.md +0 -27
  2. package/README.md +0 -2
  3. package/build/cjs/blocks/Banner/schema.d.ts +21 -63
  4. package/build/cjs/blocks/CardLayout/schema.d.ts +4 -10
  5. package/build/cjs/blocks/Companies/schema.d.ts +2 -5
  6. package/build/cjs/blocks/ContentLayout/ContentLayout.js +2 -3
  7. package/build/cjs/blocks/ContentLayout/schema.d.ts +61 -107
  8. package/build/cjs/blocks/ContentLayout/schema.js +18 -23
  9. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +4 -31
  10. package/build/cjs/blocks/ExtendedFeatures/schema.js +3 -2
  11. package/build/cjs/blocks/FilterBlock/schema.d.ts +5 -13
  12. package/build/cjs/blocks/FilterBlock/schema.js +2 -13
  13. package/build/cjs/blocks/Header/Header.css +7 -6
  14. package/build/cjs/blocks/Header/schema.d.ts +36 -92
  15. package/build/cjs/blocks/Header/schema.js +0 -1
  16. package/build/cjs/blocks/HeaderSlider/schema.d.ts +53 -48
  17. package/build/cjs/blocks/HeaderSlider/schema.js +1 -3
  18. package/build/cjs/blocks/Icons/schema.d.ts +1 -3
  19. package/build/cjs/blocks/Icons/schema.js +1 -2
  20. package/build/cjs/blocks/Info/schema.d.ts +8 -19
  21. package/build/cjs/blocks/Map/schema.d.ts +6 -17
  22. package/build/cjs/blocks/Media/schema.d.ts +152 -204
  23. package/build/cjs/blocks/Media/schema.js +1 -1
  24. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +8 -22
  25. package/build/cjs/blocks/PromoFeaturesBlock/schema.js +0 -1
  26. package/build/cjs/blocks/Questions/schema.d.ts +3 -7
  27. package/build/cjs/blocks/Slider/schema.d.ts +18 -13
  28. package/build/cjs/blocks/Slider/schema.js +5 -4
  29. package/build/cjs/blocks/Table/schema.d.ts +2 -5
  30. package/build/cjs/blocks/Table/schema.js +2 -12
  31. package/build/cjs/blocks/Tabs/schema.d.ts +16 -43
  32. package/build/cjs/components/BlockBase/BlockBase.js +2 -2
  33. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  34. package/build/cjs/components/Image/schema.d.ts +0 -1
  35. package/build/cjs/components/Image/schema.js +2 -3
  36. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
  37. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
  38. package/build/cjs/customization/BlockDecoration.d.ts +1 -1
  39. package/build/cjs/customization/BlockDecoration.js +6 -5
  40. package/build/cjs/editor/{components → Components}/AddBlock/AddBlock.css +1 -1
  41. package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +7 -0
  42. package/build/cjs/editor/{components → Components}/AddBlock/AddBlock.js +2 -2
  43. package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +4 -0
  44. package/build/cjs/editor/Components/EditBlock/EditBlock.js +32 -0
  45. package/build/cjs/editor/Containers/Editor.d.ts +2 -0
  46. package/build/cjs/editor/Containers/Editor.js +24 -0
  47. package/build/cjs/editor/index.d.ts +1 -1
  48. package/build/cjs/editor/index.js +1 -1
  49. package/build/cjs/editor/store/index.d.ts +11 -10
  50. package/build/cjs/editor/store/index.js +15 -66
  51. package/build/cjs/editor/store/reducer.d.ts +9 -24
  52. package/build/cjs/editor/store/reducer.js +31 -17
  53. package/build/cjs/editor/store/utils.d.ts +0 -1
  54. package/build/cjs/editor/store/utils.js +1 -3
  55. package/build/cjs/editor/types/index.d.ts +9 -15
  56. package/build/cjs/editor/types/index.js +0 -6
  57. package/build/cjs/editor/utils/index.d.ts +3 -4
  58. package/build/cjs/editor/utils/index.js +4 -6
  59. package/build/cjs/grid/Col/Col.d.ts +1 -1
  60. package/build/cjs/models/constructor-items/blocks.d.ts +8 -13
  61. package/build/cjs/models/constructor.d.ts +2 -2
  62. package/build/cjs/models/customization.d.ts +8 -3
  63. package/build/cjs/models/navigation.d.ts +0 -1
  64. package/build/cjs/navigation/components/Header/Header.css +0 -2
  65. package/build/cjs/navigation/components/Header/Header.js +4 -15
  66. package/build/cjs/navigation/schema.d.ts +0 -1
  67. package/build/cjs/schema/index.d.ts +228 -9
  68. package/build/cjs/schema/index.js +46 -8
  69. package/build/cjs/schema/validators/common.d.ts +27 -71
  70. package/build/cjs/schema/validators/common.js +17 -50
  71. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +5 -12
  72. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +3 -8
  73. package/build/cjs/sub-blocks/Content/schema.d.ts +6 -14
  74. package/build/cjs/sub-blocks/Content/schema.js +1 -9
  75. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +9 -23
  76. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +6 -16
  77. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  78. package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -5
  79. package/build/cjs/sub-blocks/Quote/schema.d.ts +2 -6
  80. package/build/cjs/text-transform/utils.js +6 -1
  81. package/build/esm/blocks/Banner/schema.d.ts +21 -63
  82. package/build/esm/blocks/CardLayout/schema.d.ts +4 -10
  83. package/build/esm/blocks/Companies/schema.d.ts +2 -5
  84. package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -3
  85. package/build/esm/blocks/ContentLayout/schema.d.ts +61 -107
  86. package/build/esm/blocks/ContentLayout/schema.js +18 -23
  87. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +4 -31
  88. package/build/esm/blocks/ExtendedFeatures/schema.js +4 -3
  89. package/build/esm/blocks/FilterBlock/schema.d.ts +5 -13
  90. package/build/esm/blocks/FilterBlock/schema.js +2 -13
  91. package/build/esm/blocks/Header/Header.css +7 -6
  92. package/build/esm/blocks/Header/schema.d.ts +36 -92
  93. package/build/esm/blocks/Header/schema.js +0 -1
  94. package/build/esm/blocks/HeaderSlider/schema.d.ts +53 -48
  95. package/build/esm/blocks/HeaderSlider/schema.js +1 -2
  96. package/build/esm/blocks/Icons/schema.d.ts +1 -3
  97. package/build/esm/blocks/Icons/schema.js +1 -2
  98. package/build/esm/blocks/Info/schema.d.ts +8 -19
  99. package/build/esm/blocks/Map/schema.d.ts +6 -17
  100. package/build/esm/blocks/Media/schema.d.ts +152 -204
  101. package/build/esm/blocks/Media/schema.js +2 -2
  102. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +8 -22
  103. package/build/esm/blocks/PromoFeaturesBlock/schema.js +0 -1
  104. package/build/esm/blocks/Questions/schema.d.ts +3 -7
  105. package/build/esm/blocks/Slider/schema.d.ts +18 -13
  106. package/build/esm/blocks/Slider/schema.js +5 -4
  107. package/build/esm/blocks/Table/schema.d.ts +2 -5
  108. package/build/esm/blocks/Table/schema.js +2 -12
  109. package/build/esm/blocks/Tabs/schema.d.ts +16 -43
  110. package/build/esm/components/BlockBase/BlockBase.js +2 -2
  111. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  112. package/build/esm/components/Image/schema.d.ts +0 -1
  113. package/build/esm/components/Image/schema.js +2 -3
  114. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
  115. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
  116. package/build/esm/customization/BlockDecoration.d.ts +1 -1
  117. package/build/esm/customization/BlockDecoration.js +6 -6
  118. package/build/esm/editor/{components → Components}/AddBlock/AddBlock.css +1 -1
  119. package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +8 -0
  120. package/build/esm/editor/{components → Components}/AddBlock/AddBlock.js +2 -2
  121. package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +5 -0
  122. package/build/esm/editor/Components/EditBlock/EditBlock.js +30 -0
  123. package/build/esm/editor/Containers/Editor.d.ts +2 -0
  124. package/build/esm/editor/Containers/Editor.js +20 -0
  125. package/build/esm/editor/index.d.ts +1 -1
  126. package/build/esm/editor/index.js +1 -1
  127. package/build/esm/editor/store/index.d.ts +11 -10
  128. package/build/esm/editor/store/index.js +17 -68
  129. package/build/esm/editor/store/reducer.d.ts +9 -24
  130. package/build/esm/editor/store/reducer.js +29 -15
  131. package/build/esm/editor/store/utils.d.ts +0 -1
  132. package/build/esm/editor/store/utils.js +0 -1
  133. package/build/esm/editor/types/index.d.ts +9 -15
  134. package/build/esm/editor/types/index.js +1 -5
  135. package/build/esm/editor/utils/index.d.ts +3 -4
  136. package/build/esm/editor/utils/index.js +3 -4
  137. package/build/esm/grid/Col/Col.d.ts +1 -1
  138. package/build/esm/models/constructor-items/blocks.d.ts +8 -13
  139. package/build/esm/models/constructor.d.ts +2 -2
  140. package/build/esm/models/customization.d.ts +8 -3
  141. package/build/esm/models/navigation.d.ts +0 -1
  142. package/build/esm/navigation/components/Header/Header.css +0 -2
  143. package/build/esm/navigation/components/Header/Header.js +5 -16
  144. package/build/esm/navigation/schema.d.ts +0 -1
  145. package/build/esm/schema/index.d.ts +228 -9
  146. package/build/esm/schema/index.js +42 -4
  147. package/build/esm/schema/validators/common.d.ts +27 -71
  148. package/build/esm/schema/validators/common.js +16 -49
  149. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +5 -12
  150. package/build/esm/sub-blocks/BasicCard/schema.d.ts +3 -8
  151. package/build/esm/sub-blocks/Content/schema.d.ts +6 -14
  152. package/build/esm/sub-blocks/Content/schema.js +1 -9
  153. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +9 -23
  154. package/build/esm/sub-blocks/MediaCard/schema.d.ts +6 -16
  155. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  156. package/build/esm/sub-blocks/PriceDetailed/schema.js +1 -5
  157. package/build/esm/sub-blocks/Quote/schema.d.ts +2 -6
  158. package/build/esm/text-transform/utils.js +6 -1
  159. package/package.json +4 -5
  160. package/server/models/constructor-items/blocks.d.ts +8 -13
  161. package/server/models/constructor.d.ts +2 -2
  162. package/server/models/customization.d.ts +8 -3
  163. package/server/models/navigation.d.ts +0 -1
  164. package/server/text-transform/utils.js +6 -1
  165. package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +0 -7
  166. package/build/cjs/editor/components/BlockForm/BlockForm.d.ts +0 -12
  167. package/build/cjs/editor/components/BlockForm/BlockForm.js +0 -33
  168. package/build/cjs/editor/components/ControlPanel/ControlPanel.css +0 -26
  169. package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +0 -8
  170. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +0 -24
  171. package/build/cjs/editor/components/ControlPanel/i18n/en.json +0 -3
  172. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +0 -2
  173. package/build/cjs/editor/components/ControlPanel/i18n/index.js +0 -8
  174. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +0 -3
  175. package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +0 -13
  176. package/build/cjs/editor/components/EditBlock/EditBlock.js +0 -44
  177. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +0 -27
  178. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +0 -13
  179. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +0 -35
  180. package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +0 -4
  181. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +0 -2
  182. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +0 -8
  183. package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +0 -4
  184. package/build/cjs/editor/components/Layout/Layout.css +0 -36
  185. package/build/cjs/editor/components/Layout/Layout.d.ts +0 -16
  186. package/build/cjs/editor/components/Layout/Layout.js +0 -34
  187. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +0 -10
  188. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +0 -17
  189. package/build/cjs/editor/containers/Editor/Editor.d.ts +0 -2
  190. package/build/cjs/editor/containers/Editor/Editor.js +0 -40
  191. package/build/cjs/editor/containers/Form/Form.css +0 -94
  192. package/build/cjs/editor/containers/Form/Form.d.ts +0 -11
  193. package/build/cjs/editor/containers/Form/Form.js +0 -47
  194. package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
  195. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +0 -27
  196. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +0 -19
  197. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +0 -72
  198. package/build/cjs/editor/dynamic-forms-custom/config.d.ts +0 -2
  199. package/build/cjs/editor/dynamic-forms-custom/config.js +0 -13
  200. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +0 -12
  201. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +0 -75
  202. package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +0 -9
  203. package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +0 -36
  204. package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +0 -28
  205. package/build/cjs/editor/dynamic-forms-custom/parser/index.js +0 -188
  206. package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +0 -29
  207. package/build/cjs/editor/dynamic-forms-custom/parser/types.js +0 -2
  208. package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +0 -37
  209. package/build/cjs/editor/dynamic-forms-custom/parser/views.js +0 -46
  210. package/build/cjs/editor/hooks/useFormSpec.d.ts +0 -2
  211. package/build/cjs/editor/hooks/useFormSpec.js +0 -13
  212. package/build/cjs/editor/hooks/usePreviousValue.d.ts +0 -1
  213. package/build/cjs/editor/hooks/usePreviousValue.js +0 -11
  214. package/build/cjs/editor/styles/root.css +0 -5
  215. package/build/cjs/schema/constants.d.ts +0 -908
  216. package/build/cjs/schema/constants.js +0 -42
  217. package/build/esm/editor/components/AddBlock/AddBlock.d.ts +0 -8
  218. package/build/esm/editor/components/BlockForm/BlockForm.d.ts +0 -12
  219. package/build/esm/editor/components/BlockForm/BlockForm.js +0 -30
  220. package/build/esm/editor/components/ControlPanel/ControlPanel.css +0 -26
  221. package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +0 -9
  222. package/build/esm/editor/components/ControlPanel/ControlPanel.js +0 -22
  223. package/build/esm/editor/components/ControlPanel/i18n/en.json +0 -3
  224. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +0 -2
  225. package/build/esm/editor/components/ControlPanel/i18n/index.js +0 -5
  226. package/build/esm/editor/components/ControlPanel/i18n/ru.json +0 -3
  227. package/build/esm/editor/components/EditBlock/EditBlock.d.ts +0 -14
  228. package/build/esm/editor/components/EditBlock/EditBlock.js +0 -41
  229. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +0 -27
  230. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +0 -14
  231. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +0 -31
  232. package/build/esm/editor/components/ErrorBoundary/i18n/en.json +0 -4
  233. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +0 -2
  234. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +0 -5
  235. package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +0 -4
  236. package/build/esm/editor/components/Layout/Layout.css +0 -36
  237. package/build/esm/editor/components/Layout/Layout.d.ts +0 -17
  238. package/build/esm/editor/components/Layout/Layout.js +0 -32
  239. package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +0 -10
  240. package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +0 -13
  241. package/build/esm/editor/containers/Editor/Editor.d.ts +0 -2
  242. package/build/esm/editor/containers/Editor/Editor.js +0 -36
  243. package/build/esm/editor/containers/Form/Form.css +0 -94
  244. package/build/esm/editor/containers/Form/Form.d.ts +0 -12
  245. package/build/esm/editor/containers/Form/Form.js +0 -45
  246. package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
  247. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +0 -27
  248. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +0 -20
  249. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +0 -68
  250. package/build/esm/editor/dynamic-forms-custom/config.d.ts +0 -2
  251. package/build/esm/editor/dynamic-forms-custom/config.js +0 -9
  252. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +0 -12
  253. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +0 -69
  254. package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +0 -9
  255. package/build/esm/editor/dynamic-forms-custom/parser/detect.js +0 -32
  256. package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +0 -28
  257. package/build/esm/editor/dynamic-forms-custom/parser/index.js +0 -186
  258. package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +0 -29
  259. package/build/esm/editor/dynamic-forms-custom/parser/types.js +0 -1
  260. package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +0 -37
  261. package/build/esm/editor/dynamic-forms-custom/parser/views.js +0 -39
  262. package/build/esm/editor/hooks/useFormSpec.d.ts +0 -2
  263. package/build/esm/editor/hooks/useFormSpec.js +0 -9
  264. package/build/esm/editor/hooks/usePreviousValue.d.ts +0 -1
  265. package/build/esm/editor/hooks/usePreviousValue.js +0 -8
  266. package/build/esm/editor/styles/root.css +0 -5
  267. package/build/esm/schema/constants.d.ts +0 -908
  268. package/build/esm/schema/constants.js +0 -39
  269. /package/build/cjs/editor/{components → Components}/EditBlock/EditBlock.css +0 -0
  270. /package/build/esm/editor/{components → Components}/EditBlock/EditBlock.css +0 -0
@@ -15,10 +15,6 @@ export declare const CardLayoutProps: {
15
15
  };
16
16
  title: {
17
17
  oneOf: ({
18
- type: string;
19
- optionName: string;
20
- } | {
21
- optionName: string;
22
18
  type: string;
23
19
  additionalProperties: boolean;
24
20
  required: string[];
@@ -38,12 +34,13 @@ export declare const CardLayoutProps: {
38
34
  type: string;
39
35
  };
40
36
  };
37
+ } | {
38
+ type: string;
41
39
  })[];
42
40
  };
43
41
  description: {
44
42
  type: string;
45
43
  contentType: string;
46
- inputType: string;
47
44
  };
48
45
  animated: {
49
46
  type: string;
@@ -94,10 +91,6 @@ export declare const CardLayoutBlock: {
94
91
  };
95
92
  title: {
96
93
  oneOf: ({
97
- type: string;
98
- optionName: string;
99
- } | {
100
- optionName: string;
101
94
  type: string;
102
95
  additionalProperties: boolean;
103
96
  required: string[];
@@ -117,12 +110,13 @@ export declare const CardLayoutBlock: {
117
110
  type: string;
118
111
  };
119
112
  };
113
+ } | {
114
+ type: string;
120
115
  })[];
121
116
  };
122
117
  description: {
123
118
  type: string;
124
119
  contentType: string;
125
- inputType: string;
126
120
  };
127
121
  animated: {
128
122
  type: string;
@@ -8,7 +8,7 @@ export declare const CompaniesBlock: {
8
8
  contentType: string;
9
9
  };
10
10
  images: {
11
- oneOf: (({
11
+ oneOf: ({
12
12
  type: string;
13
13
  required: string[];
14
14
  properties: {
@@ -26,14 +26,11 @@ export declare const CompaniesBlock: {
26
26
  contentType: string;
27
27
  };
28
28
  };
29
- } & {
30
- optionName: string;
31
- }) | {
29
+ } | {
32
30
  type: string;
33
31
  additionalProperties: boolean;
34
32
  required: import("../..").Theme[];
35
33
  properties: {};
36
- optionName: string;
37
34
  })[];
38
35
  };
39
36
  animated: {
@@ -28,9 +28,8 @@ function getTextWidth(size) {
28
28
  }
29
29
  export const ContentLayoutBlock = (props) => {
30
30
  const isMobile = useContext(MobileContext);
31
- const { textContent, fileContent } = props;
32
- const propsSource = props.properties || props;
33
- const { size = 'l', background, centered, theme = 'default', textWidth = 'm' } = propsSource;
31
+ const { textContent, fileContent, properties: cardLayoutProperties = { size: 'l' } } = props;
32
+ const { size = 'l', background, centered, theme = 'default', textWidth = 'm', } = cardLayoutProperties;
34
33
  const colSizes = useMemo(() => getTextWidth(textWidth), [textWidth]);
35
34
  return (React.createElement("div", { className: b({ size, background: Boolean(background) }) },
36
35
  React.createElement(Content, Object.assign({ className: b('content') }, textContent, { size: size, centered: centered, colSizes: colSizes, theme: theme })),
@@ -2,120 +2,79 @@ export declare const ContentLayoutBlock: {
2
2
  'content-layout-block': {
3
3
  additionalProperties: boolean;
4
4
  properties: {
5
- size: {
6
- type: string;
7
- enum: string[];
8
- };
9
- background: {
10
- type: string;
11
- additionalProperties: boolean;
12
- required: string[];
13
- properties: {
14
- src: {
15
- type: string; /**
16
- * @deprecated Use params on top level instead
17
- */
18
- pattern: string;
19
- };
20
- alt: {
21
- type: string;
22
- contentType: string;
23
- };
24
- disableCompress: {
25
- type: string;
26
- };
27
- };
28
- };
29
- centered: {
30
- type: string;
31
- };
32
- theme: {
33
- type: string;
34
- enum: string[];
35
- };
36
- textWidth: {
37
- type: string;
38
- enum: string[];
39
- };
40
5
  textContent: {
41
- additionalProperties: boolean;
42
- properties: {
43
- colSizes: {};
44
- centered: {
45
- type: string;
46
- };
47
- title: {
48
- oneOf: ({
6
+ content: {
7
+ additionalProperties: boolean;
8
+ properties: {
9
+ colSizes: {};
10
+ centered: {
11
+ type: string;
12
+ };
13
+ title: {
14
+ oneOf: ({
15
+ type: string;
16
+ additionalProperties: boolean;
17
+ required: string[];
18
+ properties: {
19
+ text: {
20
+ type: string;
21
+ contentType: string;
22
+ };
23
+ textSize: {
24
+ type: string;
25
+ enum: string[];
26
+ };
27
+ url: {
28
+ type: string;
29
+ };
30
+ resetMargin: {
31
+ type: string;
32
+ };
33
+ };
34
+ } | {
35
+ type: string;
36
+ contentType: string;
37
+ })[];
38
+ };
39
+ text: {
49
40
  type: string;
50
41
  contentType: string;
51
- optionName: string;
52
- } | {
53
- optionName: string;
42
+ };
43
+ additionalInfo: {
54
44
  type: string;
55
- additionalProperties: boolean;
56
- required: string[];
57
- properties: {
58
- text: {
59
- type: string;
60
- contentType: string;
61
- };
62
- textSize: {
63
- type: string;
64
- enum: string[];
65
- };
66
- url: {
67
- type: string;
68
- };
69
- resetMargin: {
70
- type: string;
71
- };
72
- };
73
- contentType?: undefined;
74
- })[];
75
- };
76
- text: {
77
- type: string;
78
- contentType: string;
79
- inputType: string;
80
- };
81
- additionalInfo: {
82
- type: string;
83
- contentType: string;
84
- };
85
- size: {
86
- type: string;
87
- enum: string[];
88
- };
89
- links: {
90
- type: string;
91
- items: {
45
+ contentType: string;
46
+ };
47
+ size: {
92
48
  type: string;
93
- properties: {
94
- when: {
95
- type: string;
49
+ enum: string[];
50
+ };
51
+ links: {
52
+ type: string;
53
+ items: {
54
+ type: string;
55
+ properties: {
56
+ when: {
57
+ type: string;
58
+ };
96
59
  };
97
60
  };
98
61
  };
99
- };
100
- buttons: {
101
- type: string;
102
- items: {
62
+ buttons: {
103
63
  type: string;
104
- properties: {
105
- when: {
106
- type: string;
64
+ items: {
65
+ type: string;
66
+ properties: {
67
+ when: {
68
+ type: string;
69
+ };
107
70
  };
108
71
  };
109
72
  };
73
+ theme: {
74
+ type: string;
75
+ enum: string[];
76
+ };
110
77
  };
111
- theme: {
112
- type: string;
113
- enum: string[]; /**
114
- * @deprecated Use params on top level instead
115
- */
116
- }; /**
117
- * @deprecated Use params on top level instead
118
- */
119
78
  };
120
79
  };
121
80
  fileContent: {
@@ -129,9 +88,6 @@ export declare const ContentLayoutBlock: {
129
88
  };
130
89
  };
131
90
  };
132
- /**
133
- * @deprecated Use params on top level instead
134
- */
135
91
  properties: {
136
92
  size: {
137
93
  type: string;
@@ -143,9 +99,7 @@ export declare const ContentLayoutBlock: {
143
99
  required: string[];
144
100
  properties: {
145
101
  src: {
146
- type: string; /**
147
- * @deprecated Use params on top level instead
148
- */
102
+ type: string;
149
103
  pattern: string;
150
104
  };
151
105
  alt: {
@@ -2,31 +2,26 @@ import { ImageObjectProps } from '../../components/Image/schema';
2
2
  import { BlockBaseProps, FileLinkProps, contentSizes, contentTextWidth, contentThemes, } from '../../schema/validators/common';
3
3
  import { filteredArray } from '../../schema/validators/utils';
4
4
  import { ContentBlock } from '../../sub-blocks/Content/schema';
5
- const ContentLayoutBlockProperties = {
6
- size: {
7
- type: 'string',
8
- enum: contentSizes,
9
- },
10
- background: ImageObjectProps,
11
- centered: {
12
- type: 'boolean',
13
- },
14
- theme: {
15
- type: 'string',
16
- enum: contentThemes,
17
- },
18
- textWidth: {
19
- type: 'string',
20
- enum: contentTextWidth,
21
- },
22
- };
23
5
  export const ContentLayoutBlock = {
24
6
  'content-layout-block': {
25
7
  additionalProperties: false,
26
- properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), { textContent: ContentBlock === null || ContentBlock === void 0 ? void 0 : ContentBlock.content, fileContent: filteredArray(FileLinkProps),
27
- /**
28
- * @deprecated Use params on top level instead
29
- */
30
- properties: ContentLayoutBlockProperties }), ContentLayoutBlockProperties),
8
+ properties: Object.assign(Object.assign({}, BlockBaseProps), { textContent: ContentBlock, fileContent: filteredArray(FileLinkProps), properties: {
9
+ size: {
10
+ type: 'string',
11
+ enum: contentSizes,
12
+ },
13
+ background: ImageObjectProps,
14
+ centered: {
15
+ type: 'boolean',
16
+ },
17
+ theme: {
18
+ type: 'string',
19
+ enum: contentThemes,
20
+ },
21
+ textWidth: {
22
+ type: 'string',
23
+ enum: contentTextWidth,
24
+ },
25
+ } }),
31
26
  },
32
27
  };
@@ -42,8 +42,7 @@ export declare const ExtendedFeaturesItem: {
42
42
  enum: string[];
43
43
  };
44
44
  analyticsEvents: {
45
- oneOf: ({
46
- optionName: string;
45
+ anyOf: ({
47
46
  type: string;
48
47
  additionalProperties: {
49
48
  type: string;
@@ -79,7 +78,6 @@ export declare const ExtendedFeaturesItem: {
79
78
  type: string;
80
79
  };
81
80
  };
82
- items?: undefined;
83
81
  } | {
84
82
  type: string;
85
83
  items: {
@@ -119,7 +117,6 @@ export declare const ExtendedFeaturesItem: {
119
117
  };
120
118
  };
121
119
  };
122
- optionName: string;
123
120
  })[];
124
121
  };
125
122
  type: {};
@@ -127,28 +124,7 @@ export declare const ExtendedFeaturesItem: {
127
124
  };
128
125
  };
129
126
  icon: {
130
- oneOf: (({
131
- oneOf: ({
132
- type: string;
133
- properties: {
134
- when: {
135
- type: string;
136
- };
137
- };
138
- } | {
139
- type: string;
140
- pattern: string;
141
- optionName: string;
142
- })[];
143
- } & {
144
- optionName: string;
145
- }) | {
146
- type: string;
147
- additionalProperties: boolean;
148
- required: import("../..").Theme[];
149
- properties: {};
150
- optionName: string;
151
- })[];
127
+ type: string;
152
128
  };
153
129
  };
154
130
  };
@@ -175,10 +151,6 @@ export declare const ExtendedFeaturesBlock: {
175
151
  };
176
152
  title: {
177
153
  oneOf: ({
178
- type: string;
179
- optionName: string;
180
- } | {
181
- optionName: string;
182
154
  type: string;
183
155
  additionalProperties: boolean;
184
156
  required: string[];
@@ -198,12 +170,13 @@ export declare const ExtendedFeaturesBlock: {
198
170
  type: string;
199
171
  };
200
172
  };
173
+ } | {
174
+ type: string;
201
175
  })[];
202
176
  };
203
177
  description: {
204
178
  type: string;
205
179
  contentType: string;
206
- inputType: string;
207
180
  };
208
181
  animated: {
209
182
  type: string;
@@ -1,5 +1,4 @@
1
- import { AnimatableProps, BlockBaseProps, BlockHeaderProps, LinkProps, containerSizesObject, withTheme, } from '../../schema/validators/common';
2
- import { ImageProps } from '../../schema/validators/components';
1
+ import { AnimatableProps, BlockBaseProps, BlockHeaderProps, LinkProps, containerSizesObject, } from '../../schema/validators/common';
3
2
  import { filteredArray } from '../../schema/validators/utils';
4
3
  export const ExtendedFeaturesItem = {
5
4
  additionalProperties: false,
@@ -18,7 +17,9 @@ export const ExtendedFeaturesItem = {
18
17
  enum: ['New', 'Preview'],
19
18
  },
20
19
  link: LinkProps,
21
- icon: withTheme(ImageProps),
20
+ icon: {
21
+ type: 'string',
22
+ },
22
23
  },
23
24
  };
24
25
  export const ExtendedFeaturesBlock = {
@@ -32,7 +32,6 @@ export declare const FilterProps: {
32
32
  allTag: {
33
33
  oneOf: {
34
34
  type: string;
35
- optionName: string;
36
35
  }[];
37
36
  };
38
37
  colSizes: {
@@ -68,10 +67,6 @@ export declare const FilterProps: {
68
67
  };
69
68
  title: {
70
69
  oneOf: ({
71
- type: string;
72
- optionName: string;
73
- } | {
74
- optionName: string;
75
70
  type: string;
76
71
  additionalProperties: boolean;
77
72
  required: string[];
@@ -91,12 +86,13 @@ export declare const FilterProps: {
91
86
  type: string;
92
87
  };
93
88
  };
89
+ } | {
90
+ type: string;
94
91
  })[];
95
92
  };
96
93
  description: {
97
94
  type: string;
98
95
  contentType: string;
99
- inputType: string;
100
96
  };
101
97
  animated: {
102
98
  type: string;
@@ -130,14 +126,13 @@ export declare const FilterProps: {
130
126
  };
131
127
  };
132
128
  export declare const FilterBlock: {
133
- 'filter-block': {
129
+ 'filterable-block': {
134
130
  additionalProperties: boolean;
135
131
  required: string[];
136
132
  properties: {
137
133
  allTag: {
138
134
  oneOf: {
139
135
  type: string;
140
- optionName: string;
141
136
  }[];
142
137
  };
143
138
  colSizes: {
@@ -173,10 +168,6 @@ export declare const FilterBlock: {
173
168
  };
174
169
  title: {
175
170
  oneOf: ({
176
- type: string;
177
- optionName: string;
178
- } | {
179
- optionName: string;
180
171
  type: string;
181
172
  additionalProperties: boolean;
182
173
  required: string[];
@@ -196,12 +187,13 @@ export declare const FilterBlock: {
196
187
  type: string;
197
188
  };
198
189
  };
190
+ } | {
191
+ type: string;
199
192
  })[];
200
193
  };
201
194
  description: {
202
195
  type: string;
203
196
  contentType: string;
204
- inputType: string;
205
197
  };
206
198
  animated: {
207
199
  type: string;
@@ -28,22 +28,11 @@ export const FilterItemProps = {
28
28
  export const FilterProps = {
29
29
  additionalProperties: false,
30
30
  required: ['filterTags', 'block'],
31
- properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), BlockHeaderProps), { allTag: {
32
- oneOf: [
33
- {
34
- type: 'boolean',
35
- optionName: 'auto',
36
- },
37
- {
38
- type: 'string',
39
- optionName: 'cutom',
40
- },
41
- ],
42
- }, colSizes: containerSizesObject, tags: filteredArray(FilterTagProps), items: filteredArray(FilterItemProps), tagButtonSize: {
31
+ properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), BlockHeaderProps), { allTag: { oneOf: [{ type: 'boolean' }, { type: 'string' }] }, colSizes: containerSizesObject, tags: filteredArray(FilterTagProps), items: filteredArray(FilterItemProps), tagButtonSize: {
43
32
  type: 'string',
44
33
  enum: ['s', 'm', 'l', 'xl'],
45
34
  } }),
46
35
  };
47
36
  export const FilterBlock = {
48
- 'filter-block': FilterProps,
37
+ 'filterable-block': FilterProps,
49
38
  };
@@ -6,6 +6,7 @@
6
6
  unpredictable css rules order in build */
7
7
  .pc-header-block {
8
8
  position: relative;
9
+ margin: 16px 0;
9
10
  }
10
11
  .pc-header-block_full-width {
11
12
  --pc-border-radius: 0;
@@ -29,16 +30,16 @@ unpredictable css rules order in build */
29
30
  margin: 16px 0;
30
31
  }
31
32
  .pc-header-block__content_vertical-offset_s {
32
- padding: 64px 0;
33
+ padding: 48px 0;
33
34
  }
34
35
  .pc-header-block__content_vertical-offset_m {
35
- padding: 96px 0;
36
+ padding: calc(96px - 16px) 0;
36
37
  }
37
38
  .pc-header-block__content_vertical-offset_l {
38
- padding: 128px 0;
39
+ padding: calc(128px - 16px) 0;
39
40
  }
40
41
  .pc-header-block__content_vertical-offset_xl {
41
- padding: 160px 0;
42
+ padding: calc(160px - 16px) 0;
42
43
  }
43
44
  .pc-header-block__content_offset_large {
44
45
  padding: calc(128px - 16px) 0 16px;
@@ -94,10 +95,10 @@ unpredictable css rules order in build */
94
95
  .pc-header-block__media {
95
96
  position: absolute;
96
97
  display: none;
97
- top: 16px;
98
+ top: 0;
98
99
  right: 0;
99
100
  width: 50%;
100
- height: calc(100% - 2 * 16px);
101
+ height: 100%;
101
102
  overflow: hidden;
102
103
  object-fit: cover;
103
104
  border-radius: var(--pc-border-radius);