@omnia/fx-models 8.0.113-vnext → 8.0.115-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 +1 -0
- package/Constants.js +1 -0
- package/Icon.d.ts +3 -0
- package/Icon.js +34 -0
- package/ManifestIds.d.ts +4 -0
- package/ManifestIds.js +10 -0
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +11 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +4 -6
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +2 -3
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +2 -3
- package/internal-do-not-import-from-here/shared/models/hub/activities/FeedResult.d.ts +4 -2
- package/internal-do-not-import-from-here/shared/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/index.js +1 -0
- package/media-picker/Providers/CentralImageLocationProvider.js +1 -1
- package/media-picker/Providers/DallEProvider.js +1 -1
- package/media-picker/Providers/MyComputerProvider.js +1 -1
- package/media-picker/Providers/PexelProvider.js +2 -2
- package/media-picker/Providers/UnsplashProvider.d.ts +18 -0
- package/media-picker/Providers/UnsplashProvider.js +23 -0
- package/media-picker/Providers/index.d.ts +1 -0
- package/media-picker/Providers/index.js +1 -0
- package/media-picker/Shared.d.ts +1 -0
- package/oxide/OxideTypeDefinitions.d.ts +1 -1
- package/oxide/OxideTypeDefinitions.js +1 -1
- package/package.json +1 -1
package/Constants.d.ts
CHANGED
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/Icon.d.ts
CHANGED
@@ -30,6 +30,9 @@ export declare class FontAwesomeIcon implements IFontAwesomeIcon {
|
|
30
30
|
iconType: IconTypes;
|
31
31
|
constructor(faClass: string);
|
32
32
|
toString(): string;
|
33
|
+
setStyle(style: "solid" | "regular" | "light" | "duotone" | "thin", force?: boolean): this;
|
34
|
+
private setDefaultIconStyle;
|
35
|
+
private setIconStyle;
|
33
36
|
}
|
34
37
|
export declare class MaterialIcon implements IMaterialIcon {
|
35
38
|
maClass: string;
|
package/Icon.js
CHANGED
@@ -9,10 +9,44 @@ class FontAwesomeIcon {
|
|
9
9
|
constructor(faClass) {
|
10
10
|
this.faClass = faClass;
|
11
11
|
this.iconType = Enums_1.IconTypes.FontAwesome;
|
12
|
+
this.setDefaultIconStyle();
|
12
13
|
}
|
13
14
|
toString() {
|
14
15
|
return this.faClass;
|
15
16
|
}
|
17
|
+
//
|
18
|
+
setStyle(style, force) {
|
19
|
+
if (!force && this.faClass.indexOf(" ") === -1) {
|
20
|
+
return;
|
21
|
+
}
|
22
|
+
if (style === "solid") {
|
23
|
+
this.setIconStyle("fas");
|
24
|
+
}
|
25
|
+
else if (style === "regular") {
|
26
|
+
this.setIconStyle("fa");
|
27
|
+
}
|
28
|
+
else if (style === "light") {
|
29
|
+
this.setIconStyle("fal");
|
30
|
+
}
|
31
|
+
else if (style === "duotone") {
|
32
|
+
this.setIconStyle("fa-duotone");
|
33
|
+
}
|
34
|
+
else if (style === "thin") {
|
35
|
+
this.setIconStyle("fat");
|
36
|
+
}
|
37
|
+
return this;
|
38
|
+
}
|
39
|
+
setDefaultIconStyle() {
|
40
|
+
const split = this.faClass.split(" ");
|
41
|
+
if (this.faClass.split(" ").length === 1) {
|
42
|
+
this.setIconStyle("fa-duotone");
|
43
|
+
}
|
44
|
+
}
|
45
|
+
setIconStyle(style) {
|
46
|
+
const split = this.faClass.split(" ");
|
47
|
+
const end = split[split.length - 1];
|
48
|
+
this.faClass = style + " " + end;
|
49
|
+
}
|
16
50
|
}
|
17
51
|
exports.FontAwesomeIcon = FontAwesomeIcon;
|
18
52
|
class MaterialIcon {
|
package/ManifestIds.d.ts
CHANGED
@@ -28,6 +28,7 @@ export declare class OmniaResourceManifests {
|
|
28
28
|
static get FxUxVRating(): Guid;
|
29
29
|
static get FxUxVuetifyHover(): Guid;
|
30
30
|
static get FxUxVuetifyStepper(): Guid;
|
31
|
+
static get FxUxVuetifyColorPicker(): Guid;
|
31
32
|
static get FxUxVuetifyCombobox(): Guid;
|
32
33
|
static get FxUxVuetifySlider(): Guid;
|
33
34
|
static get FxUxVuetifyChip(): Guid;
|
@@ -171,6 +172,7 @@ export declare class OmniaWebComponentManifests {
|
|
171
172
|
static get OMenu(): Guid;
|
172
173
|
static get ONavigationDrawer(): Guid;
|
173
174
|
static get OPanel(): Guid;
|
175
|
+
static get OFlex(): Guid;
|
174
176
|
static get OProgress(): Guid;
|
175
177
|
static get ORadio(): Guid;
|
176
178
|
static get ORadioGroup(): Guid;
|
@@ -190,6 +192,7 @@ export declare class OmniaWebComponentManifests {
|
|
190
192
|
static get OTextArea(): Guid;
|
191
193
|
static get OTextField(): Guid;
|
192
194
|
static get OToolbar(): Guid;
|
195
|
+
static get OColorPicker(): Guid;
|
193
196
|
static get OTooltip(): Guid;
|
194
197
|
static get OTreeView(): Guid;
|
195
198
|
static get OValidation(): Guid;
|
@@ -250,6 +253,7 @@ export declare class OmniaWebComponentManifests {
|
|
250
253
|
static get FxUxMediapickerVideo(): Guid;
|
251
254
|
static get FxUxImageGrid(): Guid;
|
252
255
|
static get FxUxPexelProvider(): Guid;
|
256
|
+
static get FxUxUnsplashProvider(): Guid;
|
253
257
|
static get FxUxMediaflowProvider(): Guid;
|
254
258
|
static get FxUxMediaflowProviderVideoPlayer(): Guid;
|
255
259
|
static get FxUxMyComputerProvider(): Guid;
|
package/ManifestIds.js
CHANGED
@@ -84,6 +84,7 @@ class OmniaResourceManifests {
|
|
84
84
|
}
|
85
85
|
//public static get FxUxVuetifyBadge(): Guid { return new Guid("42da6bee-8c61-426c-aeb5-b480ecc01f06"); }
|
86
86
|
static get FxUxVuetifyStepper() { return new models_1.Guid("3104db5f-e983-4e06-925e-9b5375276512"); }
|
87
|
+
static get FxUxVuetifyColorPicker() { return new models_1.Guid("4f861c0d-75fb-49ce-913e-17cbafad5ed2"); }
|
87
88
|
static get FxUxVuetifyCombobox() {
|
88
89
|
return new models_1.Guid("0EDAD567-65C0-433F-A871-A59E460D70F0");
|
89
90
|
}
|
@@ -526,6 +527,9 @@ class OmniaWebComponentManifests {
|
|
526
527
|
static get OPanel() {
|
527
528
|
return new models_1.Guid("1d8d2a23-2824-4f1e-ab96-344841305976");
|
528
529
|
}
|
530
|
+
static get OFlex() {
|
531
|
+
return new models_1.Guid("1691e25d-9632-43f9-b78a-548fe8d2e8a7");
|
532
|
+
}
|
529
533
|
static get OProgress() {
|
530
534
|
return new models_1.Guid("247719ac-6d38-43ec-889f-ace452544a21");
|
531
535
|
}
|
@@ -583,6 +587,9 @@ class OmniaWebComponentManifests {
|
|
583
587
|
static get OToolbar() {
|
584
588
|
return new models_1.Guid("575bd9ad-6c0d-4fc9-ab53-fbd1b93786c4");
|
585
589
|
}
|
590
|
+
static get OColorPicker() {
|
591
|
+
return new models_1.Guid("28370f03-1276-4e82-b4c2-9237f943710a");
|
592
|
+
}
|
586
593
|
static get OTooltip() {
|
587
594
|
return new models_1.Guid("19adb199-3860-4f41-b10f-3a00eb3eb534");
|
588
595
|
}
|
@@ -763,6 +770,9 @@ class OmniaWebComponentManifests {
|
|
763
770
|
static get FxUxPexelProvider() {
|
764
771
|
return new models_1.Guid("0c762bb5-c7e6-4ccd-8a89-907200dffca5");
|
765
772
|
}
|
773
|
+
static get FxUxUnsplashProvider() {
|
774
|
+
return new models_1.Guid("6e7529d9-94f9-489e-a5be-5a129406caa2");
|
775
|
+
}
|
766
776
|
static get FxUxMediaflowProvider() {
|
767
777
|
return new models_1.Guid("E4C4594D-5285-45A2-9EDF-1DCA20F92D69");
|
768
778
|
}
|
@@ -1,15 +1,21 @@
|
|
1
|
-
import { DynamicState } from "../..";
|
1
|
+
import { DynamicState, GuidValue, StronglyTypedId } from "../..";
|
2
2
|
import { ChannelId } from "./ActivityChannel";
|
3
3
|
import { ActivitySenderId } from "./ActivitySender";
|
4
|
-
export
|
5
|
-
|
6
|
-
export
|
7
|
-
|
4
|
+
export type ActivityId = StronglyTypedId<number, "ActivityId">;
|
5
|
+
export declare function ActivityId(id: number): ActivityId;
|
6
|
+
export type ActivityTypeId = StronglyTypedId<GuidValue, "ActivityTypeId">;
|
7
|
+
export declare function ActivityTypeId(id: GuidValue): ActivityTypeId;
|
8
8
|
export interface Activity<TRenderState = DynamicState> extends ActivityBase {
|
9
9
|
id: ActivityId;
|
10
10
|
state: TRenderState;
|
11
11
|
senderId: ActivitySenderId;
|
12
12
|
}
|
13
|
+
export interface ActivityResponse extends ActivityBase {
|
14
|
+
id: ActivityId;
|
15
|
+
senderId: ActivitySenderId;
|
16
|
+
stateJson: string;
|
17
|
+
rendererJson: string;
|
18
|
+
}
|
13
19
|
export interface ActivityBase {
|
14
20
|
channelId: ChannelId;
|
15
21
|
activityTypeId: ActivityTypeId;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ActivityTypeId = exports.ActivityId = void 0;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
(function (ActivityTypeId) {
|
9
|
-
})(ActivityTypeId = exports.ActivityTypeId || (exports.ActivityTypeId = {}));
|
4
|
+
function ActivityId(id) { return id; }
|
5
|
+
exports.ActivityId = ActivityId;
|
6
|
+
function ActivityTypeId(id) { return id; }
|
7
|
+
exports.ActivityTypeId = ActivityTypeId;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { StronglyTypedId } from "../..";
|
2
|
+
export type ChannelId = StronglyTypedId<number, "ChannelId">;
|
3
|
+
export declare function ChannelId(id: number): ChannelId;
|
3
4
|
export interface ActivityChannel {
|
4
5
|
id: ChannelId;
|
5
6
|
createdAt: Date;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ChannelId = void 0;
|
4
|
-
|
5
|
-
|
6
|
-
})(ChannelId = exports.ChannelId || (exports.ChannelId = {}));
|
4
|
+
function ChannelId(id) { return id; }
|
5
|
+
exports.ChannelId = ChannelId;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { GuidValue, StronglyTypedId } from "../..";
|
2
|
+
export type ActivityRendererId = StronglyTypedId<string, "ActivityRendererId">;
|
3
|
+
export declare function ActivityRendererId(id: GuidValue): ActivityRendererId;
|
3
4
|
export interface ActivityRendererReference {
|
4
5
|
id: ActivityRendererId;
|
5
6
|
version: string;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ActivityRendererId = void 0;
|
4
|
-
|
5
|
-
|
6
|
-
})(ActivityRendererId = exports.ActivityRendererId || (exports.ActivityRendererId = {}));
|
4
|
+
function ActivityRendererId(id) { return id; }
|
5
|
+
exports.ActivityRendererId = ActivityRendererId;
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { Activity, ActivityId } from "./Activity";
|
2
|
-
import { ActivityRenderer } from "./ActivityRenderer";
|
2
|
+
import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
|
3
3
|
import { IdentityActivity } from "./IdentityActivity";
|
4
4
|
export interface FeedResult {
|
5
|
-
renderers:
|
5
|
+
renderers: {
|
6
|
+
[key: ActivityRendererId]: ActivityRenderer;
|
7
|
+
};
|
6
8
|
identityActivities: Array<IdentityActivity>;
|
7
9
|
activities: Array<Activity>;
|
8
10
|
nextStartingFromId: ActivityId;
|
@@ -17,5 +17,6 @@ tslib_1.__exportStar(require("./Realtime"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./OmniaSharedBootstrapData"), exports);
|
18
18
|
tslib_1.__exportStar(require("./StringExtensions"), exports);
|
19
19
|
tslib_1.__exportStar(require("./DynamicState"), exports);
|
20
|
+
tslib_1.__exportStar(require("./StronglyTypedId"), exports);
|
20
21
|
tslib_1.__exportStar(require("./theming"), exports);
|
21
22
|
tslib_1.__exportStar(require("./hub"), exports);
|
@@ -17,7 +17,7 @@ class MediaPickerCentralImageLocationProvider {
|
|
17
17
|
this.id = imageLocationSettings.libraryId;
|
18
18
|
this.category = "image";
|
19
19
|
this.name = providerName;
|
20
|
-
this.icon = new Icon_1.FontAwesomeIcon("
|
20
|
+
this.icon = new Icon_1.FontAwesomeIcon("fa-duotone fa-images");
|
21
21
|
//this.providerElementName = "omfx-media-picker-central-image-location-provider";
|
22
22
|
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxCentralImageLocationProvider;
|
23
23
|
this.sortOrder = 20;
|
@@ -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:
|
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;
|
@@ -13,7 +13,7 @@ class MediaPickerMyComputerProvider {
|
|
13
13
|
this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.myComputer;
|
14
14
|
this.category = "image";
|
15
15
|
this.name = "Omnia.Ux.MyComputerProvider.Title";
|
16
|
-
this.icon = new Icon_1.FontAwesomeIcon("
|
16
|
+
this.icon = new Icon_1.FontAwesomeIcon("fa-duotone fa-desktop");
|
17
17
|
//this.providerElementName = "omfx-media-picker-mycomputer-provider";
|
18
18
|
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxMyComputerProvider;
|
19
19
|
this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
|
@@ -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=\"#
|
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=\"#
|
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;
|
@@ -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/media-picker/Shared.d.ts
CHANGED
@@ -14,6 +14,7 @@ export interface MediaInformation {
|
|
14
14
|
export interface ImageInformation extends MediaInformation, MediaPickerBase64Image {
|
15
15
|
sizeInBytes: number;
|
16
16
|
sourceUrl?: string;
|
17
|
+
thumbnailUrl?: string;
|
17
18
|
}
|
18
19
|
export interface VideoInformation extends MediaInformation {
|
19
20
|
videoUrl: string;
|
@@ -24,7 +24,7 @@ export declare const ProgressSizeTypeDefinitions: readonly ["default", "large",
|
|
24
24
|
export type ProgressSizeTypes = typeof ProgressSizeTypeDefinitions[number];
|
25
25
|
export declare const ProgressSizeTypesName = "ProgressSizeTypes";
|
26
26
|
/**AppBar */
|
27
|
-
export declare const AppBarTypeDefinitions: readonly ["default", "app"];
|
27
|
+
export declare const AppBarTypeDefinitions: readonly ["default", "app", "chrome"];
|
28
28
|
export type AppBarTypes = typeof AppBarTypeDefinitions[number];
|
29
29
|
export declare const AppBarTypesName = "AppBarTypes";
|
30
30
|
/**Button */
|
@@ -19,7 +19,7 @@ exports.ProgressVariantsName = "ProgressVariants";
|
|
19
19
|
exports.ProgressSizeTypeDefinitions = ["default", "large", "x-large"];
|
20
20
|
exports.ProgressSizeTypesName = "ProgressSizeTypes";
|
21
21
|
/**AppBar */
|
22
|
-
exports.AppBarTypeDefinitions = ["default", "app"];
|
22
|
+
exports.AppBarTypeDefinitions = ["default", "app", "chrome"];
|
23
23
|
exports.AppBarTypesName = "AppBarTypes";
|
24
24
|
/**Button */
|
25
25
|
exports.ButtonPresetDefinitions = ["create", "remove", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-settings", "load-more", "retry", "remove", "approve", "copy-to-clipboard", "details", "next", "previous", "select", "view-more", "send-request"];
|