@gravity-ui/page-constructor 5.28.5 → 5.28.7
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/Questions/Questions.js +1 -1
- package/build/cjs/blocks/Questions/models.d.ts +1 -0
- package/build/cjs/blocks/Questions/models.js +1 -0
- package/build/cjs/components/ReactPlayer/ReactPlayer.css +3 -0
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +1 -0
- package/build/esm/blocks/Questions/Questions.js +1 -1
- package/build/esm/blocks/Questions/models.d.ts +1 -0
- package/build/esm/blocks/Questions/models.js +1 -0
- package/build/esm/components/ReactPlayer/ReactPlayer.css +3 -0
- package/build/esm/components/ReactPlayer/ReactPlayer.js +1 -0
- package/package.json +1 -1
- package/widget/index.js +1 -1
|
@@ -21,7 +21,7 @@ const QuestionsBlock = (props) => {
|
|
|
21
21
|
}
|
|
22
22
|
setOpened(newState);
|
|
23
23
|
};
|
|
24
|
-
return (react_1.default.createElement("div", { className: b(), itemScope: true, itemType: models_1.FaqMicrodataValues.PageType },
|
|
24
|
+
return (react_1.default.createElement("div", { className: b(), itemScope: true, itemType: models_1.FaqMicrodataValues.PageType, itemID: models_1.FaqMicrodataValues.PageId },
|
|
25
25
|
react_1.default.createElement(grid_1.Row, null,
|
|
26
26
|
react_1.default.createElement(grid_1.Col, { sizes: { all: 12, md: 4 } },
|
|
27
27
|
react_1.default.createElement("div", { className: b('title') },
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FaqMicrodataValues = void 0;
|
|
4
4
|
exports.FaqMicrodataValues = {
|
|
5
5
|
PageType: 'https://schema.org/FAQPage',
|
|
6
|
+
PageId: '/faq',
|
|
6
7
|
QuestionType: 'https://schema.org/Question',
|
|
7
8
|
QuestionProp: 'mainEntity',
|
|
8
9
|
QuestionNameProp: 'name',
|
|
@@ -70,6 +70,9 @@ unpredictable css rules order in build */
|
|
|
70
70
|
.pc-ReactPlayer_contain video {
|
|
71
71
|
object-fit: contain;
|
|
72
72
|
}
|
|
73
|
+
.pc-ReactPlayer_auto-ratio video {
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
}
|
|
73
76
|
@media only screen and (max-width: 577px) {
|
|
74
77
|
.pc-ReactPlayer__button_text {
|
|
75
78
|
font-size: 20px;
|
|
@@ -235,6 +235,7 @@ exports.ReactPlayerBlock = react_1.default.forwardRef((props, originRef) => {
|
|
|
235
235
|
wrapper: !currentHeight,
|
|
236
236
|
controls,
|
|
237
237
|
contain,
|
|
238
|
+
'auto-ratio': autoRatio,
|
|
238
239
|
}, className), ref: ref, onClick: handleClick, onMouseEnter: onFocusIn, onMouseLeave: onFocusOut, onFocus: onFocusIn, onBlur: onFocusOut }, isMounted ? (react_1.default.createElement(react_1.Fragment, null,
|
|
239
240
|
react_1.default.createElement(react_player_1.default, { className: b('player'), url: videoSrc, muted: muted, controls: controls === models_1.MediaVideoControlsType.Default, height: currentHeight || '100%', width: width || '100%', light: previewImgUrl, playing: isPlaying, playIcon: playIcon, progressInterval: FPS, onClickPreview: handleClickPreview, onStart: onStart, onReady: onReady, onPlay: onPlay, onPause: autoPlay && customControlsType !== models_1.CustomControlsType.WithMuteButton
|
|
240
241
|
? undefined
|
|
@@ -19,7 +19,7 @@ const QuestionsBlock = (props) => {
|
|
|
19
19
|
}
|
|
20
20
|
setOpened(newState);
|
|
21
21
|
};
|
|
22
|
-
return (React.createElement("div", { className: b(), itemScope: true, itemType: FaqMicrodataValues.PageType },
|
|
22
|
+
return (React.createElement("div", { className: b(), itemScope: true, itemType: FaqMicrodataValues.PageType, itemID: FaqMicrodataValues.PageId },
|
|
23
23
|
React.createElement(Row, null,
|
|
24
24
|
React.createElement(Col, { sizes: { all: 12, md: 4 } },
|
|
25
25
|
React.createElement("div", { className: b('title') },
|
|
@@ -70,6 +70,9 @@ unpredictable css rules order in build */
|
|
|
70
70
|
.pc-ReactPlayer_contain video {
|
|
71
71
|
object-fit: contain;
|
|
72
72
|
}
|
|
73
|
+
.pc-ReactPlayer_auto-ratio video {
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
}
|
|
73
76
|
@media only screen and (max-width: 577px) {
|
|
74
77
|
.pc-ReactPlayer__button_text {
|
|
75
78
|
font-size: 20px;
|
|
@@ -232,6 +232,7 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
|
|
|
232
232
|
wrapper: !currentHeight,
|
|
233
233
|
controls,
|
|
234
234
|
contain,
|
|
235
|
+
'auto-ratio': autoRatio,
|
|
235
236
|
}, className), ref: ref, onClick: handleClick, onMouseEnter: onFocusIn, onMouseLeave: onFocusOut, onFocus: onFocusIn, onBlur: onFocusOut }, isMounted ? (React.createElement(Fragment, null,
|
|
236
237
|
React.createElement(ReactPlayer, { className: b('player'), url: videoSrc, muted: muted, controls: controls === MediaVideoControlsType.Default, height: currentHeight || '100%', width: width || '100%', light: previewImgUrl, playing: isPlaying, playIcon: playIcon, progressInterval: FPS, onClickPreview: handleClickPreview, onStart: onStart, onReady: onReady, onPlay: onPlay, onPause: autoPlay && customControlsType !== CustomControlsType.WithMuteButton
|
|
237
238
|
? undefined
|