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.
Files changed (62) hide show
  1. package/README.md +23 -8
  2. package/dist/astro/index.d.ts +1 -1
  3. package/dist/astro/index.js +1 -1
  4. package/dist/audit/runners/worker.js +1 -1
  5. package/dist/audit-Bwm1xBdJ.js +2 -0
  6. package/dist/{audit-e_uixhPG.js → audit-DRjAY2iY.js} +164 -75
  7. package/dist/{baseline-D2qWmUC6.js → baseline-BpE7DbDq.js} +1 -1
  8. package/dist/{baseline-BscHfFSW.js → baseline-rtnj3RHB.js} +1 -1
  9. package/dist/cache-D4dOIuOi.js +219 -0
  10. package/dist/{checklist-BtgkxMEa.js → checklist-DDd9jewi.js} +3 -3
  11. package/dist/cli/index.js +28 -12
  12. package/dist/{command-CZKp9Wi_.js → command-3r4fht5f.js} +6 -5
  13. package/dist/{coverage-BD2_CYns.js → coverage-cb5kPp48.js} +3 -285
  14. package/dist/coverage-n1X9CkiG.js +3 -0
  15. package/dist/criteria-CnPJKGeb.js +286 -0
  16. package/dist/eleventy/index.d.ts +1 -1
  17. package/dist/eleventy/index.js +1 -1
  18. package/dist/{html-Bmh7X_sM.js → html-BIxxF3FC.js} +6 -4
  19. package/dist/index.d.ts +19 -0
  20. package/dist/index.js +2 -2
  21. package/dist/{init-BjKYttxc.js → init-DrFfzjvm.js} +2 -2
  22. package/dist/jsdom-BUYuVJJm.js +3 -0
  23. package/dist/{jsdom-CQar6OQS.js → jsdom-CsW_xVcA.js} +11 -12
  24. package/dist/{json-PNg6BeXp.js → json-Bus6YhxB.js} +4 -3
  25. package/dist/{json-HJDgJp09.js → json-CrQmoTj6.js} +1 -1
  26. package/dist/{load-vZdV_fD1.js → load-BaWMa-G_.js} +6 -1
  27. package/dist/load-n62iXDq_.js +2 -0
  28. package/dist/nuxt/index.d.ts +1 -1
  29. package/dist/nuxt/index.js +1 -1
  30. package/dist/{playwright-C-miJP2b.js → playwright-ukCr_5o3.js} +1 -1
  31. package/dist/{pool-dkexq5xo.js → pool-B4tEUa2S.js} +6 -2
  32. package/dist/{completeness-Dwq3CPB3.js → remediation-C0klJblu.js} +55 -42
  33. package/dist/{render-CtsqR0k-.js → render-C1sUZZI_.js} +41 -3
  34. package/dist/{result-DfUru6y_.js → result-B7_zVxAX.js} +1 -1
  35. package/dist/result-CRmjjoAA.js +2 -0
  36. package/dist/{run-YiqyQA2b.d.ts → run-BK2blxMI.d.ts} +8 -0
  37. package/dist/{run-D7hdVXLA.js → run-DrS0Komf.js} +6 -2
  38. package/dist/{sarif-BKvq_AUm.js → sarif-BNCE0PNT.js} +3 -2
  39. package/dist/statement/templates/at.de.md +14 -0
  40. package/dist/statement/templates/at.en.md +14 -0
  41. package/dist/statement/templates/ch.de.md +14 -0
  42. package/dist/statement/templates/ch.en.md +14 -0
  43. package/dist/statement/templates/de.de.md +14 -0
  44. package/dist/statement/templates/de.en.md +14 -0
  45. package/dist/statement/templates/es.en.md +14 -0
  46. package/dist/statement/templates/es.es.md +15 -0
  47. package/dist/statement/templates/fr.en.md +14 -0
  48. package/dist/statement/templates/fr.fr.md +15 -0
  49. package/dist/statement/templates/it.en.md +14 -0
  50. package/dist/statement/templates/it.it.md +15 -0
  51. package/dist/statement/templates/nl.en.md +14 -0
  52. package/dist/statement/templates/nl.nl.md +15 -0
  53. package/dist/vite/index.d.ts +1 -1
  54. package/dist/vite/index.js +1 -1
  55. package/dist/webpack/index.d.ts +1 -1
  56. package/dist/webpack/index.js +1 -1
  57. package/dist/{worksheet-eUjwYLxC.js → worksheet-BIxMtbUd.js} +3 -2
  58. package/package.json +3 -2
  59. package/dist/audit-DK2StT1_.js +0 -2
  60. package/dist/coverage-7bQqWNfN.js +0 -2
  61. package/dist/jsdom-DMvU2h-f.js +0 -3
  62. package/dist/load-Bc_xDGAh.js +0 -2
