@livetiles/reach-components-react 0.4.0-preview.707 → 0.4.0-preview.708
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 -162
- 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
|
};
|
|
@@ -514,7 +494,6 @@ interface BannerInfo {
|
|
|
514
494
|
videoUrl?: string;
|
|
515
495
|
isDirectVideoUrl?: boolean;
|
|
516
496
|
imageId?: string;
|
|
517
|
-
altText?: string;
|
|
518
497
|
}
|
|
519
498
|
interface LeaseInfo {
|
|
520
499
|
leaseId: string | null;
|
|
@@ -569,71 +548,6 @@ interface ChoiceTranslations {
|
|
|
569
548
|
|
|
570
549
|
declare function useCurrentUser(): CurrentUser;
|
|
571
550
|
|
|
572
|
-
declare enum AttachmentType {
|
|
573
|
-
Image = 0,
|
|
574
|
-
File = 1,
|
|
575
|
-
YouTubeVideo = 2,
|
|
576
|
-
VimeoVideo = 3,
|
|
577
|
-
News = 4,
|
|
578
|
-
Event = 5,
|
|
579
|
-
Page = 6,
|
|
580
|
-
Post = 7,
|
|
581
|
-
Giphy = 8
|
|
582
|
-
}
|
|
583
|
-
interface BaseAttachment {
|
|
584
|
-
id: string;
|
|
585
|
-
filename?: string;
|
|
586
|
-
previewUrl?: string;
|
|
587
|
-
url?: string;
|
|
588
|
-
isUploadInProgress?: boolean;
|
|
589
|
-
hasError?: boolean;
|
|
590
|
-
width?: number;
|
|
591
|
-
height?: number;
|
|
592
|
-
}
|
|
593
|
-
interface Attachment extends BaseAttachment {
|
|
594
|
-
type: AttachmentType;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
interface ItemWithAttachments {
|
|
598
|
-
attachments?: Attachment[];
|
|
599
|
-
fileAccessToken?: string;
|
|
600
|
-
attachmentContainerId?: string;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
interface Comment extends ItemWithAttachments {
|
|
604
|
-
id: string;
|
|
605
|
-
parentItemId: string;
|
|
606
|
-
content: string;
|
|
607
|
-
contentLanguageCode?: string;
|
|
608
|
-
receivedDateTime: string;
|
|
609
|
-
sender: Account;
|
|
610
|
-
conversationScope: ConversationScope;
|
|
611
|
-
modified?: string;
|
|
612
|
-
statistics?: CommentStatistics;
|
|
613
|
-
isLiked?: boolean;
|
|
614
|
-
threadId?: string;
|
|
615
|
-
isUnread?: boolean;
|
|
616
|
-
hasUnreadReplies?: boolean;
|
|
617
|
-
isDemoContent?: boolean;
|
|
618
|
-
}
|
|
619
|
-
interface CommentStatistics {
|
|
620
|
-
likeCount?: number;
|
|
621
|
-
replyCount?: number;
|
|
622
|
-
}
|
|
623
|
-
declare enum ConversationScope {
|
|
624
|
-
Public = 0,
|
|
625
|
-
Editor = 1,
|
|
626
|
-
Posts = 2
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
declare enum ItemResourceTypes {
|
|
630
|
-
News = "news",
|
|
631
|
-
Pages = "pages",
|
|
632
|
-
Posts = "posts",
|
|
633
|
-
Events = "events",
|
|
634
|
-
Comments = "comments"
|
|
635
|
-
}
|
|
636
|
-
|
|
637
551
|
declare enum EventResponse {
|
|
638
552
|
NotSet = 0,
|
|
639
553
|
Registered = 1,
|
|
@@ -788,7 +702,9 @@ interface ToolbarMarkAllItemsAsReadButtonProps {
|
|
|
788
702
|
onMarkAsReadFinished?: () => unknown;
|
|
789
703
|
disabled?: boolean;
|
|
790
704
|
unreadCount?: number;
|
|
791
|
-
}
|
|
705
|
+
}
|
|
706
|
+
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
|
|
707
|
+
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
|
|
792
708
|
|
|
793
709
|
declare const ToolbarUnreadItemsButton: FC<{
|
|
794
710
|
onClick: () => unknown;
|
|
@@ -834,13 +750,6 @@ interface UserDetailsProps {
|
|
|
834
750
|
}
|
|
835
751
|
declare const UserDetails: FC<UserDetailsProps>;
|
|
836
752
|
|
|
837
|
-
interface PageViewTrackerSettings {
|
|
838
|
-
disabled?: boolean;
|
|
839
|
-
}
|
|
840
|
-
declare const PageViewTrackerSettingsContextProvider: FC<{
|
|
841
|
-
disabled?: boolean;
|
|
842
|
-
}>;
|
|
843
|
-
|
|
844
753
|
interface OwnerFilterDefinition extends IndexableFilterDefinition {
|
|
845
754
|
owner?: string;
|
|
846
755
|
}
|
|
@@ -873,8 +782,8 @@ interface FilterWithLogicalOperator {
|
|
|
873
782
|
operator?: LogicalOperator;
|
|
874
783
|
}
|
|
875
784
|
declare enum LogicalOperator {
|
|
876
|
-
Or = "
|
|
877
|
-
And = "
|
|
785
|
+
Or = "or",
|
|
786
|
+
And = "and"
|
|
878
787
|
}
|
|
879
788
|
|
|
880
789
|
interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -895,12 +804,6 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
895
804
|
unreadOnly?: boolean;
|
|
896
805
|
}
|
|
897
806
|
|
|
898
|
-
interface TargetLinkOverrideContextProps {
|
|
899
|
-
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
900
|
-
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
901
|
-
}
|
|
902
|
-
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
903
|
-
|
|
904
807
|
interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
905
808
|
startsAfter?: string;
|
|
906
809
|
startsBefore?: string;
|
|
@@ -915,36 +818,6 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
|
|
|
915
818
|
pastEventsOnly?: boolean;
|
|
916
819
|
}
|
|
917
820
|
|
|
918
|
-
interface KeywordPickerProps {
|
|
919
|
-
value?: Keyword[] | string[];
|
|
920
|
-
onChange: (keywords: Keyword[]) => void;
|
|
921
|
-
showSelectionToggle?: boolean;
|
|
922
|
-
availableKeywords?: Keyword[];
|
|
923
|
-
mandatoryKeywordIds?: string[];
|
|
924
|
-
className?: string;
|
|
925
|
-
}
|
|
926
|
-
declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
|
|
927
|
-
|
|
928
|
-
interface Post extends BaseItem, ItemWithAttachments {
|
|
929
|
-
id: string;
|
|
930
|
-
comments?: PaginatedList<Comment>;
|
|
931
|
-
groupId: string;
|
|
932
|
-
content: string;
|
|
933
|
-
permalink?: string;
|
|
934
|
-
author: Account;
|
|
935
|
-
publishingDate: string;
|
|
936
|
-
modified?: string;
|
|
937
|
-
statistics: ItemStatistics;
|
|
938
|
-
keywords?: {
|
|
939
|
-
[key: string]: Keyword[];
|
|
940
|
-
};
|
|
941
|
-
contentLanguageCode?: string;
|
|
942
|
-
isLiked?: boolean;
|
|
943
|
-
isUnread?: boolean;
|
|
944
|
-
isDemoContent?: boolean;
|
|
945
|
-
isFollowing?: boolean;
|
|
946
|
-
}
|
|
947
|
-
|
|
948
821
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
949
822
|
channels?: string | FilterWithLogicalOperator;
|
|
950
823
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1147,18 +1020,6 @@ interface NewsEditorProps {
|
|
|
1147
1020
|
}
|
|
1148
1021
|
declare const NewsEditor: FC<NewsEditorProps>;
|
|
1149
1022
|
|
|
1150
|
-
interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1151
|
-
filter?: LibNewsFilterDefinition;
|
|
1152
|
-
searchText?: string;
|
|
1153
|
-
}
|
|
1154
|
-
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
|
|
1155
|
-
|
|
1156
|
-
interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1157
|
-
filter?: EventFilterDefinition;
|
|
1158
|
-
searchText?: string;
|
|
1159
|
-
}
|
|
1160
|
-
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
|
|
1161
|
-
|
|
1162
1023
|
interface EditorToolbarIndicatorsProps {
|
|
1163
1024
|
className?: string;
|
|
1164
1025
|
}
|
|
@@ -1179,20 +1040,4 @@ declare const NewsEditorPanel: FC<{
|
|
|
1179
1040
|
className?: string;
|
|
1180
1041
|
}>;
|
|
1181
1042
|
|
|
1182
|
-
|
|
1183
|
-
groupId: string;
|
|
1184
|
-
onBeforeSave: (post: Post) => void;
|
|
1185
|
-
onAfterSave: (post: Post) => void;
|
|
1186
|
-
disableDragAndDrop?: boolean;
|
|
1187
|
-
disableAutoFocus?: boolean;
|
|
1188
|
-
className?: string;
|
|
1189
|
-
}
|
|
1190
|
-
declare const PostInputBox: FC<PostInputBoxProps>;
|
|
1191
|
-
|
|
1192
|
-
interface PostListProps {
|
|
1193
|
-
pageSize: number;
|
|
1194
|
-
groupId?: string;
|
|
1195
|
-
}
|
|
1196
|
-
declare const PostList: FC<PostListProps>;
|
|
1197
|
-
|
|
1198
|
-
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";
|