@omnia/fx-spfx 8.0.325-dev-dev → 8.0.326-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.
@@ -0,0 +1,9 @@
1
+ import { guid } from "../../models";
2
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
3
+ manifestid?: guid;
4
+ } & {
5
+ webpartid?: guid;
6
+ } & {
7
+ displaymode?: any;
8
+ }>) => any;
9
+ export default _default;
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ import { guid } from "@omnia/fx-models";
2
+ export type OmniaWPContainerSettingsModel = {
3
+ componentManifestId: guid;
4
+ settingsComponentManifestId?: guid;
5
+ componentTag?: string;
6
+ componentSettings?: object;
7
+ };
@@ -2,3 +2,4 @@ export * from "./ClientManifests";
2
2
  export * from "./Context";
3
3
  export * from "./WebpartSelectorStyles";
4
4
  export * from "./Boot";
5
+ export * from "./SettingsModel";
@@ -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.325-dev-dev",
4
+ "version": "8.0.326-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.325-dev-dev"
22
+ "@omnia/fx": "8.0.326-dev"
23
23
  },
24
24
  "typings": "./index.d.ts",
25
25
  "bugs": {