@gravity-ui/page-constructor 5.18.1-alpha.2 → 5.18.1-alpha.4

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 (203) hide show
  1. package/build/cjs/blocks/Banner/Banner.js +2 -2
  2. package/build/cjs/blocks/CardLayout/schema.d.ts +32 -0
  3. package/build/cjs/blocks/ContentLayout/schema.d.ts +34 -6
  4. package/build/cjs/blocks/Header/Header.css +3 -0
  5. package/build/cjs/blocks/Header/Header.js +2 -1
  6. package/build/cjs/blocks/Header/schema.d.ts +30 -3
  7. package/build/cjs/blocks/HeaderSlider/schema.d.ts +11 -1
  8. package/build/cjs/blocks/Media/schema.d.ts +16 -2
  9. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +8 -1
  10. package/build/cjs/blocks/Slider/Arrow/Arrow.css +1 -1
  11. package/build/cjs/blocks/Slider/Slider.css +20 -1
  12. package/build/cjs/blocks/Slider/Slider.js +83 -29
  13. package/build/cjs/blocks/Slider/i18n/en.json +3 -1
  14. package/build/cjs/blocks/Slider/i18n/index.d.ts +1 -1
  15. package/build/cjs/blocks/Slider/i18n/ru.json +3 -1
  16. package/build/cjs/blocks/Slider/utils.d.ts +10 -0
  17. package/build/cjs/blocks/Slider/utils.js +85 -1
  18. package/build/cjs/blocks/SliderNew/Arrow/Arrow.css +1 -1
  19. package/build/cjs/blocks/SliderNew/Arrow/Arrow.d.ts +3 -1
  20. package/build/cjs/blocks/SliderNew/Arrow/Arrow.js +2 -2
  21. package/build/cjs/blocks/SliderNew/Slider.css +27 -1
  22. package/build/cjs/blocks/SliderNew/Slider.js +20 -8
  23. package/build/cjs/blocks/SliderNew/i18n/en.json +3 -1
  24. package/build/cjs/blocks/SliderNew/i18n/index.d.ts +1 -1
  25. package/build/cjs/blocks/SliderNew/i18n/ru.json +3 -1
  26. package/build/cjs/blocks/SliderNew/useSlider.d.ts +8 -6
  27. package/build/cjs/blocks/SliderNew/useSlider.js +4 -2
  28. package/build/cjs/blocks/SliderNew/useSliderPagination.d.ts +9 -0
  29. package/build/cjs/blocks/SliderNew/useSliderPagination.js +36 -0
  30. package/build/cjs/blocks/SliderNew/utils.d.ts +2 -0
  31. package/build/cjs/blocks/SliderNew/utils.js +13 -1
  32. package/build/cjs/blocks/Tabs/schema.d.ts +8 -1
  33. package/build/cjs/components/ButtonTabs/ButtonTabs.js +3 -2
  34. package/build/cjs/components/DefaultVideo/DefaultVideo.js +3 -3
  35. package/build/cjs/components/FullscreenImage/FullscreenImage.css +6 -2
  36. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +14 -11
  37. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +4 -2
  38. package/build/cjs/components/Image/Image.js +2 -2
  39. package/build/cjs/components/Image/schema.d.ts +40 -0
  40. package/build/cjs/components/Image/schema.js +8 -0
  41. package/build/cjs/components/ImageBase/ImageBase.d.ts +1 -1
  42. package/build/cjs/components/ImageBase/ImageBase.js +8 -2
  43. package/build/cjs/components/Media/Media.js +4 -3
  44. package/build/cjs/components/Media/Video/Video.js +2 -2
  45. package/build/cjs/components/ReactPlayer/ReactPlayer.css +7 -0
  46. package/build/cjs/components/ReactPlayer/ReactPlayer.d.ts +1 -0
  47. package/build/cjs/components/ReactPlayer/ReactPlayer.js +15 -4
  48. package/build/cjs/components/VideoBlock/VideoBlock.d.ts +1 -0
  49. package/build/cjs/components/VideoBlock/VideoBlock.js +24 -37
  50. package/build/cjs/constructor-items.d.ts +4 -4
  51. package/build/cjs/containers/PageConstructor/PageConstructor.js +3 -1
  52. package/build/cjs/context/imageContext/imageContext.d.ts +2 -3
  53. package/build/cjs/context/projectSettingsContext/ProjectSettingsContext.d.ts +1 -0
  54. package/build/cjs/editor/components/AddBlock/AddBlock.js +23 -6
  55. package/build/cjs/editor/data/index.d.ts +3 -2
  56. package/build/cjs/editor/data/index.js +19 -12
  57. package/build/cjs/models/constructor-items/common.d.ts +9 -4
  58. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -1
  59. package/build/cjs/models/navigation.d.ts +8 -0
  60. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +42 -3
  61. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +1 -1
  62. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +7 -2
  63. package/build/cjs/navigation/components/Logo/Logo.d.ts +1 -1
  64. package/build/cjs/navigation/components/Logo/Logo.js +3 -1
  65. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -1
  66. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +3 -1
  67. package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -2
  68. package/build/cjs/navigation/components/Navigation/Navigation.js +5 -24
  69. package/build/cjs/navigation/components/NavigationItem/NavigationItem.d.ts +1 -1
  70. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +3 -1
  71. package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +5 -5
  72. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.d.ts +1 -1
  73. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js +3 -1
  74. package/build/cjs/navigation/components/Standalone/index.d.ts +2 -2
  75. package/build/cjs/navigation/containers/Layout/Layout.js +2 -1
  76. package/build/cjs/navigation/hooks/index.d.ts +2 -0
  77. package/build/cjs/navigation/hooks/index.js +10 -0
  78. package/build/cjs/navigation/hooks/useActiveNavItem.d.ts +26 -0
  79. package/build/cjs/navigation/hooks/useActiveNavItem.js +15 -0
  80. package/build/cjs/navigation/hooks/useShowBorder.d.ts +2 -0
  81. package/build/cjs/navigation/hooks/useShowBorder.js +21 -0
  82. package/build/cjs/navigation/index.d.ts +14 -0
  83. package/build/cjs/navigation/index.js +16 -4
  84. package/build/cjs/navigation/models.d.ts +1 -0
  85. package/build/cjs/schema/constants.d.ts +16 -1
  86. package/build/cjs/schema/validators/common.d.ts +14 -1
  87. package/build/cjs/schema/validators/common.js +8 -1
  88. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +8 -0
  89. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
  90. package/build/cjs/sub-blocks/Content/Content.css +4 -4
  91. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +8 -4
  92. package/build/cjs/sub-blocks/ImageCard/ImageCard.css +34 -1
  93. package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -1
  94. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +8 -1
  95. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +1 -1
  96. package/build/cjs/sub-blocks/LayoutItem/utils.js +1 -1
  97. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +8 -1
  98. package/build/cjs/text-transform/utils.js +1 -1
  99. package/build/esm/blocks/Banner/Banner.js +2 -2
  100. package/build/esm/blocks/CardLayout/schema.d.ts +32 -0
  101. package/build/esm/blocks/ContentLayout/schema.d.ts +34 -6
  102. package/build/esm/blocks/Header/Header.css +3 -0
  103. package/build/esm/blocks/Header/Header.js +2 -1
  104. package/build/esm/blocks/Header/schema.d.ts +30 -3
  105. package/build/esm/blocks/HeaderSlider/schema.d.ts +11 -1
  106. package/build/esm/blocks/Media/schema.d.ts +16 -2
  107. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +8 -1
  108. package/build/esm/blocks/Slider/Arrow/Arrow.css +1 -1
  109. package/build/esm/blocks/Slider/Slider.css +20 -1
  110. package/build/esm/blocks/Slider/Slider.js +84 -30
  111. package/build/esm/blocks/Slider/i18n/en.json +3 -1
  112. package/build/esm/blocks/Slider/i18n/index.d.ts +1 -1
  113. package/build/esm/blocks/Slider/i18n/ru.json +3 -1
  114. package/build/esm/blocks/Slider/utils.d.ts +10 -0
  115. package/build/esm/blocks/Slider/utils.js +82 -0
  116. package/build/esm/blocks/SliderNew/Arrow/Arrow.css +1 -1
  117. package/build/esm/blocks/SliderNew/Arrow/Arrow.d.ts +3 -1
  118. package/build/esm/blocks/SliderNew/Arrow/Arrow.js +2 -2
  119. package/build/esm/blocks/SliderNew/Slider.css +27 -1
  120. package/build/esm/blocks/SliderNew/Slider.js +20 -8
  121. package/build/esm/blocks/SliderNew/i18n/en.json +3 -1
  122. package/build/esm/blocks/SliderNew/i18n/index.d.ts +1 -1
  123. package/build/esm/blocks/SliderNew/i18n/ru.json +3 -1
  124. package/build/esm/blocks/SliderNew/useSlider.d.ts +8 -6
  125. package/build/esm/blocks/SliderNew/useSlider.js +6 -3
  126. package/build/esm/blocks/SliderNew/useSliderPagination.d.ts +9 -0
  127. package/build/esm/blocks/SliderNew/useSliderPagination.js +32 -0
  128. package/build/esm/blocks/SliderNew/utils.d.ts +2 -0
  129. package/build/esm/blocks/SliderNew/utils.js +10 -0
  130. package/build/esm/blocks/Tabs/schema.d.ts +8 -1
  131. package/build/esm/components/ButtonTabs/ButtonTabs.js +3 -2
  132. package/build/esm/components/DefaultVideo/DefaultVideo.js +3 -3
  133. package/build/esm/components/FullscreenImage/FullscreenImage.css +6 -2
  134. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +14 -11
  135. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +4 -2
  136. package/build/esm/components/Image/Image.js +2 -2
  137. package/build/esm/components/Image/schema.d.ts +40 -0
  138. package/build/esm/components/Image/schema.js +8 -0
  139. package/build/esm/components/ImageBase/ImageBase.d.ts +1 -1
  140. package/build/esm/components/ImageBase/ImageBase.js +9 -2
  141. package/build/esm/components/Media/Media.js +5 -4
  142. package/build/esm/components/Media/Video/Video.js +2 -2
  143. package/build/esm/components/ReactPlayer/ReactPlayer.css +7 -0
  144. package/build/esm/components/ReactPlayer/ReactPlayer.d.ts +1 -0
  145. package/build/esm/components/ReactPlayer/ReactPlayer.js +15 -4
  146. package/build/esm/components/VideoBlock/VideoBlock.d.ts +1 -0
  147. package/build/esm/components/VideoBlock/VideoBlock.js +25 -38
  148. package/build/esm/constructor-items.d.ts +4 -4
  149. package/build/esm/containers/PageConstructor/PageConstructor.js +4 -2
  150. package/build/esm/context/imageContext/imageContext.d.ts +2 -3
  151. package/build/esm/context/projectSettingsContext/ProjectSettingsContext.d.ts +1 -0
  152. package/build/esm/editor/components/AddBlock/AddBlock.js +24 -7
  153. package/build/esm/editor/data/index.d.ts +3 -2
  154. package/build/esm/editor/data/index.js +18 -12
  155. package/build/esm/models/constructor-items/common.d.ts +9 -4
  156. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -1
  157. package/build/esm/models/navigation.d.ts +8 -0
  158. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +42 -3
  159. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +1 -1
  160. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +4 -1
  161. package/build/esm/navigation/components/Logo/Logo.d.ts +1 -1
  162. package/build/esm/navigation/components/Logo/Logo.js +1 -1
  163. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -1
  164. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js +1 -1
  165. package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -2
  166. package/build/esm/navigation/components/Navigation/Navigation.js +6 -25
  167. package/build/esm/navigation/components/NavigationItem/NavigationItem.d.ts +1 -1
  168. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -1
  169. package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +5 -5
  170. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.d.ts +1 -1
  171. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js +1 -1
  172. package/build/esm/navigation/components/Standalone/index.d.ts +2 -2
  173. package/build/esm/navigation/containers/Layout/Layout.js +2 -1
  174. package/build/esm/navigation/hooks/index.d.ts +2 -0
  175. package/build/esm/navigation/hooks/index.js +2 -0
  176. package/build/esm/navigation/hooks/useActiveNavItem.d.ts +26 -0
  177. package/build/esm/navigation/hooks/useActiveNavItem.js +13 -0
  178. package/build/esm/navigation/hooks/useShowBorder.d.ts +2 -0
  179. package/build/esm/navigation/hooks/useShowBorder.js +19 -0
  180. package/build/esm/navigation/index.d.ts +14 -0
  181. package/build/esm/navigation/index.js +14 -0
  182. package/build/esm/navigation/models.d.ts +1 -0
  183. package/build/esm/schema/constants.d.ts +16 -1
  184. package/build/esm/schema/validators/common.d.ts +14 -1
  185. package/build/esm/schema/validators/common.js +8 -1
  186. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +8 -0
  187. package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
  188. package/build/esm/sub-blocks/Content/Content.css +4 -4
  189. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +8 -4
  190. package/build/esm/sub-blocks/ImageCard/ImageCard.css +34 -1
  191. package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -1
  192. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +8 -1
  193. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +1 -1
  194. package/build/esm/sub-blocks/LayoutItem/utils.js +1 -1
  195. package/build/esm/sub-blocks/MediaCard/schema.d.ts +8 -1
  196. package/build/esm/text-transform/utils.js +1 -1
  197. package/package.json +8 -5
  198. package/server/models/constructor-items/common.d.ts +9 -4
  199. package/server/models/constructor-items/sub-blocks.d.ts +2 -1
  200. package/server/models/navigation.d.ts +8 -0
  201. package/server/text-transform/utils.js +1 -1
  202. package/styles/variables.scss +1 -0
  203. package/widget/index.js +1 -1
