eaa-kit 0.2.1 → 0.4.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 (56) hide show
  1. package/README.md +51 -4
  2. package/dist/astro/index.d.ts +7 -34
  3. package/dist/astro/index.js +6 -26
  4. package/dist/audit/runners/worker.js +1 -1
  5. package/dist/audit-CPoZMXGM.js +779 -0
  6. package/dist/audit-CpXH2Mk8.js +2 -0
  7. package/dist/{baseline-CV_3lbER.js → baseline-22Y1NWxM.js} +1 -1
  8. package/dist/{baseline-CgBmzFTr.js → baseline-DB9CZGnV.js} +17 -27
  9. package/dist/cli/index.js +336 -142
  10. package/dist/collect-CFM8gEVv.js +134 -0
  11. package/dist/command-D8l_oYbV.js +77 -0
  12. package/dist/component-C3GL1Mnu.js +146 -0
  13. package/dist/component-DKd3EHOg.js +2 -0
  14. package/dist/coverage-B4IBKMO8.js +521 -0
  15. package/dist/{crawl-CtJbMNNb.js → crawl-BiI1Lau_.js} +13 -23
  16. package/dist/eleventy/index.d.ts +28 -0
  17. package/dist/eleventy/index.js +19 -0
  18. package/dist/frameworks-B4ClIJgE.js +314 -0
  19. package/dist/frameworks-etFg_O8K.js +2 -0
  20. package/dist/fs-BmPtmFke.js +40 -0
  21. package/dist/html-BGTO3ypW.js +543 -0
  22. package/dist/{impact-DvgBjupx.js → impact-DZt2oBCP.js} +15 -1
  23. package/dist/index.js +2 -2
  24. package/dist/{init-DRKIdpK1.js → init-DIWDE35F.js} +13 -10
  25. package/dist/jsdom-4IMzv0eE.js +3 -0
  26. package/dist/jsdom-DCpGSLfW.js +81 -0
  27. package/dist/{json-C9xS1PNC.js → json-DjEvy1nX.js} +19 -22
  28. package/dist/json-QQuFIw1W.js +2 -0
  29. package/dist/{load-sCkKsvGQ.js → load-5wRGLvub.js} +3 -9
  30. package/dist/nuxt/index.d.ts +35 -0
  31. package/dist/nuxt/index.js +23 -0
  32. package/dist/{playwright-DSRnXmcd.js → playwright-BWniOain.js} +70 -23
  33. package/dist/{pool-DixLeu8L.js → pool-BMevaLWD.js} +4 -12
  34. package/dist/{project-CufCqIE2.js → project-CzOnkLH6.js} +14 -21
  35. package/dist/project-MFrXcw1M.js +2 -0
  36. package/dist/remediation-Dtowi2EC.js +321 -0
  37. package/dist/{render-BO0nVrrZ.js → render-DrvXRCEn.js} +8 -16
  38. package/dist/{result-2aZPfM8w.js → result-DoamKFsp.js} +115 -1
  39. package/dist/routes-CmdRUuOs.js +265 -0
  40. package/dist/run-BMASMmwO.d.ts +45 -0
  41. package/dist/run-DB34BSOZ.js +53 -0
  42. package/dist/{sarif-eSCuI0eX.js → sarif-SR3_lLYd.js} +22 -36
  43. package/dist/{schema-CMZ8ItGk.js → schema-is6CGX2D.js} +4 -1
  44. package/dist/text-CKKpzkYM.js +43 -0
  45. package/dist/vite/index.d.ts +39 -0
  46. package/dist/vite/index.js +40 -0
  47. package/dist/webpack/index.d.ts +33 -0
  48. package/dist/webpack/index.js +20 -0
  49. package/package.json +36 -9
  50. package/dist/audit-B2dIKpJ5.js +0 -2
  51. package/dist/audit-DXpKkXsC.js +0 -950
  52. package/dist/escape-Dm1o_RAk.js +0 -21
  53. package/dist/html-BLEuzep6.js +0 -337
  54. package/dist/jsdom-BEu6Ra_2.js +0 -163
  55. package/dist/jsdom-C6dIyaxN.js +0 -3
  56. package/dist/routes-BxbSZKXC.js +0 -123
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eaa-kit",
3
- "version": "0.2.1",
4
- "description": "Build-time WCAG 2.2 AA auditor and EU accessibility statement generator for static sites (EAA / BFSG / BaFG, DACH-localised).",
3
+ "version": "0.4.0",
4
+ "description": "WCAG 2.2 AA auditor and EU accessibility statement generator (EAA / BFSG / BaFG). Audits a static build or a running site from the command line.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -34,11 +34,33 @@
34
34
  "exports": {
35
35
  ".": {
36
36
  "types": "./dist/index.d.ts",
37
- "import": "./dist/index.js"
37
+ "import": "./dist/index.js",
38
+ "require": "./dist/index.js"
38
39
  },
39
40
  "./astro": {
40
41
  "types": "./dist/astro/index.d.ts",
41
- "import": "./dist/astro/index.js"
42
+ "import": "./dist/astro/index.js",
43
+ "require": "./dist/astro/index.js"
44
+ },
45
+ "./vite": {
46
+ "types": "./dist/vite/index.d.ts",
47
+ "import": "./dist/vite/index.js",
48
+ "require": "./dist/vite/index.js"
49
+ },
50
+ "./eleventy": {
51
+ "types": "./dist/eleventy/index.d.ts",
52
+ "import": "./dist/eleventy/index.js",
53
+ "require": "./dist/eleventy/index.js"
54
+ },
55
+ "./webpack": {
56
+ "types": "./dist/webpack/index.d.ts",
57
+ "import": "./dist/webpack/index.js",
58
+ "require": "./dist/webpack/index.js"
59
+ },
60
+ "./nuxt": {
61
+ "types": "./dist/nuxt/index.d.ts",
62
+ "import": "./dist/nuxt/index.js",
63
+ "require": "./dist/nuxt/index.js"
42
64
  },
43
65
  "./package.json": "./package.json"
44
66
  },
