@sap-ux/fiori-freestyle-writer 2.4.10 → 2.4.11

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 (2) hide show
  1. package/dist/defaults.js +4 -1
  2. package/package.json +5 -5
package/dist/defaults.js CHANGED
@@ -9,8 +9,10 @@ exports.setDefaults = setDefaults;
9
9
  const read_pkg_up_1 = __importDefault(require("read-pkg-up"));
10
10
  const types_1 = require("./types");
11
11
  const utils_1 = require("./utils");
12
+ const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
12
13
  const defaultVirtualPreviewFile = 'test/flp.html'; // Default virtual preview file name
13
14
  const defaultIntent = 'app-preview';
15
+ const defaultNavActionDisplay = 'display';
14
16
  /**
15
17
  * Set defaults for missing parameters on the given Fiori/UI5 app instance.
16
18
  *
@@ -18,7 +20,8 @@ const defaultIntent = 'app-preview';
18
20
  */
19
21
  function setAppDefaults(app) {
20
22
  app.baseComponent = app.baseComponent || 'sap/ui/core/UIComponent';
21
- app.flpAppId = app.flpAppId || `${app.id.replace(/[-_.]/g, '')}-tile`;
23
+ app.flpAction = app.flpAction || defaultNavActionDisplay;
24
+ app.flpAppId = app.flpAppId || (0, fiori_generator_shared_1.getFlpId)(app.id, app.flpAction);
22
25
  }
23
26
  /**
24
27
  * Set defaults for the basic template on the given instance.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-freestyle-writer",
3
3
  "description": "SAP Fiori freestyle application writer",
4
- "version": "2.4.10",
4
+ "version": "2.4.11",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,11 +28,11 @@
28
28
  "read-pkg-up": "7.0.1",
29
29
  "semver": "7.5.4",
30
30
  "@sap-ux/odata-service-writer": "0.27.5",
31
- "@sap-ux/ui5-application-writer": "1.5.2",
31
+ "@sap-ux/ui5-application-writer": "1.5.3",
32
32
  "@sap-ux/ui5-config": "0.28.2",
33
- "@sap-ux/fiori-generator-shared": "0.12.7",
34
- "@sap-ux/cap-config-writer": "0.10.7",
35
- "@sap-ux/ui5-test-writer": "0.7.2",
33
+ "@sap-ux/fiori-generator-shared": "0.12.8",
34
+ "@sap-ux/cap-config-writer": "0.10.8",
35
+ "@sap-ux/ui5-test-writer": "0.7.3",
36
36
  "@sap-ux/logger": "0.7.0"
37
37
  },
38
38
  "devDependencies": {