@livetiles/reach-components-react 0.5.0-preview.459 → 0.5.0-preview.460

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';
@@ -498,19 +497,6 @@ interface BaseItem {
498
497
  id?: string;
499
498
  statistics?: ItemStatistics;
500
499
  poll?: Poll;
501
- searchHighlights?: SearchHighlightSummary;
502
- }
503
- interface SearchHighlightSummary {
504
- title: SearchHighlight[];
505
- content: SearchHighlight[];
506
- }
507
- interface SearchHighlight {
508
- language: string;
509
- texts: {
510
- value: string;
511
- type: 'text' | 'hit';
512
- }[];
513
- score: number;
514
500
  }
515
501
  interface Poll {
516
502
  questions: PollQuestion[];
@@ -545,6 +531,7 @@ interface PublishableItemContent extends ContentDefinition {
545
531
  headline?: string;
546
532
  intro?: string;
547
533
  body?: string;
534
+ bodyRaw?: string;
548
535
  customProperties?: {
549
536
  [key: string]: any;
550
537
  };
@@ -650,18 +637,6 @@ interface Attachment extends BaseAttachment {
650
637
  type: AttachmentType;
651
638
  }
652
639
 
653
- declare enum GraphQLAttachmentType {
654
- Image = "IMAGE",
655
- File = "FILE",
656
- YouTubeVideo = "YOU_TUBE_VIDEO",
657
- VimeoVideo = "VIMEO_VIDEO",
658
- News = "NEWS",
659
- Event = "EVENT",
660
- Page = "PAGE",
661
- Post = "POST",
662
- Giphy = "GIPHY"
663
- }
664
-
665
640
  interface ItemWithAttachments {
666
641
  attachments?: Attachment[];
667
642
  fileAccessToken?: string;
@@ -882,12 +857,6 @@ interface ToolbarSearchProps {
882
857
  }
883
858
  declare const Toolbar: FC<ToolbarProps>;
884
859
 
885
- declare type TokenType = string | number;
886
-
887
- interface ItemLoader<TItem, TTokenType extends TokenType> {
888
- (pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
889
- }
890
-
891
860
  interface ToolbarChannelSelectorProps {
892
861
  getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
893
862
  allChannelsOption?: ToolbarChannelSelectorOption;
@@ -1086,83 +1055,6 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
1086
1055
  pastEventsOnly?: boolean;
1087
1056
  }
1088
1057
 
1089
- declare enum StreamEventResponse {
1090
- NotSet = "NOTSET",
1091
- Registered = "REGISTERED",
1092
- Declined = "DECLINED"
1093
- }
1094
-
1095
- declare enum StreamItemTypes {
1096
- Post = "POST",
1097
- News = "NEWS",
1098
- Event = "EVENT",
1099
- Page = "PAGE"
1100
- }
1101
- declare enum StreamConversationScope {
1102
- Public = "PUBLIC",
1103
- Editor = "EDITOR",
1104
- Posts = "POSTS"
1105
- }
1106
- interface PostStreamItem extends Post {
1107
- type: StreamItemTypes.Post;
1108
- isUnread: boolean;
1109
- keywordsList?: Keyword[];
1110
- groupIds?: string[];
1111
- postAttachments?: StreamAttachment[];
1112
- postComments?: PaginatedList<StreamPostComment>;
1113
- hasMoreUnreadComments: boolean;
1114
- }
1115
- interface StreamPostComment extends Comment {
1116
- postCommentAttachments?: StreamAttachment[];
1117
- streamConversationScope?: StreamConversationScope;
1118
- }
1119
- interface StreamAttachment extends BaseAttachment {
1120
- type: GraphQLAttachmentType;
1121
- }
1122
- interface NewsStreamItem extends NewsItem {
1123
- type: StreamItemTypes.News;
1124
- contentsList: StreamPublishableItemContents[];
1125
- channelsList: string[];
1126
- isUnread: boolean;
1127
- keywordsList?: Keyword[];
1128
- knownNewsState?: StreamKnownNewsState[];
1129
- }
1130
- declare enum StreamKnownNewsState {
1131
- Unconfirmed = "UNCONFIRMED",
1132
- Alert = "ALERT"
1133
- }
1134
- interface EventStreamItem extends EventItem {
1135
- type: StreamItemTypes.Event;
1136
- contentsList: StreamPublishableItemContents[];
1137
- channelsList: string[];
1138
- isUnread: boolean;
1139
- keywordsList?: Keyword[];
1140
- userResponseType?: StreamEventResponse;
1141
- eventCancelInformation?: StreamEventCancelInformation;
1142
- }
1143
- interface PageStreamItem extends PageItem {
1144
- type: StreamItemTypes.Page;
1145
- contentsList: StreamPublishableItemContents[];
1146
- channelsList: string[];
1147
- isUnread: boolean;
1148
- keywordsList?: Keyword[];
1149
- streamPageType?: string;
1150
- path?: (PageNavigationNode & {
1151
- parentId?: string;
1152
- })[];
1153
- }
1154
- interface StreamPublishableItemContents {
1155
- language: string;
1156
- title: string;
1157
- intro?: string;
1158
- headline?: string;
1159
- }
1160
- interface StreamEventCancelInformation extends EventCancelInformation {
1161
- cancellationReasons?: {
1162
- [key: string]: string;
1163
- }[];
1164
- }
1165
-
1166
1058
  interface TargetLinkOverrideContextProps {
1167
1059
  onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
1168
1060
  onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
@@ -1596,12 +1488,4 @@ interface ErrorWrapperProps {
1596
1488
  }
1597
1489
  declare const ErrorWrapper: FC<ErrorWrapperProps>;
1598
1490
 
1599
- declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
1600
-
1601
- declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
1602
-
1603
- declare function useNewsStreamDataLoader(filter?: LibNewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
1604
-
1605
- declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
1606
-
1607
- 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, 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, 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, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
1491
+ 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, isFilterActive, useCurrentUser, useLazySubscriptionContext };
package/index.esm.js CHANGED
@@ -1 +1 @@
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,aV 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,aT as KeywordPicker,aF as KeywordsFilter,aG as KeywordsToolbarFilter,b7 as LogicalOperator,a6 as ManageChannels,X as NewsDetail,aq as NewsDetailPreview,aO as NewsEditor,aP as NewsEditorContextProvider,ac as NewsEditorDashboard,aX as NewsEditorPanel,aW 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,aU 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,bo as useEventsStreamDataLoader,a8 as useLazySubscriptionContext,bp as useNewsStreamDataLoader,bm as usePagesStreamDataLoader,bn 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,X 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";