@omnia/velcron 8.0.546-dev → 8.0.548-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.
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/Activity.d.ts +80 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/Activity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityDefinition.d.ts +20 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityDefinition.js +24 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityFeed.d.ts +29 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityHubServiceId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/{OmniaHub.js → activity-hub/activities/ActivityHubServiceId.js} +1 -3
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRenderer.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRenderer.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRendererLoadingReferences.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRendererLoadingReferences.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivitySubscription.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivitySubscription.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActorActivity.d.ts +52 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActorActivity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/index.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/index.js +11 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ActivityActorIdBag.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ActivityActorIdBag.js +19 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/Actor.d.ts +31 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/Actor.js +10 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ExternalActorId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ExternalActorId.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/ActivityChannel.d.ts +31 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/ActivityChannel.js +13 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/UpdateActivityChannelRequest.d.ts +37 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/UpdateActivityChannelRequest.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/Base64Image.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/Base64Image.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/FileOwnerId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/FileOwnerId.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/TemporaryFileId.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/TemporaryFileId.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/index.d.ts +9 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/index.js +12 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/Realtime.d.ts +28 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/Realtime.js +19 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/ActivityHubEndpoints.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/ActivityHubEndpoints.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/EmojiReaction.d.ts +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/EmojiReaction.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Reaction.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Reaction.js +12 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Social.d.ts +15 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Social.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/ExternalIdentityProperty.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/ExternalIdentityProperty.js +19 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/HubSource.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/HubSource.js +8 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/FlowContent.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/FlowContent.js +2 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/index.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/index.js +3 -2
- package/internal-do-not-import-from-here/shared/models/media/MediaPickerMedia.d.ts +63 -0
- package/internal-do-not-import-from-here/shared/models/media/MediaPickerMedia.js +41 -0
- package/internal-do-not-import-from-here/shared/models/media/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/media/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/theme/Blueprints.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/theme/ThemeDefinition.d.ts +19 -8
- package/package.json +1 -1
- package/internal-do-not-import-from-here/shared/models/OmniaHub.d.ts +0 -5
- package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +0 -13
- /package/internal-do-not-import-from-here/shared/models/{Realtime.js → activity-hub/activities/ActivityFeed.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./shared"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./activities"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./social"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./actors"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./fileupload"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./targeting"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./actors"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./realtime"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./channels"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { guid } from "../../Guid";
|
|
2
|
+
export declare abstract class RealtimeChannel {
|
|
3
|
+
/**
|
|
4
|
+
* Construct a unique channel id that can be targeted to users who are set to be in that channel on the client
|
|
5
|
+
* @returns id
|
|
6
|
+
*/
|
|
7
|
+
abstract getId(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare abstract class RealtimeData<TRealtimeChannel extends RealtimeChannel, TRealtimeData> {
|
|
10
|
+
private _channel;
|
|
11
|
+
private _value;
|
|
12
|
+
get channel(): TRealtimeChannel;
|
|
13
|
+
get value(): TRealtimeData;
|
|
14
|
+
abstract getId(): guid;
|
|
15
|
+
constructor(channel: TRealtimeChannel, value?: TRealtimeData);
|
|
16
|
+
}
|
|
17
|
+
export type RealtimeChannelUpdateTypes = "activate" | "deactivate";
|
|
18
|
+
export interface RealtimeChannelUpdateMessage extends RealtimChannelMessage {
|
|
19
|
+
threadId: guid;
|
|
20
|
+
type: RealtimeChannelUpdateTypes;
|
|
21
|
+
}
|
|
22
|
+
export interface RealtimeSendMessage extends RealtimChannelMessage {
|
|
23
|
+
dataId: guid;
|
|
24
|
+
data: any;
|
|
25
|
+
}
|
|
26
|
+
export interface RealtimChannelMessage {
|
|
27
|
+
channelId: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RealtimeData = exports.RealtimeChannel = void 0;
|
|
4
|
+
class RealtimeChannel {
|
|
5
|
+
}
|
|
6
|
+
exports.RealtimeChannel = RealtimeChannel;
|
|
7
|
+
class RealtimeData {
|
|
8
|
+
get channel() {
|
|
9
|
+
return this._channel;
|
|
10
|
+
}
|
|
11
|
+
get value() {
|
|
12
|
+
return this._value;
|
|
13
|
+
}
|
|
14
|
+
constructor(channel, value) {
|
|
15
|
+
this._channel = channel;
|
|
16
|
+
this._value = value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.RealtimeData = RealtimeData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Realtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ActivityHubEndpoints";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActorId } from "../actors";
|
|
2
|
+
export interface HubReaction {
|
|
3
|
+
createdBy: ActorId;
|
|
4
|
+
uniqueTypeName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum ActivityReactionType {
|
|
7
|
+
Like = "1",
|
|
8
|
+
Love = "2",
|
|
9
|
+
Laugh = "3",
|
|
10
|
+
Surprised = "4",
|
|
11
|
+
Sad = "5",
|
|
12
|
+
Angry = "6"
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityReactionType = void 0;
|
|
4
|
+
var ActivityReactionType;
|
|
5
|
+
(function (ActivityReactionType) {
|
|
6
|
+
ActivityReactionType["Like"] = "1";
|
|
7
|
+
ActivityReactionType["Love"] = "2";
|
|
8
|
+
ActivityReactionType["Laugh"] = "3";
|
|
9
|
+
ActivityReactionType["Surprised"] = "4";
|
|
10
|
+
ActivityReactionType["Sad"] = "5";
|
|
11
|
+
ActivityReactionType["Angry"] = "6";
|
|
12
|
+
})(ActivityReactionType || (exports.ActivityReactionType = ActivityReactionType = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Id } from "../../Id";
|
|
2
|
+
import { ActorId } from "../actors";
|
|
3
|
+
import { HubReaction } from "./Reaction";
|
|
4
|
+
export type CommentId = Id<string, "CommentId">;
|
|
5
|
+
export declare function CommentId(id: string): CommentId;
|
|
6
|
+
export type HubComment = {
|
|
7
|
+
createdBy: ActorId;
|
|
8
|
+
id: CommentId;
|
|
9
|
+
inReplyToId?: CommentId;
|
|
10
|
+
rendererJson: string;
|
|
11
|
+
mentions: ActorId[];
|
|
12
|
+
reactions: HubReaction[];
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
modifiedAt: Date;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Reaction"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./EmojiReaction"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Social"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
|
2
|
+
import { SourceRelatedHubProperty } from "../activities";
|
|
3
|
+
import { guid } from "../../Guid";
|
|
4
|
+
export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
|
|
5
|
+
private externalIdentityId;
|
|
6
|
+
constructor(externalIdentityId: ExternalActorId);
|
|
7
|
+
get propertySourceId(): guid;
|
|
8
|
+
get name(): string;
|
|
9
|
+
get values(): string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HubExternalIdentityProperty = void 0;
|
|
4
|
+
const HubSource_1 = require("./HubSource");
|
|
5
|
+
class HubExternalIdentityProperty {
|
|
6
|
+
constructor(externalIdentityId) {
|
|
7
|
+
this.externalIdentityId = externalIdentityId;
|
|
8
|
+
}
|
|
9
|
+
get propertySourceId() {
|
|
10
|
+
return HubSource_1.HubSource.Id;
|
|
11
|
+
}
|
|
12
|
+
get name() {
|
|
13
|
+
return "identity";
|
|
14
|
+
}
|
|
15
|
+
get values() {
|
|
16
|
+
return [this.externalIdentityId.toString()];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.HubExternalIdentityProperty = HubExternalIdentityProperty;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HubSource = void 0;
|
|
4
|
+
const Guid_1 = require("../../Guid");
|
|
5
|
+
class HubSource {
|
|
6
|
+
static { this.Id = (0, Guid_1.guid)("eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"); }
|
|
7
|
+
}
|
|
8
|
+
exports.HubSource = HubSource;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExternalIdentityProperty";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FlowContent";
|
|
@@ -9,18 +9,18 @@ export * from "./HttpCommon";
|
|
|
9
9
|
export * from "./Future";
|
|
10
10
|
export * from "./Tokens";
|
|
11
11
|
export * from "./Tenant";
|
|
12
|
-
export * from "./
|
|
12
|
+
export * from "./activity-hub";
|
|
13
13
|
export * from "./OmniaSharedBootstrapData";
|
|
14
14
|
export * from "./StringExtensions";
|
|
15
15
|
export * from "./DynamicState";
|
|
16
16
|
export * from "./Id";
|
|
17
17
|
export * from "./theme";
|
|
18
|
+
export * from "./media";
|
|
18
19
|
export * from "./velcron";
|
|
19
20
|
export * from "./DependencyInjection";
|
|
20
21
|
export * from "./Messaging";
|
|
21
22
|
export * from "./EventHook";
|
|
22
23
|
export * from "./ShortId";
|
|
23
|
-
export * from "./OmniaHub";
|
|
24
24
|
export * from "./Icon";
|
|
25
25
|
export * from "./MultilingualString";
|
|
26
26
|
export * from "./properties";
|
|
@@ -28,3 +28,4 @@ export * from "./ValueOf";
|
|
|
28
28
|
export * from "./Enums";
|
|
29
29
|
export * from "./ObjectMerger";
|
|
30
30
|
export * from "./OxideTypeDefinitions";
|
|
31
|
+
export * from "./content-flow";
|
|
@@ -13,18 +13,18 @@ tslib_1.__exportStar(require("./HttpCommon"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./Future"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./Tokens"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./Tenant"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./
|
|
16
|
+
tslib_1.__exportStar(require("./activity-hub"), 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
20
|
tslib_1.__exportStar(require("./Id"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./theme"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./media"), exports);
|
|
22
23
|
tslib_1.__exportStar(require("./velcron"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./DependencyInjection"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./Messaging"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./EventHook"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./ShortId"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./OmniaHub"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./Icon"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./MultilingualString"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./properties"), exports);
|
|
@@ -32,3 +32,4 @@ tslib_1.__exportStar(require("./ValueOf"), exports);
|
|
|
32
32
|
tslib_1.__exportStar(require("./Enums"), exports);
|
|
33
33
|
tslib_1.__exportStar(require("./ObjectMerger"), exports);
|
|
34
34
|
tslib_1.__exportStar(require("./OxideTypeDefinitions"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./content-flow"), exports);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { guid } from "../Guid";
|
|
2
|
+
export declare namespace MediaPickerEnums {
|
|
3
|
+
enum ScalingFormatTypes {
|
|
4
|
+
KeepFormat = 0,
|
|
5
|
+
Jpeg = 1
|
|
6
|
+
}
|
|
7
|
+
enum ImageRatioTypes {
|
|
8
|
+
Landscape = 0,
|
|
9
|
+
Square = 1,
|
|
10
|
+
Portrait = 2,
|
|
11
|
+
Wide = 3
|
|
12
|
+
}
|
|
13
|
+
enum MediaPickerTransformationTypes {
|
|
14
|
+
Crop = 0,
|
|
15
|
+
Flip = 1,
|
|
16
|
+
Filter = 2
|
|
17
|
+
}
|
|
18
|
+
enum OmniaMediaTypes {
|
|
19
|
+
Image = 0,
|
|
20
|
+
Video = 1
|
|
21
|
+
}
|
|
22
|
+
enum LoadingStyle {
|
|
23
|
+
overlay = 0,
|
|
24
|
+
noOverlay = 1
|
|
25
|
+
}
|
|
26
|
+
enum MediaSearchStatus {
|
|
27
|
+
Initial = 0,
|
|
28
|
+
Searching = 1,
|
|
29
|
+
Finish = 2,
|
|
30
|
+
Error = 3
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export interface MediaPickerMedia {
|
|
34
|
+
omniaMediaType: MediaPickerEnums.OmniaMediaTypes;
|
|
35
|
+
}
|
|
36
|
+
export interface MediaPickerImageMetaData extends IMediaMetadata {
|
|
37
|
+
/**
|
|
38
|
+
* File name including file type extension
|
|
39
|
+
* i.e. "name.format" or atleast .filetype for unknown file names
|
|
40
|
+
* */
|
|
41
|
+
fileName: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IMediaMetadata {
|
|
44
|
+
caption?: string;
|
|
45
|
+
altText?: string;
|
|
46
|
+
providerId?: guid;
|
|
47
|
+
}
|
|
48
|
+
export interface IVideoMetadata extends IMediaMetadata {
|
|
49
|
+
}
|
|
50
|
+
export interface MediaPickerImage extends MediaPickerMedia, MediaPickerImageMetaData {
|
|
51
|
+
omniaImageId: number;
|
|
52
|
+
omniaServiceId: guid;
|
|
53
|
+
}
|
|
54
|
+
export interface MediaPickerVideo extends MediaPickerMedia, IVideoMetadata {
|
|
55
|
+
html: string;
|
|
56
|
+
thumbnailUrl?: string;
|
|
57
|
+
videoUrl: string;
|
|
58
|
+
autoPlay: boolean;
|
|
59
|
+
startTime?: string;
|
|
60
|
+
mute: boolean;
|
|
61
|
+
graphDriveId?: string;
|
|
62
|
+
graphDriveItemId?: string;
|
|
63
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediaPickerEnums = void 0;
|
|
4
|
+
var MediaPickerEnums;
|
|
5
|
+
(function (MediaPickerEnums) {
|
|
6
|
+
let ScalingFormatTypes;
|
|
7
|
+
(function (ScalingFormatTypes) {
|
|
8
|
+
ScalingFormatTypes[ScalingFormatTypes["KeepFormat"] = 0] = "KeepFormat";
|
|
9
|
+
ScalingFormatTypes[ScalingFormatTypes["Jpeg"] = 1] = "Jpeg";
|
|
10
|
+
})(ScalingFormatTypes = MediaPickerEnums.ScalingFormatTypes || (MediaPickerEnums.ScalingFormatTypes = {}));
|
|
11
|
+
let ImageRatioTypes;
|
|
12
|
+
(function (ImageRatioTypes) {
|
|
13
|
+
ImageRatioTypes[ImageRatioTypes["Landscape"] = 0] = "Landscape";
|
|
14
|
+
ImageRatioTypes[ImageRatioTypes["Square"] = 1] = "Square";
|
|
15
|
+
ImageRatioTypes[ImageRatioTypes["Portrait"] = 2] = "Portrait";
|
|
16
|
+
ImageRatioTypes[ImageRatioTypes["Wide"] = 3] = "Wide";
|
|
17
|
+
})(ImageRatioTypes = MediaPickerEnums.ImageRatioTypes || (MediaPickerEnums.ImageRatioTypes = {}));
|
|
18
|
+
let MediaPickerTransformationTypes;
|
|
19
|
+
(function (MediaPickerTransformationTypes) {
|
|
20
|
+
MediaPickerTransformationTypes[MediaPickerTransformationTypes["Crop"] = 0] = "Crop";
|
|
21
|
+
MediaPickerTransformationTypes[MediaPickerTransformationTypes["Flip"] = 1] = "Flip";
|
|
22
|
+
MediaPickerTransformationTypes[MediaPickerTransformationTypes["Filter"] = 2] = "Filter";
|
|
23
|
+
})(MediaPickerTransformationTypes = MediaPickerEnums.MediaPickerTransformationTypes || (MediaPickerEnums.MediaPickerTransformationTypes = {}));
|
|
24
|
+
let OmniaMediaTypes;
|
|
25
|
+
(function (OmniaMediaTypes) {
|
|
26
|
+
OmniaMediaTypes[OmniaMediaTypes["Image"] = 0] = "Image";
|
|
27
|
+
OmniaMediaTypes[OmniaMediaTypes["Video"] = 1] = "Video";
|
|
28
|
+
})(OmniaMediaTypes = MediaPickerEnums.OmniaMediaTypes || (MediaPickerEnums.OmniaMediaTypes = {}));
|
|
29
|
+
let LoadingStyle;
|
|
30
|
+
(function (LoadingStyle) {
|
|
31
|
+
LoadingStyle[LoadingStyle["overlay"] = 0] = "overlay";
|
|
32
|
+
LoadingStyle[LoadingStyle["noOverlay"] = 1] = "noOverlay";
|
|
33
|
+
})(LoadingStyle = MediaPickerEnums.LoadingStyle || (MediaPickerEnums.LoadingStyle = {}));
|
|
34
|
+
let MediaSearchStatus;
|
|
35
|
+
(function (MediaSearchStatus) {
|
|
36
|
+
MediaSearchStatus[MediaSearchStatus["Initial"] = 0] = "Initial";
|
|
37
|
+
MediaSearchStatus[MediaSearchStatus["Searching"] = 1] = "Searching";
|
|
38
|
+
MediaSearchStatus[MediaSearchStatus["Finish"] = 2] = "Finish";
|
|
39
|
+
MediaSearchStatus[MediaSearchStatus["Error"] = 3] = "Error";
|
|
40
|
+
})(MediaSearchStatus = MediaPickerEnums.MediaSearchStatus || (MediaPickerEnums.MediaSearchStatus = {}));
|
|
41
|
+
})(MediaPickerEnums || (exports.MediaPickerEnums = MediaPickerEnums = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MediaPickerMedia";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HorizontalAlignments, TextAlignment, VerticalAlignments } from "../Enums";
|
|
2
2
|
import { IIcon } from "../Icon";
|
|
3
|
+
import { MediaPickerImage } from "../media";
|
|
3
4
|
import { MultilingualString } from "../MultilingualString";
|
|
4
5
|
import { VelcronRendererResolverReference } from "../velcron";
|
|
5
6
|
import { Spacing, SpacingDefinition, SpacingValue } from "./Spacing";
|
|
@@ -89,6 +90,9 @@ export interface ContainerFillBlueprint extends Blueprints, BlueprintsReference,
|
|
|
89
90
|
dynamicColorSchema?: boolean;
|
|
90
91
|
background?: BackgroundDefinition;
|
|
91
92
|
}
|
|
93
|
+
export interface MediaResources {
|
|
94
|
+
logo?: MediaPickerImage;
|
|
95
|
+
}
|
|
92
96
|
export interface IFontBlueprints extends Blueprints, BlueprintsReference {
|
|
93
97
|
fonts: Array<TypographyFontDefinition>;
|
|
94
98
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { guid } from "../Guid";
|
|
2
|
+
import { IIcon } from "../Icon";
|
|
2
3
|
import { Id } from "../Id";
|
|
3
|
-
import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, ContainerFillBlueprints, SpacingBlueprint, TextFillBlueprints } from "./Blueprints";
|
|
4
|
+
import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, ContainerFillBlueprints, MediaResources, SpacingBlueprint, TextFillBlueprints } from "./Blueprints";
|
|
4
5
|
import { Color } from "./Color";
|
|
5
6
|
import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
|
|
6
7
|
import { ThemeBase } from "./ThemeBase";
|
|
@@ -73,7 +74,9 @@ export interface ThemeDefinitionReference {
|
|
|
73
74
|
components: BlueprintsReference;
|
|
74
75
|
}
|
|
75
76
|
export interface ThemeSettings {
|
|
76
|
-
layoutWrapper?:
|
|
77
|
+
layoutWrapper?: {
|
|
78
|
+
width?: number;
|
|
79
|
+
};
|
|
77
80
|
}
|
|
78
81
|
export interface ResolvedThemeDefinition extends ThemeDefinition<ColorSchemas> {
|
|
79
82
|
typography?: TypographyBlueprint;
|
|
@@ -82,14 +85,19 @@ export interface ResolvedThemeDefinition extends ThemeDefinition<ColorSchemas> {
|
|
|
82
85
|
containerFill?: ContainerFillBlueprints;
|
|
83
86
|
textFill?: TextFillBlueprints;
|
|
84
87
|
settings?: ThemeSettings;
|
|
88
|
+
mediaResources?: MediaResources;
|
|
85
89
|
}
|
|
86
|
-
export interface
|
|
87
|
-
|
|
88
|
-
adminAccessibilityThemeId?: guid;
|
|
89
|
-
adminAdditionalThemeIds?: Array<guid>;
|
|
90
|
-
defaultThemeId?: guid;
|
|
90
|
+
export interface ThemeSelectionValue {
|
|
91
|
+
themeId?: guid;
|
|
91
92
|
accessibilityThemeId?: guid;
|
|
92
93
|
additionalThemeIds?: Array<guid>;
|
|
94
|
+
selectIcon?: IIcon;
|
|
95
|
+
switchIcon?: IIcon;
|
|
96
|
+
switchIconAdditional?: IIcon;
|
|
97
|
+
}
|
|
98
|
+
export interface ThemeSelection {
|
|
99
|
+
admin: ThemeSelectionValue;
|
|
100
|
+
default: ThemeSelectionValue;
|
|
93
101
|
}
|
|
94
102
|
export interface ITemplateRegistration<TTemplateType = any> {
|
|
95
103
|
id: guid;
|
|
@@ -163,7 +171,7 @@ export interface ColorGradientValue {
|
|
|
163
171
|
}
|
|
164
172
|
/**Background */
|
|
165
173
|
export interface BackgroundDefinition {
|
|
166
|
-
fill?:
|
|
174
|
+
fill?: ContainerFillDefinitionValue;
|
|
167
175
|
border?: BorderStylingDefinition;
|
|
168
176
|
elevation?: number;
|
|
169
177
|
media?: BackgroundMediaDefinition;
|
|
@@ -178,6 +186,7 @@ export interface FillDefinition {
|
|
|
178
186
|
colors: Array<ColorValue | ColorGradientValue>;
|
|
179
187
|
acrylic?: boolean;
|
|
180
188
|
}
|
|
189
|
+
export type ContainerFillDefinitionValue = BlueprintVariant | FillDefinition | ColorValue;
|
|
181
190
|
export type TextFillDefinitionValue = BlueprintVariant | FillDefinition | ColorValue;
|
|
182
191
|
export interface LinearGradientFillDefinition extends FillDefinition {
|
|
183
192
|
degrees: number;
|
|
@@ -305,6 +314,8 @@ export interface ThemeDefinition<TColor = ColorSchemasReferenceId> extends Theme
|
|
|
305
314
|
*/
|
|
306
315
|
publishedVersionId?: number;
|
|
307
316
|
};
|
|
317
|
+
mediaResources?: MediaResources;
|
|
318
|
+
settings?: ThemeSettings;
|
|
308
319
|
}
|
|
309
320
|
export interface ColorSchema extends ThemeBase {
|
|
310
321
|
base: ColorDefinition;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { guid } from "./Guid";
|
|
2
|
-
export type RealtimeChannelUpdateTypes = "activate" | "deactivate";
|
|
3
|
-
export interface RealtimeChannelUpdateMessage extends RealtimChannelMessage {
|
|
4
|
-
threadId: guid;
|
|
5
|
-
type: RealtimeChannelUpdateTypes;
|
|
6
|
-
}
|
|
7
|
-
export interface RealtimeSendMessage extends RealtimChannelMessage {
|
|
8
|
-
dataId: guid;
|
|
9
|
-
data: any;
|
|
10
|
-
}
|
|
11
|
-
export interface RealtimChannelMessage {
|
|
12
|
-
channelId: string;
|
|
13
|
-
}
|
|
File without changes
|