@o3r/components 11.6.0-prerelease.2 → 11.6.0-prerelease.21

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.
Files changed (142) hide show
  1. package/builders/component-extractor/helpers/component/component-class.extractor.d.ts +3 -9
  2. package/builders/component-extractor/helpers/component/component-class.extractor.d.ts.map +1 -1
  3. package/builders/component-extractor/helpers/component/component-class.extractor.js +34 -37
  4. package/builders/component-extractor/helpers/component/component-config.extractor.d.ts +2 -15
  5. package/builders/component-extractor/helpers/component/component-config.extractor.d.ts.map +1 -1
  6. package/builders/component-extractor/helpers/component/component-config.extractor.js +41 -48
  7. package/builders/component-extractor/helpers/component/component.extractor.d.ts +2 -10
  8. package/builders/component-extractor/helpers/component/component.extractor.d.ts.map +1 -1
  9. package/builders/component-extractor/helpers/component/component.extractor.js +20 -25
  10. package/builders/component-extractor/helpers/component/component.parser.d.ts +2 -3
  11. package/builders/component-extractor/helpers/component/component.parser.d.ts.map +1 -1
  12. package/builders/component-extractor/helpers/component/component.parser.js +11 -14
  13. package/builders/component-extractor/index.d.ts.map +1 -1
  14. package/builders/component-extractor/index.js +25 -27
  15. package/builders/component-extractor/schema.d.ts.map +1 -1
  16. package/builders/metadata-check/helpers/config-metadata-comparison.helper.d.ts +2 -2
  17. package/builders/metadata-check/helpers/config-metadata-comparison.helper.d.ts.map +1 -1
  18. package/builders/metadata-check/helpers/config-metadata-comparison.helper.js +1 -1
  19. package/builders/metadata-check/index.d.ts.map +1 -1
  20. package/builders/metadata-check/schema.d.ts.map +1 -1
  21. package/core/component.output.d.ts.map +1 -1
  22. package/core/rendering/helpers.d.ts +0 -1
  23. package/core/rendering/helpers.d.ts.map +1 -1
  24. package/devkit/components-devkit.interface.d.ts.map +1 -1
  25. package/devkit/components-devtools.message.service.d.ts +2 -3
  26. package/devkit/components-devtools.message.service.d.ts.map +1 -1
  27. package/devkit/components-devtools.module.d.ts.map +1 -1
  28. package/devkit/components-devtools.token.d.ts +1 -1
  29. package/devkit/components-devtools.token.d.ts.map +1 -1
  30. package/devkit/inspector/ng/ng.d.ts +3 -1
  31. package/devkit/inspector/ng/ng.d.ts.map +1 -1
  32. package/devkit/inspector/otter-inspector.helpers.d.ts.map +1 -1
  33. package/devkit/inspector/otter-inspector.service.d.ts.map +1 -1
  34. package/esm2022/core/component.output.mjs +1 -1
  35. package/esm2022/core/rendering/helpers.mjs +3 -4
  36. package/esm2022/devkit/components-devkit.interface.mjs +7 -7
  37. package/esm2022/devkit/components-devtools.message.service.mjs +15 -16
  38. package/esm2022/devkit/components-devtools.module.mjs +10 -10
  39. package/esm2022/devkit/components-devtools.token.mjs +2 -2
  40. package/esm2022/devkit/index.mjs +1 -1
  41. package/esm2022/devkit/inspector/index.mjs +1 -1
  42. package/esm2022/devkit/inspector/ng/ng.mjs +1 -1
  43. package/esm2022/devkit/inspector/otter-inspector.helpers.mjs +8 -8
  44. package/esm2022/devkit/inspector/otter-inspector.service.mjs +8 -8
  45. package/esm2022/rules-engine/placeholder.action-handler.mjs +23 -21
  46. package/esm2022/rules-engine/placeholder.interfaces.mjs +1 -1
  47. package/esm2022/rules-engine/placeholder.rules-engine.effect.mjs +28 -25
  48. package/esm2022/rules-engine/placeholder.rules-engine.module.mjs +10 -10
  49. package/esm2022/rules-engine/public_api.mjs +2 -2
  50. package/esm2022/stores/index.mjs +2 -2
  51. package/esm2022/stores/placeholder-request/index.mjs +1 -1
  52. package/esm2022/stores/placeholder-request/placeholder-request.actions.mjs +3 -3
  53. package/esm2022/stores/placeholder-request/placeholder-request.module.mjs +9 -9
  54. package/esm2022/stores/placeholder-request/placeholder-request.reducer.mjs +4 -4
  55. package/esm2022/stores/placeholder-request/placeholder-request.selectors.mjs +4 -4
  56. package/esm2022/stores/placeholder-request/placeholder-request.state.mjs +1 -1
  57. package/esm2022/stores/placeholder-request/placeholder-request.sync.mjs +3 -3
  58. package/esm2022/stores/placeholder-template/index.mjs +1 -1
  59. package/esm2022/stores/placeholder-template/placeholder-template.actions.mjs +2 -2
  60. package/esm2022/stores/placeholder-template/placeholder-template.module.mjs +9 -9
  61. package/esm2022/stores/placeholder-template/placeholder-template.reducer.mjs +3 -3
  62. package/esm2022/stores/placeholder-template/placeholder-template.selectors.mjs +8 -8
  63. package/esm2022/stores/placeholder-template/placeholder-template.state.mjs +1 -1
  64. package/esm2022/stores/placeholder-template/placeholder-template.sync.mjs +2 -2
  65. package/esm2022/tools/component-replacement/c11n.directive.mjs +9 -8
  66. package/esm2022/tools/component-replacement/c11n.helpers.mjs +1 -1
  67. package/esm2022/tools/component-replacement/c11n.mock.module.mjs +15 -15
  68. package/esm2022/tools/component-replacement/c11n.module.mjs +10 -9
  69. package/esm2022/tools/component-replacement/c11n.service.mjs +7 -7
  70. package/esm2022/tools/component-replacement/c11n.token.mjs +2 -2
  71. package/esm2022/tools/component-replacement/index.mjs +3 -3
  72. package/esm2022/tools/pipes/capitalize/capitalize.module.mjs +7 -7
  73. package/esm2022/tools/pipes/capitalize/capitalize.pipe.mjs +8 -8
  74. package/esm2022/tools/pipes/duration/duration.module.mjs +7 -7
  75. package/esm2022/tools/pipes/duration/duration.pipe.mjs +10 -9
  76. package/esm2022/tools/pipes/keep-white-space/keep-white-space.module.mjs +7 -7
  77. package/esm2022/tools/pipes/keep-white-space/keep-white-space.pipe.mjs +8 -8
  78. package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.module.mjs +7 -7
  79. package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.pipe.mjs +9 -9
  80. package/esm2022/tools/placeholder/placeholder.component.mjs +18 -22
  81. package/esm2022/tools/placeholder/placeholder.interface.mjs +1 -1
  82. package/esm2022/tools/placeholder/placeholder.module.mjs +11 -11
  83. package/fesm2022/o3r-components-rules-engine.mjs +41 -36
  84. package/fesm2022/o3r-components-rules-engine.mjs.map +1 -1
  85. package/fesm2022/o3r-components.mjs +241 -244
  86. package/fesm2022/o3r-components.mjs.map +1 -1
  87. package/package.json +11 -11
  88. package/rules-engine/placeholder.action-handler.d.ts +1 -1
  89. package/rules-engine/placeholder.action-handler.d.ts.map +1 -1
  90. package/rules-engine/placeholder.interfaces.d.ts.map +1 -1
  91. package/rules-engine/placeholder.rules-engine.effect.d.ts +2 -2
  92. package/rules-engine/placeholder.rules-engine.effect.d.ts.map +1 -1
  93. package/rules-engine/placeholder.rules-engine.module.d.ts.map +1 -1
  94. package/rules-engine/public_api.d.ts +1 -1
  95. package/rules-engine/public_api.d.ts.map +1 -1
  96. package/schematics/cms-adapter/index.d.ts.map +1 -1
  97. package/schematics/cms-adapter/index.js +1 -1
  98. package/schematics/ng-add/helpers/devtools-registration.d.ts +0 -2
  99. package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -1
  100. package/schematics/ng-add/helpers/devtools-registration.js +1 -3
  101. package/schematics/ng-add/index.d.ts.map +1 -1
  102. package/schematics/ng-add/index.js +3 -4
  103. package/schematics/ng-add/schema.d.ts.map +1 -1
  104. package/schematics/ng-update/v10-0/index.d.ts.map +1 -1
  105. package/schematics/ng-update/v10-0/index.js +2 -1
  106. package/stores/index.d.ts +1 -1
  107. package/stores/index.d.ts.map +1 -1
  108. package/stores/placeholder-request/placeholder-request.actions.d.ts.map +1 -1
  109. package/stores/placeholder-request/placeholder-request.module.d.ts.map +1 -1
  110. package/stores/placeholder-request/placeholder-request.reducer.d.ts.map +1 -1
  111. package/stores/placeholder-request/placeholder-request.selectors.d.ts.map +1 -1
  112. package/stores/placeholder-request/placeholder-request.state.d.ts.map +1 -1
  113. package/stores/placeholder-request/placeholder-request.sync.d.ts +1 -1
  114. package/stores/placeholder-request/placeholder-request.sync.d.ts.map +1 -1
  115. package/stores/placeholder-template/placeholder-template.actions.d.ts.map +1 -1
  116. package/stores/placeholder-template/placeholder-template.module.d.ts.map +1 -1
  117. package/stores/placeholder-template/placeholder-template.reducer.d.ts.map +1 -1
  118. package/stores/placeholder-template/placeholder-template.selectors.d.ts.map +1 -1
  119. package/stores/placeholder-template/placeholder-template.state.d.ts.map +1 -1
  120. package/stores/placeholder-template/placeholder-template.sync.d.ts +2 -2
  121. package/stores/placeholder-template/placeholder-template.sync.d.ts.map +1 -1
  122. package/tools/component-replacement/c11n.directive.d.ts.map +1 -1
  123. package/tools/component-replacement/c11n.helpers.d.ts.map +1 -1
  124. package/tools/component-replacement/c11n.mock.module.d.ts.map +1 -1
  125. package/tools/component-replacement/c11n.module.d.ts +1 -0
  126. package/tools/component-replacement/c11n.module.d.ts.map +1 -1
  127. package/tools/component-replacement/c11n.service.d.ts.map +1 -1
  128. package/tools/component-replacement/c11n.token.d.ts.map +1 -1
  129. package/tools/component-replacement/index.d.ts +2 -2
  130. package/tools/component-replacement/index.d.ts.map +1 -1
  131. package/tools/pipes/capitalize/capitalize.module.d.ts.map +1 -1
  132. package/tools/pipes/capitalize/capitalize.pipe.d.ts.map +1 -1
  133. package/tools/pipes/duration/duration.module.d.ts.map +1 -1
  134. package/tools/pipes/duration/duration.pipe.d.ts +1 -0
  135. package/tools/pipes/duration/duration.pipe.d.ts.map +1 -1
  136. package/tools/pipes/keep-white-space/keep-white-space.module.d.ts.map +1 -1
  137. package/tools/pipes/keep-white-space/keep-white-space.pipe.d.ts.map +1 -1
  138. package/tools/pipes/replace-with-bold/replace-with-bold.module.d.ts.map +1 -1
  139. package/tools/pipes/replace-with-bold/replace-with-bold.pipe.d.ts.map +1 -1
  140. package/tools/placeholder/placeholder.component.d.ts.map +1 -1
  141. package/tools/placeholder/placeholder.interface.d.ts.map +1 -1
  142. package/tools/placeholder/placeholder.module.d.ts.map +1 -1
