@livetiles/reach-components-react 0.4.60 → 0.4.63

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.
@@ -1,11 +1,11 @@
1
- import { FC } from 'react';
2
- import { EventItem } from '@livetiles/reach/util/common';
1
+ import { FC, MouseEvent } from 'react';
2
+ import { Channel, EventItem } from '@livetiles/reach/util/common';
3
3
  export interface EventGridCardProps {
4
4
  item: EventItem;
5
5
  baseRoute?: string;
6
6
  openTargetInNewWindow?: boolean;
7
- onCardClick?: (event: React.MouseEvent<unknown>) => unknown;
8
- onChannelClick?: (channel: string) => unknown;
7
+ onCardClick?: (event: MouseEvent<unknown>) => unknown;
8
+ onChannelClick?: (channel: Channel) => unknown;
9
9
  className?: string;
10
10
  }
11
11
  export declare const EventGridCard: FC<EventGridCardProps>;
package/NewsGridCard.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { FC } from 'react';
2
- import { NewsItem } from '@livetiles/reach/util/common';
1
+ import { FC, MouseEvent } from 'react';
2
+ import { Channel, NewsItem } from '@livetiles/reach/util/common';
3
3
  export interface NewsGridCardProps {
4
4
  item: NewsItem;
5
5
  baseRoute?: string;
6
6
  openTargetInNewWindow?: boolean;
7
- onCardClick?: (event: React.MouseEvent<unknown>) => unknown;
8
- onTitleClick?: (event: React.MouseEvent<unknown>) => unknown;
9
- onChannelClick?: (channel: string) => unknown;
7
+ onCardClick?: (event: MouseEvent<unknown>) => unknown;
8
+ onTitleClick?: (event: MouseEvent<unknown>) => unknown;
9
+ onChannelClick?: (channel: Channel) => unknown;
10
10
  onKeywordClick?: (keyword: string) => unknown;
11
11
  className?: string;
12
12
  hideIntro?: boolean;
package/ReachContext.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { VideoSource } from '@livetiles/shared/util/environment';
1
2
  import 'office-ui-fabric-core/dist/css/fabric.css';
2
3
  import { FC } from 'react';
3
4
  export declare type ReachContextProps = {
@@ -6,6 +7,7 @@ export declare type ReachContextProps = {
6
7
  webAppUrl?: string;
7
8
  api3Endpoint?: string;
8
9
  webSocketsEndpoint?: string;
10
+ additionalVideoSources?: VideoSource[];
9
11
  };
10
12
  onRequestToken?: () => Promise<string>;
11
13
  subscriptionId: string;
package/index.d.ts CHANGED
@@ -2,12 +2,46 @@ import { FC, ReactNode } from 'react';
2
2
  import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
3
3
  import * as styled_components from 'styled-components';
4
4
 
5
+ declare enum AuthenticationType {
6
+ unknown = 0,
7
+ azuread = 1,
8
+ b2c = 3,
9
+ temporary = 4,
10
+ apiKey = 5,
11
+ teams = 6,
12
+ onPremKeycloak = 7,
13
+ openId = 8,
14
+ public = 99
15
+ }
16
+
17
+ declare enum IdentityProviderNames {
18
+ MicrosoftWork = "microsoft-work",
19
+ Google = "google",
20
+ EMail = "email",
21
+ Apple = "apple"
22
+ }
23
+ interface IdentityProviderSettings {
24
+ name: string;
25
+ issuer: string;
26
+ clientId: string;
27
+ realm: string;
28
+ url: string;
29
+ scope: string;
30
+ }
31
+
32
+ interface VideoSource$1 {
33
+ prefix: string;
34
+ name: string;
35
+ alwaysShowPlayer?: boolean;
36
+ }
37
+
5
38
  declare type ReachContextProps = {
6
39
  config?: {
7
40
  apiEndpoint?: string;
8
41
  webAppUrl?: string;
9
42
  api3Endpoint?: string;
10
43
  webSocketsEndpoint?: string;
44
+ additionalVideoSources?: VideoSource$1[];
11
45
  };
12
46
  onRequestToken?: () => Promise<string>;
13
47
  subscriptionId: string;
@@ -77,33 +111,6 @@ interface PaginatedList<TItem> {
77
111
  hasNextPage?: boolean;
78
112
  }
79
113
 
80
- declare enum AuthenticationType {
81
- unknown = 0,
82
- azuread = 1,
83
- b2c = 3,
84
- temporary = 4,
85
- apiKey = 5,
86
- teams = 6,
87
- onPremKeycloak = 7,
88
- openId = 8,
89
- public = 99
90
- }
91
-
92
- declare enum IdentityProviderNames {
93
- MicrosoftWork = "microsoft-work",
94
- Google = "google",
95
- EMail = "email",
96
- Apple = "apple"
97
- }
98
- interface IdentityProviderSettings {
99
- name: string;
100
- issuer: string;
101
- clientId: string;
102
- realm: string;
103
- url: string;
104
- scope: string;
105
- }
106
-
107
114
  interface Resources {
108
115
  [language: string]: Record<string, string>;
109
116
  }
@@ -466,7 +473,7 @@ declare enum KnownNewsState {
466
473
  declare type VersionId = string;
467
474
  interface SchedulableItem extends PublishableItem {
468
475
  metadata?: NewsMetadata;
469
- channels?: SchedulableItemChannel[];
476
+ channels?: Channel[];
470
477
  }
471
478
  interface NewsItem extends SchedulableItem {
472
479
  source?: string;
@@ -480,9 +487,6 @@ interface NewsItemAlertOptions {
480
487
  duration?: string;
481
488
  endDate?: Date;
482
489
  expireAfter?: boolean;
483
- }
484
- interface SchedulableItemChannel {
485
- name: string;
486
490
  }
487
491
 
488
492
  declare enum VideoSource {
@@ -1488,4 +1492,4 @@ interface ErrorWrapperProps {
1488
1492
  }
1489
1493
  declare const ErrorWrapper: FC<ErrorWrapperProps>;
1490
1494
 
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 };
1495
+ 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, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useLazySubscriptionContext };