@gravity-ui/page-constructor 4.30.0 → 4.31.1-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 (126) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +9 -0
  2. package/build/cjs/blocks/CardLayout/schema.d.ts +12 -0
  3. package/build/cjs/blocks/ContentLayout/schema.d.ts +6 -0
  4. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +9 -0
  5. package/build/cjs/blocks/FilterBlock/schema.d.ts +12 -0
  6. package/build/cjs/blocks/Form/Form.css +136 -0
  7. package/build/cjs/blocks/Form/Form.d.ts +4 -0
  8. package/build/cjs/blocks/Form/Form.js +61 -0
  9. package/build/cjs/blocks/Form/HubspotInlineForm.d.ts +7 -0
  10. package/build/cjs/blocks/Form/HubspotInlineForm.js +14 -0
  11. package/build/cjs/blocks/Form/InnerForm/InnerForm.d.ts +9 -0
  12. package/build/cjs/blocks/Form/InnerForm/InnerForm.js +28 -0
  13. package/build/cjs/blocks/Form/schema.d.ts +202 -0
  14. package/build/cjs/blocks/Form/schema.js +44 -0
  15. package/build/cjs/blocks/Header/schema.d.ts +3 -0
  16. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  17. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  18. package/build/cjs/blocks/Info/schema.d.ts +6 -0
  19. package/build/cjs/blocks/Map/schema.d.ts +9 -0
  20. package/build/cjs/blocks/Media/schema.d.ts +18 -0
  21. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +6 -0
  22. package/build/cjs/blocks/Questions/schema.d.ts +6 -0
  23. package/build/cjs/blocks/Slider/schema.d.ts +6 -0
  24. package/build/cjs/blocks/Table/schema.d.ts +3 -0
  25. package/build/cjs/blocks/Tabs/schema.d.ts +12 -0
  26. package/build/cjs/blocks/index.d.ts +1 -0
  27. package/build/cjs/blocks/index.js +3 -1
  28. package/build/cjs/components/Button/Button.d.ts +1 -0
  29. package/build/cjs/components/Button/Button.js +2 -2
  30. package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -17
  31. package/build/cjs/components/YandexForm/YandexForm.js +6 -4
  32. package/build/cjs/components/YandexForm/schema.d.ts +16 -0
  33. package/build/cjs/components/YandexForm/schema.js +13 -0
  34. package/build/cjs/constructor-items.d.ts +1 -0
  35. package/build/cjs/constructor-items.js +1 -0
  36. package/build/cjs/editor/data/templates/form-block.json +20 -0
  37. package/build/cjs/models/constructor-items/blocks.d.ts +31 -4
  38. package/build/cjs/models/constructor-items/blocks.js +13 -1
  39. package/build/cjs/models/constructor-items/common.d.ts +17 -1
  40. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -0
  41. package/build/cjs/models/guards.d.ts +3 -1
  42. package/build/cjs/models/guards.js +9 -1
  43. package/build/cjs/schema/constants.d.ts +18 -0
  44. package/build/cjs/schema/constants.js +2 -1
  45. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  46. package/build/cjs/schema/validators/blocks.js +1 -0
  47. package/build/cjs/schema/validators/common.d.ts +21 -0
  48. package/build/cjs/schema/validators/common.js +11 -0
  49. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +6 -0
  50. package/build/cjs/sub-blocks/BackgroundCard/schema.js +2 -0
  51. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +6 -0
  52. package/build/cjs/sub-blocks/BasicCard/schema.js +2 -0
  53. package/build/cjs/sub-blocks/Content/schema.d.ts +6 -0
  54. package/build/cjs/sub-blocks/HubspotForm/schema.d.ts +22 -0
  55. package/build/cjs/sub-blocks/HubspotForm/schema.js +17 -0
  56. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +3 -0
  57. package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
  58. package/build/cjs/sub-blocks/Quote/schema.d.ts +3 -0
  59. package/build/cjs/sub-blocks/Quote/schema.js +2 -0
  60. package/build/esm/blocks/Banner/schema.d.ts +9 -0
  61. package/build/esm/blocks/CardLayout/schema.d.ts +12 -0
  62. package/build/esm/blocks/ContentLayout/schema.d.ts +6 -0
  63. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +9 -0
  64. package/build/esm/blocks/FilterBlock/schema.d.ts +12 -0
  65. package/build/esm/blocks/Form/Form.css +136 -0
  66. package/build/esm/blocks/Form/Form.d.ts +5 -0
  67. package/build/esm/blocks/Form/Form.js +59 -0
  68. package/build/esm/blocks/Form/HubspotInlineForm.d.ts +7 -0
  69. package/build/esm/blocks/Form/HubspotInlineForm.js +12 -0
  70. package/build/esm/blocks/Form/InnerForm/InnerForm.d.ts +9 -0
  71. package/build/esm/blocks/Form/InnerForm/InnerForm.js +26 -0
  72. package/build/esm/blocks/Form/schema.d.ts +202 -0
  73. package/build/esm/blocks/Form/schema.js +40 -0
  74. package/build/esm/blocks/Header/schema.d.ts +3 -0
  75. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  76. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  77. package/build/esm/blocks/Info/schema.d.ts +6 -0
  78. package/build/esm/blocks/Map/schema.d.ts +9 -0
  79. package/build/esm/blocks/Media/schema.d.ts +18 -0
  80. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +6 -0
  81. package/build/esm/blocks/Questions/schema.d.ts +6 -0
  82. package/build/esm/blocks/Slider/schema.d.ts +6 -0
  83. package/build/esm/blocks/Table/schema.d.ts +3 -0
  84. package/build/esm/blocks/Tabs/schema.d.ts +12 -0
  85. package/build/esm/blocks/index.d.ts +1 -0
  86. package/build/esm/blocks/index.js +1 -0
  87. package/build/esm/components/Button/Button.d.ts +1 -0
  88. package/build/esm/components/Button/Button.js +2 -2
  89. package/build/esm/components/YandexForm/YandexForm.d.ts +2 -17
  90. package/build/esm/components/YandexForm/YandexForm.js +5 -3
  91. package/build/esm/components/YandexForm/schema.d.ts +16 -0
  92. package/build/esm/components/YandexForm/schema.js +10 -0
  93. package/build/esm/constructor-items.d.ts +1 -0
  94. package/build/esm/constructor-items.js +2 -1
  95. package/build/esm/editor/data/templates/form-block.json +20 -0
  96. package/build/esm/models/constructor-items/blocks.d.ts +31 -4
  97. package/build/esm/models/constructor-items/blocks.js +12 -0
  98. package/build/esm/models/constructor-items/common.d.ts +17 -1
  99. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -0
  100. package/build/esm/models/guards.d.ts +3 -1
  101. package/build/esm/models/guards.js +7 -1
  102. package/build/esm/schema/constants.d.ts +18 -0
  103. package/build/esm/schema/constants.js +3 -2
  104. package/build/esm/schema/validators/blocks.d.ts +1 -0
  105. package/build/esm/schema/validators/blocks.js +1 -0
  106. package/build/esm/schema/validators/common.d.ts +21 -0
  107. package/build/esm/schema/validators/common.js +11 -0
  108. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +6 -0
  109. package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -0
  110. package/build/esm/sub-blocks/BasicCard/schema.d.ts +6 -0
  111. package/build/esm/sub-blocks/BasicCard/schema.js +2 -0
  112. package/build/esm/sub-blocks/Content/schema.d.ts +6 -0
  113. package/build/esm/sub-blocks/HubspotForm/schema.d.ts +22 -0
  114. package/build/esm/sub-blocks/HubspotForm/schema.js +14 -0
  115. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +3 -0
  116. package/build/esm/sub-blocks/Quote/Quote.js +2 -2
  117. package/build/esm/sub-blocks/Quote/schema.d.ts +3 -0
  118. package/build/esm/sub-blocks/Quote/schema.js +2 -0
  119. package/package.json +1 -1
  120. package/server/models/constructor-items/blocks.d.ts +31 -4
  121. package/server/models/constructor-items/blocks.js +13 -1
  122. package/server/models/constructor-items/common.d.ts +17 -1
  123. package/server/models/constructor-items/sub-blocks.d.ts +2 -0
  124. package/server/models/guards.d.ts +3 -1
  125. package/server/models/guards.js +9 -1
  126. package/widget/index.js +1 -1
