@sap-ux/preview-middleware 0.24.3 → 0.24.5
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.
|
@@ -77,10 +77,15 @@ sap.ui.define(["sap/base/util/merge", "sap/ui/fl/write/api/connectors/ObjectStor
|
|
|
77
77
|
},
|
|
78
78
|
loadFeatures: async function () {
|
|
79
79
|
const features = await ObjectStorageConnector.loadFeatures();
|
|
80
|
-
|
|
80
|
+
const ui5Version = await getUi5Version();
|
|
81
|
+
features.isVariantAdaptationEnabled = !isLowerThanMinimalUi5Version(ui5Version, {
|
|
81
82
|
major: 1,
|
|
82
83
|
minor: 90
|
|
83
84
|
});
|
|
85
|
+
features.isCondensingEnabled = !isLowerThanMinimalUi5Version(ui5Version, {
|
|
86
|
+
major: 1,
|
|
87
|
+
minor: 108
|
|
88
|
+
});
|
|
84
89
|
const settings = getFlexSettings();
|
|
85
90
|
if (settings?.developerMode) {
|
|
86
91
|
features.isVariantAdaptationEnabled = false;
|
|
@@ -79,10 +79,17 @@ const connector = merge({}, ObjectStorageConnector, {
|
|
|
79
79
|
} as typeof ObjectStorageConnector.storage,
|
|
80
80
|
loadFeatures: async function () {
|
|
81
81
|
const features = await ObjectStorageConnector.loadFeatures();
|
|
82
|
-
|
|
82
|
+
const ui5Version = await getUi5Version();
|
|
83
|
+
features.isVariantAdaptationEnabled = !isLowerThanMinimalUi5Version(ui5Version, {
|
|
83
84
|
major: 1,
|
|
84
85
|
minor: 90
|
|
85
86
|
});
|
|
87
|
+
|
|
88
|
+
features.isCondensingEnabled = !isLowerThanMinimalUi5Version(ui5Version, {
|
|
89
|
+
major: 1,
|
|
90
|
+
minor: 108
|
|
91
|
+
});
|
|
92
|
+
|
|
86
93
|
const settings = getFlexSettings();
|
|
87
94
|
if (settings?.developerMode) {
|
|
88
95
|
features.isVariantAdaptationEnabled = false;
|
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.24.
|
|
12
|
+
"version": "0.24.5",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"qrcode": "1.5.4",
|
|
29
29
|
"@sap/bas-sdk": "3.13.3",
|
|
30
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
30
|
+
"@sap-ux/adp-tooling": "0.18.98",
|
|
31
31
|
"@sap-ux/btp-utils": "1.1.10",
|
|
32
32
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.22",
|
|
33
33
|
"@sap-ux/feature-toggle": "0.3.7",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"nock": "14.0.11",
|
|
54
54
|
"npm-run-all2": "8.0.4",
|
|
55
55
|
"supertest": "7.2.2",
|
|
56
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.19.
|
|
56
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.19.1",
|
|
57
57
|
"@sap-ux/axios-extension": "1.25.24",
|
|
58
58
|
"@sap-ux/store": "1.5.10",
|
|
59
59
|
"@sap-ux/ui5-info": "0.13.15"
|