@omnia/fx-models 8.0.113-vnext → 8.0.114-vnext

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("db11bef7-768d-4281-ad13-c938a4cdb6de"),
84
85
  },
85
86
  },
86
87
  mediaGallery: {
package/ManifestIds.d.ts CHANGED
@@ -250,6 +250,7 @@ export declare class OmniaWebComponentManifests {
250
250
  static get FxUxMediapickerVideo(): Guid;
251
251
  static get FxUxImageGrid(): Guid;
252
252
  static get FxUxPexelProvider(): Guid;
253
+ static get FxUxUnsplashProvider(): Guid;
253
254
  static get FxUxMediaflowProvider(): Guid;
254
255
  static get FxUxMediaflowProviderVideoPlayer(): Guid;
255
256
  static get FxUxMyComputerProvider(): Guid;
package/ManifestIds.js CHANGED
@@ -763,6 +763,9 @@ class OmniaWebComponentManifests {
763
763
  static get FxUxPexelProvider() {
764
764
  return new models_1.Guid("0c762bb5-c7e6-4ccd-8a89-907200dffca5");
765
765
  }
766
+ static get FxUxUnsplashProvider() {
767
+ return new models_1.Guid("6e7529d9-94f9-489e-a5be-5a129406caa2");
768
+ }
766
769
  static get FxUxMediaflowProvider() {
767
770
  return new models_1.Guid("E4C4594D-5285-45A2-9EDF-1DCA20F92D69");
768
771
  }
@@ -13,7 +13,7 @@ class MediaPickerDallEProvider {
13
13
  this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.dalle;
14
14
  this.category = "image";
15
15
  this.name = "Dall-E";
16
- this.icon = new Icon_1.SvgIcon("<svg width=\"24px\" height=\"24px\" style=\"color: white\" role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>OpenAI</title><path d=\"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z\" fill=\"white\"></path></svg>");
16
+ this.icon = new Icon_1.SvgIcon("<svg width=\"24px\" height=\"24px\" style=\"color: #919191\" role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>OpenAI</title><path d=\"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z\" fill=\"#919191\"></path></svg>");
17
17
  this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxDallEProvider;
18
18
  this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
19
19
  this.sortOrder = 80;
@@ -14,8 +14,8 @@ class MediaPickerPexelProvider {
14
14
  this.category = "image";
15
15
  this.name = "Pexels";
16
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>" +
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=\"#05705a\"></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=\"#fff\" ></path>" +
19
19
  "</svg>");
20
20
  //this.providerElementName = "omfx-media-picker-pexels-provider";
21
21
  this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxPexelProvider;
@@ -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,23 @@
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 = "Unsplash";
16
+ this.icon = new Icon_1.SvgIcon("<svg width='32' height='32' class='UP8CN' viewBox='0 0 32 32' version='1.' aria-labelledby='unsplash-home' aria-hidden='false'><path fill='#919191' d='M10 9V0h12v9H10zm12 5h10v18H0V14h10v9h12v-9z'></path></svg>");
17
+ this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxUnsplashProvider;
18
+ this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
19
+ this.sortOrder = 41;
20
+ this.supportGalleryFeature = true;
21
+ }
22
+ }
23
+ exports.MediaPickerUnsplashProvider = MediaPickerUnsplashProvider;
@@ -7,3 +7,4 @@ export * from "./PexelProvider";
7
7
  export * from "./YoutubeProvider";
8
8
  export * from "./DallEProvider";
9
9
  export * from "./MediaflowProvider";
10
+ export * from "./UnsplashProvider";
@@ -10,3 +10,4 @@ tslib_1.__exportStar(require("./PexelProvider"), exports);
10
10
  tslib_1.__exportStar(require("./YoutubeProvider"), exports);
11
11
  tslib_1.__exportStar(require("./DallEProvider"), exports);
12
12
  tslib_1.__exportStar(require("./MediaflowProvider"), exports);
13
+ tslib_1.__exportStar(require("./UnsplashProvider"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.113-vnext",
4
+ "version": "8.0.114-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"