@ui5/webcomponents-tools 2.14.0-rc.0 → 2.14.0-rc.2
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/CHANGELOG.md
CHANGED
@@ -3,6 +3,25 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [2.14.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.1...v2.14.0-rc.2) (2025-08-21)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **framework:** use font-face declarations from theming-base-content ([#12144](https://github.com/SAP/ui5-webcomponents/issues/12144)) ([50deee9](https://github.com/SAP/ui5-webcomponents/commit/50deee9b9f512d3bd506de1648d3dc8f145a7d88))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
# [2.14.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.0...v2.14.0-rc.1) (2025-08-14)
|
18
|
+
|
19
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
# [2.14.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0...v2.14.0-rc.0) (2025-08-07)
|
7
26
|
|
8
27
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
@@ -2,6 +2,8 @@ const fs = require("fs");
|
|
2
2
|
const prompts = require("prompts");
|
3
3
|
const Component = require("./Component.js");
|
4
4
|
const ComponentTemplate= require("./ComponentTemplate.js");
|
5
|
+
const dotenv = require('dotenv');
|
6
|
+
dotenv.config();
|
5
7
|
|
6
8
|
/**
|
7
9
|
* Hyphanates the given PascalCase string and adds prefix, f.e.:
|
@@ -11,7 +13,7 @@ const ComponentTemplate= require("./ComponentTemplate.js");
|
|
11
13
|
const hyphaneteComponentName = (componentName) => {
|
12
14
|
const result = componentName.replace(/([a-z])([A-Z])/g, '$1-$2' ).toLowerCase();
|
13
15
|
|
14
|
-
return
|
16
|
+
return `${process.env.UI5_TAG_NAME_PREFIX ?? "my"}-${result}`;
|
15
17
|
};
|
16
18
|
|
17
19
|
/**
|
@@ -62,7 +64,7 @@ const generateFiles = (componentName, tagName, library, packageName) => {
|
|
62
64
|
const filePaths = {
|
63
65
|
"main": `./src/${componentName}.ts`,
|
64
66
|
"css": `./src/themes/${componentName}.css`,
|
65
|
-
"template": `./src/${componentName}Template.tsx`,
|
67
|
+
"template": `./src/${componentName}${process.env.UI5_TEMPLATE_FILENAME_SUFFIX ?? "Template"}.tsx`,
|
66
68
|
};
|
67
69
|
|
68
70
|
fs.writeFileSync(filePaths.main, Component(componentName, tagName, library, packageName), { flag: "wx+" });
|
@@ -21,6 +21,13 @@ const removeDuplicateSelectors = async (text) => {
|
|
21
21
|
return result.css;
|
22
22
|
}
|
23
23
|
|
24
|
+
const processFontFace = (text) => {
|
25
|
+
const declarationExpr = /@font-face\s*{[^}]*}/g;
|
26
|
+
|
27
|
+
// remove declarations from source, they are extracted in base package
|
28
|
+
return text.replaceAll(declarationExpr, '');
|
29
|
+
}
|
30
|
+
|
24
31
|
let scopingPlugin = {
|
25
32
|
name: 'scoping',
|
26
33
|
setup(build) {
|
@@ -28,8 +35,11 @@ let scopingPlugin = {
|
|
28
35
|
|
29
36
|
build.onEnd(result => {
|
30
37
|
result.outputFiles.forEach(async f => {
|
38
|
+
// remove font-face declarations
|
39
|
+
let newText = processFontFace(f.text);
|
40
|
+
|
31
41
|
// remove duplicate selectors
|
32
|
-
|
42
|
+
newText = await removeDuplicateSelectors(newText);
|
33
43
|
|
34
44
|
// strip unnecessary theming-base-content
|
35
45
|
newText = stripThemingBaseContent(newText);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.14.0-rc.
|
3
|
+
"version": "2.14.0-rc.2",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -41,6 +41,7 @@
|
|
41
41
|
"concurrently": "^6.0.0",
|
42
42
|
"cross-env": "^7.0.3",
|
43
43
|
"custom-element-jet-brains-integration": "^1.4.4",
|
44
|
+
"dotenv": "^16.5.0",
|
44
45
|
"escodegen": "^2.0.0",
|
45
46
|
"eslint": "^7.22.0",
|
46
47
|
"eslint-config-airbnb-base": "^14.2.1",
|
@@ -82,5 +83,5 @@
|
|
82
83
|
"esbuild": "^0.25.0",
|
83
84
|
"yargs": "^17.5.1"
|
84
85
|
},
|
85
|
-
"gitHead": "
|
86
|
+
"gitHead": "5fe95abc08bc7cfd2d061e31cda5662ad37db4f6"
|
86
87
|
}
|