@gravity-ui/blog-constructor 6.4.1 → 6.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ import { AnalyticsEventsProp } from '@gravity-ui/page-constructor';
3
3
  import { QAProps } from '../../../models/common';
4
4
  type SaveProps = QAProps & {
5
5
  title: string | number;
6
- postId: number;
6
+ postId: number | string;
7
7
  hasUserLike: boolean;
8
8
  handleUserLike: () => void;
9
9
  theme?: 'light' | 'dark';
@@ -2,7 +2,7 @@ import { ToggleLikeCallbackType } from '../models/common';
2
2
  type UseLikesProps = {
3
3
  hasLike?: boolean;
4
4
  count?: number;
5
- postId?: number;
5
+ postId?: number | string;
6
6
  toggleLikeCallback?: ToggleLikeCallbackType;
7
7
  };
8
8
  type UseLikeData = {
@@ -3,7 +3,7 @@ import { ContentBlockProps, FormBlockData, HeaderBlockProps, MediaProps as PCMed
3
3
  import { BlockType, ClassNameProps, PostData, QAProps } from './common';
4
4
  import { PaddingsYFMProps } from './paddings';
5
5
  export type AuthorProps = ClassNameProps & {
6
- authorId: number;
6
+ authorId: number | string;
7
7
  image: string;
8
8
  } & PaddingsYFMProps & QAProps;
9
9
  export type BannerProps = ContentBlockProps & QAProps & {
@@ -11,7 +11,7 @@ export interface ClassNameProps {
11
11
  className?: string;
12
12
  }
13
13
  export type Author = {
14
- id: number;
14
+ id: number | string;
15
15
  avatar: string | null;
16
16
  createdAt: string;
17
17
  updatedAt: string;
@@ -24,7 +24,7 @@ export type Author = {
24
24
  [x: string]: string | null;
25
25
  };
26
26
  export type Service = {
27
- id: number;
27
+ id: number | string;
28
28
  slug: string;
29
29
  name: string;
30
30
  } & {
@@ -53,13 +53,13 @@ export type Tag = {
53
53
  icon?: string;
54
54
  isDeleted?: boolean;
55
55
  locale?: string;
56
- blogTagId?: number;
56
+ blogTagId?: number | string;
57
57
  count?: number;
58
58
  };
59
59
  export interface PostData {
60
60
  author?: string;
61
61
  authors?: Author[];
62
- blogPostId?: number;
62
+ blogPostId?: number | string;
63
63
  content?: string;
64
64
  date: string;
65
65
  description?: string;
@@ -130,7 +130,7 @@ export interface PostMetaProps {
130
130
  organization: MetaOrganizationType;
131
131
  }
132
132
  export type ToggleLikeCallbackType = ({ postId, hasLike, }: {
133
- postId?: number;
133
+ postId?: number | string;
134
134
  hasLike?: boolean;
135
135
  }) => void;
136
136
  export interface HeaderBlockProps extends PageConstructorHeaderBlockProps {
@@ -15,7 +15,7 @@ export declare const getPageSearchParams: (query?: Query) => URLSearchParams;
15
15
  export declare const scrollToHash: (hash: string, browser?: string) => void;
16
16
  type CloudListTagStub = {};
17
17
  export declare const getTags: ((tags: Tag[], blogPath: string) => CloudListTagStub[]) & import("lodash").MemoizedFunction;
18
- export declare const postLikeStatus: import("lodash").DebouncedFunc<(postId: number, hasUserLike: boolean) => void>;
18
+ export declare const postLikeStatus: import("lodash").DebouncedFunc<(postId: number | string, hasUserLike: boolean) => void>;
19
19
  export declare const updateContentSizes: ({ size, colSizes, theme, ...contentData }: ContentBlockProps) => {
20
20
  size: import("@gravity-ui/page-constructor").ContentSize;
21
21
  colSizes: {
@@ -4,7 +4,7 @@ import { QAProps } from '../../../models/common';
4
4
  import '../PostInfo.css';
5
5
  type SaveProps = QAProps & {
6
6
  title: string | number;
7
- postId: number;
7
+ postId: number | string;
8
8
  hasUserLike: boolean;
9
9
  handleUserLike: () => void;
10
10
  theme?: 'light' | 'dark';
@@ -2,7 +2,7 @@ import { ToggleLikeCallbackType } from '../models/common';
2
2
  type UseLikesProps = {
3
3
  hasLike?: boolean;
4
4
  count?: number;
5
- postId?: number;
5
+ postId?: number | string;
6
6
  toggleLikeCallback?: ToggleLikeCallbackType;
7
7
  };
8
8
  type UseLikeData = {
@@ -3,7 +3,7 @@ import { ContentBlockProps, FormBlockData, HeaderBlockProps, MediaProps as PCMed
3
3
  import { BlockType, ClassNameProps, PostData, QAProps } from './common';
4
4
  import { PaddingsYFMProps } from './paddings';
5
5
  export type AuthorProps = ClassNameProps & {
6
- authorId: number;
6
+ authorId: number | string;
7
7
  image: string;
8
8
  } & PaddingsYFMProps & QAProps;
9
9
  export type BannerProps = ContentBlockProps & QAProps & {
@@ -11,7 +11,7 @@ export interface ClassNameProps {
11
11
  className?: string;
12
12
  }
13
13
  export type Author = {
14
- id: number;
14
+ id: number | string;
15
15
  avatar: string | null;
16
16
  createdAt: string;
17
17
  updatedAt: string;
@@ -24,7 +24,7 @@ export type Author = {
24
24
  [x: string]: string | null;
25
25
  };
26
26
  export type Service = {
27
- id: number;
27
+ id: number | string;
28
28
  slug: string;
29
29
  name: string;
30
30
  } & {
@@ -53,13 +53,13 @@ export type Tag = {
53
53
  icon?: string;
54
54
  isDeleted?: boolean;
55
55
  locale?: string;
56
- blogTagId?: number;
56
+ blogTagId?: number | string;
57
57
  count?: number;
58
58
  };
59
59
  export interface PostData {
60
60
  author?: string;
61
61
  authors?: Author[];
62
- blogPostId?: number;
62
+ blogPostId?: number | string;
63
63
  content?: string;
64
64
  date: string;
65
65
  description?: string;
@@ -130,7 +130,7 @@ export interface PostMetaProps {
130
130
  organization: MetaOrganizationType;
131
131
  }
132
132
  export type ToggleLikeCallbackType = ({ postId, hasLike, }: {
133
- postId?: number;
133
+ postId?: number | string;
134
134
  hasLike?: boolean;
135
135
  }) => void;
136
136
  export interface HeaderBlockProps extends PageConstructorHeaderBlockProps {
@@ -15,7 +15,7 @@ export declare const getPageSearchParams: (query?: Query) => URLSearchParams;
15
15
  export declare const scrollToHash: (hash: string, browser?: string) => void;
16
16
  type CloudListTagStub = {};
17
17
  export declare const getTags: ((tags: Tag[], blogPath: string) => CloudListTagStub[]) & import("lodash").MemoizedFunction;
18
- export declare const postLikeStatus: import("lodash").DebouncedFunc<(postId: number, hasUserLike: boolean) => void>;
18
+ export declare const postLikeStatus: import("lodash").DebouncedFunc<(postId: number | string, hasUserLike: boolean) => void>;
19
19
  export declare const updateContentSizes: ({ size, colSizes, theme, ...contentData }: ContentBlockProps) => {
20
20
  size: import("@gravity-ui/page-constructor").ContentSize;
21
21
  colSizes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/blog-constructor",
3
- "version": "6.4.1",
3
+ "version": "6.4.2",
4
4
  "description": "Gravity UI Blog Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -3,7 +3,7 @@ import { ContentBlockProps, FormBlockData, HeaderBlockProps, MediaProps as PCMed
3
3
  import { BlockType, ClassNameProps, PostData, QAProps } from './common';
4
4
  import { PaddingsYFMProps } from './paddings';
5
5
  export type AuthorProps = ClassNameProps & {
6
- authorId: number;
6
+ authorId: number | string;
7
7
  image: string;
8
8
  } & PaddingsYFMProps & QAProps;
9
9
  export type BannerProps = ContentBlockProps & QAProps & {
@@ -11,7 +11,7 @@ export interface ClassNameProps {
11
11
  className?: string;
12
12
  }
13
13
  export type Author = {
14
- id: number;
14
+ id: number | string;
15
15
  avatar: string | null;
16
16
  createdAt: string;
17
17
  updatedAt: string;
@@ -24,7 +24,7 @@ export type Author = {
24
24
  [x: string]: string | null;
25
25
  };
26
26
  export type Service = {
27
- id: number;
27
+ id: number | string;
28
28
  slug: string;
29
29
  name: string;
30
30
  } & {
@@ -53,13 +53,13 @@ export type Tag = {
53
53
  icon?: string;
54
54
  isDeleted?: boolean;
55
55
  locale?: string;
56
- blogTagId?: number;
56
+ blogTagId?: number | string;
57
57
  count?: number;
58
58
  };
59
59
  export interface PostData {
60
60
  author?: string;
61
61
  authors?: Author[];
62
- blogPostId?: number;
62
+ blogPostId?: number | string;
63
63
  content?: string;
64
64
  date: string;
65
65
  description?: string;
@@ -130,7 +130,7 @@ export interface PostMetaProps {
130
130
  organization: MetaOrganizationType;
131
131
  }
132
132
  export type ToggleLikeCallbackType = ({ postId, hasLike, }: {
133
- postId?: number;
133
+ postId?: number | string;
134
134
  hasLike?: boolean;
135
135
  }) => void;
136
136
  export interface HeaderBlockProps extends PageConstructorHeaderBlockProps {