@ui5/webcomponents-tools 2.9.0-rc.0 → 2.9.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.9.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.1...v2.9.0-rc.2) (2025-03-27)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-tools
9
+
10
+
11
+
12
+
13
+
14
+ # [2.9.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.0...v2.9.0-rc.1) (2025-03-20)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **tools:** fix icon imports to i18n texts ([#11091](https://github.com/SAP/ui5-webcomponents/issues/11091)) ([472ffdc](https://github.com/SAP/ui5-webcomponents/commit/472ffdcd602a4da53a839829e5a5bcf017ff618c))
20
+
21
+
22
+
23
+
24
+
6
25
  # [2.9.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.1-rc.0...v2.9.0-rc.0) (2025-03-13)
7
26
 
8
27
  **Note:** Version bump only for package @ui5/webcomponents-tools
@@ -21,8 +21,8 @@ export default "${collection}/${name}";
21
21
  export { pathData, ltr, accData };`;
22
22
 
23
23
 
24
- const iconAccTemplate = (name, pathData, ltr, accData, collection, packageName) => `import { registerIcon } from "@ui5/webcomponents-base/dist/asset-registries/Icons.js";
25
- import { ${accData.key} } from "../generated/i18n/i18n-defaults.js";
24
+ const iconAccTemplate = (name, pathData, ltr, accData, collection, packageName, versioned) => `import { registerIcon } from "@ui5/webcomponents-base/dist/asset-registries/Icons.js";
25
+ import { ${accData.key} } from "${versioned ? "../" : "./"}generated/i18n/i18n-defaults.js";
26
26
 
27
27
  const name = "${name}";
28
28
  const pathData = "${pathData}";
@@ -84,8 +84,9 @@ const createIcons = async (file) => {
84
84
  const acc = iconData.acc;
85
85
  const packageName = json.packageName;
86
86
  const collection = json.collection;
87
+ const versioned = json.version;
87
88
 
88
- const content = acc ? iconAccTemplate(name, pathData, ltr, acc, collection, packageName) : iconTemplate(name, pathData, ltr, collection, packageName);
89
+ const content = acc ? iconAccTemplate(name, pathData, ltr, acc, collection, packageName, versioned) : iconTemplate(name, pathData, ltr, collection, packageName);
89
90
 
90
91
  promises.push(fs.writeFile(path.join(destDir, `${name}.js`), content));
91
92
  promises.push(fs.writeFile(path.join(destDir, `${name}.svg`), svgTemplate(pathData)));
@@ -96,7 +97,7 @@ const createIcons = async (file) => {
96
97
  // - "@ui5/ui5-webcomponents-icons/dist/v5/accept.js"
97
98
  // - "@ui5/ui5-webcomponents-icons/dist/v4/accept.js"
98
99
 
99
- if (json.version) {
100
+ if (versioned) {
100
101
  // The exported value from the top level (unversioned) icon module depends on whether the collection is the default,
101
102
  // to add or not the collection name to the exported value:
102
103
  // For the default collection (SAPIcons) we export just the icon name - "export default { 'accept' }"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "2.9.0-rc.0",
3
+ "version": "2.9.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",
@@ -82,5 +82,5 @@
82
82
  "esbuild": "^0.25.0",
83
83
  "yargs": "^17.5.1"
84
84
  },
85
- "gitHead": "7b5afeeb1f94c3ad54b2e79ac79d0d9e36f0cb7d"
85
+ "gitHead": "17eb194560a6db21bab9da6eb69b599ac504fd78"
86
86
  }