@@ -64,6 +64,20 @@ It is based on a self-assessment carried out by {{ provider.legalName }}.
64
64
  It is based on an assessment carried out by a third party.
65
65
  {{/if}}
66
66
 
67
+ {{#if review.isSingle}}
68
+ One of the {{ review.total }} success criteria in WCAG 2.2 at Levels A and AA was checked
69
+ manually.
70
+ {{/if}}
71
+ {{#if review.isPlural}}
72
+ {{ review.answered }} of the {{ review.total }} success criteria in WCAG 2.2 at Levels A and
73
+ AA were checked manually.
74
+ {{/if}}
75
+ {{#if review.hasDate}}
76
+ The most recent of those manual checks was recorded on {{ review.checkedOnFormatted }}.
77
+ {{/if}}
78
+ {{#if hasReview}}
79
+
80
+ {{/if}}
67
81
  {{#if audit.isSinglePage}}
68
82
  The automated test run of {{ audit.checkedOnFormatted }} covered one page of this website.
69
83
  {{/if}}
@@ -64,6 +64,21 @@ Zij berust op een zelfbeoordeling door {{ provider.legalName }}.
64
64
  Zij berust op een beoordeling door een derde partij.
65
65
  {{/if}}
66
66
 
67
+ {{#if review.isSingle}}
68
+ Eén van de {{ review.total }} succescriteria van WCAG 2.2 (niveaus A en AA) is handmatig
69
+ gecontroleerd.
70
+ {{/if}}
71
+ {{#if review.isPlural}}
72
+ {{ review.answered }} van de {{ review.total }} succescriteria van WCAG 2.2 (niveaus A en
73
+ AA) zijn handmatig gecontroleerd.
74
+ {{/if}}
75
+ {{#if review.hasDate}}
76
+ De meest recente van deze handmatige controles is uitgevoerd op
77
+ {{ review.checkedOnFormatted }}.
78
+ {{/if}}
79
+ {{#if hasReview}}
80
+
81
+ {{/if}}
67
82
  {{#if audit.isSinglePage}}
68
83
  De geautomatiseerde test van {{ audit.checkedOnFormatted }} betrof één pagina van deze
69
84
  website.
@@ -1,4 +1,4 @@
1
- import { n as IntegrationOptions, t as BuildAuditError } from "../run-YiqyQA2b.js";
1
+ import { n as IntegrationOptions, t as BuildAuditError } from "../run-BK2blxMI.js";
2
2
  //#region src/vite/index.d.ts
3
3
  interface EaaKitPluginOptions extends IntegrationOptions {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as auditBuild, t as BuildAuditError } from "../run-D7hdVXLA.js";
1
+ import { n as auditBuild, t as BuildAuditError } from "../run-DrS0Komf.js";
2
2
  import path from "node:path";
3
3
  //#region src/vite/index.ts
4
4
  function eaaKit(options = {}) {
@@ -1,4 +1,4 @@
1
- import { n as IntegrationOptions, t as BuildAuditError } from "../run-YiqyQA2b.js";
1
+ import { n as IntegrationOptions, t as BuildAuditError } from "../run-BK2blxMI.js";
2
2
  //#region src/webpack/index.d.ts
3
3
  /** The part of a webpack compilation this reads. */
4
4
  interface CompilationLike {
@@ -1,4 +1,4 @@
1
- import { n as auditBuild, r as stderrLogger, t as BuildAuditError } from "../run-D7hdVXLA.js";
1
+ import { n as auditBuild, r as stderrLogger, t as BuildAuditError } from "../run-DrS0Komf.js";
2
2
  import path from "node:path";
3
3
  //#region src/webpack/index.ts
4
4
  var EaaKitWebpackPlugin = class {
@@ -1,5 +1,6 @@
1
- import { n as DEFAULT_TAGS } from "./result-DfUru6y_.js";
2
- import { a as rulesByCriterion, o as manualCheckFor, s as understandingUrl, t as WCAG22_AA_CRITERIA } from "./coverage-BD2_CYns.js";
1
+ import { t as WCAG22_AA_CRITERIA } from "./criteria-CnPJKGeb.js";
2
+ import { n as DEFAULT_TAGS } from "./result-B7_zVxAX.js";
3
+ import { a as manualCheckFor, i as rulesByCriterion, o as understandingUrl } from "./coverage-cb5kPp48.js";
3
4
  //#region src/audit/worksheet.ts
4
5
  function buildWorksheet(options) {
5
6
  const rules = rulesByCriterion(options.tags ?? DEFAULT_TAGS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eaa-kit",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "WCAG 2.2 AA auditor and EU accessibility statement generator for seven countries (AT, DE, CH, ES, FR, IT, NL). Audits a static build or a running site from the command line.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -79,7 +79,8 @@
79
79
  "typecheck": "tsc --noEmit",
80
80
  "lint": "biome check .",
81
81
  "format": "biome check --write .",
82
- "smoke": "pnpm build && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json && node dist/cli/index.js audit tests/fixtures/site --include \"about/**\" \"blog/**\" \"drafts/**\" \"legacy.htm\" --concurrency 2 && node dist/cli/index.js audit tests/fixtures/site --include about/** --format html && node dist/cli/index.js audit tests/fixtures/site --baseline examples/baseline.json && node -e \"import('./dist/astro/index.js').then(m => { const i = m.default(); if (i.name !== 'eaa-kit' || typeof i.hooks['astro:build:done'] !== 'function') { throw new Error('astro entry point is not an integration') } console.log('astro entry ok') })\" && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json --prune && node dist/cli/index.js checklist --record .eaa-kit/smoke-review.json --output .eaa-kit/smoke-review.md && node dist/cli/index.js audit tests/fixtures/site --include about/** --review .eaa-kit/smoke-review.json --coverage && node dist/cli/index.js statement --config examples/eaa.config.json && node dist/cli/index.js statement --config examples/eaa.config.json --audit examples/report.json --format html && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --output .eaa-kit/smoke-base.json && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --output .eaa-kit/smoke-head.json && node dist/cli/index.js diff .eaa-kit/smoke-base.json .eaa-kit/smoke-head.json --format json",
82
+ "smoke": "pnpm build && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json && node dist/cli/index.js audit tests/fixtures/site --include \"about/**\" \"blog/**\" \"drafts/**\" \"legacy.htm\" --concurrency 2 && node dist/cli/index.js audit tests/fixtures/site --include about/** --format html && node dist/cli/index.js audit tests/fixtures/site --baseline examples/baseline.json && node -e \"import('./dist/astro/index.js').then(m => { const i = m.default(); if (i.name !== 'eaa-kit' || typeof i.hooks['astro:build:done'] !== 'function') { throw new Error('astro entry point is not an integration') } console.log('astro entry ok') })\" && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json --prune && node dist/cli/index.js checklist --record .eaa-kit/smoke-review.json --output .eaa-kit/smoke-review.md && node dist/cli/index.js audit tests/fixtures/site --include about/** --review .eaa-kit/smoke-review.json --coverage && node dist/cli/index.js statement --config examples/eaa.config.json && node dist/cli/index.js statement --config examples/eaa.config.json --audit examples/report.json --format html && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --no-cache --output .eaa-kit/smoke-base.json && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --no-cache --output .eaa-kit/smoke-head.json && node dist/cli/index.js diff .eaa-kit/smoke-base.json .eaa-kit/smoke-head.json --format json",
83
+ "bench": "pnpm build && node scripts/bench.mjs",
83
84
  "examples": "pnpm build && node scripts/generate-examples.mjs",
84
85
  "test:packaged": "pnpm build && node scripts/test-packaged.mjs"
85
86
  },
@@ -1,2 +0,0 @@
1
- import { n as runAuditCommand } from "./audit-e_uixhPG.js";
2
- export { runAuditCommand };
@@ -1,2 +0,0 @@
1
- import { t as WCAG22_AA_CRITERIA } from "./coverage-BD2_CYns.js";
2
- export { WCAG22_AA_CRITERIA };
@@ -1,3 +0,0 @@
1
- import "./result-DfUru6y_.js";
2
- import { n as runJsdomAudit } from "./jsdom-CQar6OQS.js";
3
- export { runJsdomAudit };
@@ -1,2 +0,0 @@
1
- import { r as loadAuditConfig } from "./load-vZdV_fD1.js";
2
- export { loadAuditConfig };