@sap-ux/fiori-app-sub-generator 0.12.2 → 0.13.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.
|
@@ -136,6 +136,38 @@ function getUI5Uri() {
|
|
|
136
136
|
const envSetUI5CdnUrl = process.env.UI5_CDN_URL?.replace(/\/{1,2083}$/, '');
|
|
137
137
|
return envSetUI5CdnUrl ?? types_1.UI5_VERSION_PROPS.OFFICIAL_URL;
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Return the preview settings for the app configuration based on the service configuration.
|
|
141
|
+
*
|
|
142
|
+
* @param service - the service config from the state
|
|
143
|
+
* @returns - preview settings
|
|
144
|
+
*/
|
|
145
|
+
function getPreviewSettings(service) {
|
|
146
|
+
let previewSettings = {};
|
|
147
|
+
if (service.destinationAuthType === btp_utils_1.Authentication.SAML_ASSERTION ||
|
|
148
|
+
service.connectedSystem?.destination?.Authentication === btp_utils_1.Authentication.SAML_ASSERTION ||
|
|
149
|
+
store_1.AuthenticationType.ReentranceTicket === service.connectedSystem?.backendSystem?.authenticationType ||
|
|
150
|
+
// Apps generated with stored service keys (legacy) will use re-entrance tickets for connectivity
|
|
151
|
+
// New stored systems will only use re-entrance
|
|
152
|
+
service.connectedSystem?.backendSystem?.serviceKeys ||
|
|
153
|
+
// If 'cloud' this will enable preview on VSCode (using re-entrance) for app portability
|
|
154
|
+
((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.bas &&
|
|
155
|
+
service.connectedSystem?.destination &&
|
|
156
|
+
(0, btp_utils_1.isAbapEnvironmentOnBtp)(service.connectedSystem?.destination))) {
|
|
157
|
+
previewSettings = { authenticationType: store_1.AuthenticationType.ReentranceTicket };
|
|
158
|
+
}
|
|
159
|
+
else if (service.apiHubConfig) {
|
|
160
|
+
previewSettings = { apiHub: true };
|
|
161
|
+
}
|
|
162
|
+
if (service.connectedSystem?.backendSystem?.connectionType === 'odata_service') {
|
|
163
|
+
const url = service.connectedSystem.backendSystem.url;
|
|
164
|
+
previewSettings = {
|
|
165
|
+
...previewSettings,
|
|
166
|
+
connectPath: url ? new URL(url).pathname : undefined
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
return previewSettings;
|
|
170
|
+
}
|
|
139
171
|
/**
|
|
140
172
|
* Transform Fiori Tools State to the type required by the open source ux-tools module.
|
|
141
173
|
* Process inputs to set correct defaults.
|
|
@@ -193,21 +225,10 @@ async function transformState({ project, service, floorplan, entityRelatedConfig
|
|
|
193
225
|
disableCapRootPkgJsonUpdates
|
|
194
226
|
};
|
|
195
227
|
}
|
|
196
|
-
|
|
197
|
-
service.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
// New stored systems will only use re-entrance
|
|
201
|
-
service.connectedSystem?.backendSystem?.serviceKeys ||
|
|
202
|
-
// If 'cloud' this will enable preview on VSCode (using re-entrance) for app portability
|
|
203
|
-
((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.bas &&
|
|
204
|
-
service.connectedSystem?.destination &&
|
|
205
|
-
(0, btp_utils_1.isAbapEnvironmentOnBtp)(service.connectedSystem?.destination))) {
|
|
206
|
-
appConfig.service.previewSettings = { authenticationType: store_1.AuthenticationType.ReentranceTicket };
|
|
207
|
-
}
|
|
208
|
-
else if (service.apiHubConfig) {
|
|
209
|
-
appConfig.service.previewSettings = { apiHub: true };
|
|
210
|
-
}
|
|
228
|
+
appConfig.service.previewSettings = {
|
|
229
|
+
...appConfig.service.previewSettings,
|
|
230
|
+
...getPreviewSettings(service)
|
|
231
|
+
};
|
|
211
232
|
}
|
|
212
233
|
return appConfig;
|
|
213
234
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-app-sub-generator",
|
|
3
3
|
"description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -29,22 +29,22 @@
|
|
|
29
29
|
"mem-fs-editor": "9.4.0",
|
|
30
30
|
"uuid": "11.1.0",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
|
-
"@sap-ux/annotation-generator": "0.4.
|
|
32
|
+
"@sap-ux/annotation-generator": "0.4.42",
|
|
33
33
|
"@sap-ux/axios-extension": "1.25.24",
|
|
34
34
|
"@sap-ux/btp-utils": "1.1.10",
|
|
35
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
35
|
+
"@sap-ux/cap-config-writer": "0.12.80",
|
|
36
36
|
"@sap-ux/feature-toggle": "0.3.7",
|
|
37
|
-
"@sap-ux/fiori-elements-writer": "2.8.
|
|
38
|
-
"@sap-ux/fiori-freestyle-writer": "2.5.
|
|
39
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
37
|
+
"@sap-ux/fiori-elements-writer": "2.8.107",
|
|
38
|
+
"@sap-ux/fiori-freestyle-writer": "2.5.78",
|
|
39
|
+
"@sap-ux/fiori-generator-shared": "0.13.88",
|
|
40
40
|
"@sap-ux/fiori-tools-settings": "0.2.3",
|
|
41
|
-
"@sap-ux/launch-config": "0.10.
|
|
42
|
-
"@sap-ux/odata-service-inquirer": "2.
|
|
43
|
-
"@sap-ux/odata-service-writer": "0.
|
|
44
|
-
"@sap-ux/project-access": "1.35.
|
|
41
|
+
"@sap-ux/launch-config": "0.10.77",
|
|
42
|
+
"@sap-ux/odata-service-inquirer": "2.20.0",
|
|
43
|
+
"@sap-ux/odata-service-writer": "0.31.0",
|
|
44
|
+
"@sap-ux/project-access": "1.35.14",
|
|
45
45
|
"@sap-ux/store": "1.5.10",
|
|
46
|
-
"@sap-ux/telemetry": "0.6.
|
|
47
|
-
"@sap-ux/ui5-application-inquirer": "0.17.
|
|
46
|
+
"@sap-ux/telemetry": "0.6.88",
|
|
47
|
+
"@sap-ux/ui5-application-inquirer": "0.17.2",
|
|
48
48
|
"@sap-ux/ui5-info": "0.13.15"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"mock-spawn": "0.2.6",
|
|
63
63
|
"rimraf": "6.1.3",
|
|
64
64
|
"yeoman-test": "6.3.0",
|
|
65
|
-
"@sap-ux/deploy-config-sub-generator": "0.5.
|
|
66
|
-
"@sap-ux/flp-config-sub-generator": "0.3.
|
|
67
|
-
"@sap-ux/inquirer-common": "0.11.
|
|
65
|
+
"@sap-ux/deploy-config-sub-generator": "0.5.117",
|
|
66
|
+
"@sap-ux/flp-config-sub-generator": "0.3.165",
|
|
67
|
+
"@sap-ux/inquirer-common": "0.11.26",
|
|
68
68
|
"@sap-ux/jest-file-matchers": "0.2.11",
|
|
69
69
|
"@sap-ux/logger": "0.8.2"
|
|
70
70
|
},
|