@eui/tools 6.21.65 → 6.21.67

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 +1 @@
1
- 6.21.65
1
+ 6.21.67
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.67 (2025-04-24)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * add debug of module.ts replacement for remote skeleton options - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([db6090c8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/db6090c8cf1614924f0096356d4bd472ce827e87))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.66 (2025-04-24)
11
+
12
+ ##### Chores
13
+
14
+ * **remotes:**
15
+ * injection of unknown-user extra route remote config - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([b44c013e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b44c013ea305bd7591f1eb832a177e1324421cd6))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.65 (2025-04-23)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.65",
3
+ "version": "6.21.67",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -31,6 +31,7 @@ import { appConfig } from '../config';
31
31
  import { @root.common.module@ as RootCommonModule } from '@root.npm.pkg@';
32
32
  import { provideCsdrIntegrationElement } from '@csdr/integration/element';
33
33
  import { provideCsdrIntegrationParticipant } from '@csdr/integration/participant';
34
+ import { provideSectionEntryRoutesConfig } from '@csdr/integration/element/section-entry';
34
35
  import { RoutingModule } from './routing.module';
35
36
 
36
37
  import { ModuleComponent } from './module.component';
@@ -0,0 +1,4 @@
1
+ {
2
+ "imports": "import { routes } from '@root.npm.pkg@';",
3
+ "providers": "provideSectionEntryRoutesConfig([{ path: `${appConfig.global.baseUrl}`, children: routes },{ path: `unknown-user`, children: routes }]),"
4
+ }
@@ -202,6 +202,7 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
202
202
  const optionZipkinDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'zipkin.json'));
203
203
  const optionDynatraceDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'dynatrace.json'));
204
204
  const optionParticipantDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'participant.json'));
205
+ const optionUnknownUserExtraRouteDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'unknown-user-extra-route.json'));
205
206
  const optionDynamicFormsDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'dynamic-forms.json'));
206
207
 
207
208
  tools.logInfo(`copying full sources skeleton : ${fullCommonPath} ==> ${remoteSrcPath}`);
@@ -332,6 +333,11 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
332
333
  tools.replaceInPath(remoteSrcPath, '<!-- BLOCK_CONTAINER_PLACEHOLDER -->', blockContainerPlaceholder);
333
334
  tools.replaceInPath(remoteSrcPath, "@root.npm.pkg@", remote.skeletonConfig.rootNpmPkg);
334
335
  }
336
+
337
+ // unknow-user-extra-route
338
+ if (remote.skeletonConfig.options.unknownUserExtraRoute) {
339
+ pushContent(optionUnknownUserExtraRouteDef);
340
+ }
335
341
  }
336
342
 
337
343
  // replace option in module.ts placeholders
@@ -342,6 +348,10 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
342
348
  tools.replaceInFileSync(moduleTsPath, '// PROVIDERS', providersContent.join(',\n'));
343
349
  tools.replaceInFileSync(moduleTsPath, '// CONSTRUCTOR DECLARATIONS', constructorDeclarationsContent.join('\n'));
344
350
 
351
+ tools.logInfo('module.ts replaced content result : ');
352
+ const moduleTsContent = tools.getFileContent(moduleTsPath);
353
+ console.log(moduleTsContent);
354
+
345
355
  tools.logInfo('Replacing skeleton config tokens');
346
356
  tools.replaceInPath(remoteSrcPath, '@remote.name@', remote.name);
347
357
  tools.replaceInPath(remoteSrcPath, '@base.url@', remote.skeletonConfig.baseUrl);