@livetiles/reach-components-react 0.5.0-preview.91 → 0.5.0-preview.910
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/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 +3 -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 +3 -2
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +2 -2
- 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/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 +6 -0
- package/editor/PageEditorContextProvider.d.ts +11 -0
- package/editor/PageEditorPanel.d.ts +5 -0
- package/editor/PageEditorToolbarStateActions.d.ts +2 -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 +442 -151
- package/index.esm.js +1 -1
- package/index.esm2.js +32 -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 +825 -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 +5 -0
- package/skeletons/EventGridShimmerItem.d.ts +2 -0
- package/skeletons/EventShimmerListItem.d.ts +2 -0
- package/skeletons/ListShimmer.d.ts +6 -0
- package/skeletons/NewsGridShimmerItem.d.ts +4 -0
- package/skeletons/NewsHeroShimmer.d.ts +6 -0
- package/skeletons/NewsShimmerListItem.d.ts +2 -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.esm2.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[];
|
|
@@ -314,9 +341,21 @@ interface WebPluginDefinition {
|
|
|
314
341
|
subscriptionId?: string;
|
|
315
342
|
environment?: string;
|
|
316
343
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
344
|
+
declare enum ExtensionArea {
|
|
345
|
+
global = "Global",
|
|
346
|
+
page = "Page",
|
|
347
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
348
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
349
|
+
itemEditor = "ItemEditor",
|
|
350
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
351
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
352
|
+
}
|
|
353
|
+
declare type InlinePlugin = {
|
|
354
|
+
area: ExtensionArea.itemEditor;
|
|
355
|
+
objectButton: PluginObjectButton;
|
|
356
|
+
};
|
|
357
|
+
declare type PagePlugin = {
|
|
358
|
+
area: ExtensionArea.page;
|
|
320
359
|
route: string;
|
|
321
360
|
navigationNode?: {
|
|
322
361
|
componentName?: string;
|
|
@@ -326,7 +365,20 @@ interface PluginExtension {
|
|
|
326
365
|
[key: string]: string;
|
|
327
366
|
};
|
|
328
367
|
};
|
|
329
|
-
}
|
|
368
|
+
};
|
|
369
|
+
declare type PluginExtension = {
|
|
370
|
+
area: ExtensionArea;
|
|
371
|
+
componentName: string;
|
|
372
|
+
} & (InlinePlugin | PagePlugin);
|
|
373
|
+
declare type PluginObjectButton = {
|
|
374
|
+
buttonLabel: {
|
|
375
|
+
defaultLabel: string;
|
|
376
|
+
translations?: {
|
|
377
|
+
[key: string]: string;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
iconName: string;
|
|
381
|
+
};
|
|
330
382
|
interface PluginNotificationDefinitions {
|
|
331
383
|
key: string;
|
|
332
384
|
title: string;
|
|
@@ -360,23 +412,6 @@ declare enum FieldMode {
|
|
|
360
412
|
Hidden = 3
|
|
361
413
|
}
|
|
362
414
|
|
|
363
|
-
interface Channel {
|
|
364
|
-
id: string;
|
|
365
|
-
name: string;
|
|
366
|
-
translations?: {
|
|
367
|
-
[key: string]: string;
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
interface Keyword {
|
|
372
|
-
id: string;
|
|
373
|
-
name: string;
|
|
374
|
-
groupId?: string;
|
|
375
|
-
translations: {
|
|
376
|
-
[key: string]: string;
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
|
|
380
415
|
interface ItemStatistics {
|
|
381
416
|
commentCount?: number;
|
|
382
417
|
likeCount?: number;
|
|
@@ -411,7 +446,7 @@ declare enum KnownNewsState {
|
|
|
411
446
|
declare type VersionId = string;
|
|
412
447
|
interface SchedulableItem extends PublishableItem {
|
|
413
448
|
metadata?: NewsMetadata;
|
|
414
|
-
channels?:
|
|
449
|
+
channels?: Channel[];
|
|
415
450
|
}
|
|
416
451
|
interface NewsItem extends SchedulableItem {
|
|
417
452
|
source?: string;
|
|
@@ -420,19 +455,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
420
455
|
knownState: KnownNewsState;
|
|
421
456
|
hasNewComments?: boolean;
|
|
422
457
|
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
458
|
}
|
|
429
459
|
interface NewsItemAlertOptions {
|
|
430
460
|
duration?: string;
|
|
431
461
|
endDate?: Date;
|
|
432
462
|
expireAfter?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface SchedulableItemChannel {
|
|
435
|
-
name: string;
|
|
436
463
|
}
|
|
437
464
|
|
|
438
465
|
declare enum VideoSource {
|
|
@@ -571,7 +598,8 @@ declare enum AttachmentType {
|
|
|
571
598
|
Event = 5,
|
|
572
599
|
Page = 6,
|
|
573
600
|
Post = 7,
|
|
574
|
-
Giphy = 8
|
|
601
|
+
Giphy = 8,
|
|
602
|
+
MicrosoftStreamVideo = 9
|
|
575
603
|
}
|
|
576
604
|
interface BaseAttachment {
|
|
577
605
|
id: string;
|
|
@@ -587,6 +615,19 @@ interface Attachment extends BaseAttachment {
|
|
|
587
615
|
type: AttachmentType;
|
|
588
616
|
}
|
|
589
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
|
+
|
|
590
631
|
interface ItemWithAttachments {
|
|
591
632
|
attachments?: Attachment[];
|
|
592
633
|
fileAccessToken?: string;
|
|
@@ -619,14 +660,6 @@ declare enum ConversationScope {
|
|
|
619
660
|
Posts = 2
|
|
620
661
|
}
|
|
621
662
|
|
|
622
|
-
declare enum ItemResourceTypes {
|
|
623
|
-
News = "news",
|
|
624
|
-
Pages = "pages",
|
|
625
|
-
Posts = "posts",
|
|
626
|
-
Events = "events",
|
|
627
|
-
Comments = "comments"
|
|
628
|
-
}
|
|
629
|
-
|
|
630
663
|
declare enum EventResponse {
|
|
631
664
|
NotSet = 0,
|
|
632
665
|
Registered = 1,
|
|
@@ -647,6 +680,7 @@ interface EventItem extends SchedulableItem {
|
|
|
647
680
|
recurrenceSeriesId?: string;
|
|
648
681
|
isSeriesMaster?: string;
|
|
649
682
|
isVirtual?: boolean;
|
|
683
|
+
isAllDayEvent?: boolean;
|
|
650
684
|
}
|
|
651
685
|
interface EventRegistrationSettings {
|
|
652
686
|
enabled?: boolean;
|
|
@@ -736,6 +770,7 @@ interface PageItem extends PublishableItem {
|
|
|
736
770
|
isUnlinked?: boolean;
|
|
737
771
|
pageType?: PageType;
|
|
738
772
|
firstChildId?: string;
|
|
773
|
+
isGroupInheritanceBroken?: boolean;
|
|
739
774
|
}
|
|
740
775
|
interface ContentsSummary {
|
|
741
776
|
[lang: string]: TitleContent & {
|
|
@@ -757,6 +792,7 @@ interface PageNavigationNode {
|
|
|
757
792
|
hasAnyPageChild?: boolean;
|
|
758
793
|
pageType?: PageType;
|
|
759
794
|
useExternalContent?: boolean;
|
|
795
|
+
isGroupInheritanceBroken?: boolean;
|
|
760
796
|
isSearchMatch?: boolean;
|
|
761
797
|
topLevelFolderName?: string;
|
|
762
798
|
uploadToken?: string;
|
|
@@ -771,6 +807,64 @@ declare enum PageType {
|
|
|
771
807
|
Document = 1
|
|
772
808
|
}
|
|
773
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
|
+
|
|
774
868
|
declare const Dialog: FC<IDialogProps>;
|
|
775
869
|
|
|
776
870
|
interface ToolbarProps {
|
|
@@ -788,6 +882,12 @@ interface ToolbarSearchProps {
|
|
|
788
882
|
}
|
|
789
883
|
declare const Toolbar: FC<ToolbarProps>;
|
|
790
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
|
+
|
|
791
891
|
interface ToolbarChannelSelectorProps {
|
|
792
892
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
793
893
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -833,6 +933,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
833
933
|
onClick: () => unknown;
|
|
834
934
|
}>;
|
|
835
935
|
|
|
936
|
+
declare const ToolbarManageButton: FC<{
|
|
937
|
+
onClick?: () => unknown;
|
|
938
|
+
to?: {
|
|
939
|
+
url: string;
|
|
940
|
+
target?: string;
|
|
941
|
+
};
|
|
942
|
+
disabled?: boolean;
|
|
943
|
+
}>;
|
|
944
|
+
|
|
836
945
|
interface ToolbarCloseButtonProps {
|
|
837
946
|
onClick?: () => unknown;
|
|
838
947
|
to?: {
|
|
@@ -861,8 +970,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
861
970
|
interface Props extends IPersonaProps {
|
|
862
971
|
upn: string;
|
|
863
972
|
tenantId?: string;
|
|
864
|
-
className?: string;
|
|
865
973
|
displayName?: string;
|
|
974
|
+
forceShowSecondaryText?: boolean;
|
|
975
|
+
className?: string;
|
|
866
976
|
}
|
|
867
977
|
declare const Avatar: FC<Props>;
|
|
868
978
|
|
|
@@ -873,6 +983,13 @@ interface UserDetailsProps {
|
|
|
873
983
|
}
|
|
874
984
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
875
985
|
|
|
986
|
+
declare enum ErrorType {
|
|
987
|
+
GenericError = "genericError",
|
|
988
|
+
Error404 = "error404",
|
|
989
|
+
Error403 = "error403",
|
|
990
|
+
LoginError = "loginError"
|
|
991
|
+
}
|
|
992
|
+
|
|
876
993
|
interface PageViewTrackerSettings {
|
|
877
994
|
disabled?: boolean;
|
|
878
995
|
}
|
|
@@ -919,6 +1036,32 @@ declare enum LogicalOperator {
|
|
|
919
1036
|
And = "AND"
|
|
920
1037
|
}
|
|
921
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
|
+
|
|
922
1065
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
923
1066
|
author?: string;
|
|
924
1067
|
}
|
|
@@ -927,6 +1070,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
927
1070
|
channels?: FilterWithLogicalOperator;
|
|
928
1071
|
}
|
|
929
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
|
+
|
|
930
1087
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
931
1088
|
state?: WorkflowStatus;
|
|
932
1089
|
}
|
|
@@ -938,26 +1095,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
938
1095
|
includeExpired?: boolean;
|
|
939
1096
|
}
|
|
940
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
|
+
|
|
941
1176
|
interface TargetLinkOverrideContextProps {
|
|
942
1177
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
943
1178
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
944
1179
|
}
|
|
945
1180
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
946
1181
|
|
|
947
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
948
|
-
contacts?: string[];
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
952
|
-
startsAfter?: string;
|
|
953
|
-
startsBefore?: string;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
957
|
-
excludePastEvents?: boolean;
|
|
958
|
-
pastEventsOnly?: boolean;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
1182
|
interface KeywordPickerProps {
|
|
962
1183
|
value?: Keyword[] | string[];
|
|
963
1184
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -978,37 +1199,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
978
1199
|
pageType?: PageType;
|
|
979
1200
|
}
|
|
980
1201
|
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
groupId: string;
|
|
985
|
-
content: string;
|
|
986
|
-
permalink?: string;
|
|
987
|
-
author: Account;
|
|
988
|
-
publishingDate: string;
|
|
989
|
-
modified?: string;
|
|
990
|
-
statistics: ItemStatistics;
|
|
991
|
-
keywords?: {
|
|
992
|
-
[key: string]: Keyword[];
|
|
993
|
-
};
|
|
994
|
-
contentLanguageCode?: string;
|
|
995
|
-
isLiked?: boolean;
|
|
996
|
-
isUnread?: boolean;
|
|
997
|
-
isDemoContent?: boolean;
|
|
998
|
-
isFollowing?: boolean;
|
|
999
|
-
}
|
|
1000
|
-
interface PostFilterDefinition {
|
|
1001
|
-
token?: string;
|
|
1002
|
-
pageSize?: string;
|
|
1003
|
-
search?: string;
|
|
1004
|
-
keywords?: FilterWithLogicalOperator;
|
|
1005
|
-
}
|
|
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>;
|
|
1006
1205
|
|
|
1007
1206
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1008
1207
|
}
|
|
1009
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
|
+
|
|
1010
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
|
+
*/
|
|
1011
1218
|
channels?: string | FilterWithLogicalOperator;
|
|
1219
|
+
/**
|
|
1220
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1221
|
+
*/
|
|
1012
1222
|
keywords?: string | FilterWithLogicalOperator;
|
|
1013
1223
|
}
|
|
1014
1224
|
|
|
@@ -1021,8 +1231,8 @@ interface NewsListProps {
|
|
|
1021
1231
|
searchText?: string;
|
|
1022
1232
|
itemLayoutMode?: ItemLayoutMode;
|
|
1023
1233
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1024
|
-
onChannelClick?: (
|
|
1025
|
-
onKeywordClick?: (
|
|
1234
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1235
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1026
1236
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1027
1237
|
hidePagination?: boolean;
|
|
1028
1238
|
pageSize?: number;
|
|
@@ -1032,6 +1242,7 @@ interface NewsListProps {
|
|
|
1032
1242
|
declare const NewsList: FC<NewsListProps>;
|
|
1033
1243
|
|
|
1034
1244
|
interface ManageChannelsProps {
|
|
1245
|
+
hideSearch?: boolean;
|
|
1035
1246
|
className?: string;
|
|
1036
1247
|
}
|
|
1037
1248
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1039,6 +1250,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1039
1250
|
interface ChannelSelectorWrapperProps {
|
|
1040
1251
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1041
1252
|
showLogicalOperatorOptions?: boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* For better performance set channel IDs instead of names.
|
|
1255
|
+
*/
|
|
1042
1256
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1043
1257
|
className?: string;
|
|
1044
1258
|
}
|
|
@@ -1055,10 +1269,11 @@ interface NewsGridProps {
|
|
|
1055
1269
|
maxColumnCount?: number;
|
|
1056
1270
|
rowCount?: number;
|
|
1057
1271
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1058
|
-
onChannelClick?: (
|
|
1059
|
-
onKeywordClick?: (
|
|
1272
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1273
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1060
1274
|
includeAllItems?: boolean;
|
|
1061
1275
|
className?: string;
|
|
1276
|
+
hideIntro?: boolean;
|
|
1062
1277
|
}
|
|
1063
1278
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1064
1279
|
|
|
@@ -1074,7 +1289,7 @@ interface EventGridProps {
|
|
|
1074
1289
|
maxColumnCount?: number;
|
|
1075
1290
|
rowCount?: number;
|
|
1076
1291
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1077
|
-
onChannelClick?: (
|
|
1292
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1078
1293
|
className?: string;
|
|
1079
1294
|
}
|
|
1080
1295
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1085,7 +1300,7 @@ interface EventsListProps {
|
|
|
1085
1300
|
searchText?: string;
|
|
1086
1301
|
itemLayoutMode?: ItemLayoutMode;
|
|
1087
1302
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1088
|
-
onChannelClick?: (
|
|
1303
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1089
1304
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1090
1305
|
hidePagination?: boolean;
|
|
1091
1306
|
pageSize?: number;
|
|
@@ -1093,8 +1308,20 @@ interface EventsListProps {
|
|
|
1093
1308
|
}
|
|
1094
1309
|
declare const EventsList: FC<EventsListProps>;
|
|
1095
1310
|
|
|
1311
|
+
declare enum HeroPagingType {
|
|
1312
|
+
page = "page",
|
|
1313
|
+
item = "item"
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1096
1316
|
interface NewsHeroFilterProps {
|
|
1317
|
+
/**
|
|
1318
|
+
* Limit results to those associated with the given channels.
|
|
1319
|
+
* For better performance set channel IDs instead of names.
|
|
1320
|
+
*/
|
|
1097
1321
|
channels?: string | FilterWithLogicalOperator;
|
|
1322
|
+
/**
|
|
1323
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1324
|
+
*/
|
|
1098
1325
|
keywords?: string | FilterWithLogicalOperator;
|
|
1099
1326
|
pageSize?: number;
|
|
1100
1327
|
}
|
|
@@ -1106,9 +1333,11 @@ interface NewsHeroProps {
|
|
|
1106
1333
|
width?: number | string;
|
|
1107
1334
|
height?: number | string;
|
|
1108
1335
|
includeAllItems?: boolean;
|
|
1109
|
-
onChannelClick?: (
|
|
1110
|
-
onKeywordClick?: (
|
|
1336
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1337
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1111
1338
|
showKeywords?: boolean;
|
|
1339
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1340
|
+
pagingType?: HeroPagingType;
|
|
1112
1341
|
}
|
|
1113
1342
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1114
1343
|
|
|
@@ -1136,27 +1365,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1136
1365
|
itemId: string;
|
|
1137
1366
|
}>;
|
|
1138
1367
|
|
|
1139
|
-
declare const
|
|
1368
|
+
declare const PageItemContextProvider: FC<{
|
|
1369
|
+
itemId: string;
|
|
1370
|
+
}>;
|
|
1371
|
+
|
|
1372
|
+
declare const EventItemContextProvider: FC<{
|
|
1373
|
+
itemId: string;
|
|
1374
|
+
}>;
|
|
1375
|
+
|
|
1376
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1140
1377
|
showEditLanguagePreferences?: boolean;
|
|
1141
1378
|
onEditLanguagePreferences?: () => unknown;
|
|
1142
1379
|
}>;
|
|
1143
1380
|
|
|
1381
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1382
|
+
onClick?: (itemId: string) => unknown;
|
|
1383
|
+
}>;
|
|
1144
1384
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1145
1385
|
onClick?: (itemId: string) => unknown;
|
|
1146
1386
|
}>;
|
|
1147
1387
|
|
|
1148
|
-
interface
|
|
1388
|
+
interface SharedItemDetailPreviewProps {
|
|
1149
1389
|
itemId?: string;
|
|
1150
1390
|
versionId?: string;
|
|
1151
1391
|
className?: string;
|
|
1392
|
+
hideLikes?: boolean;
|
|
1393
|
+
hideComments?: boolean;
|
|
1152
1394
|
}
|
|
1153
|
-
declare const NewsDetailPreview: FC<
|
|
1395
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1396
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1397
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1154
1398
|
|
|
1155
1399
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1156
1400
|
itemId: string;
|
|
1157
1401
|
versionId?: string;
|
|
1158
1402
|
}>;
|
|
1159
1403
|
|
|
1404
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1405
|
+
itemId: string;
|
|
1406
|
+
versionId?: string;
|
|
1407
|
+
}>;
|
|
1408
|
+
|
|
1409
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1410
|
+
itemId: string;
|
|
1411
|
+
versionId?: string;
|
|
1412
|
+
}>;
|
|
1413
|
+
|
|
1160
1414
|
interface FilterProps {
|
|
1161
1415
|
filter: IndexableFilterDefinition;
|
|
1162
1416
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1165,6 +1419,9 @@ interface FilterProps {
|
|
|
1165
1419
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1166
1420
|
|
|
1167
1421
|
interface ChannelFilterProps {
|
|
1422
|
+
/**
|
|
1423
|
+
* For better performance set channel IDs instead of names.
|
|
1424
|
+
*/
|
|
1168
1425
|
channels?: string[];
|
|
1169
1426
|
className?: string;
|
|
1170
1427
|
}
|
|
@@ -1313,7 +1570,8 @@ interface PagesGridProps {
|
|
|
1313
1570
|
maxColumnCount?: number;
|
|
1314
1571
|
rowCount?: number;
|
|
1315
1572
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1316
|
-
onKeywordClick?: (
|
|
1573
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1574
|
+
hideIntro?: boolean;
|
|
1317
1575
|
className?: string;
|
|
1318
1576
|
}
|
|
1319
1577
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1323,7 +1581,7 @@ interface PagesListProps {
|
|
|
1323
1581
|
searchText?: string;
|
|
1324
1582
|
itemLayoutMode?: ItemLayoutMode;
|
|
1325
1583
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1326
|
-
onKeywordClick?: (
|
|
1584
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1327
1585
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1328
1586
|
hidePagination?: boolean;
|
|
1329
1587
|
pageSize?: number;
|
|
@@ -1358,4 +1616,37 @@ interface EventEditorToolbarRecurringControlsProps {
|
|
|
1358
1616
|
}
|
|
1359
1617
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1360
1618
|
|
|
1361
|
-
|
|
1619
|
+
interface PageEditorContextProviderProps {
|
|
1620
|
+
itemId?: string;
|
|
1621
|
+
groupId?: string;
|
|
1622
|
+
parentId?: string;
|
|
1623
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1624
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1625
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1626
|
+
}
|
|
1627
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1628
|
+
|
|
1629
|
+
interface PageEditorProps {
|
|
1630
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1631
|
+
className?: string;
|
|
1632
|
+
}
|
|
1633
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1634
|
+
|
|
1635
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1636
|
+
|
|
1637
|
+
interface PageEditorPanelProps {
|
|
1638
|
+
className?: string;
|
|
1639
|
+
}
|
|
1640
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1641
|
+
|
|
1642
|
+
interface ErrorWrapperProps {
|
|
1643
|
+
errorType: ErrorType;
|
|
1644
|
+
isList?: boolean;
|
|
1645
|
+
}
|
|
1646
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1647
|
+
|
|
1648
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1649
|
+
onClick?: () => unknown;
|
|
1650
|
+
}>;
|
|
1651
|
+
|
|
1652
|
+
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 };
|