@omnia/velcron 8.0.257-dev → 8.0.258-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/events/CreateEventHook.js +1 -2
- package/internal-do-not-import-from-here/shared/models/Guid.js +4 -4
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +1 -2
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +1 -2
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.js +1 -2
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +1 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +1 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +1 -2
- package/package.json +1 -1
- package/parser/VelcronData.d.ts +1 -1
- package/rules/IsEditMode.js +1 -2
- package/stores/VelcronColorSchema.d.ts +1 -1
- package/stores/VelcronStore.js +1 -2
- package/templatebuilder/useVelcronEditorBuilder.js +1 -2
- package/templatebuilder/useVelcronTemplateBuilder.js +1 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createVelcronEventHook =
|
|
3
|
+
exports.createVelcronEventHook = createVelcronEventHook;
|
|
4
4
|
/**
|
|
5
5
|
* Utility for creating event hooks on the fly
|
|
6
6
|
*/
|
|
@@ -26,4 +26,3 @@ function createVelcronEventHook() {
|
|
|
26
26
|
trigger,
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
exports.createVelcronEventHook = createVelcronEventHook;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.emptyGuid = void 0;
|
|
4
|
+
exports.guid = guid;
|
|
5
|
+
exports.maybeGuid = maybeGuid;
|
|
6
|
+
exports.isValidGuid = isValidGuid;
|
|
4
7
|
require("./Equals"); // ensure execute code in equals first
|
|
5
8
|
exports.emptyGuid = guid("00000000-0000-0000-0000-000000000000");
|
|
6
9
|
const guidSymbol = Symbol("guid");
|
|
@@ -27,7 +30,6 @@ const guidSymbol = Symbol("guid");
|
|
|
27
30
|
function guid(id) {
|
|
28
31
|
return defineGuid(id);
|
|
29
32
|
}
|
|
30
|
-
exports.guid = guid;
|
|
31
33
|
/**
|
|
32
34
|
* Casts a provided string to a GUID without enforcing format validation.
|
|
33
35
|
*
|
|
@@ -48,7 +50,6 @@ function maybeGuid(id) {
|
|
|
48
50
|
//return id?.toLowerCase() as guid;
|
|
49
51
|
return defineGuid(id);
|
|
50
52
|
}
|
|
51
|
-
exports.maybeGuid = maybeGuid;
|
|
52
53
|
/**
|
|
53
54
|
* Checks if the provided string is a valid GUID/UUID
|
|
54
55
|
*
|
|
@@ -78,7 +79,6 @@ function isValidGuid(guid) {
|
|
|
78
79
|
const validRegex = /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/;
|
|
79
80
|
return validRegex.test(guid);
|
|
80
81
|
}
|
|
81
|
-
exports.isValidGuid = isValidGuid;
|
|
82
82
|
function defineGuid(id) {
|
|
83
83
|
if (!id) {
|
|
84
84
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
|
|
@@ -3,7 +3,7 @@ import { guid } from "./Guid";
|
|
|
3
3
|
import { WorkerProxyFunction } from "./Workers";
|
|
4
4
|
export declare const WorkerProxyFuncs: {
|
|
5
5
|
ui: {
|
|
6
|
-
loadManifests: WorkerProxyFunction<guid
|
|
6
|
+
loadManifests: WorkerProxyFunction<Array<guid>, Array<guid>>;
|
|
7
7
|
};
|
|
8
8
|
worker: {
|
|
9
9
|
httpRequest: WorkerProxyFunction<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrivacyLevel =
|
|
4
|
-
function ActivityId(id) { return id; }
|
|
3
|
+
exports.PrivacyLevel = void 0;
|
|
5
4
|
exports.ActivityId = ActivityId;
|
|
6
|
-
function ActivityTypeId(id) { return id; }
|
|
7
5
|
exports.ActivityTypeId = ActivityTypeId;
|
|
6
|
+
function ActivityId(id) { return id; }
|
|
7
|
+
function ActivityTypeId(id) { return id; }
|
|
8
8
|
var PrivacyLevel;
|
|
9
9
|
(function (PrivacyLevel) {
|
|
10
10
|
PrivacyLevel[PrivacyLevel["Private"] = 0] = "Private";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActorTypes =
|
|
4
|
-
function ActorId(id) { return id; }
|
|
3
|
+
exports.ActorTypes = void 0;
|
|
5
4
|
exports.ActorId = ActorId;
|
|
5
|
+
function ActorId(id) { return id; }
|
|
6
6
|
var ActorTypes;
|
|
7
7
|
(function (ActorTypes) {
|
|
8
8
|
ActorTypes[ActorTypes["user"] = 0] = "user";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// import { SpacingDefinition, SpacingTypes } from "@omnia/fx-models";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getSpacingValueFromBlueprint =
|
|
4
|
+
exports.getSpacingValueFromBlueprint = getSpacingValueFromBlueprint;
|
|
5
5
|
const Spacing_1 = require("./Spacing");
|
|
6
6
|
function getSpacingValueFromBlueprint(spacingValue, definition) {
|
|
7
7
|
if (!spacingValue) {
|
|
@@ -35,4 +35,3 @@ function getSpacingValueFromBlueprint(spacingValue, definition) {
|
|
|
35
35
|
}
|
|
36
36
|
return negative ? -result : result;
|
|
37
37
|
}
|
|
38
|
-
exports.getSpacingValueFromBlueprint = getSpacingValueFromBlueprint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setColorOpacity =
|
|
3
|
+
exports.setColorOpacity = setColorOpacity;
|
|
4
4
|
function setColorOpacity(color, opacity) {
|
|
5
5
|
function getRGBValues(color) {
|
|
6
6
|
const tmpColor = color.replace("rgba", "rgb");
|
|
@@ -42,4 +42,3 @@ function setColorOpacity(color, opacity) {
|
|
|
42
42
|
}
|
|
43
43
|
return color;
|
|
44
44
|
}
|
|
45
|
-
exports.setColorOpacity = setColorOpacity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useThemeMethods =
|
|
3
|
+
exports.useThemeMethods = useThemeMethods;
|
|
4
4
|
const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
|
|
5
5
|
// temp change ThemeDefinitionInstance to any because fx/shared can't reference higher level fx/ux
|
|
6
6
|
function useThemeMethods(getThemeDefinition) {
|
|
@@ -123,4 +123,3 @@ function useThemeMethods(getThemeDefinition) {
|
|
|
123
123
|
complementaryColorDefinition,
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
exports.useThemeMethods = useThemeMethods;
|
package/package.json
CHANGED
package/parser/VelcronData.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class VelcronData {
|
|
|
23
23
|
static isString(text: any): text is string;
|
|
24
24
|
static isBoolean(value: any): value is boolean;
|
|
25
25
|
static isNumber(value: any): value is number;
|
|
26
|
-
static isUndefined(value: any):
|
|
26
|
+
static isUndefined(value: any): value is undefined;
|
|
27
27
|
static isArray(obj: any): obj is ExtendArray;
|
|
28
28
|
static isObject(value: any): value is object;
|
|
29
29
|
static getDataType(value: any): VelcronDataTypes;
|
package/rules/IsEditMode.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isEditMode =
|
|
3
|
+
exports.isEditMode = isEditMode;
|
|
4
4
|
const parser_1 = require("../parser");
|
|
5
5
|
/**
|
|
6
6
|
* Determines if the application is in edit mode.
|
|
@@ -34,4 +34,3 @@ function isEditMode(definition, bindableProp, renderContext) {
|
|
|
34
34
|
}
|
|
35
35
|
return result;
|
|
36
36
|
}
|
|
37
|
-
exports.isEditMode = isEditMode;
|
|
@@ -8,7 +8,7 @@ export declare const useVelcronColorSchemaStore: (newStateWithName?: string) =>
|
|
|
8
8
|
onContainer: ColorDefinition;
|
|
9
9
|
isContainer: boolean;
|
|
10
10
|
name: string;
|
|
11
|
-
colorSchemaType:
|
|
11
|
+
colorSchemaType: ColorSchemaTypes | ColorSchemaType;
|
|
12
12
|
id: guid;
|
|
13
13
|
};
|
|
14
14
|
get: {
|
package/stores/VelcronStore.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defineVelcronStore =
|
|
3
|
+
exports.defineVelcronStore = defineVelcronStore;
|
|
4
4
|
const _1 = require(".");
|
|
5
5
|
const stateMap = new Map();
|
|
6
6
|
function defineVelcronStore(name, definition) {
|
|
@@ -26,4 +26,3 @@ function defineVelcronStore(name, definition) {
|
|
|
26
26
|
}
|
|
27
27
|
return result;
|
|
28
28
|
}
|
|
29
|
-
exports.defineVelcronStore = defineVelcronStore;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// import { VelcronContentState, VelcronImagePropertyEditor, VelcronImageRatios, VelcronImageState, VelcronMarkdownPropertyEditor, VelcronTextPropertyEditor} from "@omnia/fx-models";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useVelcronEditorBuilder =
|
|
4
|
+
exports.useVelcronEditorBuilder = useVelcronEditorBuilder;
|
|
5
5
|
const VelcronEditorBuilder_1 = require("./VelcronEditorBuilder");
|
|
6
6
|
function useVelcronEditorBuilder() {
|
|
7
7
|
return new VelcronEditorBuilder_1.VelcronEditorBuilder();
|
|
8
8
|
}
|
|
9
|
-
exports.useVelcronEditorBuilder = useVelcronEditorBuilder;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// import { VelcronContentState, VelcronImagePropertyEditor, VelcronImageRatios, VelcronImageState, VelcronMarkdownPropertyEditor, VelcronTextPropertyEditor} from "@omnia/fx-models";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useOldVelcronTemplateBuilder =
|
|
4
|
+
exports.useOldVelcronTemplateBuilder = useOldVelcronTemplateBuilder;
|
|
5
5
|
const VelcronEditorBuilder_1 = require("./old/editor/VelcronEditorBuilder");
|
|
6
6
|
const VelcronStateBuilder_1 = require("./old/state/VelcronStateBuilder");
|
|
7
7
|
function useOldVelcronTemplateBuilder() {
|
|
@@ -10,4 +10,3 @@ function useOldVelcronTemplateBuilder() {
|
|
|
10
10
|
editor: new VelcronEditorBuilder_1.VelcronEditorBuilder()
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
exports.useOldVelcronTemplateBuilder = useOldVelcronTemplateBuilder;
|