@fusion.dev/helix-docs 0.207.2 → 0.208.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/content/browser-support.mdx +26 -6
- package/content/color.mdx +11 -1
- package/content/intent-reference.mdx +1 -1
- package/content/metrics.mdx +242 -242
- package/content/surfaces-and-separation.mdx +2 -1
- package/dist/pages.generated.js +1 -1
- package/dist/reference.d.ts +5 -1
- package/dist/reference.js +7 -2
- package/dist/sources.generated.js +282 -251
- package/package.json +11 -11
package/dist/pages.generated.js
CHANGED
|
@@ -13,7 +13,7 @@ export const docPages = [
|
|
|
13
13
|
title: 'Angular',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
description: 'The browser features Helix uses, and the
|
|
16
|
+
description: 'The browser features Helix uses, and the browsers we test in.',
|
|
17
17
|
order: 5,
|
|
18
18
|
section: 'Getting started',
|
|
19
19
|
slug: 'browser-support',
|
package/dist/reference.d.ts
CHANGED
|
@@ -51,9 +51,13 @@ export interface ReferenceDeclaration {
|
|
|
51
51
|
cssStates?: ReferenceEntry[];
|
|
52
52
|
description?: string;
|
|
53
53
|
events?: ReferenceEntry[];
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* The family the element joins from another package, from `@family`, and
|
|
56
|
+
* its stability, from `@status`.
|
|
57
|
+
*/
|
|
55
58
|
helix?: {
|
|
56
59
|
family?: string;
|
|
60
|
+
status?: string;
|
|
57
61
|
};
|
|
58
62
|
members?: ReferenceMember[];
|
|
59
63
|
slots?: ReferenceEntry[];
|
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
|
}
|