@@ -1,8 +1,20 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.Navigation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./components/Navigation/Navigation"), exports);
6
+ tslib_1.__exportStar(require("./components/DesktopNavigation/DesktopNavigation"), exports);
7
+ tslib_1.__exportStar(require("./components/MobileNavigation/MobileNavigation"), exports);
8
+ tslib_1.__exportStar(require("./components/MobileMenuButton/MobileMenuButton"), exports);
9
+ tslib_1.__exportStar(require("./components/NavigationList/NavigationList"), exports);
10
+ tslib_1.__exportStar(require("./components/NavigationListItem/NavigationListItem"), exports);
11
+ tslib_1.__exportStar(require("./components/NavigationItem/"), exports);
12
+ tslib_1.__exportStar(require("./components/NavigationItem/NavigationItem"), exports);
13
+ tslib_1.__exportStar(require("./components/NavigationPopup/NavigationPopup"), exports);
14
+ tslib_1.__exportStar(require("./components/SocialIcon/SocialIcon"), exports);
15
+ tslib_1.__exportStar(require("./components/Logo/Logo"), exports);
16
+ tslib_1.__exportStar(require("./hooks"), exports);
17
+ tslib_1.__exportStar(require("./models"), exports);
18
+ tslib_1.__exportStar(require("./utils"), exports);
7
19
  var Standalone_1 = require("./components/Standalone");
