@livetiles/reach-components-react 0.4.0-preview.682 → 0.4.0-preview.686
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/da.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/index.d.ts +7 -161
- package/index.esm.js +1 -1
- package/index.esm2.js +13 -13
- package/index.umd.js +22 -22
- package/package.json +1 -1
- package/PostInputBox.d.ts +0 -11
- package/PostList.d.ts +0 -6
- package/ToolbarMarkAllEventsAsReadButton.d.ts +0 -8
- package/ToolbarMarkAllNewsAsReadButton.d.ts +0 -8
- package/da.async.esm2.esm.js +0 -1
- package/da.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -51,14 +51,6 @@ 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
|
-
|
|
62
54
|
declare enum AuthenticationType {
|
|
63
55
|
unknown = 0,
|
|
64
56
|
azuread = 1,
|
|
@@ -446,19 +438,6 @@ interface BaseItem {
|
|
|
446
438
|
id?: string;
|
|
447
439
|
statistics?: ItemStatistics;
|
|
448
440
|
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;
|
|
462
441
|
}
|
|
463
442
|
interface Poll {
|
|
464
443
|
questions: PollQuestion[];
|
|
@@ -493,6 +472,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
493
472
|
headline?: string;
|
|
494
473
|
intro?: string;
|
|
495
474
|
body?: string;
|
|
475
|
+
bodyRaw?: string;
|
|
496
476
|
customProperties?: {
|
|
497
477
|
[key: string]: any;
|
|
498
478
|
};
|
|
@@ -568,71 +548,6 @@ interface ChoiceTranslations {
|
|
|
568
548
|
|
|
569
549
|
declare function useCurrentUser(): CurrentUser;
|
|
570
550
|
|
|
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
|
-
|
|
636
551
|
declare enum EventResponse {
|
|
637
552
|
NotSet = 0,
|
|
638
553
|
Registered = 1,
|
|
@@ -787,7 +702,9 @@ interface ToolbarMarkAllItemsAsReadButtonProps {
|
|
|
787
702
|
onMarkAsReadFinished?: () => unknown;
|
|
788
703
|
disabled?: boolean;
|
|
789
704
|
unreadCount?: number;
|
|
790
|
-
}
|
|
705
|
+
}
|
|
706
|
+
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
|
|
707
|
+
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
|
|
791
708
|
|
|
792
709
|
declare const ToolbarUnreadItemsButton: FC<{
|
|
793
710
|
onClick: () => unknown;
|
|
@@ -833,13 +750,6 @@ interface UserDetailsProps {
|
|
|
833
750
|
}
|
|
834
751
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
835
752
|
|
|
836
|
-
interface PageViewTrackerSettings {
|
|
837
|
-
disabled?: boolean;
|
|
838
|
-
}
|
|
839
|
-
declare const PageViewTrackerSettingsContextProvider: FC<{
|
|
840
|
-
disabled?: boolean;
|
|
841
|
-
}>;
|
|
842
|
-
|
|
843
753
|
interface OwnerFilterDefinition extends IndexableFilterDefinition {
|
|
844
754
|
owner?: string;
|
|
845
755
|
}
|
|
@@ -872,8 +782,8 @@ interface FilterWithLogicalOperator {
|
|
|
872
782
|
operator?: LogicalOperator;
|
|
873
783
|
}
|
|
874
784
|
declare enum LogicalOperator {
|
|
875
|
-
Or = "
|
|
876
|
-
And = "
|
|
785
|
+
Or = "or",
|
|
786
|
+
And = "and"
|
|
877
787
|
}
|
|
878
788
|
|
|
879
789
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -894,12 +804,6 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
894
804
|
unreadOnly?: boolean;
|
|
895
805
|
}
|
|
896
806
|
|
|
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
|
-
|
|
903
807
|
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
904
808
|
startsAfter?: string;
|
|
905
809
|
startsBefore?: string;
|
|
@@ -914,36 +818,6 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
|
|
|
914
818
|
pastEventsOnly?: boolean;
|
|
915
819
|
}
|
|
916
820
|
|
|
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
|
-
|
|
947
821
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
948
822
|
channels?: string | FilterWithLogicalOperator;
|
|
949
823
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1146,18 +1020,6 @@ interface NewsEditorProps {
|
|
|
1146
1020
|
}
|
|
1147
1021
|
declare const NewsEditor: FC<NewsEditorProps>;
|
|
1148
1022
|
|
|
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
|
-
|
|
1161
1023
|
interface EditorToolbarIndicatorsProps {
|
|
1162
1024
|
className?: string;
|
|
1163
1025
|
}
|
|
@@ -1178,20 +1040,4 @@ declare const NewsEditorPanel: FC<{
|
|
|
1178
1040
|
className?: string;
|
|
1179
1041
|
}>;
|
|
1180
1042
|
|
|
1181
|
-
|
|
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 };
|
|
1043
|
+
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, 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, PostDetail, PostDetailProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, 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,a8 as EditorToolbarIndicators,E as EventDetail,a3 as EventView,r as EventsEditorDashboard,l as EventsGrid,n as EventsList,a0 as FilterSearch,I as ItemLayoutMode,X as KeywordsFilter,Y as KeywordsToolbarFilter,M as ManageChannels,N as NewsDetail,F as NewsDetailPreview,a5 as NewsEditor,a6 as NewsEditorContextProvider,q as NewsEditorDashboard,aa as NewsEditorPanel,a9 as NewsEditorToolbarStateActions,k as NewsGrid,p as NewsHero,B as NewsItemContextProvider,G as NewsItemPreviewContextProvider,j as NewsList,h as PageDetail,i as PostDetail,S as PublishingDateFilter,Q as PublishingDateToolbarFilter,R as ReachContextProvider,a7 as ReachDialog,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";
|