@livetiles/reach-plugin-types 0.5.0-preview.388 → 0.5.0-preview.390
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 +11 -6
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ declare module "libs/shared/util/environment/src/AppConfiguration" {
|
|
|
288
288
|
}
|
|
289
289
|
declare module "libs/shared/util/environment/src/ClientConfig" {
|
|
290
290
|
import { AnalyticsConfig } from "libs/shared/util/environment/src/AnalyticsConfig";
|
|
291
|
-
import { ConfigType } from "libs/shared/util/environment/src/AppConfiguration";
|
|
291
|
+
import { ConfigType, VideoSource } from "libs/shared/util/environment/src/AppConfiguration";
|
|
292
292
|
export interface ClientConfig {
|
|
293
293
|
maxFileSizeInMb: number;
|
|
294
294
|
unsplash: {
|
|
@@ -308,6 +308,7 @@ declare module "libs/shared/util/environment/src/ClientConfig" {
|
|
|
308
308
|
};
|
|
309
309
|
analytics: AnalyticsConfig;
|
|
310
310
|
configType: ConfigType;
|
|
311
|
+
additionalVideoSources: VideoSource[];
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
declare module "libs/shared/util/environment/src/EnvironmentConfig" {
|
|
@@ -341,6 +342,7 @@ declare module "libs/shared/util/environment/src/environment" {
|
|
|
341
342
|
export function setAppConfig(newValue: AppConfiguration & ClientConfig): void;
|
|
342
343
|
}
|
|
343
344
|
declare module "libs/shared/util/environment/src/EnvironmentContext" {
|
|
345
|
+
import { VideoSource } from "libs/shared/util/environment/src/AppConfiguration";
|
|
344
346
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/EnvironmentConfig";
|
|
345
347
|
interface AppConfig {
|
|
346
348
|
apiEndpoint: string;
|
|
@@ -348,6 +350,7 @@ declare module "libs/shared/util/environment/src/EnvironmentContext" {
|
|
|
348
350
|
webSocketsEndpoint: string;
|
|
349
351
|
webAppUrl: string;
|
|
350
352
|
additionalWebAppUrls?: string[];
|
|
353
|
+
additionalVideoSources?: VideoSource[];
|
|
351
354
|
}
|
|
352
355
|
export type EnvironmentContextType = {
|
|
353
356
|
env: EnvironmentConfig;
|
|
@@ -7557,15 +7560,17 @@ declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
|
7557
7560
|
}
|
|
7558
7561
|
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7559
7562
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7563
|
+
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
7560
7564
|
export interface KalturaProperties {
|
|
7561
7565
|
sp?: string;
|
|
7562
7566
|
uiconfId?: string;
|
|
7563
7567
|
partnerId?: string;
|
|
7564
7568
|
entryId?: string;
|
|
7565
7569
|
}
|
|
7566
|
-
export const showPlayerForGenericVideoSource: (url: string) => boolean;
|
|
7570
|
+
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
7567
7571
|
export class VideoUrlParser {
|
|
7568
7572
|
private url;
|
|
7573
|
+
private additionalVideoSources?;
|
|
7569
7574
|
private static ytRegex;
|
|
7570
7575
|
private static vimeoRegex;
|
|
7571
7576
|
private static microsoftStreamRegex;
|
|
@@ -7577,12 +7582,12 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
7577
7582
|
readonly isDirectVideoUrl: boolean;
|
|
7578
7583
|
readonly videoProperties: any;
|
|
7579
7584
|
readonly thumbnailUrl: string;
|
|
7580
|
-
constructor(url: string);
|
|
7585
|
+
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
7586
|
+
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
7581
7587
|
isValid(features: FeatureSet): boolean;
|
|
7582
7588
|
}
|
|
7583
|
-
export function getVideoSources(features: FeatureSet): any[];
|
|
7584
|
-
export function
|
|
7585
|
-
export function getAllVideoSources(features: FeatureSet): any[];
|
|
7589
|
+
export function getVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7590
|
+
export function getAllVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7586
7591
|
}
|
|
7587
7592
|
declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
7588
7593
|
import { AttachmentType } from "libs/reach/util/common/src/index";
|