@livetiles/reach-components-react 0.5.0-preview.502 → 0.5.0-preview.503

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
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FC, ReactNode } from 'react';
3
2
  import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
4
3
  import * as styled_components from 'styled-components';
@@ -415,6 +414,14 @@ declare enum FieldMode {
415
414
  Hidden = 3
416
415
  }
417
416
 
417
+ interface Channel {
418
+ id: string;
419
+ name: string;
420
+ translations?: {
421
+ [key: string]: string;
422
+ };
423
+ }
424
+
418
425
  interface KeywordGroup {
419
426
  id: string;
420
427
  name: string;
@@ -463,14 +470,6 @@ declare enum KnownNewsState {
463
470
  Alert = 2
464
471
  }
465
472
 
466
- interface Channel {
467
- id: string;
468
- name: string;
469
- translations?: {
470
- [key: string]: string;
471
- };
472
- }
473
-
474
473
  declare type VersionId = string;
475
474
  interface SchedulableItem extends PublishableItem {
476
475
  metadata?: NewsMetadata;
@@ -482,6 +481,7 @@ interface NewsItem extends SchedulableItem {
482
481
  expiryDate?: string;
483
482
  knownState: KnownNewsState;
484
483
  hasNewComments?: boolean;
484
+ isLiked?: boolean;
485
485
  }
486
486
  interface NewsItemAlertOptions {
487
487
  duration?: string;
@@ -501,19 +501,6 @@ interface BaseItem {
501
501
  id?: string;
502
502
  statistics?: ItemStatistics;
503
503
  poll?: Poll;
504
- searchHighlights?: SearchHighlightSummary;
505
- }
506
- interface SearchHighlightSummary {
507
- title: SearchHighlight[];
508
- content: SearchHighlight[];
509
- }
510
- interface SearchHighlight {
511
- language: string;
512
- texts: {
513
- value: string;
514
- type: 'text' | 'hit';
515
- }[];
516
- score: number;
517
504
  }
518
505
  interface Poll {
519
506
  questions: PollQuestion[];
@@ -548,6 +535,7 @@ interface PublishableItemContent extends ContentDefinition {
548
535
  headline?: string;
549
536
  intro?: string;
550
537
  body?: string;
538
+ bodyRaw?: string;
551
539
  customProperties?: {
552
540
  [key: string]: any;
553
541
  };
@@ -612,7 +600,6 @@ interface PublishableItem extends BaseItem {
612
600
  statistics?: ItemStatistics;
613
601
  useExternalContent?: boolean;
614
602
  isDemoContent?: boolean;
615
- isLiked?: boolean;
616
603
  }
617
604
  interface PollTranslation {
618
605
  questions: QuestionTranslations[];
@@ -654,18 +641,6 @@ interface Attachment extends BaseAttachment {
654
641
  type: AttachmentType;
655
642
  }
656
643
 
657
- declare enum GraphQLAttachmentType {
658
- Image = "IMAGE",
659
- File = "FILE",
660
- YouTubeVideo = "YOU_TUBE_VIDEO",
661
- VimeoVideo = "VIMEO_VIDEO",
662
- News = "NEWS",
663
- Event = "EVENT",
664
- Page = "PAGE",
665
- Post = "POST",
666
- Giphy = "GIPHY"
667
- }
668
-
669
644
  interface ItemWithAttachments {
670
645
  attachments?: Attachment[];
671
646
  fileAccessToken?: string;
@@ -886,12 +861,6 @@ interface ToolbarSearchProps {
886
861
  }
887
862
  declare const Toolbar: FC<ToolbarProps>;
888
863
 
889
- declare type TokenType = string | number;
890
-
891
- interface ItemLoader<TItem, TTokenType extends TokenType> {
892
- (pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
893
- }
894
-
895
864
  interface ToolbarChannelSelectorProps {
896
865
  getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
897
866
  allChannelsOption?: ToolbarChannelSelectorOption;
@@ -1090,83 +1059,6 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
1090
1059
  pastEventsOnly?: boolean;
1091
1060
  }
1092
1061
 
1093
- declare enum StreamEventResponse {
1094
- NotSet = "NOTSET",
1095
- Registered = "REGISTERED",
1096
- Declined = "DECLINED"
1097
- }
1098
-
1099
- declare enum StreamItemTypes {
1100
- Post = "POST",
1101
- News = "NEWS",
1102
- Event = "EVENT",
1103
- Page = "PAGE"
1104
- }
1105
- declare enum StreamConversationScope {
1106
- Public = "PUBLIC",
1107
- Editor = "EDITOR",
1108
- Posts = "POSTS"
1109
- }
1110
- interface PostStreamItem extends Post {
1111
- type: StreamItemTypes.Post;
1112
- isUnread: boolean;
1113
- keywordsList?: Keyword[];
1114
- groupIds?: string[];
1115
- postAttachments?: StreamAttachment[];
1116
- postComments?: PaginatedList<StreamPostComment>;
1117
- hasMoreUnreadComments: boolean;
1118
- }
1119
- interface StreamPostComment extends Comment {
1120
- postCommentAttachments?: StreamAttachment[];
1121
- streamConversationScope?: StreamConversationScope;
1122
- }
1123
- interface StreamAttachment extends BaseAttachment {
1124
- type: GraphQLAttachmentType;
1125
- }
1126
- interface NewsStreamItem extends NewsItem {
1127
- type: StreamItemTypes.News;
1128
- contentsList: StreamPublishableItemContents[];
1129
- channelsList: string[];
1130
- isUnread: boolean;
1131
- keywordsList?: Keyword[];
1132
- knownNewsState?: StreamKnownNewsState[];
1133
- }
1134
- declare enum StreamKnownNewsState {
1135
- Unconfirmed = "UNCONFIRMED",
1136
- Alert = "ALERT"
1137
- }
1138
- interface EventStreamItem extends EventItem {
1139
- type: StreamItemTypes.Event;
1140
- contentsList: StreamPublishableItemContents[];
1141
- channelsList: string[];
1142
- isUnread: boolean;
1143
- keywordsList?: Keyword[];
1144
- userResponseType?: StreamEventResponse;
1145
- eventCancelInformation?: StreamEventCancelInformation;
1146
- }
1147
- interface PageStreamItem extends PageItem {
1148
- type: StreamItemTypes.Page;
1149
- contentsList: StreamPublishableItemContents[];
1150
- channelsList: string[];
1151
- isUnread: boolean;
1152
- keywordsList?: Keyword[];
1153
- streamPageType?: string;
1154
- path?: (PageNavigationNode & {
1155
- parentId?: string;
1156
- })[];
1157
- }
1158
- interface StreamPublishableItemContents {
1159
- language: string;
1160
- title: string;
1161
- intro?: string;
1162
- headline?: string;
1163
- }
1164
- interface StreamEventCancelInformation extends EventCancelInformation {
1165
- cancellationReasons?: {
1166
- [key: string]: string;
1167
- }[];
1168
- }
1169
-
1170
1062
  interface TargetLinkOverrideContextProps {
1171
1063
  onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
1172
1064
  onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
@@ -1193,17 +1085,9 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
1193
1085
  pageType?: PageType;
1194
1086
  }
1195
1087
 
1196
- declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
1197
-
1198
- declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
1199
-
1200
1088
  interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
1201
1089
  }
1202
1090
 
1203
- declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
1204
-
1205
- declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
1206
-
1207
1091
  interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
1208
1092
  channels?: string | FilterWithLogicalOperator;
1209
1093
  keywords?: string | FilterWithLogicalOperator;
@@ -1608,4 +1492,4 @@ interface ErrorWrapperProps {
1608
1492
  }
1609
1493
  declare const ErrorWrapper: FC<ErrorWrapperProps>;
1610
1494
 
1611
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
1495
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useLazySubscriptionContext };
package/index.esm.js CHANGED
@@ -1 +1 @@
1
- export{aZ as AuthorFilter,aY as AuthorToolbarFilter,ar as Avatar,aR as ChannelFilter,b2 as ChannelSelector,aS as ChannelToolbarFilter,aV as ClearAllFiltersButton,bm as ContactToolbarFilter,ba as EditorToolbarIndicators,bC as ErrorType,bB as ErrorWrapper,bn as EventDatesToolbarFilter,ag as EventDetail,aJ as EventDetailPreview,bs as EventEditor,bt as EventEditorContextProvider,bu as EventEditorPanel,bw as EventEditorToolbarRecurringControls,bv as EventEditorToolbarStateActions,aE as EventItemContextProvider,aM as EventItemPreviewContextProvider,b1 as EventView,au as EventsEditorDashboard,al as EventsGrid,am as EventsList,a_ as FilterSearch,bh as GroupNotificationsSettings,aj as ItemLayoutMode,b7 as ItemResourceTypes,b8 as KeywordPicker,aW as KeywordsFilter,aX as KeywordsToolbarFilter,bo as LogicalOperator,an as ManageChannels,ae as NewsDetail,aH as NewsDetailPreview,b3 as NewsEditor,b4 as NewsEditorContextProvider,at as NewsEditorDashboard,bc as NewsEditorPanel,bb as NewsEditorToolbarStateActions,ak as NewsGrid,as as NewsHero,aC as NewsItemContextProvider,aK as NewsItemPreviewContextProvider,ai as NewsList,af as PageDetail,aI as PageDetailPreview,by as PageEditor,bx as PageEditorContextProvider,bA as PageEditorPanel,bz as PageEditorToolbarStateActions,aD as PageItemContextProvider,aL as PageItemPreviewContextProvider,br as PageType,b5 as PageViewTrackerSettingsContextProvider,bp as PagesGrid,bq as PagesList,ah as PostDetail,bg as PostGroupSelector,bj as PostGroupSelectorButton,bf as PostGroupsPicker,bd as PostInputBox,be as PostList,ad as PostListContextProvider,aU as PublishingDateFilter,aT as PublishingDateToolbarFilter,ac as ReachContextProvider,b9 as ReachDialog,b6 as TargetLinkOverrideContextProvider,av as Toolbar,ay as ToolbarChannelSelector,aB as ToolbarCloseButton,b0 as ToolbarEventViewSelector,aO as ToolbarFilterModal,aP as ToolbarFilterModalButton,aN as ToolbarFilterPanel,a$ as ToolbarFilterSearch,bk as ToolbarFilterToggleButton,aw as ToolbarIconButton,aF as ToolbarLanguageSelector,aG as ToolbarManageNewsItemButton,az as ToolbarMarkAllEventsAsReadButton,aA as ToolbarMarkAllNewsAsReadButton,aF as ToolbarNewsLanguageSelector,bi as ToolbarPostNotificationButton,ax as ToolbarUnreadItemsButton,aq as UserDetails,aQ as VerticalFilterPanel,bl as isFilterActive,ao as useCurrentUser,bF as useEventsStreamDataLoader,ap as useLazySubscriptionContext,bG as useNewsStreamDataLoader,bD as usePagesStreamDataLoader,bE as usePostsStreamDataLoader}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{aI as AuthorFilter,aH as AuthorToolbarFilter,aa as Avatar,aA as ChannelFilter,aN as ChannelSelector,aB as ChannelToolbarFilter,aE as ClearAllFiltersButton,b5 as ContactToolbarFilter,aX as EditorToolbarIndicators,bl as ErrorType,bk as ErrorWrapper,b6 as EventDatesToolbarFilter,$ as EventDetail,as as EventDetailPreview,bb as EventEditor,bc as EventEditorContextProvider,bd as EventEditorPanel,bf as EventEditorToolbarRecurringControls,be as EventEditorToolbarStateActions,an as EventItemContextProvider,av as EventItemPreviewContextProvider,aM as EventView,ad as EventsEditorDashboard,a4 as EventsGrid,a5 as EventsList,aJ as FilterSearch,b0 as GroupNotificationsSettings,a2 as ItemLayoutMode,aS as ItemResourceTypes,aV as KeywordPicker,aF as KeywordsFilter,aG as KeywordsToolbarFilter,b7 as LogicalOperator,a6 as ManageChannels,Y as NewsDetail,aq as NewsDetailPreview,aO as NewsEditor,aP as NewsEditorContextProvider,ac as NewsEditorDashboard,aU as NewsEditorPanel,aT as NewsEditorToolbarStateActions,a3 as NewsGrid,ab as NewsHero,al as NewsItemContextProvider,at as NewsItemPreviewContextProvider,a1 as NewsList,Z as PageDetail,ar as PageDetailPreview,bh as PageEditor,bg as PageEditorContextProvider,bj as PageEditorPanel,bi as PageEditorToolbarStateActions,am as PageItemContextProvider,au as PageItemPreviewContextProvider,ba as PageType,aQ as PageViewTrackerSettingsContextProvider,b8 as PagesGrid,b9 as PagesList,a0 as PostDetail,a$ as PostGroupSelector,b2 as PostGroupSelectorButton,a_ as PostGroupsPicker,aY as PostInputBox,aZ as PostList,W as PostListContextProvider,aD as PublishingDateFilter,aC as PublishingDateToolbarFilter,V as ReachContextProvider,aW as ReachDialog,aR as TargetLinkOverrideContextProvider,ae as Toolbar,ah as ToolbarChannelSelector,ak as ToolbarCloseButton,aL as ToolbarEventViewSelector,ax as ToolbarFilterModal,ay as ToolbarFilterModalButton,aw as ToolbarFilterPanel,aK as ToolbarFilterSearch,b3 as ToolbarFilterToggleButton,af as ToolbarIconButton,ao as ToolbarLanguageSelector,ap as ToolbarManageNewsItemButton,ai as ToolbarMarkAllEventsAsReadButton,aj as ToolbarMarkAllNewsAsReadButton,ao as ToolbarNewsLanguageSelector,b1 as ToolbarPostNotificationButton,ag as ToolbarUnreadItemsButton,a9 as UserDetails,az as VerticalFilterPanel,b4 as isFilterActive,a7 as useCurrentUser,a8 as useLazySubscriptionContext}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";