@livetiles/reach-components-react 0.5.0-preview.90 → 0.5.0-preview.901
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnalyticsDummyContextProvider.d.ts +2 -0
- package/ChannelFilter.d.ts +3 -0
- package/ChannelSelectorWrapper.d.ts +3 -0
- package/EmojiPicker.esm.esm.js +1 -1
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +10 -1
- package/EventGridCard.d.ts +6 -4
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsGrid.d.ts +2 -2
- package/EventsList.d.ts +2 -2
- package/ManageChannels.d.ts +1 -0
- package/NewsDetail.d.ts +5 -0
- package/NewsDetailViewMetaInfo.d.ts +4 -1
- package/NewsGrid.d.ts +4 -3
- package/NewsGridCard.d.ts +8 -6
- package/NewsHero.d.ts +14 -4
- package/NewsList.d.ts +3 -3
- package/PageDetail.d.ts +10 -1
- package/PageGridCard.d.ts +3 -2
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +3 -2
- package/PagesGrid.d.ts +3 -2
- package/PagesList.d.ts +2 -2
- package/PublishableItemGrid.d.ts +4 -2
- package/PublishableItemList.d.ts +4 -3
- package/ReachContext.d.ts +15 -0
- package/SharedItemDetailPreview.d.ts +16 -0
- package/ToolbarBookmarkButton.d.ts +4 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/{ToolbarManageNewsItemButton.d.ts → ToolbarManageItemButton.d.ts} +3 -0
- package/ar-dz.async.esm.esm.js +1 -1
- package/ar-ma.async.esm.esm.js +1 -1
- package/ar-sa.async.esm.esm.js +1 -1
- package/ar-tn.async.esm.esm.js +1 -1
- package/ar.async.esm.esm.js +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-3044a81d.esm.js +1 -0
- package/bg.async.esm.esm.js +1 -1
- package/bn.async.esm.esm.js +1 -1
- package/ca.async.esm.esm.js +1 -1
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/filter/LibNewsFilterDefinition.d.ts +7 -0
- package/common/hero/Hero.d.ts +9 -11
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +18 -5
- package/common/hooks/useBannerOnResize.d.ts +5 -0
- package/common/utils.d.ts +1 -3
- package/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/EventEditorContextProvider.d.ts +9 -1
- package/editor/PageEditor.d.ts +6 -0
- package/editor/PageEditorContextProvider.d.ts +1 -0
- package/editor/PageEditorPanel.d.ts +5 -0
- package/editor/PageEditorToolbarStateActions.d.ts +2 -0
- package/el.async.esm.esm.js +1 -1
- package/en-au.async.esm.esm.js +1 -1
- package/en-ca.async.esm.esm.js +1 -1
- package/en-gb.async.esm.esm.js +1 -1
- package/en-ie.async.esm.esm.js +1 -1
- package/en-nz.async.esm.esm.js +1 -1
- package/en-us.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/et.async.esm.esm.js +1 -1
- package/fa-ir.async.esm.esm.js +1 -1
- package/fi.async.esm.esm.js +1 -1
- package/fr-ca.async.esm.esm.js +1 -1
- package/fr-ch.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/gu.async.esm.esm.js +1 -1
- package/he.async.esm.esm.js +1 -1
- package/hi.async.esm.esm.js +1 -1
- package/hr.async.esm.esm.js +1 -1
- package/hu.async.esm.esm.js +1 -1
- package/id.async.esm.esm.js +1 -1
- package/index-28074e12.esm.js +1 -0
- package/index-5e113ba7.esm.js +790 -0
- package/index-6542329b.esm.js +1 -0
- package/index-788b2f42.esm.js +1 -0
- package/index-904b1d06.esm.js +1 -0
- package/index-b417cb34.esm.js +1 -0
- package/index.d.ts +404 -161
- package/index.esm.js +1 -1
- package/index.esm2.js +46 -16
- 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 +839 -20
- package/is-plan-event-enabled-d9660f36.esm.js +1 -0
- package/it-ch.async.esm.esm.js +1 -1
- package/it.async.esm.esm.js +1 -1
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/kn.async.esm.esm.js +1 -1
- package/ko.async.esm.esm.js +1 -1
- package/lt.async.esm.esm.js +1 -1
- package/lv.async.esm.esm.js +1 -1
- package/mllike.esm.js +1 -0
- package/ms.async.esm.esm.js +1 -1
- package/nb.async.esm.esm.js +1 -1
- package/nl-be.async.esm.esm.js +1 -1
- package/nl.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/pl.async.esm.esm.js +1 -1
- package/pt-br.async.esm.esm.js +1 -1
- package/pt.async.esm.esm.js +1 -1
- package/python.esm.js +1 -0
- package/ro.async.esm.esm.js +1 -1
- package/rpm.esm.js +1 -0
- package/ru.async.esm.esm.js +1 -1
- package/sk.async.esm.esm.js +1 -1
- package/skeletons/CompactListShimmer.d.ts +5 -0
- package/skeletons/EventGridShimmerItem.d.ts +2 -0
- package/skeletons/EventShimmerListItem.d.ts +2 -0
- package/skeletons/ListShimmer.d.ts +6 -0
- package/skeletons/NewsGridShimmerItem.d.ts +4 -0
- package/skeletons/NewsHeroShimmer.d.ts +6 -0
- package/skeletons/NewsShimmerListItem.d.ts +2 -0
- package/skeletons/PageGridShimmerItem.d.ts +4 -0
- package/skeletons/PageShimmerListItem.d.ts +2 -0
- package/skeletons/PublishableItemGridShimmer.d.ts +9 -0
- package/skeletons/utils.d.ts +1 -0
- package/sl.async.esm.esm.js +1 -1
- package/sql.esm.js +1 -0
- package/sr-latn.async.esm.esm.js +1 -1
- package/sr.async.esm.esm.js +1 -1
- package/sv.async.esm.esm.js +1 -1
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-hk.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
- package/ar-dz.async.esm2.esm.js +0 -1
- package/ar-kw.async.esm.esm.js +0 -1
- package/ar-ly.async.esm.esm.js +0 -1
- package/ar-ma.async.esm2.esm.js +0 -1
- package/ar-sa.async.esm2.esm.js +0 -1
- package/ar.esm.js +0 -1
- package/bg.async.esm2.esm.js +0 -1
- package/bn.async.esm2.esm.js +0 -1
- package/ca.async.esm2.esm.js +0 -1
- package/cs.async.esm2.esm.js +0 -1
- package/da.async.esm2.esm.js +0 -1
- package/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,
|
|
@@ -86,6 +30,48 @@ interface IdentityProviderSettings {
|
|
|
86
30
|
scope: string;
|
|
87
31
|
}
|
|
88
32
|
|
|
33
|
+
interface VideoSource$1 {
|
|
34
|
+
prefix: string;
|
|
35
|
+
name: string;
|
|
36
|
+
alwaysShowPlayer?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare type ReachContextProps = {
|
|
40
|
+
config?: {
|
|
41
|
+
apiEndpoint?: string;
|
|
42
|
+
webAppUrl?: string;
|
|
43
|
+
api3Endpoint?: string;
|
|
44
|
+
webSocketsEndpoint?: string;
|
|
45
|
+
additionalVideoSources?: VideoSource$1[];
|
|
46
|
+
};
|
|
47
|
+
onRequestToken?: () => Promise<string>;
|
|
48
|
+
subscriptionId: string;
|
|
49
|
+
language?: string;
|
|
50
|
+
disableUiFabricThemeOverwrite?: boolean;
|
|
51
|
+
locale?: string;
|
|
52
|
+
/**
|
|
53
|
+
* These properties can be used to define the behavior of the analytics module.
|
|
54
|
+
*
|
|
55
|
+
* With `disableAnalytics` you can completely disable all analytics tracking.
|
|
56
|
+
* The `appName` is optional but highly encouraged to be set,
|
|
57
|
+
* in order to know where the components are used in. The value must be a non-empty string,
|
|
58
|
+
* only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
|
|
59
|
+
*/
|
|
60
|
+
analyticsProps?: {
|
|
61
|
+
disableAnalytics?: boolean;
|
|
62
|
+
appName?: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
66
|
+
|
|
67
|
+
interface PaginatedList<TItem> {
|
|
68
|
+
items: TItem[];
|
|
69
|
+
paginationToken?: any;
|
|
70
|
+
nextItem?: TItem;
|
|
71
|
+
hasMoreUnreadComments?: boolean;
|
|
72
|
+
hasNextPage?: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
89
75
|
interface Resources {
|
|
90
76
|
[language: string]: Record<string, string>;
|
|
91
77
|
}
|
|
@@ -156,6 +142,8 @@ interface NotificationTypeSettings {
|
|
|
156
142
|
pluginNotifications: {
|
|
157
143
|
[key: string]: NotificationType;
|
|
158
144
|
};
|
|
145
|
+
newsEditor: NotificationType;
|
|
146
|
+
eventEditor: NotificationType;
|
|
159
147
|
}
|
|
160
148
|
interface CurrentUser extends Account {
|
|
161
149
|
isEmailVerificationPending?: boolean;
|
|
@@ -187,6 +175,7 @@ interface CurrentUser extends Account {
|
|
|
187
175
|
termsAndConditionsApprovedHash: string;
|
|
188
176
|
isPublicUser?: boolean;
|
|
189
177
|
hasUnreadChats?: boolean;
|
|
178
|
+
publicSubscriptionIds?: string[];
|
|
190
179
|
}
|
|
191
180
|
interface UserContact {
|
|
192
181
|
tokenUniqueId: string;
|
|
@@ -226,6 +215,39 @@ interface LanguageBase {
|
|
|
226
215
|
code: string;
|
|
227
216
|
}
|
|
228
217
|
|
|
218
|
+
interface KeywordGroup {
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
keywords: Keyword[];
|
|
222
|
+
translations: {
|
|
223
|
+
[key: string]: string;
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
interface Keyword {
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
groupId?: string;
|
|
230
|
+
translations: {
|
|
231
|
+
[key: string]: string;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface Channel {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
translations?: {
|
|
239
|
+
[key: string]: string;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare enum ItemResourceTypes {
|
|
244
|
+
News = "news",
|
|
245
|
+
Pages = "pages",
|
|
246
|
+
Posts = "posts",
|
|
247
|
+
Events = "events",
|
|
248
|
+
Comments = "comments"
|
|
249
|
+
}
|
|
250
|
+
|
|
229
251
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
230
252
|
domains?: string[];
|
|
231
253
|
tenantId: string;
|
|
@@ -284,6 +306,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
306
|
customDomain?: string;
|
|
285
307
|
allowSelfRegistration?: boolean;
|
|
286
308
|
brandFolderConfig?: BrandFolderConfig;
|
|
309
|
+
hideSubscriptionName?: boolean;
|
|
287
310
|
}
|
|
288
311
|
interface BrandFolderConfig {
|
|
289
312
|
sections?: string[];
|
|
@@ -319,7 +342,9 @@ declare enum ExtensionArea {
|
|
|
319
342
|
page = "Page",
|
|
320
343
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
321
344
|
eventDetailViewSection = "EventDetailViewSection",
|
|
322
|
-
itemEditor = "ItemEditor"
|
|
345
|
+
itemEditor = "ItemEditor",
|
|
346
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
347
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
323
348
|
}
|
|
324
349
|
declare type InlinePlugin = {
|
|
325
350
|
area: ExtensionArea.itemEditor;
|
|
@@ -383,23 +408,6 @@ declare enum FieldMode {
|
|
|
383
408
|
Hidden = 3
|
|
384
409
|
}
|
|
385
410
|
|
|
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
411
|
interface ItemStatistics {
|
|
404
412
|
commentCount?: number;
|
|
405
413
|
likeCount?: number;
|
|
@@ -434,7 +442,7 @@ declare enum KnownNewsState {
|
|
|
434
442
|
declare type VersionId = string;
|
|
435
443
|
interface SchedulableItem extends PublishableItem {
|
|
436
444
|
metadata?: NewsMetadata;
|
|
437
|
-
channels?:
|
|
445
|
+
channels?: Channel[];
|
|
438
446
|
}
|
|
439
447
|
interface NewsItem extends SchedulableItem {
|
|
440
448
|
source?: string;
|
|
@@ -443,19 +451,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
443
451
|
knownState: KnownNewsState;
|
|
444
452
|
hasNewComments?: boolean;
|
|
445
453
|
isLiked?: boolean;
|
|
446
|
-
shareToken?: ShareToken;
|
|
447
|
-
}
|
|
448
|
-
interface ShareToken {
|
|
449
|
-
published?: string;
|
|
450
|
-
preview?: string;
|
|
451
454
|
}
|
|
452
455
|
interface NewsItemAlertOptions {
|
|
453
456
|
duration?: string;
|
|
454
457
|
endDate?: Date;
|
|
455
458
|
expireAfter?: boolean;
|
|
456
|
-
}
|
|
457
|
-
interface SchedulableItemChannel {
|
|
458
|
-
name: string;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
declare enum VideoSource {
|
|
@@ -470,19 +470,6 @@ interface BaseItem {
|
|
|
470
470
|
id?: string;
|
|
471
471
|
statistics?: ItemStatistics;
|
|
472
472
|
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
473
|
}
|
|
487
474
|
interface Poll {
|
|
488
475
|
questions: PollQuestion[];
|
|
@@ -517,6 +504,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
517
504
|
headline?: string;
|
|
518
505
|
intro?: string;
|
|
519
506
|
body?: string;
|
|
507
|
+
bodyRaw?: string;
|
|
520
508
|
customProperties?: {
|
|
521
509
|
[key: string]: any;
|
|
522
510
|
};
|
|
@@ -606,7 +594,8 @@ declare enum AttachmentType {
|
|
|
606
594
|
Event = 5,
|
|
607
595
|
Page = 6,
|
|
608
596
|
Post = 7,
|
|
609
|
-
Giphy = 8
|
|
597
|
+
Giphy = 8,
|
|
598
|
+
MicrosoftStreamVideo = 9
|
|
610
599
|
}
|
|
611
600
|
interface BaseAttachment {
|
|
612
601
|
id: string;
|
|
@@ -622,6 +611,19 @@ interface Attachment extends BaseAttachment {
|
|
|
622
611
|
type: AttachmentType;
|
|
623
612
|
}
|
|
624
613
|
|
|
614
|
+
declare enum GraphQLAttachmentType {
|
|
615
|
+
Image = "IMAGE",
|
|
616
|
+
File = "FILE",
|
|
617
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
618
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
619
|
+
News = "NEWS",
|
|
620
|
+
Event = "EVENT",
|
|
621
|
+
Page = "PAGE",
|
|
622
|
+
Post = "POST",
|
|
623
|
+
Giphy = "GIPHY",
|
|
624
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
625
|
+
}
|
|
626
|
+
|
|
625
627
|
interface ItemWithAttachments {
|
|
626
628
|
attachments?: Attachment[];
|
|
627
629
|
fileAccessToken?: string;
|
|
@@ -654,14 +656,6 @@ declare enum ConversationScope {
|
|
|
654
656
|
Posts = 2
|
|
655
657
|
}
|
|
656
658
|
|
|
657
|
-
declare enum ItemResourceTypes {
|
|
658
|
-
News = "news",
|
|
659
|
-
Pages = "pages",
|
|
660
|
-
Posts = "posts",
|
|
661
|
-
Events = "events",
|
|
662
|
-
Comments = "comments"
|
|
663
|
-
}
|
|
664
|
-
|
|
665
659
|
declare enum EventResponse {
|
|
666
660
|
NotSet = 0,
|
|
667
661
|
Registered = 1,
|
|
@@ -682,6 +676,7 @@ interface EventItem extends SchedulableItem {
|
|
|
682
676
|
recurrenceSeriesId?: string;
|
|
683
677
|
isSeriesMaster?: string;
|
|
684
678
|
isVirtual?: boolean;
|
|
679
|
+
isAllDayEvent?: boolean;
|
|
685
680
|
}
|
|
686
681
|
interface EventRegistrationSettings {
|
|
687
682
|
enabled?: boolean;
|
|
@@ -771,6 +766,7 @@ interface PageItem extends PublishableItem {
|
|
|
771
766
|
isUnlinked?: boolean;
|
|
772
767
|
pageType?: PageType;
|
|
773
768
|
firstChildId?: string;
|
|
769
|
+
isGroupInheritanceBroken?: boolean;
|
|
774
770
|
}
|
|
775
771
|
interface ContentsSummary {
|
|
776
772
|
[lang: string]: TitleContent & {
|
|
@@ -792,6 +788,7 @@ interface PageNavigationNode {
|
|
|
792
788
|
hasAnyPageChild?: boolean;
|
|
793
789
|
pageType?: PageType;
|
|
794
790
|
useExternalContent?: boolean;
|
|
791
|
+
isGroupInheritanceBroken?: boolean;
|
|
795
792
|
isSearchMatch?: boolean;
|
|
796
793
|
topLevelFolderName?: string;
|
|
797
794
|
uploadToken?: string;
|
|
@@ -806,6 +803,64 @@ declare enum PageType {
|
|
|
806
803
|
Document = 1
|
|
807
804
|
}
|
|
808
805
|
|
|
806
|
+
declare type KeywordsByGroupId = {
|
|
807
|
+
[key: string]: Keyword[];
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
interface SubscriptionData {
|
|
811
|
+
channels?: Channel[];
|
|
812
|
+
allKeywords?: Keyword[];
|
|
813
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
814
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
815
|
+
}
|
|
816
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
817
|
+
getChannels: () => Promise<Channel[]>;
|
|
818
|
+
refreshSubscription: () => void;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
822
|
+
|
|
823
|
+
interface NewsDetailProps {
|
|
824
|
+
itemId?: string;
|
|
825
|
+
hideComments?: boolean;
|
|
826
|
+
hideLikes?: boolean;
|
|
827
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
828
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
829
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
830
|
+
className?: string;
|
|
831
|
+
}
|
|
832
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
833
|
+
|
|
834
|
+
interface PageDetailProps {
|
|
835
|
+
itemId?: string;
|
|
836
|
+
hideComments?: boolean;
|
|
837
|
+
hideLikes?: boolean;
|
|
838
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
839
|
+
homeBreadcrumbTargetUrl?: string;
|
|
840
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
841
|
+
className?: string;
|
|
842
|
+
}
|
|
843
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
844
|
+
|
|
845
|
+
interface EventDetailProps {
|
|
846
|
+
itemId?: string;
|
|
847
|
+
hideComments?: boolean;
|
|
848
|
+
hideLikes?: boolean;
|
|
849
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
850
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
851
|
+
className?: string;
|
|
852
|
+
}
|
|
853
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
854
|
+
|
|
855
|
+
interface PostDetailProps {
|
|
856
|
+
postId: string;
|
|
857
|
+
threadId?: string;
|
|
858
|
+
onAfterDelete?: (id: string) => unknown;
|
|
859
|
+
commentCount?: number;
|
|
860
|
+
onItemClick?: (postId: string) => unknown;
|
|
861
|
+
}
|
|
862
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
863
|
+
|
|
809
864
|
declare const Dialog: FC<IDialogProps>;
|
|
810
865
|
|
|
811
866
|
interface ToolbarProps {
|
|
@@ -823,6 +878,12 @@ interface ToolbarSearchProps {
|
|
|
823
878
|
}
|
|
824
879
|
declare const Toolbar: FC<ToolbarProps>;
|
|
825
880
|
|
|
881
|
+
declare type TokenType = string | number;
|
|
882
|
+
|
|
883
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
884
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
885
|
+
}
|
|
886
|
+
|
|
826
887
|
interface ToolbarChannelSelectorProps {
|
|
827
888
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
828
889
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -868,6 +929,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
868
929
|
onClick: () => unknown;
|
|
869
930
|
}>;
|
|
870
931
|
|
|
932
|
+
declare const ToolbarManageButton: FC<{
|
|
933
|
+
onClick?: () => unknown;
|
|
934
|
+
to?: {
|
|
935
|
+
url: string;
|
|
936
|
+
target?: string;
|
|
937
|
+
};
|
|
938
|
+
disabled?: boolean;
|
|
939
|
+
}>;
|
|
940
|
+
|
|
871
941
|
interface ToolbarCloseButtonProps {
|
|
872
942
|
onClick?: () => unknown;
|
|
873
943
|
to?: {
|
|
@@ -896,8 +966,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
896
966
|
interface Props extends IPersonaProps {
|
|
897
967
|
upn: string;
|
|
898
968
|
tenantId?: string;
|
|
899
|
-
className?: string;
|
|
900
969
|
displayName?: string;
|
|
970
|
+
forceShowSecondaryText?: boolean;
|
|
971
|
+
className?: string;
|
|
901
972
|
}
|
|
902
973
|
declare const Avatar: FC<Props>;
|
|
903
974
|
|
|
@@ -908,6 +979,13 @@ interface UserDetailsProps {
|
|
|
908
979
|
}
|
|
909
980
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
910
981
|
|
|
982
|
+
declare enum ErrorType {
|
|
983
|
+
GenericError = "genericError",
|
|
984
|
+
Error404 = "error404",
|
|
985
|
+
Error403 = "error403",
|
|
986
|
+
LoginError = "loginError"
|
|
987
|
+
}
|
|
988
|
+
|
|
911
989
|
interface PageViewTrackerSettings {
|
|
912
990
|
disabled?: boolean;
|
|
913
991
|
}
|
|
@@ -954,6 +1032,32 @@ declare enum LogicalOperator {
|
|
|
954
1032
|
And = "AND"
|
|
955
1033
|
}
|
|
956
1034
|
|
|
1035
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1036
|
+
id: string;
|
|
1037
|
+
comments?: PaginatedList<Comment>;
|
|
1038
|
+
groupId: string;
|
|
1039
|
+
content: string;
|
|
1040
|
+
permalink?: string;
|
|
1041
|
+
author: Account;
|
|
1042
|
+
publishingDate: string;
|
|
1043
|
+
modified?: string;
|
|
1044
|
+
statistics: ItemStatistics;
|
|
1045
|
+
keywords?: {
|
|
1046
|
+
[key: string]: Keyword[];
|
|
1047
|
+
};
|
|
1048
|
+
contentLanguageCode?: string;
|
|
1049
|
+
isLiked?: boolean;
|
|
1050
|
+
isUnread?: boolean;
|
|
1051
|
+
isDemoContent?: boolean;
|
|
1052
|
+
isFollowing?: boolean;
|
|
1053
|
+
}
|
|
1054
|
+
interface PostFilterDefinition {
|
|
1055
|
+
token?: string;
|
|
1056
|
+
pageSize?: string;
|
|
1057
|
+
search?: string;
|
|
1058
|
+
keywords?: FilterWithLogicalOperator;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
957
1061
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
958
1062
|
author?: string;
|
|
959
1063
|
}
|
|
@@ -962,6 +1066,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
962
1066
|
channels?: FilterWithLogicalOperator;
|
|
963
1067
|
}
|
|
964
1068
|
|
|
1069
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1070
|
+
contacts?: string[];
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1074
|
+
startsAfter?: string;
|
|
1075
|
+
startsBefore?: string;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1079
|
+
excludePastEvents?: boolean;
|
|
1080
|
+
pastEventsOnly?: boolean;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
965
1083
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
966
1084
|
state?: WorkflowStatus;
|
|
967
1085
|
}
|
|
@@ -973,26 +1091,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
973
1091
|
includeExpired?: boolean;
|
|
974
1092
|
}
|
|
975
1093
|
|
|
1094
|
+
declare enum StreamEventResponse {
|
|
1095
|
+
NotSet = "NOTSET",
|
|
1096
|
+
Registered = "REGISTERED",
|
|
1097
|
+
Declined = "DECLINED"
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
declare enum StreamItemTypes {
|
|
1101
|
+
Post = "POST",
|
|
1102
|
+
News = "NEWS",
|
|
1103
|
+
Event = "EVENT",
|
|
1104
|
+
Page = "PAGE"
|
|
1105
|
+
}
|
|
1106
|
+
declare enum StreamConversationScope {
|
|
1107
|
+
Public = "PUBLIC",
|
|
1108
|
+
Editor = "EDITOR",
|
|
1109
|
+
Posts = "POSTS"
|
|
1110
|
+
}
|
|
1111
|
+
interface PostStreamItem extends Post {
|
|
1112
|
+
type: StreamItemTypes.Post;
|
|
1113
|
+
isUnread: boolean;
|
|
1114
|
+
keywordsList?: Keyword[];
|
|
1115
|
+
groupIds?: string[];
|
|
1116
|
+
postAttachments?: StreamAttachment[];
|
|
1117
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1118
|
+
hasMoreUnreadComments: boolean;
|
|
1119
|
+
}
|
|
1120
|
+
interface StreamPostComment extends Comment {
|
|
1121
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1122
|
+
streamConversationScope?: StreamConversationScope;
|
|
1123
|
+
}
|
|
1124
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1125
|
+
type: GraphQLAttachmentType;
|
|
1126
|
+
}
|
|
1127
|
+
interface NewsStreamItem extends NewsItem {
|
|
1128
|
+
type: StreamItemTypes.News;
|
|
1129
|
+
contentsList: StreamPublishableItemContents[];
|
|
1130
|
+
channelsList: Channel[];
|
|
1131
|
+
isUnread: boolean;
|
|
1132
|
+
keywordsList?: Keyword[];
|
|
1133
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1134
|
+
}
|
|
1135
|
+
declare enum StreamKnownNewsState {
|
|
1136
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1137
|
+
Alert = "ALERT"
|
|
1138
|
+
}
|
|
1139
|
+
interface EventStreamItem extends EventItem {
|
|
1140
|
+
type: StreamItemTypes.Event;
|
|
1141
|
+
contentsList: StreamPublishableItemContents[];
|
|
1142
|
+
channelsList: Channel[];
|
|
1143
|
+
isUnread: boolean;
|
|
1144
|
+
keywordsList?: Keyword[];
|
|
1145
|
+
userResponseType?: StreamEventResponse;
|
|
1146
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1147
|
+
}
|
|
1148
|
+
interface PageStreamItem extends PageItem {
|
|
1149
|
+
type: StreamItemTypes.Page;
|
|
1150
|
+
contentsList: StreamPublishableItemContents[];
|
|
1151
|
+
channelsList: Channel[];
|
|
1152
|
+
isUnread: boolean;
|
|
1153
|
+
keywordsList?: Keyword[];
|
|
1154
|
+
streamPageType?: string;
|
|
1155
|
+
path?: (PageNavigationNode & {
|
|
1156
|
+
parentId?: string;
|
|
1157
|
+
contentsList: StreamPublishableItemContents[];
|
|
1158
|
+
})[];
|
|
1159
|
+
}
|
|
1160
|
+
interface StreamPublishableItemContents {
|
|
1161
|
+
language: string;
|
|
1162
|
+
title: string;
|
|
1163
|
+
intro?: string;
|
|
1164
|
+
headline?: string;
|
|
1165
|
+
}
|
|
1166
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1167
|
+
cancellationReasons?: {
|
|
1168
|
+
[key: string]: string;
|
|
1169
|
+
}[];
|
|
1170
|
+
}
|
|
1171
|
+
|
|
976
1172
|
interface TargetLinkOverrideContextProps {
|
|
977
1173
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
978
1174
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
979
1175
|
}
|
|
980
1176
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
981
1177
|
|
|
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
1178
|
interface KeywordPickerProps {
|
|
997
1179
|
value?: Keyword[] | string[];
|
|
998
1180
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -1013,37 +1195,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1013
1195
|
pageType?: PageType;
|
|
1014
1196
|
}
|
|
1015
1197
|
|
|
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
|
-
}
|
|
1198
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1199
|
+
|
|
1200
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1041
1201
|
|
|
1042
1202
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1043
1203
|
}
|
|
1044
1204
|
|
|
1205
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1206
|
+
|
|
1207
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1208
|
+
|
|
1045
1209
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1210
|
+
/**
|
|
1211
|
+
* Limit results to those associated with the given channels.
|
|
1212
|
+
* For better performance set channel IDs instead of names.
|
|
1213
|
+
*/
|
|
1046
1214
|
channels?: string | FilterWithLogicalOperator;
|
|
1215
|
+
/**
|
|
1216
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1217
|
+
*/
|
|
1047
1218
|
keywords?: string | FilterWithLogicalOperator;
|
|
1048
1219
|
}
|
|
1049
1220
|
|
|
@@ -1056,8 +1227,8 @@ interface NewsListProps {
|
|
|
1056
1227
|
searchText?: string;
|
|
1057
1228
|
itemLayoutMode?: ItemLayoutMode;
|
|
1058
1229
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1059
|
-
onChannelClick?: (
|
|
1060
|
-
onKeywordClick?: (
|
|
1230
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1231
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1061
1232
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1062
1233
|
hidePagination?: boolean;
|
|
1063
1234
|
pageSize?: number;
|
|
@@ -1067,6 +1238,7 @@ interface NewsListProps {
|
|
|
1067
1238
|
declare const NewsList: FC<NewsListProps>;
|
|
1068
1239
|
|
|
1069
1240
|
interface ManageChannelsProps {
|
|
1241
|
+
hideSearch?: boolean;
|
|
1070
1242
|
className?: string;
|
|
1071
1243
|
}
|
|
1072
1244
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1074,6 +1246,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1074
1246
|
interface ChannelSelectorWrapperProps {
|
|
1075
1247
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1076
1248
|
showLogicalOperatorOptions?: boolean;
|
|
1249
|
+
/**
|
|
1250
|
+
* For better performance set channel IDs instead of names.
|
|
1251
|
+
*/
|
|
1077
1252
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1078
1253
|
className?: string;
|
|
1079
1254
|
}
|
|
@@ -1090,10 +1265,11 @@ interface NewsGridProps {
|
|
|
1090
1265
|
maxColumnCount?: number;
|
|
1091
1266
|
rowCount?: number;
|
|
1092
1267
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1093
|
-
onChannelClick?: (
|
|
1094
|
-
onKeywordClick?: (
|
|
1268
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1269
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1095
1270
|
includeAllItems?: boolean;
|
|
1096
1271
|
className?: string;
|
|
1272
|
+
hideIntro?: boolean;
|
|
1097
1273
|
}
|
|
1098
1274
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1099
1275
|
|
|
@@ -1109,7 +1285,7 @@ interface EventGridProps {
|
|
|
1109
1285
|
maxColumnCount?: number;
|
|
1110
1286
|
rowCount?: number;
|
|
1111
1287
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1112
|
-
onChannelClick?: (
|
|
1288
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1113
1289
|
className?: string;
|
|
1114
1290
|
}
|
|
1115
1291
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1120,7 +1296,7 @@ interface EventsListProps {
|
|
|
1120
1296
|
searchText?: string;
|
|
1121
1297
|
itemLayoutMode?: ItemLayoutMode;
|
|
1122
1298
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1123
|
-
onChannelClick?: (
|
|
1299
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1124
1300
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1125
1301
|
hidePagination?: boolean;
|
|
1126
1302
|
pageSize?: number;
|
|
@@ -1128,8 +1304,20 @@ interface EventsListProps {
|
|
|
1128
1304
|
}
|
|
1129
1305
|
declare const EventsList: FC<EventsListProps>;
|
|
1130
1306
|
|
|
1307
|
+
declare enum HeroPagingType {
|
|
1308
|
+
page = "page",
|
|
1309
|
+
item = "item"
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1131
1312
|
interface NewsHeroFilterProps {
|
|
1313
|
+
/**
|
|
1314
|
+
* Limit results to those associated with the given channels.
|
|
1315
|
+
* For better performance set channel IDs instead of names.
|
|
1316
|
+
*/
|
|
1132
1317
|
channels?: string | FilterWithLogicalOperator;
|
|
1318
|
+
/**
|
|
1319
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1320
|
+
*/
|
|
1133
1321
|
keywords?: string | FilterWithLogicalOperator;
|
|
1134
1322
|
pageSize?: number;
|
|
1135
1323
|
}
|
|
@@ -1141,9 +1329,11 @@ interface NewsHeroProps {
|
|
|
1141
1329
|
width?: number | string;
|
|
1142
1330
|
height?: number | string;
|
|
1143
1331
|
includeAllItems?: boolean;
|
|
1144
|
-
onChannelClick?: (
|
|
1145
|
-
onKeywordClick?: (
|
|
1332
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1333
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1146
1334
|
showKeywords?: boolean;
|
|
1335
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1336
|
+
pagingType?: HeroPagingType;
|
|
1147
1337
|
}
|
|
1148
1338
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1149
1339
|
|
|
@@ -1171,27 +1361,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1171
1361
|
itemId: string;
|
|
1172
1362
|
}>;
|
|
1173
1363
|
|
|
1174
|
-
declare const
|
|
1364
|
+
declare const PageItemContextProvider: FC<{
|
|
1365
|
+
itemId: string;
|
|
1366
|
+
}>;
|
|
1367
|
+
|
|
1368
|
+
declare const EventItemContextProvider: FC<{
|
|
1369
|
+
itemId: string;
|
|
1370
|
+
}>;
|
|
1371
|
+
|
|
1372
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1175
1373
|
showEditLanguagePreferences?: boolean;
|
|
1176
1374
|
onEditLanguagePreferences?: () => unknown;
|
|
1177
1375
|
}>;
|
|
1178
1376
|
|
|
1377
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1378
|
+
onClick?: (itemId: string) => unknown;
|
|
1379
|
+
}>;
|
|
1179
1380
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1180
1381
|
onClick?: (itemId: string) => unknown;
|
|
1181
1382
|
}>;
|
|
1182
1383
|
|
|
1183
|
-
interface
|
|
1384
|
+
interface SharedItemDetailPreviewProps {
|
|
1184
1385
|
itemId?: string;
|
|
1185
1386
|
versionId?: string;
|
|
1186
1387
|
className?: string;
|
|
1388
|
+
hideLikes?: boolean;
|
|
1389
|
+
hideComments?: boolean;
|
|
1187
1390
|
}
|
|
1188
|
-
declare const NewsDetailPreview: FC<
|
|
1391
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1392
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1393
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1189
1394
|
|
|
1190
1395
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1191
1396
|
itemId: string;
|
|
1192
1397
|
versionId?: string;
|
|
1193
1398
|
}>;
|
|
1194
1399
|
|
|
1400
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1401
|
+
itemId: string;
|
|
1402
|
+
versionId?: string;
|
|
1403
|
+
}>;
|
|
1404
|
+
|
|
1405
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1406
|
+
itemId: string;
|
|
1407
|
+
versionId?: string;
|
|
1408
|
+
}>;
|
|
1409
|
+
|
|
1195
1410
|
interface FilterProps {
|
|
1196
1411
|
filter: IndexableFilterDefinition;
|
|
1197
1412
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1200,6 +1415,9 @@ interface FilterProps {
|
|
|
1200
1415
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1201
1416
|
|
|
1202
1417
|
interface ChannelFilterProps {
|
|
1418
|
+
/**
|
|
1419
|
+
* For better performance set channel IDs instead of names.
|
|
1420
|
+
*/
|
|
1203
1421
|
channels?: string[];
|
|
1204
1422
|
className?: string;
|
|
1205
1423
|
}
|
|
@@ -1348,7 +1566,8 @@ interface PagesGridProps {
|
|
|
1348
1566
|
maxColumnCount?: number;
|
|
1349
1567
|
rowCount?: number;
|
|
1350
1568
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1351
|
-
onKeywordClick?: (
|
|
1569
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1570
|
+
hideIntro?: boolean;
|
|
1352
1571
|
className?: string;
|
|
1353
1572
|
}
|
|
1354
1573
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1358,7 +1577,7 @@ interface PagesListProps {
|
|
|
1358
1577
|
searchText?: string;
|
|
1359
1578
|
itemLayoutMode?: ItemLayoutMode;
|
|
1360
1579
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1361
|
-
onKeywordClick?: (
|
|
1580
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1362
1581
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1363
1582
|
hidePagination?: boolean;
|
|
1364
1583
|
pageSize?: number;
|
|
@@ -1396,10 +1615,34 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1396
1615
|
interface PageEditorContextProviderProps {
|
|
1397
1616
|
itemId?: string;
|
|
1398
1617
|
groupId?: string;
|
|
1618
|
+
parentId?: string;
|
|
1399
1619
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1400
1620
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1401
1621
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1402
1622
|
}
|
|
1403
1623
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1404
1624
|
|
|
1405
|
-
|
|
1625
|
+
interface PageEditorProps {
|
|
1626
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1627
|
+
className?: string;
|
|
1628
|
+
}
|
|
1629
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1630
|
+
|
|
1631
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1632
|
+
|
|
1633
|
+
interface PageEditorPanelProps {
|
|
1634
|
+
className?: string;
|
|
1635
|
+
}
|
|
1636
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1637
|
+
|
|
1638
|
+
interface ErrorWrapperProps {
|
|
1639
|
+
errorType: ErrorType;
|
|
1640
|
+
isList?: boolean;
|
|
1641
|
+
}
|
|
1642
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1643
|
+
|
|
1644
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1645
|
+
onClick?: () => unknown;
|
|
1646
|
+
}>;
|
|
1647
|
+
|
|
1648
|
+
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 };
|