@sap-ux/preview-middleware 0.23.74 → 0.23.76
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.
|
@@ -8,7 +8,7 @@ sap.ui.define([], function () {
|
|
|
8
8
|
static {
|
|
9
9
|
// eslint-disable-next-line fiori-custom/sap-no-dom-access, fiori-custom/sap-browser-api-warning
|
|
10
10
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
11
|
-
const features = bootstrapConfig?.
|
|
11
|
+
const features = bootstrapConfig?.dataset.openUxPreviewFeatures;
|
|
12
12
|
if (features) {
|
|
13
13
|
const featureToggles = JSON.parse(features);
|
|
14
14
|
for (const {
|
|
@@ -4,7 +4,7 @@ export class FeatureService {
|
|
|
4
4
|
static {
|
|
5
5
|
// eslint-disable-next-line fiori-custom/sap-no-dom-access, fiori-custom/sap-browser-api-warning
|
|
6
6
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
7
|
-
const features = bootstrapConfig?.
|
|
7
|
+
const features = bootstrapConfig?.dataset.openUxPreviewFeatures;
|
|
8
8
|
if (features) {
|
|
9
9
|
const featureToggles = JSON.parse(features) as { feature: string; isEnabled: boolean }[];
|
|
10
10
|
for (const { feature, isEnabled } of featureToggles) {
|
|
@@ -14,7 +14,7 @@ sap.ui.define([], function () {
|
|
|
14
14
|
function getFlexSettings() {
|
|
15
15
|
let result;
|
|
16
16
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
17
|
-
const flexSetting = bootstrapConfig?.
|
|
17
|
+
const flexSetting = bootstrapConfig?.dataset.openUxPreviewFlexSettings;
|
|
18
18
|
if (flexSetting) {
|
|
19
19
|
result = JSON.parse(flexSetting);
|
|
20
20
|
}
|
|
@@ -20,7 +20,7 @@ export const CHANGES_API_PATH = '/preview/api/changes';
|
|
|
20
20
|
export function getFlexSettings(): FlexSettings | undefined {
|
|
21
21
|
let result: FlexSettings | undefined;
|
|
22
22
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
23
|
-
const flexSetting = bootstrapConfig?.
|
|
23
|
+
const flexSetting = bootstrapConfig?.dataset.openUxPreviewFlexSettings;
|
|
24
24
|
if (flexSetting) {
|
|
25
25
|
result = JSON.parse(flexSetting) as FlexSettings;
|
|
26
26
|
}
|
package/dist/client/flp/init.js
CHANGED
|
@@ -362,11 +362,11 @@ sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-privat
|
|
|
362
362
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
363
363
|
if (bootstrapConfig) {
|
|
364
364
|
init({
|
|
365
|
-
appUrls: bootstrapConfig.
|
|
366
|
-
flex: bootstrapConfig.
|
|
367
|
-
customInit: bootstrapConfig.
|
|
368
|
-
enhancedHomePage: !!bootstrapConfig.
|
|
369
|
-
enableCardGenerator: !!bootstrapConfig.
|
|
365
|
+
appUrls: bootstrapConfig.dataset.openUxPreviewLibsManifests,
|
|
366
|
+
flex: bootstrapConfig.dataset.openUxPreviewFlexSettings,
|
|
367
|
+
customInit: bootstrapConfig.dataset.openUxPreviewCustomInit,
|
|
368
|
+
enhancedHomePage: !!bootstrapConfig.dataset.openUxPreviewEnhancedHomepage,
|
|
369
|
+
enableCardGenerator: !!bootstrapConfig.dataset.openUxPreviewEnableCardGenerator
|
|
370
370
|
}).catch(e => {
|
|
371
371
|
const error = getError(e);
|
|
372
372
|
Log.error('Sandbox initialization failed: ' + error.message);
|
package/dist/client/flp/init.ts
CHANGED
|
@@ -412,11 +412,11 @@ export async function init({
|
|
|
412
412
|
const bootstrapConfig = document.getElementById('sap-ui-bootstrap');
|
|
413
413
|
if (bootstrapConfig) {
|
|
414
414
|
init({
|
|
415
|
-
appUrls: bootstrapConfig.
|
|
416
|
-
flex: bootstrapConfig.
|
|
417
|
-
customInit: bootstrapConfig.
|
|
418
|
-
enhancedHomePage: !!bootstrapConfig.
|
|
419
|
-
enableCardGenerator: !!bootstrapConfig.
|
|
415
|
+
appUrls: bootstrapConfig.dataset.openUxPreviewLibsManifests,
|
|
416
|
+
flex: bootstrapConfig.dataset.openUxPreviewFlexSettings,
|
|
417
|
+
customInit: bootstrapConfig.dataset.openUxPreviewCustomInit,
|
|
418
|
+
enhancedHomePage: !!bootstrapConfig.dataset.openUxPreviewEnhancedHomepage,
|
|
419
|
+
enableCardGenerator: !!bootstrapConfig.dataset.openUxPreviewEnableCardGenerator
|
|
420
420
|
}).catch((e) => {
|
|
421
421
|
const error = getError(e);
|
|
422
422
|
Log.error('Sandbox initialization failed: ' + error.message);
|
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.23.
|
|
12
|
+
"version": "0.23.76",
|
|
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.12.0",
|
|
30
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
30
|
+
"@sap-ux/adp-tooling": "0.18.24",
|
|
31
31
|
"@sap-ux/btp-utils": "1.1.6",
|
|
32
|
-
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.4",
|
|
33
|
-
"@sap-ux/feature-toggle": "0.3.5",
|
|
34
32
|
"@sap-ux/logger": "0.7.2",
|
|
35
33
|
"@sap-ux/project-access": "1.32.16",
|
|
36
|
-
"@sap-ux/system-access": "0.6.
|
|
34
|
+
"@sap-ux/system-access": "0.6.34",
|
|
35
|
+
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.5",
|
|
36
|
+
"@sap-ux/feature-toggle": "0.3.5",
|
|
37
37
|
"@sap-ux/i18n": "0.3.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"nock": "13.4.0",
|
|
54
54
|
"npm-run-all2": "6.2.0",
|
|
55
55
|
"supertest": "7.1.4",
|
|
56
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.
|
|
57
|
-
"@sap-ux/axios-extension": "1.
|
|
56
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.6",
|
|
57
|
+
"@sap-ux/axios-extension": "1.25.0",
|
|
58
58
|
"@sap-ux/store": "1.4.0",
|
|
59
59
|
"@sap-ux/ui5-info": "0.13.4"
|
|
60
60
|
},
|