@livetiles/reach-components-react 0.5.0-preview.114 → 0.5.0-preview.1141
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 +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 +409 -166
- package/index.esm.js +1 -1
- package/index.esm2.js +37 -23
- 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 -27
- 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,18 +661,11 @@ 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,
|
|
668
|
-
Declined = 2
|
|
667
|
+
Declined = 2,
|
|
668
|
+
WaitingList = 3
|
|
669
669
|
}
|
|
670
670
|
interface EventItem extends SchedulableItem {
|
|
671
671
|
startDate?: string;
|
|
@@ -682,8 +682,10 @@ interface EventItem extends SchedulableItem {
|
|
|
682
682
|
recurrenceSeriesId?: string;
|
|
683
683
|
isSeriesMaster?: string;
|
|
684
684
|
isVirtual?: boolean;
|
|
685
|
+
isAllDayEvent?: boolean;
|
|
685
686
|
}
|
|
686
687
|
interface EventRegistrationSettings {
|
|
688
|
+
enableWaitingList?: boolean;
|
|
687
689
|
enabled?: boolean;
|
|
688
690
|
showParticipantsToEverybody?: boolean;
|
|
689
691
|
deadline?: string;
|
|
@@ -771,6 +773,7 @@ interface PageItem extends PublishableItem {
|
|
|
771
773
|
isUnlinked?: boolean;
|
|
772
774
|
pageType?: PageType;
|
|
773
775
|
firstChildId?: string;
|
|
776
|
+
isGroupInheritanceBroken?: boolean;
|
|
774
777
|
}
|
|
775
778
|
interface ContentsSummary {
|
|
776
779
|
[lang: string]: TitleContent & {
|
|
@@ -792,6 +795,7 @@ interface PageNavigationNode {
|
|
|
792
795
|
hasAnyPageChild?: boolean;
|
|
793
796
|
pageType?: PageType;
|
|
794
797
|
useExternalContent?: boolean;
|
|
798
|
+
isGroupInheritanceBroken?: boolean;
|
|
795
799
|
isSearchMatch?: boolean;
|
|
796
800
|
topLevelFolderName?: string;
|
|
797
801
|
uploadToken?: string;
|
|
@@ -806,6 +810,64 @@ declare enum PageType {
|
|
|
806
810
|
Document = 1
|
|
807
811
|
}
|
|
808
812
|
|
|
813
|
+
declare type KeywordsByGroupId = {
|
|
814
|
+
[key: string]: Keyword[];
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
interface SubscriptionData {
|
|
818
|
+
channels?: Channel[];
|
|
819
|
+
allKeywords?: Keyword[];
|
|
820
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
821
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
822
|
+
}
|
|
823
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
824
|
+
getChannels: () => Promise<Channel[]>;
|
|
825
|
+
refreshSubscription: () => void;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
829
|
+
|
|
830
|
+
interface NewsDetailProps {
|
|
831
|
+
itemId?: string;
|
|
832
|
+
hideComments?: boolean;
|
|
833
|
+
hideLikes?: boolean;
|
|
834
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
835
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
836
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
837
|
+
className?: string;
|
|
838
|
+
}
|
|
839
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
840
|
+
|
|
841
|
+
interface PageDetailProps {
|
|
842
|
+
itemId?: string;
|
|
843
|
+
hideComments?: boolean;
|
|
844
|
+
hideLikes?: boolean;
|
|
845
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
846
|
+
homeBreadcrumbTargetUrl?: string;
|
|
847
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
848
|
+
className?: string;
|
|
849
|
+
}
|
|
850
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
851
|
+
|
|
852
|
+
interface EventDetailProps {
|
|
853
|
+
itemId?: string;
|
|
854
|
+
hideComments?: boolean;
|
|
855
|
+
hideLikes?: boolean;
|
|
856
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
857
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
858
|
+
className?: string;
|
|
859
|
+
}
|
|
860
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
861
|
+
|
|
862
|
+
interface PostDetailProps {
|
|
863
|
+
postId: string;
|
|
864
|
+
threadId?: string;
|
|
865
|
+
onAfterDelete?: (id: string) => unknown;
|
|
866
|
+
commentCount?: number;
|
|
867
|
+
onItemClick?: (postId: string) => unknown;
|
|
868
|
+
}
|
|
869
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
870
|
+
|
|
809
871
|
declare const Dialog: FC<IDialogProps>;
|
|
810
872
|
|
|
811
873
|
interface ToolbarProps {
|
|
@@ -823,15 +885,21 @@ interface ToolbarSearchProps {
|
|
|
823
885
|
}
|
|
824
886
|
declare const Toolbar: FC<ToolbarProps>;
|
|
825
887
|
|
|
888
|
+
declare type TokenType = string | number;
|
|
889
|
+
|
|
890
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
891
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
892
|
+
}
|
|
893
|
+
|
|
826
894
|
interface ToolbarChannelSelectorProps {
|
|
827
|
-
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
828
895
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
896
|
+
bookmarkOption?: ToolbarChannelSelectorOption;
|
|
829
897
|
channelsOptions?: {
|
|
830
898
|
availableChannels?: string[];
|
|
831
899
|
onSelected?: (channel: Channel) => unknown;
|
|
832
900
|
to?: (channel: Channel) => unknown;
|
|
833
901
|
};
|
|
834
|
-
|
|
902
|
+
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
835
903
|
manageChannelsOption?: ToolbarChannelSelectorOption;
|
|
836
904
|
}
|
|
837
905
|
interface ToolbarChannelSelectorOption {
|
|
@@ -868,6 +936,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
868
936
|
onClick: () => unknown;
|
|
869
937
|
}>;
|
|
870
938
|
|
|
939
|
+
declare const ToolbarManageButton: FC<{
|
|
940
|
+
onClick?: () => unknown;
|
|
941
|
+
to?: {
|
|
942
|
+
url: string;
|
|
943
|
+
target?: string;
|
|
944
|
+
};
|
|
945
|
+
disabled?: boolean;
|
|
946
|
+
}>;
|
|
947
|
+
|
|
871
948
|
interface ToolbarCloseButtonProps {
|
|
872
949
|
onClick?: () => unknown;
|
|
873
950
|
to?: {
|
|
@@ -896,8 +973,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
896
973
|
interface Props extends IPersonaProps {
|
|
897
974
|
upn: string;
|
|
898
975
|
tenantId?: string;
|
|
899
|
-
className?: string;
|
|
900
976
|
displayName?: string;
|
|
977
|
+
forceShowSecondaryText?: boolean;
|
|
978
|
+
className?: string;
|
|
901
979
|
}
|
|
902
980
|
declare const Avatar: FC<Props>;
|
|
903
981
|
|
|
@@ -908,6 +986,13 @@ interface UserDetailsProps {
|
|
|
908
986
|
}
|
|
909
987
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
910
988
|
|
|
989
|
+
declare enum ErrorType {
|
|
990
|
+
GenericError = "genericError",
|
|
991
|
+
Error404 = "error404",
|
|
992
|
+
Error403 = "error403",
|
|
993
|
+
LoginError = "loginError"
|
|
994
|
+
}
|
|
995
|
+
|
|
911
996
|
interface PageViewTrackerSettings {
|
|
912
997
|
disabled?: boolean;
|
|
913
998
|
}
|
|
@@ -954,6 +1039,32 @@ declare enum LogicalOperator {
|
|
|
954
1039
|
And = "AND"
|
|
955
1040
|
}
|
|
956
1041
|
|
|
1042
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1043
|
+
id: string;
|
|
1044
|
+
comments?: PaginatedList<Comment>;
|
|
1045
|
+
groupId: string;
|
|
1046
|
+
content: string;
|
|
1047
|
+
permalink?: string;
|
|
1048
|
+
author: Account;
|
|
1049
|
+
publishingDate: string;
|
|
1050
|
+
modified?: string;
|
|
1051
|
+
statistics: ItemStatistics;
|
|
1052
|
+
keywords?: {
|
|
1053
|
+
[key: string]: Keyword[];
|
|
1054
|
+
};
|
|
1055
|
+
contentLanguageCode?: string;
|
|
1056
|
+
isLiked?: boolean;
|
|
1057
|
+
isUnread?: boolean;
|
|
1058
|
+
isDemoContent?: boolean;
|
|
1059
|
+
isFollowing?: boolean;
|
|
1060
|
+
}
|
|
1061
|
+
interface PostFilterDefinition {
|
|
1062
|
+
token?: string;
|
|
1063
|
+
pageSize?: string;
|
|
1064
|
+
search?: string;
|
|
1065
|
+
keywords?: FilterWithLogicalOperator;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
957
1068
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
958
1069
|
author?: string;
|
|
959
1070
|
}
|
|
@@ -962,6 +1073,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
962
1073
|
channels?: FilterWithLogicalOperator;
|
|
963
1074
|
}
|
|
964
1075
|
|
|
1076
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1077
|
+
contacts?: string[];
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1081
|
+
startsAfter?: string;
|
|
1082
|
+
startsBefore?: string;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1086
|
+
excludePastEvents?: boolean;
|
|
1087
|
+
pastEventsOnly?: boolean;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
965
1090
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
966
1091
|
state?: WorkflowStatus;
|
|
967
1092
|
}
|
|
@@ -973,29 +1098,94 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
973
1098
|
includeExpired?: boolean;
|
|
974
1099
|
}
|
|
975
1100
|
|
|
1101
|
+
declare enum StreamEventResponse {
|
|
1102
|
+
NotSet = "NOT_SET",
|
|
1103
|
+
Registered = "REGISTERED",
|
|
1104
|
+
WaitingList = "WAITING_LIST",
|
|
1105
|
+
Declined = "DECLINED"
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
declare enum StreamItemTypes {
|
|
1109
|
+
Post = "POST",
|
|
1110
|
+
News = "NEWS",
|
|
1111
|
+
Event = "EVENT",
|
|
1112
|
+
Page = "PAGE"
|
|
1113
|
+
}
|
|
1114
|
+
declare enum StreamConversationScope {
|
|
1115
|
+
Public = "PUBLIC",
|
|
1116
|
+
Editor = "EDITOR",
|
|
1117
|
+
Posts = "POSTS"
|
|
1118
|
+
}
|
|
1119
|
+
interface PostStreamItem extends Post {
|
|
1120
|
+
type: StreamItemTypes.Post;
|
|
1121
|
+
isUnread: boolean;
|
|
1122
|
+
keywordsList?: Keyword[];
|
|
1123
|
+
groupIds?: string[];
|
|
1124
|
+
postAttachments?: StreamAttachment[];
|
|
1125
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1126
|
+
hasMoreUnreadComments: boolean;
|
|
1127
|
+
}
|
|
1128
|
+
interface StreamPostComment extends Comment {
|
|
1129
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1130
|
+
streamConversationScope?: StreamConversationScope;
|
|
1131
|
+
}
|
|
1132
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1133
|
+
type: GraphQLAttachmentType;
|
|
1134
|
+
}
|
|
1135
|
+
interface NewsStreamItem extends NewsItem {
|
|
1136
|
+
type: StreamItemTypes.News;
|
|
1137
|
+
contentsList: StreamPublishableItemContents[];
|
|
1138
|
+
channelsList: Channel[];
|
|
1139
|
+
isUnread: boolean;
|
|
1140
|
+
keywordsList?: Keyword[];
|
|
1141
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1142
|
+
}
|
|
1143
|
+
declare enum StreamKnownNewsState {
|
|
1144
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1145
|
+
Alert = "ALERT"
|
|
1146
|
+
}
|
|
1147
|
+
interface EventStreamItem extends EventItem {
|
|
1148
|
+
type: StreamItemTypes.Event;
|
|
1149
|
+
contentsList: StreamPublishableItemContents[];
|
|
1150
|
+
channelsList: Channel[];
|
|
1151
|
+
isUnread: boolean;
|
|
1152
|
+
keywordsList?: Keyword[];
|
|
1153
|
+
userResponseType?: StreamEventResponse;
|
|
1154
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1155
|
+
}
|
|
1156
|
+
interface PageStreamItem extends PageItem {
|
|
1157
|
+
type: StreamItemTypes.Page;
|
|
1158
|
+
contentsList: StreamPublishableItemContents[];
|
|
1159
|
+
channelsList: Channel[];
|
|
1160
|
+
isUnread: boolean;
|
|
1161
|
+
keywordsList?: Keyword[];
|
|
1162
|
+
streamPageType?: string;
|
|
1163
|
+
path?: (PageNavigationNode & {
|
|
1164
|
+
parentId?: string;
|
|
1165
|
+
contentsList: StreamPublishableItemContents[];
|
|
1166
|
+
})[];
|
|
1167
|
+
}
|
|
1168
|
+
interface StreamPublishableItemContents {
|
|
1169
|
+
language: string;
|
|
1170
|
+
title: string;
|
|
1171
|
+
intro?: string;
|
|
1172
|
+
headline?: string;
|
|
1173
|
+
}
|
|
1174
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1175
|
+
cancellationReasons?: {
|
|
1176
|
+
[key: string]: string;
|
|
1177
|
+
}[];
|
|
1178
|
+
}
|
|
1179
|
+
|
|
976
1180
|
interface TargetLinkOverrideContextProps {
|
|
977
1181
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
978
1182
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
979
1183
|
}
|
|
980
1184
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
981
1185
|
|
|
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
1186
|
interface KeywordPickerProps {
|
|
997
1187
|
value?: Keyword[] | string[];
|
|
998
|
-
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
1188
|
+
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator, checkAll?: boolean) => void;
|
|
999
1189
|
showSelectionToggle?: boolean;
|
|
1000
1190
|
availableKeywords?: Keyword[];
|
|
1001
1191
|
mandatoryKeywordIds?: string[];
|
|
@@ -1013,37 +1203,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1013
1203
|
pageType?: PageType;
|
|
1014
1204
|
}
|
|
1015
1205
|
|
|
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
|
-
}
|
|
1206
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1207
|
+
|
|
1208
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1041
1209
|
|
|
1042
1210
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1043
1211
|
}
|
|
1044
1212
|
|
|
1213
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1214
|
+
|
|
1215
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1216
|
+
|
|
1045
1217
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1218
|
+
/**
|
|
1219
|
+
* Limit results to those associated with the given channels.
|
|
1220
|
+
* For better performance set channel IDs instead of names.
|
|
1221
|
+
*/
|
|
1046
1222
|
channels?: string | FilterWithLogicalOperator;
|
|
1223
|
+
/**
|
|
1224
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1225
|
+
*/
|
|
1047
1226
|
keywords?: string | FilterWithLogicalOperator;
|
|
1048
1227
|
}
|
|
1049
1228
|
|
|
@@ -1056,17 +1235,23 @@ interface NewsListProps {
|
|
|
1056
1235
|
searchText?: string;
|
|
1057
1236
|
itemLayoutMode?: ItemLayoutMode;
|
|
1058
1237
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1059
|
-
onChannelClick?: (
|
|
1060
|
-
onKeywordClick?: (
|
|
1238
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1239
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1061
1240
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1062
1241
|
hidePagination?: boolean;
|
|
1063
1242
|
pageSize?: number;
|
|
1064
1243
|
includeAllItems?: boolean;
|
|
1244
|
+
cardsGap?: number;
|
|
1245
|
+
contentGap?: number;
|
|
1246
|
+
bannerSize?: number;
|
|
1247
|
+
showDateOnBottom?: boolean;
|
|
1248
|
+
showDateAsRelative?: boolean;
|
|
1065
1249
|
className?: string;
|
|
1066
1250
|
}
|
|
1067
1251
|
declare const NewsList: FC<NewsListProps>;
|
|
1068
1252
|
|
|
1069
1253
|
interface ManageChannelsProps {
|
|
1254
|
+
hideSearch?: boolean;
|
|
1070
1255
|
className?: string;
|
|
1071
1256
|
}
|
|
1072
1257
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1074,6 +1259,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1074
1259
|
interface ChannelSelectorWrapperProps {
|
|
1075
1260
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1076
1261
|
showLogicalOperatorOptions?: boolean;
|
|
1262
|
+
/**
|
|
1263
|
+
* For better performance set channel IDs instead of names.
|
|
1264
|
+
*/
|
|
1077
1265
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1078
1266
|
className?: string;
|
|
1079
1267
|
}
|
|
@@ -1090,10 +1278,11 @@ interface NewsGridProps {
|
|
|
1090
1278
|
maxColumnCount?: number;
|
|
1091
1279
|
rowCount?: number;
|
|
1092
1280
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1093
|
-
onChannelClick?: (
|
|
1094
|
-
onKeywordClick?: (
|
|
1281
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1282
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1095
1283
|
includeAllItems?: boolean;
|
|
1096
1284
|
className?: string;
|
|
1285
|
+
hideIntro?: boolean;
|
|
1097
1286
|
}
|
|
1098
1287
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1099
1288
|
|
|
@@ -1109,7 +1298,7 @@ interface EventGridProps {
|
|
|
1109
1298
|
maxColumnCount?: number;
|
|
1110
1299
|
rowCount?: number;
|
|
1111
1300
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1112
|
-
onChannelClick?: (
|
|
1301
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1113
1302
|
className?: string;
|
|
1114
1303
|
}
|
|
1115
1304
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1120,7 +1309,7 @@ interface EventsListProps {
|
|
|
1120
1309
|
searchText?: string;
|
|
1121
1310
|
itemLayoutMode?: ItemLayoutMode;
|
|
1122
1311
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1123
|
-
onChannelClick?: (
|
|
1312
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1124
1313
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1125
1314
|
hidePagination?: boolean;
|
|
1126
1315
|
pageSize?: number;
|
|
@@ -1128,8 +1317,20 @@ interface EventsListProps {
|
|
|
1128
1317
|
}
|
|
1129
1318
|
declare const EventsList: FC<EventsListProps>;
|
|
1130
1319
|
|
|
1320
|
+
declare enum HeroPagingType {
|
|
1321
|
+
page = "page",
|
|
1322
|
+
item = "item"
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1131
1325
|
interface NewsHeroFilterProps {
|
|
1326
|
+
/**
|
|
1327
|
+
* Limit results to those associated with the given channels.
|
|
1328
|
+
* For better performance set channel IDs instead of names.
|
|
1329
|
+
*/
|
|
1132
1330
|
channels?: string | FilterWithLogicalOperator;
|
|
1331
|
+
/**
|
|
1332
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1333
|
+
*/
|
|
1133
1334
|
keywords?: string | FilterWithLogicalOperator;
|
|
1134
1335
|
pageSize?: number;
|
|
1135
1336
|
}
|
|
@@ -1141,9 +1342,11 @@ interface NewsHeroProps {
|
|
|
1141
1342
|
width?: number | string;
|
|
1142
1343
|
height?: number | string;
|
|
1143
1344
|
includeAllItems?: boolean;
|
|
1144
|
-
onChannelClick?: (
|
|
1145
|
-
onKeywordClick?: (
|
|
1345
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1346
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1146
1347
|
showKeywords?: boolean;
|
|
1348
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1349
|
+
pagingType?: HeroPagingType;
|
|
1147
1350
|
}
|
|
1148
1351
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1149
1352
|
|
|
@@ -1171,27 +1374,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1171
1374
|
itemId: string;
|
|
1172
1375
|
}>;
|
|
1173
1376
|
|
|
1174
|
-
declare const
|
|
1377
|
+
declare const PageItemContextProvider: FC<{
|
|
1378
|
+
itemId: string;
|
|
1379
|
+
}>;
|
|
1380
|
+
|
|
1381
|
+
declare const EventItemContextProvider: FC<{
|
|
1382
|
+
itemId: string;
|
|
1383
|
+
}>;
|
|
1384
|
+
|
|
1385
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1175
1386
|
showEditLanguagePreferences?: boolean;
|
|
1176
1387
|
onEditLanguagePreferences?: () => unknown;
|
|
1177
1388
|
}>;
|
|
1178
1389
|
|
|
1390
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1391
|
+
onClick?: (itemId: string) => unknown;
|
|
1392
|
+
}>;
|
|
1179
1393
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1180
1394
|
onClick?: (itemId: string) => unknown;
|
|
1181
1395
|
}>;
|
|
1182
1396
|
|
|
1183
|
-
interface
|
|
1397
|
+
interface SharedItemDetailPreviewProps {
|
|
1184
1398
|
itemId?: string;
|
|
1185
1399
|
versionId?: string;
|
|
1186
1400
|
className?: string;
|
|
1401
|
+
hideLikes?: boolean;
|
|
1402
|
+
hideComments?: boolean;
|
|
1187
1403
|
}
|
|
1188
|
-
declare const NewsDetailPreview: FC<
|
|
1404
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1405
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1406
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1189
1407
|
|
|
1190
1408
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1191
1409
|
itemId: string;
|
|
1192
1410
|
versionId?: string;
|
|
1193
1411
|
}>;
|
|
1194
1412
|
|
|
1413
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1414
|
+
itemId: string;
|
|
1415
|
+
versionId?: string;
|
|
1416
|
+
}>;
|
|
1417
|
+
|
|
1418
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1419
|
+
itemId: string;
|
|
1420
|
+
versionId?: string;
|
|
1421
|
+
}>;
|
|
1422
|
+
|
|
1195
1423
|
interface FilterProps {
|
|
1196
1424
|
filter: IndexableFilterDefinition;
|
|
1197
1425
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1200,6 +1428,9 @@ interface FilterProps {
|
|
|
1200
1428
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1201
1429
|
|
|
1202
1430
|
interface ChannelFilterProps {
|
|
1431
|
+
/**
|
|
1432
|
+
* For better performance set channel IDs instead of names.
|
|
1433
|
+
*/
|
|
1203
1434
|
channels?: string[];
|
|
1204
1435
|
className?: string;
|
|
1205
1436
|
}
|
|
@@ -1348,7 +1579,8 @@ interface PagesGridProps {
|
|
|
1348
1579
|
maxColumnCount?: number;
|
|
1349
1580
|
rowCount?: number;
|
|
1350
1581
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1351
|
-
onKeywordClick?: (
|
|
1582
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1583
|
+
hideIntro?: boolean;
|
|
1352
1584
|
className?: string;
|
|
1353
1585
|
}
|
|
1354
1586
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1358,7 +1590,7 @@ interface PagesListProps {
|
|
|
1358
1590
|
searchText?: string;
|
|
1359
1591
|
itemLayoutMode?: ItemLayoutMode;
|
|
1360
1592
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1361
|
-
onKeywordClick?: (
|
|
1593
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1362
1594
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1363
1595
|
hidePagination?: boolean;
|
|
1364
1596
|
pageSize?: number;
|
|
@@ -1396,6 +1628,7 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1396
1628
|
interface PageEditorContextProviderProps {
|
|
1397
1629
|
itemId?: string;
|
|
1398
1630
|
groupId?: string;
|
|
1631
|
+
parentId?: string;
|
|
1399
1632
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1400
1633
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1401
1634
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
@@ -1403,7 +1636,7 @@ interface PageEditorContextProviderProps {
|
|
|
1403
1636
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1404
1637
|
|
|
1405
1638
|
interface PageEditorProps {
|
|
1406
|
-
|
|
1639
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1407
1640
|
className?: string;
|
|
1408
1641
|
}
|
|
1409
1642
|
declare const PageEditor: FC<PageEditorProps>;
|
|
@@ -1415,4 +1648,14 @@ interface PageEditorPanelProps {
|
|
|
1415
1648
|
}
|
|
1416
1649
|
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1417
1650
|
|
|
1418
|
-
|
|
1651
|
+
interface ErrorWrapperProps {
|
|
1652
|
+
errorType: ErrorType;
|
|
1653
|
+
isList?: boolean;
|
|
1654
|
+
}
|
|
1655
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1656
|
+
|
|
1657
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1658
|
+
onClick?: () => unknown;
|
|
1659
|
+
}>;
|
|
1660
|
+
|
|
1661
|
+
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 };
|