@@ -53,12 +75,13 @@
53
75
  "typecheck": "tsc --noEmit",
54
76
  "lint": "biome check .",
55
77
  "format": "biome check --write .",
56
- "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 statement --config examples/eaa.config.json && node dist/cli/index.js statement --config examples/eaa.config.json --audit examples/report.json --format html",
57
- "examples": "pnpm build && node scripts/generate-examples.mjs"
78
+ "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 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",
79
+ "examples": "pnpm build && node scripts/generate-examples.mjs",
80
+ "test:packaged": "pnpm build && node scripts/test-packaged.mjs"
58
81
  },
59
82
  "peerDependencies": {
60
- "playwright": ">=1.40.0",
61
- "astro": ">=4.0.0"
83
+ "astro": ">=4.0.0",
84
+ "playwright": ">=1.40.0"
62
85
  },
63
86
  "peerDependenciesMeta": {
64
87
  "playwright": {
@@ -76,16 +99,20 @@
76
99
  "tinyglobby": "^0.2.17"
77
100
  },
78
101
  "devDependencies": {
102
+ "@11ty/eleventy": "^3.1.6",
79
103
  "@biomejs/biome": "^2.5.9",
80
104
  "@types/jsdom": "^30.0.0",
81
105
  "@types/node": "^26.2.0",
82
106
  "ajv": "^8.20.0",
83
107
  "ajv-formats": "^3.0.1",
84
108
  "astro": "^7.2.9",
109
+ "nuxt": "^4.5.2",
85
110
  "playwright": "^1.62.1",
86
111
  "tsdown": "^0.22.14",
87
112
  "typescript": "^7.0.2",
88
- "vitest": "^4.1.11"
113
+ "vite": "^8.2.2",
114
+ "vitest": "^4.1.11",
115
+ "webpack": "^5.110.2"
89
116
  },
90
117
  "publishConfig": {
91
118
  "access": "public",
@@ -1,2 +0,0 @@
1
- import { r as runAuditCommand } from "./audit-DXpKkXsC.js";
2
- export { runAuditCommand };