@sap-ux/preview-middleware 0.24.2 → 0.24.4

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
- features.isVariantAdaptationEnabled = !isLowerThanMinimalUi5Version(await getUi5Version(), {
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
- features.isVariantAdaptationEnabled = !isLowerThanMinimalUi5Version(await getUi5Version(), {
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.2",
12
+ "version": "0.24.4",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,13 +27,13 @@
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.96",
30
+ "@sap-ux/adp-tooling": "0.18.97",
31
31
  "@sap-ux/btp-utils": "1.1.10",
32
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.22",
33
32
  "@sap-ux/feature-toggle": "0.3.7",
34
33
  "@sap-ux/logger": "0.8.2",
35
- "@sap-ux/project-access": "1.35.13",
36
- "@sap-ux/system-access": "0.6.66",
34
+ "@sap-ux/project-access": "1.35.14",
35
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.22",
36
+ "@sap-ux/system-access": "0.7.0",
37
37
  "@sap-ux/i18n": "0.3.9"
38
38
  },
39
39
  "devDependencies": {
@@ -53,10 +53,10 @@
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.0",
57
- "@sap-ux/axios-extension": "1.25.24",
56
+ "@sap-ux/ui5-info": "0.13.15",
58
57
  "@sap-ux/store": "1.5.10",
59
- "@sap-ux/ui5-info": "0.13.15"
58
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.19.1",
59
+ "@sap-ux/axios-extension": "1.25.24"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "express": "4"