@fusion.dev/helix-docs 0.207.2 → 0.208.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/dist/reference.js CHANGED
@@ -46,9 +46,13 @@ export const referenceFamilies = (manifest) => {
46
46
  parts: [...parts].sort((a, b) => a.part === 'root' ? -1 : b.part === 'root' ? 1 : a.part.localeCompare(b.part)),
47
47
  }));
48
48
  };
49
- const element = (depth, declaration, part) => {
49
+ const element = (depth, declaration, part, family) => {
50
50
  const { attributes = [], cssParts = [], cssProperties = [], cssStates = [], description, events = [], members = [], slots = [], summary, superclass, tagName, } = declaration;
51
51
  const lines = [`${'#'.repeat(depth)} ${startCase(part)} (\`${tagName}\`)`, ''];
52
+ const status = declaration.helix?.status;
53
+ if (status && status !== family) {
54
+ lines.push(`**Status:** ${status}`, '');
55
+ }
52
56
  if (summary) {
53
57
  lines.push(summary, '');
54
58
  }
@@ -130,8 +134,9 @@ export const reference = (manifest, options = {}) => {
130
134
  if (usage.length > 0) {
131
135
  lines.push(`${'#'.repeat(depth)} Usage`, '', '```js', ...usage, '```', '');
132
136
  }
137
+ const status = parts.find((entry) => entry.part === 'root')?.declaration.helix?.status;
133
138
  for (const { declaration, part } of parts) {
134
- lines.push(...element(depth, declaration, part));
139
+ lines.push(...element(depth, declaration, part, status));
135
140
  }
136
141
  lines.push(...shown(depth, family, options.examples?.[family] ?? []));
137
142
  }