@omnia/tooling-composers 8.0.102-vnext → 8.0.104-vnext

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.
@@ -1,4 +1,4 @@
1
- import { WebComponentOptions } from "./models";
1
+ import { ElementOptions } from "./models";
2
2
  import { CombinableRuleComposer, ICombinableRuleComposer } from "./CombinableRuleComposer";
3
3
  import { WebComponentDefinition, OmniaBlock } from '../../fx-models';
4
4
  import { ComposerBase, IComposerBase } from './ComposerBase';
@@ -19,7 +19,7 @@ export declare class ComponentComposer extends ComposerBase<IWebComponentCompose
19
19
  private ruleComposer;
20
20
  constructor(manifestId: string, manifestName?: string);
21
21
  withDefinition: (definition: WebComponentDefinition) => this;
22
- registerComponent: (componentOptions: WebComponentOptions) => this;
22
+ registerComponent: (componentOptions: ElementOptions) => this;
23
23
  withLoadRules: () => CombinableRuleComposer<IWebComponentComposer>;
24
24
  registerOmniaBlock: <P, T extends OmniaBlock<P>>(options?: T) => this;
25
25
  private persistCombinedRules;
@@ -1,27 +1,27 @@
1
1
  import { IClientLoadableManifestProvider, ResourceManifest } from "./LoadableManifestRegistry";
2
- import { ResourceBuildOptions, WebComponentOptions } from "./models/index";
3
- import { WebComponentBundleManifest, ClientResolvableLoadRule, WebComponentDefinition, GuidValue } from '../../fx-models';
2
+ import { ResourceBuildOptions, ElementOptions } from "./models/index";
3
+ import { ComponentBundleManifest, ClientResolvableLoadRule, WebComponentDefinition, GuidValue } from '../../fx-models';
4
4
  export declare class ComponentRegistration {
5
- componentOptions: WebComponentOptions;
5
+ componentOptions: ElementOptions;
6
6
  manifestPath: string;
7
7
  manifest: ResourceManifest;
8
8
  buildOptions: ResourceBuildOptions;
9
9
  definition: WebComponentDefinition;
10
10
  extendApiRules: Array<ClientResolvableLoadRule>;
11
11
  loadRules: Array<ClientResolvableLoadRule>;
12
- constructor(componentOptions: WebComponentOptions, manifestPath: string, manifest: ResourceManifest);
12
+ constructor(componentOptions: ElementOptions, manifestPath: string, manifest: ResourceManifest);
13
13
  }
14
14
  export declare class ComponentRegistry implements IClientLoadableManifestProvider {
15
15
  private static ComponentRegistrations;
16
16
  private static ComponentElements;
17
- static registerComponent: (manifest: ResourceManifest, componentOptions: WebComponentOptions) => void;
17
+ static registerComponent: (manifest: ResourceManifest, componentOptions: ElementOptions) => void;
18
18
  static getComponentDefinition: (manifest: ResourceManifest) => WebComponentDefinition;
19
19
  static addComponentDefinition: (manifest: ResourceManifest, definition: WebComponentDefinition) => void;
20
20
  static addComponentBuildOptions: (manifest: ResourceManifest, buildOptions: ResourceBuildOptions) => void;
21
21
  static newCombinedRules: (manifest: ResourceManifest, rules: Array<ClientResolvableLoadRule>) => void;
22
22
  static getRegistrations: () => Array<ComponentRegistration>;
23
23
  static getComponentRegistrations: () => Array<ComponentRegistration>;
24
- getClientLoadableManifests: (currentServiceId: GuidValue) => Array<WebComponentBundleManifest>;
24
+ getClientLoadableManifests: (currentServiceId: GuidValue) => Array<ComponentBundleManifest>;
25
25
  clearState: () => void;
26
26
  private static ensureCorrectManifest;
27
27
  }
