@livetiles/reach-components-react 0.5.0-preview.123 → 0.5.0-preview.1231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnalyticsDummyContextProvider.d.ts +2 -0
- package/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/CompactLayoutList.d.ts +2 -1
- package/EmojiPicker.esm.esm.js +1 -1
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +10 -1
- package/EventGridCard.d.ts +8 -6
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +10 -7
- package/ManageChannels.d.ts +1 -0
- package/NewsDetail.d.ts +5 -0
- package/NewsDetailViewMetaInfo.d.ts +4 -1
- package/NewsGrid.d.ts +4 -3
- package/NewsGridCard.d.ts +8 -6
- package/NewsHero.d.ts +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 +3 -2
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +9 -6
- package/PublishableItemCompactCard.d.ts +6 -1
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +19 -3
- package/SharedItemDetailPreview.d.ts +16 -0
- package/ToolbarBookmarkButton.d.ts +4 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/{ToolbarManageNewsItemButton.d.ts → ToolbarManageItemButton.d.ts} +3 -0
- package/ar-dz.async.esm.esm.js +1 -1
- package/ar-ma.async.esm.esm.js +1 -1
- package/ar-sa.async.esm.esm.js +1 -1
- package/ar-tn.async.esm.esm.js +1 -1
- package/ar.async.esm.esm.js +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-3044a81d.esm.js +1 -0
- package/bg.async.esm.esm.js +1 -1
- package/bn.async.esm.esm.js +1 -1
- package/ca.async.esm.esm.js +1 -1
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/FilterCalloutButton.d.ts +5 -5
- package/common/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/common/hero/Hero.d.ts +9 -11
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +25 -11
- package/common/hooks/useBannerOnResize.d.ts +5 -0
- package/common/utils.d.ts +1 -3
- package/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/PageEditor.d.ts +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 +473 -164
- package/index.esm.js +1 -1
- package/index.esm2.js +37 -27
- package/index.esm4.js +1 -1
- package/index.esm5.js +1 -0
- package/index.esm6.js +1 -0
- package/index.esm7.js +1 -0
- package/index.esm8.js +1 -0
- package/index.umd-c9cf1445.esm.js +1 -0
- package/index.umd.js +830 -31
- package/is-plan-event-enabled-d9660f36.esm.js +1 -0
- package/it-ch.async.esm.esm.js +1 -1
- package/it.async.esm.esm.js +1 -1
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/kn.async.esm.esm.js +1 -1
- package/ko.async.esm.esm.js +1 -1
- package/lt.async.esm.esm.js +1 -1
- package/lv.async.esm.esm.js +1 -1
- package/mllike.esm.js +1 -0
- package/ms.async.esm.esm.js +1 -1
- package/nb.async.esm.esm.js +1 -1
- package/nl-be.async.esm.esm.js +1 -1
- package/nl.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/pl.async.esm.esm.js +1 -1
- package/pt-br.async.esm.esm.js +1 -1
- package/pt.async.esm.esm.js +1 -1
- package/python.esm.js +1 -0
- package/ro.async.esm.esm.js +1 -1
- package/rpm.esm.js +1 -0
- package/ru.async.esm.esm.js +1 -1
- package/sk.async.esm.esm.js +1 -1
- package/skeletons/CompactListShimmer.d.ts +7 -0
- package/skeletons/EventGridShimmerItem.d.ts +2 -0
- package/skeletons/EventShimmerListItem.d.ts +4 -0
- package/skeletons/ListShimmer.d.ts +7 -0
- package/skeletons/NewsGridShimmerItem.d.ts +4 -0
- package/skeletons/NewsHeroShimmer.d.ts +6 -0
- package/skeletons/NewsShimmerListItem.d.ts +4 -0
- package/skeletons/PageGridShimmerItem.d.ts +4 -0
- package/skeletons/PageShimmerListItem.d.ts +4 -0
- package/skeletons/PublishableItemGridShimmer.d.ts +9 -0
- package/skeletons/utils.d.ts +1 -0
- package/sl.async.esm.esm.js +1 -1
- package/sql.esm.js +1 -0
- package/sr-latn.async.esm.esm.js +1 -1
- package/sr.async.esm.esm.js +1 -1
- package/sv.async.esm.esm.js +1 -1
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-hk.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/MemoryCache.d.ts +0 -13
- package/NewsDetailPreview.d.ts +0 -7
- package/ar-dz.async.esm2.esm.js +0 -1
- package/ar-kw.async.esm.esm.js +0 -1
- package/ar-ly.async.esm.esm.js +0 -1
- package/ar-ma.async.esm2.esm.js +0 -1
- package/ar-sa.async.esm2.esm.js +0 -1
- package/ar.esm.js +0 -1
- package/bg.async.esm2.esm.js +0 -1
- package/bn.async.esm2.esm.js +0 -1
- package/ca.async.esm2.esm.js +0 -1
- package/cs.async.esm2.esm.js +0 -1
- package/de-ch.async.esm.esm.js +0 -1
- package/de.async.esm3.esm.js +0 -1
- package/de.esm.js +0 -1
- package/el.async.esm2.esm.js +0 -1
- package/en-au.async.esm2.esm.js +0 -1
- package/en-ca.async.esm2.esm.js +0 -1
- package/en-gb.async.esm2.esm.js +0 -1
- package/en-il.async.esm.esm.js +0 -1
- package/en-nz.async.esm2.esm.js +0 -1
- package/en-sg.async.esm.esm.js +0 -1
- package/en.esm.js +0 -1
- package/es-do.async.esm.esm.js +0 -1
- package/es-us.async.esm.esm.js +0 -1
- package/es.async.esm3.esm.js +0 -1
- package/es.esm.js +0 -1
- package/et.async.esm2.esm.js +0 -1
- package/fa.async.esm.esm.js +0 -1
- package/fi.async.esm2.esm.js +0 -1
- package/fr-ca.async.esm2.esm.js +0 -1
- package/fr-ch.async.esm2.esm.js +0 -1
- package/fr.async.esm3.esm.js +0 -1
- package/fr.esm.js +0 -1
- package/gu.async.esm2.esm.js +0 -1
- package/he.async.esm2.esm.js +0 -1
- package/hi.async.esm2.esm.js +0 -1
- package/hr.async.esm2.esm.js +0 -1
- package/hu.async.esm2.esm.js +0 -1
- package/id.async.esm2.esm.js +0 -1
- package/it.async.esm3.esm.js +0 -1
- package/it.esm.js +0 -1
- package/ja.async.esm3.esm.js +0 -1
- package/ja.esm.js +0 -1
- package/kn.async.esm2.esm.js +0 -1
- package/ko.async.esm2.esm.js +0 -1
- package/lt.async.esm2.esm.js +0 -1
- package/lv.async.esm2.esm.js +0 -1
- package/ml.async.esm.esm.js +0 -1
- package/mr.async.esm.esm.js +0 -1
- package/ms-my.async.esm.esm.js +0 -1
- package/ms.async.esm2.esm.js +0 -1
- package/ms.esm.js +0 -1
- package/nb.async.esm2.esm.js +0 -1
- package/nl-be.async.esm2.esm.js +0 -1
- package/nl.async.esm2.esm.js +0 -1
- package/nl.esm.js +0 -1
- package/pl.async.esm2.esm.js +0 -1
- package/pt-br.async.esm2.esm.js +0 -1
- package/pt.async.esm2.esm.js +0 -1
- package/pt.esm.js +0 -1
- package/ro.async.esm2.esm.js +0 -1
- package/ru.async.esm2.esm.js +0 -1
- package/sk.async.esm2.esm.js +0 -1
- package/sl.async.esm2.esm.js +0 -1
- package/sr-cyrl.async.esm.esm.js +0 -1
- package/sr.async.esm2.esm.js +0 -1
- package/sr.esm.js +0 -1
- package/sv.async.esm2.esm.js +0 -1
- package/sw.async.esm.esm.js +0 -1
- package/ta.async.esm2.esm.js +0 -1
- package/te.async.esm2.esm.js +0 -1
- package/th.async.esm2.esm.js +0 -1
- package/tr.async.esm3.esm.js +0 -1
- package/tr.esm.js +0 -1
- package/uk.async.esm2.esm.js +0 -1
- package/vi.async.esm2.esm.js +0 -1
- package/zh-cn.async.esm3.esm.js +0 -1
- package/zh-tw.async.esm3.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,64 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode, MouseEvent } from 'react';
|
|
2
3
|
import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
|
|
3
4
|
import * as styled_components from 'styled-components';
|
|
4
5
|
|
|
5
|
-
declare type ReachContextProps = {
|
|
6
|
-
config?: {
|
|
7
|
-
apiEndpoint?: string;
|
|
8
|
-
webAppUrl?: string;
|
|
9
|
-
api3Endpoint?: string;
|
|
10
|
-
webSocketsEndpoint?: string;
|
|
11
|
-
};
|
|
12
|
-
onRequestToken?: () => Promise<string>;
|
|
13
|
-
subscriptionId: string;
|
|
14
|
-
language?: string;
|
|
15
|
-
disableUiFabricThemeOverwrite?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
18
|
-
|
|
19
|
-
interface NewsDetailProps {
|
|
20
|
-
itemId?: string;
|
|
21
|
-
hideComments?: boolean;
|
|
22
|
-
hideLikes?: boolean;
|
|
23
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
declare const NewsDetail: FC<NewsDetailProps>;
|
|
27
|
-
|
|
28
|
-
interface PageDetailProps {
|
|
29
|
-
itemId: string;
|
|
30
|
-
hideComments?: boolean;
|
|
31
|
-
hideLikes?: boolean;
|
|
32
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
|
-
declare const PageDetail: FC<PageDetailProps>;
|
|
36
|
-
|
|
37
|
-
interface EventDetailProps {
|
|
38
|
-
itemId: string;
|
|
39
|
-
hideComments?: boolean;
|
|
40
|
-
hideLikes?: boolean;
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
declare const EventDetail: FC<EventDetailProps>;
|
|
44
|
-
|
|
45
|
-
interface PostDetailProps {
|
|
46
|
-
postId: string;
|
|
47
|
-
threadId?: string;
|
|
48
|
-
onAfterDelete?: (id: string) => unknown;
|
|
49
|
-
commentCount?: number;
|
|
50
|
-
onItemClick?: (postId: string) => unknown;
|
|
51
|
-
}
|
|
52
|
-
declare const PostDetail: FC<PostDetailProps>;
|
|
53
|
-
|
|
54
|
-
interface PaginatedList<TItem> {
|
|
55
|
-
items: TItem[];
|
|
56
|
-
paginationToken?: any;
|
|
57
|
-
nextItem?: TItem;
|
|
58
|
-
hasMoreUnreadComments?: boolean;
|
|
59
|
-
hasNextPage?: boolean;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
6
|
declare enum AuthenticationType {
|
|
63
7
|
unknown = 0,
|
|
64
8
|
azuread = 1,
|
|
@@ -84,6 +28,53 @@ interface IdentityProviderSettings {
|
|
|
84
28
|
realm: string;
|
|
85
29
|
url: string;
|
|
86
30
|
scope: string;
|
|
31
|
+
idpIdentifier?: string;
|
|
32
|
+
openIdTokenEndPoint: string;
|
|
33
|
+
openIdAuthorizeEndPoint: string;
|
|
34
|
+
openIdLogoutEndPoint: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface VideoSource$1 {
|
|
38
|
+
prefix: string;
|
|
39
|
+
name: string;
|
|
40
|
+
alwaysShowPlayer?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare type ReachContextProps = {
|
|
44
|
+
/**
|
|
45
|
+
* These properties can be used to define the behavior of the analytics module.
|
|
46
|
+
*
|
|
47
|
+
* With `disableAnalytics` you can completely disable all analytics tracking.
|
|
48
|
+
* The `appName` is optional but highly encouraged to be set,
|
|
49
|
+
* in order to know where the components are used in. The value must be a non-empty string,
|
|
50
|
+
* only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
|
|
51
|
+
*/
|
|
52
|
+
analyticsProps?: {
|
|
53
|
+
appName?: string;
|
|
54
|
+
disableAnalytics?: boolean;
|
|
55
|
+
};
|
|
56
|
+
config?: {
|
|
57
|
+
additionalVideoSources?: VideoSource$1[];
|
|
58
|
+
api3Endpoint?: string;
|
|
59
|
+
apiEndpoint?: string;
|
|
60
|
+
webAppUrl?: string;
|
|
61
|
+
webSocketsEndpoint?: string;
|
|
62
|
+
};
|
|
63
|
+
disableUiFabricThemeOverwrite?: boolean;
|
|
64
|
+
language?: string;
|
|
65
|
+
languageFallback?: 'browser' | 'default';
|
|
66
|
+
locale?: string;
|
|
67
|
+
onRequestToken?: () => Promise<string>;
|
|
68
|
+
subscriptionId: string;
|
|
69
|
+
};
|
|
70
|
+
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
71
|
+
|
|
72
|
+
interface PaginatedList<TItem> {
|
|
73
|
+
items: TItem[];
|
|
74
|
+
paginationToken?: any;
|
|
75
|
+
nextItem?: TItem;
|
|
76
|
+
hasMoreUnreadComments?: boolean;
|
|
77
|
+
hasNextPage?: boolean;
|
|
87
78
|
}
|
|
88
79
|
|
|
89
80
|
interface Resources {
|
|
@@ -156,6 +147,8 @@ interface NotificationTypeSettings {
|
|
|
156
147
|
pluginNotifications: {
|
|
157
148
|
[key: string]: NotificationType;
|
|
158
149
|
};
|
|
150
|
+
newsEditor: NotificationType;
|
|
151
|
+
eventEditor: NotificationType;
|
|
159
152
|
}
|
|
160
153
|
interface CurrentUser extends Account {
|
|
161
154
|
isEmailVerificationPending?: boolean;
|
|
@@ -187,6 +180,7 @@ interface CurrentUser extends Account {
|
|
|
187
180
|
termsAndConditionsApprovedHash: string;
|
|
188
181
|
isPublicUser?: boolean;
|
|
189
182
|
hasUnreadChats?: boolean;
|
|
183
|
+
publicSubscriptionIds?: string[];
|
|
190
184
|
}
|
|
191
185
|
interface UserContact {
|
|
192
186
|
tokenUniqueId: string;
|
|
@@ -226,6 +220,39 @@ interface LanguageBase {
|
|
|
226
220
|
code: string;
|
|
227
221
|
}
|
|
228
222
|
|
|
223
|
+
interface KeywordGroup {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
keywords: Keyword[];
|
|
227
|
+
translations: {
|
|
228
|
+
[key: string]: string;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
interface Keyword {
|
|
232
|
+
id: string;
|
|
233
|
+
name: string;
|
|
234
|
+
groupId?: string;
|
|
235
|
+
translations: {
|
|
236
|
+
[key: string]: string;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
interface Channel {
|
|
241
|
+
id: string;
|
|
242
|
+
name: string;
|
|
243
|
+
translations?: {
|
|
244
|
+
[key: string]: string;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare enum ItemResourceTypes {
|
|
249
|
+
News = "news",
|
|
250
|
+
Pages = "pages",
|
|
251
|
+
Posts = "posts",
|
|
252
|
+
Events = "events",
|
|
253
|
+
Comments = "comments"
|
|
254
|
+
}
|
|
255
|
+
|
|
229
256
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
230
257
|
domains?: string[];
|
|
231
258
|
tenantId: string;
|
|
@@ -284,6 +311,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
311
|
customDomain?: string;
|
|
285
312
|
allowSelfRegistration?: boolean;
|
|
286
313
|
brandFolderConfig?: BrandFolderConfig;
|
|
314
|
+
hideSubscriptionName?: boolean;
|
|
287
315
|
}
|
|
288
316
|
interface BrandFolderConfig {
|
|
289
317
|
sections?: string[];
|
|
@@ -314,9 +342,21 @@ interface WebPluginDefinition {
|
|
|
314
342
|
subscriptionId?: string;
|
|
315
343
|
environment?: string;
|
|
316
344
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
345
|
+
declare enum ExtensionArea {
|
|
346
|
+
global = "Global",
|
|
347
|
+
page = "Page",
|
|
348
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
349
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
350
|
+
itemEditor = "ItemEditor",
|
|
351
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
352
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
353
|
+
}
|
|
354
|
+
declare type InlinePlugin = {
|
|
355
|
+
area: ExtensionArea.itemEditor;
|
|
356
|
+
objectButton: PluginObjectButton;
|
|
357
|
+
};
|
|
358
|
+
declare type PagePlugin = {
|
|
359
|
+
area: ExtensionArea.page;
|
|
320
360
|
route: string;
|
|
321
361
|
navigationNode?: {
|
|
322
362
|
componentName?: string;
|
|
@@ -326,7 +366,20 @@ interface PluginExtension {
|
|
|
326
366
|
[key: string]: string;
|
|
327
367
|
};
|
|
328
368
|
};
|
|
329
|
-
}
|
|
369
|
+
};
|
|
370
|
+
declare type PluginExtension = {
|
|
371
|
+
area: ExtensionArea;
|
|
372
|
+
componentName: string;
|
|
373
|
+
} & (InlinePlugin | PagePlugin);
|
|
374
|
+
declare type PluginObjectButton = {
|
|
375
|
+
buttonLabel: {
|
|
376
|
+
defaultLabel: string;
|
|
377
|
+
translations?: {
|
|
378
|
+
[key: string]: string;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
iconName: string;
|
|
382
|
+
};
|
|
330
383
|
interface PluginNotificationDefinitions {
|
|
331
384
|
key: string;
|
|
332
385
|
title: string;
|
|
@@ -360,23 +413,6 @@ declare enum FieldMode {
|
|
|
360
413
|
Hidden = 3
|
|
361
414
|
}
|
|
362
415
|
|
|
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
416
|
interface ItemStatistics {
|
|
381
417
|
commentCount?: number;
|
|
382
418
|
likeCount?: number;
|
|
@@ -411,7 +447,7 @@ declare enum KnownNewsState {
|
|
|
411
447
|
declare type VersionId = string;
|
|
412
448
|
interface SchedulableItem extends PublishableItem {
|
|
413
449
|
metadata?: NewsMetadata;
|
|
414
|
-
channels?:
|
|
450
|
+
channels?: Channel[];
|
|
415
451
|
}
|
|
416
452
|
interface NewsItem extends SchedulableItem {
|
|
417
453
|
source?: string;
|
|
@@ -420,19 +456,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
420
456
|
knownState: KnownNewsState;
|
|
421
457
|
hasNewComments?: boolean;
|
|
422
458
|
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
459
|
}
|
|
429
460
|
interface NewsItemAlertOptions {
|
|
430
461
|
duration?: string;
|
|
431
462
|
endDate?: Date;
|
|
432
463
|
expireAfter?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface SchedulableItemChannel {
|
|
435
|
-
name: string;
|
|
436
464
|
}
|
|
437
465
|
|
|
438
466
|
declare enum VideoSource {
|
|
@@ -456,12 +484,14 @@ interface PollQuestion extends PollQuestionSettings {
|
|
|
456
484
|
choices: PollQuestionChoice[];
|
|
457
485
|
}
|
|
458
486
|
interface PollQuestionSettings {
|
|
487
|
+
allowOtherAnswer?: boolean;
|
|
459
488
|
isMultiChoice?: boolean;
|
|
460
489
|
}
|
|
461
490
|
interface PollQuestionChoice {
|
|
462
491
|
choiceId: string;
|
|
463
492
|
description?: string;
|
|
464
493
|
disabled?: boolean;
|
|
494
|
+
isOther?: boolean;
|
|
465
495
|
}
|
|
466
496
|
|
|
467
497
|
declare enum WorkflowStatus {
|
|
@@ -557,6 +587,7 @@ interface QuestionTranslations {
|
|
|
557
587
|
}
|
|
558
588
|
interface ChoiceTranslations {
|
|
559
589
|
choiceId: string;
|
|
590
|
+
isOther: boolean;
|
|
560
591
|
text: string;
|
|
561
592
|
}
|
|
562
593
|
|
|
@@ -571,7 +602,8 @@ declare enum AttachmentType {
|
|
|
571
602
|
Event = 5,
|
|
572
603
|
Page = 6,
|
|
573
604
|
Post = 7,
|
|
574
|
-
Giphy = 8
|
|
605
|
+
Giphy = 8,
|
|
606
|
+
MicrosoftStreamVideo = 9
|
|
575
607
|
}
|
|
576
608
|
interface BaseAttachment {
|
|
577
609
|
id: string;
|
|
@@ -587,6 +619,19 @@ interface Attachment extends BaseAttachment {
|
|
|
587
619
|
type: AttachmentType;
|
|
588
620
|
}
|
|
589
621
|
|
|
622
|
+
declare enum GraphQLAttachmentType {
|
|
623
|
+
Image = "IMAGE",
|
|
624
|
+
File = "FILE",
|
|
625
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
626
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
627
|
+
News = "NEWS",
|
|
628
|
+
Event = "EVENT",
|
|
629
|
+
Page = "PAGE",
|
|
630
|
+
Post = "POST",
|
|
631
|
+
Giphy = "GIPHY",
|
|
632
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
633
|
+
}
|
|
634
|
+
|
|
590
635
|
interface ItemWithAttachments {
|
|
591
636
|
attachments?: Attachment[];
|
|
592
637
|
fileAccessToken?: string;
|
|
@@ -619,18 +664,11 @@ declare enum ConversationScope {
|
|
|
619
664
|
Posts = 2
|
|
620
665
|
}
|
|
621
666
|
|
|
622
|
-
declare enum ItemResourceTypes {
|
|
623
|
-
News = "news",
|
|
624
|
-
Pages = "pages",
|
|
625
|
-
Posts = "posts",
|
|
626
|
-
Events = "events",
|
|
627
|
-
Comments = "comments"
|
|
628
|
-
}
|
|
629
|
-
|
|
630
667
|
declare enum EventResponse {
|
|
631
668
|
NotSet = 0,
|
|
632
669
|
Registered = 1,
|
|
633
|
-
Declined = 2
|
|
670
|
+
Declined = 2,
|
|
671
|
+
WaitingList = 3
|
|
634
672
|
}
|
|
635
673
|
interface EventItem extends SchedulableItem {
|
|
636
674
|
startDate?: string;
|
|
@@ -647,8 +685,10 @@ interface EventItem extends SchedulableItem {
|
|
|
647
685
|
recurrenceSeriesId?: string;
|
|
648
686
|
isSeriesMaster?: string;
|
|
649
687
|
isVirtual?: boolean;
|
|
688
|
+
isAllDayEvent?: boolean;
|
|
650
689
|
}
|
|
651
690
|
interface EventRegistrationSettings {
|
|
691
|
+
enableWaitingList?: boolean;
|
|
652
692
|
enabled?: boolean;
|
|
653
693
|
showParticipantsToEverybody?: boolean;
|
|
654
694
|
deadline?: string;
|
|
@@ -736,6 +776,7 @@ interface PageItem extends PublishableItem {
|
|
|
736
776
|
isUnlinked?: boolean;
|
|
737
777
|
pageType?: PageType;
|
|
738
778
|
firstChildId?: string;
|
|
779
|
+
isGroupInheritanceBroken?: boolean;
|
|
739
780
|
}
|
|
740
781
|
interface ContentsSummary {
|
|
741
782
|
[lang: string]: TitleContent & {
|
|
@@ -757,6 +798,7 @@ interface PageNavigationNode {
|
|
|
757
798
|
hasAnyPageChild?: boolean;
|
|
758
799
|
pageType?: PageType;
|
|
759
800
|
useExternalContent?: boolean;
|
|
801
|
+
isGroupInheritanceBroken?: boolean;
|
|
760
802
|
isSearchMatch?: boolean;
|
|
761
803
|
topLevelFolderName?: string;
|
|
762
804
|
uploadToken?: string;
|
|
@@ -771,6 +813,64 @@ declare enum PageType {
|
|
|
771
813
|
Document = 1
|
|
772
814
|
}
|
|
773
815
|
|
|
816
|
+
declare type KeywordsByGroupId = {
|
|
817
|
+
[key: string]: Keyword[];
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
interface SubscriptionData {
|
|
821
|
+
channels?: Channel[];
|
|
822
|
+
allKeywords?: Keyword[];
|
|
823
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
824
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
825
|
+
}
|
|
826
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
827
|
+
getChannels: () => Promise<Channel[]>;
|
|
828
|
+
refreshSubscription: () => void;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
832
|
+
|
|
833
|
+
interface NewsDetailProps {
|
|
834
|
+
itemId?: string;
|
|
835
|
+
hideComments?: boolean;
|
|
836
|
+
hideLikes?: boolean;
|
|
837
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
838
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
839
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
840
|
+
className?: string;
|
|
841
|
+
}
|
|
842
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
843
|
+
|
|
844
|
+
interface PageDetailProps {
|
|
845
|
+
itemId?: string;
|
|
846
|
+
hideComments?: boolean;
|
|
847
|
+
hideLikes?: boolean;
|
|
848
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
849
|
+
homeBreadcrumbTargetUrl?: string;
|
|
850
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
851
|
+
className?: string;
|
|
852
|
+
}
|
|
853
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
854
|
+
|
|
855
|
+
interface EventDetailProps {
|
|
856
|
+
itemId?: string;
|
|
857
|
+
hideComments?: boolean;
|
|
858
|
+
hideLikes?: boolean;
|
|
859
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
860
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
861
|
+
className?: string;
|
|
862
|
+
}
|
|
863
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
864
|
+
|
|
865
|
+
interface PostDetailProps {
|
|
866
|
+
postId: string;
|
|
867
|
+
threadId?: string;
|
|
868
|
+
onAfterDelete?: (id: string) => unknown;
|
|
869
|
+
commentCount?: number;
|
|
870
|
+
onItemClick?: (postId: string) => unknown;
|
|
871
|
+
}
|
|
872
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
873
|
+
|
|
774
874
|
declare const Dialog: FC<IDialogProps>;
|
|
775
875
|
|
|
776
876
|
interface ToolbarProps {
|
|
@@ -788,15 +888,21 @@ interface ToolbarSearchProps {
|
|
|
788
888
|
}
|
|
789
889
|
declare const Toolbar: FC<ToolbarProps>;
|
|
790
890
|
|
|
891
|
+
declare type TokenType = string | number;
|
|
892
|
+
|
|
893
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
894
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
895
|
+
}
|
|
896
|
+
|
|
791
897
|
interface ToolbarChannelSelectorProps {
|
|
792
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
793
898
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
899
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
794
900
|
channelsOptions?: {
|
|
795
901
|
availableChannels?: string[];
|
|
796
902
|
onSelected?: (channel: Channel) => unknown;
|
|
797
903
|
to?: (channel: Channel) => unknown;
|
|
798
904
|
};
|
|
799
|
-
|
|
905
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
800
906
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
801
907
|
}
|
|
802
908
|
interface ToolbarChannelSelectorOption {
|
|
@@ -833,6 +939,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
833
939
|
onClick: () => unknown;
|
|
834
940
|
}>;
|
|
835
941
|
|
|
942
|
+
declare const ToolbarManageButton: FC<{
|
|
943
|
+
onClick?: () => unknown;
|
|
944
|
+
to?: {
|
|
945
|
+
url: string;
|
|
946
|
+
target?: string;
|
|
947
|
+
};
|
|
948
|
+
disabled?: boolean;
|
|
949
|
+
}>;
|
|
950
|
+
|
|
836
951
|
interface ToolbarCloseButtonProps {
|
|
837
952
|
onClick?: () => unknown;
|
|
838
953
|
to?: {
|
|
@@ -861,8 +976,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
861
976
|
interface Props extends IPersonaProps {
|
|
862
977
|
upn: string;
|
|
863
978
|
tenantId?: string;
|
|
864
|
-
className?: string;
|
|
865
979
|
displayName?: string;
|
|
980
|
+
forceShowSecondaryText?: boolean;
|
|
981
|
+
className?: string;
|
|
866
982
|
}
|
|
867
983
|
declare const Avatar: FC<Props>;
|
|
868
984
|
|
|
@@ -873,6 +989,13 @@ interface UserDetailsProps {
|
|
|
873
989
|
}
|
|
874
990
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
875
991
|
|
|
992
|
+
declare enum ErrorType {
|
|
993
|
+
GenericError = "genericError",
|
|
994
|
+
Error404 = "error404",
|
|
995
|
+
Error403 = "error403",
|
|
996
|
+
LoginError = "loginError"
|
|
997
|
+
}
|
|
998
|
+
|
|
876
999
|
interface PageViewTrackerSettings {
|
|
877
1000
|
disabled?: boolean;
|
|
878
1001
|
}
|
|
@@ -919,6 +1042,32 @@ declare enum LogicalOperator {
|
|
|
919
1042
|
And = "AND"
|
|
920
1043
|
}
|
|
921
1044
|
|
|
1045
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1046
|
+
id: string;
|
|
1047
|
+
comments?: PaginatedList<Comment>;
|
|
1048
|
+
groupId: string;
|
|
1049
|
+
content: string;
|
|
1050
|
+
permalink?: string;
|
|
1051
|
+
author: Account;
|
|
1052
|
+
publishingDate: string;
|
|
1053
|
+
modified?: string;
|
|
1054
|
+
statistics: ItemStatistics;
|
|
1055
|
+
keywords?: {
|
|
1056
|
+
[key: string]: Keyword[];
|
|
1057
|
+
};
|
|
1058
|
+
contentLanguageCode?: string;
|
|
1059
|
+
isLiked?: boolean;
|
|
1060
|
+
isUnread?: boolean;
|
|
1061
|
+
isDemoContent?: boolean;
|
|
1062
|
+
isFollowing?: boolean;
|
|
1063
|
+
}
|
|
1064
|
+
interface PostFilterDefinition {
|
|
1065
|
+
token?: string;
|
|
1066
|
+
pageSize?: string;
|
|
1067
|
+
search?: string;
|
|
1068
|
+
keywords?: FilterWithLogicalOperator;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
922
1071
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
923
1072
|
author?: string;
|
|
924
1073
|
}
|
|
@@ -927,6 +1076,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
927
1076
|
channels?: FilterWithLogicalOperator;
|
|
928
1077
|
}
|
|
929
1078
|
|
|
1079
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1080
|
+
contacts?: string[];
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1084
|
+
startsAfter?: string;
|
|
1085
|
+
startsBefore?: string;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1089
|
+
excludePastEvents?: boolean;
|
|
1090
|
+
pastEventsOnly?: boolean;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
930
1093
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
931
1094
|
state?: WorkflowStatus;
|
|
932
1095
|
}
|
|
@@ -938,29 +1101,94 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
938
1101
|
includeExpired?: boolean;
|
|
939
1102
|
}
|
|
940
1103
|
|
|
1104
|
+
declare enum StreamEventResponse {
|
|
1105
|
+
NotSet = "NOT_SET",
|
|
1106
|
+
Registered = "REGISTERED",
|
|
1107
|
+
WaitingList = "WAITING_LIST",
|
|
1108
|
+
Declined = "DECLINED"
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
declare enum StreamItemTypes {
|
|
1112
|
+
Post = "POST",
|
|
1113
|
+
News = "NEWS",
|
|
1114
|
+
Event = "EVENT",
|
|
1115
|
+
Page = "PAGE"
|
|
1116
|
+
}
|
|
1117
|
+
declare enum StreamConversationScope {
|
|
1118
|
+
Public = "PUBLIC",
|
|
1119
|
+
Editor = "EDITOR",
|
|
1120
|
+
Posts = "POSTS"
|
|
1121
|
+
}
|
|
1122
|
+
interface PostStreamItem extends Post {
|
|
1123
|
+
type: StreamItemTypes.Post;
|
|
1124
|
+
isUnread: boolean;
|
|
1125
|
+
keywordsList?: Keyword[];
|
|
1126
|
+
groupIds?: string[];
|
|
1127
|
+
postAttachments?: StreamAttachment[];
|
|
1128
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1129
|
+
hasMoreUnreadComments: boolean;
|
|
1130
|
+
}
|
|
1131
|
+
interface StreamPostComment extends Comment {
|
|
1132
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1133
|
+
streamConversationScope?: StreamConversationScope;
|
|
1134
|
+
}
|
|
1135
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1136
|
+
type: GraphQLAttachmentType;
|
|
1137
|
+
}
|
|
1138
|
+
interface NewsStreamItem extends NewsItem {
|
|
1139
|
+
type: StreamItemTypes.News;
|
|
1140
|
+
contentsList: StreamPublishableItemContents[];
|
|
1141
|
+
channelsList: Channel[];
|
|
1142
|
+
isUnread: boolean;
|
|
1143
|
+
keywordsList?: Keyword[];
|
|
1144
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1145
|
+
}
|
|
1146
|
+
declare enum StreamKnownNewsState {
|
|
1147
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1148
|
+
Alert = "ALERT"
|
|
1149
|
+
}
|
|
1150
|
+
interface EventStreamItem extends EventItem {
|
|
1151
|
+
type: StreamItemTypes.Event;
|
|
1152
|
+
contentsList: StreamPublishableItemContents[];
|
|
1153
|
+
channelsList: Channel[];
|
|
1154
|
+
isUnread: boolean;
|
|
1155
|
+
keywordsList?: Keyword[];
|
|
1156
|
+
userResponseType?: StreamEventResponse;
|
|
1157
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1158
|
+
}
|
|
1159
|
+
interface PageStreamItem extends PageItem {
|
|
1160
|
+
type: StreamItemTypes.Page;
|
|
1161
|
+
contentsList: StreamPublishableItemContents[];
|
|
1162
|
+
channelsList: Channel[];
|
|
1163
|
+
isUnread: boolean;
|
|
1164
|
+
keywordsList?: Keyword[];
|
|
1165
|
+
streamPageType?: string;
|
|
1166
|
+
path?: (PageNavigationNode & {
|
|
1167
|
+
parentId?: string;
|
|
1168
|
+
contentsList: StreamPublishableItemContents[];
|
|
1169
|
+
})[];
|
|
1170
|
+
}
|
|
1171
|
+
interface StreamPublishableItemContents {
|
|
1172
|
+
language: string;
|
|
1173
|
+
title: string;
|
|
1174
|
+
intro?: string;
|
|
1175
|
+
headline?: string;
|
|
1176
|
+
}
|
|
1177
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1178
|
+
cancellationReasons?: {
|
|
1179
|
+
[key: string]: string;
|
|
1180
|
+
}[];
|
|
1181
|
+
}
|
|
1182
|
+
|
|
941
1183
|
interface TargetLinkOverrideContextProps {
|
|
942
1184
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
943
1185
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
944
1186
|
}
|
|
945
1187
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
946
1188
|
|
|
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
1189
|
interface KeywordPickerProps {
|
|
962
1190
|
value?: Keyword[] | string[];
|
|
963
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1191
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
964
1192
|
showSelectionToggle?: boolean;
|
|
965
1193
|
availableKeywords?: Keyword[];
|
|
966
1194
|
mandatoryKeywordIds?: string[];
|
|
@@ -978,37 +1206,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
978
1206
|
pageType?: PageType;
|
|
979
1207
|
}
|
|
980
1208
|
|
|
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
|
-
}
|
|
1209
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1210
|
+
|
|
1211
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1006
1212
|
|
|
1007
1213
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1008
1214
|
}
|
|
1009
1215
|
|
|
1216
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1217
|
+
|
|
1218
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1219
|
+
|
|
1010
1220
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1221
|
+
/**
|
|
1222
|
+
* Limit results to those associated with the given channels.
|
|
1223
|
+
* For better performance set channel IDs instead of names.
|
|
1224
|
+
*/
|
|
1011
1225
|
channels?: string | FilterWithLogicalOperator;
|
|
1226
|
+
/**
|
|
1227
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1228
|
+
*/
|
|
1012
1229
|
keywords?: string | FilterWithLogicalOperator;
|
|
1013
1230
|
}
|
|
1014
1231
|
|
|
@@ -1021,17 +1238,23 @@ interface NewsListProps {
|
|
|
1021
1238
|
searchText?: string;
|
|
1022
1239
|
itemLayoutMode?: ItemLayoutMode;
|
|
1023
1240
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1024
|
-
onChannelClick?: (
|
|
1025
|
-
onKeywordClick?: (
|
|
1241
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1242
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1026
1243
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1027
1244
|
hidePagination?: boolean;
|
|
1028
1245
|
pageSize?: number;
|
|
1029
1246
|
includeAllItems?: boolean;
|
|
1247
|
+
cardsGap?: number;
|
|
1248
|
+
contentGap?: number;
|
|
1249
|
+
bannerSize?: number;
|
|
1250
|
+
showDateOnBottom?: boolean;
|
|
1251
|
+
showDateAsRelative?: boolean;
|
|
1030
1252
|
className?: string;
|
|
1031
1253
|
}
|
|
1032
1254
|
declare const NewsList: FC<NewsListProps>;
|
|
1033
1255
|
|
|
1034
1256
|
interface ManageChannelsProps {
|
|
1257
|
+
hideSearch?: boolean;
|
|
1035
1258
|
className?: string;
|
|
1036
1259
|
}
|
|
1037
1260
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1039,6 +1262,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1039
1262
|
interface ChannelSelectorWrapperProps {
|
|
1040
1263
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1041
1264
|
showLogicalOperatorOptions?: boolean;
|
|
1265
|
+
/**
|
|
1266
|
+
* For better performance set channel IDs instead of names.
|
|
1267
|
+
*/
|
|
1042
1268
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1043
1269
|
className?: string;
|
|
1044
1270
|
}
|
|
@@ -1055,10 +1281,11 @@ interface NewsGridProps {
|
|
|
1055
1281
|
maxColumnCount?: number;
|
|
1056
1282
|
rowCount?: number;
|
|
1057
1283
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1058
|
-
onChannelClick?: (
|
|
1059
|
-
onKeywordClick?: (
|
|
1284
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1285
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1060
1286
|
includeAllItems?: boolean;
|
|
1061
1287
|
className?: string;
|
|
1288
|
+
hideIntro?: boolean;
|
|
1062
1289
|
}
|
|
1063
1290
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1064
1291
|
|
|
@@ -1074,27 +1301,42 @@ interface EventGridProps {
|
|
|
1074
1301
|
maxColumnCount?: number;
|
|
1075
1302
|
rowCount?: number;
|
|
1076
1303
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1077
|
-
onChannelClick?: (
|
|
1304
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1078
1305
|
className?: string;
|
|
1079
1306
|
}
|
|
1080
1307
|
declare const EventsGrid: FC<EventGridProps>;
|
|
1081
1308
|
|
|
1082
1309
|
interface EventsListProps {
|
|
1083
|
-
|
|
1310
|
+
bannerSize?: number;
|
|
1311
|
+
cardsGap?: number;
|
|
1312
|
+
className?: string;
|
|
1313
|
+
contentGap?: number;
|
|
1084
1314
|
filter?: EventFilterDefinition;
|
|
1085
|
-
|
|
1315
|
+
hidePagination?: boolean;
|
|
1316
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1086
1317
|
itemLayoutMode?: ItemLayoutMode;
|
|
1087
1318
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1088
|
-
onChannelClick?: (
|
|
1089
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1090
|
-
hidePagination?: boolean;
|
|
1319
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1091
1320
|
pageSize?: number;
|
|
1092
|
-
|
|
1321
|
+
searchText?: string;
|
|
1322
|
+
view?: EventView;
|
|
1093
1323
|
}
|
|
1094
1324
|
declare const EventsList: FC<EventsListProps>;
|
|
1095
1325
|
|
|
1326
|
+
declare enum HeroPagingType {
|
|
1327
|
+
page = "page",
|
|
1328
|
+
item = "item"
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1096
1331
|
interface NewsHeroFilterProps {
|
|
1332
|
+
/**
|
|
1333
|
+
* Limit results to those associated with the given channels.
|
|
1334
|
+
* For better performance set channel IDs instead of names.
|
|
1335
|
+
*/
|
|
1097
1336
|
channels?: string | FilterWithLogicalOperator;
|
|
1337
|
+
/**
|
|
1338
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1339
|
+
*/
|
|
1098
1340
|
keywords?: string | FilterWithLogicalOperator;
|
|
1099
1341
|
pageSize?: number;
|
|
1100
1342
|
}
|
|
@@ -1106,9 +1348,11 @@ interface NewsHeroProps {
|
|
|
1106
1348
|
width?: number | string;
|
|
1107
1349
|
height?: number | string;
|
|
1108
1350
|
includeAllItems?: boolean;
|
|
1109
|
-
onChannelClick?: (
|
|
1110
|
-
onKeywordClick?: (
|
|
1351
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1352
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1111
1353
|
showKeywords?: boolean;
|
|
1354
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1355
|
+
pagingType?: HeroPagingType;
|
|
1112
1356
|
}
|
|
1113
1357
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1114
1358
|
|
|
@@ -1136,27 +1380,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1136
1380
|
itemId: string;
|
|
1137
1381
|
}>;
|
|
1138
1382
|
|
|
1139
|
-
declare const
|
|
1383
|
+
declare const PageItemContextProvider: FC<{
|
|
1384
|
+
itemId: string;
|
|
1385
|
+
}>;
|
|
1386
|
+
|
|
1387
|
+
declare const EventItemContextProvider: FC<{
|
|
1388
|
+
itemId: string;
|
|
1389
|
+
}>;
|
|
1390
|
+
|
|
1391
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1140
1392
|
showEditLanguagePreferences?: boolean;
|
|
1141
1393
|
onEditLanguagePreferences?: () => unknown;
|
|
1142
1394
|
}>;
|
|
1143
1395
|
|
|
1396
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1397
|
+
onClick?: (itemId: string) => unknown;
|
|
1398
|
+
}>;
|
|
1144
1399
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1145
1400
|
onClick?: (itemId: string) => unknown;
|
|
1146
1401
|
}>;
|
|
1147
1402
|
|
|
1148
|
-
interface
|
|
1403
|
+
interface SharedItemDetailPreviewProps {
|
|
1149
1404
|
itemId?: string;
|
|
1150
1405
|
versionId?: string;
|
|
1151
1406
|
className?: string;
|
|
1407
|
+
hideLikes?: boolean;
|
|
1408
|
+
hideComments?: boolean;
|
|
1152
1409
|
}
|
|
1153
|
-
declare const NewsDetailPreview: FC<
|
|
1410
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1411
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1412
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1154
1413
|
|
|
1155
1414
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1156
1415
|
itemId: string;
|
|
1157
1416
|
versionId?: string;
|
|
1158
1417
|
}>;
|
|
1159
1418
|
|
|
1419
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1420
|
+
itemId: string;
|
|
1421
|
+
versionId?: string;
|
|
1422
|
+
}>;
|
|
1423
|
+
|
|
1424
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1425
|
+
itemId: string;
|
|
1426
|
+
versionId?: string;
|
|
1427
|
+
}>;
|
|
1428
|
+
|
|
1160
1429
|
interface FilterProps {
|
|
1161
1430
|
filter: IndexableFilterDefinition;
|
|
1162
1431
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1165,6 +1434,9 @@ interface FilterProps {
|
|
|
1165
1434
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1166
1435
|
|
|
1167
1436
|
interface ChannelFilterProps {
|
|
1437
|
+
/**
|
|
1438
|
+
* For better performance set channel IDs instead of names.
|
|
1439
|
+
*/
|
|
1168
1440
|
channels?: string[];
|
|
1169
1441
|
className?: string;
|
|
1170
1442
|
}
|
|
@@ -1313,21 +1585,25 @@ interface PagesGridProps {
|
|
|
1313
1585
|
maxColumnCount?: number;
|
|
1314
1586
|
rowCount?: number;
|
|
1315
1587
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1316
|
-
onKeywordClick?: (
|
|
1588
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1589
|
+
hideIntro?: boolean;
|
|
1317
1590
|
className?: string;
|
|
1318
1591
|
}
|
|
1319
1592
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
1320
1593
|
|
|
1321
1594
|
interface PagesListProps {
|
|
1595
|
+
bannerSize?: number;
|
|
1596
|
+
cardsGap?: number;
|
|
1597
|
+
className?: string;
|
|
1598
|
+
contentGap?: number;
|
|
1322
1599
|
filter?: PageFilterDefinition;
|
|
1323
|
-
|
|
1600
|
+
hidePagination?: boolean;
|
|
1601
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1324
1602
|
itemLayoutMode?: ItemLayoutMode;
|
|
1325
1603
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1326
|
-
onKeywordClick?: (
|
|
1327
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1328
|
-
hidePagination?: boolean;
|
|
1604
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1329
1605
|
pageSize?: number;
|
|
1330
|
-
|
|
1606
|
+
searchText?: string;
|
|
1331
1607
|
}
|
|
1332
1608
|
declare const PagesList: FC<PagesListProps>;
|
|
1333
1609
|
|
|
@@ -1358,4 +1634,37 @@ interface EventEditorToolbarRecurringControlsProps {
|
|
|
1358
1634
|
}
|
|
1359
1635
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1360
1636
|
|
|
1361
|
-
|
|
1637
|
+
interface PageEditorContextProviderProps {
|
|
1638
|
+
itemId?: string;
|
|
1639
|
+
groupId?: string;
|
|
1640
|
+
parentId?: string;
|
|
1641
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1642
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1643
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1644
|
+
}
|
|
1645
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1646
|
+
|
|
1647
|
+
interface PageEditorProps {
|
|
1648
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1649
|
+
className?: string;
|
|
1650
|
+
}
|
|
1651
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1652
|
+
|
|
1653
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1654
|
+
|
|
1655
|
+
interface PageEditorPanelProps {
|
|
1656
|
+
className?: string;
|
|
1657
|
+
}
|
|
1658
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1659
|
+
|
|
1660
|
+
interface ErrorWrapperProps {
|
|
1661
|
+
errorType: ErrorType;
|
|
1662
|
+
isList?: boolean;
|
|
1663
|
+
}
|
|
1664
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1665
|
+
|
|
1666
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1667
|
+
onClick?: () => unknown;
|
|
1668
|
+
}>;
|
|
1669
|
+
|
|
1670
|
+
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 };
|