@livetiles/reach-plugin-types 0.4.71 → 0.4.72

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 +11 -6
  2. 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;
@@ -7508,15 +7511,17 @@ declare module "libs/reach/feature/content/src/comments/DropInfo" {
7508
7511
  }
7509
7512
  declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
7510
7513
  import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
7514
+ import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
7511
7515
  export interface KalturaProperties {
7512
7516
  sp?: string;
7513
7517
  uiconfId?: string;
7514
7518
  partnerId?: string;
7515
7519
  entryId?: string;
7516
7520
  }
7517
- export const showPlayerForGenericVideoSource: (url: string) => boolean;
7521
+ export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
7518
7522
  export class VideoUrlParser {
7519
7523
  private url;
7524
+ private additionalVideoSources?;
7520
7525
  private static ytRegex;
7521
7526
  private static vimeoRegex;
7522
7527
  private static microsoftStreamRegex;
@@ -7528,12 +7533,12 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
7528
7533
  readonly isDirectVideoUrl: boolean;
7529
7534
  readonly videoProperties: any;
7530
7535
  readonly thumbnailUrl: string;
7531
- constructor(url: string);
7536
+ constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
7537
+ hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
7532
7538
  isValid(features: FeatureSet): boolean;
7533
7539
  }
7534
- export function getVideoSources(features: FeatureSet): any[];
7535
- export function getAdditionalVideoSources(): import("@livetiles/shared/util/environment").VideoSource[];
7536
- export function getAllVideoSources(features: FeatureSet): any[];
7540
+ export function getVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
7541
+ export function getAllVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
7537
7542
  }
7538
7543
  declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
7539
7544
  import { AttachmentType } from "libs/reach/util/common/src/index";
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.71",
7
+ "version": "0.4.72",
8
8
  "dependencies": {}
9
9
  }