@fusion.dev/helix-diagnostics 0.169.0 → 0.171.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 +2 -0
- package/dist/analyze.js +24 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -299,6 +299,7 @@ diagnostics counts it by kind and tag. None fails a CI job.
|
|
|
299
299
|
| `fullscreen-refused` | The browser refused fullscreen, usually in a frame without `allow="fullscreen"` |
|
|
300
300
|
| `min-out-of-range` | A rating's `min` is not a score between 0 and its `max` |
|
|
301
301
|
| `misplaced-handler` | A React `on` prop names an event that another element dispatches. Development builds only (the `development` export condition) |
|
|
302
|
+
| `mixed-turns` | A chat was given turns both as children and as `turns` data, and draws them as two runs |
|
|
302
303
|
| `misread-direction` | A stat was given `up`, `down` or `neutral`, which are Trend's directions and lay nothing out |
|
|
303
304
|
| `missing-alt` | An image has no `alt`, so a screen reader announces its file name |
|
|
304
305
|
| `missing-layout` | The three.js graph driver could not load `d3-force-3d` |
|
|
@@ -313,6 +314,7 @@ diagnostics counts it by kind and tag. None fails a CI job.
|
|
|
313
314
|
| `picture-in-picture-refused` | The browser refused picture in picture |
|
|
314
315
|
| `refused-length` | A grid's `min` is not a length it can write, so it lays out by `columns` |
|
|
315
316
|
| `removed-callback` | A React prop is a callback that was removed and never ran from JSX. Development builds only (the `development` export condition) |
|
|
317
|
+
| `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) |
|
|
316
318
|
| `solid-handler-syntax` | A React prop uses Solid's `on:` syntax. Development builds only (the `development` export condition) |
|
|
317
319
|
| `stencil-regions-unused` | A graph stencil's regions could not be used |
|
|
318
320
|
| `stencil-without-inside` | A graph stencil has no inside to place the notes in |
|
package/dist/analyze.js
CHANGED
|
@@ -7,9 +7,32 @@ export const targets = (selector) => {
|
|
|
7
7
|
}
|
|
8
8
|
return [...found];
|
|
9
9
|
};
|
|
10
|
+
const bare = (selector) => {
|
|
11
|
+
let out = '';
|
|
12
|
+
for (let at = 0; at < selector.length; at += 1) {
|
|
13
|
+
const held = /^:(?:has|not)\(/.exec(selector.slice(at));
|
|
14
|
+
if (held === null) {
|
|
15
|
+
out += selector[at];
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
let depth = 0;
|
|
19
|
+
for (at += held[0].length - 1; at < selector.length; at += 1) {
|
|
20
|
+
if (selector[at] === '(') {
|
|
21
|
+
depth += 1;
|
|
22
|
+
}
|
|
23
|
+
else if (selector[at] === ')') {
|
|
24
|
+
depth -= 1;
|
|
25
|
+
if (depth === 0) {
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return out;
|
|
32
|
+
};
|
|
10
33
|
export const parts = (selector) => {
|
|
11
34
|
const found = [];
|
|
12
|
-
for (const match of selector.matchAll(/(helix-[a-z0-9-]+)((?:[^\s>+~,]*))::part\(\s*([^)]*?)\s*\)/g)) {
|
|
35
|
+
for (const match of bare(selector).matchAll(/(helix-[a-z0-9-]+)((?:[^\s>+~,]*))::part\(\s*([^)]*?)\s*\)/g)) {
|
|
13
36
|
const names = (match[3] ?? '').split(/\s+/).filter(Boolean);
|
|
14
37
|
if (match[1] && names.length > 0) {
|
|
15
38
|
found.push({ names, tag: match[1] });
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.171.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.171.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@fusion.dev/helix-testing": "0.
|
|
36
|
+
"@fusion.dev/helix-testing": "0.171.0",
|
|
37
37
|
"@types/bun": "^1.4.2"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://fusion.dev",
|