@livetiles/reach-components-react 0.5.0-preview.731 → 0.5.0-preview.733
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/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/EventDetail.d.ts +5 -4
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +2 -2
- package/NewsDetail.d.ts +5 -4
- package/NewsDetailViewMetaInfo.d.ts +2 -1
- package/NewsGrid.d.ts +3 -3
- package/NewsGridCard.d.ts +2 -2
- package/NewsHero.d.ts +10 -3
- package/NewsList.d.ts +3 -3
- package/PageDetail.d.ts +3 -2
- package/PageGridCard.d.ts +2 -2
- package/PagesGrid.d.ts +2 -2
- package/PagesList.d.ts +2 -2
- package/common/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/index.d.ts +99 -79
- package/index.esm2.js +20 -20
- package/index.umd.js +67 -67
- package/package.json +1 -1
package/ChannelFilter.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { Channel } from '@livetiles/reach/util/common';
|
|
|
4
4
|
export interface ChannelSelectorWrapperProps {
|
|
5
5
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
6
6
|
showLogicalOperatorOptions?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* For better performance set channel IDs instead of names.
|
|
9
|
+
*/
|
|
7
10
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
8
11
|
className?: string;
|
|
9
12
|
}
|
package/EventDetail.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { Channel, Keyword } from '@livetiles/reach/util/common';
|
|
2
3
|
export interface EventDetailProps {
|
|
3
4
|
itemId?: string;
|
|
4
5
|
hideComments?: boolean;
|
|
5
6
|
hideLikes?: boolean;
|
|
6
|
-
onChannelClick?: (
|
|
7
|
-
onKeywordClick?: (
|
|
7
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
8
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
8
9
|
className?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare const EventDetail: FC<EventDetailProps>;
|
|
11
12
|
export declare const EventDetailMainContent: FC<{
|
|
12
13
|
hideComments?: boolean;
|
|
13
14
|
hideLikes?: boolean;
|
|
14
|
-
onChannelClick?: (
|
|
15
|
-
onKeywordClick?: (
|
|
15
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
16
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
16
17
|
}>;
|
package/EventsGrid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { EventItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Channel, EventItem } from '@livetiles/reach/util/common';
|
|
3
3
|
import { EventFilterDefinition } from '@livetiles/reach/feature/content';
|
|
4
4
|
import { EventView } from '@livetiles/reach/ui/common';
|
|
5
5
|
export interface EventGridProps {
|
|
@@ -14,7 +14,7 @@ export interface EventGridProps {
|
|
|
14
14
|
maxColumnCount?: number;
|
|
15
15
|
rowCount?: number;
|
|
16
16
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
17
|
-
onChannelClick?: (
|
|
17
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare const EventsGrid: FC<EventGridProps>;
|
package/EventsList.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { EventItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Channel, EventItem } from '@livetiles/reach/util/common';
|
|
3
3
|
import { EventFilterDefinition } from '@livetiles/reach/feature/content';
|
|
4
4
|
import { ItemLayoutMode } from './NewsList';
|
|
5
5
|
import { EventView } from '@livetiles/reach/ui/common';
|
|
@@ -9,7 +9,7 @@ export interface EventsListProps {
|
|
|
9
9
|
searchText?: string;
|
|
10
10
|
itemLayoutMode?: ItemLayoutMode;
|
|
11
11
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
12
|
-
onChannelClick?: (
|
|
12
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
13
13
|
hidePlaceholderIfNoBanner?: boolean;
|
|
14
14
|
hidePagination?: boolean;
|
|
15
15
|
pageSize?: number;
|
package/NewsDetail.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { Channel, Keyword } from '@livetiles/reach/util/common';
|
|
2
3
|
export interface NewsDetailProps {
|
|
3
4
|
itemId?: string;
|
|
4
5
|
hideComments?: boolean;
|
|
5
6
|
hideLikes?: boolean;
|
|
6
7
|
preventExternalContentAutoRedirect?: boolean;
|
|
7
|
-
onChannelClick?: (
|
|
8
|
-
onKeywordClick?: (
|
|
8
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
9
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
9
10
|
className?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const NewsDetail: FC<NewsDetailProps>;
|
|
12
13
|
export declare const NewsDetailMainContent: FC<{
|
|
13
14
|
hideComments?: boolean;
|
|
14
15
|
hideLikes?: boolean;
|
|
15
|
-
onChannelClick?: (
|
|
16
|
-
onKeywordClick?: (
|
|
16
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
17
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
17
18
|
}>;
|
package/NewsGrid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { NewsItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Channel, Keyword, NewsItem } from '@livetiles/reach/util/common';
|
|
3
3
|
import { LibNewsFilterDefinition } from './common/filter/LibNewsFilterDefinition';
|
|
4
4
|
export interface NewsGridProps {
|
|
5
5
|
filter?: LibNewsFilterDefinition;
|
|
@@ -12,8 +12,8 @@ export interface NewsGridProps {
|
|
|
12
12
|
maxColumnCount?: number;
|
|
13
13
|
rowCount?: number;
|
|
14
14
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
15
|
-
onChannelClick?: (
|
|
16
|
-
onKeywordClick?: (
|
|
15
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
16
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
17
17
|
includeAllItems?: boolean;
|
|
18
18
|
className?: string;
|
|
19
19
|
hideIntro?: boolean;
|
package/NewsGridCard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, MouseEvent } from 'react';
|
|
2
|
-
import { Channel, NewsItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Channel, Keyword, NewsItem } from '@livetiles/reach/util/common';
|
|
3
3
|
export interface NewsGridCardProps {
|
|
4
4
|
item: NewsItem;
|
|
5
5
|
baseRoute?: string;
|
|
@@ -7,7 +7,7 @@ export interface NewsGridCardProps {
|
|
|
7
7
|
onCardClick?: (event: MouseEvent<unknown>) => unknown;
|
|
8
8
|
onTitleClick?: (event: MouseEvent<unknown>) => unknown;
|
|
9
9
|
onChannelClick?: (channel: Channel) => unknown;
|
|
10
|
-
onKeywordClick?: (
|
|
10
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
11
11
|
className?: string;
|
|
12
12
|
hideIntro?: boolean;
|
|
13
13
|
}
|
package/NewsHero.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { FilterWithLogicalOperator } from '@livetiles/reach/feature/content';
|
|
3
|
-
import { NewsItem } from '@livetiles/reach/util/common';
|
|
3
|
+
import { Channel, Keyword, NewsItem } from '@livetiles/reach/util/common';
|
|
4
4
|
export interface NewsHeroFilterProps {
|
|
5
|
+
/**
|
|
6
|
+
* Limit results to those associated with the given channels.
|
|
7
|
+
* For better performance set channel IDs instead of names.
|
|
8
|
+
*/
|
|
5
9
|
channels?: string | FilterWithLogicalOperator;
|
|
10
|
+
/**
|
|
11
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
12
|
+
*/
|
|
6
13
|
keywords?: string | FilterWithLogicalOperator;
|
|
7
14
|
pageSize?: number;
|
|
8
15
|
}
|
|
@@ -14,8 +21,8 @@ export interface NewsHeroProps {
|
|
|
14
21
|
width?: number | string;
|
|
15
22
|
height?: number | string;
|
|
16
23
|
includeAllItems?: boolean;
|
|
17
|
-
onChannelClick?: (
|
|
18
|
-
onKeywordClick?: (
|
|
24
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
25
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
19
26
|
showKeywords?: boolean;
|
|
20
27
|
}
|
|
21
28
|
export declare const NewsHero: FC<NewsHeroProps>;
|
package/NewsList.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { NewsItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Channel, Keyword, NewsItem } from '@livetiles/reach/util/common';
|
|
3
3
|
import { LibNewsFilterDefinition } from './common/filter/LibNewsFilterDefinition';
|
|
4
4
|
export declare enum ItemLayoutMode {
|
|
5
5
|
Default = "default",
|
|
@@ -10,8 +10,8 @@ export interface NewsListProps {
|
|
|
10
10
|
searchText?: string;
|
|
11
11
|
itemLayoutMode?: ItemLayoutMode;
|
|
12
12
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
13
|
-
onChannelClick?: (
|
|
14
|
-
onKeywordClick?: (
|
|
13
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
14
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
15
15
|
hidePlaceholderIfNoBanner?: boolean;
|
|
16
16
|
hidePagination?: boolean;
|
|
17
17
|
pageSize?: number;
|
package/PageDetail.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { Keyword } from '@livetiles/reach/util/common';
|
|
2
3
|
export interface PageDetailProps {
|
|
3
4
|
itemId?: string;
|
|
4
5
|
hideComments?: boolean;
|
|
5
6
|
hideLikes?: boolean;
|
|
6
7
|
preventExternalContentAutoRedirect?: boolean;
|
|
7
8
|
homeBreadcrumbTargetUrl?: string;
|
|
8
|
-
onKeywordClick?: (
|
|
9
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
9
10
|
className?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const PageDetail: FC<PageDetailProps>;
|
|
@@ -13,6 +14,6 @@ export declare const PageDetailMainContent: FC<{
|
|
|
13
14
|
hideComments?: boolean;
|
|
14
15
|
hideLikes?: boolean;
|
|
15
16
|
homeBreadcrumbTargetUrl?: string;
|
|
16
|
-
onKeywordClick?: (
|
|
17
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
17
18
|
}>;
|
|
18
19
|
export declare const PageHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/PageGridCard.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { PageItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Keyword, PageItem } from '@livetiles/reach/util/common';
|
|
3
3
|
export interface PageGridCardProps {
|
|
4
4
|
item: PageItem;
|
|
5
5
|
baseRoute?: string;
|
|
6
6
|
openTargetInNewWindow?: boolean;
|
|
7
7
|
onCardClick?: (event: React.MouseEvent<unknown>) => unknown;
|
|
8
8
|
onTitleClick?: (event: React.MouseEvent<unknown>) => unknown;
|
|
9
|
-
onKeywordClick?: (
|
|
9
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
10
10
|
hideIntro?: boolean;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
package/PagesGrid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { PageItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Keyword, PageItem } from '@livetiles/reach/util/common';
|
|
3
3
|
import { PageFilterDefinition } from '@livetiles/reach/feature/content';
|
|
4
4
|
export interface PagesGridProps {
|
|
5
5
|
filter?: PageFilterDefinition;
|
|
@@ -8,7 +8,7 @@ export interface PagesGridProps {
|
|
|
8
8
|
maxColumnCount?: number;
|
|
9
9
|
rowCount?: number;
|
|
10
10
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
11
|
-
onKeywordClick?: (
|
|
11
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
12
12
|
hideIntro?: boolean;
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
package/PagesList.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { PageItem } from '@livetiles/reach/util/common';
|
|
2
|
+
import { Keyword, PageItem } from '@livetiles/reach/util/common';
|
|
3
3
|
import { PageFilterDefinition } from '@livetiles/reach/feature/content';
|
|
4
4
|
import { ItemLayoutMode } from './NewsList';
|
|
5
5
|
export interface PagesListProps {
|
|
@@ -7,7 +7,7 @@ export interface PagesListProps {
|
|
|
7
7
|
searchText?: string;
|
|
8
8
|
itemLayoutMode?: ItemLayoutMode;
|
|
9
9
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
10
|
-
onKeywordClick?: (
|
|
10
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
11
11
|
hidePlaceholderIfNoBanner?: boolean;
|
|
12
12
|
hidePagination?: boolean;
|
|
13
13
|
pageSize?: number;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { FilterWithLogicalOperator, NewsFilterDefinition } from '@livetiles/reach/feature/content';
|
|
2
2
|
export interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
3
|
+
/**
|
|
4
|
+
* Limit results to those associated with the given channels.
|
|
5
|
+
* For better performance set channel IDs instead of names.
|
|
6
|
+
*/
|
|
3
7
|
channels?: string | FilterWithLogicalOperator;
|
|
8
|
+
/**
|
|
9
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
10
|
+
*/
|
|
4
11
|
keywords?: string | FilterWithLogicalOperator;
|
|
5
12
|
}
|
package/index.d.ts
CHANGED
|
@@ -64,47 +64,6 @@ declare type ReachContextProps = {
|
|
|
64
64
|
};
|
|
65
65
|
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
66
66
|
|
|
67
|
-
interface NewsDetailProps {
|
|
68
|
-
itemId?: string;
|
|
69
|
-
hideComments?: boolean;
|
|
70
|
-
hideLikes?: boolean;
|
|
71
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
72
|
-
onChannelClick?: (channel: string) => unknown;
|
|
73
|
-
onKeywordClick?: (keyword: string) => unknown;
|
|
74
|
-
className?: string;
|
|
75
|
-
}
|
|
76
|
-
declare const NewsDetail: FC<NewsDetailProps>;
|
|
77
|
-
|
|
78
|
-
interface PageDetailProps {
|
|
79
|
-
itemId?: string;
|
|
80
|
-
hideComments?: boolean;
|
|
81
|
-
hideLikes?: boolean;
|
|
82
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
83
|
-
homeBreadcrumbTargetUrl?: string;
|
|
84
|
-
onKeywordClick?: (keyword: string) => unknown;
|
|
85
|
-
className?: string;
|
|
86
|
-
}
|
|
87
|
-
declare const PageDetail: FC<PageDetailProps>;
|
|
88
|
-
|
|
89
|
-
interface EventDetailProps {
|
|
90
|
-
itemId?: string;
|
|
91
|
-
hideComments?: boolean;
|
|
92
|
-
hideLikes?: boolean;
|
|
93
|
-
onChannelClick?: (channel: string) => unknown;
|
|
94
|
-
onKeywordClick?: (keyword: string) => unknown;
|
|
95
|
-
className?: string;
|
|
96
|
-
}
|
|
97
|
-
declare const EventDetail: FC<EventDetailProps>;
|
|
98
|
-
|
|
99
|
-
interface PostDetailProps {
|
|
100
|
-
postId: string;
|
|
101
|
-
threadId?: string;
|
|
102
|
-
onAfterDelete?: (id: string) => unknown;
|
|
103
|
-
commentCount?: number;
|
|
104
|
-
onItemClick?: (postId: string) => unknown;
|
|
105
|
-
}
|
|
106
|
-
declare const PostDetail: FC<PostDetailProps>;
|
|
107
|
-
|
|
108
67
|
interface PaginatedList<TItem> {
|
|
109
68
|
items: TItem[];
|
|
110
69
|
paginationToken?: any;
|
|
@@ -256,6 +215,31 @@ interface LanguageBase {
|
|
|
256
215
|
code: string;
|
|
257
216
|
}
|
|
258
217
|
|
|
218
|
+
interface KeywordGroup {
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
keywords: Keyword[];
|
|
222
|
+
translations: {
|
|
223
|
+
[key: string]: string;
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
interface Keyword {
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
groupId?: string;
|
|
230
|
+
translations: {
|
|
231
|
+
[key: string]: string;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface Channel {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
translations?: {
|
|
239
|
+
[key: string]: string;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
259
243
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
260
244
|
domains?: string[];
|
|
261
245
|
tenantId: string;
|
|
@@ -416,23 +400,6 @@ declare enum FieldMode {
|
|
|
416
400
|
Hidden = 3
|
|
417
401
|
}
|
|
418
402
|
|
|
419
|
-
interface KeywordGroup {
|
|
420
|
-
id: string;
|
|
421
|
-
name: string;
|
|
422
|
-
keywords: Keyword[];
|
|
423
|
-
translations: {
|
|
424
|
-
[key: string]: string;
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
interface Keyword {
|
|
428
|
-
id: string;
|
|
429
|
-
name: string;
|
|
430
|
-
groupId?: string;
|
|
431
|
-
translations: {
|
|
432
|
-
[key: string]: string;
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
|
|
436
403
|
interface ItemStatistics {
|
|
437
404
|
commentCount?: number;
|
|
438
405
|
likeCount?: number;
|
|
@@ -464,14 +431,6 @@ declare enum KnownNewsState {
|
|
|
464
431
|
Alert = 2
|
|
465
432
|
}
|
|
466
433
|
|
|
467
|
-
interface Channel {
|
|
468
|
-
id: string;
|
|
469
|
-
name: string;
|
|
470
|
-
translations?: {
|
|
471
|
-
[key: string]: string;
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
|
|
475
434
|
declare type VersionId = string;
|
|
476
435
|
interface SchedulableItem extends PublishableItem {
|
|
477
436
|
metadata?: NewsMetadata;
|
|
@@ -873,6 +832,47 @@ interface LazySubscriptionContextType extends SubscriptionData {
|
|
|
873
832
|
|
|
874
833
|
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
875
834
|
|
|
835
|
+
interface NewsDetailProps {
|
|
836
|
+
itemId?: string;
|
|
837
|
+
hideComments?: boolean;
|
|
838
|
+
hideLikes?: boolean;
|
|
839
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
840
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
841
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
842
|
+
className?: string;
|
|
843
|
+
}
|
|
844
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
845
|
+
|
|
846
|
+
interface PageDetailProps {
|
|
847
|
+
itemId?: string;
|
|
848
|
+
hideComments?: boolean;
|
|
849
|
+
hideLikes?: boolean;
|
|
850
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
851
|
+
homeBreadcrumbTargetUrl?: string;
|
|
852
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
853
|
+
className?: string;
|
|
854
|
+
}
|
|
855
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
856
|
+
|
|
857
|
+
interface EventDetailProps {
|
|
858
|
+
itemId?: string;
|
|
859
|
+
hideComments?: boolean;
|
|
860
|
+
hideLikes?: boolean;
|
|
861
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
862
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
863
|
+
className?: string;
|
|
864
|
+
}
|
|
865
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
866
|
+
|
|
867
|
+
interface PostDetailProps {
|
|
868
|
+
postId: string;
|
|
869
|
+
threadId?: string;
|
|
870
|
+
onAfterDelete?: (id: string) => unknown;
|
|
871
|
+
commentCount?: number;
|
|
872
|
+
onItemClick?: (postId: string) => unknown;
|
|
873
|
+
}
|
|
874
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
875
|
+
|
|
876
876
|
declare const LegacyDialog: FC<IDialogProps>;
|
|
877
877
|
|
|
878
878
|
interface ToolbarProps {
|
|
@@ -1139,7 +1139,7 @@ interface StreamAttachment extends BaseAttachment {
|
|
|
1139
1139
|
interface NewsStreamItem extends NewsItem {
|
|
1140
1140
|
type: StreamItemTypes.News;
|
|
1141
1141
|
contentsList: StreamPublishableItemContents[];
|
|
1142
|
-
channelsList:
|
|
1142
|
+
channelsList: Channel[];
|
|
1143
1143
|
isUnread: boolean;
|
|
1144
1144
|
keywordsList?: Keyword[];
|
|
1145
1145
|
knownNewsState?: StreamKnownNewsState[];
|
|
@@ -1151,7 +1151,7 @@ declare enum StreamKnownNewsState {
|
|
|
1151
1151
|
interface EventStreamItem extends EventItem {
|
|
1152
1152
|
type: StreamItemTypes.Event;
|
|
1153
1153
|
contentsList: StreamPublishableItemContents[];
|
|
1154
|
-
channelsList:
|
|
1154
|
+
channelsList: Channel[];
|
|
1155
1155
|
isUnread: boolean;
|
|
1156
1156
|
keywordsList?: Keyword[];
|
|
1157
1157
|
userResponseType?: StreamEventResponse;
|
|
@@ -1160,7 +1160,7 @@ interface EventStreamItem extends EventItem {
|
|
|
1160
1160
|
interface PageStreamItem extends PageItem {
|
|
1161
1161
|
type: StreamItemTypes.Page;
|
|
1162
1162
|
contentsList: StreamPublishableItemContents[];
|
|
1163
|
-
channelsList:
|
|
1163
|
+
channelsList: Channel[];
|
|
1164
1164
|
isUnread: boolean;
|
|
1165
1165
|
keywordsList?: Keyword[];
|
|
1166
1166
|
streamPageType?: string;
|
|
@@ -1219,7 +1219,14 @@ declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamF
|
|
|
1219
1219
|
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1220
1220
|
|
|
1221
1221
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1222
|
+
/**
|
|
1223
|
+
* Limit results to those associated with the given channels.
|
|
1224
|
+
* For better performance set channel IDs instead of names.
|
|
1225
|
+
*/
|
|
1222
1226
|
channels?: string | FilterWithLogicalOperator;
|
|
1227
|
+
/**
|
|
1228
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1229
|
+
*/
|
|
1223
1230
|
keywords?: string | FilterWithLogicalOperator;
|
|
1224
1231
|
}
|
|
1225
1232
|
|
|
@@ -1232,8 +1239,8 @@ interface NewsListProps {
|
|
|
1232
1239
|
searchText?: string;
|
|
1233
1240
|
itemLayoutMode?: ItemLayoutMode;
|
|
1234
1241
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1235
|
-
onChannelClick?: (
|
|
1236
|
-
onKeywordClick?: (
|
|
1242
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1243
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1237
1244
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1238
1245
|
hidePagination?: boolean;
|
|
1239
1246
|
pageSize?: number;
|
|
@@ -1250,6 +1257,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1250
1257
|
interface ChannelSelectorWrapperProps {
|
|
1251
1258
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1252
1259
|
showLogicalOperatorOptions?: boolean;
|
|
1260
|
+
/**
|
|
1261
|
+
* For better performance set channel IDs instead of names.
|
|
1262
|
+
*/
|
|
1253
1263
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1254
1264
|
className?: string;
|
|
1255
1265
|
}
|
|
@@ -1266,8 +1276,8 @@ interface NewsGridProps {
|
|
|
1266
1276
|
maxColumnCount?: number;
|
|
1267
1277
|
rowCount?: number;
|
|
1268
1278
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1269
|
-
onChannelClick?: (
|
|
1270
|
-
onKeywordClick?: (
|
|
1279
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1280
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1271
1281
|
includeAllItems?: boolean;
|
|
1272
1282
|
className?: string;
|
|
1273
1283
|
hideIntro?: boolean;
|
|
@@ -1286,7 +1296,7 @@ interface EventGridProps {
|
|
|
1286
1296
|
maxColumnCount?: number;
|
|
1287
1297
|
rowCount?: number;
|
|
1288
1298
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1289
|
-
onChannelClick?: (
|
|
1299
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1290
1300
|
className?: string;
|
|
1291
1301
|
}
|
|
1292
1302
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1297,7 +1307,7 @@ interface EventsListProps {
|
|
|
1297
1307
|
searchText?: string;
|
|
1298
1308
|
itemLayoutMode?: ItemLayoutMode;
|
|
1299
1309
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1300
|
-
onChannelClick?: (
|
|
1310
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1301
1311
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1302
1312
|
hidePagination?: boolean;
|
|
1303
1313
|
pageSize?: number;
|
|
@@ -1306,7 +1316,14 @@ interface EventsListProps {
|
|
|
1306
1316
|
declare const EventsList: FC<EventsListProps>;
|
|
1307
1317
|
|
|
1308
1318
|
interface NewsHeroFilterProps {
|
|
1319
|
+
/**
|
|
1320
|
+
* Limit results to those associated with the given channels.
|
|
1321
|
+
* For better performance set channel IDs instead of names.
|
|
1322
|
+
*/
|
|
1309
1323
|
channels?: string | FilterWithLogicalOperator;
|
|
1324
|
+
/**
|
|
1325
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1326
|
+
*/
|
|
1310
1327
|
keywords?: string | FilterWithLogicalOperator;
|
|
1311
1328
|
pageSize?: number;
|
|
1312
1329
|
}
|
|
@@ -1318,8 +1335,8 @@ interface NewsHeroProps {
|
|
|
1318
1335
|
width?: number | string;
|
|
1319
1336
|
height?: number | string;
|
|
1320
1337
|
includeAllItems?: boolean;
|
|
1321
|
-
onChannelClick?: (
|
|
1322
|
-
onKeywordClick?: (
|
|
1338
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1339
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1323
1340
|
showKeywords?: boolean;
|
|
1324
1341
|
}
|
|
1325
1342
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
@@ -1402,6 +1419,9 @@ interface FilterProps {
|
|
|
1402
1419
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1403
1420
|
|
|
1404
1421
|
interface ChannelFilterProps {
|
|
1422
|
+
/**
|
|
1423
|
+
* For better performance set channel IDs instead of names.
|
|
1424
|
+
*/
|
|
1405
1425
|
channels?: string[];
|
|
1406
1426
|
className?: string;
|
|
1407
1427
|
}
|
|
@@ -1550,7 +1570,7 @@ interface PagesGridProps {
|
|
|
1550
1570
|
maxColumnCount?: number;
|
|
1551
1571
|
rowCount?: number;
|
|
1552
1572
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1553
|
-
onKeywordClick?: (
|
|
1573
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1554
1574
|
hideIntro?: boolean;
|
|
1555
1575
|
className?: string;
|
|
1556
1576
|
}
|
|
@@ -1561,7 +1581,7 @@ interface PagesListProps {
|
|
|
1561
1581
|
searchText?: string;
|
|
1562
1582
|
itemLayoutMode?: ItemLayoutMode;
|
|
1563
1583
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1564
|
-
onKeywordClick?: (
|
|
1584
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1565
1585
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1566
1586
|
hidePagination?: boolean;
|
|
1567
1587
|
pageSize?: number;
|