@livetiles/reach-components-react 0.5.0-preview.67 → 0.5.0-preview.671
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 +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/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/hooks/useBannerOnResize.d.ts +5 -0
- 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 +345 -101
- package/index.esm.js +1 -1
- package/index.esm2.js +46 -21
- package/index.umd-3ae1841e.esm.js +1 -0
- package/index.umd.js +754 -25
- 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/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/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/da.async.esm3.esm.js +0 -1
- package/da.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,18 +1,66 @@
|
|
|
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
|
+
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
|
+
};
|
|
16
64
|
};
|
|
17
65
|
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
18
66
|
|
|
@@ -21,23 +69,29 @@ interface NewsDetailProps {
|
|
|
21
69
|
hideComments?: boolean;
|
|
22
70
|
hideLikes?: boolean;
|
|
23
71
|
preventExternalContentAutoRedirect?: boolean;
|
|
72
|
+
onChannelClick?: (channel: string) => unknown;
|
|
73
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
24
74
|
className?: string;
|
|
25
75
|
}
|
|
26
76
|
declare const NewsDetail: FC<NewsDetailProps>;
|
|
27
77
|
|
|
28
78
|
interface PageDetailProps {
|
|
29
|
-
itemId
|
|
79
|
+
itemId?: string;
|
|
30
80
|
hideComments?: boolean;
|
|
31
81
|
hideLikes?: boolean;
|
|
32
82
|
preventExternalContentAutoRedirect?: boolean;
|
|
83
|
+
homeBreadcrumbTargetUrl?: string;
|
|
84
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
33
85
|
className?: string;
|
|
34
86
|
}
|
|
35
87
|
declare const PageDetail: FC<PageDetailProps>;
|
|
36
88
|
|
|
37
89
|
interface EventDetailProps {
|
|
38
|
-
itemId
|
|
90
|
+
itemId?: string;
|
|
39
91
|
hideComments?: boolean;
|
|
40
92
|
hideLikes?: boolean;
|
|
93
|
+
onChannelClick?: (channel: string) => unknown;
|
|
94
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
41
95
|
className?: string;
|
|
42
96
|
}
|
|
43
97
|
declare const EventDetail: FC<EventDetailProps>;
|
|
@@ -59,33 +113,6 @@ interface PaginatedList<TItem> {
|
|
|
59
113
|
hasNextPage?: boolean;
|
|
60
114
|
}
|
|
61
115
|
|
|
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
116
|
interface Resources {
|
|
90
117
|
[language: string]: Record<string, string>;
|
|
91
118
|
}
|
|
@@ -156,6 +183,8 @@ interface NotificationTypeSettings {
|
|
|
156
183
|
pluginNotifications: {
|
|
157
184
|
[key: string]: NotificationType;
|
|
158
185
|
};
|
|
186
|
+
newsEditor: NotificationType;
|
|
187
|
+
eventEditor: NotificationType;
|
|
159
188
|
}
|
|
160
189
|
interface CurrentUser extends Account {
|
|
161
190
|
isEmailVerificationPending?: boolean;
|
|
@@ -187,6 +216,7 @@ interface CurrentUser extends Account {
|
|
|
187
216
|
termsAndConditionsApprovedHash: string;
|
|
188
217
|
isPublicUser?: boolean;
|
|
189
218
|
hasUnreadChats?: boolean;
|
|
219
|
+
publicSubscriptionIds?: string[];
|
|
190
220
|
}
|
|
191
221
|
interface UserContact {
|
|
192
222
|
tokenUniqueId: string;
|
|
@@ -284,6 +314,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
314
|
customDomain?: string;
|
|
285
315
|
allowSelfRegistration?: boolean;
|
|
286
316
|
brandFolderConfig?: BrandFolderConfig;
|
|
317
|
+
hideSubscriptionName?: boolean;
|
|
287
318
|
}
|
|
288
319
|
interface BrandFolderConfig {
|
|
289
320
|
sections?: string[];
|
|
@@ -314,9 +345,21 @@ interface WebPluginDefinition {
|
|
|
314
345
|
subscriptionId?: string;
|
|
315
346
|
environment?: string;
|
|
316
347
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
348
|
+
declare enum ExtensionArea {
|
|
349
|
+
global = "Global",
|
|
350
|
+
page = "Page",
|
|
351
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
352
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
353
|
+
itemEditor = "ItemEditor",
|
|
354
|
+
newsEditorFeedbackSection = "NewsEditorFeedbackSection",
|
|
355
|
+
newsOverviewCardSection = "NewsOverviewCardSection"
|
|
356
|
+
}
|
|
357
|
+
declare type InlinePlugin = {
|
|
358
|
+
area: ExtensionArea.itemEditor;
|
|
359
|
+
objectButton: PluginObjectButton;
|
|
360
|
+
};
|
|
361
|
+
declare type PagePlugin = {
|
|
362
|
+
area: ExtensionArea.page;
|
|
320
363
|
route: string;
|
|
321
364
|
navigationNode?: {
|
|
322
365
|
componentName?: string;
|
|
@@ -326,7 +369,20 @@ interface PluginExtension {
|
|
|
326
369
|
[key: string]: string;
|
|
327
370
|
};
|
|
328
371
|
};
|
|
329
|
-
}
|
|
372
|
+
};
|
|
373
|
+
declare type PluginExtension = {
|
|
374
|
+
area: ExtensionArea;
|
|
375
|
+
componentName: string;
|
|
376
|
+
} & (InlinePlugin | PagePlugin);
|
|
377
|
+
declare type PluginObjectButton = {
|
|
378
|
+
buttonLabel: {
|
|
379
|
+
defaultLabel: string;
|
|
380
|
+
translations?: {
|
|
381
|
+
[key: string]: string;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
iconName: string;
|
|
385
|
+
};
|
|
330
386
|
interface PluginNotificationDefinitions {
|
|
331
387
|
key: string;
|
|
332
388
|
title: string;
|
|
@@ -368,6 +424,14 @@ interface Channel {
|
|
|
368
424
|
};
|
|
369
425
|
}
|
|
370
426
|
|
|
427
|
+
interface KeywordGroup {
|
|
428
|
+
id: string;
|
|
429
|
+
name: string;
|
|
430
|
+
keywords: Keyword[];
|
|
431
|
+
translations: {
|
|
432
|
+
[key: string]: string;
|
|
433
|
+
};
|
|
434
|
+
}
|
|
371
435
|
interface Keyword {
|
|
372
436
|
id: string;
|
|
373
437
|
name: string;
|
|
@@ -411,7 +475,7 @@ declare enum KnownNewsState {
|
|
|
411
475
|
declare type VersionId = string;
|
|
412
476
|
interface SchedulableItem extends PublishableItem {
|
|
413
477
|
metadata?: NewsMetadata;
|
|
414
|
-
channels?:
|
|
478
|
+
channels?: Channel[];
|
|
415
479
|
}
|
|
416
480
|
interface NewsItem extends SchedulableItem {
|
|
417
481
|
source?: string;
|
|
@@ -420,19 +484,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
420
484
|
knownState: KnownNewsState;
|
|
421
485
|
hasNewComments?: boolean;
|
|
422
486
|
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
487
|
}
|
|
429
488
|
interface NewsItemAlertOptions {
|
|
430
489
|
duration?: string;
|
|
431
490
|
endDate?: Date;
|
|
432
491
|
expireAfter?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface SchedulableItemChannel {
|
|
435
|
-
name: string;
|
|
436
492
|
}
|
|
437
493
|
|
|
438
494
|
declare enum VideoSource {
|
|
@@ -447,19 +503,6 @@ interface BaseItem {
|
|
|
447
503
|
id?: string;
|
|
448
504
|
statistics?: ItemStatistics;
|
|
449
505
|
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
506
|
}
|
|
464
507
|
interface Poll {
|
|
465
508
|
questions: PollQuestion[];
|
|
@@ -494,6 +537,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
494
537
|
headline?: string;
|
|
495
538
|
intro?: string;
|
|
496
539
|
body?: string;
|
|
540
|
+
bodyRaw?: string;
|
|
497
541
|
customProperties?: {
|
|
498
542
|
[key: string]: any;
|
|
499
543
|
};
|
|
@@ -599,6 +643,18 @@ interface Attachment extends BaseAttachment {
|
|
|
599
643
|
type: AttachmentType;
|
|
600
644
|
}
|
|
601
645
|
|
|
646
|
+
declare enum GraphQLAttachmentType {
|
|
647
|
+
Image = "IMAGE",
|
|
648
|
+
File = "FILE",
|
|
649
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
650
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
651
|
+
News = "NEWS",
|
|
652
|
+
Event = "EVENT",
|
|
653
|
+
Page = "PAGE",
|
|
654
|
+
Post = "POST",
|
|
655
|
+
Giphy = "GIPHY"
|
|
656
|
+
}
|
|
657
|
+
|
|
602
658
|
interface ItemWithAttachments {
|
|
603
659
|
attachments?: Attachment[];
|
|
604
660
|
fileAccessToken?: string;
|
|
@@ -748,6 +804,7 @@ interface PageItem extends PublishableItem {
|
|
|
748
804
|
isUnlinked?: boolean;
|
|
749
805
|
pageType?: PageType;
|
|
750
806
|
firstChildId?: string;
|
|
807
|
+
isGroupInheritanceBroken?: boolean;
|
|
751
808
|
}
|
|
752
809
|
interface ContentsSummary {
|
|
753
810
|
[lang: string]: TitleContent & {
|
|
@@ -769,6 +826,7 @@ interface PageNavigationNode {
|
|
|
769
826
|
hasAnyPageChild?: boolean;
|
|
770
827
|
pageType?: PageType;
|
|
771
828
|
useExternalContent?: boolean;
|
|
829
|
+
isGroupInheritanceBroken?: boolean;
|
|
772
830
|
isSearchMatch?: boolean;
|
|
773
831
|
topLevelFolderName?: string;
|
|
774
832
|
uploadToken?: string;
|
|
@@ -783,6 +841,23 @@ declare enum PageType {
|
|
|
783
841
|
Document = 1
|
|
784
842
|
}
|
|
785
843
|
|
|
844
|
+
declare type KeywordsByGroupId = {
|
|
845
|
+
[key: string]: Keyword[];
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
interface SubscriptionData {
|
|
849
|
+
channels?: Channel[];
|
|
850
|
+
allKeywords?: Keyword[];
|
|
851
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
852
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
853
|
+
}
|
|
854
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
855
|
+
getChannels: () => Promise<Channel[]>;
|
|
856
|
+
refreshSubscription: () => void;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
860
|
+
|
|
786
861
|
declare const Dialog: FC<IDialogProps>;
|
|
787
862
|
|
|
788
863
|
interface ToolbarProps {
|
|
@@ -800,6 +875,12 @@ interface ToolbarSearchProps {
|
|
|
800
875
|
}
|
|
801
876
|
declare const Toolbar: FC<ToolbarProps>;
|
|
802
877
|
|
|
878
|
+
declare type TokenType = string | number;
|
|
879
|
+
|
|
880
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
881
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
882
|
+
}
|
|
883
|
+
|
|
803
884
|
interface ToolbarChannelSelectorProps {
|
|
804
885
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
805
886
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -845,6 +926,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
845
926
|
onClick: () => unknown;
|
|
846
927
|
}>;
|
|
847
928
|
|
|
929
|
+
declare const ToolbarManageButton: FC<{
|
|
930
|
+
onClick?: () => unknown;
|
|
931
|
+
to?: {
|
|
932
|
+
url: string;
|
|
933
|
+
target?: string;
|
|
934
|
+
};
|
|
935
|
+
disabled?: boolean;
|
|
936
|
+
}>;
|
|
937
|
+
|
|
848
938
|
interface ToolbarCloseButtonProps {
|
|
849
939
|
onClick?: () => unknown;
|
|
850
940
|
to?: {
|
|
@@ -873,8 +963,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
873
963
|
interface Props extends IPersonaProps {
|
|
874
964
|
upn: string;
|
|
875
965
|
tenantId?: string;
|
|
876
|
-
className?: string;
|
|
877
966
|
displayName?: string;
|
|
967
|
+
forceShowSecondaryText?: boolean;
|
|
968
|
+
className?: string;
|
|
878
969
|
}
|
|
879
970
|
declare const Avatar: FC<Props>;
|
|
880
971
|
|
|
@@ -885,6 +976,13 @@ interface UserDetailsProps {
|
|
|
885
976
|
}
|
|
886
977
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
887
978
|
|
|
979
|
+
declare enum ErrorType {
|
|
980
|
+
GenericError = "genericError",
|
|
981
|
+
Error404 = "error404",
|
|
982
|
+
Error403 = "error403",
|
|
983
|
+
LoginError = "loginError"
|
|
984
|
+
}
|
|
985
|
+
|
|
888
986
|
interface PageViewTrackerSettings {
|
|
889
987
|
disabled?: boolean;
|
|
890
988
|
}
|
|
@@ -931,6 +1029,32 @@ declare enum LogicalOperator {
|
|
|
931
1029
|
And = "AND"
|
|
932
1030
|
}
|
|
933
1031
|
|
|
1032
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1033
|
+
id: string;
|
|
1034
|
+
comments?: PaginatedList<Comment>;
|
|
1035
|
+
groupId: string;
|
|
1036
|
+
content: string;
|
|
1037
|
+
permalink?: string;
|
|
1038
|
+
author: Account;
|
|
1039
|
+
publishingDate: string;
|
|
1040
|
+
modified?: string;
|
|
1041
|
+
statistics: ItemStatistics;
|
|
1042
|
+
keywords?: {
|
|
1043
|
+
[key: string]: Keyword[];
|
|
1044
|
+
};
|
|
1045
|
+
contentLanguageCode?: string;
|
|
1046
|
+
isLiked?: boolean;
|
|
1047
|
+
isUnread?: boolean;
|
|
1048
|
+
isDemoContent?: boolean;
|
|
1049
|
+
isFollowing?: boolean;
|
|
1050
|
+
}
|
|
1051
|
+
interface PostFilterDefinition {
|
|
1052
|
+
token?: string;
|
|
1053
|
+
pageSize?: string;
|
|
1054
|
+
search?: string;
|
|
1055
|
+
keywords?: FilterWithLogicalOperator;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
934
1058
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
935
1059
|
author?: string;
|
|
936
1060
|
}
|
|
@@ -939,6 +1063,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
939
1063
|
channels?: FilterWithLogicalOperator;
|
|
940
1064
|
}
|
|
941
1065
|
|
|
1066
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1067
|
+
contacts?: string[];
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1071
|
+
startsAfter?: string;
|
|
1072
|
+
startsBefore?: string;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1076
|
+
excludePastEvents?: boolean;
|
|
1077
|
+
pastEventsOnly?: boolean;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
942
1080
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
943
1081
|
state?: WorkflowStatus;
|
|
944
1082
|
}
|
|
@@ -950,26 +1088,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
950
1088
|
includeExpired?: boolean;
|
|
951
1089
|
}
|
|
952
1090
|
|
|
1091
|
+
declare enum StreamEventResponse {
|
|
1092
|
+
NotSet = "NOTSET",
|
|
1093
|
+
Registered = "REGISTERED",
|
|
1094
|
+
Declined = "DECLINED"
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
declare enum StreamItemTypes {
|
|
1098
|
+
Post = "POST",
|
|
1099
|
+
News = "NEWS",
|
|
1100
|
+
Event = "EVENT",
|
|
1101
|
+
Page = "PAGE"
|
|
1102
|
+
}
|
|
1103
|
+
declare enum StreamConversationScope {
|
|
1104
|
+
Public = "PUBLIC",
|
|
1105
|
+
Editor = "EDITOR",
|
|
1106
|
+
Posts = "POSTS"
|
|
1107
|
+
}
|
|
1108
|
+
interface PostStreamItem extends Post {
|
|
1109
|
+
type: StreamItemTypes.Post;
|
|
1110
|
+
isUnread: boolean;
|
|
1111
|
+
keywordsList?: Keyword[];
|
|
1112
|
+
groupIds?: string[];
|
|
1113
|
+
postAttachments?: StreamAttachment[];
|
|
1114
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1115
|
+
hasMoreUnreadComments: boolean;
|
|
1116
|
+
}
|
|
1117
|
+
interface StreamPostComment extends Comment {
|
|
1118
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1119
|
+
streamConversationScope?: StreamConversationScope;
|
|
1120
|
+
}
|
|
1121
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1122
|
+
type: GraphQLAttachmentType;
|
|
1123
|
+
}
|
|
1124
|
+
interface NewsStreamItem extends NewsItem {
|
|
1125
|
+
type: StreamItemTypes.News;
|
|
1126
|
+
contentsList: StreamPublishableItemContents[];
|
|
1127
|
+
channelsList: string[];
|
|
1128
|
+
isUnread: boolean;
|
|
1129
|
+
keywordsList?: Keyword[];
|
|
1130
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1131
|
+
}
|
|
1132
|
+
declare enum StreamKnownNewsState {
|
|
1133
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1134
|
+
Alert = "ALERT"
|
|
1135
|
+
}
|
|
1136
|
+
interface EventStreamItem extends EventItem {
|
|
1137
|
+
type: StreamItemTypes.Event;
|
|
1138
|
+
contentsList: StreamPublishableItemContents[];
|
|
1139
|
+
channelsList: string[];
|
|
1140
|
+
isUnread: boolean;
|
|
1141
|
+
keywordsList?: Keyword[];
|
|
1142
|
+
userResponseType?: StreamEventResponse;
|
|
1143
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1144
|
+
}
|
|
1145
|
+
interface PageStreamItem extends PageItem {
|
|
1146
|
+
type: StreamItemTypes.Page;
|
|
1147
|
+
contentsList: StreamPublishableItemContents[];
|
|
1148
|
+
channelsList: string[];
|
|
1149
|
+
isUnread: boolean;
|
|
1150
|
+
keywordsList?: Keyword[];
|
|
1151
|
+
streamPageType?: string;
|
|
1152
|
+
path?: (PageNavigationNode & {
|
|
1153
|
+
parentId?: string;
|
|
1154
|
+
contentsList: StreamPublishableItemContents[];
|
|
1155
|
+
})[];
|
|
1156
|
+
}
|
|
1157
|
+
interface StreamPublishableItemContents {
|
|
1158
|
+
language: string;
|
|
1159
|
+
title: string;
|
|
1160
|
+
intro?: string;
|
|
1161
|
+
headline?: string;
|
|
1162
|
+
}
|
|
1163
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1164
|
+
cancellationReasons?: {
|
|
1165
|
+
[key: string]: string;
|
|
1166
|
+
}[];
|
|
1167
|
+
}
|
|
1168
|
+
|
|
953
1169
|
interface TargetLinkOverrideContextProps {
|
|
954
1170
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
955
1171
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
956
1172
|
}
|
|
957
1173
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
958
1174
|
|
|
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
1175
|
interface KeywordPickerProps {
|
|
974
1176
|
value?: Keyword[] | string[];
|
|
975
1177
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -990,35 +1192,17 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
990
1192
|
pageType?: PageType;
|
|
991
1193
|
}
|
|
992
1194
|
|
|
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
|
-
}
|
|
1195
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1196
|
+
|
|
1197
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1018
1198
|
|
|
1019
1199
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1020
1200
|
}
|
|
1021
1201
|
|
|
1202
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1203
|
+
|
|
1204
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1205
|
+
|
|
1022
1206
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1023
1207
|
channels?: string | FilterWithLogicalOperator;
|
|
1024
1208
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1071,6 +1255,7 @@ interface NewsGridProps {
|
|
|
1071
1255
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1072
1256
|
includeAllItems?: boolean;
|
|
1073
1257
|
className?: string;
|
|
1258
|
+
hideIntro?: boolean;
|
|
1074
1259
|
}
|
|
1075
1260
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1076
1261
|
|
|
@@ -1128,6 +1313,7 @@ interface NewsEditorDashboardProps {
|
|
|
1128
1313
|
groupId?: string;
|
|
1129
1314
|
className?: string;
|
|
1130
1315
|
onItemClick?: (item: NewsItem) => unknown;
|
|
1316
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1131
1317
|
pageSize?: number;
|
|
1132
1318
|
hidePagination?: boolean;
|
|
1133
1319
|
}
|
|
@@ -1137,6 +1323,7 @@ interface EventsEditorDashboardProps {
|
|
|
1137
1323
|
groupId?: string;
|
|
1138
1324
|
className?: string;
|
|
1139
1325
|
onItemClick?: (item: EventItem) => unknown;
|
|
1326
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1140
1327
|
pageSize?: number;
|
|
1141
1328
|
hidePagination?: boolean;
|
|
1142
1329
|
}
|
|
@@ -1146,27 +1333,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1146
1333
|
itemId: string;
|
|
1147
1334
|
}>;
|
|
1148
1335
|
|
|
1149
|
-
declare const
|
|
1336
|
+
declare const PageItemContextProvider: FC<{
|
|
1337
|
+
itemId: string;
|
|
1338
|
+
}>;
|
|
1339
|
+
|
|
1340
|
+
declare const EventItemContextProvider: FC<{
|
|
1341
|
+
itemId: string;
|
|
1342
|
+
}>;
|
|
1343
|
+
|
|
1344
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1150
1345
|
showEditLanguagePreferences?: boolean;
|
|
1151
1346
|
onEditLanguagePreferences?: () => unknown;
|
|
1152
1347
|
}>;
|
|
1153
1348
|
|
|
1349
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1350
|
+
onClick?: (itemId: string) => unknown;
|
|
1351
|
+
}>;
|
|
1154
1352
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1155
1353
|
onClick?: (itemId: string) => unknown;
|
|
1156
1354
|
}>;
|
|
1157
1355
|
|
|
1158
|
-
interface
|
|
1356
|
+
interface SharedItemDetailPreviewProps {
|
|
1159
1357
|
itemId?: string;
|
|
1160
1358
|
versionId?: string;
|
|
1161
1359
|
className?: string;
|
|
1360
|
+
hideLikes?: boolean;
|
|
1361
|
+
hideComments?: boolean;
|
|
1162
1362
|
}
|
|
1163
|
-
declare const NewsDetailPreview: FC<
|
|
1363
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1364
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1365
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1164
1366
|
|
|
1165
1367
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1166
1368
|
itemId: string;
|
|
1167
1369
|
versionId?: string;
|
|
1168
1370
|
}>;
|
|
1169
1371
|
|
|
1372
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1373
|
+
itemId: string;
|
|
1374
|
+
versionId?: string;
|
|
1375
|
+
}>;
|
|
1376
|
+
|
|
1377
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1378
|
+
itemId: string;
|
|
1379
|
+
versionId?: string;
|
|
1380
|
+
}>;
|
|
1381
|
+
|
|
1170
1382
|
interface FilterProps {
|
|
1171
1383
|
filter: IndexableFilterDefinition;
|
|
1172
1384
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1324,6 +1536,7 @@ interface PagesGridProps {
|
|
|
1324
1536
|
rowCount?: number;
|
|
1325
1537
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1326
1538
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1539
|
+
hideIntro?: boolean;
|
|
1327
1540
|
className?: string;
|
|
1328
1541
|
}
|
|
1329
1542
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1364,10 +1577,41 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1364
1577
|
declare const EventEditorToolbarStateActions: FC;
|
|
1365
1578
|
|
|
1366
1579
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1367
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1368
|
-
onResetModifiedInstance: () => void;
|
|
1369
1580
|
className?: string;
|
|
1370
1581
|
}
|
|
1371
1582
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1372
1583
|
|
|
1373
|
-
|
|
1584
|
+
interface PageEditorContextProviderProps {
|
|
1585
|
+
itemId?: string;
|
|
1586
|
+
groupId?: string;
|
|
1587
|
+
parentId?: string;
|
|
1588
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1589
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1590
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1591
|
+
}
|
|
1592
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1593
|
+
|
|
1594
|
+
interface PageEditorProps {
|
|
1595
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1596
|
+
className?: string;
|
|
1597
|
+
}
|
|
1598
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1599
|
+
|
|
1600
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1601
|
+
|
|
1602
|
+
interface PageEditorPanelProps {
|
|
1603
|
+
className?: string;
|
|
1604
|
+
}
|
|
1605
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1606
|
+
|
|
1607
|
+
interface ErrorWrapperProps {
|
|
1608
|
+
errorType: ErrorType;
|
|
1609
|
+
isList?: boolean;
|
|
1610
|
+
}
|
|
1611
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1612
|
+
|
|
1613
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1614
|
+
onClick?: () => unknown;
|
|
1615
|
+
}>;
|
|
1616
|
+
|
|
1617
|
+
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 };
|