@livetiles/reach-components-react 0.5.0-preview.137 → 0.5.0-preview.1371
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnalyticsDummyContextProvider.d.ts +2 -0
- package/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/CompactLayoutList.d.ts +2 -1
- package/EmojiPicker.esm.esm.js +1 -1
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +10 -1
- package/EventGridCard.d.ts +8 -6
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +10 -7
- package/ManageChannels.d.ts +1 -0
- package/NewsDetail.d.ts +5 -0
- package/NewsDetailViewMetaInfo.d.ts +4 -1
- package/NewsGrid.d.ts +4 -3
- package/NewsGridCard.d.ts +8 -6
- package/NewsHero.d.ts +19 -8
- package/NewsList.d.ts +8 -3
- package/PageDetail.d.ts +10 -1
- package/PageGridCard.d.ts +3 -2
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +3 -2
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +9 -6
- package/PostListContextProvider.d.ts +12 -11
- package/PublishableItemCompactCard.d.ts +6 -1
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +19 -3
- package/SharedItemDetailPreview.d.ts +16 -0
- package/ToolbarBookmarkButton.d.ts +4 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/{ToolbarManageNewsItemButton.d.ts → ToolbarManageItemButton.d.ts} +3 -0
- package/ar-dz.async.esm.esm.js +1 -1
- package/ar-ma.async.esm.esm.js +1 -1
- package/ar-sa.async.esm.esm.js +1 -1
- package/ar-tn.async.esm.esm.js +1 -1
- package/ar.async.esm.esm.js +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-3044a81d.esm.js +1 -0
- package/bg.async.esm.esm.js +1 -1
- package/bn.async.esm.esm.js +1 -1
- package/ca.async.esm.esm.js +1 -1
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/FilterCalloutButton.d.ts +5 -5
- package/common/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/common/hero/Hero.d.ts +17 -18
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +30 -13
- package/common/hooks/useBannerOnResize.d.ts +5 -0
- package/common/utils.d.ts +1 -3
- package/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/PageEditor.d.ts +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 +457 -166
- 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[];
|
|
@@ -319,7 +347,9 @@ declare enum ExtensionArea {
|
|
|
319
347
|
page = "Page",
|
|
320
348
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
321
349
|
eventDetailViewSection = "EventDetailViewSection",
|
|
322
|
-
itemEditor = "ItemEditor"
|
|
350
|
+
itemEditor = "ItemEditor",
|
|
351
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
352
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
323
353
|
}
|
|
324
354
|
declare type InlinePlugin = {
|
|
325
355
|
area: ExtensionArea.itemEditor;
|
|
@@ -383,23 +413,6 @@ declare enum FieldMode {
|
|
|
383
413
|
Hidden = 3
|
|
384
414
|
}
|
|
385
415
|
|
|
386
|
-
interface Channel {
|
|
387
|
-
id: string;
|
|
388
|
-
name: string;
|
|
389
|
-
translations?: {
|
|
390
|
-
[key: string]: string;
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
interface Keyword {
|
|
395
|
-
id: string;
|
|
396
|
-
name: string;
|
|
397
|
-
groupId?: string;
|
|
398
|
-
translations: {
|
|
399
|
-
[key: string]: string;
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
|
|
403
416
|
interface ItemStatistics {
|
|
404
417
|
commentCount?: number;
|
|
405
418
|
likeCount?: number;
|
|
@@ -434,7 +447,7 @@ declare enum KnownNewsState {
|
|
|
434
447
|
declare type VersionId = string;
|
|
435
448
|
interface SchedulableItem extends PublishableItem {
|
|
436
449
|
metadata?: NewsMetadata;
|
|
437
|
-
channels?:
|
|
450
|
+
channels?: Channel[];
|
|
438
451
|
}
|
|
439
452
|
interface NewsItem extends SchedulableItem {
|
|
440
453
|
source?: string;
|
|
@@ -443,19 +456,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
443
456
|
knownState: KnownNewsState;
|
|
444
457
|
hasNewComments?: boolean;
|
|
445
458
|
isLiked?: boolean;
|
|
446
|
-
shareToken?: ShareToken;
|
|
447
|
-
}
|
|
448
|
-
interface ShareToken {
|
|
449
|
-
published?: string;
|
|
450
|
-
preview?: string;
|
|
451
459
|
}
|
|
452
460
|
interface NewsItemAlertOptions {
|
|
453
461
|
duration?: string;
|
|
454
462
|
endDate?: Date;
|
|
455
463
|
expireAfter?: boolean;
|
|
456
|
-
}
|
|
457
|
-
interface SchedulableItemChannel {
|
|
458
|
-
name: string;
|
|
459
464
|
}
|
|
460
465
|
|
|
461
466
|
declare enum VideoSource {
|
|
@@ -479,12 +484,14 @@ interface PollQuestion extends PollQuestionSettings {
|
|
|
479
484
|
choices: PollQuestionChoice[];
|
|
480
485
|
}
|
|
481
486
|
interface PollQuestionSettings {
|
|
487
|
+
allowOtherAnswer?: boolean;
|
|
482
488
|
isMultiChoice?: boolean;
|
|
483
489
|
}
|
|
484
490
|
interface PollQuestionChoice {
|
|
485
491
|
choiceId: string;
|
|
486
492
|
description?: string;
|
|
487
493
|
disabled?: boolean;
|
|
494
|
+
isOther?: boolean;
|
|
488
495
|
}
|
|
489
496
|
|
|
490
497
|
declare enum WorkflowStatus {
|
|
@@ -580,6 +587,7 @@ interface QuestionTranslations {
|
|
|
580
587
|
}
|
|
581
588
|
interface ChoiceTranslations {
|
|
582
589
|
choiceId: string;
|
|
590
|
+
isOther: boolean;
|
|
583
591
|
text: string;
|
|
584
592
|
}
|
|
585
593
|
|
|
@@ -594,7 +602,8 @@ declare enum AttachmentType {
|
|
|
594
602
|
Event = 5,
|
|
595
603
|
Page = 6,
|
|
596
604
|
Post = 7,
|
|
597
|
-
Giphy = 8
|
|
605
|
+
Giphy = 8,
|
|
606
|
+
MicrosoftStreamVideo = 9
|
|
598
607
|
}
|
|
599
608
|
interface BaseAttachment {
|
|
600
609
|
id: string;
|
|
@@ -610,6 +619,19 @@ interface Attachment extends BaseAttachment {
|
|
|
610
619
|
type: AttachmentType;
|
|
611
620
|
}
|
|
612
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
|
+
|
|
613
635
|
interface ItemWithAttachments {
|
|
614
636
|
attachments?: Attachment[];
|
|
615
637
|
fileAccessToken?: string;
|
|
@@ -642,18 +664,11 @@ declare enum ConversationScope {
|
|
|
642
664
|
Posts = 2
|
|
643
665
|
}
|
|
644
666
|
|
|
645
|
-
declare enum ItemResourceTypes {
|
|
646
|
-
News = "news",
|
|
647
|
-
Pages = "pages",
|
|
648
|
-
Posts = "posts",
|
|
649
|
-
Events = "events",
|
|
650
|
-
Comments = "comments"
|
|
651
|
-
}
|
|
652
|
-
|
|
653
667
|
declare enum EventResponse {
|
|
654
668
|
NotSet = 0,
|
|
655
669
|
Registered = 1,
|
|
656
|
-
Declined = 2
|
|
670
|
+
Declined = 2,
|
|
671
|
+
WaitingList = 3
|
|
657
672
|
}
|
|
658
673
|
interface EventItem extends SchedulableItem {
|
|
659
674
|
startDate?: string;
|
|
@@ -670,8 +685,10 @@ interface EventItem extends SchedulableItem {
|
|
|
670
685
|
recurrenceSeriesId?: string;
|
|
671
686
|
isSeriesMaster?: string;
|
|
672
687
|
isVirtual?: boolean;
|
|
688
|
+
isAllDayEvent?: boolean;
|
|
673
689
|
}
|
|
674
690
|
interface EventRegistrationSettings {
|
|
691
|
+
enableWaitingList?: boolean;
|
|
675
692
|
enabled?: boolean;
|
|
676
693
|
showParticipantsToEverybody?: boolean;
|
|
677
694
|
deadline?: string;
|
|
@@ -759,6 +776,7 @@ interface PageItem extends PublishableItem {
|
|
|
759
776
|
isUnlinked?: boolean;
|
|
760
777
|
pageType?: PageType;
|
|
761
778
|
firstChildId?: string;
|
|
779
|
+
isGroupInheritanceBroken?: boolean;
|
|
762
780
|
}
|
|
763
781
|
interface ContentsSummary {
|
|
764
782
|
[lang: string]: TitleContent & {
|
|
@@ -780,6 +798,7 @@ interface PageNavigationNode {
|
|
|
780
798
|
hasAnyPageChild?: boolean;
|
|
781
799
|
pageType?: PageType;
|
|
782
800
|
useExternalContent?: boolean;
|
|
801
|
+
isGroupInheritanceBroken?: boolean;
|
|
783
802
|
isSearchMatch?: boolean;
|
|
784
803
|
topLevelFolderName?: string;
|
|
785
804
|
uploadToken?: string;
|
|
@@ -794,6 +813,64 @@ declare enum PageType {
|
|
|
794
813
|
Document = 1
|
|
795
814
|
}
|
|
796
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
|
+
|
|
797
874
|
declare const Dialog: FC<IDialogProps>;
|
|
798
875
|
|
|
799
876
|
interface ToolbarProps {
|
|
@@ -811,15 +888,21 @@ interface ToolbarSearchProps {
|
|
|
811
888
|
}
|
|
812
889
|
declare const Toolbar: FC<ToolbarProps>;
|
|
813
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
|
+
|
|
814
897
|
interface ToolbarChannelSelectorProps {
|
|
815
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
816
898
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
899
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
817
900
|
channelsOptions?: {
|
|
818
901
|
availableChannels?: string[];
|
|
819
902
|
onSelected?: (channel: Channel) => unknown;
|
|
820
903
|
to?: (channel: Channel) => unknown;
|
|
821
904
|
};
|
|
822
|
-
|
|
905
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
823
906
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
824
907
|
}
|
|
825
908
|
interface ToolbarChannelSelectorOption {
|
|
@@ -856,6 +939,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
856
939
|
onClick: () => unknown;
|
|
857
940
|
}>;
|
|
858
941
|
|
|
942
|
+
declare const ToolbarManageButton: FC<{
|
|
943
|
+
onClick?: () => unknown;
|
|
944
|
+
to?: {
|
|
945
|
+
url: string;
|
|
946
|
+
target?: string;
|
|
947
|
+
};
|
|
948
|
+
disabled?: boolean;
|
|
949
|
+
}>;
|
|
950
|
+
|
|
859
951
|
interface ToolbarCloseButtonProps {
|
|
860
952
|
onClick?: () => unknown;
|
|
861
953
|
to?: {
|
|
@@ -868,11 +960,15 @@ declare const ToolbarCloseButton: FC<ToolbarCloseButtonProps>;
|
|
|
868
960
|
declare enum EventView {
|
|
869
961
|
UpcomingEvents = "upcoming",
|
|
870
962
|
MyBookedEvents = "booked",
|
|
963
|
+
UnregisteredEvents = "unregistered",
|
|
871
964
|
PastEvents = "past"
|
|
872
965
|
}
|
|
873
966
|
interface ToolbarEventViewSelectorProps {
|
|
874
|
-
|
|
967
|
+
extraViewOptions?: {
|
|
968
|
+
showUnregisteredEventsView?: boolean;
|
|
969
|
+
};
|
|
875
970
|
onChange?: (view: EventView) => void;
|
|
971
|
+
value?: EventView;
|
|
876
972
|
viewOptions?: {
|
|
877
973
|
hideUpcomingEventsView?: boolean;
|
|
878
974
|
hideMyBookedEventsView?: boolean;
|
|
@@ -884,8 +980,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
884
980
|
interface Props extends IPersonaProps {
|
|
885
981
|
upn: string;
|
|
886
982
|
tenantId?: string;
|
|
887
|
-
className?: string;
|
|
888
983
|
displayName?: string;
|
|
984
|
+
forceShowSecondaryText?: boolean;
|
|
985
|
+
className?: string;
|
|
889
986
|
}
|
|
890
987
|
declare const Avatar: FC<Props>;
|
|
891
988
|
|
|
@@ -896,6 +993,13 @@ interface UserDetailsProps {
|
|
|
896
993
|
}
|
|
897
994
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
898
995
|
|
|
996
|
+
declare enum ErrorType {
|
|
997
|
+
GenericError = "genericError",
|
|
998
|
+
Error404 = "error404",
|
|
999
|
+
Error403 = "error403",
|
|
1000
|
+
LoginError = "loginError"
|
|
1001
|
+
}
|
|
1002
|
+
|
|
899
1003
|
interface PageViewTrackerSettings {
|
|
900
1004
|
disabled?: boolean;
|
|
901
1005
|
}
|
|
@@ -942,6 +1046,32 @@ declare enum LogicalOperator {
|
|
|
942
1046
|
And = "AND"
|
|
943
1047
|
}
|
|
944
1048
|
|
|
1049
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1050
|
+
id: string;
|
|
1051
|
+
comments?: PaginatedList<Comment>;
|
|
1052
|
+
groupId: string;
|
|
1053
|
+
content: string;
|
|
1054
|
+
permalink?: string;
|
|
1055
|
+
author: Account;
|
|
1056
|
+
publishingDate: string;
|
|
1057
|
+
modified?: string;
|
|
1058
|
+
statistics: ItemStatistics;
|
|
1059
|
+
keywords?: {
|
|
1060
|
+
[key: string]: Keyword[];
|
|
1061
|
+
};
|
|
1062
|
+
contentLanguageCode?: string;
|
|
1063
|
+
isLiked?: boolean;
|
|
1064
|
+
isUnread?: boolean;
|
|
1065
|
+
isDemoContent?: boolean;
|
|
1066
|
+
isFollowing?: boolean;
|
|
1067
|
+
}
|
|
1068
|
+
interface PostFilterDefinition {
|
|
1069
|
+
token?: string;
|
|
1070
|
+
pageSize?: string;
|
|
1071
|
+
search?: string;
|
|
1072
|
+
keywords?: FilterWithLogicalOperator;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
945
1075
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
946
1076
|
author?: string;
|
|
947
1077
|
}
|
|
@@ -950,6 +1080,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
950
1080
|
channels?: FilterWithLogicalOperator;
|
|
951
1081
|
}
|
|
952
1082
|
|
|
1083
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1084
|
+
contacts?: string[];
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1088
|
+
startsAfter?: string;
|
|
1089
|
+
startsBefore?: string;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1093
|
+
excludePastEvents?: boolean;
|
|
1094
|
+
pastEventsOnly?: boolean;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
953
1097
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
954
1098
|
state?: WorkflowStatus;
|
|
955
1099
|
}
|
|
@@ -961,29 +1105,94 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
961
1105
|
includeExpired?: boolean;
|
|
962
1106
|
}
|
|
963
1107
|
|
|
1108
|
+
declare enum StreamEventResponse {
|
|
1109
|
+
NotSet = "NOT_SET",
|
|
1110
|
+
Registered = "REGISTERED",
|
|
1111
|
+
WaitingList = "WAITING_LIST",
|
|
1112
|
+
Declined = "DECLINED"
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
declare enum StreamItemTypes {
|
|
1116
|
+
Post = "POST",
|
|
1117
|
+
News = "NEWS",
|
|
1118
|
+
Event = "EVENT",
|
|
1119
|
+
Page = "PAGE"
|
|
1120
|
+
}
|
|
1121
|
+
declare enum StreamConversationScope {
|
|
1122
|
+
Public = "PUBLIC",
|
|
1123
|
+
Editor = "EDITOR",
|
|
1124
|
+
Posts = "POSTS"
|
|
1125
|
+
}
|
|
1126
|
+
interface PostStreamItem extends Post {
|
|
1127
|
+
type: StreamItemTypes.Post;
|
|
1128
|
+
isUnread: boolean;
|
|
1129
|
+
keywordsList?: Keyword[];
|
|
1130
|
+
groupIds?: string[];
|
|
1131
|
+
postAttachments?: StreamAttachment[];
|
|
1132
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1133
|
+
hasMoreUnreadComments: boolean;
|
|
1134
|
+
}
|
|
1135
|
+
interface StreamPostComment extends Comment {
|
|
1136
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1137
|
+
streamConversationScope?: StreamConversationScope;
|
|
1138
|
+
}
|
|
1139
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1140
|
+
type: GraphQLAttachmentType;
|
|
1141
|
+
}
|
|
1142
|
+
interface NewsStreamItem extends NewsItem {
|
|
1143
|
+
type: StreamItemTypes.News;
|
|
1144
|
+
contentsList: StreamPublishableItemContents[];
|
|
1145
|
+
channelsList: Channel[];
|
|
1146
|
+
isUnread: boolean;
|
|
1147
|
+
keywordsList?: Keyword[];
|
|
1148
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1149
|
+
}
|
|
1150
|
+
declare enum StreamKnownNewsState {
|
|
1151
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1152
|
+
Alert = "ALERT"
|
|
1153
|
+
}
|
|
1154
|
+
interface EventStreamItem extends EventItem {
|
|
1155
|
+
type: StreamItemTypes.Event;
|
|
1156
|
+
contentsList: StreamPublishableItemContents[];
|
|
1157
|
+
channelsList: Channel[];
|
|
1158
|
+
isUnread: boolean;
|
|
1159
|
+
keywordsList?: Keyword[];
|
|
1160
|
+
userResponseType?: StreamEventResponse;
|
|
1161
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1162
|
+
}
|
|
1163
|
+
interface PageStreamItem extends PageItem {
|
|
1164
|
+
type: StreamItemTypes.Page;
|
|
1165
|
+
contentsList: StreamPublishableItemContents[];
|
|
1166
|
+
channelsList: Channel[];
|
|
1167
|
+
isUnread: boolean;
|
|
1168
|
+
keywordsList?: Keyword[];
|
|
1169
|
+
streamPageType?: string;
|
|
1170
|
+
path?: (PageNavigationNode & {
|
|
1171
|
+
parentId?: string;
|
|
1172
|
+
contentsList: StreamPublishableItemContents[];
|
|
1173
|
+
})[];
|
|
1174
|
+
}
|
|
1175
|
+
interface StreamPublishableItemContents {
|
|
1176
|
+
language: string;
|
|
1177
|
+
title: string;
|
|
1178
|
+
intro?: string;
|
|
1179
|
+
headline?: string;
|
|
1180
|
+
}
|
|
1181
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1182
|
+
cancellationReasons?: {
|
|
1183
|
+
[key: string]: string;
|
|
1184
|
+
}[];
|
|
1185
|
+
}
|
|
1186
|
+
|
|
964
1187
|
interface TargetLinkOverrideContextProps {
|
|
965
1188
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
966
1189
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
967
1190
|
}
|
|
968
1191
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
969
1192
|
|
|
970
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
971
|
-
contacts?: string[];
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
975
|
-
startsAfter?: string;
|
|
976
|
-
startsBefore?: string;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
980
|
-
excludePastEvents?: boolean;
|
|
981
|
-
pastEventsOnly?: boolean;
|
|
982
|
-
}
|
|
983
|
-
|
|
984
1193
|
interface KeywordPickerProps {
|
|
985
1194
|
value?: Keyword[] | string[];
|
|
986
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1195
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
987
1196
|
showSelectionToggle?: boolean;
|
|
988
1197
|
availableKeywords?: Keyword[];
|
|
989
1198
|
mandatoryKeywordIds?: string[];
|
|
@@ -1001,37 +1210,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1001
1210
|
pageType?: PageType;
|
|
1002
1211
|
}
|
|
1003
1212
|
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
groupId: string;
|
|
1008
|
-
content: string;
|
|
1009
|
-
permalink?: string;
|
|
1010
|
-
author: Account;
|
|
1011
|
-
publishingDate: string;
|
|
1012
|
-
modified?: string;
|
|
1013
|
-
statistics: ItemStatistics;
|
|
1014
|
-
keywords?: {
|
|
1015
|
-
[key: string]: Keyword[];
|
|
1016
|
-
};
|
|
1017
|
-
contentLanguageCode?: string;
|
|
1018
|
-
isLiked?: boolean;
|
|
1019
|
-
isUnread?: boolean;
|
|
1020
|
-
isDemoContent?: boolean;
|
|
1021
|
-
isFollowing?: boolean;
|
|
1022
|
-
}
|
|
1023
|
-
interface PostFilterDefinition {
|
|
1024
|
-
token?: string;
|
|
1025
|
-
pageSize?: string;
|
|
1026
|
-
search?: string;
|
|
1027
|
-
keywords?: FilterWithLogicalOperator;
|
|
1028
|
-
}
|
|
1213
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1214
|
+
|
|
1215
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1029
1216
|
|
|
1030
1217
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1031
1218
|
}
|
|
1032
1219
|
|
|
1220
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1221
|
+
|
|
1222
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1223
|
+
|
|
1033
1224
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1225
|
+
/**
|
|
1226
|
+
* Limit results to those associated with the given channels.
|
|
1227
|
+
* For better performance set channel IDs instead of names.
|
|
1228
|
+
*/
|
|
1034
1229
|
channels?: string | FilterWithLogicalOperator;
|
|
1230
|
+
/**
|
|
1231
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1232
|
+
*/
|
|
1035
1233
|
keywords?: string | FilterWithLogicalOperator;
|
|
1036
1234
|
}
|
|
1037
1235
|
|
|
@@ -1044,17 +1242,23 @@ interface NewsListProps {
|
|
|
1044
1242
|
searchText?: string;
|
|
1045
1243
|
itemLayoutMode?: ItemLayoutMode;
|
|
1046
1244
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1047
|
-
onChannelClick?: (
|
|
1048
|
-
onKeywordClick?: (
|
|
1245
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1246
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1049
1247
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1050
1248
|
hidePagination?: boolean;
|
|
1051
1249
|
pageSize?: number;
|
|
1052
1250
|
includeAllItems?: boolean;
|
|
1251
|
+
cardsGap?: number;
|
|
1252
|
+
contentGap?: number;
|
|
1253
|
+
bannerSize?: number;
|
|
1254
|
+
showDateOnBottom?: boolean;
|
|
1255
|
+
showDateAsRelative?: boolean;
|
|
1053
1256
|
className?: string;
|
|
1054
1257
|
}
|
|
1055
1258
|
declare const NewsList: FC<NewsListProps>;
|
|
1056
1259
|
|
|
1057
1260
|
interface ManageChannelsProps {
|
|
1261
|
+
hideSearch?: boolean;
|
|
1058
1262
|
className?: string;
|
|
1059
1263
|
}
|
|
1060
1264
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1062,6 +1266,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1062
1266
|
interface ChannelSelectorWrapperProps {
|
|
1063
1267
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1064
1268
|
showLogicalOperatorOptions?: boolean;
|
|
1269
|
+
/**
|
|
1270
|
+
* For better performance set channel IDs instead of names.
|
|
1271
|
+
*/
|
|
1065
1272
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1066
1273
|
className?: string;
|
|
1067
1274
|
}
|
|
@@ -1078,10 +1285,11 @@ interface NewsGridProps {
|
|
|
1078
1285
|
maxColumnCount?: number;
|
|
1079
1286
|
rowCount?: number;
|
|
1080
1287
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1081
|
-
onChannelClick?: (
|
|
1082
|
-
onKeywordClick?: (
|
|
1288
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1289
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1083
1290
|
includeAllItems?: boolean;
|
|
1084
1291
|
className?: string;
|
|
1292
|
+
hideIntro?: boolean;
|
|
1085
1293
|
}
|
|
1086
1294
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1087
1295
|
|
|
@@ -1097,41 +1305,59 @@ interface EventGridProps {
|
|
|
1097
1305
|
maxColumnCount?: number;
|
|
1098
1306
|
rowCount?: number;
|
|
1099
1307
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1100
|
-
onChannelClick?: (
|
|
1308
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1101
1309
|
className?: string;
|
|
1102
1310
|
}
|
|
1103
1311
|
declare const EventsGrid: FC<EventGridProps>;
|
|
1104
1312
|
|
|
1105
1313
|
interface EventsListProps {
|
|
1106
|
-
|
|
1314
|
+
bannerSize?: number;
|
|
1315
|
+
cardsGap?: number;
|
|
1316
|
+
className?: string;
|
|
1317
|
+
contentGap?: number;
|
|
1107
1318
|
filter?: EventFilterDefinition;
|
|
1108
|
-
|
|
1319
|
+
hidePagination?: boolean;
|
|
1320
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1109
1321
|
itemLayoutMode?: ItemLayoutMode;
|
|
1110
1322
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1111
|
-
onChannelClick?: (
|
|
1112
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1113
|
-
hidePagination?: boolean;
|
|
1323
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1114
1324
|
pageSize?: number;
|
|
1115
|
-
|
|
1325
|
+
searchText?: string;
|
|
1326
|
+
view?: EventView;
|
|
1116
1327
|
}
|
|
1117
1328
|
declare const EventsList: FC<EventsListProps>;
|
|
1118
1329
|
|
|
1330
|
+
declare enum HeroPagingType {
|
|
1331
|
+
page = "page",
|
|
1332
|
+
item = "item"
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1119
1335
|
interface NewsHeroFilterProps {
|
|
1336
|
+
/**
|
|
1337
|
+
* Limit results to those associated with the given channels.
|
|
1338
|
+
* For better performance set channel IDs instead of names.
|
|
1339
|
+
*/
|
|
1120
1340
|
channels?: string | FilterWithLogicalOperator;
|
|
1341
|
+
/**
|
|
1342
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1343
|
+
*/
|
|
1121
1344
|
keywords?: string | FilterWithLogicalOperator;
|
|
1122
1345
|
pageSize?: number;
|
|
1123
1346
|
}
|
|
1124
1347
|
interface NewsHeroProps {
|
|
1125
|
-
filter?: NewsHeroFilterProps;
|
|
1126
|
-
disableAutoplay?: boolean;
|
|
1127
1348
|
autoplayInterval?: number;
|
|
1128
|
-
|
|
1129
|
-
|
|
1349
|
+
disableAutoplay?: boolean;
|
|
1350
|
+
filter?: NewsHeroFilterProps;
|
|
1130
1351
|
height?: number | string;
|
|
1131
1352
|
includeAllItems?: boolean;
|
|
1132
|
-
|
|
1133
|
-
|
|
1353
|
+
isHighContrast?: boolean;
|
|
1354
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1355
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1356
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1357
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1358
|
+
pagingType?: HeroPagingType;
|
|
1134
1359
|
showKeywords?: boolean;
|
|
1360
|
+
width?: number | string;
|
|
1135
1361
|
}
|
|
1136
1362
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1137
1363
|
|
|
@@ -1159,27 +1385,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1159
1385
|
itemId: string;
|
|
1160
1386
|
}>;
|
|
1161
1387
|
|
|
1162
|
-
declare const
|
|
1388
|
+
declare const PageItemContextProvider: FC<{
|
|
1389
|
+
itemId: string;
|
|
1390
|
+
}>;
|
|
1391
|
+
|
|
1392
|
+
declare const EventItemContextProvider: FC<{
|
|
1393
|
+
itemId: string;
|
|
1394
|
+
}>;
|
|
1395
|
+
|
|
1396
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1163
1397
|
showEditLanguagePreferences?: boolean;
|
|
1164
1398
|
onEditLanguagePreferences?: () => unknown;
|
|
1165
1399
|
}>;
|
|
1166
1400
|
|
|
1401
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1402
|
+
onClick?: (itemId: string) => unknown;
|
|
1403
|
+
}>;
|
|
1167
1404
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1168
1405
|
onClick?: (itemId: string) => unknown;
|
|
1169
1406
|
}>;
|
|
1170
1407
|
|
|
1171
|
-
interface
|
|
1408
|
+
interface SharedItemDetailPreviewProps {
|
|
1172
1409
|
itemId?: string;
|
|
1173
1410
|
versionId?: string;
|
|
1174
1411
|
className?: string;
|
|
1412
|
+
hideLikes?: boolean;
|
|
1413
|
+
hideComments?: boolean;
|
|
1175
1414
|
}
|
|
1176
|
-
declare const NewsDetailPreview: FC<
|
|
1415
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1416
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1417
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1177
1418
|
|
|
1178
1419
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1179
1420
|
itemId: string;
|
|
1180
1421
|
versionId?: string;
|
|
1181
1422
|
}>;
|
|
1182
1423
|
|
|
1424
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1425
|
+
itemId: string;
|
|
1426
|
+
versionId?: string;
|
|
1427
|
+
}>;
|
|
1428
|
+
|
|
1429
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1430
|
+
itemId: string;
|
|
1431
|
+
versionId?: string;
|
|
1432
|
+
}>;
|
|
1433
|
+
|
|
1183
1434
|
interface FilterProps {
|
|
1184
1435
|
filter: IndexableFilterDefinition;
|
|
1185
1436
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1188,6 +1439,9 @@ interface FilterProps {
|
|
|
1188
1439
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1189
1440
|
|
|
1190
1441
|
interface ChannelFilterProps {
|
|
1442
|
+
/**
|
|
1443
|
+
* For better performance set channel IDs instead of names.
|
|
1444
|
+
*/
|
|
1191
1445
|
channels?: string[];
|
|
1192
1446
|
className?: string;
|
|
1193
1447
|
}
|
|
@@ -1336,21 +1590,25 @@ interface PagesGridProps {
|
|
|
1336
1590
|
maxColumnCount?: number;
|
|
1337
1591
|
rowCount?: number;
|
|
1338
1592
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1339
|
-
onKeywordClick?: (
|
|
1593
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1594
|
+
hideIntro?: boolean;
|
|
1340
1595
|
className?: string;
|
|
1341
1596
|
}
|
|
1342
1597
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
1343
1598
|
|
|
1344
1599
|
interface PagesListProps {
|
|
1600
|
+
bannerSize?: number;
|
|
1601
|
+
cardsGap?: number;
|
|
1602
|
+
className?: string;
|
|
1603
|
+
contentGap?: number;
|
|
1345
1604
|
filter?: PageFilterDefinition;
|
|
1346
|
-
|
|
1605
|
+
hidePagination?: boolean;
|
|
1606
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1347
1607
|
itemLayoutMode?: ItemLayoutMode;
|
|
1348
1608
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1349
|
-
onKeywordClick?: (
|
|
1350
|
-
hidePlaceholderIfNoBanner?: boolean;
|
|
1351
|
-
hidePagination?: boolean;
|
|
1609
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1352
1610
|
pageSize?: number;
|
|
1353
|
-
|
|
1611
|
+
searchText?: string;
|
|
1354
1612
|
}
|
|
1355
1613
|
declare const PagesList: FC<PagesListProps>;
|
|
1356
1614
|
|
|
@@ -1381,4 +1639,37 @@ interface EventEditorToolbarRecurringControlsProps {
|
|
|
1381
1639
|
}
|
|
1382
1640
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1383
1641
|
|
|
1384
|
-
|
|
1642
|
+
interface PageEditorContextProviderProps {
|
|
1643
|
+
itemId?: string;
|
|
1644
|
+
groupId?: string;
|
|
1645
|
+
parentId?: string;
|
|
1646
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1647
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1648
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1649
|
+
}
|
|
1650
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1651
|
+
|
|
1652
|
+
interface PageEditorProps {
|
|
1653
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1654
|
+
className?: string;
|
|
1655
|
+
}
|
|
1656
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1657
|
+
|
|
1658
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1659
|
+
|
|
1660
|
+
interface PageEditorPanelProps {
|
|
1661
|
+
className?: string;
|
|
1662
|
+
}
|
|
1663
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1664
|
+
|
|
1665
|
+
interface ErrorWrapperProps {
|
|
1666
|
+
errorType: ErrorType;
|
|
1667
|
+
isList?: boolean;
|
|
1668
|
+
}
|
|
1669
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1670
|
+
|
|
1671
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1672
|
+
onClick?: () => unknown;
|
|
1673
|
+
}>;
|
|
1674
|
+
|
|
1675
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, HeroPagingType, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
|