@livetiles/reach-components-react 0.4.0-preview.684 → 0.4.0-preview.696
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/PostInputBox.d.ts +11 -0
- package/PostList.d.ts +6 -0
- package/ToolbarMarkAllEventsAsReadButton.d.ts +8 -0
- package/ToolbarMarkAllNewsAsReadButton.d.ts +8 -0
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -0
- package/da.esm.js +1 -0
- package/en.async.esm.esm.js +1 -1
- package/index.d.ts +161 -7
- package/index.esm.js +1 -1
- package/index.esm2.js +13 -13
- package/index.umd.js +22 -22
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -51,6 +51,14 @@ interface PostDetailProps {
|
|
|
51
51
|
}
|
|
52
52
|
declare const PostDetail: FC<PostDetailProps>;
|
|
53
53
|
|
|
54
|
+
interface PaginatedList<TItem> {
|
|
55
|
+
items: TItem[];
|
|
56
|
+
paginationToken?: any;
|
|
57
|
+
nextItem?: TItem;
|
|
58
|
+
hasMoreUnreadComments?: boolean;
|
|
59
|
+
hasNextPage?: boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
54
62
|
declare enum AuthenticationType {
|
|
55
63
|
unknown = 0,
|
|
56
64
|
azuread = 1,
|
|
@@ -438,6 +446,19 @@ interface BaseItem {
|
|
|
438
446
|
id?: string;
|
|
439
447
|
statistics?: ItemStatistics;
|
|
440
448
|
poll?: Poll;
|
|
449
|
+
searchHighlights?: SearchHighlightSummary;
|
|
450
|
+
}
|
|
451
|
+
interface SearchHighlightSummary {
|
|
452
|
+
title: SearchHighlight[];
|
|
453
|
+
content: SearchHighlight[];
|
|
454
|
+
}
|
|
455
|
+
interface SearchHighlight {
|
|
456
|
+
language: string;
|
|
457
|
+
texts: {
|
|
458
|
+
value: string;
|
|
459
|
+
type: 'text' | 'hit';
|
|
460
|
+
}[];
|
|
461
|
+
score: number;
|
|
441
462
|
}
|
|
442
463
|
interface Poll {
|
|
443
464
|
questions: PollQuestion[];
|
|
@@ -472,7 +493,6 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
472
493
|
headline?: string;
|
|
473
494
|
intro?: string;
|
|
474
495
|
body?: string;
|
|
475
|
-
bodyRaw?: string;
|
|
476
496
|
customProperties?: {
|
|
477
497
|
[key: string]: any;
|
|
478
498
|
};
|
|
@@ -548,6 +568,71 @@ interface ChoiceTranslations {
|
|
|
548
568
|
|
|
549
569
|
declare function useCurrentUser(): CurrentUser;
|
|
550
570
|
|
|
571
|
+
declare enum AttachmentType {
|
|
572
|
+
Image = 0,
|
|
573
|
+
File = 1,
|
|
574
|
+
YouTubeVideo = 2,
|
|
575
|
+
VimeoVideo = 3,
|
|
576
|
+
News = 4,
|
|
577
|
+
Event = 5,
|
|
578
|
+
Page = 6,
|
|
579
|
+
Post = 7,
|
|
580
|
+
Giphy = 8
|
|
581
|
+
}
|
|
582
|
+
interface BaseAttachment {
|
|
583
|
+
id: string;
|
|
584
|
+
filename?: string;
|
|
585
|
+
previewUrl?: string;
|
|
586
|
+
url?: string;
|
|
587
|
+
isUploadInProgress?: boolean;
|
|
588
|
+
hasError?: boolean;
|
|
589
|
+
width?: number;
|
|
590
|
+
height?: number;
|
|
591
|
+
}
|
|
592
|
+
interface Attachment extends BaseAttachment {
|
|
593
|
+
type: AttachmentType;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
interface ItemWithAttachments {
|
|
597
|
+
attachments?: Attachment[];
|
|
598
|
+
fileAccessToken?: string;
|
|
599
|
+
attachmentContainerId?: string;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
interface Comment extends ItemWithAttachments {
|
|
603
|
+
id: string;
|
|
604
|
+
parentItemId: string;
|
|
605
|
+
content: string;
|
|
606
|
+
contentLanguageCode?: string;
|
|
607
|
+
receivedDateTime: string;
|
|
608
|
+
sender: Account;
|
|
609
|
+
conversationScope: ConversationScope;
|
|
610
|
+
modified?: string;
|
|
611
|
+
statistics?: CommentStatistics;
|
|
612
|
+
isLiked?: boolean;
|
|
613
|
+
threadId?: string;
|
|
614
|
+
isUnread?: boolean;
|
|
615
|
+
hasUnreadReplies?: boolean;
|
|
616
|
+
isDemoContent?: boolean;
|
|
617
|
+
}
|
|
618
|
+
interface CommentStatistics {
|
|
619
|
+
likeCount?: number;
|
|
620
|
+
replyCount?: number;
|
|
621
|
+
}
|
|
622
|
+
declare enum ConversationScope {
|
|
623
|
+
Public = 0,
|
|
624
|
+
Editor = 1,
|
|
625
|
+
Posts = 2
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
declare enum ItemResourceTypes {
|
|
629
|
+
News = "news",
|
|
630
|
+
Pages = "pages",
|
|
631
|
+
Posts = "posts",
|
|
632
|
+
Events = "events",
|
|
633
|
+
Comments = "comments"
|
|
634
|
+
}
|
|
635
|
+
|
|
551
636
|
declare enum EventResponse {
|
|
552
637
|
NotSet = 0,
|
|
553
638
|
Registered = 1,
|
|
@@ -702,9 +787,7 @@ interface ToolbarMarkAllItemsAsReadButtonProps {
|
|
|
702
787
|
onMarkAsReadFinished?: () => unknown;
|
|
703
788
|
disabled?: boolean;
|
|
704
789
|
unreadCount?: number;
|
|
705
|
-
}
|
|
706
|
-
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
|
|
707
|
-
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
|
|
790
|
+
}
|
|
708
791
|
|
|
709
792
|
declare const ToolbarUnreadItemsButton: FC<{
|
|
710
793
|
onClick: () => unknown;
|
|
@@ -750,6 +833,13 @@ interface UserDetailsProps {
|
|
|
750
833
|
}
|
|
751
834
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
752
835
|
|
|
836
|
+
interface PageViewTrackerSettings {
|
|
837
|
+
disabled?: boolean;
|
|
838
|
+
}
|
|
839
|
+
declare const PageViewTrackerSettingsContextProvider: FC<{
|
|
840
|
+
disabled?: boolean;
|
|
841
|
+
}>;
|
|
842
|
+
|
|
753
843
|
interface OwnerFilterDefinition extends IndexableFilterDefinition {
|
|
754
844
|
owner?: string;
|
|
755
845
|
}
|
|
@@ -782,8 +872,8 @@ interface FilterWithLogicalOperator {
|
|
|
782
872
|
operator?: LogicalOperator;
|
|
783
873
|
}
|
|
784
874
|
declare enum LogicalOperator {
|
|
785
|
-
Or = "
|
|
786
|
-
And = "
|
|
875
|
+
Or = "OR",
|
|
876
|
+
And = "AND"
|
|
787
877
|
}
|
|
788
878
|
|
|
789
879
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -804,6 +894,12 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
804
894
|
unreadOnly?: boolean;
|
|
805
895
|
}
|
|
806
896
|
|
|
897
|
+
interface TargetLinkOverrideContextProps {
|
|
898
|
+
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
899
|
+
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
900
|
+
}
|
|
901
|
+
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
902
|
+
|
|
807
903
|
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
808
904
|
startsAfter?: string;
|
|
809
905
|
startsBefore?: string;
|
|
@@ -818,6 +914,36 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
|
|
|
818
914
|
pastEventsOnly?: boolean;
|
|
819
915
|
}
|
|
820
916
|
|
|
917
|
+
interface KeywordPickerProps {
|
|
918
|
+
value?: Keyword[] | string[];
|
|
919
|
+
onChange: (keywords: Keyword[]) => void;
|
|
920
|
+
showSelectionToggle?: boolean;
|
|
921
|
+
availableKeywords?: Keyword[];
|
|
922
|
+
mandatoryKeywordIds?: string[];
|
|
923
|
+
className?: string;
|
|
924
|
+
}
|
|
925
|
+
declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
|
|
926
|
+
|
|
927
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
928
|
+
id: string;
|
|
929
|
+
comments?: PaginatedList<Comment>;
|
|
930
|
+
groupId: string;
|
|
931
|
+
content: string;
|
|
932
|
+
permalink?: string;
|
|
933
|
+
author: Account;
|
|
934
|
+
publishingDate: string;
|
|
935
|
+
modified?: string;
|
|
936
|
+
statistics: ItemStatistics;
|
|
937
|
+
keywords?: {
|
|
938
|
+
[key: string]: Keyword[];
|
|
939
|
+
};
|
|
940
|
+
contentLanguageCode?: string;
|
|
941
|
+
isLiked?: boolean;
|
|
942
|
+
isUnread?: boolean;
|
|
943
|
+
isDemoContent?: boolean;
|
|
944
|
+
isFollowing?: boolean;
|
|
945
|
+
}
|
|
946
|
+
|
|
821
947
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
822
948
|
channels?: string | FilterWithLogicalOperator;
|
|
823
949
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1020,6 +1146,18 @@ interface NewsEditorProps {
|
|
|
1020
1146
|
}
|
|
1021
1147
|
declare const NewsEditor: FC<NewsEditorProps>;
|
|
1022
1148
|
|
|
1149
|
+
interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1150
|
+
filter?: LibNewsFilterDefinition;
|
|
1151
|
+
searchText?: string;
|
|
1152
|
+
}
|
|
1153
|
+
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
|
|
1154
|
+
|
|
1155
|
+
interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1156
|
+
filter?: EventFilterDefinition;
|
|
1157
|
+
searchText?: string;
|
|
1158
|
+
}
|
|
1159
|
+
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
|
|
1160
|
+
|
|
1023
1161
|
interface EditorToolbarIndicatorsProps {
|
|
1024
1162
|
className?: string;
|
|
1025
1163
|
}
|
|
@@ -1040,4 +1178,20 @@ declare const NewsEditorPanel: FC<{
|
|
|
1040
1178
|
className?: string;
|
|
1041
1179
|
}>;
|
|
1042
1180
|
|
|
1043
|
-
|
|
1181
|
+
interface PostInputBoxProps {
|
|
1182
|
+
groupId: string;
|
|
1183
|
+
onBeforeSave: (post: Post) => void;
|
|
1184
|
+
onAfterSave: (post: Post) => void;
|
|
1185
|
+
disableDragAndDrop?: boolean;
|
|
1186
|
+
disableAutoFocus?: boolean;
|
|
1187
|
+
className?: string;
|
|
1188
|
+
}
|
|
1189
|
+
declare const PostInputBox: FC<PostInputBoxProps>;
|
|
1190
|
+
|
|
1191
|
+
interface PostListProps {
|
|
1192
|
+
pageSize: number;
|
|
1193
|
+
groupId?: string;
|
|
1194
|
+
}
|
|
1195
|
+
declare const PostList: FC<PostListProps>;
|
|
1196
|
+
|
|
1197
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, EditorToolbarIndicators, EditorToolbarIndicatorsProps, EventDetail, EventDetailProps, EventGridProps, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, ItemLayoutMode, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PostDetail, PostDetailProps, PostInputBox, PostInputBoxProps, PostList, PostListProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, useCurrentUser };
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{$ as AuthorFilter,Z as AuthorToolbarFilter,A as Avatar,L as ChannelFilter,a4 as ChannelSelector,O as ChannelToolbarFilter,W as ClearAllFiltersButton,
|
|
1
|
+
export{$ as AuthorFilter,Z as AuthorToolbarFilter,A as Avatar,L as ChannelFilter,a4 as ChannelSelector,O as ChannelToolbarFilter,W as ClearAllFiltersButton,ac as EditorToolbarIndicators,E as EventDetail,a3 as EventView,r as EventsEditorDashboard,l as EventsGrid,n as EventsList,a0 as FilterSearch,I as ItemLayoutMode,a9 as ItemResourceTypes,aa as KeywordPicker,X as KeywordsFilter,Y as KeywordsToolbarFilter,M as ManageChannels,N as NewsDetail,F as NewsDetailPreview,a5 as NewsEditor,a6 as NewsEditorContextProvider,q as NewsEditorDashboard,ae as NewsEditorPanel,ad as NewsEditorToolbarStateActions,k as NewsGrid,p as NewsHero,B as NewsItemContextProvider,G as NewsItemPreviewContextProvider,j as NewsList,h as PageDetail,a7 as PageViewTrackerSettingsContextProvider,i as PostDetail,af as PostInputBox,ag as PostList,S as PublishingDateFilter,Q as PublishingDateToolbarFilter,R as ReachContextProvider,ab as ReachDialog,a8 as TargetLinkOverrideContextProvider,s as Toolbar,w as ToolbarChannelSelector,z as ToolbarCloseButton,a2 as ToolbarEventViewSelector,J as ToolbarFilterModal,K as ToolbarFilterModalButton,H as ToolbarFilterPanel,a1 as ToolbarFilterSearch,t as ToolbarIconButton,D as ToolbarManageNewsItemButton,x as ToolbarMarkAllEventsAsReadButton,y as ToolbarMarkAllNewsAsReadButton,C as ToolbarNewsLanguageSelector,v as ToolbarUnreadItemsButton,U as UserDetails,V as VerticalFilterPanel,o as useCurrentUser}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";
|