@livetiles/reach-components-react 0.5.0-preview.52 → 0.5.0-preview.521
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/EmojiPicker.esm.esm.js +1 -1
- package/ErrorWrapper.d.ts +3 -2
- package/EventDetail.d.ts +9 -1
- package/EventGridCard.d.ts +4 -4
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsEditorDashboard.d.ts +2 -1
- package/NewsDetail.d.ts +4 -0
- package/NewsDetailViewMetaInfo.d.ts +3 -1
- package/NewsGrid.d.ts +1 -0
- package/NewsGridCard.d.ts +6 -5
- package/PageDetail.d.ts +9 -1
- package/PageGridCard.d.ts +1 -0
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +3 -2
- package/PagesGrid.d.ts +1 -0
- package/PublishableItemEditorDashboard.d.ts +3 -2
- package/PublishableItemGrid.d.ts +3 -2
- package/PublishableItemList.d.ts +3 -2
- package/ReachContext.d.ts +14 -0
- package/SharedItemDetailPreview.d.ts +16 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-f51a2a4b.esm.js +1 -0
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/NewPublishableItemButton.d.ts +1 -0
- package/common/hero/Hero.d.ts +2 -3
- package/common/utils.d.ts +1 -3
- package/da.async.esm2.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/NewsEditorDashboard.d.ts +2 -1
- package/editor/PageEditor.d.ts +6 -0
- package/editor/PageEditorContextProvider.d.ts +11 -0
- package/editor/PageEditorPanel.d.ts +5 -0
- package/editor/PageEditorToolbarStateActions.d.ts +2 -0
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/fr.async.esm2.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 +331 -93
- package/index.esm.js +1 -1
- package/index.esm2.js +105 -22
- package/index.umd-3ae1841e.esm.js +1 -0
- package/index.umd.js +826 -26
- 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.async.esm2.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/md.transition.esm.js +4 -0
- package/mllike.esm.js +1 -0
- package/package.json +1 -1
- package/python.esm.js +1 -0
- package/rpm.esm.js +1 -0
- package/sql.esm.js +1 -0
- package/status-tap.esm.js +4 -0
- package/swipe-back.esm.js +4 -0
- package/swiper.bundle.esm.js +4 -0
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
package/index.d.ts
CHANGED
|
@@ -1,18 +1,65 @@
|
|
|
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
|
|
|
6
|
+
declare enum AuthenticationType {
|
|
7
|
+
unknown = 0,
|
|
8
|
+
azuread = 1,
|
|
9
|
+
b2c = 3,
|
|
10
|
+
temporary = 4,
|
|
11
|
+
apiKey = 5,
|
|
12
|
+
teams = 6,
|
|
13
|
+
onPremKeycloak = 7,
|
|
14
|
+
openId = 8,
|
|
15
|
+
public = 99
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare enum IdentityProviderNames {
|
|
19
|
+
MicrosoftWork = "microsoft-work",
|
|
20
|
+
Google = "google",
|
|
21
|
+
EMail = "email",
|
|
22
|
+
Apple = "apple"
|
|
23
|
+
}
|
|
24
|
+
interface IdentityProviderSettings {
|
|
25
|
+
name: string;
|
|
26
|
+
issuer: string;
|
|
27
|
+
clientId: string;
|
|
28
|
+
realm: string;
|
|
29
|
+
url: string;
|
|
30
|
+
scope: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface VideoSource$1 {
|
|
34
|
+
prefix: string;
|
|
35
|
+
name: string;
|
|
36
|
+
alwaysShowPlayer?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
5
39
|
declare type ReachContextProps = {
|
|
6
40
|
config?: {
|
|
7
41
|
apiEndpoint?: string;
|
|
8
42
|
webAppUrl?: string;
|
|
9
43
|
api3Endpoint?: string;
|
|
10
44
|
webSocketsEndpoint?: string;
|
|
45
|
+
additionalVideoSources?: VideoSource$1[];
|
|
11
46
|
};
|
|
12
47
|
onRequestToken?: () => Promise<string>;
|
|
13
48
|
subscriptionId: string;
|
|
14
49
|
language?: string;
|
|
15
50
|
disableUiFabricThemeOverwrite?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* These properties can be used to define the behavior of the analytics module.
|
|
53
|
+
*
|
|
54
|
+
* With `disableAnalytics` you can completely disable all analytics tracking.
|
|
55
|
+
* The `appName` is optional but highly encouraged to be set,
|
|
56
|
+
* in order to know where the components are used in. The value must be a non-empty string,
|
|
57
|
+
* only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
|
|
58
|
+
*/
|
|
59
|
+
analyticsProps?: {
|
|
60
|
+
disableAnalytics?: boolean;
|
|
61
|
+
appName?: string;
|
|
62
|
+
};
|
|
16
63
|
};
|
|
17
64
|
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
18
65
|
|
|
@@ -21,23 +68,29 @@ interface NewsDetailProps {
|
|
|
21
68
|
hideComments?: boolean;
|
|
22
69
|
hideLikes?: boolean;
|
|
23
70
|
preventExternalContentAutoRedirect?: boolean;
|
|
71
|
+
onChannelClick?: (channel: string) => unknown;
|
|
72
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
24
73
|
className?: string;
|
|
25
74
|
}
|
|
26
75
|
declare const NewsDetail: FC<NewsDetailProps>;
|
|
27
76
|
|
|
28
77
|
interface PageDetailProps {
|
|
29
|
-
itemId
|
|
78
|
+
itemId?: string;
|
|
30
79
|
hideComments?: boolean;
|
|
31
80
|
hideLikes?: boolean;
|
|
32
81
|
preventExternalContentAutoRedirect?: boolean;
|
|
82
|
+
homeBreadcrumbTargetUrl?: string;
|
|
83
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
33
84
|
className?: string;
|
|
34
85
|
}
|
|
35
86
|
declare const PageDetail: FC<PageDetailProps>;
|
|
36
87
|
|
|
37
88
|
interface EventDetailProps {
|
|
38
|
-
itemId
|
|
89
|
+
itemId?: string;
|
|
39
90
|
hideComments?: boolean;
|
|
40
91
|
hideLikes?: boolean;
|
|
92
|
+
onChannelClick?: (channel: string) => unknown;
|
|
93
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
41
94
|
className?: string;
|
|
42
95
|
}
|
|
43
96
|
declare const EventDetail: FC<EventDetailProps>;
|
|
@@ -59,33 +112,6 @@ interface PaginatedList<TItem> {
|
|
|
59
112
|
hasNextPage?: boolean;
|
|
60
113
|
}
|
|
61
114
|
|
|
62
|
-
declare enum AuthenticationType {
|
|
63
|
-
unknown = 0,
|
|
64
|
-
azuread = 1,
|
|
65
|
-
b2c = 3,
|
|
66
|
-
temporary = 4,
|
|
67
|
-
apiKey = 5,
|
|
68
|
-
teams = 6,
|
|
69
|
-
onPremKeycloak = 7,
|
|
70
|
-
openId = 8,
|
|
71
|
-
public = 99
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare enum IdentityProviderNames {
|
|
75
|
-
MicrosoftWork = "microsoft-work",
|
|
76
|
-
Google = "google",
|
|
77
|
-
EMail = "email",
|
|
78
|
-
Apple = "apple"
|
|
79
|
-
}
|
|
80
|
-
interface IdentityProviderSettings {
|
|
81
|
-
name: string;
|
|
82
|
-
issuer: string;
|
|
83
|
-
clientId: string;
|
|
84
|
-
realm: string;
|
|
85
|
-
url: string;
|
|
86
|
-
scope: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
115
|
interface Resources {
|
|
90
116
|
[language: string]: Record<string, string>;
|
|
91
117
|
}
|
|
@@ -156,6 +182,8 @@ interface NotificationTypeSettings {
|
|
|
156
182
|
pluginNotifications: {
|
|
157
183
|
[key: string]: NotificationType;
|
|
158
184
|
};
|
|
185
|
+
newsEditor: NotificationType;
|
|
186
|
+
eventEditor: NotificationType;
|
|
159
187
|
}
|
|
160
188
|
interface CurrentUser extends Account {
|
|
161
189
|
isEmailVerificationPending?: boolean;
|
|
@@ -187,6 +215,7 @@ interface CurrentUser extends Account {
|
|
|
187
215
|
termsAndConditionsApprovedHash: string;
|
|
188
216
|
isPublicUser?: boolean;
|
|
189
217
|
hasUnreadChats?: boolean;
|
|
218
|
+
publicSubscriptionIds?: string[];
|
|
190
219
|
}
|
|
191
220
|
interface UserContact {
|
|
192
221
|
tokenUniqueId: string;
|
|
@@ -284,6 +313,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
313
|
customDomain?: string;
|
|
285
314
|
allowSelfRegistration?: boolean;
|
|
286
315
|
brandFolderConfig?: BrandFolderConfig;
|
|
316
|
+
hideSubscriptionName?: boolean;
|
|
287
317
|
}
|
|
288
318
|
interface BrandFolderConfig {
|
|
289
319
|
sections?: string[];
|
|
@@ -314,9 +344,21 @@ interface WebPluginDefinition {
|
|
|
314
344
|
subscriptionId?: string;
|
|
315
345
|
environment?: string;
|
|
316
346
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
347
|
+
declare enum ExtensionArea {
|
|
348
|
+
global = "Global",
|
|
349
|
+
page = "Page",
|
|
350
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
351
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
352
|
+
itemEditor = "ItemEditor",
|
|
353
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
354
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
355
|
+
}
|
|
356
|
+
declare type InlinePlugin = {
|
|
357
|
+
area: ExtensionArea.itemEditor;
|
|
358
|
+
objectButton: PluginObjectButton;
|
|
359
|
+
};
|
|
360
|
+
declare type PagePlugin = {
|
|
361
|
+
area: ExtensionArea.page;
|
|
320
362
|
route: string;
|
|
321
363
|
navigationNode?: {
|
|
322
364
|
componentName?: string;
|
|
@@ -326,7 +368,20 @@ interface PluginExtension {
|
|
|
326
368
|
[key: string]: string;
|
|
327
369
|
};
|
|
328
370
|
};
|
|
329
|
-
}
|
|
371
|
+
};
|
|
372
|
+
declare type PluginExtension = {
|
|
373
|
+
area: ExtensionArea;
|
|
374
|
+
componentName: string;
|
|
375
|
+
} & (InlinePlugin | PagePlugin);
|
|
376
|
+
declare type PluginObjectButton = {
|
|
377
|
+
buttonLabel: {
|
|
378
|
+
defaultLabel: string;
|
|
379
|
+
translations?: {
|
|
380
|
+
[key: string]: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
iconName: string;
|
|
384
|
+
};
|
|
330
385
|
interface PluginNotificationDefinitions {
|
|
331
386
|
key: string;
|
|
332
387
|
title: string;
|
|
@@ -360,14 +415,14 @@ declare enum FieldMode {
|
|
|
360
415
|
Hidden = 3
|
|
361
416
|
}
|
|
362
417
|
|
|
363
|
-
interface
|
|
418
|
+
interface KeywordGroup {
|
|
364
419
|
id: string;
|
|
365
420
|
name: string;
|
|
366
|
-
|
|
421
|
+
keywords: Keyword[];
|
|
422
|
+
translations: {
|
|
367
423
|
[key: string]: string;
|
|
368
424
|
};
|
|
369
|
-
}
|
|
370
|
-
|
|
425
|
+
}
|
|
371
426
|
interface Keyword {
|
|
372
427
|
id: string;
|
|
373
428
|
name: string;
|
|
@@ -408,10 +463,18 @@ declare enum KnownNewsState {
|
|
|
408
463
|
Alert = 2
|
|
409
464
|
}
|
|
410
465
|
|
|
466
|
+
interface Channel {
|
|
467
|
+
id: string;
|
|
468
|
+
name: string;
|
|
469
|
+
translations?: {
|
|
470
|
+
[key: string]: string;
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
|
|
411
474
|
declare type VersionId = string;
|
|
412
475
|
interface SchedulableItem extends PublishableItem {
|
|
413
476
|
metadata?: NewsMetadata;
|
|
414
|
-
channels?:
|
|
477
|
+
channels?: Channel[];
|
|
415
478
|
}
|
|
416
479
|
interface NewsItem extends SchedulableItem {
|
|
417
480
|
source?: string;
|
|
@@ -419,20 +482,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
419
482
|
expiryDate?: string;
|
|
420
483
|
knownState: KnownNewsState;
|
|
421
484
|
hasNewComments?: boolean;
|
|
422
|
-
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
485
|
}
|
|
429
486
|
interface NewsItemAlertOptions {
|
|
430
487
|
duration?: string;
|
|
431
488
|
endDate?: Date;
|
|
432
489
|
expireAfter?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface SchedulableItemChannel {
|
|
435
|
-
name: string;
|
|
436
490
|
}
|
|
437
491
|
|
|
438
492
|
declare enum VideoSource {
|
|
@@ -558,6 +612,7 @@ interface PublishableItem extends BaseItem {
|
|
|
558
612
|
statistics?: ItemStatistics;
|
|
559
613
|
useExternalContent?: boolean;
|
|
560
614
|
isDemoContent?: boolean;
|
|
615
|
+
isLiked?: boolean;
|
|
561
616
|
}
|
|
562
617
|
interface PollTranslation {
|
|
563
618
|
questions: QuestionTranslations[];
|
|
@@ -599,6 +654,18 @@ interface Attachment extends BaseAttachment {
|
|
|
599
654
|
type: AttachmentType;
|
|
600
655
|
}
|
|
601
656
|
|
|
657
|
+
declare enum GraphQLAttachmentType {
|
|
658
|
+
Image = "IMAGE",
|
|
659
|
+
File = "FILE",
|
|
660
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
661
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
662
|
+
News = "NEWS",
|
|
663
|
+
Event = "EVENT",
|
|
664
|
+
Page = "PAGE",
|
|
665
|
+
Post = "POST",
|
|
666
|
+
Giphy = "GIPHY"
|
|
667
|
+
}
|
|
668
|
+
|
|
602
669
|
interface ItemWithAttachments {
|
|
603
670
|
attachments?: Attachment[];
|
|
604
671
|
fileAccessToken?: string;
|
|
@@ -748,6 +815,7 @@ interface PageItem extends PublishableItem {
|
|
|
748
815
|
isUnlinked?: boolean;
|
|
749
816
|
pageType?: PageType;
|
|
750
817
|
firstChildId?: string;
|
|
818
|
+
isGroupInheritanceBroken?: boolean;
|
|
751
819
|
}
|
|
752
820
|
interface ContentsSummary {
|
|
753
821
|
[lang: string]: TitleContent & {
|
|
@@ -769,6 +837,7 @@ interface PageNavigationNode {
|
|
|
769
837
|
hasAnyPageChild?: boolean;
|
|
770
838
|
pageType?: PageType;
|
|
771
839
|
useExternalContent?: boolean;
|
|
840
|
+
isGroupInheritanceBroken?: boolean;
|
|
772
841
|
isSearchMatch?: boolean;
|
|
773
842
|
topLevelFolderName?: string;
|
|
774
843
|
uploadToken?: string;
|
|
@@ -783,6 +852,23 @@ declare enum PageType {
|
|
|
783
852
|
Document = 1
|
|
784
853
|
}
|
|
785
854
|
|
|
855
|
+
declare type KeywordsByGroupId = {
|
|
856
|
+
[key: string]: Keyword[];
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
interface SubscriptionData {
|
|
860
|
+
channels?: Channel[];
|
|
861
|
+
allKeywords?: Keyword[];
|
|
862
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
863
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
864
|
+
}
|
|
865
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
866
|
+
getChannels: () => Promise<Channel[]>;
|
|
867
|
+
refreshSubscription: () => void;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
871
|
+
|
|
786
872
|
declare const Dialog: FC<IDialogProps>;
|
|
787
873
|
|
|
788
874
|
interface ToolbarProps {
|
|
@@ -800,6 +886,12 @@ interface ToolbarSearchProps {
|
|
|
800
886
|
}
|
|
801
887
|
declare const Toolbar: FC<ToolbarProps>;
|
|
802
888
|
|
|
889
|
+
declare type TokenType = string | number;
|
|
890
|
+
|
|
891
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
892
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
893
|
+
}
|
|
894
|
+
|
|
803
895
|
interface ToolbarChannelSelectorProps {
|
|
804
896
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
805
897
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -873,8 +965,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
873
965
|
interface Props extends IPersonaProps {
|
|
874
966
|
upn: string;
|
|
875
967
|
tenantId?: string;
|
|
876
|
-
className?: string;
|
|
877
968
|
displayName?: string;
|
|
969
|
+
forceShowSecondaryText?: boolean;
|
|
970
|
+
className?: string;
|
|
878
971
|
}
|
|
879
972
|
declare const Avatar: FC<Props>;
|
|
880
973
|
|
|
@@ -885,6 +978,13 @@ interface UserDetailsProps {
|
|
|
885
978
|
}
|
|
886
979
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
887
980
|
|
|
981
|
+
declare enum ErrorType {
|
|
982
|
+
GenericError = "genericError",
|
|
983
|
+
Error404 = "error404",
|
|
984
|
+
Error403 = "error403",
|
|
985
|
+
LoginError = "loginError"
|
|
986
|
+
}
|
|
987
|
+
|
|
888
988
|
interface PageViewTrackerSettings {
|
|
889
989
|
disabled?: boolean;
|
|
890
990
|
}
|
|
@@ -931,6 +1031,32 @@ declare enum LogicalOperator {
|
|
|
931
1031
|
And = "AND"
|
|
932
1032
|
}
|
|
933
1033
|
|
|
1034
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1035
|
+
id: string;
|
|
1036
|
+
comments?: PaginatedList<Comment>;
|
|
1037
|
+
groupId: string;
|
|
1038
|
+
content: string;
|
|
1039
|
+
permalink?: string;
|
|
1040
|
+
author: Account;
|
|
1041
|
+
publishingDate: string;
|
|
1042
|
+
modified?: string;
|
|
1043
|
+
statistics: ItemStatistics;
|
|
1044
|
+
keywords?: {
|
|
1045
|
+
[key: string]: Keyword[];
|
|
1046
|
+
};
|
|
1047
|
+
contentLanguageCode?: string;
|
|
1048
|
+
isLiked?: boolean;
|
|
1049
|
+
isUnread?: boolean;
|
|
1050
|
+
isDemoContent?: boolean;
|
|
1051
|
+
isFollowing?: boolean;
|
|
1052
|
+
}
|
|
1053
|
+
interface PostFilterDefinition {
|
|
1054
|
+
token?: string;
|
|
1055
|
+
pageSize?: string;
|
|
1056
|
+
search?: string;
|
|
1057
|
+
keywords?: FilterWithLogicalOperator;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
934
1060
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
935
1061
|
author?: string;
|
|
936
1062
|
}
|
|
@@ -939,6 +1065,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
939
1065
|
channels?: FilterWithLogicalOperator;
|
|
940
1066
|
}
|
|
941
1067
|
|
|
1068
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1069
|
+
contacts?: string[];
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1073
|
+
startsAfter?: string;
|
|
1074
|
+
startsBefore?: string;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1078
|
+
excludePastEvents?: boolean;
|
|
1079
|
+
pastEventsOnly?: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
942
1082
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
943
1083
|
state?: WorkflowStatus;
|
|
944
1084
|
}
|
|
@@ -950,26 +1090,89 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
950
1090
|
includeExpired?: boolean;
|
|
951
1091
|
}
|
|
952
1092
|
|
|
1093
|
+
declare enum StreamEventResponse {
|
|
1094
|
+
NotSet = "NOTSET",
|
|
1095
|
+
Registered = "REGISTERED",
|
|
1096
|
+
Declined = "DECLINED"
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
declare enum StreamItemTypes {
|
|
1100
|
+
Post = "POST",
|
|
1101
|
+
News = "NEWS",
|
|
1102
|
+
Event = "EVENT",
|
|
1103
|
+
Page = "PAGE"
|
|
1104
|
+
}
|
|
1105
|
+
declare enum StreamConversationScope {
|
|
1106
|
+
Public = "PUBLIC",
|
|
1107
|
+
Editor = "EDITOR",
|
|
1108
|
+
Posts = "POSTS"
|
|
1109
|
+
}
|
|
1110
|
+
interface PostStreamItem extends Post {
|
|
1111
|
+
type: StreamItemTypes.Post;
|
|
1112
|
+
isUnread: boolean;
|
|
1113
|
+
keywordsList?: Keyword[];
|
|
1114
|
+
groupIds?: string[];
|
|
1115
|
+
postAttachments?: StreamAttachment[];
|
|
1116
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1117
|
+
hasMoreUnreadComments: boolean;
|
|
1118
|
+
}
|
|
1119
|
+
interface StreamPostComment extends Comment {
|
|
1120
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1121
|
+
streamConversationScope?: StreamConversationScope;
|
|
1122
|
+
}
|
|
1123
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1124
|
+
type: GraphQLAttachmentType;
|
|
1125
|
+
}
|
|
1126
|
+
interface NewsStreamItem extends NewsItem {
|
|
1127
|
+
type: StreamItemTypes.News;
|
|
1128
|
+
contentsList: StreamPublishableItemContents[];
|
|
1129
|
+
channelsList: string[];
|
|
1130
|
+
isUnread: boolean;
|
|
1131
|
+
keywordsList?: Keyword[];
|
|
1132
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1133
|
+
}
|
|
1134
|
+
declare enum StreamKnownNewsState {
|
|
1135
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1136
|
+
Alert = "ALERT"
|
|
1137
|
+
}
|
|
1138
|
+
interface EventStreamItem extends EventItem {
|
|
1139
|
+
type: StreamItemTypes.Event;
|
|
1140
|
+
contentsList: StreamPublishableItemContents[];
|
|
1141
|
+
channelsList: string[];
|
|
1142
|
+
isUnread: boolean;
|
|
1143
|
+
keywordsList?: Keyword[];
|
|
1144
|
+
userResponseType?: StreamEventResponse;
|
|
1145
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1146
|
+
}
|
|
1147
|
+
interface PageStreamItem extends PageItem {
|
|
1148
|
+
type: StreamItemTypes.Page;
|
|
1149
|
+
contentsList: StreamPublishableItemContents[];
|
|
1150
|
+
channelsList: string[];
|
|
1151
|
+
isUnread: boolean;
|
|
1152
|
+
keywordsList?: Keyword[];
|
|
1153
|
+
streamPageType?: string;
|
|
1154
|
+
path?: (PageNavigationNode & {
|
|
1155
|
+
parentId?: string;
|
|
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,35 +1193,17 @@ 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'> {
|
|
1023
1208
|
channels?: string | FilterWithLogicalOperator;
|
|
1024
1209
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1071,6 +1256,7 @@ interface NewsGridProps {
|
|
|
1071
1256
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1072
1257
|
includeAllItems?: boolean;
|
|
1073
1258
|
className?: string;
|
|
1259
|
+
hideIntro?: boolean;
|
|
1074
1260
|
}
|
|
1075
1261
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1076
1262
|
|
|
@@ -1128,6 +1314,7 @@ interface NewsEditorDashboardProps {
|
|
|
1128
1314
|
groupId?: string;
|
|
1129
1315
|
className?: string;
|
|
1130
1316
|
onItemClick?: (item: NewsItem) => unknown;
|
|
1317
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1131
1318
|
pageSize?: number;
|
|
1132
1319
|
hidePagination?: boolean;
|
|
1133
1320
|
}
|
|
@@ -1137,6 +1324,7 @@ interface EventsEditorDashboardProps {
|
|
|
1137
1324
|
groupId?: string;
|
|
1138
1325
|
className?: string;
|
|
1139
1326
|
onItemClick?: (item: EventItem) => unknown;
|
|
1327
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1140
1328
|
pageSize?: number;
|
|
1141
1329
|
hidePagination?: boolean;
|
|
1142
1330
|
}
|
|
@@ -1146,7 +1334,15 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1146
1334
|
itemId: string;
|
|
1147
1335
|
}>;
|
|
1148
1336
|
|
|
1149
|
-
declare const
|
|
1337
|
+
declare const PageItemContextProvider: FC<{
|
|
1338
|
+
itemId: string;
|
|
1339
|
+
}>;
|
|
1340
|
+
|
|
1341
|
+
declare const EventItemContextProvider: FC<{
|
|
1342
|
+
itemId: string;
|
|
1343
|
+
}>;
|
|
1344
|
+
|
|
1345
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1150
1346
|
showEditLanguagePreferences?: boolean;
|
|
1151
1347
|
onEditLanguagePreferences?: () => unknown;
|
|
1152
1348
|
}>;
|
|
@@ -1155,18 +1351,32 @@ declare const ToolbarManageNewsItemButton: FC<{
|
|
|
1155
1351
|
onClick?: (itemId: string) => unknown;
|
|
1156
1352
|
}>;
|
|
1157
1353
|
|
|
1158
|
-
interface
|
|
1354
|
+
interface SharedItemDetailPreviewProps {
|
|
1159
1355
|
itemId?: string;
|
|
1160
1356
|
versionId?: string;
|
|
1161
1357
|
className?: string;
|
|
1358
|
+
hideLikes?: boolean;
|
|
1359
|
+
hideComments?: boolean;
|
|
1162
1360
|
}
|
|
1163
|
-
declare const NewsDetailPreview: FC<
|
|
1361
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1362
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1363
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1164
1364
|
|
|
1165
1365
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1166
1366
|
itemId: string;
|
|
1167
1367
|
versionId?: string;
|
|
1168
1368
|
}>;
|
|
1169
1369
|
|
|
1370
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1371
|
+
itemId: string;
|
|
1372
|
+
versionId?: string;
|
|
1373
|
+
}>;
|
|
1374
|
+
|
|
1375
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1376
|
+
itemId: string;
|
|
1377
|
+
versionId?: string;
|
|
1378
|
+
}>;
|
|
1379
|
+
|
|
1170
1380
|
interface FilterProps {
|
|
1171
1381
|
filter: IndexableFilterDefinition;
|
|
1172
1382
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1324,6 +1534,7 @@ interface PagesGridProps {
|
|
|
1324
1534
|
rowCount?: number;
|
|
1325
1535
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1326
1536
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1537
|
+
hideIntro?: boolean;
|
|
1327
1538
|
className?: string;
|
|
1328
1539
|
}
|
|
1329
1540
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1364,10 +1575,37 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1364
1575
|
declare const EventEditorToolbarStateActions: FC;
|
|
1365
1576
|
|
|
1366
1577
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1367
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1368
|
-
onResetModifiedInstance: () => void;
|
|
1369
1578
|
className?: string;
|
|
1370
1579
|
}
|
|
1371
1580
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1372
1581
|
|
|
1373
|
-
|
|
1582
|
+
interface PageEditorContextProviderProps {
|
|
1583
|
+
itemId?: string;
|
|
1584
|
+
groupId?: string;
|
|
1585
|
+
parentId?: string;
|
|
1586
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1587
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1588
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1589
|
+
}
|
|
1590
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1591
|
+
|
|
1592
|
+
interface PageEditorProps {
|
|
1593
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1594
|
+
className?: string;
|
|
1595
|
+
}
|
|
1596
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1597
|
+
|
|
1598
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1599
|
+
|
|
1600
|
+
interface PageEditorPanelProps {
|
|
1601
|
+
className?: string;
|
|
1602
|
+
}
|
|
1603
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1604
|
+
|
|
1605
|
+
interface ErrorWrapperProps {
|
|
1606
|
+
errorType: ErrorType;
|
|
1607
|
+
isList?: boolean;
|
|
1608
|
+
}
|
|
1609
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1610
|
+
|
|
1611
|
+
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, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, 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 };
|