@livetiles/reach-components-react 0.5.0-preview.296 → 0.5.0-preview.297

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
@@ -13,6 +13,10 @@ declare type ReachContextProps = {
13
13
  subscriptionId: string;
14
14
  language?: string;
15
15
  disableUiFabricThemeOverwrite?: boolean;
16
+ analyticsProps?: {
17
+ disableAnalytics?: boolean;
18
+ appName?: string;
19
+ };
16
20
  };
17
21
  declare const ReachContextProvider: FC<ReachContextProps>;
18
22
 
@@ -452,11 +456,6 @@ interface NewsItem extends SchedulableItem {
452
456
  knownState: KnownNewsState;
453
457
  hasNewComments?: boolean;
454
458
  isLiked?: boolean;
455
- shareToken?: ShareToken;
456
- }
457
- interface ShareToken {
458
- published?: string;
459
- preview?: string;
460
459
  }
461
460
  interface NewsItemAlertOptions {
462
461
  duration?: string;
@@ -479,6 +478,19 @@ interface BaseItem {
479
478
  id?: string;
480
479
  statistics?: ItemStatistics;
481
480
  poll?: Poll;
481
+ searchHighlights?: SearchHighlightSummary;
482
+ }
483
+ interface SearchHighlightSummary {
484
+ title: SearchHighlight[];
485
+ content: SearchHighlight[];
486
+ }
487
+ interface SearchHighlight {
488
+ language: string;
489
+ texts: {
490
+ value: string;
491
+ type: 'text' | 'hit';
492
+ }[];
493
+ score: number;
482
494
  }
483
495
  interface Poll {
484
496
  questions: PollQuestion[];
@@ -513,7 +525,6 @@ interface PublishableItemContent extends ContentDefinition {
513
525
  headline?: string;
514
526
  intro?: string;
515
527
  body?: string;
516
- bodyRaw?: string;
517
528
  customProperties?: {
518
529
  [key: string]: any;
519
530
  };
@@ -970,11 +981,31 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
970
981
  includeExpired?: boolean;
971
982
  }
972
983
 
973
- interface TargetLinkOverrideContextProps {
974
- onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
975
- onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
984
+ interface Post extends BaseItem, ItemWithAttachments {
985
+ id: string;
986
+ comments?: PaginatedList<Comment>;
987
+ groupId: string;
988
+ content: string;
989
+ permalink?: string;
990
+ author: Account;
991
+ publishingDate: string;
992
+ modified?: string;
993
+ statistics: ItemStatistics;
994
+ keywords?: {
995
+ [key: string]: Keyword[];
996
+ };
997
+ contentLanguageCode?: string;
998
+ isLiked?: boolean;
999
+ isUnread?: boolean;
1000
+ isDemoContent?: boolean;
1001
+ isFollowing?: boolean;
976
1002
  }
977
- declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1003
+ interface PostFilterDefinition {
1004
+ token?: string;
1005
+ pageSize?: string;
1006
+ search?: string;
1007
+ keywords?: FilterWithLogicalOperator;
1008
+ }
978
1009
 
979
1010
  interface EventContactsFilterDefinition extends IndexableFilterDefinition {
980
1011
  contacts?: string[];
@@ -990,6 +1021,12 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
990
1021
  pastEventsOnly?: boolean;
991
1022
  }
992
1023
 
1024
+ interface TargetLinkOverrideContextProps {
1025
+ onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
1026
+ onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
1027
+ }
1028
+ declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1029
+
993
1030
  interface KeywordPickerProps {
994
1031
  value?: Keyword[] | string[];
995
1032
  onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
@@ -1010,32 +1047,6 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
1010
1047
  pageType?: PageType;
1011
1048
  }
1012
1049
 
1013
- interface Post extends BaseItem, ItemWithAttachments {
1014
- id: string;
1015
- comments?: PaginatedList<Comment>;
1016
- groupId: string;
1017
- content: string;
1018
- permalink?: string;
1019
- author: Account;
1020
- publishingDate: string;
1021
- modified?: string;
1022
- statistics: ItemStatistics;
1023
- keywords?: {
1024
- [key: string]: Keyword[];
1025
- };
1026
- contentLanguageCode?: string;
1027
- isLiked?: boolean;
1028
- isUnread?: boolean;
1029
- isDemoContent?: boolean;
1030
- isFollowing?: boolean;
1031
- }
1032
- interface PostFilterDefinition {
1033
- token?: string;
1034
- pageSize?: string;
1035
- search?: string;
1036
- keywords?: FilterWithLogicalOperator;
1037
- }
1038
-
1039
1050
  interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
1040
1051
  }
1041
1052
 
@@ -1185,18 +1196,32 @@ declare const ToolbarManageNewsItemButton: FC<{
1185
1196
  onClick?: (itemId: string) => unknown;
1186
1197
  }>;
1187
1198
 
1188
- interface NewsDetailPreviewProps {
1199
+ interface SharedItemDetailPreviewProps {
1189
1200
  itemId?: string;
1190
1201
  versionId?: string;
1191
1202
  className?: string;
1203
+ hideLikes?: boolean;
1204
+ hideComments?: boolean;
1192
1205
  }
1193
- declare const NewsDetailPreview: FC<NewsDetailPreviewProps>;
1206
+ declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
1207
+ declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
1208
+ declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
1194
1209
 
1195
1210
  declare const NewsItemPreviewContextProvider: FC<{
1196
1211
  itemId: string;
1197
1212
  versionId?: string;
1198
1213
  }>;
1199
1214
 
1215
+ declare const PageItemPreviewContextProvider: FC<{
1216
+ itemId: string;
1217
+ versionId?: string;
1218
+ }>;
1219
+
1220
+ declare const EventItemPreviewContextProvider: FC<{
1221
+ itemId: string;
1222
+ versionId?: string;
1223
+ }>;
1224
+
1200
1225
  interface FilterProps {
1201
1226
  filter: IndexableFilterDefinition;
1202
1227
  onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
@@ -1421,4 +1446,4 @@ interface PageEditorPanelProps {
1421
1446
  }
1422
1447
  declare const PageEditorPanel: FC<PageEditorPanelProps>;
1423
1448
 
1424
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, 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, NewsDetailPreviewProps, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, 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, 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 };
1449
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, 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 };
package/index.esm.js CHANGED
@@ -1 +1 @@
1
- export{ad as AuthorFilter,ac as AuthorToolbarFilter,C as Avatar,a5 as ChannelFilter,ai as ChannelSelector,a6 as ChannelToolbarFilter,a9 as ClearAllFiltersButton,aC as ContactToolbarFilter,as as EditorToolbarIndicators,aD as EventDatesToolbarFilter,E as EventDetail,aI as EventEditor,aJ as EventEditorContextProvider,aK as EventEditorPanel,aM as EventEditorToolbarRecurringControls,aL as EventEditorToolbarStateActions,X as EventItemContextProvider,ah as EventView,G as EventsEditorDashboard,z as EventsGrid,A as EventsList,ae as FilterSearch,ax as GroupNotificationsSettings,I as ItemLayoutMode,an as ItemResourceTypes,aq as KeywordPicker,aa as KeywordsFilter,ab as KeywordsToolbarFilter,aE as LogicalOperator,M as ManageChannels,N as NewsDetail,$ as NewsDetailPreview,aj as NewsEditor,ak as NewsEditorContextProvider,F as NewsEditorDashboard,ap as NewsEditorPanel,ao as NewsEditorToolbarStateActions,y as NewsGrid,D as NewsHero,V as NewsItemContextProvider,a0 as NewsItemPreviewContextProvider,x as NewsList,v as PageDetail,aO as PageEditor,aN as PageEditorContextProvider,aQ as PageEditorPanel,aP as PageEditorToolbarStateActions,W as PageItemContextProvider,aH as PageType,al as PageViewTrackerSettingsContextProvider,aF as PagesGrid,aG as PagesList,w as PostDetail,aw as PostGroupSelector,az as PostGroupSelectorButton,av as PostGroupsPicker,at as PostInputBox,au as PostList,t as PostListContextProvider,a8 as PublishingDateFilter,a7 as PublishingDateToolbarFilter,R as ReachContextProvider,ar as ReachDialog,am as TargetLinkOverrideContextProvider,H as Toolbar,L as ToolbarChannelSelector,S as ToolbarCloseButton,ag as ToolbarEventViewSelector,a2 as ToolbarFilterModal,a3 as ToolbarFilterModalButton,a1 as ToolbarFilterPanel,af as ToolbarFilterSearch,aA as ToolbarFilterToggleButton,J as ToolbarIconButton,Y as ToolbarLanguageSelector,Z as ToolbarManageNewsItemButton,O as ToolbarMarkAllEventsAsReadButton,Q as ToolbarMarkAllNewsAsReadButton,Y as ToolbarNewsLanguageSelector,ay as ToolbarPostNotificationButton,K as ToolbarUnreadItemsButton,U as UserDetails,a4 as VerticalFilterPanel,aB as isFilterActive,B 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{aG as AuthorFilter,aF as AuthorToolbarFilter,a8 as Avatar,ay as ChannelFilter,aL as ChannelSelector,az as ChannelToolbarFilter,aC as ClearAllFiltersButton,b3 as ContactToolbarFilter,aT as EditorToolbarIndicators,b4 as EventDatesToolbarFilter,Y as EventDetail,aq as EventDetailPreview,b9 as EventEditor,ba as EventEditorContextProvider,bb as EventEditorPanel,bd as EventEditorToolbarRecurringControls,bc as EventEditorToolbarStateActions,al as EventItemContextProvider,at as EventItemPreviewContextProvider,aK as EventView,ab as EventsEditorDashboard,a3 as EventsGrid,a4 as EventsList,aH as FilterSearch,a_ as GroupNotificationsSettings,a1 as ItemLayoutMode,aQ as ItemResourceTypes,aR as KeywordPicker,aD as KeywordsFilter,aE as KeywordsToolbarFilter,b5 as LogicalOperator,a5 as ManageChannels,V as NewsDetail,ao as NewsDetailPreview,aM as NewsEditor,aN as NewsEditorContextProvider,aa as NewsEditorDashboard,aV as NewsEditorPanel,aU as NewsEditorToolbarStateActions,a2 as NewsGrid,a9 as NewsHero,aj as NewsItemContextProvider,ar as NewsItemPreviewContextProvider,a0 as NewsList,X as PageDetail,ap as PageDetailPreview,bf as PageEditor,be as PageEditorContextProvider,bh as PageEditorPanel,bg as PageEditorToolbarStateActions,ak as PageItemContextProvider,as as PageItemPreviewContextProvider,b8 as PageType,aO as PageViewTrackerSettingsContextProvider,b6 as PagesGrid,b7 as PagesList,Z as PostDetail,aZ as PostGroupSelector,b0 as PostGroupSelectorButton,aY as PostGroupsPicker,aW as PostInputBox,aX as PostList,U as PostListContextProvider,aB as PublishingDateFilter,aA as PublishingDateToolbarFilter,S as ReachContextProvider,aS as ReachDialog,aP as TargetLinkOverrideContextProvider,ac as Toolbar,af as ToolbarChannelSelector,ai as ToolbarCloseButton,aJ as ToolbarEventViewSelector,av as ToolbarFilterModal,aw as ToolbarFilterModalButton,au as ToolbarFilterPanel,aI as ToolbarFilterSearch,b1 as ToolbarFilterToggleButton,ad as ToolbarIconButton,am as ToolbarLanguageSelector,an as ToolbarManageNewsItemButton,ag as ToolbarMarkAllEventsAsReadButton,ah as ToolbarMarkAllNewsAsReadButton,am as ToolbarNewsLanguageSelector,a$ as ToolbarPostNotificationButton,ae as ToolbarUnreadItemsButton,a7 as UserDetails,ax as VerticalFilterPanel,b2 as isFilterActive,a6 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";