8
- Object.defineProperty(exports, "Navigation", { enumerable: true, get: function () { return __importDefault(Standalone_1).default; } });
20
+ Object.defineProperty(exports, "Navigation", { enumerable: true, get: function () { return tslib_1.__importDefault(Standalone_1).default; } });
@@ -44,6 +44,7 @@ export interface DesktopNavigationProps extends MobileMenuButtonProps, ActiveIte
44
44
  logo: ThemedNavigationLogoData;
45
45
  leftItemsWithIconSize: NavigationItemModel[];
46
46
  rightItemsWithIconSize?: NavigationItemModel[];
47
+ customMobileHeaderItems?: NavigationItemModel[];
47
48
  }
48
49
  export interface MobileNavigationProps extends ClassNameProps, ActiveItemProps {
49
50
  isOpened?: boolean;
@@ -796,6 +796,14 @@ export declare const cardSchemas: {
796
796
  disableCompress: {
797
797
  type: string;
798
798
  };
799
+ loading: {
800
+ type: string;
801
+ enum: string[];
802
+ };
803
+ fetchPriority: {
804
+ type: string;
805
+ enum: string[];
806
+ };
799
807
  };
800
808
  } & {
801
809
  optionName: string;
@@ -1541,11 +1549,17 @@ export declare const cardSchemas: {
1541
1549
  ariaLabel: {
1542
1550
  type: string;
1543
1551
  };
1552
+ contain: {
1553
+ type: string;
1554
+ };
1544
1555
  };
1545
1556
  };
