@sap-ux/preview-middleware 1.2.9 → 1.2.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.
- package/dist/base/config.d.ts +2 -0
- package/dist/base/flp.js +2 -0
- package/package.json +5 -5
- package/templates/flp/sandbox.ejs +10 -1
package/dist/base/config.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export interface TemplateConfig {
|
|
|
92
92
|
locateReuseLibsScript?: boolean;
|
|
93
93
|
enhancedHomePage?: boolean;
|
|
94
94
|
enableCardGenerator?: boolean;
|
|
95
|
+
/** Disables UI2 personalization writes to the ABAP backend during ADP preview (ushell uses wrong adapter in sandbox 1). */
|
|
96
|
+
disableAppVariantStorage?: boolean;
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
99
|
* Static settings
|
package/dist/base/flp.js
CHANGED
|
@@ -203,6 +203,7 @@ export class FlpSandbox {
|
|
|
203
203
|
const config = structuredClone(this.templateConfig);
|
|
204
204
|
config.ui5.versionMajor = ui5Version.major;
|
|
205
205
|
this.checkDeleteConnectors(config, ui5Version.major, ui5Version.minor, ui5Version.isCdn);
|
|
206
|
+
config.disableAppVariantStorage = this.adp !== undefined;
|
|
206
207
|
if (!config.ui5.libs.includes('sap.ui.rta')) {
|
|
207
208
|
// sap.ui.rta needs to be added to the list of preload libs for variants management and adaptation projects
|
|
208
209
|
config.ui5.libs += ',sap.ui.rta';
|
|
@@ -358,6 +359,7 @@ export class FlpSandbox {
|
|
|
358
359
|
if (ui5Version.major === 1 && ui5Version.minor < 120) {
|
|
359
360
|
this.removeFlexExtensionPointEnabled();
|
|
360
361
|
}
|
|
362
|
+
this.templateConfig.disableAppVariantStorage = this.adp !== undefined;
|
|
361
363
|
//for consistency reasons, we also add the baseUrl to the HTML here, although it is only used in editor mode
|
|
362
364
|
const html = render(await this.getSandboxTemplate(ui5Version), this.templateConfig);
|
|
363
365
|
this.sendResponse(res, 'text/html', 200, html);
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.2.
|
|
13
|
+
"version": "1.2.11",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"author": "@SAP/ux-tools-team",
|
|
16
16
|
"main": "dist/index.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"mem-fs-editor": "9.4.0",
|
|
29
29
|
"qrcode": "1.5.4",
|
|
30
30
|
"@sap/bas-sdk": "3.13.10",
|
|
31
|
-
"@sap-ux/adp-tooling": "1.0.
|
|
31
|
+
"@sap-ux/adp-tooling": "1.0.52",
|
|
32
32
|
"@sap-ux/btp-utils": "2.0.6",
|
|
33
33
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@1.0.11",
|
|
34
34
|
"@sap-ux/feature-toggle": "1.0.5",
|
|
35
35
|
"@sap-ux/logger": "1.0.3",
|
|
36
36
|
"@sap-ux/project-access": "2.1.13",
|
|
37
|
-
"@sap-ux/system-access": "1.0.
|
|
37
|
+
"@sap-ux/system-access": "1.0.13",
|
|
38
38
|
"@sap-ux/i18n": "1.0.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"nock": "14.0.16",
|
|
55
55
|
"npm-run-all2": "9.0.2",
|
|
56
56
|
"supertest": "7.2.2",
|
|
57
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@1.2.
|
|
57
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@1.2.11",
|
|
58
|
+
"@sap-ux/axios-extension": "2.0.10",
|
|
58
59
|
"@sap-ux-private/playwright": "1.0.6",
|
|
59
|
-
"@sap-ux/axios-extension": "2.0.9",
|
|
60
60
|
"@sap-ux/store": "2.0.7",
|
|
61
61
|
"@sap-ux/ui5-info": "1.0.6"
|
|
62
62
|
},
|
|
@@ -35,7 +35,16 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
},<% if (locals.disableAppVariantStorage) { %>
|
|
39
|
+
services: {
|
|
40
|
+
Personalization: {
|
|
41
|
+
config: {
|
|
42
|
+
appVariantStorage: {
|
|
43
|
+
enabled: false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},<% } %>
|
|
39
48
|
applications: <%- JSON.stringify(apps) %>
|
|
40
49
|
};
|
|
41
50
|
</script>
|