@gravity-ui/blog-constructor 6.7.2 → 6.8.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.
@@ -373,6 +373,9 @@ export declare const Header: {
373
373
  videoIframe: {
374
374
  type: string;
375
375
  };
376
+ autoplay: {
377
+ type: string;
378
+ };
376
379
  parallax: {
377
380
  type: string;
378
381
  };
@@ -171,6 +171,9 @@ export declare const Media: {
171
171
  videoIframe: {
172
172
  type: string;
173
173
  };
174
+ autoplay: {
175
+ type: string;
176
+ };
174
177
  parallax: {
175
178
  type: string;
176
179
  };
@@ -1,6 +1,6 @@
1
1
  import React, { SyntheticEvent } from 'react';
2
2
  import { ShareOptions } from '@gravity-ui/components';
3
- import { CustomConfig, HeaderBreadCrumbsProps, NavigationData, PageConstructorProviderProps, PageContent } from '@gravity-ui/page-constructor';
3
+ import { CustomConfig, HeaderBreadCrumbsProps, NavigationData, PageConstructorProps, PageConstructorProviderProps, PageContent } from '@gravity-ui/page-constructor';
4
4
  import { MetaProps, PostData, ToggleLikeCallbackType } from '../../models/common';
5
5
  export interface BlogPostPageProps {
6
6
  suggestedPosts: PostData[];
@@ -14,10 +14,11 @@ export interface BlogPostPageProps {
14
14
  post: PostData;
15
15
  settings?: PageConstructorProviderProps;
16
16
  navigation?: NavigationData;
17
+ microdata?: PageConstructorProps['microdata'];
17
18
  custom?: CustomConfig;
18
19
  shareOptions?: ShareOptions[];
19
20
  isSignedInUser?: boolean;
20
21
  onClickSignIn?: React.EventHandler<SyntheticEvent>;
21
22
  breadcrumbs?: HeaderBreadCrumbsProps;
22
23
  }
23
- export declare const BlogPostPage: ({ metaData, suggestedPosts, likes, content, post, settings, navigation, custom, shareOptions, isSignedInUser, onClickSignIn, breadcrumbs, }: BlogPostPageProps) => React.JSX.Element;
24
+ export declare const BlogPostPage: ({ metaData, suggestedPosts, likes, content, post, settings, microdata, navigation, custom, shareOptions, isSignedInUser, onClickSignIn, breadcrumbs, }: BlogPostPageProps) => React.JSX.Element;
@@ -12,7 +12,7 @@ const PostPageContext_1 = require("../../contexts/PostPageContext");
12
12
  const useExtendedComponentMap_1 = require("../../hooks/useExtendedComponentMap");
13
13
  const useLikes_1 = require("../../hooks/useLikes");
14
14
  const SettingsContext_1 = require("../../contexts/SettingsContext");
15
- const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, navigation, custom, shareOptions, isSignedInUser = false, onClickSignIn, breadcrumbs, }) => {
15
+ const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, microdata, navigation, custom, shareOptions, isSignedInUser = false, onClickSignIn, breadcrumbs, }) => {
16
16
  const { isAnimationEnabled } = (0, react_1.useContext)(SettingsContext_1.SettingsContext);
17
17
  const { hasUserLike, likesCount, handleLike } = (0, useLikes_1.useLikes)({
18
18
  hasLike: likes === null || likes === void 0 ? void 0 : likes.hasUserLike,
@@ -44,7 +44,7 @@ const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings
44
44
  } },
45
45
  react_1.default.createElement(page_constructor_1.PageConstructorProvider, Object.assign({}, settings, { projectSettings: Object.assign(Object.assign({}, ((settings === null || settings === void 0 ? void 0 : settings.projectSettings) || {})), { isAnimationEnabled }) }),
46
46
  metaData ? react_1.default.createElement(MetaWrapper_1.MetaWrapper, Object.assign({}, metaData)) : null,
47
- react_1.default.createElement(page_constructor_1.PageConstructor, { content: content, custom: actualComponentMap, navigation: navigation }))),
47
+ react_1.default.createElement(page_constructor_1.PageConstructor, { content: content, custom: actualComponentMap, navigation: navigation, microdata: microdata }))),
48
48
  react_1.default.createElement(PromptSignIn_1.PromptSignIn, Object.assign({}, promptSignInProps))));
49
49
  };
50
50
  exports.BlogPostPage = BlogPostPage;
@@ -27,7 +27,7 @@ export type LayoutProps = {
27
27
  mobileOrder?: string;
28
28
  children: ReactElement[];
29
29
  } & PaddingsYFMProps;
30
- export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens'>> & {
30
+ export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens' | 'videoIframe' | 'videoMicrodata'>> & {
31
31
  text?: string;
32
32
  };
