@livetiles/reach-components-react 0.4.93 → 0.4.94

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,6 +1,7 @@
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
+ import { HeroPagingType } from './common/hero/HeroPaging';
4
5
  export interface NewsHeroFilterProps {
5
6
  /**
6
7
  * Limit results to those associated with the given channels.
@@ -24,5 +25,7 @@ export interface NewsHeroProps {
24
25
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
25
26
  onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
26
27
  showKeywords?: boolean;
28
+ onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
29
+ pagingType?: HeroPagingType;
27
30
  }
28
31
  export declare const NewsHero: FC<NewsHeroProps>;
@@ -1,15 +1,13 @@
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';
4
+ import { HeroPagingType } from './HeroPaging';
10
5
  export interface HeroItem {
11
6
  item: PublishableItem;
12
- icons?: IconDefinition[];
7
+ additionalHeaderItems?: {
8
+ icons?: IconDefinition[];
9
+ actions?: ActionDefinition[];
10
+ };
13
11
  externalContentIcon?: IconDefinition;
14
12
  channels?: ReactNode;
15
13
  keywords?: ReactNode;
@@ -24,5 +22,6 @@ export interface Props {
24
22
  autoplayInterval?: number;
25
23
  width?: number | string;
26
24
  height?: number | string;
25
+ pagingType?: HeroPagingType;
27
26
  }
28
27
  export declare const Hero: FC<Props>;
@@ -4,7 +4,12 @@ import { HeroItem } from './Hero';
4
4
  interface HeroPagingProps extends CarouselSlideRenderControlProps {
5
5
  items: HeroItem[];
6
6
  autoplay?: boolean;
7
+ pagingType?: HeroPagingType;
7
8
  className?: string;
8
9
  }
10
+ export declare enum HeroPagingType {
11
+ page = 0,
12
+ item = 1
13
+ }
9
14
  export declare const HeroPaging: FC<HeroPagingProps>;
10
15
  export {};
@@ -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;