@sap-ux/preview-middleware 0.19.14 → 0.19.16
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.d.ts +2 -2
- package/dist/base/test.d.ts +2 -2
- package/dist/types/index.d.ts +18 -11
- package/package.json +3 -3
package/dist/base/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolsLogger, type Logger } from '@sap-ux/logger';
|
|
2
|
-
import type { App, DefaultFlpPath, DefaultIntent, FlpConfig, Intent,
|
|
2
|
+
import type { App, DefaultFlpPath, DefaultIntent, FlpConfig, Intent, CompleteTestConfig, MiddlewareConfig, RtaConfig, TestConfig } from '../types';
|
|
3
3
|
import { type Manifest, type UI5FlexLayer } from '@sap-ux/project-access';
|
|
4
4
|
import { type Editor } from 'mem-fs-editor';
|
|
5
5
|
import type { MergedAppDescriptor } from '@sap-ux/axios-extension';
|
|
@@ -138,7 +138,7 @@ export declare function createFlpTemplateConfig(config: FlpConfig, manifest: Par
|
|
|
138
138
|
* @param theme theme to be used
|
|
139
139
|
* @returns configuration object for the test template
|
|
140
140
|
*/
|
|
141
|
-
export declare function createTestTemplateConfig(config:
|
|
141
|
+
export declare function createTestTemplateConfig(config: CompleteTestConfig, id: string, theme: string): TestTemplateConfig;
|
|
142
142
|
/**
|
|
143
143
|
* Returns the preview paths.
|
|
144
144
|
*
|
package/dist/base/test.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Resource } from '@ui5/fs';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CompleteTestConfig, TestConfig } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Merge the given test configuration with the default values.
|
|
5
5
|
*
|
|
6
6
|
* @param config test configuration
|
|
7
7
|
* @returns merged test configuration
|
|
8
8
|
*/
|
|
9
|
-
export declare function mergeTestConfigDefaults(config: TestConfig):
|
|
9
|
+
export declare function mergeTestConfigDefaults(config: TestConfig): CompleteTestConfig;
|
|
10
10
|
/**
|
|
11
11
|
* Generate a list of imports from a list of resources.
|
|
12
12
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -60,24 +60,31 @@ export interface FlpConfig {
|
|
|
60
60
|
*/
|
|
61
61
|
enhancedHomePage?: boolean;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Configration for the virtual test pages endpoints.
|
|
65
|
+
*/
|
|
66
|
+
export interface TestConfig {
|
|
67
|
+
framework: 'OPA5' | 'QUnit' | 'Testsuite';
|
|
64
68
|
/**
|
|
65
|
-
*
|
|
69
|
+
* Path hosting the main test page
|
|
66
70
|
*/
|
|
67
|
-
path
|
|
71
|
+
path?: string;
|
|
68
72
|
/**
|
|
69
|
-
*
|
|
73
|
+
* Path to the init script
|
|
70
74
|
*/
|
|
71
|
-
init
|
|
75
|
+
init?: string;
|
|
72
76
|
/**
|
|
73
|
-
*
|
|
77
|
+
* Pattern to match the test files
|
|
74
78
|
*/
|
|
75
|
-
pattern
|
|
79
|
+
pattern?: string;
|
|
76
80
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
export type
|
|
81
|
+
/**
|
|
82
|
+
* Test configuration that has been enriched with the defaults in case of missing values.
|
|
83
|
+
*/
|
|
84
|
+
export type CompleteTestConfig = Required<TestConfig>;
|
|
85
|
+
/**
|
|
86
|
+
* Test configuration defaults.
|
|
87
|
+
*/
|
|
81
88
|
export type TestConfigDefaults = {
|
|
82
89
|
qunit: {
|
|
83
90
|
path: '/test/unitTests.qunit.html';
|
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.19.
|
|
12
|
+
"version": "0.19.16",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"ejs": "3.1.10",
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
|
-
"@sap-ux/adp-tooling": "0.13.
|
|
29
|
-
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.2",
|
|
28
|
+
"@sap-ux/adp-tooling": "0.13.25",
|
|
30
29
|
"@sap-ux/btp-utils": "1.0.2",
|
|
31
30
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
31
|
+
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.2",
|
|
32
32
|
"@sap-ux/logger": "0.6.0",
|
|
33
33
|
"@sap-ux/project-access": "1.29.18",
|
|
34
34
|
"@sap-ux/system-access": "0.5.34"
|