@gravity-ui/page-constructor 5.10.1 → 5.11.1
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.
- package/build/cjs/components/FullscreenImage/FullscreenImage.css +1 -1
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js +5 -2
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +1 -1
- package/build/cjs/editor/containers/Form/Form.css +5 -5
- package/build/esm/components/FullscreenImage/FullscreenImage.css +1 -1
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -1
- package/build/esm/components/YandexForm/YandexForm.js +5 -2
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +1 -1
- package/build/esm/editor/containers/Form/Form.css +5 -5
- package/package.json +1 -1
- package/widget/index.js +1 -1
|
@@ -19,7 +19,7 @@ unpredictable css rules order in build */
|
|
|
19
19
|
max-height: 70vh;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
}
|
|
22
|
-
.pc-fullscreen-image__modal .
|
|
22
|
+
.pc-fullscreen-image__modal .g-modal__content, .pc-fullscreen-image__modal-image {
|
|
23
23
|
border-radius: var(--pc-border-radius);
|
|
24
24
|
}
|
|
25
25
|
.pc-fullscreen-image__icon-wrapper {
|
|
@@ -29,7 +29,7 @@ unpredictable css rules order in build */
|
|
|
29
29
|
width: min(65vw, 1232px);
|
|
30
30
|
height: calc(min(65vw, 1232px) * 9 / 16);
|
|
31
31
|
}
|
|
32
|
-
.pc-full-screen-media__modal .
|
|
32
|
+
.pc-full-screen-media__modal .g-modal__content, .pc-full-screen-media__modal-image {
|
|
33
33
|
border-radius: var(--pc-border-radius);
|
|
34
34
|
}
|
|
35
35
|
.pc-full-screen-media__icon-wrapper {
|
|
@@ -72,7 +72,7 @@ const YandexForm = (props) => {
|
|
|
72
72
|
try {
|
|
73
73
|
const parsed = JSON.parse(data);
|
|
74
74
|
const height = parsed['iframe-height'];
|
|
75
|
-
const { message, name } = parsed;
|
|
75
|
+
const { message, name, redirectUrl } = parsed;
|
|
76
76
|
if (name !== `form${id}`) {
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
@@ -80,7 +80,10 @@ const YandexForm = (props) => {
|
|
|
80
80
|
iframeRef.current.height = `${height}px`;
|
|
81
81
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad();
|
|
82
82
|
}
|
|
83
|
-
if (message === 'sent') {
|
|
83
|
+
if (message === 'sent' || redirectUrl) {
|
|
84
|
+
// event with redirectUrl is comming when form with redirect is used
|
|
85
|
+
// otherwise, message: 'sent' is not comming on such sort of forms
|
|
86
|
+
// to catch this event and handle analytics redirectUrl is added to condition
|
|
84
87
|
handleSubmit();
|
|
85
88
|
}
|
|
86
89
|
}
|
|
@@ -17,7 +17,7 @@ unpredictable css rules order in build */
|
|
|
17
17
|
.pc-control-panel__radio-button {
|
|
18
18
|
margin-left: 12px;
|
|
19
19
|
}
|
|
20
|
-
.pc-control-panel__radio-button .
|
|
20
|
+
.pc-control-panel__radio-button .g-radio-button__option {
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
}
|
|
@@ -36,23 +36,23 @@ unpredictable css rules order in build */
|
|
|
36
36
|
min-width: var(--input-min-width);
|
|
37
37
|
min-height: var(--input-min-width);
|
|
38
38
|
}
|
|
39
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
39
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button,
|
|
40
40
|
.pc-editor-form .df-simple-vertical-accordeon__title {
|
|
41
41
|
font-size: var(--header-text-size);
|
|
42
42
|
line-height: var(--header-line-height);
|
|
43
43
|
}
|
|
44
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
44
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button {
|
|
45
45
|
--g-button-height: var(--button-height);
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
align-items: center;
|
|
49
49
|
}
|
|
50
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
50
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button .g-button__icon-inner > svg {
|
|
51
51
|
width: var(--icon-size);
|
|
52
52
|
height: var(--icon-size);
|
|
53
53
|
color: var(--g-color-text-hint);
|
|
54
54
|
}
|
|
55
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
55
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button .g-button__icon_side_right ~ .g-button__text {
|
|
56
56
|
margin-right: var(--icon-margin);
|
|
57
57
|
}
|
|
58
58
|
.pc-editor-form .df-simple-vertical-accordeon__body {
|
|
@@ -75,7 +75,7 @@ unpredictable css rules order in build */
|
|
|
75
75
|
padding-left: 12px;
|
|
76
76
|
}
|
|
77
77
|
.pc-editor-form .g-select,
|
|
78
|
-
.pc-editor-form .
|
|
78
|
+
.pc-editor-form .g-text-input {
|
|
79
79
|
min-width: var(--input-min-width);
|
|
80
80
|
width: 100%;
|
|
81
81
|
}
|
|
@@ -19,7 +19,7 @@ unpredictable css rules order in build */
|
|
|
19
19
|
max-height: 70vh;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
}
|
|
22
|
-
.pc-fullscreen-image__modal .
|
|
22
|
+
.pc-fullscreen-image__modal .g-modal__content, .pc-fullscreen-image__modal-image {
|
|
23
23
|
border-radius: var(--pc-border-radius);
|
|
24
24
|
}
|
|
25
25
|
.pc-fullscreen-image__icon-wrapper {
|
|
@@ -29,7 +29,7 @@ unpredictable css rules order in build */
|
|
|
29
29
|
width: min(65vw, 1232px);
|
|
30
30
|
height: calc(min(65vw, 1232px) * 9 / 16);
|
|
31
31
|
}
|
|
32
|
-
.pc-full-screen-media__modal .
|
|
32
|
+
.pc-full-screen-media__modal .g-modal__content, .pc-full-screen-media__modal-image {
|
|
33
33
|
border-radius: var(--pc-border-radius);
|
|
34
34
|
}
|
|
35
35
|
.pc-full-screen-media__icon-wrapper {
|
|
@@ -68,7 +68,7 @@ const YandexForm = (props) => {
|
|
|
68
68
|
try {
|
|
69
69
|
const parsed = JSON.parse(data);
|
|
70
70
|
const height = parsed['iframe-height'];
|
|
71
|
-
const { message, name } = parsed;
|
|
71
|
+
const { message, name, redirectUrl } = parsed;
|
|
72
72
|
if (name !== `form${id}`) {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
@@ -76,7 +76,10 @@ const YandexForm = (props) => {
|
|
|
76
76
|
iframeRef.current.height = `${height}px`;
|
|
77
77
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad();
|
|
78
78
|
}
|
|
79
|
-
if (message === 'sent') {
|
|
79
|
+
if (message === 'sent' || redirectUrl) {
|
|
80
|
+
// event with redirectUrl is comming when form with redirect is used
|
|
81
|
+
// otherwise, message: 'sent' is not comming on such sort of forms
|
|
82
|
+
// to catch this event and handle analytics redirectUrl is added to condition
|
|
80
83
|
handleSubmit();
|
|
81
84
|
}
|
|
82
85
|
}
|
|
@@ -17,7 +17,7 @@ unpredictable css rules order in build */
|
|
|
17
17
|
.pc-control-panel__radio-button {
|
|
18
18
|
margin-left: 12px;
|
|
19
19
|
}
|
|
20
|
-
.pc-control-panel__radio-button .
|
|
20
|
+
.pc-control-panel__radio-button .g-radio-button__option {
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
}
|
|
@@ -36,23 +36,23 @@ unpredictable css rules order in build */
|
|
|
36
36
|
min-width: var(--input-min-width);
|
|
37
37
|
min-height: var(--input-min-width);
|
|
38
38
|
}
|
|
39
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
39
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button,
|
|
40
40
|
.pc-editor-form .df-simple-vertical-accordeon__title {
|
|
41
41
|
font-size: var(--header-text-size);
|
|
42
42
|
line-height: var(--header-line-height);
|
|
43
43
|
}
|
|
44
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
44
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button {
|
|
45
45
|
--g-button-height: var(--button-height);
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
align-items: center;
|
|
49
49
|
}
|
|
50
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
50
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button .g-button__icon-inner > svg {
|
|
51
51
|
width: var(--icon-size);
|
|
52
52
|
height: var(--icon-size);
|
|
53
53
|
color: var(--g-color-text-hint);
|
|
54
54
|
}
|
|
55
|
-
.pc-editor-form .df-simple-vertical-accordeon__header .
|
|
55
|
+
.pc-editor-form .df-simple-vertical-accordeon__header .g-button .g-button__icon_side_right ~ .g-button__text {
|
|
56
56
|
margin-right: var(--icon-margin);
|
|
57
57
|
}
|
|
58
58
|
.pc-editor-form .df-simple-vertical-accordeon__body {
|
|
@@ -75,7 +75,7 @@ unpredictable css rules order in build */
|
|
|
75
75
|
padding-left: 12px;
|
|
76
76
|
}
|
|
77
77
|
.pc-editor-form .g-select,
|
|
78
|
-
.pc-editor-form .
|
|
78
|
+
.pc-editor-form .g-text-input {
|
|
79
79
|
min-width: var(--input-min-width);
|
|
80
80
|
width: 100%;
|
|
81
81
|
}
|