@omnia/fx-models 8.0.31-dev → 8.0.32-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/Layout.d.ts CHANGED
@@ -543,3 +543,7 @@ export interface ILayoutFileContext {
543
543
  default: FilePickerStorageProviderContext;
544
544
  getContextByType: (type: new () => LayoutContextType) => FilePickerStorageProviderContext;
545
545
  }
546
+ export interface LayoutPlaceHolderRegistration {
547
+ id: GuidValue;
548
+ title: string;
549
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.31-dev",
4
+ "version": "8.0.32-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,23 +1,38 @@
1
1
  import { ApiPath } from "../Extends";
2
- import { LayoutTemplateRegistration } from "../Layout";
2
+ import { LayoutPlaceHolderRegistration, LayoutTemplateRegistration } from "../Layout";
3
3
  import { IMessageBusTopicSubscription } from "../Messaging";
4
- export interface IInternalRegistrationLayoutTemplate extends IRegistrationLayoutTemplate {
4
+ export interface IInternalLayoutTemplateRegistration extends ILayoutTemplateRegistration {
5
5
  getAllLayoutTemplates: () => LayoutTemplateRegistration[];
6
6
  onLayoutTemplateRegistrationChange: () => IMessageBusTopicSubscription<LayoutTemplateRegistration[]>;
7
7
  }
8
- export interface IRegistrationLayoutTemplate {
8
+ export interface ILayoutTemplateRegistration {
9
9
  registerLayoutTemplates: (items: LayoutTemplateRegistration | LayoutTemplateRegistration[]) => void;
10
10
  }
11
- export interface ILayoutCanvasApi {
12
- registration: Promise<IRegistrationLayoutTemplate>;
11
+ export interface IInternalPlaceHolderLayoutRegistration extends IPlaceHolderLayoutRegistration {
12
+ getRegistrations: () => LayoutPlaceHolderRegistration[];
13
+ }
14
+ export interface IPlaceHolderLayoutRegistration {
15
+ register: (placeHolder: LayoutPlaceHolderRegistration) => void;
13
16
  }
14
17
  declare module "./UxApi" {
15
18
  interface IOmniaUxApi {
16
- layoutCanvas: ILayoutCanvasApi;
19
+ layoutCanvas: {
20
+ placeHolders: {
21
+ registrations: Promise<IPlaceHolderLayoutRegistration>;
22
+ };
23
+ templates: {
24
+ registrations: Promise<ILayoutTemplateRegistration>;
25
+ };
26
+ };
17
27
  }
18
28
  interface IOmniaUxExtendApiManifest {
19
29
  layoutCanvas: {
20
- registration: ApiPath;
30
+ placeHolders: {
31
+ registrations: ApiPath;
32
+ };
33
+ templates: {
34
+ registrations: ApiPath;
35
+ };
21
36
  };
22
37
  }
23
38
  }
package/ux/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from "./LayoutEditorCanvas";
3
3
  export * from "./UxApi";
4
4
  export * from "./AdminApi";
5
5
  export * from "./MediaPickerApi";
6
- export type { IRegistrationLayoutTemplate } from "./LayoutCanvasApi";
6
+ export type { ILayoutTemplateRegistration as IRegistrationLayoutTemplate } from "./LayoutCanvasApi";
7
7
  export * from "./EnterprisePropertyDataTypeProviderApi";
8
8
  export * from "./LikeActionApi";
9
9
  export * from "./AppApi";