@fusion.dev/helix-diagnostics 0.215.2 → 0.216.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/README.md +3 -0
- package/dist/identity.js +4 -0
- package/dist/report.d.ts +1 -1
- package/dist/report.js +2 -0
- package/dist/rules.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -343,6 +343,8 @@ works on it:
|
|
|
343
343
|
| `unknown-tag` | error | A rule or an element names a tag no manifest lists |
|
|
344
344
|
| `unknown-event` | error | A React `on` prop on a Helix element names an event the element does not dispatch, so the handler never runs. Found by `helix scan`, from the templates |
|
|
345
345
|
| `unimported-tag` | warn | An element is written and nothing in the project imports the entry that registers it, so the browser draws an unknown element. Found by `helix scan`, from the imports |
|
|
346
|
+
| `served-column-width` | warn | A column in a table that serves its rows sets `width` and the table sets no `columns`, so the columns move to their widths when the table upgrades. Write the widths as `columns` on the table. Found by `helix scan` |
|
|
347
|
+
| `unlinked-trigger` | warn | A tooltip's `for` names a plain element in the same file that does not name the tooltip in `aria-describedby`, so the page at rest meets the trigger undescribed. Give the tooltip an `id` and name it on the trigger. Found by `helix scan`; the runtime reports the same fault on first open |
|
|
346
348
|
| `disabled-attribute` | error | A rule styles a form control's `[disabled]`, which a control disabled by a `<fieldset disabled>` does not carry. Write `:disabled`. Found by `helix scan` |
|
|
347
349
|
| `primitive-token` | error | A rule reads a `--_helix-` primitive, which is internal to `@fusion.dev/helix-styles`. Found by `helix scan` |
|
|
348
350
|
| `unknown-token` | error | A rule reads or sets a `--helix-` name the token set does not have, so it falls back silently. Found by `helix scan` |
|
|
@@ -423,6 +425,7 @@ diagnostics counts it by kind and tag. None fails a CI job.
|
|
|
423
425
|
| `removed-callback` | A React prop is a callback that was removed and never ran from JSX. Development builds only (the `development` export condition) |
|
|
424
426
|
| `served-rows-differ` | A data table's first drawn page differs from the rows the page served, so the rows change once it draws. Development builds only (the `development` export condition) |
|
|
425
427
|
| `solid-handler-syntax` | A React prop uses Solid's `on:` syntax. Development builds only (the `development` export condition) |
|
|
428
|
+
| `stale-worker` | A page's copy of the sandbox's compiler worker file is from another release, so its messages may not match |
|
|
426
429
|
| `stencil-regions-unused` | A graph stencil's regions could not be used |
|
|
427
430
|
| `stencil-without-inside` | A graph stencil has no inside to place the notes in |
|
|
428
431
|
| `too-many-rows` | A data table is drawing more rows at once than it stays responsive to |
|
package/dist/identity.js
CHANGED
|
@@ -9,6 +9,7 @@ const CATEGORY = {
|
|
|
9
9
|
'native-element': 'guideline',
|
|
10
10
|
'nested-interactive': 'markup',
|
|
11
11
|
'primitive-token': 'styling',
|
|
12
|
+
'served-column-width': 'markup',
|
|
12
13
|
'unforwarded-part': 'styling',
|
|
13
14
|
'unimported-tag': 'integrity',
|
|
14
15
|
'unknown-attribute': 'markup',
|
|
@@ -16,6 +17,7 @@ const CATEGORY = {
|
|
|
16
17
|
'unknown-slot': 'markup',
|
|
17
18
|
'unknown-tag': 'integrity',
|
|
18
19
|
'unknown-token': 'styling',
|
|
20
|
+
'unlinked-trigger': 'markup',
|
|
19
21
|
'unreflected-attribute': 'styling',
|
|
20
22
|
};
|
|
21
23
|
const OWNER = {
|
|
@@ -29,6 +31,7 @@ const OWNER = {
|
|
|
29
31
|
'native-element': 'consumer',
|
|
30
32
|
'nested-interactive': 'consumer',
|
|
31
33
|
'primitive-token': 'consumer',
|
|
34
|
+
'served-column-width': 'consumer',
|
|
32
35
|
'unforwarded-part': 'helix',
|
|
33
36
|
'unimported-tag': 'consumer',
|
|
34
37
|
'unknown-attribute': 'consumer',
|
|
@@ -36,6 +39,7 @@ const OWNER = {
|
|
|
36
39
|
'unknown-slot': 'consumer',
|
|
37
40
|
'unknown-tag': 'consumer',
|
|
38
41
|
'unknown-token': 'consumer',
|
|
42
|
+
'unlinked-trigger': 'consumer',
|
|
39
43
|
'unreflected-attribute': 'consumer',
|
|
40
44
|
};
|
|
41
45
|
export const normalize = (subject) => subject
|
package/dist/report.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export interface Finding {
|
|
|
98
98
|
tag: string;
|
|
99
99
|
}
|
|
100
100
|
/** Every fault class, stable across versions. */
|
|
101
|
-
export declare const KINDS: readonly ['dead-hook', 'dead-part', 'disabled-attribute', 'duplicate-registration', 'false-boolean', 'invalid-value', 'manifest-skew', 'native-element', 'nested-interactive', 'primitive-token', 'unforwarded-part', 'unimported-tag', 'unknown-attribute', 'unknown-event', 'unknown-slot', 'unknown-tag', 'unknown-token', 'unreflected-attribute'];
|
|
101
|
+
export declare const KINDS: readonly ['dead-hook', 'dead-part', 'disabled-attribute', 'duplicate-registration', 'false-boolean', 'invalid-value', 'manifest-skew', 'native-element', 'nested-interactive', 'primitive-token', 'served-column-width', 'unforwarded-part', 'unimported-tag', 'unknown-attribute', 'unknown-event', 'unknown-slot', 'unknown-tag', 'unknown-token', 'unlinked-trigger', 'unreflected-attribute'];
|
|
102
102
|
/** A fault class. */
|
|
103
103
|
export type Kind = (typeof KINDS)[number];
|
|
104
104
|
/** How serious a finding is. */
|
package/dist/report.js
CHANGED
|
@@ -9,6 +9,7 @@ export const KINDS = [
|
|
|
9
9
|
'native-element',
|
|
10
10
|
'nested-interactive',
|
|
11
11
|
'primitive-token',
|
|
12
|
+
'served-column-width',
|
|
12
13
|
'unforwarded-part',
|
|
13
14
|
'unimported-tag',
|
|
14
15
|
'unknown-attribute',
|
|
@@ -16,6 +17,7 @@ export const KINDS = [
|
|
|
16
17
|
'unknown-slot',
|
|
17
18
|
'unknown-tag',
|
|
18
19
|
'unknown-token',
|
|
20
|
+
'unlinked-trigger',
|
|
19
21
|
'unreflected-attribute',
|
|
20
22
|
];
|
|
21
23
|
export const CATEGORIES = [
|
package/dist/rules.js
CHANGED
|
@@ -11,6 +11,7 @@ export const SHIPPED_RULES = {
|
|
|
11
11
|
'native-element': 'warn',
|
|
12
12
|
'nested-interactive': 'error',
|
|
13
13
|
'primitive-token': 'error',
|
|
14
|
+
'served-column-width': 'warn',
|
|
14
15
|
'unforwarded-part': 'warn',
|
|
15
16
|
'unimported-tag': 'warn',
|
|
16
17
|
'unknown-attribute': 'error',
|
|
@@ -18,6 +19,7 @@ export const SHIPPED_RULES = {
|
|
|
18
19
|
'unknown-slot': 'error',
|
|
19
20
|
'unknown-tag': 'error',
|
|
20
21
|
'unknown-token': 'error',
|
|
22
|
+
'unlinked-trigger': 'warn',
|
|
21
23
|
'unreflected-attribute': 'warn',
|
|
22
24
|
};
|
|
23
25
|
const SEVERITIES = new Set(['error', 'info', 'off', 'warn']);
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.216.0';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-diagnostics",
|
|
3
3
|
"description": "Finds the Helix mistakes that are valid CSS: dead parts, misnamed hooks, two copies of the library.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.216.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@fusion.dev/helix-testing": "0.
|
|
38
|
-
"@types/bun": "^1.4.
|
|
37
|
+
"@fusion.dev/helix-testing": "0.216.0",
|
|
38
|
+
"@types/bun": "^1.4.3"
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://fusion.dev",
|
|
41
41
|
"keywords": [
|