@sap-ux/app-config-writer 0.1.23 → 0.2.0
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.
|
@@ -13,7 +13,7 @@ import type { Editor } from 'mem-fs-editor';
|
|
|
13
13
|
* @param fs file system reference
|
|
14
14
|
* @returns file system reference
|
|
15
15
|
*/
|
|
16
|
-
export declare function generateInboundNavigationConfig(appRootPath: string, { semanticObject, action, title, subTitle }:
|
|
16
|
+
export declare function generateInboundNavigationConfig(appRootPath: string, { semanticObject, action, title, subTitle }: ManifestNamespace.Inbound[string], overwrite?: boolean, fs?: Editor): Promise<Editor>;
|
|
17
17
|
/**
|
|
18
18
|
* Validates the basic manifest structure and existence required for inbound navigation addition.
|
|
19
19
|
*
|
|
@@ -44,8 +44,8 @@ function generateInboundNavigationConfig(appRootPath, { semanticObject, action,
|
|
|
44
44
|
[inboundKey]: {
|
|
45
45
|
semanticObject,
|
|
46
46
|
action,
|
|
47
|
-
title
|
|
48
|
-
subTitle
|
|
47
|
+
title,
|
|
48
|
+
subTitle,
|
|
49
49
|
signature: {
|
|
50
50
|
parameters: {},
|
|
51
51
|
additionalParameters: 'allowed'
|
|
@@ -7,7 +7,7 @@ import type { Editor } from 'mem-fs-editor';
|
|
|
7
7
|
* @returns inbound config or undefined if config prompting was aborted
|
|
8
8
|
*/
|
|
9
9
|
export declare function promptInboundNavigationConfig(basePath: string): Promise<{
|
|
10
|
-
config:
|
|
10
|
+
config: ManifestNamespace.Inbound[string] | undefined;
|
|
11
11
|
fs: Editor;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=navigation-config.d.ts.map
|
|
@@ -32,6 +32,11 @@ function promptInboundNavigationConfig(basePath) {
|
|
|
32
32
|
if ((config === null || config === void 0 ? void 0 : config.overwrite) === false) {
|
|
33
33
|
config = undefined;
|
|
34
34
|
}
|
|
35
|
+
// prompting returns '' for optional `subTitle` instead of undefined
|
|
36
|
+
// this would result in the value being written
|
|
37
|
+
if ((config === null || config === void 0 ? void 0 : config.subTitle) === '') {
|
|
38
|
+
config.subTitle = undefined;
|
|
39
|
+
}
|
|
35
40
|
return {
|
|
36
41
|
config,
|
|
37
42
|
fs
|
package/package.json
CHANGED