@sap-ux/preview-middleware 0.16.74 → 0.16.75
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/README.md +5 -1
- package/dist/base/flp.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ server:
|
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
### Runtime Adaptation Support
|
|
117
|
-
If you want to create variants as part of your application, then you can create an additional mount point allowing to
|
|
117
|
+
If you want to create variants as part of your application, then you can create an additional mount point allowing to create and edit variants.
|
|
118
118
|
```Yaml
|
|
119
119
|
server:
|
|
120
120
|
customMiddleware:
|
|
@@ -126,6 +126,10 @@ server:
|
|
|
126
126
|
editors:
|
|
127
127
|
- path: /test/variant-editor.html
|
|
128
128
|
```
|
|
129
|
+
This mount path can be used with a run script that looks as follows.
|
|
130
|
+
```Json
|
|
131
|
+
"start-variants-management": "ui5 serve --open \"test/variant-editor.html.html?fiori-tools-rta-mode=true&sap-ui-rta-skip-flex-validation=true#app-preview\""
|
|
132
|
+
```
|
|
129
133
|
|
|
130
134
|
### Test Suites
|
|
131
135
|
If you want to also generate generic test suites and test runners for QUnit or OPA5 tests then you can use the following minimum configurations
|
package/dist/base/flp.js
CHANGED
|
@@ -133,7 +133,7 @@ class FlpSandbox {
|
|
|
133
133
|
addEditorRoutes(rta) {
|
|
134
134
|
const cpe = (0, path_1.dirname)(require.resolve('@sap-ux/control-property-editor-sources'));
|
|
135
135
|
for (const editor of rta.editors) {
|
|
136
|
-
let previewUrl = editor.path
|
|
136
|
+
let previewUrl = editor.path.startsWith('/') ? editor.path : `/${editor.path}`;
|
|
137
137
|
if (editor.developerMode) {
|
|
138
138
|
previewUrl = `${previewUrl}.inner.html`;
|
|
139
139
|
editor.pluginScript ??= 'open/ux/preview/client/cpe/init';
|
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.16.
|
|
12
|
+
"version": "0.16.75",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"@sap-ux/logger": "0.6.0",
|
|
29
29
|
"@sap-ux/adp-tooling": "0.12.52",
|
|
30
|
-
"@sap-ux/
|
|
30
|
+
"@sap-ux/project-access": "1.27.4",
|
|
31
31
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.5.11",
|
|
32
|
-
"@sap-ux/
|
|
32
|
+
"@sap-ux/btp-utils": "0.15.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/ejs": "3.1.2",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@sap-ux-private/playwright": "0.1.0",
|
|
47
47
|
"dotenv": "16.3.1",
|
|
48
48
|
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.10",
|
|
49
|
-
"@sap-ux/axios-extension": "1.16.6",
|
|
50
49
|
"@sap-ux/store": "0.9.1",
|
|
51
|
-
"@sap-ux/
|
|
52
|
-
"@sap-ux/ui5-info": "0.8.1"
|
|
50
|
+
"@sap-ux/axios-extension": "1.16.6",
|
|
51
|
+
"@sap-ux/ui5-info": "0.8.1",
|
|
52
|
+
"@sap-ux/i18n": "0.2.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"express": "4"
|