@gravity-ui/page-constructor 5.35.0 → 5.36.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.
|
@@ -36,7 +36,7 @@ const HeaderBlock = (props) => {
|
|
|
36
36
|
const backgroundThemed = background && (0, utils_2.getThemedValue)(background, theme);
|
|
37
37
|
const imageThemed = image && (0, utils_2.getThemedValue)(image, theme);
|
|
38
38
|
const videoThemed = video && (0, utils_2.getThemedValue)(video, theme);
|
|
39
|
-
const mediaWithMicrodata = (0, microdata_1.mergeVideoMicrodata)(videoThemed, {
|
|
39
|
+
const mediaWithMicrodata = (0, microdata_1.mergeVideoMicrodata)({ video: videoThemed, image: imageThemed }, {
|
|
40
40
|
name: title,
|
|
41
41
|
description,
|
|
42
42
|
});
|
|
@@ -75,7 +75,7 @@ const HeaderBlock = (props) => {
|
|
|
75
75
|
buttons && (react_1.default.createElement("div", { className: b('buttons'), "data-qa": "header-buttons" }, buttons.map((button, index) => (react_1.default.createElement(components_1.RouterLink, { href: button.url, key: index },
|
|
76
76
|
react_1.default.createElement(components_1.Button, Object.assign({ key: index, className: b('button'), size: "xl", extraProps: Object.assign({ 'aria-describedby': titleId }, button.extraProps) }, button))))))),
|
|
77
77
|
children))),
|
|
78
|
-
hasRightSideImage && (react_1.default.createElement(components_1.Media, Object.assign({ className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image') }, mediaWithMicrodata
|
|
78
|
+
hasRightSideImage && (react_1.default.createElement(components_1.Media, Object.assign({ className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image') }, mediaWithMicrodata))))))));
|
|
79
79
|
};
|
|
80
80
|
exports.HeaderBlock = HeaderBlock;
|
|
81
81
|
exports.default = exports.HeaderBlock;
|
|
@@ -12,7 +12,7 @@ const ImageBase = (_a) => {
|
|
|
12
12
|
// It is still not supported. However it's nice to have ability to manage
|
|
13
13
|
// this prop is good to have to improve Core Web Vitals.
|
|
14
14
|
// So, here is a workaround to assign the attr.
|
|
15
|
-
react_1.default.createElement("img", Object.assign({}, {
|
|
15
|
+
react_1.default.createElement("img", Object.assign({}, { fetchPriority: fetchPriority }, { alt: alt }, props)));
|
|
16
16
|
};
|
|
17
17
|
exports.ImageBase = ImageBase;
|
|
18
18
|
exports.default = exports.ImageBase;
|
|
@@ -33,7 +33,7 @@ export const HeaderBlock = (props) => {
|
|
|
33
33
|
const backgroundThemed = background && getThemedValue(background, theme);
|
|
34
34
|
const imageThemed = image && getThemedValue(image, theme);
|
|
35
35
|
const videoThemed = video && getThemedValue(video, theme);
|
|
36
|
-
const mediaWithMicrodata = mergeVideoMicrodata(videoThemed, {
|
|
36
|
+
const mediaWithMicrodata = mergeVideoMicrodata({ video: videoThemed, image: imageThemed }, {
|
|
37
37
|
name: title,
|
|
38
38
|
description,
|
|
39
39
|
});
|
|
@@ -72,6 +72,6 @@ export const HeaderBlock = (props) => {
|
|
|
72
72
|
buttons && (React.createElement("div", { className: b('buttons'), "data-qa": "header-buttons" }, buttons.map((button, index) => (React.createElement(RouterLink, { href: button.url, key: index },
|
|
73
73
|
React.createElement(Button, Object.assign({ key: index, className: b('button'), size: "xl", extraProps: Object.assign({ 'aria-describedby': titleId }, button.extraProps) }, button))))))),
|
|
74
74
|
children))),
|
|
75
|
-
hasRightSideImage && (React.createElement(Media, Object.assign({ className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image') }, mediaWithMicrodata
|
|
75
|
+
hasRightSideImage && (React.createElement(Media, Object.assign({ className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image') }, mediaWithMicrodata))))))));
|
|
76
76
|
};
|
|
77
77
|
export default HeaderBlock;
|
|
@@ -9,6 +9,6 @@ export const ImageBase = (_a) => {
|
|
|
9
9
|
// It is still not supported. However it's nice to have ability to manage
|
|
10
10
|
// this prop is good to have to improve Core Web Vitals.
|
|
11
11
|
// So, here is a workaround to assign the attr.
|
|
12
|
-
React.createElement("img", Object.assign({}, {
|
|
12
|
+
React.createElement("img", Object.assign({}, { fetchPriority: fetchPriority }, { alt: alt }, props)));
|
|
13
13
|
};
|
|
14
14
|
export default ImageBase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/page-constructor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.36.0",
|
|
4
4
|
"description": "Gravity UI Page Constructor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"@diplodoc/transform": "^4.10.4",
|
|
120
120
|
"@gravity-ui/uikit": "^6.0.0",
|
|
121
|
-
"react": "^16.
|
|
121
|
+
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@babel/core": "^7.22.8",
|