@ui5/webcomponents-tools 2.24.0-rc.2 → 2.24.0

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.24.0](https://github.com/UI5/webcomponents/compare/v2.24.0-rc.3...v2.24.0) (2026-07-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cem:** handle cssStates and cssParts for classes with leading event decorators ([#13769](https://github.com/UI5/webcomponents/issues/13769)) ([a4ba718](https://github.com/UI5/webcomponents/commit/a4ba7186c16239b1bca2a695634072af6d983bb9))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.24.0-rc.3](https://github.com/UI5/webcomponents/compare/v2.24.0-rc.2...v2.24.0-rc.3) (2026-06-25)
18
+
19
+ **Note:** Version bump only for package @ui5/webcomponents-tools
20
+
21
+
22
+
23
+
24
+
6
25
  # [2.24.0-rc.2](https://github.com/UI5/webcomponents/compare/v2.24.0-rc.1...v2.24.0-rc.2) (2026-06-25)
7
26
 
8
27
  **Note:** Version bump only for package @ui5/webcomponents-tools
@@ -146,6 +146,22 @@ function processClass(ts, classNode, moduleDoc) {
146
146
 
147
147
  if (!currClass._ui5implements.length) delete currClass._ui5implements;
148
148
 
149
+ const cssStateTags = findAllTags(classParsedJsDoc, ["cssState", "cssstate"]);
150
+ if (cssStateTags.length) {
151
+ currClass.cssStates = cssStateTags.map(tag => ({
152
+ description: normalizeDescription(tag.description),
153
+ name: tag.name,
154
+ }));
155
+ }
156
+
157
+ const cssPartTags = findAllTags(classParsedJsDoc, "csspart");
158
+ if (cssPartTags.length) {
159
+ currClass.cssParts = cssPartTags.map(tag => ({
160
+ description: normalizeDescription(tag.description),
161
+ name: tag.name,
162
+ }));
163
+ }
164
+
149
165
  // Slots
150
166
 
151
167
  // Slots without accessort (defined in class comment)
@@ -176,6 +192,10 @@ function processClass(ts, classNode, moduleDoc) {
176
192
  currClass.events = findAllDecorators(classNode, ["event", "eventStrict"])
177
193
  ?.map(event => processEvent(ts, event, classNode, moduleDoc));
178
194
 
195
+ if (currClass.events?.length && !currClass.customElement) {
196
+ logDocumentationError(moduleDoc.path, `Class '${className}' uses @event/@eventStrict but does not have @customElement decorator or extend UI5Element`);
197
+ }
198
+
179
199
  const filename = classNode.getSourceFile().fileName;
180
200
  const sourceFile = typeProgram.getSourceFile(filename);
181
201
  const tsProgramClassNode = sourceFile.statements.find(statement => ts.isClassDeclaration(statement) && statement.name?.text === classNode.name?.text);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "2.24.0-rc.2",
3
+ "version": "2.24.0",
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": "18349a587d0be176c8a8ae7b717fac3cd887f285"
85
+ "gitHead": "0823d74956236280e547b9f58bd06ff736180396"
86
86
  }