@sap-ux/preview-middleware 0.17.15 → 0.17.16
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,8 +37,8 @@ sap.ui.define([
|
|
|
37
37
|
const version = await getUi5Version();
|
|
38
38
|
if (isLowerThanMinimalUi5Version(version, {
|
|
39
39
|
major: 1,
|
|
40
|
-
minor:
|
|
41
|
-
patch:
|
|
40
|
+
minor: 108,
|
|
41
|
+
patch: 27
|
|
42
42
|
})) {
|
|
43
43
|
this.isApplicable = false;
|
|
44
44
|
return;
|
|
@@ -90,7 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
const annotationFileNameWithoutExtension = `annotation_${ timestamp }`;
|
|
91
91
|
const annotationFileName = `${ annotationFileNameWithoutExtension }.xml`;
|
|
92
92
|
const annotationNameSpace = this.context.flexSettings.layer === 'CUSTOMER_BASE' ? `customer.annotation.${ annotationFileNameWithoutExtension }` : `annotation.${ annotationFileNameWithoutExtension }`;
|
|
93
|
-
const
|
|
93
|
+
const parameters = {
|
|
94
94
|
dataSourceId: dataSourceId,
|
|
95
95
|
annotations: [annotationNameSpace],
|
|
96
96
|
annotationsInsertPosition: 'END',
|
|
@@ -105,11 +105,10 @@ sap.ui.define([
|
|
|
105
105
|
changeType: 'appdescr_app_addAnnotationsToOData',
|
|
106
106
|
generator: this.context.flexSettings.generator,
|
|
107
107
|
reference: this.context.flexSettings.projectId,
|
|
108
|
-
|
|
109
|
-
content: content,
|
|
108
|
+
parameters,
|
|
110
109
|
serviceUrl: dataSource.serviceUrl
|
|
111
110
|
};
|
|
112
|
-
const command = await CommandFactory.getCommandFor(this.context.view, '
|
|
111
|
+
const command = await CommandFactory.getCommandFor(this.context.view, 'appDescriptor', modifiedValue, null, this.context.flexSettings);
|
|
113
112
|
return [command];
|
|
114
113
|
}
|
|
115
114
|
}
|
|
@@ -40,7 +40,7 @@ export class AddNewAnnotationFile
|
|
|
40
40
|
|
|
41
41
|
async initialize(): Promise<void> {
|
|
42
42
|
const version = await getUi5Version();
|
|
43
|
-
if (isLowerThanMinimalUi5Version(version, { major: 1, minor:
|
|
43
|
+
if (isLowerThanMinimalUi5Version(version, { major: 1, minor: 108, patch: 27 })) {
|
|
44
44
|
this.isApplicable = false;
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
@@ -104,7 +104,7 @@ export class AddNewAnnotationFile
|
|
|
104
104
|
this.context.flexSettings.layer === 'CUSTOMER_BASE'
|
|
105
105
|
? `customer.annotation.${annotationFileNameWithoutExtension}`
|
|
106
106
|
: `annotation.${annotationFileNameWithoutExtension}`;
|
|
107
|
-
const
|
|
107
|
+
const parameters = {
|
|
108
108
|
dataSourceId: dataSourceId,
|
|
109
109
|
annotations: [annotationNameSpace],
|
|
110
110
|
annotationsInsertPosition: 'END',
|
|
@@ -119,13 +119,12 @@ export class AddNewAnnotationFile
|
|
|
119
119
|
changeType: 'appdescr_app_addAnnotationsToOData',
|
|
120
120
|
generator: this.context.flexSettings.generator,
|
|
121
121
|
reference: this.context.flexSettings.projectId,
|
|
122
|
-
|
|
123
|
-
content: content,
|
|
122
|
+
parameters,
|
|
124
123
|
serviceUrl: dataSource.serviceUrl
|
|
125
124
|
};
|
|
126
125
|
const command = await CommandFactory.getCommandFor<FlexCommand>(
|
|
127
126
|
this.context.view,
|
|
128
|
-
'
|
|
127
|
+
'appDescriptor',
|
|
129
128
|
modifiedValue,
|
|
130
129
|
null,
|
|
131
130
|
this.context.flexSettings
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.17.
|
|
12
|
+
"version": "0.17.16",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"ejs": "3.1.10",
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
|
-
"@sap-ux/feature-toggle": "0.2.3",
|
|
29
28
|
"@sap-ux/logger": "0.6.0",
|
|
29
|
+
"@sap-ux/feature-toggle": "0.2.3",
|
|
30
30
|
"@sap-ux/btp-utils": "1.0.0",
|
|
31
31
|
"@sap-ux/adp-tooling": "0.12.121",
|
|
32
|
-
"@sap-ux/
|
|
33
|
-
"@sap-ux/
|
|
32
|
+
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.5.34",
|
|
33
|
+
"@sap-ux/project-access": "1.29.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"connect": "^3.7.0",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"supertest": "6.3.3",
|
|
49
49
|
"@sap-ux-private/playwright": "0.1.0",
|
|
50
50
|
"dotenv": "16.3.1",
|
|
51
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.
|
|
51
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.57",
|
|
52
|
+
"@sap-ux/axios-extension": "1.18.4",
|
|
52
53
|
"@sap-ux/store": "1.0.0",
|
|
53
54
|
"@sap-ux/ui5-info": "0.8.3",
|
|
54
|
-
"@sap-ux/i18n": "0.2.0"
|
|
55
|
-
"@sap-ux/axios-extension": "1.18.4"
|
|
55
|
+
"@sap-ux/i18n": "0.2.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"express": "4"
|