@gravity-ui/page-constructor 5.7.2 → 5.9.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 (50) hide show
  1. package/build/cjs/blocks/Form/Form.js +8 -2
  2. package/build/cjs/blocks/Form/schema.d.ts +54 -34
  3. package/build/cjs/blocks/Form/schema.js +2 -2
  4. package/build/cjs/blocks/Header/schema.d.ts +9 -0
  5. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  6. package/build/cjs/blocks/Info/Info.js +2 -2
  7. package/build/cjs/blocks/Media/schema.d.ts +6 -0
  8. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  9. package/build/cjs/blocks/Questions/Questions.js +2 -2
  10. package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +1 -1
  11. package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.js +6 -9
  12. package/build/cjs/blocks/Tabs/schema.d.ts +3 -0
  13. package/build/cjs/components/InnerForm/InnerForm.js +6 -2
  14. package/build/cjs/components/Media/Image/Image.js +4 -1
  15. package/build/cjs/components/Media/Media.js +3 -2
  16. package/build/cjs/models/constructor-items/blocks.d.ts +4 -3
  17. package/build/cjs/models/constructor-items/common.d.ts +1 -0
  18. package/build/cjs/schema/constants.d.ts +3 -0
  19. package/build/cjs/schema/validators/common.d.ts +3 -0
  20. package/build/cjs/schema/validators/common.js +3 -0
  21. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
  22. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +3 -0
  23. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +3 -0
  24. package/build/esm/blocks/Form/Form.js +9 -3
  25. package/build/esm/blocks/Form/schema.d.ts +54 -34
  26. package/build/esm/blocks/Form/schema.js +3 -3
  27. package/build/esm/blocks/Header/schema.d.ts +9 -0
  28. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  29. package/build/esm/blocks/Info/Info.js +2 -2
  30. package/build/esm/blocks/Media/schema.d.ts +6 -0
  31. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  32. package/build/esm/blocks/Questions/Questions.js +2 -2
  33. package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +1 -1
  34. package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.js +6 -9
  35. package/build/esm/blocks/Tabs/schema.d.ts +3 -0
  36. package/build/esm/components/InnerForm/InnerForm.js +6 -2
  37. package/build/esm/components/Media/Image/Image.js +4 -1
  38. package/build/esm/components/Media/Media.js +3 -2
  39. package/build/esm/models/constructor-items/blocks.d.ts +4 -3
  40. package/build/esm/models/constructor-items/common.d.ts +1 -0
  41. package/build/esm/schema/constants.d.ts +3 -0
  42. package/build/esm/schema/validators/common.d.ts +3 -0
  43. package/build/esm/schema/validators/common.js +3 -0
  44. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
  45. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +3 -0
  46. package/build/esm/sub-blocks/MediaCard/schema.d.ts +3 -0
  47. package/package.json +1 -1
  48. package/server/models/constructor-items/blocks.d.ts +4 -3
  49. package/server/models/constructor-items/common.d.ts +1 -0
  50. package/widget/index.js +1 -1
@@ -1,7 +1,7 @@
1
1
  import omit from 'lodash/omit';
2
2
  import { ImageProps } from '../../components/Image/schema';
3
3
  import { YandexFormProps } from '../../components/YandexForm/schema';
4
- import { BlockBaseProps } from '../../schema/validators/common';
4
+ import { BlockBaseProps, withTheme } from '../../schema/validators/common';
5
5
  import { ContentBase } from '../../sub-blocks/Content/schema';
6
6
  import { HubspotFormProps } from '../../sub-blocks/HubspotForm/schema';
7
7
  const FormBlockContentProps = omit(ContentBase, ['size', 'centered', 'colSizes']);
@@ -17,14 +17,14 @@ export const FormBlock = {
17
17
  type: 'object',
18
18
  optionName: 'yandex',
19
19
  properties: {
20
- yandex: YandexFormProps,
20
+ yandex: withTheme(YandexFormProps),
21
21
  },
22
22
  },
23
23
  {
24
24
  type: 'object',
25
25
  optionName: 'hubspot',
26
26
  properties: {
27
- hubspot: HubspotFormProps,
27
+ hubspot: withTheme(HubspotFormProps),
28
28
  },
29
29
  },
