@holmdigital/engine 2.4.1 → 2.5.1
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 +13 -4
- package/dist/{chunk-FDDZKXUT.mjs → chunk-KOTT5C66.mjs} +20 -3
- package/dist/cli/index.js +28 -8
- package/dist/cli/index.mjs +10 -7
- package/dist/cli/templates/en-us.json +2 -2
- package/dist/index.js +19 -2
- package/dist/index.mjs +1 -1
- package/dist/templates/en-us.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,16 +14,19 @@ Most accessibility tools give you technical errors (e.g., "Color contrast must b
|
|
|
14
14
|
It handles the heavy lifting of:
|
|
15
15
|
1. **Mapping** technical failures to specific legal clauses.
|
|
16
16
|
2. **Validating** HTML structure to ensure test accuracy.
|
|
17
|
-
3. **Reporting** in multiple languages (EN, SV, NO, FI, DA, NL, DE, FR, ES
|
|
17
|
+
3. **Reporting** in multiple languages — 9 CLI output locales (EN, SV, NO, FI, DA, NL, DE, FR, ES) and 16 accessibility statement template locales (adds IT, PT, PL, EN-GB, EN-US, EN-CA, EN-AU) — for non-technical stakeholders.
|
|
18
18
|
4. **CI/CD Pipeline Integration** with automatic enforcement.
|
|
19
19
|
|
|
20
20
|
For a comprehensive guide on CLI flags, CI/CD integration, and configuration files, see the **[Engine Library Catalog](../../docs/reference/engine.md)**.
|
|
21
21
|
|
|
22
22
|
## Features
|
|
23
23
|
|
|
24
|
-
- **Regulatory Mapping**: Maps technical failures to EU laws (EN 301 549, EAA)
|
|
24
|
+
- **Regulatory Mapping**: Maps technical failures to EU laws (EN 301 549, EAA), international laws (Australian DDA), and **U.S. ADA (Title II state/local, Title III private sector) + Section 508 (federal agencies)**.
|
|
25
|
+
- **Sector-Aware US Routing**: `--country US --sector public` references **ADA Title II + Section 508** (DOJ enforcement); `--sector private` references **ADA Title III** (DOJ enforcement).
|
|
25
26
|
- **HTML Structure Validation**: Built-in `html-validate` checks to prevent false positives/negatives.
|
|
26
|
-
- **Internationalization (i18n)**:
|
|
27
|
+
- **Internationalization (i18n)**:
|
|
28
|
+
- **CLI output**: 9 locale files (`en`, `sv`, `no`, `fi`, `da`, `de`, `fr`, `es`, `nl`) + 4 English aliases (`en-gb`, `en-us`, `en-ca`, `en-au`) that fall back to `en`.
|
|
29
|
+
- **Statement templates**: 16 locale files — adds `it`, `pt`, `pl`, and separate templates for each English variant (`en-gb`, `en-us`, `en-ca`, `en-au`).
|
|
27
30
|
- **Template-Driven Accessibility Statements**: Generates modern, glassmorphism-styled statements using externalized JSON templates for each language, allowing for professional legal phrasing and deep customization.
|
|
28
31
|
- **Multi-Company Metadata**: Easily customize statements via CLI flags or `.a11yrc` for scalable client generation.
|
|
29
32
|
- **Enriched JUnit XML**: Professional CI/CD reports including scan duration, page title, engine metadata, and **detailed failing node** snippets (Target + HTML).
|
|
@@ -49,7 +52,7 @@ npx hd-a11y-scan <url> [options]
|
|
|
49
52
|
**Options:**
|
|
50
53
|
| Option | Description |
|
|
51
54
|
|--------|-------------|
|
|
52
|
-
| `--lang <code>` | Language code
|
|
55
|
+
| `--lang <code>` | Language code. CLI output: `en`, `sv`, `no`, `fi`, `da`, `de`, `fr`, `es`, `nl` (+ aliases `en-gb`, `en-us`, `en-ca`, `en-au` fall back to `en`). Statement templates also accept `it`, `pt`, `pl`. |
|
|
53
56
|
| `--threshold <level>` | Severity threshold for compliance (`critical`, `high`, `medium`, `low`). Default: `high` |
|
|
54
57
|
| `--ci` | Run in CI mode (exit code 1 on failure) |
|
|
55
58
|
| `--json` | Output results as JSON |
|
|
@@ -91,6 +94,12 @@ npx hd-a11y-scan https://example.com --light
|
|
|
91
94
|
|
|
92
95
|
# Light scan with JSON output (perfect for scan-server integration)
|
|
93
96
|
npx hd-a11y-scan https://example.com --light --json
|
|
97
|
+
|
|
98
|
+
# U.S. state/local government statement (ADA Title II + Section 508, DOJ)
|
|
99
|
+
npx hd-a11y-scan https://example.gov --country US --sector public --statement statement.md --lang en-us
|
|
100
|
+
|
|
101
|
+
# U.S. private sector / public accommodation statement (ADA Title III, DOJ)
|
|
102
|
+
npx hd-a11y-scan https://shop.example.com --country US --sector private --statement statement.md --lang en-us
|
|
94
103
|
```
|
|
95
104
|
|
|
96
105
|
## JSON Output
|
|
@@ -138,7 +138,7 @@ var HtmlValidator = class {
|
|
|
138
138
|
// src/core/regulatory-scanner.ts
|
|
139
139
|
import { readFileSync } from "fs";
|
|
140
140
|
function getEngineVersion() {
|
|
141
|
-
return "2.
|
|
141
|
+
return "2.5.1";
|
|
142
142
|
}
|
|
143
143
|
function getStandardsVersion() {
|
|
144
144
|
try {
|
|
@@ -557,7 +557,7 @@ function generateBadgeMarkdown(score) {
|
|
|
557
557
|
import React from "react";
|
|
558
558
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
559
559
|
import { AccessibilityStatement } from "@holmdigital/components";
|
|
560
|
-
import { getEnforcementBody, getNationalLawByFramework } from "@holmdigital/standards";
|
|
560
|
+
import { getEnforcementBody, getNationalLawByFramework, getNationalLaws } from "@holmdigital/standards";
|
|
561
561
|
import fs from "fs/promises";
|
|
562
562
|
import path from "path";
|
|
563
563
|
var EVALUATION_METHOD = {
|
|
@@ -803,12 +803,29 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
803
803
|
"{<tiers externe>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
804
804
|
"{<tercero externo>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
805
805
|
"{<third party>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
806
|
-
"{<enforcement_body>}":
|
|
806
|
+
"{<enforcement_body>}": (() => {
|
|
807
|
+
if (country === "US") {
|
|
808
|
+
const adaLaw = getNationalLaws("US").find((l) => l.euFramework === "ADA" && l.scope === sector);
|
|
809
|
+
if (adaLaw) return adaLaw.enforcement.authorityName;
|
|
810
|
+
}
|
|
811
|
+
return getEnforcementBody(country, sector);
|
|
812
|
+
})(),
|
|
807
813
|
"{<national_law>}": (() => {
|
|
808
814
|
if (country === "AU") {
|
|
809
815
|
const ddaLaw = getNationalLawByFramework("DDA", "AU");
|
|
810
816
|
return ddaLaw ? `${ddaLaw.fullName}` : "Disability Discrimination Act 1992 (Cth)";
|
|
811
817
|
}
|
|
818
|
+
if (country === "US") {
|
|
819
|
+
const usLaws = getNationalLaws("US");
|
|
820
|
+
const adaLaw = usLaws.find((l) => l.euFramework === "ADA" && l.scope === sector);
|
|
821
|
+
if (adaLaw) {
|
|
822
|
+
if (sector === "public") {
|
|
823
|
+
const s508 = usLaws.find((l) => l.id === "us-508");
|
|
824
|
+
return s508 ? `${adaLaw.fullName} (${adaLaw.law}) & ${s508.fullName} (${s508.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
825
|
+
}
|
|
826
|
+
return `${adaLaw.fullName} (${adaLaw.law})`;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
812
829
|
const law = getNationalLawByFramework(sector === "private" ? "EAA" : "WAD", country);
|
|
813
830
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
814
831
|
})(),
|
package/dist/cli/index.js
CHANGED
|
@@ -783,7 +783,7 @@ var HtmlValidator = class {
|
|
|
783
783
|
// src/core/regulatory-scanner.ts
|
|
784
784
|
var import_node_fs = require("fs");
|
|
785
785
|
function getEngineVersion() {
|
|
786
|
-
return "2.
|
|
786
|
+
return "2.5.1";
|
|
787
787
|
}
|
|
788
788
|
function getStandardsVersion() {
|
|
789
789
|
try {
|
|
@@ -1221,7 +1221,7 @@ var LOCALE_TO_INTL = {
|
|
|
1221
1221
|
"en-us": "en-US",
|
|
1222
1222
|
"en-ca": "en-CA"
|
|
1223
1223
|
};
|
|
1224
|
-
function generateReportHTML(result) {
|
|
1224
|
+
function generateReportHTML(result, sector = "public") {
|
|
1225
1225
|
const criticalCount = result.stats.critical;
|
|
1226
1226
|
const highCount = result.stats.high;
|
|
1227
1227
|
const htmlErrorsCount = result.htmlValidation?.errors?.length ?? 0;
|
|
@@ -1359,7 +1359,7 @@ function generateReportHTML(result) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
.legal-grid {
|
|
1361
1361
|
display: grid;
|
|
1362
|
-
grid-template-columns: repeat(
|
|
1362
|
+
grid-template-columns: repeat(var(--legal-cols, 1), 1fr);
|
|
1363
1363
|
gap: 1rem;
|
|
1364
1364
|
}
|
|
1365
1365
|
.legal-stat {
|
|
@@ -1444,11 +1444,13 @@ function generateReportHTML(result) {
|
|
|
1444
1444
|
${result.legalSummary ? `
|
|
1445
1445
|
<div class="legal-summary">
|
|
1446
1446
|
<div class="legal-summary-title">\u{1F1EA}\u{1F1FA} EU Legal Framework Impact</div>
|
|
1447
|
-
<div class="legal-grid">
|
|
1447
|
+
<div class="legal-grid" style="--legal-cols: ${sector === "public" ? 1 : 2}">
|
|
1448
|
+
${sector === "public" ? `
|
|
1448
1449
|
<div class="legal-stat">
|
|
1449
1450
|
<div class="legal-stat-value" style="color: #1d4ed8;">${result.legalSummary.wadApplicable}</div>
|
|
1450
1451
|
<div class="legal-stat-label">WAD (Public Sector) Violations</div>
|
|
1451
1452
|
</div>
|
|
1453
|
+
` : `
|
|
1452
1454
|
<div class="legal-stat">
|
|
1453
1455
|
<div class="legal-stat-value" style="color: #7c3aed;">${result.legalSummary.eaaApplicable}</div>
|
|
1454
1456
|
<div class="legal-stat-label">EAA (Private Sector) Violations</div>
|
|
@@ -1457,6 +1459,7 @@ function generateReportHTML(result) {
|
|
|
1457
1459
|
<div class="legal-stat-value" style="color: #dc2626;">${result.legalSummary.eaaDeadlineViolations}</div>
|
|
1458
1460
|
<div class="legal-stat-label">EAA 2025 Deadline Issues</div>
|
|
1459
1461
|
</div>
|
|
1462
|
+
`}
|
|
1460
1463
|
</div>
|
|
1461
1464
|
</div>
|
|
1462
1465
|
` : ""}
|
|
@@ -1476,8 +1479,8 @@ function generateReportHTML(result) {
|
|
|
1476
1479
|
<div class="violation-title">${report.ruleId}</div>
|
|
1477
1480
|
<div>
|
|
1478
1481
|
<span class="badge ${riskClass}">${report.holmdigitalInsight.diggRisk}</span>
|
|
1479
|
-
${report.legalContext?.appliesTo?.includes("WAD") ? '<span class="badge badge-wad">WAD</span>' : ""}
|
|
1480
|
-
${report.legalContext?.appliesTo?.includes("EAA") ? '<span class="badge badge-eaa">EAA</span>' : ""}
|
|
1482
|
+
${sector === "public" && report.legalContext?.appliesTo?.includes("WAD") ? '<span class="badge badge-wad">WAD</span>' : ""}
|
|
1483
|
+
${sector === "private" && report.legalContext?.appliesTo?.includes("EAA") ? '<span class="badge badge-eaa">EAA</span>' : ""}
|
|
1481
1484
|
</div>
|
|
1482
1485
|
</div>
|
|
1483
1486
|
<div class="violation-meta">
|
|
@@ -1788,12 +1791,29 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1788
1791
|
"{<tiers externe>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1789
1792
|
"{<tercero externo>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1790
1793
|
"{<third party>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1791
|
-
"{<enforcement_body>}": (
|
|
1794
|
+
"{<enforcement_body>}": (() => {
|
|
1795
|
+
if (country === "US") {
|
|
1796
|
+
const adaLaw = (0, import_standards.getNationalLaws)("US").find((l) => l.euFramework === "ADA" && l.scope === sector);
|
|
1797
|
+
if (adaLaw) return adaLaw.enforcement.authorityName;
|
|
1798
|
+
}
|
|
1799
|
+
return (0, import_standards.getEnforcementBody)(country, sector);
|
|
1800
|
+
})(),
|
|
1792
1801
|
"{<national_law>}": (() => {
|
|
1793
1802
|
if (country === "AU") {
|
|
1794
1803
|
const ddaLaw = (0, import_standards.getNationalLawByFramework)("DDA", "AU");
|
|
1795
1804
|
return ddaLaw ? `${ddaLaw.fullName}` : "Disability Discrimination Act 1992 (Cth)";
|
|
1796
1805
|
}
|
|
1806
|
+
if (country === "US") {
|
|
1807
|
+
const usLaws = (0, import_standards.getNationalLaws)("US");
|
|
1808
|
+
const adaLaw = usLaws.find((l) => l.euFramework === "ADA" && l.scope === sector);
|
|
1809
|
+
if (adaLaw) {
|
|
1810
|
+
if (sector === "public") {
|
|
1811
|
+
const s508 = usLaws.find((l) => l.id === "us-508");
|
|
1812
|
+
return s508 ? `${adaLaw.fullName} (${adaLaw.law}) & ${s508.fullName} (${s508.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1813
|
+
}
|
|
1814
|
+
return `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1797
1817
|
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
|
1798
1818
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
1799
1819
|
})(),
|
|
@@ -2022,7 +2042,7 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
2022
2042
|
if (spinner) spinner.succeed(t("cli.complete"));
|
|
2023
2043
|
if (options.pdf) {
|
|
2024
2044
|
if (spinner) spinner.start(t("cli.generating_pdf"));
|
|
2025
|
-
const html = generateReportHTML(result);
|
|
2045
|
+
const html = generateReportHTML(result, options.sector);
|
|
2026
2046
|
await generatePDF(html, options.pdf);
|
|
2027
2047
|
if (spinner) spinner.succeed(t("cli.pdf_saved", { path: options.pdf }));
|
|
2028
2048
|
}
|
package/dist/cli/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
generateStatement,
|
|
8
8
|
generateStatementContent,
|
|
9
9
|
getEngineVersion
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KOTT5C66.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getCurrentLang,
|
|
13
13
|
setLanguage,
|
|
@@ -37,7 +37,7 @@ var LOCALE_TO_INTL = {
|
|
|
37
37
|
"en-us": "en-US",
|
|
38
38
|
"en-ca": "en-CA"
|
|
39
39
|
};
|
|
40
|
-
function generateReportHTML(result) {
|
|
40
|
+
function generateReportHTML(result, sector = "public") {
|
|
41
41
|
const criticalCount = result.stats.critical;
|
|
42
42
|
const highCount = result.stats.high;
|
|
43
43
|
const htmlErrorsCount = result.htmlValidation?.errors?.length ?? 0;
|
|
@@ -175,7 +175,7 @@ function generateReportHTML(result) {
|
|
|
175
175
|
}
|
|
176
176
|
.legal-grid {
|
|
177
177
|
display: grid;
|
|
178
|
-
grid-template-columns: repeat(
|
|
178
|
+
grid-template-columns: repeat(var(--legal-cols, 1), 1fr);
|
|
179
179
|
gap: 1rem;
|
|
180
180
|
}
|
|
181
181
|
.legal-stat {
|
|
@@ -260,11 +260,13 @@ function generateReportHTML(result) {
|
|
|
260
260
|
${result.legalSummary ? `
|
|
261
261
|
<div class="legal-summary">
|
|
262
262
|
<div class="legal-summary-title">\u{1F1EA}\u{1F1FA} EU Legal Framework Impact</div>
|
|
263
|
-
<div class="legal-grid">
|
|
263
|
+
<div class="legal-grid" style="--legal-cols: ${sector === "public" ? 1 : 2}">
|
|
264
|
+
${sector === "public" ? `
|
|
264
265
|
<div class="legal-stat">
|
|
265
266
|
<div class="legal-stat-value" style="color: #1d4ed8;">${result.legalSummary.wadApplicable}</div>
|
|
266
267
|
<div class="legal-stat-label">WAD (Public Sector) Violations</div>
|
|
267
268
|
</div>
|
|
269
|
+
` : `
|
|
268
270
|
<div class="legal-stat">
|
|
269
271
|
<div class="legal-stat-value" style="color: #7c3aed;">${result.legalSummary.eaaApplicable}</div>
|
|
270
272
|
<div class="legal-stat-label">EAA (Private Sector) Violations</div>
|
|
@@ -273,6 +275,7 @@ function generateReportHTML(result) {
|
|
|
273
275
|
<div class="legal-stat-value" style="color: #dc2626;">${result.legalSummary.eaaDeadlineViolations}</div>
|
|
274
276
|
<div class="legal-stat-label">EAA 2025 Deadline Issues</div>
|
|
275
277
|
</div>
|
|
278
|
+
`}
|
|
276
279
|
</div>
|
|
277
280
|
</div>
|
|
278
281
|
` : ""}
|
|
@@ -292,8 +295,8 @@ function generateReportHTML(result) {
|
|
|
292
295
|
<div class="violation-title">${report.ruleId}</div>
|
|
293
296
|
<div>
|
|
294
297
|
<span class="badge ${riskClass}">${report.holmdigitalInsight.diggRisk}</span>
|
|
295
|
-
${report.legalContext?.appliesTo?.includes("WAD") ? '<span class="badge badge-wad">WAD</span>' : ""}
|
|
296
|
-
${report.legalContext?.appliesTo?.includes("EAA") ? '<span class="badge badge-eaa">EAA</span>' : ""}
|
|
298
|
+
${sector === "public" && report.legalContext?.appliesTo?.includes("WAD") ? '<span class="badge badge-wad">WAD</span>' : ""}
|
|
299
|
+
${sector === "private" && report.legalContext?.appliesTo?.includes("EAA") ? '<span class="badge badge-eaa">EAA</span>' : ""}
|
|
297
300
|
</div>
|
|
298
301
|
</div>
|
|
299
302
|
<div class="violation-meta">
|
|
@@ -508,7 +511,7 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
508
511
|
if (spinner) spinner.succeed(t("cli.complete"));
|
|
509
512
|
if (options.pdf) {
|
|
510
513
|
if (spinner) spinner.start(t("cli.generating_pdf"));
|
|
511
|
-
const html = generateReportHTML(result);
|
|
514
|
+
const html = generateReportHTML(result, options.sector);
|
|
512
515
|
await generatePDF(html, options.pdf);
|
|
513
516
|
if (spinner) spinner.succeed(t("cli.pdf_saved", { path: options.pdf }));
|
|
514
517
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Accessibility of {<website>}",
|
|
3
|
-
"intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with
|
|
3
|
+
"intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
|
|
4
4
|
"sections": [
|
|
5
5
|
{
|
|
6
6
|
"id": "how-accessible",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{
|
|
21
21
|
"id": "enforcement",
|
|
22
22
|
"title": "Enforcement procedure",
|
|
23
|
-
"content": "The {<enforcement_body>} is responsible for enforcing
|
|
23
|
+
"content": "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also file a complaint with {<enforcement_body>} if you believe our website does not comply with the applicable law, or if your request for accessible content has not been handled appropriately."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
package/dist/index.js
CHANGED
|
@@ -677,7 +677,7 @@ var HtmlValidator = class {
|
|
|
677
677
|
// src/core/regulatory-scanner.ts
|
|
678
678
|
var import_node_fs = require("fs");
|
|
679
679
|
function getEngineVersion() {
|
|
680
|
-
return "2.
|
|
680
|
+
return "2.5.1";
|
|
681
681
|
}
|
|
682
682
|
function getStandardsVersion() {
|
|
683
683
|
try {
|
|
@@ -1343,12 +1343,29 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1343
1343
|
"{<tiers externe>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1344
1344
|
"{<tercero externo>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1345
1345
|
"{<third party>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1346
|
-
"{<enforcement_body>}": (
|
|
1346
|
+
"{<enforcement_body>}": (() => {
|
|
1347
|
+
if (country === "US") {
|
|
1348
|
+
const adaLaw = (0, import_standards.getNationalLaws)("US").find((l) => l.euFramework === "ADA" && l.scope === sector);
|
|
1349
|
+
if (adaLaw) return adaLaw.enforcement.authorityName;
|
|
1350
|
+
}
|
|
1351
|
+
return (0, import_standards.getEnforcementBody)(country, sector);
|
|
1352
|
+
})(),
|
|
1347
1353
|
"{<national_law>}": (() => {
|
|
1348
1354
|
if (country === "AU") {
|
|
1349
1355
|
const ddaLaw = (0, import_standards.getNationalLawByFramework)("DDA", "AU");
|
|
1350
1356
|
return ddaLaw ? `${ddaLaw.fullName}` : "Disability Discrimination Act 1992 (Cth)";
|
|
1351
1357
|
}
|
|
1358
|
+
if (country === "US") {
|
|
1359
|
+
const usLaws = (0, import_standards.getNationalLaws)("US");
|
|
1360
|
+
const adaLaw = usLaws.find((l) => l.euFramework === "ADA" && l.scope === sector);
|
|
1361
|
+
if (adaLaw) {
|
|
1362
|
+
if (sector === "public") {
|
|
1363
|
+
const s508 = usLaws.find((l) => l.id === "us-508");
|
|
1364
|
+
return s508 ? `${adaLaw.fullName} (${adaLaw.law}) & ${s508.fullName} (${s508.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1365
|
+
}
|
|
1366
|
+
return `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1352
1369
|
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
|
1353
1370
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
1354
1371
|
})(),
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Accessibility of {<website>}",
|
|
3
|
-
"intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with
|
|
3
|
+
"intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
|
|
4
4
|
"sections": [
|
|
5
5
|
{
|
|
6
6
|
"id": "how-accessible",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{
|
|
21
21
|
"id": "enforcement",
|
|
22
22
|
"title": "Enforcement procedure",
|
|
23
|
-
"content": "The {<enforcement_body>} is responsible for enforcing
|
|
23
|
+
"content": "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also file a complaint with {<enforcement_body>} if you believe our website does not comply with the applicable law, or if your request for accessible content has not been handled appropriately."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|