@sap-ux/preview-middleware 0.8.1 → 0.8.3
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.
|
@@ -68,6 +68,9 @@ sap.ui.define(["sap/base/util/merge", "sap/ui/fl/write/api/connectors/ObjectStor
|
|
|
68
68
|
if (settings?.developerMode) {
|
|
69
69
|
features.isVariantAdaptationEnabled = false;
|
|
70
70
|
}
|
|
71
|
+
if (settings?.scenario === 'ADAPTATION_PROJECT') {
|
|
72
|
+
features.isVariantAdaptationEnabled = true;
|
|
73
|
+
}
|
|
71
74
|
return features;
|
|
72
75
|
}
|
|
73
76
|
});
|
|
@@ -13,6 +13,7 @@ interface Change {
|
|
|
13
13
|
function getFlexSettings(): {
|
|
14
14
|
generator?: string;
|
|
15
15
|
developerMode?: boolean;
|
|
16
|
+
scenario?: string;
|
|
16
17
|
} | undefined {
|
|
17
18
|
let result;
|
|
18
19
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
@@ -79,6 +80,10 @@ const connector = merge({}, ObjectStorageConnector, {
|
|
|
79
80
|
features.isVariantAdaptationEnabled = false;
|
|
80
81
|
}
|
|
81
82
|
|
|
83
|
+
if (settings?.scenario === 'ADAPTATION_PROJECT') {
|
|
84
|
+
features.isVariantAdaptationEnabled = true;
|
|
85
|
+
}
|
|
86
|
+
|
|
82
87
|
return features;
|
|
83
88
|
}
|
|
84
89
|
}) as typeof ObjectStorageConnector;
|
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.8.
|
|
12
|
+
"version": "0.8.3",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"ejs": "3.1.9",
|
|
26
26
|
"@sap-ux/logger": "0.4.0",
|
|
27
|
-
"@sap-ux/adp-tooling": "0.5.
|
|
27
|
+
"@sap-ux/adp-tooling": "0.5.2",
|
|
28
28
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.2.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"npm-run-all": "4.1.5",
|
|
37
37
|
"nock": "13.2.1",
|
|
38
38
|
"supertest": "6.3.3",
|
|
39
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.5.
|
|
39
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.5.1",
|
|
40
40
|
"@sap-ux/project-access": "1.14.0",
|
|
41
41
|
"@sap-ux/store": "0.4.0"
|
|
42
42
|
},
|