@sap-ux/preview-middleware 0.16.74 → 0.16.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.
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 created and edit variants.
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';
@@ -20,7 +20,7 @@ ADP_ADD_FRAGMENT_DIALOG_AGGREGATION_LABEL = Target Aggregation
20
20
  ADP_ADD_FRAGMENT_DIALOG_INDEX_LABEL = Index
21
21
  ADP_ADD_FRAGMENT_DIALOG_FRAGMENT_NAME_LABEL = Fragment Name
22
22
  ADP_ADD_FRAGMENT_NOTIFICATION = Note: The "{0}.fragment.xml" fragment will be created once you save the change.
23
- ADP_ADD_FRAGMENT_WITH_TEMPLATE_NOTIFICATION = Note: The "{0}.fragment.xml" fragment will be created once you save the changes. After saving, reload the editor to see the change in UI.
23
+ ADP_ADD_FRAGMENT_WITH_TEMPLATE_NOTIFICATION = Note: The "{0}.fragment.xml" fragment will be created once you save the changes.
24
24
  ADP_SYNC_VIEWS_MESSAGE = Synchronous views are detected for this application. Controller extensions are not supported for such views and will be disabled.
25
25
  ADP_REUSE_COMPONENTS_MESSAGE = Reuse components are detected for some views in this application. Controller extensions and adding fragments are not supported for such views and will be disabled.
26
26
 
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.74",
12
+ "version": "0.16.76",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -26,9 +26,9 @@
26
26
  "mem-fs": "2.1.0",
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "@sap-ux/logger": "0.6.0",
29
- "@sap-ux/adp-tooling": "0.12.52",
30
29
  "@sap-ux/btp-utils": "0.15.2",
31
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.5.11",
30
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.5.12",
31
+ "@sap-ux/adp-tooling": "0.12.52",
32
32
  "@sap-ux/project-access": "1.27.4"
33
33
  },
34
34
  "devDependencies": {
@@ -45,11 +45,11 @@
45
45
  "supertest": "6.3.3",
46
46
  "@sap-ux-private/playwright": "0.1.0",
47
47
  "dotenv": "16.3.1",
48
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.10",
48
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.11",
49
49
  "@sap-ux/axios-extension": "1.16.6",
50
50
  "@sap-ux/store": "0.9.1",
51
- "@sap-ux/i18n": "0.2.0",
52
- "@sap-ux/ui5-info": "0.8.1"
51
+ "@sap-ux/ui5-info": "0.8.1",
52
+ "@sap-ux/i18n": "0.2.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "express": "4"