@omnia/fx-models 7.9.27-preview → 7.9.29-preview

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.
@@ -11,11 +11,9 @@ export declare const BlockGalleryAuthenticationLayoutSettingsKey = "$omnia_block
11
11
  export declare const BlockGalleryDefaultLayoutSettingsKey = "$omnia_block_gallery_default_layout_settings$";
12
12
  export declare const BlockGallerySpfxLayoutSettingsKey = "$omnia_block_gallery_spfx_layout_settings$";
13
13
  export declare const BlockGalleryGeneralSettingsKey = "$omnia_block_gallery_general_settings$";
14
- export declare enum BlockDialogLayoutType {
15
- Default = 1,
16
- Spfx = 2,
17
- Authentication = 3
18
- }
14
+ export declare const BlockDialogLayoutDefaultType = "default_eb457948-b71b-4deb-a6c3-b6f436349ba7";
15
+ export declare const BlockDialogLayoutSpfxType = "spfx_51a61d06-d0b7-4c89-ac3d-914c3a398714";
16
+ export declare const BlockDialogLayoutAuthenticationType = "authentication_4eda1b4d-60ab-45ac-8dec-ba812d9e688b";
19
17
  export interface BlockGalleryItem {
20
18
  id: string;
21
19
  type: BlockGalleryItemType;
@@ -34,3 +32,13 @@ export declare enum BlockGalleryItemType {
34
32
  HeaderRegistration = 3,
35
33
  BlockTemplate = 4
36
34
  }
35
+ export interface BlockDialogLayoutInfo {
36
+ title: string;
37
+ icon: string;
38
+ layoutType: string;
39
+ }
40
+ export interface BlockDialogLayout extends BlockDialogLayoutInfo {
41
+ settingsKey?: string;
42
+ layoutProvider?: string;
43
+ getBlockGalleryDialogLayoutSetting?: () => Promise<BlockGalleryDialogLayoutSetting>;
44
+ }
@@ -1,16 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlockGalleryItemType = exports.BlockDialogLayoutType = exports.BlockGalleryGeneralSettingsKey = exports.BlockGallerySpfxLayoutSettingsKey = exports.BlockGalleryDefaultLayoutSettingsKey = exports.BlockGalleryAuthenticationLayoutSettingsKey = void 0;
3
+ exports.BlockGalleryItemType = exports.BlockDialogLayoutAuthenticationType = exports.BlockDialogLayoutSpfxType = exports.BlockDialogLayoutDefaultType = exports.BlockGalleryGeneralSettingsKey = exports.BlockGallerySpfxLayoutSettingsKey = exports.BlockGalleryDefaultLayoutSettingsKey = exports.BlockGalleryAuthenticationLayoutSettingsKey = void 0;
4
4
  exports.BlockGalleryAuthenticationLayoutSettingsKey = "$omnia_block_gallery_authentication_layout_settings$";
5
5
  exports.BlockGalleryDefaultLayoutSettingsKey = "$omnia_block_gallery_default_layout_settings$";
6
6
  exports.BlockGallerySpfxLayoutSettingsKey = "$omnia_block_gallery_spfx_layout_settings$";
7
7
  exports.BlockGalleryGeneralSettingsKey = "$omnia_block_gallery_general_settings$";
8
- var BlockDialogLayoutType;
9
- (function (BlockDialogLayoutType) {
10
- BlockDialogLayoutType[BlockDialogLayoutType["Default"] = 1] = "Default";
11
- BlockDialogLayoutType[BlockDialogLayoutType["Spfx"] = 2] = "Spfx";
12
- BlockDialogLayoutType[BlockDialogLayoutType["Authentication"] = 3] = "Authentication";
13
- })(BlockDialogLayoutType = exports.BlockDialogLayoutType || (exports.BlockDialogLayoutType = {}));
8
+ exports.BlockDialogLayoutDefaultType = "default_eb457948-b71b-4deb-a6c3-b6f436349ba7";
9
+ exports.BlockDialogLayoutSpfxType = "spfx_51a61d06-d0b7-4c89-ac3d-914c3a398714";
10
+ exports.BlockDialogLayoutAuthenticationType = "authentication_4eda1b4d-60ab-45ac-8dec-ba812d9e688b";
14
11
  var BlockGalleryItemType;
15
12
  (function (BlockGalleryItemType) {
16
13
  //layout block
@@ -0,0 +1,9 @@
1
+ import { BlockDialogLayout, BlockGalleryDialogLayoutSetting } from ".";
2
+ export declare abstract class BlockGalleryDialogLayoutProvider implements BlockDialogLayout {
3
+ abstract readonly title: string;
4
+ abstract readonly icon: string;
5
+ abstract readonly layoutType: string;
6
+ abstract readonly layoutProvider?: string;
7
+ abstract readonly settingsKey?: string;
8
+ abstract readonly getBlockGalleryDialogLayoutSetting?: () => Promise<BlockGalleryDialogLayoutSetting>;
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlockGalleryDialogLayoutProvider = void 0;
4
+ class BlockGalleryDialogLayoutProvider {
5
+ }
6
+ exports.BlockGalleryDialogLayoutProvider = BlockGalleryDialogLayoutProvider;
@@ -1,3 +1,4 @@
1
1
  export * from "./BlockTemplates";
2
2
  export * from "./BlockGallery";
3
3
  export * from "./Header";
4
+ export * from "./BlockGalleryDialogLayoutProvider";
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BlockTemplates"), exports);
5
5
  tslib_1.__exportStar(require("./BlockGallery"), exports);
6
6
  tslib_1.__exportStar(require("./Header"), exports);
7
+ tslib_1.__exportStar(require("./BlockGalleryDialogLayoutProvider"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "7.9.27-preview",
4
+ "version": "7.9.29-preview",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,19 @@
1
+ import { BlockGalleryDialogLayoutProvider } from "@omnia/fx-models";
2
+ import { ApiPath } from "../Extends";
3
+ export interface IBlockGalleryDialogLayoutProviderRegistrationApi {
4
+ registerProvider: (provider: BlockGalleryDialogLayoutProvider) => void;
5
+ getProviders: () => BlockGalleryDialogLayoutProvider[];
6
+ }
7
+ export interface IBlockGalleryDialogLayoutApi {
8
+ registration: Promise<IBlockGalleryDialogLayoutProviderRegistrationApi>;
9
+ }
10
+ declare module "./UxApi" {
11
+ interface IOmniaUxApi {
12
+ blockGalleryDialogLayout: IBlockGalleryDialogLayoutApi;
13
+ }
14
+ interface IOmniaUxExtendApiManifest {
15
+ blockGalleryDialogLayout: {
16
+ registration: ApiPath;
17
+ };
18
+ }
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/ux/index.d.ts CHANGED
@@ -18,3 +18,4 @@ export * from "./SidePanelApi";
18
18
  export * from "./EnterprisePropertyToPropertySettingMappingApi";
19
19
  export * from "./MediaGalleryApi";
20
20
  export * from "./MediaPickerFileHandlerApi";
21
+ export * from "./BlockGalleryApi";
package/ux/index.js CHANGED
@@ -21,3 +21,4 @@ tslib_1.__exportStar(require("./SidePanelApi"), exports);
21
21
  tslib_1.__exportStar(require("./EnterprisePropertyToPropertySettingMappingApi"), exports);
22
22
  tslib_1.__exportStar(require("./MediaGalleryApi"), exports);
23
23
  tslib_1.__exportStar(require("./MediaPickerFileHandlerApi"), exports);
24
+ tslib_1.__exportStar(require("./BlockGalleryApi"), exports);