30
30
  ],
@@ -48,6 +48,9 @@ export declare const HeaderBackgroundProps: {
48
48
  optionName: string;
49
49
  })[];
50
50
  };
51
+ disableImageSliderForArrayInput: {
52
+ type: string;
53
+ };
51
54
  video: {
52
55
  type: string;
53
56
  additionalProperties: boolean;
@@ -508,6 +511,9 @@ export declare const HeaderProperties: {
508
511
  optionName: string;
509
512
  })[];
510
513
  };
514
+ disableImageSliderForArrayInput: {
515
+ type: string;
516
+ };
511
517
  video: {
512
518
  type: string;
513
519
  additionalProperties: boolean;
@@ -1017,6 +1023,9 @@ export declare const HeaderBlock: {
1017
1023
  optionName: string;
1018
1024
  })[];
1019
1025
  };
1026
+ disableImageSliderForArrayInput: {
1027
+ type: string;
1028
+ };
1020
1029
  video: {
1021
1030
  type: string;
1022
1031
  additionalProperties: boolean;
@@ -239,6 +239,9 @@ export declare const HeaderSliderBlock: {
239
239
  optionName: string;
240
240
  })[];
241
241
  };
242
+ disableImageSliderForArrayInput: {
243
+ type: string;
244
+ };
242
245
  video: {
243
246
  type: string;
244
247
  additionalProperties: boolean;
@@ -25,8 +25,8 @@ export const InfoBlock = (props) => {
25
25
  React.createElement(Grid, null,
26
26
  React.createElement(Row, null,
27
27
  React.createElement(Col, { sizes: sizes, className: b('left') },
28
- React.createElement(Content, Object.assign({ title: title || (leftContent === null || leftContent === void 0 ? void 0 : leftContent.title), text: leftContent === null || leftContent === void 0 ? void 0 : leftContent.text, links: leftContent === null || leftContent === void 0 ? void 0 : leftContent.links, buttons: leftButtons, additionalInfo: leftContent === null || leftContent === void 0 ? void 0 : leftContent.additionalInfo }, commonProps))),
28
+ React.createElement(Content, Object.assign({ title: title || (leftContent === null || leftContent === void 0 ? void 0 : leftContent.title), text: leftContent === null || leftContent === void 0 ? void 0 : leftContent.text, links: leftContent === null || leftContent === void 0 ? void 0 : leftContent.links, list: leftContent === null || leftContent === void 0 ? void 0 : leftContent.list, buttons: leftButtons, additionalInfo: leftContent === null || leftContent === void 0 ? void 0 : leftContent.additionalInfo }, commonProps))),
29
29
  React.createElement(Col, { sizes: sizes, className: b('right') },
30
- React.createElement(Content, Object.assign({ title: sectionsTitle || (rightContent === null || rightContent === void 0 ? void 0 : rightContent.title), text: rightContent === null || rightContent === void 0 ? void 0 : rightContent.text, links: rightLinks, buttons: rightContent === null || rightContent === void 0 ? void 0 : rightContent.buttons, additionalInfo: rightContent === null || rightContent === void 0 ? void 0 : rightContent.additionalInfo }, commonProps))))))));
30
+ React.createElement(Content, Object.assign({ title: sectionsTitle || (rightContent === null || rightContent === void 0 ? void 0 : rightContent.title), text: rightContent === null || rightContent === void 0 ? void 0 : rightContent.text, links: rightLinks, list: rightContent === null || rightContent === void 0 ? void 0 : rightContent.list, buttons: rightContent === null || rightContent === void 0 ? void 0 : rightContent.buttons, additionalInfo: rightContent === null || rightContent === void 0 ? void 0 : rightContent.additionalInfo }, commonProps))))))));
31
31
  };
32
32
  export default InfoBlock;
@@ -42,6 +42,9 @@ export declare const Media: {
42
42
  optionName: string;
43
43
  })[];
44
44
  };
45
+ disableImageSliderForArrayInput: {
46
+ type: string;
47
+ };
45
48
  video: {
46
49
  type: string;
47
50
  additionalProperties: boolean;
@@ -632,6 +635,9 @@ export declare const MediaBlock: {
632
635
  optionName: string;
633
636
  })[];
634
637
  };
