@livetiles/reach-components-react 0.3.165 → 0.3.166
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 +28 -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 +8 -4
- package/de.async.esm.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/index.d.ts +144 -1
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -17
- package/index.umd.js +8 -8
- package/it.async.esm.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/zh-CN.async.esm.esm.js +1 -1
- package/zh-TW.async.esm.esm.js +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,
|
|
@@ -549,6 +557,63 @@ interface ChoiceTranslations {
|
|
|
549
557
|
|
|
550
558
|
declare function useCurrentUser(): CurrentUser;
|
|
551
559
|
|
|
560
|
+
declare enum AttachmentType {
|
|
561
|
+
Image = 0,
|
|
562
|
+
File = 1,
|
|
563
|
+
YouTubeVideo = 2,
|
|
564
|
+
VimeoVideo = 3,
|
|
565
|
+
News = 4,
|
|
566
|
+
Event = 5,
|
|
567
|
+
Page = 6,
|
|
568
|
+
Post = 7,
|
|
569
|
+
Giphy = 8
|
|
570
|
+
}
|
|
571
|
+
interface BaseAttachment {
|
|
572
|
+
id: string;
|
|
573
|
+
filename?: string;
|
|
574
|
+
previewUrl?: string;
|
|
575
|
+
url?: string;
|
|
576
|
+
isUploadInProgress?: boolean;
|
|
577
|
+
hasError?: boolean;
|
|
578
|
+
width?: number;
|
|
579
|
+
height?: number;
|
|
580
|
+
}
|
|
581
|
+
interface Attachment extends BaseAttachment {
|
|
582
|
+
type: AttachmentType;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
interface ItemWithAttachments {
|
|
586
|
+
attachments?: Attachment[];
|
|
587
|
+
fileAccessToken?: string;
|
|
588
|
+
attachmentContainerId?: string;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface Comment extends ItemWithAttachments {
|
|
592
|
+
id: string;
|
|
593
|
+
parentItemId: string;
|
|
594
|
+
content: string;
|
|
595
|
+
contentLanguageCode?: string;
|
|
596
|
+
receivedDateTime: string;
|
|
597
|
+
sender: Account;
|
|
598
|
+
conversationScope: ConversationScope;
|
|
599
|
+
modified?: string;
|
|
600
|
+
statistics?: CommentStatistics;
|
|
601
|
+
isLiked?: boolean;
|
|
602
|
+
threadId?: string;
|
|
603
|
+
isUnread?: boolean;
|
|
604
|
+
hasUnreadReplies?: boolean;
|
|
605
|
+
isDemoContent?: boolean;
|
|
606
|
+
}
|
|
607
|
+
interface CommentStatistics {
|
|
608
|
+
likeCount?: number;
|
|
609
|
+
replyCount?: number;
|
|
610
|
+
}
|
|
611
|
+
declare enum ConversationScope {
|
|
612
|
+
Public = 0,
|
|
613
|
+
Editor = 1,
|
|
614
|
+
Posts = 2
|
|
615
|
+
}
|
|
616
|
+
|
|
552
617
|
declare enum ItemResourceTypes {
|
|
553
618
|
News = "news",
|
|
554
619
|
Pages = "pages",
|
|
@@ -700,6 +765,7 @@ interface ToolbarIconButtonProps {
|
|
|
700
765
|
tooltipText?: string;
|
|
701
766
|
tooltipResourceKey?: string;
|
|
702
767
|
disabled?: boolean;
|
|
768
|
+
isActive?: boolean;
|
|
703
769
|
className?: string;
|
|
704
770
|
}
|
|
705
771
|
declare const ToolbarIconButton: styled_components.StyledComponent<FC<ToolbarIconButtonProps>, styled_components.DefaultTheme, {
|
|
@@ -848,6 +914,35 @@ interface KeywordPickerProps {
|
|
|
848
914
|
}
|
|
849
915
|
declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
|
|
850
916
|
|
|
917
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
918
|
+
id: string;
|
|
919
|
+
comments?: PaginatedList<Comment>;
|
|
920
|
+
groupId: string;
|
|
921
|
+
content: string;
|
|
922
|
+
permalink?: string;
|
|
923
|
+
author: Account;
|
|
924
|
+
publishingDate: string;
|
|
925
|
+
modified?: string;
|
|
926
|
+
statistics: ItemStatistics;
|
|
927
|
+
keywords?: {
|
|
928
|
+
[key: string]: Keyword[];
|
|
929
|
+
};
|
|
930
|
+
contentLanguageCode?: string;
|
|
931
|
+
isLiked?: boolean;
|
|
932
|
+
isUnread?: boolean;
|
|
933
|
+
isDemoContent?: boolean;
|
|
934
|
+
isFollowing?: boolean;
|
|
935
|
+
}
|
|
936
|
+
interface PostFilterDefinition {
|
|
937
|
+
token?: string;
|
|
938
|
+
pageSize?: string;
|
|
939
|
+
search?: string;
|
|
940
|
+
keywords?: FilterWithLogicalOperator;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
944
|
+
}
|
|
945
|
+
|
|
851
946
|
interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
|
|
852
947
|
channels?: string | FilterWithLogicalOperator;
|
|
853
948
|
keywords?: string | FilterWithLogicalOperator;
|
|
@@ -1082,4 +1177,52 @@ interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsR
|
|
|
1082
1177
|
}
|
|
1083
1178
|
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
|
|
1084
1179
|
|
|
1085
|
-
|
|
1180
|
+
interface PostInputBoxProps {
|
|
1181
|
+
onBeforeSave?: (post: Post) => void;
|
|
1182
|
+
onAfterSave?: (post: Post) => void;
|
|
1183
|
+
disableDragAndDrop?: boolean;
|
|
1184
|
+
disableAutoFocus?: boolean;
|
|
1185
|
+
className?: string;
|
|
1186
|
+
}
|
|
1187
|
+
declare const PostInputBox: FC<PostInputBoxProps>;
|
|
1188
|
+
|
|
1189
|
+
interface PostListContextProviderProps {
|
|
1190
|
+
pageSize?: number;
|
|
1191
|
+
groupId?: string;
|
|
1192
|
+
filter?: PostStreamFilterDefinition;
|
|
1193
|
+
searchText?: string;
|
|
1194
|
+
}
|
|
1195
|
+
declare const PostListContextProvider: FC<PostListContextProviderProps>;
|
|
1196
|
+
|
|
1197
|
+
interface PostListProps {
|
|
1198
|
+
setFilter?: (_: (filter: PostFilterDefinition) => unknown) => unknown;
|
|
1199
|
+
className?: string;
|
|
1200
|
+
}
|
|
1201
|
+
declare const PostList: FC<PostListProps>;
|
|
1202
|
+
|
|
1203
|
+
interface PostGroupsPickerProps {
|
|
1204
|
+
className?: string;
|
|
1205
|
+
}
|
|
1206
|
+
declare const PostGroupsPicker: FC<PostGroupsPickerProps>;
|
|
1207
|
+
|
|
1208
|
+
interface PostGroupSelectorProps {
|
|
1209
|
+
className?: string;
|
|
1210
|
+
}
|
|
1211
|
+
declare const PostGroupSelector: FC<PostGroupSelectorProps>;
|
|
1212
|
+
|
|
1213
|
+
interface GroupNotificationsSettingsProps {
|
|
1214
|
+
className?: string;
|
|
1215
|
+
}
|
|
1216
|
+
declare const GroupNotificationsSettings: FC<GroupNotificationsSettingsProps>;
|
|
1217
|
+
|
|
1218
|
+
declare const ToolbarPostNotificationButton: FC;
|
|
1219
|
+
|
|
1220
|
+
declare const PostGroupSelectorButton: FC;
|
|
1221
|
+
|
|
1222
|
+
declare const ToolbarFilterToggleButton: FC<{
|
|
1223
|
+
filter?: any;
|
|
1224
|
+
onClick?: () => void;
|
|
1225
|
+
}>;
|
|
1226
|
+
declare function isFilterActive(filter: any): boolean;
|
|
1227
|
+
|
|
1228
|
+
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,af 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,ad 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,ac as NewsEditorPanel,ab 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,ae 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";
|