@livetiles/reach-components-react 0.5.0-preview.142 → 0.5.0-preview.1423
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 +465 -182
- 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,9 @@ interface BaseSubscription {
|
|
|
263
287
|
pageTrackingInfo: PageTrackingInfo;
|
|
264
288
|
termsAndConditionsHash?: string;
|
|
265
289
|
logoInfo: LogoInfo;
|
|
290
|
+
analyticsConfig: AnalyticsSubscriptionConfig;
|
|
291
|
+
systemMessage?: SystemMessage;
|
|
292
|
+
disabled: boolean;
|
|
266
293
|
}
|
|
267
294
|
interface LogoInfo {
|
|
268
295
|
smallUrl: string;
|
|
@@ -277,6 +304,15 @@ interface RegionSettings {
|
|
|
277
304
|
name: string;
|
|
278
305
|
contentRegion: string;
|
|
279
306
|
}
|
|
307
|
+
interface AnalyticsSubscriptionConfig {
|
|
308
|
+
matomoDimensionMapping: {
|
|
309
|
+
[key: string]: number;
|
|
310
|
+
};
|
|
311
|
+
enableTransferSegment: boolean;
|
|
312
|
+
matomoSiteId: number;
|
|
313
|
+
matomoUrl: string;
|
|
314
|
+
analyticProvider: number;
|
|
315
|
+
}
|
|
280
316
|
interface SubscriptionSummary extends BaseSubscription {
|
|
281
317
|
languages: LanguageBase[];
|
|
282
318
|
featureMask: string;
|
|
@@ -287,6 +323,10 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
287
323
|
customDomain?: string;
|
|
288
324
|
allowSelfRegistration?: boolean;
|
|
289
325
|
brandFolderConfig?: BrandFolderConfig;
|
|
326
|
+
hideSubscriptionName?: boolean;
|
|
327
|
+
profileCardHiddenProperties: string[];
|
|
328
|
+
useOriginalBannerImageQuality: boolean;
|
|
329
|
+
useLosslessImageQuality: boolean;
|
|
290
330
|
}
|
|
291
331
|
interface BrandFolderConfig {
|
|
292
332
|
sections?: string[];
|
|
@@ -296,7 +336,6 @@ interface Theme {
|
|
|
296
336
|
primaryColor: string;
|
|
297
337
|
secondaryColor: string;
|
|
298
338
|
useHighlightColorOnWhiteBackground?: boolean;
|
|
299
|
-
customFontColors?: string[];
|
|
300
339
|
}
|
|
301
340
|
interface NavigationNode {
|
|
302
341
|
key: string;
|
|
@@ -323,7 +362,9 @@ declare enum ExtensionArea {
|
|
|
323
362
|
page = "Page",
|
|
324
363
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
325
364
|
eventDetailViewSection = "EventDetailViewSection",
|
|
326
|
-
itemEditor = "ItemEditor"
|
|
365
|
+
itemEditor = "ItemEditor",
|
|
366
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
367
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
327
368
|
}
|
|
328
369
|
declare type InlinePlugin = {
|
|
329
370
|
area: ExtensionArea.itemEditor;
|
|
@@ -385,23 +426,14 @@ declare enum FieldMode {
|
|
|
385
426
|
AdminOnly = 1,
|
|
386
427
|
UserEditable = 2,
|
|
387
428
|
Hidden = 3
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
interface Keyword {
|
|
399
|
-
id: string;
|
|
400
|
-
name: string;
|
|
401
|
-
groupId?: string;
|
|
402
|
-
translations: {
|
|
403
|
-
[key: string]: string;
|
|
404
|
-
};
|
|
429
|
+
}
|
|
430
|
+
interface SystemMessage {
|
|
431
|
+
textColor: string;
|
|
432
|
+
message: string;
|
|
433
|
+
backgroundColor: string;
|
|
434
|
+
icon: string;
|
|
435
|
+
startDate: Date;
|
|
436
|
+
endDate: Date;
|
|
405
437
|
}
|
|
406
438
|
|
|
407
439
|
interface ItemStatistics {
|
|
@@ -438,7 +470,7 @@ declare enum KnownNewsState {
|
|
|
438
470
|
declare type VersionId = string;
|
|
439
471
|
interface SchedulableItem extends PublishableItem {
|
|
440
472
|
metadata?: NewsMetadata;
|
|
441
|
-
channels?:
|
|
473
|
+
channels?: Channel[];
|
|
442
474
|
}
|
|
443
475
|
interface NewsItem extends SchedulableItem {
|
|
444
476
|
source?: string;
|
|
@@ -447,19 +479,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
447
479
|
knownState: KnownNewsState;
|
|
448
480
|
hasNewComments?: boolean;
|
|
449
481
|
isLiked?: boolean;
|
|
450
|
-
shareToken?: ShareToken;
|
|
451
|
-
}
|
|
452
|
-
interface ShareToken {
|
|
453
|
-
published?: string;
|
|
454
|
-
preview?: string;
|
|
455
482
|
}
|
|
456
483
|
interface NewsItemAlertOptions {
|
|
457
484
|
duration?: string;
|
|
458
485
|
endDate?: Date;
|
|
459
486
|
expireAfter?: boolean;
|
|
460
|
-
}
|
|
461
|
-
interface SchedulableItemChannel {
|
|
462
|
-
name: string;
|
|
463
487
|
}
|
|
464
488
|
|
|
465
489
|
declare enum VideoSource {
|
|
@@ -474,19 +498,6 @@ interface BaseItem {
|
|
|
474
498
|
id?: string;
|
|
475
499
|
statistics?: ItemStatistics;
|
|
476
500
|
poll?: Poll;
|
|
477
|
-
searchHighlights?: SearchHighlightSummary;
|
|
478
|
-
}
|
|
479
|
-
interface SearchHighlightSummary {
|
|
480
|
-
title: SearchHighlight[];
|
|
481
|
-
content: SearchHighlight[];
|
|
482
|
-
}
|
|
483
|
-
interface SearchHighlight {
|
|
484
|
-
language: string;
|
|
485
|
-
texts: {
|
|
486
|
-
value: string;
|
|
487
|
-
type: 'text' | 'hit';
|
|
488
|
-
}[];
|
|
489
|
-
score: number;
|
|
490
501
|
}
|
|
491
502
|
interface Poll {
|
|
492
503
|
questions: PollQuestion[];
|
|
@@ -496,12 +507,14 @@ interface PollQuestion extends PollQuestionSettings {
|
|
|
496
507
|
choices: PollQuestionChoice[];
|
|
497
508
|
}
|
|
498
509
|
interface PollQuestionSettings {
|
|
510
|
+
allowOtherAnswer?: boolean;
|
|
499
511
|
isMultiChoice?: boolean;
|
|
500
512
|
}
|
|
501
513
|
interface PollQuestionChoice {
|
|
502
514
|
choiceId: string;
|
|
503
515
|
description?: string;
|
|
504
516
|
disabled?: boolean;
|
|
517
|
+
isOther?: boolean;
|
|
505
518
|
}
|
|
506
519
|
|
|
507
520
|
declare enum WorkflowStatus {
|
|
@@ -521,6 +534,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
521
534
|
headline?: string;
|
|
522
535
|
intro?: string;
|
|
523
536
|
body?: string;
|
|
537
|
+
bodyRaw?: string;
|
|
524
538
|
customProperties?: {
|
|
525
539
|
[key: string]: any;
|
|
526
540
|
};
|
|
@@ -596,6 +610,7 @@ interface QuestionTranslations {
|
|
|
596
610
|
}
|
|
597
611
|
interface ChoiceTranslations {
|
|
598
612
|
choiceId: string;
|
|
613
|
+
isOther: boolean;
|
|
599
614
|
text: string;
|
|
600
615
|
}
|
|
601
616
|
|
|
@@ -610,7 +625,8 @@ declare enum AttachmentType {
|
|
|
610
625
|
Event = 5,
|
|
611
626
|
Page = 6,
|
|
612
627
|
Post = 7,
|
|
613
|
-
Giphy = 8
|
|
628
|
+
Giphy = 8,
|
|
629
|
+
MicrosoftStreamVideo = 9
|
|
614
630
|
}
|
|
615
631
|
interface BaseAttachment {
|
|
616
632
|
id: string;
|
|
@@ -626,6 +642,19 @@ interface Attachment extends BaseAttachment {
|
|
|
626
642
|
type: AttachmentType;
|
|
627
643
|
}
|
|
628
644
|
|
|
645
|
+
declare enum GraphQLAttachmentType {
|
|
646
|
+
Image = "IMAGE",
|
|
647
|
+
File = "FILE",
|
|
648
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
649
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
650
|
+
News = "NEWS",
|
|
651
|
+
Event = "EVENT",
|
|
652
|
+
Page = "PAGE",
|
|
653
|
+
Post = "POST",
|
|
654
|
+
Giphy = "GIPHY",
|
|
655
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
656
|
+
}
|
|
657
|
+
|
|
629
658
|
interface ItemWithAttachments {
|
|
630
659
|
attachments?: Attachment[];
|
|
631
660
|
fileAccessToken?: string;
|
|
@@ -658,18 +687,11 @@ declare enum ConversationScope {
|
|
|
658
687
|
Posts = 2
|
|
659
688
|
}
|
|
660
689
|
|
|
661
|
-
declare enum ItemResourceTypes {
|
|
662
|
-
News = "news",
|
|
663
|
-
Pages = "pages",
|
|
664
|
-
Posts = "posts",
|
|
665
|
-
Events = "events",
|
|
666
|
-
Comments = "comments"
|
|
667
|
-
}
|
|
668
|
-
|
|
669
690
|
declare enum EventResponse {
|
|
670
691
|
NotSet = 0,
|
|
671
692
|
Registered = 1,
|
|
672
|
-
Declined = 2
|
|
693
|
+
Declined = 2,
|
|
694
|
+
WaitingList = 3
|
|
673
695
|
}
|
|
674
696
|
interface EventItem extends SchedulableItem {
|
|
675
697
|
startDate?: string;
|
|
@@ -686,8 +708,10 @@ interface EventItem extends SchedulableItem {
|
|
|
686
708
|
recurrenceSeriesId?: string;
|
|
687
709
|
isSeriesMaster?: string;
|
|
688
710
|
isVirtual?: boolean;
|
|
711
|
+
isAllDayEvent?: boolean;
|
|
689
712
|
}
|
|
690
713
|
interface EventRegistrationSettings {
|
|
714
|
+
enableWaitingList?: boolean;
|
|
691
715
|
enabled?: boolean;
|
|
692
716
|
showParticipantsToEverybody?: boolean;
|
|
693
717
|
deadline?: string;
|
|
@@ -775,6 +799,7 @@ interface PageItem extends PublishableItem {
|
|
|
775
799
|
isUnlinked?: boolean;
|
|
776
800
|
pageType?: PageType;
|
|
777
801
|
firstChildId?: string;
|
|
802
|
+
isGroupInheritanceBroken?: boolean;
|
|
778
803
|
}
|
|
779
804
|
interface ContentsSummary {
|
|
780
805
|
[lang: string]: TitleContent & {
|
|
@@ -796,6 +821,7 @@ interface PageNavigationNode {
|
|
|
796
821
|
hasAnyPageChild?: boolean;
|
|
797
822
|
pageType?: PageType;
|
|
798
823
|
useExternalContent?: boolean;
|
|
824
|
+
isGroupInheritanceBroken?: boolean;
|
|
799
825
|
isSearchMatch?: boolean;
|
|
800
826
|
topLevelFolderName?: string;
|
|
801
827
|
uploadToken?: string;
|
|
@@ -810,6 +836,64 @@ declare enum PageType {
|
|
|
810
836
|
Document = 1
|
|
811
837
|
}
|
|
812
838
|
|
|
839
|
+
declare type KeywordsByGroupId = {
|
|
840
|
+
[key: string]: Keyword[];
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
interface SubscriptionData {
|
|
844
|
+
channels?: Channel[];
|
|
845
|
+
allKeywords?: Keyword[];
|
|
846
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
847
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
848
|
+
}
|
|
849
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
850
|
+
getChannels: () => Promise<Channel[]>;
|
|
851
|
+
refreshSubscription: () => void;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
855
|
+
|
|
856
|
+
interface NewsDetailProps {
|
|
857
|
+
itemId?: string;
|
|
858
|
+
hideComments?: boolean;
|
|
859
|
+
hideLikes?: boolean;
|
|
860
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
861
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
862
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
863
|
+
className?: string;
|
|
864
|
+
}
|
|
865
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
866
|
+
|
|
867
|
+
interface PageDetailProps {
|
|
868
|
+
itemId?: string;
|
|
869
|
+
hideComments?: boolean;
|
|
870
|
+
hideLikes?: boolean;
|
|
871
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
872
|
+
homeBreadcrumbTargetUrl?: string;
|
|
873
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
874
|
+
className?: string;
|
|
875
|
+
}
|
|
876
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
877
|
+
|
|
878
|
+
interface EventDetailProps {
|
|
879
|
+
itemId?: string;
|
|
880
|
+
hideComments?: boolean;
|
|
881
|
+
hideLikes?: boolean;
|
|
882
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
883
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
884
|
+
className?: string;
|
|
885
|
+
}
|
|
886
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
887
|
+
|
|
888
|
+
interface PostDetailProps {
|
|
889
|
+
postId: string;
|
|
890
|
+
threadId?: string;
|
|
891
|
+
onAfterDelete?: (id: string) => unknown;
|
|
892
|
+
commentCount?: number;
|
|
893
|
+
onItemClick?: (postId: string) => unknown;
|
|
894
|
+
}
|
|
895
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
896
|
+
|
|
813
897
|
declare const Dialog: FC<IDialogProps>;
|
|
814
898
|
|
|
815
899
|
interface ToolbarProps {
|
|
@@ -827,15 +911,21 @@ interface ToolbarSearchProps {
|
|
|
827
911
|
}
|
|
828
912
|
declare const Toolbar: FC<ToolbarProps>;
|
|
829
913
|
|
|
914
|
+
declare type TokenType = string | number;
|
|
915
|
+
|
|
916
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
917
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
918
|
+
}
|
|
919
|
+
|
|
830
920
|
interface ToolbarChannelSelectorProps {
|
|
831
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
832
921
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
922
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
833
923
|
channelsOptions?: {
|
|
834
924
|
availableChannels?: string[];
|
|
835
925
|
onSelected?: (channel: Channel) => unknown;
|
|
836
926
|
to?: (channel: Channel) => unknown;
|
|
837
927
|
};
|
|
838
|
-
|
|
928
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
839
929
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
840
930
|
}
|
|
841
931
|
interface ToolbarChannelSelectorOption {
|
|
@@ -872,6 +962,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
872
962
|
onClick: () => unknown;
|
|
873
963
|
}>;
|
|
874
964
|
|
|
965
|
+
declare const ToolbarManageButton: FC<{
|
|
966
|
+
onClick?: () => unknown;
|
|
967
|
+
to?: {
|
|
968
|
+
url: string;
|
|
969
|
+
target?: string;
|
|
970
|
+
};
|
|
971
|
+
disabled?: boolean;
|
|
972
|
+
}>;
|
|
973
|
+
|
|
875
974
|
interface ToolbarCloseButtonProps {
|
|
876
975
|
onClick?: () => unknown;
|
|
877
976
|
to?: {
|
|
@@ -884,11 +983,15 @@ declare const ToolbarCloseButton: FC<ToolbarCloseButtonProps>;
|
|
|
884
983
|
declare enum EventView {
|
|
885
984
|
UpcomingEvents = "upcoming",
|
|
886
985
|
MyBookedEvents = "booked",
|
|
986
|
+
UnregisteredEvents = "unregistered",
|
|
887
987
|
PastEvents = "past"
|
|
888
988
|
}
|
|
889
989
|
interface ToolbarEventViewSelectorProps {
|
|
890
|
-
|
|
990
|
+
extraViewOptions?: {
|
|
991
|
+
showUnregisteredEventsView?: boolean;
|
|
992
|
+
};
|
|
891
993
|
onChange?: (view: EventView) => void;
|
|
994
|
+
value?: EventView;
|
|
892
995
|
viewOptions?: {
|
|
893
996
|
hideUpcomingEventsView?: boolean;
|
|
894
997
|
hideMyBookedEventsView?: boolean;
|
|
@@ -900,8 +1003,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
900
1003
|
interface Props extends IPersonaProps {
|
|
901
1004
|
upn: string;
|
|
902
1005
|
tenantId?: string;
|
|
903
|
-
className?: string;
|
|
904
1006
|
displayName?: string;
|
|
1007
|
+
forceShowSecondaryText?: boolean;
|
|
1008
|
+
className?: string;
|
|
905
1009
|
}
|
|
906
1010
|
declare const Avatar: FC<Props>;
|
|
907
1011
|
|
|
@@ -912,6 +1016,13 @@ interface UserDetailsProps {
|
|
|
912
1016
|
}
|
|
913
1017
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
914
1018
|
|
|
1019
|
+
declare enum ErrorType {
|
|
1020
|
+
GenericError = "genericError",
|
|
1021
|
+
Error404 = "error404",
|
|
1022
|
+
Error403 = "error403",
|
|
1023
|
+
LoginError = "loginError"
|
|
1024
|
+
}
|
|
1025
|
+
|
|
915
1026
|
interface PageViewTrackerSettings {
|
|
916
1027
|
disabled?: boolean;
|
|
917
1028
|
}
|
|
@@ -958,6 +1069,32 @@ declare enum LogicalOperator {
|
|
|
958
1069
|
And = "AND"
|
|
959
1070
|
}
|
|
960
1071
|
|
|
1072
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1073
|
+
id: string;
|
|
1074
|
+
comments?: PaginatedList<Comment>;
|
|
1075
|
+
groupId: string;
|
|
1076
|
+
content: string;
|
|
1077
|
+
permalink?: string;
|
|
1078
|
+
author: Account;
|
|
1079
|
+
publishingDate: string;
|
|
1080
|
+
modified?: string;
|
|
1081
|
+
statistics: ItemStatistics;
|
|
1082
|
+
keywords?: {
|
|
1083
|
+
[key: string]: Keyword[];
|
|
1084
|
+
};
|
|
1085
|
+
contentLanguageCode?: string;
|
|
1086
|
+
isLiked?: boolean;
|
|
1087
|
+
isUnread?: boolean;
|
|
1088
|
+
isDemoContent?: boolean;
|
|
1089
|
+
isFollowing?: boolean;
|
|
1090
|
+
}
|
|
1091
|
+
interface PostFilterDefinition {
|
|
1092
|
+
token?: string;
|
|
1093
|
+
pageSize?: string;
|
|
1094
|
+
search?: string;
|
|
1095
|
+
keywords?: FilterWithLogicalOperator;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
961
1098
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
962
1099
|
author?: string;
|
|
963
1100
|
}
|
|
@@ -966,6 +1103,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
966
1103
|
channels?: FilterWithLogicalOperator;
|
|
967
1104
|
}
|
|
968
1105
|
|
|
1106
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1107
|
+
contacts?: string[];
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1111
|
+
startsAfter?: string;
|
|
1112
|
+
startsBefore?: string;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1116
|
+
excludePastEvents?: boolean;
|
|
1117
|
+
pastEventsOnly?: boolean;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
969
1120
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
970
1121
|
state?: WorkflowStatus;
|
|
971
1122
|
}
|
|
@@ -977,29 +1128,101 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
977
1128
|
includeExpired?: boolean;
|
|
978
1129
|
}
|
|
979
1130
|
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
987
|
-
contacts?: string[];
|
|
1131
|
+
declare enum StreamEventResponse {
|
|
1132
|
+
NotSet = "NOT_SET",
|
|
1133
|
+
Registered = "REGISTERED",
|
|
1134
|
+
WaitingList = "WAITING_LIST",
|
|
1135
|
+
Declined = "DECLINED"
|
|
988
1136
|
}
|
|
989
1137
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1138
|
+
declare enum StreamItemTypes {
|
|
1139
|
+
Post = "POST",
|
|
1140
|
+
News = "NEWS",
|
|
1141
|
+
Event = "EVENT",
|
|
1142
|
+
Page = "PAGE"
|
|
1143
|
+
}
|
|
1144
|
+
declare enum StreamConversationScope {
|
|
1145
|
+
Public = "PUBLIC",
|
|
1146
|
+
Editor = "EDITOR",
|
|
1147
|
+
Posts = "POSTS"
|
|
1148
|
+
}
|
|
1149
|
+
interface PostStreamItem extends Post {
|
|
1150
|
+
type: StreamItemTypes.Post;
|
|
1151
|
+
isUnread: boolean;
|
|
1152
|
+
keywordsList?: Keyword[];
|
|
1153
|
+
groupIds?: string[];
|
|
1154
|
+
postAttachments?: StreamAttachment[];
|
|
1155
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1156
|
+
hasMoreUnreadComments: boolean;
|
|
1157
|
+
}
|
|
1158
|
+
interface StreamPostComment extends Comment {
|
|
1159
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1160
|
+
streamConversationScope?: StreamConversationScope;
|
|
1161
|
+
}
|
|
1162
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1163
|
+
type: GraphQLAttachmentType;
|
|
1164
|
+
}
|
|
1165
|
+
interface NewsStreamItem extends NewsItem {
|
|
1166
|
+
type: StreamItemTypes.News;
|
|
1167
|
+
contentsList: StreamPublishableItemContents[];
|
|
1168
|
+
channelsList: Channel[];
|
|
1169
|
+
isUnread: boolean;
|
|
1170
|
+
keywordsList?: Keyword[];
|
|
1171
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1172
|
+
}
|
|
1173
|
+
declare enum StreamKnownNewsState {
|
|
1174
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1175
|
+
Alert = "ALERT"
|
|
1176
|
+
}
|
|
1177
|
+
interface EventStreamItem extends EventItem {
|
|
1178
|
+
type: StreamItemTypes.Event;
|
|
1179
|
+
contentsList: StreamPublishableItemContents[];
|
|
1180
|
+
channelsList: Channel[];
|
|
1181
|
+
isUnread: boolean;
|
|
1182
|
+
keywordsList?: Keyword[];
|
|
1183
|
+
userResponseType?: StreamEventResponse;
|
|
1184
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1185
|
+
}
|
|
1186
|
+
interface PageStreamItem extends PageItem {
|
|
1187
|
+
type: StreamItemTypes.Page;
|
|
1188
|
+
contentsList: StreamPublishableItemContents[];
|
|
1189
|
+
channelsList: Channel[];
|
|
1190
|
+
isUnread: boolean;
|
|
1191
|
+
keywordsList?: Keyword[];
|
|
1192
|
+
streamPageType?: string;
|
|
1193
|
+
path?: (PageNavigationNode & {
|
|
1194
|
+
parentId?: string;
|
|
1195
|
+
contentsList: StreamPublishableItemContents[];
|
|
1196
|
+
})[];
|
|
1197
|
+
}
|
|
1198
|
+
interface StreamPublishableItemContents {
|
|
1199
|
+
language: string;
|
|
1200
|
+
title: string;
|
|
1201
|
+
intro?: string;
|
|
1202
|
+
headline?: string;
|
|
1203
|
+
}
|
|
1204
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1205
|
+
cancellationReasons?: {
|
|
1206
|
+
[key: string]: string;
|
|
1207
|
+
}[];
|
|
993
1208
|
}
|
|
994
1209
|
|
|
995
|
-
interface
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1210
|
+
interface TargetLinkOverrideContextProps {
|
|
1211
|
+
onResolveContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1212
|
+
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Called instead of following the link when the user plain left-clicks a link to
|
|
1215
|
+
* another item, so the host can display that item itself (e.g. inside a modal).
|
|
1216
|
+
* Modified clicks (ctrl/cmd/shift/middle) still follow the resolved target url.
|
|
1217
|
+
*/
|
|
1218
|
+
onNavigateToItem?: (itemId: string, itemType: ItemResourceTypes) => unknown;
|
|
1219
|
+
openTargetInNewWindow?: boolean;
|
|
1220
|
+
}
|
|
1221
|
+
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
999
1222
|
|
|
1000
1223
|
interface KeywordPickerProps {
|
|
1001
1224
|
value?: Keyword[] | string[];
|
|
1002
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1225
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
1003
1226
|
showSelectionToggle?: boolean;
|
|
1004
1227
|
availableKeywords?: Keyword[];
|
|
1005
1228
|
mandatoryKeywordIds?: string[];
|
|
@@ -1017,37 +1240,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1017
1240
|
pageType?: PageType;
|
|
1018
1241
|
}
|
|
1019
1242
|
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
groupId: string;
|
|
1024
|
-
content: string;
|
|
1025
|
-
permalink?: string;
|
|
1026
|
-
author: Account;
|
|
1027
|
-
publishingDate: string;
|
|
1028
|
-
modified?: string;
|
|
1029
|
-
statistics: ItemStatistics;
|
|
1030
|
-
keywords?: {
|
|
1031
|
-
[key: string]: Keyword[];
|
|
1032
|
-
};
|
|
1033
|
-
contentLanguageCode?: string;
|
|
1034
|
-
isLiked?: boolean;
|
|
1035
|
-
isUnread?: boolean;
|
|
1036
|
-
isDemoContent?: boolean;
|
|
1037
|
-
isFollowing?: boolean;
|
|
1038
|
-
}
|
|
1039
|
-
interface PostFilterDefinition {
|
|
1040
|
-
token?: string;
|
|
1041
|
-
pageSize?: string;
|
|
1042
|
-
search?: string;
|
|
1043
|
-
keywords?: FilterWithLogicalOperator;
|
|
1044
|
-
}
|
|
1243
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1244
|
+
|
|
1245
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1045
1246
|
|
|
1046
1247
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1047
1248
|
}
|
|
1048
1249
|
|
|
1250
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1251
|
+
|
|
1252
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1253
|
+
|
|
1049
1254
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1255
|
+
/**
|
|
1256
|
+
* Limit results to those associated with the given channels.
|
|
1257
|
+
* For better performance set channel IDs instead of names.
|
|
1258
|
+
*/
|
|
1050
1259
|
channels?: string | FilterWithLogicalOperator;
|
|
1260
|
+
/**
|
|
1261
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1262
|
+
*/
|
|
1051
1263
|
keywords?: string | FilterWithLogicalOperator;
|
|
1052
1264
|
}
|
|
1053
1265
|
|
|
@@ -1060,17 +1272,23 @@ interface NewsListProps {
|
|
|
1060
1272
|
searchText?: string;
|
|
1061
1273
|
itemLayoutMode?: ItemLayoutMode;
|
|
1062
1274
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1063
|
-
onChannelClick?: (
|
|
1064
|
-
onKeywordClick?: (
|
|
1275
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1276
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1065
1277
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1066
1278
|
hidePagination?: boolean;
|
|
1067
1279
|
pageSize?: number;
|
|
1068
1280
|
includeAllItems?: boolean;
|
|
1281
|
+
cardsGap?: number;
|
|
1282
|
+
contentGap?: number;
|
|
1283
|
+
bannerSize?: number;
|
|
1284
|
+
showDateOnBottom?: boolean;
|
|
1285
|
+
showDateAsRelative?: boolean;
|
|
1069
1286
|
className?: string;
|
|
1070
1287
|
}
|
|
1071
1288
|
declare const NewsList: FC<NewsListProps>;
|
|
1072
1289
|
|
|
1073
1290
|
interface ManageChannelsProps {
|
|
1291
|
+
hideSearch?: boolean;
|
|
1074
1292
|
className?: string;
|
|
1075
1293
|
}
|
|
1076
1294
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1078,6 +1296,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1078
1296
|
interface ChannelSelectorWrapperProps {
|
|
1079
1297
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1080
1298
|
showLogicalOperatorOptions?: boolean;
|
|
1299
|
+
/**
|
|
1300
|
+
* For better performance set channel IDs instead of names.
|
|
1301
|
+
*/
|
|
1081
1302
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1082
1303
|
className?: string;
|
|
1083
1304
|
}
|
|
@@ -1094,10 +1315,11 @@ interface NewsGridProps {
|
|
|
1094
1315
|
maxColumnCount?: number;
|
|
1095
1316
|
rowCount?: number;
|
|
1096
1317
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1097
|
-
onChannelClick?: (
|
|
1098
|
-
onKeywordClick?: (
|
|
1318
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1319
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1099
1320
|
includeAllItems?: boolean;
|
|
1100
1321
|
className?: string;
|
|
1322
|
+
hideIntro?: boolean;
|
|
1101
1323
|
}
|
|
1102
1324
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1103
1325
|
|
|
@@ -1113,41 +1335,59 @@ interface EventGridProps {
|
|
|
1113
1335
|
maxColumnCount?: number;
|
|
1114
1336
|
rowCount?: number;
|
|
1115
1337
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1116
|
-
onChannelClick?: (
|
|
1338
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1117
1339
|
className?: string;
|
|
1118
1340
|
}
|
|
1119
1341
|
declare const EventsGrid: FC<EventGridProps>;
|
|
1120
1342
|
|
|
1121
1343
|
interface EventsListProps {
|
|
1122
|
-
|
|
1344
|
+
bannerSize?: number;
|
|
1345
|
+
cardsGap?: number;
|
|
1346
|
+
className?: string;
|
|
1347
|
+
contentGap?: number;
|
|
1123
1348
|
filter?: EventFilterDefinition;
|
|
1124
|
-
|
|
1349
|
+
hidePagination?: boolean;
|
|
1350
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1125
1351
|
itemLayoutMode?: ItemLayoutMode;
|
|
1126
1352
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1127
|
-
onChannelClick?: (
|
|
1128
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1129
|
-
hidePagination?: boolean;
|
|
1353
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1130
1354
|
pageSize?: number;
|
|
1131
|
-
|
|
1355
|
+
searchText?: string;
|
|
1356
|
+
view?: EventView;
|
|
1132
1357
|
}
|
|
1133
1358
|
declare const EventsList: FC<EventsListProps>;
|
|
1134
1359
|
|
|
1360
|
+
declare enum HeroPagingType {
|
|
1361
|
+
page = "page",
|
|
1362
|
+
item = "item"
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1135
1365
|
interface NewsHeroFilterProps {
|
|
1366
|
+
/**
|
|
1367
|
+
* Limit results to those associated with the given channels.
|
|
1368
|
+
* For better performance set channel IDs instead of names.
|
|
1369
|
+
*/
|
|
1136
1370
|
channels?: string | FilterWithLogicalOperator;
|
|
1371
|
+
/**
|
|
1372
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1373
|
+
*/
|
|
1137
1374
|
keywords?: string | FilterWithLogicalOperator;
|
|
1138
1375
|
pageSize?: number;
|
|
1139
1376
|
}
|
|
1140
1377
|
interface NewsHeroProps {
|
|
1141
|
-
filter?: NewsHeroFilterProps;
|
|
1142
|
-
disableAutoplay?: boolean;
|
|
1143
1378
|
autoplayInterval?: number;
|
|
1144
|
-
|
|
1145
|
-
|
|
1379
|
+
disableAutoplay?: boolean;
|
|
1380
|
+
filter?: NewsHeroFilterProps;
|
|
1146
1381
|
height?: number | string;
|
|
1147
1382
|
includeAllItems?: boolean;
|
|
1148
|
-
|
|
1149
|
-
|
|
1383
|
+
isHighContrast?: boolean;
|
|
1384
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1385
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1386
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1387
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1388
|
+
pagingType?: HeroPagingType;
|
|
1150
1389
|
showKeywords?: boolean;
|
|
1390
|
+
width?: number | string;
|
|
1151
1391
|
}
|
|
1152
1392
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1153
1393
|
|
|
@@ -1175,27 +1415,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1175
1415
|
itemId: string;
|
|
1176
1416
|
}>;
|
|
1177
1417
|
|
|
1178
|
-
declare const
|
|
1418
|
+
declare const PageItemContextProvider: FC<{
|
|
1419
|
+
itemId: string;
|
|
1420
|
+
}>;
|
|
1421
|
+
|
|
1422
|
+
declare const EventItemContextProvider: FC<{
|
|
1423
|
+
itemId: string;
|
|
1424
|
+
}>;
|
|
1425
|
+
|
|
1426
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1179
1427
|
showEditLanguagePreferences?: boolean;
|
|
1180
1428
|
onEditLanguagePreferences?: () => unknown;
|
|
1181
1429
|
}>;
|
|
1182
1430
|
|
|
1431
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1432
|
+
onClick?: (itemId: string) => unknown;
|
|
1433
|
+
}>;
|
|
1183
1434
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1184
1435
|
onClick?: (itemId: string) => unknown;
|
|
1185
1436
|
}>;
|
|
1186
1437
|
|
|
1187
|
-
interface
|
|
1438
|
+
interface SharedItemDetailPreviewProps {
|
|
1188
1439
|
itemId?: string;
|
|
1189
1440
|
versionId?: string;
|
|
1190
1441
|
className?: string;
|
|
1442
|
+
hideLikes?: boolean;
|
|
1443
|
+
hideComments?: boolean;
|
|
1191
1444
|
}
|
|
1192
|
-
declare const NewsDetailPreview: FC<
|
|
1445
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1446
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1447
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1193
1448
|
|
|
1194
1449
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1195
1450
|
itemId: string;
|
|
1196
1451
|
versionId?: string;
|
|
1197
1452
|
}>;
|
|
1198
1453
|
|
|
1454
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1455
|
+
itemId: string;
|
|
1456
|
+
versionId?: string;
|
|
1457
|
+
}>;
|
|
1458
|
+
|
|
1459
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1460
|
+
itemId: string;
|
|
1461
|
+
versionId?: string;
|
|
1462
|
+
}>;
|
|
1463
|
+
|
|
1199
1464
|
interface FilterProps {
|
|
1200
1465
|
filter: IndexableFilterDefinition;
|
|
1201
1466
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1204,6 +1469,9 @@ interface FilterProps {
|
|
|
1204
1469
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1205
1470
|
|
|
1206
1471
|
interface ChannelFilterProps {
|
|
1472
|
+
/**
|
|
1473
|
+
* For better performance set channel IDs instead of names.
|
|
1474
|
+
*/
|
|
1207
1475
|
channels?: string[];
|
|
1208
1476
|
className?: string;
|
|
1209
1477
|
}
|
|
@@ -1352,21 +1620,25 @@ interface PagesGridProps {
|
|
|
1352
1620
|
maxColumnCount?: number;
|
|
1353
1621
|
rowCount?: number;
|
|
1354
1622
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1355
|
-
onKeywordClick?: (
|
|
1623
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1624
|
+
hideIntro?: boolean;
|
|
1356
1625
|
className?: string;
|
|
1357
1626
|
}
|
|
1358
1627
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
1359
1628
|
|
|
1360
1629
|
interface PagesListProps {
|
|
1630
|
+
bannerSize?: number;
|
|
1631
|
+
cardsGap?: number;
|
|
1632
|
+
className?: string;
|
|
1633
|
+
contentGap?: number;
|
|
1361
1634
|
filter?: PageFilterDefinition;
|
|
1362
|
-
|
|
1635
|
+
hidePagination?: boolean;
|
|
1636
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1363
1637
|
itemLayoutMode?: ItemLayoutMode;
|
|
1364
1638
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1365
|
-
onKeywordClick?: (
|
|
1366
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1367
|
-
hidePagination?: boolean;
|
|
1639
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1368
1640
|
pageSize?: number;
|
|
1369
|
-
|
|
1641
|
+
searchText?: string;
|
|
1370
1642
|
}
|
|
1371
1643
|
declare const PagesList: FC<PagesListProps>;
|
|
1372
1644
|
|
|
@@ -1400,6 +1672,7 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1400
1672
|
interface PageEditorContextProviderProps {
|
|
1401
1673
|
itemId?: string;
|
|
1402
1674
|
groupId?: string;
|
|
1675
|
+
parentId?: string;
|
|
1403
1676
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1404
1677
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1405
1678
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
@@ -1419,4 +1692,14 @@ interface PageEditorPanelProps {
|
|
|
1419
1692
|
}
|
|
1420
1693
|
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1421
1694
|
|
|
1422
|
-
|
|
1695
|
+
interface ErrorWrapperProps {
|
|
1696
|
+
errorType: ErrorType;
|
|
1697
|
+
isList?: boolean;
|
|
1698
|
+
}
|
|
1699
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1700
|
+
|
|
1701
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1702
|
+
onClick?: () => unknown;
|
|
1703
|
+
}>;
|
|
1704
|
+
|
|
1705
|
+
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 };
|