1546
1557
  youtube: {
1547
1558
  type: string;
1548
1559
  };
1560
+ videoIframe: {
1561
+ type: string;
1562
+ };
1549
1563
  parallax: {
1550
1564
  type: string;
1551
1565
  };
@@ -1579,7 +1593,8 @@ export declare const cardSchemas: {
1579
1593
  type: string;
1580
1594
  };
1581
1595
  ratio: {
1582
- type: string;
1596
+ type: string[];
1597
+ pattern: string;
1583
1598
  };
1584
1599
  iframe: {
1585
1600
  type: string;
@@ -203,6 +203,9 @@ export declare const VideoProps: {
203
203
  ariaLabel: {
204
204
  type: string;
205
205
  };
206
+ contain: {
207
+ type: string;
208
+ };
206
209
  };
207
210
  };
208
211
  export declare const ThemeProps: {
@@ -365,6 +368,9 @@ export declare const BackgroundProps: {
365
368
  ariaLabel: {
366
369
  type: string;
367
370
  };
371
+ contain: {
372
+ type: string;
373
+ };
368
374
  };
369
375
  };
370
376
  height: {
@@ -1129,11 +1135,17 @@ export declare const MediaProps: {
1129
1135
  ariaLabel: {
1130
1136
  type: string;
1131
1137
  };
1138
+ contain: {
1139
+ type: string;
1140
+ };
1132
1141
  };
1133
1142
  };
1134
1143
  youtube: {
1135
1144
  type: string;
1136
1145
  };
1146
+ videoIframe: {
1147
+ type: string;
1148
+ };
1137
1149
  parallax: {
1138
1150
  type: string;
1139
1151
  };
@@ -1245,7 +1257,8 @@ export declare const MediaProps: {
1245
1257
  })[];
1246
1258
  };
1247
1259
  ratio: {
1248
- type: string;
1260
+ type: string[];
1261
+ pattern: string;
1249
1262
  };
