@sap-ux/preview-middleware 0.23.80 → 0.23.82
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.js
CHANGED
|
@@ -274,10 +274,15 @@ function createFlpTemplateConfig(config, manifest, resources = {}) {
|
|
|
274
274
|
const id = manifest['sap.app']?.id ?? '';
|
|
275
275
|
const ns = id.replace(/\./g, '/');
|
|
276
276
|
const basePath = node_path_1.posix.relative(node_path_1.posix.dirname(config.path), '/') ?? '.';
|
|
277
|
+
let initPath;
|
|
278
|
+
if (config.init) {
|
|
279
|
+
const separator = config.init.startsWith('/') ? '' : '/';
|
|
280
|
+
initPath = `${ns}${separator}${config.init}`;
|
|
281
|
+
}
|
|
277
282
|
return {
|
|
278
283
|
basePath: basePath,
|
|
279
284
|
apps: {},
|
|
280
|
-
init:
|
|
285
|
+
init: initPath,
|
|
281
286
|
ui5: {
|
|
282
287
|
libs: getUI5Libs(manifest),
|
|
283
288
|
theme: ui5Theme,
|
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.82",
|
|
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.12.0",
|
|
30
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
30
|
+
"@sap-ux/adp-tooling": "0.18.29",
|
|
31
31
|
"@sap-ux/btp-utils": "1.1.6",
|
|
32
32
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.6",
|
|
33
33
|
"@sap-ux/feature-toggle": "0.3.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
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.
|
|
56
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.8",
|
|
57
57
|
"@sap-ux/axios-extension": "1.25.3",
|
|
58
58
|
"@sap-ux/store": "1.4.2",
|
|
59
59
|
"@sap-ux/ui5-info": "0.13.6"
|
package/templates/flp/cdm.ejs
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
46
46
|
<% } %>
|
|
47
47
|
data-sap-ui-oninit="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
48
|
-
data-open-ux-preview-
|
|
48
|
+
data-open-ux-preview-custom-init='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
49
49
|
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
50
50
|
data-open-ux-preview-flex-settings='<%- JSON.stringify(flexSettings) %>'<% } if (locals.locateReuseLibsScript) { %>
|
|
51
51
|
data-open-ux-preview-libs-manifests='<%- JSON.stringify(Object.values(apps).map(app => app.url)) %>'<% } %>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
63
63
|
<% } %>
|
|
64
64
|
data-sap-ui-oninit="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
65
|
-
data-open-ux-preview-
|
|
65
|
+
data-open-ux-preview-custom-init='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
66
66
|
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
67
67
|
data-open-ux-preview-flex-settings='<%- JSON.stringify(flexSettings) %>'<% } if (locals.locateReuseLibsScript) { %>
|
|
68
68
|
data-open-ux-preview-libs-manifests='<%- JSON.stringify(Object.values(apps).map(app => app.url)) %>'<% } %>>
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
61
61
|
<% } %>
|
|
62
62
|
data-sap-ui-on-init="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
63
|
-
data-open-ux-preview-
|
|
63
|
+
data-open-ux-preview-custom-init='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
64
64
|
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
65
65
|
data-open-ux-preview-flex-settings='<%- JSON.stringify(flexSettings) %>'<% } if (locals.locateReuseLibsScript) { %>
|
|
66
66
|
data-open-ux-preview-libs-manifests='<%- JSON.stringify(Object.values(apps).map(app => app.url)) %>'<% } %>>
|