@livetiles/reach-components-react 0.5.0-preview.75 → 0.5.0-preview.751
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 +5 -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/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 +10 -3
- 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-f51a2a4b.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 +2 -3
- 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/EventEditorToolbarRecurringControls.d.ts +0 -2
- 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-86828242.esm.js +1 -0
- package/index-9966489c.esm.js +1 -0
- package/index-b8e04782.esm.js +705 -0
- package/index-bb815ffc.esm.js +1 -0
- package/index-beff4bdb.esm.js +1 -0
- package/index-d4477314.esm.js +1 -0
- package/index.d.ts +410 -156
- 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-3ae1841e.esm.js +1 -0
- package/index.umd.js +754 -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
|
+
/// <reference types="react" />
|
|
1
2
|
import { FC, ReactNode } 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,31 @@ 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
|
+
|
|
229
243
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
230
244
|
domains?: string[];
|
|
231
245
|
tenantId: string;
|
|
@@ -284,6 +298,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
298
|
customDomain?: string;
|
|
285
299
|
allowSelfRegistration?: boolean;
|
|
286
300
|
brandFolderConfig?: BrandFolderConfig;
|
|
301
|
+
hideSubscriptionName?: boolean;
|
|
287
302
|
}
|
|
288
303
|
interface BrandFolderConfig {
|
|
289
304
|
sections?: string[];
|
|
@@ -314,9 +329,21 @@ interface WebPluginDefinition {
|
|
|
314
329
|
subscriptionId?: string;
|
|
315
330
|
environment?: string;
|
|
316
331
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
332
|
+
declare enum ExtensionArea {
|
|
333
|
+
global = "Global",
|
|
334
|
+
page = "Page",
|
|
335
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
336
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
337
|
+
itemEditor = "ItemEditor",
|
|
338
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
339
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
340
|
+
}
|
|
341
|
+
declare type InlinePlugin = {
|
|
342
|
+
area: ExtensionArea.itemEditor;
|
|
343
|
+
objectButton: PluginObjectButton;
|
|
344
|
+
};
|
|
345
|
+
declare type PagePlugin = {
|
|
346
|
+
area: ExtensionArea.page;
|
|
320
347
|
route: string;
|
|
321
348
|
navigationNode?: {
|
|
322
349
|
componentName?: string;
|
|
@@ -326,7 +353,20 @@ interface PluginExtension {
|
|
|
326
353
|
[key: string]: string;
|
|
327
354
|
};
|
|
328
355
|
};
|
|
329
|
-
}
|
|
356
|
+
};
|
|
357
|
+
declare type PluginExtension = {
|
|
358
|
+
area: ExtensionArea;
|
|
359
|
+
componentName: string;
|
|
360
|
+
} & (InlinePlugin | PagePlugin);
|
|
361
|
+
declare type PluginObjectButton = {
|
|
362
|
+
buttonLabel: {
|
|
363
|
+
defaultLabel: string;
|
|
364
|
+
translations?: {
|
|
365
|
+
[key: string]: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
iconName: string;
|
|
369
|
+
};
|
|
330
370
|
interface PluginNotificationDefinitions {
|
|
331
371
|
key: string;
|
|
332
372
|
title: string;
|
|
@@ -360,23 +400,6 @@ declare enum FieldMode {
|
|
|
360
400
|
Hidden = 3
|
|
361
401
|
}
|
|
362
402
|
|
|
363
|
-
interface Channel {
|
|
364
|
-
id: string;
|
|
365
|
-
name: string;
|
|
366
|
-
translations?: {
|
|
367
|
-
[key: string]: string;
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
interface Keyword {
|
|
372
|
-
id: string;
|
|
373
|
-
name: string;
|
|
374
|
-
groupId?: string;
|
|
375
|
-
translations: {
|
|
376
|
-
[key: string]: string;
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
|
|
380
403
|
interface ItemStatistics {
|
|
381
404
|
commentCount?: number;
|
|
382
405
|
likeCount?: number;
|
|
@@ -411,7 +434,7 @@ declare enum KnownNewsState {
|
|
|
411
434
|
declare type VersionId = string;
|
|
412
435
|
interface SchedulableItem extends PublishableItem {
|
|
413
436
|
metadata?: NewsMetadata;
|
|
414
|
-
channels?:
|
|
437
|
+
channels?: Channel[];
|
|
415
438
|
}
|
|
416
439
|
interface NewsItem extends SchedulableItem {
|
|
417
440
|
source?: string;
|
|
@@ -420,19 +443,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
420
443
|
knownState: KnownNewsState;
|
|
421
444
|
hasNewComments?: boolean;
|
|
422
445
|
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
446
|
}
|
|
429
447
|
interface NewsItemAlertOptions {
|
|
430
448
|
duration?: string;
|
|
431
449
|
endDate?: Date;
|
|
432
450
|
expireAfter?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface SchedulableItemChannel {
|
|
435
|
-
name: string;
|
|
436
451
|
}
|
|
437
452
|
|
|
438
453
|
declare enum VideoSource {
|
|
@@ -447,19 +462,6 @@ interface BaseItem {
|
|
|
447
462
|
id?: string;
|
|
448
463
|
statistics?: ItemStatistics;
|
|
449
464
|
poll?: Poll;
|
|
450
|
-
searchHighlights?: SearchHighlightSummary;
|
|
451
|
-
}
|
|
452
|
-
interface SearchHighlightSummary {
|
|
453
|
-
title: SearchHighlight[];
|
|
454
|
-
content: SearchHighlight[];
|
|
455
|
-
}
|
|
456
|
-
interface SearchHighlight {
|
|
457
|
-
language: string;
|
|
458
|
-
texts: {
|
|
459
|
-
value: string;
|
|
460
|
-
type: 'text' | 'hit';
|
|
461
|
-
}[];
|
|
462
|
-
score: number;
|
|
463
465
|
}
|
|
464
466
|
interface Poll {
|
|
465
467
|
questions: PollQuestion[];
|
|
@@ -494,6 +496,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
494
496
|
headline?: string;
|
|
495
497
|
intro?: string;
|
|
496
498
|
body?: string;
|
|
499
|
+
bodyRaw?: string;
|
|
497
500
|
customProperties?: {
|
|
498
501
|
[key: string]: any;
|
|
499
502
|
};
|
|
@@ -599,6 +602,18 @@ interface Attachment extends BaseAttachment {
|
|
|
599
602
|
type: AttachmentType;
|
|
600
603
|
}
|
|
601
604
|
|
|
605
|
+
declare enum GraphQLAttachmentType {
|
|
606
|
+
Image = "IMAGE",
|
|
607
|
+
File = "FILE",
|
|
608
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
609
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
610
|
+
News = "NEWS",
|
|
611
|
+
Event = "EVENT",
|
|
612
|
+
Page = "PAGE",
|
|
613
|
+
Post = "POST",
|
|
614
|
+
Giphy = "GIPHY"
|
|
615
|
+
}
|
|
616
|
+
|
|
602
617
|
interface ItemWithAttachments {
|
|
603
618
|
attachments?: Attachment[];
|
|
604
619
|
fileAccessToken?: string;
|
|
@@ -659,6 +674,7 @@ interface EventItem extends SchedulableItem {
|
|
|
659
674
|
recurrenceSeriesId?: string;
|
|
660
675
|
isSeriesMaster?: string;
|
|
661
676
|
isVirtual?: boolean;
|
|
677
|
+
isAllDayEvent?: boolean;
|
|
662
678
|
}
|
|
663
679
|
interface EventRegistrationSettings {
|
|
664
680
|
enabled?: boolean;
|
|
@@ -748,6 +764,7 @@ interface PageItem extends PublishableItem {
|
|
|
748
764
|
isUnlinked?: boolean;
|
|
749
765
|
pageType?: PageType;
|
|
750
766
|
firstChildId?: string;
|
|
767
|
+
isGroupInheritanceBroken?: boolean;
|
|
751
768
|
}
|
|
752
769
|
interface ContentsSummary {
|
|
753
770
|
[lang: string]: TitleContent & {
|
|
@@ -769,6 +786,7 @@ interface PageNavigationNode {
|
|
|
769
786
|
hasAnyPageChild?: boolean;
|
|
770
787
|
pageType?: PageType;
|
|
771
788
|
useExternalContent?: boolean;
|
|
789
|
+
isGroupInheritanceBroken?: boolean;
|
|
772
790
|
isSearchMatch?: boolean;
|
|
773
791
|
topLevelFolderName?: string;
|
|
774
792
|
uploadToken?: string;
|
|
@@ -783,6 +801,64 @@ declare enum PageType {
|
|
|
783
801
|
Document = 1
|
|
784
802
|
}
|
|
785
803
|
|
|
804
|
+
declare type KeywordsByGroupId = {
|
|
805
|
+
[key: string]: Keyword[];
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
interface SubscriptionData {
|
|
809
|
+
channels?: Channel[];
|
|
810
|
+
allKeywords?: Keyword[];
|
|
811
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
812
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
813
|
+
}
|
|
814
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
815
|
+
getChannels: () => Promise<Channel[]>;
|
|
816
|
+
refreshSubscription: () => void;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
820
|
+
|
|
821
|
+
interface NewsDetailProps {
|
|
822
|
+
itemId?: string;
|
|
823
|
+
hideComments?: boolean;
|
|
824
|
+
hideLikes?: boolean;
|
|
825
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
826
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
827
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
828
|
+
className?: string;
|
|
829
|
+
}
|
|
830
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
831
|
+
|
|
832
|
+
interface PageDetailProps {
|
|
833
|
+
itemId?: string;
|
|
834
|
+
hideComments?: boolean;
|
|
835
|
+
hideLikes?: boolean;
|
|
836
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
837
|
+
homeBreadcrumbTargetUrl?: string;
|
|
838
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
839
|
+
className?: string;
|
|
840
|
+
}
|
|
841
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
842
|
+
|
|
843
|
+
interface EventDetailProps {
|
|
844
|
+
itemId?: string;
|
|
845
|
+
hideComments?: boolean;
|
|
846
|
+
hideLikes?: boolean;
|
|
847
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
848
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
849
|
+
className?: string;
|
|
850
|
+
}
|
|
851
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
852
|
+
|
|
853
|
+
interface PostDetailProps {
|
|
854
|
+
postId: string;
|
|
855
|
+
threadId?: string;
|
|
856
|
+
onAfterDelete?: (id: string) => unknown;
|
|
857
|
+
commentCount?: number;
|
|
858
|
+
onItemClick?: (postId: string) => unknown;
|
|
859
|
+
}
|
|
860
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
861
|
+
|
|
786
862
|
declare const Dialog: FC<IDialogProps>;
|
|
787
863
|
|
|
788
864
|
interface ToolbarProps {
|
|
@@ -800,6 +876,12 @@ interface ToolbarSearchProps {
|
|
|
800
876
|
}
|
|
801
877
|
declare const Toolbar: FC<ToolbarProps>;
|
|
802
878
|
|
|
879
|
+
declare type TokenType = string | number;
|
|
880
|
+
|
|
881
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
882
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
883
|
+
}
|
|
884
|
+
|
|
803
885
|
interface ToolbarChannelSelectorProps {
|
|
804
886
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
805
887
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -845,6 +927,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
845
927
|
onClick: () => unknown;
|
|
846
928
|
}>;
|
|
847
929
|
|
|
930
|
+
declare const ToolbarManageButton: FC<{
|
|
931
|
+
onClick?: () => unknown;
|
|
932
|
+
to?: {
|
|
933
|
+
url: string;
|
|
934
|
+
target?: string;
|
|
935
|
+
};
|
|
936
|
+
disabled?: boolean;
|
|
937
|
+
}>;
|
|
938
|
+
|
|
848
939
|
interface ToolbarCloseButtonProps {
|
|
849
940
|
onClick?: () => unknown;
|
|
850
941
|
to?: {
|
|
@@ -873,8 +964,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
873
964
|
interface Props extends IPersonaProps {
|
|
874
965
|
upn: string;
|
|
875
966
|
tenantId?: string;
|
|
876
|
-
className?: string;
|
|
877
967
|
displayName?: string;
|
|
968
|
+
forceShowSecondaryText?: boolean;
|
|
969
|
+
className?: string;
|
|
878
970
|
}
|
|
879
971
|
declare const Avatar: FC<Props>;
|
|
880
972
|
|
|
@@ -885,6 +977,13 @@ interface UserDetailsProps {
|
|
|
885
977
|
}
|
|
886
978
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
887
979
|
|
|
980
|
+
declare enum ErrorType {
|
|
981
|
+
GenericError = "genericError",
|
|
982
|
+
Error404 = "error404",
|
|
983
|
+
Error403 = "error403",
|
|
984
|
+
LoginError = "loginError"
|
|
985
|
+
}
|
|
986
|
+
|
|
888
987
|
interface PageViewTrackerSettings {
|
|
889
988
|
disabled?: boolean;
|
|
890
989
|
}
|
|
@@ -931,6 +1030,32 @@ declare enum LogicalOperator {
|
|
|
931
1030
|
And = "AND"
|
|
932
1031
|
}
|
|
933
1032
|
|
|
1033
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1034
|
+
id: string;
|
|
1035
|
+
comments?: PaginatedList<Comment>;
|
|
1036
|
+
groupId: string;
|
|
1037
|
+
content: string;
|
|
1038
|
+
permalink?: string;
|
|
1039
|
+
author: Account;
|
|
1040
|
+
publishingDate: string;
|
|
1041
|
+
modified?: string;
|
|
1042
|
+
statistics: ItemStatistics;
|
|
1043
|
+
keywords?: {
|
|
1044
|
+
[key: string]: Keyword[];
|
|
1045
|
+
};
|
|
1046
|
+
contentLanguageCode?: string;
|
|
1047
|
+
isLiked?: boolean;
|
|
1048
|
+
isUnread?: boolean;
|
|
1049
|
+
isDemoContent?: boolean;
|
|
1050
|
+
isFollowing?: boolean;
|
|
1051
|
+
}
|
|
1052
|
+
interface PostFilterDefinition {
|
|
1053
|
+
token?: string;
|
|
1054
|
+
pageSize?: string;
|
|
1055
|
+
search?: string;
|
|
1056
|
+
keywords?: FilterWithLogicalOperator;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
934
1059
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
935
1060
|
author?: string;
|
|
936
1061
|
}
|
|
@@ -939,6 +1064,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
939
1064
|
channels?: FilterWithLogicalOperator;
|
|
940
1065
|
}
|
|
941
1066
|
|
|
1067
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1068
|
+
contacts?: string[];
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1072
|
+
startsAfter?: string;
|
|
1073
|
+
startsBefore?: string;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1077
|
+
excludePastEvents?: boolean;
|
|
1078
|
+
pastEventsOnly?: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
942
1081
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
943
1082
|
state?: WorkflowStatus;
|
|
944
1083
|
}
|
|
@@ -950,26 +1089,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
950
1089
|
includeExpired?: boolean;
|
|
951
1090
|
}
|
|
952
1091
|
|
|
1092
|
+
declare enum StreamEventResponse {
|
|
1093
|
+
NotSet = "NOTSET",
|
|
1094
|
+
Registered = "REGISTERED",
|
|
1095
|
+
Declined = "DECLINED"
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
declare enum StreamItemTypes {
|
|
1099
|
+
Post = "POST",
|
|
1100
|
+
News = "NEWS",
|
|
1101
|
+
Event = "EVENT",
|
|
1102
|
+
Page = "PAGE"
|
|
1103
|
+
}
|
|
1104
|
+
declare enum StreamConversationScope {
|
|
1105
|
+
Public = "PUBLIC",
|
|
1106
|
+
Editor = "EDITOR",
|
|
1107
|
+
Posts = "POSTS"
|
|
1108
|
+
}
|
|
1109
|
+
interface PostStreamItem extends Post {
|
|
1110
|
+
type: StreamItemTypes.Post;
|
|
1111
|
+
isUnread: boolean;
|
|
1112
|
+
keywordsList?: Keyword[];
|
|
1113
|
+
groupIds?: string[];
|
|
1114
|
+
postAttachments?: StreamAttachment[];
|
|
1115
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1116
|
+
hasMoreUnreadComments: boolean;
|
|
1117
|
+
}
|
|
1118
|
+
interface StreamPostComment extends Comment {
|
|
1119
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1120
|
+
streamConversationScope?: StreamConversationScope;
|
|
1121
|
+
}
|
|
1122
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1123
|
+
type: GraphQLAttachmentType;
|
|
1124
|
+
}
|
|
1125
|
+
interface NewsStreamItem extends NewsItem {
|
|
1126
|
+
type: StreamItemTypes.News;
|
|
1127
|
+
contentsList: StreamPublishableItemContents[];
|
|
1128
|
+
channelsList: Channel[];
|
|
1129
|
+
isUnread: boolean;
|
|
1130
|
+
keywordsList?: Keyword[];
|
|
1131
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1132
|
+
}
|
|
1133
|
+
declare enum StreamKnownNewsState {
|
|
1134
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1135
|
+
Alert = "ALERT"
|
|
1136
|
+
}
|
|
1137
|
+
interface EventStreamItem extends EventItem {
|
|
1138
|
+
type: StreamItemTypes.Event;
|
|
1139
|
+
contentsList: StreamPublishableItemContents[];
|
|
1140
|
+
channelsList: Channel[];
|
|
1141
|
+
isUnread: boolean;
|
|
1142
|
+
keywordsList?: Keyword[];
|
|
1143
|
+
userResponseType?: StreamEventResponse;
|
|
1144
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1145
|
+
}
|
|
1146
|
+
interface PageStreamItem extends PageItem {
|
|
1147
|
+
type: StreamItemTypes.Page;
|
|
1148
|
+
contentsList: StreamPublishableItemContents[];
|
|
1149
|
+
channelsList: Channel[];
|
|
1150
|
+
isUnread: boolean;
|
|
1151
|
+
keywordsList?: Keyword[];
|
|
1152
|
+
streamPageType?: string;
|
|
1153
|
+
path?: (PageNavigationNode & {
|
|
1154
|
+
parentId?: string;
|
|
1155
|
+
contentsList: StreamPublishableItemContents[];
|
|
1156
|
+
})[];
|
|
1157
|
+
}
|
|
1158
|
+
interface StreamPublishableItemContents {
|
|
1159
|
+
language: string;
|
|
1160
|
+
title: string;
|
|
1161
|
+
intro?: string;
|
|
1162
|
+
headline?: string;
|
|
1163
|
+
}
|
|
1164
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1165
|
+
cancellationReasons?: {
|
|
1166
|
+
[key: string]: string;
|
|
1167
|
+
}[];
|
|
1168
|
+
}
|
|
1169
|
+
|
|
953
1170
|
interface TargetLinkOverrideContextProps {
|
|
954
1171
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
955
1172
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
956
1173
|
}
|
|
957
1174
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
958
1175
|
|
|
959
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
960
|
-
contacts?: string[];
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
964
|
-
startsAfter?: string;
|
|
965
|
-
startsBefore?: string;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
969
|
-
excludePastEvents?: boolean;
|
|
970
|
-
pastEventsOnly?: boolean;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
1176
|
interface KeywordPickerProps {
|
|
974
1177
|
value?: Keyword[] | string[];
|
|
975
1178
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -990,37 +1193,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
990
1193
|
pageType?: PageType;
|
|
991
1194
|
}
|
|
992
1195
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
groupId: string;
|
|
997
|
-
content: string;
|
|
998
|
-
permalink?: string;
|
|
999
|
-
author: Account;
|
|
1000
|
-
publishingDate: string;
|
|
1001
|
-
modified?: string;
|
|
1002
|
-
statistics: ItemStatistics;
|
|
1003
|
-
keywords?: {
|
|
1004
|
-
[key: string]: Keyword[];
|
|
1005
|
-
};
|
|
1006
|
-
contentLanguageCode?: string;
|
|
1007
|
-
isLiked?: boolean;
|
|
1008
|
-
isUnread?: boolean;
|
|
1009
|
-
isDemoContent?: boolean;
|
|
1010
|
-
isFollowing?: boolean;
|
|
1011
|
-
}
|
|
1012
|
-
interface PostFilterDefinition {
|
|
1013
|
-
token?: string;
|
|
1014
|
-
pageSize?: string;
|
|
1015
|
-
search?: string;
|
|
1016
|
-
keywords?: FilterWithLogicalOperator;
|
|
1017
|
-
}
|
|
1196
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1197
|
+
|
|
1198
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1018
1199
|
|
|
1019
1200
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1020
1201
|
}
|
|
1021
1202
|
|
|
1203
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1204
|
+
|
|
1205
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1206
|
+
|
|
1022
1207
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1208
|
+
/**
|
|
1209
|
+
* Limit results to those associated with the given channels.
|
|
1210
|
+
* For better performance set channel IDs instead of names.
|
|
1211
|
+
*/
|
|
1023
1212
|
channels?: string | FilterWithLogicalOperator;
|
|
1213
|
+
/**
|
|
1214
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1215
|
+
*/
|
|
1024
1216
|
keywords?: string | FilterWithLogicalOperator;
|
|
1025
1217
|
}
|
|
1026
1218
|
|
|
@@ -1033,8 +1225,8 @@ interface NewsListProps {
|
|
|
1033
1225
|
searchText?: string;
|
|
1034
1226
|
itemLayoutMode?: ItemLayoutMode;
|
|
1035
1227
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1036
|
-
onChannelClick?: (
|
|
1037
|
-
onKeywordClick?: (
|
|
1228
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1229
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1038
1230
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1039
1231
|
hidePagination?: boolean;
|
|
1040
1232
|
pageSize?: number;
|
|
@@ -1051,6 +1243,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1051
1243
|
interface ChannelSelectorWrapperProps {
|
|
1052
1244
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1053
1245
|
showLogicalOperatorOptions?: boolean;
|
|
1246
|
+
/**
|
|
1247
|
+
* For better performance set channel IDs instead of names.
|
|
1248
|
+
*/
|
|
1054
1249
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1055
1250
|
className?: string;
|
|
1056
1251
|
}
|
|
@@ -1067,10 +1262,11 @@ interface NewsGridProps {
|
|
|
1067
1262
|
maxColumnCount?: number;
|
|
1068
1263
|
rowCount?: number;
|
|
1069
1264
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1070
|
-
onChannelClick?: (
|
|
1071
|
-
onKeywordClick?: (
|
|
1265
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1266
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1072
1267
|
includeAllItems?: boolean;
|
|
1073
1268
|
className?: string;
|
|
1269
|
+
hideIntro?: boolean;
|
|
1074
1270
|
}
|
|
1075
1271
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1076
1272
|
|
|
@@ -1086,7 +1282,7 @@ interface EventGridProps {
|
|
|
1086
1282
|
maxColumnCount?: number;
|
|
1087
1283
|
rowCount?: number;
|
|
1088
1284
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1089
|
-
onChannelClick?: (
|
|
1285
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1090
1286
|
className?: string;
|
|
1091
1287
|
}
|
|
1092
1288
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1097,7 +1293,7 @@ interface EventsListProps {
|
|
|
1097
1293
|
searchText?: string;
|
|
1098
1294
|
itemLayoutMode?: ItemLayoutMode;
|
|
1099
1295
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1100
|
-
onChannelClick?: (
|
|
1296
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1101
1297
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1102
1298
|
hidePagination?: boolean;
|
|
1103
1299
|
pageSize?: number;
|
|
@@ -1106,7 +1302,14 @@ interface EventsListProps {
|
|
|
1106
1302
|
declare const EventsList: FC<EventsListProps>;
|
|
1107
1303
|
|
|
1108
1304
|
interface NewsHeroFilterProps {
|
|
1305
|
+
/**
|
|
1306
|
+
* Limit results to those associated with the given channels.
|
|
1307
|
+
* For better performance set channel IDs instead of names.
|
|
1308
|
+
*/
|
|
1109
1309
|
channels?: string | FilterWithLogicalOperator;
|
|
1310
|
+
/**
|
|
1311
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1312
|
+
*/
|
|
1110
1313
|
keywords?: string | FilterWithLogicalOperator;
|
|
1111
1314
|
pageSize?: number;
|
|
1112
1315
|
}
|
|
@@ -1118,8 +1321,8 @@ interface NewsHeroProps {
|
|
|
1118
1321
|
width?: number | string;
|
|
1119
1322
|
height?: number | string;
|
|
1120
1323
|
includeAllItems?: boolean;
|
|
1121
|
-
onChannelClick?: (
|
|
1122
|
-
onKeywordClick?: (
|
|
1324
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1325
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1123
1326
|
showKeywords?: boolean;
|
|
1124
1327
|
}
|
|
1125
1328
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
@@ -1148,27 +1351,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1148
1351
|
itemId: string;
|
|
1149
1352
|
}>;
|
|
1150
1353
|
|
|
1151
|
-
declare const
|
|
1354
|
+
declare const PageItemContextProvider: FC<{
|
|
1355
|
+
itemId: string;
|
|
1356
|
+
}>;
|
|
1357
|
+
|
|
1358
|
+
declare const EventItemContextProvider: FC<{
|
|
1359
|
+
itemId: string;
|
|
1360
|
+
}>;
|
|
1361
|
+
|
|
1362
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1152
1363
|
showEditLanguagePreferences?: boolean;
|
|
1153
1364
|
onEditLanguagePreferences?: () => unknown;
|
|
1154
1365
|
}>;
|
|
1155
1366
|
|
|
1367
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1368
|
+
onClick?: (itemId: string) => unknown;
|
|
1369
|
+
}>;
|
|
1156
1370
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1157
1371
|
onClick?: (itemId: string) => unknown;
|
|
1158
1372
|
}>;
|
|
1159
1373
|
|
|
1160
|
-
interface
|
|
1374
|
+
interface SharedItemDetailPreviewProps {
|
|
1161
1375
|
itemId?: string;
|
|
1162
1376
|
versionId?: string;
|
|
1163
1377
|
className?: string;
|
|
1378
|
+
hideLikes?: boolean;
|
|
1379
|
+
hideComments?: boolean;
|
|
1164
1380
|
}
|
|
1165
|
-
declare const NewsDetailPreview: FC<
|
|
1381
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1382
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1383
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1166
1384
|
|
|
1167
1385
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1168
1386
|
itemId: string;
|
|
1169
1387
|
versionId?: string;
|
|
1170
1388
|
}>;
|
|
1171
1389
|
|
|
1390
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1391
|
+
itemId: string;
|
|
1392
|
+
versionId?: string;
|
|
1393
|
+
}>;
|
|
1394
|
+
|
|
1395
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1396
|
+
itemId: string;
|
|
1397
|
+
versionId?: string;
|
|
1398
|
+
}>;
|
|
1399
|
+
|
|
1172
1400
|
interface FilterProps {
|
|
1173
1401
|
filter: IndexableFilterDefinition;
|
|
1174
1402
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1177,6 +1405,9 @@ interface FilterProps {
|
|
|
1177
1405
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1178
1406
|
|
|
1179
1407
|
interface ChannelFilterProps {
|
|
1408
|
+
/**
|
|
1409
|
+
* For better performance set channel IDs instead of names.
|
|
1410
|
+
*/
|
|
1180
1411
|
channels?: string[];
|
|
1181
1412
|
className?: string;
|
|
1182
1413
|
}
|
|
@@ -1325,7 +1556,8 @@ interface PagesGridProps {
|
|
|
1325
1556
|
maxColumnCount?: number;
|
|
1326
1557
|
rowCount?: number;
|
|
1327
1558
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1328
|
-
onKeywordClick?: (
|
|
1559
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1560
|
+
hideIntro?: boolean;
|
|
1329
1561
|
className?: string;
|
|
1330
1562
|
}
|
|
1331
1563
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1335,7 +1567,7 @@ interface PagesListProps {
|
|
|
1335
1567
|
searchText?: string;
|
|
1336
1568
|
itemLayoutMode?: ItemLayoutMode;
|
|
1337
1569
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1338
|
-
onKeywordClick?: (
|
|
1570
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1339
1571
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1340
1572
|
hidePagination?: boolean;
|
|
1341
1573
|
pageSize?: number;
|
|
@@ -1366,8 +1598,6 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1366
1598
|
declare const EventEditorToolbarStateActions: FC;
|
|
1367
1599
|
|
|
1368
1600
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1369
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1370
|
-
onResetModifiedInstance: () => void;
|
|
1371
1601
|
className?: string;
|
|
1372
1602
|
}
|
|
1373
1603
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
@@ -1375,10 +1605,34 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1375
1605
|
interface PageEditorContextProviderProps {
|
|
1376
1606
|
itemId?: string;
|
|
1377
1607
|
groupId?: string;
|
|
1608
|
+
parentId?: string;
|
|
1378
1609
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1379
1610
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1380
1611
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1381
1612
|
}
|
|
1382
1613
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1383
1614
|
|
|
1384
|
-
|
|
1615
|
+
interface PageEditorProps {
|
|
1616
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1617
|
+
className?: string;
|
|
1618
|
+
}
|
|
1619
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1620
|
+
|
|
1621
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1622
|
+
|
|
1623
|
+
interface PageEditorPanelProps {
|
|
1624
|
+
className?: string;
|
|
1625
|
+
}
|
|
1626
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1627
|
+
|
|
1628
|
+
interface ErrorWrapperProps {
|
|
1629
|
+
errorType: ErrorType;
|
|
1630
|
+
isList?: boolean;
|
|
1631
|
+
}
|
|
1632
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1633
|
+
|
|
1634
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1635
|
+
onClick?: () => unknown;
|
|
1636
|
+
}>;
|
|
1637
|
+
|
|
1638
|
+
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, 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 };
|