ultra11y 5.56.1 → 5.56.2
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.opencode/plugins/ultra11y.js +1 -1
- package/dist/playwright.mjs +7 -1
- package/package.json +1 -1
- package/scripts/ultra11y.mjs +8 -2
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +8 -2
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/scripts/ultra11y.mjs +8 -2
- package/skills/ultra11y/templates/gitlab-ci.yml +1 -1
- package/src/probes.ts +18 -2
- package/src/types.ts +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "ultra11y",
|
|
11
11
|
"source": "./",
|
|
12
12
|
"description": "RGAA 4.1.2 accessibility audits on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports in Claude Code.",
|
|
13
|
-
"version": "5.56.
|
|
13
|
+
"version": "5.56.2",
|
|
14
14
|
"author": { "name": "maxgfr" },
|
|
15
15
|
"homepage": "https://github.com/SocialGouv/ultra11y",
|
|
16
16
|
"repository": "https://github.com/SocialGouv/ultra11y",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
3
|
"description": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
|
|
4
|
-
"version": "5.56.
|
|
4
|
+
"version": "5.56.2",
|
|
5
5
|
"author": { "name": "maxgfr" },
|
|
6
6
|
"homepage": "https://github.com/SocialGouv/ultra11y",
|
|
7
7
|
"repository": "https://github.com/SocialGouv/ultra11y",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
3
|
"description": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
|
|
4
|
-
"version": "5.56.
|
|
4
|
+
"version": "5.56.2",
|
|
5
5
|
"author": { "name": "maxgfr", "url": "https://github.com/maxgfr" },
|
|
6
6
|
"homepage": "https://github.com/SocialGouv/ultra11y",
|
|
7
7
|
"repository": "https://github.com/SocialGouv/ultra11y",
|
|
@@ -27,7 +27,7 @@ import { fileURLToPath } from "node:url";
|
|
|
27
27
|
// Ownership marker: `ultra11y install --opencode` refuses to overwrite a plugin file that
|
|
28
28
|
// does not carry it, so a user's own ultra11y.js is never clobbered.
|
|
29
29
|
const ULTRA11Y_OPENCODE_PLUGIN = "ULTRA11Y_OPENCODE_PLUGIN";
|
|
30
|
-
const ULTRA11Y_PLUGIN_VERSION = "5.56.
|
|
30
|
+
const ULTRA11Y_PLUGIN_VERSION = "5.56.2";
|
|
31
31
|
|
|
32
32
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
33
33
|
|
package/dist/playwright.mjs
CHANGED
|
@@ -476,10 +476,15 @@ function focusSetupExpr(scope = "", maxFocusables = PROBE_DEFAULTS.maxFocusables
|
|
|
476
476
|
return { n: n, total: total };
|
|
477
477
|
})()`;
|
|
478
478
|
}
|
|
479
|
+
var DEV_TOOL_HOSTS = ["nextjs-portal", "vite-error-overlay", "astro-dev-toolbar", "nuxt-devtools-container", "nuxt-devtools"];
|
|
479
480
|
var FOCUS_CHECK_PROBE = `(() => {
|
|
480
481
|
const e = document.activeElement;
|
|
481
482
|
// FOCUS LEFT THE DOCUMENT \u2014 the normal end of a tab ring, and nothing to measure.
|
|
482
483
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
484
|
+
// A FRAMEWORK'S DEV-TOOLS OVERLAY is not the product (#127): Next's <nextjs-portal> holds a
|
|
485
|
+
// focusable button in its shadow root, and counting it as an untagged stop refused every page
|
|
486
|
+
// captured under a dev server. Not compared, not counted; the walk goes on.
|
|
487
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return { devTools: true, key: '', changed: true, selector: '', html: '' };
|
|
483
488
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
484
489
|
// FOCUS IS ON SOMETHING THE SETUP NEVER TAGGED, which is a different fact entirely and used
|
|
485
490
|
// to be reported as the same one. A skip link revealed only on focus, a widget that moves
|
|
@@ -597,7 +602,7 @@ async function probeFocusRing(page, scope = "", limits = PROBE_DEFAULTS, deadlin
|
|
|
597
602
|
}
|
|
598
603
|
await page.keyboard.press("Tab");
|
|
599
604
|
const r = await page.evaluate(FOCUS_CHECK_PROBE);
|
|
600
|
-
if (!r) continue;
|
|
605
|
+
if (!r || r.devTools) continue;
|
|
601
606
|
if (r.untagged) {
|
|
602
607
|
untagged++;
|
|
603
608
|
continue;
|
|
@@ -648,6 +653,7 @@ function tabPressBudget(count, limits) {
|
|
|
648
653
|
var FOCUS_WHERE_PROBE = `(() => { ${PRELUDE}
|
|
649
654
|
const e = document.activeElement;
|
|
650
655
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
656
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return null; // dev tooling, not the product (#127)
|
|
651
657
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
652
658
|
const stops = ${JSON.stringify(NATIVE_SEGMENT_STOPS)};
|
|
653
659
|
const type = e.tagName === 'INPUT' ? (e.getAttribute('type') || 'text').toLowerCase() : '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
|
-
"version": "5.56.
|
|
3
|
+
"version": "5.56.2",
|
|
4
4
|
"description": "Audit d'accessibilité RGAA 4.1.2, le référentiel de l'État : rapport daté, grille des 106 critères, backlog et tickets. Moteur statique, navigateur et jugement IA contre-vérifié. Il ne déclare jamais conforme ce qu'il n'a pas vérifié. Socle WCAG 2.2 AA.",
|
|
5
5
|
"homepage": "https://socialgouv.github.io/ultra11y/",
|
|
6
6
|
"type": "module",
|
package/scripts/ultra11y.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { join as join55, relative as relative7, resolve as resolve18, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.56.
|
|
9
|
+
var VERSION = "5.56.2";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -37967,10 +37967,15 @@ function focusSetupExpr(scope = "", maxFocusables = PROBE_DEFAULTS.maxFocusables
|
|
|
37967
37967
|
return { n: n, total: total };
|
|
37968
37968
|
})()`;
|
|
37969
37969
|
}
|
|
37970
|
+
var DEV_TOOL_HOSTS = ["nextjs-portal", "vite-error-overlay", "astro-dev-toolbar", "nuxt-devtools-container", "nuxt-devtools"];
|
|
37970
37971
|
var FOCUS_CHECK_PROBE = `(() => {
|
|
37971
37972
|
const e = document.activeElement;
|
|
37972
37973
|
// FOCUS LEFT THE DOCUMENT \u2014 the normal end of a tab ring, and nothing to measure.
|
|
37973
37974
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
37975
|
+
// A FRAMEWORK'S DEV-TOOLS OVERLAY is not the product (#127): Next's <nextjs-portal> holds a
|
|
37976
|
+
// focusable button in its shadow root, and counting it as an untagged stop refused every page
|
|
37977
|
+
// captured under a dev server. Not compared, not counted; the walk goes on.
|
|
37978
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return { devTools: true, key: '', changed: true, selector: '', html: '' };
|
|
37974
37979
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
37975
37980
|
// FOCUS IS ON SOMETHING THE SETUP NEVER TAGGED, which is a different fact entirely and used
|
|
37976
37981
|
// to be reported as the same one. A skip link revealed only on focus, a widget that moves
|
|
@@ -38091,7 +38096,7 @@ async function probeFocusRing(page, scope = "", limits = PROBE_DEFAULTS, deadlin
|
|
|
38091
38096
|
}
|
|
38092
38097
|
await page.keyboard.press("Tab");
|
|
38093
38098
|
const r = await page.evaluate(FOCUS_CHECK_PROBE);
|
|
38094
|
-
if (!r) continue;
|
|
38099
|
+
if (!r || r.devTools) continue;
|
|
38095
38100
|
if (r.untagged) {
|
|
38096
38101
|
untagged++;
|
|
38097
38102
|
continue;
|
|
@@ -38142,6 +38147,7 @@ function tabPressBudget(count, limits) {
|
|
|
38142
38147
|
var FOCUS_WHERE_PROBE = `(() => { ${PRELUDE}
|
|
38143
38148
|
const e = document.activeElement;
|
|
38144
38149
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
38150
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return null; // dev tooling, not the product (#127)
|
|
38145
38151
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
38146
38152
|
const stops = ${JSON.stringify(NATIVE_SEGMENT_STOPS)};
|
|
38147
38153
|
const type = e.tagName === 'INPUT' ? (e.getAttribute('type') || 'text').toLowerCase() : '';
|
|
@@ -3,7 +3,7 @@ name: review-a11y
|
|
|
3
3
|
description: "Use to REVIEW changed frontend code for accessibility: staged files, a working diff, branch, or PR; prompts such as 'review a11y', 'is this accessible?', or 'anything to fix before merge?'; and hook or CI findings on a change. Run the bundled install-free engine with cross-file JSX/TSX analysis, then adjudicate candidates and return a severity-ranked WCAG 2.2 AA review with file:line fixes, residual rendering risks, and a verdict. Use `ultra11y` instead for whole-repo audits, dated conformance reports, country standards, PRD backlogs, or authoring accessible markup."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: 5.56.
|
|
6
|
+
version: 5.56.2
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# review-a11y — accessibility review of changed code
|
|
@@ -6,7 +6,7 @@ import { join as join55, relative as relative7, resolve as resolve18, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.56.
|
|
9
|
+
var VERSION = "5.56.2";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -37967,10 +37967,15 @@ function focusSetupExpr(scope = "", maxFocusables = PROBE_DEFAULTS.maxFocusables
|
|
|
37967
37967
|
return { n: n, total: total };
|
|
37968
37968
|
})()`;
|
|
37969
37969
|
}
|
|
37970
|
+
var DEV_TOOL_HOSTS = ["nextjs-portal", "vite-error-overlay", "astro-dev-toolbar", "nuxt-devtools-container", "nuxt-devtools"];
|
|
37970
37971
|
var FOCUS_CHECK_PROBE = `(() => {
|
|
37971
37972
|
const e = document.activeElement;
|
|
37972
37973
|
// FOCUS LEFT THE DOCUMENT \u2014 the normal end of a tab ring, and nothing to measure.
|
|
37973
37974
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
37975
|
+
// A FRAMEWORK'S DEV-TOOLS OVERLAY is not the product (#127): Next's <nextjs-portal> holds a
|
|
37976
|
+
// focusable button in its shadow root, and counting it as an untagged stop refused every page
|
|
37977
|
+
// captured under a dev server. Not compared, not counted; the walk goes on.
|
|
37978
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return { devTools: true, key: '', changed: true, selector: '', html: '' };
|
|
37974
37979
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
37975
37980
|
// FOCUS IS ON SOMETHING THE SETUP NEVER TAGGED, which is a different fact entirely and used
|
|
37976
37981
|
// to be reported as the same one. A skip link revealed only on focus, a widget that moves
|
|
@@ -38091,7 +38096,7 @@ async function probeFocusRing(page, scope = "", limits = PROBE_DEFAULTS, deadlin
|
|
|
38091
38096
|
}
|
|
38092
38097
|
await page.keyboard.press("Tab");
|
|
38093
38098
|
const r = await page.evaluate(FOCUS_CHECK_PROBE);
|
|
38094
|
-
if (!r) continue;
|
|
38099
|
+
if (!r || r.devTools) continue;
|
|
38095
38100
|
if (r.untagged) {
|
|
38096
38101
|
untagged++;
|
|
38097
38102
|
continue;
|
|
@@ -38142,6 +38147,7 @@ function tabPressBudget(count, limits) {
|
|
|
38142
38147
|
var FOCUS_WHERE_PROBE = `(() => { ${PRELUDE}
|
|
38143
38148
|
const e = document.activeElement;
|
|
38144
38149
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
38150
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return null; // dev tooling, not the product (#127)
|
|
38145
38151
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
38146
38152
|
const stops = ${JSON.stringify(NATIVE_SEGMENT_STOPS)};
|
|
38147
38153
|
const type = e.tagName === 'INPUT' ? (e.getAttribute('type') || 'text').toLowerCase() : '';
|
package/skills/ultra11y/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: ultra11y
|
|
|
3
3
|
description: "Use to AUDIT a site, repository, or page against RGAA 4.1.2, the French State's accessibility standard (référentiel de l'État), on a WCAG 2.2 AA core (other country standards as packs); produce a dated conformance report, criterion grid, PRD backlog, or tickets; AUTHOR accessible markup; fix accessibility; or wire a repo gate and rendered-DOM capture pipeline. The bundled install-free engine runs 102 static checks tied to success criteria, while the agent adjudicates judgment criteria and routes rendering criteria to browser scans; check/verify reject invented non-conformities and never declare conforming what was not verified. Use `review-a11y` instead for a review scoped only to a diff, branch, or PR."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: 5.56.
|
|
6
|
+
version: 5.56.2
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# ultra11y — audit WCAG 2.2 AA and write accessible markup
|
|
@@ -6,7 +6,7 @@ import { join as join55, relative as relative7, resolve as resolve18, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.56.
|
|
9
|
+
var VERSION = "5.56.2";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -37967,10 +37967,15 @@ function focusSetupExpr(scope = "", maxFocusables = PROBE_DEFAULTS.maxFocusables
|
|
|
37967
37967
|
return { n: n, total: total };
|
|
37968
37968
|
})()`;
|
|
37969
37969
|
}
|
|
37970
|
+
var DEV_TOOL_HOSTS = ["nextjs-portal", "vite-error-overlay", "astro-dev-toolbar", "nuxt-devtools-container", "nuxt-devtools"];
|
|
37970
37971
|
var FOCUS_CHECK_PROBE = `(() => {
|
|
37971
37972
|
const e = document.activeElement;
|
|
37972
37973
|
// FOCUS LEFT THE DOCUMENT \u2014 the normal end of a tab ring, and nothing to measure.
|
|
37973
37974
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
37975
|
+
// A FRAMEWORK'S DEV-TOOLS OVERLAY is not the product (#127): Next's <nextjs-portal> holds a
|
|
37976
|
+
// focusable button in its shadow root, and counting it as an untagged stop refused every page
|
|
37977
|
+
// captured under a dev server. Not compared, not counted; the walk goes on.
|
|
37978
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return { devTools: true, key: '', changed: true, selector: '', html: '' };
|
|
37974
37979
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
37975
37980
|
// FOCUS IS ON SOMETHING THE SETUP NEVER TAGGED, which is a different fact entirely and used
|
|
37976
37981
|
// to be reported as the same one. A skip link revealed only on focus, a widget that moves
|
|
@@ -38091,7 +38096,7 @@ async function probeFocusRing(page, scope = "", limits = PROBE_DEFAULTS, deadlin
|
|
|
38091
38096
|
}
|
|
38092
38097
|
await page.keyboard.press("Tab");
|
|
38093
38098
|
const r = await page.evaluate(FOCUS_CHECK_PROBE);
|
|
38094
|
-
if (!r) continue;
|
|
38099
|
+
if (!r || r.devTools) continue;
|
|
38095
38100
|
if (r.untagged) {
|
|
38096
38101
|
untagged++;
|
|
38097
38102
|
continue;
|
|
@@ -38142,6 +38147,7 @@ function tabPressBudget(count, limits) {
|
|
|
38142
38147
|
var FOCUS_WHERE_PROBE = `(() => { ${PRELUDE}
|
|
38143
38148
|
const e = document.activeElement;
|
|
38144
38149
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
38150
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return null; // dev tooling, not the product (#127)
|
|
38145
38151
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
38146
38152
|
const stops = ${JSON.stringify(NATIVE_SEGMENT_STOPS)};
|
|
38147
38153
|
const type = e.tagName === 'INPUT' ? (e.getAttribute('type') || 'text').toLowerCase() : '';
|
|
@@ -27,7 +27,7 @@ variables:
|
|
|
27
27
|
ULTRA11Y_LANG: en
|
|
28
28
|
# Exact by default: a CI report must say which engine produced it. The release script keeps
|
|
29
29
|
# this pin aligned with the package version; override only for a deliberate upgrade test.
|
|
30
|
-
ULTRA11Y_VERSION: '5.56.
|
|
30
|
+
ULTRA11Y_VERSION: '5.56.2'
|
|
31
31
|
# Batches of 8 amortise the prompt; each accepted verdict is checkpointed before the next
|
|
32
32
|
# batch, and later passes receive only the residue.
|
|
33
33
|
ULTRA11Y_GRAIN: batch
|
package/src/probes.ts
CHANGED
|
@@ -308,10 +308,18 @@ export function focusSetupExpr(scope = "", maxFocusables = PROBE_DEFAULTS.maxFoc
|
|
|
308
308
|
// Pass 2 (after each Tab): is the active element a tagged focusable whose focus PROXY
|
|
309
309
|
// (itself, or its label for a custom control) is UNCHANGED vs the unfocused snapshot?
|
|
310
310
|
// If so, focus produced no visible indicator.
|
|
311
|
+
/** The custom elements frameworks inject in DEVELOPMENT only — their focusable controls live
|
|
312
|
+
* in a shadow root and are no part of the audited product (#127). */
|
|
313
|
+
export const DEV_TOOL_HOSTS: readonly string[] = ["nextjs-portal", "vite-error-overlay", "astro-dev-toolbar", "nuxt-devtools-container", "nuxt-devtools"];
|
|
314
|
+
|
|
311
315
|
export const FOCUS_CHECK_PROBE = `(() => {
|
|
312
316
|
const e = document.activeElement;
|
|
313
317
|
// FOCUS LEFT THE DOCUMENT — the normal end of a tab ring, and nothing to measure.
|
|
314
318
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
319
|
+
// A FRAMEWORK'S DEV-TOOLS OVERLAY is not the product (#127): Next's <nextjs-portal> holds a
|
|
320
|
+
// focusable button in its shadow root, and counting it as an untagged stop refused every page
|
|
321
|
+
// captured under a dev server. Not compared, not counted; the walk goes on.
|
|
322
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return { devTools: true, key: '', changed: true, selector: '', html: '' };
|
|
315
323
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
316
324
|
// FOCUS IS ON SOMETHING THE SETUP NEVER TAGGED, which is a different fact entirely and used
|
|
317
325
|
// to be reported as the same one. A skip link revealed only on focus, a widget that moves
|
|
@@ -509,8 +517,15 @@ export async function probeFocusRing(page: Any, scope = "", limits: ProbeLimits
|
|
|
509
517
|
break;
|
|
510
518
|
}
|
|
511
519
|
await page.keyboard.press("Tab");
|
|
512
|
-
const r = (await page.evaluate(FOCUS_CHECK_PROBE)) as {
|
|
513
|
-
|
|
520
|
+
const r = (await page.evaluate(FOCUS_CHECK_PROBE)) as {
|
|
521
|
+
key: string;
|
|
522
|
+
changed: boolean;
|
|
523
|
+
selector: string;
|
|
524
|
+
html: string;
|
|
525
|
+
untagged?: boolean;
|
|
526
|
+
devTools?: boolean;
|
|
527
|
+
} | null;
|
|
528
|
+
if (!r || r.devTools) continue;
|
|
514
529
|
// Tab landed on a focusable the setup never tagged. Nothing here can be measured, and the
|
|
515
530
|
// walk must not later claim it crossed the whole ring: a skip link that only appears on
|
|
516
531
|
// focus is exactly the control this criterion is about.
|
|
@@ -635,6 +650,7 @@ function tabPressBudget(count: number, limits: ProbeLimits): number {
|
|
|
635
650
|
export const FOCUS_WHERE_PROBE = `(() => { ${PRELUDE}
|
|
636
651
|
const e = document.activeElement;
|
|
637
652
|
if (!e || e === document.body || e === document.documentElement) return null;
|
|
653
|
+
if (${JSON.stringify(DEV_TOOL_HOSTS)}.indexOf((e.localName || '').toLowerCase()) >= 0) return null; // dev tooling, not the product (#127)
|
|
638
654
|
const key = e.getAttribute && e.getAttribute('data-u11y-f');
|
|
639
655
|
const stops = ${JSON.stringify(NATIVE_SEGMENT_STOPS)};
|
|
640
656
|
const type = e.tagName === 'INPUT' ? (e.getAttribute('type') || 'text').toLowerCase() : '';
|
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Single source of truth for shared types + the embedded version. sync-version.mjs
|
|
2
2
|
// rewrites VERSION at release time (kept in lockstep with package.json + SKILL.md).
|
|
3
|
-
export const VERSION = "5.56.
|
|
3
|
+
export const VERSION = "5.56.2";
|
|
4
4
|
export const SCHEMA_VERSION = 2;
|
|
5
5
|
|
|
6
6
|
// Lang = the UI FRAME's language — the `L` localization tables each module (report,
|