638
+ disableImageSliderForArrayInput: {
639
+ type: string;
640
+ };
635
641
  video: {
636
642
  type: string;
637
643
  additionalProperties: boolean;
@@ -58,6 +58,9 @@ export declare const PromoFeaturesItem: {
58
58
  optionName: string;
59
59
  })[];
60
60
  };
61
+ disableImageSliderForArrayInput: {
62
+ type: string;
63
+ };
61
64
  video: {
62
65
  type: string;
63
66
  additionalProperties: boolean;
@@ -7,7 +7,7 @@ import { FaqMicrodataValues } from './models';
7
7
  import './Questions.css';
8
8
  const b = block('QuestionsBlock');
9
9
  const QuestionsBlock = (props) => {
10
- const { title, text, additionalInfo, links, buttons, items } = props;
10
+ const { title, text, additionalInfo, links, buttons, items, list } = props;
11
11
  const [opened, setOpened] = useState([0]);
12
12
  const toggleItem = (index) => {
13
13
  let newState;
@@ -23,7 +23,7 @@ const QuestionsBlock = (props) => {
23
23
  React.createElement(Row, null,
24
24
  React.createElement(Col, { sizes: { all: 12, md: 4 } },
25
25
  React.createElement("div", { className: b('title') },
26
- React.createElement(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, buttons: buttons, colSizes: { all: 12, md: 12 } }))),
26
+ React.createElement(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, colSizes: { all: 12, md: 12 } }))),
27
27
  React.createElement(Col, { sizes: { all: 12, md: 8 }, role: 'list' }, items.map(({ title: itemTitle, text: itemText, link, listStyle = 'dash' }, index) => {
28
28
  const isOpened = opened.includes(index);
29
29
  const onClick = () => toggleItem(index);
@@ -7,5 +7,5 @@ interface TextContentProps extends Pick<TabsBlockProps, 'centered' | 'contentSiz
7
7
  centered?: boolean;
8
8
  imageProps?: ImageObjectProps | ImageDeviceProps;
9
9
  }
10
- export declare const TabsTextContent: ({ centered, contentSize, showMedia, data, imageProps, isReverse, }: TextContentProps) => JSX.Element;
10
+ export declare const TabsTextContent: ({ centered, contentSize, showMedia, data: { media, title, text, additionalInfo, link, links, buttons, list }, imageProps, isReverse, }: TextContentProps) => JSX.Element;
11
11
  export default TabsTextContent;
@@ -4,13 +4,10 @@ import { Content } from '../../../sub-blocks';
4
4
  import { block } from '../../../utils';
5
5
  import './TabsTextContent.css';
6
6
  const b = block('tabs-block-text-content');
7
- export const TabsTextContent = ({ centered, contentSize = 's', showMedia, data, imageProps, isReverse, }) => {
8
- const isImage = (data === null || data === void 0 ? void 0 : data.media) || imageProps;
9
- return (React.createElement(Col, { sizes: { all: 12, md: showMedia ? 4 : 8 }, className: b({ centered: centered }) },
10
- React.createElement("div", { className: b('wrapper', {
11
- reverse: isReverse,
12
- 'no-image': !isImage,
13
- }) },
14
- React.createElement(Content, { title: data.title, text: data.text, additionalInfo: data.additionalInfo, size: contentSize, links: [...(data.link ? [data.link] : []), ...(data.links || [])], buttons: data.buttons, colSizes: { all: 12 } }))));
15
- };
7
+ export const TabsTextContent = ({ centered, contentSize = 's', showMedia, data: { media, title, text, additionalInfo, link, links, buttons, list }, imageProps, isReverse, }) => (React.createElement(Col, { sizes: { all: 12, md: showMedia ? 4 : 8 }, className: b({ centered: centered }) },
8
+ React.createElement("div", { className: b('wrapper', {
9
+ reverse: isReverse,
10
+ 'no-image': !(media || imageProps),
11
+ }) },
12
+ React.createElement(Content, { title: title, text: text, additionalInfo: additionalInfo, size: contentSize, list: list, links: [...(link ? [link] : []), ...(links || [])], buttons: buttons, colSizes: { all: 12 } }))));
16
13
  export default TabsTextContent;
@@ -53,6 +53,9 @@ export declare const tabsItem: {
53
53
  optionName: string;
54
54
  })[];
55
55
  };
56
+ disableImageSliderForArrayInput: {
57
+ type: string;
58
+ };
56
59
  video: {
57
60
  type: string;
58
61
  additionalProperties: boolean;
@@ -2,18 +2,21 @@ import { __rest } from "tslib";
2
2
  import React, { useContext, useEffect } from 'react';
3
3
  import { YandexForm } from '..';
4
4
  import { FormsContext, } from '../../context/formsContext/FormsContext';
5
+ import { useTheme } from '../../context/theme';
5
6
  import { isHubspotDataForm, isYandexDataForm } from '../../models';
6
7
  import { HubspotForm } from '../../sub-blocks';
8
+ import { getThemedValue } from '../../utils';
7
9
  const InnerForm = (props) => {
8
10
  const { formData, onContentLoad, className } = props;
9
11
  const formsConfig = useContext(FormsContext);
12
+ const theme = useTheme();
10
13
  useEffect(() => {
11
14
  if (isHubspotDataForm(formData)) {
12
15
  onContentLoad();
13
16
  }
14
17
  }, [onContentLoad, formData]);
15
18
  if (isYandexDataForm(formData)) {
16
- const _a = formData.yandex, { onLoad } = _a, rest = __rest(_a, ["onLoad"]);
19
+ const _a = getThemedValue(formData.yandex, theme), { onLoad } = _a, rest = __rest(_a, ["onLoad"]);
17
20
  return (React.createElement("div", { className: className },
18
21
  React.createElement(YandexForm, Object.assign({}, formsConfig.yandex, rest, { onLoad: () => {
19
22
  onContentLoad();
@@ -21,7 +24,8 @@ const InnerForm = (props) => {
21
24
  } }))));
22
25
  }
23
26
  if (isHubspotDataForm(formData)) {
24
- return (React.createElement(HubspotForm, Object.assign({ createDOMElement: true }, formsConfig.hubspot, formData.hubspot)));
27
+ const themedFormData = getThemedValue(formData.hubspot, theme);
28
+ return (React.createElement(HubspotForm, Object.assign({ createDOMElement: true }, formsConfig.hubspot, themedFormData)));
25
29
  }
26
30
  return null;
27
31
  };
@@ -12,7 +12,10 @@ import './Image.css';
12
12
  const b = block('media-component-image');
13
13
  export const defaultAnimatedDivQa = 'animated-div';
14
14
  const Image = (props) => {
15
- const { parallax, image, height, imageClassName, isBackground, hasVideoFallback, video, fullscreen, qa, onLoad, } = props;
15
+ const { parallax, height, imageClassName, isBackground, hasVideoFallback, video, fullscreen, disableImageSliderForArrayInput, qa, onLoad, } = props;
16
+ const image = Array.isArray(props.image) && disableImageSliderForArrayInput
17
+ ? props.image[0]
18
+ : props.image;
16
19
  const qaAttributes = getQaAttrubutes(qa, 'fullscreen-image', 'animate', 'background-image', 'image-view', 'slider-block');
17
20
  const [scrollY, setScrollY] = useState(0);
18
21
  const [{ springScrollY }, springSetScrollY] = useSpring(() => ({
@@ -9,13 +9,13 @@ import Video from './Video/Video';
9
9
  import './Media.css';
10
10
  const b = block('Media');
11
11
  export const Media = (props) => {
12
- const { image, video, youtube, dataLens, color, height, previewImg, parallax = false, fullscreen, analyticsEvents, className, imageClassName, videoClassName, youtubeClassName, playVideo = true, isBackground, playButton, customBarControlsClassName, qa, ratio, autoplay, onImageLoad, iframe, margins, } = props;
12
+ const { image, video, youtube, dataLens, color, height, previewImg, parallax = false, fullscreen, analyticsEvents, className, imageClassName, videoClassName, youtubeClassName, disableImageSliderForArrayInput, playVideo = true, isBackground, playButton, customBarControlsClassName, qa, ratio, autoplay, onImageLoad, iframe, margins, } = props;
13
13
  const [hasVideoFallback, setHasVideoFallback] = useState(false);
14
14
  const qaAttributes = getQaAttrubutes(qa, 'video');
15
15
  const content = useMemo(() => {
16
16
  let result = [];
17
17
  if (image) {
18
- result.push(React.createElement(Image, { key: "image", parallax: parallax, image: image, height: height, imageClassName: imageClassName, isBackground: isBackground, video: video, hasVideoFallback: hasVideoFallback, fullscreen: fullscreen, qa: qaAttributes.image, onLoad: onImageLoad }));
18
+ result.push(React.createElement(Image, { key: "image", parallax: parallax, image: image, disableImageSliderForArrayInput: disableImageSliderForArrayInput, height: height, imageClassName: imageClassName, isBackground: isBackground, video: video, hasVideoFallback: hasVideoFallback, fullscreen: fullscreen, qa: qaAttributes.image, onLoad: onImageLoad }));
19
19
  }
20
20
  if (video) {
21
21
  const videoProps = {
@@ -56,6 +56,7 @@ export const Media = (props) => {
56
56
  dataLens,
57
57
  iframe,
58
58
  parallax,
59
+ disableImageSliderForArrayInput,
59
60
  height,
60
61
  imageClassName,
61
62
  isBackground,
@@ -287,6 +287,7 @@ export interface ContentItemProps {
287
287
  export interface ContentListProps {
288
288
  list: ContentItemProps[];
289
289
  size: ContentSize;
290
+ theme?: ContentTheme;
290
291
  }
291
292
  export interface ContentBlockProps {
292
293
  title?: TitleItemBaseProps | string;
@@ -323,10 +324,10 @@ export declare enum FormBlockDirection {
323
324
  Center = "center"
324
325
  }
325
326
  export interface FormBlockYandexData {
326
- yandex: YandexFormProps;
327
+ yandex: ThemeSupporting<YandexFormProps>;
327
328
  }
328
329
  export interface FormBlockHubspotData {
329
- hubspot: HubspotFormProps;
330
+ hubspot: ThemeSupporting<HubspotFormProps>;
330
331
  }
331
332
  export type FormBlockData = FormBlockYandexData | FormBlockHubspotData;
332
333
  export interface FormBlockProps {
@@ -334,7 +335,7 @@ export interface FormBlockProps {
334
335
  title?: string;
335
336
  textContent?: Omit<ContentBlockProps, 'centered' | 'colSizes' | 'size'>;
336
337
  direction?: FormBlockDirection;
337
- background?: BackgroundImageProps;
338
+ background?: ThemeSupporting<BackgroundImageProps>;
338
339
  }
339
340
  export type HeaderBlockModel = {
340
341
  type: BlockType.HeaderBlock;
@@ -191,6 +191,7 @@ export interface MediaComponentImageProps {
191
191
  video?: MediaVideoProps;
192
192
  parallax?: boolean;
193
193
  height?: number;
194
+ disableImageSliderForArrayInput?: boolean;
194
195
  }
195
196
  export interface MediaComponentDataLensProps {
196
197
  dataLens: DataLensProps;
@@ -1306,6 +1306,9 @@ export declare const cardSchemas: {
1306
1306
  optionName: string;
1307
1307
  })[];
1308
1308
  };
1309
+ disableImageSliderForArrayInput: {
1310
+ type: string;
1311
+ };
1309
1312
  video: {
1310
1313
  type: string;
1311
1314
  additionalProperties: boolean;
@@ -983,6 +983,9 @@ export declare const MediaProps: {
983
983
  optionName: string;
984
984
  })[];
985
985
  };
986
+ disableImageSliderForArrayInput: {
987
+ type: string;
988
+ };
986
989
  video: {
987
990
  type: string;
988
991
  additionalProperties: boolean;
@@ -509,6 +509,9 @@ export const MediaProps = {
509
509
  { type: 'array', items: ImageProps, optionName: 'list' },
510
510
  ],
511
511
  },
512
+ disableImageSliderForArrayInput: {
513
+ type: 'boolean',
514
+ },
512
515
  video: VideoProps,
513
516
  youtube: {
514
517
  type: 'string',
@@ -7,7 +7,7 @@ import Content from '../Content/Content';
7
7
  import './BackgroundCard.css';
8
8
  const b = block('background-card');
9
9
  const BackgroundCard = (props) => {
10
- const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, analyticsEvents, urlTitle, controlPosition = 'content', } = props;
10
+ const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, analyticsEvents, urlTitle, controlPosition = 'content', list, } = props;
11
11
  const titleId = useUniqId();
12
12
  const theme = useTheme();
13
13
  const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
@@ -16,7 +16,7 @@ const BackgroundCard = (props) => {
16
16
  return (React.createElement(CardBase, { className: b({ padding: paddingBottom, theme: cardTheme }), url: url, border: borderType, analyticsEvents: analyticsEvents, urlTitle: urlTitle },
17
17
  React.createElement(CardBase.Content, null,
18
18
  React.createElement(BackgroundImage, Object.assign({ className: b('image') }, getThemedValue(background, theme), { style: { backgroundColor } })),
19
- React.createElement(Content, { titleId: titleId, title: title, text: text, additionalInfo: additionalInfo, size: "s", theme: cardTheme, links: areControlsInFooter ? undefined : links, buttons: areControlsInFooter ? undefined : buttons, colSizes: { all: 12, md: 12 } })),
19
+ React.createElement(Content, { titleId: titleId, title: title, text: text, additionalInfo: additionalInfo, size: "s", theme: cardTheme, links: areControlsInFooter ? undefined : links, buttons: areControlsInFooter ? undefined : buttons, list: list, colSizes: { all: 12, md: 12 } })),
20
20
  areControlsInFooter && (links || buttons) && (React.createElement(CardBase.Footer, null,
21
21
  React.createElement(Links, { className: b('links'), size: "s", links: links, titleId: titleId }),
22
22
  React.createElement(Buttons, { className: b('buttons'), size: "s", buttons: buttons, titleId: titleId })))));
@@ -43,6 +43,9 @@ export declare const LayoutItem: {
43
43
  optionName: string;
44
44
  })[];
45
45
  };
46
+ disableImageSliderForArrayInput: {
47
+ type: string;
48
+ };
46
49
  video: {
47
50
  type: string;
48
51
  additionalProperties: boolean;
@@ -126,6 +126,9 @@ export declare const MediaCardBlock: {
126
126
  optionName: string;
127
127
  })[];
128
128
  };
129
+ disableImageSliderForArrayInput: {
130
+ type: string;
131
+ };
129
132
  video: {
130
133
  type: string;
131
134
  additionalProperties: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.7.2",
3
+ "version": "5.9.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -287,6 +287,7 @@ export interface ContentItemProps {
287
287
  export interface ContentListProps {
288
288
  list: ContentItemProps[];
289
289
  size: ContentSize;
290
+ theme?: ContentTheme;
290
291
  }
291
292
  export interface ContentBlockProps {
292
293
  title?: TitleItemBaseProps | string;
@@ -323,10 +324,10 @@ export declare enum FormBlockDirection {
323
324
  Center = "center"
324
325
  }
325
326
  export interface FormBlockYandexData {
326
- yandex: YandexFormProps;
327
+ yandex: ThemeSupporting<YandexFormProps>;
327
328
  }
328
329
  export interface FormBlockHubspotData {
329
- hubspot: HubspotFormProps;
330
+ hubspot: ThemeSupporting<HubspotFormProps>;
330
331
  }
331
332
  export type FormBlockData = FormBlockYandexData | FormBlockHubspotData;
332
333
  export interface FormBlockProps {
@@ -334,7 +335,7 @@ export interface FormBlockProps {
334
335
  title?: string;
335
336
  textContent?: Omit<ContentBlockProps, 'centered' | 'colSizes' | 'size'>;
336
337
  direction?: FormBlockDirection;
337
- background?: BackgroundImageProps;
338
+ background?: ThemeSupporting<BackgroundImageProps>;
338
339
  }
339
340
  export type HeaderBlockModel = {
340
341
  type: BlockType.HeaderBlock;
@@ -191,6 +191,7 @@ export interface MediaComponentImageProps {
191
191
  video?: MediaVideoProps;
192
192
  parallax?: boolean;
193
193
  height?: number;
194
+ disableImageSliderForArrayInput?: boolean;
194
195
  }
195
196
  export interface MediaComponentDataLensProps {
196
197
  dataLens: DataLensProps;