@livetiles/reach-components-react 0.5.0-preview.856 → 0.5.0-preview.859

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,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  export interface ManageChannelsProps {
3
+ hideSearch?: boolean;
3
4
  className?: string;
4
5
  }
5
6
  export declare const ManageChannels: FC<ManageChannelsProps>;
package/NewsHero.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC, MouseEvent } from 'react';
2
2
  import { FilterWithLogicalOperator } from '@livetiles/reach/feature/content';
3
3
  import { Channel, Keyword, NewsItem } from '@livetiles/reach/util/common';
4
4
  export interface NewsHeroFilterProps {
@@ -24,5 +24,6 @@ export interface NewsHeroProps {
24
24
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
25
25
  onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
26
26
  showKeywords?: boolean;
27
+ onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
27
28
  }
28
29
  export declare const NewsHero: FC<NewsHeroProps>;
@@ -1,15 +1,12 @@
1
1
  import { FC, MouseEvent, ReactNode } from 'react';
2
2
  import { ItemResourceTypes, PublishableItem } from '@livetiles/reach/util/common';
3
- export interface IconDefinition {
4
- backgroundColor?: string;
5
- color?: string;
6
- name: string;
7
- tooltipText?: string;
8
- onClick?: (event: MouseEvent<unknown>) => unknown;
9
- }
3
+ import { ActionDefinition, IconDefinition } from './HeroSlide';
10
4
  export interface HeroItem {
11
5
  item: PublishableItem;
12
- icons?: IconDefinition[];
6
+ additionalHeaderItems?: {
7
+ icons?: IconDefinition[];
8
+ actions?: ActionDefinition[];
9
+ };
13
10
  externalContentIcon?: IconDefinition;
14
11
  channels?: ReactNode;
15
12
  keywords?: ReactNode;
@@ -1,16 +1,29 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { FC, ReactNode, MouseEvent } from 'react';
2
2
  import { ItemResourceTypes, PublishableItem } from '@livetiles/reach/util/common';
3
- import { IconDefinition } from './Hero';
3
+ export interface IconDefinition {
4
+ backgroundColor?: string;
5
+ color?: string;
6
+ name: string;
7
+ tooltipText?: string;
8
+ }
9
+ export interface ActionDefinition {
10
+ name: string;
11
+ onClick?: (event: MouseEvent<unknown>) => void;
12
+ text?: string;
13
+ }
4
14
  export declare const HeroSlide: FC<{
5
15
  item: PublishableItem;
6
16
  itemResourceType: ItemResourceTypes;
7
17
  baseRoute: string;
8
- icons?: IconDefinition[];
18
+ additionalHeaderItems?: {
19
+ icons?: IconDefinition[];
20
+ actions?: ActionDefinition[];
21
+ };
9
22
  externalContentIcon?: IconDefinition;
10
23
  channels?: ReactNode;
11
24
  keywords?: ReactNode;
12
- onTitleClick?: (event: React.MouseEvent<unknown>) => unknown;
13
- onSlideClick?: (event: React.MouseEvent<unknown>) => unknown;
25
+ onTitleClick?: (event: MouseEvent<unknown>) => unknown;
26
+ onSlideClick?: (event: MouseEvent<unknown>) => unknown;
14
27
  isVideoPlayerActive: boolean;
15
28
  onToggleVideo: (isPlayerActive: boolean) => unknown;
16
29
  width?: string | number;