@livetiles/reach-components-react 0.5.0-preview.73 → 0.5.0-preview.730
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 +5 -4
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/NewsDetail.d.ts +4 -0
- package/NewsDetailViewMetaInfo.d.ts +3 -1
- package/NewsGrid.d.ts +1 -0
- package/NewsGridCard.d.ts +7 -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/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/asn1.esm.js +1 -0
- package/auto-track-f51a2a4b.esm.js +1 -0
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- 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/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/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 +335 -101
- package/index.esm.js +1 -1
- package/index.esm2.js +46 -16
- package/index.umd-3ae1841e.esm.js +1 -0
- package/index.umd.js +754 -20
- package/is-plan-event-enabled-d9660f36.esm.js +1 -0
- package/it.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/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/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;
|
|
@@ -659,6 +715,7 @@ interface EventItem extends SchedulableItem {
|
|
|
659
715
|
recurrenceSeriesId?: string;
|
|
660
716
|
isSeriesMaster?: string;
|
|
661
717
|
isVirtual?: boolean;
|
|
718
|
+
isAllDayEvent?: boolean;
|
|
662
719
|
}
|
|
663
720
|
interface EventRegistrationSettings {
|
|
664
721
|
enabled?: boolean;
|
|
@@ -748,6 +805,7 @@ interface PageItem extends PublishableItem {
|
|
|
748
805
|
isUnlinked?: boolean;
|
|
749
806
|
pageType?: PageType;
|
|
750
807
|
firstChildId?: string;
|
|
808
|
+
isGroupInheritanceBroken?: boolean;
|
|
751
809
|
}
|
|
752
810
|
interface ContentsSummary {
|
|
753
811
|
[lang: string]: TitleContent & {
|
|
@@ -769,6 +827,7 @@ interface PageNavigationNode {
|
|
|
769
827
|
hasAnyPageChild?: boolean;
|
|
770
828
|
pageType?: PageType;
|
|
771
829
|
useExternalContent?: boolean;
|
|
830
|
+
isGroupInheritanceBroken?: boolean;
|
|
772
831
|
isSearchMatch?: boolean;
|
|
773
832
|
topLevelFolderName?: string;
|
|
774
833
|
uploadToken?: string;
|
|
@@ -783,6 +842,23 @@ declare enum PageType {
|
|
|
783
842
|
Document = 1
|
|
784
843
|
}
|
|
785
844
|
|
|
845
|
+
declare type KeywordsByGroupId = {
|
|
846
|
+
[key: string]: Keyword[];
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
interface SubscriptionData {
|
|
850
|
+
channels?: Channel[];
|
|
851
|
+
allKeywords?: Keyword[];
|
|
852
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
853
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
854
|
+
}
|
|
855
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
856
|
+
getChannels: () => Promise<Channel[]>;
|
|
857
|
+
refreshSubscription: () => void;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
861
|
+
|
|
786
862
|
declare const Dialog: FC<IDialogProps>;
|
|
787
863
|
|
|
788
864
|
interface ToolbarProps {
|
|
@@ -800,6 +876,12 @@ interface ToolbarSearchProps {
|
|
|
800
876
|
}
|
|
801
877
|
declare const Toolbar: FC<ToolbarProps>;
|
|
802
878
|
|
|
879
|
+
declare type TokenType = string | number;
|
|
880
|
+
|
|
881
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
882
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
883
|
+
}
|
|
884
|
+
|
|
803
885
|
interface ToolbarChannelSelectorProps {
|
|
804
886
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
805
887
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -845,6 +927,15 @@ declare const ToolbarUnreadItemsButton: FC<{
|
|
|
845
927
|
onClick: () => unknown;
|
|
846
928
|
}>;
|
|
847
929
|
|
|
930
|
+
declare const ToolbarManageButton: FC<{
|
|
931
|
+
onClick?: () => unknown;
|
|
932
|
+
to?: {
|
|
933
|
+
url: string;
|
|
934
|
+
target?: string;
|
|
935
|
+
};
|
|
936
|
+
disabled?: boolean;
|
|
937
|
+
}>;
|
|
938
|
+
|
|
848
939
|
interface ToolbarCloseButtonProps {
|
|
849
940
|
onClick?: () => unknown;
|
|
850
941
|
to?: {
|
|
@@ -873,8 +964,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
873
964
|
interface Props extends IPersonaProps {
|
|
874
965
|
upn: string;
|
|
875
966
|
tenantId?: string;
|
|
876
|
-
className?: string;
|
|
877
967
|
displayName?: string;
|
|
968
|
+
forceShowSecondaryText?: boolean;
|
|
969
|
+
className?: string;
|
|
878
970
|
}
|
|
879
971
|
declare const Avatar: FC<Props>;
|
|
880
972
|
|
|
@@ -885,6 +977,13 @@ interface UserDetailsProps {
|
|
|
885
977
|
}
|
|
886
978
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
887
979
|
|
|
980
|
+
declare enum ErrorType {
|
|
981
|
+
GenericError = "genericError",
|
|
982
|
+
Error404 = "error404",
|
|
983
|
+
Error403 = "error403",
|
|
984
|
+
LoginError = "loginError"
|
|
985
|
+
}
|
|
986
|
+
|
|
888
987
|
interface PageViewTrackerSettings {
|
|
889
988
|
disabled?: boolean;
|
|
890
989
|
}
|
|
@@ -931,6 +1030,32 @@ declare enum LogicalOperator {
|
|
|
931
1030
|
And = "AND"
|
|
932
1031
|
}
|
|
933
1032
|
|
|
1033
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1034
|
+
id: string;
|
|
1035
|
+
comments?: PaginatedList<Comment>;
|
|
1036
|
+
groupId: string;
|
|
1037
|
+
content: string;
|
|
1038
|
+
permalink?: string;
|
|
1039
|
+
author: Account;
|
|
1040
|
+
publishingDate: string;
|
|
1041
|
+
modified?: string;
|
|
1042
|
+
statistics: ItemStatistics;
|
|
1043
|
+
keywords?: {
|
|
1044
|
+
[key: string]: Keyword[];
|
|
1045
|
+
};
|
|
1046
|
+
contentLanguageCode?: string;
|
|
1047
|
+
isLiked?: boolean;
|
|
1048
|
+
isUnread?: boolean;
|
|
1049
|
+
isDemoContent?: boolean;
|
|
1050
|
+
isFollowing?: boolean;
|
|
1051
|
+
}
|
|
1052
|
+
interface PostFilterDefinition {
|
|
1053
|
+
token?: string;
|
|
1054
|
+
pageSize?: string;
|
|
1055
|
+
search?: string;
|
|
1056
|
+
keywords?: FilterWithLogicalOperator;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
934
1059
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
935
1060
|
author?: string;
|
|
936
1061
|
}
|
|
@@ -939,6 +1064,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
939
1064
|
channels?: FilterWithLogicalOperator;
|
|
940
1065
|
}
|
|
941
1066
|
|
|
1067
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1068
|
+
contacts?: string[];
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1072
|
+
startsAfter?: string;
|
|
1073
|
+
startsBefore?: string;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1077
|
+
excludePastEvents?: boolean;
|
|
1078
|
+
pastEventsOnly?: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
942
1081
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
943
1082
|
state?: WorkflowStatus;
|
|
944
1083
|
}
|
|
@@ -950,26 +1089,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
950
1089
|
includeExpired?: boolean;
|
|
951
1090
|
}
|
|
952
1091
|
|
|
1092
|
+
declare enum StreamEventResponse {
|
|
1093
|
+
NotSet = "NOTSET",
|
|
1094
|
+
Registered = "REGISTERED",
|
|
1095
|
+
Declined = "DECLINED"
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
declare enum StreamItemTypes {
|
|
1099
|
+
Post = "POST",
|
|
1100
|
+
News = "NEWS",
|
|
1101
|
+
Event = "EVENT",
|
|
1102
|
+
Page = "PAGE"
|
|
1103
|
+
}
|
|
1104
|
+
declare enum StreamConversationScope {
|
|
1105
|
+
Public = "PUBLIC",
|
|
1106
|
+
Editor = "EDITOR",
|
|
1107
|
+
Posts = "POSTS"
|
|
1108
|
+
}
|
|
1109
|
+
interface PostStreamItem extends Post {
|
|
1110
|
+
type: StreamItemTypes.Post;
|
|
1111
|
+
isUnread: boolean;
|
|
1112
|
+
keywordsList?: Keyword[];
|
|
1113
|
+
groupIds?: string[];
|
|
1114
|
+
postAttachments?: StreamAttachment[];
|
|
1115
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1116
|
+
hasMoreUnreadComments: boolean;
|
|
1117
|
+
}
|
|
1118
|
+
interface StreamPostComment extends Comment {
|
|
1119
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1120
|
+
streamConversationScope?: StreamConversationScope;
|
|
1121
|
+
}
|
|
1122
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1123
|
+
type: GraphQLAttachmentType;
|
|
1124
|
+
}
|
|
1125
|
+
interface NewsStreamItem extends NewsItem {
|
|
1126
|
+
type: StreamItemTypes.News;
|
|
1127
|
+
contentsList: StreamPublishableItemContents[];
|
|
1128
|
+
channelsList: string[];
|
|
1129
|
+
isUnread: boolean;
|
|
1130
|
+
keywordsList?: Keyword[];
|
|
1131
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1132
|
+
}
|
|
1133
|
+
declare enum StreamKnownNewsState {
|
|
1134
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1135
|
+
Alert = "ALERT"
|
|
1136
|
+
}
|
|
1137
|
+
interface EventStreamItem extends EventItem {
|
|
1138
|
+
type: StreamItemTypes.Event;
|
|
1139
|
+
contentsList: StreamPublishableItemContents[];
|
|
1140
|
+
channelsList: string[];
|
|
1141
|
+
isUnread: boolean;
|
|
1142
|
+
keywordsList?: Keyword[];
|
|
1143
|
+
userResponseType?: StreamEventResponse;
|
|
1144
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1145
|
+
}
|
|
1146
|
+
interface PageStreamItem extends PageItem {
|
|
1147
|
+
type: StreamItemTypes.Page;
|
|
1148
|
+
contentsList: StreamPublishableItemContents[];
|
|
1149
|
+
channelsList: string[];
|
|
1150
|
+
isUnread: boolean;
|
|
1151
|
+
keywordsList?: Keyword[];
|
|
1152
|
+
streamPageType?: string;
|
|
1153
|
+
path?: (PageNavigationNode & {
|
|
1154
|
+
parentId?: string;
|
|
1155
|
+
contentsList: StreamPublishableItemContents[];
|
|
1156
|
+
})[];
|
|
1157
|
+
}
|
|
1158
|
+
interface StreamPublishableItemContents {
|
|
1159
|
+
language: string;
|
|
1160
|
+
title: string;
|
|
1161
|
+
intro?: string;
|
|
1162
|
+
headline?: string;
|
|
1163
|
+
}
|
|
1164
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1165
|
+
cancellationReasons?: {
|
|
1166
|
+
[key: string]: string;
|
|
1167
|
+
}[];
|
|
1168
|
+
}
|
|
1169
|
+
|
|
953
1170
|
interface TargetLinkOverrideContextProps {
|
|
954
1171
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
955
1172
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
956
1173
|
}
|
|
957
1174
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
958
1175
|
|
|
959
|
-
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
960
|
-
contacts?: string[];
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
964
|
-
startsAfter?: string;
|
|
965
|
-
startsBefore?: string;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
969
|
-
excludePastEvents?: boolean;
|
|
970
|
-
pastEventsOnly?: boolean;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
1176
|
interface KeywordPickerProps {
|
|
974
1177
|
value?: Keyword[] | string[];
|
|
975
1178
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -990,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
|
|
|
@@ -1148,27 +1334,52 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1148
1334
|
itemId: string;
|
|
1149
1335
|
}>;
|
|
1150
1336
|
|
|
1151
|
-
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<{
|
|
1152
1346
|
showEditLanguagePreferences?: boolean;
|
|
1153
1347
|
onEditLanguagePreferences?: () => unknown;
|
|
1154
1348
|
}>;
|
|
1155
1349
|
|
|
1350
|
+
declare const ToolbarManageItemButton: FC<{
|
|
1351
|
+
onClick?: (itemId: string) => unknown;
|
|
1352
|
+
}>;
|
|
1156
1353
|
declare const ToolbarManageNewsItemButton: FC<{
|
|
1157
1354
|
onClick?: (itemId: string) => unknown;
|
|
1158
1355
|
}>;
|
|
1159
1356
|
|
|
1160
|
-
interface
|
|
1357
|
+
interface SharedItemDetailPreviewProps {
|
|
1161
1358
|
itemId?: string;
|
|
1162
1359
|
versionId?: string;
|
|
1163
1360
|
className?: string;
|
|
1361
|
+
hideLikes?: boolean;
|
|
1362
|
+
hideComments?: boolean;
|
|
1164
1363
|
}
|
|
1165
|
-
declare const NewsDetailPreview: FC<
|
|
1364
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1365
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1366
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1166
1367
|
|
|
1167
1368
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1168
1369
|
itemId: string;
|
|
1169
1370
|
versionId?: string;
|
|
1170
1371
|
}>;
|
|
1171
1372
|
|
|
1373
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1374
|
+
itemId: string;
|
|
1375
|
+
versionId?: string;
|
|
1376
|
+
}>;
|
|
1377
|
+
|
|
1378
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1379
|
+
itemId: string;
|
|
1380
|
+
versionId?: string;
|
|
1381
|
+
}>;
|
|
1382
|
+
|
|
1172
1383
|
interface FilterProps {
|
|
1173
1384
|
filter: IndexableFilterDefinition;
|
|
1174
1385
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1326,6 +1537,7 @@ interface PagesGridProps {
|
|
|
1326
1537
|
rowCount?: number;
|
|
1327
1538
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1328
1539
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1540
|
+
hideIntro?: boolean;
|
|
1329
1541
|
className?: string;
|
|
1330
1542
|
}
|
|
1331
1543
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1366,8 +1578,6 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1366
1578
|
declare const EventEditorToolbarStateActions: FC;
|
|
1367
1579
|
|
|
1368
1580
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1369
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1370
|
-
onResetModifiedInstance: () => void;
|
|
1371
1581
|
className?: string;
|
|
1372
1582
|
}
|
|
1373
1583
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
@@ -1375,10 +1585,34 @@ declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurrin
|
|
|
1375
1585
|
interface PageEditorContextProviderProps {
|
|
1376
1586
|
itemId?: string;
|
|
1377
1587
|
groupId?: string;
|
|
1588
|
+
parentId?: string;
|
|
1378
1589
|
onSuccessfulCreate?: (itemId: string) => void;
|
|
1379
1590
|
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1380
1591
|
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1381
1592
|
}
|
|
1382
1593
|
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1383
1594
|
|
|
1384
|
-
|
|
1595
|
+
interface PageEditorProps {
|
|
1596
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1597
|
+
className?: string;
|
|
1598
|
+
}
|
|
1599
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1600
|
+
|
|
1601
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1602
|
+
|
|
1603
|
+
interface PageEditorPanelProps {
|
|
1604
|
+
className?: string;
|
|
1605
|
+
}
|
|
1606
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1607
|
+
|
|
1608
|
+
interface ErrorWrapperProps {
|
|
1609
|
+
errorType: ErrorType;
|
|
1610
|
+
isList?: boolean;
|
|
1611
|
+
}
|
|
1612
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1613
|
+
|
|
1614
|
+
declare const ToolbarBookmarkButton: FC<{
|
|
1615
|
+
onClick?: () => unknown;
|
|
1616
|
+
}>;
|
|
1617
|
+
|
|
1618
|
+
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 };
|