eaa-kit 0.6.0 → 0.7.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 +23 -8
- package/dist/astro/index.d.ts +1 -1
- package/dist/astro/index.js +1 -1
- package/dist/audit/runners/worker.js +1 -1
- package/dist/audit-Bwm1xBdJ.js +2 -0
- package/dist/{audit-e_uixhPG.js → audit-DRjAY2iY.js} +164 -75
- package/dist/{baseline-D2qWmUC6.js → baseline-BpE7DbDq.js} +1 -1
- package/dist/{baseline-BscHfFSW.js → baseline-rtnj3RHB.js} +1 -1
- package/dist/cache-D4dOIuOi.js +219 -0
- package/dist/{checklist-BtgkxMEa.js → checklist-DDd9jewi.js} +3 -3
- package/dist/cli/index.js +28 -12
- package/dist/{command-CZKp9Wi_.js → command-3r4fht5f.js} +6 -5
- package/dist/{coverage-BD2_CYns.js → coverage-cb5kPp48.js} +3 -285
- package/dist/coverage-n1X9CkiG.js +3 -0
- package/dist/criteria-CnPJKGeb.js +286 -0
- package/dist/eleventy/index.d.ts +1 -1
- package/dist/eleventy/index.js +1 -1
- package/dist/{html-Bmh7X_sM.js → html-BIxxF3FC.js} +6 -4
- package/dist/index.d.ts +19 -0
- package/dist/index.js +2 -2
- package/dist/{init-BjKYttxc.js → init-DrFfzjvm.js} +2 -2
- package/dist/jsdom-BUYuVJJm.js +3 -0
- package/dist/{jsdom-CQar6OQS.js → jsdom-CsW_xVcA.js} +11 -12
- package/dist/{json-PNg6BeXp.js → json-Bus6YhxB.js} +4 -3
- package/dist/{json-HJDgJp09.js → json-CrQmoTj6.js} +1 -1
- package/dist/{load-vZdV_fD1.js → load-BaWMa-G_.js} +6 -1
- package/dist/load-n62iXDq_.js +2 -0
- package/dist/nuxt/index.d.ts +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/{playwright-C-miJP2b.js → playwright-ukCr_5o3.js} +1 -1
- package/dist/{pool-dkexq5xo.js → pool-B4tEUa2S.js} +6 -2
- package/dist/{completeness-Dwq3CPB3.js → remediation-C0klJblu.js} +55 -42
- package/dist/{render-CtsqR0k-.js → render-C1sUZZI_.js} +41 -3
- package/dist/{result-DfUru6y_.js → result-B7_zVxAX.js} +1 -1
- package/dist/result-CRmjjoAA.js +2 -0
- package/dist/{run-YiqyQA2b.d.ts → run-BK2blxMI.d.ts} +8 -0
- package/dist/{run-D7hdVXLA.js → run-DrS0Komf.js} +6 -2
- package/dist/{sarif-BKvq_AUm.js → sarif-BNCE0PNT.js} +3 -2
- package/dist/statement/templates/at.de.md +14 -0
- package/dist/statement/templates/at.en.md +14 -0
- package/dist/statement/templates/ch.de.md +14 -0
- package/dist/statement/templates/ch.en.md +14 -0
- package/dist/statement/templates/de.de.md +14 -0
- package/dist/statement/templates/de.en.md +14 -0
- package/dist/statement/templates/es.en.md +14 -0
- package/dist/statement/templates/es.es.md +15 -0
- package/dist/statement/templates/fr.en.md +14 -0
- package/dist/statement/templates/fr.fr.md +15 -0
- package/dist/statement/templates/it.en.md +14 -0
- package/dist/statement/templates/it.it.md +15 -0
- package/dist/statement/templates/nl.en.md +14 -0
- package/dist/statement/templates/nl.nl.md +15 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/webpack/index.d.ts +1 -1
- package/dist/webpack/index.js +1 -1
- package/dist/{worksheet-eUjwYLxC.js → worksheet-BIxMtbUd.js} +3 -2
- package/package.json +3 -2
- package/dist/audit-DK2StT1_.js +0 -2
- package/dist/coverage-7bQqWNfN.js +0 -2
- package/dist/jsdom-DMvU2h-f.js +0 -3
- package/dist/load-Bc_xDGAh.js +0 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as WCAG22_AA_CRITERIA } from "./criteria-CnPJKGeb.js";
|
|
2
|
+
import { n as DEFAULT_TAGS, p as successCriteria, r as ENGINE_BLIND_RULES } from "./result-B7_zVxAX.js";
|
|
2
3
|
import { s as criterionReview } from "./review-CdMK2GpQ.js";
|
|
3
4
|
import axe from "axe-core";
|
|
4
5
|
//#region src/audit/manual.ts
|
|
@@ -138,289 +139,6 @@ function manualCheckFor(ruleId) {
|
|
|
138
139
|
//#endregion
|
|
139
140
|
//#region src/audit/coverage.ts
|
|
140
141
|
/**
|
|
141
|
-
* WCAG 2.2 at Levels A and AA, which is what this tool audits against.
|
|
142
|
-
*
|
|
143
|
-
* 4.1.1 Parsing is deliberately absent: it was removed in WCAG 2.2 and counting
|
|
144
|
-
* it would inflate the denominator with a criterion nobody has to meet.
|
|
145
|
-
*/
|
|
146
|
-
const WCAG22_AA_CRITERIA = [
|
|
147
|
-
{
|
|
148
|
-
number: "1.1.1",
|
|
149
|
-
title: "Non-text Content",
|
|
150
|
-
level: "A"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
number: "1.2.1",
|
|
154
|
-
title: "Audio-only and Video-only (Prerecorded)",
|
|
155
|
-
level: "A"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
number: "1.2.2",
|
|
159
|
-
title: "Captions (Prerecorded)",
|
|
160
|
-
level: "A"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
number: "1.2.3",
|
|
164
|
-
title: "Audio Description or Media Alternative (Prerecorded)",
|
|
165
|
-
level: "A"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
number: "1.2.4",
|
|
169
|
-
title: "Captions (Live)",
|
|
170
|
-
level: "AA"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
number: "1.2.5",
|
|
174
|
-
title: "Audio Description (Prerecorded)",
|
|
175
|
-
level: "AA"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
number: "1.3.1",
|
|
179
|
-
title: "Info and Relationships",
|
|
180
|
-
level: "A"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
number: "1.3.2",
|
|
184
|
-
title: "Meaningful Sequence",
|
|
185
|
-
level: "A"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
number: "1.3.3",
|
|
189
|
-
title: "Sensory Characteristics",
|
|
190
|
-
level: "A"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
number: "1.3.4",
|
|
194
|
-
title: "Orientation",
|
|
195
|
-
level: "AA"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
number: "1.3.5",
|
|
199
|
-
title: "Identify Input Purpose",
|
|
200
|
-
level: "AA"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
number: "1.4.1",
|
|
204
|
-
title: "Use of Color",
|
|
205
|
-
level: "A"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
number: "1.4.2",
|
|
209
|
-
title: "Audio Control",
|
|
210
|
-
level: "A"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
number: "1.4.3",
|
|
214
|
-
title: "Contrast (Minimum)",
|
|
215
|
-
level: "AA"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
number: "1.4.4",
|
|
219
|
-
title: "Resize Text",
|
|
220
|
-
level: "AA"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
number: "1.4.5",
|
|
224
|
-
title: "Images of Text",
|
|
225
|
-
level: "AA"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
number: "1.4.10",
|
|
229
|
-
title: "Reflow",
|
|
230
|
-
level: "AA"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
number: "1.4.11",
|
|
234
|
-
title: "Non-text Contrast",
|
|
235
|
-
level: "AA"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
number: "1.4.12",
|
|
239
|
-
title: "Text Spacing",
|
|
240
|
-
level: "AA"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
number: "1.4.13",
|
|
244
|
-
title: "Content on Hover or Focus",
|
|
245
|
-
level: "AA"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
number: "2.1.1",
|
|
249
|
-
title: "Keyboard",
|
|
250
|
-
level: "A"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
number: "2.1.2",
|
|
254
|
-
title: "No Keyboard Trap",
|
|
255
|
-
level: "A"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
number: "2.1.4",
|
|
259
|
-
title: "Character Key Shortcuts",
|
|
260
|
-
level: "A"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
number: "2.2.1",
|
|
264
|
-
title: "Timing Adjustable",
|
|
265
|
-
level: "A"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
number: "2.2.2",
|
|
269
|
-
title: "Pause, Stop, Hide",
|
|
270
|
-
level: "A"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
number: "2.3.1",
|
|
274
|
-
title: "Three Flashes or Below Threshold",
|
|
275
|
-
level: "A"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
number: "2.4.1",
|
|
279
|
-
title: "Bypass Blocks",
|
|
280
|
-
level: "A"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
number: "2.4.2",
|
|
284
|
-
title: "Page Titled",
|
|
285
|
-
level: "A"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
number: "2.4.3",
|
|
289
|
-
title: "Focus Order",
|
|
290
|
-
level: "A"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
number: "2.4.4",
|
|
294
|
-
title: "Link Purpose (In Context)",
|
|
295
|
-
level: "A"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
number: "2.4.5",
|
|
299
|
-
title: "Multiple Ways",
|
|
300
|
-
level: "AA"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
number: "2.4.6",
|
|
304
|
-
title: "Headings and Labels",
|
|
305
|
-
level: "AA"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
number: "2.4.7",
|
|
309
|
-
title: "Focus Visible",
|
|
310
|
-
level: "AA"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
number: "2.4.11",
|
|
314
|
-
title: "Focus Not Obscured (Minimum)",
|
|
315
|
-
level: "AA"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
number: "2.5.1",
|
|
319
|
-
title: "Pointer Gestures",
|
|
320
|
-
level: "A"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
number: "2.5.2",
|
|
324
|
-
title: "Pointer Cancellation",
|
|
325
|
-
level: "A"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
number: "2.5.3",
|
|
329
|
-
title: "Label in Name",
|
|
330
|
-
level: "A"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
number: "2.5.4",
|
|
334
|
-
title: "Motion Actuation",
|
|
335
|
-
level: "A"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
number: "2.5.7",
|
|
339
|
-
title: "Dragging Movements",
|
|
340
|
-
level: "AA"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
number: "2.5.8",
|
|
344
|
-
title: "Target Size (Minimum)",
|
|
345
|
-
level: "AA"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
number: "3.1.1",
|
|
349
|
-
title: "Language of Page",
|
|
350
|
-
level: "A"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
number: "3.1.2",
|
|
354
|
-
title: "Language of Parts",
|
|
355
|
-
level: "AA"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
number: "3.2.1",
|
|
359
|
-
title: "On Focus",
|
|
360
|
-
level: "A"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
number: "3.2.2",
|
|
364
|
-
title: "On Input",
|
|
365
|
-
level: "A"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
number: "3.2.3",
|
|
369
|
-
title: "Consistent Navigation",
|
|
370
|
-
level: "AA"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
number: "3.2.4",
|
|
374
|
-
title: "Consistent Identification",
|
|
375
|
-
level: "AA"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
number: "3.2.6",
|
|
379
|
-
title: "Consistent Help",
|
|
380
|
-
level: "A"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
number: "3.3.1",
|
|
384
|
-
title: "Error Identification",
|
|
385
|
-
level: "A"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
number: "3.3.2",
|
|
389
|
-
title: "Labels or Instructions",
|
|
390
|
-
level: "A"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
number: "3.3.3",
|
|
394
|
-
title: "Error Suggestion",
|
|
395
|
-
level: "AA"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
number: "3.3.4",
|
|
399
|
-
title: "Error Prevention (Legal, Financial, Data)",
|
|
400
|
-
level: "AA"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
number: "3.3.7",
|
|
404
|
-
title: "Redundant Entry",
|
|
405
|
-
level: "A"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
number: "3.3.8",
|
|
409
|
-
title: "Accessible Authentication (Minimum)",
|
|
410
|
-
level: "AA"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
number: "4.1.2",
|
|
414
|
-
title: "Name, Role, Value",
|
|
415
|
-
level: "A"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
number: "4.1.3",
|
|
419
|
-
title: "Status Messages",
|
|
420
|
-
level: "AA"
|
|
421
|
-
}
|
|
422
|
-
];
|
|
423
|
-
/**
|
|
424
142
|
* Rules axe-core would run under these tags, mapped to the criteria they cover.
|
|
425
143
|
*
|
|
426
144
|
* Experimental rules are excluded, matching `blindRulesInScope`: axe-core leaves
|
|
@@ -556,4 +274,4 @@ function reviewSummary(coverage) {
|
|
|
556
274
|
return `${parts.join("; ")}. This is a claim by a person, not a measurement.`;
|
|
557
275
|
}
|
|
558
276
|
//#endregion
|
|
559
|
-
export {
|
|
277
|
+
export { manualCheckFor as a, rulesByCriterion as i, coverageSummary as n, understandingUrl as o, reviewSummary as r, buildCoverage as t };
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
//#region src/audit/criteria.ts
|
|
2
|
+
/**
|
|
3
|
+
* WCAG 2.2 at Levels A and AA, which is what this tool audits against.
|
|
4
|
+
*
|
|
5
|
+
* 4.1.1 Parsing is deliberately absent: it was removed in WCAG 2.2 and counting
|
|
6
|
+
* it would inflate the denominator with a criterion nobody has to meet.
|
|
7
|
+
*/
|
|
8
|
+
const WCAG22_AA_CRITERIA = [
|
|
9
|
+
{
|
|
10
|
+
number: "1.1.1",
|
|
11
|
+
title: "Non-text Content",
|
|
12
|
+
level: "A"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
number: "1.2.1",
|
|
16
|
+
title: "Audio-only and Video-only (Prerecorded)",
|
|
17
|
+
level: "A"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
number: "1.2.2",
|
|
21
|
+
title: "Captions (Prerecorded)",
|
|
22
|
+
level: "A"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
number: "1.2.3",
|
|
26
|
+
title: "Audio Description or Media Alternative (Prerecorded)",
|
|
27
|
+
level: "A"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
number: "1.2.4",
|
|
31
|
+
title: "Captions (Live)",
|
|
32
|
+
level: "AA"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
number: "1.2.5",
|
|
36
|
+
title: "Audio Description (Prerecorded)",
|
|
37
|
+
level: "AA"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
number: "1.3.1",
|
|
41
|
+
title: "Info and Relationships",
|
|
42
|
+
level: "A"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
number: "1.3.2",
|
|
46
|
+
title: "Meaningful Sequence",
|
|
47
|
+
level: "A"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
number: "1.3.3",
|
|
51
|
+
title: "Sensory Characteristics",
|
|
52
|
+
level: "A"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
number: "1.3.4",
|
|
56
|
+
title: "Orientation",
|
|
57
|
+
level: "AA"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
number: "1.3.5",
|
|
61
|
+
title: "Identify Input Purpose",
|
|
62
|
+
level: "AA"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
number: "1.4.1",
|
|
66
|
+
title: "Use of Color",
|
|
67
|
+
level: "A"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
number: "1.4.2",
|
|
71
|
+
title: "Audio Control",
|
|
72
|
+
level: "A"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
number: "1.4.3",
|
|
76
|
+
title: "Contrast (Minimum)",
|
|
77
|
+
level: "AA"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
number: "1.4.4",
|
|
81
|
+
title: "Resize Text",
|
|
82
|
+
level: "AA"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
number: "1.4.5",
|
|
86
|
+
title: "Images of Text",
|
|
87
|
+
level: "AA"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
number: "1.4.10",
|
|
91
|
+
title: "Reflow",
|
|
92
|
+
level: "AA"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
number: "1.4.11",
|
|
96
|
+
title: "Non-text Contrast",
|
|
97
|
+
level: "AA"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
number: "1.4.12",
|
|
101
|
+
title: "Text Spacing",
|
|
102
|
+
level: "AA"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
number: "1.4.13",
|
|
106
|
+
title: "Content on Hover or Focus",
|
|
107
|
+
level: "AA"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
number: "2.1.1",
|
|
111
|
+
title: "Keyboard",
|
|
112
|
+
level: "A"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
number: "2.1.2",
|
|
116
|
+
title: "No Keyboard Trap",
|
|
117
|
+
level: "A"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
number: "2.1.4",
|
|
121
|
+
title: "Character Key Shortcuts",
|
|
122
|
+
level: "A"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
number: "2.2.1",
|
|
126
|
+
title: "Timing Adjustable",
|
|
127
|
+
level: "A"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
number: "2.2.2",
|
|
131
|
+
title: "Pause, Stop, Hide",
|
|
132
|
+
level: "A"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
number: "2.3.1",
|
|
136
|
+
title: "Three Flashes or Below Threshold",
|
|
137
|
+
level: "A"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
number: "2.4.1",
|
|
141
|
+
title: "Bypass Blocks",
|
|
142
|
+
level: "A"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
number: "2.4.2",
|
|
146
|
+
title: "Page Titled",
|
|
147
|
+
level: "A"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
number: "2.4.3",
|
|
151
|
+
title: "Focus Order",
|
|
152
|
+
level: "A"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
number: "2.4.4",
|
|
156
|
+
title: "Link Purpose (In Context)",
|
|
157
|
+
level: "A"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
number: "2.4.5",
|
|
161
|
+
title: "Multiple Ways",
|
|
162
|
+
level: "AA"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
number: "2.4.6",
|
|
166
|
+
title: "Headings and Labels",
|
|
167
|
+
level: "AA"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
number: "2.4.7",
|
|
171
|
+
title: "Focus Visible",
|
|
172
|
+
level: "AA"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
number: "2.4.11",
|
|
176
|
+
title: "Focus Not Obscured (Minimum)",
|
|
177
|
+
level: "AA"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
number: "2.5.1",
|
|
181
|
+
title: "Pointer Gestures",
|
|
182
|
+
level: "A"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
number: "2.5.2",
|
|
186
|
+
title: "Pointer Cancellation",
|
|
187
|
+
level: "A"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
number: "2.5.3",
|
|
191
|
+
title: "Label in Name",
|
|
192
|
+
level: "A"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
number: "2.5.4",
|
|
196
|
+
title: "Motion Actuation",
|
|
197
|
+
level: "A"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
number: "2.5.7",
|
|
201
|
+
title: "Dragging Movements",
|
|
202
|
+
level: "AA"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
number: "2.5.8",
|
|
206
|
+
title: "Target Size (Minimum)",
|
|
207
|
+
level: "AA"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
number: "3.1.1",
|
|
211
|
+
title: "Language of Page",
|
|
212
|
+
level: "A"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
number: "3.1.2",
|
|
216
|
+
title: "Language of Parts",
|
|
217
|
+
level: "AA"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
number: "3.2.1",
|
|
221
|
+
title: "On Focus",
|
|
222
|
+
level: "A"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
number: "3.2.2",
|
|
226
|
+
title: "On Input",
|
|
227
|
+
level: "A"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
number: "3.2.3",
|
|
231
|
+
title: "Consistent Navigation",
|
|
232
|
+
level: "AA"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
number: "3.2.4",
|
|
236
|
+
title: "Consistent Identification",
|
|
237
|
+
level: "AA"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
number: "3.2.6",
|
|
241
|
+
title: "Consistent Help",
|
|
242
|
+
level: "A"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
number: "3.3.1",
|
|
246
|
+
title: "Error Identification",
|
|
247
|
+
level: "A"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
number: "3.3.2",
|
|
251
|
+
title: "Labels or Instructions",
|
|
252
|
+
level: "A"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
number: "3.3.3",
|
|
256
|
+
title: "Error Suggestion",
|
|
257
|
+
level: "AA"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
number: "3.3.4",
|
|
261
|
+
title: "Error Prevention (Legal, Financial, Data)",
|
|
262
|
+
level: "AA"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
number: "3.3.7",
|
|
266
|
+
title: "Redundant Entry",
|
|
267
|
+
level: "A"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
number: "3.3.8",
|
|
271
|
+
title: "Accessible Authentication (Minimum)",
|
|
272
|
+
level: "AA"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
number: "4.1.2",
|
|
276
|
+
title: "Name, Role, Value",
|
|
277
|
+
level: "A"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
number: "4.1.3",
|
|
281
|
+
title: "Status Messages",
|
|
282
|
+
level: "AA"
|
|
283
|
+
}
|
|
284
|
+
];
|
|
285
|
+
//#endregion
|
|
286
|
+
export { WCAG22_AA_CRITERIA as t };
|
package/dist/eleventy/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IntegrationOptions, t as BuildAuditError } from "../run-
|
|
1
|
+
import { n as IntegrationOptions, t as BuildAuditError } from "../run-BK2blxMI.js";
|
|
2
2
|
//#region src/eleventy/index.d.ts
|
|
3
3
|
/** What `eleventy.after` is given. Only two of its fields are read. */
|
|
4
4
|
interface EleventyAfterEvent {
|
package/dist/eleventy/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as impactLabel, r as byImpactThenRule } from "./impact-luGCnN8F.js";
|
|
2
2
|
import { i as escapeText, n as count, r as escapeAttribute, s as standardsReference, t as collapse } from "./text-BF1LHMiV.js";
|
|
3
3
|
import { t as TOOL_VERSION } from "./version-B3v4rNoG.js";
|
|
4
|
-
import {
|
|
4
|
+
import { u as runEngine } from "./result-B7_zVxAX.js";
|
|
5
5
|
import { l as reviewSentence } from "./review-CdMK2GpQ.js";
|
|
6
|
+
import { a as isShared, c as missedParts, i as groupIssues, l as reusedPart, n as blindRules, o as issueTotals, r as coverageParts, s as discoveryLabel, t as remediationFor } from "./remediation-C0klJblu.js";
|
|
6
7
|
import { r as componentPath } from "./component-ChisoFyY.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as buildSummary } from "./json-PNg6BeXp.js";
|
|
8
|
+
import { a as manualCheckFor, o as understandingUrl, r as reviewSummary, t as buildCoverage } from "./coverage-cb5kPp48.js";
|
|
9
|
+
import { n as buildSummary } from "./json-Bus6YhxB.js";
|
|
10
10
|
import axe from "axe-core";
|
|
11
11
|
//#region src/audit/report/html.ts
|
|
12
12
|
/**
|
|
@@ -103,6 +103,8 @@ function runDetails(audits, engine, generatedAt, options) {
|
|
|
103
103
|
];
|
|
104
104
|
if (options.baseUrl) rows.splice(1, 0, ["Base URL", options.baseUrl]);
|
|
105
105
|
if (options.completeness) rows.splice(2, 0, ["Pages found via", discoveryLabel(options.completeness.discovery)]);
|
|
106
|
+
const reused = options.completeness ? reusedPart(options.completeness) : void 0;
|
|
107
|
+
if (reused !== void 0) rows.push(["Reused", reused]);
|
|
106
108
|
return `<h2>The run</h2>\n<dl class="run">\n${rows.map(([term, value]) => ` <div><dt>${escapeText(term)}</dt><dd>${escapeText(value)}</dd></div>`).join("\n")}\n</dl>`;
|
|
107
109
|
}
|
|
108
110
|
/** Pages named individually before the rest are counted. */
|
package/dist/index.d.ts
CHANGED
|
@@ -146,6 +146,11 @@ declare const auditSchema: Schema<ObjectOf<{
|
|
|
146
146
|
* being described, and because a config file has no flags to negate.
|
|
147
147
|
*/
|
|
148
148
|
build: OptionalSchema<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* False is `--no-cache`: audit every page, reusing nothing an earlier run
|
|
151
|
+
* measured. Written in the positive for the same reason `build` is.
|
|
152
|
+
*/
|
|
153
|
+
cache: OptionalSchema<boolean>;
|
|
149
154
|
}>>;
|
|
150
155
|
declare const configSchema: Schema<ObjectOf<{
|
|
151
156
|
site: Schema<ObjectOf<{
|
|
@@ -246,6 +251,11 @@ declare const configSchema: Schema<ObjectOf<{
|
|
|
246
251
|
* being described, and because a config file has no flags to negate.
|
|
247
252
|
*/
|
|
248
253
|
build: OptionalSchema<boolean>;
|
|
254
|
+
/**
|
|
255
|
+
* False is `--no-cache`: audit every page, reusing nothing an earlier run
|
|
256
|
+
* measured. Written in the positive for the same reason `build` is.
|
|
257
|
+
*/
|
|
258
|
+
cache: OptionalSchema<boolean>;
|
|
249
259
|
}>>;
|
|
250
260
|
}>>;
|
|
251
261
|
/**
|
|
@@ -514,6 +524,15 @@ interface RenderStatementOptions {
|
|
|
514
524
|
* config lists. Left out, the statement says only what the config says.
|
|
515
525
|
*/
|
|
516
526
|
audit?: AuditSummary;
|
|
527
|
+
/**
|
|
528
|
+
* What a person checked, from `eaa-kit checklist`.
|
|
529
|
+
*
|
|
530
|
+
* Reaches the document as one fact — how many of WCAG's success criteria were
|
|
531
|
+
* checked by hand, and when — and never as a verdict. What a review concluded
|
|
532
|
+
* about a criterion is a claim by a person, and the place for a claim in a
|
|
533
|
+
* statement is the barrier list, which a person writes.
|
|
534
|
+
*/
|
|
535
|
+
review?: ReviewRecord;
|
|
517
536
|
}
|
|
518
537
|
interface RenderedStatement {
|
|
519
538
|
markdown: string;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as ASSESSMENT_METHODS, c as ConfigError, d as configSchema, f as defineConfig, i as loadConfig, l as ISSUE_REASONS, n as findConfigFile, o as COMPLIANCE_STATUSES, p as parseConfig, s as COUNTRIES, t as CONFIG_FILENAMES, u as STATEMENT_LOCALES } from "./load-
|
|
2
|
-
import { a as summariseAuditReport, c as StatementError, i as readAuditReport, n as toHtmlBody, o as checkStatementEvidence, r as toHtmlDocument, s as refuses, t as renderStatement } from "./render-
|
|
1
|
+
import { a as ASSESSMENT_METHODS, c as ConfigError, d as configSchema, f as defineConfig, i as loadConfig, l as ISSUE_REASONS, n as findConfigFile, o as COMPLIANCE_STATUSES, p as parseConfig, s as COUNTRIES, t as CONFIG_FILENAMES, u as STATEMENT_LOCALES } from "./load-BaWMa-G_.js";
|
|
2
|
+
import { a as summariseAuditReport, c as StatementError, i as readAuditReport, n as toHtmlBody, o as checkStatementEvidence, r as toHtmlDocument, s as refuses, t as renderStatement } from "./render-C1sUZZI_.js";
|
|
3
3
|
export { ASSESSMENT_METHODS, COMPLIANCE_STATUSES, CONFIG_FILENAMES, COUNTRIES, ConfigError, ISSUE_REASONS, STATEMENT_LOCALES, StatementError, checkStatementEvidence, configSchema, defineConfig, findConfigFile, loadConfig, parseConfig, readAuditReport, refuses, renderStatement, summariseAuditReport, toHtmlBody, toHtmlDocument };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as DEFAULT_FAIL_ON } from "./impact-luGCnN8F.js";
|
|
2
|
-
import { s as COUNTRIES, t as CONFIG_FILENAMES } from "./load-
|
|
2
|
+
import { s as COUNTRIES, t as CONFIG_FILENAMES } from "./load-BaWMa-G_.js";
|
|
3
3
|
import { t as exists } from "./fs-BmPtmFke.js";
|
|
4
|
-
import { l as warn, o as fail, s as note } from "./command-
|
|
4
|
+
import { l as warn, o as fail, s as note } from "./command-3r4fht5f.js";
|
|
5
5
|
import { readFile, writeFile } from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import pc from "picocolors";
|