@livetiles/reach-components-react 0.5.0-preview.95 → 0.5.0-preview.951
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 +6 -4
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +2 -2
- 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 +14 -4
- 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 -3
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +2 -2
- package/PublishableItemCompactCard.d.ts +6 -1
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +15 -0
- 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/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/common/hero/Hero.d.ts +9 -11
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +18 -5
- 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/EventEditorContextProvider.d.ts +9 -1
- package/editor/PageEditor.d.ts +1 -1
- package/editor/PageEditorContextProvider.d.ts +1 -0
- package/editor/PageEditorPanel.d.ts +5 -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 +406 -162
- package/index.esm.js +1 -1
- package/index.esm2.js +46 -16
- 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 +839 -20
- 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 +2 -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 +2 -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/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,52 @@ 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
|
+
config?: {
|
|
45
|
+
apiEndpoint?: string;
|
|
46
|
+
webAppUrl?: string;
|
|
47
|
+
api3Endpoint?: string;
|
|
48
|
+
webSocketsEndpoint?: string;
|
|
49
|
+
additionalVideoSources?: VideoSource$1[];
|
|
50
|
+
};
|
|
51
|
+
onRequestToken?: () => Promise<string>;
|
|
52
|
+
subscriptionId: string;
|
|
53
|
+
language?: string;
|
|
54
|
+
disableUiFabricThemeOverwrite?: boolean;
|
|
55
|
+
locale?: string;
|
|
56
|
+
/**
|
|
57
|
+
* These properties can be used to define the behavior of the analytics module.
|
|
58
|
+
*
|
|
59
|
+
* With `disableAnalytics` you can completely disable all analytics tracking.
|
|
60
|
+
* The `appName` is optional but highly encouraged to be set,
|
|
61
|
+
* in order to know where the components are used in. The value must be a non-empty string,
|
|
62
|
+
* only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
|
|
63
|
+
*/
|
|
64
|
+
analyticsProps?: {
|
|
65
|
+
disableAnalytics?: boolean;
|
|
66
|
+
appName?: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
70
|
+
|
|
71
|
+
interface PaginatedList<TItem> {
|
|
72
|
+
items: TItem[];
|
|
73
|
+
paginationToken?: any;
|
|
74
|
+
nextItem?: TItem;
|
|
75
|
+
hasMoreUnreadComments?: boolean;
|
|
76
|
+
hasNextPage?: boolean;
|
|
87
77
|
}
|
|
88
78
|
|
|
89
79
|
interface Resources {
|
|
@@ -156,6 +146,8 @@ interface NotificationTypeSettings {
|
|
|
156
146
|
pluginNotifications: {
|
|
157
147
|
[key: string]: NotificationType;
|
|
158
148
|
};
|
|
149
|
+
newsEditor: NotificationType;
|
|
150
|
+
eventEditor: NotificationType;
|
|
159
151
|
}
|
|
160
152
|
interface CurrentUser extends Account {
|
|
161
153
|
isEmailVerificationPending?: boolean;
|
|
@@ -187,6 +179,7 @@ interface CurrentUser extends Account {
|
|
|
187
179
|
termsAndConditionsApprovedHash: string;
|
|
188
180
|
isPublicUser?: boolean;
|
|
189
181
|
hasUnreadChats?: boolean;
|
|
182
|
+
publicSubscriptionIds?: string[];
|
|
190
183
|
}
|
|
191
184
|
interface UserContact {
|
|
192
185
|
tokenUniqueId: string;
|
|
@@ -226,6 +219,39 @@ interface LanguageBase {
|
|
|
226
219
|
code: string;
|
|
227
220
|
}
|
|
228
221
|
|
|
222
|
+
interface KeywordGroup {
|
|
223
|
+
id: string;
|
|
224
|
+
name: string;
|
|
225
|
+
keywords: Keyword[];
|
|
226
|
+
translations: {
|
|
227
|
+
[key: string]: string;
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
interface Keyword {
|
|
231
|
+
id: string;
|
|
232
|
+
name: string;
|
|
233
|
+
groupId?: string;
|
|
234
|
+
translations: {
|
|
235
|
+
[key: string]: string;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface Channel {
|
|
240
|
+
id: string;
|
|
241
|
+
name: string;
|
|
242
|
+
translations?: {
|
|
243
|
+
[key: string]: string;
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare enum ItemResourceTypes {
|
|
248
|
+
News = "news",
|
|
249
|
+
Pages = "pages",
|
|
250
|
+
Posts = "posts",
|
|
251
|
+
Events = "events",
|
|
252
|
+
Comments = "comments"
|
|
253
|
+
}
|
|
254
|
+
|
|
229
255
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
230
256
|
domains?: string[];
|
|
231
257
|
tenantId: string;
|
|
@@ -284,6 +310,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
310
|
customDomain?: string;
|
|
285
311
|
allowSelfRegistration?: boolean;
|
|
286
312
|
brandFolderConfig?: BrandFolderConfig;
|
|
313
|
+
hideSubscriptionName?: boolean;
|
|
287
314
|
}
|
|
288
315
|
interface BrandFolderConfig {
|
|
289
316
|
sections?: string[];
|
|
@@ -319,7 +346,9 @@ declare enum ExtensionArea {
|
|
|
319
346
|
page = "Page",
|
|
320
347
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
321
348
|
eventDetailViewSection = "EventDetailViewSection",
|
|
322
|
-
itemEditor = "ItemEditor"
|
|
349
|
+
itemEditor = "ItemEditor",
|
|
350
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
351
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
323
352
|
}
|
|
324
353
|
declare type InlinePlugin = {
|
|
325
354
|
area: ExtensionArea.itemEditor;
|
|
@@ -383,23 +412,6 @@ declare enum FieldMode {
|
|
|
383
412
|
Hidden = 3
|
|
384
413
|
}
|
|
385
414
|
|
|
386
|
-
interface Channel {
|
|
387
|
-
id: string;
|
|
388
|
-
name: string;
|
|
389
|
-
translations?: {
|
|
390
|
-
[key: string]: string;
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
interface Keyword {
|
|
395
|
-
id: string;
|
|
396
|
-
name: string;
|
|
397
|
-
groupId?: string;
|
|
398
|
-
translations: {
|
|
399
|
-
[key: string]: string;
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
|
|
403
415
|
interface ItemStatistics {
|
|
404
416
|
commentCount?: number;
|
|
405
417
|
likeCount?: number;
|
|
@@ -434,7 +446,7 @@ declare enum KnownNewsState {
|
|
|
434
446
|
declare type VersionId = string;
|
|
435
447
|
interface SchedulableItem extends PublishableItem {
|
|
436
448
|
metadata?: NewsMetadata;
|
|
437
|
-
channels?:
|
|
449
|
+
channels?: Channel[];
|
|
438
450
|
}
|
|
439
451
|
interface NewsItem extends SchedulableItem {
|
|
440
452
|
source?: string;
|
|
@@ -443,19 +455,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
443
455
|
knownState: KnownNewsState;
|
|
444
456
|
hasNewComments?: boolean;
|
|
445
457
|
isLiked?: boolean;
|
|
446
|
-
shareToken?: ShareToken;
|
|
447
|
-
}
|
|
448
|
-
interface ShareToken {
|
|
449
|
-
published?: string;
|
|
450
|
-
preview?: string;
|
|
451
458
|
}
|
|
452
459
|
interface NewsItemAlertOptions {
|
|
453
460
|
duration?: string;
|
|
454
461
|
endDate?: Date;
|
|
455
462
|
expireAfter?: boolean;
|
|
456
|
-
}
|
|
457
|
-
interface SchedulableItemChannel {
|
|
458
|
-
name: string;
|
|
459
463
|
}
|
|
460
464
|
|
|
461
465
|
declare enum VideoSource {
|
|
@@ -470,19 +474,6 @@ interface BaseItem {
|
|
|
470
474
|
id?: string;
|
|
471
475
|
statistics?: ItemStatistics;
|
|
472
476
|
poll?: Poll;
|
|
473
|
-
searchHighlights?: SearchHighlightSummary;
|
|
474
|
-
}
|
|
475
|
-
interface SearchHighlightSummary {
|
|
476
|
-
title: SearchHighlight[];
|
|
477
|
-
content: SearchHighlight[];
|
|
478
|
-
}
|
|
479
|
-
interface SearchHighlight {
|
|
480
|
-
language: string;
|
|
481
|
-
texts: {
|
|
482
|
-
value: string;
|
|
483
|
-
type: 'text' | 'hit';
|
|
484
|
-
}[];
|
|
485
|
-
score: number;
|
|
486
477
|
}
|
|
487
478
|
interface Poll {
|
|
488
479
|
questions: PollQuestion[];
|
|
@@ -517,6 +508,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
517
508
|
headline?: string;
|
|
518
509
|
intro?: string;
|
|
519
510
|
body?: string;
|
|
511
|
+
bodyRaw?: string;
|
|
520
512
|
customProperties?: {
|
|
521
513
|
[key: string]: any;
|
|
522
514
|
};
|
|
@@ -606,7 +598,8 @@ declare enum AttachmentType {
|
|
|
606
598
|
Event = 5,
|
|
607
599
|
Page = 6,
|
|
608
600
|
Post = 7,
|
|
609
|
-
Giphy = 8
|
|
601
|
+
Giphy = 8,
|
|
602
|
+
MicrosoftStreamVideo = 9
|
|
610
603
|
}
|
|
611
604
|
interface BaseAttachment {
|
|
612
605
|
id: string;
|
|
@@ -622,6 +615,19 @@ interface Attachment extends BaseAttachment {
|
|
|
622
615
|
type: AttachmentType;
|
|
623
616
|
}
|
|
624
617
|
|
|
618
|
+
declare enum GraphQLAttachmentType {
|
|
619
|
+
Image = "IMAGE",
|
|
620
|
+
File = "FILE",
|
|
621
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
622
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
623
|
+
News = "NEWS",
|
|
624
|
+
Event = "EVENT",
|
|
625
|
+
Page = "PAGE",
|
|
626
|
+
Post = "POST",
|
|
627
|
+
Giphy = "GIPHY",
|
|
628
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
629
|
+
}
|
|
630
|
+
|
|
625
631
|
interface ItemWithAttachments {
|
|
626
632
|
attachments?: Attachment[];
|
|
627
633
|
fileAccessToken?: string;
|
|
@@ -654,14 +660,6 @@ declare enum ConversationScope {
|
|
|
654
660
|
Posts = 2
|
|
655
661
|
}
|
|
656
662
|
|
|
657
|
-
declare enum ItemResourceTypes {
|
|
658
|
-
News = "news",
|
|
659
|
-
Pages = "pages",
|
|
660
|
-
Posts = "posts",
|
|
661
|
-
Events = "events",
|
|
662
|
-
Comments = "comments"
|
|
663
|
-
}
|
|
664
|
-
|
|
665
663
|
declare enum EventResponse {
|
|
666
664
|
NotSet = 0,
|
|
667
665
|
Registered = 1,
|
|
@@ -682,6 +680,7 @@ interface EventItem extends SchedulableItem {
|
|
|
682
680
|
recurrenceSeriesId?: string;
|
|
683
681
|
isSeriesMaster?: string;
|
|
684
682
|
isVirtual?: boolean;
|
|
683
|
+
isAllDayEvent?: boolean;
|
|
685
684
|
}
|
|
686
685
|
interface EventRegistrationSettings {
|
|
687
686
|
enabled?: boolean;
|
|
@@ -771,6 +770,7 @@ interface PageItem extends PublishableItem {
|
|
|
771
770
|
isUnlinked?: boolean;
|
|
772
771
|
pageType?: PageType;
|
|
773
772
|
firstChildId?: string;
|
|
773
|
+
isGroupInheritanceBroken?: boolean;
|
|
774
774
|
}
|
|
775
775
|
interface ContentsSummary {
|
|
776
776
|
[lang: string]: TitleContent & {
|
|
@@ -792,6 +792,7 @@ interface PageNavigationNode {
|
|
|
792
792
|
hasAnyPageChild?: boolean;
|
|
793
793
|
pageType?: PageType;
|
|
794
794
|
useExternalContent?: boolean;
|
|
795
|
+
isGroupInheritanceBroken?: boolean;
|
|
795
796
|
isSearchMatch?: boolean;
|
|
796
797
|
topLevelFolderName?: string;
|
|
797
798
|
uploadToken?: string;
|
|
@@ -806,6 +807,64 @@ declare enum PageType {
|
|
|
806
807
|
Document = 1
|
|
807
808
|
}
|
|
808
809
|
|
|
810
|
+
declare type KeywordsByGroupId = {
|
|
811
|
+
[key: string]: Keyword[];
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
interface SubscriptionData {
|
|
815
|
+
channels?: Channel[];
|
|
816
|
+
allKeywords?: Keyword[];
|
|
817
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
818
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
819
|
+
}
|
|
820
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
821
|
+
getChannels: () => Promise<Channel[]>;
|
|
822
|
+
refreshSubscription: () => void;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
826
|
+
|
|
827
|
+
interface NewsDetailProps {
|
|
828
|
+
itemId?: string;
|
|
829
|
+
hideComments?: boolean;
|
|
830
|
+
hideLikes?: boolean;
|
|
831
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
832
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
833
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
834
|
+
className?: string;
|
|
835
|
+
}
|
|
836
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
837
|
+
|
|
838
|
+
interface PageDetailProps {
|
|
839
|
+
itemId?: string;
|
|
840
|
+
hideComments?: boolean;
|
|
841
|
+
hideLikes?: boolean;
|
|
842
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
843
|
+
homeBreadcrumbTargetUrl?: string;
|
|
844
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
845
|
+
className?: string;
|
|
846
|
+
}
|
|
847
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
848
|
+
|
|
849
|
+
interface EventDetailProps {
|
|
850
|
+
itemId?: string;
|
|
851
|
+
hideComments?: boolean;
|
|
852
|
+
hideLikes?: boolean;
|
|
853
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
854
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
855
|
+
className?: string;
|
|
856
|
+
}
|
|
857
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
858
|
+
|
|
859
|
+
interface PostDetailProps {
|
|
860
|
+
postId: string;
|
|
861
|
+
threadId?: string;
|
|
862
|
+
onAfterDelete?: (id: string) => unknown;
|
|
863
|
+
commentCount?: number;
|
|
864
|
+
onItemClick?: (postId: string) => unknown;
|
|
865
|
+
}
|
|
866
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
867
|
+
|
|
809
868
|
declare const Dialog: FC<IDialogProps>;
|
|
810
869
|
|
|
811
870
|
interface ToolbarProps {
|
|
@@ -823,6 +882,12 @@ interface ToolbarSearchProps {
|
|
|
823
882
|
}
|
|
824
883
|
declare const Toolbar: FC<ToolbarProps>;
|
|
825
884
|
|
|
885
|
+
declare type TokenType = string | number;
|
|
886
|
+
|
|
887
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
888
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
889
|
+
}
|
|
890
|
+
|
|
826
891
|
interface ToolbarChannelSelectorProps {
|
|
827
892
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
828
893
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -868,6 +933,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
868
933
|
onClick: () => unknown;
|
|
869
934
|
}>;
|
|
870
935
|
|
|
936
|
+
declare const ToolbarManageButton: FC<{
|
|
937
|
+
onClick?: () => unknown;
|
|
938
|
+
to?: {
|
|
939
|
+
url: string;
|
|
940
|
+
target?: string;
|
|
941
|
+
};
|
|
942
|
+
disabled?: boolean;
|
|
943
|
+
}>;
|
|
944
|
+
|
|
871
945
|
interface ToolbarCloseButtonProps {
|
|
872
946
|
onClick?: () => unknown;
|
|
873
947
|
to?: {
|
|
@@ -896,8 +970,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
896
970
|
interface Props extends IPersonaProps {
|
|
897
971
|
upn: string;
|
|
898
972
|
tenantId?: string;
|
|
899
|
-
className?: string;
|
|
900
973
|
displayName?: string;
|
|
974
|
+
forceShowSecondaryText?: boolean;
|
|
975
|
+
className?: string;
|
|
901
976
|
}
|
|
902
977
|
declare const Avatar: FC<Props>;
|
|
903
978
|
|
|
@@ -908,6 +983,13 @@ interface UserDetailsProps {
|
|
|
908
983
|
}
|
|
909
984
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
910
985
|
|
|
986
|
+
declare enum ErrorType {
|
|
987
|
+
GenericError = "genericError",
|
|
988
|
+
Error404 = "error404",
|
|
989
|
+
Error403 = "error403",
|
|
990
|
+
LoginError = "loginError"
|
|
991
|
+
}
|
|
992
|
+
|
|
911
993
|
interface PageViewTrackerSettings {
|
|
912
994
|
disabled?: boolean;
|
|
913
995
|
}
|
|
@@ -954,6 +1036,32 @@ declare enum LogicalOperator {
|
|
|
954
1036
|
And = "AND"
|
|
955
1037
|
}
|
|
956
1038
|
|
|
1039
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1040
|
+
id: string;
|
|
1041
|
+
comments?: PaginatedList<Comment>;
|
|
1042
|
+
groupId: string;
|
|
1043
|
+
content: string;
|
|
1044
|
+
permalink?: string;
|
|
1045
|
+
author: Account;
|
|
1046
|
+
publishingDate: string;
|
|
1047
|
+
modified?: string;
|
|
1048
|
+
statistics: ItemStatistics;
|
|
1049
|
+
keywords?: {
|
|
1050
|
+
[key: string]: Keyword[];
|
|
1051
|
+
};
|
|
1052
|
+
contentLanguageCode?: string;
|
|
1053
|
+
isLiked?: boolean;
|
|
1054
|
+
isUnread?: boolean;
|
|
1055
|
+
isDemoContent?: boolean;
|
|
1056
|
+
isFollowing?: boolean;
|
|
1057
|
+
}
|
|
1058
|
+
interface PostFilterDefinition {
|
|
1059
|
+
token?: string;
|
|
1060
|
+
pageSize?: string;
|
|
1061
|
+
search?: string;
|
|
1062
|
+
keywords?: FilterWithLogicalOperator;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
957
1065
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
958
1066
|
author?: string;
|
|
959
1067
|
}
|
|
@@ -962,6 +1070,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
962
1070
|
channels?: FilterWithLogicalOperator;
|
|
963
1071
|
}
|
|
964
1072
|
|
|
1073
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1074
|
+
contacts?: string[];
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1078
|
+
startsAfter?: string;
|
|
1079
|
+
startsBefore?: string;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1083
|
+
excludePastEvents?: boolean;
|
|
1084
|
+
pastEventsOnly?: boolean;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
965
1087
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
966
1088
|
state?: WorkflowStatus;
|
|
967
1089
|
}
|
|
@@ -973,26 +1095,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
973
1095
|
includeExpired?: boolean;
|
|
974
1096
|
}
|
|
975
1097
|
|
|
1098
|
+
declare enum StreamEventResponse {
|
|
1099
|
+
NotSet = "NOTSET",
|
|
1100
|
+
Registered = "REGISTERED",
|
|
1101
|
+
Declined = "DECLINED"
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
declare enum StreamItemTypes {
|
|
1105
|
+
Post = "POST",
|
|
1106
|
+
News = "NEWS",
|
|
1107
|
+
Event = "EVENT",
|
|
1108
|
+
Page = "PAGE"
|
|
1109
|
+
}
|
|
1110
|
+
declare enum StreamConversationScope {
|
|
1111
|
+
Public = "PUBLIC",
|
|
1112
|
+
Editor = "EDITOR",
|
|
1113
|
+
Posts = "POSTS"
|
|
1114
|
+
}
|
|
1115
|
+
interface PostStreamItem extends Post {
|
|
1116
|
+
type: StreamItemTypes.Post;
|
|
1117
|
+
isUnread: boolean;
|
|
1118
|
+
keywordsList?: Keyword[];
|
|
1119
|
+
groupIds?: string[];
|
|
1120
|
+
postAttachments?: StreamAttachment[];
|
|
1121
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1122
|
+
hasMoreUnreadComments: boolean;
|
|
1123
|
+
}
|
|
1124
|
+
interface StreamPostComment extends Comment {
|
|
1125
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1126
|
+
streamConversationScope?: StreamConversationScope;
|
|
1127
|
+
}
|
|
1128
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1129
|
+
type: GraphQLAttachmentType;
|
|
1130
|
+
}
|
|
1131
|
+
interface NewsStreamItem extends NewsItem {
|
|
1132
|
+
type: StreamItemTypes.News;
|
|
1133
|
+
contentsList: StreamPublishableItemContents[];
|
|
1134
|
+
channelsList: Channel[];
|
|
1135
|
+
isUnread: boolean;
|
|
1136
|
+
keywordsList?: Keyword[];
|
|
1137
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1138
|
+
}
|
|
1139
|
+
declare enum StreamKnownNewsState {
|
|
1140
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1141
|
+
Alert = "ALERT"
|
|
1142
|
+
}
|
|
1143
|
+
interface EventStreamItem extends EventItem {
|
|
1144
|
+
type: StreamItemTypes.Event;
|
|
1145
|
+
contentsList: StreamPublishableItemContents[];
|
|
1146
|
+
channelsList: Channel[];
|
|
1147
|
+
isUnread: boolean;
|
|
1148
|
+
keywordsList?: Keyword[];
|
|
1149
|
+
userResponseType?: StreamEventResponse;
|
|
1150
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1151
|
+
}
|
|
1152
|
+
interface PageStreamItem extends PageItem {
|
|
1153
|
+
type: StreamItemTypes.Page;
|
|
1154
|
+
contentsList: StreamPublishableItemContents[];
|
|
1155
|
+
channelsList: Channel[];
|
|
1156
|
+
isUnread: boolean;
|
|
1157
|
+
keywordsList?: Keyword[];
|
|
1158
|
+
streamPageType?: string;
|
|
1159
|
+
path?: (PageNavigationNode & {
|
|
1160
|
+
parentId?: string;
|
|
1161
|
+
contentsList: StreamPublishableItemContents[];
|
|
1162
|
+
})[];
|
|
1163
|
+
}
|
|
1164
|
+
interface StreamPublishableItemContents {
|
|
1165
|
+
language: string;
|
|
1166
|
+
title: string;
|
|
1167
|
+
intro?: string;
|
|
1168
|
+
headline?: string;
|
|
1169
|
+
}
|
|
1170
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1171
|
+
cancellationReasons?: {
|
|
1172
|
+
[key: string]: string;
|
|
1173
|
+
}[];
|
|
1174
|
+
}
|
|
1175
|
+
|
|
976
1176
|
interface TargetLinkOverrideContextProps {
|
|
977
1177
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
978
1178
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
979
1179
|
}
|
|
980
1180
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
981
1181
|
|
|
982
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
983
|
-
contacts?: string[];
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
987
|
-
startsAfter?: string;
|
|
988
|
-
startsBefore?: string;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
992
|
-
excludePastEvents?: boolean;
|
|
993
|
-
pastEventsOnly?: boolean;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
1182
|
interface KeywordPickerProps {
|
|
997
1183
|
value?: Keyword[] | string[];
|
|
998
1184
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -1013,37 +1199,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1013
1199
|
pageType?: PageType;
|
|
1014
1200
|
}
|
|
1015
1201
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
groupId: string;
|
|
1020
|
-
content: string;
|
|
1021
|
-
permalink?: string;
|
|
1022
|
-
author: Account;
|
|
1023
|
-
publishingDate: string;
|
|
1024
|
-
modified?: string;
|
|
1025
|
-
statistics: ItemStatistics;
|
|
1026
|
-
keywords?: {
|
|
1027
|
-
[key: string]: Keyword[];
|
|
1028
|
-
};
|
|
1029
|
-
contentLanguageCode?: string;
|
|
1030
|
-
isLiked?: boolean;
|
|
1031
|
-
isUnread?: boolean;
|
|
1032
|
-
isDemoContent?: boolean;
|
|
1033
|
-
isFollowing?: boolean;
|
|
1034
|
-
}
|
|
1035
|
-
interface PostFilterDefinition {
|
|
1036
|
-
token?: string;
|
|
1037
|
-
pageSize?: string;
|
|
1038
|
-
search?: string;
|
|
1039
|
-
keywords?: FilterWithLogicalOperator;
|
|
1040
|
-
}
|
|
1202
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1203
|
+
|
|
1204
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1041
1205
|
|
|
1042
1206
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1043
1207
|
}
|
|
1044
1208
|
|
|
1209
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1210
|
+
|
|
1211
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1212
|
+
|
|
1045
1213
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1214
|
+
/**
|
|
1215
|
+
* Limit results to those associated with the given channels.
|
|
1216
|
+
* For better performance set channel IDs instead of names.
|
|
1217
|
+
*/
|
|
1046
1218
|
channels?: string | FilterWithLogicalOperator;
|
|
1219
|
+
/**
|
|
1220
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1221
|
+
*/
|
|
1047
1222
|
keywords?: string | FilterWithLogicalOperator;
|
|
1048
1223
|
}
|
|
1049
1224
|
|
|
@@ -1056,17 +1231,23 @@ interface NewsListProps {
|
|
|
1056
1231
|
searchText?: string;
|
|
1057
1232
|
itemLayoutMode?: ItemLayoutMode;
|
|
1058
1233
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1059
|
-
onChannelClick?: (
|
|
1060
|
-
onKeywordClick?: (
|
|
1234
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1235
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1061
1236
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1062
1237
|
hidePagination?: boolean;
|
|
1063
1238
|
pageSize?: number;
|
|
1064
1239
|
includeAllItems?: boolean;
|
|
1240
|
+
cardsGap?: number;
|
|
1241
|
+
contentGap?: number;
|
|
1242
|
+
bannerSize?: number;
|
|
1243
|
+
showDateOnBottom?: boolean;
|
|
1244
|
+
showDateAsRelative?: boolean;
|
|
1065
1245
|
className?: string;
|
|
1066
1246
|
}
|
|
1067
1247
|
declare const NewsList: FC<NewsListProps>;
|
|
1068
1248
|
|
|
1069
1249
|
interface ManageChannelsProps {
|
|
1250
|
+
hideSearch?: boolean;
|
|
1070
1251
|
className?: string;
|
|
1071
1252
|
}
|
|
1072
1253
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1074,6 +1255,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1074
1255
|
interface ChannelSelectorWrapperProps {
|
|
1075
1256
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1076
1257
|
showLogicalOperatorOptions?: boolean;
|
|
1258
|
+
/**
|
|
1259
|
+
* For better performance set channel IDs instead of names.
|
|
1260
|
+
*/
|
|
1077
1261
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1078
1262
|
className?: string;
|
|
1079
1263
|
}
|
|
@@ -1090,10 +1274,11 @@ interface NewsGridProps {
|
|
|
1090
1274
|
maxColumnCount?: number;
|
|
1091
1275
|
rowCount?: number;
|
|
1092
1276
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1093
|
-
onChannelClick?: (
|
|
1094
|
-
onKeywordClick?: (
|
|
1277
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1278
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1095
1279
|
includeAllItems?: boolean;
|
|
1096
1280
|
className?: string;
|
|
1281
|
+
hideIntro?: boolean;
|
|
1097
1282
|
}
|
|
1098
1283
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1099
1284
|
|
|
@@ -1109,7 +1294,7 @@ interface EventGridProps {
|
|
|
1109
1294
|
maxColumnCount?: number;
|
|
1110
1295
|
rowCount?: number;
|
|
1111
1296
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1112
|
-
onChannelClick?: (
|
|
1297
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1113
1298
|
className?: string;
|
|
1114
1299
|
}
|
|
1115
1300
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1120,7 +1305,7 @@ interface EventsListProps {
|
|
|
1120
1305
|
searchText?: string;
|
|
1121
1306
|
itemLayoutMode?: ItemLayoutMode;
|
|
1122
1307
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1123
|
-
onChannelClick?: (
|
|
1308
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1124
1309
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1125
1310
|
hidePagination?: boolean;
|
|
1126
1311
|
pageSize?: number;
|
|
@@ -1128,8 +1313,20 @@ interface EventsListProps {
|
|
|
1128
1313
|
}
|
|
1129
1314
|
declare const EventsList: FC<EventsListProps>;
|
|
1130
1315
|
|
|
1316
|
+
declare enum HeroPagingType {
|
|
1317
|
+
page = "page",
|
|
1318
|
+
item = "item"
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1131
1321
|
interface NewsHeroFilterProps {
|
|
1322
|
+
/**
|
|
1323
|
+
* Limit results to those associated with the given channels.
|
|
1324
|
+
* For better performance set channel IDs instead of names.
|
|
1325
|
+
*/
|
|
1132
1326
|
channels?: string | FilterWithLogicalOperator;
|
|
1327
|
+
/**
|
|
1328
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1329
|
+
*/
|
|
1133
1330
|
keywords?: string | FilterWithLogicalOperator;
|
|
1134
1331
|
pageSize?: number;
|
|
1135
1332
|
}
|
|
@@ -1141,9 +1338,11 @@ interface NewsHeroProps {
|
|
|
1141
1338
|
width?: number | string;
|
|
1142
1339
|
height?: number | string;
|
|
1143
1340
|
includeAllItems?: boolean;
|
|
1144
|
-
onChannelClick?: (
|
|
1145
|
-
onKeywordClick?: (
|
|
1341
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1342
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1146
1343
|
showKeywords?: boolean;
|
|
1344
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1345
|
+
pagingType?: HeroPagingType;
|
|
1147
1346
|
}
|
|
1148
1347
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1149
1348
|
|
|
@@ -1171,27 +1370,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1171
1370
|
itemId: string;
|
|
1172
1371
|
}>;
|
|
1173
1372
|
|
|
1174
|
-
declare const
|
|
1373
|
+
declare const PageItemContextProvider: FC<{
|
|
1374
|
+
itemId: string;
|
|
1375
|
+
}>;
|
|
1376
|
+
|
|
1377
|
+
declare const EventItemContextProvider: FC<{
|
|
1378
|
+
itemId: string;
|
|
1379
|
+
}>;
|
|
1380
|
+
|
|
1381
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1175
1382
|
showEditLanguagePreferences?: boolean;
|
|
1176
1383
|
onEditLanguagePreferences?: () => unknown;
|
|
1177
1384
|
}>;
|
|
1178
1385
|
|
|
1386
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1387
|
+
onClick?: (itemId: string) => unknown;
|
|
1388
|
+
}>;
|
|
1179
1389
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1180
1390
|
onClick?: (itemId: string) => unknown;
|
|
1181
1391
|
}>;
|
|
1182
1392
|
|
|
1183
|
-
interface
|
|
1393
|
+
interface SharedItemDetailPreviewProps {
|
|
1184
1394
|
itemId?: string;
|
|
1185
1395
|
versionId?: string;
|
|
1186
1396
|
className?: string;
|
|
1397
|
+
hideLikes?: boolean;
|
|
1398
|
+
hideComments?: boolean;
|
|
1187
1399
|
}
|
|
1188
|
-
declare const NewsDetailPreview: FC<
|
|
1400
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1401
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1402
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1189
1403
|
|
|
1190
1404
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1191
1405
|
itemId: string;
|
|
1192
1406
|
versionId?: string;
|
|
1193
1407
|
}>;
|
|
1194
1408
|
|
|
1409
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1410
|
+
itemId: string;
|
|
1411
|
+
versionId?: string;
|
|
1412
|
+
}>;
|
|
1413
|
+
|
|
1414
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1415
|
+
itemId: string;
|
|
1416
|
+
versionId?: string;
|
|
1417
|
+
}>;
|
|
1418
|
+
|
|
1195
1419
|
interface FilterProps {
|
|
1196
1420
|
filter: IndexableFilterDefinition;
|
|
1197
1421
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1200,6 +1424,9 @@ interface FilterProps {
|
|
|
1200
1424
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1201
1425
|
|
|
1202
1426
|
interface ChannelFilterProps {
|
|
1427
|
+
/**
|
|
1428
|
+
* For better performance set channel IDs instead of names.
|
|
1429
|
+
*/
|
|
1203
1430
|
channels?: string[];
|
|
1204
1431
|
className?: string;
|
|
1205
1432
|
}
|
|
@@ -1348,7 +1575,8 @@ interface PagesGridProps {
|
|
|
1348
1575
|
maxColumnCount?: number;
|
|
1349
1576
|
rowCount?: number;
|
|
1350
1577
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1351
|
-
onKeywordClick?: (
|
|
1578
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1579
|
+
hideIntro?: boolean;
|
|
1352
1580
|
className?: string;
|
|
1353
1581
|
}
|
|
1354
1582
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1358,7 +1586,7 @@ interface PagesListProps {
|
|
|
1358
1586
|
searchText?: string;
|
|
1359
1587
|
itemLayoutMode?: ItemLayoutMode;
|
|
1360
1588
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1361
|
-
onKeywordClick?: (
|
|
1589
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1362
1590
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1363
1591
|
hidePagination?: boolean;
|
|
1364
1592
|
pageSize?: number;
|
|
@@ -1396,6 +1624,7 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1396
1624
|
interface PageEditorContextProviderProps {
|
|
1397
1625
|
itemId?: string;
|
|
1398
1626
|
groupId?: string;
|
|
1627
|
+
parentId?: string;
|
|
1399
1628
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1400
1629
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1401
1630
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
@@ -1403,11 +1632,26 @@ interface PageEditorContextProviderProps {
|
|
|
1403
1632
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1404
1633
|
|
|
1405
1634
|
interface PageEditorProps {
|
|
1406
|
-
|
|
1635
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1407
1636
|
className?: string;
|
|
1408
1637
|
}
|
|
1409
1638
|
declare const PageEditor: FC<PageEditorProps>;
|
|
1410
1639
|
|
|
1411
1640
|
declare const PageEditorToolbarStateActions: FC;
|
|
1412
1641
|
|
|
1413
|
-
|
|
1642
|
+
interface PageEditorPanelProps {
|
|
1643
|
+
className?: string;
|
|
1644
|
+
}
|
|
1645
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1646
|
+
|
|
1647
|
+
interface ErrorWrapperProps {
|
|
1648
|
+
errorType: ErrorType;
|
|
1649
|
+
isList?: boolean;
|
|
1650
|
+
}
|
|
1651
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1652
|
+
|
|
1653
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1654
|
+
onClick?: () => unknown;
|
|
1655
|
+
}>;
|
|
1656
|
+
|
|
1657
|
+
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 };
|