@livetiles/reach-components-react 0.5.0-preview.110 → 0.5.0-preview.1100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnalyticsDummyContextProvider.d.ts +2 -0
- package/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/CompactLayoutList.d.ts +2 -1
- package/EmojiPicker.esm.esm.js +1 -1
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +10 -1
- package/EventGridCard.d.ts +6 -4
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +2 -2
- package/ManageChannels.d.ts +1 -0
- package/NewsDetail.d.ts +5 -0
- package/NewsDetailViewMetaInfo.d.ts +4 -1
- package/NewsGrid.d.ts +4 -3
- package/NewsGridCard.d.ts +8 -6
- package/NewsHero.d.ts +14 -4
- package/NewsList.d.ts +8 -3
- package/PageDetail.d.ts +10 -1
- package/PageGridCard.d.ts +3 -2
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +2 -3
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +2 -2
- package/PublishableItemCompactCard.d.ts +6 -1
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +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 +18 -5
- package/common/hooks/useBannerOnResize.d.ts +5 -0
- package/common/utils.d.ts +1 -3
- package/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/PageEditor.d.ts +1 -1
- package/editor/PageEditorContextProvider.d.ts +1 -0
- package/el.async.esm.esm.js +1 -1
- package/en-au.async.esm.esm.js +1 -1
- package/en-ca.async.esm.esm.js +1 -1
- package/en-gb.async.esm.esm.js +1 -1
- package/en-ie.async.esm.esm.js +1 -1
- package/en-nz.async.esm.esm.js +1 -1
- package/en-us.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/et.async.esm.esm.js +1 -1
- package/fa-ir.async.esm.esm.js +1 -1
- package/fi.async.esm.esm.js +1 -1
- package/fr-ca.async.esm.esm.js +1 -1
- package/fr-ch.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/gu.async.esm.esm.js +1 -1
- package/he.async.esm.esm.js +1 -1
- package/hi.async.esm.esm.js +1 -1
- package/hr.async.esm.esm.js +1 -1
- package/hu.async.esm.esm.js +1 -1
- package/id.async.esm.esm.js +1 -1
- package/index-28074e12.esm.js +1 -0
- package/index-5e113ba7.esm.js +790 -0
- package/index-6542329b.esm.js +1 -0
- package/index-788b2f42.esm.js +1 -0
- package/index-904b1d06.esm.js +1 -0
- package/index-b417cb34.esm.js +1 -0
- package/index.d.ts +405 -165
- package/index.esm.js +1 -1
- package/index.esm2.js +52 -22
- package/index.esm4.js +1 -1
- package/index.esm5.js +1 -0
- package/index.esm6.js +1 -0
- package/index.esm7.js +1 -0
- package/index.esm8.js +1 -0
- package/index.umd-c9cf1445.esm.js +1 -0
- package/index.umd.js +845 -26
- package/is-plan-event-enabled-d9660f36.esm.js +1 -0
- package/it-ch.async.esm.esm.js +1 -1
- package/it.async.esm.esm.js +1 -1
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/kn.async.esm.esm.js +1 -1
- package/ko.async.esm.esm.js +1 -1
- package/lt.async.esm.esm.js +1 -1
- package/lv.async.esm.esm.js +1 -1
- package/mllike.esm.js +1 -0
- package/ms.async.esm.esm.js +1 -1
- package/nb.async.esm.esm.js +1 -1
- package/nl-be.async.esm.esm.js +1 -1
- package/nl.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/pl.async.esm.esm.js +1 -1
- package/pt-br.async.esm.esm.js +1 -1
- package/pt.async.esm.esm.js +1 -1
- package/python.esm.js +1 -0
- package/ro.async.esm.esm.js +1 -1
- package/rpm.esm.js +1 -0
- package/ru.async.esm.esm.js +1 -1
- package/sk.async.esm.esm.js +1 -1
- package/skeletons/CompactListShimmer.d.ts +7 -0
- package/skeletons/EventGridShimmerItem.d.ts +2 -0
- package/skeletons/EventShimmerListItem.d.ts +2 -0
- package/skeletons/ListShimmer.d.ts +7 -0
- package/skeletons/NewsGridShimmerItem.d.ts +4 -0
- package/skeletons/NewsHeroShimmer.d.ts +6 -0
- package/skeletons/NewsShimmerListItem.d.ts +4 -0
- package/skeletons/PageGridShimmerItem.d.ts +4 -0
- package/skeletons/PageShimmerListItem.d.ts +2 -0
- package/skeletons/PublishableItemGridShimmer.d.ts +9 -0
- package/skeletons/utils.d.ts +1 -0
- package/sl.async.esm.esm.js +1 -1
- package/sql.esm.js +1 -0
- package/sr-latn.async.esm.esm.js +1 -1
- package/sr.async.esm.esm.js +1 -1
- package/sv.async.esm.esm.js +1 -1
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-hk.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
- package/ar-dz.async.esm2.esm.js +0 -1
- package/ar-kw.async.esm.esm.js +0 -1
- package/ar-ly.async.esm.esm.js +0 -1
- package/ar-ma.async.esm2.esm.js +0 -1
- package/ar-sa.async.esm2.esm.js +0 -1
- package/ar.esm.js +0 -1
- package/bg.async.esm2.esm.js +0 -1
- package/bn.async.esm2.esm.js +0 -1
- package/ca.async.esm2.esm.js +0 -1
- package/cs.async.esm2.esm.js +0 -1
- package/da.async.esm3.esm.js +0 -1
- package/da.esm.js +0 -1
- package/de-ch.async.esm.esm.js +0 -1
- package/de.async.esm3.esm.js +0 -1
- package/de.esm.js +0 -1
- package/el.async.esm2.esm.js +0 -1
- package/en-au.async.esm2.esm.js +0 -1
- package/en-ca.async.esm2.esm.js +0 -1
- package/en-gb.async.esm2.esm.js +0 -1
- package/en-il.async.esm.esm.js +0 -1
- package/en-nz.async.esm2.esm.js +0 -1
- package/en-sg.async.esm.esm.js +0 -1
- package/en.esm.js +0 -1
- package/es-do.async.esm.esm.js +0 -1
- package/es-us.async.esm.esm.js +0 -1
- package/es.async.esm3.esm.js +0 -1
- package/es.esm.js +0 -1
- package/et.async.esm2.esm.js +0 -1
- package/fa.async.esm.esm.js +0 -1
- package/fi.async.esm2.esm.js +0 -1
- package/fr-ca.async.esm2.esm.js +0 -1
- package/fr-ch.async.esm2.esm.js +0 -1
- package/fr.async.esm3.esm.js +0 -1
- package/fr.esm.js +0 -1
- package/gu.async.esm2.esm.js +0 -1
- package/he.async.esm2.esm.js +0 -1
- package/hi.async.esm2.esm.js +0 -1
- package/hr.async.esm2.esm.js +0 -1
- package/hu.async.esm2.esm.js +0 -1
- package/id.async.esm2.esm.js +0 -1
- package/it.async.esm3.esm.js +0 -1
- package/it.esm.js +0 -1
- package/ja.async.esm3.esm.js +0 -1
- package/ja.esm.js +0 -1
- package/kn.async.esm2.esm.js +0 -1
- package/ko.async.esm2.esm.js +0 -1
- package/lt.async.esm2.esm.js +0 -1
- package/lv.async.esm2.esm.js +0 -1
- package/ml.async.esm.esm.js +0 -1
- package/mr.async.esm.esm.js +0 -1
- package/ms-my.async.esm.esm.js +0 -1
- package/ms.async.esm2.esm.js +0 -1
- package/ms.esm.js +0 -1
- package/nb.async.esm2.esm.js +0 -1
- package/nl-be.async.esm2.esm.js +0 -1
- package/nl.async.esm2.esm.js +0 -1
- package/nl.esm.js +0 -1
- package/pl.async.esm2.esm.js +0 -1
- package/pt-br.async.esm2.esm.js +0 -1
- package/pt.async.esm2.esm.js +0 -1
- package/pt.esm.js +0 -1
- package/ro.async.esm2.esm.js +0 -1
- package/ru.async.esm2.esm.js +0 -1
- package/sk.async.esm2.esm.js +0 -1
- package/sl.async.esm2.esm.js +0 -1
- package/sr-cyrl.async.esm.esm.js +0 -1
- package/sr.async.esm2.esm.js +0 -1
- package/sr.esm.js +0 -1
- package/sv.async.esm2.esm.js +0 -1
- package/sw.async.esm.esm.js +0 -1
- package/ta.async.esm2.esm.js +0 -1
- package/te.async.esm2.esm.js +0 -1
- package/th.async.esm2.esm.js +0 -1
- package/tr.async.esm3.esm.js +0 -1
- package/tr.esm.js +0 -1
- package/uk.async.esm2.esm.js +0 -1
- package/vi.async.esm2.esm.js +0 -1
- package/zh-cn.async.esm3.esm.js +0 -1
- package/zh-tw.async.esm3.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,64 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode, MouseEvent } from 'react';
|
|
2
3
|
import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
|
|
3
4
|
import * as styled_components from 'styled-components';
|
|
4
5
|
|
|
5
|
-
declare type ReachContextProps = {
|
|
6
|
-
config?: {
|
|
7
|
-
apiEndpoint?: string;
|
|
8
|
-
webAppUrl?: string;
|
|
9
|
-
api3Endpoint?: string;
|
|
10
|
-
webSocketsEndpoint?: string;
|
|
11
|
-
};
|
|
12
|
-
onRequestToken?: () => Promise<string>;
|
|
13
|
-
subscriptionId: string;
|
|
14
|
-
language?: string;
|
|
15
|
-
disableUiFabricThemeOverwrite?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
18
|
-
|
|
19
|
-
interface NewsDetailProps {
|
|
20
|
-
itemId?: string;
|
|
21
|
-
hideComments?: boolean;
|
|
22
|
-
hideLikes?: boolean;
|
|
23
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
declare const NewsDetail: FC<NewsDetailProps>;
|
|
27
|
-
|
|
28
|
-
interface PageDetailProps {
|
|
29
|
-
itemId: string;
|
|
30
|
-
hideComments?: boolean;
|
|
31
|
-
hideLikes?: boolean;
|
|
32
|
-
preventExternalContentAutoRedirect?: boolean;
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
|
-
declare const PageDetail: FC<PageDetailProps>;
|
|
36
|
-
|
|
37
|
-
interface EventDetailProps {
|
|
38
|
-
itemId: string;
|
|
39
|
-
hideComments?: boolean;
|
|
40
|
-
hideLikes?: boolean;
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
declare const EventDetail: FC<EventDetailProps>;
|
|
44
|
-
|
|
45
|
-
interface PostDetailProps {
|
|
46
|
-
postId: string;
|
|
47
|
-
threadId?: string;
|
|
48
|
-
onAfterDelete?: (id: string) => unknown;
|
|
49
|
-
commentCount?: number;
|
|
50
|
-
onItemClick?: (postId: string) => unknown;
|
|
51
|
-
}
|
|
52
|
-
declare const PostDetail: FC<PostDetailProps>;
|
|
53
|
-
|
|
54
|
-
interface PaginatedList<TItem> {
|
|
55
|
-
items: TItem[];
|
|
56
|
-
paginationToken?: any;
|
|
57
|
-
nextItem?: TItem;
|
|
58
|
-
hasMoreUnreadComments?: boolean;
|
|
59
|
-
hasNextPage?: boolean;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
6
|
declare enum AuthenticationType {
|
|
63
7
|
unknown = 0,
|
|
64
8
|
azuread = 1,
|
|
@@ -84,6 +28,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 {
|
|
@@ -470,19 +475,6 @@ interface BaseItem {
|
|
|
470
475
|
id?: string;
|
|
471
476
|
statistics?: ItemStatistics;
|
|
472
477
|
poll?: Poll;
|
|
473
|
-
searchHighlights?: SearchHighlightSummary;
|
|
474
|
-
}
|
|
475
|
-
interface SearchHighlightSummary {
|
|
476
|
-
title: SearchHighlight[];
|
|
477
|
-
content: SearchHighlight[];
|
|
478
|
-
}
|
|
479
|
-
interface SearchHighlight {
|
|
480
|
-
language: string;
|
|
481
|
-
texts: {
|
|
482
|
-
value: string;
|
|
483
|
-
type: 'text' | 'hit';
|
|
484
|
-
}[];
|
|
485
|
-
score: number;
|
|
486
478
|
}
|
|
487
479
|
interface Poll {
|
|
488
480
|
questions: PollQuestion[];
|
|
@@ -517,6 +509,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
517
509
|
headline?: string;
|
|
518
510
|
intro?: string;
|
|
519
511
|
body?: string;
|
|
512
|
+
bodyRaw?: string;
|
|
520
513
|
customProperties?: {
|
|
521
514
|
[key: string]: any;
|
|
522
515
|
};
|
|
@@ -606,7 +599,8 @@ declare enum AttachmentType {
|
|
|
606
599
|
Event = 5,
|
|
607
600
|
Page = 6,
|
|
608
601
|
Post = 7,
|
|
609
|
-
Giphy = 8
|
|
602
|
+
Giphy = 8,
|
|
603
|
+
MicrosoftStreamVideo = 9
|
|
610
604
|
}
|
|
611
605
|
interface BaseAttachment {
|
|
612
606
|
id: string;
|
|
@@ -622,6 +616,19 @@ interface Attachment extends BaseAttachment {
|
|
|
622
616
|
type: AttachmentType;
|
|
623
617
|
}
|
|
624
618
|
|
|
619
|
+
declare enum GraphQLAttachmentType {
|
|
620
|
+
Image = "IMAGE",
|
|
621
|
+
File = "FILE",
|
|
622
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
623
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
624
|
+
News = "NEWS",
|
|
625
|
+
Event = "EVENT",
|
|
626
|
+
Page = "PAGE",
|
|
627
|
+
Post = "POST",
|
|
628
|
+
Giphy = "GIPHY",
|
|
629
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
630
|
+
}
|
|
631
|
+
|
|
625
632
|
interface ItemWithAttachments {
|
|
626
633
|
attachments?: Attachment[];
|
|
627
634
|
fileAccessToken?: string;
|
|
@@ -654,14 +661,6 @@ declare enum ConversationScope {
|
|
|
654
661
|
Posts = 2
|
|
655
662
|
}
|
|
656
663
|
|
|
657
|
-
declare enum ItemResourceTypes {
|
|
658
|
-
News = "news",
|
|
659
|
-
Pages = "pages",
|
|
660
|
-
Posts = "posts",
|
|
661
|
-
Events = "events",
|
|
662
|
-
Comments = "comments"
|
|
663
|
-
}
|
|
664
|
-
|
|
665
664
|
declare enum EventResponse {
|
|
666
665
|
NotSet = 0,
|
|
667
666
|
Registered = 1,
|
|
@@ -682,6 +681,7 @@ interface EventItem extends SchedulableItem {
|
|
|
682
681
|
recurrenceSeriesId?: string;
|
|
683
682
|
isSeriesMaster?: string;
|
|
684
683
|
isVirtual?: boolean;
|
|
684
|
+
isAllDayEvent?: boolean;
|
|
685
685
|
}
|
|
686
686
|
interface EventRegistrationSettings {
|
|
687
687
|
enabled?: boolean;
|
|
@@ -771,6 +771,7 @@ interface PageItem extends PublishableItem {
|
|
|
771
771
|
isUnlinked?: boolean;
|
|
772
772
|
pageType?: PageType;
|
|
773
773
|
firstChildId?: string;
|
|
774
|
+
isGroupInheritanceBroken?: boolean;
|
|
774
775
|
}
|
|
775
776
|
interface ContentsSummary {
|
|
776
777
|
[lang: string]: TitleContent & {
|
|
@@ -792,6 +793,7 @@ interface PageNavigationNode {
|
|
|
792
793
|
hasAnyPageChild?: boolean;
|
|
793
794
|
pageType?: PageType;
|
|
794
795
|
useExternalContent?: boolean;
|
|
796
|
+
isGroupInheritanceBroken?: boolean;
|
|
795
797
|
isSearchMatch?: boolean;
|
|
796
798
|
topLevelFolderName?: string;
|
|
797
799
|
uploadToken?: string;
|
|
@@ -806,6 +808,64 @@ declare enum PageType {
|
|
|
806
808
|
Document = 1
|
|
807
809
|
}
|
|
808
810
|
|
|
811
|
+
declare type KeywordsByGroupId = {
|
|
812
|
+
[key: string]: Keyword[];
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
interface SubscriptionData {
|
|
816
|
+
channels?: Channel[];
|
|
817
|
+
allKeywords?: Keyword[];
|
|
818
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
819
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
820
|
+
}
|
|
821
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
822
|
+
getChannels: () => Promise<Channel[]>;
|
|
823
|
+
refreshSubscription: () => void;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
827
|
+
|
|
828
|
+
interface NewsDetailProps {
|
|
829
|
+
itemId?: string;
|
|
830
|
+
hideComments?: boolean;
|
|
831
|
+
hideLikes?: boolean;
|
|
832
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
833
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
834
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
835
|
+
className?: string;
|
|
836
|
+
}
|
|
837
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
838
|
+
|
|
839
|
+
interface PageDetailProps {
|
|
840
|
+
itemId?: string;
|
|
841
|
+
hideComments?: boolean;
|
|
842
|
+
hideLikes?: boolean;
|
|
843
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
844
|
+
homeBreadcrumbTargetUrl?: string;
|
|
845
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
846
|
+
className?: string;
|
|
847
|
+
}
|
|
848
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
849
|
+
|
|
850
|
+
interface EventDetailProps {
|
|
851
|
+
itemId?: string;
|
|
852
|
+
hideComments?: boolean;
|
|
853
|
+
hideLikes?: boolean;
|
|
854
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
855
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
856
|
+
className?: string;
|
|
857
|
+
}
|
|
858
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
859
|
+
|
|
860
|
+
interface PostDetailProps {
|
|
861
|
+
postId: string;
|
|
862
|
+
threadId?: string;
|
|
863
|
+
onAfterDelete?: (id: string) => unknown;
|
|
864
|
+
commentCount?: number;
|
|
865
|
+
onItemClick?: (postId: string) => unknown;
|
|
866
|
+
}
|
|
867
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
868
|
+
|
|
809
869
|
declare const Dialog: FC<IDialogProps>;
|
|
810
870
|
|
|
811
871
|
interface ToolbarProps {
|
|
@@ -823,15 +883,21 @@ interface ToolbarSearchProps {
|
|
|
823
883
|
}
|
|
824
884
|
declare const Toolbar: FC<ToolbarProps>;
|
|
825
885
|
|
|
886
|
+
declare type TokenType = string | number;
|
|
887
|
+
|
|
888
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
889
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
890
|
+
}
|
|
891
|
+
|
|
826
892
|
interface ToolbarChannelSelectorProps {
|
|
827
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
828
893
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
894
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
829
895
|
channelsOptions?: {
|
|
830
896
|
availableChannels?: string[];
|
|
831
897
|
onSelected?: (channel: Channel) => unknown;
|
|
832
898
|
to?: (channel: Channel) => unknown;
|
|
833
899
|
};
|
|
834
|
-
|
|
900
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
835
901
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
836
902
|
}
|
|
837
903
|
interface ToolbarChannelSelectorOption {
|
|
@@ -868,6 +934,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
868
934
|
onClick: () => unknown;
|
|
869
935
|
}>;
|
|
870
936
|
|
|
937
|
+
declare const ToolbarManageButton: FC<{
|
|
938
|
+
onClick?: () => unknown;
|
|
939
|
+
to?: {
|
|
940
|
+
url: string;
|
|
941
|
+
target?: string;
|
|
942
|
+
};
|
|
943
|
+
disabled?: boolean;
|
|
944
|
+
}>;
|
|
945
|
+
|
|
871
946
|
interface ToolbarCloseButtonProps {
|
|
872
947
|
onClick?: () => unknown;
|
|
873
948
|
to?: {
|
|
@@ -896,8 +971,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
896
971
|
interface Props extends IPersonaProps {
|
|
897
972
|
upn: string;
|
|
898
973
|
tenantId?: string;
|
|
899
|
-
className?: string;
|
|
900
974
|
displayName?: string;
|
|
975
|
+
forceShowSecondaryText?: boolean;
|
|
976
|
+
className?: string;
|
|
901
977
|
}
|
|
902
978
|
declare const Avatar: FC<Props>;
|
|
903
979
|
|
|
@@ -908,6 +984,13 @@ interface UserDetailsProps {
|
|
|
908
984
|
}
|
|
909
985
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
910
986
|
|
|
987
|
+
declare enum ErrorType {
|
|
988
|
+
GenericError = "genericError",
|
|
989
|
+
Error404 = "error404",
|
|
990
|
+
Error403 = "error403",
|
|
991
|
+
LoginError = "loginError"
|
|
992
|
+
}
|
|
993
|
+
|
|
911
994
|
interface PageViewTrackerSettings {
|
|
912
995
|
disabled?: boolean;
|
|
913
996
|
}
|
|
@@ -954,6 +1037,32 @@ declare enum LogicalOperator {
|
|
|
954
1037
|
And = "AND"
|
|
955
1038
|
}
|
|
956
1039
|
|
|
1040
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1041
|
+
id: string;
|
|
1042
|
+
comments?: PaginatedList<Comment>;
|
|
1043
|
+
groupId: string;
|
|
1044
|
+
content: string;
|
|
1045
|
+
permalink?: string;
|
|
1046
|
+
author: Account;
|
|
1047
|
+
publishingDate: string;
|
|
1048
|
+
modified?: string;
|
|
1049
|
+
statistics: ItemStatistics;
|
|
1050
|
+
keywords?: {
|
|
1051
|
+
[key: string]: Keyword[];
|
|
1052
|
+
};
|
|
1053
|
+
contentLanguageCode?: string;
|
|
1054
|
+
isLiked?: boolean;
|
|
1055
|
+
isUnread?: boolean;
|
|
1056
|
+
isDemoContent?: boolean;
|
|
1057
|
+
isFollowing?: boolean;
|
|
1058
|
+
}
|
|
1059
|
+
interface PostFilterDefinition {
|
|
1060
|
+
token?: string;
|
|
1061
|
+
pageSize?: string;
|
|
1062
|
+
search?: string;
|
|
1063
|
+
keywords?: FilterWithLogicalOperator;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
957
1066
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
958
1067
|
author?: string;
|
|
959
1068
|
}
|
|
@@ -962,6 +1071,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
962
1071
|
channels?: FilterWithLogicalOperator;
|
|
963
1072
|
}
|
|
964
1073
|
|
|
1074
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1075
|
+
contacts?: string[];
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1079
|
+
startsAfter?: string;
|
|
1080
|
+
startsBefore?: string;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1084
|
+
excludePastEvents?: boolean;
|
|
1085
|
+
pastEventsOnly?: boolean;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
965
1088
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
966
1089
|
state?: WorkflowStatus;
|
|
967
1090
|
}
|
|
@@ -973,29 +1096,93 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
973
1096
|
includeExpired?: boolean;
|
|
974
1097
|
}
|
|
975
1098
|
|
|
1099
|
+
declare enum StreamEventResponse {
|
|
1100
|
+
NotSet = "NOTSET",
|
|
1101
|
+
Registered = "REGISTERED",
|
|
1102
|
+
Declined = "DECLINED"
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
declare enum StreamItemTypes {
|
|
1106
|
+
Post = "POST",
|
|
1107
|
+
News = "NEWS",
|
|
1108
|
+
Event = "EVENT",
|
|
1109
|
+
Page = "PAGE"
|
|
1110
|
+
}
|
|
1111
|
+
declare enum StreamConversationScope {
|
|
1112
|
+
Public = "PUBLIC",
|
|
1113
|
+
Editor = "EDITOR",
|
|
1114
|
+
Posts = "POSTS"
|
|
1115
|
+
}
|
|
1116
|
+
interface PostStreamItem extends Post {
|
|
1117
|
+
type: StreamItemTypes.Post;
|
|
1118
|
+
isUnread: boolean;
|
|
1119
|
+
keywordsList?: Keyword[];
|
|
1120
|
+
groupIds?: string[];
|
|
1121
|
+
postAttachments?: StreamAttachment[];
|
|
1122
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1123
|
+
hasMoreUnreadComments: boolean;
|
|
1124
|
+
}
|
|
1125
|
+
interface StreamPostComment extends Comment {
|
|
1126
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1127
|
+
streamConversationScope?: StreamConversationScope;
|
|
1128
|
+
}
|
|
1129
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1130
|
+
type: GraphQLAttachmentType;
|
|
1131
|
+
}
|
|
1132
|
+
interface NewsStreamItem extends NewsItem {
|
|
1133
|
+
type: StreamItemTypes.News;
|
|
1134
|
+
contentsList: StreamPublishableItemContents[];
|
|
1135
|
+
channelsList: Channel[];
|
|
1136
|
+
isUnread: boolean;
|
|
1137
|
+
keywordsList?: Keyword[];
|
|
1138
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1139
|
+
}
|
|
1140
|
+
declare enum StreamKnownNewsState {
|
|
1141
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1142
|
+
Alert = "ALERT"
|
|
1143
|
+
}
|
|
1144
|
+
interface EventStreamItem extends EventItem {
|
|
1145
|
+
type: StreamItemTypes.Event;
|
|
1146
|
+
contentsList: StreamPublishableItemContents[];
|
|
1147
|
+
channelsList: Channel[];
|
|
1148
|
+
isUnread: boolean;
|
|
1149
|
+
keywordsList?: Keyword[];
|
|
1150
|
+
userResponseType?: StreamEventResponse;
|
|
1151
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1152
|
+
}
|
|
1153
|
+
interface PageStreamItem extends PageItem {
|
|
1154
|
+
type: StreamItemTypes.Page;
|
|
1155
|
+
contentsList: StreamPublishableItemContents[];
|
|
1156
|
+
channelsList: Channel[];
|
|
1157
|
+
isUnread: boolean;
|
|
1158
|
+
keywordsList?: Keyword[];
|
|
1159
|
+
streamPageType?: string;
|
|
1160
|
+
path?: (PageNavigationNode & {
|
|
1161
|
+
parentId?: string;
|
|
1162
|
+
contentsList: StreamPublishableItemContents[];
|
|
1163
|
+
})[];
|
|
1164
|
+
}
|
|
1165
|
+
interface StreamPublishableItemContents {
|
|
1166
|
+
language: string;
|
|
1167
|
+
title: string;
|
|
1168
|
+
intro?: string;
|
|
1169
|
+
headline?: string;
|
|
1170
|
+
}
|
|
1171
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1172
|
+
cancellationReasons?: {
|
|
1173
|
+
[key: string]: string;
|
|
1174
|
+
}[];
|
|
1175
|
+
}
|
|
1176
|
+
|
|
976
1177
|
interface TargetLinkOverrideContextProps {
|
|
977
1178
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
978
1179
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
979
1180
|
}
|
|
980
1181
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
981
1182
|
|
|
982
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
983
|
-
contacts?: string[];
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
987
|
-
startsAfter?: string;
|
|
988
|
-
startsBefore?: string;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
992
|
-
excludePastEvents?: boolean;
|
|
993
|
-
pastEventsOnly?: boolean;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
1183
|
interface KeywordPickerProps {
|
|
997
1184
|
value?: Keyword[] | string[];
|
|
998
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1185
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
999
1186
|
showSelectionToggle?: boolean;
|
|
1000
1187
|
availableKeywords?: Keyword[];
|
|
1001
1188
|
mandatoryKeywordIds?: string[];
|
|
@@ -1013,37 +1200,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1013
1200
|
pageType?: PageType;
|
|
1014
1201
|
}
|
|
1015
1202
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
groupId: string;
|
|
1020
|
-
content: string;
|
|
1021
|
-
permalink?: string;
|
|
1022
|
-
author: Account;
|
|
1023
|
-
publishingDate: string;
|
|
1024
|
-
modified?: string;
|
|
1025
|
-
statistics: ItemStatistics;
|
|
1026
|
-
keywords?: {
|
|
1027
|
-
[key: string]: Keyword[];
|
|
1028
|
-
};
|
|
1029
|
-
contentLanguageCode?: string;
|
|
1030
|
-
isLiked?: boolean;
|
|
1031
|
-
isUnread?: boolean;
|
|
1032
|
-
isDemoContent?: boolean;
|
|
1033
|
-
isFollowing?: boolean;
|
|
1034
|
-
}
|
|
1035
|
-
interface PostFilterDefinition {
|
|
1036
|
-
token?: string;
|
|
1037
|
-
pageSize?: string;
|
|
1038
|
-
search?: string;
|
|
1039
|
-
keywords?: FilterWithLogicalOperator;
|
|
1040
|
-
}
|
|
1203
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1204
|
+
|
|
1205
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1041
1206
|
|
|
1042
1207
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1043
1208
|
}
|
|
1044
1209
|
|
|
1210
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1211
|
+
|
|
1212
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1213
|
+
|
|
1045
1214
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1215
|
+
/**
|
|
1216
|
+
* Limit results to those associated with the given channels.
|
|
1217
|
+
* For better performance set channel IDs instead of names.
|
|
1218
|
+
*/
|
|
1046
1219
|
channels?: string | FilterWithLogicalOperator;
|
|
1220
|
+
/**
|
|
1221
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1222
|
+
*/
|
|
1047
1223
|
keywords?: string | FilterWithLogicalOperator;
|
|
1048
1224
|
}
|
|
1049
1225
|
|
|
@@ -1056,17 +1232,23 @@ interface NewsListProps {
|
|
|
1056
1232
|
searchText?: string;
|
|
1057
1233
|
itemLayoutMode?: ItemLayoutMode;
|
|
1058
1234
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1059
|
-
onChannelClick?: (
|
|
1060
|
-
onKeywordClick?: (
|
|
1235
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1236
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1061
1237
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1062
1238
|
hidePagination?: boolean;
|
|
1063
1239
|
pageSize?: number;
|
|
1064
1240
|
includeAllItems?: boolean;
|
|
1241
|
+
cardsGap?: number;
|
|
1242
|
+
contentGap?: number;
|
|
1243
|
+
bannerSize?: number;
|
|
1244
|
+
showDateOnBottom?: boolean;
|
|
1245
|
+
showDateAsRelative?: boolean;
|
|
1065
1246
|
className?: string;
|
|
1066
1247
|
}
|
|
1067
1248
|
declare const NewsList: FC<NewsListProps>;
|
|
1068
1249
|
|
|
1069
1250
|
interface ManageChannelsProps {
|
|
1251
|
+
hideSearch?: boolean;
|
|
1070
1252
|
className?: string;
|
|
1071
1253
|
}
|
|
1072
1254
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1074,6 +1256,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1074
1256
|
interface ChannelSelectorWrapperProps {
|
|
1075
1257
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1076
1258
|
showLogicalOperatorOptions?: boolean;
|
|
1259
|
+
/**
|
|
1260
|
+
* For better performance set channel IDs instead of names.
|
|
1261
|
+
*/
|
|
1077
1262
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1078
1263
|
className?: string;
|
|
1079
1264
|
}
|
|
@@ -1090,10 +1275,11 @@ interface NewsGridProps {
|
|
|
1090
1275
|
maxColumnCount?: number;
|
|
1091
1276
|
rowCount?: number;
|
|
1092
1277
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1093
|
-
onChannelClick?: (
|
|
1094
|
-
onKeywordClick?: (
|
|
1278
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1279
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1095
1280
|
includeAllItems?: boolean;
|
|
1096
1281
|
className?: string;
|
|
1282
|
+
hideIntro?: boolean;
|
|
1097
1283
|
}
|
|
1098
1284
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1099
1285
|
|
|
@@ -1109,7 +1295,7 @@ interface EventGridProps {
|
|
|
1109
1295
|
maxColumnCount?: number;
|
|
1110
1296
|
rowCount?: number;
|
|
1111
1297
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1112
|
-
onChannelClick?: (
|
|
1298
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1113
1299
|
className?: string;
|
|
1114
1300
|
}
|
|
1115
1301
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1120,7 +1306,7 @@ interface EventsListProps {
|
|
|
1120
1306
|
searchText?: string;
|
|
1121
1307
|
itemLayoutMode?: ItemLayoutMode;
|
|
1122
1308
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1123
|
-
onChannelClick?: (
|
|
1309
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1124
1310
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1125
1311
|
hidePagination?: boolean;
|
|
1126
1312
|
pageSize?: number;
|
|
@@ -1128,8 +1314,20 @@ interface EventsListProps {
|
|
|
1128
1314
|
}
|
|
1129
1315
|
declare const EventsList: FC<EventsListProps>;
|
|
1130
1316
|
|
|
1317
|
+
declare enum HeroPagingType {
|
|
1318
|
+
page = "page",
|
|
1319
|
+
item = "item"
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1131
1322
|
interface NewsHeroFilterProps {
|
|
1323
|
+
/**
|
|
1324
|
+
* Limit results to those associated with the given channels.
|
|
1325
|
+
* For better performance set channel IDs instead of names.
|
|
1326
|
+
*/
|
|
1132
1327
|
channels?: string | FilterWithLogicalOperator;
|
|
1328
|
+
/**
|
|
1329
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1330
|
+
*/
|
|
1133
1331
|
keywords?: string | FilterWithLogicalOperator;
|
|
1134
1332
|
pageSize?: number;
|
|
1135
1333
|
}
|
|
@@ -1141,9 +1339,11 @@ interface NewsHeroProps {
|
|
|
1141
1339
|
width?: number | string;
|
|
1142
1340
|
height?: number | string;
|
|
1143
1341
|
includeAllItems?: boolean;
|
|
1144
|
-
onChannelClick?: (
|
|
1145
|
-
onKeywordClick?: (
|
|
1342
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1343
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1146
1344
|
showKeywords?: boolean;
|
|
1345
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1346
|
+
pagingType?: HeroPagingType;
|
|
1147
1347
|
}
|
|
1148
1348
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1149
1349
|
|
|
@@ -1171,27 +1371,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1171
1371
|
itemId: string;
|
|
1172
1372
|
}>;
|
|
1173
1373
|
|
|
1174
|
-
declare const
|
|
1374
|
+
declare const PageItemContextProvider: FC<{
|
|
1375
|
+
itemId: string;
|
|
1376
|
+
}>;
|
|
1377
|
+
|
|
1378
|
+
declare const EventItemContextProvider: FC<{
|
|
1379
|
+
itemId: string;
|
|
1380
|
+
}>;
|
|
1381
|
+
|
|
1382
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1175
1383
|
showEditLanguagePreferences?: boolean;
|
|
1176
1384
|
onEditLanguagePreferences?: () => unknown;
|
|
1177
1385
|
}>;
|
|
1178
1386
|
|
|
1387
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1388
|
+
onClick?: (itemId: string) => unknown;
|
|
1389
|
+
}>;
|
|
1179
1390
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1180
1391
|
onClick?: (itemId: string) => unknown;
|
|
1181
1392
|
}>;
|
|
1182
1393
|
|
|
1183
|
-
interface
|
|
1394
|
+
interface SharedItemDetailPreviewProps {
|
|
1184
1395
|
itemId?: string;
|
|
1185
1396
|
versionId?: string;
|
|
1186
1397
|
className?: string;
|
|
1398
|
+
hideLikes?: boolean;
|
|
1399
|
+
hideComments?: boolean;
|
|
1187
1400
|
}
|
|
1188
|
-
declare const NewsDetailPreview: FC<
|
|
1401
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1402
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1403
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1189
1404
|
|
|
1190
1405
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1191
1406
|
itemId: string;
|
|
1192
1407
|
versionId?: string;
|
|
1193
1408
|
}>;
|
|
1194
1409
|
|
|
1410
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1411
|
+
itemId: string;
|
|
1412
|
+
versionId?: string;
|
|
1413
|
+
}>;
|
|
1414
|
+
|
|
1415
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1416
|
+
itemId: string;
|
|
1417
|
+
versionId?: string;
|
|
1418
|
+
}>;
|
|
1419
|
+
|
|
1195
1420
|
interface FilterProps {
|
|
1196
1421
|
filter: IndexableFilterDefinition;
|
|
1197
1422
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1200,6 +1425,9 @@ interface FilterProps {
|
|
|
1200
1425
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1201
1426
|
|
|
1202
1427
|
interface ChannelFilterProps {
|
|
1428
|
+
/**
|
|
1429
|
+
* For better performance set channel IDs instead of names.
|
|
1430
|
+
*/
|
|
1203
1431
|
channels?: string[];
|
|
1204
1432
|
className?: string;
|
|
1205
1433
|
}
|
|
@@ -1348,7 +1576,8 @@ interface PagesGridProps {
|
|
|
1348
1576
|
maxColumnCount?: number;
|
|
1349
1577
|
rowCount?: number;
|
|
1350
1578
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1351
|
-
onKeywordClick?: (
|
|
1579
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1580
|
+
hideIntro?: boolean;
|
|
1352
1581
|
className?: string;
|
|
1353
1582
|
}
|
|
1354
1583
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1358,7 +1587,7 @@ interface PagesListProps {
|
|
|
1358
1587
|
searchText?: string;
|
|
1359
1588
|
itemLayoutMode?: ItemLayoutMode;
|
|
1360
1589
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1361
|
-
onKeywordClick?: (
|
|
1590
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1362
1591
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1363
1592
|
hidePagination?: boolean;
|
|
1364
1593
|
pageSize?: number;
|
|
@@ -1396,6 +1625,7 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1396
1625
|
interface PageEditorContextProviderProps {
|
|
1397
1626
|
itemId?: string;
|
|
1398
1627
|
groupId?: string;
|
|
1628
|
+
parentId?: string;
|
|
1399
1629
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1400
1630
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1401
1631
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
@@ -1403,7 +1633,7 @@ interface PageEditorContextProviderProps {
|
|
|
1403
1633
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1404
1634
|
|
|
1405
1635
|
interface PageEditorProps {
|
|
1406
|
-
|
|
1636
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1407
1637
|
className?: string;
|
|
1408
1638
|
}
|
|
1409
1639
|
declare const PageEditor: FC<PageEditorProps>;
|
|
@@ -1415,4 +1645,14 @@ interface PageEditorPanelProps {
|
|
|
1415
1645
|
}
|
|
1416
1646
|
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1417
1647
|
|
|
1418
|
-
|
|
1648
|
+
interface ErrorWrapperProps {
|
|
1649
|
+
errorType: ErrorType;
|
|
1650
|
+
isList?: boolean;
|
|
1651
|
+
}
|
|
1652
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1653
|
+
|
|
1654
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1655
|
+
onClick?: () => unknown;
|
|
1656
|
+
}>;
|
|
1657
|
+
|
|
1658
|
+
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 };
|