@gravity-ui/blog-constructor 6.0.0 → 6.1.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.
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { FetchArgs, Query, SetQueryType } from '../../../../models/common';
2
+ import { FetchArgs, Query } from '../../../../models/common';
3
3
  export type SelectItem = {
4
4
  content: string;
5
5
  value: string;
@@ -10,6 +10,5 @@ export type ControlsProps = {
10
10
  tags?: SelectItem[];
11
11
  services?: SelectItem[];
12
12
  queryParams: Query;
13
- setQuery?: SetQueryType;
14
13
  };
15
14
  export declare const Controls: ({ handleLoadData, tags, services, queryParams, }: ControlsProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React, { SyntheticEvent } from 'react';
2
2
  import { CustomConfig, NavigationData, PageConstructorProviderProps, PageContent } from '@gravity-ui/page-constructor';
3
- import { GetPostsType, MetaProps, PostsProps, Service, SetQueryType, Tag, ToggleLikeCallbackType } from '../../models/common';
3
+ import { GetPostsType, MetaProps, PostsProps, Service, Tag, ToggleLikeCallbackType } from '../../models/common';
4
4
  export type BlogPageProps = {
5
5
  content: PageContent;
6
6
  posts: PostsProps;
@@ -11,7 +11,6 @@ export type BlogPageProps = {
11
11
  hasLikes?: boolean;
12
12
  toggleLike?: ToggleLikeCallbackType;
13
13
  metaData?: MetaProps;
14
- setQuery?: SetQueryType;
15
14
  settings?: PageConstructorProviderProps;
16
15
  custom?: CustomConfig;
17
16
  pageCountForShowSupportButtons?: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GetPostsType, PostData, Service, SetQueryType, Tag } from '../models/common';
2
+ import { GetPostsType, PostData, Service, Tag } from '../models/common';
3
3
  export interface FeedContextProps {
4
4
  posts?: PostData[];
5
5
  pinnedPost?: PostData;
@@ -7,7 +7,6 @@ export interface FeedContextProps {
7
7
  tags?: Tag[];
8
8
  services?: Service[];
9
9
  getPosts?: GetPostsType;
10
- setQuery?: SetQueryType;
11
10
  pageCountForShowSupportButtons?: number;
12
11
  }
13
12
  export declare const FeedContext: React.Context<FeedContextProps>;
@@ -149,9 +149,6 @@ export type GetPostsRequest = {
149
149
  };
150
150
  export type GetPostsType = (query: GetPostsRequest) => Promise<PostsProps>;
151
151
  export type HandleChangeQueryParams = (params: Query) => void;
152
- export type SetQueryType = (params: Query, options?: {
153
- [y: string]: boolean;
154
- }) => Promise<void> | void;
155
152
  export declare enum DefaultEventNames {
156
153
  ShareButton = "share-button-click",
157
154
  SaveButton = "save-button-click",
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { FetchArgs, Query, SetQueryType } from '../../../../models/common';
2
+ import { FetchArgs, Query } from '../../../../models/common';
3
3
  import './Controls.css';
4
4
  export type SelectItem = {
5
5
  content: string;
@@ -11,6 +11,5 @@ export type ControlsProps = {
11
11
  tags?: SelectItem[];
12
12
  services?: SelectItem[];
13
13
  queryParams: Query;
14
- setQuery?: SetQueryType;
15
14
  };
16
15
  export declare const Controls: ({ handleLoadData, tags, services, queryParams, }: ControlsProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React, { SyntheticEvent } from 'react';
2
2
  import { CustomConfig, NavigationData, PageConstructorProviderProps, PageContent } from '@gravity-ui/page-constructor';
3
- import { GetPostsType, MetaProps, PostsProps, Service, SetQueryType, Tag, ToggleLikeCallbackType } from '../../models/common';
3
+ import { GetPostsType, MetaProps, PostsProps, Service, Tag, ToggleLikeCallbackType } from '../../models/common';
4
4
  import './BlogPage.css';
5
5
  export type BlogPageProps = {
6
6
  content: PageContent;
@@ -12,7 +12,6 @@ export type BlogPageProps = {
12
12
  hasLikes?: boolean;
13
13
  toggleLike?: ToggleLikeCallbackType;
14
14
  metaData?: MetaProps;
15
- setQuery?: SetQueryType;
16
15
  settings?: PageConstructorProviderProps;
17
16
  custom?: CustomConfig;
18
17
  pageCountForShowSupportButtons?: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GetPostsType, PostData, Service, SetQueryType, Tag } from '../models/common';
2
+ import { GetPostsType, PostData, Service, Tag } from '../models/common';
3
3
  export interface FeedContextProps {
4
4
  posts?: PostData[];
5
5
  pinnedPost?: PostData;
@@ -7,7 +7,6 @@ export interface FeedContextProps {
7
7
  tags?: Tag[];
8
8
  services?: Service[];
9
9
  getPosts?: GetPostsType;
10
- setQuery?: SetQueryType;
11
10
  pageCountForShowSupportButtons?: number;
12
11
  }
13
12
  export declare const FeedContext: React.Context<FeedContextProps>;
@@ -149,9 +149,6 @@ export type GetPostsRequest = {
149
149
  };
150
150
  export type GetPostsType = (query: GetPostsRequest) => Promise<PostsProps>;
151
151
  export type HandleChangeQueryParams = (params: Query) => void;
152
- export type SetQueryType = (params: Query, options?: {
153
- [y: string]: boolean;
154
- }) => Promise<void> | void;
155
152
  export declare enum DefaultEventNames {
156
153
  ShareButton = "share-button-click",
157
154
  SaveButton = "save-button-click",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/blog-constructor",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Gravity UI Blog Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -149,9 +149,6 @@ export type GetPostsRequest = {
149
149
  };
150
150
  export type GetPostsType = (query: GetPostsRequest) => Promise<PostsProps>;
151
151
  export type HandleChangeQueryParams = (params: Query) => void;
152
- export type SetQueryType = (params: Query, options?: {
153
- [y: string]: boolean;
154
- }) => Promise<void> | void;
155
152
  export declare enum DefaultEventNames {
156
153
  ShareButton = "share-button-click",
157
154
  SaveButton = "save-button-click",