@livetiles/reach-components-react 0.4.0-preview.813 → 0.4.0-preview.814

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/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
  };
@@ -569,63 +549,6 @@ interface ChoiceTranslations {
569
549
 
570
550
  declare function useCurrentUser(): CurrentUser;
571
551
 
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
552
  declare enum ItemResourceTypes {
630
553
  News = "news",
631
554
  Pages = "pages",
@@ -777,7 +700,6 @@ interface ToolbarIconButtonProps {
777
700
  tooltipText?: string;
778
701
  tooltipResourceKey?: string;
779
702
  disabled?: boolean;
780
- isActive?: boolean;
781
703
  className?: string;
782
704
  }
783
705
  declare const ToolbarIconButton: styled_components.StyledComponent<FC<ToolbarIconButtonProps>, styled_components.DefaultTheme, {
@@ -789,7 +711,9 @@ interface ToolbarMarkAllItemsAsReadButtonProps {
789
711
  onMarkAsReadFinished?: () => unknown;
790
712
  disabled?: boolean;
791
713
  unreadCount?: number;
792
- }
714
+ }
715
+ declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
716
+ declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
793
717
 
794
718
  declare const ToolbarUnreadItemsButton: FC<{
795
719
  onClick: () => unknown;
@@ -874,8 +798,8 @@ interface FilterWithLogicalOperator {
874
798
  operator?: LogicalOperator;
875
799
  }
876
800
  declare enum LogicalOperator {
877
- Or = "OR",
878
- And = "AND"
801
+ Or = "or",
802
+ And = "and"
879
803
  }
880
804
 
881
805
  interface AuthorFilterDefinition extends IndexableFilterDefinition {
@@ -927,35 +851,6 @@ interface KeywordPickerProps {
927
851
  }
928
852
  declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
929
853
 
930
- interface Post extends BaseItem, ItemWithAttachments {
931
- id: string;
932
- comments?: PaginatedList<Comment>;
933
- groupId: string;
934
- content: string;
935
- permalink?: string;
936
- author: Account;
937
- publishingDate: string;
938
- modified?: string;
939
- statistics: ItemStatistics;
940
- keywords?: {
941
- [key: string]: Keyword[];
942
- };
943
- contentLanguageCode?: string;
944
- isLiked?: boolean;
945
- isUnread?: boolean;
946
- isDemoContent?: boolean;
947
- isFollowing?: boolean;
948
- }
949
- interface PostFilterDefinition {
950
- token?: string;
951
- pageSize?: string;
952
- search?: string;
953
- keywords?: FilterWithLogicalOperator;
954
- }
955
-
956
- interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
957
- }
958
-
959
854
  interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
960
855
  channels?: string | FilterWithLogicalOperator;
961
856
  keywords?: string | FilterWithLogicalOperator;
@@ -1158,18 +1053,6 @@ interface NewsEditorProps {
1158
1053
  }
1159
1054
  declare const NewsEditor: FC<NewsEditorProps>;
1160
1055
 
1161
- interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
1162
- filter?: LibNewsFilterDefinition;
1163
- searchText?: string;
1164
- }
1165
- declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
1166
-
1167
- interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
1168
- filter?: EventFilterDefinition;
1169
- searchText?: string;
1170
- }
1171
- declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
1172
-
1173
1056
  interface EditorToolbarIndicatorsProps {
1174
1057
  className?: string;
1175
1058
  }
@@ -1190,54 +1073,4 @@ declare const NewsEditorPanel: FC<{
1190
1073
  className?: string;
1191
1074
  }>;
1192
1075
 
1193
- interface PostInputBoxProps {
1194
- onBeforeSave?: (post: Post) => void;
1195
- onAfterSave?: (post: Post) => void;
1196
- disableDragAndDrop?: boolean;
1197
- disableAutoFocus?: boolean;
1198
- className?: string;
1199
- }
1200
- declare const PostInputBox: FC<PostInputBoxProps>;
1201
-
1202
- interface PostListContextProviderProps {
1203
- pageSize?: number;
1204
- groupId?: string;
1205
- filter?: PostStreamFilterDefinition;
1206
- searchText?: string;
1207
- }
1208
- declare const PostListContextProvider: FC<PostListContextProviderProps>;
1209
-
1210
- interface PostListProps {
1211
- setFilter?: (_: (filter: PostFilterDefinition) => unknown) => unknown;
1212
- className?: string;
1213
- }
1214
- declare const PostList: FC<PostListProps>;
1215
-
1216
- interface PostGroupsPickerProps {
1217
- className?: string;
1218
- }
1219
- declare const PostGroupsPicker: FC<PostGroupsPickerProps>;
1220
-
1221
- interface PostGroupSelectorProps {
1222
- className?: string;
1223
- }
1224
- declare const PostGroupSelector: FC<PostGroupSelectorProps>;
1225
-
1226
- interface GroupNotificationsSettingsProps {
1227
- className?: string;
1228
- }
1229
- declare const GroupNotificationsSettings: FC<GroupNotificationsSettingsProps>;
1230
-
1231
- declare const ToolbarPostNotificationButton: FC;
1232
-
1233
- declare const PostGroupSelectorButton: FC;
1234
-
1235
- declare const ToolbarFilterToggleButton: FC<{
1236
- filter?: any;
1237
- onClick?: () => void;
1238
- }>;
1239
- declare function isFilterActive(filter: any): boolean;
1240
-
1241
- declare const ContactToolbarFilter: FC;
1242
-
1243
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, 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 };
1076
+ 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, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, useCurrentUser };
package/index.esm.js CHANGED
@@ -1 +1 @@
1
- export{a0 as AuthorFilter,$ as AuthorToolbarFilter,A as Avatar,O as ChannelFilter,a5 as ChannelSelector,Q as ChannelToolbarFilter,X as ClearAllFiltersButton,ap as ContactToolbarFilter,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";
1
+ export{$ as AuthorFilter,Z as AuthorToolbarFilter,A as Avatar,L as ChannelFilter,a4 as ChannelSelector,O as ChannelToolbarFilter,W as ClearAllFiltersButton,aa 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,ad 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,ac as NewsEditorPanel,ab 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,S as PublishingDateFilter,Q as PublishingDateToolbarFilter,R as ReachContextProvider,ae 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";