@omnia/velcron 8.0.126-dev → 8.0.128-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/OmniaSharedBootstrapData.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +8 -8
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +9 -9
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/index.js +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +14 -25
- package/internal-do-not-import-from-here/shared/models/theming/Chrome.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +8 -5
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +0 -4
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
- package/package.json +1 -1
- package/parser/VelcronActions.d.ts +4 -2
- package/parser/VelcronActions.js +11 -5
- package/stores/VelcronColorSchema.d.ts +7 -7
- package/stores/VelcronTheming.d.ts +3 -3
- package/stores/VelcronTheming.js +4 -4
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -16
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
- /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OmniaToken } from "./Tokens";
|
|
2
2
|
import { Guid, GuidValue } from "./Guid";
|
|
3
3
|
import { TenantIdentifier } from "./Tenant";
|
|
4
|
+
import { ActorId } from "./hub";
|
|
4
5
|
export interface OmniaSharedBootstrapData {
|
|
5
6
|
uiThreadId: GuidValue;
|
|
6
7
|
workerThreadId: GuidValue;
|
|
@@ -14,7 +15,7 @@ export interface OmniaSharedBootstrapData {
|
|
|
14
15
|
tokenKey?: OmniaToken;
|
|
15
16
|
tokenRef: GuidValue;
|
|
16
17
|
identity: string;
|
|
17
|
-
|
|
18
|
+
hubActorId?: ActorId;
|
|
18
19
|
licenses: Array<Guid>;
|
|
19
20
|
hubDev?: boolean;
|
|
20
21
|
realtimeDevPort?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChannelId } from "./ActivityChannel";
|
|
2
|
-
import { ActivitySenderId } from "./ActivitySender";
|
|
3
2
|
import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
|
|
4
3
|
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
5
4
|
import { GuidValue } from "../../Guid";
|
|
6
5
|
import { DynamicState } from "../../DynamicState";
|
|
7
|
-
import {
|
|
6
|
+
import { ActorActivityCategory } from "./ActorActivity";
|
|
8
7
|
import { TemporaryFileId } from "../fileupload";
|
|
8
|
+
import { ActorId } from "../actors";
|
|
9
9
|
export type ActivityId = StronglyTypedId<number, "ActivityId">;
|
|
10
10
|
export declare function ActivityId(id: number): ActivityId;
|
|
11
11
|
export type ActivityTypeId = StronglyTypedId<GuidValue, "ActivityTypeId">;
|
|
@@ -14,11 +14,11 @@ export interface Activity<TRenderState = DynamicState> extends ActivityBase {
|
|
|
14
14
|
id: ActivityId;
|
|
15
15
|
state: TRenderState;
|
|
16
16
|
renderer: ActivityRenderer | ActivityRendererReference;
|
|
17
|
-
|
|
17
|
+
createdBy: ActorId;
|
|
18
18
|
}
|
|
19
19
|
export interface ActivityWithJson extends ActivityBase {
|
|
20
20
|
id: ActivityId;
|
|
21
|
-
|
|
21
|
+
createdBy: ActorId;
|
|
22
22
|
stateJson: string;
|
|
23
23
|
rendererJson: string;
|
|
24
24
|
}
|
|
@@ -56,15 +56,15 @@ export declare enum PrivacyLevel {
|
|
|
56
56
|
export interface CreateActivityRequest {
|
|
57
57
|
channelId: ChannelId;
|
|
58
58
|
activityTypeId: ActivityTypeId;
|
|
59
|
-
|
|
59
|
+
createdBy: ActorId;
|
|
60
60
|
stateJson: string;
|
|
61
61
|
rendererJson: string;
|
|
62
62
|
notificationTeaser: NotificationTeaser;
|
|
63
63
|
targeting: Array<Array<SourceRelatedHubProperty>>;
|
|
64
|
-
|
|
65
|
-
[
|
|
64
|
+
addToActors?: {
|
|
65
|
+
[actorId: ActorId]: PrivacyLevel;
|
|
66
66
|
};
|
|
67
|
-
category:
|
|
67
|
+
category: ActorActivityCategory;
|
|
68
68
|
activityIdPlaceHolder?: TemporaryFileId;
|
|
69
69
|
expires?: Date;
|
|
70
70
|
createdAt?: Date;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
+
import { ActorId } from "../actors";
|
|
1
2
|
import { Activity, ActivityId, ActivityWithJson } from "./Activity";
|
|
2
3
|
import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
|
|
3
|
-
import {
|
|
4
|
-
import { ActivityCategoryCount, IdentityActivity, IdentityActivityCategory, IdentityActivityWithJson, NewActivitiesBySenderBase } from "./IdentityActivity";
|
|
4
|
+
import { ActivityCategoryCount, ActorActivity, ActorActivityCategory, ActorActivityWithJson, NewActivitiesByCreatorBase } from "./ActorActivity";
|
|
5
5
|
export interface ActivityFeed extends ActivityFeedBase {
|
|
6
6
|
renderers: {
|
|
7
7
|
[key: ActivityRendererId]: Array<ActivityRenderer>;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
actorActivities: Array<ActorActivity<object, object>>;
|
|
10
10
|
activities: Array<Activity>;
|
|
11
11
|
}
|
|
12
12
|
export interface ActivityFeedResult extends ActivityFeedBase {
|
|
13
|
-
|
|
13
|
+
actorActivities: Array<ActorActivityWithJson>;
|
|
14
14
|
activities: Array<ActivityWithJson>;
|
|
15
15
|
loadStateHash: string;
|
|
16
16
|
}
|
|
17
17
|
export interface ActivityFeedBase {
|
|
18
|
-
newActivities: Array<
|
|
18
|
+
newActivities: Array<NewActivitiesByCreatorBase>;
|
|
19
19
|
nextStartingFromId: ActivityId;
|
|
20
|
-
|
|
20
|
+
recentCreators: Array<ActorId>;
|
|
21
21
|
categories: Array<ActivityCategoryCount>;
|
|
22
22
|
}
|
|
23
23
|
export interface FeedQuery {
|
|
24
|
+
forActorId?: ActorId;
|
|
24
25
|
newerThenId?: ActivityId;
|
|
25
26
|
olderThenId?: ActivityId;
|
|
26
|
-
|
|
27
|
-
filterByCategory?:
|
|
28
|
-
|
|
27
|
+
filterByCreator?: ActorId;
|
|
28
|
+
filterByCategory?: ActorActivityCategory;
|
|
29
|
+
includeRecentCreators?: number;
|
|
29
30
|
includeCategories?: boolean;
|
|
30
31
|
}
|
package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
4
|
-
export declare function
|
|
5
|
-
export interface
|
|
2
|
+
import { ActorId } from "../actors";
|
|
3
|
+
export type SubscriptionId = StronglyTypedId<string, "SubscriptionId">;
|
|
4
|
+
export declare function SubscriptionId(id: string): SubscriptionId;
|
|
5
|
+
export interface SubscriptionInformation extends ActorSubscription {
|
|
6
6
|
title: Record<string, string>;
|
|
7
7
|
description: Record<string, string>;
|
|
8
8
|
clientId: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
11
|
-
id:
|
|
12
|
-
|
|
10
|
+
export interface ActorSubscription {
|
|
11
|
+
id: SubscriptionId;
|
|
12
|
+
subscriptionOwner: ActorId;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface Subscription extends ActorSubscription {
|
|
15
|
+
subscriber: ActorId;
|
|
16
16
|
}
|
package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
3
|
+
exports.SubscriptionId = void 0;
|
|
4
|
+
function SubscriptionId(id) { return id; }
|
|
5
|
+
exports.SubscriptionId = SubscriptionId;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DynamicState } from "../../DynamicState";
|
|
2
|
+
import { Actor, ActorId } from "../actors";
|
|
3
|
+
import { Activity, ActivityId } from "./Activity";
|
|
4
|
+
import { ChannelId } from "./ActivityChannel";
|
|
5
|
+
export declare enum ActorActivityStatus {
|
|
6
|
+
new = 0,
|
|
7
|
+
read = 1,
|
|
8
|
+
completed = 2
|
|
9
|
+
}
|
|
10
|
+
export declare enum ActorActivityCategory {
|
|
11
|
+
none = 0,
|
|
12
|
+
important = 1,
|
|
13
|
+
todo = 2,
|
|
14
|
+
snoozed = 3,
|
|
15
|
+
bookmarked = 4
|
|
16
|
+
}
|
|
17
|
+
export interface ActorActivityBase {
|
|
18
|
+
activityId: ActivityId;
|
|
19
|
+
status: ActorActivityStatus;
|
|
20
|
+
category: ActorActivityCategory;
|
|
21
|
+
}
|
|
22
|
+
export interface ActorActivity<TRenderState extends DynamicState, TState extends DynamicState> extends ActorActivityBase {
|
|
23
|
+
activity: Activity<TRenderState>;
|
|
24
|
+
state?: TState;
|
|
25
|
+
}
|
|
26
|
+
export interface ActorActivityWithJson extends ActorActivityBase {
|
|
27
|
+
stateJson: string;
|
|
28
|
+
}
|
|
29
|
+
export interface NewActivitiesByCreatorBase {
|
|
30
|
+
count: number;
|
|
31
|
+
creator: ActorId;
|
|
32
|
+
}
|
|
33
|
+
export interface NewActivitiesByActor extends NewActivitiesByCreatorBase {
|
|
34
|
+
actor: Actor;
|
|
35
|
+
channelId: ChannelId;
|
|
36
|
+
}
|
|
37
|
+
export interface ActivityCategoryCount {
|
|
38
|
+
category: ActorActivityCategory;
|
|
39
|
+
count: number;
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorActivityCategory = exports.ActorActivityStatus = void 0;
|
|
4
|
+
var ActorActivityStatus;
|
|
5
|
+
(function (ActorActivityStatus) {
|
|
6
|
+
ActorActivityStatus[ActorActivityStatus["new"] = 0] = "new";
|
|
7
|
+
ActorActivityStatus[ActorActivityStatus["read"] = 1] = "read";
|
|
8
|
+
ActorActivityStatus[ActorActivityStatus["completed"] = 2] = "completed";
|
|
9
|
+
})(ActorActivityStatus || (exports.ActorActivityStatus = ActorActivityStatus = {}));
|
|
10
|
+
var ActorActivityCategory;
|
|
11
|
+
(function (ActorActivityCategory) {
|
|
12
|
+
ActorActivityCategory[ActorActivityCategory["none"] = 0] = "none";
|
|
13
|
+
ActorActivityCategory[ActorActivityCategory["important"] = 1] = "important";
|
|
14
|
+
ActorActivityCategory[ActorActivityCategory["todo"] = 2] = "todo";
|
|
15
|
+
ActorActivityCategory[ActorActivityCategory["snoozed"] = 3] = "snoozed";
|
|
16
|
+
ActorActivityCategory[ActorActivityCategory["bookmarked"] = 4] = "bookmarked";
|
|
17
|
+
})(ActorActivityCategory || (exports.ActorActivityCategory = ActorActivityCategory = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./Activity";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./ActorActivity";
|
|
3
3
|
export * from "./ActivityRenderer";
|
|
4
|
-
export * from "./ActivitySender";
|
|
5
4
|
export * from "./ActivityChannel";
|
|
6
5
|
export * from "./ActivityFeed";
|
|
7
6
|
export * from "./ActivityDefinition";
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Activity"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
5
|
+
tslib_1.__exportStar(require("./ActorActivity"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ActivityRenderer"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ActivitySender"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./ActivityChannel"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./ActivityFeed"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./ActivityDefinition"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
2
|
+
import { ExternalActorId } from "./ExternalActorId";
|
|
3
|
+
export type ActorId = StronglyTypedId<number, "ActorId">;
|
|
4
|
+
export declare function ActorId(id: number): ActorId;
|
|
5
|
+
export interface ActorWithBag<TBag> extends Actor {
|
|
6
|
+
bag: TBag;
|
|
7
|
+
}
|
|
8
|
+
export interface Actor extends ActorBase {
|
|
9
|
+
imageUrl: string;
|
|
10
|
+
name: Record<string, string>;
|
|
11
|
+
description: Record<string, string>;
|
|
12
|
+
type: ActorTypes;
|
|
13
|
+
}
|
|
14
|
+
export interface ActorBase {
|
|
15
|
+
id: ActorId;
|
|
16
|
+
externalId: ExternalActorId;
|
|
17
|
+
}
|
|
18
|
+
export declare enum ActorTypes {
|
|
19
|
+
user = 0,
|
|
20
|
+
app = 1
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorTypes = exports.ActorId = void 0;
|
|
4
|
+
function ActorId(id) { return id; }
|
|
5
|
+
exports.ActorId = ActorId;
|
|
6
|
+
var ActorTypes;
|
|
7
|
+
(function (ActorTypes) {
|
|
8
|
+
ActorTypes[ActorTypes["user"] = 0] = "user";
|
|
9
|
+
ActorTypes[ActorTypes["app"] = 1] = "app";
|
|
10
|
+
})(ActorTypes || (exports.ActorTypes = ActorTypes = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./activities";
|
|
2
2
|
export * from "./social";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./actors/ExternalActorId";
|
|
4
4
|
export * from "./fileupload";
|
|
5
5
|
export * from "./TempSocialReactions";
|
|
6
6
|
export * from "./targeting";
|
|
7
|
+
export * from "./actors";
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./activities"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./social"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
6
|
+
tslib_1.__exportStar(require("./actors/ExternalActorId"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./fileupload"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./TempSocialReactions"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./targeting"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./actors"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
|
2
2
|
import { HubReaction } from "./HubReaction";
|
|
3
3
|
export interface HubComment {
|
|
4
|
-
createdBy:
|
|
4
|
+
createdBy: ExternalActorId;
|
|
5
5
|
id: number;
|
|
6
6
|
inReplyToId: number | null;
|
|
7
7
|
rendererJson: string;
|
|
8
|
-
mentions:
|
|
8
|
+
mentions: ExternalActorId[];
|
|
9
9
|
reactions: HubReaction[];
|
|
10
10
|
}
|
package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GuidValue } from "../../Guid";
|
|
2
|
-
import {
|
|
2
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
|
3
3
|
import { SourceRelatedHubProperty } from "../activities";
|
|
4
4
|
export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
|
|
5
5
|
private externalIdentityId;
|
|
6
|
-
constructor(externalIdentityId:
|
|
6
|
+
constructor(externalIdentityId: ExternalActorId);
|
|
7
7
|
get propertySourceId(): GuidValue;
|
|
8
8
|
get name(): string;
|
|
9
9
|
get values(): string[];
|
|
@@ -5,61 +5,50 @@ import { TypographyValue } from "./Typography";
|
|
|
5
5
|
export interface BoxDimensions extends Spacing {
|
|
6
6
|
}
|
|
7
7
|
import { TypographyBlueprint } from "./Typography";
|
|
8
|
-
export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
|
|
9
8
|
export interface Blueprints {
|
|
10
|
-
type: BlueprintType;
|
|
11
9
|
name?: string;
|
|
12
10
|
}
|
|
13
11
|
export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3";
|
|
14
12
|
export type ButtonBlueprintType = "text" | "icon";
|
|
15
13
|
export interface ChromeBlueprints extends Blueprints {
|
|
16
|
-
|
|
17
|
-
default: ChromeBlueprint;
|
|
14
|
+
primary: ChromeBlueprint;
|
|
18
15
|
variant1?: ChromeBlueprint;
|
|
19
16
|
variant2?: ChromeBlueprint;
|
|
20
17
|
variant3?: ChromeBlueprint;
|
|
21
18
|
}
|
|
22
19
|
export interface TypographyBlueprints extends Blueprints {
|
|
23
|
-
|
|
24
|
-
default: TypographyBlueprint;
|
|
25
|
-
variant1?: TypographyBlueprint;
|
|
20
|
+
primary: TypographyBlueprint;
|
|
26
21
|
}
|
|
27
22
|
export interface SpacingBlueprints extends Blueprints {
|
|
28
|
-
|
|
29
|
-
default: SpacingBlueprint;
|
|
23
|
+
primary: SpacingBlueprint;
|
|
30
24
|
}
|
|
25
|
+
export type ButtonTypes = "primary" | "basic" | "accent1" | "warn" | "disabled" | "link";
|
|
31
26
|
export interface ComponentBlueprints extends Blueprints {
|
|
32
|
-
type: "component";
|
|
33
27
|
buttons?: {
|
|
34
28
|
text?: {
|
|
35
29
|
primary?: ButtonBlueprint;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
basic?: ButtonBlueprint;
|
|
31
|
+
accent1?: ButtonBlueprint;
|
|
32
|
+
warn?: ButtonBlueprint;
|
|
33
|
+
disabled?: ButtonBlueprint;
|
|
34
|
+
link?: ButtonBlueprint;
|
|
40
35
|
};
|
|
41
36
|
icon?: {
|
|
42
37
|
primary?: ButtonBlueprint;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
basic?: ButtonBlueprint;
|
|
39
|
+
accent1?: ButtonBlueprint;
|
|
40
|
+
warn?: ButtonBlueprint;
|
|
41
|
+
disabled?: ButtonBlueprint;
|
|
42
|
+
link?: ButtonBlueprint;
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
tabs?: {
|
|
50
46
|
primary?: TabsBlueprint;
|
|
51
|
-
secondary?: TabsBlueprint;
|
|
52
47
|
variant1?: TabsBlueprint;
|
|
53
48
|
variant2?: TabsBlueprint;
|
|
54
49
|
variant3?: TabsBlueprint;
|
|
55
50
|
};
|
|
56
51
|
}
|
|
57
|
-
export interface ChromeBluePrintDefinitions {
|
|
58
|
-
default: ChromeBlueprint;
|
|
59
|
-
variant1: ChromeBlueprint;
|
|
60
|
-
variant2: ChromeBlueprint;
|
|
61
|
-
variant3: ChromeBlueprint;
|
|
62
|
-
}
|
|
63
52
|
export interface SpacingBlueprint {
|
|
64
53
|
layout: SpacingDefinition;
|
|
65
54
|
inner: SpacingDefinition;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GuidValue } from "../Guid";
|
|
2
2
|
import { VelcronAppDefinition } from "../velcron";
|
|
3
3
|
import { Spacing } from "./Spacing";
|
|
4
|
-
import { BackgroundDefinition } from "./ThemeDefinitionV2";
|
|
4
|
+
import { BackgroundDefinition, ColorSchemaType } from "./ThemeDefinitionV2";
|
|
5
5
|
export interface ChromeBlueprint {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
name?: string;
|
|
7
|
+
colorSchemaType?: ColorSchemaType;
|
|
8
8
|
header: {
|
|
9
9
|
definitionId: GuidValue;
|
|
10
10
|
definition?: VelcronAppDefinition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Guid } from "../Guid";
|
|
2
|
-
import {
|
|
2
|
+
import { BoxDimensions, ChromeBlueprints, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
|
|
3
3
|
export interface ColorTypeResult<resultType> {
|
|
4
4
|
base: resultType;
|
|
5
5
|
baseTone: resultType;
|
|
@@ -41,10 +41,12 @@ export interface ColorSchemas {
|
|
|
41
41
|
}
|
|
42
42
|
export interface ThemeDefinitionV2 {
|
|
43
43
|
id: Guid;
|
|
44
|
-
name
|
|
45
|
-
dark: boolean;
|
|
44
|
+
name?: string;
|
|
46
45
|
colors: ColorSchemas;
|
|
47
|
-
|
|
46
|
+
typography: TypographyBlueprints;
|
|
47
|
+
spacing: SpacingBlueprints;
|
|
48
|
+
chrome: ChromeBlueprints;
|
|
49
|
+
components: ComponentBlueprints;
|
|
48
50
|
}
|
|
49
51
|
export type ColorSchemaType = keyof typeof ColorSchemaTypes;
|
|
50
52
|
export declare enum ColorSchemaTypes {
|
|
@@ -56,7 +58,8 @@ export declare enum ColorSchemaTypes {
|
|
|
56
58
|
neutral = "neutral",
|
|
57
59
|
background = "background",
|
|
58
60
|
error = "error",
|
|
59
|
-
info = "info"
|
|
61
|
+
info = "info",
|
|
62
|
+
dynamic = "dynamic"
|
|
60
63
|
}
|
|
61
64
|
export type ColorType = keyof typeof ColorTypes;
|
|
62
65
|
export declare enum ColorTypes {
|
|
@@ -12,6 +12,7 @@ var ColorSchemaTypes;
|
|
|
12
12
|
ColorSchemaTypes["background"] = "background";
|
|
13
13
|
ColorSchemaTypes["error"] = "error";
|
|
14
14
|
ColorSchemaTypes["info"] = "info";
|
|
15
|
+
ColorSchemaTypes["dynamic"] = "dynamic";
|
|
15
16
|
})(ColorSchemaTypes || (exports.ColorSchemaTypes = ColorSchemaTypes = {}));
|
|
16
17
|
var ColorTypes;
|
|
17
18
|
(function (ColorTypes) {
|
|
@@ -29,9 +29,9 @@ export interface TypographyBlueprint {
|
|
|
29
29
|
}
|
|
30
30
|
export interface TypographyDefinition {
|
|
31
31
|
decoration?: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
lg: TypographyTypeBreakPoint;
|
|
33
|
+
md?: TypographyTypeBreakPoint;
|
|
34
|
+
sm?: TypographyTypeBreakPoint;
|
|
35
35
|
}
|
|
36
36
|
export interface TypographyTypeBreakPoint {
|
|
37
37
|
weight: number;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
|
|
2
|
-
import { Blueprints, BlueprintType } from "./Blueprints";
|
|
3
2
|
export declare function useThemeMethods(getThemeDefinition: () => any): {
|
|
4
3
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => ColorSchema;
|
|
5
|
-
bluePrintbyType: <TType extends Blueprints>(type: BlueprintType) => TType;
|
|
6
4
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
|
7
5
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
|
|
8
6
|
complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
|
|
@@ -5,9 +5,6 @@ exports.useThemeMethods = void 0;
|
|
|
5
5
|
const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
|
|
6
6
|
// temp change ThemeDefinitionInstance to any because fx/shared can't reference higher level fx/ux
|
|
7
7
|
function useThemeMethods(getThemeDefinition) {
|
|
8
|
-
function bluePrintbyType(type) {
|
|
9
|
-
return getThemeDefinition().blueprints.find(x => x.type === type);
|
|
10
|
-
}
|
|
11
8
|
function colorSchema(colorSchemaType) {
|
|
12
9
|
if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.primary) {
|
|
13
10
|
return getThemeDefinition().colors.primary;
|
|
@@ -92,7 +89,6 @@ function useThemeMethods(getThemeDefinition) {
|
|
|
92
89
|
}
|
|
93
90
|
return {
|
|
94
91
|
colorSchema,
|
|
95
|
-
bluePrintbyType,
|
|
96
92
|
color,
|
|
97
93
|
colorDefinition,
|
|
98
94
|
complementaryColorType,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicState } from "../DynamicState";
|
|
2
|
-
import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent } from "./VelcronEvents";
|
|
2
|
+
import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnSaveEvent } from "./VelcronEvents";
|
|
3
3
|
/**
|
|
4
4
|
* Velcron definition base
|
|
5
5
|
*/
|
|
@@ -73,7 +73,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
|
|
|
73
73
|
version?: string;
|
|
74
74
|
name?: string;
|
|
75
75
|
body?: Array<VelcronDefinition>;
|
|
76
|
-
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
|
|
76
|
+
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSaveEvent;
|
|
77
77
|
actions?: {
|
|
78
78
|
[name: string]: Array<string>;
|
|
79
79
|
};
|
package/package.json
CHANGED
|
@@ -3,11 +3,13 @@ import { IActionHandler } from "../actions";
|
|
|
3
3
|
export declare class VelcronActions {
|
|
4
4
|
static _actionHandlers: {
|
|
5
5
|
[name: string]: IActionHandler;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
static actionHooks: {
|
|
8
8
|
[name: string]: VelcronActionHooks;
|
|
9
9
|
};
|
|
10
|
-
static
|
|
10
|
+
private static registeredBuiltInHandlers;
|
|
11
|
+
static registerAction(handler: IActionHandler): void;
|
|
12
|
+
static unregisterAction(name: string): void;
|
|
11
13
|
static parseAndExecuteActions(templates: Array<string>, renderContext: VelcronRenderContext, customActionContext?: VelcronCustomActionExecutionContext): void;
|
|
12
14
|
static parseFunction(target: {
|
|
13
15
|
[name: string]: Array<string>;
|
package/parser/VelcronActions.js
CHANGED
|
@@ -9,8 +9,8 @@ const builtInHandlers = tslib_1.__importStar(require("../actions"));
|
|
|
9
9
|
const ActionResults_1 = require("../actions/ActionResults");
|
|
10
10
|
const VelcronLogger_1 = require("./VelcronLogger");
|
|
11
11
|
class VelcronActions {
|
|
12
|
-
static registerAction(
|
|
13
|
-
name = name.toLowerCase();
|
|
12
|
+
static registerAction(handler) {
|
|
13
|
+
const name = handler.name.toLowerCase();
|
|
14
14
|
if (this._actionHandlers && this._actionHandlers[name]) {
|
|
15
15
|
VelcronLogger_1.VelcronLogger.logActionError(`The action handler with name ${name} is already registered`);
|
|
16
16
|
}
|
|
@@ -18,6 +18,11 @@ class VelcronActions {
|
|
|
18
18
|
this._actionHandlers[name] = handler;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
static unregisterAction(name) {
|
|
22
|
+
if (this._actionHandlers && this._actionHandlers[name]) {
|
|
23
|
+
delete this._actionHandlers[name];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
21
26
|
static parseAndExecuteActions(templates, renderContext, customActionContext) {
|
|
22
27
|
if (!templates) {
|
|
23
28
|
VelcronLogger_1.VelcronLogger.logActionError("The event template is empty");
|
|
@@ -257,13 +262,13 @@ class VelcronActions {
|
|
|
257
262
|
const actionName = awAction.action.substring(0, awAction.action.indexOf("(")).trim().toLowerCase();
|
|
258
263
|
//promise = VelcronActions.runHandler(awAction, actionName, params);
|
|
259
264
|
if (!VelcronActions._actionHandlers) {
|
|
260
|
-
VelcronActions._actionHandlers = {};
|
|
261
265
|
Object.keys(builtInHandlers).forEach((key) => {
|
|
262
266
|
const handler = builtInHandlers[key];
|
|
263
267
|
if (handler && handler.name && VelcronActions._actionHandlers) {
|
|
264
|
-
VelcronActions.
|
|
268
|
+
VelcronActions.registerAction(handler);
|
|
265
269
|
}
|
|
266
270
|
});
|
|
271
|
+
VelcronActions.registeredBuiltInHandlers = true;
|
|
267
272
|
}
|
|
268
273
|
const paramValues = [];
|
|
269
274
|
params.forEach(param => paramValues.push(param.value));
|
|
@@ -452,8 +457,9 @@ class VelcronActions {
|
|
|
452
457
|
}
|
|
453
458
|
}
|
|
454
459
|
exports.VelcronActions = VelcronActions;
|
|
455
|
-
VelcronActions._actionHandlers =
|
|
460
|
+
VelcronActions._actionHandlers = {};
|
|
456
461
|
VelcronActions.actionHooks = {};
|
|
462
|
+
VelcronActions.registeredBuiltInHandlers = false;
|
|
457
463
|
var VelcronActionParameterDataType;
|
|
458
464
|
(function (VelcronActionParameterDataType) {
|
|
459
465
|
VelcronActionParameterDataType[VelcronActionParameterDataType["text"] = 0] = "text";
|
|
@@ -8,21 +8,21 @@ export declare const useVelcronColorSchemaStore: (newStateWithName?: string) =>
|
|
|
8
8
|
onContainer: ColorDefinition;
|
|
9
9
|
isContainer: boolean;
|
|
10
10
|
name: string;
|
|
11
|
-
colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" |
|
|
11
|
+
colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "dynamic";
|
|
12
12
|
themeStore: {
|
|
13
13
|
state: {
|
|
14
14
|
currentTheme: import("@omnia/fx-models").ThemeDefinitionV2;
|
|
15
15
|
};
|
|
16
16
|
get: {
|
|
17
|
-
componentBlueprints: (
|
|
18
|
-
colorSchema: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" |
|
|
17
|
+
componentBlueprints: () => void;
|
|
18
|
+
colorSchema: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "dynamic") => ColorSchema;
|
|
19
19
|
spacing: () => import("@omnia/fx-models").SpacingDefinition;
|
|
20
20
|
typography: (typographyType: "title" | "text" | "navigation" | import("@omnia/fx-models").TypographyTypes, size: "xs" | "s" | "m" | "l" | "xl" | import("@omnia/fx-models").TypographySizes) => any;
|
|
21
|
-
color: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" |
|
|
22
|
-
colorDefinition: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" |
|
|
21
|
+
color: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "dynamic", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => string;
|
|
22
|
+
colorDefinition: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "dynamic", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => ColorDefinition;
|
|
23
23
|
complementaryColorType: (colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => import("@omnia/fx-models").ColorTypes;
|
|
24
|
-
complementaryColor: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" |
|
|
25
|
-
complementaryColorDefinition: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" |
|
|
24
|
+
complementaryColor: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "dynamic", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => string;
|
|
25
|
+
complementaryColorDefinition: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "dynamic", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => ColorDefinition;
|
|
26
26
|
currentTheme: () => import("@omnia/fx-models").ThemeDefinitionV2;
|
|
27
27
|
};
|
|
28
28
|
actions: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes,
|
|
1
|
+
import { ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, ThemeDefinitionV2, TypographySize, TypographySizes, TypographyType, TypographyTypes } from "..";
|
|
2
2
|
export declare const useVelcronThemingStore: (newStateWithName?: string) => {
|
|
3
3
|
state: {
|
|
4
4
|
currentTheme: ThemeDefinitionV2;
|
|
5
5
|
};
|
|
6
6
|
get: {
|
|
7
|
-
componentBlueprints: (
|
|
7
|
+
componentBlueprints: () => void;
|
|
8
8
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("..").ColorSchema;
|
|
9
|
-
spacing: () => SpacingDefinition;
|
|
9
|
+
spacing: () => import("..").SpacingDefinition;
|
|
10
10
|
typography: (typographyType: TypographyTypes | TypographyType, size: TypographySizes | TypographySize) => any;
|
|
11
11
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
|
12
12
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => import("..").ColorDefinition;
|
package/stores/VelcronTheming.js
CHANGED
|
@@ -13,17 +13,17 @@ exports.useVelcronThemingStore = (0, _1.defineVelcronStore)("VelcronTheming", {
|
|
|
13
13
|
},
|
|
14
14
|
getters(state) {
|
|
15
15
|
return {
|
|
16
|
-
componentBlueprints: (
|
|
17
|
-
|
|
16
|
+
componentBlueprints: () => {
|
|
17
|
+
state.currentTheme.components;
|
|
18
18
|
},
|
|
19
19
|
colorSchema: (colorSchemaType) => {
|
|
20
20
|
return (0, __1.useThemeMethods)(() => state.currentTheme).colorSchema(colorSchemaType);
|
|
21
21
|
},
|
|
22
22
|
spacing: () => {
|
|
23
|
-
return
|
|
23
|
+
return state.currentTheme.spacing.primary.inner;
|
|
24
24
|
},
|
|
25
25
|
typography: (typographyType, size) => {
|
|
26
|
-
const typography =
|
|
26
|
+
const typography = state.currentTheme.typography.primary;
|
|
27
27
|
if (typographyType === __1.TypographyTypes.text) {
|
|
28
28
|
return typography.text[size];
|
|
29
29
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
2
|
-
export type ActivitySenderId = StronglyTypedId<number, "ActivitySenderId">;
|
|
3
|
-
export declare function ActivitySenderId(id: number): ActivitySenderId;
|
|
4
|
-
export interface ActivitySenderWithBag<TBag> extends ActivitySender {
|
|
5
|
-
bag: TBag;
|
|
6
|
-
}
|
|
7
|
-
export interface ActivitySender extends ActivitySenderBase {
|
|
8
|
-
id: ActivitySenderId;
|
|
9
|
-
imageUrl: string;
|
|
10
|
-
identityId: number;
|
|
11
|
-
}
|
|
12
|
-
export interface ActivitySenderBase {
|
|
13
|
-
name: Record<string, string>;
|
|
14
|
-
description: Record<string, string>;
|
|
15
|
-
externalId: string;
|
|
16
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { DynamicState } from "../../DynamicState";
|
|
2
|
-
import { Activity, ActivityId } from "./Activity";
|
|
3
|
-
import { ChannelId } from "./ActivityChannel";
|
|
4
|
-
import { ActivitySender, ActivitySenderId } from "./ActivitySender";
|
|
5
|
-
export declare enum IdentityActivityStatus {
|
|
6
|
-
new = 0,
|
|
7
|
-
read = 1,
|
|
8
|
-
completed = 2
|
|
9
|
-
}
|
|
10
|
-
export declare enum IdentityActivityCategory {
|
|
11
|
-
none = 0,
|
|
12
|
-
important = 1,
|
|
13
|
-
todo = 2,
|
|
14
|
-
snoozed = 3,
|
|
15
|
-
bookmarked = 4
|
|
16
|
-
}
|
|
17
|
-
export interface IdentityActivityBase {
|
|
18
|
-
activityId: ActivityId;
|
|
19
|
-
status: IdentityActivityStatus;
|
|
20
|
-
category: IdentityActivityCategory;
|
|
21
|
-
}
|
|
22
|
-
export interface IdentityActivity<TRenderState extends DynamicState, TState extends DynamicState> extends IdentityActivityBase {
|
|
23
|
-
activity: Activity<TRenderState>;
|
|
24
|
-
state?: TState;
|
|
25
|
-
}
|
|
26
|
-
export interface IdentityActivityWithJson extends IdentityActivityBase {
|
|
27
|
-
stateJson: string;
|
|
28
|
-
}
|
|
29
|
-
export interface NewActivitiesBySenderBase {
|
|
30
|
-
count: number;
|
|
31
|
-
senderId: ActivitySenderId;
|
|
32
|
-
}
|
|
33
|
-
export interface NewActivitiesBySender extends NewActivitiesBySenderBase {
|
|
34
|
-
sender: ActivitySender;
|
|
35
|
-
channelId: ChannelId;
|
|
36
|
-
}
|
|
37
|
-
export interface ActivityCategoryCount {
|
|
38
|
-
category: IdentityActivityCategory;
|
|
39
|
-
count: number;
|
|
40
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdentityActivityCategory = exports.IdentityActivityStatus = void 0;
|
|
4
|
-
var IdentityActivityStatus;
|
|
5
|
-
(function (IdentityActivityStatus) {
|
|
6
|
-
IdentityActivityStatus[IdentityActivityStatus["new"] = 0] = "new";
|
|
7
|
-
IdentityActivityStatus[IdentityActivityStatus["read"] = 1] = "read";
|
|
8
|
-
IdentityActivityStatus[IdentityActivityStatus["completed"] = 2] = "completed";
|
|
9
|
-
})(IdentityActivityStatus || (exports.IdentityActivityStatus = IdentityActivityStatus = {}));
|
|
10
|
-
var IdentityActivityCategory;
|
|
11
|
-
(function (IdentityActivityCategory) {
|
|
12
|
-
IdentityActivityCategory[IdentityActivityCategory["none"] = 0] = "none";
|
|
13
|
-
IdentityActivityCategory[IdentityActivityCategory["important"] = 1] = "important";
|
|
14
|
-
IdentityActivityCategory[IdentityActivityCategory["todo"] = 2] = "todo";
|
|
15
|
-
IdentityActivityCategory[IdentityActivityCategory["snoozed"] = 3] = "snoozed";
|
|
16
|
-
IdentityActivityCategory[IdentityActivityCategory["bookmarked"] = 4] = "bookmarked";
|
|
17
|
-
})(IdentityActivityCategory || (exports.IdentityActivityCategory = IdentityActivityCategory = {}));
|
|
18
|
-
// Usage
|
|
19
|
-
// const activity1: IdentityActivity<SomeRenderState> = {
|
|
20
|
-
// activity: {
|
|
21
|
-
// // Initialize your Activity here
|
|
22
|
-
// },
|
|
23
|
-
// state: {
|
|
24
|
-
// // Initialize your State here
|
|
25
|
-
// },
|
|
26
|
-
// };
|
|
27
|
-
// const activity2: IdentityActivity<SomeRenderState, SomeState> = {
|
|
28
|
-
// activity: {
|
|
29
|
-
// // Initialize your Activity here
|
|
30
|
-
// },
|
|
31
|
-
// state: {
|
|
32
|
-
// // Initialize your State here
|
|
33
|
-
// },
|
|
34
|
-
// };
|
|
35
|
-
// const activity3: IdentityActivityWithJson = {
|
|
36
|
-
// activityId: 22,
|
|
37
|
-
// status: IdentityActivityStatus.unRead,
|
|
38
|
-
// stateJson: "someJson",
|
|
39
|
-
// };
|
|
File without changes
|