@livetiles/reach-components-react 0.5.0-preview.79 → 0.5.0-preview.791
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/da.async.esm2.esm.js +1 -1
- package/de-at.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/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 +499 -254
- package/index.esm.js +1 -1
- package/index.esm2.js +136 -17
- 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 +860 -21
- package/index10.esm.js +4 -0
- package/input-shims.esm.js +4 -0
- package/ios.transition.esm.js +4 -0
- 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/md.transition.esm.js +4 -0
- 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/status-tap.esm.js +4 -0
- package/sv.async.esm.esm.js +1 -1
- package/swipe-back.esm.js +4 -0
- package/swiper.bundle.esm.js +4 -0
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-hk.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
- package/ar-dz.async.esm2.esm.js +0 -1
- package/ar-kw.async.esm.esm.js +0 -1
- package/ar-ly.async.esm.esm.js +0 -1
- package/ar-ma.async.esm2.esm.js +0 -1
- package/ar-sa.async.esm2.esm.js +0 -1
- package/ar.esm.js +0 -1
- package/bg.async.esm2.esm.js +0 -1
- package/bn.async.esm2.esm.js +0 -1
- package/ca.async.esm2.esm.js +0 -1
- package/cs.async.esm2.esm.js +0 -1
- package/da.async.esm3.esm.js +0 -1
- package/da.esm.js +0 -1
- package/de-ch.async.esm.esm.js +0 -1
- package/de.async.esm3.esm.js +0 -1
- package/de.esm.js +0 -1
- package/el.async.esm2.esm.js +0 -1
- package/en-au.async.esm2.esm.js +0 -1
- package/en-ca.async.esm2.esm.js +0 -1
- package/en-gb.async.esm2.esm.js +0 -1
- package/en-il.async.esm.esm.js +0 -1
- package/en-nz.async.esm2.esm.js +0 -1
- package/en-sg.async.esm.esm.js +0 -1
- package/en.esm.js +0 -1
- package/es-do.async.esm.esm.js +0 -1
- package/es-us.async.esm.esm.js +0 -1
- package/es.async.esm3.esm.js +0 -1
- package/es.esm.js +0 -1
- package/et.async.esm2.esm.js +0 -1
- package/fa.async.esm.esm.js +0 -1
- package/fi.async.esm2.esm.js +0 -1
- package/fr-ca.async.esm2.esm.js +0 -1
- package/fr-ch.async.esm2.esm.js +0 -1
- package/fr.async.esm3.esm.js +0 -1
- package/fr.esm.js +0 -1
- package/gu.async.esm2.esm.js +0 -1
- package/he.async.esm2.esm.js +0 -1
- package/hi.async.esm2.esm.js +0 -1
- package/hr.async.esm2.esm.js +0 -1
- package/hu.async.esm2.esm.js +0 -1
- package/id.async.esm2.esm.js +0 -1
- package/it.async.esm3.esm.js +0 -1
- package/it.esm.js +0 -1
- package/ja.async.esm3.esm.js +0 -1
- package/ja.esm.js +0 -1
- package/kn.async.esm2.esm.js +0 -1
- package/ko.async.esm2.esm.js +0 -1
- package/lt.async.esm2.esm.js +0 -1
- package/lv.async.esm2.esm.js +0 -1
- package/ml.async.esm.esm.js +0 -1
- package/mr.async.esm.esm.js +0 -1
- package/ms-my.async.esm.esm.js +0 -1
- package/ms.async.esm2.esm.js +0 -1
- package/ms.esm.js +0 -1
- package/nb.async.esm2.esm.js +0 -1
- package/nl-be.async.esm2.esm.js +0 -1
- package/nl.async.esm2.esm.js +0 -1
- package/nl.esm.js +0 -1
- package/pl.async.esm2.esm.js +0 -1
- package/pt-br.async.esm2.esm.js +0 -1
- package/pt.async.esm2.esm.js +0 -1
- package/pt.esm.js +0 -1
- package/ro.async.esm2.esm.js +0 -1
- package/ru.async.esm2.esm.js +0 -1
- package/sk.async.esm2.esm.js +0 -1
- package/sl.async.esm2.esm.js +0 -1
- package/sr-cyrl.async.esm.esm.js +0 -1
- package/sr.async.esm2.esm.js +0 -1
- package/sr.esm.js +0 -1
- package/sv.async.esm2.esm.js +0 -1
- package/sw.async.esm.esm.js +0 -1
- package/ta.async.esm2.esm.js +0 -1
- package/te.async.esm2.esm.js +0 -1
- package/th.async.esm2.esm.js +0 -1
- package/tr.async.esm3.esm.js +0 -1
- package/tr.esm.js +0 -1
- package/uk.async.esm2.esm.js +0 -1
- package/vi.async.esm2.esm.js +0 -1
- package/zh-cn.async.esm3.esm.js +0 -1
- package/zh-tw.async.esm3.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,64 +1,8 @@
|
|
|
1
|
+
/// <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,8 +30,46 @@ interface IdentityProviderSettings {
|
|
|
86
30
|
scope: string;
|
|
87
31
|
}
|
|
88
32
|
|
|
89
|
-
interface
|
|
90
|
-
|
|
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;
|
|
91
73
|
}
|
|
92
74
|
|
|
93
75
|
interface BasicUserInformation {
|
|
@@ -109,121 +91,37 @@ interface Account extends BasicUserInformation {
|
|
|
109
91
|
tenantId?: string;
|
|
110
92
|
}
|
|
111
93
|
|
|
112
|
-
interface
|
|
113
|
-
|
|
114
|
-
name: string;
|
|
115
|
-
sendNotifications?: boolean;
|
|
116
|
-
isPinnedToNavigation?: boolean;
|
|
117
|
-
isMandatory?: boolean;
|
|
94
|
+
interface Resources {
|
|
95
|
+
[language: string]: Record<string, string>;
|
|
118
96
|
}
|
|
119
97
|
|
|
120
|
-
interface
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Reader = "Reader",
|
|
131
|
-
LimitedReader = "LimitedReader",
|
|
132
|
-
None = "None"
|
|
133
|
-
}
|
|
134
|
-
declare enum GroupRoles {
|
|
135
|
-
None = 0,
|
|
136
|
-
LimitedReader = 5,
|
|
137
|
-
Reader = 10,
|
|
138
|
-
Author = 20,
|
|
139
|
-
Editor = 30,
|
|
140
|
-
Admin = 40
|
|
141
|
-
}
|
|
142
|
-
declare enum NotificationType {
|
|
143
|
-
None = 0,
|
|
144
|
-
MobilePush = 1,
|
|
145
|
-
Email = 2,
|
|
146
|
-
Teams = 4,
|
|
147
|
-
BrowserPush = 8
|
|
148
|
-
}
|
|
149
|
-
interface NotificationTypeSettings {
|
|
150
|
-
news: NotificationType;
|
|
151
|
-
posts: NotificationType;
|
|
152
|
-
comments: NotificationType;
|
|
153
|
-
mentions: NotificationType;
|
|
154
|
-
events: NotificationType;
|
|
155
|
-
chat: NotificationType;
|
|
156
|
-
pluginNotifications: {
|
|
157
|
-
[key: string]: NotificationType;
|
|
98
|
+
interface LanguageBase {
|
|
99
|
+
code: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface KeywordGroup {
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
keywords: Keyword[];
|
|
106
|
+
translations: {
|
|
107
|
+
[key: string]: string;
|
|
158
108
|
};
|
|
159
109
|
}
|
|
160
|
-
interface
|
|
161
|
-
isEmailVerificationPending?: boolean;
|
|
162
|
-
isSubscriptionOwner: boolean;
|
|
163
|
-
givenName: string;
|
|
164
|
-
surname: string;
|
|
165
|
-
preferredUiLanguage: string;
|
|
166
|
-
preferredContentLanguage?: string;
|
|
167
|
-
preferredLocale?: string;
|
|
168
|
-
bookmarks: string[];
|
|
169
|
-
groups: UserGroup[];
|
|
170
|
-
subscription: SubscriptionSummary;
|
|
171
|
-
availableSubscriptions: SubscriptionSummary[];
|
|
172
|
-
channels: UserChannelSubscription[];
|
|
173
|
-
userHash: string;
|
|
174
|
-
unreadNews: PublishableItemNotificationSummary[];
|
|
175
|
-
unreadEvents: PublishableItemNotificationSummary[];
|
|
176
|
-
unreadPosts: {
|
|
177
|
-
groupId: string;
|
|
178
|
-
itemId: string;
|
|
179
|
-
}[];
|
|
180
|
-
unreadFeedItemsCount?: number;
|
|
181
|
-
mostRecentPostGroups: string[];
|
|
182
|
-
notificationTypeSettings: NotificationTypeSettings;
|
|
183
|
-
hasPendingRegistration?: boolean;
|
|
184
|
-
minRoles: UserMinRoles;
|
|
185
|
-
hasDirectory: boolean;
|
|
186
|
-
contacts: UserContact[];
|
|
187
|
-
termsAndConditionsApprovedHash: string;
|
|
188
|
-
isPublicUser?: boolean;
|
|
189
|
-
hasUnreadChats?: boolean;
|
|
190
|
-
}
|
|
191
|
-
interface UserContact {
|
|
192
|
-
tokenUniqueId: string;
|
|
193
|
-
tenantId: string;
|
|
194
|
-
}
|
|
195
|
-
interface GroupBase {
|
|
110
|
+
interface Keyword {
|
|
196
111
|
id: string;
|
|
197
112
|
name: string;
|
|
198
|
-
|
|
113
|
+
groupId?: string;
|
|
114
|
+
translations: {
|
|
199
115
|
[key: string]: string;
|
|
200
116
|
};
|
|
201
|
-
}
|
|
202
|
-
interface UserGroup extends GroupBase {
|
|
203
|
-
allowPosts: boolean;
|
|
204
|
-
disablePostComments: boolean;
|
|
205
|
-
availableChannelIds: string[];
|
|
206
|
-
defaultChannelIds: string[];
|
|
207
|
-
mandatoryChannelIds: string[];
|
|
208
|
-
availableKeywordIds: string[];
|
|
209
|
-
defaultKeywordIds: string[];
|
|
210
|
-
mandatoryKeywordIds: string[];
|
|
211
|
-
role: UserGroupRole;
|
|
212
|
-
}
|
|
213
|
-
interface UserMinRoles {
|
|
214
|
-
isEditor: boolean;
|
|
215
|
-
isAuthor: boolean;
|
|
216
|
-
isAdmin: boolean;
|
|
217
|
-
isReader: boolean;
|
|
218
|
-
isSubscriptionOwner: boolean;
|
|
219
|
-
}
|
|
220
|
-
interface UserGroupRole {
|
|
221
|
-
roleValue: GroupRoles;
|
|
222
|
-
displayName: GroupRoleNames;
|
|
223
117
|
}
|
|
224
118
|
|
|
225
|
-
interface
|
|
226
|
-
|
|
119
|
+
interface Channel {
|
|
120
|
+
id: string;
|
|
121
|
+
name: string;
|
|
122
|
+
translations?: {
|
|
123
|
+
[key: string]: string;
|
|
124
|
+
};
|
|
227
125
|
}
|
|
228
126
|
|
|
229
127
|
interface DirectoryConfiguration extends DirectoryConfigurationPatch {
|
|
@@ -284,6 +182,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
182
|
customDomain?: string;
|
|
285
183
|
allowSelfRegistration?: boolean;
|
|
286
184
|
brandFolderConfig?: BrandFolderConfig;
|
|
185
|
+
hideSubscriptionName?: boolean;
|
|
287
186
|
}
|
|
288
187
|
interface BrandFolderConfig {
|
|
289
188
|
sections?: string[];
|
|
@@ -319,7 +218,9 @@ declare enum ExtensionArea {
|
|
|
319
218
|
page = "Page",
|
|
320
219
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
321
220
|
eventDetailViewSection = "EventDetailViewSection",
|
|
322
|
-
itemEditor = "ItemEditor"
|
|
221
|
+
itemEditor = "ItemEditor",
|
|
222
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
223
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
323
224
|
}
|
|
324
225
|
declare type InlinePlugin = {
|
|
325
226
|
area: ExtensionArea.itemEditor;
|
|
@@ -371,33 +272,132 @@ interface UserPropertyDefinition {
|
|
|
371
272
|
type?: FieldType;
|
|
372
273
|
mode?: FieldMode;
|
|
373
274
|
}
|
|
374
|
-
declare enum FieldType {
|
|
375
|
-
Unknown = 0,
|
|
376
|
-
Text = 1,
|
|
377
|
-
MultilineText = 2
|
|
275
|
+
declare enum FieldType {
|
|
276
|
+
Unknown = 0,
|
|
277
|
+
Text = 1,
|
|
278
|
+
MultilineText = 2
|
|
279
|
+
}
|
|
280
|
+
declare enum FieldMode {
|
|
281
|
+
Unknown = 0,
|
|
282
|
+
AdminOnly = 1,
|
|
283
|
+
UserEditable = 2,
|
|
284
|
+
Hidden = 3
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface UserChannelSubscription {
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
sendNotifications?: boolean;
|
|
291
|
+
isPinnedToNavigation?: boolean;
|
|
292
|
+
isMandatory?: boolean;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
interface PublishableItemNotificationSummary {
|
|
296
|
+
itemId: string;
|
|
297
|
+
title?: string;
|
|
298
|
+
channelIds?: string[];
|
|
299
|
+
publishingDate?: string;
|
|
300
|
+
}
|
|
301
|
+
declare enum GroupRoleNames {
|
|
302
|
+
Admin = "Admin",
|
|
303
|
+
Editor = "Editor",
|
|
304
|
+
Author = "Author",
|
|
305
|
+
Reader = "Reader",
|
|
306
|
+
LimitedReader = "LimitedReader",
|
|
307
|
+
None = "None"
|
|
308
|
+
}
|
|
309
|
+
declare enum GroupRoles {
|
|
310
|
+
None = 0,
|
|
311
|
+
LimitedReader = 5,
|
|
312
|
+
Reader = 10,
|
|
313
|
+
Author = 20,
|
|
314
|
+
Editor = 30,
|
|
315
|
+
Admin = 40
|
|
316
|
+
}
|
|
317
|
+
declare enum NotificationType {
|
|
318
|
+
None = 0,
|
|
319
|
+
MobilePush = 1,
|
|
320
|
+
Email = 2,
|
|
321
|
+
Teams = 4,
|
|
322
|
+
BrowserPush = 8
|
|
323
|
+
}
|
|
324
|
+
interface NotificationTypeSettings {
|
|
325
|
+
news: NotificationType;
|
|
326
|
+
posts: NotificationType;
|
|
327
|
+
comments: NotificationType;
|
|
328
|
+
mentions: NotificationType;
|
|
329
|
+
events: NotificationType;
|
|
330
|
+
chat: NotificationType;
|
|
331
|
+
pluginNotifications: {
|
|
332
|
+
[key: string]: NotificationType;
|
|
333
|
+
};
|
|
334
|
+
newsEditor: NotificationType;
|
|
335
|
+
eventEditor: NotificationType;
|
|
336
|
+
}
|
|
337
|
+
interface CurrentUser extends Account {
|
|
338
|
+
isEmailVerificationPending?: boolean;
|
|
339
|
+
isSubscriptionOwner: boolean;
|
|
340
|
+
givenName: string;
|
|
341
|
+
surname: string;
|
|
342
|
+
preferredUiLanguage: string;
|
|
343
|
+
preferredContentLanguage?: string;
|
|
344
|
+
preferredLocale?: string;
|
|
345
|
+
bookmarks: string[];
|
|
346
|
+
groups: UserGroup[];
|
|
347
|
+
subscription: SubscriptionSummary;
|
|
348
|
+
availableSubscriptions: SubscriptionSummary[];
|
|
349
|
+
channels: UserChannelSubscription[];
|
|
350
|
+
userHash: string;
|
|
351
|
+
unreadNews: PublishableItemNotificationSummary[];
|
|
352
|
+
unreadEvents: PublishableItemNotificationSummary[];
|
|
353
|
+
unreadPosts: {
|
|
354
|
+
groupId: string;
|
|
355
|
+
itemId: string;
|
|
356
|
+
}[];
|
|
357
|
+
unreadFeedItemsCount?: number;
|
|
358
|
+
mostRecentPostGroups: string[];
|
|
359
|
+
notificationTypeSettings: NotificationTypeSettings;
|
|
360
|
+
hasPendingRegistration?: boolean;
|
|
361
|
+
minRoles: UserMinRoles;
|
|
362
|
+
hasDirectory: boolean;
|
|
363
|
+
contacts: UserContact[];
|
|
364
|
+
termsAndConditionsApprovedHash: string;
|
|
365
|
+
isPublicUser?: boolean;
|
|
366
|
+
hasUnreadChats?: boolean;
|
|
367
|
+
publicSubscriptionIds?: string[];
|
|
368
|
+
}
|
|
369
|
+
interface UserContact {
|
|
370
|
+
tokenUniqueId: string;
|
|
371
|
+
tenantId: string;
|
|
378
372
|
}
|
|
379
|
-
|
|
380
|
-
Unknown = 0,
|
|
381
|
-
AdminOnly = 1,
|
|
382
|
-
UserEditable = 2,
|
|
383
|
-
Hidden = 3
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
interface Channel {
|
|
373
|
+
interface GroupBase {
|
|
387
374
|
id: string;
|
|
388
375
|
name: string;
|
|
389
376
|
translations?: {
|
|
390
377
|
[key: string]: string;
|
|
391
378
|
};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
379
|
+
}
|
|
380
|
+
interface UserGroup extends GroupBase {
|
|
381
|
+
allowPosts: boolean;
|
|
382
|
+
disablePostComments: boolean;
|
|
383
|
+
availableChannelIds: string[];
|
|
384
|
+
defaultChannelIds: string[];
|
|
385
|
+
mandatoryChannelIds: string[];
|
|
386
|
+
availableKeywordIds: string[];
|
|
387
|
+
defaultKeywordIds: string[];
|
|
388
|
+
mandatoryKeywordIds: string[];
|
|
389
|
+
role: UserGroupRole;
|
|
390
|
+
}
|
|
391
|
+
interface UserMinRoles {
|
|
392
|
+
isEditor: boolean;
|
|
393
|
+
isAuthor: boolean;
|
|
394
|
+
isAdmin: boolean;
|
|
395
|
+
isReader: boolean;
|
|
396
|
+
isSubscriptionOwner: boolean;
|
|
397
|
+
}
|
|
398
|
+
interface UserGroupRole {
|
|
399
|
+
roleValue: GroupRoles;
|
|
400
|
+
displayName: GroupRoleNames;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
interface ItemStatistics {
|
|
@@ -434,7 +434,7 @@ declare enum KnownNewsState {
|
|
|
434
434
|
declare type VersionId = string;
|
|
435
435
|
interface SchedulableItem extends PublishableItem {
|
|
436
436
|
metadata?: NewsMetadata;
|
|
437
|
-
channels?:
|
|
437
|
+
channels?: Channel[];
|
|
438
438
|
}
|
|
439
439
|
interface NewsItem extends SchedulableItem {
|
|
440
440
|
source?: string;
|
|
@@ -442,20 +442,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
442
442
|
expiryDate?: string;
|
|
443
443
|
knownState: KnownNewsState;
|
|
444
444
|
hasNewComments?: boolean;
|
|
445
|
-
isLiked?: boolean;
|
|
446
|
-
shareToken?: ShareToken;
|
|
447
|
-
}
|
|
448
|
-
interface ShareToken {
|
|
449
|
-
published?: string;
|
|
450
|
-
preview?: string;
|
|
451
445
|
}
|
|
452
446
|
interface NewsItemAlertOptions {
|
|
453
447
|
duration?: string;
|
|
454
448
|
endDate?: Date;
|
|
455
449
|
expireAfter?: boolean;
|
|
456
|
-
}
|
|
457
|
-
interface SchedulableItemChannel {
|
|
458
|
-
name: string;
|
|
459
450
|
}
|
|
460
451
|
|
|
461
452
|
declare enum VideoSource {
|
|
@@ -581,6 +572,7 @@ interface PublishableItem extends BaseItem {
|
|
|
581
572
|
statistics?: ItemStatistics;
|
|
582
573
|
useExternalContent?: boolean;
|
|
583
574
|
isDemoContent?: boolean;
|
|
575
|
+
isLiked?: boolean;
|
|
584
576
|
}
|
|
585
577
|
interface PollTranslation {
|
|
586
578
|
questions: QuestionTranslations[];
|
|
@@ -606,7 +598,8 @@ declare enum AttachmentType {
|
|
|
606
598
|
Event = 5,
|
|
607
599
|
Page = 6,
|
|
608
600
|
Post = 7,
|
|
609
|
-
Giphy = 8
|
|
601
|
+
Giphy = 8,
|
|
602
|
+
MicrosoftStreamVideo = 9
|
|
610
603
|
}
|
|
611
604
|
interface BaseAttachment {
|
|
612
605
|
id: string;
|
|
@@ -622,6 +615,19 @@ interface Attachment extends BaseAttachment {
|
|
|
622
615
|
type: AttachmentType;
|
|
623
616
|
}
|
|
624
617
|
|
|
618
|
+
declare enum GraphQLAttachmentType {
|
|
619
|
+
Image = "IMAGE",
|
|
620
|
+
File = "FILE",
|
|
621
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
622
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
623
|
+
News = "NEWS",
|
|
624
|
+
Event = "EVENT",
|
|
625
|
+
Page = "PAGE",
|
|
626
|
+
Post = "POST",
|
|
627
|
+
Giphy = "GIPHY",
|
|
628
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
629
|
+
}
|
|
630
|
+
|
|
625
631
|
interface ItemWithAttachments {
|
|
626
632
|
attachments?: Attachment[];
|
|
627
633
|
fileAccessToken?: string;
|
|
@@ -682,6 +688,7 @@ interface EventItem extends SchedulableItem {
|
|
|
682
688
|
recurrenceSeriesId?: string;
|
|
683
689
|
isSeriesMaster?: string;
|
|
684
690
|
isVirtual?: boolean;
|
|
691
|
+
isAllDayEvent?: boolean;
|
|
685
692
|
}
|
|
686
693
|
interface EventRegistrationSettings {
|
|
687
694
|
enabled?: boolean;
|
|
@@ -771,6 +778,7 @@ interface PageItem extends PublishableItem {
|
|
|
771
778
|
isUnlinked?: boolean;
|
|
772
779
|
pageType?: PageType;
|
|
773
780
|
firstChildId?: string;
|
|
781
|
+
isGroupInheritanceBroken?: boolean;
|
|
774
782
|
}
|
|
775
783
|
interface ContentsSummary {
|
|
776
784
|
[lang: string]: TitleContent & {
|
|
@@ -792,6 +800,7 @@ interface PageNavigationNode {
|
|
|
792
800
|
hasAnyPageChild?: boolean;
|
|
793
801
|
pageType?: PageType;
|
|
794
802
|
useExternalContent?: boolean;
|
|
803
|
+
isGroupInheritanceBroken?: boolean;
|
|
795
804
|
isSearchMatch?: boolean;
|
|
796
805
|
topLevelFolderName?: string;
|
|
797
806
|
uploadToken?: string;
|
|
@@ -806,7 +815,65 @@ declare enum PageType {
|
|
|
806
815
|
Document = 1
|
|
807
816
|
}
|
|
808
817
|
|
|
809
|
-
declare
|
|
818
|
+
declare type KeywordsByGroupId = {
|
|
819
|
+
[key: string]: Keyword[];
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
interface SubscriptionData {
|
|
823
|
+
channels?: Channel[];
|
|
824
|
+
allKeywords?: Keyword[];
|
|
825
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
826
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
827
|
+
}
|
|
828
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
829
|
+
getChannels: () => Promise<Channel[]>;
|
|
830
|
+
refreshSubscription: () => void;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
834
|
+
|
|
835
|
+
interface NewsDetailProps {
|
|
836
|
+
itemId?: string;
|
|
837
|
+
hideComments?: boolean;
|
|
838
|
+
hideLikes?: boolean;
|
|
839
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
840
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
841
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
842
|
+
className?: string;
|
|
843
|
+
}
|
|
844
|
+
declare const NewsDetail: FC<NewsDetailProps>;
|
|
845
|
+
|
|
846
|
+
interface PageDetailProps {
|
|
847
|
+
itemId?: string;
|
|
848
|
+
hideComments?: boolean;
|
|
849
|
+
hideLikes?: boolean;
|
|
850
|
+
preventExternalContentAutoRedirect?: boolean;
|
|
851
|
+
homeBreadcrumbTargetUrl?: string;
|
|
852
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
853
|
+
className?: string;
|
|
854
|
+
}
|
|
855
|
+
declare const PageDetail: FC<PageDetailProps>;
|
|
856
|
+
|
|
857
|
+
interface EventDetailProps {
|
|
858
|
+
itemId?: string;
|
|
859
|
+
hideComments?: boolean;
|
|
860
|
+
hideLikes?: boolean;
|
|
861
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
862
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
863
|
+
className?: string;
|
|
864
|
+
}
|
|
865
|
+
declare const EventDetail: FC<EventDetailProps>;
|
|
866
|
+
|
|
867
|
+
interface PostDetailProps {
|
|
868
|
+
postId: string;
|
|
869
|
+
threadId?: string;
|
|
870
|
+
onAfterDelete?: (id: string) => unknown;
|
|
871
|
+
commentCount?: number;
|
|
872
|
+
onItemClick?: (postId: string) => unknown;
|
|
873
|
+
}
|
|
874
|
+
declare const PostDetail: FC<PostDetailProps>;
|
|
875
|
+
|
|
876
|
+
declare const LegacyDialog: FC<IDialogProps>;
|
|
810
877
|
|
|
811
878
|
interface ToolbarProps {
|
|
812
879
|
leftSide?: ReactNode;
|
|
@@ -823,6 +890,12 @@ interface ToolbarSearchProps {
|
|
|
823
890
|
}
|
|
824
891
|
declare const Toolbar: FC<ToolbarProps>;
|
|
825
892
|
|
|
893
|
+
declare type TokenType = string | number;
|
|
894
|
+
|
|
895
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
896
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
897
|
+
}
|
|
898
|
+
|
|
826
899
|
interface ToolbarChannelSelectorProps {
|
|
827
900
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
828
901
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -868,6 +941,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
868
941
|
onClick: () => unknown;
|
|
869
942
|
}>;
|
|
870
943
|
|
|
944
|
+
declare const ToolbarManageButton: FC<{
|
|
945
|
+
onClick?: () => unknown;
|
|
946
|
+
to?: {
|
|
947
|
+
url: string;
|
|
948
|
+
target?: string;
|
|
949
|
+
};
|
|
950
|
+
disabled?: boolean;
|
|
951
|
+
}>;
|
|
952
|
+
|
|
871
953
|
interface ToolbarCloseButtonProps {
|
|
872
954
|
onClick?: () => unknown;
|
|
873
955
|
to?: {
|
|
@@ -896,8 +978,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
896
978
|
interface Props extends IPersonaProps {
|
|
897
979
|
upn: string;
|
|
898
980
|
tenantId?: string;
|
|
899
|
-
className?: string;
|
|
900
981
|
displayName?: string;
|
|
982
|
+
forceShowSecondaryText?: boolean;
|
|
983
|
+
className?: string;
|
|
901
984
|
}
|
|
902
985
|
declare const Avatar: FC<Props>;
|
|
903
986
|
|
|
@@ -908,6 +991,13 @@ interface UserDetailsProps {
|
|
|
908
991
|
}
|
|
909
992
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
910
993
|
|
|
994
|
+
declare enum ErrorType {
|
|
995
|
+
GenericError = "genericError",
|
|
996
|
+
Error404 = "error404",
|
|
997
|
+
Error403 = "error403",
|
|
998
|
+
LoginError = "loginError"
|
|
999
|
+
}
|
|
1000
|
+
|
|
911
1001
|
interface PageViewTrackerSettings {
|
|
912
1002
|
disabled?: boolean;
|
|
913
1003
|
}
|
|
@@ -954,6 +1044,32 @@ declare enum LogicalOperator {
|
|
|
954
1044
|
And = "AND"
|
|
955
1045
|
}
|
|
956
1046
|
|
|
1047
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1048
|
+
id: string;
|
|
1049
|
+
comments?: PaginatedList<Comment>;
|
|
1050
|
+
groupId: string;
|
|
1051
|
+
content: string;
|
|
1052
|
+
permalink?: string;
|
|
1053
|
+
author: Account;
|
|
1054
|
+
publishingDate: string;
|
|
1055
|
+
modified?: string;
|
|
1056
|
+
statistics: ItemStatistics;
|
|
1057
|
+
keywords?: {
|
|
1058
|
+
[key: string]: Keyword[];
|
|
1059
|
+
};
|
|
1060
|
+
contentLanguageCode?: string;
|
|
1061
|
+
isLiked?: boolean;
|
|
1062
|
+
isUnread?: boolean;
|
|
1063
|
+
isDemoContent?: boolean;
|
|
1064
|
+
isFollowing?: boolean;
|
|
1065
|
+
}
|
|
1066
|
+
interface PostFilterDefinition {
|
|
1067
|
+
token?: string;
|
|
1068
|
+
pageSize?: string;
|
|
1069
|
+
search?: string;
|
|
1070
|
+
keywords?: FilterWithLogicalOperator;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
957
1073
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
958
1074
|
author?: string;
|
|
959
1075
|
}
|
|
@@ -962,6 +1078,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
962
1078
|
channels?: FilterWithLogicalOperator;
|
|
963
1079
|
}
|
|
964
1080
|
|
|
1081
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1082
|
+
contacts?: string[];
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1086
|
+
startsAfter?: string;
|
|
1087
|
+
startsBefore?: string;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1091
|
+
excludePastEvents?: boolean;
|
|
1092
|
+
pastEventsOnly?: boolean;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
965
1095
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
966
1096
|
state?: WorkflowStatus;
|
|
967
1097
|
}
|
|
@@ -973,26 +1103,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
973
1103
|
includeExpired?: boolean;
|
|
974
1104
|
}
|
|
975
1105
|
|
|
1106
|
+
declare enum StreamEventResponse {
|
|
1107
|
+
NotSet = "NOTSET",
|
|
1108
|
+
Registered = "REGISTERED",
|
|
1109
|
+
Declined = "DECLINED"
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
declare enum StreamItemTypes {
|
|
1113
|
+
Post = "POST",
|
|
1114
|
+
News = "NEWS",
|
|
1115
|
+
Event = "EVENT",
|
|
1116
|
+
Page = "PAGE"
|
|
1117
|
+
}
|
|
1118
|
+
declare enum StreamConversationScope {
|
|
1119
|
+
Public = "PUBLIC",
|
|
1120
|
+
Editor = "EDITOR",
|
|
1121
|
+
Posts = "POSTS"
|
|
1122
|
+
}
|
|
1123
|
+
interface PostStreamItem extends Post {
|
|
1124
|
+
type: StreamItemTypes.Post;
|
|
1125
|
+
isUnread: boolean;
|
|
1126
|
+
keywordsList?: Keyword[];
|
|
1127
|
+
groupIds?: string[];
|
|
1128
|
+
postAttachments?: StreamAttachment[];
|
|
1129
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1130
|
+
hasMoreUnreadComments: boolean;
|
|
1131
|
+
}
|
|
1132
|
+
interface StreamPostComment extends Comment {
|
|
1133
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1134
|
+
streamConversationScope?: StreamConversationScope;
|
|
1135
|
+
}
|
|
1136
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1137
|
+
type: GraphQLAttachmentType;
|
|
1138
|
+
}
|
|
1139
|
+
interface NewsStreamItem extends NewsItem {
|
|
1140
|
+
type: StreamItemTypes.News;
|
|
1141
|
+
contentsList: StreamPublishableItemContents[];
|
|
1142
|
+
channelsList: Channel[];
|
|
1143
|
+
isUnread: boolean;
|
|
1144
|
+
keywordsList?: Keyword[];
|
|
1145
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1146
|
+
}
|
|
1147
|
+
declare enum StreamKnownNewsState {
|
|
1148
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1149
|
+
Alert = "ALERT"
|
|
1150
|
+
}
|
|
1151
|
+
interface EventStreamItem extends EventItem {
|
|
1152
|
+
type: StreamItemTypes.Event;
|
|
1153
|
+
contentsList: StreamPublishableItemContents[];
|
|
1154
|
+
channelsList: Channel[];
|
|
1155
|
+
isUnread: boolean;
|
|
1156
|
+
keywordsList?: Keyword[];
|
|
1157
|
+
userResponseType?: StreamEventResponse;
|
|
1158
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1159
|
+
}
|
|
1160
|
+
interface PageStreamItem extends PageItem {
|
|
1161
|
+
type: StreamItemTypes.Page;
|
|
1162
|
+
contentsList: StreamPublishableItemContents[];
|
|
1163
|
+
channelsList: Channel[];
|
|
1164
|
+
isUnread: boolean;
|
|
1165
|
+
keywordsList?: Keyword[];
|
|
1166
|
+
streamPageType?: string;
|
|
1167
|
+
path?: (PageNavigationNode & {
|
|
1168
|
+
parentId?: string;
|
|
1169
|
+
contentsList: StreamPublishableItemContents[];
|
|
1170
|
+
})[];
|
|
1171
|
+
}
|
|
1172
|
+
interface StreamPublishableItemContents {
|
|
1173
|
+
language: string;
|
|
1174
|
+
title: string;
|
|
1175
|
+
intro?: string;
|
|
1176
|
+
headline?: string;
|
|
1177
|
+
}
|
|
1178
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1179
|
+
cancellationReasons?: {
|
|
1180
|
+
[key: string]: string;
|
|
1181
|
+
}[];
|
|
1182
|
+
}
|
|
1183
|
+
|
|
976
1184
|
interface TargetLinkOverrideContextProps {
|
|
977
1185
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
978
1186
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
979
1187
|
}
|
|
980
1188
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
981
1189
|
|
|
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
1190
|
interface KeywordPickerProps {
|
|
997
1191
|
value?: Keyword[] | string[];
|
|
998
1192
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -1013,37 +1207,26 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1013
1207
|
pageType?: PageType;
|
|
1014
1208
|
}
|
|
1015
1209
|
|
|
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
|
-
}
|
|
1210
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1211
|
+
|
|
1212
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1041
1213
|
|
|
1042
1214
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1043
1215
|
}
|
|
1044
1216
|
|
|
1217
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1218
|
+
|
|
1219
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1220
|
+
|
|
1045
1221
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1222
|
+
/**
|
|
1223
|
+
* Limit results to those associated with the given channels.
|
|
1224
|
+
* For better performance set channel IDs instead of names.
|
|
1225
|
+
*/
|
|
1046
1226
|
channels?: string | FilterWithLogicalOperator;
|
|
1227
|
+
/**
|
|
1228
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1229
|
+
*/
|
|
1047
1230
|
keywords?: string | FilterWithLogicalOperator;
|
|
1048
1231
|
}
|
|
1049
1232
|
|
|
@@ -1056,8 +1239,8 @@ interface NewsListProps {
|
|
|
1056
1239
|
searchText?: string;
|
|
1057
1240
|
itemLayoutMode?: ItemLayoutMode;
|
|
1058
1241
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1059
|
-
onChannelClick?: (
|
|
1060
|
-
onKeywordClick?: (
|
|
1242
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1243
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1061
1244
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1062
1245
|
hidePagination?: boolean;
|
|
1063
1246
|
pageSize?: number;
|
|
@@ -1074,6 +1257,9 @@ declare const ManageChannels: FC<ManageChannelsProps>;
|
|
|
1074
1257
|
interface ChannelSelectorWrapperProps {
|
|
1075
1258
|
onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
|
|
1076
1259
|
showLogicalOperatorOptions?: boolean;
|
|
1260
|
+
/**
|
|
1261
|
+
* For better performance set channel IDs instead of names.
|
|
1262
|
+
*/
|
|
1077
1263
|
defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
|
|
1078
1264
|
className?: string;
|
|
1079
1265
|
}
|
|
@@ -1090,10 +1276,11 @@ interface NewsGridProps {
|
|
|
1090
1276
|
maxColumnCount?: number;
|
|
1091
1277
|
rowCount?: number;
|
|
1092
1278
|
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1093
|
-
onChannelClick?: (
|
|
1094
|
-
onKeywordClick?: (
|
|
1279
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1280
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1095
1281
|
includeAllItems?: boolean;
|
|
1096
1282
|
className?: string;
|
|
1283
|
+
hideIntro?: boolean;
|
|
1097
1284
|
}
|
|
1098
1285
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1099
1286
|
|
|
@@ -1109,7 +1296,7 @@ interface EventGridProps {
|
|
|
1109
1296
|
maxColumnCount?: number;
|
|
1110
1297
|
rowCount?: number;
|
|
1111
1298
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1112
|
-
onChannelClick?: (
|
|
1299
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1113
1300
|
className?: string;
|
|
1114
1301
|
}
|
|
1115
1302
|
declare const EventsGrid: FC<EventGridProps>;
|
|
@@ -1120,7 +1307,7 @@ interface EventsListProps {
|
|
|
1120
1307
|
searchText?: string;
|
|
1121
1308
|
itemLayoutMode?: ItemLayoutMode;
|
|
1122
1309
|
onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
|
|
1123
|
-
onChannelClick?: (
|
|
1310
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1124
1311
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1125
1312
|
hidePagination?: boolean;
|
|
1126
1313
|
pageSize?: number;
|
|
@@ -1129,7 +1316,14 @@ interface EventsListProps {
|
|
|
1129
1316
|
declare const EventsList: FC<EventsListProps>;
|
|
1130
1317
|
|
|
1131
1318
|
interface NewsHeroFilterProps {
|
|
1319
|
+
/**
|
|
1320
|
+
* Limit results to those associated with the given channels.
|
|
1321
|
+
* For better performance set channel IDs instead of names.
|
|
1322
|
+
*/
|
|
1132
1323
|
channels?: string | FilterWithLogicalOperator;
|
|
1324
|
+
/**
|
|
1325
|
+
* Limit results to those associated with given keywords (keyword IDs)
|
|
1326
|
+
*/
|
|
1133
1327
|
keywords?: string | FilterWithLogicalOperator;
|
|
1134
1328
|
pageSize?: number;
|
|
1135
1329
|
}
|
|
@@ -1141,8 +1335,8 @@ interface NewsHeroProps {
|
|
|
1141
1335
|
width?: number | string;
|
|
1142
1336
|
height?: number | string;
|
|
1143
1337
|
includeAllItems?: boolean;
|
|
1144
|
-
onChannelClick?: (
|
|
1145
|
-
onKeywordClick?: (
|
|
1338
|
+
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1339
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1146
1340
|
showKeywords?: boolean;
|
|
1147
1341
|
}
|
|
1148
1342
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
@@ -1171,27 +1365,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1171
1365
|
itemId: string;
|
|
1172
1366
|
}>;
|
|
1173
1367
|
|
|
1174
|
-
declare const
|
|
1368
|
+
declare const PageItemContextProvider: FC<{
|
|
1369
|
+
itemId: string;
|
|
1370
|
+
}>;
|
|
1371
|
+
|
|
1372
|
+
declare const EventItemContextProvider: FC<{
|
|
1373
|
+
itemId: string;
|
|
1374
|
+
}>;
|
|
1375
|
+
|
|
1376
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1175
1377
|
showEditLanguagePreferences?: boolean;
|
|
1176
1378
|
onEditLanguagePreferences?: () => unknown;
|
|
1177
1379
|
}>;
|
|
1178
1380
|
|
|
1381
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1382
|
+
onClick?: (itemId: string) => unknown;
|
|
1383
|
+
}>;
|
|
1179
1384
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1180
1385
|
onClick?: (itemId: string) => unknown;
|
|
1181
1386
|
}>;
|
|
1182
1387
|
|
|
1183
|
-
interface
|
|
1388
|
+
interface SharedItemDetailPreviewProps {
|
|
1184
1389
|
itemId?: string;
|
|
1185
1390
|
versionId?: string;
|
|
1186
1391
|
className?: string;
|
|
1392
|
+
hideLikes?: boolean;
|
|
1393
|
+
hideComments?: boolean;
|
|
1187
1394
|
}
|
|
1188
|
-
declare const NewsDetailPreview: FC<
|
|
1395
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1396
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1397
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1189
1398
|
|
|
1190
1399
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1191
1400
|
itemId: string;
|
|
1192
1401
|
versionId?: string;
|
|
1193
1402
|
}>;
|
|
1194
1403
|
|
|
1404
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1405
|
+
itemId: string;
|
|
1406
|
+
versionId?: string;
|
|
1407
|
+
}>;
|
|
1408
|
+
|
|
1409
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1410
|
+
itemId: string;
|
|
1411
|
+
versionId?: string;
|
|
1412
|
+
}>;
|
|
1413
|
+
|
|
1195
1414
|
interface FilterProps {
|
|
1196
1415
|
filter: IndexableFilterDefinition;
|
|
1197
1416
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1200,6 +1419,9 @@ interface FilterProps {
|
|
|
1200
1419
|
declare const ToolbarFilterPanel: FC<FilterProps>;
|
|
1201
1420
|
|
|
1202
1421
|
interface ChannelFilterProps {
|
|
1422
|
+
/**
|
|
1423
|
+
* For better performance set channel IDs instead of names.
|
|
1424
|
+
*/
|
|
1203
1425
|
channels?: string[];
|
|
1204
1426
|
className?: string;
|
|
1205
1427
|
}
|
|
@@ -1348,7 +1570,8 @@ interface PagesGridProps {
|
|
|
1348
1570
|
maxColumnCount?: number;
|
|
1349
1571
|
rowCount?: number;
|
|
1350
1572
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1351
|
-
onKeywordClick?: (
|
|
1573
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1574
|
+
hideIntro?: boolean;
|
|
1352
1575
|
className?: string;
|
|
1353
1576
|
}
|
|
1354
1577
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1358,7 +1581,7 @@ interface PagesListProps {
|
|
|
1358
1581
|
searchText?: string;
|
|
1359
1582
|
itemLayoutMode?: ItemLayoutMode;
|
|
1360
1583
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1361
|
-
onKeywordClick?: (
|
|
1584
|
+
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => void;
|
|
1362
1585
|
hidePlaceholderIfNoBanner?: boolean;
|
|
1363
1586
|
hidePagination?: boolean;
|
|
1364
1587
|
pageSize?: number;
|
|
@@ -1389,8 +1612,6 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1389
1612
|
declare const EventEditorToolbarStateActions: FC;
|
|
1390
1613
|
|
|
1391
1614
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1392
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1393
|
-
onResetModifiedInstance: () => void;
|
|
1394
1615
|
className?: string;
|
|
1395
1616
|
}
|
|
1396
1617
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
@@ -1398,10 +1619,34 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1398
1619
|
interface PageEditorContextProviderProps {
|
|
1399
1620
|
itemId?: string;
|
|
1400
1621
|
groupId?: string;
|
|
1622
|
+
parentId?: string;
|
|
1401
1623
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1402
1624
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1403
1625
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1404
1626
|
}
|
|
1405
1627
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1406
1628
|
|
|
1407
|
-
|
|
1629
|
+
interface PageEditorProps {
|
|
1630
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1631
|
+
className?: string;
|
|
1632
|
+
}
|
|
1633
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1634
|
+
|
|
1635
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1636
|
+
|
|
1637
|
+
interface PageEditorPanelProps {
|
|
1638
|
+
className?: string;
|
|
1639
|
+
}
|
|
1640
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1641
|
+
|
|
1642
|
+
interface ErrorWrapperProps {
|
|
1643
|
+
errorType: ErrorType;
|
|
1644
|
+
isList?: boolean;
|
|
1645
|
+
}
|
|
1646
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1647
|
+
|
|
1648
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1649
|
+
onClick?: () => unknown;
|
|
1650
|
+
}>;
|
|
1651
|
+
|
|
1652
|
+
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, LegacyDialog 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 };
|