@@ -0,0 +1,59 @@
1
+ import React, { useCallback, useContext, useMemo, useState } from 'react';
2
+ import { BackgroundImage, Title } from '../../components';
3
+ import { MobileContext } from '../../context/mobileContext';
4
+ import { Col, Grid, GridAlignItems, GridColumnSize, Row } from '../../grid';
5
+ import { FormBlockDataTypes, FormBlockDirection, isHubspotDataForm, isYandexDataForm, } from '../../models';
6
+ import { Content } from '../../sub-blocks';
7
+ import { block } from '../../utils';
8
+ import InnerForm from './InnerForm/InnerForm';
9
+ import './Form.css';
10
+ const b = block('form-block');
11
+ const colSizes = { [GridColumnSize.Lg]: 6, [GridColumnSize.All]: 12 };
12
+ const FormBlock = (props) => {
13
+ var _a;
14
+ const { formData, title, textContent, direction = FormBlockDirection.Center, background } = props;
15
+ const [contentLoaded, setContentLoaded] = useState(false);
16
+ const isMobile = useContext(MobileContext);
17
+ const hasImage = background && (background.src || background.desktop);
18
+ const paddingBottom = background && ((_a = background.style) === null || _a === void 0 ? void 0 : _a.backgroundColor) && !hasImage ? 'l' : 'm'; // bigger padding for case with background color and no image
19
+ const onContentLoad = useCallback(() => {
20
+ setContentLoaded(true);
21
+ }, []);
22
+ const formType = useMemo(() => {
23
+ if (isYandexDataForm(formData)) {
24
+ return FormBlockDataTypes.YANDEX;
25
+ }
26
+ if (isHubspotDataForm(formData)) {
27
+ return FormBlockDataTypes.HUBSPOT_INLINE;
28
+ }
29
+ return undefined;
30
+ }, [formData]);
31
+ if (!formData) {
32
+ return null;
33
+ }
34
+ return (React.createElement("div", { className: b({
35
+ 'with-background': Boolean(background),
36
+ 'form-type': formType,
37
+ }) },
38
+ background && (React.createElement(BackgroundImage, Object.assign({}, background, { className: b('media'), imageClassName: b('image') }))),
39
+ React.createElement(Grid, null,
40
+ React.createElement(Row, { alignItems: direction === FormBlockDirection.Center
41
+ ? GridAlignItems.Center
42
+ : GridAlignItems.Start, className: b('row', {
43
+ direction,
44
+ 'padding-bottom': paddingBottom,
45
+ }) },
46
+ React.createElement(Col, { sizes: colSizes, className: b('content-col') }, textContent && (React.createElement("div", { className: b('content-wrapper') },
47
+ React.createElement(Content, Object.assign({ theme: "default" }, textContent, { centered: direction === FormBlockDirection.Center, colSizes: { all: 12 }, className: b('content') }))))),
48
+ React.createElement(Col, { sizes: colSizes, className: b('form-col') },
49
+ React.createElement("div", { className: b('form-wrapper') },
50
+ React.createElement("div", { className: b('full-form', {
51
+ hidden: !contentLoaded,
52
+ }) },
53
+ title && (React.createElement(Title, { title: {
54
+ text: title,
55
+ textSize: 's',
56
+ }, className: b('title', { mobile: isMobile }), colSizes: { all: 12 } })),
57
+ React.createElement(InnerForm, { className: b('form'), formData: formData, onContentLoad: onContentLoad }))))))));
58
+ };
59
+ export default FormBlock;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { HubspotFormProps } from '../../models';
3
+ type Props = HubspotFormProps & {
4
+ onReady?: () => void;
5
+ };
6
+ declare const HubspotInlineForm: React.FC<Props>;
7
+ export default HubspotInlineForm;
@@ -0,0 +1,12 @@
1
+ import { __rest } from "tslib";
2
+ import React from 'react';
3
+ import useMount from '../../hooks/useMount';
4
+ import { HubspotForm } from '../../sub-blocks';
5
+ const HubspotInlineForm = (props) => {
6
+ const { onReady } = props, rest = __rest(props, ["onReady"]);
7
+ useMount(() => {
8
+ onReady === null || onReady === void 0 ? void 0 : onReady();
9
+ });
10
+ return React.createElement(HubspotForm, Object.assign({}, rest, { createDOMElement: true }));
11
+ };
12
+ export default HubspotInlineForm;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { FormBlockData } from '../../../models';
3
+ interface InnerFormProps {
4
+ formData: FormBlockData;
5
+ onContentLoad: () => void;
6
+ className?: string;
7
+ }
8
+ declare const InnerForm: React.FC<InnerFormProps>;
9
+ export default InnerForm;
@@ -0,0 +1,26 @@
1
+ import { __rest } from "tslib";
2
+ import React, { useEffect } from 'react';
3
+ import { YandexForm } from '../../../components';
4
+ import { isHubspotDataForm, isYandexDataForm } from '../../../models';
5
+ import { HubspotForm } from '../../../sub-blocks';
6
+ const InnerForm = (props) => {
7
+ const { formData, onContentLoad, className } = props;
8
+ useEffect(() => {
9
+ if (isHubspotDataForm(formData)) {
10
+ onContentLoad();
11
+ }
12
+ }, [onContentLoad, formData]);
13
+ if (isYandexDataForm(formData)) {
14
+ const _a = formData.yandex, { onLoad } = _a, rest = __rest(_a, ["onLoad"]);
15
+ return (React.createElement("div", { className: className },
16
+ React.createElement(YandexForm, Object.assign({}, rest, { onLoad: () => {
17
+ onContentLoad();
18
+ onLoad === null || onLoad === void 0 ? void 0 : onLoad();
19
+ } }))));
20
+ }
21
+ if (isHubspotDataForm(formData)) {
22
+ return React.createElement(HubspotForm, Object.assign({}, formData.hubspot));
23
+ }
24
+ return null;
25
+ };
26
+ export default InnerForm;
@@ -0,0 +1,202 @@
1
+ export declare const FormBlock: {
2
+ 'form-block': {
3
+ additionalProperties: boolean;
4
+ required: string[];
5
+ properties: {
6
+ title: {
7
+ type: string;
8
+ };
9
+ formData: {
10
+ oneOf: ({
11
+ type: string;
12
+ optionName: string;
13
+ properties: {
14
+ yandex: {
15
+ type: string;
16
+ required: string[];
17
+ properties: {
18
+ id: {
19
+ type: string;
20
+ };
21
+ containerId: {
22
+ type: string;
23
+ };
24
+ type: {};
25
+ when: {
26
+ type: string;
27
+ };
28
+ };
29
+ };
30
+ hubspot?: undefined;
31
+ };
32
+ } | {
33
+ type: string;
34
+ optionName: string;
35
+ properties: {
36
+ hubspot: {
37
+ type: string;
38
+ required: string[];
39
+ properties: {
40
+ region: {
41
+ type: string;
42
+ };
43
+ portalId: {
44
+ type: string;
45
+ };
46
+ formId: {
47
+ type: string;
48
+ };
49
+ formInstanceId: {
50
+ type: string;
51
+ };
52
+ type: {};
53
+ when: {
54
+ type: string;
55
+ };
56
+ };
57
+ };
58
+ yandex?: undefined;
59
+ };
60
+ })[];
61
+ };
62
+ textContent: {
63
+ additionalProperties: boolean;
64
+ properties: Partial<{
65
+ title: {
66
+ oneOf: ({
67
+ type: string;
68
+ contentType: string;
69
+ optionName: string;
70
+ } | {
71
+ optionName: string;
72
+ type: string;
73
+ additionalProperties: boolean;
74
+ required: string[];
75
+ properties: {
76
+ text: {
77
+ type: string;
78
+ contentType: string;
79
+ };
80
+ textSize: {
81
+ type: string;
82
+ enum: string[];
83
+ };
84
+ url: {
85
+ type: string;
86
+ };
87
+ urlTitle: {
88
+ type: string;
89
+ };
90
+ resetMargin: {
91
+ type: string;
92
+ };
93
+ };
94
+ contentType?: undefined;
95
+ })[];
96
+ };
97
+ text: {
98
+ type: string;
99
+ contentType: string;
100
+ inputType: string;
101
+ };
102
+ additionalInfo: {
103
+ type: string;
104
+ contentType: string;
105
+ };
106
+ size: {
107
+ type: string;
108
+ enum: string[];
109
+ };
110
+ links: {
111
+ type: string;
112
+ items: {
113
+ type: string;
114
+ properties: {
115
+ when: {
116
+ type: string;
117
+ };
118
+ };
119
+ };
120
+ };
121
+ buttons: {
122
+ type: string;
123
+ items: {
124
+ type: string;
125
+ properties: {
126
+ when: {
127
+ type: string;
128
+ };
129
+ };
130
+ };
131
+ };
132
+ theme: {
133
+ type: string;
134
+ enum: string[];
135
+ };
136
+ list: {
137
+ type: string;
138
+ items: {
139
+ type: string;
140
+ properties: {
141
+ when: {
142
+ type: string;
143
+ };
144
+ };
145
+ };
146
+ };
147
+ }>;
148
+ };
149
+ direction: {
150
+ enum: string[];
151
+ };
152
+ image: {
153
+ oneOf: ({
154
+ type: string;
155
+ properties: {
156
+ when: {
157
+ type: string;
158
+ };
159
+ };
160
+ } | {
161
+ type: string;
162
+ pattern: string;
163
+ optionName: string;
164
+ })[];
165
+ };
166
+ backgroundColor: {
167
+ type: string;
168
+ };
169
+ anchor: {
170
+ type: string;
171
+ additionalProperties: boolean;
172
+ required: string[];
173
+ properties: {
174
+ text: {
175
+ type: string;
176
+ contentType: string;
177
+ };
178
+ url: {
179
+ type: string;
180
+ };
181
+ urlTitle: {
182
+ type: string;
183
+ };
184
+ };
185
+ };
186
+ visible: {
187
+ type: string;
188
+ enum: string[];
189
+ };
190
+ resetPaddings: {
191
+ type: string;
192
+ };
193
+ context: {
194
+ type: string;
195
+ };
196
+ type: {};
197
+ when: {
198
+ type: string;
199
+ };
200
+ };
201
+ };
202
+ };
@@ -0,0 +1,40 @@
1
+ import omit from 'lodash/omit';
2
+ import { ImageProps } from '../../components/Image/schema';
3
+ import { YandexFormProps } from '../../components/YandexForm/schema';
4
+ import { BlockBaseProps } from '../../schema/validators/common';
5
+ import { ContentBase } from '../../sub-blocks/Content/schema';
6
+ import { HubspotFormProps } from '../../sub-blocks/HubspotForm/schema';
7
+ const FormBlockContentProps = omit(ContentBase, ['size', 'centered', 'colSizes']);
8
+ export const FormBlock = {
9
+ 'form-block': {
10
+ additionalProperties: false,
11
+ required: ['formData'],
12
+ properties: Object.assign(Object.assign({}, BlockBaseProps), { title: {
13
+ type: 'string',
14
+ }, formData: {
15
+ oneOf: [
16
+ {
17
+ type: 'object',
18
+ optionName: 'yandex',
19
+ properties: {
20
+ yandex: YandexFormProps,
21
+ },
22
+ },
23
+ {
24
+ type: 'object',
25
+ optionName: 'hubspot-inline',
26
+ properties: {
27
+ hubspot: HubspotFormProps,
28
+ },
29
+ },
30
+ ],
31
+ }, textContent: {
32
+ additionalProperties: false,
33
+ properties: FormBlockContentProps,
34
+ }, direction: {
35
+ enum: ['content-form', 'form-content', 'center'],
36
+ }, image: ImageProps, backgroundColor: {
37
+ type: 'string',
38
+ } }),
39
+ },
40
+ };
@@ -1228,6 +1228,9 @@ export declare const HeaderBlock: {
1228
1228
  url: {
1229
1229
  type: string;
1230
1230
  };
1231
+ urlTitle: {
1232
+ type: string;
1233
+ };
1231
1234
  };
