@livetiles/reach-components-react 0.5.0-preview.470 → 0.5.0-preview.471

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/index.d.ts CHANGED
@@ -414,14 +414,6 @@ declare enum FieldMode {
414
414
  Hidden = 3
415
415
  }
416
416
 
417
- interface Channel {
418
- id: string;
419
- name: string;
420
- translations?: {
421
- [key: string]: string;
422
- };
423
- }
424
-
425
417
  interface KeywordGroup {
426
418
  id: string;
427
419
  name: string;
@@ -470,10 +462,18 @@ declare enum KnownNewsState {
470
462
  Alert = 2
471
463
  }
472
464
 
465
+ interface Channel {
466
+ id: string;
467
+ name: string;
468
+ translations?: {
469
+ [key: string]: string;
470
+ };
471
+ }
472
+
473
473
  declare type VersionId = string;
474
474
  interface SchedulableItem extends PublishableItem {
475
475
  metadata?: NewsMetadata;
476
- channels?: SchedulableItemChannel[];
476
+ channels?: Channel[];
477
477
  }
478
478
  interface NewsItem extends SchedulableItem {
479
479
  source?: string;
@@ -487,9 +487,6 @@ interface NewsItemAlertOptions {
487
487
  duration?: string;
488
488
  endDate?: Date;
489
489
  expireAfter?: boolean;
490
- }
491
- interface SchedulableItemChannel {
492
- name: string;
493
490
  }
494
491
 
495
492
  declare enum VideoSource {