@livetiles/reach-components-react 0.5.0-preview.139 → 0.5.0-preview.1393
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-505d95fb.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-37ceda26.esm.js +1 -0
- package/index-391b1f11.esm.js +1 -0
- package/index-8264996c.esm.js +1 -0
- package/index-865a0fa3.esm.js +1 -0
- package/index-bde7c36b.esm.js +1 -0
- package/index-cbec8e63.esm.js +790 -0
- package/index.d.ts +447 -180
- package/index.esm.js +1 -1
- package/index.esm2.js +38 -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-d8bd6fad.esm.js +1 -0
- package/index.umd.js +831 -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;
|
|
@@ -263,6 +287,7 @@ interface BaseSubscription {
|
|
|
263
287
|
pageTrackingInfo: PageTrackingInfo;
|
|
264
288
|
termsAndConditionsHash?: string;
|
|
265
289
|
logoInfo: LogoInfo;
|
|
290
|
+
analyticsConfig: AnalyticsSubscriptionConfig;
|
|
266
291
|
}
|
|
267
292
|
interface LogoInfo {
|
|
268
293
|
smallUrl: string;
|
|
@@ -277,6 +302,15 @@ interface RegionSettings {
|
|
|
277
302
|
name: string;
|
|
278
303
|
contentRegion: string;
|
|
279
304
|
}
|
|
305
|
+
interface AnalyticsSubscriptionConfig {
|
|
306
|
+
matomoDimensionMapping: {
|
|
307
|
+
[key: string]: number;
|
|
308
|
+
};
|
|
309
|
+
enableTransferSegment: boolean;
|
|
310
|
+
matomoSiteId: number;
|
|
311
|
+
matomoUrl: string;
|
|
312
|
+
analyticProvider: number;
|
|
313
|
+
}
|
|
280
314
|
interface SubscriptionSummary extends BaseSubscription {
|
|
281
315
|
languages: LanguageBase[];
|
|
282
316
|
featureMask: string;
|
|
@@ -287,6 +321,10 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
287
321
|
customDomain?: string;
|
|
288
322
|
allowSelfRegistration?: boolean;
|
|
289
323
|
brandFolderConfig?: BrandFolderConfig;
|
|
324
|
+
hideSubscriptionName?: boolean;
|
|
325
|
+
profileCardHiddenProperties: string[];
|
|
326
|
+
useOriginalBannerImageQuality: boolean;
|
|
327
|
+
useLosslessImageQuality: boolean;
|
|
290
328
|
}
|
|
291
329
|
interface BrandFolderConfig {
|
|
292
330
|
sections?: string[];
|
|
@@ -322,7 +360,9 @@ declare enum ExtensionArea {
|
|
|
322
360
|
page = "Page",
|
|
323
361
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
324
362
|
eventDetailViewSection = "EventDetailViewSection",
|
|
325
|
-
itemEditor = "ItemEditor"
|
|
363
|
+
itemEditor = "ItemEditor",
|
|
364
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
365
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
326
366
|
}
|
|
327
367
|
declare type InlinePlugin = {
|
|
328
368
|
area: ExtensionArea.itemEditor;
|
|
@@ -386,23 +426,6 @@ declare enum FieldMode {
|
|
|
386
426
|
Hidden = 3
|
|
387
427
|
}
|
|
388
428
|
|
|
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
429
|
interface ItemStatistics {
|
|
407
430
|
commentCount?: number;
|
|
408
431
|
likeCount?: number;
|
|
@@ -437,7 +460,7 @@ declare enum KnownNewsState {
|
|
|
437
460
|
declare type VersionId = string;
|
|
438
461
|
interface SchedulableItem extends PublishableItem {
|
|
439
462
|
metadata?: NewsMetadata;
|
|
440
|
-
channels?:
|
|
463
|
+
channels?: Channel[];
|
|
441
464
|
}
|
|
442
465
|
interface NewsItem extends SchedulableItem {
|
|
443
466
|
source?: string;
|
|
@@ -446,19 +469,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
446
469
|
knownState: KnownNewsState;
|
|
447
470
|
hasNewComments?: boolean;
|
|
448
471
|
isLiked?: boolean;
|
|
449
|
-
shareToken?: ShareToken;
|
|
450
|
-
}
|
|
451
|
-
interface ShareToken {
|
|
452
|
-
published?: string;
|
|
453
|
-
preview?: string;
|
|
454
472
|
}
|
|
455
473
|
interface NewsItemAlertOptions {
|
|
456
474
|
duration?: string;
|
|
457
475
|
endDate?: Date;
|
|
458
476
|
expireAfter?: boolean;
|
|
459
|
-
}
|
|
460
|
-
interface SchedulableItemChannel {
|
|
461
|
-
name: string;
|
|
462
477
|
}
|
|
463
478
|
|
|
464
479
|
declare enum VideoSource {
|
|
@@ -473,19 +488,6 @@ interface BaseItem {
|
|
|
473
488
|
id?: string;
|
|
474
489
|
statistics?: ItemStatistics;
|
|
475
490
|
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
491
|
}
|
|
490
492
|
interface Poll {
|
|
491
493
|
questions: PollQuestion[];
|
|
@@ -495,12 +497,14 @@ interface PollQuestion extends PollQuestionSettings {
|
|
|
495
497
|
choices: PollQuestionChoice[];
|
|
496
498
|
}
|
|
497
499
|
interface PollQuestionSettings {
|
|
500
|
+
allowOtherAnswer?: boolean;
|
|
498
501
|
isMultiChoice?: boolean;
|
|
499
502
|
}
|
|
500
503
|
interface PollQuestionChoice {
|
|
501
504
|
choiceId: string;
|
|
502
505
|
description?: string;
|
|
503
506
|
disabled?: boolean;
|
|
507
|
+
isOther?: boolean;
|
|
504
508
|
}
|
|
505
509
|
|
|
506
510
|
declare enum WorkflowStatus {
|
|
@@ -520,6 +524,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
520
524
|
headline?: string;
|
|
521
525
|
intro?: string;
|
|
522
526
|
body?: string;
|
|
527
|
+
bodyRaw?: string;
|
|
523
528
|
customProperties?: {
|
|
524
529
|
[key: string]: any;
|
|
525
530
|
};
|
|
@@ -595,6 +600,7 @@ interface QuestionTranslations {
|
|
|
595
600
|
}
|
|
596
601
|
interface ChoiceTranslations {
|
|
597
602
|
choiceId: string;
|
|
603
|
+
isOther: boolean;
|
|
598
604
|
text: string;
|
|
599
605
|
}
|
|
600
606
|
|
|
@@ -609,7 +615,8 @@ declare enum AttachmentType {
|
|
|
609
615
|
Event = 5,
|
|
610
616
|
Page = 6,
|
|
611
617
|
Post = 7,
|
|
612
|
-
Giphy = 8
|
|
618
|
+
Giphy = 8,
|
|
619
|
+
MicrosoftStreamVideo = 9
|
|
613
620
|
}
|
|
614
621
|
interface BaseAttachment {
|
|
615
622
|
id: string;
|
|
@@ -625,6 +632,19 @@ interface Attachment extends BaseAttachment {
|
|
|
625
632
|
type: AttachmentType;
|
|
626
633
|
}
|
|
627
634
|
|
|
635
|
+
declare enum GraphQLAttachmentType {
|
|
636
|
+
Image = "IMAGE",
|
|
637
|
+
File = "FILE",
|
|
638
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
639
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
640
|
+
News = "NEWS",
|
|
641
|
+
Event = "EVENT",
|
|
642
|
+
Page = "PAGE",
|
|
643
|
+
Post = "POST",
|
|
644
|
+
Giphy = "GIPHY",
|
|
645
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
646
|
+
}
|
|
647
|
+
|
|
628
648
|
interface ItemWithAttachments {
|
|
629
649
|
attachments?: Attachment[];
|
|
630
650
|
fileAccessToken?: string;
|
|
@@ -657,18 +677,11 @@ declare enum ConversationScope {
|
|
|
657
677
|
Posts = 2
|
|
658
678
|
}
|
|
659
679
|
|
|
660
|
-
declare enum ItemResourceTypes {
|
|
661
|
-
News = "news",
|
|
662
|
-
Pages = "pages",
|
|
663
|
-
Posts = "posts",
|
|
664
|
-
Events = "events",
|
|
665
|
-
Comments = "comments"
|
|
666
|
-
}
|
|
667
|
-
|
|
668
680
|
declare enum EventResponse {
|
|
669
681
|
NotSet = 0,
|
|
670
682
|
Registered = 1,
|
|
671
|
-
Declined = 2
|
|
683
|
+
Declined = 2,
|
|
684
|
+
WaitingList = 3
|
|
672
685
|
}
|
|
673
686
|
interface EventItem extends SchedulableItem {
|
|
674
687
|
startDate?: string;
|
|
@@ -685,8 +698,10 @@ interface EventItem extends SchedulableItem {
|
|
|
685
698
|
recurrenceSeriesId?: string;
|
|
686
699
|
isSeriesMaster?: string;
|
|
687
700
|
isVirtual?: boolean;
|
|
701
|
+
isAllDayEvent?: boolean;
|
|
688
702
|
}
|
|
689
703
|
interface EventRegistrationSettings {
|
|
704
|
+
enableWaitingList?: boolean;
|
|
690
705
|
enabled?: boolean;
|
|
691
706
|
showParticipantsToEverybody?: boolean;
|
|
692
707
|
deadline?: string;
|
|
@@ -774,6 +789,7 @@ interface PageItem extends PublishableItem {
|
|
|
774
789
|
isUnlinked?: boolean;
|
|
775
790
|
pageType?: PageType;
|
|
776
791
|
firstChildId?: string;
|
|
792
|
+
isGroupInheritanceBroken?: boolean;
|
|
777
793
|
}
|
|
778
794
|
interface ContentsSummary {
|
|
779
795
|
[lang: string]: TitleContent & {
|
|
@@ -795,6 +811,7 @@ interface PageNavigationNode {
|
|
|
795
811
|
hasAnyPageChild?: boolean;
|
|
796
812
|
pageType?: PageType;
|
|
797
813
|
useExternalContent?: boolean;
|
|
814
|
+
isGroupInheritanceBroken?: boolean;
|
|
798
815
|
isSearchMatch?: boolean;
|
|
799
816
|
topLevelFolderName?: string;
|
|
800
817
|
uploadToken?: string;
|
|
@@ -809,6 +826,64 @@ declare enum PageType {
|
|
|
809
826
|
Document = 1
|
|
810
827
|
}
|
|
811
828
|
|
|
829
|
+
declare type KeywordsByGroupId = {
|
|
830
|
+
[key: string]: Keyword[];
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
interface SubscriptionData {
|
|
834
|
+
channels?: Channel[];
|
|
835
|
+
allKeywords?: Keyword[];
|
|
836
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
837
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
838
|
+
}
|
|
839
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
840
|
+
getChannels: () => Promise<Channel[]>;
|
|
841
|
+
refreshSubscription: () => void;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
845
|
+
|
|
846
|
+
interface NewsDetailProps {
|
|
847
|
+
itemId?: string;
|
|
848
|
+
hideComments?: boolean;
|
|
849
|
+
hideLikes?: boolean;
|
|
850
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
851
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
852
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
853
|
+
className?: string;
|
|
854
|
+
}
|
|
855
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
856
|
+
|
|
857
|
+
interface PageDetailProps {
|
|
858
|
+
itemId?: string;
|
|
859
|
+
hideComments?: boolean;
|
|
860
|
+
hideLikes?: boolean;
|
|
861
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
862
|
+
homeBreadcrumbTargetUrl?: string;
|
|
863
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
864
|
+
className?: string;
|
|
865
|
+
}
|
|
866
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
867
|
+
|
|
868
|
+
interface EventDetailProps {
|
|
869
|
+
itemId?: string;
|
|
870
|
+
hideComments?: boolean;
|
|
871
|
+
hideLikes?: boolean;
|
|
872
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
873
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
874
|
+
className?: string;
|
|
875
|
+
}
|
|
876
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
877
|
+
|
|
878
|
+
interface PostDetailProps {
|
|
879
|
+
postId: string;
|
|
880
|
+
threadId?: string;
|
|
881
|
+
onAfterDelete?: (id: string) => unknown;
|
|
882
|
+
commentCount?: number;
|
|
883
|
+
onItemClick?: (postId: string) => unknown;
|
|
884
|
+
}
|
|
885
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
886
|
+
|
|
812
887
|
declare const Dialog: FC<IDialogProps>;
|
|
813
888
|
|
|
814
889
|
interface ToolbarProps {
|
|
@@ -826,15 +901,21 @@ interface ToolbarSearchProps {
|
|
|
826
901
|
}
|
|
827
902
|
declare const Toolbar: FC<ToolbarProps>;
|
|
828
903
|
|
|
904
|
+
declare type TokenType = string | number;
|
|
905
|
+
|
|
906
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
907
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
908
|
+
}
|
|
909
|
+
|
|
829
910
|
interface ToolbarChannelSelectorProps {
|
|
830
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
831
911
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
912
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
832
913
|
channelsOptions?: {
|
|
833
914
|
availableChannels?: string[];
|
|
834
915
|
onSelected?: (channel: Channel) => unknown;
|
|
835
916
|
to?: (channel: Channel) => unknown;
|
|
836
917
|
};
|
|
837
|
-
|
|
918
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
838
919
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
839
920
|
}
|
|
840
921
|
interface ToolbarChannelSelectorOption {
|
|
@@ -871,6 +952,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
871
952
|
onClick: () => unknown;
|
|
872
953
|
}>;
|
|
873
954
|
|
|
955
|
+
declare const ToolbarManageButton: FC<{
|
|
956
|
+
onClick?: () => unknown;
|
|
957
|
+
to?: {
|
|
958
|
+
url: string;
|
|
959
|
+
target?: string;
|
|
960
|
+
};
|
|
961
|
+
disabled?: boolean;
|
|
962
|
+
}>;
|
|
963
|
+
|
|
874
964
|
interface ToolbarCloseButtonProps {
|
|
875
965
|
onClick?: () => unknown;
|
|
876
966
|
to?: {
|
|
@@ -883,11 +973,15 @@ declare const ToolbarCloseButton: FC<ToolbarCloseButtonProps>;
|
|
|
883
973
|
declare enum EventView {
|
|
884
974
|
UpcomingEvents = "upcoming",
|
|
885
975
|
MyBookedEvents = "booked",
|
|
976
|
+
UnregisteredEvents = "unregistered",
|
|
886
977
|
PastEvents = "past"
|
|
887
978
|
}
|
|
888
979
|
interface ToolbarEventViewSelectorProps {
|
|
889
|
-
|
|
980
|
+
extraViewOptions?: {
|
|
981
|
+
showUnregisteredEventsView?: boolean;
|
|
982
|
+
};
|
|
890
983
|
onChange?: (view: EventView) => void;
|
|
984
|
+
value?: EventView;
|
|
891
985
|
viewOptions?: {
|
|
892
986
|
hideUpcomingEventsView?: boolean;
|
|
893
987
|
hideMyBookedEventsView?: boolean;
|
|
@@ -899,8 +993,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
899
993
|
interface Props extends IPersonaProps {
|
|
900
994
|
upn: string;
|
|
901
995
|
tenantId?: string;
|
|
902
|
-
className?: string;
|
|
903
996
|
displayName?: string;
|
|
997
|
+
forceShowSecondaryText?: boolean;
|
|
998
|
+
className?: string;
|
|
904
999
|
}
|
|
905
1000
|
declare const Avatar: FC<Props>;
|
|
906
1001
|
|
|
@@ -911,6 +1006,13 @@ interface UserDetailsProps {
|
|
|
911
1006
|
}
|
|
912
1007
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
913
1008
|
|
|
1009
|
+
declare enum ErrorType {
|
|
1010
|
+
GenericError = "genericError",
|
|
1011
|
+
Error404 = "error404",
|
|
1012
|
+
Error403 = "error403",
|
|
1013
|
+
LoginError = "loginError"
|
|
1014
|
+
}
|
|
1015
|
+
|
|
914
1016
|
interface PageViewTrackerSettings {
|
|
915
1017
|
disabled?: boolean;
|
|
916
1018
|
}
|
|
@@ -957,6 +1059,32 @@ declare enum LogicalOperator {
|
|
|
957
1059
|
And = "AND"
|
|
958
1060
|
}
|
|
959
1061
|
|
|
1062
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1063
|
+
id: string;
|
|
1064
|
+
comments?: PaginatedList<Comment>;
|
|
1065
|
+
groupId: string;
|
|
1066
|
+
content: string;
|
|
1067
|
+
permalink?: string;
|
|
1068
|
+
author: Account;
|
|
1069
|
+
publishingDate: string;
|
|
1070
|
+
modified?: string;
|
|
1071
|
+
statistics: ItemStatistics;
|
|
1072
|
+
keywords?: {
|
|
1073
|
+
[key: string]: Keyword[];
|
|
1074
|
+
};
|
|
1075
|
+
contentLanguageCode?: string;
|
|
1076
|
+
isLiked?: boolean;
|
|
1077
|
+
isUnread?: boolean;
|
|
1078
|
+
isDemoContent?: boolean;
|
|
1079
|
+
isFollowing?: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
interface PostFilterDefinition {
|
|
1082
|
+
token?: string;
|
|
1083
|
+
pageSize?: string;
|
|
1084
|
+
search?: string;
|
|
1085
|
+
keywords?: FilterWithLogicalOperator;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
960
1088
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
961
1089
|
author?: string;
|
|
962
1090
|
}
|
|
@@ -965,6 +1093,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
965
1093
|
channels?: FilterWithLogicalOperator;
|
|
966
1094
|
}
|
|
967
1095
|
|
|
1096
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1097
|
+
contacts?: string[];
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1101
|
+
startsAfter?: string;
|
|
1102
|
+
startsBefore?: string;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1106
|
+
excludePastEvents?: boolean;
|
|
1107
|
+
pastEventsOnly?: boolean;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
968
1110
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
969
1111
|
state?: WorkflowStatus;
|
|
970
1112
|
}
|
|
@@ -976,29 +1118,94 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
976
1118
|
includeExpired?: boolean;
|
|
977
1119
|
}
|
|
978
1120
|
|
|
1121
|
+
declare enum StreamEventResponse {
|
|
1122
|
+
NotSet = "NOT_SET",
|
|
1123
|
+
Registered = "REGISTERED",
|
|
1124
|
+
WaitingList = "WAITING_LIST",
|
|
1125
|
+
Declined = "DECLINED"
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
declare enum StreamItemTypes {
|
|
1129
|
+
Post = "POST",
|
|
1130
|
+
News = "NEWS",
|
|
1131
|
+
Event = "EVENT",
|
|
1132
|
+
Page = "PAGE"
|
|
1133
|
+
}
|
|
1134
|
+
declare enum StreamConversationScope {
|
|
1135
|
+
Public = "PUBLIC",
|
|
1136
|
+
Editor = "EDITOR",
|
|
1137
|
+
Posts = "POSTS"
|
|
1138
|
+
}
|
|
1139
|
+
interface PostStreamItem extends Post {
|
|
1140
|
+
type: StreamItemTypes.Post;
|
|
1141
|
+
isUnread: boolean;
|
|
1142
|
+
keywordsList?: Keyword[];
|
|
1143
|
+
groupIds?: string[];
|
|
1144
|
+
postAttachments?: StreamAttachment[];
|
|
1145
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1146
|
+
hasMoreUnreadComments: boolean;
|
|
1147
|
+
}
|
|
1148
|
+
interface StreamPostComment extends Comment {
|
|
1149
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1150
|
+
streamConversationScope?: StreamConversationScope;
|
|
1151
|
+
}
|
|
1152
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1153
|
+
type: GraphQLAttachmentType;
|
|
1154
|
+
}
|
|
1155
|
+
interface NewsStreamItem extends NewsItem {
|
|
1156
|
+
type: StreamItemTypes.News;
|
|
1157
|
+
contentsList: StreamPublishableItemContents[];
|
|
1158
|
+
channelsList: Channel[];
|
|
1159
|
+
isUnread: boolean;
|
|
1160
|
+
keywordsList?: Keyword[];
|
|
1161
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1162
|
+
}
|
|
1163
|
+
declare enum StreamKnownNewsState {
|
|
1164
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1165
|
+
Alert = "ALERT"
|
|
1166
|
+
}
|
|
1167
|
+
interface EventStreamItem extends EventItem {
|
|
1168
|
+
type: StreamItemTypes.Event;
|
|
1169
|
+
contentsList: StreamPublishableItemContents[];
|
|
1170
|
+
channelsList: Channel[];
|
|
1171
|
+
isUnread: boolean;
|
|
1172
|
+
keywordsList?: Keyword[];
|
|
1173
|
+
userResponseType?: StreamEventResponse;
|
|
1174
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1175
|
+
}
|
|
1176
|
+
interface PageStreamItem extends PageItem {
|
|
1177
|
+
type: StreamItemTypes.Page;
|
|
1178
|
+
contentsList: StreamPublishableItemContents[];
|
|
1179
|
+
channelsList: Channel[];
|
|
1180
|
+
isUnread: boolean;
|
|
1181
|
+
keywordsList?: Keyword[];
|
|
1182
|
+
streamPageType?: string;
|
|
1183
|
+
path?: (PageNavigationNode & {
|
|
1184
|
+
parentId?: string;
|
|
1185
|
+
contentsList: StreamPublishableItemContents[];
|
|
1186
|
+
})[];
|
|
1187
|
+
}
|
|
1188
|
+
interface StreamPublishableItemContents {
|
|
1189
|
+
language: string;
|
|
1190
|
+
title: string;
|
|
1191
|
+
intro?: string;
|
|
1192
|
+
headline?: string;
|
|
1193
|
+
}
|
|
1194
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1195
|
+
cancellationReasons?: {
|
|
1196
|
+
[key: string]: string;
|
|
1197
|
+
}[];
|
|
1198
|
+
}
|
|
1199
|
+
|
|
979
1200
|
interface TargetLinkOverrideContextProps {
|
|
980
1201
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
981
1202
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
982
1203
|
}
|
|
983
1204
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
984
1205
|
|
|
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
1206
|
interface KeywordPickerProps {
|
|
1000
1207
|
value?: Keyword[] | string[];
|
|
1001
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1208
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
1002
1209
|
showSelectionToggle?: boolean;
|
|
1003
1210
|
availableKeywords?: Keyword[];
|
|
1004
1211
|
mandatoryKeywordIds?: string[];
|
|
@@ -1016,37 +1223,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1016
1223
|
pageType?: PageType;
|
|
1017
1224
|
}
|
|
1018
1225
|
|
|
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
|
-
}
|
|
1226
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1227
|
+
|
|
1228
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1044
1229
|
|
|
1045
1230
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1046
1231
|
}
|
|
1047
1232
|
|
|
1233
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1234
|
+
|
|
1235
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1236
|
+
|
|
1048
1237
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1238
|
+
/**
|
|
1239
|
+
* Limit results to those associated with the given channels.
|
|
1240
|
+
* For better performance set channel IDs instead of names.
|
|
1241
|
+
*/
|
|
1049
1242
|
channels?: string | FilterWithLogicalOperator;
|
|
1243
|
+
/**
|
|
1244
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1245
|
+
*/
|
|
1050
1246
|
keywords?: string | FilterWithLogicalOperator;
|
|
1051
1247
|
}
|
|
1052
1248
|
|
|
@@ -1059,17 +1255,23 @@ interface NewsListProps {
|
|
|
1059
1255
|
searchText?: string;
|
|
1060
1256
|
itemLayoutMode?: ItemLayoutMode;
|
|
1061
1257
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1062
|
-
onChannelClick?: (
|
|
1063
|
-
onKeywordClick?: (
|
|
1258
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1259
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1064
1260
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1065
1261
|
hidePagination?: boolean;
|
|
1066
1262
|
pageSize?: number;
|
|
1067
1263
|
includeAllItems?: boolean;
|
|
1264
|
+
cardsGap?: number;
|
|
1265
|
+
contentGap?: number;
|
|
1266
|
+
bannerSize?: number;
|
|
1267
|
+
showDateOnBottom?: boolean;
|
|
1268
|
+
showDateAsRelative?: boolean;
|
|
1068
1269
|
className?: string;
|
|
1069
1270
|
}
|
|
1070
1271
|
declare const NewsList: FC<NewsListProps>;
|
|
1071
1272
|
|
|
1072
1273
|
interface ManageChannelsProps {
|
|
1274
|
+
hideSearch?: boolean;
|
|
1073
1275
|
className?: string;
|
|
1074
1276
|
}
|
|
1075
1277
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1077,6 +1279,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1077
1279
|
interface ChannelSelectorWrapperProps {
|
|
1078
1280
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1079
1281
|
showLogicalOperatorOptions?: boolean;
|
|
1282
|
+
/**
|
|
1283
|
+
* For better performance set channel IDs instead of names.
|
|
1284
|
+
*/
|
|
1080
1285
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1081
1286
|
className?: string;
|
|
1082
1287
|
}
|
|
@@ -1093,10 +1298,11 @@ interface NewsGridProps {
|
|
|
1093
1298
|
maxColumnCount?: number;
|
|
1094
1299
|
rowCount?: number;
|
|
1095
1300
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1096
|
-
onChannelClick?: (
|
|
1097
|
-
onKeywordClick?: (
|
|
1301
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1302
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1098
1303
|
includeAllItems?: boolean;
|
|
1099
1304
|
className?: string;
|
|
1305
|
+
hideIntro?: boolean;
|
|
1100
1306
|
}
|
|
1101
1307
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1102
1308
|
|
|
@@ -1112,41 +1318,59 @@ interface EventGridProps {
|
|
|
1112
1318
|
maxColumnCount?: number;
|
|
1113
1319
|
rowCount?: number;
|
|
1114
1320
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1115
|
-
onChannelClick?: (
|
|
1321
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1116
1322
|
className?: string;
|
|
1117
1323
|
}
|
|
1118
1324
|
declare const EventsGrid: FC<EventGridProps>;
|
|
1119
1325
|
|
|
1120
1326
|
interface EventsListProps {
|
|
1121
|
-
|
|
1327
|
+
bannerSize?: number;
|
|
1328
|
+
cardsGap?: number;
|
|
1329
|
+
className?: string;
|
|
1330
|
+
contentGap?: number;
|
|
1122
1331
|
filter?: EventFilterDefinition;
|
|
1123
|
-
|
|
1332
|
+
hidePagination?: boolean;
|
|
1333
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1124
1334
|
itemLayoutMode?: ItemLayoutMode;
|
|
1125
1335
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1126
|
-
onChannelClick?: (
|
|
1127
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1128
|
-
hidePagination?: boolean;
|
|
1336
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1129
1337
|
pageSize?: number;
|
|
1130
|
-
|
|
1338
|
+
searchText?: string;
|
|
1339
|
+
view?: EventView;
|
|
1131
1340
|
}
|
|
1132
1341
|
declare const EventsList: FC<EventsListProps>;
|
|
1133
1342
|
|
|
1343
|
+
declare enum HeroPagingType {
|
|
1344
|
+
page = "page",
|
|
1345
|
+
item = "item"
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1134
1348
|
interface NewsHeroFilterProps {
|
|
1349
|
+
/**
|
|
1350
|
+
* Limit results to those associated with the given channels.
|
|
1351
|
+
* For better performance set channel IDs instead of names.
|
|
1352
|
+
*/
|
|
1135
1353
|
channels?: string | FilterWithLogicalOperator;
|
|
1354
|
+
/**
|
|
1355
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1356
|
+
*/
|
|
1136
1357
|
keywords?: string | FilterWithLogicalOperator;
|
|
1137
1358
|
pageSize?: number;
|
|
1138
1359
|
}
|
|
1139
1360
|
interface NewsHeroProps {
|
|
1140
|
-
filter?: NewsHeroFilterProps;
|
|
1141
|
-
disableAutoplay?: boolean;
|
|
1142
1361
|
autoplayInterval?: number;
|
|
1143
|
-
|
|
1144
|
-
|
|
1362
|
+
disableAutoplay?: boolean;
|
|
1363
|
+
filter?: NewsHeroFilterProps;
|
|
1145
1364
|
height?: number | string;
|
|
1146
1365
|
includeAllItems?: boolean;
|
|
1147
|
-
|
|
1148
|
-
|
|
1366
|
+
isHighContrast?: boolean;
|
|
1367
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1368
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1369
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1370
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1371
|
+
pagingType?: HeroPagingType;
|
|
1149
1372
|
showKeywords?: boolean;
|
|
1373
|
+
width?: number | string;
|
|
1150
1374
|
}
|
|
1151
1375
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1152
1376
|
|
|
@@ -1174,27 +1398,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1174
1398
|
itemId: string;
|
|
1175
1399
|
}>;
|
|
1176
1400
|
|
|
1177
|
-
declare const
|
|
1401
|
+
declare const PageItemContextProvider: FC<{
|
|
1402
|
+
itemId: string;
|
|
1403
|
+
}>;
|
|
1404
|
+
|
|
1405
|
+
declare const EventItemContextProvider: FC<{
|
|
1406
|
+
itemId: string;
|
|
1407
|
+
}>;
|
|
1408
|
+
|
|
1409
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1178
1410
|
showEditLanguagePreferences?: boolean;
|
|
1179
1411
|
onEditLanguagePreferences?: () => unknown;
|
|
1180
1412
|
}>;
|
|
1181
1413
|
|
|
1414
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1415
|
+
onClick?: (itemId: string) => unknown;
|
|
1416
|
+
}>;
|
|
1182
1417
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1183
1418
|
onClick?: (itemId: string) => unknown;
|
|
1184
1419
|
}>;
|
|
1185
1420
|
|
|
1186
|
-
interface
|
|
1421
|
+
interface SharedItemDetailPreviewProps {
|
|
1187
1422
|
itemId?: string;
|
|
1188
1423
|
versionId?: string;
|
|
1189
1424
|
className?: string;
|
|
1425
|
+
hideLikes?: boolean;
|
|
1426
|
+
hideComments?: boolean;
|
|
1190
1427
|
}
|
|
1191
|
-
declare const NewsDetailPreview: FC<
|
|
1428
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1429
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1430
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1192
1431
|
|
|
1193
1432
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1194
1433
|
itemId: string;
|
|
1195
1434
|
versionId?: string;
|
|
1196
1435
|
}>;
|
|
1197
1436
|
|
|
1437
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1438
|
+
itemId: string;
|
|
1439
|
+
versionId?: string;
|
|
1440
|
+
}>;
|
|
1441
|
+
|
|
1442
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1443
|
+
itemId: string;
|
|
1444
|
+
versionId?: string;
|
|
1445
|
+
}>;
|
|
1446
|
+
|
|
1198
1447
|
interface FilterProps {
|
|
1199
1448
|
filter: IndexableFilterDefinition;
|
|
1200
1449
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1203,6 +1452,9 @@ interface FilterProps {
|
|
|
1203
1452
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1204
1453
|
|
|
1205
1454
|
interface ChannelFilterProps {
|
|
1455
|
+
/**
|
|
1456
|
+
* For better performance set channel IDs instead of names.
|
|
1457
|
+
*/
|
|
1206
1458
|
channels?: string[];
|
|
1207
1459
|
className?: string;
|
|
1208
1460
|
}
|
|
@@ -1351,21 +1603,25 @@ interface PagesGridProps {
|
|
|
1351
1603
|
maxColumnCount?: number;
|
|
1352
1604
|
rowCount?: number;
|
|
1353
1605
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1354
|
-
onKeywordClick?: (
|
|
1606
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1607
|
+
hideIntro?: boolean;
|
|
1355
1608
|
className?: string;
|
|
1356
1609
|
}
|
|
1357
1610
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
1358
1611
|
|
|
1359
1612
|
interface PagesListProps {
|
|
1613
|
+
bannerSize?: number;
|
|
1614
|
+
cardsGap?: number;
|
|
1615
|
+
className?: string;
|
|
1616
|
+
contentGap?: number;
|
|
1360
1617
|
filter?: PageFilterDefinition;
|
|
1361
|
-
|
|
1618
|
+
hidePagination?: boolean;
|
|
1619
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1362
1620
|
itemLayoutMode?: ItemLayoutMode;
|
|
1363
1621
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1364
|
-
onKeywordClick?: (
|
|
1365
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1366
|
-
hidePagination?: boolean;
|
|
1622
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1367
1623
|
pageSize?: number;
|
|
1368
|
-
|
|
1624
|
+
searchText?: string;
|
|
1369
1625
|
}
|
|
1370
1626
|
declare const PagesList: FC<PagesListProps>;
|
|
1371
1627
|
|
|
@@ -1399,6 +1655,7 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1399
1655
|
interface PageEditorContextProviderProps {
|
|
1400
1656
|
itemId?: string;
|
|
1401
1657
|
groupId?: string;
|
|
1658
|
+
parentId?: string;
|
|
1402
1659
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1403
1660
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1404
1661
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
@@ -1418,4 +1675,14 @@ interface PageEditorPanelProps {
|
|
|
1418
1675
|
}
|
|
1419
1676
|
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1420
1677
|
|
|
1421
|
-
|
|
1678
|
+
interface ErrorWrapperProps {
|
|
1679
|
+
errorType: ErrorType;
|
|
1680
|
+
isList?: boolean;
|
|
1681
|
+
}
|
|
1682
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1683
|
+
|
|
1684
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1685
|
+
onClick?: () => unknown;
|
|
1686
|
+
}>;
|
|
1687
|
+
|
|
1688
|
+
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 };
|