@livetiles/reach-components-react 0.4.0-preview.761 → 0.4.0-preview.764

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.
package/ErrorWrapper.d.ts CHANGED
@@ -2,4 +2,5 @@ import { FC } from 'react';
2
2
  import { ErrorType } from '@livetiles/reach/ui/common';
3
3
  export declare const ErrorWrapper: FC<{
4
4
  errorType: ErrorType;
5
+ isList?: boolean;
5
6
  }>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface GroupNotificationsSettingsProps {
3
+ className?: string;
4
+ }
5
+ export declare const GroupNotificationsSettings: FC<GroupNotificationsSettingsProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface PostGroupSelectorProps {
3
+ className?: string;
4
+ }
5
+ export declare const PostGroupSelector: FC<PostGroupSelectorProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface PostGroupsPickerProps {
3
+ className?: string;
4
+ }
5
+ export declare const PostGroupsPicker: FC<PostGroupsPickerProps>;
@@ -0,0 +1,10 @@
1
+ import { Post } from '@livetiles/reach/feature/content';
2
+ import { FC } from 'react';
3
+ export interface PostInputBoxProps {
4
+ onBeforeSave?: (post: Post) => void;
5
+ onAfterSave?: (post: Post) => void;
6
+ disableDragAndDrop?: boolean;
7
+ disableAutoFocus?: boolean;
8
+ className?: string;
9
+ }
10
+ export declare const PostInputBox: FC<PostInputBoxProps>;
package/PostList.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { PostFilterDefinition } from '@livetiles/reach/feature/content';
3
+ export interface PostListProps {
4
+ setFilter?: (_: (filter: PostFilterDefinition) => unknown) => unknown;
5
+ className?: string;
6
+ }
7
+ export declare const PostList: FC<PostListProps>;
@@ -0,0 +1,26 @@
1
+ import { FC } from 'react';
2
+ import { Post, PostStreamFilterDefinition } from '@livetiles/reach/feature/content';
3
+ import { UserGroup } from '@livetiles/reach/util/common';
4
+ export interface PostListContextProviderProps {
5
+ pageSize?: number;
6
+ groupId?: string;
7
+ filter?: PostStreamFilterDefinition;
8
+ searchText?: string;
9
+ }
10
+ export declare const PostListContextProvider: FC<PostListContextProviderProps>;
11
+ export declare function usePostListContext(): {
12
+ group?: UserGroup;
13
+ changeGroupId: (groupId: string) => void;
14
+ posts: Post[];
15
+ onPostCreated: (id: string) => unknown;
16
+ onPostDeleted: (id: string) => unknown;
17
+ getNextPage: () => unknown;
18
+ getPrevPage: () => unknown;
19
+ getFirstPage: () => unknown;
20
+ isLoadingNextPage: boolean;
21
+ isInitialLoading: boolean;
22
+ isFirstPage: boolean;
23
+ isLastPage: boolean;
24
+ isEmpty: boolean;
25
+ error?: any;
26
+ };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ export declare const ToolbarFilterToggleButton: FC<{
3
+ filter?: any;
4
+ onClick?: () => void;
5
+ }>;
6
+ export declare function isFilterActive(filter: any): boolean;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const PostGroupSelectorButton: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const ToolbarPostNotificationButton: FC;