@livetiles/reach-components-react 0.4.0-preview.957 → 0.4.0-preview.960

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
@@ -384,6 +384,7 @@ interface ItemStatistics {
384
384
  confirmationCount?: number;
385
385
  bookmarkCount?: number;
386
386
  participantsCount?: number;
387
+ replyCount?: number;
387
388
  }
388
389
 
389
390
  interface NotificationSettings {
@@ -446,6 +447,19 @@ interface BaseItem {
446
447
  id?: string;
447
448
  statistics?: ItemStatistics;
448
449
  poll?: Poll;
450
+ searchHighlights?: SearchHighlightSummary;
451
+ }
452
+ interface SearchHighlightSummary {
453
+ title: SearchHighlight[];
454
+ content: SearchHighlight[];
455
+ }
456
+ interface SearchHighlight {
457
+ language: string;
458
+ texts: {
459
+ value: string;
460
+ type: 'text' | 'hit';
461
+ }[];
462
+ score: number;
449
463
  }
450
464
  interface Poll {
451
465
  questions: PollQuestion[];
@@ -480,7 +494,6 @@ interface PublishableItemContent extends ContentDefinition {
480
494
  headline?: string;
481
495
  intro?: string;
482
496
  body?: string;
483
- bodyRaw?: string;
484
497
  customProperties?: {
485
498
  [key: string]: any;
486
499
  };
@@ -891,15 +904,15 @@ interface TargetLinkOverrideContextProps {
891
904
  }
892
905
  declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
893
906
 
907
+ interface EventContactsFilterDefinition extends IndexableFilterDefinition {
908
+ contacts?: string[];
909
+ }
910
+
894
911
  interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
895
912
  startsAfter?: string;
896
913
  startsBefore?: string;
897
914
  }
898
915
 
899
- interface EventContactsFilterDefinition extends IndexableFilterDefinition {
900
- contacts?: string[];
901
- }
902
-
903
916
  interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
904
917
  excludePastEvents?: boolean;
905
918
  pastEventsOnly?: boolean;
@@ -907,10 +920,12 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
907
920
 
908
921
  interface KeywordPickerProps {
909
922
  value?: Keyword[] | string[];
910
- onChange: (keywords: Keyword[]) => void;
923
+ onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
911
924
  showSelectionToggle?: boolean;
912
925
  availableKeywords?: Keyword[];
913
926
  mandatoryKeywordIds?: string[];
927
+ showLogicalOperatorOptions?: boolean;
928
+ selectedLogicalOperator?: LogicalOperator;
914
929
  className?: string;
915
930
  }
916
931
  declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
@@ -974,8 +989,9 @@ interface ManageChannelsProps {
974
989
  declare const ManageChannels: FC<ManageChannelsProps>;
975
990
 
976
991
  interface ChannelSelectorWrapperProps {
977
- onChannelsChanged: (channels: Channel[]) => void;
978
- defaultSelectedChannels?: string[];
992
+ onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
993
+ showLogicalOperatorOptions?: boolean;
994
+ defaultSelectedChannels?: string[] | FilterWithLogicalOperator;
979
995
  className?: string;
980
996
  }
981
997
  declare const ChannelSelectorWrapper: FC<ChannelSelectorWrapperProps>;
@@ -1042,6 +1058,7 @@ interface NewsHeroProps {
1042
1058
  width?: number | string;
1043
1059
  height?: number | string;
1044
1060
  includeAllItems?: boolean;
1061
+ onChannelClick?: (channel: string) => unknown;
1045
1062
  }
1046
1063
  declare const NewsHero: FC<NewsHeroProps>;
1047
1064
 
@@ -1149,6 +1166,18 @@ interface NewsEditorProps {
1149
1166
  }
1150
1167
  declare const NewsEditor: FC<NewsEditorProps>;
1151
1168
 
1169
+ interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
1170
+ filter?: LibNewsFilterDefinition;
1171
+ searchText?: string;
1172
+ }
1173
+ declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
1174
+
1175
+ interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
1176
+ filter?: EventFilterDefinition;
1177
+ searchText?: string;
1178
+ }
1179
+ declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
1180
+
1152
1181
  interface EditorToolbarIndicatorsProps {
1153
1182
  className?: string;
1154
1183
  }
@@ -1169,18 +1198,6 @@ declare const NewsEditorPanel: FC<{
1169
1198
  className?: string;
1170
1199
  }>;
1171
1200
 
1172
- interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
1173
- filter?: LibNewsFilterDefinition;
1174
- searchText?: string;
1175
- }
1176
- declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
1177
-
1178
- interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
1179
- filter?: EventFilterDefinition;
1180
- searchText?: string;
1181
- }
1182
- declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
1183
-
1184
1201
  interface PostInputBoxProps {
1185
1202
  onBeforeSave?: (post: Post) => void;
1186
1203
  onAfterSave?: (post: Post) => void;
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,af as EditorToolbarIndicators,aq as EventDatesToolbarFilter,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,ad 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,ac as NewsEditorPanel,ab 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,ae 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{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,aq as EventDatesToolbarFilter,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";