@livetiles/reach-components-react 0.5.0-preview.139 → 0.5.0-preview.1390
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/AnalyticsDummyContextProvider.d.ts +2 -0
- package/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/CompactLayoutList.d.ts +2 -1
- package/EmojiPicker.esm.esm.js +1 -1
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +10 -1
- package/EventGridCard.d.ts +8 -6
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +10 -7
- package/ManageChannels.d.ts +1 -0
- package/NewsDetail.d.ts +5 -0
- package/NewsDetailViewMetaInfo.d.ts +4 -1
- package/NewsGrid.d.ts +4 -3
- package/NewsGridCard.d.ts +8 -6
- package/NewsHero.d.ts +19 -8
- package/NewsList.d.ts +8 -3
- package/PageDetail.d.ts +9 -1
- package/PageGridCard.d.ts +3 -2
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +2 -2
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +9 -6
- package/PostListContextProvider.d.ts +12 -11
- package/PublishableItemCompactCard.d.ts +6 -1
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +19 -3
- package/SharedItemDetailPreview.d.ts +16 -0
- package/ToolbarBookmarkButton.d.ts +4 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/{ToolbarManageNewsItemButton.d.ts → ToolbarManageItemButton.d.ts} +3 -0
- package/ar-dz.async.esm.esm.js +1 -1
- package/ar-ma.async.esm.esm.js +1 -1
- package/ar-sa.async.esm.esm.js +1 -1
- package/ar-tn.async.esm.esm.js +1 -1
- package/ar.async.esm.esm.js +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-3044a81d.esm.js +1 -0
- package/bg.async.esm.esm.js +1 -1
- package/bn.async.esm.esm.js +1 -1
- package/ca.async.esm.esm.js +1 -1
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/FilterCalloutButton.d.ts +5 -5
- package/common/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/common/hero/Hero.d.ts +17 -18
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +30 -13
- package/common/hooks/useBannerOnResize.d.ts +5 -0
- package/common/utils.d.ts +1 -3
- package/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/PageEditorContextProvider.d.ts +1 -0
- package/el.async.esm.esm.js +1 -1
- package/en-au.async.esm.esm.js +1 -1
- package/en-ca.async.esm.esm.js +1 -1
- package/en-gb.async.esm.esm.js +1 -1
- package/en-ie.async.esm.esm.js +1 -1
- package/en-nz.async.esm.esm.js +1 -1
- package/en-us.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/et.async.esm.esm.js +1 -1
- package/fa-ir.async.esm.esm.js +1 -1
- package/fi.async.esm.esm.js +1 -1
- package/fr-ca.async.esm.esm.js +1 -1
- package/fr-ch.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/gu.async.esm.esm.js +1 -1
- package/he.async.esm.esm.js +1 -1
- package/hi.async.esm.esm.js +1 -1
- package/hr.async.esm.esm.js +1 -1
- package/hu.async.esm.esm.js +1 -1
- package/id.async.esm.esm.js +1 -1
- package/index-28074e12.esm.js +1 -0
- package/index-5e113ba7.esm.js +790 -0
- package/index-6542329b.esm.js +1 -0
- package/index-788b2f42.esm.js +1 -0
- package/index-904b1d06.esm.js +1 -0
- package/index-b417cb34.esm.js +1 -0
- package/index.d.ts +434 -180
- package/index.esm.js +1 -1
- package/index.esm2.js +37 -22
- package/index.esm4.js +1 -1
- package/index.esm5.js +1 -0
- package/index.esm6.js +1 -0
- package/index.esm7.js +1 -0
- package/index.esm8.js +1 -0
- package/index.umd-c9cf1445.esm.js +1 -0
- package/index.umd.js +830 -26
- package/is-plan-event-enabled-d9660f36.esm.js +1 -0
- package/it-ch.async.esm.esm.js +1 -1
- package/it.async.esm.esm.js +1 -1
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/kn.async.esm.esm.js +1 -1
- package/ko.async.esm.esm.js +1 -1
- package/lt.async.esm.esm.js +1 -1
- package/lv.async.esm.esm.js +1 -1
- package/mllike.esm.js +1 -0
- package/ms.async.esm.esm.js +1 -1
- package/nb.async.esm.esm.js +1 -1
- package/nl-be.async.esm.esm.js +1 -1
- package/nl.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/pl.async.esm.esm.js +1 -1
- package/pt-br.async.esm.esm.js +1 -1
- package/pt.async.esm.esm.js +1 -1
- package/python.esm.js +1 -0
- package/ro.async.esm.esm.js +1 -1
- package/rpm.esm.js +1 -0
- package/ru.async.esm.esm.js +1 -1
- package/sk.async.esm.esm.js +1 -1
- package/skeletons/CompactListShimmer.d.ts +7 -0
- package/skeletons/EventGridShimmerItem.d.ts +2 -0
- package/skeletons/EventShimmerListItem.d.ts +4 -0
- package/skeletons/ListShimmer.d.ts +7 -0
- package/skeletons/NewsGridShimmerItem.d.ts +4 -0
- package/skeletons/NewsHeroShimmer.d.ts +6 -0
- package/skeletons/NewsShimmerListItem.d.ts +4 -0
- package/skeletons/PageGridShimmerItem.d.ts +4 -0
- package/skeletons/PageShimmerListItem.d.ts +4 -0
- package/skeletons/PublishableItemGridShimmer.d.ts +9 -0
- package/skeletons/utils.d.ts +1 -0
- package/sl.async.esm.esm.js +1 -1
- package/sql.esm.js +1 -0
- package/sr-latn.async.esm.esm.js +1 -1
- package/sr.async.esm.esm.js +1 -1
- package/sv.async.esm.esm.js +1 -1
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-hk.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/MemoryCache.d.ts +0 -13
- package/NewsDetailPreview.d.ts +0 -7
- package/ar-dz.async.esm2.esm.js +0 -1
- package/ar-kw.async.esm.esm.js +0 -1
- package/ar-ly.async.esm.esm.js +0 -1
- package/ar-ma.async.esm2.esm.js +0 -1
- package/ar-sa.async.esm2.esm.js +0 -1
- package/ar.esm.js +0 -1
- package/bg.async.esm2.esm.js +0 -1
- package/bn.async.esm2.esm.js +0 -1
- package/ca.async.esm2.esm.js +0 -1
- package/cs.async.esm2.esm.js +0 -1
- package/da.async.esm3.esm.js +0 -1
- package/da.esm.js +0 -1
- package/de-ch.async.esm.esm.js +0 -1
- package/de.async.esm3.esm.js +0 -1
- package/de.esm.js +0 -1
- package/el.async.esm2.esm.js +0 -1
- package/en-au.async.esm2.esm.js +0 -1
- package/en-ca.async.esm2.esm.js +0 -1
- package/en-gb.async.esm2.esm.js +0 -1
- package/en-il.async.esm.esm.js +0 -1
- package/en-nz.async.esm2.esm.js +0 -1
- package/en-sg.async.esm.esm.js +0 -1
- package/en.esm.js +0 -1
- package/es-do.async.esm.esm.js +0 -1
- package/es-us.async.esm.esm.js +0 -1
- package/es.async.esm3.esm.js +0 -1
- package/es.esm.js +0 -1
- package/et.async.esm2.esm.js +0 -1
- package/fa.async.esm.esm.js +0 -1
- package/fi.async.esm2.esm.js +0 -1
- package/fr-ca.async.esm2.esm.js +0 -1
- package/fr-ch.async.esm2.esm.js +0 -1
- package/fr.async.esm3.esm.js +0 -1
- package/fr.esm.js +0 -1
- package/gu.async.esm2.esm.js +0 -1
- package/he.async.esm2.esm.js +0 -1
- package/hi.async.esm2.esm.js +0 -1
- package/hr.async.esm2.esm.js +0 -1
- package/hu.async.esm2.esm.js +0 -1
- package/id.async.esm2.esm.js +0 -1
- package/it.async.esm3.esm.js +0 -1
- package/it.esm.js +0 -1
- package/ja.async.esm3.esm.js +0 -1
- package/ja.esm.js +0 -1
- package/kn.async.esm2.esm.js +0 -1
- package/ko.async.esm2.esm.js +0 -1
- package/lt.async.esm2.esm.js +0 -1
- package/lv.async.esm2.esm.js +0 -1
- package/ml.async.esm.esm.js +0 -1
- package/mr.async.esm.esm.js +0 -1
- package/ms-my.async.esm.esm.js +0 -1
- package/ms.async.esm2.esm.js +0 -1
- package/ms.esm.js +0 -1
- package/nb.async.esm2.esm.js +0 -1
- package/nl-be.async.esm2.esm.js +0 -1
- package/nl.async.esm2.esm.js +0 -1
- package/nl.esm.js +0 -1
- package/pl.async.esm2.esm.js +0 -1
- package/pt-br.async.esm2.esm.js +0 -1
- package/pt.async.esm2.esm.js +0 -1
- package/pt.esm.js +0 -1
- package/ro.async.esm2.esm.js +0 -1
- package/ru.async.esm2.esm.js +0 -1
- package/sk.async.esm2.esm.js +0 -1
- package/sl.async.esm2.esm.js +0 -1
- package/sr-cyrl.async.esm.esm.js +0 -1
- package/sr.async.esm2.esm.js +0 -1
- package/sr.esm.js +0 -1
- package/sv.async.esm2.esm.js +0 -1
- package/sw.async.esm.esm.js +0 -1
- package/ta.async.esm2.esm.js +0 -1
- package/te.async.esm2.esm.js +0 -1
- package/th.async.esm2.esm.js +0 -1
- package/tr.async.esm3.esm.js +0 -1
- package/tr.esm.js +0 -1
- package/uk.async.esm2.esm.js +0 -1
- package/vi.async.esm2.esm.js +0 -1
- package/zh-cn.async.esm3.esm.js +0 -1
- package/zh-tw.async.esm3.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode, MouseEvent } from 'react';
|
|
2
3
|
import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
|
|
3
4
|
import * as styled_components from 'styled-components';
|
|
4
5
|
|
|
5
|
-
declare type ReachContextProps = {
|
|
6
|
-
config?: {
|
|
7
|
-
apiEndpoint?: string;
|
|
8
|
-
webAppUrl?: string;
|
|
9
|
-
api3Endpoint?: string;
|
|
10
|
-
webSocketsEndpoint?: string;
|
|
11
|
-
};
|
|
12
|
-
onRequestToken?: () => Promise<string>;
|
|
13
|
-
subscriptionId: string;
|
|
14
|
-
language?: string;
|
|
15
|
-
disableUiFabricThemeOverwrite?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
18
|
-
|
|
19
|
-
interface NewsDetailProps {
|
|
20
|
-
itemId?: string;
|
|
21
|
-
hideComments?: boolean;
|
|
22
|
-
hideLikes?: boolean;
|
|
23
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
declare const NewsDetail: FC<NewsDetailProps>;
|
|
27
|
-
|
|
28
|
-
interface PageDetailProps {
|
|
29
|
-
itemId: string;
|
|
30
|
-
hideComments?: boolean;
|
|
31
|
-
hideLikes?: boolean;
|
|
32
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
33
|
-
homeBreadcrumbTargetUrl?: string;
|
|
34
|
-
className?: string;
|
|
35
|
-
}
|
|
36
|
-
declare const PageDetail: FC<PageDetailProps>;
|
|
37
|
-
|
|
38
|
-
interface EventDetailProps {
|
|
39
|
-
itemId: string;
|
|
40
|
-
hideComments?: boolean;
|
|
41
|
-
hideLikes?: boolean;
|
|
42
|
-
className?: string;
|
|
43
|
-
}
|
|
44
|
-
declare const EventDetail: FC<EventDetailProps>;
|
|
45
|
-
|
|
46
|
-
interface PostDetailProps {
|
|
47
|
-
postId: string;
|
|
48
|
-
threadId?: string;
|
|
49
|
-
onAfterDelete?: (id: string) => unknown;
|
|
50
|
-
commentCount?: number;
|
|
51
|
-
onItemClick?: (postId: string) => unknown;
|
|
52
|
-
}
|
|
53
|
-
declare const PostDetail: FC<PostDetailProps>;
|
|
54
|
-
|
|
55
|
-
interface PaginatedList<TItem> {
|
|
56
|
-
items: TItem[];
|
|
57
|
-
paginationToken?: any;
|
|
58
|
-
nextItem?: TItem;
|
|
59
|
-
hasMoreUnreadComments?: boolean;
|
|
60
|
-
hasNextPage?: boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
6
|
declare enum AuthenticationType {
|
|
64
7
|
unknown = 0,
|
|
65
8
|
azuread = 1,
|
|
@@ -85,6 +28,53 @@ interface IdentityProviderSettings {
|
|
|
85
28
|
realm: string;
|
|
86
29
|
url: string;
|
|
87
30
|
scope: string;
|
|
31
|
+
idpIdentifier?: string;
|
|
32
|
+
openIdTokenEndPoint: string;
|
|
33
|
+
openIdAuthorizeEndPoint: string;
|
|
34
|
+
openIdLogoutEndPoint: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface VideoSource$1 {
|
|
38
|
+
prefix: string;
|
|
39
|
+
name: string;
|
|
40
|
+
alwaysShowPlayer?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare type ReachContextProps = {
|
|
44
|
+
/**
|
|
45
|
+
* These properties can be used to define the behavior of the analytics module.
|
|
46
|
+
*
|
|
47
|
+
* With `disableAnalytics` you can completely disable all analytics tracking.
|
|
48
|
+
* The `appName` is optional but highly encouraged to be set,
|
|
49
|
+
* in order to know where the components are used in. The value must be a non-empty string,
|
|
50
|
+
* only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
|
|
51
|
+
*/
|
|
52
|
+
analyticsProps?: {
|
|
53
|
+
appName?: string;
|
|
54
|
+
disableAnalytics?: boolean;
|
|
55
|
+
};
|
|
56
|
+
config?: {
|
|
57
|
+
additionalVideoSources?: VideoSource$1[];
|
|
58
|
+
api3Endpoint?: string;
|
|
59
|
+
apiEndpoint?: string;
|
|
60
|
+
webAppUrl?: string;
|
|
61
|
+
webSocketsEndpoint?: string;
|
|
62
|
+
};
|
|
63
|
+
disableUiFabricThemeOverwrite?: boolean;
|
|
64
|
+
language?: string;
|
|
65
|
+
languageFallback?: 'browser' | 'default';
|
|
66
|
+
locale?: string;
|
|
67
|
+
onRequestToken?: () => Promise<string>;
|
|
68
|
+
subscriptionId: string;
|
|
69
|
+
};
|
|
70
|
+
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
71
|
+
|
|
72
|
+
interface PaginatedList<TItem> {
|
|
73
|
+
items: TItem[];
|
|
74
|
+
paginationToken?: any;
|
|
75
|
+
nextItem?: TItem;
|
|
76
|
+
hasMoreUnreadComments?: boolean;
|
|
77
|
+
hasNextPage?: boolean;
|
|
88
78
|
}
|
|
89
79
|
|
|
90
80
|
interface Resources {
|
|
@@ -190,6 +180,7 @@ interface CurrentUser extends Account {
|
|
|
190
180
|
termsAndConditionsApprovedHash: string;
|
|
191
181
|
isPublicUser?: boolean;
|
|
192
182
|
hasUnreadChats?: boolean;
|
|
183
|
+
publicSubscriptionIds?: string[];
|
|
193
184
|
}
|
|
194
185
|
interface UserContact {
|
|
195
186
|
tokenUniqueId: string;
|
|
@@ -229,6 +220,39 @@ interface LanguageBase {
|
|
|
229
220
|
code: string;
|
|
230
221
|
}
|
|
231
222
|
|
|
223
|
+
interface KeywordGroup {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
keywords: Keyword[];
|
|
227
|
+
translations: {
|
|
228
|
+
[key: string]: string;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
interface Keyword {
|
|
232
|
+
id: string;
|
|
233
|
+
name: string;
|
|
234
|
+
groupId?: string;
|
|
235
|
+
translations: {
|
|
236
|
+
[key: string]: string;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
interface Channel {
|
|
241
|
+
id: string;
|
|
242
|
+
name: string;
|
|
243
|
+
translations?: {
|
|
244
|
+
[key: string]: string;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare enum ItemResourceTypes {
|
|
249
|
+
News = "news",
|
|
250
|
+
Pages = "pages",
|
|
251
|
+
Posts = "posts",
|
|
252
|
+
Events = "events",
|
|
253
|
+
Comments = "comments"
|
|
254
|
+
}
|
|
255
|
+
|
|
232
256
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
233
257
|
domains?: string[];
|
|
234
258
|
tenantId: string;
|
|
@@ -287,6 +311,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
287
311
|
customDomain?: string;
|
|
288
312
|
allowSelfRegistration?: boolean;
|
|
289
313
|
brandFolderConfig?: BrandFolderConfig;
|
|
314
|
+
hideSubscriptionName?: boolean;
|
|
290
315
|
}
|
|
291
316
|
interface BrandFolderConfig {
|
|
292
317
|
sections?: string[];
|
|
@@ -322,7 +347,9 @@ declare enum ExtensionArea {
|
|
|
322
347
|
page = "Page",
|
|
323
348
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
324
349
|
eventDetailViewSection = "EventDetailViewSection",
|
|
325
|
-
itemEditor = "ItemEditor"
|
|
350
|
+
itemEditor = "ItemEditor",
|
|
351
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
352
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
326
353
|
}
|
|
327
354
|
declare type InlinePlugin = {
|
|
328
355
|
area: ExtensionArea.itemEditor;
|
|
@@ -386,23 +413,6 @@ declare enum FieldMode {
|
|
|
386
413
|
Hidden = 3
|
|
387
414
|
}
|
|
388
415
|
|
|
389
|
-
interface Channel {
|
|
390
|
-
id: string;
|
|
391
|
-
name: string;
|
|
392
|
-
translations?: {
|
|
393
|
-
[key: string]: string;
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
interface Keyword {
|
|
398
|
-
id: string;
|
|
399
|
-
name: string;
|
|
400
|
-
groupId?: string;
|
|
401
|
-
translations: {
|
|
402
|
-
[key: string]: string;
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
|
|
406
416
|
interface ItemStatistics {
|
|
407
417
|
commentCount?: number;
|
|
408
418
|
likeCount?: number;
|
|
@@ -437,7 +447,7 @@ declare enum KnownNewsState {
|
|
|
437
447
|
declare type VersionId = string;
|
|
438
448
|
interface SchedulableItem extends PublishableItem {
|
|
439
449
|
metadata?: NewsMetadata;
|
|
440
|
-
channels?:
|
|
450
|
+
channels?: Channel[];
|
|
441
451
|
}
|
|
442
452
|
interface NewsItem extends SchedulableItem {
|
|
443
453
|
source?: string;
|
|
@@ -446,19 +456,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
446
456
|
knownState: KnownNewsState;
|
|
447
457
|
hasNewComments?: boolean;
|
|
448
458
|
isLiked?: boolean;
|
|
449
|
-
shareToken?: ShareToken;
|
|
450
|
-
}
|
|
451
|
-
interface ShareToken {
|
|
452
|
-
published?: string;
|
|
453
|
-
preview?: string;
|
|
454
459
|
}
|
|
455
460
|
interface NewsItemAlertOptions {
|
|
456
461
|
duration?: string;
|
|
457
462
|
endDate?: Date;
|
|
458
463
|
expireAfter?: boolean;
|
|
459
|
-
}
|
|
460
|
-
interface SchedulableItemChannel {
|
|
461
|
-
name: string;
|
|
462
464
|
}
|
|
463
465
|
|
|
464
466
|
declare enum VideoSource {
|
|
@@ -473,19 +475,6 @@ interface BaseItem {
|
|
|
473
475
|
id?: string;
|
|
474
476
|
statistics?: ItemStatistics;
|
|
475
477
|
poll?: Poll;
|
|
476
|
-
searchHighlights?: SearchHighlightSummary;
|
|
477
|
-
}
|
|
478
|
-
interface SearchHighlightSummary {
|
|
479
|
-
title: SearchHighlight[];
|
|
480
|
-
content: SearchHighlight[];
|
|
481
|
-
}
|
|
482
|
-
interface SearchHighlight {
|
|
483
|
-
language: string;
|
|
484
|
-
texts: {
|
|
485
|
-
value: string;
|
|
486
|
-
type: 'text' | 'hit';
|
|
487
|
-
}[];
|
|
488
|
-
score: number;
|
|
489
478
|
}
|
|
490
479
|
interface Poll {
|
|
491
480
|
questions: PollQuestion[];
|
|
@@ -495,12 +484,14 @@ interface PollQuestion extends PollQuestionSettings {
|
|
|
495
484
|
choices: PollQuestionChoice[];
|
|
496
485
|
}
|
|
497
486
|
interface PollQuestionSettings {
|
|
487
|
+
allowOtherAnswer?: boolean;
|
|
498
488
|
isMultiChoice?: boolean;
|
|
499
489
|
}
|
|
500
490
|
interface PollQuestionChoice {
|
|
501
491
|
choiceId: string;
|
|
502
492
|
description?: string;
|
|
503
493
|
disabled?: boolean;
|
|
494
|
+
isOther?: boolean;
|
|
504
495
|
}
|
|
505
496
|
|
|
506
497
|
declare enum WorkflowStatus {
|
|
@@ -520,6 +511,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
520
511
|
headline?: string;
|
|
521
512
|
intro?: string;
|
|
522
513
|
body?: string;
|
|
514
|
+
bodyRaw?: string;
|
|
523
515
|
customProperties?: {
|
|
524
516
|
[key: string]: any;
|
|
525
517
|
};
|
|
@@ -595,6 +587,7 @@ interface QuestionTranslations {
|
|
|
595
587
|
}
|
|
596
588
|
interface ChoiceTranslations {
|
|
597
589
|
choiceId: string;
|
|
590
|
+
isOther: boolean;
|
|
598
591
|
text: string;
|
|
599
592
|
}
|
|
600
593
|
|
|
@@ -609,7 +602,8 @@ declare enum AttachmentType {
|
|
|
609
602
|
Event = 5,
|
|
610
603
|
Page = 6,
|
|
611
604
|
Post = 7,
|
|
612
|
-
Giphy = 8
|
|
605
|
+
Giphy = 8,
|
|
606
|
+
MicrosoftStreamVideo = 9
|
|
613
607
|
}
|
|
614
608
|
interface BaseAttachment {
|
|
615
609
|
id: string;
|
|
@@ -625,6 +619,19 @@ interface Attachment extends BaseAttachment {
|
|
|
625
619
|
type: AttachmentType;
|
|
626
620
|
}
|
|
627
621
|
|
|
622
|
+
declare enum GraphQLAttachmentType {
|
|
623
|
+
Image = "IMAGE",
|
|
624
|
+
File = "FILE",
|
|
625
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
626
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
627
|
+
News = "NEWS",
|
|
628
|
+
Event = "EVENT",
|
|
629
|
+
Page = "PAGE",
|
|
630
|
+
Post = "POST",
|
|
631
|
+
Giphy = "GIPHY",
|
|
632
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
633
|
+
}
|
|
634
|
+
|
|
628
635
|
interface ItemWithAttachments {
|
|
629
636
|
attachments?: Attachment[];
|
|
630
637
|
fileAccessToken?: string;
|
|
@@ -657,18 +664,11 @@ declare enum ConversationScope {
|
|
|
657
664
|
Posts = 2
|
|
658
665
|
}
|
|
659
666
|
|
|
660
|
-
declare enum ItemResourceTypes {
|
|
661
|
-
News = "news",
|
|
662
|
-
Pages = "pages",
|
|
663
|
-
Posts = "posts",
|
|
664
|
-
Events = "events",
|
|
665
|
-
Comments = "comments"
|
|
666
|
-
}
|
|
667
|
-
|
|
668
667
|
declare enum EventResponse {
|
|
669
668
|
NotSet = 0,
|
|
670
669
|
Registered = 1,
|
|
671
|
-
Declined = 2
|
|
670
|
+
Declined = 2,
|
|
671
|
+
WaitingList = 3
|
|
672
672
|
}
|
|
673
673
|
interface EventItem extends SchedulableItem {
|
|
674
674
|
startDate?: string;
|
|
@@ -685,8 +685,10 @@ interface EventItem extends SchedulableItem {
|
|
|
685
685
|
recurrenceSeriesId?: string;
|
|
686
686
|
isSeriesMaster?: string;
|
|
687
687
|
isVirtual?: boolean;
|
|
688
|
+
isAllDayEvent?: boolean;
|
|
688
689
|
}
|
|
689
690
|
interface EventRegistrationSettings {
|
|
691
|
+
enableWaitingList?: boolean;
|
|
690
692
|
enabled?: boolean;
|
|
691
693
|
showParticipantsToEverybody?: boolean;
|
|
692
694
|
deadline?: string;
|
|
@@ -774,6 +776,7 @@ interface PageItem extends PublishableItem {
|
|
|
774
776
|
isUnlinked?: boolean;
|
|
775
777
|
pageType?: PageType;
|
|
776
778
|
firstChildId?: string;
|
|
779
|
+
isGroupInheritanceBroken?: boolean;
|
|
777
780
|
}
|
|
778
781
|
interface ContentsSummary {
|
|
779
782
|
[lang: string]: TitleContent & {
|
|
@@ -795,6 +798,7 @@ interface PageNavigationNode {
|
|
|
795
798
|
hasAnyPageChild?: boolean;
|
|
796
799
|
pageType?: PageType;
|
|
797
800
|
useExternalContent?: boolean;
|
|
801
|
+
isGroupInheritanceBroken?: boolean;
|
|
798
802
|
isSearchMatch?: boolean;
|
|
799
803
|
topLevelFolderName?: string;
|
|
800
804
|
uploadToken?: string;
|
|
@@ -809,6 +813,64 @@ declare enum PageType {
|
|
|
809
813
|
Document = 1
|
|
810
814
|
}
|
|
811
815
|
|
|
816
|
+
declare type KeywordsByGroupId = {
|
|
817
|
+
[key: string]: Keyword[];
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
interface SubscriptionData {
|
|
821
|
+
channels?: Channel[];
|
|
822
|
+
allKeywords?: Keyword[];
|
|
823
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
824
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
825
|
+
}
|
|
826
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
827
|
+
getChannels: () => Promise<Channel[]>;
|
|
828
|
+
refreshSubscription: () => void;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
832
|
+
|
|
833
|
+
interface NewsDetailProps {
|
|
834
|
+
itemId?: string;
|
|
835
|
+
hideComments?: boolean;
|
|
836
|
+
hideLikes?: boolean;
|
|
837
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
838
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
839
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
840
|
+
className?: string;
|
|
841
|
+
}
|
|
842
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
843
|
+
|
|
844
|
+
interface PageDetailProps {
|
|
845
|
+
itemId?: string;
|
|
846
|
+
hideComments?: boolean;
|
|
847
|
+
hideLikes?: boolean;
|
|
848
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
849
|
+
homeBreadcrumbTargetUrl?: string;
|
|
850
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
851
|
+
className?: string;
|
|
852
|
+
}
|
|
853
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
854
|
+
|
|
855
|
+
interface EventDetailProps {
|
|
856
|
+
itemId?: string;
|
|
857
|
+
hideComments?: boolean;
|
|
858
|
+
hideLikes?: boolean;
|
|
859
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
860
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
861
|
+
className?: string;
|
|
862
|
+
}
|
|
863
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
864
|
+
|
|
865
|
+
interface PostDetailProps {
|
|
866
|
+
postId: string;
|
|
867
|
+
threadId?: string;
|
|
868
|
+
onAfterDelete?: (id: string) => unknown;
|
|
869
|
+
commentCount?: number;
|
|
870
|
+
onItemClick?: (postId: string) => unknown;
|
|
871
|
+
}
|
|
872
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
873
|
+
|
|
812
874
|
declare const Dialog: FC<IDialogProps>;
|
|
813
875
|
|
|
814
876
|
interface ToolbarProps {
|
|
@@ -826,15 +888,21 @@ interface ToolbarSearchProps {
|
|
|
826
888
|
}
|
|
827
889
|
declare const Toolbar: FC<ToolbarProps>;
|
|
828
890
|
|
|
891
|
+
declare type TokenType = string | number;
|
|
892
|
+
|
|
893
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
894
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
895
|
+
}
|
|
896
|
+
|
|
829
897
|
interface ToolbarChannelSelectorProps {
|
|
830
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
831
898
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
899
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
832
900
|
channelsOptions?: {
|
|
833
901
|
availableChannels?: string[];
|
|
834
902
|
onSelected?: (channel: Channel) => unknown;
|
|
835
903
|
to?: (channel: Channel) => unknown;
|
|
836
904
|
};
|
|
837
|
-
|
|
905
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
838
906
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
839
907
|
}
|
|
840
908
|
interface ToolbarChannelSelectorOption {
|
|
@@ -871,6 +939,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
871
939
|
onClick: () => unknown;
|
|
872
940
|
}>;
|
|
873
941
|
|
|
942
|
+
declare const ToolbarManageButton: FC<{
|
|
943
|
+
onClick?: () => unknown;
|
|
944
|
+
to?: {
|
|
945
|
+
url: string;
|
|
946
|
+
target?: string;
|
|
947
|
+
};
|
|
948
|
+
disabled?: boolean;
|
|
949
|
+
}>;
|
|
950
|
+
|
|
874
951
|
interface ToolbarCloseButtonProps {
|
|
875
952
|
onClick?: () => unknown;
|
|
876
953
|
to?: {
|
|
@@ -883,11 +960,15 @@ declare const ToolbarCloseButton: FC<ToolbarCloseButtonProps>;
|
|
|
883
960
|
declare enum EventView {
|
|
884
961
|
UpcomingEvents = "upcoming",
|
|
885
962
|
MyBookedEvents = "booked",
|
|
963
|
+
UnregisteredEvents = "unregistered",
|
|
886
964
|
PastEvents = "past"
|
|
887
965
|
}
|
|
888
966
|
interface ToolbarEventViewSelectorProps {
|
|
889
|
-
|
|
967
|
+
extraViewOptions?: {
|
|
968
|
+
showUnregisteredEventsView?: boolean;
|
|
969
|
+
};
|
|
890
970
|
onChange?: (view: EventView) => void;
|
|
971
|
+
value?: EventView;
|
|
891
972
|
viewOptions?: {
|
|
892
973
|
hideUpcomingEventsView?: boolean;
|
|
893
974
|
hideMyBookedEventsView?: boolean;
|
|
@@ -899,8 +980,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
899
980
|
interface Props extends IPersonaProps {
|
|
900
981
|
upn: string;
|
|
901
982
|
tenantId?: string;
|
|
902
|
-
className?: string;
|
|
903
983
|
displayName?: string;
|
|
984
|
+
forceShowSecondaryText?: boolean;
|
|
985
|
+
className?: string;
|
|
904
986
|
}
|
|
905
987
|
declare const Avatar: FC<Props>;
|
|
906
988
|
|
|
@@ -911,6 +993,13 @@ interface UserDetailsProps {
|
|
|
911
993
|
}
|
|
912
994
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
913
995
|
|
|
996
|
+
declare enum ErrorType {
|
|
997
|
+
GenericError = "genericError",
|
|
998
|
+
Error404 = "error404",
|
|
999
|
+
Error403 = "error403",
|
|
1000
|
+
LoginError = "loginError"
|
|
1001
|
+
}
|
|
1002
|
+
|
|
914
1003
|
interface PageViewTrackerSettings {
|
|
915
1004
|
disabled?: boolean;
|
|
916
1005
|
}
|
|
@@ -957,6 +1046,32 @@ declare enum LogicalOperator {
|
|
|
957
1046
|
And = "AND"
|
|
958
1047
|
}
|
|
959
1048
|
|
|
1049
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1050
|
+
id: string;
|
|
1051
|
+
comments?: PaginatedList<Comment>;
|
|
1052
|
+
groupId: string;
|
|
1053
|
+
content: string;
|
|
1054
|
+
permalink?: string;
|
|
1055
|
+
author: Account;
|
|
1056
|
+
publishingDate: string;
|
|
1057
|
+
modified?: string;
|
|
1058
|
+
statistics: ItemStatistics;
|
|
1059
|
+
keywords?: {
|
|
1060
|
+
[key: string]: Keyword[];
|
|
1061
|
+
};
|
|
1062
|
+
contentLanguageCode?: string;
|
|
1063
|
+
isLiked?: boolean;
|
|
1064
|
+
isUnread?: boolean;
|
|
1065
|
+
isDemoContent?: boolean;
|
|
1066
|
+
isFollowing?: boolean;
|
|
1067
|
+
}
|
|
1068
|
+
interface PostFilterDefinition {
|
|
1069
|
+
token?: string;
|
|
1070
|
+
pageSize?: string;
|
|
1071
|
+
search?: string;
|
|
1072
|
+
keywords?: FilterWithLogicalOperator;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
960
1075
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
961
1076
|
author?: string;
|
|
962
1077
|
}
|
|
@@ -965,6 +1080,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
965
1080
|
channels?: FilterWithLogicalOperator;
|
|
966
1081
|
}
|
|
967
1082
|
|
|
1083
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1084
|
+
contacts?: string[];
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1088
|
+
startsAfter?: string;
|
|
1089
|
+
startsBefore?: string;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1093
|
+
excludePastEvents?: boolean;
|
|
1094
|
+
pastEventsOnly?: boolean;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
968
1097
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
969
1098
|
state?: WorkflowStatus;
|
|
970
1099
|
}
|
|
@@ -976,29 +1105,94 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
976
1105
|
includeExpired?: boolean;
|
|
977
1106
|
}
|
|
978
1107
|
|
|
1108
|
+
declare enum StreamEventResponse {
|
|
1109
|
+
NotSet = "NOT_SET",
|
|
1110
|
+
Registered = "REGISTERED",
|
|
1111
|
+
WaitingList = "WAITING_LIST",
|
|
1112
|
+
Declined = "DECLINED"
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
declare enum StreamItemTypes {
|
|
1116
|
+
Post = "POST",
|
|
1117
|
+
News = "NEWS",
|
|
1118
|
+
Event = "EVENT",
|
|
1119
|
+
Page = "PAGE"
|
|
1120
|
+
}
|
|
1121
|
+
declare enum StreamConversationScope {
|
|
1122
|
+
Public = "PUBLIC",
|
|
1123
|
+
Editor = "EDITOR",
|
|
1124
|
+
Posts = "POSTS"
|
|
1125
|
+
}
|
|
1126
|
+
interface PostStreamItem extends Post {
|
|
1127
|
+
type: StreamItemTypes.Post;
|
|
1128
|
+
isUnread: boolean;
|
|
1129
|
+
keywordsList?: Keyword[];
|
|
1130
|
+
groupIds?: string[];
|
|
1131
|
+
postAttachments?: StreamAttachment[];
|
|
1132
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1133
|
+
hasMoreUnreadComments: boolean;
|
|
1134
|
+
}
|
|
1135
|
+
interface StreamPostComment extends Comment {
|
|
1136
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1137
|
+
streamConversationScope?: StreamConversationScope;
|
|
1138
|
+
}
|
|
1139
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1140
|
+
type: GraphQLAttachmentType;
|
|
1141
|
+
}
|
|
1142
|
+
interface NewsStreamItem extends NewsItem {
|
|
1143
|
+
type: StreamItemTypes.News;
|
|
1144
|
+
contentsList: StreamPublishableItemContents[];
|
|
1145
|
+
channelsList: Channel[];
|
|
1146
|
+
isUnread: boolean;
|
|
1147
|
+
keywordsList?: Keyword[];
|
|
1148
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1149
|
+
}
|
|
1150
|
+
declare enum StreamKnownNewsState {
|
|
1151
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1152
|
+
Alert = "ALERT"
|
|
1153
|
+
}
|
|
1154
|
+
interface EventStreamItem extends EventItem {
|
|
1155
|
+
type: StreamItemTypes.Event;
|
|
1156
|
+
contentsList: StreamPublishableItemContents[];
|
|
1157
|
+
channelsList: Channel[];
|
|
1158
|
+
isUnread: boolean;
|
|
1159
|
+
keywordsList?: Keyword[];
|
|
1160
|
+
userResponseType?: StreamEventResponse;
|
|
1161
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1162
|
+
}
|
|
1163
|
+
interface PageStreamItem extends PageItem {
|
|
1164
|
+
type: StreamItemTypes.Page;
|
|
1165
|
+
contentsList: StreamPublishableItemContents[];
|
|
1166
|
+
channelsList: Channel[];
|
|
1167
|
+
isUnread: boolean;
|
|
1168
|
+
keywordsList?: Keyword[];
|
|
1169
|
+
streamPageType?: string;
|
|
1170
|
+
path?: (PageNavigationNode & {
|
|
1171
|
+
parentId?: string;
|
|
1172
|
+
contentsList: StreamPublishableItemContents[];
|
|
1173
|
+
})[];
|
|
1174
|
+
}
|
|
1175
|
+
interface StreamPublishableItemContents {
|
|
1176
|
+
language: string;
|
|
1177
|
+
title: string;
|
|
1178
|
+
intro?: string;
|
|
1179
|
+
headline?: string;
|
|
1180
|
+
}
|
|
1181
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1182
|
+
cancellationReasons?: {
|
|
1183
|
+
[key: string]: string;
|
|
1184
|
+
}[];
|
|
1185
|
+
}
|
|
1186
|
+
|
|
979
1187
|
interface TargetLinkOverrideContextProps {
|
|
980
1188
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
981
1189
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
982
1190
|
}
|
|
983
1191
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
984
1192
|
|
|
985
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
986
|
-
contacts?: string[];
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
990
|
-
startsAfter?: string;
|
|
991
|
-
startsBefore?: string;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
995
|
-
excludePastEvents?: boolean;
|
|
996
|
-
pastEventsOnly?: boolean;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
1193
|
interface KeywordPickerProps {
|
|
1000
1194
|
value?: Keyword[] | string[];
|
|
1001
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1195
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
1002
1196
|
showSelectionToggle?: boolean;
|
|
1003
1197
|
availableKeywords?: Keyword[];
|
|
1004
1198
|
mandatoryKeywordIds?: string[];
|
|
@@ -1016,37 +1210,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1016
1210
|
pageType?: PageType;
|
|
1017
1211
|
}
|
|
1018
1212
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
groupId: string;
|
|
1023
|
-
content: string;
|
|
1024
|
-
permalink?: string;
|
|
1025
|
-
author: Account;
|
|
1026
|
-
publishingDate: string;
|
|
1027
|
-
modified?: string;
|
|
1028
|
-
statistics: ItemStatistics;
|
|
1029
|
-
keywords?: {
|
|
1030
|
-
[key: string]: Keyword[];
|
|
1031
|
-
};
|
|
1032
|
-
contentLanguageCode?: string;
|
|
1033
|
-
isLiked?: boolean;
|
|
1034
|
-
isUnread?: boolean;
|
|
1035
|
-
isDemoContent?: boolean;
|
|
1036
|
-
isFollowing?: boolean;
|
|
1037
|
-
}
|
|
1038
|
-
interface PostFilterDefinition {
|
|
1039
|
-
token?: string;
|
|
1040
|
-
pageSize?: string;
|
|
1041
|
-
search?: string;
|
|
1042
|
-
keywords?: FilterWithLogicalOperator;
|
|
1043
|
-
}
|
|
1213
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1214
|
+
|
|
1215
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1044
1216
|
|
|
1045
1217
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1046
1218
|
}
|
|
1047
1219
|
|
|
1220
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1221
|
+
|
|
1222
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1223
|
+
|
|
1048
1224
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1225
|
+
/**
|
|
1226
|
+
* Limit results to those associated with the given channels.
|
|
1227
|
+
* For better performance set channel IDs instead of names.
|
|
1228
|
+
*/
|
|
1049
1229
|
channels?: string | FilterWithLogicalOperator;
|
|
1230
|
+
/**
|
|
1231
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1232
|
+
*/
|
|
1050
1233
|
keywords?: string | FilterWithLogicalOperator;
|
|
1051
1234
|
}
|
|
1052
1235
|
|
|
@@ -1059,17 +1242,23 @@ interface NewsListProps {
|
|
|
1059
1242
|
searchText?: string;
|
|
1060
1243
|
itemLayoutMode?: ItemLayoutMode;
|
|
1061
1244
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1062
|
-
onChannelClick?: (
|
|
1063
|
-
onKeywordClick?: (
|
|
1245
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1246
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1064
1247
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1065
1248
|
hidePagination?: boolean;
|
|
1066
1249
|
pageSize?: number;
|
|
1067
1250
|
includeAllItems?: boolean;
|
|
1251
|
+
cardsGap?: number;
|
|
1252
|
+
contentGap?: number;
|
|
1253
|
+
bannerSize?: number;
|
|
1254
|
+
showDateOnBottom?: boolean;
|
|
1255
|
+
showDateAsRelative?: boolean;
|
|
1068
1256
|
className?: string;
|
|
1069
1257
|
}
|
|
1070
1258
|
declare const NewsList: FC<NewsListProps>;
|
|
1071
1259
|
|
|
1072
1260
|
interface ManageChannelsProps {
|
|
1261
|
+
hideSearch?: boolean;
|
|
1073
1262
|
className?: string;
|
|
1074
1263
|
}
|
|
1075
1264
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1077,6 +1266,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1077
1266
|
interface ChannelSelectorWrapperProps {
|
|
1078
1267
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1079
1268
|
showLogicalOperatorOptions?: boolean;
|
|
1269
|
+
/**
|
|
1270
|
+
* For better performance set channel IDs instead of names.
|
|
1271
|
+
*/
|
|
1080
1272
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1081
1273
|
className?: string;
|
|
1082
1274
|
}
|
|
@@ -1093,10 +1285,11 @@ interface NewsGridProps {
|
|
|
1093
1285
|
maxColumnCount?: number;
|
|
1094
1286
|
rowCount?: number;
|
|
1095
1287
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1096
|
-
onChannelClick?: (
|
|
1097
|
-
onKeywordClick?: (
|
|
1288
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1289
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1098
1290
|
includeAllItems?: boolean;
|
|
1099
1291
|
className?: string;
|
|
1292
|
+
hideIntro?: boolean;
|
|
1100
1293
|
}
|
|
1101
1294
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1102
1295
|
|
|
@@ -1112,41 +1305,59 @@ interface EventGridProps {
|
|
|
1112
1305
|
maxColumnCount?: number;
|
|
1113
1306
|
rowCount?: number;
|
|
1114
1307
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1115
|
-
onChannelClick?: (
|
|
1308
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1116
1309
|
className?: string;
|
|
1117
1310
|
}
|
|
1118
1311
|
declare const EventsGrid: FC<EventGridProps>;
|
|
1119
1312
|
|
|
1120
1313
|
interface EventsListProps {
|
|
1121
|
-
|
|
1314
|
+
bannerSize?: number;
|
|
1315
|
+
cardsGap?: number;
|
|
1316
|
+
className?: string;
|
|
1317
|
+
contentGap?: number;
|
|
1122
1318
|
filter?: EventFilterDefinition;
|
|
1123
|
-
|
|
1319
|
+
hidePagination?: boolean;
|
|
1320
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1124
1321
|
itemLayoutMode?: ItemLayoutMode;
|
|
1125
1322
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1126
|
-
onChannelClick?: (
|
|
1127
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1128
|
-
hidePagination?: boolean;
|
|
1323
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1129
1324
|
pageSize?: number;
|
|
1130
|
-
|
|
1325
|
+
searchText?: string;
|
|
1326
|
+
view?: EventView;
|
|
1131
1327
|
}
|
|
1132
1328
|
declare const EventsList: FC<EventsListProps>;
|
|
1133
1329
|
|
|
1330
|
+
declare enum HeroPagingType {
|
|
1331
|
+
page = "page",
|
|
1332
|
+
item = "item"
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1134
1335
|
interface NewsHeroFilterProps {
|
|
1336
|
+
/**
|
|
1337
|
+
* Limit results to those associated with the given channels.
|
|
1338
|
+
* For better performance set channel IDs instead of names.
|
|
1339
|
+
*/
|
|
1135
1340
|
channels?: string | FilterWithLogicalOperator;
|
|
1341
|
+
/**
|
|
1342
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1343
|
+
*/
|
|
1136
1344
|
keywords?: string | FilterWithLogicalOperator;
|
|
1137
1345
|
pageSize?: number;
|
|
1138
1346
|
}
|
|
1139
1347
|
interface NewsHeroProps {
|
|
1140
|
-
filter?: NewsHeroFilterProps;
|
|
1141
|
-
disableAutoplay?: boolean;
|
|
1142
1348
|
autoplayInterval?: number;
|
|
1143
|
-
|
|
1144
|
-
|
|
1349
|
+
disableAutoplay?: boolean;
|
|
1350
|
+
filter?: NewsHeroFilterProps;
|
|
1145
1351
|
height?: number | string;
|
|
1146
1352
|
includeAllItems?: boolean;
|
|
1147
|
-
|
|
1148
|
-
|
|
1353
|
+
isHighContrast?: boolean;
|
|
1354
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1355
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1356
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1357
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1358
|
+
pagingType?: HeroPagingType;
|
|
1149
1359
|
showKeywords?: boolean;
|
|
1360
|
+
width?: number | string;
|
|
1150
1361
|
}
|
|
1151
1362
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1152
1363
|
|
|
@@ -1174,27 +1385,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1174
1385
|
itemId: string;
|
|
1175
1386
|
}>;
|
|
1176
1387
|
|
|
1177
|
-
declare const
|
|
1388
|
+
declare const PageItemContextProvider: FC<{
|
|
1389
|
+
itemId: string;
|
|
1390
|
+
}>;
|
|
1391
|
+
|
|
1392
|
+
declare const EventItemContextProvider: FC<{
|
|
1393
|
+
itemId: string;
|
|
1394
|
+
}>;
|
|
1395
|
+
|
|
1396
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1178
1397
|
showEditLanguagePreferences?: boolean;
|
|
1179
1398
|
onEditLanguagePreferences?: () => unknown;
|
|
1180
1399
|
}>;
|
|
1181
1400
|
|
|
1401
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1402
|
+
onClick?: (itemId: string) => unknown;
|
|
1403
|
+
}>;
|
|
1182
1404
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1183
1405
|
onClick?: (itemId: string) => unknown;
|
|
1184
1406
|
}>;
|
|
1185
1407
|
|
|
1186
|
-
interface
|
|
1408
|
+
interface SharedItemDetailPreviewProps {
|
|
1187
1409
|
itemId?: string;
|
|
1188
1410
|
versionId?: string;
|
|
1189
1411
|
className?: string;
|
|
1412
|
+
hideLikes?: boolean;
|
|
1413
|
+
hideComments?: boolean;
|
|
1190
1414
|
}
|
|
1191
|
-
declare const NewsDetailPreview: FC<
|
|
1415
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1416
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1417
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1192
1418
|
|
|
1193
1419
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1194
1420
|
itemId: string;
|
|
1195
1421
|
versionId?: string;
|
|
1196
1422
|
}>;
|
|
1197
1423
|
|
|
1424
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1425
|
+
itemId: string;
|
|
1426
|
+
versionId?: string;
|
|
1427
|
+
}>;
|
|
1428
|
+
|
|
1429
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1430
|
+
itemId: string;
|
|
1431
|
+
versionId?: string;
|
|
1432
|
+
}>;
|
|
1433
|
+
|
|
1198
1434
|
interface FilterProps {
|
|
1199
1435
|
filter: IndexableFilterDefinition;
|
|
1200
1436
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1203,6 +1439,9 @@ interface FilterProps {
|
|
|
1203
1439
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1204
1440
|
|
|
1205
1441
|
interface ChannelFilterProps {
|
|
1442
|
+
/**
|
|
1443
|
+
* For better performance set channel IDs instead of names.
|
|
1444
|
+
*/
|
|
1206
1445
|
channels?: string[];
|
|
1207
1446
|
className?: string;
|
|
1208
1447
|
}
|
|
@@ -1351,21 +1590,25 @@ interface PagesGridProps {
|
|
|
1351
1590
|
maxColumnCount?: number;
|
|
1352
1591
|
rowCount?: number;
|
|
1353
1592
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1354
|
-
onKeywordClick?: (
|
|
1593
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1594
|
+
hideIntro?: boolean;
|
|
1355
1595
|
className?: string;
|
|
1356
1596
|
}
|
|
1357
1597
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
1358
1598
|
|
|
1359
1599
|
interface PagesListProps {
|
|
1600
|
+
bannerSize?: number;
|
|
1601
|
+
cardsGap?: number;
|
|
1602
|
+
className?: string;
|
|
1603
|
+
contentGap?: number;
|
|
1360
1604
|
filter?: PageFilterDefinition;
|
|
1361
|
-
|
|
1605
|
+
hidePagination?: boolean;
|
|
1606
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1362
1607
|
itemLayoutMode?: ItemLayoutMode;
|
|
1363
1608
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1364
|
-
onKeywordClick?: (
|
|
1365
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1366
|
-
hidePagination?: boolean;
|
|
1609
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1367
1610
|
pageSize?: number;
|
|
1368
|
-
|
|
1611
|
+
searchText?: string;
|
|
1369
1612
|
}
|
|
1370
1613
|
declare const PagesList: FC<PagesListProps>;
|
|
1371
1614
|
|
|
@@ -1399,6 +1642,7 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1399
1642
|
interface PageEditorContextProviderProps {
|
|
1400
1643
|
itemId?: string;
|
|
1401
1644
|
groupId?: string;
|
|
1645
|
+
parentId?: string;
|
|
1402
1646
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1403
1647
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1404
1648
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
@@ -1418,4 +1662,14 @@ interface PageEditorPanelProps {
|
|
|
1418
1662
|
}
|
|
1419
1663
|
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1420
1664
|
|
|
1421
|
-
|
|
1665
|
+
interface ErrorWrapperProps {
|
|
1666
|
+
errorType: ErrorType;
|
|
1667
|
+
isList?: boolean;
|
|
1668
|
+
}
|
|
1669
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1670
|
+
|
|
1671
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1672
|
+
onClick?: () => unknown;
|
|
1673
|
+
}>;
|
|
1674
|
+
|
|
1675
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, HeroPagingType, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
|