@livetiles/reach-components-react 0.4.67 → 0.4.484

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
@@ -48,6 +48,7 @@ declare type ReachContextProps = {
48
48
  subscriptionId: string;
49
49
  language?: string;
50
50
  disableUiFabricThemeOverwrite?: boolean;
51
+ locale?: string;
51
52
  /**
52
53
  * These properties can be used to define the behavior of the analytics module.
53
54
  *
@@ -415,14 +416,6 @@ declare enum FieldMode {
415
416
  Hidden = 3
416
417
  }
417
418
 
418
- interface Channel {
419
- id: string;
420
- name: string;
421
- translations?: {
422
- [key: string]: string;
423
- };
424
- }
425
-
426
419
  interface KeywordGroup {
427
420
  id: string;
428
421
  name: string;
@@ -471,6 +464,14 @@ declare enum KnownNewsState {
471
464
  Alert = 2
472
465
  }
473
466
 
467
+ interface Channel {
468
+ id: string;
469
+ name: string;
470
+ translations?: {
471
+ [key: string]: string;
472
+ };
473
+ }
474
+
474
475
  declare type VersionId = string;
475
476
  interface SchedulableItem extends PublishableItem {
476
477
  metadata?: NewsMetadata;
@@ -482,7 +483,6 @@ interface NewsItem extends SchedulableItem {
482
483
  expiryDate?: string;
483
484
  knownState: KnownNewsState;
484
485
  hasNewComments?: boolean;
485
- isLiked?: boolean;
486
486
  }
487
487
  interface NewsItemAlertOptions {
488
488
  duration?: string;
@@ -502,6 +502,19 @@ interface BaseItem {
502
502
  id?: string;
503
503
  statistics?: ItemStatistics;
504
504
  poll?: Poll;
505
+ searchHighlights?: SearchHighlightSummary;
506
+ }
507
+ interface SearchHighlightSummary {
508
+ title: SearchHighlight[];
509
+ content: SearchHighlight[];
510
+ }
511
+ interface SearchHighlight {
512
+ language: string;
513
+ texts: {
514
+ value: string;
515
+ type: 'text' | 'hit';
516
+ }[];
517
+ score: number;
505
518
  }
506
519
  interface Poll {
507
520
  questions: PollQuestion[];
@@ -536,7 +549,6 @@ interface PublishableItemContent extends ContentDefinition {
536
549
  headline?: string;
537
550
  intro?: string;
538
551
  body?: string;
539
- bodyRaw?: string;
540
552
  customProperties?: {
541
553
  [key: string]: any;
542
554
  };
@@ -601,6 +613,7 @@ interface PublishableItem extends BaseItem {
601
613
  statistics?: ItemStatistics;
602
614
  useExternalContent?: boolean;
603
615
  isDemoContent?: boolean;
616
+ isLiked?: boolean;
604
617
  }
605
618
  interface PollTranslation {
606
619
  questions: QuestionTranslations[];
@@ -857,7 +870,7 @@ interface LazySubscriptionContextType extends SubscriptionData {
857
870
 
858
871
  declare function useLazySubscriptionContext(): LazySubscriptionContextType;
859
872
 
860
- declare const Dialog: FC<IDialogProps>;
873
+ declare const LegacyDialog: FC<IDialogProps>;
861
874
 
862
875
  interface ToolbarProps {
863
876
  leftSide?: ReactNode;
@@ -1019,25 +1032,6 @@ declare enum LogicalOperator {
1019
1032
  And = "AND"
1020
1033
  }
1021
1034
 
1022
- interface AuthorFilterDefinition extends IndexableFilterDefinition {
1023
- author?: string;
1024
- }
1025
-
1026
- interface ChannelsFilterDefinition extends IndexableFilterDefinition {
1027
- channels?: FilterWithLogicalOperator;
1028
- }
1029
-
1030
- interface StateFilterDefinition extends IndexableFilterDefinition {
1031
- state?: WorkflowStatus;
1032
- }
1033
-
1034
- interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
1035
- groupId?: string;
1036
- bookmarksOnly?: boolean;
1037
- unreadOnly?: boolean;
1038
- includeExpired?: boolean;
1039
- }
1040
-
1041
1035
  interface Post extends BaseItem, ItemWithAttachments {
1042
1036
  id: string;
1043
1037
  comments?: PaginatedList<Comment>;
@@ -1064,6 +1058,14 @@ interface PostFilterDefinition {
1064
1058
  keywords?: FilterWithLogicalOperator;
1065
1059
  }
1066
1060
 
1061
+ interface AuthorFilterDefinition extends IndexableFilterDefinition {
1062
+ author?: string;
1063
+ }
1064
+
1065
+ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
1066
+ channels?: FilterWithLogicalOperator;
1067
+ }
1068
+
1067
1069
  interface EventContactsFilterDefinition extends IndexableFilterDefinition {
1068
1070
  contacts?: string[];
1069
1071
  }
@@ -1078,6 +1080,17 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
1078
1080
  pastEventsOnly?: boolean;
1079
1081
  }
1080
1082
 
1083
+ interface StateFilterDefinition extends IndexableFilterDefinition {
1084
+ state?: WorkflowStatus;
1085
+ }
1086
+
1087
+ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
1088
+ groupId?: string;
1089
+ bookmarksOnly?: boolean;
1090
+ unreadOnly?: boolean;
1091
+ includeExpired?: boolean;
1092
+ }
1093
+
1081
1094
  declare enum StreamEventResponse {
1082
1095
  NotSet = "NOTSET",
1083
1096
  Registered = "REGISTERED",
@@ -1596,4 +1609,4 @@ interface ErrorWrapperProps {
1596
1609
  }
1597
1610
  declare const ErrorWrapper: FC<ErrorWrapperProps>;
1598
1611
 
1599
- 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 };
1612
+ 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, LegacyDialog 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 };
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,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,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{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";