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