Skip to content

Commit ba3cae7

Browse files
TarunAdobeRajdeepc
andauthored
chore: update theme docs (#5837)
* chore: update theme docs * chore: remove system context resolver readme * chore: review updates * chore: treat attributes as public unless explicitly private * chore: update theme doc Co-authored-by: Rajdeep Chandra <[email protected]> * chore: update theme doc structure --------- Co-authored-by: Rajdeep Chandra <[email protected]>
1 parent 7af5e8f commit ba3cae7

File tree

2 files changed

+104
-253
lines changed

2 files changed

+104
-253
lines changed

1st-gen/projects/documentation/scripts/component-template-parts.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,21 @@ ${
157157
tag.members.length &&
158158
tag.attributes.filter((attribute) => {
159159
const member = tag.members.find((member) => {
160-
return member.name === attribute.name;
160+
const attrName = attribute.fieldName || attribute.name;
161+
return member.name === attrName;
161162
});
162-
return member?.privacy === 'public';
163+
// Treat missing privacy as public; skip only explicit private
164+
return member && member.privacy !== 'private';
163165
}).length
164166
? buildTable(
165167
'Attributes and Properties',
166168
tag.attributes.filter((attribute) => {
167169
const member = tag.members.find((member) => {
168-
return member.name === attribute.fieldName;
170+
const attrName = attribute.fieldName || attribute.name;
171+
return member.name === attrName;
169172
});
170-
return member?.privacy === 'public';
173+
// Treat missing privacy as public; skip only explicit private
174+
return !!member && member.privacy !== 'private';
171175
}),
172176
['Property', 'Attribute', 'Type', 'Default', 'Description'],
173177
[

0 commit comments

Comments
 (0)