@omnia/fx-models 7.8.5-preview → 7.8.7-preview

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/Constants.d.ts CHANGED
@@ -50,6 +50,7 @@ export declare const Constants: {
50
50
  microsoftStream: Guid;
51
51
  dalle: Guid;
52
52
  mediaflow: Guid;
53
+ unsplash: Guid;
53
54
  };
54
55
  };
55
56
  mediaGallery: {
package/Constants.js CHANGED
@@ -81,6 +81,7 @@ exports.Constants = {
81
81
  microsoftStream: new models_1.Guid("6b1abf7d-01f1-4168-8319-4f53043b5f16"),
82
82
  dalle: new models_1.Guid("69805036-0D70-421B-8B81-217978BB47A4"),
83
83
  mediaflow: new models_1.Guid("F3078399-C3B6-457D-8C2F-A4C8C39B5F27"),
84
+ unsplash: new models_1.Guid("be222505-c2c4-4ec8-8462-a7ad9df4d440"),
84
85
  },
85
86
  },
86
87
  mediaGallery: {
package/ManifestIds.d.ts CHANGED
@@ -227,6 +227,7 @@ export declare class OmniaWebComponentManifests {
227
227
  static get FxUxMediapickerVideo(): Guid;
228
228
  static get FxUxImageGrid(): Guid;
229
229
  static get FxUxPexelProvider(): Guid;
230
+ static get FxUxUnsplashProvider(): Guid;
230
231
  static get FxUxMediaflowProvider(): Guid;
231
232
  static get FxUxMediaflowProviderVideoPlayer(): Guid;
232
233
  static get FxUxMyComputerProvider(): Guid;
package/ManifestIds.js CHANGED
@@ -697,6 +697,9 @@ class OmniaWebComponentManifests {
697
697
  static get FxUxPexelProvider() {
698
698
  return new models_1.Guid("0c762bb5-c7e6-4ccd-8a89-907200dffca5");
699
699
  }
700
+ static get FxUxUnsplashProvider() {
701
+ return new models_1.Guid("be222505-c2c4-4ec8-8462-a7ad9df4d440");
702
+ }
700
703
  static get FxUxMediaflowProvider() {
701
704
  return new models_1.Guid("E4C4594D-5285-45A2-9EDF-1DCA20F92D69");
702
705
  }
@@ -0,0 +1,18 @@
1
+ import { MediaPickerProvider } from ".";
2
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
+ import { MediaPickerEnums } from "../../Enums";
4
+ import { IIcon } from "../../Icon";
5
+ import { MediaPickerVideo } from "../MediaPickerMedia";
6
+ import { MediaPickerPersistedImage } from "../Shared";
7
+ export declare class MediaPickerUnsplashProvider implements MediaPickerProvider {
8
+ id: GuidValue;
9
+ category: string;
10
+ name: string;
11
+ icon: IIcon;
12
+ sortOrder?: number;
13
+ selectableMediaTypes: MediaPickerEnums.OmniaMediaTypes[];
14
+ providerComponentId: GuidValue;
15
+ supportGalleryFeature?: boolean;
16
+ constructor();
17
+ hasEditorForMedia: (media: MediaPickerVideo | MediaPickerPersistedImage) => boolean;
18
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaPickerUnsplashProvider = void 0;
4
+ const Constants_1 = require("../../Constants");
5
+ const Enums_1 = require("../../Enums");
6
+ const ManifestIds_1 = require("../../ManifestIds");
7
+ const Icon_1 = require("../../Icon");
8
+ class MediaPickerUnsplashProvider {
9
+ constructor() {
10
+ this.hasEditorForMedia = (media) => {
11
+ return false;
12
+ };
13
+ this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.unsplash;
14
+ this.category = "image";
15
+ this.name = "Unspalsh";
16
+ this.icon = new Icon_1.SvgIcon("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" viewBox=\"0 0 32 32\">" +
17
+ "<path d=\"M2 0h28a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z\" fill=\"#fff\"></path>" +
18
+ "<path d=\"M13 21h3.863v-3.752h1.167a3.124 3.124 0 1 0 0-6.248H13v10zm5.863 2H11V9h7.03a5.124 5.124 0 0 1 .833 10.18V23z\" fill=\"#000\" fill-opacity=\"0.5\"></path>" +
19
+ "</svg>");
20
+ this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxUnsplashProvider;
21
+ this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
22
+ this.sortOrder = 40;
23
+ this.supportGalleryFeature = true;
24
+ }
25
+ }
26
+ exports.MediaPickerUnsplashProvider = MediaPickerUnsplashProvider;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "7.8.5-preview",
4
+ "version": "7.8.7-preview",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"