@livetiles/reach-components-react 0.5.0-preview.474 → 0.5.0-preview.475

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, MouseEvent } from 'react';
2
- import { Channel, EventItem } from '@livetiles/reach/util/common';
1
+ import { FC } from 'react';
2
+ import { 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: MouseEvent<unknown>) => unknown;
8
- onChannelClick?: (channel: Channel) => unknown;
7
+ onCardClick?: (event: React.MouseEvent<unknown>) => unknown;
8
+ onChannelClick?: (channel: string) => 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, MouseEvent } from 'react';
2
- import { Channel, NewsItem } from '@livetiles/reach/util/common';
1
+ import { FC } from 'react';
2
+ import { 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: MouseEvent<unknown>) => unknown;
8
- onTitleClick?: (event: MouseEvent<unknown>) => unknown;
9
- onChannelClick?: (channel: Channel) => unknown;
7
+ onCardClick?: (event: React.MouseEvent<unknown>) => unknown;
8
+ onTitleClick?: (event: React.MouseEvent<unknown>) => unknown;
9
+ onChannelClick?: (channel: string) => unknown;
10
10
  onKeywordClick?: (keyword: string) => unknown;
11
11
  className?: string;
12
12
  hideIntro?: boolean;
package/index.d.ts CHANGED
@@ -473,7 +473,7 @@ declare enum KnownNewsState {
473
473
  declare type VersionId = string;
474
474
  interface SchedulableItem extends PublishableItem {
475
475
  metadata?: NewsMetadata;
476
- channels?: Channel[];
476
+ channels?: SchedulableItemChannel[];
477
477
  }
478
478
  interface NewsItem extends SchedulableItem {
479
479
  source?: string;
@@ -487,6 +487,9 @@ interface NewsItemAlertOptions {
487
487
  duration?: string;
488
488
  endDate?: Date;
489
489
  expireAfter?: boolean;
490
+ }
491
+ interface SchedulableItemChannel {
492
+ name: string;
490
493
  }
491
494
 
492
495
  declare enum VideoSource {