@livetiles/reach-plugin-types 0.5.0-preview.616 → 0.5.0-preview.618
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.
- package/lib/index.d.ts +15 -9
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6568,11 +6568,15 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
6568
6568
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
6569
6569
|
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
6570
6570
|
export interface KalturaProperties {
|
|
6571
|
-
sp
|
|
6572
|
-
uiconfId
|
|
6573
|
-
partnerId
|
|
6574
|
-
entryId
|
|
6571
|
+
sp: string;
|
|
6572
|
+
uiconfId: string;
|
|
6573
|
+
partnerId: string;
|
|
6574
|
+
entryId: string;
|
|
6575
6575
|
}
|
|
6576
|
+
export interface MicrosoftStreamProperties {
|
|
6577
|
+
isSharePoint: boolean;
|
|
6578
|
+
}
|
|
6579
|
+
export type TVideoProperties = KalturaProperties | MicrosoftStreamProperties;
|
|
6576
6580
|
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
6577
6581
|
export class VideoUrlParser {
|
|
6578
6582
|
private url;
|
|
@@ -6580,14 +6584,15 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
6580
6584
|
private static ytRegex;
|
|
6581
6585
|
private static vimeoRegex;
|
|
6582
6586
|
private static microsoftStreamRegex;
|
|
6587
|
+
private static microsoftStreamSharepointRegex;
|
|
6583
6588
|
private static vimeoDirectLinkRegex;
|
|
6584
6589
|
private static vimeoRedirectLinkRegex;
|
|
6585
6590
|
private static kalturaRegex;
|
|
6586
6591
|
readonly source: VideoSource | null;
|
|
6587
6592
|
readonly id: string | null;
|
|
6588
6593
|
readonly isDirectVideoUrl: boolean;
|
|
6589
|
-
readonly videoProperties:
|
|
6590
|
-
readonly thumbnailUrl: string;
|
|
6594
|
+
readonly videoProperties: TVideoProperties | null;
|
|
6595
|
+
readonly thumbnailUrl: string | null;
|
|
6591
6596
|
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
6592
6597
|
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
6593
6598
|
isValid(features: FeatureSet): boolean;
|
|
@@ -6745,7 +6750,7 @@ declare module "libs/reach/feature/content/src/comments/utils" {
|
|
|
6745
6750
|
}
|
|
6746
6751
|
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
6747
6752
|
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
6748
|
-
|
|
6753
|
+
import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
|
|
6749
6754
|
export const getMicrosoftStreamVideoUrl: (id: string) => string;
|
|
6750
6755
|
export class VideoElementGenerator {
|
|
6751
6756
|
private videoInfo;
|
|
@@ -6753,16 +6758,17 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerato
|
|
|
6753
6758
|
private autoplay?;
|
|
6754
6759
|
private width?;
|
|
6755
6760
|
private videoProperties?;
|
|
6756
|
-
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?:
|
|
6761
|
+
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?: TVideoProperties);
|
|
6757
6762
|
private getYouTubeVideoElement;
|
|
6758
6763
|
private getVimeoVideoElement;
|
|
6759
6764
|
private getExternalVimeoVideoElement;
|
|
6765
|
+
private getMicrosoftStreamSharePointVideoElement;
|
|
6760
6766
|
private getMicrosoftStreamVideoElement;
|
|
6761
6767
|
private getKalturaVideoElement;
|
|
6762
6768
|
private getGenericURLVideoElement;
|
|
6763
6769
|
private getVideoElement;
|
|
6764
6770
|
private getNotSupportedElement;
|
|
6765
|
-
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?:
|
|
6771
|
+
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?: TVideoProperties): HTMLElement;
|
|
6766
6772
|
static getVideoType(videoInfo: VideoInfo): "" | "YouTube" | "Vimeo" | "Microsoft Stream" | "Kaltura" | "Generic";
|
|
6767
6773
|
}
|
|
6768
6774
|
}
|