1250
1263
  iframe: {
1251
1264
  type: string;
@@ -164,6 +164,9 @@ exports.VideoProps = {
164
164
  ariaLabel: {
165
165
  type: 'string',
166
166
  },
167
+ contain: {
168
+ type: 'boolean',
169
+ },
167
170
  },
168
171
  };
169
172
  exports.ThemeProps = {
@@ -527,6 +530,9 @@ exports.MediaProps = {
527
530
  youtube: {
528
531
  type: 'string',
529
532
  },
533
+ videoIframe: {
534
+ type: 'string',
535
+ },
530
536
  parallax: {
531
537
  type: 'boolean',
532
538
  },
@@ -544,7 +550,8 @@ exports.MediaProps = {
544
550
  anyOf: [event_1.AnalyticsEventSchema, { type: 'array', items: event_1.AnalyticsEventSchema }],
545
551
  },
546
552
  ratio: {
547
- type: 'number',
553
+ type: ['number', 'string'],
554
+ pattern: '^auto$',
548
555
  },
549
556
  iframe: Object.assign({}, IframeProps),
550
557
  margins: {
@@ -45,6 +45,14 @@ export declare const BackgroundCard: {
45
45
  disableCompress: {
46
46
  type: string;
47
47
  };
48
+ loading: {
49
+ type: string;
50
+ enum: string[];
51
+ };
52
+ fetchPriority: {
53
+ type: string;
54
+ enum: string[];
55
+ };
48
56
  };
49
57
  } & {
50
58
  optionName: string;
@@ -8,7 +8,7 @@ const theme_1 = require("../../context/theme");
8
8
  const utils_1 = require("../../utils");
9
9
  const b = (0, utils_1.block)('banner-card');
10
10
  const BannerCard = (props) => {
11
- const { title, subtitle, button: { url, text, target, theme: buttonTheme = 'raised' }, color, theme: textTheme = 'light', image, disableCompress, mediaView = 'full', } = props;
11
+ const { title, subtitle, button: { url, text, target, theme: buttonTheme = 'raised' } = {}, color, theme: textTheme = 'light', image, disableCompress, mediaView = 'full', } = props;
12
12
  const theme = (0, theme_1.useTheme)();
13
13
  const contentStyle = {};
14
14
  if (color) {
@@ -21,8 +21,8 @@ const BannerCard = (props) => {
21
21
  react_1.default.createElement("h2", { className: b('title') },
22
22
  react_1.default.createElement(components_1.HTML, null, title)),
23
23
  subtitle && (react_1.default.createElement(components_1.YFMWrapper, { className: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))),
24
- react_1.default.createElement(components_1.RouterLink, { href: url },
25
- react_1.default.createElement(components_1.Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text, url: url, target: target }))),
24
+ url && (react_1.default.createElement(components_1.RouterLink, { href: url },
25
+ react_1.default.createElement(components_1.Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text !== null && text !== void 0 ? text : '', url: url, target: target })))),
26
26
  react_1.default.createElement(components_1.BackgroundImage, { className: b('image'), src: (0, utils_1.getThemedValue)(image, theme), disableCompress: disableCompress }))));
27
27
  };
28
28
  exports.BannerCard = BannerCard;
@@ -148,12 +148,12 @@ unpredictable css rules order in build */
148
148
  .pc-content_theme_light .pc-content__title a:hover {
149
149
  color: var(--g-color-text-dark-secondary);
150
150
  }
151
- .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__link),
151
+ .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
152
152
  .pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
153
- .pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__link),
153
+ .pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
154
154
  .pc-content_control-position_bottom .pc-content__text:has(+ .pc-content__buttons),
155
- .pc-content_control-position_bottom .pc-content__text:has(+ .pc-content__link),
155
+ .pc-content_control-position_bottom .pc-content__text:has(+ .pc-content__links),
156
156
  .pc-content_control-position_bottom .pc-content__title:has(+ .pc-content__buttons),
157
- .pc-content_control-position_bottom .pc-content__title:has(+ .pc-content__link) {
157
+ .pc-content_control-position_bottom .pc-content__title:has(+ .pc-content__links) {
158
158
  margin-bottom: auto;
159
159
  }
@@ -234,16 +234,18 @@ unpredictable css rules order in build */
234
234
  }
235
235
  .pc-hubspot-form .hs-richtext p {
236
236
  color: var(--g-color-text-primary);
237
+ font-family: var(--g-text-body-font-family);
238
+ font-weight: var(--g-text-body-font-weight);
237
239
  font-size: var(--g-text-body-2-font-size);
238
240
  line-height: var(--g-text-body-2-line-height);
239
- font-weight: var(--g-text-body-font-weight);
240
241
  margin: 20px 0;
241
242
  }
