@livetiles/reach-plugin-types 0.4.109 → 0.4.111

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 +38 -21
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4765,11 +4765,11 @@ declare module "libs/reach/ui/common/src/common/LongPressUtil" {
4765
4765
  export const DisableTextSelectionGlobally: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
4766
4766
  }
4767
4767
  declare module "libs/reach/ui/common/src/common/useVideosApi" {
4768
- import { VideoSource } from "libs/reach/util/common/src/index";
4769
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
4768
+ import { ItemResourceTypes, VideoSource } from "libs/reach/util/common/src/index";
4770
4769
  export function useVideosApi(): {
4771
- getVideoThumbnailUrl: (token: string, subscriptionId: string, videoSource: VideoSource, videoId: string) => string;
4772
- getBannerVideoThumbnailUrl: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes) => string;
4770
+ getVideoThumbnailUrl: (token: string, subscriptionId: string, videoSource: VideoSource, videoId: string, itemId?: string, hasCustomThumbnail?: boolean, width?: number | 'default', height?: number) => string;
4771
+ getBannerVideoThumbnailUrl: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, width: number | 'default', height?: number) => string;
4772
+ uploadCustomVideoThumbnail: (token: string, itemId: string, subscriptionId: string, videoId: string, file: File) => Promise<Response>;
4773
4773
  };
4774
4774
  }
4775
4775
  declare module "libs/reach/ui/common/src/common/user/Avatar" {
@@ -7360,6 +7360,39 @@ declare module "libs/reach/feature/content/src/comments/utils" {
7360
7360
  export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
7361
7361
  export function canEdit(comment: Comment, user: CurrentUser): boolean;
7362
7362
  }
7363
+ declare module "libs/reach/feature/content/src/forms/videos/VideoCustomThumbnailPicker" {
7364
+ import { FC } from 'react';
7365
+ import { VideoInfo } from "libs/reach/feature/content/src/index";
7366
+ export const VideoCustomThumbnailPicker: FC<{
7367
+ videoInfo: VideoInfo;
7368
+ onCustomThumbnailAdded: (file: File | null) => void;
7369
+ onRemoveCustomThumbnail: () => void;
7370
+ customThumbnail?: File | null;
7371
+ }>;
7372
+ }
7373
+ declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
7374
+ import { FC } from 'react';
7375
+ import { BannerInfo, VideoSource } from "libs/reach/util/common/src/index";
7376
+ export interface VideoInfo {
7377
+ id: string;
7378
+ source: VideoSource;
7379
+ url?: string;
7380
+ isDirectUrl?: boolean;
7381
+ }
7382
+ export const InsertVideoDialog: FC<{
7383
+ titleResource: string;
7384
+ onCancel: () => void;
7385
+ onSave: (videoInfo: VideoInfo, customThumbnail?: File) => void;
7386
+ isOpen?: boolean;
7387
+ disableCustomThumbnail?: boolean;
7388
+ initialDataProps?: {
7389
+ bannerInfo: BannerInfo;
7390
+ itemId: string;
7391
+ token: string;
7392
+ subscriptionId: string;
7393
+ };
7394
+ }>;
7395
+ }
7363
7396
  declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
7364
7397
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
7365
7398
  import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
@@ -7395,29 +7428,13 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoView" {
7395
7428
  className?: string;
7396
7429
  }>;
7397
7430
  }
7398
- declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
7399
- import { FC } from 'react';
7400
- import { VideoSource } from "libs/reach/util/common/src/index";
7401
- export interface VideoInfo {
7402
- id: string;
7403
- source: VideoSource;
7404
- url?: string;
7405
- isDirectUrl?: boolean;
7406
- }
7407
- export const InsertVideoDialog: FC<{
7408
- titleResource: string;
7409
- onCancel: () => void;
7410
- onSave: (videoInfo: VideoInfo) => void;
7411
- isOpen?: boolean;
7412
- }>;
7413
- }
7414
7431
  declare module "libs/reach/feature/content/src/forms/videos/VideoWithThumbnailView" {
7415
7432
  import { FC } from 'react';
7416
7433
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
7417
7434
  export const VideoWithThumbnailView: FC<{
7418
7435
  videoInfo: VideoInfo;
7419
7436
  videoThumbnailUrl: string;
7420
- parentId: string;
7437
+ parentId?: string;
7421
7438
  className?: string;
7422
7439
  }>;
7423
7440
  }
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.109",
7
+ "version": "0.4.111",
8
8
  "dependencies": {}
9
9
  }