@sap-ux/create 0.13.63 → 0.13.64

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.
@@ -46,7 +46,14 @@ async function addInboundNavigationConfig(basePath, simulate, yamlPath) {
46
46
  const appType = await (0, project_access_1.getAppType)(basePath);
47
47
  const isAdp = appType === 'Fiori Adaptation';
48
48
  const fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
49
- const inbounds = await getInbounds(basePath, yamlPath, isAdp, fs, logger);
49
+ let variant;
50
+ if (!isAdp) {
51
+ variant = { isAdp: false, content: undefined };
52
+ }
53
+ else {
54
+ variant = { isAdp: true, content: await (0, adp_tooling_1.getVariant)(basePath, fs) };
55
+ }
56
+ const inbounds = await getInbounds(basePath, yamlPath, fs, logger, variant);
50
57
  let tileSettingsAnswers;
51
58
  if (inbounds && isAdp) {
52
59
  tileSettingsAnswers = await (0, common_1.promptYUIQuestions)((0, flp_config_inquirer_2.getTileSettingsQuestions)(), false);
@@ -56,8 +63,8 @@ async function addInboundNavigationConfig(basePath, simulate, yamlPath) {
56
63
  logger.info('User chose not to overwrite existing inbound navigation configuration.');
57
64
  return;
58
65
  }
59
- if (isAdp) {
60
- const config = (0, flp_config_inquirer_2.getAdpFlpInboundsWriterConfig)(answers, tileSettingsAnswers);
66
+ if (variant.isAdp) {
67
+ const config = (0, flp_config_inquirer_2.getAdpFlpInboundsWriterConfig)(answers, variant.content.layer, tileSettingsAnswers);
61
68
  await (0, adp_tooling_1.generateInboundConfig)(basePath, config, fs);
62
69
  }
63
70
  else {
@@ -80,17 +87,16 @@ async function addInboundNavigationConfig(basePath, simulate, yamlPath) {
80
87
  *
81
88
  * @param {string} basePath - The base path to the project.
82
89
  * @param {string} yamlPath - The path to the project configuration file in YAML format.
83
- * @param {boolean} isAdp - Indicates whether the project is an ADP project.
84
90
  * @param {Editor} fs - The mem-fs editor instance.
85
91
  * @param {ToolsLogger} logger - The logger instance.
92
+ * @param {DescriptorVariant} [variant] - The descriptor variant, if applicable.
86
93
  * @returns {Promise<ManifestNamespace.Inbound | undefined>} The inbounds from the manifest or mapped from the system.
87
94
  */
88
- async function getInbounds(basePath, yamlPath, isAdp, fs, logger) {
89
- if (isAdp) {
90
- const appId = (await (0, adp_tooling_1.getVariant)(basePath)).reference;
95
+ async function getInbounds(basePath, yamlPath, fs, logger, variant) {
96
+ if (variant.isAdp) {
91
97
  const { target, ignoreCertErrors = false } = await (0, adp_tooling_1.getAdpConfig)(basePath, yamlPath);
92
98
  const provider = await (0, system_access_1.createAbapServiceProvider)(target, { ignoreCertErrors }, true, logger);
93
- return (0, adp_tooling_1.getBaseAppInbounds)(appId, provider);
99
+ return (0, adp_tooling_1.getBaseAppInbounds)(variant.content.reference, provider);
94
100
  }
95
101
  const manifest = await retrieveManifest(basePath, fs);
96
102
  return (0, adp_tooling_1.getInboundsFromManifest)(manifest);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "0.13.63",
4
+ "version": "0.13.64",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -32,18 +32,18 @@
32
32
  "prompts": "2.4.2",
33
33
  "@sap-ux/abap-deploy-config-inquirer": "1.4.30",
34
34
  "@sap-ux/abap-deploy-config-writer": "0.1.15",
35
- "@sap-ux/adp-tooling": "0.14.37",
35
+ "@sap-ux/adp-tooling": "0.14.38",
36
36
  "@sap-ux/app-config-writer": "0.6.21",
37
37
  "@sap-ux/cap-config-writer": "0.10.16",
38
38
  "@sap-ux/cards-editor-config-writer": "0.5.4",
39
39
  "@sap-ux/logger": "0.7.0",
40
40
  "@sap-ux/mockserver-config-writer": "0.9.6",
41
41
  "@sap-ux/odata-service-writer": "0.27.10",
42
- "@sap-ux/preview-middleware": "0.20.52",
42
+ "@sap-ux/preview-middleware": "0.20.53",
43
43
  "@sap-ux/project-access": "1.30.6",
44
44
  "@sap-ux/system-access": "0.6.9",
45
45
  "@sap-ux/ui5-config": "0.29.0",
46
- "@sap-ux/flp-config-inquirer": "0.3.37"
46
+ "@sap-ux/flp-config-inquirer": "0.3.38"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/diff": "5.0.9",