@sap-ux/fe-fpm-writer 0.42.15 → 0.42.17

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/dist/i18n.js CHANGED
@@ -26,7 +26,8 @@ async function initI18n() {
26
26
  lng: 'en',
27
27
  fallbackLng: 'en',
28
28
  defaultNS: exports.i18nNamespaces.buildingBlock,
29
- ns: [exports.i18nNamespaces.buildingBlock]
29
+ ns: [exports.i18nNamespaces.buildingBlock],
30
+ showSupportNotice: false
30
31
  });
31
32
  }
32
33
  /**
@@ -29,8 +29,17 @@ const i18n_1 = require("../i18n");
29
29
  */
30
30
  function enhanceData(data, manifestPath, fs) {
31
31
  const manifest = fs.readJSON(manifestPath);
32
+ // Check if folder was explicitly provided before setCommonDefaults modifies the data object
33
+ const folderWasProvided = !!data.folder;
32
34
  // set common defaults
33
35
  const config = (0, defaults_1.setCommonDefaults)(data, manifestPath, manifest);
36
+ // Override folder to use ext/view for custom pages (consistency with Page Map)
37
+ // Only override if no custom folder was explicitly provided
38
+ if (!folderWasProvided) {
39
+ config.folder = 'ext/view';
40
+ config.ns = `${manifest['sap.app'].id}.ext.view`;
41
+ config.path = (0, node_path_1.join)((0, node_path_1.dirname)(manifestPath), 'ext/view');
42
+ }
34
43
  // currently the custom page template is always the same
35
44
  config.template = 'sap.fe.core.fpm';
36
45
  config.settings = (0, common_1.initializeTargetSettings)(data);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fe-fpm-writer",
3
3
  "description": "SAP Fiori elements flexible programming model writer",
4
- "version": "0.42.15",
4
+ "version": "0.42.17",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,7 +30,7 @@
30
30
  "semver": "7.7.4",
31
31
  "xml-formatter": "2.6.1",
32
32
  "xpath": "0.0.33",
33
- "@sap-ux/fiori-annotation-api": "0.9.22",
33
+ "@sap-ux/fiori-annotation-api": "0.9.23",
34
34
  "@sap-ux/project-access": "1.35.9",
35
35
  "@sap-ux/logger": "0.8.1"
36
36
  },
@@ -42,7 +42,7 @@
42
42
  "@types/semver": "7.7.1",
43
43
  "@types/vinyl": "2.0.7",
44
44
  "@sap-ux/i18n": "0.3.9",
45
- "@sap-ux/ui-prompting": "0.6.5"
45
+ "@sap-ux/ui-prompting": "0.6.7"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=20.x"