@livetiles/reach-components-react 0.5.0-preview.1346 → 0.5.0-preview.1347
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/NewsHero.d.ts +6 -5
- package/common/hero/Hero.d.ts +9 -8
- package/common/hero/HeroSlide.d.ts +5 -2
- package/index.d.ts +6 -5
- package/index.esm2.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
package/NewsHero.d.ts
CHANGED
|
@@ -15,17 +15,18 @@ export interface NewsHeroFilterProps {
|
|
|
15
15
|
pageSize?: number;
|
|
16
16
|
}
|
|
17
17
|
export interface NewsHeroProps {
|
|
18
|
-
filter?: NewsHeroFilterProps;
|
|
19
|
-
disableAutoplay?: boolean;
|
|
20
18
|
autoplayInterval?: number;
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
disableAutoplay?: boolean;
|
|
20
|
+
filter?: NewsHeroFilterProps;
|
|
23
21
|
height?: number | string;
|
|
24
22
|
includeAllItems?: boolean;
|
|
23
|
+
isHighContrast?: boolean;
|
|
25
24
|
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
25
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
26
26
|
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
27
|
-
showKeywords?: boolean;
|
|
28
27
|
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
29
28
|
pagingType?: HeroPagingType;
|
|
29
|
+
showKeywords?: boolean;
|
|
30
|
+
width?: number | string;
|
|
30
31
|
}
|
|
31
32
|
export declare const NewsHero: FC<NewsHeroProps>;
|
package/common/hero/Hero.d.ts
CHANGED
|
@@ -3,25 +3,26 @@ import { ItemResourceTypes, PublishableItem } from '@livetiles/reach/util/common
|
|
|
3
3
|
import { ActionDefinition, IconDefinition } from './HeroSlide';
|
|
4
4
|
import { HeroPagingType } from './HeroPaging';
|
|
5
5
|
export interface HeroItem {
|
|
6
|
-
item: PublishableItem;
|
|
7
6
|
additionalHeaderItems?: {
|
|
8
|
-
icons?: IconDefinition[];
|
|
9
7
|
actions?: ActionDefinition[];
|
|
8
|
+
icons?: IconDefinition[];
|
|
10
9
|
};
|
|
11
|
-
externalContentIcon?: IconDefinition;
|
|
12
10
|
channels?: ReactNode;
|
|
11
|
+
externalContentIcon?: IconDefinition;
|
|
12
|
+
item: PublishableItem;
|
|
13
13
|
keywords?: ReactNode;
|
|
14
|
-
onTitleClick?: (event: MouseEvent<unknown>) => unknown;
|
|
15
14
|
onSlideClick?: (event: MouseEvent<unknown>) => unknown;
|
|
15
|
+
onTitleClick?: (event: MouseEvent<unknown>) => unknown;
|
|
16
16
|
}
|
|
17
17
|
export interface Props {
|
|
18
|
-
|
|
19
|
-
itemResourceType: ItemResourceTypes;
|
|
18
|
+
autoplayInterval?: number;
|
|
20
19
|
baseRoute: string;
|
|
21
20
|
disableAutoplay?: boolean;
|
|
22
|
-
autoplayInterval?: number;
|
|
23
|
-
width?: number | string;
|
|
24
21
|
height?: number | string;
|
|
22
|
+
isHighContrast?: boolean;
|
|
23
|
+
itemResourceType: ItemResourceTypes;
|
|
24
|
+
items: HeroItem[];
|
|
25
25
|
pagingType?: HeroPagingType;
|
|
26
|
+
width?: number | string;
|
|
26
27
|
}
|
|
27
28
|
export declare const Hero: FC<Props>;
|
|
@@ -11,7 +11,7 @@ export interface ActionDefinition {
|
|
|
11
11
|
onClick?: (event: MouseEvent<unknown>) => void;
|
|
12
12
|
text?: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
interface IHeroSlideProps {
|
|
15
15
|
additionalHeaderItems?: {
|
|
16
16
|
actions?: ActionDefinition[];
|
|
17
17
|
icons?: IconDefinition[];
|
|
@@ -22,6 +22,7 @@ export declare const HeroSlide: FC<{
|
|
|
22
22
|
height?: string | number;
|
|
23
23
|
imageHeight?: number;
|
|
24
24
|
imageWidth?: number;
|
|
25
|
+
isHighContrast?: boolean;
|
|
25
26
|
isVideoPlayerActive: boolean;
|
|
26
27
|
item: PublishableItem;
|
|
27
28
|
itemResourceType: ItemResourceTypes;
|
|
@@ -30,4 +31,6 @@ export declare const HeroSlide: FC<{
|
|
|
30
31
|
onTitleClick?: (event: MouseEvent<unknown>) => unknown;
|
|
31
32
|
onToggleVideo: (isPlayerActive: boolean) => unknown;
|
|
32
33
|
width?: string | number;
|
|
33
|
-
}
|
|
34
|
+
}
|
|
35
|
+
export declare const HeroSlide: FC<IHeroSlideProps>;
|
|
36
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -1375,18 +1375,19 @@ interface NewsHeroFilterProps {
|
|
|
1375
1375
|
pageSize?: number;
|
|
1376
1376
|
}
|
|
1377
1377
|
interface NewsHeroProps {
|
|
1378
|
-
filter?: NewsHeroFilterProps;
|
|
1379
|
-
disableAutoplay?: boolean;
|
|
1380
1378
|
autoplayInterval?: number;
|
|
1381
|
-
|
|
1382
|
-
|
|
1379
|
+
disableAutoplay?: boolean;
|
|
1380
|
+
filter?: NewsHeroFilterProps;
|
|
1383
1381
|
height?: number | string;
|
|
1384
1382
|
includeAllItems?: boolean;
|
|
1383
|
+
isHighContrast?: boolean;
|
|
1385
1384
|
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1385
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1386
1386
|
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1387
|
-
showKeywords?: boolean;
|
|
1388
1387
|
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1389
1388
|
pagingType?: HeroPagingType;
|
|
1389
|
+
showKeywords?: boolean;
|
|
1390
|
+
width?: number | string;
|
|
1390
1391
|
}
|
|
1391
1392
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1392
1393
|
|