@livetiles/reach-plugin-types 0.4.98 → 0.4.99
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 +20 -12
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2318,7 +2318,8 @@ declare module "libs/reach/util/common/src/content/Attachment" {
|
|
|
2318
2318
|
Event = 5,
|
|
2319
2319
|
Page = 6,
|
|
2320
2320
|
Post = 7,
|
|
2321
|
-
Giphy = 8
|
|
2321
|
+
Giphy = 8,
|
|
2322
|
+
MicrosoftStreamVideo = 9
|
|
2322
2323
|
}
|
|
2323
2324
|
export interface BaseAttachment {
|
|
2324
2325
|
id: string;
|
|
@@ -2350,7 +2351,8 @@ declare module "libs/reach/util/common/src/content/GraphQLAttachmentType" {
|
|
|
2350
2351
|
Event = "EVENT",
|
|
2351
2352
|
Page = "PAGE",
|
|
2352
2353
|
Post = "POST",
|
|
2353
|
-
Giphy = "GIPHY"
|
|
2354
|
+
Giphy = "GIPHY",
|
|
2355
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
2354
2356
|
}
|
|
2355
2357
|
}
|
|
2356
2358
|
declare module "libs/reach/util/common/src/content/ItemWithAttachments" {
|
|
@@ -7543,11 +7545,15 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
7543
7545
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7544
7546
|
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
7545
7547
|
export interface KalturaProperties {
|
|
7546
|
-
sp
|
|
7547
|
-
uiconfId
|
|
7548
|
-
partnerId
|
|
7549
|
-
entryId
|
|
7548
|
+
sp: string;
|
|
7549
|
+
uiconfId: string;
|
|
7550
|
+
partnerId: string;
|
|
7551
|
+
entryId: string;
|
|
7550
7552
|
}
|
|
7553
|
+
export interface MicrosoftStreamProperties {
|
|
7554
|
+
isSharePoint: boolean;
|
|
7555
|
+
}
|
|
7556
|
+
export type TVideoProperties = KalturaProperties | MicrosoftStreamProperties;
|
|
7551
7557
|
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
7552
7558
|
export class VideoUrlParser {
|
|
7553
7559
|
private url;
|
|
@@ -7555,14 +7561,15 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
7555
7561
|
private static ytRegex;
|
|
7556
7562
|
private static vimeoRegex;
|
|
7557
7563
|
private static microsoftStreamRegex;
|
|
7564
|
+
private static microsoftStreamSharepointRegex;
|
|
7558
7565
|
private static vimeoDirectLinkRegex;
|
|
7559
7566
|
private static vimeoRedirectLinkRegex;
|
|
7560
7567
|
private static kalturaRegex;
|
|
7561
7568
|
readonly source: VideoSource | null;
|
|
7562
7569
|
readonly id: string | null;
|
|
7563
7570
|
readonly isDirectVideoUrl: boolean;
|
|
7564
|
-
readonly videoProperties:
|
|
7565
|
-
readonly thumbnailUrl: string;
|
|
7571
|
+
readonly videoProperties: TVideoProperties | null;
|
|
7572
|
+
readonly thumbnailUrl: string | null;
|
|
7566
7573
|
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
7567
7574
|
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
7568
7575
|
isValid(features: FeatureSet): boolean;
|
|
@@ -7574,7 +7581,7 @@ declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
|
7574
7581
|
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
7575
7582
|
export function getAllVideosFromString(content: string): Generator<{
|
|
7576
7583
|
url: string;
|
|
7577
|
-
type: AttachmentType;
|
|
7584
|
+
type: AttachmentType.YouTubeVideo | AttachmentType.VimeoVideo | AttachmentType.MicrosoftStreamVideo;
|
|
7578
7585
|
}, void, unknown>;
|
|
7579
7586
|
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
7580
7587
|
url: string;
|
|
@@ -7720,7 +7727,7 @@ declare module "libs/reach/feature/content/src/comments/utils" {
|
|
|
7720
7727
|
}
|
|
7721
7728
|
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
7722
7729
|
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7723
|
-
|
|
7730
|
+
import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
|
|
7724
7731
|
export const getMicrosoftStreamVideoUrl: (id: string) => string;
|
|
7725
7732
|
export class VideoElementGenerator {
|
|
7726
7733
|
private videoInfo;
|
|
@@ -7728,16 +7735,17 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerato
|
|
|
7728
7735
|
private autoplay?;
|
|
7729
7736
|
private width?;
|
|
7730
7737
|
private videoProperties?;
|
|
7731
|
-
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?:
|
|
7738
|
+
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?: TVideoProperties);
|
|
7732
7739
|
private getYouTubeVideoElement;
|
|
7733
7740
|
private getVimeoVideoElement;
|
|
7734
7741
|
private getExternalVimeoVideoElement;
|
|
7742
|
+
private getMicrosoftStreamSharePointVideoElement;
|
|
7735
7743
|
private getMicrosoftStreamVideoElement;
|
|
7736
7744
|
private getKalturaVideoElement;
|
|
7737
7745
|
private getGenericURLVideoElement;
|
|
7738
7746
|
private getVideoElement;
|
|
7739
7747
|
private getNotSupportedElement;
|
|
7740
|
-
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?:
|
|
7748
|
+
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?: TVideoProperties): HTMLElement;
|
|
7741
7749
|
static getVideoType(videoInfo: VideoInfo): "" | "YouTube" | "Vimeo" | "Microsoft Stream" | "Kaltura" | "Generic";
|
|
7742
7750
|
}
|
|
7743
7751
|
}
|