1232
1235
  };
1233
1236
  visible: {
@@ -547,6 +547,9 @@ export declare const HeaderSliderBlock: {
547
547
  url: {
548
548
  type: string;
549
549
  };
550
+ urlTitle: {
551
+ type: string;
552
+ };
550
553
  };
551
554
  };
552
555
  visible: {
@@ -127,6 +127,9 @@ export declare const IconsProps: {
127
127
  url: {
128
128
  type: string;
129
129
  };
130
+ urlTitle: {
131
+ type: string;
132
+ };
130
133
  };
131
134
  };
132
135
  visible: {
@@ -275,6 +278,9 @@ export declare const IconsBlock: {
275
278
  url: {
276
279
  type: string;
277
280
  };
281
+ urlTitle: {
282
+ type: string;
283
+ };
278
284
  };
279
285
  };
280
286
  visible: {
@@ -75,6 +75,9 @@ export declare const InfoBlock: {
75
75
  url: {
76
76
  type: string;
77
77
  };
78
+ urlTitle: {
79
+ type: string;
80
+ };
78
81
  resetMargin: {
79
82
  type: string;
80
83
  };
@@ -159,6 +162,9 @@ export declare const InfoBlock: {
159
162
  url: {
160
163
  type: string;
161
164
  };
165
+ urlTitle: {
166
+ type: string;
167
+ };
162
168
  resetMargin: {
163
169
  type: string;
164
170
  };
@@ -141,6 +141,9 @@ export declare const MapBlock: {
141
141
  url: {
142
142
  type: string;
143
143
  };
144
+ urlTitle: {
145
+ type: string;
146
+ };
144
147
  primary: {
145
148
  type: string;
146
149
  };
@@ -389,6 +392,9 @@ export declare const MapBlock: {
389
392
  url: {
390
393
  type: string;
391
394
  };
395
+ urlTitle: {
396
+ type: string;
397
+ };
392
398
  resetMargin: {
393
399
  type: string;
394
400
  };
@@ -452,6 +458,9 @@ export declare const MapBlock: {
452
458
  url: {
453
459
  type: string;
454
460
  };
461
+ urlTitle: {
462
+ type: string;
463
+ };
455
464
  };
456
465
  };
457
466
  visible: {
@@ -280,6 +280,9 @@ export declare const MediaBlockBaseProps: {
280
280
  url: {
281
281
  type: string;
282
282
  };
283
+ urlTitle: {
284
+ type: string;
285
+ };
283
286
  primary: {
284
287
  type: string;
285
288
  };
@@ -528,6 +531,9 @@ export declare const MediaBlockBaseProps: {
528
531
  url: {
529
532
  type: string;
530
533
  };
534
+ urlTitle: {
535
+ type: string;
536
+ };
531
537
  resetMargin: {
532
538
  type: string;
533
539
  };
@@ -591,6 +597,9 @@ export declare const MediaBlockBaseProps: {
591
597
  url: {
592
598
  type: string;
593
599
  };
600
+ urlTitle: {
601
+ type: string;
602
+ };
594
603
  };
595
604
  };
596
605
  visible: {
@@ -904,6 +913,9 @@ export declare const MediaBlock: {
904
913
  url: {
905
914
  type: string;
906
915
  };
916
+ urlTitle: {
917
+ type: string;
918
+ };
907
919
  primary: {
908
920
  type: string;
909
921
  };
@@ -1152,6 +1164,9 @@ export declare const MediaBlock: {
1152
1164
  url: {
1153
1165
  type: string;
1154
1166
  };
1167
+ urlTitle: {
1168
+ type: string;
1169
+ };
1155
1170
  resetMargin: {
1156
1171
  type: string;
1157
1172
  };
@@ -1215,6 +1230,9 @@ export declare const MediaBlock: {
1215
1230
  url: {
1216
1231
  type: string;
1217
1232
  };
1233
+ urlTitle: {
1234
+ type: string;
1235
+ };
1218
1236
  };
1219
1237
  };
1220
1238
  visible: {
@@ -305,6 +305,9 @@ export declare const PromoFeaturesBlock: {
305
305
  url: {
306
306
  type: string;
307
307
  };
308
+ urlTitle: {
309
+ type: string;
310
+ };
308
311
  resetMargin: {
309
312
  type: string;
310
313
  };
@@ -331,6 +334,9 @@ export declare const PromoFeaturesBlock: {
331
334
  url: {
332
335
  type: string;
333
336
  };
337
+ urlTitle: {
338
+ type: string;
339
+ };
334
340
  };
335
341
  };
336
342
  visible: {
@@ -36,6 +36,9 @@ export declare const QuestionsBlock: {
36
36
  url: {
37
37
  type: string;
38
38
  };
39
+ urlTitle: {
40
+ type: string;
41
+ };
39
42
  resetMargin: {
40
43
  type: string;
41
44
  };
@@ -97,6 +100,9 @@ export declare const QuestionsBlock: {
97
100
  url: {
98
101
  type: string;
99
102
  };
103
+ urlTitle: {
104
+ type: string;
105
+ };
100
106
  };
101
107
  };
102
108
  visible: {
@@ -100,6 +100,9 @@ export declare const SliderBlock: {
100
100
  url: {
101
101
  type: string;
102
102
  };
103
+ urlTitle: {
104
+ type: string;
105
+ };
103
106
  resetMargin: {
104
107
  type: string;
105
108
  };
@@ -197,6 +200,9 @@ export declare const SliderBlock: {
197
200
  url: {
198
201
  type: string;
199
202
  };
203
+ urlTitle: {
204
+ type: string;
205
+ };
200
206
  };
201
207
  };
202
208
  visible: {
@@ -66,6 +66,9 @@ export declare const TableBlock: {
66
66
  url: {
67
67
  type: string;
68
68
  };
69
+ urlTitle: {
70
+ type: string;
71
+ };
69
72
  };
70
73
  };
71
74
  visible: {
@@ -279,6 +279,9 @@ export declare const tabsItem: {
279
279
  url: {
280
280
  type: string;
281
281
  };
282
+ urlTitle: {
283
+ type: string;
284
+ };
282
285
  arrow: {
283
286
  type: string;
284
287
  };
@@ -427,6 +430,9 @@ export declare const tabsItem: {
427
430
  url: {
428
431
  type: string;
429
432
  };
433
+ urlTitle: {
434
+ type: string;
435
+ };
430
436
  resetMargin: {
431
437
  type: string;
432
438
  };
@@ -535,6 +541,9 @@ export declare const TabsBlock: {
535
541
  url: {
536
542
  type: string;
537
543
  };
544
+ urlTitle: {
545
+ type: string;
546
+ };
538
547
  resetMargin: {
539
548
  type: string;
540
549
  };
@@ -558,6 +567,9 @@ export declare const TabsBlock: {
558
567
  url: {
559
568
  type: string;
560
569
  };
570
+ urlTitle: {
571
+ type: string;
572
+ };
561
573
  };
562
574
  };
563
575
  visible: {
@@ -16,3 +16,4 @@ export { default as CardLayoutBlock } from './CardLayout/CardLayout';
16
16
  export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
17
17
  export { default as ShareBlock } from './Share/Share';
18
18
  export { default as FilterBlock } from './FilterBlock/FilterBlock';
19
+ export { default as FormBlock } from './Form/Form';
@@ -16,3 +16,4 @@ export { default as CardLayoutBlock } from './CardLayout/CardLayout';
16
16
  export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
17
17
  export { default as ShareBlock } from './Share/Share';
18
18
  export { default as FilterBlock } from './FilterBlock/FilterBlock';
19
+ export { default as FormBlock } from './Form/Form';
@@ -4,6 +4,7 @@ import './Button.css';
4
4
  export interface ButtonProps extends Omit<ButtonParams, 'url'>, QAProps {
5
5
  className?: string;
6
6
  url?: string;
7
+ urlTitle?: string;
7
8
  onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
8
9
  }
9
10
  declare const Button: (props: ButtonProps) => JSX.Element;
@@ -15,7 +15,7 @@ const b = block('button-block');
15
15
  const Button = (props) => {
16
16
  const handleMetrika = useMetrika();
17
17
  const { tld } = useContext(LocaleContext);
18
- const { className, metrikaGoals, pixelEvents, analyticsEvents, size = 'l', theme = 'normal', url, img, onClick: onClickOrigin, text, width } = props, rest = __rest(props, ["className", "metrikaGoals", "pixelEvents", "analyticsEvents", "size", "theme", "url", "img", "onClick", "text", "width"]);
18
+ const { className, metrikaGoals, pixelEvents, analyticsEvents, size = 'l', theme = 'normal', url, urlTitle, img, onClick: onClickOrigin, text, width } = props, rest = __rest(props, ["className", "metrikaGoals", "pixelEvents", "analyticsEvents", "size", "theme", "url", "urlTitle", "img", "onClick", "text", "width"]);
19
19
  const defaultImgPosition = 'left';
20
20
  const handleAnalytics = useAnalytics(DefaultEventNames.Button, url);
21
21
  const onClick = useCallback((e) => {
@@ -44,7 +44,7 @@ const Button = (props) => {
44
44
  image = undefined;
45
45
  }
46
46
  const buttonTheme = theme === 'scale' ? 'accent' : theme;
47
- return (React.createElement(CommonButton, Object.assign({ className: buttonClass, view: toCommonView(buttonTheme), size: toCommonSize(size), href: url ? setUrlTld(url, tld) : undefined, width: width }, buttonProps),
47
+ return (React.createElement(CommonButton, Object.assign({ className: buttonClass, view: toCommonView(buttonTheme), size: toCommonSize(size), href: url ? setUrlTld(url, tld) : undefined, title: urlTitle, width: width }, buttonProps),
48
48
  icon && buttonImg.position === 'left' ? icon : null,
49
49
  React.createElement("span", { className: b('content') },
50
50
  image && buttonImg.position === 'left' ? image : null,