@livetiles/reach-components-react 0.5.0-preview.68 → 0.5.0-preview.69

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,9 +1,10 @@
1
1
  import { FC } from 'react';
2
- import { EventItem } from '@livetiles/reach/util/common';
2
+ import { EventItem, ItemResourceTypes } from '@livetiles/reach/util/common';
3
3
  export interface EventsEditorDashboardProps {
4
4
  groupId?: string;
5
5
  className?: string;
6
6
  onItemClick?: (item: EventItem) => unknown;
7
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
7
8
  pageSize?: number;
8
9
  hidePagination?: boolean;
9
10
  }
@@ -4,15 +4,16 @@ import { PublishableItemFilterDefinition } from '@livetiles/reach/feature/conten
4
4
  interface LibraryProps<TItem extends PublishableItem = PublishableItem> {
5
5
  pageSize: number;
6
6
  itemResourceType: ItemResourceTypes;
7
- onItemClick: (item: TItem) => unknown;
8
7
  onRenderContent: (item: TItem, title: string) => unknown;
9
8
  initialGroupId?: string;
10
9
  hidePagination?: boolean;
11
10
  emptyMessageResources: string[];
12
11
  emptyListSvg: ReactNode;
12
+ onItemClick?: (item: TItem) => unknown;
13
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
13
14
  additionalFilterComponents?: ReactNode;
14
15
  additionalFilters?: PublishableItemFilterDefinition;
15
16
  className?: string;
16
17
  }
17
- export declare const PublishableItemEditorDashboard: <TItem extends PublishableItem>({ initialGroupId, itemResourceType, onItemClick, onRenderContent, pageSize, hidePagination, emptyMessageResources, emptyListSvg, additionalFilterComponents, additionalFilters: incomingFilters, className, }: LibraryProps<TItem>) => JSX.Element;
18
+ export declare const PublishableItemEditorDashboard: <TItem extends PublishableItem>({ initialGroupId, itemResourceType, onRenderContent, pageSize, hidePagination, emptyMessageResources, emptyListSvg, onItemClick, onCreateNewItemClick, additionalFilterComponents, additionalFilters: incomingFilters, className, }: LibraryProps<TItem>) => JSX.Element;
18
19
  export {};
@@ -3,5 +3,6 @@ import { ItemResourceTypes } from '@livetiles/reach/util/common';
3
3
  export declare const NewPublishableItemButton: FC<{
4
4
  itemResourceType: ItemResourceTypes;
5
5
  groupId?: string;
6
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
6
7
  className?: string;
7
8
  }>;
@@ -1,9 +1,10 @@
1
1
  import { FC } from 'react';
2
- import { NewsItem } from '@livetiles/reach/util/common';
2
+ import { ItemResourceTypes, NewsItem } from '@livetiles/reach/util/common';
3
3
  export interface NewsEditorDashboardProps {
4
4
  groupId?: string;
5
5
  className?: string;
6
6
  onItemClick?: (item: NewsItem) => unknown;
7
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
7
8
  pageSize?: number;
8
9
  hidePagination?: boolean;
9
10
  }
package/index.d.ts CHANGED
@@ -1128,6 +1128,7 @@ interface NewsEditorDashboardProps {
1128
1128
  groupId?: string;
1129
1129
  className?: string;
1130
1130
  onItemClick?: (item: NewsItem) => unknown;
1131
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
1131
1132
  pageSize?: number;
1132
1133
  hidePagination?: boolean;
1133
1134
  }
@@ -1137,6 +1138,7 @@ interface EventsEditorDashboardProps {
1137
1138
  groupId?: string;
1138
1139
  className?: string;
1139
1140
  onItemClick?: (item: EventItem) => unknown;
1141
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
1140
1142
  pageSize?: number;
1141
1143
  hidePagination?: boolean;
1142
1144
  }