Prerequisites
Stencil Version
4.x (observed in latest version)
Current Behavior
When using a camelCase name for a shadow part (e.g. part="clickTarget"), the generated documentation (readme.md) contains incorrect and inconsistent entries.
In the "Shadow Parts" section, multiple variants of the same part name are generated:
"clickTarget" (as defined)
"clicktarget" (flattened/lowercase, incorrect)
Expected Behavior
- The documentation should only include the explicitly defined part name.
- No additional or transformed variants (e.g. clicktarget) should be generated.
- The output should be consistent and accurately reflect the public API.
System Info
Steps to Reproduce
- Create a Stencil component with a shadow part using camelCase:
<a part="clickTarget"></a>
- Add JSDoc:
/**
* @part clickTarget - description
*/
-
Build the project and generate docs (readme.md)
-
Inspect the "Shadow Parts" section in readme.md
Code Reproduction URL
https://codesandbox.io/p/github/johnjenkins/stencil-starter/master
Additional Information
No response
Prerequisites
Stencil Version
4.x (observed in latest version)
Current Behavior
When using a camelCase name for a shadow part (e.g. part="clickTarget"), the generated documentation (readme.md) contains incorrect and inconsistent entries.
In the "Shadow Parts" section, multiple variants of the same part name are generated:
"clickTarget" (as defined)
"clicktarget" (flattened/lowercase, incorrect)
Expected Behavior
System Info
Steps to Reproduce
<a part="clickTarget"></a>Build the project and generate docs (readme.md)
Inspect the "Shadow Parts" section in readme.md
Code Reproduction URL
https://codesandbox.io/p/github/johnjenkins/stencil-starter/master
Additional Information
No response