@omnia/fx-spfx 8.0.324-dev → 8.0.325-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/internal-do-not-import-from-here/components/OmniaWPStandaloneContainer.d.ts +9 -0
- package/internal-do-not-import-from-here/components/OmniaWPStandaloneContainer.manifest.d.ts +1 -0
- package/internal-do-not-import-from-here/components/OmniaWPStandaloneInstanceHandler.d.ts +1 -0
- package/internal-do-not-import-from-here/models/ClientManifests.d.ts +9 -0
- package/internal-do-not-import-from-here/models/SettingsModel.d.ts +7 -0
- package/internal-do-not-import-from-here/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/tooling/index.d.ts +6 -0
- package/internal-do-not-import-from-here/tooling/index.js +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,3 +3,12 @@ export interface SPFXWebComponentDefinition extends WebComponentDefinition {
|
|
|
3
3
|
showInSpfxWebpart: boolean;
|
|
4
4
|
category: string;
|
|
5
5
|
}
|
|
6
|
+
export interface SPFXStandaloneWebComponentDefinition extends WebComponentDefinition {
|
|
7
|
+
showInSpfxWebpartGallery?: boolean;
|
|
8
|
+
spfxWebpartGallery?: SpfxWebpartGalleryInfo;
|
|
9
|
+
}
|
|
10
|
+
export interface SpfxWebpartGalleryInfo {
|
|
11
|
+
documentationUrl?: string;
|
|
12
|
+
imageRelativeUrl?: string;
|
|
13
|
+
downloadFileName?: string;
|
|
14
|
+
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export interface OmniaBlock {
|
|
2
2
|
category?: string;
|
|
3
3
|
}
|
|
4
|
+
export interface SpfxWebpartGalleryOptions {
|
|
5
|
+
documentationUrl?: string;
|
|
6
|
+
imageRelativeUrl?: string;
|
|
7
|
+
downloadFileName?: string;
|
|
8
|
+
}
|
|
4
9
|
declare module "@omnia/tooling-composers/internal-do-not-import-from-here/ComponentComposer" {
|
|
5
10
|
interface IWebComponentComposer {
|
|
6
11
|
registerSpfxWebpart?(omniaBlock?: OmniaBlock): IWebComponentComposer;
|
|
12
|
+
registerSpfxWebpartGallery?(options?: SpfxWebpartGalleryOptions): IWebComponentComposer;
|
|
7
13
|
}
|
|
8
14
|
}
|
|
@@ -9,4 +9,16 @@ function registerSpfxWebpart(omniaBlock) {
|
|
|
9
9
|
composers_1.ComponentRegistry.addComponentDefinition(this.manifest, spfxDef);
|
|
10
10
|
return this;
|
|
11
11
|
}
|
|
12
|
+
function registerSpfxWebpartGallery(options) {
|
|
13
|
+
const spfxWebpartGallery = {
|
|
14
|
+
documentationUrl: options?.documentationUrl,
|
|
15
|
+
imageRelativeUrl: options?.imageRelativeUrl,
|
|
16
|
+
downloadFileName: options?.downloadFileName
|
|
17
|
+
};
|
|
18
|
+
const definition = composers_1.ComponentRegistry.getComponentDefinition(this.manifest) || {};
|
|
19
|
+
const spfxDef = (0, deep_extend_1.default)(definition, { showInSpfxWebpartGallery: true, spfxWebpartGallery: spfxWebpartGallery });
|
|
20
|
+
composers_1.ComponentRegistry.addComponentDefinition(this.manifest, spfxDef);
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
12
23
|
composers_1.ComponentComposer.prototype["registerSpfxWebpart"] = registerSpfxWebpart;
|
|
24
|
+
composers_1.ComponentComposer.prototype["registerSpfxWebpartGallery"] = registerSpfxWebpartGallery;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx-spfx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.325-dev",
|
|
5
5
|
"description": "Provide Omnia Fx Sharepoint Stuffs.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Precio Fishbone",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx": "8.0.
|
|
22
|
+
"@omnia/fx": "8.0.325-dev"
|
|
23
23
|
},
|
|
24
24
|
"typings": "./index.d.ts",
|
|
25
25
|
"bugs": {
|