@sap-ux/fiori-app-sub-generator 0.5.4 → 0.5.6

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.
@@ -155,7 +155,7 @@ async function transformState({ project, service, floorplan, entityRelatedConfig
155
155
  name: types_1.MAIN_DATASOURCE_NAME,
156
156
  client: service.client,
157
157
  model: appConfig.template?.type === fiori_elements_writer_1.TemplateType.OverviewPage ? types_1.MAIN_MODEL_NAME : '', // OVP requires a named default model
158
- previewSettings: {},
158
+ previewSettings: service.previewSettings ?? {},
159
159
  annotations: project.skipAnnotations !== true
160
160
  ? await (0, utils_1.getAnnotations)(project.name, service.annotations?.[0], service?.capService)
161
161
  : undefined,
@@ -181,7 +181,7 @@ async function transformState({ project, service, floorplan, entityRelatedConfig
181
181
  }
182
182
  else if (service.connectedSystem?.backendSystem?.serviceKeys ||
183
183
  // If 'cloud' write `scp` property to yamls to enable preview on VSCode (using oAuth)
184
- ((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.vscode &&
184
+ ((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.bas &&
185
185
  service.connectedSystem?.destination &&
186
186
  (0, btp_utils_1.isAbapEnvironmentOnBtp)(service.connectedSystem?.destination))) {
187
187
  appConfig.service.previewSettings = { scp: true };
@@ -1,3 +1,4 @@
1
+ import type { AuthenticationType } from '@sap-ux/store';
1
2
  import type { Annotations } from '@sap-ux/axios-extension';
2
3
  import type { CapServiceCdsInfo } from '@sap-ux/cap-config-writer';
3
4
  import type { CdsUi5PluginInfo, UI5FlexLayer } from '@sap-ux/project-access';
@@ -67,6 +68,13 @@ export interface Service {
67
68
  destinationAuthType?: string;
68
69
  apiHubConfig?: ApiHubConfig;
69
70
  ignoreCertError?: boolean;
71
+ /**
72
+ * Can be set by adaptors if preview settings have been determined
73
+ */
74
+ previewSettings?: {
75
+ scp?: boolean;
76
+ authenticationType?: AuthenticationType;
77
+ };
70
78
  }
71
79
  /**
72
80
  * Defines the api hub service properties or enterprise and non-enterprise versions
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.5.4",
4
+ "version": "0.5.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,21 +30,21 @@
30
30
  "uuid": "11.0.5",
31
31
  "yeoman-generator": "5.10.0",
32
32
  "@sap-ux/annotation-generator": "0.3.40",
33
- "@sap-ux/axios-extension": "1.22.0",
34
- "@sap-ux/btp-utils": "1.1.0",
33
+ "@sap-ux/axios-extension": "1.22.1",
35
34
  "@sap-ux/cap-config-writer": "0.10.9",
35
+ "@sap-ux/btp-utils": "1.1.0",
36
36
  "@sap-ux/feature-toggle": "0.3.0",
37
37
  "@sap-ux/fiori-elements-writer": "2.5.2",
38
38
  "@sap-ux/fiori-freestyle-writer": "2.4.13",
39
39
  "@sap-ux/fiori-generator-shared": "0.12.8",
40
40
  "@sap-ux/fiori-tools-settings": "0.2.0",
41
41
  "@sap-ux/launch-config": "0.10.4",
42
- "@sap-ux/odata-service-inquirer": "2.5.1",
42
+ "@sap-ux/odata-service-inquirer": "2.5.2",
43
43
  "@sap-ux/odata-service-writer": "0.27.5",
44
44
  "@sap-ux/project-access": "1.30.2",
45
- "@sap-ux/store": "1.1.0",
46
45
  "@sap-ux/telemetry": "0.6.3",
47
46
  "@sap-ux/ui5-application-inquirer": "0.14.14",
47
+ "@sap-ux/store": "1.1.0",
48
48
  "@sap-ux/ui5-info": "0.12.0"
49
49
  },
50
50
  "devDependencies": {
@@ -62,12 +62,12 @@
62
62
  "mock-spawn": "0.2.6",
63
63
  "rimraf": "5.0.5",
64
64
  "yeoman-test": "6.3.0",
65
- "@sap-ux/abap-deploy-config-inquirer": "1.4.20",
65
+ "@sap-ux/abap-deploy-config-inquirer": "1.4.21",
66
66
  "@sap-ux/cf-deploy-config-inquirer": "0.3.14",
67
- "@sap-ux/flp-config-sub-generator": "0.2.31",
67
+ "@sap-ux/flp-config-sub-generator": "0.2.32",
68
68
  "@sap-ux/inquirer-common": "0.7.13",
69
- "@sap-ux/jest-file-matchers": "0.2.2",
70
- "@sap-ux/logger": "0.7.0"
69
+ "@sap-ux/logger": "0.7.0",
70
+ "@sap-ux/jest-file-matchers": "0.2.2"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=20.x"