@sap-ux/preview-middleware 0.20.58 → 0.20.60
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 +1 -1
- package/dist/base/config.d.ts +1 -1
- package/dist/base/flp.js +2 -2
- package/dist/base/test.js +2 -2
- package/dist/types/index.d.ts +3 -3
- package/package.json +6 -6
- package/templates/flp/cdm.html +3 -3
- package/templates/flp/sandbox.html +3 -3
- package/templates/flp/sandbox2.html +3 -3
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Array of additional application configurations:
|
|
|
68
68
|
| `framework` | `string` | mandatory | `undefined` | Currently `OPA5`, `QUnit` (only QUnit 2.3.2 provided as third-party module using [OpenUI5](https://github.com/SAP/openui5/blob/master/THIRDPARTY.txt)/SAPUI5) and `Testsuite` are supported. `Testsuite` will generate a testsuite for all configured frameworks that can be be used with a test runner (such as karma) |
|
|
69
69
|
| `path` | `string` | optional | `(calculated)` | The mount point to be used for test suite. By default, `/test/opaTests.qunit.html` is used for `OPA5`, `/test/unitTests.qunit.html` is used for `QUnit`, and `/test/testsuite.qunit.html` is used for `Testsuite` |
|
|
70
70
|
| `init` | `string` | optional | `undefined` | The mount point to be used for custom test runner script |
|
|
71
|
-
| `pattern` | `string` | optional | `(calculated)` | Optional glob pattern to find the tests. By default, `/test/**/*Journey
|
|
71
|
+
| `pattern` | `string` | optional | `(calculated)` | Optional glob pattern to find the tests. By default, `/test/**/*Journey.{js,ts}` is used for `OPA5` and `/test/**/*Test.{js,ts}` is used for `QUnit` (not applicable for `Testsuite`) |
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
## [Usage](#usage)
|
package/dist/base/config.d.ts
CHANGED
package/dist/base/flp.js
CHANGED
|
@@ -222,8 +222,8 @@ class FlpSandbox {
|
|
|
222
222
|
libs.push('sap.ui.rta');
|
|
223
223
|
config.ui5.libs = libs.join(',');
|
|
224
224
|
}
|
|
225
|
-
config.
|
|
226
|
-
layer: rta.layer,
|
|
225
|
+
config.flexSettings = {
|
|
226
|
+
layer: rta.layer ?? 'CUSTOMER_BASE',
|
|
227
227
|
...rta.options,
|
|
228
228
|
generator: editor.generator ?? defaultGenerator,
|
|
229
229
|
developerMode: editor.developerMode === true,
|
package/dist/base/test.js
CHANGED
|
@@ -6,13 +6,13 @@ const DEFAULTS = {
|
|
|
6
6
|
qunit: {
|
|
7
7
|
path: '/test/unitTests.qunit.html',
|
|
8
8
|
init: '/test/unitTests.qunit.js',
|
|
9
|
-
pattern: '/test/**/*Test
|
|
9
|
+
pattern: '/test/**/*Test.{js,ts}',
|
|
10
10
|
framework: 'QUnit'
|
|
11
11
|
},
|
|
12
12
|
opa5: {
|
|
13
13
|
path: '/test/opaTests.qunit.html',
|
|
14
14
|
init: '/test/opaTests.qunit.js',
|
|
15
|
-
pattern: '/test/**/*Journey
|
|
15
|
+
pattern: '/test/**/*Journey.{js,ts}',
|
|
16
16
|
framework: 'OPA5'
|
|
17
17
|
},
|
|
18
18
|
testsuite: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type RtaConfig = Omit<InternalRtaConfig, 'editors'> & {
|
|
|
29
29
|
endpoints: RtaEditor[];
|
|
30
30
|
};
|
|
31
31
|
interface InternalRtaConfig {
|
|
32
|
-
layer
|
|
32
|
+
layer?: UI5FlexLayer;
|
|
33
33
|
options?: {
|
|
34
34
|
[key: string]: unknown;
|
|
35
35
|
baseId?: string;
|
|
@@ -89,13 +89,13 @@ export type TestConfigDefaults = {
|
|
|
89
89
|
qunit: {
|
|
90
90
|
path: '/test/unitTests.qunit.html';
|
|
91
91
|
init: '/test/unitTests.qunit.js';
|
|
92
|
-
pattern: '/test/**/*Test
|
|
92
|
+
pattern: '/test/**/*Test.{js,ts}';
|
|
93
93
|
framework: 'QUnit';
|
|
94
94
|
};
|
|
95
95
|
opa5: {
|
|
96
96
|
path: '/test/opaTests.qunit.html';
|
|
97
97
|
init: '/test/opaTests.qunit.js';
|
|
98
|
-
pattern: '/test/**/*Journey
|
|
98
|
+
pattern: '/test/**/*Journey.{js,ts}';
|
|
99
99
|
framework: 'OPA5';
|
|
100
100
|
};
|
|
101
101
|
testsuite: {
|
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.20.
|
|
12
|
+
"version": "0.20.60",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"ejs": "3.1.10",
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
|
-
"@sap-ux/
|
|
28
|
+
"@sap-ux/adp-tooling": "0.14.43",
|
|
29
29
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.7",
|
|
30
|
-
"@sap-ux/feature-toggle": "0.3.0",
|
|
31
30
|
"@sap-ux/logger": "0.7.0",
|
|
31
|
+
"@sap-ux/btp-utils": "1.1.0",
|
|
32
32
|
"@sap-ux/project-access": "1.30.7",
|
|
33
|
-
"@sap-ux/
|
|
34
|
-
"@sap-ux/
|
|
33
|
+
"@sap-ux/feature-toggle": "0.3.0",
|
|
34
|
+
"@sap-ux/system-access": "0.6.10"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@sap-ux-private/playwright": "0.2.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"npm-run-all2": "6.2.0",
|
|
51
51
|
"supertest": "6.3.3",
|
|
52
52
|
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.14.11",
|
|
53
|
-
"@sap-ux/axios-extension": "1.22.3",
|
|
54
53
|
"@sap-ux/i18n": "0.3.1",
|
|
54
|
+
"@sap-ux/axios-extension": "1.22.3",
|
|
55
55
|
"@sap-ux/store": "1.1.2",
|
|
56
56
|
"@sap-ux/ui5-info": "0.12.0"
|
|
57
57
|
},
|
package/templates/flp/cdm.html
CHANGED
|
@@ -45,14 +45,14 @@
|
|
|
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-customInit='<%- init %>'<% } if (locals.
|
|
48
|
+
data-open-ux-preview-customInit='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
49
49
|
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
50
|
-
data-open-ux-preview-flex-settings='<%- JSON.stringify(
|
|
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)) %>'<% } %>
|
|
52
52
|
data-open-ux-preview-enhanced-homepage='true'>
|
|
53
53
|
</script>
|
|
54
54
|
|
|
55
|
-
<% if (locals.
|
|
55
|
+
<% if (locals.flexSettings && flexSettings?.developerMode) { %>
|
|
56
56
|
<!-- Hides Rta native toolbar -->
|
|
57
57
|
<style>
|
|
58
58
|
#shell-header, .sapUiRtaToolbar {
|
|
@@ -62,13 +62,13 @@
|
|
|
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-customInit='<%- init %>'<% } if (locals.
|
|
65
|
+
data-open-ux-preview-customInit='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
66
66
|
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
67
|
-
data-open-ux-preview-flex-settings='<%- JSON.stringify(
|
|
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)) %>'<% } %>>
|
|
69
69
|
</script>
|
|
70
70
|
|
|
71
|
-
<% if (locals.
|
|
71
|
+
<% if (locals.flexSettings && flexSettings?.developerMode) { %>
|
|
72
72
|
<!-- Hides Rta native toolbar -->
|
|
73
73
|
<style>
|
|
74
74
|
#shell-header, .sapUiRtaToolbar {
|
|
@@ -60,13 +60,13 @@
|
|
|
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-customInit='<%- init %>'<% } if (locals.
|
|
63
|
+
data-open-ux-preview-customInit='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
64
64
|
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
65
|
-
data-open-ux-preview-flex-settings='<%- JSON.stringify(
|
|
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)) %>'<% } %>>
|
|
67
67
|
</script>
|
|
68
68
|
|
|
69
|
-
<% if (locals.
|
|
69
|
+
<% if (locals.flexSettings && flexSettings?.developerMode) { %>
|
|
70
70
|
<!-- Hides Rta native toolbar -->
|
|
71
71
|
<style>
|
|
72
72
|
#shell-header, .sapUiRtaToolbar {
|