@omnia/fx-models 8.0.257-dev → 8.0.259-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/NotNullish.js +1 -2
- package/NullOf.js +1 -2
- package/ValueOf.js +1 -2
- package/internal-do-not-import-from-here/shared/broadcasting/InternalTopics.d.ts +2 -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/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +1 -1
- package/package.json +1 -1
package/NotNullish.js
CHANGED
package/NullOf.js
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.nullOf =
|
3
|
+
exports.nullOf = nullOf;
|
4
4
|
/**
|
5
5
|
* @deprecated This will be removed, use valueOf instead.
|
6
6
|
*/
|
7
7
|
function nullOf() {
|
8
8
|
return null;
|
9
9
|
}
|
10
|
-
exports.nullOf = nullOf;
|
package/ValueOf.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { BroadcastTopic, RealtimeChannelUpdateMessage, RealtimeSendMessage, RealtimChannelMessage, BroadcastInvokeTopic, guid } from "../models";
|
2
2
|
export declare const realtimeTopics: {
|
3
3
|
getActiveChannels: BroadcastTopic<void>;
|
4
|
-
updateChannels: BroadcastTopic<RealtimeChannelUpdateMessage
|
4
|
+
updateChannels: BroadcastTopic<Array<RealtimeChannelUpdateMessage>>;
|
5
5
|
sendMessage: BroadcastTopic<RealtimeSendMessage>;
|
6
|
-
getUsersInChannel: BroadcastInvokeTopic<RealtimChannelMessage, number
|
6
|
+
getUsersInChannel: BroadcastInvokeTopic<RealtimChannelMessage, Array<number>>;
|
7
7
|
messageReceived: BroadcastTopic<RealtimeSendMessage>;
|
8
8
|
};
|
9
9
|
export declare const endpointTopics: {
|
@@ -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;
|
@@ -4,7 +4,7 @@ export declare const useRealtimeService: () => {
|
|
4
4
|
deactivateChannel: (channel: RealtimeChannel) => void;
|
5
5
|
send: <TRealtimeChannel extends RealtimeChannel, TRealtimeData extends RealtimeData<TRealtimeChannel, any>>(data: TRealtimeData, value: TRealtimeData["value"]) => void;
|
6
6
|
getUsersInChannel: (channel: RealtimeChannel) => Future<Array<number>>;
|
7
|
-
onMessage: <
|
7
|
+
onMessage: <TRealtimeChannel extends RealtimeChannel, TRealtimeData extends RealtimeData<TRealtimeChannel, any>>(data: TRealtimeData, callback: (value: TRealtimeData["value"]) => void) => void;
|
8
8
|
} & {
|
9
9
|
dispose?: () => void;
|
10
10
|
};
|