@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.
- package/blockgallery/BlockGallery.d.ts +13 -5
- package/blockgallery/BlockGallery.js +4 -7
- package/blockgallery/BlockGalleryDialogLayoutProvider.d.ts +9 -0
- package/blockgallery/BlockGalleryDialogLayoutProvider.js +6 -0
- package/blockgallery/index.d.ts +1 -0
- package/blockgallery/index.js +1 -0
- package/package.json +1 -1
- package/ux/BlockGalleryApi.d.ts +19 -0
- package/ux/BlockGalleryApi.js +2 -0
- package/ux/index.d.ts +1 -0
- package/ux/index.js +1 -0
|
@@ -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
|
|
15
|
-
|
|
16
|
-
|
|
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.
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
}
|
package/blockgallery/index.d.ts
CHANGED
package/blockgallery/index.js
CHANGED
|
@@ -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
|
@@ -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
|
+
}
|
package/ux/index.d.ts
CHANGED
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);
|