33
33
  export type MetaProps = QAProps & {
@@ -381,6 +381,9 @@ export declare const schemasForCustom: {
381
381
  videoIframe: {
382
382
  type: string;
383
383
  };
384
+ autoplay: {
385
+ type: string;
386
+ };
384
387
  parallax: {
385
388
  type: string;
386
389
  };
@@ -1572,6 +1575,9 @@ export declare const schemasForCustom: {
1572
1575
  videoIframe: {
1573
1576
  type: string;
1574
1577
  };
1578
+ autoplay: {
1579
+ type: string;
1580
+ };
1575
1581
  parallax: {
1576
1582
  type: string;
1577
1583
  };
@@ -373,6 +373,9 @@ export declare const Header: {
373
373
  videoIframe: {
374
374
  type: string;
375
375
  };
376
+ autoplay: {
377
+ type: string;
378
+ };
376
379
  parallax: {
377
380
  type: string;
378
381
  };
@@ -171,6 +171,9 @@ export declare const Media: {
171
171
  videoIframe: {
172
172
  type: string;
173
173
  };
174
+ autoplay: {
175
+ type: string;
176
+ };
174
177
  parallax: {
175
178
  type: string;
176
179
  };
@@ -1,6 +1,6 @@
1
1
  import React, { SyntheticEvent } from 'react';
2
2
  import { ShareOptions } from '@gravity-ui/components';
3
- import { CustomConfig, HeaderBreadCrumbsProps, NavigationData, PageConstructorProviderProps, PageContent } from '@gravity-ui/page-constructor';
3
+ import { CustomConfig, HeaderBreadCrumbsProps, NavigationData, PageConstructorProps, PageConstructorProviderProps, PageContent } from '@gravity-ui/page-constructor';
4
4
  import { MetaProps, PostData, ToggleLikeCallbackType } from '../../models/common';
5
5
  import './BlogPostPage.css';
6
6
  export interface BlogPostPageProps {
@@ -15,10 +15,11 @@ export interface BlogPostPageProps {
15
15
  post: PostData;
16
16
  settings?: PageConstructorProviderProps;
17
17
  navigation?: NavigationData;
18
+ microdata?: PageConstructorProps['microdata'];
18
19
  custom?: CustomConfig;
19
20
  shareOptions?: ShareOptions[];
20
21
  isSignedInUser?: boolean;
21
22
  onClickSignIn?: React.EventHandler<SyntheticEvent>;
22
23
  breadcrumbs?: HeaderBreadCrumbsProps;
23
24
  }
24
- export declare const BlogPostPage: ({ metaData, suggestedPosts, likes, content, post, settings, navigation, custom, shareOptions, isSignedInUser, onClickSignIn, breadcrumbs, }: BlogPostPageProps) => React.JSX.Element;
25
+ export declare const BlogPostPage: ({ metaData, suggestedPosts, likes, content, post, settings, microdata, navigation, custom, shareOptions, isSignedInUser, onClickSignIn, breadcrumbs, }: BlogPostPageProps) => React.JSX.Element;
@@ -10,7 +10,7 @@ import { useExtendedComponentMap } from '../../hooks/useExtendedComponentMap';
10
10
  import { useLikes } from '../../hooks/useLikes';
11
11
  import { SettingsContext } from '../../contexts/SettingsContext';
12
12
  import './BlogPostPage.css';
13
- export const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, navigation, custom, shareOptions, isSignedInUser = false, onClickSignIn, breadcrumbs, }) => {
13
+ export const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, microdata, navigation, custom, shareOptions, isSignedInUser = false, onClickSignIn, breadcrumbs, }) => {
14
14
  const { isAnimationEnabled } = useContext(SettingsContext);
15
15
  const { hasUserLike, likesCount, handleLike } = useLikes({
16
16
  hasLike: likes === null || likes === void 0 ? void 0 : likes.hasUserLike,
@@ -42,6 +42,6 @@ export const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, s
42
42
  } },
43
43
  React.createElement(PageConstructorProvider, Object.assign({}, settings, { projectSettings: Object.assign(Object.assign({}, ((settings === null || settings === void 0 ? void 0 : settings.projectSettings) || {})), { isAnimationEnabled }) }),
44
44
  metaData ? React.createElement(MetaWrapper, Object.assign({}, metaData)) : null,
45
- React.createElement(PageConstructor, { content: content, custom: actualComponentMap, navigation: navigation }))),
45
+ React.createElement(PageConstructor, { content: content, custom: actualComponentMap, navigation: navigation, microdata: microdata }))),
46
46
  React.createElement(PromptSignIn, Object.assign({}, promptSignInProps))));
47
47
  };
@@ -27,7 +27,7 @@ export type LayoutProps = {
27
27
  mobileOrder?: string;
28
28
  children: ReactElement[];
29
29
  } & PaddingsYFMProps;
30
- export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens'>> & {
30
+ export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens' | 'videoIframe' | 'videoMicrodata'>> & {
31
31
  text?: string;
32
32
  };
33
33
  export type MetaProps = QAProps & {
@@ -381,6 +381,9 @@ export declare const schemasForCustom: {
381
381
  videoIframe: {
382
382
  type: string;
383
383
  };
384
+ autoplay: {
385
+ type: string;
386
+ };
384
387
  parallax: {
385
388
  type: string;
386
389
  };
@@ -1572,6 +1575,9 @@ export declare const schemasForCustom: {
1572
1575
  videoIframe: {
1573
1576
  type: string;
1574
1577
  };
1578
+ autoplay: {
1579
+ type: string;
1580
+ };
1575
1581
  parallax: {
1576
1582
  type: string;
1577
1583
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/blog-constructor",
3
- "version": "6.7.2",
3
+ "version": "6.8.0",
4
4
  "description": "Gravity UI Blog Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -89,7 +89,7 @@
89
89
  "@commitlint/config-conventional": "^17.4.3",
90
90
  "@diplodoc/transform": "^4.10.8",
91
91
  "@gravity-ui/eslint-config": "^3.1.1",
92
- "@gravity-ui/page-constructor": "^5.27.0",
92
+ "@gravity-ui/page-constructor": "^5.35.0",
93
93
  "@gravity-ui/prettier-config": "^1.1.0",
94
94
  "@gravity-ui/stylelint-config": "^4.0.1",
95
95
  "@gravity-ui/tsconfig": "^1.0.0",
@@ -27,7 +27,7 @@ export type LayoutProps = {
27
27
  mobileOrder?: string;
28
28
  children: ReactElement[];
29
29
  } & PaddingsYFMProps;
30
- export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens'>> & {
30
+ export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens' | 'videoIframe' | 'videoMicrodata'>> & {
31
31
  text?: string;
32
32
  };
33
33
  export type MetaProps = QAProps & {