@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.
- package/build/cjs/components/PostInfo/components/Save.d.ts +1 -1
- package/build/cjs/hooks/useLikes.d.ts +1 -1
- package/build/cjs/models/blocks.d.ts +1 -1
- package/build/cjs/models/common.d.ts +5 -5
- package/build/cjs/utils/common.d.ts +1 -1
- package/build/esm/components/PostInfo/components/Save.d.ts +1 -1
- package/build/esm/hooks/useLikes.d.ts +1 -1
- package/build/esm/models/blocks.d.ts +1 -1
- package/build/esm/models/common.d.ts +5 -5
- package/build/esm/utils/common.d.ts +1 -1
- package/package.json +1 -1
- package/server/models/blocks.d.ts +1 -1
- package/server/models/common.d.ts +5 -5
@@ -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';
|
@@ -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: {
|
@@ -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
@@ -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 {
|