@ui5/webcomponents-tools 2.19.0-rc.3 → 2.19.1
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,22 @@
|
|
|
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.19.1](https://github.com/UI5/webcomponents/compare/v2.19.0...v2.19.1) (2026-02-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.19.0](https://github.com/UI5/webcomponents/compare/v2.19.0-rc.3...v2.19.0) (2026-02-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [2.19.0-rc.3](https://github.com/UI5/webcomponents/compare/v2.19.0-rc.2...v2.19.0-rc.3) (2026-02-05)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
getTypeRefs,
|
|
18
18
|
normalizeDescription,
|
|
19
19
|
formatArrays,
|
|
20
|
+
formatSlotTypes,
|
|
20
21
|
isClass,
|
|
21
22
|
normalizeTagType,
|
|
22
23
|
logDocumentationError,
|
|
@@ -195,6 +196,7 @@ function processClass(ts, classNode, moduleDoc) {
|
|
|
195
196
|
|
|
196
197
|
if (member.type?.text) {
|
|
197
198
|
member.type.text = formatArrays(member.type.text);
|
|
199
|
+
member.type.text = formatSlotTypes(member.type.text);
|
|
198
200
|
}
|
|
199
201
|
|
|
200
202
|
if (member.type && typeRefs.length) {
|
package/lib/cem/utils.mjs
CHANGED
|
@@ -396,7 +396,12 @@ const displayDocumentationErrors = () => {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
const formatArrays = (typeText) => {
|
|
399
|
-
return typeText?.replaceAll(/(\S+)\[\]/g, "Array<$1>")
|
|
399
|
+
return typeText?.replaceAll(/(\S+)\[\]/g, "Array<$1>");
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// Convert Slot<T> and DefaultSlot<T> to Array<T> (the array is built into these types)
|
|
403
|
+
const formatSlotTypes = (typeText) => {
|
|
404
|
+
return typeText?.replace(/(Default)?Slot<(.+?)>/g, 'Array<$2>');
|
|
400
405
|
}
|
|
401
406
|
|
|
402
407
|
export {
|
|
@@ -415,6 +420,7 @@ export {
|
|
|
415
420
|
getTypeRefs,
|
|
416
421
|
normalizeDescription,
|
|
417
422
|
formatArrays,
|
|
423
|
+
formatSlotTypes,
|
|
418
424
|
isClass,
|
|
419
425
|
normalizeTagType,
|
|
420
426
|
displayDocumentationErrors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.1",
|
|
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": "
|
|
85
|
+
"gitHead": "438d5f72841919b159e90373fb9766be19999fde"
|
|
86
86
|
}
|