@livetiles/reach-plugin-types 0.5.0-preview.794 → 0.5.0-preview.796

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +28 -18
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -5012,7 +5012,7 @@ declare module "libs/reach/ui/common/src/common/LongPressUtil" {
5012
5012
  declare module "libs/reach/ui/common/src/common/useVideosApi" {
5013
5013
  import { ItemResourceTypes, VideoSource } from "libs/reach/util/common/src/index";
5014
5014
  export function useVideosApi(): {
5015
- getVideoThumbnailUrl: (token: string, subscriptionId: string, videoSource: VideoSource, videoId: string) => string;
5015
+ getVideoThumbnailUrl: (token: string, subscriptionId: string, videoSource: VideoSource, videoId: string, itemId?: string, hasCustomThumbnail?: boolean) => string;
5016
5016
  getBannerVideoThumbnailUrl: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes) => string;
5017
5017
  uploadCustomVideoThumbnail: (token: string, itemId: string, subscriptionId: string, videoId: string, file: File) => Promise<Response>;
5018
5018
  };
@@ -6529,6 +6529,32 @@ declare module "libs/reach/feature/content/src/comments/utils" {
6529
6529
  export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
6530
6530
  export function canEdit(comment: Comment, user: CurrentUser): boolean;
6531
6531
  }
6532
+ declare module "libs/reach/feature/content/src/forms/videos/VideoCustomThumbnailPicker" {
6533
+ import { FC } from 'react';
6534
+ import { VideoInfo } from "libs/reach/feature/content/src/index";
6535
+ export const VideoCustomThumbnailPicker: FC<{
6536
+ videoInfo: VideoInfo;
6537
+ onCustomThumbnailAdded: (file: File | null) => void;
6538
+ onRemoveCustomThumbnail: () => void;
6539
+ customThumbnail?: File | null;
6540
+ }>;
6541
+ }
6542
+ declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
6543
+ import { FC } from 'react';
6544
+ import { VideoSource } from "libs/reach/util/common/src/index";
6545
+ export interface VideoInfo {
6546
+ id: string;
6547
+ source: VideoSource;
6548
+ url?: string;
6549
+ isDirectUrl?: boolean;
6550
+ }
6551
+ export const InsertVideoDialog: FC<{
6552
+ titleResource: string;
6553
+ onCancel: () => void;
6554
+ onSave: (videoInfo: VideoInfo, customThumbnail?: File) => void;
6555
+ isOpen?: boolean;
6556
+ }>;
6557
+ }
6532
6558
  declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
6533
6559
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
6534
6560
  import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
@@ -6564,29 +6590,13 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoView" {
6564
6590
  className?: string;
6565
6591
  }>;
6566
6592
  }
6567
- declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
6568
- import { FC } from 'react';
6569
- import { VideoSource } from "libs/reach/util/common/src/index";
6570
- export interface VideoInfo {
6571
- id: string;
6572
- source: VideoSource;
6573
- url?: string;
6574
- isDirectUrl?: boolean;
6575
- }
6576
- export const InsertVideoDialog: FC<{
6577
- titleResource: string;
6578
- onCancel: () => void;
6579
- onSave: (videoInfo: VideoInfo) => void;
6580
- isOpen?: boolean;
6581
- }>;
6582
- }
6583
6593
  declare module "libs/reach/feature/content/src/forms/videos/VideoWithThumbnailView" {
6584
6594
  import { FC } from 'react';
6585
6595
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
6586
6596
  export const VideoWithThumbnailView: FC<{
6587
6597
  videoInfo: VideoInfo;
6588
6598
  videoThumbnailUrl: string;
6589
- parentId: string;
6599
+ parentId?: string;
6590
6600
  className?: string;
6591
6601
  }>;
6592
6602
  }
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.794",
7
+ "version": "0.5.0-preview.796",
8
8
  "dependencies": {}
9
9
  }