@omnia/fx-models 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.
Files changed (20) hide show
  1. package/NotNullish.js +1 -2
  2. package/NullOf.js +1 -2
  3. package/ValueOf.js +1 -2
  4. package/internal-do-not-import-from-here/shared/broadcasting/InternalTopics.d.ts +2 -2
  5. package/internal-do-not-import-from-here/shared/models/Guid.js +4 -4
  6. package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +1 -1
  7. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +3 -3
  8. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +1 -2
  9. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +1 -2
  10. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +1 -2
  11. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +2 -2
  12. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +1 -2
  13. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +1 -2
  14. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +1 -2
  15. package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.js +1 -2
  16. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +1 -2
  17. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +1 -2
  18. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +1 -2
  19. package/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +1 -1
  20. package/package.json +1 -1
package/NotNullish.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.notNullish = void 0;
3
+ exports.notNullish = notNullish;
4
4
  function notNullish(val) {
5
5
  return val != null;
6
6
  }
7
- exports.notNullish = notNullish;
package/NullOf.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nullOf = void 0;
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,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.valueOf = void 0;
3
+ exports.valueOf = valueOf;
4
4
  function valueOf(value) {
5
5
  return value;
6
6
  }
7
- exports.valueOf = valueOf;
@@ -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.isValidGuid = exports.maybeGuid = exports.guid = exports.emptyGuid = void 0;
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[], 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 = exports.ActivityTypeId = exports.ActivityId = void 0;
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,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChannelId = void 0;
4
- function ChannelId(id) { return id; }
5
3
  exports.ChannelId = ChannelId;
4
+ function ChannelId(id) { return id; }
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityRendererId = void 0;
4
- function ActivityRendererId(id) { return id; }
5
3
  exports.ActivityRendererId = ActivityRendererId;
4
+ function ActivityRendererId(id) { return id; }
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionId = void 0;
4
- function SubscriptionId(id) { return id; }
5
3
  exports.SubscriptionId = SubscriptionId;
4
+ function SubscriptionId(id) { return id; }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActorTypes = exports.ActorId = void 0;
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,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FileOwnerId = void 0;
4
- function FileOwnerId(id) { return id; }
5
3
  exports.FileOwnerId = FileOwnerId;
4
+ function FileOwnerId(id) { return id; }
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemporaryFileId = void 0;
4
- function TemporaryFileId(id) { return id; }
5
3
  exports.TemporaryFileId = TemporaryFileId;
4
+ function TemporaryFileId(id) { return id; }
@@ -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 = void 0;
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 = void 0;
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 = void 0;
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;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.velcronBind = void 0;
3
+ exports.velcronBind = velcronBind;
4
4
  function velcronBind(bindPath) {
5
5
  return `$bind: ${bindPath}`;
6
6
  }
7
- exports.velcronBind = velcronBind;
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VelcronRendererId = void 0;
4
- function VelcronRendererId(id) { return id; }
5
3
  exports.VelcronRendererId = VelcronRendererId;
4
+ function VelcronRendererId(id) { return id; }
@@ -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: <TRealtimeChannel_1 extends RealtimeChannel, TRealtimeData_1 extends RealtimeData<TRealtimeChannel_1, any>>(data: TRealtimeData_1, callback: (value: TRealtimeData_1["value"]) => void) => void;
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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.257-dev",
4
+ "version": "8.0.258-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"