@omnia/fx 7.0.450-dev → 7.0.452-dev

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.
@@ -1,6 +1,7 @@
1
- import { MicrosoftStreamParamsModel, MicrosoftStreamModel } from "../models";
1
+ import { MicrosoftStreamParamsModel, MicrosoftStreamModel, SharepointVideo } from "../models";
2
2
  export declare class MicrosoftStreamService {
3
3
  private httpClient;
4
4
  private streamApiUrl;
5
5
  getStreamVideo: (paramsModel: MicrosoftStreamParamsModel) => Promise<MicrosoftStreamModel>;
6
+ getSharepointVideo: (webUrl: string, videoUrl: string, isSharingUrl: boolean) => Promise<SharepointVideo>;
6
7
  }
@@ -6,10 +6,12 @@ import { MicrosoftStreamProviderLocalization } from "./loc/localize";
6
6
  import { OmniaTheming } from "../..";
7
7
  import { IMicrosoftStreamProviderComponent } from "./IMicrosoftStreamProvider";
8
8
  import { MediaProviderComponentBase } from "../mediaproviderbase/MediaProviderComponentBase";
9
+ import { SharePointContext } from "../../../sp";
9
10
  export declare class MicrosoftStreamProviderComponent extends MediaProviderComponentBase implements IWebComponentInstance, IMicrosoftStreamProviderComponent {
10
11
  loc: MicrosoftStreamProviderLocalization.locInterface;
11
12
  microsoftStreamService: MicrosoftStreamService;
12
13
  omniaTheming: OmniaTheming;
14
+ sharepointContext: SharePointContext;
13
15
  apiUrl: string;
14
16
  microsoftStreamVideoUrl: string;
15
17
  embedVideoUrl: string;
@@ -43,11 +45,14 @@ export declare class MicrosoftStreamProviderComponent extends MediaProviderCompo
43
45
  private onAutoPlayChanged;
44
46
  private onShowInfoChanged;
45
47
  private updateQueryStringParameter;
48
+ private getQueryStringParameter;
49
+ private getWebUrl;
46
50
  private replaceAttributeFromString;
47
51
  private validateVideoUrl;
48
52
  private validateStartTimeInput;
49
53
  private getStartTimeAsSeconds;
50
54
  private getStreamVideo;
55
+ private getSharepointStreamVideo;
51
56
  private processResponsiveIframe;
52
57
  private renderIframe;
53
58
  private renderVideoIframe;
@@ -1,4 +1,4 @@
1
- import { IWebComponentInstance } from "../../../";
1
+ import { IWebComponentInstance, OmniaContext } from "../../../";
2
2
  import { ICentralImageProviderComponent } from "./ICentralImageLocationProvider";
3
3
  import { ListsService, SharepointMediaService } from "../../../sp/services";
4
4
  import { CentralImageLocation, ImageInformation, ImageItem, VideoItem, VideoInformation, MediaPickerImageTransformationResult, MediaPickerVideo } from "../../../models";
@@ -14,6 +14,7 @@ export declare class CentralImageLocationProviderComponent extends GridViewMedia
14
14
  listsService: ListsService;
15
15
  spMediaService: SharepointMediaService;
16
16
  imageLocationLoc: CentralImageLocationProviderLocalization.locInterface;
17
+ omniaContext: OmniaContext;
17
18
  private breadcrumb;
18
19
  private itemLimit;
19
20
  private folderItems;
@@ -9,6 +9,7 @@ import { VueComponentBase } from "internal/fx/ux/VueComponentBase";
9
9
  export declare class SharepointVideoComponent extends VueComponentBase implements IWebComponentInstance {
10
10
  graphDriveId: string;
11
11
  graphDriveItemId: string;
12
+ videoUrl?: string;
12
13
  onLoaded?: () => void;
13
14
  private embeddingUrl;
14
15
  spMediaService: SharepointMediaService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "7.0.450-dev",
4
+ "version": "7.0.452-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "7.0.450-dev",
23
+ "@omnia/fx-models": "7.0.452-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",