@gravity-ui/blog-constructor 6.6.0 → 6.6.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.
@@ -39,7 +39,7 @@ type GetBreadcrumbsProps = {
|
|
39
39
|
blogPath: string;
|
40
40
|
};
|
41
41
|
export declare const getBlogPath: (pathPrefix: string) => string;
|
42
|
-
export declare
|
42
|
+
export declare function getBreadcrumbs({ tags, blogPath }: GetBreadcrumbsProps): HeaderBreadCrumbsProps;
|
43
43
|
export declare const getMergedAnalyticsEvents: (analyticEvents: AnalyticsEventsProp, existringEvents?: AnalyticsEventsProp) => {
|
44
44
|
name: string;
|
45
45
|
type?: string | undefined;
|
@@ -60,7 +60,7 @@ const getBlogPath = (pathPrefix) => {
|
|
60
60
|
return `${prefix}/blog`;
|
61
61
|
};
|
62
62
|
exports.getBlogPath = getBlogPath;
|
63
|
-
|
63
|
+
function getBreadcrumbs({ tags, blogPath }) {
|
64
64
|
const breadcrumbs = {
|
65
65
|
items: [{ text: (0, i18n_1.i18n)(i18n_1.Keyset.TitleBreadcrumbs), url: blogPath }],
|
66
66
|
theme: 'light',
|
@@ -72,7 +72,7 @@ const getBreadcrumbs = ({ tags, blogPath }) => {
|
|
72
72
|
breadcrumbs.items.push({ text: tag.name, url: tag.url });
|
73
73
|
}
|
74
74
|
return breadcrumbs;
|
75
|
-
}
|
75
|
+
}
|
76
76
|
exports.getBreadcrumbs = getBreadcrumbs;
|
77
77
|
const getArrayOfEvents = (events) => {
|
78
78
|
if (!events) {
|
@@ -39,7 +39,7 @@ type GetBreadcrumbsProps = {
|
|
39
39
|
blogPath: string;
|
40
40
|
};
|
41
41
|
export declare const getBlogPath: (pathPrefix: string) => string;
|
42
|
-
export declare
|
42
|
+
export declare function getBreadcrumbs({ tags, blogPath }: GetBreadcrumbsProps): HeaderBreadCrumbsProps;
|
43
43
|
export declare const getMergedAnalyticsEvents: (analyticEvents: AnalyticsEventsProp, existringEvents?: AnalyticsEventsProp) => {
|
44
44
|
name: string;
|
45
45
|
type?: string | undefined;
|
@@ -52,7 +52,7 @@ export const getBlogPath = (pathPrefix) => {
|
|
52
52
|
const prefix = pathPrefix ? `/${pathPrefix}` : '';
|
53
53
|
return `${prefix}/blog`;
|
54
54
|
};
|
55
|
-
export
|
55
|
+
export function getBreadcrumbs({ tags, blogPath }) {
|
56
56
|
const breadcrumbs = {
|
57
57
|
items: [{ text: i18n(Keyset.TitleBreadcrumbs), url: blogPath }],
|
58
58
|
theme: 'light',
|
@@ -64,7 +64,7 @@ export const getBreadcrumbs = ({ tags, blogPath }) => {
|
|
64
64
|
breadcrumbs.items.push({ text: tag.name, url: tag.url });
|
65
65
|
}
|
66
66
|
return breadcrumbs;
|
67
|
-
}
|
67
|
+
}
|
68
68
|
const getArrayOfEvents = (events) => {
|
69
69
|
if (!events) {
|
70
70
|
return [];
|