@livetiles/reach-components-react 0.5.0-preview.243 → 0.5.0-preview.248

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
@@ -292,6 +292,7 @@ interface SubscriptionSummary extends BaseSubscription {
292
292
  customDomain?: string;
293
293
  allowSelfRegistration?: boolean;
294
294
  brandFolderConfig?: BrandFolderConfig;
295
+ hideSubscriptionName?: boolean;
295
296
  }
296
297
  interface BrandFolderConfig {
297
298
  sections?: string[];
@@ -478,6 +479,19 @@ interface BaseItem {
478
479
  id?: string;
479
480
  statistics?: ItemStatistics;
480
481
  poll?: Poll;
482
+ searchHighlights?: SearchHighlightSummary;
483
+ }
484
+ interface SearchHighlightSummary {
485
+ title: SearchHighlight[];
486
+ content: SearchHighlight[];
487
+ }
488
+ interface SearchHighlight {
489
+ language: string;
490
+ texts: {
491
+ value: string;
492
+ type: 'text' | 'hit';
493
+ }[];
494
+ score: number;
481
495
  }
482
496
  interface Poll {
483
497
  questions: PollQuestion[];
@@ -512,7 +526,6 @@ interface PublishableItemContent extends ContentDefinition {
512
526
  headline?: string;
513
527
  intro?: string;
514
528
  body?: string;
515
- bodyRaw?: string;
516
529
  customProperties?: {
517
530
  [key: string]: any;
518
531
  };
@@ -969,11 +982,31 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
969
982
  includeExpired?: boolean;
970
983
  }
971
984
 
972
- interface TargetLinkOverrideContextProps {
973
- onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
974
- onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
985
+ interface Post extends BaseItem, ItemWithAttachments {
986
+ id: string;
987
+ comments?: PaginatedList<Comment>;
988
+ groupId: string;
989
+ content: string;
990
+ permalink?: string;
991
+ author: Account;
992
+ publishingDate: string;
993
+ modified?: string;
994
+ statistics: ItemStatistics;
995
+ keywords?: {
996
+ [key: string]: Keyword[];
997
+ };
998
+ contentLanguageCode?: string;
999
+ isLiked?: boolean;
1000
+ isUnread?: boolean;
1001
+ isDemoContent?: boolean;
1002
+ isFollowing?: boolean;
975
1003
  }
976
- declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1004
+ interface PostFilterDefinition {
1005
+ token?: string;
1006
+ pageSize?: string;
1007
+ search?: string;
1008
+ keywords?: FilterWithLogicalOperator;
1009
+ }
977
1010
 
978
1011
  interface EventContactsFilterDefinition extends IndexableFilterDefinition {
979
1012
  contacts?: string[];
@@ -989,6 +1022,12 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
989
1022
  pastEventsOnly?: boolean;
990
1023
  }
991
1024
 
1025
+ interface TargetLinkOverrideContextProps {
1026
+ onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
1027
+ onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
1028
+ }
1029
+ declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1030
+
992
1031
  interface KeywordPickerProps {
993
1032
  value?: Keyword[] | string[];
994
1033
  onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
@@ -1009,32 +1048,6 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
1009
1048
  pageType?: PageType;
1010
1049
  }
1011
1050
 
1012
- interface Post extends BaseItem, ItemWithAttachments {
1013
- id: string;
1014
- comments?: PaginatedList<Comment>;
1015
- groupId: string;
1016
- content: string;
1017
- permalink?: string;
1018
- author: Account;
1019
- publishingDate: string;
1020
- modified?: string;
1021
- statistics: ItemStatistics;
1022
- keywords?: {
1023
- [key: string]: Keyword[];
1024
- };
1025
- contentLanguageCode?: string;
1026
- isLiked?: boolean;
1027
- isUnread?: boolean;
1028
- isDemoContent?: boolean;
1029
- isFollowing?: boolean;
1030
- }
1031
- interface PostFilterDefinition {
1032
- token?: string;
1033
- pageSize?: string;
1034
- search?: string;
1035
- keywords?: FilterWithLogicalOperator;
1036
- }
1037
-
1038
1051
  interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
1039
1052
  }
1040
1053
 
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{aC as AuthorFilter,aB as AuthorToolbarFilter,a8 as Avatar,au as ChannelFilter,aH as ChannelSelector,av as ChannelToolbarFilter,ay as ClearAllFiltersButton,a$ as ContactToolbarFilter,aP as EditorToolbarIndicators,b0 as EventDatesToolbarFilter,Y as EventDetail,b5 as EventEditor,b6 as EventEditorContextProvider,b7 as EventEditorPanel,b9 as EventEditorToolbarRecurringControls,b8 as EventEditorToolbarStateActions,al as EventItemContextProvider,aG as EventView,ab as EventsEditorDashboard,a3 as EventsGrid,a4 as EventsList,aD as FilterSearch,aW as GroupNotificationsSettings,a1 as ItemLayoutMode,aM as ItemResourceTypes,aN as KeywordPicker,az as KeywordsFilter,aA as KeywordsToolbarFilter,b1 as LogicalOperator,a5 as ManageChannels,V as NewsDetail,ao as NewsDetailPreview,aI as NewsEditor,aJ as NewsEditorContextProvider,aa as NewsEditorDashboard,aR as NewsEditorPanel,aQ as NewsEditorToolbarStateActions,a2 as NewsGrid,a9 as NewsHero,aj as NewsItemContextProvider,ap as NewsItemPreviewContextProvider,a0 as NewsList,X as PageDetail,bb as PageEditor,ba as PageEditorContextProvider,bd as PageEditorPanel,bc as PageEditorToolbarStateActions,ak as PageItemContextProvider,b4 as PageType,aK as PageViewTrackerSettingsContextProvider,b2 as PagesGrid,b3 as PagesList,Z as PostDetail,aV as PostGroupSelector,aY as PostGroupSelectorButton,aU as PostGroupsPicker,aS as PostInputBox,aT as PostList,U as PostListContextProvider,ax as PublishingDateFilter,aw as PublishingDateToolbarFilter,S as ReachContextProvider,aO as ReachDialog,aL as TargetLinkOverrideContextProvider,ac as Toolbar,af as ToolbarChannelSelector,ai as ToolbarCloseButton,aF as ToolbarEventViewSelector,ar as ToolbarFilterModal,as as ToolbarFilterModalButton,aq as ToolbarFilterPanel,aE as ToolbarFilterSearch,aZ as ToolbarFilterToggleButton,ad as ToolbarIconButton,am as ToolbarLanguageSelector,an as ToolbarManageNewsItemButton,ag as ToolbarMarkAllEventsAsReadButton,ah as ToolbarMarkAllNewsAsReadButton,am as ToolbarNewsLanguageSelector,aX as ToolbarPostNotificationButton,ae as ToolbarUnreadItemsButton,a7 as UserDetails,at as VerticalFilterPanel,a_ 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";