@livetiles/reach-plugin-types 0.5.0-preview.795 → 0.5.0-preview.797

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 +39 -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
  };
@@ -5456,6 +5456,16 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingActionButton" {
5456
5456
  const FloatingActionButton: FC<FloatingActionButtonProps>;
5457
5457
  export default FloatingActionButton;
5458
5458
  }
5459
+ declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
5460
+ import { FC } from 'react';
5461
+ const ProfileButton: FC<{
5462
+ showLabel?: boolean;
5463
+ labelDirection?: 'left' | 'right';
5464
+ coinSize?: number;
5465
+ className?: string;
5466
+ }>;
5467
+ export default ProfileButton;
5468
+ }
5459
5469
  declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
5460
5470
  export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButtons";
5461
5471
  export * from "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton";
@@ -5465,6 +5475,7 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
5465
5475
  export { BaseButtonStyle } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
5466
5476
  export * from "libs/reach/ui/common/src/reach-2/buttons/IconicButtons";
5467
5477
  export { default as FloatingActionButton } from "libs/reach/ui/common/src/reach-2/buttons/FloatingActionButton";
5478
+ export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
5468
5479
  }
5469
5480
  declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
5470
5481
  import { FC, MouseEvent } from 'react';
@@ -6529,6 +6540,32 @@ declare module "libs/reach/feature/content/src/comments/utils" {
6529
6540
  export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
6530
6541
  export function canEdit(comment: Comment, user: CurrentUser): boolean;
6531
6542
  }
6543
+ declare module "libs/reach/feature/content/src/forms/videos/VideoCustomThumbnailPicker" {
6544
+ import { FC } from 'react';
6545
+ import { VideoInfo } from "libs/reach/feature/content/src/index";
6546
+ export const VideoCustomThumbnailPicker: FC<{
6547
+ videoInfo: VideoInfo;
6548
+ onCustomThumbnailAdded: (file: File | null) => void;
6549
+ onRemoveCustomThumbnail: () => void;
6550
+ customThumbnail?: File | null;
6551
+ }>;
6552
+ }
6553
+ declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
6554
+ import { FC } from 'react';
6555
+ import { VideoSource } from "libs/reach/util/common/src/index";
6556
+ export interface VideoInfo {
6557
+ id: string;
6558
+ source: VideoSource;
6559
+ url?: string;
6560
+ isDirectUrl?: boolean;
6561
+ }
6562
+ export const InsertVideoDialog: FC<{
6563
+ titleResource: string;
6564
+ onCancel: () => void;
6565
+ onSave: (videoInfo: VideoInfo, customThumbnail?: File) => void;
6566
+ isOpen?: boolean;
6567
+ }>;
6568
+ }
6532
6569
  declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
6533
6570
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
6534
6571
  import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
@@ -6564,29 +6601,13 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoView" {
6564
6601
  className?: string;
6565
6602
  }>;
6566
6603
  }
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
6604
  declare module "libs/reach/feature/content/src/forms/videos/VideoWithThumbnailView" {
6584
6605
  import { FC } from 'react';
6585
6606
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
6586
6607
  export const VideoWithThumbnailView: FC<{
6587
6608
  videoInfo: VideoInfo;
6588
6609
  videoThumbnailUrl: string;
6589
- parentId: string;
6610
+ parentId?: string;
6590
6611
  className?: string;
6591
6612
  }>;
6592
6613
  }
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.795",
7
+ "version": "0.5.0-preview.797",
8
8
  "dependencies": {}
9
9
  }