@syncbridge/common 0.6.7 → 0.6.8

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/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = '0.6.7';
1
+ export const version = '0.6.8';
2
2
  export const OWN_ELEMENT_METADATA = Symbol.for('OWN_ELEMENT_METADATA');
3
3
  export const COMPONENT_OPTIONS = Symbol.for('COMPONENT_OPTIONS');
4
4
  export const PROCESSOR_OPTIONS = Symbol.for('PROCESSOR_OPTIONS');
@@ -12,7 +12,6 @@ export declare class ElementComponentMetadata {
12
12
  propertyKey?: string;
13
13
  className?: string;
14
14
  description?: string;
15
- disabled?: boolean;
16
15
  interfaces?: string[];
17
16
  required?: boolean;
18
17
  variables?: VariableMetadataRecord;
@@ -33,13 +33,6 @@ __decorate([
33
33
  }),
34
34
  __metadata("design:type", String)
35
35
  ], ElementComponentMetadata.prototype, "description", void 0);
36
- __decorate([
37
- ApiField({
38
- label: 'Disabled',
39
- description: 'Determine if the component is disabled or not',
40
- }),
41
- __metadata("design:type", Boolean)
42
- ], ElementComponentMetadata.prototype, "disabled", void 0);
43
36
  __decorate([
44
37
  ApiField({
45
38
  label: 'Interfaces',
@@ -20,4 +20,5 @@ export declare class ProfileComponent {
20
20
  values?: Record<string, any>;
21
21
  components?: WorkerComponentRecord;
22
22
  settings?: ProfileComponentSettings;
23
+ disabled?: boolean;
23
24
  }
@@ -69,6 +69,13 @@ __decorate([
69
69
  }),
70
70
  __metadata("design:type", ProfileComponentSettings)
71
71
  ], ProfileComponent.prototype, "settings", void 0);
72
+ __decorate([
73
+ ApiField({
74
+ label: 'Disabled',
75
+ description: 'Determine if the component is disabled or not',
76
+ }),
77
+ __metadata("design:type", Boolean)
78
+ ], ProfileComponent.prototype, "disabled", void 0);
72
79
  ProfileComponent = __decorate([
73
80
  ComplexType({
74
81
  description: 'User defined variable definition',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncbridge/common",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "SyncBridge Common utilities",
5
5
  "author": "Panates Inc",
6
6
  "license": "MIT",
@@ -113,7 +113,7 @@ export var ProcessorFactory;
113
113
  });
114
114
  }
115
115
  async function _configureComponents(ctx) {
116
- const { newMetadata, stackExecutor } = ctx;
116
+ const { newMetadata, newProfile, stackExecutor } = ctx;
117
117
  if (!newMetadata.components)
118
118
  return;
119
119
  // Stack: components
@@ -121,7 +121,7 @@ export var ProcessorFactory;
121
121
  for (const [key, childMetadata] of Object.entries(newMetadata.components)) {
122
122
  // Stack: components/componentName
123
123
  await stackExecutor.executeAsync(key, async () => {
124
- if (!childMetadata.disabled)
124
+ if (!newProfile[key]?.disabled)
125
125
  await _configureComponent(ctx, key, childMetadata);
126
126
  });
127
127
  }