@@ -1,7 +1,7 @@
1
1
  import { logging } from '@angular-devkit/core';
2
- import type { ComponentOutput } from '@o3r/components';
3
2
  import type { ComponentExtractorBuilderSchema } from '../../index';
4
3
  import { ParserOutput } from './component.parser';
4
+ import type { ComponentOutput } from '@o3r/components';
5
5
  /**
6
6
  * Extracts components metadata
7
7
  */
@@ -17,6 +17,7 @@ export declare class ComponentExtractor {
17
17
  /** List of the loaded libraries component outputs*/
18
18
  private libComponentClassOutputs?;
19
19
  /**
20
+ * Extracts components metadata constructor
20
21
  * @param libraryName The name of the library/app on which the extractor is run
21
22
  * @param libraries List of libraries to extract metadata from
22
23
  * @param logger
@@ -36,13 +37,11 @@ export declare class ComponentExtractor {
36
37
  private loadLibraryComponentClassOutputs;
37
38
  /**
38
39
  * Indicates if the given component is referencing configuration from a library.
39
- *
40
40
  * @param component
41
41
  */
42
42
  private isLibConfigRef;
43
43
  /**
44
44
  * Returns a ComponentConfigOutput model built using the given ConfigurationInformation, filePath and type as well as the library being processed.
45
- *
46
45
  * @param configuration
47
46
  * @param filePath
48
47
  * @param type
@@ -50,13 +49,11 @@ export declare class ComponentExtractor {
50
49
  private createComponentConfigOutput;
51
50
  /**
52
51
  * Return a hash of the config output without the path
53
- *
54
52
  * @param config
55
53
  */
56
54
  private hashConfiguration;
57
55
  /**
58
56
  * Add NestedConfiguration to map
59
- *
60
57
  * @param nestedConfigurations Map
61
58
  * @param configurationInformationWrapper configurations to be added
62
59
  * @param filePath
@@ -64,20 +61,17 @@ export declare class ComponentExtractor {
64
61
  private addNestedConfigToMap;
65
62
  /**
66
63
  * Consolidate the configuration data to the final format.
67
- *
68
64
  * @param parsedData Data extracted from the source code
69
65
  */
70
66
  private consolidateConfig;
71
67
  /**
72
68
  * Consolidate the components data to the final format
73
- *
74
69
  * @param parsedData Data extracted from the source code
75
70
  * @param placeholdersMetadataFile
76
71
  */
77
72
  private consolidateComponents;
78
73
  /**
79
74
  * Merge placeholders metadata information into the components metadata
80
- *
81
75
  * @param componentClassOutputs
82
76
  * @param placeholdersMetadata
83
77
  * @private
@@ -85,7 +79,6 @@ export declare class ComponentExtractor {
85
79
  private addPlaceholdersToComponent;
86
80
  /**
87
81
  * Filters out config not supported by CMS
88
- *
89
82
  * @param configs
90
83
  * @param options
91
84
  * @private
@@ -93,7 +86,6 @@ export declare class ComponentExtractor {
93
86
  private filterIncompatibleConfig;
94
87
  /**
95
88
  * Extract components metadata from a parser output
96
- *
97
89
  * @param parserOutput Data extracted from the source code
98
90
  * @param options
99
91
  */
@@ -1 +1 @@
1
- {"version":3,"file":"component.extractor.d.ts","sourceRoot":"","sources":["../../../../../builders/component-extractor/helpers/component/component.extractor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,EAGV,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,qBAAa,kBAAkB;IAkBjB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAA+B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAqB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAU,OAAO,CAAC,QAAQ,CAAC,UAAU;IAhBtL,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,8CAA8C;IAC9C,OAAO,CAAC,iBAAiB,CAAC,CAA4B;IAEtD,oDAAoD;IACpD,OAAO,CAAC,wBAAwB,CAAC,CAA2B;IAE5D;;;;;;OAMG;gBAC0B,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAmB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAmB,aAAa,EAAE,MAAM,EAAmB,UAAU,UAAQ;IAK9L;;;OAGG;YACW,yBAAyB;IAQvC;;;OAGG;YACW,gCAAgC;IAQ9C;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;;OAMG;IACH,OAAO,CAAC,2BAA2B;IAenC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAyCzB;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IA8B7B;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B;IASlC;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IA+ChC;;;;;OAKG;IACU,OAAO,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,eAAe,CAAC;CAsBrH"}
1
+ {"version":3,"file":"component.extractor.d.ts","sourceRoot":"","sources":["../../../../../builders/component-extractor/helpers/component/component.extractor.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,aAAa,CAAC;AAQrB,OAAO,EACL,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAGV,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,qBAAa,kBAAkB;IAkBjB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAA+B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAqB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAU,OAAO,CAAC,QAAQ,CAAC,UAAU;IAjBtL,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,8CAA8C;IAC9C,OAAO,CAAC,iBAAiB,CAAC,CAA4B;IAEtD,oDAAoD;IACpD,OAAO,CAAC,wBAAwB,CAAC,CAA2B;IAE5D;;;;;;;OAOG;gBAC0B,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAmB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAmB,aAAa,EAAE,MAAM,EAAmB,UAAU,UAAQ;IAK9L;;;OAGG;YACW,yBAAyB;IAQvC;;;OAGG;YACW,gCAAgC;IAQ9C;;;OAGG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,2BAA2B;IAenC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAyCzB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAiC7B;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IASlC;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IA8ChC;;;;OAIG;IACU,OAAO,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,eAAe,CAAC;CAsBrH"}
@@ -2,15 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ComponentExtractor = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const extractors_1 = require("@o3r/extractors");
6
- const schematics_1 = require("@o3r/schematics");
7
5
  const fs = tslib_1.__importStar(require("node:fs"));
8
6
  const path = tslib_1.__importStar(require("node:path"));
7
+ const extractors_1 = require("@o3r/extractors");
8
+ const schematics_1 = require("@o3r/schematics");
9
9
  /**
10
10
  * Extracts components metadata
11
11
  */
12
12
  class ComponentExtractor {
13
13
  /**
14
+ * Extracts components metadata constructor
14
15
  * @param libraryName The name of the library/app on which the extractor is run
15
16
  * @param libraries List of libraries to extract metadata from
16
17
  * @param logger
@@ -47,7 +48,6 @@ class ComponentExtractor {
47
48
  }
48
49
  /**
49
50
  * Indicates if the given component is referencing configuration from a library.
50
- *
51
51
  * @param component
52
52
  */
53
53
  isLibConfigRef(component) {
@@ -56,7 +56,6 @@ class ComponentExtractor {
56
56
  }
57
57
  /**
58
58
  * Returns a ComponentConfigOutput model built using the given ConfigurationInformation, filePath and type as well as the library being processed.
59
- *
60
59
  * @param configuration
61
60
  * @param filePath
62
61
  * @param type
@@ -77,17 +76,14 @@ class ComponentExtractor {
77
76
  }
78
77
  /**
79
78
  * Return a hash of the config output without the path
80
- *
81
79
  * @param config
82
80
  */
83
81
  hashConfiguration(config) {
84
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
85
82
  const { path: configFilePath, ...rest } = config;
86
83
  return Buffer.from(JSON.stringify(rest)).toString('base64');
87
84
  }
88
85
  /**
89
86
  * Add NestedConfiguration to map
90
- *
91
87
  * @param nestedConfigurations Map
92
88
  * @param configurationInformationWrapper configurations to be added
93
89
  * @param filePath
@@ -101,7 +97,6 @@ class ComponentExtractor {
101
97
  }
102
98
  /**
103
99
  * Consolidate the configuration data to the final format.
104
- *
105
100
  * @param parsedData Data extracted from the source code
106
101
  */
107
102
  consolidateConfig(parsedData) {
@@ -144,7 +139,6 @@ class ComponentExtractor {
144
139
  }
145
140
  /**
146
141
  * Consolidate the components data to the final format
147
- *
148
142
  * @param parsedData Data extracted from the source code
149
143
  * @param placeholdersMetadataFile
150
144
  */
@@ -153,14 +147,18 @@ class ComponentExtractor {
153
147
  const res = Object.keys(parsedData.components)
154
148
  .map((componentUrl) => {
155
149
  const parsedItemRef = parsedData.components[componentUrl];
156
- const context = parsedItemRef.component.contextName ? {
157
- library,
158
- name: parsedItemRef.component.contextName
159
- } : undefined;
160
- const config = parsedItemRef.component.configName ? {
161
- library: this.isLibConfigRef(parsedItemRef.component) ? parsedItemRef.component.configPath : library,
162
- name: parsedItemRef.component.configName
163
- } : undefined;
150
+ const context = parsedItemRef.component.contextName
151
+ ? {
152
+ library,
153
+ name: parsedItemRef.component.contextName
154
+ }
155
+ : undefined;
156
+ const config = parsedItemRef.component.configName
157
+ ? {
158
+ library: this.isLibConfigRef(parsedItemRef.component) ? parsedItemRef.component.configPath : library,
159
+ name: parsedItemRef.component.configName
160
+ }
161
+ : undefined;
164
162
  return {
165
163
  library,
166
164
  name: parsedItemRef.component.name,
@@ -177,20 +175,18 @@ class ComponentExtractor {
177
175
  }
178
176
  /**
179
177
  * Merge placeholders metadata information into the components metadata
180
- *
181
178
  * @param componentClassOutputs
182
179
  * @param placeholdersMetadata
183
180
  * @private
184
181
  */
185
182
  addPlaceholdersToComponent(componentClassOutputs, placeholdersMetadata) {
186
183
  return componentClassOutputs.map((componentClassOutput) => {
187
- const placeholdersToBeAdded = placeholdersMetadata.find(placeholderMetadata => placeholderMetadata.name === componentClassOutput.name && placeholderMetadata.library === placeholderMetadata.library);
184
+ const placeholdersToBeAdded = placeholdersMetadata.find((placeholderMetadata) => placeholderMetadata.name === componentClassOutput.name && placeholderMetadata.library === placeholderMetadata.library);
188
185
  return placeholdersToBeAdded ? { ...componentClassOutput, placeholders: placeholdersToBeAdded.placeholders } : componentClassOutput;
189
186
  });
190
187
  }
191
188
  /**
192
189
  * Filters out config not supported by CMS
193
- *
194
190
  * @param configs
195
191
  * @param options
196
192
  * @private
@@ -218,13 +214,13 @@ class ComponentExtractor {
218
214
  propertiesWithDefaultValue: [],
219
215
  propertiesWithoutDefaultValue: []
220
216
  });
221
- if (propertiesWithoutDefaultValue.length) {
217
+ if (propertiesWithoutDefaultValue.length > 0) {
222
218
  const message = `"${config.library}#${config.name}" has no default value for ${propertiesWithoutDefaultValue.map((prop) => prop.name).join(', ')}. Excluding ${propertiesWithoutDefaultValue.length > 1 ? 'them' : 'it'}`;
223
- if (!this.strictMode) {
224
- this.logger.warn(message);
219
+ if (this.strictMode) {
220
+ throw new schematics_1.O3rCliError(message);
225
221
  }
226
222
  else {
227
- throw new schematics_1.O3rCliError(message);
223
+ this.logger.warn(message);
228
224
  }
229
225
  const configWithoutIncompatibleProperties = {
230
226
  ...config,
@@ -237,7 +233,6 @@ class ComponentExtractor {
237
233
  }
238
234
  /**
239
235
  * Extract components metadata from a parser output
240
- *
241
236
  * @param parserOutput Data extracted from the source code
242
237
  * @param options
243
238
  */
@@ -42,8 +42,9 @@ export declare class ComponentParser {
42
42
  private readonly strictMode;
43
43
  private readonly libraries;
44
44
  private readonly globalConfigCategories;
45
- private globalConfigCategoriesMap;
45
+ private readonly globalConfigCategoriesMap;
46
46
  /**
47
+ * Component extractor parser constructor
47
48
  * @param libraryName
48
49
  * @param tsconfigPath Path to the tsconfig defining the list of path to parse
49
50
  * @param logger Logger
@@ -58,14 +59,12 @@ export declare class ComponentParser {
58
59
  private getFilesFromTsConfig;
59
60
  /**
60
61
  * Extract a component of a given file
61
- *
62
62
  * @param file Path to the file to extract the component from
63
63
  * @param source Typescript SourceFile node of the file
64
64
  */
65
65
  private getComponent;
66
66
  /**
67
67
  * Extract a configuration of a given file
68
- *
69
68
  * @param file Path to the file to extract the configuration from
70
69
  * @param source Typescript SourceFile node of the file
71
70
  * @param checker Typescript TypeChecker of the program
@@ -1 +1 @@
1
- {"version":3,"file":"component.parser.d.ts","sourceRoot":"","sources":["../../../../../builders/component-extractor/helpers/component/component.parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAKrD,OAAO,EAA0B,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAA2B,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAEvG,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,uCAAuC;IACvC,SAAS,CAAC,EAAE,oBAAoB,CAAC;IAEjC,2CAA2C;IAC3C,aAAa,CAAC,EAAE,+BAA+B,CAAC;CACjD;AAED,kBAAkB;AAClB,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;IACjE,kBAAkB;IAClB,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED,kBAAkB;AAClB,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,kBAAkB;IAClB,aAAa,EAAE,+BAA+B,CAAC;CAChD;AAED,2BAA2B;AAC3B,MAAM,WAAW,YAAY;IAC3B,gCAAgC;IAChC,UAAU,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,CAAC;IAE1D,mCAAmC;IACnC,cAAc,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,6BAA6B,CAAA;KAAE,CAAC;CACnE;AAED;;GAEG;AACH,qBAAa,eAAe;IAYxB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IAhBzC,OAAO,CAAC,yBAAyB,CAAsB;IAEvD;;;;;;;OAOG;gBAEgB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,OAAO,CAAC,SAAS,EACzB,UAAU,GAAE,OAAe,EAC3B,SAAS,GAAE,MAAM,EAAO,EACxB,sBAAsB,GAAE,mBAAmB,EAAO;IAKrE,kDAAkD;IAClD,OAAO,CAAC,uBAAuB;IAe/B,8CAA8C;IAC9C,OAAO,CAAC,oBAAoB;IAK5B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAKpB;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAyCxB;;;OAGG;IACU,KAAK,IAAI,OAAO,CAAC,YAAY,CAAC;CA4B5C"}
1
+ {"version":3,"file":"component.parser.d.ts","sourceRoot":"","sources":["../../../../../builders/component-extractor/helpers/component/component.parser.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAMnB,OAAO,EAEL,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,+BAA+B,EAChC,MAAM,8BAA8B,CAAC;AAEtC,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,uCAAuC;IACvC,SAAS,CAAC,EAAE,oBAAoB,CAAC;IAEjC,2CAA2C;IAC3C,aAAa,CAAC,EAAE,+BAA+B,CAAC;C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perty(exports, "__esModule", { value: true });
3
3
  exports.ComponentParser = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const path = tslib_1.__importStar(require("node:path"));
5
6
  const schematics_1 = require("@o3r/schematics");
6
7
  const globby_1 = tslib_1.__importDefault(require("globby"));
7
- const path = tslib_1.__importStar(require("node:path"));
8
8
  const ts = tslib_1.__importStar(require("typescript"));
9
9
  const component_class_extractor_1 = require("./component-class.extractor");
10
10
  const component_config_extractor_1 = require("./component-config.extractor");
@@ -13,6 +13,7 @@ const component_config_extractor_1 = require("./component-config.extractor");
13
13
  */
14
14
  class ComponentParser {
15
15
  /**
16
+ * Component extractor parser constructor
16
17
  * @param libraryName
17
18
  * @param tsconfigPath Path to the tsconfig defining the list of path to parse
18
19
  * @param logger Logger
@@ -31,7 +32,7 @@ class ComponentParser {
31
32
  }
32
33
  /** Get the list of patterns from tsconfig.json */
33
34
  getPatternsFromTsConfig() {
34
- const tsconfigResult = ts.readConfigFile(this.tsconfigPath, ts.sys.readFile);
35
+ const tsconfigResult = ts.readConfigFile(this.tsconfigPath, (p) => ts.sys.readFile(p));
35
36
  if (tsconfigResult.error) {
36
37
  const errorMessage = typeof tsconfigResult.error.messageText === 'string' ? tsconfigResult.error.messageText : tsconfigResult.error.messageText.messageText;
37
38
  this.logger.error(errorMessage);
@@ -49,7 +50,6 @@ class ComponentParser {
49
50
  }
50
51
  /**
51
52
  * Extract a component of a given file
52
- *
53
53
  * @param file Path to the file to extract the component from
54
54
  * @param source Typescript SourceFile node of the file
55
55
  */
@@ -59,7 +59,6 @@ class ComponentParser {
59
59
  }
60
60
  /**
61
61
  * Extract a configuration of a given file
62
- *
63
62
  * @param file Path to the file to extract the configuration from
64
63
  * @param source Typescript SourceFile node of the file
65
64
  * @param checker Typescript TypeChecker of the program
@@ -75,20 +74,18 @@ class ComponentParser {
75
74
  });
76
75
  const categoriesMap = new Map((configuration.configurationInformation.categories || []).map((category) => [category.name, category.label]));
77
76
  configuration.configurationInformation.properties.forEach((prop) => {
78
- if (prop.category) {
79
- if (!categoriesMap.has(prop.category)) {
80
- if (this.globalConfigCategoriesMap.has(prop.category)) {
81
- categoriesMap.set(prop.category, this.globalConfigCategoriesMap.get(prop.category));
82
- }
83
- else {
84
- this.logger.warn(`The property ${prop.name} from ${configuration.configurationInformation.name} has an unknown category ${prop.category}. The category will not be set for this property.`);
85
- delete prop.category;
86
- }
77
+ if (prop.category && !categoriesMap.has(prop.category)) {
78
+ if (this.globalConfigCategoriesMap.has(prop.category)) {
79
+ categoriesMap.set(prop.category, this.globalConfigCategoriesMap.get(prop.category));
80
+ }
81
+ else {
82
+ this.logger.warn(`The property ${prop.name} from ${configuration.configurationInformation.name} has an unknown category ${prop.category}. The category will not be set for this property.`);
83
+ delete prop.category;
87
84
  }
88
85
  }
89
86
  });
90
87
  const categories = Array.from(categoriesMap).map(([name, label]) => ({ name, label }));
91
- configuration.configurationInformation.categories = categories.length ? categories : undefined;
88
+ configuration.configurationInformation.categories = categories.length > 0 ? categories : undefined;
92
89
  if (this.strictMode) {
93
90
  configuration.configurationInformation.properties = configuration.configurationInformation.properties
94
91
  .filter((prop) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/component-extractor/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAI3D,cAAc,UAAU,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,MAAM,KAAmB,MAGvE,CAAC;;AA4BF,wBAkJI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/component-extractor/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,+BAA+B,EAChC,MAAM,UAAU,CAAC;AAKlB,cAAc,UAAU,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,MAAM,KAAmB,MAGvE,CAAC;;AA6BF,wBAgJI"}
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultLibraryName = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const fs = tslib_1.__importStar(require("node:fs"));
6
+ const path = tslib_1.__importStar(require("node:path"));
5
7
  const architect_1 = require("@angular-devkit/architect");
6
8
  const extractors_1 = require("@o3r/extractors");
7
9
  const schematics_1 = require("@o3r/schematics");
8
10
  const chokidar = tslib_1.__importStar(require("chokidar"));
9
- const fs = tslib_1.__importStar(require("node:fs"));
10
- const path = tslib_1.__importStar(require("node:path"));
11
11
  const index_1 = require("./helpers/component/index");
12
12
  tslib_1.__exportStar(require("./schema"), exports);
13
13
  /**
@@ -24,9 +24,10 @@ const STEP_NUMBER = 5;
24
24
  /**
25
25
  * Ensure that all tuple (library,name) are unique
26
26
  * @param configurations
27
+ * @param logger
27
28
  * @param strictMode
28
29
  */
29
- function checkUniquenessLibraryAndName(configurations, strictMode = false) {
30
+ function checkUniquenessLibraryAndName(configurations, logger, strictMode = false) {
30
31
  const setOfLibraryAndName = new Set();
31
32
  let errors = '';
32
33
  configurations.forEach((configuration) => {
@@ -37,11 +38,11 @@ function checkUniquenessLibraryAndName(configurations, strictMode = false) {
37
38
  setOfLibraryAndName.add(configuration.library + configuration.name);
38
39
  }
39
40
  });
40
- if (errors.length) {
41
+ if (errors.length > 0) {
41
42
  if (strictMode) {
42
43
  throw new schematics_1.O3rCliError(`Duplicate (library, name) tuples are not allowed :\n ${errors}`);
43
44
  }
44
- console.warn(`Duplicate (library, name) tuples found. Please fix it as it would throw an error in strict mode :\n ${errors}`);
45
+ logger.warn(`Duplicate (library, name) tuples found. Please fix it as it would throw an error in strict mode :\n ${errors}`);
45
46
  }
46
47
  }
47
48
  exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderWithMetricsIfInstalled)(async (options, context) => {
@@ -62,13 +63,7 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
62
63
  const parser = new index_1.ComponentParser(libraryName, tsConfig, context.logger, options.strictMode, options.libraries, options.globalConfigCategories);
63
64
  context.reportProgress(2, STEP_NUMBER, 'Gathering project data');
64
65
  const parserOutput = await parser.parse();
65
- if (!parserOutput) {
66
- return {
67
- success: false,
68
- error: 'Parsing failed'
69
- };
70
- }
71
- else {
66
+ if (parserOutput) {
72
67
  const componentExtractor = new index_1.ComponentExtractor(libraryName, options.libraries, context.logger, context.workspaceRoot, options.strictMode);
73
68
  try {
74
69
  context.reportProgress(3, STEP_NUMBER, 'Extracting component metadata');
@@ -79,7 +74,7 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
79
74
  // Validate components part of components metadata
80
75
  (0, extractors_1.validateJson)(componentMetadata.components, JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../schemas/component.metadata.schema.json'), { encoding: 'utf8' })), 'The output of components metadata is not valid regarding the json schema, please check the details below : \n', options.strictMode);
81
76
  // Ensure that each tuple (library,name) is unique
82
- checkUniquenessLibraryAndName(componentMetadata.configurations);
77
+ checkUniquenessLibraryAndName(componentMetadata.configurations, context.logger);
83
78
  context.reportProgress(4, STEP_NUMBER, `Writing components in ${options.configOutputFile}`);
84
79
  try {
85
80
  await fs.promises.mkdir(path.dirname(path.resolve(context.workspaceRoot, options.componentOutputFile)), { recursive: true });
@@ -97,13 +92,18 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
97
92
  }
98
93
  context.logger.info(`Component metadata extracted in ${options.componentOutputFile} and ${options.configOutputFile} ${options.libraries.length > 0 ? ` (imported from ${options.libraries.join(', ')})` : ''}.`);
99
94
  }
95
+ else {
96
+ return {
97
+ success: false,
98
+ error: 'Parsing failed'
99
+ };
100
+ }
100
101
  return {
101
102
  success: true
102
103
  };
103
104
  };
104
105
  /**
105
106
  * Run a component metadata generation and report the result
106
- * @param filename File that has changed and requires a regeneration
107
107
  */
108
108
  const generateWithReport = async () => {
109
109
  const result = await execute();
@@ -121,41 +121,39 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
121
121
  * @param libraries Libraries to watch
122
122
  */
123
123
  const watchFiles = (libraries) => {
124
- const simpleGlobConfigurationFiles = path.resolve(context.currentDirectory, options.filePattern).replace(/[\\/]/g, '/');
124
+ const simpleGlobConfigurationFiles = path.resolve(context.currentDirectory, options.filePattern).replace(/[/\\]/g, '/');
125
125
  // Get metadata file for each library
126
126
  const metadataFiles = libraries.map((library) => (0, extractors_1.getLibraryCmsMetadata)(library, context.currentDirectory));
127
127
  const componentMetadataFiles = metadataFiles
128
128
  .filter(({ componentFilePath }) => !!componentFilePath)
129
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
130
- .map(({ componentFilePath }) => componentFilePath.replace(/[\\/]/g, '/'));
129
+ .map(({ componentFilePath }) => componentFilePath.replace(/[/\\]/g, '/'));
131
130
  const configurationMetadataFiles = metadataFiles
132
131
  .filter(({ configurationFilePath }) => !!configurationFilePath)
133
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
134
- .map(({ configurationFilePath }) => configurationFilePath.replace(/[\\/]/g, '/'));
132
+ .map(({ configurationFilePath }) => configurationFilePath.replace(/[/\\]/g, '/'));
135
133
  return chokidar.watch([...componentMetadataFiles, ...configurationMetadataFiles, simpleGlobConfigurationFiles]);
136
134
  };
137
- if (!options.watch) {
138
- return execute();
139
- }
140
- else {
135
+ if (options.watch) {
141
136
  const watcher = watchFiles(options.libraries);
142
137
  let currentProcess;
143
138
  watcher
144
139
  .on('all', async (eventName, filePath) => {
145
- if (!currentProcess) {
140
+ if (currentProcess) {
141
+ context.logger.debug(`Ignored action ${eventName} on ${filePath}`);
142
+ }
143
+ else {
146
144
  context.logger.debug(`Refreshed for action ${eventName} on ${filePath}`);
147
145
  currentProcess = generateWithReport();
148
146
  await currentProcess;
149
147
  currentProcess = undefined;
150
148
  }
151
- else {
152
- context.logger.debug(`Ignored action ${eventName} on ${filePath}`);
153
- }
154
149
  });
155
150
  context.addTeardown(() => watcher.close());
156
151
  // Exit on watcher failure
157
152
  return new Promise((_resolve, reject) => watcher
158
153
  .on('error', (err) => reject(err)));
159
154
  }
155
+ else {
156
+ return execute();
157
+ }
160
158
  }));
161
159
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/component-extractor/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,WAAW,+BAAgC,SAAQ,UAAU;IAEjE,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IAEjB,iCAAiC;IACjC,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAE5B,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;IAEzB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,wBAAwB;IACxB,KAAK,EAAE,OAAO,CAAC;IAEf,4BAA4B;IAC5B,MAAM,EAAE,OAAO,CAAC;IAEhB,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IAEpB,gDAAgD;IAChD,UAAU,EAAE,OAAO,CAAC;IAEpB,4EAA4E;IAC5E,uBAAuB,EAAE,OAAO,CAAC;IAEjC,wCAAwC;IACxC,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5C;;OAEG;IAEH,sBAAsB,EAAE,CAAC,mBAAmB,GAAG,UAAU,CAAC,EAAE,CAAC;CAC9D"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/component-extractor/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,+BAAgC,SAAQ,UAAU;IAEjE,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IAEjB,iCAAiC;IACjC,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAE5B,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;IAEzB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,wBAAwB;IACxB,KAAK,EAAE,OAAO,CAAC;IAEf,4BAA4B;IAC5B,MAAM,EAAE,OAAO,CAAC;IAEhB,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IAEpB,gDAAgD;IAChD,UAAU,EAAE,OAAO,CAAC;IAEpB,4EAA4E;IAC5E,uBAAuB,EAAE,OAAO,CAAC;IAEjC,wCAAwC;IACxC,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5C;;OAEG;IAEH,sBAAsB,EAAE,CAAC,mBAAmB,GAAG,UAAU,CAAC,EAAE,CAAC;CAC9D"}
@@ -1,5 +1,5 @@
1
- import type { ComponentConfigOutput } from '@o3r/components';
2
1
  import type { MetadataComparator } from '@o3r/extractors';
2
+ import type { ComponentConfigOutput } from '@o3r/components';
3
3
  /**
4
4
  * Interface describing a config migration element
5
5
  */
@@ -18,5 +18,5 @@ export interface MigrationConfigData {
18
18
  /**
19
19
  * Comparator used to compare one version of config metadata with another
20
20
  */
21
- export declare const configMetadataComparator: MetadataComparator<ComponentConfigOutput, MigrationConfigData, ComponentConfigOutput[]>;
21
+ export declare const configMetadataComparator: Readonly<MetadataComparator<ComponentConfigOutput, MigrationConfigData, ComponentConfigOutput[]>>;
22
22
  //# sourceMappingURL=config-metadata-comparison.helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/config-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8BD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAK5H,CAAC"}
1
+ {"version":3,"file":"config-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/config-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8BD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC,CAK7H,CAAC"}
@@ -17,7 +17,7 @@ exports.configMetadataComparator = void 0;
17
17
  const getConfigurationArray = (content) => content.flatMap((config) => config.properties.length > 1
18
18
  ? config.properties.map((prop) => ({ ...config, properties: [prop] }))
19
19
  : [config]);
20
- const getConfigurationPropertyName = (config) => `${config.library}#${config.name}` + (config.properties.length ? ` ${config.properties[0].name}` : '');
20
+ const getConfigurationPropertyName = (config) => `${config.library}#${config.name}` + (config.properties.length > 0 ? ` ${config.properties[0].name}` : '');
21
21
  const isRelevantContentType = (contentType) => contentType === 'CONFIG';
22
22
  const isMigrationConfigurationDataMatch = (config, migrationData) => migrationData.libraryName === config.library
23
23
  && (!migrationData.configName || migrationData.configName === config.name)
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/metadata-check/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAC;;AAE1E,wBAEI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/metadata-check/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,yCAAyC,EAC1C,MAAM,UAAU,CAAC;;AAElB,wBAEI"}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/metadata-check/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,iBAAiB,CAAC;AAE5E,8CAA8C;AAC9C,MAAM,WAAW,yCAA0C,SAAQ,oCAAoC;CACtG"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/metadata-check/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oCAAoC,EACrC,MAAM,iBAAiB,CAAC;AAEzB,8CAA8C;AAC9C,MAAM,WAAW,yCAA0C,SAAQ,oCAAoC;CACtG"}
@@ -1 +1 @@
1
- {"version":3,"file":"component.output.d.ts","sourceRoot":"","sources":["../../src/core/component.output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnG,iCAAiC;AACjC,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,yBAAyB,GAAG,uBAAuB,GAAG,kBAAkB,CAAC;AAErH,uDAAuD;AACvD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,WAA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AC3B,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,+CAA+C;IAC/C,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,cAAc,EAAE,qBAAqB,EAAE,CAAC;CACzC"}
1
+ {"version":3,"file":"component.output.d.ts","sourceRoot":"","sources":["../../src/core/component.output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,MAAM,EACP,MAAM,WAAW,CAAC;AAEnB,iCAAiC;AACjC,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,yBAAyB,GAAG,uBAAuB,GAAG,kBAAkB,CAAC;AAErH,uDAAuD;AACvD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAEzH,oCAAoC;AACpC,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,mCAAmC;AACnC,MAAM,WAAW,eAAe;IAC9B,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,kCAAkC;AAClC,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,2BAA2B;AAC3B,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,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D;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,MAAM;IACnD,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,IAAI,EAAE,kBAAkB,CAAC;IACzB,qEAAqE;IACrE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,2BAA2B;IAC3B,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,+CAA+C;IAC/C,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,cAAc,EAAE,qBAAqB,EAAE,CAAC;CACzC"}
@@ -5,7 +5,6 @@ import { Observable } from 'rxjs';
5
5
  * of similar components.
6
6
  * @param delayMs Delay between data emits
7
7
  * @param concurrency Amount of elements that should be emitted at once
8
- * @returns
9
8
  */
10
9
  export declare function lazyArray<T>(delayMs?: number, concurrency?: number): (source$: Observable<T[]>) => Observable<T[]>;
11
10
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/rendering/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,UAAU,EAAiB,MAAM,MAAM,CAAC;AAUhF;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,SAAI,EAAE,WAAW,SAAI,aAEtC,UAAU,CAAC,CAAC,EAAE,CAAC,qBA+BjC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/rendering/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAGX,MAAM,MAAM,CAAC;AAUd;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,SAAI,EAAE,WAAW,SAAI,aAEtC,UAAU,CAAC,CAAC,EAAE,CAAC,qBA+BjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components-devkit.interface.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devkit.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AACpJ,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,qBAAqB;CAC9E;AAED;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB,EAAE,mBAAmB,CAAC,uBAAuB,CAAC;CACzH;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IACpF,+BAA+B;IAC/B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IACpF,uBAAuB;IACvB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oCAAqC,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;IAChH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,yBAAyB,GAC1B,oCAAoC,GACpC,4BAA4B,GAC5B,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,yDAAyD;AACzD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;AAErF,kDAAkD;AAClD,MAAM,MAAM,kCAAkC,GAC1C,yBAAyB,GACzB,qBAAqB,GACrB,6BAA6B,CAAC,0BAA0B,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAAa,GAAG,KAAG,OAAO,IAAI,kCAS7D,CAAC"}
1
+ {"version":3,"file":"components-devkit.interface.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devkit.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,qBAAqB;CAC9E;AAED;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB,EAAE,mBAAmB,CAAC,uBAAuB,CAAC;CACzH;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IACpF,+BAA+B;IAC/B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IACpF,uBAAuB;IACvB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oCAAqC,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;IAChH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,yBAAyB,GAC1B,oCAAoC,GACpC,4BAA4B,GAC5B,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,yDAAyD;AACzD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;AAErF,kDAAkD;AAClD,MAAM,MAAM,kCAAkC,GAC1C,yBAAyB,GACzB,qBAAqB,GACrB,6BAA6B,CAAC,0BAA0B,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAAa,GAAG,KAAG,OAAO,IAAI,kCAS7D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { OnDestroy } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
2
3
  import { DevtoolsServiceInterface } from '@o3r/core';
3
4
  import { LoggerService } from '@o3r/logger';
4
- import { Store } from '@ngrx/store';
5
5
  import { type PlaceholderTemplateState } from '../stores';
6
6
  import { ComponentsDevtoolsServiceOptions } from './components-devkit.interface';
7
7
  import * as i0 from "@angular/core";
@@ -26,8 +26,7 @@ export declare class ComponentsDevtoolsMessageService implements OnDestroy, Devt
26
26
  private handleReEmitRequest;
27
27
  /**
28
28
  * Function to handle the incoming messages from Otter Chrome DevTools extension
29
- * @param event Event coming from the Otter Chrome DevTools extension
30
- * @param message
29
+ * @param message message coming from the Otter Chrome DevTools extension
31
30
  */
32
31
  private handleEvents;
33
32
  /** @inheritDoc */
@@ -1 +1 @@
1
- {"version":3,"file":"components-devtools.message.service.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devtools.message.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,SAAS,EAAY,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAA0C,MAAM,WAAW,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,OAAO,EAAE,KAAK,wBAAwB,EAAiC,MAAM,WAAW,CAAC;AACzF,OAAO,EAAsC,gCAAgC,EAAmD,MAAM,+BAA+B,CAAC;;AAItK,qBAGa,gCAAiC,YAAW,SAAS,EAAE,wBAAwB;IASxF,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK;IATxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAE3D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IACpD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IAEzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwD;gBAGjE,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,EACA,OAAO,CAAC,EAAE,gCAAgC;IAanG;;OAEG;YACW,aAAa;YAQb,4BAA4B;IAO1C,OAAO,CAAC,iCAAiC;IAIzC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;;;OAIG;YACW,YAAY;IA0B1B,kBAAkB;IACX,QAAQ;IAgBf,kBAAkB;IACX,WAAW;yCAjHP,gCAAgC;6CAAhC,gCAAgC;CAoH5C"}
1
+ {"version":3,"file":"components-devtools.message.service.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devtools.message.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,EACN,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,wBAAwB,EAGzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACd,MAAM,aAAa,CAAC;AASrB,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,gCAAgC,EAGjC,MAAM,+BAA+B,CAAC;;AAUvC,qBAGa,gCAAiC,YAAW,SAAS,EAAE,wBAAwB;IASxF,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK;IATxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAE3D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IACpD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IAEzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwD;gBAGjE,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,EACA,OAAO,CAAC,EAAE,gCAAgC;IAanG;;OAEG;YACW,aAAa;YAQb,4BAA4B;IAO1C,OAAO,CAAC,iCAAiC;IAIzC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;;OAGG;YACW,YAAY;IA0B1B,kBAAkB;IACX,QAAQ;IAgBf,kBAAkB;IACX,WAAW;yCAhHP,gCAAgC;6CAAhC,gCAAgC;CAmH5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"components-devtools.module.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devtools.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;;;;AAItF,qBAUa,wBAAwB;IAEnC;;;OAGG;WACW,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,gCAAgC,CAAC,GAAG,mBAAmB,CAAC,wBAAwB,CAAC;yCANhH,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAepC"}
1
+ {"version":3,"file":"components-devtools.module.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devtools.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEpB,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;;;;AASvC,qBAUa,wBAAwB;IACnC;;;OAGG;WACW,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,gCAAgC,CAAC,GAAG,mBAAmB,CAAC,wBAAwB,CAAC;yCALhH,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAcpC"}
@@ -1,5 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { ComponentsDevtoolsServiceOptions } from './components-devkit.interface';
3
- export declare const OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS: ComponentsDevtoolsServiceOptions;
3
+ export declare const OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS: Readonly<ComponentsDevtoolsServiceOptions>;
4
4
  export declare const OTTER_COMPONENTS_DEVTOOLS_OPTIONS: InjectionToken<ComponentsDevtoolsServiceOptions>;
5
5
  //# sourceMappingURL=components-devtools.token.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-devtools.token.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devtools.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,eAAO,MAAM,yCAAyC,EAAE,gCAEvD,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,gCAAgC,CAA6F,CAAC"}
1
+ {"version":3,"file":"components-devtools.token.d.ts","sourceRoot":"","sources":["../../src/devkit/components-devtools.token.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAAC,gCAAgC,CAEvF,CAAC;AAEX,eAAO,MAAM,iCAAiC,kDAA4F,CAAC"}
@@ -1,7 +1,9 @@
1
1
  export interface Ng {
2
2
  /**
3
3
  * Retrieves the component instance associated with a given DOM element.
4
- * @usageNotes
4
+ *
5
+ * Usage:
6
+ *
5
7
  * Given the following DOM structure:
6
8
  * ```html
7
9
  * <my-app>