@gravity-ui/page-constructor 4.5.1 → 4.5.2
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/blocks/Icons/Icons.js +2 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +1 -1
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js +2 -1
- package/build/esm/blocks/Icons/Icons.js +2 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.js +2 -1
- package/package.json +1 -1
- package/widget/index.js +1 -1
|
@@ -15,7 +15,8 @@ const Icons = ({ title, size = 's', items }) => {
|
|
|
15
15
|
title && react_1.default.createElement(components_1.Title, { className: b('header'), title: title, colSizes: { all: 12 } }),
|
|
16
16
|
items.map((item) => {
|
|
17
17
|
const itemContent = getItemContent(item);
|
|
18
|
-
|
|
18
|
+
const { url, text } = item;
|
|
19
|
+
return url ? (react_1.default.createElement("a", Object.assign({ className: b('item'), key: url, href: url, "aria-label": text, title: text }, (0, utils_1.getLinkProps)(url, hostname)), itemContent)) : (react_1.default.createElement("div", { className: b('item'), key: url }, itemContent));
|
|
19
20
|
})));
|
|
20
21
|
};
|
|
21
22
|
exports.default = Icons;
|
|
@@ -95,7 +95,7 @@ const VideoBlock = (props) => {
|
|
|
95
95
|
}
|
|
96
96
|
return (react_1.default.createElement("div", { className: b(null, className), ref: ref, style: { height: currentHeight } }, previewImg && !hidePreview && !fullscreen && (react_1.default.createElement("div", { className: b('preview'), onClick: onPreviewClick },
|
|
97
97
|
react_1.default.createElement(Image_1.default, { src: previewImg, className: b('image'), containerClassName: b('image-wrapper') }),
|
|
98
|
-
playButton || (react_1.default.createElement("button", { className: b('button') },
|
|
98
|
+
playButton || (react_1.default.createElement("button", { title: "Play", className: b('button') },
|
|
99
99
|
react_1.default.createElement(uikit_1.Icon, { className: b('icon'), data: icons_1.PlayVideo, size: 24 })))))));
|
|
100
100
|
};
|
|
101
101
|
exports.default = VideoBlock;
|
package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js
CHANGED
|
@@ -24,7 +24,7 @@ const NavigationLink = (props) => {
|
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
return (react_1.default.createElement(components_1.RouterLink, { href: url, passHref: true },
|
|
27
|
-
react_1.default.createElement("a", Object.assign({}, rest, { className: classes }), content)));
|
|
27
|
+
react_1.default.createElement("a", Object.assign({ title: text }, rest, { className: classes }), content)));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
exports.NavigationLink = NavigationLink;
|
|
@@ -8,7 +8,8 @@ const utils_2 = require("../../../utils");
|
|
|
8
8
|
const b = (0, utils_2.block)('social-icon');
|
|
9
9
|
const SocialIcon = ({ icon, url, className }) => {
|
|
10
10
|
const iconData = (0, utils_1.getMediaImage)(icon);
|
|
11
|
-
|
|
11
|
+
const { alt } = iconData;
|
|
12
|
+
return (react_1.default.createElement("a", { href: url, "aria-label": alt, title: alt, target: "_blank", rel: "noopener noreferrer", className: b(null, className) },
|
|
12
13
|
react_1.default.createElement(components_1.Image, Object.assign({ className: b('icon') }, iconData))));
|
|
13
14
|
};
|
|
14
15
|
exports.default = SocialIcon;
|
|
@@ -13,7 +13,8 @@ const Icons = ({ title, size = 's', items }) => {
|
|
|
13
13
|
title && React.createElement(Title, { className: b('header'), title: title, colSizes: { all: 12 } }),
|
|
14
14
|
items.map((item) => {
|
|
15
15
|
const itemContent = getItemContent(item);
|
|
16
|
-
|
|
16
|
+
const { url, text } = item;
|
|
17
|
+
return url ? (React.createElement("a", Object.assign({ className: b('item'), key: url, href: url, "aria-label": text, title: text }, getLinkProps(url, hostname)), itemContent)) : (React.createElement("div", { className: b('item'), key: url }, itemContent));
|
|
17
18
|
})));
|
|
18
19
|
};
|
|
19
20
|
export default Icons;
|
|
@@ -91,7 +91,7 @@ const VideoBlock = (props) => {
|
|
|
91
91
|
}
|
|
92
92
|
return (React.createElement("div", { className: b(null, className), ref: ref, style: { height: currentHeight } }, previewImg && !hidePreview && !fullscreen && (React.createElement("div", { className: b('preview'), onClick: onPreviewClick },
|
|
93
93
|
React.createElement(Image, { src: previewImg, className: b('image'), containerClassName: b('image-wrapper') }),
|
|
94
|
-
playButton || (React.createElement("button", { className: b('button') },
|
|
94
|
+
playButton || (React.createElement("button", { title: "Play", className: b('button') },
|
|
95
95
|
React.createElement(Icon, { className: b('icon'), data: PlayVideo, size: 24 })))))));
|
|
96
96
|
};
|
|
97
97
|
export default VideoBlock;
|
package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js
CHANGED
|
@@ -22,6 +22,6 @@ export const NavigationLink = (props) => {
|
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
return (React.createElement(RouterLink, { href: url, passHref: true },
|
|
25
|
-
React.createElement("a", Object.assign({}, rest, { className: classes }), content)));
|
|
25
|
+
React.createElement("a", Object.assign({ title: text }, rest, { className: classes }), content)));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -6,7 +6,8 @@ import './SocialIcon.css';
|
|
|
6
6
|
const b = block('social-icon');
|
|
7
7
|
const SocialIcon = ({ icon, url, className }) => {
|
|
8
8
|
const iconData = getMediaImage(icon);
|
|
9
|
-
|
|
9
|
+
const { alt } = iconData;
|
|
10
|
+
return (React.createElement("a", { href: url, "aria-label": alt, title: alt, target: "_blank", rel: "noopener noreferrer", className: b(null, className) },
|
|
10
11
|
React.createElement(Image, Object.assign({ className: b('icon') }, iconData))));
|
|
11
12
|
};
|
|
12
13
|
export default SocialIcon;
|