242
243
  .pc-hubspot-form .hs_error_rollup {
243
244
  padding-left: 10px;
245
+ font-family: var(--g-text-body-font-family);
246
+ font-weight: var(--g-text-body-font-weight);
244
247
  font-size: var(--g-text-body-1-font-size);
245
248
  line-height: var(--g-text-body-1-line-height);
246
- font-weight: var(--g-text-body-font-weight);
247
249
  color: var(--g-color-text-danger);
248
250
  }
249
251
  .pc-hubspot-form .legal-consent-container {
@@ -274,9 +276,10 @@ unpredictable css rules order in build */
274
276
  order: 4;
275
277
  }
276
278
  .pc-hubspot-form .hs-error-msg {
279
+ font-family: var(--g-text-body-font-family);
280
+ font-weight: var(--g-text-body-font-weight);
277
281
  font-size: var(--g-text-body-1-font-size);
278
282
  line-height: var(--g-text-body-1-line-height);
279
- font-weight: var(--g-text-body-font-weight);
280
283
  color: var(--g-color-text-danger);
281
284
  display: block;
282
285
  }
@@ -333,9 +336,10 @@ unpredictable css rules order in build */
333
336
  border: 1px solid var(--g-color-line-generic);
334
337
  }
335
338
  .pc-hubspot-form .hs_recaptcha div {
339
+ font-family: var(--g-text-body-font-family);
340
+ font-weight: var(--g-text-body-font-weight);
336
341
  font-size: var(--g-text-body-2-font-size);
337
342
  line-height: var(--g-text-body-2-line-height);
338
- font-weight: var(--g-text-body-font-weight);
339
343
  }
340
344
  .pc-hubspot-form_mobile .hs-richtext,
341
345
  .pc-hubspot-form_mobile .hs-form-field,
@@ -1,4 +1,4 @@
1
- .pc-image-card_border_shadow {
1
+ a.pc-image-card_border_shadow, .pc-image-card_border_shadow {
2
2
  box-shadow: 0px 4px 24px var(--pc-color-sfx-shadow), 0px 2px 8px var(--pc-color-sfx-shadow);
3
3
  }
4
4
 
@@ -58,4 +58,37 @@ unpredictable css rules order in build */
58
58
  }
59
59
  .pc-image-card_with-content.pc-image-card_direction_reverse .pc-image-card__content {
60
60
  padding-bottom: 24px;
61
+ }
62
+
63
+ a.pc-image-card {
64
+ color: inherit;
65
+ text-decoration: none;
66
+ min-height: 248px;
67
+ height: 100%;
68
+ overflow-x: hidden;
69
+ border-radius: var(--pc-border-radius);
70
+ background-color: var(--g-color-base-float);
71
+ transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
72
+ }
73
+ a.pc-image-card:hover, a.pc-image-card:active {
74
+ --pc-text-header-color: inherit;
75
+ color: inherit;
76
+ }
77
+ a.pc-image-card_border_line {
78
+ border: 1px solid var(--g-color-line-generic);
79
+ }
80
+ a.pc-image-card_border_line, a.pc-image-card_border_none {
81
+ transition: transform 0.3s ease-out;
82
+ }
83
+ a.pc-image-card_border_line:hover, a.pc-image-card_border_none:hover {
84
+ transform: translateY(-8px);
85
+ }
86
+ a.pc-image-card_border_shadow {
87
+ transition: transform 0.3s ease-out;
88
+ }
89
+ a.pc-image-card_border_shadow:hover {
90
+ transform: translateY(-8px);
91
+ }
92
+ a.pc-image-card_border_shadow:hover {
93
+ background-color: var(--pc-color-base-float-hover);
61
94
  }
@@ -24,7 +24,7 @@ const ImageCard = (props) => {
24
24
  react_1.default.createElement(components_1.Image, Object.assign({ className: b('image_inner', { radius: enableImageBorderRadius }) }, imageProps))),
25
25
  hasContent && (react_1.default.createElement("div", { className: b('content') },
26
26
  react_1.default.createElement(Content_1.default, { titleId: titleId, title: title, text: text, links: links, buttons: buttons, list: list, theme: cardTheme, additionalInfo: additionalInfo, size: size, colSizes: CONTENT_COL_SIZES, controlPosition: areControlsInFooter ? 'bottom' : 'default' })))));
