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