@livetiles/reach-components-react 0.5.0-preview.57 → 0.5.0-preview.570
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/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/ar-dz.async.esm.esm.js +1 -1
- package/ar-ma.async.esm.esm.js +1 -1
- package/ar-sa.async.esm.esm.js +1 -1
- package/asn1.esm.js +1 -0
- package/auto-track-f51a2a4b.esm.js +1 -0
- package/bg.async.esm.esm.js +1 -1
- package/bn.async.esm.esm.js +1 -1
- package/ca.async.esm.esm.js +1 -1
- package/common/CommentCountIconWithTooltip.d.ts +3 -1
- package/common/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/cs.async.esm.esm.js +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -1
- package/da.async.esm3.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/de.async.esm3.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/el.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/es.async.esm3.esm.js +1 -1
- package/et.async.esm.esm.js +1 -1
- package/fa-ir.async.esm.esm.js +1 -1
- package/fi.async.esm.esm.js +1 -1
- package/fr-ca.async.esm.esm.js +1 -1
- package/fr-ch.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/fr.async.esm3.esm.js +1 -1
- package/gu.async.esm.esm.js +1 -1
- package/he.async.esm.esm.js +1 -1
- package/hi.async.esm.esm.js +1 -1
- package/hr.async.esm.esm.js +1 -1
- package/hu.async.esm.esm.js +1 -1
- package/id.async.esm.esm.js +1 -1
- package/index-86828242.esm.js +1 -0
- package/index-9966489c.esm.js +1 -0
- package/index-b8e04782.esm.js +705 -0
- package/index-bb815ffc.esm.js +1 -0
- package/index-beff4bdb.esm.js +1 -0
- package/index-d4477314.esm.js +1 -0
- package/index.d.ts +333 -94
- package/index.esm.js +1 -1
- package/index.esm2.js +117 -21
- package/index.esm4.js +1 -1
- package/index.esm5.js +1 -0
- package/index.umd-3ae1841e.esm.js +1 -0
- package/index.umd.js +841 -25
- 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.esm.esm.js +1 -1
- package/it.async.esm2.esm.js +1 -1
- package/it.async.esm3.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/ja.async.esm3.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/kn.async.esm.esm.js +1 -1
- package/ko.async.esm.esm.js +1 -1
- package/lt.async.esm.esm.js +1 -1
- package/lv.async.esm.esm.js +1 -1
- package/md.transition.esm.js +4 -0
- package/mllike.esm.js +1 -0
- package/ms.async.esm.esm.js +1 -1
- package/nb.async.esm.esm.js +1 -1
- package/nl-be.async.esm.esm.js +1 -1
- package/nl.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/pl.async.esm.esm.js +1 -1
- package/pt-br.async.esm.esm.js +1 -1
- package/pt.async.esm.esm.js +1 -1
- package/python.esm.js +1 -0
- package/ro.async.esm.esm.js +1 -1
- package/rpm.esm.js +1 -0
- package/ru.async.esm.esm.js +1 -1
- package/sk.async.esm.esm.js +1 -1
- package/sl.async.esm.esm.js +1 -1
- package/sql.esm.js +1 -0
- package/sr-latn.async.esm.esm.js +1 -1
- package/sr.async.esm.esm.js +1 -1
- package/status-tap.esm.js +4 -0
- package/sv.async.esm.esm.js +1 -1
- package/swipe-back.esm.js +4 -0
- package/swiper.bundle.esm.js +4 -0
- package/ta.async.esm.esm.js +1 -1
- package/te.async.esm.esm.js +1 -1
- package/th.async.esm.esm.js +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/tr.async.esm3.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/uk.async.esm.esm.js +1 -1
- package/vi.async.esm.esm.js +1 -1
- package/zh-CN.async.esm3.esm.js +1 -0
- package/zh-TW.async.esm3.esm.js +1 -0
- package/zh-cn.async.esm.esm.js +1 -1
- package/zh-tw.async.esm.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
- package/zh-CN.async.esm2.esm.js +0 -1
- package/zh-TW.async.esm2.esm.js +0 -1
- /package/{zh-cn.async.esm3.esm.js → zh-cn.async.esm2.esm.js} +0 -0
- /package/{zh-tw.async.esm3.esm.js → zh-tw.async.esm2.esm.js} +0 -0
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;
|
|
@@ -360,14 +416,14 @@ declare enum FieldMode {
|
|
|
360
416
|
Hidden = 3
|
|
361
417
|
}
|
|
362
418
|
|
|
363
|
-
interface
|
|
419
|
+
interface KeywordGroup {
|
|
364
420
|
id: string;
|
|
365
421
|
name: string;
|
|
366
|
-
|
|
422
|
+
keywords: Keyword[];
|
|
423
|
+
translations: {
|
|
367
424
|
[key: string]: string;
|
|
368
425
|
};
|
|
369
|
-
}
|
|
370
|
-
|
|
426
|
+
}
|
|
371
427
|
interface Keyword {
|
|
372
428
|
id: string;
|
|
373
429
|
name: string;
|
|
@@ -408,10 +464,18 @@ declare enum KnownNewsState {
|
|
|
408
464
|
Alert = 2
|
|
409
465
|
}
|
|
410
466
|
|
|
467
|
+
interface Channel {
|
|
468
|
+
id: string;
|
|
469
|
+
name: string;
|
|
470
|
+
translations?: {
|
|
471
|
+
[key: string]: string;
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
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;
|
|
@@ -419,20 +483,11 @@ interface NewsItem extends SchedulableItem {
|
|
|
419
483
|
expiryDate?: string;
|
|
420
484
|
knownState: KnownNewsState;
|
|
421
485
|
hasNewComments?: boolean;
|
|
422
|
-
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
486
|
}
|
|
429
487
|
interface NewsItemAlertOptions {
|
|
430
488
|
duration?: string;
|
|
431
489
|
endDate?: Date;
|
|
432
490
|
expireAfter?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface SchedulableItemChannel {
|
|
435
|
-
name: string;
|
|
436
491
|
}
|
|
437
492
|
|
|
438
493
|
declare enum VideoSource {
|
|
@@ -558,6 +613,7 @@ interface PublishableItem extends BaseItem {
|
|
|
558
613
|
statistics?: ItemStatistics;
|
|
559
614
|
useExternalContent?: boolean;
|
|
560
615
|
isDemoContent?: boolean;
|
|
616
|
+
isLiked?: boolean;
|
|
561
617
|
}
|
|
562
618
|
interface PollTranslation {
|
|
563
619
|
questions: QuestionTranslations[];
|
|
@@ -599,6 +655,18 @@ interface Attachment extends BaseAttachment {
|
|
|
599
655
|
type: AttachmentType;
|
|
600
656
|
}
|
|
601
657
|
|
|
658
|
+
declare enum GraphQLAttachmentType {
|
|
659
|
+
Image = "IMAGE",
|
|
660
|
+
File = "FILE",
|
|
661
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
662
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
663
|
+
News = "NEWS",
|
|
664
|
+
Event = "EVENT",
|
|
665
|
+
Page = "PAGE",
|
|
666
|
+
Post = "POST",
|
|
667
|
+
Giphy = "GIPHY"
|
|
668
|
+
}
|
|
669
|
+
|
|
602
670
|
interface ItemWithAttachments {
|
|
603
671
|
attachments?: Attachment[];
|
|
604
672
|
fileAccessToken?: string;
|
|
@@ -748,6 +816,7 @@ interface PageItem extends PublishableItem {
|
|
|
748
816
|
isUnlinked?: boolean;
|
|
749
817
|
pageType?: PageType;
|
|
750
818
|
firstChildId?: string;
|
|
819
|
+
isGroupInheritanceBroken?: boolean;
|
|
751
820
|
}
|
|
752
821
|
interface ContentsSummary {
|
|
753
822
|
[lang: string]: TitleContent & {
|
|
@@ -769,6 +838,7 @@ interface PageNavigationNode {
|
|
|
769
838
|
hasAnyPageChild?: boolean;
|
|
770
839
|
pageType?: PageType;
|
|
771
840
|
useExternalContent?: boolean;
|
|
841
|
+
isGroupInheritanceBroken?: boolean;
|
|
772
842
|
isSearchMatch?: boolean;
|
|
773
843
|
topLevelFolderName?: string;
|
|
774
844
|
uploadToken?: string;
|
|
@@ -783,7 +853,24 @@ declare enum PageType {
|
|
|
783
853
|
Document = 1
|
|
784
854
|
}
|
|
785
855
|
|
|
786
|
-
declare
|
|
856
|
+
declare type KeywordsByGroupId = {
|
|
857
|
+
[key: string]: Keyword[];
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
interface SubscriptionData {
|
|
861
|
+
channels?: Channel[];
|
|
862
|
+
allKeywords?: Keyword[];
|
|
863
|
+
keywordsByGroupId?: KeywordsByGroupId;
|
|
864
|
+
selectedKeywordGroups?: KeywordGroup[];
|
|
865
|
+
}
|
|
866
|
+
interface LazySubscriptionContextType extends SubscriptionData {
|
|
867
|
+
getChannels: () => Promise<Channel[]>;
|
|
868
|
+
refreshSubscription: () => void;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
declare function useLazySubscriptionContext(): LazySubscriptionContextType;
|
|
872
|
+
|
|
873
|
+
declare const LegacyDialog: FC<IDialogProps>;
|
|
787
874
|
|
|
788
875
|
interface ToolbarProps {
|
|
789
876
|
leftSide?: ReactNode;
|
|
@@ -800,6 +887,12 @@ interface ToolbarSearchProps {
|
|
|
800
887
|
}
|
|
801
888
|
declare const Toolbar: FC<ToolbarProps>;
|
|
802
889
|
|
|
890
|
+
declare type TokenType = string | number;
|
|
891
|
+
|
|
892
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
893
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
894
|
+
}
|
|
895
|
+
|
|
803
896
|
interface ToolbarChannelSelectorProps {
|
|
804
897
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
805
898
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -873,8 +966,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
873
966
|
interface Props extends IPersonaProps {
|
|
874
967
|
upn: string;
|
|
875
968
|
tenantId?: string;
|
|
876
|
-
className?: string;
|
|
877
969
|
displayName?: string;
|
|
970
|
+
forceShowSecondaryText?: boolean;
|
|
971
|
+
className?: string;
|
|
878
972
|
}
|
|
879
973
|
declare const Avatar: FC<Props>;
|
|
880
974
|
|
|
@@ -885,6 +979,13 @@ interface UserDetailsProps {
|
|
|
885
979
|
}
|
|
886
980
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
887
981
|
|
|
982
|
+
declare enum ErrorType {
|
|
983
|
+
GenericError = "genericError",
|
|
984
|
+
Error404 = "error404",
|
|
985
|
+
Error403 = "error403",
|
|
986
|
+
LoginError = "loginError"
|
|
987
|
+
}
|
|
988
|
+
|
|
888
989
|
interface PageViewTrackerSettings {
|
|
889
990
|
disabled?: boolean;
|
|
890
991
|
}
|
|
@@ -931,6 +1032,32 @@ declare enum LogicalOperator {
|
|
|
931
1032
|
And = "AND"
|
|
932
1033
|
}
|
|
933
1034
|
|
|
1035
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
1036
|
+
id: string;
|
|
1037
|
+
comments?: PaginatedList<Comment>;
|
|
1038
|
+
groupId: string;
|
|
1039
|
+
content: string;
|
|
1040
|
+
permalink?: string;
|
|
1041
|
+
author: Account;
|
|
1042
|
+
publishingDate: string;
|
|
1043
|
+
modified?: string;
|
|
1044
|
+
statistics: ItemStatistics;
|
|
1045
|
+
keywords?: {
|
|
1046
|
+
[key: string]: Keyword[];
|
|
1047
|
+
};
|
|
1048
|
+
contentLanguageCode?: string;
|
|
1049
|
+
isLiked?: boolean;
|
|
1050
|
+
isUnread?: boolean;
|
|
1051
|
+
isDemoContent?: boolean;
|
|
1052
|
+
isFollowing?: boolean;
|
|
1053
|
+
}
|
|
1054
|
+
interface PostFilterDefinition {
|
|
1055
|
+
token?: string;
|
|
1056
|
+
pageSize?: string;
|
|
1057
|
+
search?: string;
|
|
1058
|
+
keywords?: FilterWithLogicalOperator;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
934
1061
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
935
1062
|
author?: string;
|
|
936
1063
|
}
|
|
@@ -939,6 +1066,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
|
939
1066
|
channels?: FilterWithLogicalOperator;
|
|
940
1067
|
}
|
|
941
1068
|
|
|
1069
|
+
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
1070
|
+
contacts?: string[];
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
1074
|
+
startsAfter?: string;
|
|
1075
|
+
startsBefore?: string;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
1079
|
+
excludePastEvents?: boolean;
|
|
1080
|
+
pastEventsOnly?: boolean;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
942
1083
|
interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
943
1084
|
state?: WorkflowStatus;
|
|
944
1085
|
}
|
|
@@ -950,26 +1091,89 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
950
1091
|
includeExpired?: boolean;
|
|
951
1092
|
}
|
|
952
1093
|
|
|
1094
|
+
declare enum StreamEventResponse {
|
|
1095
|
+
NotSet = "NOTSET",
|
|
1096
|
+
Registered = "REGISTERED",
|
|
1097
|
+
Declined = "DECLINED"
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
declare enum StreamItemTypes {
|
|
1101
|
+
Post = "POST",
|
|
1102
|
+
News = "NEWS",
|
|
1103
|
+
Event = "EVENT",
|
|
1104
|
+
Page = "PAGE"
|
|
1105
|
+
}
|
|
1106
|
+
declare enum StreamConversationScope {
|
|
1107
|
+
Public = "PUBLIC",
|
|
1108
|
+
Editor = "EDITOR",
|
|
1109
|
+
Posts = "POSTS"
|
|
1110
|
+
}
|
|
1111
|
+
interface PostStreamItem extends Post {
|
|
1112
|
+
type: StreamItemTypes.Post;
|
|
1113
|
+
isUnread: boolean;
|
|
1114
|
+
keywordsList?: Keyword[];
|
|
1115
|
+
groupIds?: string[];
|
|
1116
|
+
postAttachments?: StreamAttachment[];
|
|
1117
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1118
|
+
hasMoreUnreadComments: boolean;
|
|
1119
|
+
}
|
|
1120
|
+
interface StreamPostComment extends Comment {
|
|
1121
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1122
|
+
streamConversationScope?: StreamConversationScope;
|
|
1123
|
+
}
|
|
1124
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1125
|
+
type: GraphQLAttachmentType;
|
|
1126
|
+
}
|
|
1127
|
+
interface NewsStreamItem extends NewsItem {
|
|
1128
|
+
type: StreamItemTypes.News;
|
|
1129
|
+
contentsList: StreamPublishableItemContents[];
|
|
1130
|
+
channelsList: string[];
|
|
1131
|
+
isUnread: boolean;
|
|
1132
|
+
keywordsList?: Keyword[];
|
|
1133
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1134
|
+
}
|
|
1135
|
+
declare enum StreamKnownNewsState {
|
|
1136
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1137
|
+
Alert = "ALERT"
|
|
1138
|
+
}
|
|
1139
|
+
interface EventStreamItem extends EventItem {
|
|
1140
|
+
type: StreamItemTypes.Event;
|
|
1141
|
+
contentsList: StreamPublishableItemContents[];
|
|
1142
|
+
channelsList: string[];
|
|
1143
|
+
isUnread: boolean;
|
|
1144
|
+
keywordsList?: Keyword[];
|
|
1145
|
+
userResponseType?: StreamEventResponse;
|
|
1146
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1147
|
+
}
|
|
1148
|
+
interface PageStreamItem extends PageItem {
|
|
1149
|
+
type: StreamItemTypes.Page;
|
|
1150
|
+
contentsList: StreamPublishableItemContents[];
|
|
1151
|
+
channelsList: string[];
|
|
1152
|
+
isUnread: boolean;
|
|
1153
|
+
keywordsList?: Keyword[];
|
|
1154
|
+
streamPageType?: string;
|
|
1155
|
+
path?: (PageNavigationNode & {
|
|
1156
|
+
parentId?: string;
|
|
1157
|
+
})[];
|
|
1158
|
+
}
|
|
1159
|
+
interface StreamPublishableItemContents {
|
|
1160
|
+
language: string;
|
|
1161
|
+
title: string;
|
|
1162
|
+
intro?: string;
|
|
1163
|
+
headline?: string;
|
|
1164
|
+
}
|
|
1165
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1166
|
+
cancellationReasons?: {
|
|
1167
|
+
[key: string]: string;
|
|
1168
|
+
}[];
|
|
1169
|
+
}
|
|
1170
|
+
|
|
953
1171
|
interface TargetLinkOverrideContextProps {
|
|
954
1172
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
955
1173
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
956
1174
|
}
|
|
957
1175
|
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
958
1176
|
|
|
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
1177
|
interface KeywordPickerProps {
|
|
974
1178
|
value?: Keyword[] | string[];
|
|
975
1179
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -990,35 +1194,17 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
990
1194
|
pageType?: PageType;
|
|
991
1195
|
}
|
|
992
1196
|
|
|
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
|
-
}
|
|
1197
|
+
declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1198
|
+
|
|
1199
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1018
1200
|
|
|
1019
1201
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1020
1202
|
}
|
|
1021
1203
|
|
|
1204
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1205
|
+
|
|
1206
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1207
|
+
|
|
1022
1208
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
1023
1209
|
channels?: string | FilterWithLogicalOperator;
|
|
1024
1210
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1071,6 +1257,7 @@ interface NewsGridProps {
|
|
|
1071
1257
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1072
1258
|
includeAllItems?: boolean;
|
|
1073
1259
|
className?: string;
|
|
1260
|
+
hideIntro?: boolean;
|
|
1074
1261
|
}
|
|
1075
1262
|
declare const NewsGrid: FC<NewsGridProps>;
|
|
1076
1263
|
|
|
@@ -1128,6 +1315,7 @@ interface NewsEditorDashboardProps {
|
|
|
1128
1315
|
groupId?: string;
|
|
1129
1316
|
className?: string;
|
|
1130
1317
|
onItemClick?: (item: NewsItem) => unknown;
|
|
1318
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1131
1319
|
pageSize?: number;
|
|
1132
1320
|
hidePagination?: boolean;
|
|
1133
1321
|
}
|
|
@@ -1137,6 +1325,7 @@ interface EventsEditorDashboardProps {
|
|
|
1137
1325
|
groupId?: string;
|
|
1138
1326
|
className?: string;
|
|
1139
1327
|
onItemClick?: (item: EventItem) => unknown;
|
|
1328
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1140
1329
|
pageSize?: number;
|
|
1141
1330
|
hidePagination?: boolean;
|
|
1142
1331
|
}
|
|
@@ -1146,7 +1335,15 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1146
1335
|
itemId: string;
|
|
1147
1336
|
}>;
|
|
1148
1337
|
|
|
1149
|
-
declare const
|
|
1338
|
+
declare const PageItemContextProvider: FC<{
|
|
1339
|
+
itemId: string;
|
|
1340
|
+
}>;
|
|
1341
|
+
|
|
1342
|
+
declare const EventItemContextProvider: FC<{
|
|
1343
|
+
itemId: string;
|
|
1344
|
+
}>;
|
|
1345
|
+
|
|
1346
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1150
1347
|
showEditLanguagePreferences?: boolean;
|
|
1151
1348
|
onEditLanguagePreferences?: () => unknown;
|
|
1152
1349
|
}>;
|
|
@@ -1155,18 +1352,32 @@ declare const ToolbarManageNewsItemButton: FC<{
|
|
|
1155
1352
|
onClick?: (itemId: string) => unknown;
|
|
1156
1353
|
}>;
|
|
1157
1354
|
|
|
1158
|
-
interface
|
|
1355
|
+
interface SharedItemDetailPreviewProps {
|
|
1159
1356
|
itemId?: string;
|
|
1160
1357
|
versionId?: string;
|
|
1161
1358
|
className?: string;
|
|
1359
|
+
hideLikes?: boolean;
|
|
1360
|
+
hideComments?: boolean;
|
|
1162
1361
|
}
|
|
1163
|
-
declare const NewsDetailPreview: FC<
|
|
1362
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1363
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1364
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1164
1365
|
|
|
1165
1366
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1166
1367
|
itemId: string;
|
|
1167
1368
|
versionId?: string;
|
|
1168
1369
|
}>;
|
|
1169
1370
|
|
|
1371
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1372
|
+
itemId: string;
|
|
1373
|
+
versionId?: string;
|
|
1374
|
+
}>;
|
|
1375
|
+
|
|
1376
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1377
|
+
itemId: string;
|
|
1378
|
+
versionId?: string;
|
|
1379
|
+
}>;
|
|
1380
|
+
|
|
1170
1381
|
interface FilterProps {
|
|
1171
1382
|
filter: IndexableFilterDefinition;
|
|
1172
1383
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1324,6 +1535,7 @@ interface PagesGridProps {
|
|
|
1324
1535
|
rowCount?: number;
|
|
1325
1536
|
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1326
1537
|
onKeywordClick?: (keyword: string) => unknown;
|
|
1538
|
+
hideIntro?: boolean;
|
|
1327
1539
|
className?: string;
|
|
1328
1540
|
}
|
|
1329
1541
|
declare const PagesGrid: FC<PagesGridProps>;
|
|
@@ -1364,10 +1576,37 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1364
1576
|
declare const EventEditorToolbarStateActions: FC;
|
|
1365
1577
|
|
|
1366
1578
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1367
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1368
|
-
onResetModifiedInstance: () => void;
|
|
1369
1579
|
className?: string;
|
|
1370
1580
|
}
|
|
1371
1581
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1372
1582
|
|
|
1373
|
-
|
|
1583
|
+
interface PageEditorContextProviderProps {
|
|
1584
|
+
itemId?: string;
|
|
1585
|
+
groupId?: string;
|
|
1586
|
+
parentId?: string;
|
|
1587
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1588
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1589
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1590
|
+
}
|
|
1591
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1592
|
+
|
|
1593
|
+
interface PageEditorProps {
|
|
1594
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1595
|
+
className?: string;
|
|
1596
|
+
}
|
|
1597
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1598
|
+
|
|
1599
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1600
|
+
|
|
1601
|
+
interface PageEditorPanelProps {
|
|
1602
|
+
className?: string;
|
|
1603
|
+
}
|
|
1604
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1605
|
+
|
|
1606
|
+
interface ErrorWrapperProps {
|
|
1607
|
+
errorType: ErrorType;
|
|
1608
|
+
isList?: boolean;
|
|
1609
|
+
}
|
|
1610
|
+
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1611
|
+
|
|
1612
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, LegacyDialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, 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 };
|