@livetiles/reach-components-react 0.4.0-preview.796 → 0.4.0-preview.799
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/ErrorWrapper.d.ts +1 -0
- package/GroupNotificationsSettings.d.ts +5 -0
- package/PostGroupSelector.d.ts +5 -0
- package/PostGroupsPicker.d.ts +5 -0
- package/PostInputBox.d.ts +10 -0
- package/PostList.d.ts +7 -0
- package/PostListContextProvider.d.ts +27 -0
- package/PublishableItemGrid.d.ts +3 -3
- package/PublishableItemList.d.ts +3 -3
- package/ToolbarFilterToggleButton.d.ts +6 -0
- package/ToolbarPostGroupSelectorButton.d.ts +2 -0
- package/ToolbarPostNotificationButton.d.ts +2 -0
- package/common/utils.d.ts +5 -15
- 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 +164 -9
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -17
- 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
|
};
|
|
@@ -549,6 +569,63 @@ interface ChoiceTranslations {
|
|
|
549
569
|
|
|
550
570
|
declare function useCurrentUser(): CurrentUser;
|
|
551
571
|
|
|
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
|
+
|
|
552
629
|
declare enum ItemResourceTypes {
|
|
553
630
|
News = "news",
|
|
554
631
|
Pages = "pages",
|
|
@@ -700,6 +777,7 @@ interface ToolbarIconButtonProps {
|
|
|
700
777
|
tooltipText?: string;
|
|
701
778
|
tooltipResourceKey?: string;
|
|
702
779
|
disabled?: boolean;
|
|
780
|
+
isActive?: boolean;
|
|
703
781
|
className?: string;
|
|
704
782
|
}
|
|
705
783
|
declare const ToolbarIconButton: styled_components.StyledComponent<FC<ToolbarIconButtonProps>, styled_components.DefaultTheme, {
|
|
@@ -848,6 +926,35 @@ interface KeywordPickerProps {
|
|
|
848
926
|
}
|
|
849
927
|
declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
|
|
850
928
|
|
|
929
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
930
|
+
id: string;
|
|
931
|
+
comments?: PaginatedList<Comment>;
|
|
932
|
+
groupId: string;
|
|
933
|
+
content: string;
|
|
934
|
+
permalink?: string;
|
|
935
|
+
author: Account;
|
|
936
|
+
publishingDate: string;
|
|
937
|
+
modified?: string;
|
|
938
|
+
statistics: ItemStatistics;
|
|
939
|
+
keywords?: {
|
|
940
|
+
[key: string]: Keyword[];
|
|
941
|
+
};
|
|
942
|
+
contentLanguageCode?: string;
|
|
943
|
+
isLiked?: boolean;
|
|
944
|
+
isUnread?: boolean;
|
|
945
|
+
isDemoContent?: boolean;
|
|
946
|
+
isFollowing?: boolean;
|
|
947
|
+
}
|
|
948
|
+
interface PostFilterDefinition {
|
|
949
|
+
token?: string;
|
|
950
|
+
pageSize?: string;
|
|
951
|
+
search?: string;
|
|
952
|
+
keywords?: FilterWithLogicalOperator;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
956
|
+
}
|
|
957
|
+
|
|
851
958
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
852
959
|
channels?: string | FilterWithLogicalOperator;
|
|
853
960
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1050,6 +1157,18 @@ interface NewsEditorProps {
|
|
|
1050
1157
|
}
|
|
1051
1158
|
declare const NewsEditor: FC<NewsEditorProps>;
|
|
1052
1159
|
|
|
1160
|
+
interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1161
|
+
filter?: LibNewsFilterDefinition;
|
|
1162
|
+
searchText?: string;
|
|
1163
|
+
}
|
|
1164
|
+
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
|
|
1165
|
+
|
|
1166
|
+
interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1167
|
+
filter?: EventFilterDefinition;
|
|
1168
|
+
searchText?: string;
|
|
1169
|
+
}
|
|
1170
|
+
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
|
|
1171
|
+
|
|
1053
1172
|
interface EditorToolbarIndicatorsProps {
|
|
1054
1173
|
className?: string;
|
|
1055
1174
|
}
|
|
@@ -1070,16 +1189,52 @@ declare const NewsEditorPanel: FC<{
|
|
|
1070
1189
|
className?: string;
|
|
1071
1190
|
}>;
|
|
1072
1191
|
|
|
1073
|
-
interface
|
|
1074
|
-
|
|
1075
|
-
|
|
1192
|
+
interface PostInputBoxProps {
|
|
1193
|
+
onBeforeSave?: (post: Post) => void;
|
|
1194
|
+
onAfterSave?: (post: Post) => void;
|
|
1195
|
+
disableDragAndDrop?: boolean;
|
|
1196
|
+
disableAutoFocus?: boolean;
|
|
1197
|
+
className?: string;
|
|
1076
1198
|
}
|
|
1077
|
-
declare const
|
|
1199
|
+
declare const PostInputBox: FC<PostInputBoxProps>;
|
|
1078
1200
|
|
|
1079
|
-
interface
|
|
1080
|
-
|
|
1201
|
+
interface PostListContextProviderProps {
|
|
1202
|
+
pageSize?: number;
|
|
1203
|
+
groupId?: string;
|
|
1204
|
+
filter?: PostStreamFilterDefinition;
|
|
1081
1205
|
searchText?: string;
|
|
1082
1206
|
}
|
|
1083
|
-
declare const
|
|
1207
|
+
declare const PostListContextProvider: FC<PostListContextProviderProps>;
|
|
1208
|
+
|
|
1209
|
+
interface PostListProps {
|
|
1210
|
+
setFilter?: (_: (filter: PostFilterDefinition) => unknown) => unknown;
|
|
1211
|
+
className?: string;
|
|
1212
|
+
}
|
|
1213
|
+
declare const PostList: FC<PostListProps>;
|
|
1214
|
+
|
|
1215
|
+
interface PostGroupsPickerProps {
|
|
1216
|
+
className?: string;
|
|
1217
|
+
}
|
|
1218
|
+
declare const PostGroupsPicker: FC<PostGroupsPickerProps>;
|
|
1219
|
+
|
|
1220
|
+
interface PostGroupSelectorProps {
|
|
1221
|
+
className?: string;
|
|
1222
|
+
}
|
|
1223
|
+
declare const PostGroupSelector: FC<PostGroupSelectorProps>;
|
|
1224
|
+
|
|
1225
|
+
interface GroupNotificationsSettingsProps {
|
|
1226
|
+
className?: string;
|
|
1227
|
+
}
|
|
1228
|
+
declare const GroupNotificationsSettings: FC<GroupNotificationsSettingsProps>;
|
|
1229
|
+
|
|
1230
|
+
declare const ToolbarPostNotificationButton: FC;
|
|
1231
|
+
|
|
1232
|
+
declare const PostGroupSelectorButton: FC;
|
|
1233
|
+
|
|
1234
|
+
declare const ToolbarFilterToggleButton: FC<{
|
|
1235
|
+
filter?: any;
|
|
1236
|
+
onClick?: () => void;
|
|
1237
|
+
}>;
|
|
1238
|
+
declare function isFilterActive(filter: any): boolean;
|
|
1084
1239
|
|
|
1085
|
-
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, 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 };
|
|
1240
|
+
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, GroupNotificationsSettings, GroupNotificationsSettingsProps, 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, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, isFilterActive, useCurrentUser };
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{a0 as AuthorFilter,$ as AuthorToolbarFilter,A as Avatar,O as ChannelFilter,a5 as ChannelSelector,Q as ChannelToolbarFilter,X as ClearAllFiltersButton,ad as EditorToolbarIndicators,E as EventDetail,a4 as EventView,s as EventsEditorDashboard,n as EventsGrid,o as EventsList,a1 as FilterSearch,ak as GroupNotificationsSettings,I as ItemLayoutMode,aa as ItemResourceTypes,ab as KeywordPicker,Y as KeywordsFilter,Z as KeywordsToolbarFilter,M as ManageChannels,N as NewsDetail,G as NewsDetailPreview,a6 as NewsEditor,a7 as NewsEditorContextProvider,r as NewsEditorDashboard,af as NewsEditorPanel,ae as NewsEditorToolbarStateActions,l as NewsGrid,q as NewsHero,C as NewsItemContextProvider,H as NewsItemPreviewContextProvider,k as NewsList,i as PageDetail,a8 as PageViewTrackerSettingsContextProvider,j as PostDetail,aj as PostGroupSelector,am as PostGroupSelectorButton,ai as PostGroupsPicker,ag as PostInputBox,ah as PostList,h as PostListContextProvider,W as PublishingDateFilter,S as PublishingDateToolbarFilter,R as ReachContextProvider,ac as ReachDialog,a9 as TargetLinkOverrideContextProvider,t as Toolbar,x as ToolbarChannelSelector,B as ToolbarCloseButton,a3 as ToolbarEventViewSelector,K as ToolbarFilterModal,L as ToolbarFilterModalButton,J as ToolbarFilterPanel,a2 as ToolbarFilterSearch,an as ToolbarFilterToggleButton,v as ToolbarIconButton,F as ToolbarManageNewsItemButton,y as ToolbarMarkAllEventsAsReadButton,z as ToolbarMarkAllNewsAsReadButton,D as ToolbarNewsLanguageSelector,al as ToolbarPostNotificationButton,w as ToolbarUnreadItemsButton,U as UserDetails,V as VerticalFilterPanel,ao as isFilterActive,p 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";
|