@gravity-ui/page-constructor 5.23.0 → 5.23.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.
@@ -56,7 +56,7 @@ const VideoBlock = (props) => {
56
56
  const fullId = (0, react_1.useMemo)(() => id || (0, uuid_1.v4)(), [id]);
57
57
  const [isPlaying, setIsPlaying] = (0, react_1.useState)(!previewImg);
58
58
  const iframeSrc = src && isPlaying
59
- ? `${src}?${(0, utils_1.getPageSearchParams)(Object.assign(Object.assign({}, (attributes || {})), (autoplay ? exports.AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES)))}`
59
+ ? `${src}?${(0, utils_1.getPageSearchParams)(Object.assign(Object.assign({}, (attributes || {})), (previewImg || autoplay ? exports.AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES)))}`
60
60
  : undefined;
61
61
  const onPreviewClick = (0, react_1.useCallback)(() => {
62
62
  handleAnalytics(analyticsEvents);
@@ -52,7 +52,7 @@ const VideoBlock = (props) => {
52
52
  const fullId = useMemo(() => id || uuidv4(), [id]);
53
53
  const [isPlaying, setIsPlaying] = useState(!previewImg);
54
54
  const iframeSrc = src && isPlaying
55
- ? `${src}?${getPageSearchParams(Object.assign(Object.assign({}, (attributes || {})), (autoplay ? AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES)))}`
55
+ ? `${src}?${getPageSearchParams(Object.assign(Object.assign({}, (attributes || {})), (previewImg || autoplay ? AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES)))}`
56
56
  : undefined;
57
57
  const onPreviewClick = useCallback(() => {
58
58
  handleAnalytics(analyticsEvents);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.23.0",
3
+ "version": "5.23.1",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {