@sap-ux/fe-fpm-writer 0.24.12 → 0.24.13

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.
@@ -37,6 +37,7 @@ function enhanceConfig(data, manifestPath, manifest) {
37
37
  */
38
38
  function enhanceManifestAndGetActionsElementReference(manifest, target) {
39
39
  const page = manifest['sap.ui5'].routing.targets[target.page];
40
+ const SECTIONS = 'sections';
40
41
  page.options = page.options || {};
41
42
  page.options.settings = page.options.settings || {};
42
43
  if (target.control === types_1.TargetControl.header || target.control === types_1.TargetControl.footer) {
@@ -49,11 +50,12 @@ function enhanceManifestAndGetActionsElementReference(manifest, target) {
49
50
  else if (target.control === types_1.TargetControl.body && target.customSectionKey) {
50
51
  // custom section actions
51
52
  page.options.settings[target.control] = page.options.settings[target.control] || {};
52
- page.options.settings[target.control][target.customSectionKey] =
53
- page.options.settings[target.control][target.customSectionKey] || {};
54
- page.options.settings[target.control][target.customSectionKey].actions =
55
- page.options.settings[target.control][target.customSectionKey].actions || {};
56
- return page.options.settings[target.control][target.customSectionKey].actions;
53
+ page.options.settings[target.control][SECTIONS] = page.options.settings[target.control][SECTIONS] || {};
54
+ page.options.settings[target.control][SECTIONS][target.customSectionKey] =
55
+ page.options.settings[target.control][SECTIONS][target.customSectionKey] || {};
56
+ page.options.settings[target.control][SECTIONS][target.customSectionKey].actions =
57
+ page.options.settings[target.control][SECTIONS][target.customSectionKey].actions || {};
58
+ return page.options.settings[target.control][SECTIONS][target.customSectionKey].actions;
57
59
  }
58
60
  else {
59
61
  const controlPrefix = target.navProperty ? target.navProperty + '/' : '';
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.24.12",
4
+ "version": "0.24.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -33,7 +33,7 @@
33
33
  "@types/mem-fs": "1.1.2",
34
34
  "@types/mem-fs-editor": "7.0.1",
35
35
  "@types/semver": "7.5.2",
36
- "@sap-ux/project-access": "1.20.2"
36
+ "@sap-ux/project-access": "1.20.3"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=18.x"