@@ -149,11 +149,7 @@ ComponentRegistry.getRegistrations = () => {
149
149
  return components;
150
150
  };
151
151
  ComponentRegistry.getComponentRegistrations = () => {
152
- let components = [];
153
- for (const wc of ComponentRegistry.ComponentRegistrations.values()) {
154
- components.push(wc);
155
- }
156
- return components;
152
+ return Array.from(ComponentRegistry.ComponentRegistrations.values());
157
153
  };
158
154
  ComponentRegistry.ensureCorrectManifest = (manifest) => {
159
155
  if (!manifest ||
@@ -1,5 +1,5 @@
1
1
  import { IBlockingComposer } from "./BlockingComposer";
2
- import { ResourcesOptions, WebComponentOptions, ILocalizationComposer, ManifestGroupOptions, LocalizationOptions, ServiceFeatureOption, ServiceAppDefinitionOption, ServiceRoleDefinitionOption } from "./models";
2
+ import { ResourcesOptions, ElementOptions, ILocalizationComposer, ManifestGroupOptions, LocalizationOptions, ServiceFeatureOption, ServiceAppDefinitionOption, ServiceRoleDefinitionOption } from "./models";
3
3
  import { IResourcesComposer, IReOpendedResourcesComposer } from "./ResourcesComposer";
4
4
  import { IWebComponentComposer } from "./ComponentComposer";
5
5
  import { IManifestGroupComposer } from "./ManifestGroupComposer";
@@ -19,7 +19,7 @@ export interface INewManifestComposer extends IRegisterService {
19
19
  * Usage: registerWebComponent({...}).*additionalOperations
20
20
  * @param componentOptions the options for the webcomponent
21
21
  */
22
- registerWebComponent: (componentOptions: WebComponentOptions) => IWebComponentComposer;
22
+ registerElement: (componentOptions: ElementOptions) => IWebComponentComposer;
23
23
  /**
24
24
  * Registers a new resources manifest
25
25
  * Usage: registerResource({...}).*additionalOperations
@@ -17,7 +17,7 @@ class NewManifestComposer {
17
17
  constructor(manifestId, manifestName) {
18
18
  this.manifestId = manifestId;
19
19
  this.manifestName = manifestName;
20
- this.registerWebComponent = (componentOptions) => {
20
+ this.registerElement = (componentOptions) => {
21
21
  return new ComponentComposer_1.ComponentComposer(this.manifestId, this.manifestName).registerComponent(componentOptions);
22
22
  };
23
23
  this.registerResourceGroup = (componentGroupOptions) => {
@@ -20,4 +20,4 @@ export * from './BuildConfigurationRegistry';
20
20
  export * from './ServiceManifestRegistry';
21
21
  export * from './ImportManifestRegistry';
22
22
  export * from "./ConfigurationClientServiceRegistry";
23
- export { type BuildOptions, ServiceTypes } from "./models/index";
23
+ export { type BuildOptions, ServiceTypes, type ElementOptions as WebComponentOptions } from "./models/index";
@@ -1,4 +1,4 @@
1
- export interface WebComponentOptions {
1
+ export interface ElementOptions {
2
2
  /** The name for this component, this should be a none conflicting name
3
3
  e.g. use project as prefix myuniqueprojectname-componentName.
4
4
  i.e. <myuniqueprojectname-componentName></myuniqueprojectname-componentName> */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-composers",
3
3
  "license": "MIT",
4
- "version": "8.0.102-vnext",
4
+ "version": "8.0.104-vnext",
5
5
  "description": "Provide tooling to work with manifest things.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.102-vnext",
23
- "@omnia/tooling": "8.0.102-vnext",
22
+ "@omnia/fx-models": "8.0.104-vnext",
23
+ "@omnia/tooling": "8.0.104-vnext",
24
24
  "deep-extend": "0.6.0",
25
25
  "fs-extra": "11.1.0",
26
26
  "del": "6.0.0",