27
- return url ? (react_1.default.createElement(uikit_1.Link, { href: url, target: target, rel: target === '_blank' ? 'noopener noreferrer' : undefined, className: b({ border, 'with-content': hasContent, direction }), title: urlTitle, extraProps: {
27
+ return url ? (react_1.default.createElement(uikit_1.Link, { href: url, target: target, rel: target === '_blank' ? 'noopener noreferrer' : undefined, className: b({ border, 'with-content': hasContent, direction }), title: urlTitle, style: { backgroundColor }, extraProps: {
28
28
  draggable: false,
29
29
  onDragStart: (e) => e.preventDefault(),
30
30
  } }, cardContent)) : (react_1.default.createElement("div", { className: b({ border, 'with-content': hasContent, direction }), style: { backgroundColor } }, cardContent));
@@ -157,11 +157,17 @@ export declare const LayoutItem: {
157
157
  ariaLabel: {
158
158
  type: string;
159
159
  };
160
+ contain: {
161
+ type: string;
162
+ };
160
163
  };
161
164
  };
162
165
  youtube: {
163
166
  type: string;
164
167
  };
168
+ videoIframe: {
169
+ type: string;
170
+ };
165
171
  parallax: {
166
172
  type: string;
167
173
  };
@@ -273,7 +279,8 @@ export declare const LayoutItem: {
273
279
  })[];
274
280
  };
275
281
  ratio: {
276
- type: string;
282
+ type: string[];
283
+ pattern: string;
277
284
  };
278
285
  iframe: {
279
286
  type: string;
@@ -14,4 +14,4 @@ export declare const getLayoutItemLinks: (links: LayoutItemProps['content']['lin
14
14
  tabIndex?: number | undefined;
15
15
  }[] | undefined;
16
16
  export declare const hasFullscreen: ({ dataLens, image }: MediaProps) => boolean;
17
- export declare const showFullscreenIcon: ({ youtube }: MediaProps) => boolean;
17
+ export declare const showFullscreenIcon: ({ youtube, videoIframe }: MediaProps) => boolean;
@@ -8,5 +8,5 @@ const hasFullscreen = ({ dataLens, image }) => {
8
8
  return !(dataLens || Array.isArray(image));
9
9
  };
10
10
  exports.hasFullscreen = hasFullscreen;
11
- const showFullscreenIcon = ({ youtube }) => !youtube;
11
+ const showFullscreenIcon = ({ youtube, videoIframe }) => !(youtube || videoIframe);
12
12
  exports.showFullscreenIcon = showFullscreenIcon;
@@ -240,11 +240,17 @@ export declare const MediaCardBlock: {
240
240
  ariaLabel: {
241
241
  type: string;
242
242
  };
243
+ contain: {
244
+ type: string;
245
+ };
243
246
  };
244
247
  };
245
248
  youtube: {
246
249
  type: string;
247
250
  };
251
+ videoIframe: {
252
+ type: string;
253
+ };
248
254
  parallax: {
249
255
  type: string;
250
256
  };
@@ -278,7 +284,8 @@ export declare const MediaCardBlock: {
278
284
  type: string;
279
285
  };
280
286
  ratio: {
281
- type: string;
287
+ type: string[];
288
+ pattern: string;
282
289
  };
283
290
  iframe: {
284
291
  type: string;
@@ -53,7 +53,7 @@ function typograf(text, lang = 'ru') {
53
53
  en: ['en-US', 'ru'],
54
54
  };
55
55
  const tp = new typograf_1.default({
56
- locale: localeByLang[lang],
56
+ locale: localeByLang[lang] || lang,
57
57
  htmlEntity: { type: 'name' },
58
58
  });
59
59
  enableRules(tp);
@@ -6,8 +6,8 @@ import { block } from '../../utils';
6
6
  import './Banner.css';
7
7
  const b = block('banner-block');
8
8
  export const BannerBlock = (props) => {
9
- const { animated } = props, bannerProps = __rest(props, ["animated"]);
10
- return (React.createElement(AnimateBlock, { className: b(), animate: animated },
9
+ const { animated, className } = props, bannerProps = __rest(props, ["animated", "className"]);
10
+ return (React.createElement(AnimateBlock, { className: b(null, className), animate: animated },
11
11
  React.createElement(BannerCard, Object.assign({}, bannerProps))));
12
12
  };
13
13
  export default BannerBlock;
@@ -44,6 +44,14 @@ export declare const CardLayoutProps: {
44
44
  disableCompress: {
45
45
  type: string;
46
46
  };
47
+ loading: {
48
+ type: string;
49
+ enum: string[];
50
+ };
51
+ fetchPriority: {
52
+ type: string;
53
+ enum: string[];
54
+ };
47
55
  };
48
56
  optionName: string;
49
57
  type: string;
@@ -73,6 +81,14 @@ export declare const CardLayoutProps: {
73
81
  disableCompress: {
74
82
  type: string;
75
83
  };
84
+ loading: {
85
+ type: string;
86
+ enum: string[];
87
+ };
88
+ fetchPriority: {
89
+ type: string;
90
+ enum: string[];
91
+ };
76
92
  };
77
93
  optionName: string;
78
94
  type: string;
@@ -216,6 +232,14 @@ export declare const CardLayoutBlock: {
216
232
  disableCompress: {
217
233
  type: string;
218
234
  };
235
+ loading: {
236
+ type: string;
237
+ enum: string[];
238
+ };
239
+ fetchPriority: {
240
+ type: string;
241
+ enum: string[];
242
+ };
219
243
  };
220
244
  optionName: string;
221
245
  type: string;
@@ -245,6 +269,14 @@ export declare const CardLayoutBlock: {
245
269
  disableCompress: {
246
270
  type: string;
247
271
  };
272
+ loading: {
273
+ type: string;
274
+ enum: string[];
275
+ };
276
+ fetchPriority: {
277
+ type: string;
278
+ enum: string[];
279
+ };
248
280
  };
249
281
  optionName: string;
250
282
  type: string;
@@ -42,6 +42,14 @@ export declare const ContentLayoutBlock: {
42
42
  disableCompress: {
43
43
  type: string;
44
44
  };
45
+ loading: {
46
+ type: string;
47
+ enum: string[];
48
+ };
49
+ fetchPriority: {
50
+ type: string;
51
+ enum: string[];
52
+ };
45
53
  };
46
54
  } | {
47
55
  optionName: string;
@@ -56,9 +64,7 @@ export declare const ContentLayoutBlock: {
56
64
  tablet: {
57
65
  type: string;
58
66
  pattern: string;
59
- }; /**
60
- * @deprecated Use params on top level instead
61
- */
67
+ };
62
68
  mobile: {
63
69
  type: string;
64
70
  pattern: string;
@@ -70,6 +76,14 @@ export declare const ContentLayoutBlock: {
70
76
  disableCompress: {
71
77
  type: string;
72
78
  };
79
+ loading: {
80
+ type: string;
81
+ enum: string[];
82
+ };
83
+ fetchPriority: {
84
+ type: string;
85
+ enum: string[];
86
+ };
73
87
  };
74
88
  })[];
75
89
  };
@@ -234,6 +248,14 @@ export declare const ContentLayoutBlock: {
234
248
  disableCompress: {
235
249
  type: string;
236
250
  };
251
+ loading: {
252
+ type: string;
253
+ enum: string[];
254
+ };
255
+ fetchPriority: {
256
+ type: string;
257
+ enum: string[];
258
+ };
237
259
  };
238
260
  } | {
239
261
  optionName: string;
@@ -248,9 +270,7 @@ export declare const ContentLayoutBlock: {
248
270
  tablet: {
249
271
  type: string;
250
272
  pattern: string;
251
- }; /**
252
- * @deprecated Use params on top level instead
253
- */
273
+ };
254
274
  mobile: {
255
275
  type: string;
256
276
  pattern: string;
@@ -262,6 +282,14 @@ export declare const ContentLayoutBlock: {
262
282
  disableCompress: {
263
283
  type: string;
264
284
  };
285
+ loading: {
286
+ type: string;
287
+ enum: string[];
288
+ };
289
+ fetchPriority: {
290
+ type: string;
291
+ enum: string[];
292
+ };
265
293
  };
266
294
  })[];
267
295
  };
@@ -27,6 +27,9 @@ unpredictable css rules order in build */
27
27
  .pc-header-block__content_theme_dark .pc-header-block__overtitle {
28
28
  color: var(--g-color-text-light-primary);
29
29
  }
30
+ .pc-header-block__content_theme_dark .pc-header-block__description .yfm {
31
+ color: var(--g-color-text-light-primary);
32
+ }
30
33
  .pc-header-block__content_vertical-offset {
31
34
  margin: 16px 0;
32
35
  }
@@ -38,6 +38,7 @@ export const HeaderBlock = (props) => {
38
38
  ['has-media']: hasRightSideImage,
39
39
  ['full-width']: fullWidth,
40
40
  ['media-view']: mediaView,
41
+ ['controls-view']: textTheme,
41
42
  }, className) },
42
43
  backgroundThemed && fullWidth && React.createElement(FullWidthBackground, { background: backgroundThemed }),
43
44
  backgroundThemed && React.createElement(Background, { background: backgroundThemed, isMobile: isMobile }),
@@ -59,7 +60,7 @@ export const HeaderBlock = (props) => {
59
60
  React.createElement("h1", { className: b('title'), id: titleId },
60
61
  status,
61
62
  renderTitle ? renderTitle(title) : React.createElement(HTML, null, title)),
62
- description && (React.createElement("div", { className: b('description') },
63
+ description && (React.createElement("div", { className: b('description', { theme: textTheme }) },
63
64
  React.createElement(YFMWrapper, { content: description, modifiers: {
64
65
  constructor: true,
65
66
  constructorTheme: textTheme,