@omnia/fx-models 8.0.33-dev → 8.0.34-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/Exposes.d.ts CHANGED
@@ -100,6 +100,7 @@ export * from "./Func";
100
100
  export * from "./FilterpickerModel";
101
101
  export * from "./RollupMetricSettings";
102
102
  export * from "./ChromeLayoutDefinition";
103
+ export * from "./NullOf";
103
104
  export * from "./ux";
104
105
  export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
105
106
  export * from "./admin";
package/Exposes.js CHANGED
@@ -106,6 +106,7 @@ tslib_1.__exportStar(require("./Func"), exports);
106
106
  tslib_1.__exportStar(require("./FilterpickerModel"), exports);
107
107
  tslib_1.__exportStar(require("./RollupMetricSettings"), exports);
108
108
  tslib_1.__exportStar(require("./ChromeLayoutDefinition"), exports);
109
+ tslib_1.__exportStar(require("./NullOf"), exports);
109
110
  //************************************************************************************ */
110
111
  // End of file exports
111
112
  //************************************************************************************ */
package/NullOf.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export type NullOfType<T> = T extends null ? T : T | null;
2
+ export declare function nullOf<T>(): NullOfType<T>;
package/NullOf.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nullOf = void 0;
4
+ function nullOf() {
5
+ return null;
6
+ }
7
+ exports.nullOf = nullOf;
@@ -1,6 +1,7 @@
1
1
  import { Activity, ActivityId, ActivityWithJson } from "./Activity";
2
2
  import { ActivityRenderer, ActivityRendererId, ActivityRendererWithJson } from "./ActivityRenderer";
3
- import { IdentityActivity, IdentityActivityWithJson, NewActivitiesBySender } from "./IdentityActivity";
3
+ import { ActivitySenderId } from "./ActivitySender";
4
+ import { IdentityActivity, IdentityActivityWithJson, NewActivitiesBySenderBase } from "./IdentityActivity";
4
5
  export interface ActivityFeed extends ActivityFeedBase {
5
6
  renderers: {
6
7
  [key: ActivityRendererId]: ActivityRenderer;
@@ -16,6 +17,11 @@ export interface ActivityFeedResult extends ActivityFeedBase {
16
17
  activities: Array<ActivityWithJson>;
17
18
  }
18
19
  export interface ActivityFeedBase {
19
- newActivities: Array<NewActivitiesBySender>;
20
+ newActivities: Array<NewActivitiesBySenderBase>;
20
21
  nextStartingFromId: ActivityId;
21
22
  }
23
+ export interface FeedQuery {
24
+ newerThenId?: ActivityId;
25
+ olderThenId?: ActivityId;
26
+ filterBySenderId?: ActivitySenderId;
27
+ }
@@ -1,4 +1,4 @@
1
- import { ActivitySenderId, DynamicState } from "../..";
1
+ import { ActivitySender, ActivitySenderId, DynamicState } from "../..";
2
2
  import { Activity, ActivityId } from "./Activity";
3
3
  export declare enum IdentityActivityStatus {
4
4
  new = 0,
@@ -22,7 +22,10 @@ export interface IdentityActivity<TRenderState extends DynamicState, TState exte
22
22
  export interface IdentityActivityWithJson extends IdentityActivityBase {
23
23
  stateJson: string;
24
24
  }
25
- export interface NewActivitiesBySender {
25
+ export interface NewActivitiesBySenderBase {
26
26
  count: number;
27
27
  senderId: ActivitySenderId;
28
28
  }
29
+ export interface NewActivitiesBySender extends NewActivitiesBySenderBase {
30
+ sender: ActivitySender;
31
+ }
@@ -1,6 +1,7 @@
1
1
  import { Guid } from "../Guid";
2
2
  export interface TypographyDefinition {
3
3
  id: Guid;
4
+ name: string;
4
5
  title: {
5
6
  xl: TypographyTypeDefinition;
6
7
  l: TypographyTypeDefinition;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.33-dev",
4
+ "version": "8.0.34-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,4 +1,6 @@
1
- import { ApiPath } from "../Extends";
1
+ import { VNode, h } from "vue";
2
+ import { GuidValue } from "../Exposes";
3
+ import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
2
4
  import { LayoutPlaceHolderRegistration, LayoutTemplateRegistration } from "../Layout";
3
5
  import { IMessageBusTopicSubscription } from "../Messaging";
4
6
  export interface IInternalLayoutTemplateRegistration extends ILayoutTemplateRegistration {
@@ -14,11 +16,21 @@ export interface IInternalPlaceHolderLayoutRegistration extends IPlaceHolderLayo
14
16
  export interface IPlaceHolderLayoutRegistration {
15
17
  register: (placeHolder: LayoutPlaceHolderRegistration) => void;
16
18
  }
19
+ export interface IPlaceHolderLayoutHandler {
20
+ register(layoutPlaceHolderRegistrationId: GuidValue, cb: (createVueNode: typeof h) => VNode | void): {
21
+ unregister(): void;
22
+ };
23
+ }
24
+ export interface IInternalPlaceHolderLayoutHandler extends IPlaceHolderLayoutHandler {
25
+ getHandlers(placeHolderLayoutRegistrationId: GuidValue): Promise<Array<(createVueNode: typeof h) => VNode | void>>;
26
+ onHandlerChanged(): IMessageBusTopicSubscription<void>;
27
+ }
17
28
  declare module "./UxApi" {
18
29
  interface IOmniaUxApi {
19
30
  layoutCanvas: {
20
31
  placeHolders: {
21
32
  registrations: Promise<IPlaceHolderLayoutRegistration>;
33
+ hanlders: Promise<IPlaceHolderLayoutHandler>;
22
34
  };
23
35
  templates: {
24
36
  registrations: Promise<ILayoutTemplateRegistration>;
@@ -29,6 +41,10 @@ declare module "./UxApi" {
29
41
  layoutCanvas: {
30
42
  placeHolders: {
31
43
  registrations: ApiPath;
44
+ /**
45
+ * Require PlaceHolderLayoutRegistrationId
46
+ */
47
+ hanlders: IExtendApiManifestWithConfiguration<GuidValue>;
32
48
  };
33
49
  templates: {
34
50
  registrations: ApiPath;